| import { cn } from "#/utils/utils"; |
| import { formControlShellClassName } from "#/utils/form-control-classes"; |
|
|
| |
| export const dropdownInstantColorClassName = "transition-none"; |
|
|
| |
| export const dropdownMenuListGapClassName = "gap-0.5"; |
|
|
| |
| export const dropdownMenuRowGapClassName = "gap-2"; |
|
|
| |
| export const dropdownMenuListClassName = cn( |
| "flex flex-col", |
| dropdownMenuListGapClassName, |
| ); |
|
|
| |
| export const dropdownTriggerShellClassName = cn( |
| "bg-tertiary border border-[var(--oh-border-input)] rounded p-2", |
| "flex items-center gap-2", |
| formControlShellClassName, |
| dropdownInstantColorClassName, |
| "group w-full gap-2 px-3 text-[var(--oh-muted)] hover:text-white", |
| ); |
|
|
| |
| export const dropdownMenuRowClassName = cn( |
| "group flex w-full cursor-pointer items-center rounded px-2 py-2 text-left text-sm font-normal text-white", |
| dropdownMenuRowGapClassName, |
| "hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-60", |
| dropdownInstantColorClassName, |
| ); |
|
|
| |
| export const dropdownMenuRowForegroundClassName = cn( |
| "group flex w-full cursor-pointer items-center rounded px-2 py-2 text-start text-sm font-normal", |
| dropdownMenuRowGapClassName, |
| "text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]", |
| "disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent", |
| dropdownInstantColorClassName, |
| ); |
|
|
| |
| export const dropdownMenuRowIconClassName = cn( |
| "shrink-0 text-[var(--oh-muted)] group-hover:text-white group-focus-visible:text-white", |
| dropdownInstantColorClassName, |
| ); |
|
|
| |
| export const dropdownMenuRowIconWrapperClassName = cn( |
| "flex size-4 shrink-0 items-center justify-center [&_svg]:text-current", |
| dropdownMenuRowIconClassName, |
| ); |
|
|
| |
| export const dropdownFilterTriggerClassName = cn( |
| "inline-flex cursor-pointer items-center gap-1.5 rounded-lg border px-3 py-2 text-sm font-medium", |
| "border-[var(--oh-border)] bg-base-secondary text-white", |
| "focus-visible:border-white/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20", |
| dropdownInstantColorClassName, |
| ); |
|
|
| |
| |
| |
| |
| export const switchProfileMenuListScrollClassName = cn( |
| dropdownMenuListClassName, |
| "overflow-y-auto custom-scrollbar-always", |
| "max-h-[13.875rem]", |
| ); |
|
|
| |
| |
| |
| |
| export const dropdownMenuViewportScrollClassName = cn( |
| "overflow-y-auto custom-scrollbar", |
| "max-h-[min(60vh,calc(100dvh-5rem))]", |
| ); |
|
|
| |
| export const dropdownFooterActionClassName = cn( |
| "group flex w-full items-center rounded-md px-2 py-2 text-sm font-normal text-white", |
| dropdownMenuRowGapClassName, |
| "hover:bg-[var(--oh-interactive-hover)]", |
| dropdownInstantColorClassName, |
| ); |
|
|