burne-ui 2.0.1 → 2.0.3

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 (69) hide show
  1. package/cli/tailwind.css +2 -2
  2. package/cli/templates/skin-tier-2/src/skin.css +1 -1
  3. package/cli/templates/skin-tier-3/src/skin.css +1 -1
  4. package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +1 -1
  5. package/dist/components/composite/ButtonGroup/buttonGroupStyles.js +7 -2
  6. package/dist/components/core/Badge/badgeStyles.d.ts +6 -1
  7. package/dist/components/core/Badge/badgeStyles.js +2 -2
  8. package/dist/components/core/Button/useButtonRootState.js +5 -2
  9. package/dist/components/core/Calendar/calendarParts.js +15 -13
  10. package/dist/components/core/Calendar/calendarStyles.d.ts +5 -2
  11. package/dist/components/core/Calendar/calendarStyles.js +3 -3
  12. package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
  13. package/dist/components/core/ComboBox/comboBoxStyles.js +2 -2
  14. package/dist/components/core/DatePicker/datePickerAnimations.d.ts +2 -0
  15. package/dist/components/core/DatePicker/datePickerAnimations.js +31 -2
  16. package/dist/components/core/DatePicker/datePickerParts.js +20 -2
  17. package/dist/components/core/Disclosure/disclosureAnimations.js +9 -3
  18. package/dist/components/core/Disclosure/disclosureStyles.js +2 -1
  19. package/dist/components/core/Dropdown/dropdownAnimations.js +5 -3
  20. package/dist/components/core/Dropdown/dropdownStyles.d.ts +1 -1
  21. package/dist/components/core/Dropdown/dropdownStyles.js +1 -1
  22. package/dist/components/core/Expandable/Expandable.js +2 -2
  23. package/dist/components/core/Expandable/expandableStyles.d.ts +2 -1
  24. package/dist/components/core/Expandable/expandableStyles.js +3 -1
  25. package/dist/components/core/HoverCard/hoverCardStyles.js +5 -2
  26. package/dist/components/core/Input/inputControlParts.js +4 -4
  27. package/dist/components/core/Input/inputStyles.d.ts +3 -1
  28. package/dist/components/core/Input/inputStyles.js +8 -1
  29. package/dist/components/core/NumberInput/numberInputAnimations.d.ts +21 -21
  30. package/dist/components/core/NumberInput/numberInputAnimations.js +22 -4
  31. package/dist/components/core/NumberInput/numberInputStyles.js +1 -1
  32. package/dist/components/core/PinInput/pinInputStyles.js +7 -1
  33. package/dist/components/core/Popover/popoverStyles.js +3 -3
  34. package/dist/components/core/SearchInput/searchInputStyles.d.ts +1 -1
  35. package/dist/components/core/SearchInput/searchInputStyles.js +1 -1
  36. package/dist/components/core/Select/selectStyles.d.ts +3 -3
  37. package/dist/components/core/Select/selectStyles.js +3 -3
  38. package/dist/components/core/Slider/sliderTypes.d.ts +1 -1
  39. package/dist/components/core/Slider/useSliderTrackState.js +1 -0
  40. package/dist/components/core/Stepper/Stepper.js +1 -1
  41. package/dist/components/core/Stepper/stepperAnimations.d.ts +9 -3
  42. package/dist/components/core/Stepper/stepperAnimations.js +32 -1
  43. package/dist/components/core/Stepper/stepperParts.js +32 -5
  44. package/dist/components/core/Stepper/stepperTypes.d.ts +3 -1
  45. package/dist/components/core/Table/tableParts.js +21 -3
  46. package/dist/components/core/Table/tableStyles.d.ts +10 -1
  47. package/dist/components/core/Table/tableStyles.js +7 -1
  48. package/dist/components/core/TextArea/textAreaStyles.js +1 -1
  49. package/dist/components/core/TimeField/timeFieldStyles.d.ts +5 -2
  50. package/dist/components/core/TimeField/timeFieldStyles.js +3 -2
  51. package/dist/components/core/ToggleButton/toggleButtonParts.js +3 -3
  52. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +6 -1
  53. package/dist/components/core/ToggleButton/toggleButtonStyles.js +16 -3
  54. package/dist/components/core/Tooltip/tooltipStyles.d.ts +1 -1
  55. package/dist/components/core/Tooltip/tooltipStyles.js +1 -1
  56. package/dist/components/core/utils/motionConfig.d.ts +18 -17
  57. package/dist/components/core/utils/motionConfig.js +38 -10
  58. package/dist/components/core/utils/motionConfigValidation.js +0 -1
  59. package/dist/components/core/utils/sizeLayout/iconSlot.d.ts +1 -1
  60. package/dist/components/core/utils/slotMotion/useMotionPart.js +1 -1
  61. package/dist/studio/themePresets.js +0 -7
  62. package/dist/studio/themeTokenSchema.js +2 -3
  63. package/dist/theme/themeConfig.d.ts +1 -1
  64. package/dist/theme/themeConfig.js +0 -1
  65. package/dist/theme/themeDefaults.d.ts +0 -3
  66. package/dist/theme/themeDefaults.js +15 -9
  67. package/dist/tokens/config.d.ts +1 -1
  68. package/dist/ui.css +101 -23
  69. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ForwardedRef, MutableRefObject, PointerEventHandler } from 'react';
1
+ import { ForwardedRef, MutableRefObject, PointerEvent as ReactPointerEvent, PointerEventHandler } from 'react';
2
2
  import { MotionPartPhases } from '../utils/slotMotion/index.js';
3
3
  import { InputVariant } from '../Input/inputTypes.js';
4
4
  import { NumberInputMotion, NumberInputPartMotion } from './numberInputTypes.js';
@@ -18,10 +18,10 @@ export declare function resolveNumberInputMotionParams({ variant, disabled, poin
18
18
  export declare function useNumberInputShellMotion(): {
19
19
  setRef: (node: HTMLDivElement | null) => void;
20
20
  pointerHandlers: {
21
- onPointerOver: (e: import('react').PointerEvent<HTMLDivElement>) => void;
22
- onPointerOut: (e: import('react').PointerEvent<HTMLDivElement>) => void;
23
- onPointerDown: (e: import('react').PointerEvent<HTMLDivElement>) => void;
24
- onPointerUp: (e: import('react').PointerEvent<HTMLDivElement>) => void;
21
+ onPointerOver: (e: ReactPointerEvent<HTMLDivElement>) => void;
22
+ onPointerOut: (e: ReactPointerEvent<HTMLDivElement>) => void;
23
+ onPointerDown: (e: ReactPointerEvent<HTMLDivElement>) => void;
24
+ onPointerUp: (e: ReactPointerEvent<HTMLDivElement>) => void;
25
25
  };
26
26
  shellHoverMotionClass: string;
27
27
  };
@@ -36,10 +36,10 @@ export declare function useNumberInputControlMotion({ motion, forwardedRef, onPo
36
36
  setRef: (node: HTMLInputElement | null) => void;
37
37
  targetRef: import('react').RefObject<HTMLInputElement | null>;
38
38
  pointerHandlers: {
39
- onPointerOver: (e: import('react').PointerEvent<HTMLInputElement>) => void;
40
- onPointerOut: (e: import('react').PointerEvent<HTMLInputElement>) => void;
41
- onPointerDown: (e: import('react').PointerEvent<HTMLInputElement>) => void;
42
- onPointerUp: (e: import('react').PointerEvent<HTMLInputElement>) => void;
39
+ onPointerOver: (e: ReactPointerEvent<HTMLInputElement>) => void;
40
+ onPointerOut: (e: ReactPointerEvent<HTMLInputElement>) => void;
41
+ onPointerDown: (e: ReactPointerEvent<HTMLInputElement>) => void;
42
+ onPointerUp: (e: ReactPointerEvent<HTMLInputElement>) => void;
43
43
  };
44
44
  };
45
45
  export declare function useNumberInputDecrementMotion({ motion, forwardedRef, blocked, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
@@ -54,10 +54,10 @@ export declare function useNumberInputDecrementMotion({ motion, forwardedRef, bl
54
54
  setRef: (node: HTMLButtonElement | null) => void;
55
55
  targetRef: import('react').RefObject<HTMLButtonElement | null>;
56
56
  pointerHandlers: {
57
- onPointerOver: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
58
- onPointerOut: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
59
- onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
60
- onPointerUp: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
57
+ onPointerOver: (e: ReactPointerEvent<HTMLButtonElement>) => void;
58
+ onPointerOut: (e: ReactPointerEvent<HTMLButtonElement>) => void;
59
+ onPointerDown: (e: ReactPointerEvent<HTMLButtonElement>) => void;
60
+ onPointerUp: (e: ReactPointerEvent<HTMLButtonElement>) => void;
61
61
  };
62
62
  };
63
63
  export declare function useNumberInputIncrementMotion({ motion, forwardedRef, blocked, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
@@ -72,10 +72,10 @@ export declare function useNumberInputIncrementMotion({ motion, forwardedRef, bl
72
72
  setRef: (node: HTMLButtonElement | null) => void;
73
73
  targetRef: import('react').RefObject<HTMLButtonElement | null>;
74
74
  pointerHandlers: {
75
- onPointerOver: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
76
- onPointerOut: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
77
- onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
78
- onPointerUp: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
75
+ onPointerOver: (e: ReactPointerEvent<HTMLButtonElement>) => void;
76
+ onPointerOut: (e: ReactPointerEvent<HTMLButtonElement>) => void;
77
+ onPointerDown: (e: ReactPointerEvent<HTMLButtonElement>) => void;
78
+ onPointerUp: (e: ReactPointerEvent<HTMLButtonElement>) => void;
79
79
  };
80
80
  };
81
81
  export declare function useNumberInputChromeSlot(slot: "label" | "hint" | "error", { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
@@ -89,9 +89,9 @@ export declare function useNumberInputChromeSlot(slot: "label" | "hint" | "error
89
89
  setRef: (node: HTMLElement | null) => void;
90
90
  targetRef: import('react').RefObject<HTMLElement | null>;
91
91
  pointerHandlers: {
92
- onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
93
- onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
94
- onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
95
- onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
92
+ onPointerOver: (e: ReactPointerEvent<HTMLElement>) => void;
93
+ onPointerOut: (e: ReactPointerEvent<HTMLElement>) => void;
94
+ onPointerDown: (e: ReactPointerEvent<HTMLElement>) => void;
95
+ onPointerUp: (e: ReactPointerEvent<HTMLElement>) => void;
96
96
  };
97
97
  };
@@ -77,6 +77,18 @@ function useNumberInputShellMotion() {
77
77
  shellHoverMotionClass: kitSurface ? shadow.motionClass : ""
78
78
  };
79
79
  }
80
+ const STEPPER_PRESS_PARAMS = {
81
+ hasHoverShadow: false,
82
+ restoreHover: false,
83
+ shadow: void 0,
84
+ shadowSize: void 0
85
+ };
86
+ function playStepperPress(scope, slot, motion, event) {
87
+ if (!scope || event.defaultPrevented) return;
88
+ const el = event.currentTarget;
89
+ if (!el) return;
90
+ scope.play(slot, "pressIn", { el, partMotion: motion, params: STEPPER_PRESS_PARAMS });
91
+ }
80
92
  function useNumberInputControlMotion({
81
93
  motion,
82
94
  forwardedRef,
@@ -117,10 +129,13 @@ function useNumberInputDecrementMotion({
117
129
  slot: "decrement",
118
130
  motion,
119
131
  forwardedRef,
120
- pressPhases: !blocked,
121
132
  onPointerOver,
122
133
  onPointerOut,
123
- onPointerDown,
134
+ onPointerDown: (event) => {
135
+ onPointerDown?.(event);
136
+ if (blocked) return;
137
+ playStepperPress(scope, "decrement", motion, event);
138
+ },
124
139
  onPointerUp
125
140
  });
126
141
  useOptionalEnterOnMount(scope, "decrement", part.targetRef);
@@ -141,10 +156,13 @@ function useNumberInputIncrementMotion({
141
156
  slot: "increment",
142
157
  motion,
143
158
  forwardedRef,
144
- pressPhases: !blocked,
145
159
  onPointerOver,
146
160
  onPointerOut,
147
- onPointerDown,
161
+ onPointerDown: (event) => {
162
+ onPointerDown?.(event);
163
+ if (blocked) return;
164
+ playStepperPress(scope, "increment", motion, event);
165
+ },
148
166
  onPointerUp
149
167
  });
150
168
  useOptionalEnterOnMount(scope, "increment", part.targetRef);
@@ -52,7 +52,7 @@ function numberInputShellClass({
52
52
  }) {
53
53
  const kitSurface = usesKitElevation(variant, KIT_INPUT_VARIANTS);
54
54
  return cn(
55
- "relative flex w-full min-w-0 items-stretch overflow-hidden rounded-base border-1",
55
+ "relative flex w-full min-w-0 items-stretch rounded-base border-1",
56
56
  NUMBER_INPUT_SHELL_MIN[size],
57
57
  numberInputShellSurface(variant),
58
58
  fieldShellFocusRingClass(status),
@@ -14,6 +14,12 @@ const PIN_INPUT_CELL_BOX = {
14
14
  mid: "w-control-mid min-h-control-mid",
15
15
  large: "w-control-large min-h-control-large"
16
16
  };
17
+ const PIN_INPUT_CELL_TEXT = {
18
+ small: "p-0 text-center text-small",
19
+ base: "p-0 text-center text-base",
20
+ mid: "p-0 text-center text-mid",
21
+ large: "p-0 text-center text-mid"
22
+ };
17
23
  const PIN_INPUT_DISABLED_CLASS = "cursor-not-allowed opacity-55";
18
24
  const PIN_INPUT_MASK_CLASS = "[-webkit-text-security:disc] [text-security:disc]";
19
25
  function pinInputFieldSurface(variant) {
@@ -42,7 +48,7 @@ function pinInputFieldClass({
42
48
  "box-border shrink-0 border-1 text-center text-foreground outline-none tabular-nums placeholder:text-muted",
43
49
  PIN_INPUT_CELL_BOX[size],
44
50
  CONTROL_SIZE_LAYOUT[size].rounded,
45
- CONTROL_SIZE_LAYOUT[size].controlPad,
51
+ PIN_INPUT_CELL_TEXT[size],
46
52
  pinInputFieldSurface(variant),
47
53
  fieldShellFocusRingClass(status),
48
54
  FIELD_SHELL_TRANSITION_CLASS,
@@ -27,9 +27,9 @@ const POPOVER_CONTENT_CLASS = "pointer-events-auto z-popover w-max min-w-0 overf
27
27
  const POPOVER_PANEL_RELATIVE_CLASS = "relative overflow-visible";
28
28
  const POPOVER_PANEL_BASE_CLASS = "relative z-[1] flex min-w-0 flex-col overflow-hidden text-foreground";
29
29
  const POPOVER_PANEL_SURFACE = {
30
- default: "border-token bg-surface shadow-token-large",
31
- outline: "bg-transparent border-token-outline text-foreground shadow-token-large",
32
- secondary: "bg-secondary border-token text-secondary-foreground shadow-token-large"
30
+ default: "border-token bg-surface shadow-token-mid",
31
+ outline: "bg-transparent border-token-outline text-foreground shadow-token-mid",
32
+ secondary: "bg-secondary border-token text-secondary-foreground shadow-token-mid"
33
33
  };
34
34
  const POPOVER_ARROW_BASE_CLASS = "pointer-events-none absolute z-0 size-2 rotate-45";
35
35
  const POPOVER_ARROW_FILL = {
@@ -9,7 +9,7 @@ export declare const SEARCH_INPUT_CONTROL_EXPANDED_CLASS = "pointer-events-auto
9
9
  export declare const SEARCH_INPUT_CONTROL_COLLAPSED_CLASS = "pointer-events-none absolute inset-0 z-[2] opacity-0";
10
10
  export declare const SEARCH_INPUT_CLEAR_BUTTON_CLASS = "absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center rounded-full border-0 bg-transparent p-0 text-foreground outline-none focus-ring-inset cursor-pointer";
11
11
  export declare const SEARCH_INPUT_CLEAR_ICON_CLASS = "shrink-0";
12
- export declare const SEARCH_INPUT_ROOT_BASE_CLASS = "relative box-border inline-block overflow-hidden text-start";
12
+ export declare const SEARCH_INPUT_ROOT_BASE_CLASS = "relative box-border inline-block text-start";
13
13
  export declare const SEARCH_INPUT_ROOT_BORDER_CLASS = "border-1 border-token";
14
14
  export declare const SEARCH_INPUT_ROOT_COLLAPSED_ROUNDED_CLASS = "rounded-full";
15
15
  export declare const SEARCH_INPUT_CURSOR_TEXT_CLASS = "cursor-text";
@@ -15,7 +15,7 @@ const SEARCH_INPUT_CONTROL_EXPANDED_CLASS = "pointer-events-auto absolute inset-
15
15
  const SEARCH_INPUT_CONTROL_COLLAPSED_CLASS = "pointer-events-none absolute inset-0 z-[2] opacity-0";
16
16
  const SEARCH_INPUT_CLEAR_BUTTON_CLASS = "absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center rounded-full border-0 bg-transparent p-0 text-foreground outline-none focus-ring-inset cursor-pointer";
17
17
  const SEARCH_INPUT_CLEAR_ICON_CLASS = "shrink-0";
18
- const SEARCH_INPUT_ROOT_BASE_CLASS = "relative box-border inline-block overflow-hidden text-start";
18
+ const SEARCH_INPUT_ROOT_BASE_CLASS = "relative box-border inline-block text-start";
19
19
  const SEARCH_INPUT_ROOT_BORDER_CLASS = "border-1 border-token";
20
20
  const SEARCH_INPUT_ROOT_COLLAPSED_ROUNDED_CLASS = "rounded-full";
21
21
  const SEARCH_INPUT_CURSOR_TEXT_CLASS = "cursor-text";
@@ -3,12 +3,12 @@ import { InputSize, InputVariant } from '../Input/index.js';
3
3
  import { FieldShellStatus } from '../utils/fieldShellVariant.js';
4
4
  export declare const SELECT_VALUE_CONTROL: Record<InputSize, string>;
5
5
  export declare const SELECT_CHEVRON_ICON_SLOT: Record<InputSize, string>;
6
- export declare const SELECT_TRIGGER_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start overflow-hidden motion-reduce:transition-none";
6
+ export declare const SELECT_TRIGGER_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start motion-reduce:transition-none";
7
7
  export declare const SELECT_CLEAR_CLASS = "inline-flex shrink-0 items-center self-center text-muted icon-slot icon-slot-base focus-ring";
8
8
  export declare function selectClearClass(size: InputSize): string;
9
- export declare const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 truncate bg-transparent text-start text-foreground outline-none";
9
+ export declare const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 cursor-pointer truncate bg-transparent text-start text-foreground outline-none disabled:cursor-not-allowed";
10
10
  export declare const SELECT_VALUE_MUTED_CLASS = "text-muted";
11
- export declare const SELECT_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset";
11
+ export declare const SELECT_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
12
12
  export declare const SELECT_TRIGGER_DISABLED_CLASS = "pointer-events-none";
13
13
  /** Same band as Popover; above Dialog when sharing a stacking context (not `showModal` top layer). */
14
14
  export declare const SELECT_POPOVER_CLASS = "z-popover";
@@ -18,7 +18,7 @@ const SELECT_CHEVRON_ICON_SLOT = {
18
18
  mid: iconSlotClass("mid"),
19
19
  large: iconSlotClass("large")
20
20
  };
21
- const SELECT_TRIGGER_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start overflow-hidden motion-reduce:transition-none";
21
+ const SELECT_TRIGGER_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start motion-reduce:transition-none";
22
22
  const SELECT_CLEAR_CLASS = "inline-flex shrink-0 items-center self-center text-muted icon-slot icon-slot-base focus-ring";
23
23
  const SELECT_CLEAR_END_PAD = {
24
24
  small: "pe-base",
@@ -29,9 +29,9 @@ const SELECT_CLEAR_END_PAD = {
29
29
  function selectClearClass(size) {
30
30
  return cn(SELECT_CLEAR_CLASS, SELECT_CLEAR_END_PAD[size]);
31
31
  }
32
- const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 truncate bg-transparent text-start text-foreground outline-none";
32
+ const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 cursor-pointer truncate bg-transparent text-start text-foreground outline-none disabled:cursor-not-allowed";
33
33
  const SELECT_VALUE_MUTED_CLASS = "text-muted";
34
- const SELECT_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset";
34
+ const SELECT_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
35
35
  const SELECT_TRIGGER_DISABLED_CLASS = "pointer-events-none";
36
36
  const SELECT_POPOVER_CLASS = "z-popover";
37
37
  const SELECT_POPOVER_BODY_CLASS = "gap-0 p-base";
@@ -232,7 +232,7 @@ export type FillSpan = {
232
232
  end: number;
233
233
  };
234
234
  /** DOM rest of `Slider.Track` after the hook reads its own props. */
235
- export type SliderTrackRestProps = Omit<SliderTrackProps, "orientation" | "size" | "thickness" | "min" | "max" | "step" | "marks" | "formatValue" | "icon" | "variant" | "disabled" | "readOnly" | "className" | "style" | "classNames" | "aria-label" | "aria-labelledby" | "range" | "children" | "onPointerDown" | "value" | "defaultValue" | "onValueChange" | "motion" | "motionController" | "motionState" | "motionPayload" | "playInitialState">;
235
+ export type SliderTrackRestProps = Omit<SliderTrackProps, "orientation" | "size" | "thickness" | "min" | "max" | "step" | "marks" | "formatValue" | "icon" | "variant" | "disabled" | "readOnly" | "className" | "style" | "classNames" | "aria-label" | "aria-labelledby" | "range" | "children" | "onPointerDown" | "value" | "defaultValue" | "onValueChange" | "onValueCommit" | "motion" | "motionController" | "motionState" | "motionPayload" | "playInitialState">;
236
236
  /** Named so declaration emit does not inline `CSSProperties`. */
237
237
  export type UseSliderTrackStateResult = {
238
238
  setTrackRef: (node: HTMLDivElement | null) => void;
@@ -33,6 +33,7 @@ function useSliderTrackState(props, ref) {
33
33
  value: _value,
34
34
  defaultValue: _defaultValue,
35
35
  onValueChange: _onValueChange,
36
+ onValueCommit: _onValueCommit,
36
37
  motion: _motion,
37
38
  motionController: _motionController,
38
39
  ...trackRest
@@ -13,7 +13,7 @@ const StepperRoot = forwardRef(function StepperRoot2(props, ref) {
13
13
  {
14
14
  motion: state.motion,
15
15
  defaults: motionDefaults,
16
- params: {},
16
+ params: { hasHoverShadow: true },
17
17
  controller: state.motionController,
18
18
  motionState: state.motionState,
19
19
  motionPayload: state.motionPayload,
@@ -1,6 +1,12 @@
1
- import { ForwardedRef, PointerEventHandler } from 'react';
1
+ import { ForwardedRef, PointerEventHandler, RefObject } from 'react';
2
2
  import { StepperMotion, StepperPartMotion } from './stepperTypes.js';
3
3
  export declare function resolveStepperMotionDefaults(): StepperMotion;
4
+ /** Hover and press on the step mark, from the trigger that wraps the label. */
5
+ export declare function useStepperIndicatorPointer(indicatorRef: RefObject<HTMLElement | null>, enabled: boolean): {
6
+ onPointerOver: () => void;
7
+ onPointerOut: () => void;
8
+ onPointerDown: () => void;
9
+ };
4
10
  type PointerProps<T extends HTMLElement> = {
5
11
  forwardedRef?: ForwardedRef<T>;
6
12
  onPointerOver?: PointerEventHandler<T>;
@@ -10,7 +16,7 @@ type PointerProps<T extends HTMLElement> = {
10
16
  };
11
17
  export declare function useStepperRootMotion(props: PointerProps<HTMLOListElement>): {
12
18
  setRef: (node: HTMLOListElement | null) => void;
13
- targetRef: import('react').RefObject<HTMLOListElement | null>;
19
+ targetRef: RefObject<HTMLOListElement | null>;
14
20
  pointerHandlers: {
15
21
  onPointerOver: (e: import('react').PointerEvent<HTMLOListElement>) => void;
16
22
  onPointerOut: (e: import('react').PointerEvent<HTMLOListElement>) => void;
@@ -23,7 +29,7 @@ export declare function useStepperSlotMotion<T extends HTMLElement>({ slot, moti
23
29
  motion?: StepperPartMotion;
24
30
  }): {
25
31
  setRef: (node: T | null) => void;
26
- targetRef: import('react').RefObject<T | null>;
32
+ targetRef: RefObject<T | null>;
27
33
  pointerHandlers: {
28
34
  onPointerOver: (e: import('react').PointerEvent<T>) => void;
29
35
  onPointerOut: (e: import('react').PointerEvent<T>) => void;
@@ -1,8 +1,38 @@
1
+ "use client";
2
+ import { useCallback } from "react";
3
+ import { bindLiftRecipes } from "../utils/slotMotion/recipes/bindLift.js";
1
4
  import { useOptionalStepperMotionScope } from "./stepperContext.js";
2
5
  import { hasPointerPhases, useOptionalEnterOnMount } from "../utils/slotMotion/useSlotLifecycle.js";
3
6
  import { useMotionPart } from "../utils/slotMotion/useMotionPart.js";
7
+ bindLiftRecipes();
4
8
  function resolveStepperMotionDefaults() {
5
- return {};
9
+ return {
10
+ indicator: {
11
+ hoverIn: "hoverLiftFirstLevel",
12
+ hoverOut: "hoverLiftFirstLevel",
13
+ pressIn: "pressSqueeze",
14
+ pressOut: false
15
+ }
16
+ };
17
+ }
18
+ function useStepperIndicatorPointer(indicatorRef, enabled) {
19
+ const scope = useOptionalStepperMotionScope();
20
+ const play = useCallback(
21
+ (phase) => {
22
+ if (!enabled) return;
23
+ const el = indicatorRef.current;
24
+ if (!el || !scope) return;
25
+ const value = scope.resolve("indicator", phase);
26
+ if (value === void 0 || value === false) return;
27
+ scope.play("indicator", phase, { el });
28
+ },
29
+ [enabled, indicatorRef, scope]
30
+ );
31
+ return {
32
+ onPointerOver: () => play("hoverIn"),
33
+ onPointerOut: () => play("hoverOut"),
34
+ onPointerDown: () => play("pressIn")
35
+ };
6
36
  }
7
37
  function useStepperRootMotion(props) {
8
38
  const scope = useOptionalStepperMotionScope();
@@ -49,6 +79,7 @@ function useStepperSlotMotion({
49
79
  }
50
80
  export {
51
81
  resolveStepperMotionDefaults,
82
+ useStepperIndicatorPointer,
52
83
  useStepperRootMotion,
53
84
  useStepperSlotMotion
54
85
  };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
- import { forwardRef, Children, isValidElement, cloneElement } from "react";
3
+ import { forwardRef, useRef, Children, isValidElement, cloneElement } from "react";
4
4
  import { dataFlag } from "../utils/dataContract.js";
5
5
  import { focusKeyboard } from "../utils/focusElement.js";
6
6
  import { KitCheckmarkSharp } from "../utils/kitIcons.js";
7
7
  import { mergeRefs } from "../utils/mergeRefs.js";
8
8
  import { stepperKeyDelta, stepperCurrent } from "./stepperA11y.js";
9
- import { useStepperSlotMotion, useStepperRootMotion } from "./stepperAnimations.js";
9
+ import { useStepperSlotMotion, useStepperIndicatorPointer, useStepperRootMotion } from "./stepperAnimations.js";
10
10
  import { stepperStepState, stepperStepSelectable, isStepperTrigger, isStepperItem } from "./stepperAPI.js";
11
11
  import { useStepperContext, useStepperClassNames, useStepperItemContext, StepperItemProvider } from "./stepperContext.js";
12
12
  import { stepperDescriptionClass, stepperTitleClass, stepperIconClass, stepperIndicatorClass, stepperTriggerClass, stepperItemClass, stepperRootClass, stepperSeparatorClass } from "./stepperStyles.js";
@@ -29,7 +29,9 @@ const StepperIndicator = forwardRef(
29
29
  return /* @__PURE__ */ jsx(
30
30
  "span",
31
31
  {
32
- ref: part.setRef,
32
+ ref: mergeRefs(part.setRef, (node) => {
33
+ item.indicatorRef.current = node;
34
+ }),
33
35
  ...dom,
34
36
  ...part.pointerHandlers,
35
37
  className: stepperIndicatorClass(orientation, size, slotClass, className),
@@ -100,10 +102,21 @@ function StepperSeparator() {
100
102
  );
101
103
  }
102
104
  const StepperTrigger = forwardRef(
103
- function StepperTrigger2({ className, children, onClick, onKeyDown, ...rest }, ref) {
105
+ function StepperTrigger2({
106
+ className,
107
+ children,
108
+ onClick,
109
+ onKeyDown,
110
+ onPointerEnter,
111
+ onPointerLeave,
112
+ onPointerDown,
113
+ onPointerUp,
114
+ ...rest
115
+ }, ref) {
104
116
  const root = useStepperContext();
105
117
  const item = useStepperItemContext();
106
118
  const slotClass = useStepperClassNames().trigger;
119
+ const mark = useStepperIndicatorPointer(item.indicatorRef, item.selectable);
107
120
  const tabStop = item.selectable && (item.index === root.currentIndex || root.currentIndex < 0 && item.index === 0);
108
121
  return /* @__PURE__ */ jsx(
109
122
  "button",
@@ -117,6 +130,19 @@ const StepperTrigger = forwardRef(
117
130
  ...rest,
118
131
  "data-value": item.value,
119
132
  "data-disabled": dataFlag(!item.selectable),
133
+ onPointerEnter: (event) => {
134
+ onPointerEnter?.(event);
135
+ if (!event.defaultPrevented) mark.onPointerOver();
136
+ },
137
+ onPointerLeave: (event) => {
138
+ onPointerLeave?.(event);
139
+ if (!event.defaultPrevented) mark.onPointerOut();
140
+ },
141
+ onPointerDown: (event) => {
142
+ onPointerDown?.(event);
143
+ if (!event.defaultPrevented) mark.onPointerDown();
144
+ },
145
+ onPointerUp,
120
146
  onClick: (event) => {
121
147
  onClick?.(event);
122
148
  if (event.defaultPrevented) return;
@@ -156,6 +182,7 @@ const StepperItem = forwardRef(
156
182
  const slotClass = useStepperClassNames().item;
157
183
  const state = stepperStepState(index, root.currentIndex);
158
184
  const selectable = stepperStepSelectable(index, root.currentIndex, root.linear);
185
+ const indicatorRef = useRef(null);
159
186
  const part = useStepperSlotMotion({
160
187
  slot: "item",
161
188
  motion,
@@ -173,7 +200,7 @@ const StepperItem = forwardRef(
173
200
  ...part.pointerHandlers,
174
201
  className: stepperItemClass(root.orientation, isLast, slotClass, className),
175
202
  "data-state": state,
176
- children: /* @__PURE__ */ jsxs(StepperItemProvider, { value: { index, value, state, selectable, isLast }, children: [
203
+ children: /* @__PURE__ */ jsxs(StepperItemProvider, { value: { index, value, state, selectable, isLast, indicatorRef }, children: [
177
204
  Children.toArray(children).some(isStepperTrigger) ? children : /* @__PURE__ */ jsx(StepperTrigger, { children: body }),
178
205
  isLast ? null : /* @__PURE__ */ jsx(StepperSeparator, {})
179
206
  ] })
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, HTMLAttributes, OlHTMLAttributes, ReactNode } from 'react';
1
+ import { ButtonHTMLAttributes, HTMLAttributes, OlHTMLAttributes, ReactNode, RefObject } from 'react';
2
2
  import { MotionController, MotionMapWithEvents, MotionStateHostProps, MotionValue } from '../utils/slotMotion/index.js';
3
3
  import { Prettify } from '../../../utils/prettify.js';
4
4
  import { ComponentSize } from '../utils/sizeLayout/index.js';
@@ -111,4 +111,6 @@ export type StepperItemContextValue = {
111
111
  state: StepperStepState;
112
112
  selectable: boolean;
113
113
  isLast: boolean;
114
+ /** Step mark. The trigger plays hover / press on it. */
115
+ indicatorRef: RefObject<HTMLSpanElement | null>;
114
116
  };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
- import { forwardRef, memo, useRef, useCallback, useState, useLayoutEffect, Children, isValidElement, useMemo } from "react";
3
+ import { forwardRef, memo, useRef, useCallback, useLayoutEffect, useState, Children, isValidElement, useMemo } from "react";
4
4
  import { focusKeyboard } from "../utils/focusElement.js";
5
5
  import { dataFlag } from "../utils/dataContract.js";
6
6
  import { tableCellRole, tableRowRole, columnAriaSort, tableColumnHeaderRole, tableAriaMultiSelectable, tableContentRole, rowAriaSelected, tableIsSelectableGrid } from "./tableA11y.js";
7
7
  import { isTableEmptyElement, resolveColumnSortDirection, resolveNextSortDescriptor, tableSortButtons, tableBumpSortButton, hasTableLabel, TONED_ROW_DEFAULT_TONE, moveVirtualTableRow, tableSelectableRows, tableBumpRow, TABLE_ROW_KEY_ATTR, TABLE_VIRTUAL_INDEX_ATTR } from "./tableAPI.js";
8
8
  import { useTableSlotMotion, TableSortChevron, useTableRowSelectionMotion } from "./tableAnimations.js";
9
9
  import { useTableClassNames, useTableContent, useTableVariant, useTableSize, useTableRow, useOptionalTableMotionScope, TableMotionProvider, useTableMotionScope, useTableRowIsSelected, useTableRowIsFocusTarget, useTableVirtual, TableRowProvider } from "./tableContext.js";
10
- import { TABLE_FOOTER_CLASS, TABLE_BODY_EMPTY_CELL_CLASS, TABLE_CAPTION_CLASS, tableColumnLabelClass, TABLE_COLUMN_MIN_WIDTH, TABLE_COLUMN_INNER_CLASS, tableColumnSortButtonClass, TABLE_COLUMN_RESIZE_HANDLE_CLASS, tableColumnClass, TABLE_HEADER_ROW_VARIANT_CLASS, tableContentClass, TABLE_SCROLL_STICKY_CLASS, TABLE_SCROLL_CONTAINER_CLASS, tableCellClass, tableRowClass } from "./tableStyles.js";
10
+ import { TABLE_FOOTER_CLASS, TABLE_BODY_EMPTY_CELL_CLASS, TABLE_CAPTION_CLASS, tableColumnLabelClass, TABLE_COLUMN_MIN_WIDTH, TABLE_COLUMN_INNER_CLASS, tableColumnSortButtonClass, TABLE_COLUMN_RESIZE_HANDLE_CLASS, TABLE_COLUMN_RESIZE_GRIP_CLASS, TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS, TABLE_COLUMN_RESIZE_GRIP_LINE_CLASS, tableColumnClass, TABLE_HEADER_ROW_VARIANT_CLASS, tableContentClass, TABLE_SCROLL_STICKY_CLASS, TABLE_SCROLL_CONTAINER_CLASS, tableCellClass, tableRowClass } from "./tableStyles.js";
11
11
  import { TableVirtualRows } from "./tableVirtualRows.js";
12
12
  import { isRtlElement } from "../utils/readingDirection.js";
13
13
  import { formatBurneLabel } from "../../../theme/burneLabels.js";
@@ -289,6 +289,19 @@ const TableColumn = forwardRef(
289
289
  const headerName = typeof children === "string" ? children : void 0;
290
290
  const resizeLabel = headerName ? formatBurneLabel(labels.resizeColumnNamed, { name: headerName }) : labels.resizeColumn;
291
291
  const columnRef = useRef(null);
292
+ useLayoutEffect(() => {
293
+ const cell = columnRef.current;
294
+ if (!cell || !columnResize) return;
295
+ const row = cell.parentElement;
296
+ if (!row) return;
297
+ const cells = [...row.children];
298
+ const index = cells.indexOf(cell);
299
+ if (index < 0) return;
300
+ cell.style.zIndex = String(10 + cells.length - index);
301
+ return () => {
302
+ cell.style.zIndex = "";
303
+ };
304
+ }, [columnResize]);
292
305
  const [columnMax, setColumnMax] = useState();
293
306
  useLayoutEffect(() => {
294
307
  const table = columnRef.current?.closest("table");
@@ -403,7 +416,12 @@ const TableColumn = forwardRef(
403
416
  onPointerUp: endResize,
404
417
  onPointerCancel: endResize,
405
418
  onLostPointerCapture: endResize,
406
- onKeyDown: onResizeKeyDown
419
+ onKeyDown: onResizeKeyDown,
420
+ children: /* @__PURE__ */ jsxs("span", { className: TABLE_COLUMN_RESIZE_GRIP_CLASS, "aria-hidden": "true", children: [
421
+ /* @__PURE__ */ jsx("span", { className: TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS }),
422
+ /* @__PURE__ */ jsx("span", { className: TABLE_COLUMN_RESIZE_GRIP_LINE_CLASS }),
423
+ /* @__PURE__ */ jsx("span", { className: TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS })
424
+ ] })
407
425
  }
408
426
  )
409
427
  ) : null
@@ -8,7 +8,16 @@ export declare const TABLE_SCROLL_STICKY_CLASS = "overflow-y-auto max-h-[var(--m
8
8
  export declare const TABLE_VIRTUAL_SPACER_CELL_CLASS = "border-0 p-0";
9
9
  export declare const TABLE_CONTENT_BASE_CLASS = "w-full";
10
10
  export declare const TABLE_CONTENT_FIXED_CLASS = "table-fixed";
11
- export declare const TABLE_COLUMN_RESIZE_HANDLE_CLASS = "absolute inset-y-0 end-0 z-10 w-small cursor-col-resize touch-none border-e-token focus-ring";
11
+ /**
12
+ * Sits on the column's inline end and shifts halfway across that edge,
13
+ * so the rule is the boundary with the next column. The last column has
14
+ * no next column: `in-[th:last-child]` hides its handle.
15
+ */
16
+ export declare const TABLE_COLUMN_RESIZE_HANDLE_CLASS = "absolute inset-y-0 end-0 z-10 flex cursor-col-resize touch-none items-center justify-center focus-ring ltr:translate-x-1/2 rtl:-translate-x-1/2 in-[th:last-child]:hidden";
17
+ /** Decorative grip: one short mark, the column rule, one short mark. */
18
+ export declare const TABLE_COLUMN_RESIZE_GRIP_CLASS = "pointer-events-none flex h-full items-center gap-px";
19
+ export declare const TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS = "h-mid w-px shrink-0 rounded-full bg-border";
20
+ export declare const TABLE_COLUMN_RESIZE_GRIP_LINE_CLASS = "h-full w-px shrink-0 self-stretch bg-border";
12
21
  export declare const TABLE_COLUMN_MIN_WIDTH = 64;
13
22
  export declare const TABLE_CONTENT_VARIANT_CLASS: Record<KitTableVariant, string>;
14
23
  export declare const TABLE_HEADER_ROW_VARIANT_CLASS: Record<KitTableVariant, string>;
@@ -14,7 +14,10 @@ const TABLE_SCROLL_STICKY_CLASS = "overflow-y-auto max-h-[var(--max-component-2x
14
14
  const TABLE_VIRTUAL_SPACER_CELL_CLASS = "border-0 p-0";
15
15
  const TABLE_CONTENT_BASE_CLASS = "w-full";
16
16
  const TABLE_CONTENT_FIXED_CLASS = "table-fixed";
17
- const TABLE_COLUMN_RESIZE_HANDLE_CLASS = "absolute inset-y-0 end-0 z-10 w-small cursor-col-resize touch-none border-e-token focus-ring";
17
+ const TABLE_COLUMN_RESIZE_HANDLE_CLASS = "absolute inset-y-0 end-0 z-10 flex cursor-col-resize touch-none items-center justify-center focus-ring ltr:translate-x-1/2 rtl:-translate-x-1/2 in-[th:last-child]:hidden";
18
+ const TABLE_COLUMN_RESIZE_GRIP_CLASS = "pointer-events-none flex h-full items-center gap-px";
19
+ const TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS = "h-mid w-px shrink-0 rounded-full bg-border";
20
+ const TABLE_COLUMN_RESIZE_GRIP_LINE_CLASS = "h-full w-px shrink-0 self-stretch bg-border";
18
21
  const TABLE_COLUMN_MIN_WIDTH = 64;
19
22
  const TABLE_CONTENT_VARIANT_CLASS = {
20
23
  default: "border-collapse",
@@ -215,6 +218,9 @@ export {
215
218
  TABLE_COLUMN_INNER_CLASS,
216
219
  TABLE_COLUMN_LABEL_CLASS,
217
220
  TABLE_COLUMN_MIN_WIDTH,
221
+ TABLE_COLUMN_RESIZE_GRIP_CLASS,
222
+ TABLE_COLUMN_RESIZE_GRIP_LINE_CLASS,
223
+ TABLE_COLUMN_RESIZE_GRIP_MARK_CLASS,
218
224
  TABLE_COLUMN_RESIZE_HANDLE_CLASS,
219
225
  TABLE_COLUMN_SORTABLE_CLASS,
220
226
  TABLE_COLUMN_SORT_BUTTON_CLASS,
@@ -38,7 +38,7 @@ function textareaShellClass({
38
38
  const visual = resolveVariantVisual(variant, KIT_TEXT_AREA_VARIANTS, "textArea.shell");
39
39
  const kitSurface = usesKitElevation(variant, KIT_TEXT_AREA_VARIANTS);
40
40
  return cn(
41
- "relative w-full overflow-hidden rounded-base",
41
+ "relative w-full rounded-base",
42
42
  kitSurface && "border-1",
43
43
  visual.className,
44
44
  TEXTAREA_SHELL_LAYOUT_CLASS,
@@ -15,8 +15,11 @@ export declare const TIME_FIELD_SEGMENT_SEPARATOR_BASE_CLASS = "inline-flex w-[0
15
15
  export declare const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[length:var(--border-width)]";
16
16
  export declare const TIME_FIELD_SEGMENT_GROUP_CLASS = "inline-flex items-center";
17
17
  export declare const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 flex-1 items-center font-mono tabular-nums leading-none";
18
- /** Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize. */
19
- export declare const TIME_FIELD_SHELL_INNER_CLASS = "flex min-w-0 w-full items-stretch";
18
+ /**
19
+ * Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize.
20
+ * `field-radius-clip` meets the border corners. Shadow layers stay on the fieldset.
21
+ */
22
+ export declare const TIME_FIELD_SHELL_INNER_CLASS = "field-radius-clip flex min-w-0 items-stretch";
20
23
  export declare const TIME_FIELD_SEGMENTS_SEGMENTED_CLASS = "gap-xsmall";
21
24
  export declare function timeFieldAffixSurfaceClass(): string;
22
25
  export declare function timeFieldAffixSlotClass({ side, size, slotClass, }: {
@@ -25,7 +25,7 @@ const TIME_FIELD_SEGMENT_SEPARATOR_BASE_CLASS = "inline-flex w-[0.45em] shrink-0
25
25
  const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[length:var(--border-width)]";
26
26
  const TIME_FIELD_SEGMENT_GROUP_CLASS = "inline-flex items-center";
27
27
  const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 flex-1 items-center font-mono tabular-nums leading-none";
28
- const TIME_FIELD_SHELL_INNER_CLASS = "flex min-w-0 w-full items-stretch";
28
+ const TIME_FIELD_SHELL_INNER_CLASS = "field-radius-clip flex min-w-0 items-stretch";
29
29
  const TIME_FIELD_SEGMENTS_SEGMENTED_CLASS = "gap-xsmall";
30
30
  const AFFIX_PADDING = {
31
31
  small: affixSlotClass("small"),
@@ -68,7 +68,7 @@ function timeFieldShellClass({
68
68
  const visual = resolveVariantVisual(variant, KIT_TIME_FIELD_VARIANTS, "timeField.shell");
69
69
  const kitSurface = usesKitElevation(variant, KIT_TIME_FIELD_VARIANTS);
70
70
  return cn(
71
- "relative m-0 min-w-0 overflow-hidden rounded-base p-0",
71
+ "relative m-0 min-w-0 rounded-base p-0",
72
72
  kitSurface && "border-1",
73
73
  visual.className,
74
74
  compact ? "w-fit shrink-0" : "w-full min-w-0",
@@ -88,6 +88,7 @@ function timeFieldShellInnerClass({
88
88
  }) {
89
89
  return cn(
90
90
  TIME_FIELD_SHELL_INNER_CLASS,
91
+ variant === "outline" && "field-radius-clip-outline",
91
92
  usesKitElevation(variant, KIT_TIME_FIELD_VARIANTS) && "min-h-full",
92
93
  slotClass
93
94
  );
@@ -4,7 +4,7 @@ import { forwardRef } from "react";
4
4
  import { mergeRefs } from "../utils/mergeRefs.js";
5
5
  import { cn } from "../../../utils/cn.js";
6
6
  import { useOptionalToggleButtonContext, useToggleButtonClassNames, useOptionalToggleButtonMotionScope } from "./toggleButtonContext.js";
7
- import { TOGGLE_BUTTON_TEXT_VARIANT, toggleButtonTextClass, toggleButtonIconClass, toggleButtonLabelClass, toggleButtonFillClass, toggleButtonContentClass } from "./toggleButtonStyles.js";
7
+ import { TOGGLE_BUTTON_TEXT_VARIANT, toggleButtonTextClass, toggleButtonIconClass, toggleButtonLabelClass, toggleButtonFillClass, toggleButtonFillClipClass, toggleButtonContentClass } from "./toggleButtonStyles.js";
8
8
  import { SELECTION_FILL_DATA_ATTR } from "./useToggleButtonFillAnimation.js";
9
9
  import { useMotionPart } from "../utils/slotMotion/useMotionPart.js";
10
10
  import { Text } from "../Text/Text.js";
@@ -19,7 +19,7 @@ const ToggleButtonFill = forwardRef(
19
19
  forwardedRef: ref
20
20
  });
21
21
  if (!ctx) return null;
22
- return /* @__PURE__ */ jsx(
22
+ return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: toggleButtonFillClipClass(ctx.groupSegment, ctx.variant), children: /* @__PURE__ */ jsx(
23
23
  "span",
24
24
  {
25
25
  ref: mergeRefs(setRef, ctx.bindFillRef),
@@ -35,7 +35,7 @@ const ToggleButtonFill = forwardRef(
35
35
  ...{ [SELECTION_FILL_DATA_ATTR]: "" },
36
36
  "data-pressed": ctx.pressed ? "true" : "false"
37
37
  }
38
- );
38
+ ) });
39
39
  }
40
40
  );
41
41
  ToggleButtonFill.displayName = "ToggleButtonFill";