burne-ui 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,8 @@ export declare const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 truncate bg-trans
|
|
|
7
7
|
export declare const SELECT_VALUE_MUTED_CLASS = "text-muted";
|
|
8
8
|
export declare const SELECT_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring";
|
|
9
9
|
export declare const SELECT_TRIGGER_DISABLED_CLASS = "pointer-events-none";
|
|
10
|
-
|
|
10
|
+
/** Above Dialog/Drawer (`z-[100]`), aligned with Dropdown submenus. */
|
|
11
|
+
export declare const SELECT_POPOVER_CLASS = "z-[110]";
|
|
11
12
|
export declare const SELECT_POPOVER_BODY_CLASS = "gap-0 p-base";
|
|
12
13
|
export declare const SELECT_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
|
|
13
14
|
export declare const SELECT_TRIGGER_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { LabelHTMLAttributes } from 'react';
|
|
2
1
|
import { SwitchContent, SwitchControl, SwitchError, SwitchFill, SwitchHint, SwitchIcon, SwitchLabel, SwitchThumb, SwitchTrack } from './switchParts';
|
|
3
2
|
import { SwitchControlProps } from './switchTypes';
|
|
4
3
|
export type { SwitchClassNames, SwitchControlProps, SwitchTrackProps, SwitchFillProps, SwitchThumbProps, SwitchIconProps, SwitchIconWhen, SwitchSize, SwitchLabelPosition, SwitchContentProps, SwitchLabelProps, SwitchHintProps, SwitchErrorProps, SwitchRootProps, SwitchSimpleProps, } from './switchTypes';
|
|
5
4
|
export { SWITCH_LAYOUT } from './switchStyles';
|
|
6
|
-
export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
|
|
5
|
+
export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
|
|
7
6
|
children?: import('react').ReactNode;
|
|
8
7
|
label?: import('react').ReactNode;
|
|
9
8
|
hint?: import('react').ReactNode;
|
|
@@ -3,6 +3,7 @@ import { ClassValue } from 'clsx';
|
|
|
3
3
|
export declare function mergeSwitchSlotClass(...parts: ClassValue[]): string;
|
|
4
4
|
export declare function useMergedChecked(checked: boolean | undefined, defaultChecked: boolean | undefined): [boolean, (next: boolean) => void, boolean];
|
|
5
5
|
export declare function compoundUsesInlineMotion(className: string | undefined): boolean;
|
|
6
|
+
export declare function injectSwitchControlProps(children: ReactNode, controlProps: Record<string, unknown>): ReactNode;
|
|
6
7
|
export declare function compoundHasLabel(children: ReactNode): boolean;
|
|
7
8
|
export declare function countSecondaryLines(isCompound: boolean, hasHint: boolean, hasError: boolean, hasCompoundHint: boolean, hasCompoundError: boolean): number;
|
|
8
9
|
export declare function partitionSwitchControlChildren(children: ReactNode): {
|