sposchedule
122 строки · 2.3 Кб
1export default {2root: {3class: [4// Shape5'rounded-md',6
7// Size8'min-w-[12rem]',9'p-1',10
11// Colors12'bg-surface-0 dark:bg-surface-900',13'border border-surface-200 dark:border-surface-700',14],15},16rootList: {17class: [18// Spacings and Shape19'list-none',20'flex flex-col',21'm-0 p-0',22'outline-none',23],24},25item: {26class: 'relative my-[2px] [&:first-child]:mt-0',27},28itemContent: ({ context }) => ({29class: [30//Shape31'rounded-[4px]',32
33// Colors34{35'text-surface-500 dark:text-white/70':36!context.focused && !context.active,37'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90':38context.focused && !context.active,39'bg-highlight text-highlight-contrast':40(context.focused && context.active) ||41context.active ||42(!context.focused && context.active),43},44
45// Transitions46'transition-shadow',47'duration-200',48
49// States50{51'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':52!context.active,53'hover:bg-highlight-emphasis': context.active,54},55
56// Disabled57{ 'opacity-60 pointer-events-none cursor-default': context.disabled },58],59}),60itemLink: {61class: [62'relative',63// Flexbox64
65'flex',66'items-center',67
68// Spacing69'py-2',70'px-3',71
72// Misc73'no-underline',74'overflow-hidden',75'cursor-pointer',76'select-none',77],78},79itemIcon: {80class: [81// Spacing82'mr-2',83],84},85itemLabel: {86class: ['leading-none'],87},88submenuIcon: {89class: [90// Position91'ml-auto',92],93},94submenu: {95class: [96// Spacing97'flex flex-col',98'm-0',99'p-1',100'list-none',101'min-w-[12.5rem]',102
103// Shape104'shadow-none sm:shadow-md',105'border border-surface-200 dark:border-surface-700',106
107// Position108'static sm:absolute',109'z-10',110
111// Color112'bg-surface-0 dark:bg-surface-900',113],114},115separator: {116class: 'border-t border-surface-200 dark:border-surface-600',117},118transition: {119enterFromClass: 'opacity-0',120enterActiveClass: 'transition-opacity duration-250',121},122};123