first commit

This commit is contained in:
2024-04-03 10:16:39 +05:45
commit 3e3eac1db4
545 changed files with 841810 additions and 0 deletions

View File

@ -0,0 +1,112 @@
export default {
root: ({ props }) => ({
class: [
'flex',
{
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
}
]
}),
container: ({ state, props }) => ({
class: [
// Font
'font-sans sm:text-sm leading-none',
// Flex
'flex items-center flex-wrap gap-1',
// Spacing
'm-0 py-1 px-3',
// Size
'w-full',
// Shape
'list-none',
'rounded-md',
// Color
'text-surface-900 dark:text-surface-0',
'bg-surface-0 dark:bg-surface-900',
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
'shadow-sm',
// States
{ 'ring-1 ring-inset': !state.focused, 'ring-2 ring-inset ring-primary-500 dark:ring-primary-400': state.focused },
{ 'ring-surface-300 dark:ring-surface-600': !props.invalid && !state.focused },
// Invalid State
{ 'ring-red-500 dark:ring-red-400': props.invalid && !state.focused },
// Transition
'transition-colors duration-200',
// Misc
'cursor-text overflow-hidden',
'appearance-none'
]
}),
inputtoken: {
class: ['py-0.5 px-0', 'inline-flex flex-auto']
},
input: {
class: [
// Font
'font-sans sm:text-sm leading-none',
// Size
'w-full',
// Spacing
'p-0 m-0',
// Shape
'appearance-none rounded-none',
'border-0 outline-none',
// Color
'text-surface-700 dark:text-white/80',
'bg-transparent',
'placeholder:text-surface-400 dark:placeholder:text-surface-500'
]
},
token: {
class: [
// Flexbox
'inline-flex items-center',
// Spacing
'py-0.5 px-3',
// Shape
'rounded-[1.14rem]',
// Colors
'text-surface-700 dark:text-white/70',
'bg-surface-200 dark:bg-surface-700'
]
},
label: {
class: 'leading-5'
},
removeTokenIcon: {
class: [
// Shape
'rounded-md leading-6',
// Spacing
'ml-2',
// Size
'w-4 h-4',
// Transition
'transition duration-200 ease-in-out',
// Misc
'cursor-pointer'
]
}
};