burne-ui 1.6.8 → 1.7.0

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.
Files changed (116) hide show
  1. package/README.md +5 -2
  2. package/cli/init.js +2 -2
  3. package/dist/components/composite/AlertDialog/alertDialogAPI.d.ts +1 -1
  4. package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +1 -0
  5. package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +0 -1
  6. package/dist/components/composite/AlertDialog/index.d.ts +0 -1
  7. package/dist/components/core/Alert/alertStyles.d.ts +3 -1
  8. package/dist/components/core/Button/Button.d.ts +0 -1
  9. package/dist/components/core/Button/buttonAnimations.d.ts +3 -4
  10. package/dist/components/core/Button/buttonParts.d.ts +2 -2
  11. package/dist/components/core/Button/buttonStyles.d.ts +2 -1
  12. package/dist/components/core/Button/buttonTypes.d.ts +4 -5
  13. package/dist/components/core/Button/index.d.ts +0 -1
  14. package/dist/components/core/Button/useButtonRootState.d.ts +1 -2
  15. package/dist/components/core/Calendar/calendarAnimations.d.ts +10 -11
  16. package/dist/components/core/Calendar/calendarStyles.d.ts +1 -1
  17. package/dist/components/core/Card/Card.d.ts +0 -1
  18. package/dist/components/core/Card/cardAnimations.d.ts +1 -1
  19. package/dist/components/core/Card/cardTypes.d.ts +0 -7
  20. package/dist/components/core/Card/index.d.ts +0 -1
  21. package/dist/components/core/Checkbox/checkboxStyles.d.ts +5 -4
  22. package/dist/components/core/CloseButton/CloseButton.d.ts +0 -1
  23. package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +1 -1
  24. package/dist/components/core/CloseButton/closeButtonTypes.d.ts +0 -2
  25. package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +1 -2
  26. package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
  27. package/dist/components/core/ComboBox/comboBoxTypes.d.ts +0 -9
  28. package/dist/components/core/Dialog/dialogAnimations.d.ts +2 -2
  29. package/dist/components/core/Dialog/dialogParts.d.ts +0 -1
  30. package/dist/components/core/Dialog/index.d.ts +0 -1
  31. package/dist/components/core/Disclosure/disclosureStyles.d.ts +1 -1
  32. package/dist/components/core/Drawer/drawerAnimations.d.ts +1 -2
  33. package/dist/components/core/Drawer/drawerParts.d.ts +0 -1
  34. package/dist/components/core/Drawer/index.d.ts +0 -1
  35. package/dist/components/core/Dropdown/dropdownItemParts.d.ts +1 -1
  36. package/dist/components/core/Dropdown/dropdownStyles.d.ts +1 -1
  37. package/dist/components/core/Dropdown/index.d.ts +1 -1
  38. package/dist/components/core/Dropdown/useDropdownItemState.d.ts +6 -1
  39. package/dist/components/core/Expandable/expandableStyles.d.ts +2 -2
  40. package/dist/components/core/Input/inputStyles.d.ts +3 -11
  41. package/dist/components/core/ListBox/ListBox.d.ts +1 -1
  42. package/dist/components/core/ListBox/index.d.ts +3 -3
  43. package/dist/components/core/ListBox/listBoxAnimations.d.ts +11 -1
  44. package/dist/components/core/ListBox/listBoxContext.d.ts +6 -0
  45. package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
  46. package/dist/components/core/ListBox/listBoxStyles.d.ts +2 -3
  47. package/dist/components/core/ListBox/listBoxTypes.d.ts +0 -1
  48. package/dist/components/core/ListBox/useListBoxItemState.d.ts +0 -1
  49. package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -0
  50. package/dist/components/core/Pagination/paginationAnimations.d.ts +16 -4
  51. package/dist/components/core/Pagination/paginationStyles.d.ts +1 -1
  52. package/dist/components/core/Popover/popoverStyles.d.ts +1 -1
  53. package/dist/components/core/ProgressBar/progressBarAPI.d.ts +0 -2
  54. package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +1 -1
  55. package/dist/components/core/ProgressBar/progressBarStyles.d.ts +1 -5
  56. package/dist/components/core/ProgressBar/progressBarTypes.d.ts +3 -2
  57. package/dist/components/core/ProgressBar/useProgressBarTrackState.d.ts +1 -1
  58. package/dist/components/core/Radio/radioStyles.d.ts +5 -4
  59. package/dist/components/core/Ripple/Ripple.d.ts +4 -0
  60. package/dist/components/core/Select/selectStyles.d.ts +2 -2
  61. package/dist/components/core/Select/selectTypes.d.ts +0 -8
  62. package/dist/components/core/Slider/sliderStyles.d.ts +2 -1
  63. package/dist/components/core/Switch/switchStyles.d.ts +5 -5
  64. package/dist/components/core/Table/index.d.ts +2 -2
  65. package/dist/components/core/Table/tableAPI.d.ts +1 -0
  66. package/dist/components/core/Table/tableContext.d.ts +4 -0
  67. package/dist/components/core/Table/tableParts.d.ts +2 -2
  68. package/dist/components/core/Table/tableTypes.d.ts +13 -4
  69. package/dist/components/core/TextArea/textAreaStyles.d.ts +2 -4
  70. package/dist/components/core/TimeField/timeFieldStyles.d.ts +3 -6
  71. package/dist/components/core/Toast/toastAPI.d.ts +5 -0
  72. package/dist/components/core/Toast/toastStyles.d.ts +4 -4
  73. package/dist/components/core/ToggleButton/ToggleButton.d.ts +0 -1
  74. package/dist/components/core/ToggleButton/index.d.ts +0 -1
  75. package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +1 -1
  76. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +1 -1
  77. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -3
  78. package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -2
  79. package/dist/components/core/Tooltip/tooltipStyles.d.ts +11 -8
  80. package/dist/components/core/utils/fieldShellVariant.d.ts +7 -3
  81. package/dist/components/core/utils/glossInteractiveMotion.d.ts +1 -1
  82. package/dist/components/core/utils/gsapMotion.d.ts +17 -3
  83. package/dist/components/core/utils/hoverInteractiveLift.d.ts +2 -3
  84. package/dist/components/core/utils/hoverVariant.d.ts +1 -1
  85. package/dist/components/core/utils/modalSurfaceMotion.d.ts +1 -0
  86. package/dist/components/core/utils/motionConfig.d.ts +70 -2
  87. package/dist/components/core/utils/optionListItemStyles.d.ts +1 -1
  88. package/dist/components/core/utils/pressRipple.d.ts +2 -2
  89. package/dist/components/core/utils/reducedMotion.d.ts +11 -0
  90. package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +19 -5
  91. package/dist/components/core/utils/useCollapsibleHeight.d.ts +1 -1
  92. package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +20 -0
  93. package/dist/components/core/utils/useFieldShellHoverLift.d.ts +20 -6
  94. package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +1 -5
  95. package/dist/components/core/utils/useModalMotion.d.ts +45 -0
  96. package/dist/components/core/utils/usePressableElementTextMotion.d.ts +15 -7
  97. package/dist/components/core/utils/useShadowMotion.d.ts +1 -1
  98. package/dist/index.cjs +1 -1
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.js +12305 -12143
  101. package/dist/internal.cjs +1 -1
  102. package/dist/internal.d.ts +4 -2
  103. package/dist/internal.js +55 -52
  104. package/dist/theme/themeConfig.d.ts +1 -1
  105. package/dist/theme/themeDefaults.d.ts +25 -1
  106. package/dist/theme/themeScript.d.ts +2 -1
  107. package/dist/themeRuntimeContext-BGPGJ9Al.cjs +14 -0
  108. package/dist/themeRuntimeContext-D_BFeuKg.js +5691 -0
  109. package/dist/tokens/config.d.ts +4 -0
  110. package/dist/tokens/index.d.ts +1 -1
  111. package/dist/ui.css +253 -100
  112. package/package.json +4 -4
  113. package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +0 -5
  114. package/dist/components/core/Select/selectAnimations.d.ts +0 -5
  115. package/dist/themeRuntimeContext-CE8HsqSx.js +0 -7742
  116. package/dist/themeRuntimeContext-zhfbKb8L.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').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "value"> & {
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,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: import('react').RefObject<HTMLElement | null>;
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').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "value"> & {
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, isActive, slotClass, className, }: {
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;
@@ -36,7 +36,6 @@ export type ListBoxContextValue = {
36
36
  multiple: boolean;
37
37
  selected: Set<string>;
38
38
  selectItem: (value: string) => void;
39
- activeValue: string | null;
40
39
  setActiveValue: (value: string | null) => void;
41
40
  showIndicator: boolean;
42
41
  indicatorMode: "radio" | "multi";
@@ -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
  };
@@ -1,6 +1,18 @@
1
- import { ForwardedRef } from 'react';
2
- export declare function usePaginationFlip(olRef: React.RefObject<HTMLOListElement | null>): void;
3
- export declare function usePaginationContentRef(forwardedRef: ForwardedRef<HTMLOListElement>): {
4
- olRef: import('react').RefObject<HTMLOListElement | null>;
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-wrap items-center justify-start gap-xsmall p-0";
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. */
@@ -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 will-change-transform";
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";
@@ -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, fillTargetStyle, isHorizontal, }: UseProgressBarFillAnimationProps): {
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 will-change-transform";
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,4 @@
1
- import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  export type ProgressBarSize = "small" | "base" | "mid" | "large";
3
3
  export type ProgressBarOrientation = "horizontal" | "vertical";
4
4
  export type ProgressBarClassNames = {
@@ -83,7 +83,8 @@ export type ProgressBarTrackAriaProps = {
83
83
  };
84
84
  export type UseProgressBarFillAnimationProps = {
85
85
  indeterminate: boolean;
86
- fillTargetStyle: CSSProperties;
86
+ /** 0–100 progress for determinate fill scale. */
87
+ percent: number;
87
88
  isHorizontal: boolean;
88
89
  };
89
90
  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
  };
@@ -1,21 +1,22 @@
1
+ import { RadioSize } from './radioTypes';
1
2
  export declare const RADIO_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
2
3
  export declare const RADIO_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
3
- export declare const RADIO_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
4
+ export declare const RADIO_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center has-focus-ring";
5
+ export declare function radioControlClass(size: RadioSize): string;
4
6
  export declare const RADIO_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center";
5
7
  export declare const RADIO_CONTENT_COMPOUND_CLASS = "min-w-0";
6
8
  export declare const RADIO_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0";
7
9
  export declare const RADIO_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
8
- export declare const RADIO_LABEL_MOTION_CLASS = "origin-center will-change-transform";
10
+ export declare const RADIO_LABEL_MOTION_CLASS = "origin-center";
9
11
  export declare const RADIO_LABEL_TEXT_DISABLED_CLASS = "text-muted";
10
12
  export declare const RADIO_LABEL_TEXT_DANGER_CLASS = "text-danger";
11
13
  export declare const RADIO_REQUIRED_MARK_CLASS = "text-danger";
12
14
  export declare const RADIO_HINT_DISABLED_CLASS = "text-muted";
13
15
  export declare const RADIO_ERROR_DISABLED_CLASS = "text-muted";
14
- export declare const RADIO_SIMPLE_LABEL_WRAP_CLASS = "origin-center will-change-transform";
16
+ export declare const RADIO_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
15
17
  export declare const RADIO_SIMPLE_LABEL_TEXT_CLASS = "min-w-0";
16
18
  export declare const RADIO_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
17
19
  export declare const RADIO_ROOT_DISABLED_CLASS = "cursor-not-allowed";
18
- export declare const RADIO_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
19
20
  export declare const RADIO_CONTENT_PASS_THROUGH_CLASS = "contents";
20
21
  export declare function radioControlCellClass(): string;
21
22
  export declare function radioGridClass(secondaryLines: number, gridGap: string, className?: string): string;
@@ -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;
@@ -13,9 +13,9 @@ export declare const SELECT_POPOVER_BODY_CLASS = "gap-0 p-base";
13
13
  export declare const SELECT_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
14
14
  export declare const SELECT_TRIGGER_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
15
15
  export declare const SELECT_TRIGGER_GROUP_ENABLED_CLASS = "cursor-pointer";
16
- export declare function selectShellSurface({ variant, status, }: {
16
+ export declare function selectShellSurface({ variant, }: {
17
17
  variant: InputVariant;
18
- status: InputStatus;
18
+ status?: InputStatus;
19
19
  }): string;
20
20
  export declare function selectGroupShellClass(groupSegment?: ButtonGroupSegment): string;
21
21
  export declare function selectTriggerGroupClass({ variant, status, disabled, groupSegment, shellHoverMotionClass, className, slotClass, }: {
@@ -118,11 +118,3 @@ export type SelectErrorProps = HTMLAttributes<HTMLParagraphElement> & {
118
118
  children?: ReactNode;
119
119
  };
120
120
  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
- };
@@ -55,7 +55,8 @@ export declare function sliderTrackHitAreaClass({ isHorizontal, size, thickness,
55
55
  slotClass?: string;
56
56
  className?: string;
57
57
  }): string;
58
- export declare function sliderThumbButtonClass({ orientation, disabled, active, slotClass, className, }: {
58
+ export declare function sliderThumbButtonClass({ size, orientation, disabled, active, slotClass, className, }: {
59
+ size: SliderSize;
59
60
  orientation: SliderOrientation;
60
61
  disabled?: boolean;
61
62
  active?: boolean;
@@ -3,21 +3,21 @@ import { SWITCH_LAYOUT, SwitchSize } from './switchGeometry';
3
3
  import { SwitchLabelPosition } from './switchTypes';
4
4
  export { SWITCH_LAYOUT };
5
5
  export declare const SWITCH_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
6
- export declare const SWITCH_CONTROL_BASE_CLASS = "relative inline-flex shrink-0 items-center justify-center";
6
+ export declare const SWITCH_CONTROL_BASE_CLASS = "relative inline-flex shrink-0 items-center justify-center has-focus-ring";
7
+ export declare function switchControlClass(size: SwitchSize): string;
7
8
  export declare const SWITCH_CONTENT_COMPOUND_CLASS = "min-w-0";
8
9
  export declare const SWITCH_CONTENT_PASS_THROUGH_CLASS = "contents";
9
10
  export declare const SWITCH_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0";
10
11
  export declare const SWITCH_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
11
- export declare const SWITCH_LABEL_MOTION_CLASS = "origin-center will-change-transform";
12
+ export declare const SWITCH_LABEL_MOTION_CLASS = "origin-center";
12
13
  export declare const SWITCH_LABEL_TEXT_CLASS = "font-w-mid";
13
14
  export declare const SWITCH_LABEL_TEXT_DISABLED_CLASS = "text-muted";
14
15
  export declare const SWITCH_HINT_DISABLED_CLASS = "text-muted";
15
16
  export declare const SWITCH_ERROR_DISABLED_CLASS = "text-muted";
16
- export declare const SWITCH_SIMPLE_LABEL_WRAP_CLASS = "origin-center will-change-transform";
17
+ export declare const SWITCH_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
17
18
  export declare const SWITCH_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
18
19
  export declare const SWITCH_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
19
20
  export declare const SWITCH_ROOT_DISABLED_CLASS = "cursor-not-allowed";
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
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";
@@ -27,7 +27,7 @@ export declare const SWITCH_FILL_BASE_CLASS = "pointer-events-none absolute inse
27
27
  export declare const SWITCH_FILL_GLOSS_CLASS = "z-[1]";
28
28
  export declare const SWITCH_FILL_COLOR_CLASS = "bg-primary";
29
29
  export declare const SWITCH_FILL_GLOSS_TINT_CLASS = "bg-primary-tint";
30
- export declare const SWITCH_THUMB_BASE_CLASS = "absolute inset-y-0 left-0 aspect-square h-full w-auto will-change-transform flex";
30
+ export declare const SWITCH_THUMB_BASE_CLASS = "absolute inset-y-0 left-0 aspect-square h-full w-auto flex";
31
31
  export declare const SWITCH_THUMB_GLOSS_CLASS = "z-[2]";
32
32
  export declare const SWITCH_ICON_BASE_CLASS = "absolute inset-0 flex items-center justify-center";
33
33
  export declare function switchLabelSide(labelPosition: SwitchLabelPosition): "left" | "right";
@@ -31,11 +31,11 @@ export declare const Table: import('react').ForwardRefExoticComponent<import('re
31
31
  children?: import('react').ReactNode | ((item: any) => import('react').ReactNode);
32
32
  renderEmptyState?: () => import('react').ReactNode;
33
33
  } & import('react').RefAttributes<HTMLTableSectionElement>>;
34
- Row: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
34
+ Row: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
35
35
  id?: string | number;
36
36
  tone?: import('./tableStyles').TableRowTone;
37
37
  } & import('react').RefAttributes<HTMLTableRowElement>>;
38
- Cell: import('react').ForwardRefExoticComponent<import('./tableTypes').TableCellProps & import('react').RefAttributes<HTMLTableCellElement>>;
38
+ Cell: import('react').NamedExoticComponent<import('./tableTypes').TableCellProps & import('react').RefAttributes<HTMLTableCellElement>>;
39
39
  Footer: import('react').ForwardRefExoticComponent<import('./tableTypes').TableFooterProps & import('react').RefAttributes<HTMLDivElement>>;
40
40
  };
41
41
  export { TABLE_ROW_TONE_SURFACE } from './tableStyles';
@@ -5,6 +5,7 @@ export declare const TONED_ROW_DEFAULT_TONE: "secondary";
5
5
  export declare const TABLE_LABEL_DISPLAY_NAME = "Table.Label";
6
6
  export declare function hasTableLabel(children: ReactNode): boolean;
7
7
  export declare function isRowInSelection(selectedKeys: Selection, key: string | number): boolean;
8
+ export declare function selectionEquals(a: Selection, b: Selection): boolean;
8
9
  export declare function toggleSelectionKey({ selectionMode, selectedKeys, key, }: {
9
10
  selectionMode: SelectionMode;
10
11
  selectedKeys: Selection;
@@ -19,4 +19,8 @@ export declare function useTableVariant(): TableVariant;
19
19
  export declare function useTableClassNames(): TableClassNames;
20
20
  export declare function useTableContent(): TableContentContextValue;
21
21
  export declare function useTableRow(): TableRowContextValue | null;
22
+ /** Per-row selected boolean — re-renders only when *this* row's selection flips. */
23
+ export declare function useTableRowIsSelected(id: string | number | undefined): boolean;
24
+ /** Per-row roving tab-stop — re-renders only when *this* row's focus target flips. */
25
+ export declare function useTableRowIsFocusTarget(id: string | number | undefined): boolean;
22
26
  export { TableVariantContext, TableContentContext, TableRowContext };
@@ -29,9 +29,9 @@ export declare const TableBody: import('react').ForwardRefExoticComponent<Omit<i
29
29
  children?: ReactNode | ((item: any) => ReactNode);
30
30
  renderEmptyState?: () => ReactNode;
31
31
  } & import('react').RefAttributes<HTMLTableSectionElement>>;
32
- export declare const TableRow: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
32
+ export declare const TableRow: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
33
33
  id?: string | number;
34
34
  tone?: import('./tableStyles').TableRowTone;
35
35
  } & import('react').RefAttributes<HTMLTableRowElement>>;
36
- export declare const TableCell: import('react').ForwardRefExoticComponent<TableCellProps & import('react').RefAttributes<HTMLTableCellElement>>;
36
+ export declare const TableCell: import('react').NamedExoticComponent<TableCellProps & import('react').RefAttributes<HTMLTableCellElement>>;
37
37
  export declare const TableFooter: import('react').ForwardRefExoticComponent<TableFooterProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -78,16 +78,25 @@ export type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
78
78
  export type TableFooterProps = HTMLAttributes<HTMLDivElement>;
79
79
  export type TableContentContextValue = {
80
80
  selectionMode: SelectionMode;
81
- selectedKeys: Selection;
82
81
  onRowSelect: (key: string | number) => void;
83
- isRowSelected: (key: string | number) => boolean;
84
82
  sortDescriptor: SortDescriptor | undefined;
85
83
  onSortChange: ((d: SortDescriptor) => void) | undefined;
86
- /** Roving focus key for selectable grid rows. */
87
- focusedRowKey: string | number | null;
88
84
  setFocusedRowKey: (key: string | number) => void;
89
85
  /** First selectable row claims initial tab stop. */
90
86
  claimFocusedRowKey: (key: string | number) => void;
87
+ /** External store for per-row selection / roving focus (avoids N-row context churn). */
88
+ rowStore: TableRowSelectionStore;
89
+ };
90
+ export type TableRowSelectionStore = {
91
+ subscribeSelection: (onStoreChange: () => void) => () => void;
92
+ subscribeFocus: (onStoreChange: () => void) => () => void;
93
+ getSelectedKeys: () => Selection;
94
+ isSelected: (key: string | number) => boolean;
95
+ getFocusedRowKey: () => string | number | null;
96
+ isFocusTarget: (key: string | number) => boolean;
97
+ setSelectedKeys: (next: Selection) => void;
98
+ setFocusedRowKey: (key: string | number) => void;
99
+ claimFocusedRowKey: (key: string | number) => void;
91
100
  };
92
101
  export type TableRowContextValue = {
93
102
  tone: TableRowTone;
@@ -1,5 +1,4 @@
1
1
  import { TextAreaSize, TextAreaStatus, TextAreaVariant } from './textAreaTypes';
2
- export declare const TEXTAREA_STATUS_TINT_SHELL_CLASS: Record<Exclude<TextAreaStatus, "default">, string>;
3
2
  export declare const TEXTAREA_MIN_H: Record<TextAreaSize, string>;
4
3
  export declare const TEXTAREA_SHELL_LAYOUT_CLASS = "flex flex-col items-stretch";
5
4
  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";
@@ -11,10 +10,9 @@ export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 righ
11
10
  export declare const TEXTAREA_RESIZE_HANDLE_DISABLED_CLASS = "cursor-not-allowed opacity-45";
12
11
  export declare const TEXTAREA_RESIZE_HANDLE_ENABLED_CLASS = "cursor-ns-resize";
13
12
  export declare function textareaControlClass(size: TextAreaSize): string;
14
- export declare function textareaShellSurfaceClass({ variant, status, statusTinted, }: {
13
+ export declare function textareaShellSurfaceClass({ variant, }: {
15
14
  variant: TextAreaVariant;
16
- status: TextAreaStatus;
17
- statusTinted: boolean;
15
+ status?: TextAreaStatus;
18
16
  }): string;
19
17
  export declare function textareaShellClass({ variant, status, blocked, size, shellSurface, glossShellHoverMotionClass, standardShellHoverMotionClass, slotClass, className, }: {
20
18
  variant: TextAreaVariant;
@@ -1,6 +1,4 @@
1
1
  import { TimeFieldSize, TimeFieldStatus, TimeFieldVariant } from './timeFieldTypes';
2
- export declare const TIME_FIELD_STATUS_TINT_SHELL_CLASS: Record<Exclude<TimeFieldStatus, "default">, string>;
3
- export declare const TIME_FIELD_STATUS_TINT_AFFIX_CLASS: Record<Exclude<TimeFieldStatus, "default">, string>;
4
2
  export declare const TIME_FIELD_AFFIX_SURFACE_CLASS = "bg-primary-tint";
5
3
  export declare const TIME_FIELD_AFFIX_PREFIX_EDGE_CLASS = "border-r-token";
6
4
  export declare const TIME_FIELD_AFFIX_SUFFIX_EDGE_CLASS = "border-l-token";
@@ -19,17 +17,16 @@ export declare const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 fle
19
17
  /** Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize. */
20
18
  export declare const TIME_FIELD_SHELL_INNER_CLASS = "flex min-w-0 w-full items-stretch";
21
19
  export declare const TIME_FIELD_SEGMENTS_SEGMENTED_CLASS = "gap-xsmall";
22
- export declare function timeFieldAffixSurfaceClass(status: TimeFieldStatus): string;
20
+ export declare function timeFieldAffixSurfaceClass(_status?: TimeFieldStatus): string;
23
21
  export declare function timeFieldAffixSlotClass({ side, status, size, slotClass, }: {
24
22
  side: "prefix" | "suffix";
25
23
  status: TimeFieldStatus;
26
24
  size: TimeFieldSize;
27
25
  slotClass?: string;
28
26
  }): string;
29
- export declare function timeFieldShellSurfaceClass({ variant, status, statusTinted, }: {
27
+ export declare function timeFieldShellSurfaceClass({ variant, }: {
30
28
  variant: TimeFieldVariant;
31
- status: TimeFieldStatus;
32
- statusTinted: boolean;
29
+ status?: TimeFieldStatus;
33
30
  }): string;
34
31
  export declare function timeFieldShellClass({ variant, status, disabled, compact, shellSurface, glossShellHoverMotionClass, standardShellHoverMotionClass, slotClass, className, }: {
35
32
  variant: TimeFieldVariant;
@@ -1,11 +1,16 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
3
3
  import { ToastStatus } from './toastTypes';
4
+ /** Toast stack peek above the next card — intentional layout constant. */
4
5
  export declare const TOAST_STACK_PEEK_PX = 8;
6
+ /** Per-depth scale step in the toast stack — intentional layout constant. */
5
7
  export declare const TOAST_STACK_SCALE_STEP = 0.04;
6
8
  export declare const TOAST_MAX_VISIBLE = 3;
7
9
  export declare const TOAST_DEFAULT_TIMEOUT_MS = 4000;
10
+ /** Enter slide offset — intentional motion constant (not in `configureMotion`). */
8
11
  export declare const TOAST_ENTRY_OFFSET_PX = 24;
12
+ /** Stack container height: front card + peek for visible depth (capped). */
13
+ export declare function resolveToastStackContainerHeight(frontHeight: number, stackCount: number): number;
9
14
  export declare function createToastId(): string;
10
15
  export declare function toastHasTitle(children: ReactNode): boolean;
11
16
  export declare function toastHasDescription(children: ReactNode): boolean;
@@ -1,23 +1,23 @@
1
1
  import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
2
2
  import { LoadingColor } from '../Loading';
3
3
  import { ToastPlacement, ToastSize, ToastStatus, ToastVariant } from './toastTypes';
4
- export declare const TOAST_SURFACE_CLASS: Record<ToastStatus, string>;
4
+ /** Neutral shell for every status — accents live on the indicator icon. */
5
+ export declare const TOAST_SURFACE_CLASS = "bg-surface border-token text-foreground";
5
6
  export declare const TOAST_ICON_CLASS: Record<ToastStatus, string>;
6
7
  export declare const TOAST_COMPOUND_CONTENTS_CLASS = "contents";
7
8
  export declare const TOAST_TITLE_CLASS = "font-w-mid";
9
+ export declare function toastTitleClass(status: ToastStatus): string;
8
10
  export declare const TOAST_DESCRIPTION_CLASS = "text-muted";
9
11
  export declare const TOAST_CLOSE_BUTTON_OFFSET_CLASS = "-mx-xsmall";
10
12
  export declare const TOAST_INDICATOR_BASE_CLASS = "inline-flex shrink-0 items-center justify-center";
11
13
  export declare function toastIndicatorClass(status: ToastStatus, iconSvgClass: string, slotClass?: string): string;
12
14
  export declare const TOAST_VIEWPORT_BASE_CLASS = "fixed z-toast pointer-events-none";
13
15
  export declare const TOAST_STACK_CONTAINER_CLASS = "relative grid";
14
- export declare const TOAST_STACK_ITEM_CLASS = "will-change-transform";
15
16
  export declare const TOAST_SCRIM_BASE_CLASS = "pointer-events-none absolute";
16
17
  export declare function toastPlacementClass(placement: ToastPlacement): string;
17
18
  export declare function toastLoadingColor(status: ToastStatus): LoadingColor;
18
- export declare function toastRootClass({ variant, status, size, gridSlots, slotClass, className, }: {
19
+ export declare function toastRootClass({ variant, size, gridSlots, slotClass, className, }: {
19
20
  variant: ToastVariant;
20
- status: ToastStatus;
21
21
  size?: ToastSize;
22
22
  gridSlots: MessageBannerGridSlots;
23
23
  slotClass?: string;
@@ -12,6 +12,5 @@ export declare const ToggleButtonRoot: import('react').ForwardRefExoticComponent
12
12
  size?: import('./toggleButtonTypes').ToggleButtonSize;
13
13
  icon?: import('react').ReactNode;
14
14
  iconPosition?: import('../utils/iconPosition').IconPosition;
15
- animated?: boolean;
16
15
  classNames?: import('./toggleButtonTypes').ToggleButtonClassNames;
17
16
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -12,7 +12,6 @@ export declare const ToggleButton: import('react').ForwardRefExoticComponent<Omi
12
12
  size?: import('./toggleButtonTypes').ToggleButtonSize;
13
13
  icon?: import('react').ReactNode;
14
14
  iconPosition?: import('../utils/iconPosition').IconPosition;
15
- animated?: boolean;
16
15
  classNames?: import('./toggleButtonTypes').ToggleButtonClassNames;
17
16
  } & import('react').RefAttributes<HTMLButtonElement>> & {
18
17
  Content: import('react').ForwardRefExoticComponent<import('./toggleButtonTypes').ToggleButtonContentProps & import('react').RefAttributes<HTMLSpanElement>>;
@@ -4,7 +4,7 @@ import { UseToggleButtonAnimationsProps } from './toggleButtonTypes';
4
4
  * Interactive motion + fill: fill starts at the beginning of the squeeze release phase,
5
5
  * after click has confirmed the next pressed value (on and off share this timing).
6
6
  */
7
- export declare function useToggleButtonAnimations({ animated, disabled, variant, groupSegment, forwardedRef, pressed, onFillStart, onPointerEnter, onPointerLeave, onPointerDown, }: UseToggleButtonAnimationsProps): {
7
+ export declare function useToggleButtonAnimations({ disabled, variant, groupSegment, forwardedRef, pressed, onFillStart, onPointerEnter, onPointerLeave, onPointerDown, }: UseToggleButtonAnimationsProps): {
8
8
  setRefs: (node: HTMLButtonElement | null) => void;
9
9
  contentMotionRef: import('react').RefObject<HTMLSpanElement | null>;
10
10
  handlePointerEnter: (e: PointerEvent<HTMLButtonElement>) => void;
@@ -8,7 +8,7 @@ export declare const TOGGLE_BUTTON_DISABLED_CLASS = "cursor-not-allowed opacity-
8
8
  export declare const TOGGLE_BUTTON_ENABLED_CLASS = "cursor-pointer";
9
9
  export declare const TOGGLE_BUTTON_FILL_BASE_CLASS = "pointer-events-none absolute -inset-px z-0 origin-center motion-reduce:transition-none";
10
10
  export declare const TOGGLE_BUTTON_CONTENT_BASE_CLASS = "relative z-[1] inline-flex w-full min-w-0 items-center justify-center gap-xsmall";
11
- export declare const TOGGLE_BUTTON_CONTENT_GROUP_MOTION_CLASS = "origin-center will-change-transform";
11
+ export declare const TOGGLE_BUTTON_CONTENT_GROUP_MOTION_CLASS = "origin-center";
12
12
  export declare const TOGGLE_BUTTON_ICON_SLOT_CLASS = "inline-flex shrink-0 items-center justify-center [&_svg]:size-full";
13
13
  export declare const TOGGLE_BUTTON_LABEL_LAYER_CLASS = "inline-flex w-full min-w-0 items-center gap-xsmall";
14
14
  export declare const TOGGLE_BUTTON_TEXT_CLASS = "min-w-0 shrink";
@@ -36,7 +36,6 @@ export type ToggleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "a
36
36
  icon?: ReactNode;
37
37
  /** @default "start" */
38
38
  iconPosition?: IconPosition;
39
- animated?: boolean;
40
39
  classNames?: ToggleButtonClassNames;
41
40
  };
42
41
  export type ToggleButtonFillProps = HTMLAttributes<HTMLSpanElement>;
@@ -65,9 +64,8 @@ export type ToggleButtonGroupContextValue = {
65
64
  select: (value: string) => void;
66
65
  tabIndexFor: (value: string) => 0 | -1 | undefined;
67
66
  };
68
- export type UseToggleButtonRootStateProps = Pick<ToggleButtonProps, "value" | "groupSegment" | "pressed" | "defaultPressed" | "onPressedChange" | "onFillStart" | "variant" | "fillColor" | "size" | "animated" | "disabled" | "className" | "classNames" | "children" | "onClick">;
67
+ export type UseToggleButtonRootStateProps = Pick<ToggleButtonProps, "value" | "groupSegment" | "pressed" | "defaultPressed" | "onPressedChange" | "onFillStart" | "variant" | "fillColor" | "size" | "disabled" | "className" | "classNames" | "children" | "onClick">;
69
68
  export type UseToggleButtonAnimationsProps = {
70
- animated: boolean;
71
69
  disabled: boolean;
72
70
  variant: ToggleButtonVariant;
73
71
  groupSegment: ButtonGroupSegment | undefined;
@@ -1,5 +1,5 @@
1
1
  import { UseToggleButtonRootStateProps } from './toggleButtonTypes';
2
- export declare function useToggleButtonRootState({ value: itemValue, groupSegment: groupSegmentProp, pressed: pressedProp, defaultPressed, onPressedChange, onFillStart, variant: variantProp, fillColor, size: sizeProp, animated, disabled: disabledProp, className, classNames, children, onClick, }: UseToggleButtonRootStateProps): {
2
+ export declare function useToggleButtonRootState({ value: itemValue, groupSegment: groupSegmentProp, pressed: pressedProp, defaultPressed, onPressedChange, onFillStart, variant: variantProp, fillColor, size: sizeProp, disabled: disabledProp, className, classNames, children, onClick, }: UseToggleButtonRootStateProps): {
3
3
  itemValue: string | undefined;
4
4
  groupCtx: import('./toggleButtonTypes').ToggleButtonGroupContextValue | null;
5
5
  groupSegment: Readonly<{
@@ -14,7 +14,6 @@ export declare function useToggleButtonRootState({ value: itemValue, groupSegmen
14
14
  pressed: boolean;
15
15
  onFillStart: ((pressed: boolean) => void) | undefined;
16
16
  fillColor: string;
17
- animated: boolean;
18
17
  classNames: import('./toggleButtonTypes').ToggleButtonClassNames | undefined;
19
18
  roundingClass: string;
20
19
  role: "radio" | undefined;