2
root: ({ props }) => ({
13
'bg-surface-0 dark:bg-surface-900',
14
'border border-surface-200 dark:border-surface-700',
16
'p-2 items-center': props.orientation == 'horizontal',
17
'flex-col sm:w-48 p-1': props.orientation !== 'horizontal',
21
rootList: ({ props }) => ({
27
'flex-col sm:flex-row',
28
{ hidden: !props?.mobileActive, flex: props?.mobileActive },
31
'absolute sm:relative',
33
'sm:top-auto sm:left-auto',
44
'shadow-md sm:shadow-none',
48
'bg-surface-0 dark:bg-surface-900 sm:bg-transparent dark:sm:bg-transparent',
54
item: ({ props }) => ({
56
'sm:relative static my-[2px] [&:first-child]:mt-0',
58
'sm:w-auto w-full': props.horizontal,
59
'w-full': !props.horizontal,
63
itemContent: ({ context }) => ({
69
'text-surface-500 dark:text-white/70':
70
!context.focused && !context.active,
71
'text-surface-500 dark:text-white/70 bg-surface-200':
72
context.focused && !context.active,
74
(context.focused && context.active) ||
76
(!context.focused && context.active),
81
'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
83
'hover:bg-highlight-emphasis': context.active,
116
submenuIcon: ({ props }) => ({
119
'ml-auto sm:ml-2': props.horizontal,
120
'ml-auto': !props.horizontal,
124
overlay: ({ props }) => ({
133
'shadow-none sm:shadow-md',
138
'bg-surface-0 dark:bg-surface-900',
141
'static sm:absolute',
144
'sm:left-full top-0': !props.horizontal,
149
class: 'flex flex-wrap sm:flex-nowrap',
152
class: 'w-full sm:w-1/2',
155
class: ['m-0 list-none', 'p-1 px-2 w-full sm:min-w-[14rem]'],
166
'text-surface-400 dark:text-surface-500',
167
'bg-surface-0 dark:bg-surface-900',
171
class: 'border-t border-surface-200 dark:border-surface-600 my-1',
177
'items-center justify-center',
186
'text-surface-500 dark:text-white/80',
189
'hover:text-surface-600 dark:hover:text-white/60',
190
'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]',
191
'focus:outline-none focus:outline-offset-0',
192
'focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
195
'transition duration-200 ease-in-out',
203
class: 'ml-auto self-center',