burne-ui 1.6.5 → 1.6.7

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 (141) hide show
  1. package/README.md +39 -7
  2. package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/composite/Accordion/index.d.ts +1 -1
  4. package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +11 -7
  5. package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +5 -14
  6. package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
  7. package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +2 -2
  8. package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
  9. package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +1 -1
  10. package/dist/components/composite/Form/formTypes.d.ts +1 -1
  11. package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +1 -1
  12. package/dist/components/core/Alert/alertTypes.d.ts +1 -1
  13. package/dist/components/core/Alert/useAlertRootState.d.ts +2 -2
  14. package/dist/components/core/Button/buttonStyles.d.ts +1 -1
  15. package/dist/components/core/Button/buttonTypes.d.ts +1 -1
  16. package/dist/components/core/Button/useButtonRootState.d.ts +2 -2
  17. package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
  18. package/dist/components/core/Calendar/calendarStyles.d.ts +2 -1
  19. package/dist/components/core/Calendar/index.d.ts +2 -2
  20. package/dist/components/core/Card/Card.d.ts +2 -1
  21. package/dist/components/core/Card/cardContext.d.ts +9 -2
  22. package/dist/components/core/Card/cardStyles.d.ts +15 -8
  23. package/dist/components/core/Card/cardTypes.d.ts +7 -2
  24. package/dist/components/core/Card/index.d.ts +2 -1
  25. package/dist/components/core/Card/useCardRootState.d.ts +2 -1
  26. package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
  27. package/dist/components/core/Checkbox/checkboxStyles.d.ts +1 -7
  28. package/dist/components/core/Checkbox/index.d.ts +1 -1
  29. package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +1 -5
  30. package/dist/components/core/CloseButton/closeButtonTypes.d.ts +1 -1
  31. package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +2 -2
  32. package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +3 -2
  33. package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -1
  34. package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -0
  35. package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +6 -0
  36. package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +1 -1
  37. package/dist/components/core/Dialog/dialogStyles.d.ts +14 -10
  38. package/dist/components/core/Dialog/dialogTypes.d.ts +4 -15
  39. package/dist/components/core/Disclosure/disclosureTypes.d.ts +1 -1
  40. package/dist/components/core/Drawer/Drawer.d.ts +2 -2
  41. package/dist/components/core/Drawer/drawerAPI.d.ts +2 -0
  42. package/dist/components/core/Drawer/drawerStyles.d.ts +15 -13
  43. package/dist/components/core/Drawer/drawerTypes.d.ts +12 -1
  44. package/dist/components/core/Drawer/index.d.ts +1 -1
  45. package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
  46. package/dist/components/core/Expandable/expandableTypes.d.ts +1 -1
  47. package/dist/components/core/Field/fieldContext.d.ts +1 -1
  48. package/dist/components/core/Field/fieldStyles.d.ts +1 -1
  49. package/dist/components/core/Field/fieldTypes.d.ts +1 -1
  50. package/dist/components/core/Input/index.d.ts +1 -1
  51. package/dist/components/core/Input/inputControlParts.d.ts +1 -1
  52. package/dist/components/core/Input/inputTypes.d.ts +1 -1
  53. package/dist/components/core/Input/useInputRootState.d.ts +1 -1
  54. package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
  55. package/dist/components/core/Link/linkTypes.d.ts +1 -1
  56. package/dist/components/core/Link/useLinkRootState.d.ts +1 -1
  57. package/dist/components/core/ListBox/listBoxAPI.d.ts +5 -2
  58. package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
  59. package/dist/components/core/ListBox/listBoxStyles.d.ts +8 -5
  60. package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -0
  61. package/dist/components/core/Loading/loadingTypes.d.ts +1 -1
  62. package/dist/components/core/Pagination/paginationStyles.d.ts +5 -4
  63. package/dist/components/core/Popover/popoverStyles.d.ts +21 -14
  64. package/dist/components/core/Popover/popoverTypes.d.ts +3 -5
  65. package/dist/components/core/Radio/Radio.d.ts +1 -1
  66. package/dist/components/core/Radio/index.d.ts +1 -1
  67. package/dist/components/core/Radio/radioStyles.d.ts +1 -7
  68. package/dist/components/core/Radio/useRadioRootState.d.ts +1 -5
  69. package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
  70. package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
  71. package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -1
  72. package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +1 -1
  73. package/dist/components/core/SelectionIndicator/index.d.ts +1 -1
  74. package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +9 -6
  75. package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +2 -2
  76. package/dist/components/core/SelectionThumb/selectionThumbStyles.d.ts +5 -11
  77. package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +0 -4
  78. package/dist/components/core/Skeleton/skeletonStyles.d.ts +1 -1
  79. package/dist/components/core/Slider/sliderStyles.d.ts +7 -5
  80. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  81. package/dist/components/core/Slider/useSliderTrackState.d.ts +16 -16
  82. package/dist/components/core/Surface/surfaceStyles.d.ts +1 -1
  83. package/dist/components/core/Surface/surfaceTypes.d.ts +1 -1
  84. package/dist/components/core/Switch/Switch.d.ts +1 -1
  85. package/dist/components/core/Switch/index.d.ts +2 -2
  86. package/dist/components/core/Switch/switchAnimations.d.ts +1 -1
  87. package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
  88. package/dist/components/core/Switch/switchGeometry.d.ts +3 -3
  89. package/dist/components/core/Switch/switchStyles.d.ts +3 -2
  90. package/dist/components/core/Switch/switchTypes.d.ts +0 -2
  91. package/dist/components/core/Switch/useSwitchRootState.d.ts +14 -14
  92. package/dist/components/core/Table/tableStyles.d.ts +3 -3
  93. package/dist/components/core/Tabs/tabsTypes.d.ts +1 -1
  94. package/dist/components/core/Text/textTypes.d.ts +1 -1
  95. package/dist/components/core/TextArea/textAreaStyles.d.ts +4 -3
  96. package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -1
  97. package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
  98. package/dist/components/core/TextArea/useTextAreaRootState.d.ts +1 -1
  99. package/dist/components/core/TimeField/timeFieldStyles.d.ts +4 -3
  100. package/dist/components/core/TimeField/timeFieldTypes.d.ts +1 -1
  101. package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
  102. package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +1 -1
  103. package/dist/components/core/Toast/toastTypes.d.ts +1 -1
  104. package/dist/components/core/Toast/useToastProviderState.d.ts +1 -1
  105. package/dist/components/core/Toast/useToastRootState.d.ts +1 -1
  106. package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
  107. package/dist/components/core/ToggleButton/index.d.ts +1 -1
  108. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +3 -1
  109. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -3
  110. package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -1
  111. package/dist/components/core/utils/controlHeightMeasure.d.ts +1 -1
  112. package/dist/components/core/utils/hoverInteractiveLift.d.ts +13 -6
  113. package/dist/components/core/utils/inputAffixLayout.d.ts +1 -1
  114. package/dist/components/core/utils/motionConfig.d.ts +41 -5
  115. package/dist/components/core/utils/optionListItemParts.d.ts +6 -2
  116. package/dist/components/core/utils/{messageBannerSize.d.ts → sizeLayout/banner.d.ts} +5 -3
  117. package/dist/components/core/utils/{componentSize.d.ts → sizeLayout/componentSize.d.ts} +1 -0
  118. package/dist/components/core/utils/{controlSizeLayout.d.ts → sizeLayout/control.d.ts} +3 -1
  119. package/dist/components/core/utils/sizeLayout/index.d.ts +14 -0
  120. package/dist/components/core/utils/sizeLayout/option.d.ts +15 -0
  121. package/dist/components/core/utils/sizeLayout/panel.d.ts +52 -0
  122. package/dist/index.cjs +1 -1
  123. package/dist/index.d.ts +4 -4
  124. package/dist/index.js +10648 -10390
  125. package/dist/internal.cjs +1 -1
  126. package/dist/internal.d.ts +5 -3
  127. package/dist/internal.js +78 -69
  128. package/dist/theme/index.d.ts +1 -1
  129. package/dist/theme/themeConfig.d.ts +1 -1
  130. package/dist/theme/themeDefaults.d.ts +56 -76
  131. package/dist/{themeRuntimeContext-DmzqBFsv.js → themeRuntimeContext-CE8HsqSx.js} +1861 -1765
  132. package/dist/themeRuntimeContext-zhfbKb8L.cjs +50 -0
  133. package/dist/tokens/breakpoints.d.ts +14 -0
  134. package/dist/tokens/config.d.ts +47 -13
  135. package/dist/tokens/index.d.ts +5 -2
  136. package/dist/tokens/overlayBackdrop.d.ts +17 -0
  137. package/dist/tokens/shadows.d.ts +21 -0
  138. package/dist/tokens/textScale.d.ts +36 -0
  139. package/dist/ui.css +441 -298
  140. package/package.json +4 -3
  141. package/dist/themeRuntimeContext-CQapx3IE.cjs +0 -50
@@ -1,7 +1,7 @@
1
1
  import { ChangeEvent, FocusEvent, KeyboardEvent, MouseEvent, PointerEvent } from 'react';
2
2
  import { SearchInputVariant, UseSearchInputRootStateProps } from './searchInputTypes';
3
3
  export declare function useSearchInputRootState({ size: sizeProp, variant: variantProp, expandedWidth, defaultExpanded, expanded: expandedProp, onExpandedChange, collapseOnBlur, disabled, readOnly, placeholder, value: valueProp, defaultValue, onChange, onBlur, onKeyDown, id: idProp, "aria-label": ariaLabelProp, ripple, groupSegment: groupSegmentProp, className, classNames, forwardedRef, }: UseSearchInputRootStateProps): {
4
- size: import('../utils/componentSize').ComponentSize;
4
+ size: import('../utils/sizeLayout').ComponentSize;
5
5
  variant: SearchInputVariant;
6
6
  expanded: boolean;
7
7
  blocked: boolean;
@@ -6,6 +6,6 @@ export declare const SelectionIndicator: typeof SelectionIndicatorRoot & {
6
6
  } & import('react').RefAttributes<HTMLSpanElement>>;
7
7
  };
8
8
  export type { SelectionIndicatorProps, SelectionIndicatorClassNames, SelectionIndicatorFillProps, SelectionIndicatorMarkProps, } from './selectionIndicatorTypes';
9
- export { SELECTION_INDICATOR_FILL_CLASS, SELECTION_INDICATOR_ICON_CLASS, SELECTION_INDICATOR_SHELL_CLASS, SELECTION_INDICATOR_SIZE_CLASS, selectionIndicatorFallbackPx, selectionIndicatorShellClass, selectionIndicatorVariantClass, type SelectionIndicatorSize, type SelectionIndicatorVariant, } from './selectionIndicatorTokens';
9
+ export { SELECTION_INDICATOR_FILL_CLASS, SELECTION_INDICATOR_ICON_CLASS, SELECTION_INDICATOR_RADIUS_CLASS, SELECTION_INDICATOR_SHELL_CLASS, SELECTION_INDICATOR_SIZE_CLASS, selectionIndicatorFallbackPx, selectionIndicatorShellClass, selectionIndicatorVariantClass, type SelectionIndicatorSize, type SelectionIndicatorVariant, } from './selectionIndicatorTokens';
10
10
  export { SELECTION_INDICATOR_FILL_DISPLAY_NAME, SELECTION_INDICATOR_MARK_DISPLAY_NAME, } from './selectionIndicatorAPI';
11
11
  export { useSelectionIndicatorAnimation } from './useSelectionIndicatorAnimation';
@@ -1,19 +1,22 @@
1
- export type SelectionIndicatorSize = "small" | "base" | "mid" | "large";
1
+ export type SelectionIndicatorSize = "xsmall" | "small" | "base" | "mid" | "large";
2
2
  export type SelectionIndicatorVariant = "default" | "secondary" | "outline" | "gloss";
3
3
  export declare const SELECTION_INDICATOR_SIZE_CLASS: Record<SelectionIndicatorSize, string>;
4
+ /** Corner radius from `--selection-indicator-radius-*` (`--radius-*` × 0.75). */
5
+ export declare const SELECTION_INDICATOR_RADIUS_CLASS: Record<SelectionIndicatorSize, string>;
6
+ /** Mark icon box — `--icon-size-*` × 0.75 so marks fit inside the indicator ring. */
4
7
  export declare const SELECTION_INDICATOR_ICON_CLASS: Record<SelectionIndicatorSize, string>;
5
8
  export declare const SELECTION_INDICATOR_MARK_CLASS = "pointer-events-none relative z-[2] inline-flex items-center justify-center";
6
9
  export declare function selectionIndicatorMarkCheckIconClass(size: SelectionIndicatorSize): string;
7
10
  /** Custom mark icons: no `[&_svg]:size-full` — `icon-*` on the icon itself controls size. */
8
11
  export declare function selectionIndicatorMarkCustomIconClass(size: SelectionIndicatorSize): string;
9
12
  export declare const SELECTION_INDICATOR_DOT_CLASS: Record<SelectionIndicatorSize, string>;
10
- export declare const SELECTION_INDICATOR_DOT_INNER_CLASS = "shrink-0 rounded-full bg-indicator-foreground";
11
- export declare const SELECTION_INDICATOR_DOT_INNER_GLOSS_CLASS = "shrink-0 rounded-full bg-foreground";
12
- export declare const SELECTION_INDICATOR_SHELL_CLASS = "relative box-border inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full";
13
- export declare const SELECTION_INDICATOR_FILL_BASE_CLASS = "pointer-events-none absolute inset-px z-[0] flex origin-center items-center justify-center rounded-[inherit]";
13
+ export declare const SELECTION_INDICATOR_DOT_INNER_CLASS = "shrink-0 bg-indicator-foreground";
14
+ export declare const SELECTION_INDICATOR_DOT_INNER_GLOSS_CLASS = "shrink-0 bg-foreground";
15
+ export declare const SELECTION_INDICATOR_SHELL_CLASS = "relative box-border inline-flex shrink-0 items-center justify-center overflow-hidden";
16
+ export declare const SELECTION_INDICATOR_FILL_BASE_CLASS = "pointer-events-none absolute -inset-[var(--border-width)] z-[0] flex origin-center items-center justify-center rounded-[inherit]";
14
17
  export declare const SELECTION_INDICATOR_FILL_CLASS = "bg-indicator text-indicator-foreground";
15
18
  export declare const SELECTION_INDICATOR_FILL_SECONDARY_CLASS = "bg-secondary text-secondary-foreground";
16
- export declare const SELECTION_INDICATOR_FILL_GLOSS_CLASS = "pointer-events-none absolute inset-px z-[1] flex origin-center items-center justify-center rounded-[inherit] gloss-indicator-fill text-foreground";
19
+ export declare const SELECTION_INDICATOR_FILL_GLOSS_CLASS: string;
17
20
  /** Gloss fill for Switch/Slider thumb — primary-tint like ToggleButton, without gloss-indicator-fill. */
18
21
  export declare const SELECTION_INDICATOR_FILL_GLOSS_TINT_CLASS: string;
19
22
  export declare function selectionIndicatorFallbackPx(size: SelectionIndicatorSize, rootPx?: number): number;
@@ -1,10 +1,10 @@
1
1
  import { SelectionThumbIconProps, SelectionThumbProps } from './selectionThumbTypes';
2
2
  export type { SelectionThumbClassNames, SelectionThumbIconClassNames, SelectionThumbIconProps, SelectionThumbProps, } from './selectionThumbTypes';
3
- export declare function SelectionThumb({ active, size, gloss, shellRef, fillRef: fillRefProp, className, classNames, children, ...rest }: SelectionThumbProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SelectionThumb({ size, gloss, shellRef, className, classNames, children, ...rest }: SelectionThumbProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare namespace SelectionThumb {
5
5
  var displayName: string;
6
6
  }
7
- export declare function SelectionThumbIcon({ size, highlighted, gloss, iconRef, className, classNames, children, style, ...rest }: SelectionThumbIconProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function SelectionThumbIcon({ size, gloss, iconRef, className, classNames, children, style, ...rest }: SelectionThumbIconProps): import("react/jsx-runtime").JSX.Element;
8
8
  export declare namespace SelectionThumbIcon {
9
9
  var displayName: string;
10
10
  }
@@ -3,22 +3,16 @@ export declare const SELECTION_THUMB_SHELL_GLOSS_CLASS = "gloss-indicator size-f
3
3
  export declare const SELECTION_THUMB_SHELL_DEFAULT_CLASS = "size-full min-h-0 min-w-0 origin-center border border-primary bg-surface";
4
4
  export declare const SELECTION_THUMB_ICON_WRAP_CLASS = "pointer-events-none z-[2] flex items-center justify-center";
5
5
  export declare const SELECTION_THUMB_ICON_INNER_CLASS = "inline-flex shrink-0 items-center justify-center [&_svg]:size-full";
6
- export declare function selectionThumbShellClass({ gloss, className, slotRoot, }: {
6
+ export declare function selectionThumbShellClass({ gloss, size, className, slotRoot, }: {
7
7
  gloss: boolean;
8
+ size: SelectionIndicatorSize;
8
9
  className?: string;
9
10
  slotRoot?: string;
10
11
  }): string;
11
- export declare function selectionThumbFillClass({ gloss, slotFill, }: {
12
+ /** Icon color is stable (no on/off / active tint swap). */
13
+ export declare function selectionThumbIconColorClass(gloss: boolean): string;
14
+ export declare function selectionThumbIconRootClass({ gloss, className, slotRoot, }: {
12
15
  gloss: boolean;
13
- slotFill?: string;
14
- }): string;
15
- export declare function selectionThumbIconColorClass({ gloss, highlighted, }: {
16
- gloss: boolean;
17
- highlighted: boolean;
18
- }): string;
19
- export declare function selectionThumbIconRootClass({ gloss, highlighted, className, slotRoot, }: {
20
- gloss: boolean;
21
- highlighted: boolean;
22
16
  className?: string;
23
17
  slotRoot?: string;
24
18
  }): string;
@@ -2,24 +2,20 @@ import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
2
  import { SelectionIndicatorSize } from '../SelectionIndicator/selectionIndicatorTokens';
3
3
  export type SelectionThumbClassNames = {
4
4
  root?: string;
5
- fill?: string;
6
5
  };
7
6
  export type SelectionThumbIconClassNames = {
8
7
  root?: string;
9
8
  icon?: string;
10
9
  };
11
10
  export type SelectionThumbProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
12
- active: boolean;
13
11
  size?: SelectionIndicatorSize;
14
12
  shellRef?: RefObject<HTMLSpanElement | null>;
15
- fillRef?: RefObject<HTMLSpanElement | null>;
16
13
  gloss?: boolean;
17
14
  children?: ReactNode;
18
15
  classNames?: SelectionThumbClassNames;
19
16
  };
20
17
  export type SelectionThumbIconProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
21
18
  size?: SelectionIndicatorSize;
22
- highlighted?: boolean;
23
19
  gloss?: boolean;
24
20
  iconRef?: RefObject<HTMLSpanElement | null>;
25
21
  children?: ReactNode;
@@ -8,7 +8,7 @@ export declare const SKELETON_TEXT_ROOT_CLASS = "flex flex-col gap-small";
8
8
  export declare const SKELETON_TEXT_LINE_CLASS = "h-[1em] rounded-small";
9
9
  export declare const SKELETON_TEXT_LINE_LAST_SHORT_CLASS = "w-3/5";
10
10
  export declare const SKELETON_TEXT_LINE_FULL_CLASS = "w-full";
11
- export declare const SKELETON_BLOCK_CLASS = "rounded-mid px-mid py-plus";
11
+ export declare const SKELETON_BLOCK_CLASS = "rounded-mid px-large py-mid";
12
12
  export declare const SKELETON_RADIUS_CLASS: Record<SkeletonRadius, string>;
13
13
  export declare const SKELETON_PULSE_ANIMATION = "skeleton-pulse 1.6s ease-in-out infinite";
14
14
  export declare const SKELETON_WAVE_ANIMATION = "skeleton-wave-slide 2s linear 0.2s infinite";
@@ -6,12 +6,13 @@ export declare const SLIDER_SCALE_HEADER_VERTICAL_CLASS = "min-w-[8rem]";
6
6
  export declare const SLIDER_SCALE_VALUE_CLASS = "tabular-nums text-muted";
7
7
  export declare const SLIDER_RAIL_HEIGHT: Record<SliderSize, string>;
8
8
  export declare const SLIDER_RAIL_WIDTH: Record<SliderSize, string>;
9
- export declare const SLIDER_RAIL_LAYOUT_CLASS = "pointer-events-none absolute inset-0 overflow-hidden rounded-full";
9
+ export declare const SLIDER_RAIL_LAYOUT_CLASS = "pointer-events-none absolute inset-0 overflow-hidden";
10
10
  export declare const SLIDER_RAIL_DEFAULT_CLASS = "bg-primary-tint";
11
11
  export declare const SLIDER_RAIL_GLOSS_CLASS = "gloss-indicator border-0";
12
- export declare const SLIDER_RAIL_GLOSS_SHAPE_CLASS = "overflow-hidden rounded-full";
12
+ export declare const SLIDER_RAIL_GLOSS_SHAPE_CLASS = "overflow-hidden";
13
13
  export declare const SLIDER_RAIL_DISABLED_CLASS = "opacity-48";
14
- export declare const SLIDER_FILL_LAYOUT_CLASS = "absolute rounded-full";
14
+ /** Rail fill — clipped by rail `overflow-hidden` (same radius as thumb). */
15
+ export declare const SLIDER_FILL_LAYOUT_CLASS = "absolute rounded-[inherit]";
15
16
  export declare const SLIDER_FILL_DEFAULT_CLASS = "bg-primary";
16
17
  export declare const SLIDER_FILL_GLOSS_CLASS = "bg-primary-tint";
17
18
  export declare const SLIDER_FILL_GLOSS_LAYER_CLASS = "z-[1]";
@@ -20,7 +21,7 @@ export declare const SLIDER_FILL_VERTICAL_CLASS = "inset-x-0";
20
21
  export declare const SLIDER_TRACK_HIT_BASE_CLASS = "relative touch-none select-none";
21
22
  export declare const SLIDER_TRACK_HIT_HORIZONTAL_CLASS = "w-full";
22
23
  export declare const SLIDER_TRACK_HIT_VERTICAL_CLASS = "h-48";
23
- export declare const SLIDER_MARK_CLASS = "pointer-events-none absolute z-[1] size-1 rounded-full bg-primary/30";
24
+ export declare const SLIDER_MARK_CLASS = "pointer-events-none absolute z-[1] size-1 rounded-[var(--selection-indicator-radius-xsmall)] bg-primary/30";
24
25
  export declare const SLIDER_THUMB_BUTTON_BASE_CLASS = "absolute z-[2] box-border flex shrink-0 origin-center items-center justify-center m-0 appearance-none border-0 bg-transparent p-0 focus-ring";
25
26
  export declare const SLIDER_THUMB_BUTTON_HORIZONTAL_CLASS = "top-0 h-full w-auto -translate-x-1/2 aspect-square";
26
27
  export declare const SLIDER_THUMB_BUTTON_VERTICAL_CLASS = "left-0 w-full h-auto -translate-y-1/2 aspect-square";
@@ -31,7 +32,8 @@ export declare function sliderRootClass({ orientation, slotClass, className, }:
31
32
  slotClass?: string;
32
33
  className?: string;
33
34
  }): string;
34
- export declare function sliderRailClass({ disabled, gloss, slotClass, className, }: {
35
+ export declare function sliderRailClass({ size, disabled, gloss, slotClass, className, }: {
36
+ size: SliderSize;
35
37
  disabled?: boolean;
36
38
  gloss?: boolean;
37
39
  slotClass?: string;
@@ -18,4 +18,4 @@ export declare const SliderThumbButton: import('react').ForwardRefExoticComponen
18
18
  ariaDescribedBy?: string;
19
19
  onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
20
20
  onKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
21
- } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "className" | "style" | "disabled" | "children" | "onPointerDown" | "role" | "onKeyDown" | "type"> & import('react').RefAttributes<HTMLButtonElement>>;
21
+ } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "className" | "role" | "children" | "onKeyDown" | "onPointerDown" | "disabled"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -867,24 +867,21 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
867
867
  translate?: "yes" | "no" | undefined | undefined;
868
868
  color?: string | undefined | undefined;
869
869
  prefix?: string | undefined | undefined;
870
- id?: string | undefined | undefined;
871
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
872
870
  slot?: string | undefined | undefined;
873
871
  title?: string | undefined | undefined;
874
- accessKey?: string | undefined | undefined;
875
- hidden?: boolean | undefined | undefined;
876
- dir?: string | undefined | undefined;
877
- onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
878
- onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
879
872
  defaultChecked?: boolean | undefined | undefined;
880
873
  suppressContentEditableWarning?: boolean | undefined | undefined;
881
874
  suppressHydrationWarning?: boolean | undefined | undefined;
875
+ accessKey?: string | undefined | undefined;
882
876
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
883
877
  autoFocus?: boolean | undefined | undefined;
884
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
878
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
885
879
  contextMenu?: string | undefined | undefined;
880
+ dir?: string | undefined | undefined;
886
881
  draggable?: (boolean | "true" | "false") | undefined;
887
882
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
883
+ hidden?: boolean | undefined | undefined;
884
+ id?: string | undefined | undefined;
888
885
  lang?: string | undefined | undefined;
889
886
  nonce?: string | undefined | undefined;
890
887
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -910,6 +907,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
910
907
  results?: number | undefined | undefined;
911
908
  security?: string | undefined | undefined;
912
909
  unselectable?: "on" | "off" | undefined | undefined;
910
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
913
911
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
914
912
  popoverTarget?: string | undefined | undefined;
915
913
  inert?: boolean | undefined | undefined;
@@ -1105,6 +1103,8 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1105
1103
  onPointerUpCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1106
1104
  onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1107
1105
  onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1106
+ onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1107
+ onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1108
1108
  onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1109
1109
  onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1110
1110
  onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
@@ -1140,24 +1140,21 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1140
1140
  translate?: "yes" | "no" | undefined | undefined;
1141
1141
  color?: string | undefined | undefined;
1142
1142
  prefix?: string | undefined | undefined;
1143
- id?: string | undefined | undefined;
1144
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1145
1143
  slot?: string | undefined | undefined;
1146
1144
  title?: string | undefined | undefined;
1147
- accessKey?: string | undefined | undefined;
1148
- hidden?: boolean | undefined | undefined;
1149
- dir?: string | undefined | undefined;
1150
- onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1151
- onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1152
1145
  defaultChecked?: boolean | undefined | undefined;
1153
1146
  suppressContentEditableWarning?: boolean | undefined | undefined;
1154
1147
  suppressHydrationWarning?: boolean | undefined | undefined;
1148
+ accessKey?: string | undefined | undefined;
1155
1149
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
1156
1150
  autoFocus?: boolean | undefined | undefined;
1157
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
1151
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
1158
1152
  contextMenu?: string | undefined | undefined;
1153
+ dir?: string | undefined | undefined;
1159
1154
  draggable?: (boolean | "true" | "false") | undefined;
1160
1155
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
1156
+ hidden?: boolean | undefined | undefined;
1157
+ id?: string | undefined | undefined;
1161
1158
  lang?: string | undefined | undefined;
1162
1159
  nonce?: string | undefined | undefined;
1163
1160
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -1183,6 +1180,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1183
1180
  results?: number | undefined | undefined;
1184
1181
  security?: string | undefined | undefined;
1185
1182
  unselectable?: "on" | "off" | undefined | undefined;
1183
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1186
1184
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
1187
1185
  popoverTarget?: string | undefined | undefined;
1188
1186
  inert?: boolean | undefined | undefined;
@@ -1378,6 +1376,8 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1378
1376
  onPointerUpCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1379
1377
  onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1380
1378
  onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1379
+ onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1380
+ onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1381
1381
  onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1382
1382
  onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
1383
1383
  onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
@@ -13,8 +13,8 @@ export declare const SURFACE_PADDING_CLASS: {
13
13
  readonly none: "";
14
14
  readonly small: "p-small";
15
15
  readonly base: "p-base";
16
- readonly plus: "p-plus";
17
16
  readonly mid: "p-mid";
17
+ readonly large: "p-large";
18
18
  };
19
19
  export declare const SURFACE_RADIUS_CLASS: {
20
20
  readonly base: "rounded-base";
@@ -2,7 +2,7 @@ import { HTMLAttributes } from 'react';
2
2
  import { ShadowSize } from '../../../tokens/shadows';
3
3
  export type SurfaceVariant = "default" | "secondary" | "tertiary" | "gloss";
4
4
  export type SurfaceShadow = ShadowSize;
5
- export type SurfacePadding = "none" | "small" | "base" | "plus" | "mid";
5
+ export type SurfacePadding = "none" | "small" | "base" | "mid" | "large";
6
6
  export type SurfaceRadius = "base" | "mid" | "large";
7
7
  export type SurfaceClassNames = {
8
8
  root?: string;
@@ -2,7 +2,7 @@ import { SwitchContent, SwitchControl, SwitchError, SwitchFill, SwitchHint, Swit
2
2
  import { SwitchControlProps } from './switchTypes';
3
3
  export type { SwitchClassNames, SwitchControlProps, SwitchTrackProps, SwitchFillProps, SwitchThumbProps, SwitchIconProps, SwitchIconWhen, SwitchSize, SwitchLabelPosition, SwitchContentProps, SwitchLabelProps, SwitchHintProps, SwitchErrorProps, SwitchProps, SwitchSimpleProps, } from './switchTypes';
4
4
  export { SWITCH_LAYOUT } from './switchStyles';
5
- export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & {
5
+ export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
6
6
  children?: import('react').ReactNode;
7
7
  label?: import('react').ReactNode;
8
8
  hint?: import('react').ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { SwitchError, SwitchFill, SwitchHint, SwitchIcon, SwitchLabel, SwitchThumb, SwitchTrack } from './Switch';
2
- export declare const Switch: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & {
2
+ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & {
3
3
  children?: import('react').ReactNode;
4
4
  label?: import('react').ReactNode;
5
5
  hint?: import('react').ReactNode;
@@ -11,7 +11,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
11
11
  classNames?: import('./switchTypes').SwitchClassNames;
12
12
  onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
13
13
  } & Partial<import('./switchTypes').SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>> & {
14
- Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
14
+ Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
15
15
  size?: import('./switchGeometry').SwitchSize;
16
16
  thickness?: number | string;
17
17
  iconOff?: import('react').ReactNode;
@@ -4,4 +4,4 @@ export declare function useSwitchTextMotion({ isDisabled, enableTextMotion, text
4
4
  handlePointerLeave: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
5
5
  handlePointerDown: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
6
6
  };
7
- export declare function useSwitchTrackAnimations({ checked, disabled, size, thickness, squeezeToken, trackRef, trackFillRef, thumbRef, thumbShellRef, thumbFillRef, iconOffRef, iconOnRef, }: UseSwitchTrackAnimationsProps): void;
7
+ export declare function useSwitchTrackAnimations({ checked, disabled, size, thickness, squeezeToken, trackRef, trackFillRef, thumbRef, thumbShellRef, iconOffRef, iconOnRef, }: UseSwitchTrackAnimationsProps): void;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
2
+ export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  size?: import('./switchGeometry').SwitchSize;
4
4
  thickness?: number | string;
5
5
  iconOff?: ReactNode;
@@ -1,11 +1,11 @@
1
- import { TextVariant } from '../Text';
1
+ import { OPTION_CONTROL_SIZE_LAYOUT } from '../utils/sizeLayout';
2
2
  export type SwitchSize = "small" | "base" | "mid" | "large";
3
3
  export declare function resolveFallbackThumbPx(thickness: number | string | undefined, size: SwitchSize): number;
4
4
  export declare function measureSwitchTravel(trackEl: HTMLElement, thumbEl: HTMLElement): number;
5
5
  export declare const SWITCH_LAYOUT: Record<SwitchSize, {
6
6
  track: string;
7
7
  travelPx: number;
8
- title: TextVariant;
9
- desc: TextVariant;
8
+ title: (typeof OPTION_CONTROL_SIZE_LAYOUT)[SwitchSize]["title"];
9
+ desc: (typeof OPTION_CONTROL_SIZE_LAYOUT)[SwitchSize]["desc"];
10
10
  gap: string;
11
11
  }>;
@@ -19,10 +19,11 @@ export declare const SWITCH_ROOT_BASE_CLASS = "relative cursor-pointer select-no
19
19
  export declare const SWITCH_ROOT_DISABLED_CLASS = "cursor-not-allowed";
20
20
  export declare const SWITCH_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
21
21
  export declare const SWITCH_ROOT_CONTROL_ONLY_CLASS = "inline-grid grid-cols-[auto] grid-rows-[auto]";
22
- export declare const SWITCH_TRACK_BASE_CLASS = "relative box-border inline-flex shrink-0 rounded-full";
22
+ export declare const SWITCH_TRACK_BASE_CLASS = "relative box-border inline-flex shrink-0";
23
23
  export declare const SWITCH_TRACK_GLOSS_CLASS = "gloss-indicator border-0";
24
24
  export declare const SWITCH_TRACK_DEFAULT_CLASS = "bg-primary-tint";
25
- export declare const SWITCH_FILL_BASE_CLASS = "pointer-events-none absolute inset-0 rounded-full";
25
+ /** Track fill — clipped by track `overflow-hidden` (same radius as thumb). */
26
+ export declare const SWITCH_FILL_BASE_CLASS = "pointer-events-none absolute inset-0 rounded-[inherit]";
26
27
  export declare const SWITCH_FILL_GLOSS_CLASS = "z-[1]";
27
28
  export declare const SWITCH_FILL_COLOR_CLASS = "bg-primary";
28
29
  export declare const SWITCH_FILL_GLOSS_TINT_CLASS = "bg-primary-tint";
@@ -47,7 +47,6 @@ export type SwitchTrackContextValue = {
47
47
  trackFillRef: RefObject<HTMLSpanElement | null>;
48
48
  thumbRef: RefObject<HTMLSpanElement | null>;
49
49
  thumbShellRef: RefObject<HTMLSpanElement | null>;
50
- thumbFillRef: RefObject<HTMLSpanElement | null>;
51
50
  iconOffRef: RefObject<HTMLSpanElement | null>;
52
51
  iconOnRef: RefObject<HTMLSpanElement | null>;
53
52
  };
@@ -123,7 +122,6 @@ export type UseSwitchTrackAnimationsProps = {
123
122
  trackFillRef: RefObject<HTMLSpanElement | null>;
124
123
  thumbRef: RefObject<HTMLSpanElement | null>;
125
124
  thumbShellRef: RefObject<HTMLSpanElement | null>;
126
- thumbFillRef: RefObject<HTMLSpanElement | null>;
127
125
  iconOffRef: RefObject<HTMLSpanElement | null>;
128
126
  iconOnRef: RefObject<HTMLSpanElement | null>;
129
127
  };
@@ -9,8 +9,8 @@ export declare function useSwitchRootState({ children, label, hint, error, label
9
9
  sz: {
10
10
  track: string;
11
11
  travelPx: number;
12
- title: import('../Text').TextVariant;
13
- desc: import('../Text').TextVariant;
12
+ title: typeof import('../utils/sizeLayout').OPTION_CONTROL_SIZE_LAYOUT[import('./switchGeometry').SwitchSize]["title"];
13
+ desc: typeof import('../utils/sizeLayout').OPTION_CONTROL_SIZE_LAYOUT[import('./switchGeometry').SwitchSize]["desc"];
14
14
  gap: string;
15
15
  };
16
16
  label: import('react').ReactNode;
@@ -29,27 +29,24 @@ export declare function useSwitchRootState({ children, label, hint, error, label
29
29
  translate?: "yes" | "no" | undefined;
30
30
  color?: string | undefined;
31
31
  prefix?: string | undefined;
32
- id?: string | undefined;
33
- style?: import('react').CSSProperties | undefined;
34
- popover?: "" | "auto" | "manual" | "hint" | undefined;
35
32
  form?: string | undefined;
36
33
  slot?: string | undefined;
34
+ style?: import('react').CSSProperties | undefined;
37
35
  title?: string | undefined;
38
- accessKey?: string | undefined;
39
- hidden?: boolean | undefined;
40
- dir?: string | undefined;
41
- onPointerEnter?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
42
- onPointerLeave?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
43
36
  defaultChecked?: boolean | undefined;
44
37
  defaultValue?: string | number | readonly string[] | undefined;
45
38
  suppressContentEditableWarning?: boolean | undefined;
46
39
  suppressHydrationWarning?: boolean | undefined;
40
+ accessKey?: string | undefined;
47
41
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
48
42
  autoFocus?: boolean | undefined;
49
43
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
50
44
  contextMenu?: string | undefined;
45
+ dir?: string | undefined;
51
46
  draggable?: (boolean | "true" | "false") | undefined;
52
47
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
48
+ hidden?: boolean | undefined;
49
+ id?: string | undefined;
53
50
  lang?: string | undefined;
54
51
  nonce?: string | undefined;
55
52
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -75,6 +72,7 @@ export declare function useSwitchRootState({ children, label, hint, error, label
75
72
  results?: number | undefined;
76
73
  security?: string | undefined;
77
74
  unselectable?: "on" | "off" | undefined;
75
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
78
76
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
79
77
  popoverTarget?: string | undefined;
80
78
  inert?: boolean | undefined;
@@ -272,6 +270,8 @@ export declare function useSwitchRootState({ children, label, hint, error, label
272
270
  onPointerUpCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
273
271
  onPointerCancel?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
274
272
  onPointerCancelCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
273
+ onPointerEnter?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
274
+ onPointerLeave?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
275
275
  onPointerOver?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
276
276
  onPointerOverCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
277
277
  onPointerOut?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
@@ -304,15 +304,15 @@ export declare function useSwitchRootState({ children, label, hint, error, label
304
304
  onTransitionStartCapture?: (import('react').TransitionEventHandler<HTMLLabelElement> & import('react').TransitionEventHandler<HTMLInputElement>) | undefined;
305
305
  onPointerDown?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
306
306
  height?: number | string | undefined | undefined;
307
- width?: number | string | undefined | undefined;
308
307
  pattern?: string | undefined | undefined;
309
- value?: string | number | readonly string[] | undefined;
310
- multiple?: boolean | undefined | undefined;
311
308
  onChange?: import('react').ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
312
- required?: boolean | undefined | undefined;
313
309
  list?: string | undefined | undefined;
314
310
  step?: number | string | undefined | undefined;
311
+ width?: number | string | undefined | undefined;
315
312
  name?: string | undefined | undefined;
313
+ value?: string | number | readonly string[] | undefined;
314
+ multiple?: boolean | undefined | undefined;
315
+ required?: boolean | undefined | undefined;
316
316
  autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
317
317
  accept?: string | undefined | undefined;
318
318
  alt?: string | undefined | undefined;
@@ -9,14 +9,14 @@ export declare const TABLE_HEADER_ROW_VARIANT_CLASS: Record<TableVariant, string
9
9
  export declare const TABLE_COLUMN_BASE_CLASS = "group/col";
10
10
  export declare const TABLE_COLUMN_VARIANT_CLASS: Record<TableVariant, string>;
11
11
  export declare const TABLE_COLUMN_SORTABLE_CLASS = "select-none";
12
- export declare const TABLE_COLUMN_SORT_BUTTON_CLASS = "inline-flex w-full min-w-0 items-center gap-xsmall border-0 bg-transparent text-inherit cursor-pointer outline-none focus-ring-inset rounded-small hover:text-foreground -mx-mid -my-plus px-mid py-plus box-border";
12
+ export declare const TABLE_COLUMN_SORT_BUTTON_CLASS = "inline-flex w-full min-w-0 items-center gap-xsmall border-0 bg-transparent text-inherit cursor-pointer outline-none focus-ring-inset rounded-small hover:text-foreground -mx-large -my-mid px-large py-mid box-border";
13
13
  export declare const TABLE_COLUMN_INNER_CLASS = "inline-flex items-center gap-xsmall";
14
14
  export declare const TABLE_COLUMN_LABEL_CLASS = "min-w-0 text-small text-left font-w-mid";
15
15
  export declare const TABLE_COLUMN_SORT_CHEVRON_BASE_CLASS = "shrink-0 origin-center";
16
16
  export declare const TABLE_COLUMN_SORT_CHEVRON_ICON_CLASS = "icon-xsmall";
17
17
  export declare const TABLE_COLUMN_SORT_CHEVRON_ACTIVE_CLASS = "text-primary opacity-100";
18
18
  export declare const TABLE_COLUMN_SORT_CHEVRON_IDLE_CLASS = "opacity-0 group-hover/col:opacity-40 text-muted";
19
- export declare const TABLE_BODY_EMPTY_CELL_CLASS = "px-mid py-mid text-center";
19
+ export declare const TABLE_BODY_EMPTY_CELL_CLASS = "px-large py-large text-center";
20
20
  export declare const TABLE_ROW_BASE_CLASS = "outline-none";
21
21
  export declare const TABLE_ROW_VARIANT_CLASS: Record<TableVariant, string>;
22
22
  export declare const TABLE_ROW_SELECTABLE_CLASS = "cursor-pointer";
@@ -28,7 +28,7 @@ export declare const TABLE_CELL_BASE_CLASS = "text-small";
28
28
  export declare const TABLE_CELL_VARIANT_CLASS: Record<TableVariant, string>;
29
29
  export declare const TABLE_CELL_SELECTED_RING_CLASS = "ring-2 ring-inset ring-primary";
30
30
  export declare const TABLE_CELL_TONED_HOVER_CLASS = "hover:brightness-[0.97] motion-reduce:hover:brightness-100";
31
- export declare const TABLE_FOOTER_CLASS = "flex flex-wrap items-center justify-between gap-base border-t-token px-mid py-plus";
31
+ export declare const TABLE_FOOTER_CLASS = "flex flex-wrap items-center justify-between gap-base border-t-token px-large py-mid";
32
32
  export type TableRowTone = "default" | "outline" | "secondary" | "danger" | "success" | "info" | "warning";
33
33
  export declare const TABLE_ROW_TONE_SURFACE: Record<TableRowTone, string>;
34
34
  export declare function tableRootClass({ variant, slotClass, className, }: {
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefObject } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  export type TabsOrientation = "horizontal" | "vertical";
4
4
  export type TabsVariant = "default" | "outline" | "secondary" | "gloss";
5
5
  export type TabsSize = ComponentSize;
@@ -1,5 +1,5 @@
1
1
  import { ElementType, HTMLAttributes } from 'react';
2
- export type TextVariant = "accent-header" | "header-1" | "header-2" | "large" | "mid" | "base" | "small" | "tools";
2
+ export type TextVariant = "accent-header" | "header-1" | "header-2" | "large" | "mid" | "base" | "small" | "xsmall";
3
3
  export type TextProps = Omit<HTMLAttributes<HTMLElement>, "className"> & {
4
4
  variant: TextVariant;
5
5
  as?: ElementType;
@@ -3,9 +3,10 @@ export declare const TEXTAREA_STATUS_TINT_SHELL_CLASS: Record<Exclude<TextAreaSt
3
3
  export declare const TEXTAREA_MIN_H: Record<TextAreaSize, string>;
4
4
  export declare const TEXTAREA_SHELL_LAYOUT_CLASS = "flex flex-col items-stretch";
5
5
  export declare const TEXTAREA_CONTROL_BASE_CLASS = "box-border block min-h-0 w-full flex-1 resize-none overflow-auto bg-transparent font-inherit text-foreground outline-none placeholder:text-muted appearance-none [field-sizing:content] field-control-mobile-no-zoom";
6
- export declare const TEXTAREA_RESIZE_GRIP_LINE_PRIMARY_CLASS = "absolute bottom-[2px] right-0 block h-px w-[9px] origin-bottom-right rotate-[135deg] bg-muted";
7
- export declare const TEXTAREA_RESIZE_GRIP_LINE_SECONDARY_CLASS = "absolute bottom-[6px] right-0 block h-px w-[6px] origin-bottom-right rotate-[135deg] bg-muted";
8
- export declare const TEXTAREA_RESIZE_GRIP_WRAP_CLASS = "relative block size-3 shrink-0";
6
+ /** Resize grip strokes — micro-geometry for the affordance (not spacing scale). */
7
+ export declare const TEXTAREA_RESIZE_GRIP_LINE_PRIMARY_CLASS = "absolute bottom-[length:calc(var(--border-width)*2)] right-0 block h-[length:var(--border-width)] w-[length:calc(var(--border-width)*9)] origin-bottom-right rotate-[135deg] bg-muted";
8
+ export declare const TEXTAREA_RESIZE_GRIP_LINE_SECONDARY_CLASS = "absolute bottom-[length:calc(var(--border-width)*6)] right-0 block h-[length:var(--border-width)] w-[length:calc(var(--border-width)*6)] origin-bottom-right rotate-[135deg] bg-muted";
9
+ export declare const TEXTAREA_RESIZE_GRIP_WRAP_CLASS = "relative block size-[length:var(--size-scale-small)] shrink-0";
9
10
  export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 right-0 z-[2] m-0 flex touch-none select-none appearance-none border-0 bg-transparent items-end justify-end p-xsmall outline-none focus-ring-inset";
10
11
  export declare const TEXTAREA_RESIZE_HANDLE_DISABLED_CLASS = "cursor-not-allowed opacity-45";
11
12
  export declare const TEXTAREA_RESIZE_HANDLE_ENABLED_CLASS = "cursor-ns-resize";
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, PointerEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  import { SemanticStatus } from '../utils/semanticStatusIcons';
4
4
  export type TextAreaVariant = "default" | "outline" | "secondary" | "gloss";
5
5
  export type TextAreaStatus = SemanticStatus;
@@ -1,5 +1,5 @@
1
1
  import { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent, RefObject } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  export declare function useTextAreaResize(shellRef: RefObject<HTMLElement | null>, enabled: boolean, blocked: boolean, size: ComponentSize): {
4
4
  onResizePointerDown: (e: ReactPointerEvent<HTMLButtonElement>) => void;
5
5
  onResizeKeyDown: (e: ReactKeyboardEvent<HTMLButtonElement>) => void;
@@ -12,5 +12,5 @@ export declare function useTextAreaRootState({ children, label, hint, error, id:
12
12
  hint: import('react').ReactNode;
13
13
  error: import('react').ReactNode;
14
14
  status: import('../utils/semanticStatusIcons').SemanticStatus;
15
- size: import('../utils/componentSize').ComponentSize;
15
+ size: import('../utils/sizeLayout').ComponentSize;
16
16
  };
@@ -6,13 +6,14 @@ export declare const TIME_FIELD_AFFIX_PREFIX_EDGE_CLASS = "border-r-token";
6
6
  export declare const TIME_FIELD_AFFIX_SUFFIX_EDGE_CLASS = "border-l-token";
7
7
  export declare const TIME_FIELD_KEYBOARD_INPUT_CLASS = "pointer-events-none absolute h-px w-px opacity-0 field-control-mobile-no-zoom";
8
8
  export declare const TIME_FIELD_SEGMENT_BASE_CLASS = "inline-flex min-w-[2ch] select-none items-center justify-center outline-none";
9
- export declare const TIME_FIELD_SEGMENT_SEGMENTED_CLASS = "h-[1.65em] min-w-[2.25ch] rounded-small px-[3px] bg-default-hover";
10
- export declare const TIME_FIELD_SEGMENT_DEFAULT_CLASS = "rounded-[3px] px-[2px]";
9
+ /** Segment chrome: em/ch track the mono digit metrics; pad/radius use tokens. */
10
+ export declare const TIME_FIELD_SEGMENT_SEGMENTED_CLASS = "h-[1.65em] min-w-[2.25ch] rounded-xsmall px-xsmall bg-default-hover";
11
+ export declare const TIME_FIELD_SEGMENT_DEFAULT_CLASS = "rounded-xsmall px-[length:calc(var(--border-width)*2)]";
11
12
  export declare const TIME_FIELD_SEGMENT_FOCUSED_CLASS = "bg-primary text-primary-foreground";
12
13
  export declare const TIME_FIELD_SEGMENT_DISABLED_CLASS = "cursor-not-allowed";
13
14
  export declare const TIME_FIELD_SEGMENT_ENABLED_CLASS = "cursor-default";
14
15
  export declare const TIME_FIELD_SEGMENT_SEPARATOR_BASE_CLASS = "inline-flex w-[0.45em] shrink-0 select-none items-center justify-center self-center text-muted";
15
- export declare const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[1px]";
16
+ export declare const TIME_FIELD_SEGMENT_SEPARATOR_SEGMENTED_CLASS = "mx-[length:var(--border-width)]";
16
17
  export declare const TIME_FIELD_SEGMENT_GROUP_CLASS = "inline-flex items-center";
17
18
  export declare const TIME_FIELD_SEGMENTS_BASE_CLASS = "relative flex min-w-0 flex-1 items-center font-mono tabular-nums leading-none";
18
19
  /** Flex row inside `<fieldset>` — flex on fieldset itself breaks height on resize. */
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, PointerEventHandler, ReactNode } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  import { SemanticStatus } from '../utils/semanticStatusIcons';
4
4
  export type TimeFieldSize = ComponentSize;
5
5
  export type TimeFieldStatus = SemanticStatus;
@@ -3,7 +3,7 @@ import { TimeFieldControlProps, TimeFieldSegId } from './timeFieldTypes';
3
3
  export declare function useTimeFieldControlState({ value: valueProp, defaultValue, onValueChange, format, disabled, size: sizeProp, status: statusProp, variant: variantProp, compact: compactProp, id, onPointerDown, onPointerEnter: onPointerEnterProp, onPointerLeave: onPointerLeaveProp, ref, }: TimeFieldControlProps & {
4
4
  ref: React.Ref<HTMLFieldSetElement>;
5
5
  }): {
6
- size: import('../utils/componentSize').ComponentSize;
6
+ size: import('../utils/sizeLayout').ComponentSize;
7
7
  status: import('../utils/semanticStatusIcons').SemanticStatus;
8
8
  variant: import('./timeFieldTypes').TimeFieldVariant;
9
9
  compact: boolean;