mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
chore(theme): lint
This commit is contained in:
@@ -3,12 +3,10 @@ export default (config: { colors: string[] }) => ({
|
||||
root: 'relative',
|
||||
fieldset: 'flex flex-col',
|
||||
legend: 'mb-1 block font-medium text-gray-700 dark:text-gray-200',
|
||||
|
||||
option: 'flex items-start',
|
||||
base: 'rounded-full ring ring-inset ring-gray-300 dark:ring-gray-700 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-offset-white dark:focus-visible:outline-offset-gray-900',
|
||||
indicator: 'flex items-center justify-center size-full rounded-full after:bg-white dark:after:bg-gray-900 after:rounded-full',
|
||||
container: 'flex items-center',
|
||||
|
||||
wrapper: 'ms-2',
|
||||
label: 'block font-medium text-gray-700 dark:text-gray-200',
|
||||
description: 'text-gray-500 dark:text-gray-400'
|
||||
@@ -18,7 +16,6 @@ export default (config: { colors: string[] }) => ({
|
||||
base: `focus-visible:outline-${color}-500 dark:focus-visible:outline-${color}-400`,
|
||||
indicator: `bg-${color}-500 dark:bg-${color}-400`
|
||||
}])),
|
||||
|
||||
size: {
|
||||
'2xs': {
|
||||
fieldset: 'gap-0.5',
|
||||
@@ -27,35 +24,35 @@ export default (config: { colors: string[] }) => ({
|
||||
container: 'h-4',
|
||||
indicator: 'after:size-1'
|
||||
},
|
||||
xs: {
|
||||
'xs': {
|
||||
fieldset: 'gap-0.5',
|
||||
base: 'size-3.5',
|
||||
option: 'text-xs',
|
||||
container: 'h-4',
|
||||
indicator: 'after:size-1'
|
||||
},
|
||||
sm: {
|
||||
'sm': {
|
||||
fieldset: 'gap-1',
|
||||
base: 'size-4',
|
||||
option: 'text-sm',
|
||||
container: 'h-5',
|
||||
indicator: 'after:size-1.5'
|
||||
},
|
||||
md: {
|
||||
'md': {
|
||||
fieldset: 'gap-1',
|
||||
base: 'size-[18px]',
|
||||
option: 'text-sm',
|
||||
container: 'h-5',
|
||||
indicator: 'after:size-1.5'
|
||||
},
|
||||
lg: {
|
||||
'lg': {
|
||||
fieldset: 'gap-1.5',
|
||||
base: 'size-5',
|
||||
option: 'text-base',
|
||||
container: 'h-6',
|
||||
indicator: 'after:size-2'
|
||||
},
|
||||
xl: {
|
||||
'xl': {
|
||||
fieldset: 'gap-1.5',
|
||||
base: 'size-[22px]',
|
||||
option: 'text-base',
|
||||
@@ -63,21 +60,18 @@ export default (config: { colors: string[] }) => ({
|
||||
indicator: 'after:size-2'
|
||||
}
|
||||
},
|
||||
|
||||
disabled: {
|
||||
true: {
|
||||
base: 'cursor-not-allowed opacity-75',
|
||||
label: 'cursor-not-allowed opacity-75'
|
||||
}
|
||||
},
|
||||
|
||||
required: {
|
||||
true: {
|
||||
legend: 'after:content-[\'*\'] after:ms-0.5 after:text-red-500 dark:after:text-red-400'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
defaultVariants: {
|
||||
size: 'sm',
|
||||
color: 'primary'
|
||||
|
||||
Reference in New Issue
Block a user