mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
fix(components): replace as const with correct type in config (#2652)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user