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
package/README.md CHANGED
@@ -43,10 +43,40 @@ import "burne-ui/styles.css";
43
43
  В нём:
44
44
 
45
45
  - **Дизайн-токены** как CSS-переменные: `--color-*`, `--space` / `--space-*`, `--size` / `--size-*`, `--radius`, `--text-scale-*`, и др. Полный перечень имён — экспорт **`designTokenNames`** из `burne-ui`; исходные значения по умолчанию смотрите в репозитории в `src/tokens/styles.css`.
46
- - **Мост Tailwind** (`@theme inline`): цвета в утилитах вида `bg-background`, `text-foreground`, `border-border`, отступы `gap-mid`, `p-plus`, радиусы `rounded-base` и т.д.
46
+ - **Мост Tailwind** (`@theme inline`): цвета в утилитах вида `bg-background`, `text-foreground`, `border-border`, отступы `gap-large`, `p-mid`, радиусы `rounded-base` и т.д.
47
47
  - **Кастомные утилиты** (`@utility`): например `border-token`, `border-t-token`, `text-header-1`, `text-mid`, `max-w-component-base`, `min-w-button-base`.
48
48
 
49
- Имена переменных **не** с префиксом `brn-`; это обычные `--color-background`, `--space-mid` и т.п.
49
+ Имена переменных **не** с префиксом `brn-`; это обычные `--color-background`, `--space-large` и т.п.
50
+
51
+ ### Слои имён токенов
52
+
53
+ | Домен | Knob | Шаги (design) | Мост Tailwind | Утилиты |
54
+ |-------|------|---------------|---------------|---------|
55
+ | Spacing | `--space` | `--space-*` (`xsmall`…`3xlarge`) | `--spacing-*` | `gap-*`, `p-*`, `m-*` |
56
+ | Radius | `--radius` | `--radius-*` | `--radius-*` (identity) | `rounded-*` |
57
+ | Control | — | `--control-height-*` / `--control-size-*` (= height) | — | `h-control-*`, `w-control-*` |
58
+ | Icons | `--size` | `--size-scale-*` → `--icon-size-*` (1:1) | — | `icon-xsmall` … `icon-3xlarge` |
59
+
60
+ `--space-*` и `--spacing-*` — разные имена **намеренно**: у Tailwind namespace отступов — `spacing`.
61
+
62
+ Шкала spacing: `xsmall` 0.5 · `small` 0.75 · `base` 1 · `mid` 1.5 · `large` 2 · `xlarge` 2.5 · `2xlarge` 3 · `3xlarge` 3.875 (× `--space`).
63
+
64
+ ### Типографика
65
+
66
+ Примитивы `--text-scale-*` и UI-роли/`text-*` утилиты совпадают по имени:
67
+
68
+ | Шаг / утилита | rem |
69
+ |---------------|-----|
70
+ | `xsmall` / `text-xsmall` | 0.6875 |
71
+ | `small` / `text-small` | 0.75 |
72
+ | `base` / `text-base` | 0.875 |
73
+ | `mid` / `text-mid` | 1 |
74
+ | `large` / `text-large` | 1.25 |
75
+ | `xlarge` → `text-header-2` | 1.5 |
76
+ | `2xlarge` → `text-header-1` | 1.875 |
77
+ | `3xlarge` → `text-accent-header` | 2.25 |
78
+
79
+ Чтобы увеличить «обычный» текст в компонентах, переопределяйте `--text-scale-base`.
50
80
 
51
81
  ## Кастомизация темы
52
82
 
@@ -131,11 +161,11 @@ import "./burne-theme-overrides.css";
131
161
  ```css
132
162
  :root {
133
163
  --color-primary: #6366f1;
134
- --space: 0.5625rem; /* плотнее/просторнее отступы */
135
- --size: 1.0625rem; /* крупнее иконки, индикаторы, кнопки */
136
- --radius: 0.625rem; /* мягче скругления */
164
+ --space: 0.5625rem; /* fixed rem — без fluid; для fluid см. theme config ниже */
165
+ --size: 1.0625rem;
166
+ --radius: 0.625rem;
137
167
  --font-family-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
138
- --text-scale-small: 0.9375rem; /* UI-текст (роль text-base) */
168
+ --text-scale-base: 0.9375rem; /* UI-текст (роль text-base) */
139
169
  }
140
170
 
141
171
  /* Светлая тема: те же ветки, что и в пакете */
@@ -144,6 +174,8 @@ import "./burne-theme-overrides.css";
144
174
  }
145
175
  ```
146
176
 
177
+ Theme config / playground (`tokens.space` и т.п.) через `applyThemeTokens` пишут scaled `clamp` и тени с `calc(… * var(--shadow-size))` — оверрайды не ломают fluid. Ручной fixed rem в CSS — да, отключает. Инлайн ставятся **только** токены ≠ дефолтам кита, поэтому CSS-файл оверрайдов может точечно править остальное.
178
+
147
179
  Переменные наследуются по дереву DOM — при необходимости задайте их на обёртке виджета вместо `html`.
148
180
 
149
181
  Из JS удобно сверять имена с массивом **`designTokenNames`**, а для цветов в `style` есть хелпер **`colorToken`** (оба экспортируются из `burne-ui`):
@@ -156,7 +188,7 @@ const ripple = colorToken("converge-ripple-neutral"); // var(--color-converge-ri
156
188
 
157
189
  ## Tailwind в приложении-потребителе
158
190
 
159
- Компоненты используют классы Tailwind, сопоставленные с токенами пакета (`bg-surface`, `text-muted`, `gap-plus`, …). Чтобы **ваши** классы в `className` и классы из prebuilt-бандла библиотеки попали в итоговый CSS, Tailwind должен сканировать артефакты пакета. Добавьте путь к сборке (пример для Tailwind v4 / Vite):
191
+ Компоненты используют классы Tailwind, сопоставленные с токенами пакета (`bg-surface`, `text-muted`, `gap-mid`, …). Чтобы **ваши** классы в `className` и классы из prebuilt-бандла библиотеки попали в итоговый CSS, Tailwind должен сканировать артефакты пакета. Добавьте путь к сборке (пример для Tailwind v4 / Vite):
160
192
 
161
193
  ```ts
162
194
  // @source в глобальном CSS приложения или content — см. документацию Tailwind v4
@@ -1,6 +1,6 @@
1
1
  import { AccordionBody, AccordionContent, AccordionDescription, AccordionHeading, AccordionIcon, AccordionChevron, AccordionItem, AccordionMessage, AccordionPanel, AccordionTitle, AccordionTrigger } from './accordionParts';
2
2
  export type { AccordionProps, AccordionItemProps, AccordionHeadingProps, AccordionTriggerProps, AccordionMessageProps, AccordionIconProps, AccordionContentProps, AccordionTitleProps, AccordionDescriptionProps, AccordionChevronProps, AccordionPanelProps, AccordionBodyProps, AccordionClassNames, } from './accordionTypes';
3
- export declare const AccordionRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children" | "defaultValue"> & {
3
+ export declare const AccordionRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "defaultValue" | "children"> & {
4
4
  value?: string | null;
5
5
  defaultValue?: string | null;
6
6
  defaultOpenIndex?: number | null;
@@ -1,5 +1,5 @@
1
1
  import { AccordionBody, AccordionContent, AccordionDescription, AccordionHeading, AccordionIcon, AccordionChevron, AccordionMessage, AccordionTitle } from './Accordion';
2
- export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children" | "defaultValue"> & {
2
+ export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "defaultValue" | "children"> & {
3
3
  value?: string | null;
4
4
  defaultValue?: string | null;
5
5
  defaultOpenIndex?: number | null;
@@ -1,16 +1,15 @@
1
1
  import { AlertStatus, AlertVariant } from '../../core/Alert/alertTypes';
2
2
  import { AlertDialogSize, AlertDialogSizePreset } from './alertDialogTypes';
3
3
  import { ButtonSize } from '../../core/Button/buttonTypes';
4
- export declare const ALERT_DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-mid text-left";
4
+ export declare const ALERT_DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col text-left";
5
5
  export declare const ALERT_DIALOG_SIZE: Record<AlertDialogSize, AlertDialogSizePreset>;
6
- export declare const FOOTER_BUTTON_SIZE: Record<AlertDialogSize, ButtonSize>;
7
- export declare const ALERT_DIALOG_NATIVE_CLASS = "m-0 flex h-full w-full max-h-none max-w-none items-center justify-center border-0 bg-transparent p-mid open:flex [&::backdrop]:bg-transparent";
6
+ export declare const ALERT_DIALOG_NATIVE_CLASS = "m-0 flex h-full w-full max-h-none max-w-none items-center justify-center border-0 bg-transparent p-large open:flex [&::backdrop]:bg-transparent";
8
7
  export declare const ALERT_DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
9
8
  export declare const ALERT_DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
10
9
  export declare function alertDialogNativeClass(contained: boolean): string;
11
10
  export declare const ALERT_DIALOG_PANEL_SHELL_CLASS = "relative z-10 w-full outline-none";
12
- export declare const ALERT_DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden rounded-mid text-left";
13
- export declare const ALERT_DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col rounded-mid text-left text-foreground";
11
+ export declare const ALERT_DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden text-left";
12
+ export declare const ALERT_DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col text-left text-foreground";
14
13
  export declare const ALERT_DIALOG_GLOSS_CONTENT_CLASS = "gloss-content";
15
14
  export declare const ALERT_DIALOG_CLOSE_CLASS = "shrink-0";
16
15
  export declare const ALERT_DIALOG_TRIGGER_BASE_CLASS = "outline-none focus-ring";
@@ -29,10 +28,15 @@ export declare function alertDialogBodyClass(bodyPadding: string, className?: st
29
28
  export declare function alertDialogContentClass(className?: string): string;
30
29
  export declare function alertDialogPanelClass({ variant, sizePreset, className, slotClass, }: {
31
30
  variant: AlertVariant;
32
- sizePreset: Pick<AlertDialogSizePreset, "panelMax" | "maxHeight">;
31
+ sizePreset: Pick<AlertDialogSizePreset, "panelMax" | "maxHeight" | "rounded">;
33
32
  className?: string;
34
33
  slotClass?: string;
35
34
  }): string;
36
- export declare function alertDialogGlossPanelClass(maxHeight: string, slotClass?: string): string;
35
+ export declare function alertDialogGlossPanelClass({ maxHeight, rounded, slotClass, }: {
36
+ maxHeight: string;
37
+ rounded: string;
38
+ slotClass?: string;
39
+ }): string;
37
40
  export declare function alertDialogHeaderIconWrapperClass(status: AlertStatus): string;
38
41
  export declare function footerButtonSizeForAlertDialog(dialogSize: AlertDialogSize): ButtonSize;
42
+ export declare function closeButtonSizeForAlertDialog(dialogSize: AlertDialogSize): ButtonSize;
@@ -2,9 +2,9 @@ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
2
  import { AlertStatus, AlertVariant } from '../../core/Alert/alertTypes';
3
3
  import { CloseButtonProps } from '../../core/CloseButton';
4
4
  import { ButtonSize } from '../../core/Button';
5
- import { TextVariant } from '../../core/Text';
6
5
  import { MessageBannerGridSlots } from '../../core/utils/messageBannerGridLayout';
7
- export type AlertDialogSize = "small" | "base" | "mid" | "large";
6
+ import { PanelSize, PanelSizeLayout } from '../../core/utils/sizeLayout';
7
+ export type AlertDialogSize = PanelSize;
8
8
  export type AlertDialogClassNames = {
9
9
  dialog?: string;
10
10
  overlay?: string;
@@ -22,19 +22,10 @@ export type AlertDialogClassNames = {
22
22
  footer?: string;
23
23
  close?: string;
24
24
  };
25
- export type AlertDialogSizePreset = {
26
- panelMax: string;
27
- maxHeight: string;
25
+ /** Size tokens from shared `PANEL_SIZE_LAYOUT` (AlertDialog slice). */
26
+ export type AlertDialogSizePreset = Pick<PanelSizeLayout, "rounded" | "panelMax" | "maxHeight" | "headerPadding" | "bodyPadding" | "footerPadding" | "titleVariant" | "descVariant" | "descClassName" | "bodyVariant" | "iconClass" | "footerButtonSize" | "closeButtonSize"> & {
27
+ /** Alert header grid gap (`alertHeaderGap` in panel layout). */
28
28
  headerGap: string;
29
- headerPadding: string;
30
- bodyPadding: string;
31
- footerPadding: string;
32
- headingBlockGap: string;
33
- iconClass: string;
34
- titleVariant: TextVariant;
35
- descVariant: TextVariant;
36
- descClassName: string;
37
- bodyVariant: TextVariant;
38
29
  };
39
30
  export type AlertDialogProps = {
40
31
  open?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ButtonGroupOrientation } from './buttonGroupTypes';
2
2
  export type { ButtonGroupProps, ButtonGroupTextProps, ButtonGroupOrientation, ButtonGroupSegment, ButtonGroupClassNames, } from './buttonGroupTypes';
3
- export declare const ButtonGroupRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children" | "role"> & {
3
+ export declare const ButtonGroupRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "role" | "children"> & {
4
4
  orientation?: ButtonGroupOrientation;
5
5
  segmented?: boolean;
6
6
  buttonSize?: import('../../..').ButtonSize;
@@ -1,4 +1,4 @@
1
- import { ComponentSize } from '../../core/utils/componentSize';
1
+ import { ComponentSize } from '../../core/utils/sizeLayout';
2
2
  import { ButtonSize, ButtonVariant } from '../../core/Button';
3
3
  import { TextVariant } from '../../core/Text';
4
4
  import { ButtonGroupOrientation, ButtonGroupSegment } from './buttonGroupTypes';
@@ -25,4 +25,4 @@ export declare function buttonGroupTextClass({ groupSegment, groupVariant, butto
25
25
  buttonSize: ButtonSize;
26
26
  className?: string;
27
27
  }): string;
28
- export declare const BUTTON_GROUP_TEXT_LABEL_CLASS = "max-w-[12rem] truncate font-w-base whitespace-nowrap md:max-w-[18rem]";
28
+ export declare const BUTTON_GROUP_TEXT_LABEL_CLASS = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base";
@@ -1,4 +1,4 @@
1
- export declare const ButtonGroup: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children" | "role"> & {
1
+ export declare const ButtonGroup: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "role" | "children"> & {
2
2
  orientation?: import('./buttonGroupTypes').ButtonGroupOrientation;
3
3
  segmented?: boolean;
4
4
  buttonSize?: import('../../..').ButtonSize;
@@ -1,7 +1,7 @@
1
1
  import { FieldsetHTMLAttributes, ReactNode } from 'react';
2
2
  import { FieldErrorProps } from '../../core/Field';
3
3
  import { LabelProps } from '../../core/Label';
4
- import { ComponentSize } from '../../core/utils/componentSize';
4
+ import { ComponentSize } from '../../core/utils/sizeLayout';
5
5
  import { OptionGroupHintProps, OptionGroupLegendProps, OptionGroupListProps, OptionGroupOrientation } from '../utils/optionGroupFieldset';
6
6
  import { OptionGroupClassNames } from '../utils/optionGroupClassNames';
7
7
  export type CheckboxGroupSelection = "multiple" | "single";
@@ -1,5 +1,5 @@
1
1
  import { FormHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
- import { ComponentSize } from '../../core/utils/componentSize';
2
+ import { ComponentSize } from '../../core/utils/sizeLayout';
3
3
  export type FormValues = Record<string, unknown>;
4
4
  export type FormValidateMode = "onSubmit" | "onBlur" | "onChange";
5
5
  export type FormFieldRules = {
@@ -1,7 +1,7 @@
1
1
  import { FieldsetHTMLAttributes, ReactNode } from 'react';
2
2
  import { FieldErrorProps } from '../../core/Field';
3
3
  import { LabelProps } from '../../core/Label';
4
- import { ComponentSize } from '../../core/utils/componentSize';
4
+ import { ComponentSize } from '../../core/utils/sizeLayout';
5
5
  import { OptionGroupHintProps, OptionGroupLegendProps, OptionGroupListProps, OptionGroupOrientation } from '../utils/optionGroupFieldset';
6
6
  import { OptionGroupClassNames } from '../utils/optionGroupClassNames';
7
7
  export type RadioGroupOrientation = OptionGroupOrientation;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
3
- import { MessageBannerSize, MessageBannerSizePreset } from '../utils/messageBannerSize';
3
+ import { MessageBannerSize, MessageBannerSizePreset } from '../utils/sizeLayout';
4
4
  export type AlertSize = MessageBannerSize;
5
5
  export type AlertVariant = "default" | "outline" | "secondary" | "gloss";
6
6
  export type AlertStatus = "default" | "danger" | "success" | "info" | "warning";
@@ -16,8 +16,8 @@ export declare function useAlertRootState({ variant: variantProp, status: status
16
16
  }): {
17
17
  variant: AlertVariant;
18
18
  status: AlertStatus;
19
- size: import('../utils/componentSize').ComponentSize;
20
- sizePreset: import('../utils/messageBannerSize').MessageBannerSizePreset;
19
+ size: import('../utils/sizeLayout').ComponentSize;
20
+ sizePreset: import('../utils/sizeLayout').MessageBannerSizePreset;
21
21
  isCompound: boolean;
22
22
  gridSlots: MessageBannerGridSlots;
23
23
  liveRole: AlertLiveRole;
@@ -1,5 +1,5 @@
1
1
  import { TextVariant } from '../Text';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  import { SemanticSurfaceStatus } from '../utils/semanticStatusSurface';
4
4
  import { HoverVariant } from '../utils/hoverVariant';
5
5
  import { ButtonSize, ButtonStatus, ButtonVariant } from './buttonTypes';
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, HTMLAttributes, MouseEvent, ReactNode, RefObject } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  import { IconPosition } from '../utils/iconPosition';
4
4
  import { ButtonGroupSegment } from '../../composite/ButtonGroup';
5
5
  export type ButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
@@ -1,7 +1,7 @@
1
1
  import { ButtonAsyncState, UseButtonRootStateProps } from './buttonTypes';
2
2
  export declare function useButtonRootState({ variant: variantProp, status, size: sizeProp, type, animated, asyncState: asyncStateProp, onAsyncStateChange, onAsyncClick, asyncFeedbackMs, disabled: disabledProp, icon, iconPosition, ripple, iconOnly, groupSegment: groupSegmentProp, className, classNames, children, onClick, }: UseButtonRootStateProps): {
3
- type: "button" | "reset" | "submit";
4
- size: import('../utils/componentSize').ComponentSize;
3
+ type: "button" | "submit" | "reset";
4
+ size: import('../utils/sizeLayout').ComponentSize;
5
5
  variant: import('./buttonTypes').ButtonVariant;
6
6
  status: import('./buttonTypes').ButtonStatus;
7
7
  animated: boolean;
@@ -1,9 +1,9 @@
1
1
  import { CalendarFooterProps, CalendarGridProps, CalendarHeaderProps, CalendarInteractiveCellProps, CalendarNavButtonProps, CalendarTitleProps } from './calendarTypes';
2
- export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
2
+ export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
3
3
  size?: import('./calendarTypes').CalendarSize;
4
4
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
5
5
  } & import('react').RefAttributes<HTMLButtonElement>>;
6
- export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
6
+ export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
7
7
  size?: import('./calendarTypes').CalendarSize;
8
8
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
9
9
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -33,7 +33,8 @@ export declare const CALENDAR_CELL_BUTTON_CLASS = "group/calendar-cell relative
33
33
  export declare const CALENDAR_CELL_FILL_CLASS: string;
34
34
  export declare const CALENDAR_HEADER_TITLE_BASE_CLASS: string;
35
35
  export declare const CALENDAR_CELL_TEXT_CLASS = "relative z-[1] min-w-0 shrink-0 leading-none";
36
- export declare const CALENDAR_CELL_TODAY_DOT_CLASS = "absolute bottom-[3px] left-1/2 z-[1] h-[3px] w-[3px] -translate-x-1/2 rounded-full bg-primary";
36
+ /** Today marker — 3× border-width so it stays a hairline dot on the size scale. */
37
+ export declare const CALENDAR_CELL_TODAY_DOT_CLASS = "absolute bottom-[length:calc(var(--border-width)*3)] left-1/2 z-[1] h-[length:calc(var(--border-width)*3)] w-[length:calc(var(--border-width)*3)] -translate-x-1/2 rounded-full bg-primary";
37
38
  export declare const CALENDAR_NAV_ICON_CLASS = "icon-xsmall";
38
39
  export declare const CALENDAR_CELL_SELECTED_CLASS = "bg-transparent font-w-mid text-primary-foreground";
39
40
  export declare const CALENDAR_CELL_CURRENT_CLASS = "font-w-mid text-primary";
@@ -2,11 +2,11 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<import(
2
2
  Header: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  Grid: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
4
4
  Footer: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarFooterProps & import('react').RefAttributes<HTMLDivElement>>;
5
- NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
5
+ NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
6
6
  size?: import('./calendarTypes').CalendarSize;
7
7
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
8
8
  } & import('react').RefAttributes<HTMLButtonElement>>;
9
- NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
9
+ NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "onClick" | "direction"> & {
10
10
  size?: import('./calendarTypes').CalendarSize;
11
11
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
12
12
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,8 +1,9 @@
1
1
  import { CardBody, CardDescription, CardFooter, CardHeader, CardHeadingBlock, CardTitle } from './cardParts';
2
2
  import { CardVariant } from './cardTypes';
3
- export type { CardPressEvent, CardProps, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
3
+ export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
4
4
  export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
5
5
  variant?: CardVariant;
6
+ size?: import('./cardStyles').CardSize;
6
7
  pressable?: boolean;
7
8
  onPress?: (event: import('./cardTypes').CardPressEvent) => void;
8
9
  onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
@@ -1,3 +1,10 @@
1
- import { CardClassNames, CardClassNamesProviderProps } from './cardTypes';
2
- export declare function CardClassNamesProvider({ classNames, children, }: CardClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
1
+ import { CardSize } from './cardStyles';
2
+ import { CardClassNames, CardProviderProps } from './cardTypes';
3
+ export type CardContextValue = {
4
+ classNames: CardClassNames;
5
+ size: CardSize;
6
+ };
7
+ export declare function CardProvider({ classNames, size, children }: CardProviderProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function useCardContext(): CardContextValue;
3
9
  export declare function useCardClassNames(): CardClassNames;
10
+ export declare function useCardSize(): CardSize;
@@ -1,18 +1,25 @@
1
+ import { CardSize } from '../utils/sizeLayout';
1
2
  import { CardVariant } from './cardTypes';
3
+ export type { CardSize, PanelSizeLayout as CardSizeLayout } from '../utils/sizeLayout';
4
+ export { CARD_SIZE_LAYOUT, PANEL_SIZE_LAYOUT, resolveCardSize, cardSizeLayout, panelSizeLayout, } from '../utils/sizeLayout';
2
5
  /** Passive 2nd level — static sm-shadow without hover-lift. */
3
6
  export declare const CARD_STATIC_SHADOW_CLASS = "shadow-token-base";
4
- export declare const CARD_GLOSS_PANEL_CLASS = "gloss-panel flex min-w-0 flex-col rounded-mid text-foreground outline-none";
7
+ export declare const CARD_GLOSS_PANEL_BASE_CLASS = "gloss-panel flex min-w-0 flex-col text-foreground outline-none";
5
8
  export declare const CARD_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-1 flex-col";
6
- export declare const CARD_ROOT_BASE_CLASS = "flex min-w-0 flex-col overflow-hidden rounded-mid text-foreground outline-none";
9
+ export declare const CARD_ROOT_BASE_CLASS = "flex min-w-0 flex-col overflow-hidden text-foreground outline-none";
7
10
  export declare const CARD_PRESSABLE_ROOT_CLASS = "relative cursor-pointer focus-ring";
8
11
  export declare const CARD_BUTTON_SHELL_CLASS = "w-full border-0 p-0 text-left";
9
12
  export declare const CARD_PRESSABLE_CONTENT_CLASS = "relative flex min-w-0 flex-1 flex-col";
10
- export declare const CARD_HEADER_CLASS = "flex shrink-0 flex-col gap-small py-plus px-mid text-left";
11
- export declare const CARD_HEADING_BLOCK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall text-left";
12
- export declare const CARD_BODY_CLASS = "min-w-0 px-mid pb-mid";
13
+ export declare const CARD_HEADER_BASE_CLASS = "flex shrink-0 flex-col text-left";
14
+ export declare const CARD_HEADING_BLOCK_BASE_CLASS = "flex min-w-0 flex-1 flex-col text-left";
15
+ export declare const CARD_BODY_BASE_CLASS = "min-w-0";
13
16
  export declare const CARD_TITLE_CLASS = "min-w-0";
14
17
  export declare const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted";
15
- export declare const CARD_FOOTER_CLASS = "mt-auto border-t-token py-plus px-mid text-muted";
16
- export declare function cardGlossPanelClass(className?: string): string;
18
+ export declare const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted";
19
+ export declare function cardGlossPanelClass(size: CardSize, className?: string): string;
17
20
  export declare function cardGlossPressableClass(pressable: boolean): string;
18
- export declare function cardRootClass(variant: Exclude<CardVariant, "gloss">, pressable: boolean, pressableMotionClass: string, className?: string): string;
21
+ export declare function cardRootClass(variant: Exclude<CardVariant, "gloss">, pressable: boolean, pressableMotionClass: string, size: CardSize, className?: string): string;
22
+ export declare function cardHeaderClass(size: CardSize, className?: string): string;
23
+ export declare function cardHeadingBlockClass(size: CardSize, className?: string): string;
24
+ export declare function cardBodyClass(size: CardSize, className?: string): string;
25
+ export declare function cardFooterClass(size: CardSize, className?: string): string;
@@ -1,4 +1,6 @@
1
1
  import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
+ import { CardSize } from './cardStyles';
3
+ export type { CardSize } from './cardStyles';
2
4
  export type CardVariant = "default" | "outline" | "secondary" | "gloss";
3
5
  export type CardPressEvent = MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;
4
6
  export type CardClassNames = {
@@ -14,6 +16,8 @@ export type CardClassNames = {
14
16
  };
15
17
  export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown"> & {
16
18
  variant?: CardVariant;
19
+ /** Radius, padding and title/description type scale. @default "base" */
20
+ size?: CardSize;
17
21
  /**
18
22
  * Interactive card: hover-lift, shadow and squeeze on press (like a button).
19
23
  * Ripple is not built-in — if needed, pass `<Ripple />` as the first child and wrap the rest of the content in a layer with `relative z-[1]`.
@@ -38,11 +42,12 @@ export type CardBodyProps = HTMLAttributes<HTMLDivElement>;
38
42
  export type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
39
43
  export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
40
44
  export type CardFooterProps = HTMLAttributes<HTMLDivElement>;
41
- export type CardClassNamesProviderProps = {
45
+ export type CardProviderProps = {
42
46
  classNames?: CardClassNames;
47
+ size: CardSize;
43
48
  children: ReactNode;
44
49
  };
45
- export type UseCardRootStateProps = Pick<CardProps, "variant" | "pressable" | "className" | "onClick" | "onKeyDown" | "onPointerDown">;
50
+ export type UseCardRootStateProps = Pick<CardProps, "variant" | "size" | "pressable" | "className" | "onClick" | "onKeyDown" | "onPointerDown">;
46
51
  export type UseCardAnimationsProps = {
47
52
  pressable: boolean;
48
53
  isGloss: boolean;
@@ -1,6 +1,7 @@
1
1
  import { CardBody, CardFooter, CardHeader, CardHeadingBlock } from './Card';
2
2
  export declare const Card: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
3
3
  variant?: import('./cardTypes').CardVariant;
4
+ size?: import('./cardStyles').CardSize;
4
5
  pressable?: boolean;
5
6
  onPress?: (event: import('./cardTypes').CardPressEvent) => void;
6
7
  onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
@@ -15,4 +16,4 @@ export declare const Card: import('react').ForwardRefExoticComponent<Omit<import
15
16
  Body: typeof CardBody;
16
17
  Footer: typeof CardFooter;
17
18
  };
18
- export type { CardPressEvent, CardProps, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
19
+ export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
@@ -1,6 +1,7 @@
1
1
  import { CardVariant, UseCardRootStateProps } from './cardTypes';
2
- export declare function useCardRootState({ variant, pressable, onClick, onKeyDown, onPointerDown, }: UseCardRootStateProps): {
2
+ export declare function useCardRootState({ variant, size: sizeProp, pressable, onClick, onKeyDown, onPointerDown, }: UseCardRootStateProps): {
3
3
  variant: CardVariant;
4
+ size: import('../utils/sizeLayout').ComponentSize;
4
5
  pressable: boolean;
5
6
  isGloss: boolean;
6
7
  glossPressable: boolean;
@@ -1,6 +1,6 @@
1
1
  import { CheckboxContent, CheckboxControl, CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './checkboxParts';
2
2
  export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, } from './checkboxTypes';
3
- export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
3
+ export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
4
4
  children?: import('react').ReactNode;
5
5
  label?: import('react').ReactNode;
6
6
  hint?: import('react').ReactNode;
@@ -1,10 +1,4 @@
1
- import { TextVariant } from '../Text';
2
- import { CheckboxSize } from './checkboxTypes';
3
- export declare const CHECKBOX_SIZE_LAYOUT: Record<CheckboxSize, {
4
- title: TextVariant;
5
- desc: TextVariant;
6
- gridGap: string;
7
- }>;
1
+ export declare const CHECKBOX_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
8
2
  export declare const CHECKBOX_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
9
3
  export declare const CHECKBOX_INPUT_TRACK_OVERLAY_CLASS = "absolute inset-0 z-[2] m-0 h-full w-full cursor-pointer opacity-0";
10
4
  export declare const CHECKBOX_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
@@ -1,5 +1,5 @@
1
1
  import { CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './Checkbox';
2
- export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
2
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "onPointerDown" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  children?: import('react').ReactNode;
4
4
  label?: import('react').ReactNode;
5
5
  hint?: import('react').ReactNode;
@@ -13,11 +13,7 @@ export declare function useCheckboxRootState({ size, variant, status, icon, disa
13
13
  enableTextMotion: boolean;
14
14
  textColRef: import('react').RefObject<HTMLElement | null>;
15
15
  secondaryLines: number;
16
- sz: {
17
- title: import('../Text').TextVariant;
18
- desc: import('../Text').TextVariant;
19
- gridGap: string;
20
- };
16
+ sz: import('../utils/sizeLayout').OptionControlSizeLayout;
21
17
  hasHint: boolean;
22
18
  hasError: boolean;
23
19
  label: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, PointerEvent } from 'react';
2
- import { ComponentSize } from '../utils/componentSize';
2
+ import { ComponentSize } from '../utils/sizeLayout';
3
3
  export type CloseButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
4
4
  export type CloseButtonSize = ComponentSize;
5
5
  export type CloseButtonClassNames = {
@@ -1,11 +1,11 @@
1
1
  import { UseCloseButtonRootStateProps } from './closeButtonTypes';
2
2
  export declare function useCloseButtonRootState({ variant, size, animated, ripple, className, disabled, type, "aria-label": ariaLabel, classNames, }: UseCloseButtonRootStateProps): {
3
3
  variant: import('./closeButtonTypes').CloseButtonVariant;
4
- size: import('../utils/componentSize').ComponentSize;
4
+ size: import('../utils/sizeLayout').ComponentSize;
5
5
  animated: boolean;
6
6
  ripple: boolean;
7
7
  disabled: boolean;
8
- type: "button" | "reset" | "submit";
8
+ type: "button" | "submit" | "reset";
9
9
  ariaLabel: string;
10
10
  buttonClass: string;
11
11
  convergeRippleColor: string;
@@ -3,7 +3,8 @@ export declare const COLOR_PICKER_WIDTH: Record<ColorPickerSize, string>;
3
3
  export declare const COLOR_PICKER_AREA_HEIGHT: Record<ColorPickerSize, string>;
4
4
  export declare const COLOR_PICKER_PAD: Record<ColorPickerSize, string>;
5
5
  export declare const COLOR_PICKER_AREA_CLASS = "relative w-full touch-none select-none rounded-small cursor-crosshair overflow-hidden";
6
- export declare const COLOR_PICKER_AREA_THUMB_CLASS = "absolute z-10 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-token-mid focus-ring";
6
+ /** Dual ring: light inner + theme foreground outer — readable on any swatch hue. */
7
+ export declare const COLOR_PICKER_AREA_THUMB_CLASS = "absolute z-10 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white [box-shadow:0_0_0_1px_var(--color-foreground),var(--shadow-mid)] focus-ring";
7
8
  export declare const COLOR_PICKER_SLIDERS_ROW_CLASS = "flex items-center gap-small";
8
9
  export declare const COLOR_PICKER_SLIDERS_STACK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall";
9
10
  export declare const COLOR_PICKER_INPUTS_ROW_CLASS = "flex min-w-0 items-center gap-small";
@@ -14,6 +15,6 @@ export declare const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex shrink-0 items-cente
14
15
  export declare const COLOR_PICKER_ALPHA_FIELD_CLASS = "w-8 bg-transparent text-right text-small font-mono text-foreground outline-none field-control-mobile-no-zoom";
15
16
  export declare const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted select-none";
16
17
  export declare const COLOR_PICKER_PRESETS_CLASS = "flex flex-wrap gap-xsmall border-t-token pt-small";
17
- export declare const COLOR_PICKER_CONTENT_PANEL_CLASS = "flex flex-col rounded-mid text-foreground";
18
+ export declare const COLOR_PICKER_CONTENT_PANEL_CLASS = "flex flex-col text-foreground";
18
19
  export declare function colorPickerContentPanelClass(size: ColorPickerSize, slotPanel?: string): string;
19
20
  export declare function colorPickerAreaClass(size: ColorPickerSize, slotArea?: string): string;
@@ -1,7 +1,8 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { HSVA } from './colorUtils';
3
3
  import { ColorChannel, ColorSliderOrientation, ColorSliderSize } from './colorSliderTypes';
4
- export declare const COLOR_SLIDER_TRACK_SHAPE_CLASS = "overflow-hidden rounded-full";
4
+ /** Clip channel gradient — same radius token as Slider rail / SelectionIndicator. */
5
+ export declare const COLOR_SLIDER_TRACK_OVERFLOW_CLASS = "overflow-hidden";
5
6
  export declare const COLOR_SLIDER_DISABLED_CLASS = "opacity-48";
6
7
  export declare const COLOR_SLIDER_ROOT_CLASS = "flex flex-col gap-xsmall";
7
8
  export declare const COLOR_SLIDER_LABEL_ROW_CLASS = "flex items-center justify-between";
@@ -18,6 +18,8 @@ export declare function rgbaToHsva({ r, g, b, a }: RGBA): HSVA;
18
18
  export declare function rgbaToHex({ r, g, b, a }: RGBA): string;
19
19
  export declare function hexToRgba(hex: string): RGBA | null;
20
20
  export declare function hsvaToHex(hsva: HSVA): string;
21
+ /** Lowercase `#rrggbb` / `#rrggbbaa` for equality checks (hue 360 vs 0 share RGB). */
22
+ export declare function normalizeHex(hex: string): string;
21
23
  export declare function hexToHsva(hex: string): HSVA | null;
22
24
  /** CSS color string from HSVA */
23
25
  export declare function hsvaToColorString(hsva: HSVA): string;
@@ -1,4 +1,10 @@
1
1
  import { ColorPickerContextValue, UseColorPickerRootStateProps } from './colorPickerTypes';
2
+ /**
3
+ * HSVA is the source of truth (not hex).
4
+ * Hex round-trip collapses hue 360 → 0 (same RGB), which would snap the hue
5
+ * slider thumb back to the start — keep the current HSVA when the external hex
6
+ * still represents the same color.
7
+ */
2
8
  export declare function useColorPickerRootState({ value, defaultValue, onValueChange, size, disabled, }: UseColorPickerRootStateProps): {
3
9
  contextValue: ColorPickerContextValue;
4
10
  };
@@ -5,7 +5,7 @@ export declare function useComboBoxInputState({ onKeyDown, onChange, onBlur, }:
5
5
  open: boolean;
6
6
  disabled: boolean;
7
7
  placeholder: string;
8
- size: import('../utils/componentSize').ComponentSize;
8
+ size: import('../utils/sizeLayout').ComponentSize;
9
9
  status: import('../utils/semanticStatusIcons').SemanticStatus;
10
10
  required: boolean;
11
11
  activeOptionId: string | undefined;