2
root: ({ props, state, parent }) => ({
8
{ 'rounded-md': parent.instance.$name !== 'InputGroup' },
10
'first:rounded-l-md rounded-none last:rounded-r-md':
11
parent.instance.$name == 'InputGroup',
14
'border-0 border-y border-l last:border-r':
15
parent.instance.$name == 'InputGroup',
18
'first:ml-0 ml-[-1px]':
19
parent.instance.$name == 'InputGroup' && !props.showButtons,
23
{ 'bg-surface-0 dark:bg-surface-950': !props.disabled },
26
{ 'dark:border-surface-700': parent.instance.$name != 'InputGroup' },
27
{ 'dark:border-surface-600': parent.instance.$name == 'InputGroup' },
28
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
31
'invalid:focus:ring-red-200',
32
'invalid:hover:border-red-500',
33
{ 'border-red-500 dark:border-red-400': props.invalid },
41
'hover:border-surface-400 dark:hover:border-surface-600':
45
'outline-none outline-offset-0 ring-1 ring-primary-500 dark:ring-primary-400 z-10':
53
'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
58
label: ({ props, parent }) => ({
71
'text-surface-800 dark:text-white/80': props.modelValue != undefined,
72
'text-surface-400 dark:text-surface-500': props.modelValue == undefined,
74
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
79
{ 'pr-7': props.showClear },
89
'focus:outline-none focus:shadow-none',
94
parent.instance?.$name == 'FloatLabel' && props.modelValue !== null,
100
'overflow-hidden overflow-ellipsis',
108
'flex items-center justify-center',
125
'bg-surface-0 dark:bg-surface-900',
126
'text-surface-700 dark:text-white/80',
129
'border border-surface-300 dark:border-surface-700',
144
class: 'p-1 list-none m-0',
146
option: ({ context }) => ({
156
'first:mt-0 mt-[2px]',
163
'text-surface-700 dark:text-white/80':
164
!context.focused && !context.selected,
165
'bg-surface-200 dark:bg-surface-600/60':
166
context.focused && !context.selected,
167
'text-surface-700 dark:text-white/80':
168
context.focused && !context.selected,
169
'bg-highlight': context.selected,
174
'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
175
!context.focused && !context.selected,
177
{ 'hover:bg-highlight-emphasis': context.selected },
179
'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-[rgba(255,255,255,0.03)]':
180
context.focused && !context.selected,
184
'transition-shadow duration-200',
187
'cursor-pointer overflow-hidden whitespace-nowrap',
198
'text-surface-400 dark:text-surface-500',
205
'relative -ms-1.5 me-1.5 text-surface-700 dark:text-white/80 w-4 h-4',
206
optionBlankIcon: 'w-4 h-4',
216
'text-surface-800 dark:text-white/80',
232
'text-surface-700 dark:text-white/80',
233
'bg-surface-0 dark:bg-surface-900',
234
'border-surface-300 dark:border-surface-700',
240
'text-surface-400 dark:text-surface-500',
252
class: 'text-surface-400 dark:text-surface-500 animate-spin',
255
enterFromClass: 'opacity-0 scale-y-[0.8]',
257
'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
258
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
259
leaveToClass: 'opacity-0',