fix(components): replace as const with correct type in config (#2652)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Giorgio Boa
2024-11-20 10:54:37 +01:00
committed by GitHub
parent 588a908358
commit 51c8b8e3e5
16 changed files with 66 additions and 42 deletions

View File

@@ -1,3 +1,5 @@
import type { AvatarSize, ButtonColor, ButtonSize, ButtonVariant } from '../../types'
export default {
wrapper: 'w-full pointer-events-auto',
container: 'relative overflow-hidden',
@@ -17,7 +19,7 @@ export default {
},
avatar: {
base: 'flex-shrink-0 self-center',
size: 'md' as const
size: 'md' as AvatarSize
},
progress: {
base: 'absolute bottom-0 end-0 start-0 h-1',
@@ -38,13 +40,13 @@ export default {
timeout: 5000,
closeButton: {
icon: 'i-heroicons-x-mark-20-solid',
color: 'gray' as const,
variant: 'link' as const,
color: 'gray' as ButtonColor,
variant: 'link' as ButtonVariant,
padded: false
},
actionButton: {
size: 'xs' as const,
color: 'white' as const
size: 'xs' as ButtonSize,
color: 'white' as ButtonColor
}
}
}