burne-ui 1.6.6 → 1.6.8
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.
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/index.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +10 -6
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +5 -14
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +2 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +1 -1
- package/dist/components/composite/Form/formTypes.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +2 -1
- package/dist/components/core/Alert/alertTypes.d.ts +1 -1
- package/dist/components/core/Alert/useAlertRootState.d.ts +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +1 -1
- package/dist/components/core/Button/buttonTypes.d.ts +1 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +2 -2
- package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
- package/dist/components/core/Calendar/calendarStyles.d.ts +2 -1
- package/dist/components/core/Calendar/index.d.ts +2 -2
- package/dist/components/core/Card/Card.d.ts +2 -1
- package/dist/components/core/Card/cardContext.d.ts +9 -2
- package/dist/components/core/Card/cardStyles.d.ts +15 -8
- package/dist/components/core/Card/cardTypes.d.ts +7 -2
- package/dist/components/core/Card/index.d.ts +2 -1
- package/dist/components/core/Card/useCardRootState.d.ts +2 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +1 -7
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +1 -5
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +1 -1
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +2 -2
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +3 -2
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -0
- package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +6 -0
- package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +1 -1
- package/dist/components/core/Dialog/dialogStyles.d.ts +11 -7
- package/dist/components/core/Dialog/dialogTypes.d.ts +4 -15
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +3 -3
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAPI.d.ts +2 -0
- package/dist/components/core/Drawer/drawerStyles.d.ts +13 -11
- package/dist/components/core/Drawer/drawerTypes.d.ts +12 -1
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.d.ts +3 -7
- package/dist/components/core/Expandable/expandableTypes.d.ts +1 -1
- package/dist/components/core/Field/fieldContext.d.ts +1 -1
- package/dist/components/core/Field/fieldStyles.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +1 -1
- package/dist/components/core/Input/useInputRootState.d.ts +1 -1
- package/dist/components/core/Link/linkTypes.d.ts +1 -1
- package/dist/components/core/Link/useLinkRootState.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxAPI.d.ts +5 -2
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +5 -2
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +1 -1
- package/dist/components/core/Pagination/paginationStyles.d.ts +5 -4
- package/dist/components/core/Popover/popoverContext.d.ts +7 -0
- package/dist/components/core/Popover/popoverStyles.d.ts +24 -16
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -5
- package/dist/components/core/Radio/Radio.d.ts +1 -1
- package/dist/components/core/Radio/index.d.ts +1 -1
- package/dist/components/core/Radio/radioStyles.d.ts +1 -7
- package/dist/components/core/Radio/useRadioRootState.d.ts +1 -5
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -1
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/index.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +9 -6
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +2 -2
- package/dist/components/core/SelectionThumb/selectionThumbStyles.d.ts +5 -11
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +0 -4
- package/dist/components/core/Slider/sliderStyles.d.ts +12 -7
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/sliderTypes.d.ts +1 -1
- package/dist/components/core/Slider/useSliderTrackState.d.ts +16 -16
- package/dist/components/core/Switch/Switch.d.ts +1 -1
- package/dist/components/core/Switch/index.d.ts +2 -2
- package/dist/components/core/Switch/switchAnimations.d.ts +1 -1
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchGeometry.d.ts +3 -3
- package/dist/components/core/Switch/switchStyles.d.ts +3 -2
- package/dist/components/core/Switch/switchTypes.d.ts +0 -2
- package/dist/components/core/Switch/useSwitchRootState.d.ts +14 -14
- package/dist/components/core/Tabs/tabsTypes.d.ts +1 -1
- package/dist/components/core/Text/textStyles.d.ts +7 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +4 -3
- package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
- package/dist/components/core/TextArea/useTextAreaRootState.d.ts +1 -1
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +4 -3
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
- package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +1 -1
- package/dist/components/core/Toast/useToastProviderState.d.ts +1 -1
- package/dist/components/core/Toast/useToastRootState.d.ts +1 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -1
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -0
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -2
- package/dist/components/core/utils/controlHeightMeasure.d.ts +1 -1
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +13 -6
- package/dist/components/core/utils/inputAffixLayout.d.ts +1 -1
- package/dist/components/core/utils/motionConfig.d.ts +1 -1
- package/dist/components/core/utils/optionListItemParts.d.ts +6 -2
- package/dist/components/core/utils/{messageBannerSize.d.ts → sizeLayout/banner.d.ts} +5 -3
- package/dist/components/core/utils/sizeLayout/collapsible.d.ts +25 -0
- package/dist/components/core/utils/{componentSize.d.ts → sizeLayout/componentSize.d.ts} +1 -0
- package/dist/components/core/utils/{controlSizeLayout.d.ts → sizeLayout/control.d.ts} +3 -1
- package/dist/components/core/utils/sizeLayout/index.d.ts +16 -0
- package/dist/components/core/utils/sizeLayout/option.d.ts +15 -0
- package/dist/components/core/utils/sizeLayout/panel.d.ts +54 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10472 -10150
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +28 -26
- package/dist/{themeRuntimeContext-cixzM5Ix.js → themeRuntimeContext-CE8HsqSx.js} +1355 -1334
- package/dist/themeRuntimeContext-zhfbKb8L.cjs +50 -0
- package/dist/tokens/breakpoints.d.ts +14 -0
- package/dist/tokens/config.d.ts +7 -1
- package/dist/tokens/index.d.ts +2 -1
- package/dist/ui.css +325 -85
- package/package.json +1 -1
- package/dist/themeRuntimeContext-DHGARM65.cjs +0 -50
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
export type SelectionIndicatorSize = "small" | "base" | "mid" | "large";
|
|
1
|
+
export type SelectionIndicatorSize = "xsmall" | "small" | "base" | "mid" | "large";
|
|
2
2
|
export type SelectionIndicatorVariant = "default" | "secondary" | "outline" | "gloss";
|
|
3
3
|
export declare const SELECTION_INDICATOR_SIZE_CLASS: Record<SelectionIndicatorSize, string>;
|
|
4
|
+
/** Corner radius from `--selection-indicator-radius-*` (`--radius-*` × 0.75). */
|
|
5
|
+
export declare const SELECTION_INDICATOR_RADIUS_CLASS: Record<SelectionIndicatorSize, string>;
|
|
6
|
+
/** Mark icon box — `--icon-size-*` × 0.75 so marks fit inside the indicator ring. */
|
|
4
7
|
export declare const SELECTION_INDICATOR_ICON_CLASS: Record<SelectionIndicatorSize, string>;
|
|
5
8
|
export declare const SELECTION_INDICATOR_MARK_CLASS = "pointer-events-none relative z-[2] inline-flex items-center justify-center";
|
|
6
9
|
export declare function selectionIndicatorMarkCheckIconClass(size: SelectionIndicatorSize): string;
|
|
7
10
|
/** Custom mark icons: no `[&_svg]:size-full` — `icon-*` on the icon itself controls size. */
|
|
8
11
|
export declare function selectionIndicatorMarkCustomIconClass(size: SelectionIndicatorSize): string;
|
|
9
12
|
export declare const SELECTION_INDICATOR_DOT_CLASS: Record<SelectionIndicatorSize, string>;
|
|
10
|
-
export declare const SELECTION_INDICATOR_DOT_INNER_CLASS = "shrink-0
|
|
11
|
-
export declare const SELECTION_INDICATOR_DOT_INNER_GLOSS_CLASS = "shrink-0
|
|
12
|
-
export declare const SELECTION_INDICATOR_SHELL_CLASS = "relative box-border inline-flex shrink-0 items-center justify-center overflow-hidden
|
|
13
|
-
export declare const SELECTION_INDICATOR_FILL_BASE_CLASS = "pointer-events-none absolute inset-
|
|
13
|
+
export declare const SELECTION_INDICATOR_DOT_INNER_CLASS = "shrink-0 bg-indicator-foreground";
|
|
14
|
+
export declare const SELECTION_INDICATOR_DOT_INNER_GLOSS_CLASS = "shrink-0 bg-foreground";
|
|
15
|
+
export declare const SELECTION_INDICATOR_SHELL_CLASS = "relative box-border inline-flex shrink-0 items-center justify-center overflow-hidden";
|
|
16
|
+
export declare const SELECTION_INDICATOR_FILL_BASE_CLASS = "pointer-events-none absolute -inset-[var(--border-width)] z-[0] flex origin-center items-center justify-center rounded-[inherit]";
|
|
14
17
|
export declare const SELECTION_INDICATOR_FILL_CLASS = "bg-indicator text-indicator-foreground";
|
|
15
18
|
export declare const SELECTION_INDICATOR_FILL_SECONDARY_CLASS = "bg-secondary text-secondary-foreground";
|
|
16
|
-
export declare const SELECTION_INDICATOR_FILL_GLOSS_CLASS
|
|
19
|
+
export declare const SELECTION_INDICATOR_FILL_GLOSS_CLASS: string;
|
|
17
20
|
/** Gloss fill for Switch/Slider thumb — primary-tint like ToggleButton, without gloss-indicator-fill. */
|
|
18
21
|
export declare const SELECTION_INDICATOR_FILL_GLOSS_TINT_CLASS: string;
|
|
19
22
|
export declare function selectionIndicatorFallbackPx(size: SelectionIndicatorSize, rootPx?: number): number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SelectionThumbIconProps, SelectionThumbProps } from './selectionThumbTypes';
|
|
2
2
|
export type { SelectionThumbClassNames, SelectionThumbIconClassNames, SelectionThumbIconProps, SelectionThumbProps, } from './selectionThumbTypes';
|
|
3
|
-
export declare function SelectionThumb({
|
|
3
|
+
export declare function SelectionThumb({ size, gloss, shellRef, className, classNames, children, ...rest }: SelectionThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace SelectionThumb {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function SelectionThumbIcon({ size,
|
|
7
|
+
export declare function SelectionThumbIcon({ size, gloss, iconRef, className, classNames, children, style, ...rest }: SelectionThumbIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare namespace SelectionThumbIcon {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -3,22 +3,16 @@ export declare const SELECTION_THUMB_SHELL_GLOSS_CLASS = "gloss-indicator size-f
|
|
|
3
3
|
export declare const SELECTION_THUMB_SHELL_DEFAULT_CLASS = "size-full min-h-0 min-w-0 origin-center border border-primary bg-surface";
|
|
4
4
|
export declare const SELECTION_THUMB_ICON_WRAP_CLASS = "pointer-events-none z-[2] flex items-center justify-center";
|
|
5
5
|
export declare const SELECTION_THUMB_ICON_INNER_CLASS = "inline-flex shrink-0 items-center justify-center [&_svg]:size-full";
|
|
6
|
-
export declare function selectionThumbShellClass({ gloss, className, slotRoot, }: {
|
|
6
|
+
export declare function selectionThumbShellClass({ gloss, size, className, slotRoot, }: {
|
|
7
7
|
gloss: boolean;
|
|
8
|
+
size: SelectionIndicatorSize;
|
|
8
9
|
className?: string;
|
|
9
10
|
slotRoot?: string;
|
|
10
11
|
}): string;
|
|
11
|
-
|
|
12
|
+
/** Icon color is stable (no on/off / active tint swap). */
|
|
13
|
+
export declare function selectionThumbIconColorClass(gloss: boolean): string;
|
|
14
|
+
export declare function selectionThumbIconRootClass({ gloss, className, slotRoot, }: {
|
|
12
15
|
gloss: boolean;
|
|
13
|
-
slotFill?: string;
|
|
14
|
-
}): string;
|
|
15
|
-
export declare function selectionThumbIconColorClass({ gloss, highlighted, }: {
|
|
16
|
-
gloss: boolean;
|
|
17
|
-
highlighted: boolean;
|
|
18
|
-
}): string;
|
|
19
|
-
export declare function selectionThumbIconRootClass({ gloss, highlighted, className, slotRoot, }: {
|
|
20
|
-
gloss: boolean;
|
|
21
|
-
highlighted: boolean;
|
|
22
16
|
className?: string;
|
|
23
17
|
slotRoot?: string;
|
|
24
18
|
}): string;
|
|
@@ -2,24 +2,20 @@ import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import { SelectionIndicatorSize } from '../SelectionIndicator/selectionIndicatorTokens';
|
|
3
3
|
export type SelectionThumbClassNames = {
|
|
4
4
|
root?: string;
|
|
5
|
-
fill?: string;
|
|
6
5
|
};
|
|
7
6
|
export type SelectionThumbIconClassNames = {
|
|
8
7
|
root?: string;
|
|
9
8
|
icon?: string;
|
|
10
9
|
};
|
|
11
10
|
export type SelectionThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
12
|
-
active: boolean;
|
|
13
11
|
size?: SelectionIndicatorSize;
|
|
14
12
|
shellRef?: RefObject<HTMLSpanElement | null>;
|
|
15
|
-
fillRef?: RefObject<HTMLSpanElement | null>;
|
|
16
13
|
gloss?: boolean;
|
|
17
14
|
children?: ReactNode;
|
|
18
15
|
classNames?: SelectionThumbClassNames;
|
|
19
16
|
};
|
|
20
17
|
export type SelectionThumbIconProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
21
18
|
size?: SelectionIndicatorSize;
|
|
22
|
-
highlighted?: boolean;
|
|
23
19
|
gloss?: boolean;
|
|
24
20
|
iconRef?: RefObject<HTMLSpanElement | null>;
|
|
25
21
|
children?: ReactNode;
|
|
@@ -6,12 +6,13 @@ export declare const SLIDER_SCALE_HEADER_VERTICAL_CLASS = "min-w-[8rem]";
|
|
|
6
6
|
export declare const SLIDER_SCALE_VALUE_CLASS = "tabular-nums text-muted";
|
|
7
7
|
export declare const SLIDER_RAIL_HEIGHT: Record<SliderSize, string>;
|
|
8
8
|
export declare const SLIDER_RAIL_WIDTH: Record<SliderSize, string>;
|
|
9
|
-
export declare const SLIDER_RAIL_LAYOUT_CLASS = "pointer-events-none absolute inset-0 overflow-hidden
|
|
9
|
+
export declare const SLIDER_RAIL_LAYOUT_CLASS = "pointer-events-none absolute inset-0 overflow-hidden";
|
|
10
10
|
export declare const SLIDER_RAIL_DEFAULT_CLASS = "bg-primary-tint";
|
|
11
11
|
export declare const SLIDER_RAIL_GLOSS_CLASS = "gloss-indicator border-0";
|
|
12
|
-
export declare const SLIDER_RAIL_GLOSS_SHAPE_CLASS = "overflow-hidden
|
|
12
|
+
export declare const SLIDER_RAIL_GLOSS_SHAPE_CLASS = "overflow-hidden";
|
|
13
13
|
export declare const SLIDER_RAIL_DISABLED_CLASS = "opacity-48";
|
|
14
|
-
|
|
14
|
+
/** Rail fill — clipped by rail `overflow-hidden` (same radius as thumb). */
|
|
15
|
+
export declare const SLIDER_FILL_LAYOUT_CLASS = "absolute rounded-[inherit]";
|
|
15
16
|
export declare const SLIDER_FILL_DEFAULT_CLASS = "bg-primary";
|
|
16
17
|
export declare const SLIDER_FILL_GLOSS_CLASS = "bg-primary-tint";
|
|
17
18
|
export declare const SLIDER_FILL_GLOSS_LAYER_CLASS = "z-[1]";
|
|
@@ -20,18 +21,21 @@ export declare const SLIDER_FILL_VERTICAL_CLASS = "inset-x-0";
|
|
|
20
21
|
export declare const SLIDER_TRACK_HIT_BASE_CLASS = "relative touch-none select-none";
|
|
21
22
|
export declare const SLIDER_TRACK_HIT_HORIZONTAL_CLASS = "w-full";
|
|
22
23
|
export declare const SLIDER_TRACK_HIT_VERTICAL_CLASS = "h-48";
|
|
23
|
-
export declare const SLIDER_MARK_CLASS = "pointer-events-none absolute z-[1] size-1 rounded-
|
|
24
|
-
export declare const SLIDER_THUMB_BUTTON_BASE_CLASS = "absolute
|
|
24
|
+
export declare const SLIDER_MARK_CLASS = "pointer-events-none absolute z-[1] size-1 rounded-[var(--selection-indicator-radius-xsmall)] bg-primary/30";
|
|
25
|
+
export declare const SLIDER_THUMB_BUTTON_BASE_CLASS = "absolute box-border flex shrink-0 origin-center items-center justify-center m-0 appearance-none border-0 bg-transparent p-0 focus-ring";
|
|
25
26
|
export declare const SLIDER_THUMB_BUTTON_HORIZONTAL_CLASS = "top-0 h-full w-auto -translate-x-1/2 aspect-square";
|
|
26
27
|
export declare const SLIDER_THUMB_BUTTON_VERTICAL_CLASS = "left-0 w-full h-auto -translate-y-1/2 aspect-square";
|
|
27
28
|
export declare const SLIDER_THUMB_BUTTON_DISABLED_CLASS = "cursor-not-allowed";
|
|
28
29
|
export declare const SLIDER_THUMB_BUTTON_ENABLED_CLASS = "cursor-grab active:cursor-grabbing";
|
|
30
|
+
export declare const SLIDER_THUMB_BUTTON_Z_CLASS = "z-[2]";
|
|
31
|
+
export declare const SLIDER_THUMB_BUTTON_Z_ACTIVE_CLASS = "z-[3]";
|
|
29
32
|
export declare function sliderRootClass({ orientation, slotClass, className, }: {
|
|
30
33
|
orientation: SliderOrientation;
|
|
31
34
|
slotClass?: string;
|
|
32
35
|
className?: string;
|
|
33
36
|
}): string;
|
|
34
|
-
export declare function sliderRailClass({ disabled, gloss, slotClass, className, }: {
|
|
37
|
+
export declare function sliderRailClass({ size, disabled, gloss, slotClass, className, }: {
|
|
38
|
+
size: SliderSize;
|
|
35
39
|
disabled?: boolean;
|
|
36
40
|
gloss?: boolean;
|
|
37
41
|
slotClass?: string;
|
|
@@ -51,9 +55,10 @@ export declare function sliderTrackHitAreaClass({ isHorizontal, size, thickness,
|
|
|
51
55
|
slotClass?: string;
|
|
52
56
|
className?: string;
|
|
53
57
|
}): string;
|
|
54
|
-
export declare function sliderThumbButtonClass({ orientation, disabled, slotClass, className, }: {
|
|
58
|
+
export declare function sliderThumbButtonClass({ orientation, disabled, active, slotClass, className, }: {
|
|
55
59
|
orientation: SliderOrientation;
|
|
56
60
|
disabled?: boolean;
|
|
61
|
+
active?: boolean;
|
|
57
62
|
slotClass?: string;
|
|
58
63
|
className?: string;
|
|
59
64
|
}): string;
|
|
@@ -18,4 +18,4 @@ export declare const SliderThumbButton: import('react').ForwardRefExoticComponen
|
|
|
18
18
|
ariaDescribedBy?: string;
|
|
19
19
|
onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
20
20
|
onKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
|
|
21
|
-
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "
|
|
21
|
+
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "className" | "role" | "children" | "onKeyDown" | "onPointerDown" | "disabled" | "active"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -161,7 +161,7 @@ export type SliderThumbButtonProps = {
|
|
|
161
161
|
ariaDescribedBy?: string;
|
|
162
162
|
onPointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
163
163
|
onKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
164
|
-
} & Omit<HTMLAttributes<HTMLButtonElement>, "children" | "className" | "style" | "disabled" | "onPointerDown" | "onKeyDown" | "role" | "type">;
|
|
164
|
+
} & Omit<HTMLAttributes<HTMLButtonElement>, "children" | "className" | "style" | "disabled" | "onPointerDown" | "onKeyDown" | "role" | "type" | "active">;
|
|
165
165
|
export type UseSliderRootStateProps = Omit<SliderProps, "className" | "classNames">;
|
|
166
166
|
export type FillSpan = {
|
|
167
167
|
start: number;
|
|
@@ -867,24 +867,21 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
867
867
|
translate?: "yes" | "no" | undefined | undefined;
|
|
868
868
|
color?: string | undefined | undefined;
|
|
869
869
|
prefix?: string | undefined | undefined;
|
|
870
|
-
id?: string | undefined | undefined;
|
|
871
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
872
870
|
slot?: string | undefined | undefined;
|
|
873
871
|
title?: string | undefined | undefined;
|
|
874
|
-
accessKey?: string | undefined | undefined;
|
|
875
|
-
hidden?: boolean | undefined | undefined;
|
|
876
|
-
dir?: string | undefined | undefined;
|
|
877
|
-
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
878
|
-
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
879
872
|
defaultChecked?: boolean | undefined | undefined;
|
|
880
873
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
881
874
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
875
|
+
accessKey?: string | undefined | undefined;
|
|
882
876
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
883
877
|
autoFocus?: boolean | undefined | undefined;
|
|
884
|
-
contentEditable?:
|
|
878
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
885
879
|
contextMenu?: string | undefined | undefined;
|
|
880
|
+
dir?: string | undefined | undefined;
|
|
886
881
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
887
882
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
883
|
+
hidden?: boolean | undefined | undefined;
|
|
884
|
+
id?: string | undefined | undefined;
|
|
888
885
|
lang?: string | undefined | undefined;
|
|
889
886
|
nonce?: string | undefined | undefined;
|
|
890
887
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -910,6 +907,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
910
907
|
results?: number | undefined | undefined;
|
|
911
908
|
security?: string | undefined | undefined;
|
|
912
909
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
910
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
913
911
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
914
912
|
popoverTarget?: string | undefined | undefined;
|
|
915
913
|
inert?: boolean | undefined | undefined;
|
|
@@ -1105,6 +1103,8 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1105
1103
|
onPointerUpCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1106
1104
|
onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1107
1105
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1106
|
+
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1107
|
+
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1108
1108
|
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1109
1109
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1110
1110
|
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1140,24 +1140,21 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1140
1140
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1141
1141
|
color?: string | undefined | undefined;
|
|
1142
1142
|
prefix?: string | undefined | undefined;
|
|
1143
|
-
id?: string | undefined | undefined;
|
|
1144
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1145
1143
|
slot?: string | undefined | undefined;
|
|
1146
1144
|
title?: string | undefined | undefined;
|
|
1147
|
-
accessKey?: string | undefined | undefined;
|
|
1148
|
-
hidden?: boolean | undefined | undefined;
|
|
1149
|
-
dir?: string | undefined | undefined;
|
|
1150
|
-
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1151
|
-
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1152
1145
|
defaultChecked?: boolean | undefined | undefined;
|
|
1153
1146
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
1154
1147
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
1148
|
+
accessKey?: string | undefined | undefined;
|
|
1155
1149
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
1156
1150
|
autoFocus?: boolean | undefined | undefined;
|
|
1157
|
-
contentEditable?:
|
|
1151
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
1158
1152
|
contextMenu?: string | undefined | undefined;
|
|
1153
|
+
dir?: string | undefined | undefined;
|
|
1159
1154
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1160
1155
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
1156
|
+
hidden?: boolean | undefined | undefined;
|
|
1157
|
+
id?: string | undefined | undefined;
|
|
1161
1158
|
lang?: string | undefined | undefined;
|
|
1162
1159
|
nonce?: string | undefined | undefined;
|
|
1163
1160
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -1183,6 +1180,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1183
1180
|
results?: number | undefined | undefined;
|
|
1184
1181
|
security?: string | undefined | undefined;
|
|
1185
1182
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
1183
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1186
1184
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
1187
1185
|
popoverTarget?: string | undefined | undefined;
|
|
1188
1186
|
inert?: boolean | undefined | undefined;
|
|
@@ -1378,6 +1376,8 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1378
1376
|
onPointerUpCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1379
1377
|
onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1380
1378
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1379
|
+
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1380
|
+
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1381
1381
|
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1382
1382
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1383
1383
|
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -2,7 +2,7 @@ import { SwitchContent, SwitchControl, SwitchError, SwitchFill, SwitchHint, Swit
|
|
|
2
2
|
import { SwitchControlProps } from './switchTypes';
|
|
3
3
|
export type { SwitchClassNames, SwitchControlProps, SwitchTrackProps, SwitchFillProps, SwitchThumbProps, SwitchIconProps, SwitchIconWhen, SwitchSize, SwitchLabelPosition, SwitchContentProps, SwitchLabelProps, SwitchHintProps, SwitchErrorProps, SwitchProps, SwitchSimpleProps, } from './switchTypes';
|
|
4
4
|
export { SWITCH_LAYOUT } from './switchStyles';
|
|
5
|
-
export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
5
|
+
export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
|
|
6
6
|
children?: import('react').ReactNode;
|
|
7
7
|
label?: import('react').ReactNode;
|
|
8
8
|
hint?: import('react').ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SwitchError, SwitchFill, SwitchHint, SwitchIcon, SwitchLabel, SwitchThumb, SwitchTrack } from './Switch';
|
|
2
|
-
export declare const Switch: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
4
|
label?: import('react').ReactNode;
|
|
5
5
|
hint?: import('react').ReactNode;
|
|
@@ -11,7 +11,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
11
11
|
classNames?: import('./switchTypes').SwitchClassNames;
|
|
12
12
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
13
|
} & Partial<import('./switchTypes').SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
14
|
-
Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
14
|
+
Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
|
|
15
15
|
size?: import('./switchGeometry').SwitchSize;
|
|
16
16
|
thickness?: number | string;
|
|
17
17
|
iconOff?: import('react').ReactNode;
|
|
@@ -4,4 +4,4 @@ export declare function useSwitchTextMotion({ isDisabled, enableTextMotion, text
|
|
|
4
4
|
handlePointerLeave: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
5
5
|
handlePointerDown: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function useSwitchTrackAnimations({ checked, disabled, size, thickness, squeezeToken, trackRef, trackFillRef, thumbRef, thumbShellRef,
|
|
7
|
+
export declare function useSwitchTrackAnimations({ checked, disabled, size, thickness, squeezeToken, trackRef, trackFillRef, thumbRef, thumbShellRef, iconOffRef, iconOnRef, }: UseSwitchTrackAnimationsProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
|
|
3
3
|
size?: import('./switchGeometry').SwitchSize;
|
|
4
4
|
thickness?: number | string;
|
|
5
5
|
iconOff?: ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OPTION_CONTROL_SIZE_LAYOUT } from '../utils/sizeLayout';
|
|
2
2
|
export type SwitchSize = "small" | "base" | "mid" | "large";
|
|
3
3
|
export declare function resolveFallbackThumbPx(thickness: number | string | undefined, size: SwitchSize): number;
|
|
4
4
|
export declare function measureSwitchTravel(trackEl: HTMLElement, thumbEl: HTMLElement): number;
|
|
5
5
|
export declare const SWITCH_LAYOUT: Record<SwitchSize, {
|
|
6
6
|
track: string;
|
|
7
7
|
travelPx: number;
|
|
8
|
-
title:
|
|
9
|
-
desc:
|
|
8
|
+
title: (typeof OPTION_CONTROL_SIZE_LAYOUT)[SwitchSize]["title"];
|
|
9
|
+
desc: (typeof OPTION_CONTROL_SIZE_LAYOUT)[SwitchSize]["desc"];
|
|
10
10
|
gap: string;
|
|
11
11
|
}>;
|
|
@@ -19,10 +19,11 @@ export declare const SWITCH_ROOT_BASE_CLASS = "relative cursor-pointer select-no
|
|
|
19
19
|
export declare const SWITCH_ROOT_DISABLED_CLASS = "cursor-not-allowed";
|
|
20
20
|
export declare const SWITCH_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
|
|
21
21
|
export declare const SWITCH_ROOT_CONTROL_ONLY_CLASS = "inline-grid grid-cols-[auto] grid-rows-[auto]";
|
|
22
|
-
export declare const SWITCH_TRACK_BASE_CLASS = "relative box-border inline-flex shrink-0
|
|
22
|
+
export declare const SWITCH_TRACK_BASE_CLASS = "relative box-border inline-flex shrink-0";
|
|
23
23
|
export declare const SWITCH_TRACK_GLOSS_CLASS = "gloss-indicator border-0";
|
|
24
24
|
export declare const SWITCH_TRACK_DEFAULT_CLASS = "bg-primary-tint";
|
|
25
|
-
|
|
25
|
+
/** Track fill — clipped by track `overflow-hidden` (same radius as thumb). */
|
|
26
|
+
export declare const SWITCH_FILL_BASE_CLASS = "pointer-events-none absolute inset-0 rounded-[inherit]";
|
|
26
27
|
export declare const SWITCH_FILL_GLOSS_CLASS = "z-[1]";
|
|
27
28
|
export declare const SWITCH_FILL_COLOR_CLASS = "bg-primary";
|
|
28
29
|
export declare const SWITCH_FILL_GLOSS_TINT_CLASS = "bg-primary-tint";
|
|
@@ -47,7 +47,6 @@ export type SwitchTrackContextValue = {
|
|
|
47
47
|
trackFillRef: RefObject<HTMLSpanElement | null>;
|
|
48
48
|
thumbRef: RefObject<HTMLSpanElement | null>;
|
|
49
49
|
thumbShellRef: RefObject<HTMLSpanElement | null>;
|
|
50
|
-
thumbFillRef: RefObject<HTMLSpanElement | null>;
|
|
51
50
|
iconOffRef: RefObject<HTMLSpanElement | null>;
|
|
52
51
|
iconOnRef: RefObject<HTMLSpanElement | null>;
|
|
53
52
|
};
|
|
@@ -123,7 +122,6 @@ export type UseSwitchTrackAnimationsProps = {
|
|
|
123
122
|
trackFillRef: RefObject<HTMLSpanElement | null>;
|
|
124
123
|
thumbRef: RefObject<HTMLSpanElement | null>;
|
|
125
124
|
thumbShellRef: RefObject<HTMLSpanElement | null>;
|
|
126
|
-
thumbFillRef: RefObject<HTMLSpanElement | null>;
|
|
127
125
|
iconOffRef: RefObject<HTMLSpanElement | null>;
|
|
128
126
|
iconOnRef: RefObject<HTMLSpanElement | null>;
|
|
129
127
|
};
|
|
@@ -9,8 +9,8 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
9
9
|
sz: {
|
|
10
10
|
track: string;
|
|
11
11
|
travelPx: number;
|
|
12
|
-
title: import('../
|
|
13
|
-
desc: import('../
|
|
12
|
+
title: typeof import('../utils/sizeLayout').OPTION_CONTROL_SIZE_LAYOUT[import('./switchGeometry').SwitchSize]["title"];
|
|
13
|
+
desc: typeof import('../utils/sizeLayout').OPTION_CONTROL_SIZE_LAYOUT[import('./switchGeometry').SwitchSize]["desc"];
|
|
14
14
|
gap: string;
|
|
15
15
|
};
|
|
16
16
|
label: import('react').ReactNode;
|
|
@@ -29,27 +29,24 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
29
29
|
translate?: "yes" | "no" | undefined;
|
|
30
30
|
color?: string | undefined;
|
|
31
31
|
prefix?: string | undefined;
|
|
32
|
-
id?: string | undefined;
|
|
33
|
-
style?: import('react').CSSProperties | undefined;
|
|
34
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
35
32
|
form?: string | undefined;
|
|
36
33
|
slot?: string | undefined;
|
|
34
|
+
style?: import('react').CSSProperties | undefined;
|
|
37
35
|
title?: string | undefined;
|
|
38
|
-
accessKey?: string | undefined;
|
|
39
|
-
hidden?: boolean | undefined;
|
|
40
|
-
dir?: string | undefined;
|
|
41
|
-
onPointerEnter?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
42
|
-
onPointerLeave?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
43
36
|
defaultChecked?: boolean | undefined;
|
|
44
37
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
45
38
|
suppressContentEditableWarning?: boolean | undefined;
|
|
46
39
|
suppressHydrationWarning?: boolean | undefined;
|
|
40
|
+
accessKey?: string | undefined;
|
|
47
41
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
48
42
|
autoFocus?: boolean | undefined;
|
|
49
43
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
50
44
|
contextMenu?: string | undefined;
|
|
45
|
+
dir?: string | undefined;
|
|
51
46
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
52
47
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
48
|
+
hidden?: boolean | undefined;
|
|
49
|
+
id?: string | undefined;
|
|
53
50
|
lang?: string | undefined;
|
|
54
51
|
nonce?: string | undefined;
|
|
55
52
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -75,6 +72,7 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
75
72
|
results?: number | undefined;
|
|
76
73
|
security?: string | undefined;
|
|
77
74
|
unselectable?: "on" | "off" | undefined;
|
|
75
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
78
76
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
79
77
|
popoverTarget?: string | undefined;
|
|
80
78
|
inert?: boolean | undefined;
|
|
@@ -272,6 +270,8 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
272
270
|
onPointerUpCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
273
271
|
onPointerCancel?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
274
272
|
onPointerCancelCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
273
|
+
onPointerEnter?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
274
|
+
onPointerLeave?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
275
275
|
onPointerOver?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
276
276
|
onPointerOverCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
277
277
|
onPointerOut?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
@@ -304,15 +304,15 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
304
304
|
onTransitionStartCapture?: (import('react').TransitionEventHandler<HTMLLabelElement> & import('react').TransitionEventHandler<HTMLInputElement>) | undefined;
|
|
305
305
|
onPointerDown?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
306
306
|
height?: number | string | undefined | undefined;
|
|
307
|
-
width?: number | string | undefined | undefined;
|
|
308
307
|
pattern?: string | undefined | undefined;
|
|
309
|
-
value?: string | number | readonly string[] | undefined;
|
|
310
|
-
multiple?: boolean | undefined | undefined;
|
|
311
308
|
onChange?: import('react').ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
312
|
-
required?: boolean | undefined | undefined;
|
|
313
309
|
list?: string | undefined | undefined;
|
|
314
310
|
step?: number | string | undefined | undefined;
|
|
311
|
+
width?: number | string | undefined | undefined;
|
|
315
312
|
name?: string | undefined | undefined;
|
|
313
|
+
value?: string | number | readonly string[] | undefined;
|
|
314
|
+
multiple?: boolean | undefined | undefined;
|
|
315
|
+
required?: boolean | undefined | undefined;
|
|
316
316
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
317
317
|
accept?: string | undefined | undefined;
|
|
318
318
|
alt?: string | undefined | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
export type TabsOrientation = "horizontal" | "vertical";
|
|
4
4
|
export type TabsVariant = "default" | "outline" | "secondary" | "gloss";
|
|
5
5
|
export type TabsSize = ComponentSize;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
2
|
import { TextVariant } from './textTypes';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Size + weight only. Line-height is a separate `leading-*` class so callers
|
|
5
|
+
* (and panel titles) can override via `cn` / twMerge without `!important`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const TEXT_VARIANT_FACE_CLASS: Record<TextVariant, string>;
|
|
8
|
+
/** Default role line-height — swapped out when `className` has another `leading-*`. */
|
|
9
|
+
export declare const TEXT_VARIANT_LEADING_CLASS: Record<TextVariant, string>;
|
|
4
10
|
export declare const TEXT_VARIANT_DEFAULT_AS: Record<TextVariant, ElementType>;
|
|
5
11
|
export declare const TEXT_FOREGROUND_CLASS = "text-foreground";
|
|
6
12
|
export declare function textRootClass(variant: TextVariant, inheritColor: boolean | undefined, className?: string): string;
|
|
@@ -3,9 +3,10 @@ export declare const TEXTAREA_STATUS_TINT_SHELL_CLASS: Record<Exclude<TextAreaSt
|
|
|
3
3
|
export declare const TEXTAREA_MIN_H: Record<TextAreaSize, string>;
|
|
4
4
|
export declare const TEXTAREA_SHELL_LAYOUT_CLASS = "flex flex-col items-stretch";
|
|
5
5
|
export declare const TEXTAREA_CONTROL_BASE_CLASS = "box-border block min-h-0 w-full flex-1 resize-none overflow-auto bg-transparent font-inherit text-foreground outline-none placeholder:text-muted appearance-none [field-sizing:content] field-control-mobile-no-zoom";
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
6
|
+
/** Resize grip strokes — micro-geometry for the affordance (not spacing scale). */
|
|
7
|
+
export declare const TEXTAREA_RESIZE_GRIP_LINE_PRIMARY_CLASS = "absolute bottom-[length:calc(var(--border-width)*2)] right-0 block h-[length:var(--border-width)] w-[length:calc(var(--border-width)*9)] origin-bottom-right rotate-[135deg] bg-muted";
|
|
8
|
+
export declare const TEXTAREA_RESIZE_GRIP_LINE_SECONDARY_CLASS = "absolute bottom-[length:calc(var(--border-width)*6)] right-0 block h-[length:var(--border-width)] w-[length:calc(var(--border-width)*6)] origin-bottom-right rotate-[135deg] bg-muted";
|
|
9
|
+
export declare const TEXTAREA_RESIZE_GRIP_WRAP_CLASS = "relative block size-[length:var(--size-scale-small)] shrink-0";
|
|
9
10
|
export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 right-0 z-[2] m-0 flex touch-none select-none appearance-none border-0 bg-transparent items-end justify-end p-xsmall outline-none focus-ring-inset";
|
|
10
11
|
export declare const TEXTAREA_RESIZE_HANDLE_DISABLED_CLASS = "cursor-not-allowed opacity-45";
|
|
11
12
|
export declare const TEXTAREA_RESIZE_HANDLE_ENABLED_CLASS = "cursor-ns-resize";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, PointerEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
4
4
|
export type TextAreaVariant = "default" | "outline" | "secondary" | "gloss";
|
|
5
5
|
export type TextAreaStatus = SemanticStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent, RefObject } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
export declare function useTextAreaResize(shellRef: RefObject<HTMLElement | null>, enabled: boolean, blocked: boolean, size: ComponentSize): {
|
|
4
4
|
onResizePointerDown: (e: ReactPointerEvent<HTMLButtonElement>) => void;
|
|
5
5
|
onResizeKeyDown: (e: ReactKeyboardEvent<HTMLButtonElement>) => void;
|
|
@@ -12,5 +12,5 @@ export declare function useTextAreaRootState({ children, label, hint, error, id:
|
|
|
12
12
|
hint: import('react').ReactNode;
|
|
13
13
|
error: import('react').ReactNode;
|
|
14
14
|
status: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
15
|
-
size: import('../utils/
|
|
15
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
16
16
|
};
|
|
@@ -6,13 +6,14 @@ export declare const TIME_FIELD_AFFIX_PREFIX_EDGE_CLASS = "border-r-token";
|
|
|
6
6
|
export declare const TIME_FIELD_AFFIX_SUFFIX_EDGE_CLASS = "border-l-token";
|
|
7
7
|
export declare const TIME_FIELD_KEYBOARD_INPUT_CLASS = "pointer-events-none absolute h-px w-px opacity-0 field-control-mobile-no-zoom";
|
|
8
8
|
export declare const TIME_FIELD_SEGMENT_BASE_CLASS = "inline-flex min-w-[2ch] select-none items-center justify-center outline-none";
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
9
|
+
/** Segment chrome: em/ch track the mono digit metrics; pad/radius use tokens. */
|
|
10
|
+
export declare const TIME_FIELD_SEGMENT_SEGMENTED_CLASS = "h-[1.65em] min-w-[2.25ch] rounded-xsmall px-xsmall bg-default-hover";
|
|
11
|
+
export declare const TIME_FIELD_SEGMENT_DEFAULT_CLASS = "rounded-xsmall px-[length:calc(var(--border-width)*2)]";
|
|
11
12
|
export declare const TIME_FIELD_SEGMENT_FOCUSED_CLASS = "bg-primary text-primary-foreground";
|
|
12
13
|
export declare const TIME_FIELD_SEGMENT_DISABLED_CLASS = "cursor-not-allowed";
|
|
13
14
|
export declare const TIME_FIELD_SEGMENT_ENABLED_CLASS = "cursor-default";
|
|
14
15
|
export declare const TIME_FIELD_SEGMENT_SEPARATOR_BASE_CLASS = "inline-flex w-[0.45em] shrink-0 select-none items-center justify-center self-center text-muted";
|
|
15
|
-
export declare const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[
|
|
16
|
+
export declare const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[length:var(--border-width)]";
|
|
16
17
|
export declare const TIME_FIELD_SEGMENT_GROUP_CLASS = "inline-flex items-center";
|
|
17
18
|
export declare const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 flex-1 items-center font-mono tabular-nums leading-none";
|
|
18
19
|
/** Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, PointerEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { ComponentSize } from '../utils/
|
|
2
|
+
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
3
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
4
4
|
export type TimeFieldSize = ComponentSize;
|
|
5
5
|
export type TimeFieldStatus = SemanticStatus;
|
|
@@ -3,7 +3,7 @@ import { TimeFieldControlProps, TimeFieldSegId } from './timeFieldTypes';
|
|
|
3
3
|
export declare function useTimeFieldControlState({ value: valueProp, defaultValue, onValueChange, format, disabled, size: sizeProp, status: statusProp, variant: variantProp, compact: compactProp, id, onPointerDown, onPointerEnter: onPointerEnterProp, onPointerLeave: onPointerLeaveProp, ref, }: TimeFieldControlProps & {
|
|
4
4
|
ref: React.Ref<HTMLFieldSetElement>;
|
|
5
5
|
}): {
|
|
6
|
-
size: import('../utils/
|
|
6
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
7
7
|
status: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
8
8
|
variant: import('./timeFieldTypes').TimeFieldVariant;
|
|
9
9
|
compact: boolean;
|
|
@@ -11,7 +11,7 @@ export declare function useTimeFieldRootState({ children, label, hint, error, id
|
|
|
11
11
|
hint: import('react').ReactNode;
|
|
12
12
|
error: import('react').ReactNode;
|
|
13
13
|
status: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
14
|
-
size: import('../utils/
|
|
14
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
15
15
|
variant: import('./timeFieldTypes').TimeFieldVariant;
|
|
16
16
|
compact: boolean;
|
|
17
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
3
|
-
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/
|
|
3
|
+
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/sizeLayout';
|
|
4
4
|
export type ToastSize = MessageBannerSize;
|
|
5
5
|
export type ToastStatus = "default" | "success" | "danger" | "info" | "warning";
|
|
6
6
|
export type ToastVariant = "default" | "gloss";
|
|
@@ -13,6 +13,6 @@ export declare function useToastProviderState({ defaultPlacement, defaultVariant
|
|
|
13
13
|
dismiss: (id: string) => void;
|
|
14
14
|
removeFinal: (id: string) => void;
|
|
15
15
|
providerClassNames: import('./toastTypes').ToastClassNames | undefined;
|
|
16
|
-
defaultSize: import('../utils/
|
|
16
|
+
defaultSize: import('../utils/sizeLayout').ComponentSize;
|
|
17
17
|
liveAnnouncement: ToastLiveAnnouncement;
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@ import { ToastItemContextValue, UseToastRootStateProps } from './toastTypes';
|
|
|
2
2
|
export declare function useToastRootState({ status, size: sizeProp, title, description, action, loading, onClose, children, }: UseToastRootStateProps): {
|
|
3
3
|
isCompound: boolean;
|
|
4
4
|
titleId: string;
|
|
5
|
-
size: import('../utils/
|
|
5
|
+
size: import('../utils/sizeLayout').ComponentSize;
|
|
6
6
|
itemCtx: ToastItemContextValue;
|
|
7
7
|
gridSlots: import('../utils/messageBannerGridLayout').MessageBannerGridSlots;
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { ToggleButtonProps, ToggleButtonSize, ToggleButtonVariant, ToggleButtonClassNames, ToggleButtonFillProps, ToggleButtonContentProps, ToggleButtonLabelProps, ToggleButtonIconStartProps, ToggleButtonIconEndProps, ToggleButtonTextProps, } from './toggleButtonTypes';
|
|
2
2
|
export { ToggleButtonContent, ToggleButtonFill, ToggleButtonLabel, ToggleButtonIconStart, ToggleButtonIconEnd, ToggleButtonText, } from './toggleButtonParts';
|
|
3
|
-
export declare const ToggleButtonRoot: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
3
|
+
export declare const ToggleButtonRoot: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "role" | "aria-checked" | "aria-pressed" | "value"> & {
|
|
4
4
|
value?: string;
|
|
5
5
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
6
6
|
pressed?: boolean;
|