burne-ui 1.6.9 → 1.7.1
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/README.md +5 -2
- package/cli/init.js +2 -2
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionParts.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionTypes.d.ts +4 -3
- package/dist/components/composite/Accordion/index.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogAPI.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +1 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +1 -2
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +3 -2
- package/dist/components/composite/AlertDialog/index.d.ts +1 -2
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +5 -1
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +3 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/composite/Form/Form.d.ts +1 -1
- package/dist/components/composite/Form/formContext.d.ts +2 -1
- package/dist/components/composite/Form/formParts.d.ts +2 -2
- package/dist/components/composite/Form/formStyles.d.ts +9 -8
- package/dist/components/composite/Form/formTypes.d.ts +4 -3
- package/dist/components/composite/Form/index.d.ts +3 -3
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/composite/RadioGroup/index.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +2 -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 +3 -2
- package/dist/components/composite/utils/optionGroupClassNames.d.ts +2 -1
- package/dist/components/core/Alert/Alert.d.ts +1 -1
- package/dist/components/core/Alert/alertContext.d.ts +2 -1
- package/dist/components/core/Alert/alertTypes.d.ts +2 -1
- package/dist/components/core/Alert/index.d.ts +1 -1
- package/dist/components/core/Avatar/Avatar.d.ts +1 -1
- package/dist/components/core/Avatar/avatarParts.d.ts +1 -1
- package/dist/components/core/Avatar/avatarTypes.d.ts +4 -3
- package/dist/components/core/Avatar/index.d.ts +2 -2
- package/dist/components/core/Badge/Badge.d.ts +1 -1
- package/dist/components/core/Badge/badgeParts.d.ts +1 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +4 -3
- package/dist/components/core/Badge/index.d.ts +2 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +4 -3
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/core/Button/Button.d.ts +1 -2
- package/dist/components/core/Button/buttonAnimations.d.ts +3 -4
- package/dist/components/core/Button/buttonContext.d.ts +2 -1
- package/dist/components/core/Button/buttonParts.d.ts +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +1 -1
- package/dist/components/core/Button/buttonTypes.d.ts +6 -6
- package/dist/components/core/Button/index.d.ts +1 -2
- package/dist/components/core/Button/useButtonRootState.d.ts +11 -3
- package/dist/components/core/Calendar/calendarAnimations.d.ts +10 -11
- package/dist/components/core/Calendar/calendarStyles.d.ts +1 -1
- package/dist/components/core/Calendar/calendarTypes.d.ts +3 -2
- package/dist/components/core/Card/Card.d.ts +1 -2
- package/dist/components/core/Card/cardAnimations.d.ts +1 -1
- package/dist/components/core/Card/cardTypes.d.ts +3 -9
- package/dist/components/core/Card/index.d.ts +1 -2
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +2 -2
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +4 -3
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/CloseButton/CloseButton.d.ts +1 -2
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +3 -4
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +6 -3
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +3 -2
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +3 -11
- package/dist/components/core/Dialog/dialogAnimations.d.ts +2 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +1 -2
- package/dist/components/core/Dialog/dialogTypes.d.ts +3 -2
- package/dist/components/core/Dialog/index.d.ts +1 -2
- package/dist/components/core/Disclosure/Disclosure.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +4 -3
- package/dist/components/core/Disclosure/index.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAnimations.d.ts +1 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +1 -2
- package/dist/components/core/Drawer/drawerTypes.d.ts +3 -2
- package/dist/components/core/Drawer/index.d.ts +1 -2
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +3 -2
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +4 -3
- package/dist/components/core/Dropdown/index.d.ts +1 -1
- package/dist/components/core/Dropdown/useDropdownItemState.d.ts +6 -1
- package/dist/components/core/Expandable/Expandable.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.d.ts +1 -1
- package/dist/components/core/Expandable/expandableTypes.d.ts +3 -2
- package/dist/components/core/Expandable/index.d.ts +1 -1
- package/dist/components/core/Field/Field.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +5 -4
- package/dist/components/core/Field/index.d.ts +1 -1
- package/dist/components/core/Input/index.d.ts +1 -1
- package/dist/components/core/Input/inputControlParts.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +4 -3
- package/dist/components/core/Kbd/Kbd.d.ts +1 -1
- package/dist/components/core/Kbd/index.d.ts +1 -1
- package/dist/components/core/Kbd/kbdTypes.d.ts +5 -4
- package/dist/components/core/Label/labelTypes.d.ts +3 -2
- package/dist/components/core/Link/linkTypes.d.ts +3 -2
- package/dist/components/core/ListBox/ListBox.d.ts +1 -1
- package/dist/components/core/ListBox/index.d.ts +3 -3
- package/dist/components/core/ListBox/listBoxAPI.d.ts +2 -1
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +11 -1
- package/dist/components/core/ListBox/listBoxContext.d.ts +6 -0
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +2 -3
- package/dist/components/core/ListBox/listBoxTypes.d.ts +4 -4
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +0 -1
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -0
- package/dist/components/core/Loading/Loading.d.ts +1 -1
- package/dist/components/core/Loading/loadingTypes.d.ts +2 -1
- package/dist/components/core/Meter/meterTypes.d.ts +3 -2
- package/dist/components/core/Pagination/Pagination.d.ts +1 -1
- package/dist/components/core/Pagination/index.d.ts +1 -1
- package/dist/components/core/Pagination/paginationAnimations.d.ts +16 -4
- package/dist/components/core/Pagination/paginationStyles.d.ts +1 -1
- package/dist/components/core/Pagination/paginationTypes.d.ts +3 -2
- package/dist/components/core/Popover/popoverStyles.d.ts +1 -1
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -2
- package/dist/components/core/ProgressBar/progressBarAPI.d.ts +0 -2
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarStyles.d.ts +1 -5
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +6 -4
- package/dist/components/core/ProgressBar/useProgressBarTrackState.d.ts +1 -1
- 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/radioAPI.d.ts +2 -1
- package/dist/components/core/Radio/radioStyles.d.ts +2 -2
- package/dist/components/core/Radio/radioTypes.d.ts +4 -3
- package/dist/components/core/Ripple/Ripple.d.ts +4 -0
- package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +3 -2
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +7 -1
- package/dist/components/core/Select/selectTypes.d.ts +3 -10
- package/dist/components/core/SelectionIndicator/selectionIndicatorAPI.d.ts +2 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +2 -1
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +3 -2
- package/dist/components/core/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/core/Skeleton/index.d.ts +5 -5
- package/dist/components/core/Skeleton/skeletonParts.d.ts +4 -4
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +6 -5
- package/dist/components/core/Slider/sliderTypes.d.ts +4 -3
- package/dist/components/core/Surface/Surface.d.ts +1 -1
- package/dist/components/core/Surface/surfaceTypes.d.ts +2 -1
- 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/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchStyles.d.ts +3 -3
- package/dist/components/core/Switch/switchTypes.d.ts +5 -4
- package/dist/components/core/Switch/useSwitchRootState.d.ts +1 -1
- package/dist/components/core/Table/Table.d.ts +1 -1
- package/dist/components/core/Table/index.d.ts +3 -3
- package/dist/components/core/Table/tableAPI.d.ts +1 -0
- package/dist/components/core/Table/tableContext.d.ts +4 -0
- package/dist/components/core/Table/tableParts.d.ts +2 -2
- package/dist/components/core/Table/tableTypes.d.ts +16 -6
- package/dist/components/core/Tabs/Tabs.d.ts +1 -1
- package/dist/components/core/Tabs/index.d.ts +1 -1
- package/dist/components/core/Tabs/tabsTypes.d.ts +3 -2
- package/dist/components/core/TextArea/textAreaTypes.d.ts +3 -2
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +3 -2
- package/dist/components/core/Toast/Toast.d.ts +1 -1
- package/dist/components/core/Toast/index.d.ts +1 -1
- package/dist/components/core/Toast/toastAPI.d.ts +5 -0
- package/dist/components/core/Toast/toastStyles.d.ts +0 -1
- package/dist/components/core/Toast/toastTypes.d.ts +8 -7
- package/dist/components/core/Toast/useToastProviderState.d.ts +13 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -2
- package/dist/components/core/ToggleButton/index.d.ts +1 -2
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +3 -4
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +9 -3
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +1 -1
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +3 -2
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +1 -1
- package/dist/components/core/utils/gsapMotion.d.ts +17 -3
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +2 -3
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +1 -0
- package/dist/components/core/utils/motionConfig.d.ts +70 -2
- package/dist/components/core/utils/optionListItemStyles.d.ts +1 -1
- package/dist/components/core/utils/pressRipple.d.ts +2 -2
- package/dist/components/core/utils/reducedMotion.d.ts +11 -0
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +19 -5
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +1 -1
- package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +20 -0
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +1 -5
- package/dist/components/core/utils/useModalMotion.d.ts +45 -0
- package/dist/components/core/utils/usePressableElementTextMotion.d.ts +15 -7
- package/dist/components/core/utils/useShadowMotion.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +11605 -11376
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +4 -2
- package/dist/internal.js +55 -52
- package/dist/theme/themeConfig.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +24 -0
- package/dist/theme/themeScript.d.ts +2 -1
- package/dist/themeRuntimeContext-BOseU2z2.cjs +14 -0
- package/dist/themeRuntimeContext-lrK_tOjm.js +5688 -0
- package/dist/ui.css +36 -46
- package/dist/utils/prettify.d.ts +8 -0
- package/package.json +4 -4
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +0 -5
- package/dist/components/core/Select/selectAnimations.d.ts +0 -5
- package/dist/themeRuntimeContext-DPX6IpU8.js +0 -7765
- package/dist/themeRuntimeContext-DuLxYkX1.cjs +0 -50
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ListBoxEmpty, ListBoxHeader, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, ListBoxLabel, ListBoxRoot, ListBoxSection, ListBoxSeparator, useListBox } from './ListBox';
|
|
1
|
+
import { ListBoxEmpty, ListBoxHeader, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, ListBoxLabel, ListBoxRoot, ListBoxSection, ListBoxSeparator, useListBox, useListBoxActiveValue } from './ListBox';
|
|
2
2
|
export declare const ListBox: typeof ListBoxRoot & {
|
|
3
3
|
Section: typeof ListBoxSection;
|
|
4
4
|
Header: typeof ListBoxHeader;
|
|
5
5
|
Separator: typeof ListBoxSeparator;
|
|
6
6
|
Empty: typeof ListBoxEmpty;
|
|
7
|
-
Item: import('react').
|
|
7
|
+
Item: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
8
8
|
value: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
label?: import('react').ReactNode;
|
|
@@ -21,5 +21,5 @@ export declare const ListBox: typeof ListBoxRoot & {
|
|
|
21
21
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
export { useListBox };
|
|
24
|
+
export { useListBox, useListBoxActiveValue };
|
|
25
25
|
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './ListBox';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { SelectionIndicatorClassNames, SelectionIndicatorSize } from '../SelectionIndicator';
|
|
3
4
|
import { ListBoxClassNames, ListBoxItemIndicatorClassNames, ListBoxSize, UseListBoxItemStateProps } from './listBoxTypes';
|
|
4
5
|
/** List size → indicator: one step smaller than the list (dense menus). */
|
|
@@ -6,7 +7,7 @@ export declare const LISTBOX_INDICATOR_SIZE: Record<ListBoxSize, SelectionIndica
|
|
|
6
7
|
export declare function resolveListBoxIndicatorSize(listSize: ListBoxSize, sizeProp?: SelectionIndicatorSize): SelectionIndicatorSize;
|
|
7
8
|
export declare function resolveListBoxItemIndicatorClassNames({ slotClassNames, classNames, }: {
|
|
8
9
|
slotClassNames: ListBoxClassNames;
|
|
9
|
-
classNames?: ListBoxItemIndicatorClassNames
|
|
10
|
+
classNames?: Prettify<ListBoxItemIndicatorClassNames>;
|
|
10
11
|
}): SelectionIndicatorClassNames;
|
|
11
12
|
export declare function normalizeListBoxValues(value: string | string[] | undefined): string[];
|
|
12
13
|
export declare function partitionListBoxItemChildren(children: ReactNode): import('../utils/optionListItemChildren').OptionListItemParts;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
1
2
|
import { UseListBoxItemAnimationsProps } from './listBoxTypes';
|
|
2
3
|
export declare function useListBoxRootGlossRef(isGloss: boolean): (node: HTMLElement | null) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Sync `data-active` on the active option. Highlight CSS is the static
|
|
6
|
+
* `data-active:bg-default-hover` class on every item — no React `isActive`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useListBoxActiveOptionHighlight({ listId, activeValue, rootRef, }: {
|
|
9
|
+
listId: string;
|
|
10
|
+
activeValue: string | null;
|
|
11
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
12
|
+
}): void;
|
|
3
13
|
export declare function useListBoxItemAnimations({ disabled, hasLabel, onPointerDown, }: UseListBoxItemAnimationsProps): {
|
|
4
|
-
labelMotionRef:
|
|
14
|
+
labelMotionRef: RefObject<HTMLElement | null>;
|
|
5
15
|
enableLabelMotion: boolean;
|
|
6
16
|
handlePointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
7
17
|
};
|
|
@@ -4,7 +4,13 @@ export declare function ListBoxProvider({ value, children, }: {
|
|
|
4
4
|
value: ListBoxContextValue;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function ListBoxActiveValueProvider({ value, children, }: {
|
|
8
|
+
value: string | null;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export declare function useListBox(who: string): ListBoxContextValue;
|
|
12
|
+
/** Active (keyboard/hover) option value. Prefer this over putting `activeValue` in `useListBox`. */
|
|
13
|
+
export declare function useListBoxActiveValue(): string | null;
|
|
8
14
|
export declare function ListBoxClassNamesProvider({ classNames, children, }: ListBoxClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
15
|
export declare function useListBoxClassNames(): ListBoxClassNames;
|
|
10
16
|
export declare function ListBoxSectionLabelProvider({ value, children, }: {
|
|
@@ -19,7 +19,7 @@ export declare function ListBoxEmpty({ className, children, ...rest }: ListBoxEm
|
|
|
19
19
|
export declare namespace ListBoxEmpty {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const ListBoxItem: import('react').
|
|
22
|
+
export declare const ListBoxItem: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
23
23
|
value: string;
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
label?: import('react').ReactNode;
|
|
@@ -10,7 +10,7 @@ export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid text-
|
|
|
10
10
|
export declare const LISTBOX_ITEM_PAD: Record<ListBoxSize, string>;
|
|
11
11
|
export declare const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
|
|
12
12
|
export declare const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45";
|
|
13
|
-
export declare const LISTBOX_ITEM_ACTIVE_CLASS = "bg-default-hover";
|
|
13
|
+
export declare const LISTBOX_ITEM_ACTIVE_CLASS = "data-active:bg-default-hover";
|
|
14
14
|
export declare function listBoxRootClass({ isGloss, slotClass, className, }: {
|
|
15
15
|
isGloss: boolean;
|
|
16
16
|
slotClass?: string;
|
|
@@ -36,10 +36,9 @@ export declare function listBoxEmptyClass({ slotClass, className, }: {
|
|
|
36
36
|
slotClass?: string;
|
|
37
37
|
className?: string;
|
|
38
38
|
}): string;
|
|
39
|
-
export declare function listBoxItemClass({ size, disabled,
|
|
39
|
+
export declare function listBoxItemClass({ size, disabled, slotClass, className, }: {
|
|
40
40
|
size: ListBoxSize;
|
|
41
41
|
disabled: boolean;
|
|
42
|
-
isActive: boolean;
|
|
43
42
|
slotClass?: string;
|
|
44
43
|
className?: string;
|
|
45
44
|
}): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { SelectionIndicatorSize, SelectionIndicatorVariant, SelectionIndicatorClassNames } from '../SelectionIndicator';
|
|
3
4
|
export type ListBoxSize = "small" | "base" | "mid" | "large";
|
|
4
5
|
export type ListBoxVariant = "default" | "gloss";
|
|
@@ -36,7 +37,6 @@ export type ListBoxContextValue = {
|
|
|
36
37
|
multiple: boolean;
|
|
37
38
|
selected: Set<string>;
|
|
38
39
|
selectItem: (value: string) => void;
|
|
39
|
-
activeValue: string | null;
|
|
40
40
|
setActiveValue: (value: string | null) => void;
|
|
41
41
|
showIndicator: boolean;
|
|
42
42
|
indicatorMode: "radio" | "multi";
|
|
@@ -60,10 +60,10 @@ export type ListBoxProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "on
|
|
|
60
60
|
activeValue?: string | null;
|
|
61
61
|
onActiveValueChange?: (value: string | null) => void;
|
|
62
62
|
listId?: string;
|
|
63
|
-
classNames?: ListBoxClassNames
|
|
63
|
+
classNames?: Prettify<ListBoxClassNames>;
|
|
64
64
|
};
|
|
65
65
|
export type ListBoxClassNamesProviderProps = {
|
|
66
|
-
classNames?: ListBoxClassNames
|
|
66
|
+
classNames?: Prettify<ListBoxClassNames>;
|
|
67
67
|
children: ReactNode;
|
|
68
68
|
};
|
|
69
69
|
export type UseListBoxRootStateProps = Omit<ListBoxProps, "classNames" | "className">;
|
|
@@ -90,7 +90,7 @@ export type ListBoxItemIndicatorProps = Omit<HTMLAttributes<HTMLSpanElement>, "c
|
|
|
90
90
|
size?: SelectionIndicatorSize;
|
|
91
91
|
check?: boolean;
|
|
92
92
|
children?: ReactNode;
|
|
93
|
-
classNames?: ListBoxItemIndicatorClassNames
|
|
93
|
+
classNames?: Prettify<ListBoxItemIndicatorClassNames>;
|
|
94
94
|
};
|
|
95
95
|
export type ListBoxRootShellProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
96
96
|
listId: string;
|
|
@@ -10,7 +10,6 @@ export declare function useListBoxItemState({ children, label, hint, icon, value
|
|
|
10
10
|
size: import('./listBoxTypes').ListBoxSize;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
isSelected: boolean;
|
|
13
|
-
isActive: boolean;
|
|
14
13
|
optionId: string;
|
|
15
14
|
indicatorMode: "radio" | "multi";
|
|
16
15
|
selectItem: (value: string) => void;
|
|
@@ -2,4 +2,5 @@ import { ListBoxContextValue, UseListBoxRootStateProps } from './listBoxTypes';
|
|
|
2
2
|
export declare function useListBoxRootState({ size, multiple, value: valueProp, defaultValue, onValueChange, selectionIndicator, disabled, activeValue: activeValueProp, onActiveValueChange, listId: listIdProp, }: UseListBoxRootStateProps): {
|
|
3
3
|
listId: string;
|
|
4
4
|
contextValue: ListBoxContextValue;
|
|
5
|
+
activeValue: string | null;
|
|
5
6
|
};
|
|
@@ -4,5 +4,5 @@ export declare const Loading: import('react').ForwardRefExoticComponent<import('
|
|
|
4
4
|
size?: import('./loadingTypes').LoadingSize;
|
|
5
5
|
color?: import('./loadingTypes').LoadingColor;
|
|
6
6
|
label?: string;
|
|
7
|
-
classNames?: import('./loadingTypes').LoadingClassNames
|
|
7
|
+
classNames?: import('../../..').Prettify<import('./loadingTypes').LoadingClassNames>;
|
|
8
8
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
4
|
export type LoadingSize = ComponentSize;
|
|
4
5
|
export type LoadingType = "spinner" | "dots";
|
|
@@ -14,7 +15,7 @@ export type LoadingProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
14
15
|
size?: LoadingSize;
|
|
15
16
|
color?: LoadingColor;
|
|
16
17
|
label?: string;
|
|
17
|
-
classNames?: LoadingClassNames
|
|
18
|
+
classNames?: Prettify<LoadingClassNames>;
|
|
18
19
|
};
|
|
19
20
|
export type LoadingDotsLayout = {
|
|
20
21
|
dotClass: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
export type MeterSize = "small" | "base" | "mid" | "large";
|
|
3
4
|
export type MeterOrientation = "horizontal" | "vertical";
|
|
4
5
|
export type MeterClassNames = {
|
|
@@ -56,10 +57,10 @@ export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<MeterTrackProp
|
|
|
56
57
|
valueText?: ReactNode;
|
|
57
58
|
hint?: ReactNode;
|
|
58
59
|
error?: ReactNode;
|
|
59
|
-
classNames?: MeterClassNames
|
|
60
|
+
classNames?: Prettify<MeterClassNames>;
|
|
60
61
|
};
|
|
61
62
|
export type MeterClassNamesProviderProps = {
|
|
62
|
-
classNames?: MeterClassNames
|
|
63
|
+
classNames?: Prettify<MeterClassNames>;
|
|
63
64
|
children: ReactNode;
|
|
64
65
|
};
|
|
65
66
|
export type MeterHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -7,5 +7,5 @@ export declare const PaginationRoot: import('react').ForwardRefExoticComponent<O
|
|
|
7
7
|
totalPages?: number;
|
|
8
8
|
onPageChange?: (page: number) => void;
|
|
9
9
|
siblingCount?: number;
|
|
10
|
-
classNames?: import('./paginationTypes').PaginationClassNames
|
|
10
|
+
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
11
11
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -6,7 +6,7 @@ export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<
|
|
|
6
6
|
totalPages?: number;
|
|
7
7
|
onPageChange?: (page: number) => void;
|
|
8
8
|
siblingCount?: number;
|
|
9
|
-
classNames?: import('./paginationTypes').PaginationClassNames
|
|
9
|
+
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
10
10
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
11
11
|
Summary: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationSummaryProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Content: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationContentProps & import('react').RefAttributes<HTMLOListElement>>;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import { ForwardedRef } from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ForwardedRef, ReactNode, RefObject } from 'react';
|
|
2
|
+
export type PaginationFlipIdentity = {
|
|
3
|
+
/** Current page — primary trigger for FLIP when using `Pagination.Pages`. */
|
|
4
|
+
page?: number;
|
|
5
|
+
totalPages?: number;
|
|
6
|
+
siblingCount?: number;
|
|
7
|
+
/** Custom Content children — covers compound ranges without `Pagination.Pages`. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* FLIP page-list items when the visible range changes.
|
|
12
|
+
* Runs only when `page` / list identity changes — not on every Content re-render.
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePaginationFlip(olRef: RefObject<HTMLOListElement | null>, { page, totalPages, siblingCount, children }: PaginationFlipIdentity): void;
|
|
15
|
+
export declare function usePaginationContentRef(forwardedRef: ForwardedRef<HTMLOListElement>, flipIdentity: PaginationFlipIdentity): {
|
|
16
|
+
olRef: RefObject<HTMLOListElement | null>;
|
|
5
17
|
setRefs: (node: HTMLOListElement | null) => void;
|
|
6
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const PAGINATION_ROOT_CLASS = "flex w-full min-w-0 flex-wrap items-center justify-between gap-xsmall gap-y-xsmall text-left";
|
|
2
2
|
export declare const PAGINATION_SUMMARY_CLASS = "flex min-w-0 flex-1 basis-component-xsmall";
|
|
3
3
|
export declare const PAGINATION_SUMMARY_TEXT_CLASS = "min-w-0 truncate text-muted";
|
|
4
|
-
export declare const PAGINATION_CONTENT_CLASS = "m-0 ms-auto flex max-w-full min-w-0 list-none flex-
|
|
4
|
+
export declare const PAGINATION_CONTENT_CLASS = "m-0 ms-auto flex max-w-full min-w-0 list-none flex-nowrap items-center justify-start gap-xsmall overflow-x-auto overscroll-x-contain p-0";
|
|
5
5
|
export declare const PAGINATION_ITEM_CLASS = "flex shrink-0 items-center";
|
|
6
6
|
export declare const PAGINATION_INTERACTIVE_BUTTON_CLASS = "inline-flex min-w-0 origin-center cursor-pointer items-center justify-center gap-xsmall rounded-mid border-0 bg-transparent px-xsmall py-xsmall font-[inherit] text-muted no-underline outline-none hover:text-foreground focus-ring disabled:cursor-not-allowed disabled:opacity-48 disabled:hover:text-muted disabled:hover:bg-transparent motion-reduce:animate-none";
|
|
7
7
|
/** Page digit column — `--size-scale-2xlarge` (≈1.75rem), not panel max-width. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconBaseProps } from 'react-icons';
|
|
3
|
+
import { Prettify } from '../../../utils/prettify';
|
|
3
4
|
export type PaginationClassNames = {
|
|
4
5
|
/** Root `<nav>`. */
|
|
5
6
|
root?: string;
|
|
@@ -45,10 +46,10 @@ export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
|
45
46
|
totalPages?: number;
|
|
46
47
|
onPageChange?: (page: number) => void;
|
|
47
48
|
siblingCount?: number;
|
|
48
|
-
classNames?: PaginationClassNames
|
|
49
|
+
classNames?: Prettify<PaginationClassNames>;
|
|
49
50
|
};
|
|
50
51
|
export type PaginationClassNamesProviderProps = {
|
|
51
|
-
classNames?: PaginationClassNames
|
|
52
|
+
classNames?: Prettify<PaginationClassNames>;
|
|
52
53
|
children: ReactNode;
|
|
53
54
|
};
|
|
54
55
|
export type UsePaginationRootStateProps = Omit<PaginationProps, "className" | "classNames" | "children">;
|
|
@@ -7,7 +7,7 @@ export declare const POPOVER_TITLE_VARIANT: Record<PopoverSize, TextVariant>;
|
|
|
7
7
|
export declare const POPOVER_DESCRIPTION_VARIANT: Record<PopoverSize, TextVariant>;
|
|
8
8
|
export declare const POPOVER_GAP_CLASS: Record<PopoverContentGap, string>;
|
|
9
9
|
export declare const POPOVER_TRIGGER_CLASS = "inline-flex shrink-0 border-0 bg-transparent p-0 outline-none focus-ring";
|
|
10
|
-
export declare const POPOVER_CONTENT_CLASS = "pointer-events-auto z-popover w-max min-w-0 overflow-visible text-left outline-none
|
|
10
|
+
export declare const POPOVER_CONTENT_CLASS = "pointer-events-auto z-popover w-max min-w-0 overflow-visible text-left outline-none";
|
|
11
11
|
export declare const POPOVER_PANEL_RELATIVE_CLASS = "relative overflow-visible";
|
|
12
12
|
export declare const POPOVER_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep relative z-[1] flex min-w-0 origin-center flex-col overflow-hidden text-foreground";
|
|
13
13
|
export declare const POPOVER_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-col";
|
|
@@ -2,6 +2,7 @@ import { FieldHintProps } from '../Field';
|
|
|
2
2
|
import { FloatingAlign, TooltipSide } from '../Tooltip/tooltipPosition';
|
|
3
3
|
import { PanelSize } from '../utils/sizeLayout';
|
|
4
4
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
5
|
+
import { Prettify } from '../../../utils/prettify';
|
|
5
6
|
export type PopoverSide = TooltipSide;
|
|
6
7
|
export type PopoverSize = PanelSize;
|
|
7
8
|
export type PopoverVariant = "default" | "gloss";
|
|
@@ -50,10 +51,10 @@ export type PopoverProps = {
|
|
|
50
51
|
shouldDismiss?: (target: Node) => boolean;
|
|
51
52
|
/** DOM node for the portal. Default: `document.body`. */
|
|
52
53
|
portalContainer?: HTMLElement | null;
|
|
53
|
-
classNames?: PopoverClassNames
|
|
54
|
+
classNames?: Prettify<PopoverClassNames>;
|
|
54
55
|
};
|
|
55
56
|
export type PopoverClassNamesProviderProps = {
|
|
56
|
-
classNames?: PopoverClassNames
|
|
57
|
+
classNames?: Prettify<PopoverClassNames>;
|
|
57
58
|
children: ReactNode;
|
|
58
59
|
};
|
|
59
60
|
export type UsePopoverRootStateProps = Omit<PopoverProps, "classNames">;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ProgressBarDisplayState } from './progressBarTypes';
|
|
2
|
-
export declare const PROGRESS_INDETERMINATE_MS = 1500;
|
|
3
|
-
export declare const PROGRESS_INDETERMINATE_EASE: "expo.inOut";
|
|
4
2
|
export declare function progressBarValueToPercent(value: number, min: number, max: number): number;
|
|
5
3
|
export declare function defaultProgressBarFormatValue(value: number): string;
|
|
6
4
|
export declare function progressBarDisplayEqual(a: ProgressBarDisplayState | null, b: ProgressBarDisplayState | null): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseProgressBarFillAnimationProps } from './progressBarTypes';
|
|
2
|
-
export declare function useProgressBarFillAnimation({ indeterminate,
|
|
2
|
+
export declare function useProgressBarFillAnimation({ indeterminate, percent, isHorizontal, }: UseProgressBarFillAnimationProps): {
|
|
3
3
|
fillRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
4
4
|
reduceMotion: boolean;
|
|
5
5
|
};
|
|
@@ -9,7 +9,7 @@ export declare const PROGRESS_BAR_FILL_BASE_CLASS = "absolute rounded-full";
|
|
|
9
9
|
export declare const PROGRESS_BAR_FILL_HORIZONTAL_CLASS = "inset-y-0 left-0";
|
|
10
10
|
export declare const PROGRESS_BAR_FILL_VERTICAL_CLASS = "inset-x-0 bottom-0";
|
|
11
11
|
export declare const PROGRESS_BAR_FILL_DEFAULT_COLOR_CLASS = "bg-primary";
|
|
12
|
-
export declare const PROGRESS_BAR_INDETERMINATE_FILL_BASE_CLASS = "absolute rounded-full
|
|
12
|
+
export declare const PROGRESS_BAR_INDETERMINATE_FILL_BASE_CLASS = "absolute rounded-full";
|
|
13
13
|
export declare const PROGRESS_BAR_INDETERMINATE_FILL_HORIZONTAL_CLASS = "inset-y-0 left-0 w-1/4";
|
|
14
14
|
export declare const PROGRESS_BAR_INDETERMINATE_FILL_VERTICAL_CLASS = "inset-x-0 bottom-0 h-1/4";
|
|
15
15
|
export declare const PROGRESS_BAR_INDETERMINATE_FILL_REDUCED_HORIZONTAL_CLASS = "left-1/4 w-1/2";
|
|
@@ -55,10 +55,6 @@ export declare function progressBarTrackCrossStyle({ isHorizontal, thickness, }:
|
|
|
55
55
|
thickness?: number | string;
|
|
56
56
|
}): CSSProperties | undefined;
|
|
57
57
|
export declare function progressBarFillColorStyle(color?: string): CSSProperties | undefined;
|
|
58
|
-
export declare function progressBarFillTargetStyle({ isHorizontal, percent, }: {
|
|
59
|
-
isHorizontal: boolean;
|
|
60
|
-
percent: number;
|
|
61
|
-
}): CSSProperties;
|
|
62
58
|
export declare function progressBarDeterminateFillStyle({ isHorizontal, fillColorStyle, }: {
|
|
63
59
|
isHorizontal: boolean;
|
|
64
60
|
fillColorStyle?: CSSProperties;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
export type ProgressBarSize = "small" | "base" | "mid" | "large";
|
|
3
4
|
export type ProgressBarOrientation = "horizontal" | "vertical";
|
|
4
5
|
export type ProgressBarClassNames = {
|
|
@@ -50,10 +51,10 @@ export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<Progress
|
|
|
50
51
|
valueText?: ReactNode;
|
|
51
52
|
hint?: ReactNode;
|
|
52
53
|
error?: ReactNode;
|
|
53
|
-
classNames?: ProgressBarClassNames
|
|
54
|
+
classNames?: Prettify<ProgressBarClassNames>;
|
|
54
55
|
};
|
|
55
56
|
export type ProgressBarClassNamesProviderProps = {
|
|
56
|
-
classNames?: ProgressBarClassNames
|
|
57
|
+
classNames?: Prettify<ProgressBarClassNames>;
|
|
57
58
|
children: ReactNode;
|
|
58
59
|
};
|
|
59
60
|
export type ProgressBarHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -83,7 +84,8 @@ export type ProgressBarTrackAriaProps = {
|
|
|
83
84
|
};
|
|
84
85
|
export type UseProgressBarFillAnimationProps = {
|
|
85
86
|
indeterminate: boolean;
|
|
86
|
-
|
|
87
|
+
/** 0–100 progress for determinate fill scale. */
|
|
88
|
+
percent: number;
|
|
87
89
|
isHorizontal: boolean;
|
|
88
90
|
};
|
|
89
91
|
export type ProgressBarSimpleBodyProps = {
|
|
@@ -5,6 +5,7 @@ export declare function useProgressBarTrackState({ value, indeterminate, min, ma
|
|
|
5
5
|
color: string | undefined;
|
|
6
6
|
indeterminate: boolean;
|
|
7
7
|
isHorizontal: boolean;
|
|
8
|
+
percent: number;
|
|
8
9
|
aria: {
|
|
9
10
|
"aria-valuenow"?: number;
|
|
10
11
|
"aria-valuemin"?: number;
|
|
@@ -17,5 +18,4 @@ export declare function useProgressBarTrackState({ value, indeterminate, min, ma
|
|
|
17
18
|
};
|
|
18
19
|
trackCrossStyle: import('react').CSSProperties | undefined;
|
|
19
20
|
fillColorStyle: import('react').CSSProperties | undefined;
|
|
20
|
-
fillTargetStyle: import('react').CSSProperties;
|
|
21
21
|
};
|
|
@@ -8,7 +8,7 @@ export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
8
8
|
variant?: import('./radioTypes').RadioVariant;
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
|
-
classNames?: import('./radioTypes').RadioClassNames
|
|
11
|
+
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
12
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
13
|
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
14
14
|
export { RadioControl, RadioIndicator, RadioContent, RadioLabel, RadioHint, RadioError, } from './radioParts';
|
|
@@ -8,7 +8,7 @@ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
8
8
|
variant?: import('./radioTypes').RadioVariant;
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
|
-
classNames?: import('./radioTypes').RadioClassNames
|
|
11
|
+
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
12
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
13
|
} & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
14
14
|
Control: import('react').ForwardRefExoticComponent<import('./radioTypes').RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SelectionIndicatorClassNames, SelectionIndicatorVariant } from '../SelectionIndicator';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { RadioClassNames, RadioIndicatorClassNames, RadioVariant } from './radioTypes';
|
|
3
4
|
export declare function radioVariantToIndicator(variant: RadioVariant): SelectionIndicatorVariant;
|
|
4
5
|
export declare function resolveRadioIndicatorClassNames({ slotClassNames, classNames, className, }: {
|
|
5
6
|
slotClassNames: RadioClassNames;
|
|
6
|
-
classNames?: RadioIndicatorClassNames
|
|
7
|
+
classNames?: Prettify<RadioIndicatorClassNames>;
|
|
7
8
|
className?: string;
|
|
8
9
|
}): SelectionIndicatorClassNames;
|
|
9
10
|
export declare function compoundUsesInlineMotion(className: string | undefined): boolean;
|
|
@@ -7,13 +7,13 @@ export declare const RADIO_CONTROL_TRACK_CLASS = "relative inline-flex items-cen
|
|
|
7
7
|
export declare const RADIO_CONTENT_COMPOUND_CLASS = "min-w-0";
|
|
8
8
|
export declare const RADIO_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0";
|
|
9
9
|
export declare const RADIO_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
|
|
10
|
-
export declare const RADIO_LABEL_MOTION_CLASS = "origin-center
|
|
10
|
+
export declare const RADIO_LABEL_MOTION_CLASS = "origin-center";
|
|
11
11
|
export declare const RADIO_LABEL_TEXT_DISABLED_CLASS = "text-muted";
|
|
12
12
|
export declare const RADIO_LABEL_TEXT_DANGER_CLASS = "text-danger";
|
|
13
13
|
export declare const RADIO_REQUIRED_MARK_CLASS = "text-danger";
|
|
14
14
|
export declare const RADIO_HINT_DISABLED_CLASS = "text-muted";
|
|
15
15
|
export declare const RADIO_ERROR_DISABLED_CLASS = "text-muted";
|
|
16
|
-
export declare const RADIO_SIMPLE_LABEL_WRAP_CLASS = "origin-center
|
|
16
|
+
export declare const RADIO_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
|
|
17
17
|
export declare const RADIO_SIMPLE_LABEL_TEXT_CLASS = "min-w-0";
|
|
18
18
|
export declare const RADIO_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
|
|
19
19
|
export declare const RADIO_ROOT_DISABLED_CLASS = "cursor-not-allowed";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MouseEvent, PointerEvent, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { FieldErrorProps, FieldHintProps } from '../Field';
|
|
3
4
|
import { LabelProps } from '../Label';
|
|
4
5
|
import { SelectionIndicatorClassNames } from '../SelectionIndicator';
|
|
@@ -30,7 +31,7 @@ export type RadioProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"
|
|
|
30
31
|
variant?: RadioVariant;
|
|
31
32
|
danger?: boolean;
|
|
32
33
|
className?: string;
|
|
33
|
-
classNames?: RadioClassNames
|
|
34
|
+
classNames?: Prettify<RadioClassNames>;
|
|
34
35
|
onPointerDown?: (e: PointerEvent<HTMLLabelElement>) => void;
|
|
35
36
|
};
|
|
36
37
|
export type RadioControlProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -38,7 +39,7 @@ export type RadioIndicatorClassNames = SelectionIndicatorClassNames & Partial<Pi
|
|
|
38
39
|
export type RadioIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
39
40
|
children?: ReactNode;
|
|
40
41
|
size?: RadioSize;
|
|
41
|
-
classNames?: RadioIndicatorClassNames
|
|
42
|
+
classNames?: Prettify<RadioIndicatorClassNames>;
|
|
42
43
|
};
|
|
43
44
|
export type RadioContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
44
45
|
children?: ReactNode;
|
|
@@ -81,7 +82,7 @@ export type RadioFieldContextValue = {
|
|
|
81
82
|
};
|
|
82
83
|
};
|
|
83
84
|
export type RadioClassNamesProviderProps = {
|
|
84
|
-
classNames?: RadioClassNames
|
|
85
|
+
classNames?: Prettify<RadioClassNames>;
|
|
85
86
|
children: ReactNode;
|
|
86
87
|
};
|
|
87
88
|
export type UseRadioRootStateProps = Omit<RadioProps, "children" | "className" | "classNames" | "onPointerDown" | "onClick">;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { RippleProps } from './rippleTypes';
|
|
2
2
|
export type { RippleProps, RippleDirection } from './rippleTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Event host without ripple state — parent re-renders do not replay dots;
|
|
5
|
+
* paint/dismiss stays inside memoized `ConvergeRipplePaint`.
|
|
6
|
+
*/
|
|
3
7
|
export declare function Ripple({ color, disabled, duration, direction, className, }: RippleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,5 +10,5 @@ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit
|
|
|
10
10
|
ripple?: boolean;
|
|
11
11
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
12
12
|
"aria-label"?: string;
|
|
13
|
-
classNames?: import('./searchInputTypes').SearchInputClassNames
|
|
13
|
+
classNames?: import('../../..').Prettify<import('./searchInputTypes').SearchInputClassNames>;
|
|
14
14
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FocusEvent, InputHTMLAttributes, KeyboardEvent } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
3
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
5
|
export type SearchInputSize = ComponentSize;
|
|
@@ -33,7 +34,7 @@ export type SearchInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size
|
|
|
33
34
|
ripple?: boolean;
|
|
34
35
|
groupSegment?: ButtonGroupSegment;
|
|
35
36
|
"aria-label"?: string;
|
|
36
|
-
classNames?: SearchInputClassNames
|
|
37
|
+
classNames?: Prettify<SearchInputClassNames>;
|
|
37
38
|
};
|
|
38
39
|
export type UseSearchInputRootStateProps = {
|
|
39
40
|
size?: SearchInputSize;
|
|
@@ -56,7 +57,7 @@ export type UseSearchInputRootStateProps = {
|
|
|
56
57
|
ripple?: boolean;
|
|
57
58
|
groupSegment?: ButtonGroupSegment;
|
|
58
59
|
className?: string;
|
|
59
|
-
classNames?: SearchInputClassNames
|
|
60
|
+
classNames?: Prettify<SearchInputClassNames>;
|
|
60
61
|
forwardedRef: React.ForwardedRef<HTMLInputElement>;
|
|
61
62
|
};
|
|
62
63
|
export type UseSearchInputAnimationsProps = {
|
|
@@ -18,7 +18,13 @@ export declare function useSearchInputRootState({ size: sizeProp, variant: varia
|
|
|
18
18
|
defaultValue: string | number | readonly string[] | undefined;
|
|
19
19
|
disabled: boolean | undefined;
|
|
20
20
|
readOnly: boolean | undefined;
|
|
21
|
-
classNames:
|
|
21
|
+
classNames: {
|
|
22
|
+
root?: string | undefined;
|
|
23
|
+
icon?: string | undefined;
|
|
24
|
+
input?: string | undefined;
|
|
25
|
+
clear?: string | undefined;
|
|
26
|
+
expandTrigger?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
22
28
|
showClear: boolean;
|
|
23
29
|
rootClass: string;
|
|
24
30
|
collapseA11yLabel: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
3
4
|
import { InputSize, InputStatus, InputVariant } from '../Input';
|
|
4
5
|
import { ListBoxProps } from '../ListBox';
|
|
@@ -52,7 +53,7 @@ export type SelectProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
52
53
|
disabled?: boolean;
|
|
53
54
|
placeholder?: string;
|
|
54
55
|
menuMaxHeight?: string;
|
|
55
|
-
classNames?: SelectClassNames
|
|
56
|
+
classNames?: Prettify<SelectClassNames>;
|
|
56
57
|
};
|
|
57
58
|
export type SelectSimpleProps = SelectProps & {
|
|
58
59
|
options: SelectOption[];
|
|
@@ -90,7 +91,7 @@ export type SelectContextValue = SelectFieldContextValue & {
|
|
|
90
91
|
formOnBlur?: () => void;
|
|
91
92
|
};
|
|
92
93
|
export type SelectClassNamesProviderProps = {
|
|
93
|
-
classNames?: SelectClassNames
|
|
94
|
+
classNames?: Prettify<SelectClassNames>;
|
|
94
95
|
children: ReactNode;
|
|
95
96
|
};
|
|
96
97
|
export type SelectTriggerGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -118,11 +119,3 @@ export type SelectErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
|
118
119
|
children?: ReactNode;
|
|
119
120
|
};
|
|
120
121
|
export type UseSelectRootStateProps = SelectProps;
|
|
121
|
-
export type RunSelectOpenAfterSqueezeOptions = {
|
|
122
|
-
anchorRef: React.RefObject<HTMLDivElement | null>;
|
|
123
|
-
disabled: boolean;
|
|
124
|
-
isGloss: boolean;
|
|
125
|
-
groupSegment?: ButtonGroupSegment;
|
|
126
|
-
setOpen: (open: boolean) => void;
|
|
127
|
-
onOpened?: () => void;
|
|
128
|
-
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { Prettify } from '../../../utils/prettify';
|
|
3
4
|
import { SelectionIndicatorSize, SelectionIndicatorVariant } from './selectionIndicatorTokens';
|
|
4
5
|
import { ResolvedSelectionIndicatorClassNames, SelectionIndicatorClassNames, SelectionIndicatorFillProps, SelectionIndicatorMarkProps } from './selectionIndicatorTypes';
|
|
5
6
|
export declare const SELECTION_INDICATOR_FILL_DISPLAY_NAME = "SelectionIndicatorFill";
|
|
@@ -24,6 +25,6 @@ export declare function resolveSelectionIndicatorClassNames({ root, fill, mark,
|
|
|
24
25
|
root?: ClassValue;
|
|
25
26
|
fill?: ClassValue;
|
|
26
27
|
mark?: ClassValue;
|
|
27
|
-
classNames?: SelectionIndicatorClassNames
|
|
28
|
+
classNames?: Prettify<SelectionIndicatorClassNames>;
|
|
28
29
|
className?: string;
|
|
29
30
|
}): ResolvedSelectionIndicatorClassNames;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { SelectionIndicatorSize, SelectionIndicatorVariant } from './selectionIndicatorTokens';
|
|
3
4
|
export type SelectionIndicatorClassNames = {
|
|
4
5
|
root?: string;
|
|
@@ -13,7 +14,7 @@ export type SelectionIndicatorProps = Omit<HTMLAttributes<HTMLSpanElement>, "chi
|
|
|
13
14
|
dot?: boolean;
|
|
14
15
|
icon?: ReactNode;
|
|
15
16
|
children?: ReactNode;
|
|
16
|
-
classNames?: SelectionIndicatorClassNames
|
|
17
|
+
classNames?: Prettify<SelectionIndicatorClassNames>;
|
|
17
18
|
};
|
|
18
19
|
export type SelectionIndicatorFillProps = HTMLAttributes<HTMLSpanElement>;
|
|
19
20
|
export type SelectionIndicatorMarkProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { SelectionIndicatorSize } from '../SelectionIndicator/selectionIndicatorTokens';
|
|
3
4
|
export type SelectionThumbClassNames = {
|
|
4
5
|
root?: string;
|
|
@@ -12,12 +13,12 @@ export type SelectionThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, "childre
|
|
|
12
13
|
shellRef?: RefObject<HTMLSpanElement | null>;
|
|
13
14
|
gloss?: boolean;
|
|
14
15
|
children?: ReactNode;
|
|
15
|
-
classNames?: SelectionThumbClassNames
|
|
16
|
+
classNames?: Prettify<SelectionThumbClassNames>;
|
|
16
17
|
};
|
|
17
18
|
export type SelectionThumbIconProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
18
19
|
size?: SelectionIndicatorSize;
|
|
19
20
|
gloss?: boolean;
|
|
20
21
|
iconRef?: RefObject<HTMLSpanElement | null>;
|
|
21
22
|
children?: ReactNode;
|
|
22
|
-
classNames?: SelectionThumbIconClassNames
|
|
23
|
+
classNames?: Prettify<SelectionThumbIconClassNames>;
|
|
23
24
|
};
|