burne-ui 1.6.5 → 1.6.6

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 (46) hide show
  1. package/README.md +39 -7
  2. package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +2 -2
  3. package/dist/components/core/Card/cardStyles.d.ts +3 -3
  4. package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
  5. package/dist/components/core/Checkbox/index.d.ts +1 -1
  6. package/dist/components/core/Dialog/dialogStyles.d.ts +4 -4
  7. package/dist/components/core/Drawer/drawerStyles.d.ts +7 -7
  8. package/dist/components/core/Input/index.d.ts +1 -1
  9. package/dist/components/core/Input/inputControlParts.d.ts +1 -1
  10. package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
  11. package/dist/components/core/ListBox/listBoxStyles.d.ts +4 -4
  12. package/dist/components/core/Popover/popoverTypes.d.ts +1 -1
  13. package/dist/components/core/Radio/Radio.d.ts +1 -1
  14. package/dist/components/core/Radio/index.d.ts +1 -1
  15. package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
  16. package/dist/components/core/SearchInput/searchInputStyles.d.ts +1 -1
  17. package/dist/components/core/Skeleton/skeletonStyles.d.ts +1 -1
  18. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  19. package/dist/components/core/Surface/surfaceStyles.d.ts +1 -1
  20. package/dist/components/core/Surface/surfaceTypes.d.ts +1 -1
  21. package/dist/components/core/Switch/index.d.ts +1 -1
  22. package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
  23. package/dist/components/core/Table/tableStyles.d.ts +3 -3
  24. package/dist/components/core/Text/textTypes.d.ts +1 -1
  25. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +2 -0
  26. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +0 -2
  27. package/dist/components/core/utils/motionConfig.d.ts +42 -6
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +4300 -4282
  31. package/dist/internal.cjs +1 -1
  32. package/dist/internal.d.ts +3 -1
  33. package/dist/internal.js +75 -68
  34. package/dist/theme/index.d.ts +1 -1
  35. package/dist/theme/themeConfig.d.ts +1 -1
  36. package/dist/theme/themeDefaults.d.ts +56 -76
  37. package/dist/themeRuntimeContext-DHGARM65.cjs +50 -0
  38. package/dist/{themeRuntimeContext-DmzqBFsv.js → themeRuntimeContext-cixzM5Ix.js} +1770 -1695
  39. package/dist/tokens/config.d.ts +40 -12
  40. package/dist/tokens/index.d.ts +4 -2
  41. package/dist/tokens/overlayBackdrop.d.ts +17 -0
  42. package/dist/tokens/shadows.d.ts +21 -0
  43. package/dist/tokens/textScale.d.ts +36 -0
  44. package/dist/ui.css +236 -229
  45. package/package.json +4 -3
  46. 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,10 +1,10 @@
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 gap-large text-left";
5
5
  export declare const ALERT_DIALOG_SIZE: Record<AlertDialogSize, AlertDialogSizePreset>;
6
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";
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-large open:flex [&::backdrop]:bg-transparent";
8
8
  export declare const ALERT_DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
9
9
  export declare const ALERT_DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
10
10
  export declare function alertDialogNativeClass(contained: boolean): string;
@@ -7,12 +7,12 @@ export declare const CARD_ROOT_BASE_CLASS = "flex min-w-0 flex-col overflow-hidd
7
7
  export declare const CARD_PRESSABLE_ROOT_CLASS = "relative cursor-pointer focus-ring";
8
8
  export declare const CARD_BUTTON_SHELL_CLASS = "w-full border-0 p-0 text-left";
9
9
  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";
10
+ export declare const CARD_HEADER_CLASS = "flex shrink-0 flex-col gap-small py-mid px-large text-left";
11
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";
12
+ export declare const CARD_BODY_CLASS = "min-w-0 px-large pb-large";
13
13
  export declare const CARD_TITLE_CLASS = "min-w-0";
14
14
  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";
15
+ export declare const CARD_FOOTER_CLASS = "mt-auto border-t-token py-mid px-large text-muted";
16
16
  export declare function cardGlossPanelClass(className?: string): string;
17
17
  export declare function cardGlossPressableClass(pressable: boolean): string;
18
18
  export declare function cardRootClass(variant: Exclude<CardVariant, "gloss">, pressable: boolean, pressableMotionClass: string, className?: string): string;
@@ -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" | "onPointerDown" | "htmlFor" | "onChange"> & 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,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" | "onPointerDown" | "htmlFor" | "onChange"> & 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;
@@ -1,14 +1,14 @@
1
1
  import { ButtonSize } from '../Button/buttonTypes';
2
2
  import { DialogSize, DialogSizePreset, DialogVariant } from './dialogTypes';
3
- export declare const DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-mid text-left";
3
+ export declare const DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-large text-left";
4
4
  export declare const DIALOG_SIZE: Record<DialogSize, DialogSizePreset>;
5
5
  export declare const FOOTER_BUTTON_SIZE: Record<DialogSize, ButtonSize>;
6
- export declare const 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 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";
7
7
  export declare const DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
8
8
  export declare const DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
9
9
  export declare function dialogNativeClass(contained: boolean): string;
10
- export declare const DIALOG_OVERLAY_LIGHT_CLASS = "bg-[color-mix(in_oklab,var(--color-foreground)_14%,transparent)] backdrop-blur-[14px] backdrop-saturate-150 motion-reduce:backdrop-blur-none";
11
- export declare const DIALOG_OVERLAY_DARK_CLASS = "bg-[color-mix(in_oklab,black_58%,transparent)]";
10
+ export declare const DIALOG_OVERLAY_LIGHT_CLASS = "overlay-backdrop";
11
+ export declare const DIALOG_OVERLAY_DARK_CLASS = "overlay-backdrop-scrim";
12
12
  export declare const DIALOG_PANEL_BASE_CLASS = "relative z-10 w-full outline-none";
13
13
  export declare const DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden rounded-mid border-token bg-surface text-left text-foreground shadow-token-large";
14
14
  export declare const DIALOG_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 w-full flex-col rounded-mid text-foreground";
@@ -1,20 +1,20 @@
1
1
  import { DrawerExtent, DrawerPlacement, DrawerVariant } from './drawerTypes';
2
2
  export declare const HANDLE_EDGE_PADDING_CLASS: Record<DrawerPlacement, string>;
3
- export declare const DRAWER_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-mid text-left";
4
- export declare const DRAWER_HEADER_PADDING = "px-mid pt-plus";
5
- export declare const DRAWER_BODY_PADDING = "px-mid py-base";
6
- export declare const DRAWER_FOOTER_PADDING = "px-mid pb-plus";
3
+ export declare const DRAWER_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-large text-left";
4
+ export declare const DRAWER_HEADER_PADDING = "px-large pt-mid";
5
+ export declare const DRAWER_BODY_PADDING = "px-large py-base";
6
+ export declare const DRAWER_FOOTER_PADDING = "px-large pb-mid";
7
7
  export declare const DRAWER_NATIVE_CLASS = "m-0 h-full w-full max-h-none max-w-none border-0 bg-transparent p-0 open:block [&::backdrop]:bg-transparent";
8
8
  export declare const DRAWER_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
9
9
  export declare const DRAWER_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
10
10
  export declare function drawerNativeClass(contained: boolean): string;
11
- export declare const DRAWER_OVERLAY_LIGHT_CLASS = "bg-[color-mix(in_oklab,var(--color-foreground)_14%,transparent)] backdrop-blur-[14px] backdrop-saturate-150 motion-reduce:backdrop-blur-none";
12
- export declare const DRAWER_OVERLAY_DARK_CLASS = "bg-[color-mix(in_oklab,black_55%,transparent)]";
11
+ export declare const DRAWER_OVERLAY_LIGHT_CLASS = "overlay-backdrop";
12
+ export declare const DRAWER_OVERLAY_DARK_CLASS = "overlay-backdrop-scrim";
13
13
  export declare const DRAWER_PANEL_BASE_CLASS = "absolute z-10 flex flex-col outline-none overflow-hidden";
14
14
  export declare const DRAWER_PANEL_SURFACE_CLASS = "border-token bg-surface text-foreground shadow-token-large";
15
15
  export declare const DRAWER_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex min-h-0 flex-1 flex-col text-foreground";
16
16
  export declare const DRAWER_GLOSS_CONTENT_WRAP_CLASS = "gloss-content flex min-h-0 min-w-0 flex-1 flex-col";
17
- export declare const DRAWER_HEADER_CLASS = "flex shrink-0 items-start gap-plus text-left";
17
+ export declare const DRAWER_HEADER_CLASS = "flex shrink-0 items-start gap-mid text-left";
18
18
  export declare const DRAWER_HEADING_BLOCK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall text-left";
19
19
  export declare const DRAWER_TITLE_CLASS = "min-w-0";
20
20
  export declare const DRAWER_DESCRIPTION_CLASS = "text-muted";
@@ -1,7 +1,7 @@
1
1
  import { InputError, InputHint, InputLabel, InputRoot } from './Input';
2
2
  export declare const Input: typeof InputRoot & {
3
3
  Label: typeof InputLabel;
4
- Control: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "onPointerDown" | "type"> & {
4
+ Control: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "prefix" | "onPointerDown"> & {
5
5
  variant?: import('./inputTypes').InputVariant;
6
6
  size?: import('./inputTypes').InputSize;
7
7
  groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
@@ -1,4 +1,4 @@
1
- export declare const InputControl: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "onPointerDown" | "type"> & {
1
+ export declare const InputControl: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "prefix" | "onPointerDown"> & {
2
2
  variant?: import('./inputTypes').InputVariant;
3
3
  size?: import('./inputTypes').InputSize;
4
4
  groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
@@ -5,7 +5,7 @@ export declare const KBD_TEXT_VARIANT: Record<KbdSize, TextVariant>;
5
5
  export declare const KBD_LAYOUT: Record<KbdSize, string>;
6
6
  export declare const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
7
7
  export declare const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
8
- export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-tools";
8
+ export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall";
9
9
  export declare function kbdSurfaceClass(variant: KbdVariant): string;
10
10
  export declare function kbdRootClass({ variant, size, motionClass, slotRoot, className, }: {
11
11
  variant: KbdVariant;
@@ -1,11 +1,11 @@
1
1
  export declare const LISTBOX_ROOT_CLASS = "flex min-h-0 flex-col gap-xsmall text-left outline-none";
2
- export declare const LISTBOX_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep rounded-mid p-plus text-foreground";
2
+ export declare const LISTBOX_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep rounded-mid p-mid text-foreground";
3
3
  export declare const LISTBOX_SECTION_CLASS = "flex min-w-0 flex-col gap-xsmall";
4
- export declare const LISTBOX_HEADER_CLASS = "px-plus text-left";
4
+ export declare const LISTBOX_HEADER_CLASS = "px-mid text-left";
5
5
  export declare const LISTBOX_HEADER_TEXT_CLASS = "text-muted";
6
6
  export declare const LISTBOX_SEPARATOR_CLASS = "my-xsmall h-0 w-full shrink-0 border-t-token";
7
- export declare const LISTBOX_EMPTY_CLASS = "px-mid py-small text-center text-muted";
8
- export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid px-plus py-base text-left outline-none";
7
+ export declare const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted";
8
+ export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid px-mid py-base text-left outline-none";
9
9
  export declare const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
10
10
  export declare const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45";
11
11
  export declare const LISTBOX_ITEM_ACTIVE_CLASS = "bg-default-hover";
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactNode, RefObject } from 'react';
5
5
  export type PopoverSide = TooltipSide;
6
6
  export type PopoverSize = "small" | "base" | "mid" | "large";
7
7
  export type PopoverVariant = "default" | "gloss";
8
- export type PopoverContentGap = "small" | "base" | "plus" | "mid";
8
+ export type PopoverContentGap = "small" | "base" | "mid" | "large";
9
9
  export type PopoverClassNames = {
10
10
  root?: string;
11
11
  trigger?: string;
@@ -1,5 +1,5 @@
1
1
  export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, } from './radioTypes';
2
- export declare const RadioRoot: 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 RadioRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & 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;
@@ -1,5 +1,5 @@
1
1
  import { RadioError, RadioHint, RadioIndicator, RadioLabel } from './Radio';
2
- export declare const Radio: 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 Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & 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;
@@ -1,5 +1,5 @@
1
1
  export type { SearchInputProps, SearchInputSize, SearchInputVariant, SearchInputClassNames, } from './searchInputTypes';
2
- export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
2
+ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
3
3
  size?: import('./searchInputTypes').SearchInputSize;
4
4
  variant?: import('./searchInputTypes').SearchInputVariant;
5
5
  expandedWidth?: number;
@@ -18,7 +18,7 @@ export declare const SEARCH_INPUT_CURSOR_POINTER_CLASS = "cursor-pointer";
18
18
  export declare const SEARCH_INPUT_BLOCKED_CLASS = "pointer-events-none opacity-55";
19
19
  export declare const SEARCH_EXPANDED_ROUNDED_CLASS: Record<ComponentSize, string>;
20
20
  export declare function resolveSearchLayout(size: ComponentSize): SearchSizeLayout;
21
- /** Border radius in px for expanded SearchInput — reads `--radius-value-*` from `:root`. */
21
+ /** Border radius in px for expanded SearchInput — reads `--radius-*` from `:root`. */
22
22
  export declare function readSearchExpandedRadiusPx(size: ComponentSize, rootPx?: number): number;
23
23
  export declare function searchInputGroupShellClass(segment: ButtonGroupSegment): string;
24
24
  export declare function searchInputRootClass({ size, variant, expanded, blocked, isGloss, groupSegment, shellHoverMotionClass, standardMotionClass, className, slotRoot, }: {
@@ -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";
@@ -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" | "className" | "style" | "disabled" | "children" | "onPointerDown" | "role" | "onKeyDown"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -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;
@@ -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" | "htmlFor" | "onChange"> & 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;
@@ -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" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  size?: import('./switchGeometry').SwitchSize;
4
4
  thickness?: number | string;
5
5
  iconOff?: ReactNode;
@@ -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 { 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;
@@ -1,4 +1,5 @@
1
1
  import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
2
+ import { TextVariant } from '../Text';
2
3
  import { ToggleButtonSize, ToggleButtonVariant } from './toggleButtonTypes';
3
4
  export declare const TOGGLE_BUTTON_ROOT_BASE_CLASS = "group/toggle relative inline-flex origin-center items-center justify-center overflow-hidden outline-none text-foreground focus-ring";
4
5
  export declare const TOGGLE_BUTTON_GLOSS_CLASS = "gloss-btn";
@@ -11,6 +12,7 @@ export declare const TOGGLE_BUTTON_CONTENT_GROUP_MOTION_CLASS = "origin-center w
11
12
  export declare const TOGGLE_BUTTON_ICON_SLOT_CLASS = "inline-flex shrink-0 items-center justify-center [&_svg]:size-full";
12
13
  export declare const TOGGLE_BUTTON_LABEL_LAYER_CLASS = "inline-flex w-full min-w-0 items-center gap-xsmall";
13
14
  export declare const TOGGLE_BUTTON_TEXT_CLASS = "min-w-0 shrink";
15
+ export declare const TOGGLE_BUTTON_TEXT_VARIANT: Record<ToggleButtonSize, TextVariant>;
14
16
  export declare function toggleButtonLabelClass({ slotClass, className, }: {
15
17
  slotClass?: string;
16
18
  className?: string;
@@ -2,7 +2,6 @@ import { ButtonHTMLAttributes, HTMLAttributes, PointerEventHandler, ReactNode, R
2
2
  import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
3
3
  import { ComponentSize } from '../utils/componentSize';
4
4
  import { IconPosition } from '../utils/iconPosition';
5
- import { TextVariant } from '../Text';
6
5
  export type ToggleButtonSize = ComponentSize;
7
6
  export type ToggleButtonVariant = "default" | "outline" | "ghost" | "gloss";
8
7
  export type ToggleButtonGroupType = "multiple" | "single";
@@ -79,4 +78,3 @@ export type UseToggleButtonAnimationsProps = {
79
78
  onPointerLeave?: PointerEventHandler<HTMLButtonElement>;
80
79
  onPointerDown?: PointerEventHandler<HTMLButtonElement>;
81
80
  };
82
- export declare const TOGGLE_BUTTON_TEXT_VARIANT: Record<ToggleButtonSize, TextVariant>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Centralized animation configuration for Burne UI (GSAP).
2
+ * Centralized animation configuration for Burne UI (GSAP + CSS motion tokens).
3
3
  *
4
4
  * Call `configureMotion()` once before your app renders to override defaults.
5
5
  *
@@ -8,11 +8,17 @@
8
8
  *
9
9
  * configureMotion({
10
10
  * interactiveDuration: 350,
11
+ * surfaceTransitionDuration: 450,
12
+ * toastDismissDuration: 220,
11
13
  * selectionFillDuration: 400,
12
14
  * selectionFillEase: "back.out(1.25)",
13
15
  * switchThumbEase: "back.out(1.6)",
14
16
  * });
15
17
  */
18
+ /** CSS custom properties written by `applyMotionCssTokens` / theme apply. */
19
+ export declare const MOTION_CSS_VAR: {
20
+ readonly surfaceDuration: "--motion-surface-duration";
21
+ };
16
22
  export interface MotionConfig {
17
23
  /**
18
24
  * Duration (ms) for most interactive UI animations:
@@ -52,10 +58,10 @@ export interface MotionConfig {
52
58
  /**
53
59
  * Duration (ms) for selection fill scale animations:
54
60
  * ToggleButton, Calendar cell, Checkbox/Radio/ListBox indicator fill, Switch thumb fill.
55
- * @default 280
61
+ * @default 200
56
62
  */
57
63
  selectionFillDuration: number;
58
- /** Scale applied when a hoverable element lifts. @default 1.015 */
64
+ /** Scale applied when a hoverable element lifts. @default 1.025 */
59
65
  hoverLiftScale: number;
60
66
  /** Stronger lift scale for `Badge.Anchor` children. @default 1.052 */
61
67
  badgeAnchorHoverLiftScale: number;
@@ -64,7 +70,7 @@ export interface MotionConfig {
64
70
  * @default [1, 0.98, 1]
65
71
  */
66
72
  pressSqueezeScale: readonly [number, number, number];
67
- /** Duration (ms) of converge-ripple expansion. @default 540 */
73
+ /** Duration (ms) of converge-ripple expansion. @default 700 */
68
74
  rippleDefaultDuration: number;
69
75
  /** Starting opacity of converge-ripple. @default 0.42 */
70
76
  rippleDefaultOpacityFrom: number;
@@ -82,14 +88,31 @@ export interface MotionConfig {
82
88
  feedbackExpandDuration: number;
83
89
  /**
84
90
  * Duration (ms) for Expandable / Accordion panel height animation.
85
- * @default 500
91
+ * @default 200
86
92
  */
87
93
  expandDuration: number;
88
94
  /**
89
95
  * GSAP easing for opening collapsible panels (Expandable, Accordion).
90
- * @default "power1.inOut"
96
+ * @default "sine.inOut"
91
97
  */
92
98
  expandOpenEase: string;
99
+ /**
100
+ * Duration (ms) for CSS surface / text / shadow / focus-ring transitions
101
+ * (`--motion-surface-duration` → `surface-color-transition`, `animate-shadow`, …).
102
+ * Independent from GSAP `interactiveDuration`.
103
+ * @default 600
104
+ */
105
+ surfaceTransitionDuration: number;
106
+ /**
107
+ * Duration (ms) for Toast dismiss slide + last-scrim fade-out.
108
+ * @default 220
109
+ */
110
+ toastDismissDuration: number;
111
+ /**
112
+ * GSAP easing for Toast dismiss / scrim out.
113
+ * @default "power2.in"
114
+ */
115
+ toastDismissEase: string;
93
116
  /** Whether to enable hover-lift animations globally. @default true */
94
117
  enableHoverLift: boolean;
95
118
  /** Whether to enable press-squeeze animations globally. @default true */
@@ -130,13 +153,21 @@ export interface MotionConfig {
130
153
  /** Bouncing Loading dots animation (`variant="dots"`). @default true */
131
154
  enableLoadingDots: boolean;
132
155
  }
156
+ /** Canonical motion defaults — imported by theme `MOTION_DEFAULTS` (single source). */
157
+ export declare const MOTION_CONFIG_DEFAULTS: MotionConfig;
133
158
  /** Subscribe to `configureMotion()` changes (for live GSAP tween rebuild). */
134
159
  export declare function subscribeMotionConfig(onStoreChange: () => void): () => void;
135
160
  /** Motion config revision counter — for `useSyncExternalStore`. */
136
161
  export declare function getMotionConfigRevision(): number;
162
+ /**
163
+ * Write / clear `--motion-surface-duration` on a root (diff vs kit defaults).
164
+ * Called from `configureMotion` (documentElement) and theme `applyMotionFromState`.
165
+ */
166
+ export declare function applyMotionCssTokens(root: HTMLElement | null | undefined, config?: Pick<MotionConfig, "surfaceTransitionDuration">): void;
137
167
  /**
138
168
  * Override any subset of the global motion config.
139
169
  * Call this once before your app renders.
170
+ * Also syncs CSS motion tokens onto `document.documentElement` (unless overridden by theme root).
140
171
  */
141
172
  export declare function configureMotion(overrides: Partial<MotionConfig>): void;
142
173
  /** Returns the current (possibly customised) motion config. */
@@ -185,6 +216,11 @@ export declare function motionProgressFill(): {
185
216
  readonly duration: number;
186
217
  readonly ease: string;
187
218
  };
219
+ /** Toast dismiss slide + last-scrim fade-out. */
220
+ export declare function motionToastDismiss(): {
221
+ readonly duration: number;
222
+ readonly ease: string;
223
+ };
188
224
  /** Bouncing Loading dots — wave with fixed step duration / 3. */
189
225
  export declare function motionLoadingDots(): {
190
226
  readonly cycleSec: number;