burne-ui 1.6.4 → 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 (115) hide show
  1. package/README.md +50 -8
  2. package/cli/init.js +8 -2
  3. package/dist/components/composite/AlertDialog/AlertDialog.d.ts +1 -1
  4. package/dist/components/composite/AlertDialog/alertDialogA11y.d.ts +1 -0
  5. package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +1 -1
  6. package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +5 -4
  7. package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +14 -1
  8. package/dist/components/composite/AlertDialog/useAlertDialogRootState.d.ts +1 -1
  9. package/dist/components/core/Breadcrumbs/breadcrumbsA11y.d.ts +3 -4
  10. package/dist/components/core/Calendar/calendarA11y.d.ts +5 -0
  11. package/dist/components/core/Calendar/calendarAPI.d.ts +22 -0
  12. package/dist/components/core/Calendar/calendarTypes.d.ts +9 -1
  13. package/dist/components/core/Card/cardStyles.d.ts +3 -3
  14. package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
  15. package/dist/components/core/Checkbox/index.d.ts +1 -1
  16. package/dist/components/core/CloseButton/closeButtonA11y.d.ts +1 -1
  17. package/dist/components/core/CloseButton/closeButtonStyles.d.ts +1 -2
  18. package/dist/components/core/ColorPicker/colorPickerA11y.d.ts +10 -5
  19. package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +3 -1
  20. package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +5 -5
  21. package/dist/components/core/ComboBox/comboBoxA11y.d.ts +4 -1
  22. package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
  23. package/dist/components/core/Dialog/dialogParts.d.ts +1 -1
  24. package/dist/components/core/Dialog/dialogStyles.d.ts +7 -6
  25. package/dist/components/core/Dialog/dialogTypes.d.ts +3 -0
  26. package/dist/components/core/Drawer/drawerA11y.d.ts +4 -2
  27. package/dist/components/core/Drawer/drawerParts.d.ts +2 -2
  28. package/dist/components/core/Drawer/drawerStyles.d.ts +11 -10
  29. package/dist/components/core/Drawer/drawerTypes.d.ts +3 -0
  30. package/dist/components/core/Dropdown/dropdownA11y.d.ts +1 -0
  31. package/dist/components/core/Dropdown/dropdownAnimations.d.ts +3 -1
  32. package/dist/components/core/Dropdown/dropdownStyles.d.ts +3 -3
  33. package/dist/components/core/Dropdown/dropdownTypes.d.ts +8 -0
  34. package/dist/components/core/Input/index.d.ts +1 -1
  35. package/dist/components/core/Input/inputA11y.d.ts +3 -3
  36. package/dist/components/core/Input/inputControlParts.d.ts +1 -1
  37. package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
  38. package/dist/components/core/ListBox/listBoxA11y.d.ts +3 -0
  39. package/dist/components/core/ListBox/listBoxAPI.d.ts +13 -0
  40. package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
  41. package/dist/components/core/ListBox/listBoxStyles.d.ts +5 -5
  42. package/dist/components/core/ListBox/listBoxTypes.d.ts +5 -0
  43. package/dist/components/core/Pagination/paginationA11y.d.ts +3 -4
  44. package/dist/components/core/Popover/popoverA11y.d.ts +8 -0
  45. package/dist/components/core/Popover/popoverStyles.d.ts +2 -2
  46. package/dist/components/core/Popover/popoverTypes.d.ts +1 -1
  47. package/dist/components/core/Radio/Radio.d.ts +1 -1
  48. package/dist/components/core/Radio/index.d.ts +1 -1
  49. package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
  50. package/dist/components/core/SearchInput/searchInputA11y.d.ts +3 -3
  51. package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -1
  52. package/dist/components/core/SearchInput/searchInputTypes.d.ts +2 -0
  53. package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +2 -2
  54. package/dist/components/core/Select/selectA11y.d.ts +4 -1
  55. package/dist/components/core/Select/selectAPI.d.ts +3 -0
  56. package/dist/components/core/Select/selectStyles.d.ts +4 -4
  57. package/dist/components/core/Skeleton/Skeleton.d.ts +3 -3
  58. package/dist/components/core/Skeleton/index.d.ts +5 -1
  59. package/dist/components/core/Skeleton/skeletonA11y.d.ts +5 -0
  60. package/dist/components/core/Skeleton/skeletonParts.d.ts +4 -0
  61. package/dist/components/core/Skeleton/skeletonStyles.d.ts +1 -1
  62. package/dist/components/core/Skeleton/skeletonTypes.d.ts +9 -0
  63. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  64. package/dist/components/core/Slider/useSliderTrackState.d.ts +2 -2
  65. package/dist/components/core/Surface/surfaceStyles.d.ts +1 -1
  66. package/dist/components/core/Surface/surfaceTypes.d.ts +1 -1
  67. package/dist/components/core/Switch/index.d.ts +1 -1
  68. package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
  69. package/dist/components/core/Switch/useSwitchRootState.d.ts +1 -1
  70. package/dist/components/core/Table/tableA11y.d.ts +9 -2
  71. package/dist/components/core/Table/tableAPI.d.ts +5 -0
  72. package/dist/components/core/Table/tableStyles.d.ts +9 -4
  73. package/dist/components/core/Table/tableTypes.d.ts +5 -0
  74. package/dist/components/core/Text/textTypes.d.ts +1 -1
  75. package/dist/components/core/TextArea/textAreaA11y.d.ts +1 -1
  76. package/dist/components/core/TextArea/textAreaStyles.d.ts +1 -1
  77. package/dist/components/core/TextArea/useTextAreaResize.d.ts +2 -1
  78. package/dist/components/core/TimeField/timeFieldA11y.d.ts +7 -5
  79. package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
  80. package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +0 -1
  81. package/dist/components/core/Toast/toastA11y.d.ts +8 -2
  82. package/dist/components/core/Toast/toastStyles.d.ts +1 -1
  83. package/dist/components/core/Toast/toastTypes.d.ts +6 -0
  84. package/dist/components/core/Toast/useToastProviderState.d.ts +2 -1
  85. package/dist/components/core/Toast/useToastRootState.d.ts +0 -1
  86. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +2 -0
  87. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +0 -2
  88. package/dist/components/core/Tooltip/tooltipStyles.d.ts +2 -2
  89. package/dist/components/core/utils/motionConfig.d.ts +42 -6
  90. package/dist/components/core/utils/typeahead.d.ts +20 -0
  91. package/dist/index.cjs +1 -1
  92. package/dist/index.d.ts +4 -4
  93. package/dist/index.js +14132 -12875
  94. package/dist/internal.cjs +1 -1
  95. package/dist/internal.d.ts +3 -1
  96. package/dist/internal.js +75 -68
  97. package/dist/theme/BurneLabelsProvider.d.ts +17 -0
  98. package/dist/theme/BurneUIProvider.d.ts +11 -3
  99. package/dist/theme/burneLabels.d.ts +54 -0
  100. package/dist/theme/index.d.ts +5 -2
  101. package/dist/theme/themeConfig.d.ts +11 -1
  102. package/dist/theme/themeDefaults.d.ts +62 -76
  103. package/dist/theme/themeScript.d.ts +30 -0
  104. package/dist/themeRuntimeContext-DHGARM65.cjs +50 -0
  105. package/dist/{themeRuntimeContext-rM9wHr74.js → themeRuntimeContext-cixzM5Ix.js} +1867 -1767
  106. package/dist/tokens/config.d.ts +42 -12
  107. package/dist/tokens/index.d.ts +5 -2
  108. package/dist/tokens/overlayBackdrop.d.ts +17 -0
  109. package/dist/tokens/shadows.d.ts +21 -0
  110. package/dist/tokens/textScale.d.ts +36 -0
  111. package/dist/tokens/zIndex.d.ts +15 -0
  112. package/dist/ui.css +363 -244
  113. package/package.json +4 -3
  114. package/dist/components/core/Dialog/dialogA11y.d.ts +0 -1
  115. package/dist/themeRuntimeContext-Cn9YgR1F.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
 
@@ -67,6 +97,16 @@ export function AppProviders({ children }: { children: React.ReactNode }) {
67
97
  }
68
98
  ```
69
99
 
100
+ Для русской локали дефолтных aria-строк:
101
+
102
+ ```tsx
103
+ import { BurneUIProvider, BURNE_LABELS_RU } from "burne-ui";
104
+
105
+ <BurneUIProvider config={burneTheme} labels={BURNE_LABELS_RU} defaultTheme="system">
106
+ {children}
107
+ </BurneUIProvider>
108
+ ```
109
+
70
110
  Scaffold (`create-burne-app` / `burne-ui init`) уже кладёт `burne-theme.ts` с **`tokens`** (shared), **`colors.light` / `colors.dark`** и **`motion`**.
71
111
 
72
112
  Проектные CSS-переменные можно описать в том же конфиге. Они применяются Provider и автоматически
@@ -105,7 +145,7 @@ devtools; в production выбранный face нужно подключить
105
145
  [docs/SETUP.md](./docs/SETUP.md).
106
146
 
107
147
 
108
- Только переключение `data-theme`: `ThemeProvider` + `useBurneTheme()`. Подробности — [docs/SETUP.md](./docs/SETUP.md).
148
+ Только переключение `data-theme`: `ThemeProvider` + `useBurneTheme()`. Для SSR без вспышки темы — `ThemeScript` (или `getThemeScript`) в root layout. Подробности — [docs/SETUP.md](./docs/SETUP.md).
109
149
 
110
150
  ### CSS-переопределения
111
151
 
@@ -121,11 +161,11 @@ import "./burne-theme-overrides.css";
121
161
  ```css
122
162
  :root {
123
163
  --color-primary: #6366f1;
124
- --space: 0.5625rem; /* плотнее/просторнее отступы */
125
- --size: 1.0625rem; /* крупнее иконки, индикаторы, кнопки */
126
- --radius: 0.625rem; /* мягче скругления */
164
+ --space: 0.5625rem; /* fixed rem — без fluid; для fluid см. theme config ниже */
165
+ --size: 1.0625rem;
166
+ --radius: 0.625rem;
127
167
  --font-family-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
128
- --text-scale-small: 0.9375rem; /* UI-текст (роль text-base) */
168
+ --text-scale-base: 0.9375rem; /* UI-текст (роль text-base) */
129
169
  }
130
170
 
131
171
  /* Светлая тема: те же ветки, что и в пакете */
@@ -134,6 +174,8 @@ import "./burne-theme-overrides.css";
134
174
  }
135
175
  ```
136
176
 
177
+ Theme config / playground (`tokens.space` и т.п.) через `applyThemeTokens` пишут scaled `clamp` и тени с `calc(… * var(--shadow-size))` — оверрайды не ломают fluid. Ручной fixed rem в CSS — да, отключает. Инлайн ставятся **только** токены ≠ дефолтам кита, поэтому CSS-файл оверрайдов может точечно править остальное.
178
+
137
179
  Переменные наследуются по дереву DOM — при необходимости задайте их на обёртке виджета вместо `html`.
138
180
 
139
181
  Из JS удобно сверять имена с массивом **`designTokenNames`**, а для цветов в `style` есть хелпер **`colorToken`** (оба экспортируются из `burne-ui`):
@@ -146,7 +188,7 @@ const ripple = colorToken("converge-ripple-neutral"); // var(--color-converge-ri
146
188
 
147
189
  ## Tailwind в приложении-потребителе
148
190
 
149
- Компоненты используют классы 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):
150
192
 
151
193
  ```ts
152
194
  // @source в глобальном CSS приложения или content — см. документацию Tailwind v4
package/cli/init.js CHANGED
@@ -213,8 +213,9 @@ function resolveProviderPath(cwd, framework) {
213
213
  /**
214
214
  * @param {Framework} framework
215
215
  * @param {string} importHint
216
+ * @param {ThemeMode} [theme]
216
217
  */
217
- function layoutSnippet(framework, importHint) {
218
+ function layoutSnippet(framework, importHint, theme = "dark") {
218
219
  if (framework === "vite") {
219
220
  return `// src/main.tsx
220
221
  import { BurneProviders } from "${importHint}";
@@ -228,13 +229,18 @@ createRoot(document.getElementById("root")!).render(
228
229
  );
229
230
  `;
230
231
  }
232
+ const themeProp = theme === "dark" ? "" : ` defaultTheme="${theme}"`;
231
233
  return `// app/layout.tsx
234
+ import { ThemeScript } from "burne-ui";
232
235
  import { BurneProviders } from "${importHint}";
233
236
  import "./globals.css";
234
237
 
235
238
  export default function RootLayout({ children }) {
236
239
  return (
237
240
  <html lang="en" suppressHydrationWarning>
241
+ <head>
242
+ <ThemeScript${themeProp} />
243
+ </head>
238
244
  <body className="min-h-[100dvh] bg-background text-foreground antialiased">
239
245
  <BurneProviders>{children}</BurneProviders>
240
246
  </body>
@@ -458,7 +464,7 @@ export async function runInit(argv, cliVersion) {
458
464
  console.log(`Wrote ${relProvider}`);
459
465
  }
460
466
 
461
- const snippet = layoutSnippet(fw, provider.importHint);
467
+ const snippet = layoutSnippet(fw, provider.importHint, theme);
462
468
  console.log(`\n── Wrap your root layout ──\n\n${snippet}`);
463
469
  console.log("Theme: edit burne-theme.ts, or replace via docs site → Copy config.\n");
464
470
  }
@@ -1,7 +1,7 @@
1
1
  import { AlertDialogBody, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogHeadingBlock, AlertDialogIndicator, AlertDialogPanel, AlertDialogTitle, AlertDialogTrigger } from './alertDialogParts';
2
2
  import { AlertDialogProps } from './alertDialogTypes';
3
3
  export type { AlertDialogProps, AlertDialogPanelProps, AlertDialogTriggerProps, AlertDialogSize, AlertDialogBodyProps, AlertDialogCloseProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogIndicatorProps, AlertDialogTitleProps, AlertDialogContentProps, AlertDialogHeadingBlockProps, AlertDialogClassNames, } from './alertDialogTypes';
4
- export declare function AlertDialogRoot({ open, defaultOpen, onOpenChange, children, status, variant, size, classNames, portalContainer, }: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function AlertDialogRoot({ open, defaultOpen, onOpenChange, children, status, variant, size, closeOnEscape, classNames, portalContainer, }: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
5
5
  export declare namespace AlertDialogRoot {
6
6
  var displayName: string;
7
7
  }
@@ -1,6 +1,7 @@
1
1
  export declare const ALERT_DIALOG_ROLE: "alertdialog";
2
2
  export declare const ALERT_DIALOG_TRIGGER_HASPOPUP: "dialog";
3
3
  export declare function alertDialogDescribedBy(hasDescription: boolean, descriptionId: string): string | undefined;
4
+ export declare function alertDialogLabelledBy(hasTitle: boolean, titleId: string): string | undefined;
4
5
  export declare function alertDialogTriggerA11y(open: boolean): {
5
6
  readonly "aria-haspopup": "dialog";
6
7
  readonly "aria-expanded": boolean;
@@ -43,4 +43,4 @@ export declare function AlertDialogPanel({ className, themeAnchor, portalContain
43
43
  export declare namespace AlertDialogPanel {
44
44
  var displayName: string;
45
45
  }
46
- export declare function AlertDialogPortalShell({ children, className, variant, sizePreset, portalTheme, lightUi, titleId, descriptionId, hasDescription, dialogRef, overlayRef, panelRef, bindGlossPanelRef, contained, }: AlertDialogPortalShellProps): import("react/jsx-runtime").JSX.Element;
46
+ export declare function AlertDialogPortalShell({ children, className, variant, sizePreset, portalTheme, lightUi, titleId, descriptionId, hasTitle, hasDescription, closeOnEscape, onOpenChange, dialogRef, overlayRef, panelRef, bindGlossPanelRef, contained, }: AlertDialogPortalShellProps): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,19 @@
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";
8
- export declare const ALERT_DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-[100]";
9
- export declare const ALERT_DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-[100]";
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
+ export declare const ALERT_DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
9
+ export declare const ALERT_DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-dialog";
10
10
  export declare function alertDialogNativeClass(contained: boolean): string;
11
11
  export declare const ALERT_DIALOG_PANEL_SHELL_CLASS = "relative z-10 w-full outline-none";
12
12
  export declare const ALERT_DIALOG_PANEL_SURFACE_CLASS = "flex min-h-0 flex-col overflow-hidden rounded-mid text-left";
13
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";
14
14
  export declare const ALERT_DIALOG_GLOSS_CONTENT_CLASS = "gloss-content";
15
15
  export declare const ALERT_DIALOG_CLOSE_CLASS = "shrink-0";
16
+ export declare const ALERT_DIALOG_TRIGGER_BASE_CLASS = "outline-none focus-ring";
16
17
  export declare const ALERT_DIALOG_INDICATOR_CLASS = "shrink-0 [&_svg]:block";
17
18
  export declare const ALERT_DIALOG_HEADER_CLASS = "shrink-0";
18
19
  export declare const ALERT_DIALOG_HEADING_BLOCK_CLASS = "contents";
@@ -44,6 +44,12 @@ export type AlertDialogProps = {
44
44
  status?: AlertStatus;
45
45
  variant?: AlertVariant;
46
46
  size?: AlertDialogSize;
47
+ /**
48
+ * Whether Escape dismisses the dialog (APG: least destructive / Cancel).
49
+ * Set `false` to keep Escape blocked (opt-in hard confirmations).
50
+ * @default true
51
+ */
52
+ closeOnEscape?: boolean;
47
53
  /** DOM node for the portal. Default: `document.body`. */
48
54
  portalContainer?: HTMLElement | null;
49
55
  classNames?: AlertDialogClassNames;
@@ -73,9 +79,13 @@ export type AlertDialogContextValue = {
73
79
  open: boolean;
74
80
  titleId: string;
75
81
  descriptionId: string;
82
+ hasTitle: boolean;
83
+ setHasTitle: (v: boolean) => void;
76
84
  hasDescription: boolean;
77
85
  setHasDescription: (v: boolean) => void;
78
86
  onOpenChange: (open: boolean) => void;
87
+ /** Escape dismisses when true (default). */
88
+ closeOnEscape: boolean;
79
89
  variant: AlertVariant;
80
90
  status: AlertStatus;
81
91
  size: AlertDialogSize;
@@ -103,7 +113,7 @@ export type AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;
103
113
  export type AlertDialogCloseProps = CloseButtonProps;
104
114
  export type AlertDialogContentProps = HTMLAttributes<HTMLDivElement>;
105
115
  export type AlertDialogHeadingBlockProps = HTMLAttributes<HTMLDivElement>;
106
- export type UseAlertDialogRootStateProps = Pick<AlertDialogProps, "open" | "defaultOpen" | "onOpenChange" | "status" | "variant" | "size" | "portalContainer">;
116
+ export type UseAlertDialogRootStateProps = Pick<AlertDialogProps, "open" | "defaultOpen" | "onOpenChange" | "status" | "variant" | "size" | "closeOnEscape" | "portalContainer">;
107
117
  export type UseAlertDialogModalMotionProps = {
108
118
  open: boolean;
109
119
  variant: AlertVariant;
@@ -119,7 +129,10 @@ export type AlertDialogPortalShellProps = {
119
129
  lightUi: boolean;
120
130
  titleId: string;
121
131
  descriptionId: string;
132
+ hasTitle: boolean;
122
133
  hasDescription: boolean;
134
+ closeOnEscape: boolean;
135
+ onOpenChange: (open: boolean) => void;
123
136
  dialogRef: React.RefObject<HTMLDialogElement | null>;
124
137
  overlayRef: React.RefObject<HTMLDivElement | null>;
125
138
  panelRef: React.RefObject<HTMLDivElement | null>;
@@ -1,4 +1,4 @@
1
1
  import { AlertDialogContextValue, UseAlertDialogRootStateProps } from './alertDialogTypes';
2
- export declare function useAlertDialogRootState({ open: openProp, defaultOpen, onOpenChange, status, variant, size, portalContainer, }: UseAlertDialogRootStateProps): {
2
+ export declare function useAlertDialogRootState({ open: openProp, defaultOpen, onOpenChange, status, variant, size, closeOnEscape, portalContainer, }: UseAlertDialogRootStateProps): {
3
3
  contextValue: AlertDialogContextValue;
4
4
  };
@@ -1,4 +1,3 @@
1
- export declare const DEFAULT_BREADCRUMBS_ARIA_LABEL = "Breadcrumbs";
2
- export declare function resolveBreadcrumbsAriaLabel(ariaLabel?: string): string;
3
- export declare function ellipsisTriggerAriaLabel(count: number): string;
4
- export declare const BREADCRUMBS_ELLIPSIS_POPOVER_ARIA_LABEL = "Hidden sections";
1
+ export declare function resolveBreadcrumbsAriaLabel(ariaLabel?: string, breadcrumbsLabel?: string): string;
2
+ export declare function ellipsisTriggerAriaLabel(count: number, template?: string): string;
3
+ export declare function breadcrumbsEllipsisPopoverAriaLabel(label?: string): string;
@@ -2,3 +2,8 @@ import { CalendarLocale } from './calendarTypes';
2
2
  export declare function calendarNavBackLabel(): string;
3
3
  export declare function calendarNavForwardLabel(): string;
4
4
  export declare function calendarDayAriaLabel(day: number, month: number, year: number, locale: CalendarLocale): string;
5
+ export declare function calendarDaysGridLabel(month: number, year: number, locale: CalendarLocale): string;
6
+ export declare function calendarMonthsGridLabel(year: number): string;
7
+ export declare function calendarYearsGridLabel(decadeStart: number): string;
8
+ /** Stable key for day-cell focus targeting (`data-calendar-focus-day`). */
9
+ export declare function calendarFocusDayKey(date: Date): string;
@@ -24,3 +24,25 @@ export declare function buildDayCellModels({ viewDate, selectedDates, rangeStart
24
24
  export declare function buildMonthCellModels(viewDate: Date, selectedDates: Date[], locale: CalendarLocale, today: Date): CalendarMonthCellModel[];
25
25
  export declare function buildYearCellModels(viewDate: Date, selectedDates: Date[], today: Date): CalendarYearCellModel[];
26
26
  export declare function createDefaultCalendarValue(mode: CalendarMode, defaultValue: unknown): unknown;
27
+ export declare function addCalendarDays(date: Date, delta: number): Date;
28
+ export declare function addCalendarMonths(date: Date, delta: number): Date;
29
+ export declare function addCalendarYears(date: Date, delta: number): Date;
30
+ export declare function isCalendarDateDisabled(date: Date, minDate?: Date, maxDate?: Date): boolean;
31
+ export declare function clampCalendarDate(date: Date, minDate?: Date, maxDate?: Date): Date;
32
+ export declare function resolveInitialFocusDate({ mode, resolvedValue, today, minDate, maxDate, }: {
33
+ mode: CalendarMode;
34
+ resolvedValue: unknown;
35
+ today: Date;
36
+ minDate?: Date;
37
+ maxDate?: Date;
38
+ }): Date;
39
+ /**
40
+ * APG Date Picker day-grid keyboard move.
41
+ * Arrow ±day / ±week, Home/End week bounds, PageUp/Down ±month (Shift = ±year).
42
+ */
43
+ export declare function moveCalendarFocusDate(current: Date, key: string, shiftKey: boolean, minDate?: Date, maxDate?: Date): Date | null;
44
+ /** Month picker (3×4): arrows move selection index. */
45
+ export declare function moveCalendarMonthFocusIndex(current: number, key: string): number | null;
46
+ /** Year picker (3×4 of 12 cells): arrows move selection index. */
47
+ export declare function moveCalendarYearFocusIndex(current: number, key: string): number | null;
48
+ export declare function chunkCalendarCells<T>(cells: T[], size: number): T[][];
@@ -104,6 +104,11 @@ export type CalendarContextValue = {
104
104
  setView: (v: CalendarView) => void;
105
105
  viewDate: Date;
106
106
  navigate: (delta: number) => void;
107
+ /** Roving focus date in the day grid (APG Date Picker). */
108
+ focusedDate: Date;
109
+ setFocusedDate: (d: Date) => void;
110
+ /** Move day-grid focus (and visible month) to a date. */
111
+ moveDayFocus: (d: Date) => void;
107
112
  selectedDates: Date[];
108
113
  rangeStart: Date | null;
109
114
  rangeEnd: Date | null;
@@ -154,7 +159,10 @@ export type CalendarInteractiveCellProps = {
154
159
  size: CalendarSize;
155
160
  cellKind?: "day" | "month" | "year";
156
161
  ariaLabel?: string;
157
- ariaSelected?: boolean;
162
+ /** Roving tabindex: only the focused cell is in the tab order. */
163
+ tabIndex?: number;
164
+ /** Focus restore key (`data-calendar-roving`). */
165
+ rovingKey?: string;
158
166
  rounded?: "day" | "picker";
159
167
  isToday?: boolean;
160
168
  isCurrent?: boolean;
@@ -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 +1 @@
1
- export declare function closeButtonAriaLabel(ariaLabel?: string): string;
1
+ export declare function closeButtonAriaLabel(ariaLabel?: string, closeLabel?: string): string;
@@ -1,10 +1,9 @@
1
1
  import { CloseButtonSize, CloseButtonVariant } from './closeButtonTypes';
2
2
  type VariantVisual = {
3
- focusOutline: string;
4
3
  convergeBg: string;
5
4
  };
6
5
  export declare const CLOSE_BUTTON_HAS_HOVER_SHADOW: Set<CloseButtonVariant>;
7
- export declare const CLOSE_BUTTON_ROOT_BASE_CLASS = "relative z-0 flex shrink-0 cursor-pointer items-center justify-center rounded-full outline-none overflow-hidden";
6
+ export declare const CLOSE_BUTTON_ROOT_BASE_CLASS = "relative z-0 flex shrink-0 cursor-pointer items-center justify-center rounded-full outline-none focus-ring overflow-hidden";
8
7
  export declare const CLOSE_BUTTON_DISABLED_CLASS = "cursor-not-allowed opacity-50";
9
8
  export declare const CLOSE_BUTTON_ICON_BASE_CLASS = "relative z-[1] shrink-0 text-current";
10
9
  export declare const CLOSE_BUTTON_RIPPLE_CLIP_CLASS = "rounded-full";
@@ -1,5 +1,10 @@
1
- export declare const COLOR_PICKER_AREA_ARIA_LABEL = "Saturation and brightness";
2
- export declare const COLOR_PICKER_CONTENT_ARIA_LABEL = "Color selection";
3
- export declare const COLOR_PICKER_HEX_INPUT_ARIA_LABEL = "Hex code of the color";
4
- export declare const COLOR_PICKER_ALPHA_INPUT_ARIA_LABEL = "Transparency (%)";
5
- export declare function colorPickerTriggerAriaLabel(hex: string): string;
1
+ import { BurneLabels } from '../../../theme/burneLabels';
2
+ export declare const COLOR_PICKER_AREA_KEYBOARD_STEP = 1;
3
+ export declare const COLOR_PICKER_AREA_KEYBOARD_STEP_LARGE = 10;
4
+ export declare function colorPickerAreaAriaLabel(label?: string): string;
5
+ export declare function colorPickerAreaValueText(saturation: number, brightness: number, template?: string): string;
6
+ export declare function colorPickerContentAriaLabel(label?: string): string;
7
+ export declare function colorPickerHexInputAriaLabel(label?: string): string;
8
+ export declare function colorPickerAlphaInputAriaLabel(label?: string): string;
9
+ export declare function colorPickerTriggerAriaLabel(hex: string, template?: string): string;
10
+ export type ColorPickerLabelSource = Pick<BurneLabels, "colorPickerArea" | "colorPickerAreaValue" | "colorPickerContent" | "colorPickerHex" | "colorPickerAlpha" | "colorPickerSelected">;
@@ -1,5 +1,7 @@
1
1
  import { UseColorPickerAreaDragProps } from './colorPickerTypes';
2
2
  export declare function useColorPickerAreaDrag({ hsva, setHsva }: UseColorPickerAreaDragProps): {
3
3
  areaRef: import('react').RefObject<HTMLDivElement | null>;
4
- handlePointerDown: (e: React.PointerEvent<HTMLDivElement>) => void;
4
+ thumbRef: import('react').RefObject<HTMLButtonElement | null>;
5
+ handlePointerDown: (e: React.PointerEvent<HTMLElement>) => void;
6
+ handleThumbKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
5
7
  };
@@ -3,14 +3,14 @@ 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 = "pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-token-mid";
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";
7
7
  export declare const COLOR_PICKER_SLIDERS_ROW_CLASS = "flex items-center gap-small";
8
8
  export declare const COLOR_PICKER_SLIDERS_STACK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall";
9
- export declare const COLOR_PICKER_INPUTS_ROW_CLASS = "flex items-center gap-small";
10
- export declare const COLOR_PICKER_HEX_INPUT_CLASS = "flex items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall";
9
+ export declare const COLOR_PICKER_INPUTS_ROW_CLASS = "flex min-w-0 items-center gap-small";
10
+ export declare const COLOR_PICKER_HEX_INPUT_CLASS = "flex min-w-0 shrink items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
11
11
  export declare const COLOR_PICKER_HEX_PREFIX_CLASS = "text-small text-muted select-none";
12
- export declare const COLOR_PICKER_HEX_FIELD_CLASS = "min-w-0 flex-1 bg-transparent text-small font-mono uppercase text-foreground outline-none field-control-mobile-no-zoom";
13
- export declare const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall";
12
+ export declare const COLOR_PICKER_HEX_FIELD_CLASS = "w-[8ch] bg-transparent text-small font-mono uppercase text-foreground outline-none field-control-mobile-no-zoom";
13
+ export declare const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex shrink-0 items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
14
14
  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
15
  export declare const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted select-none";
16
16
  export declare const COLOR_PICKER_PRESETS_CLASS = "flex flex-wrap gap-xsmall border-t-token pt-small";
@@ -8,5 +8,8 @@ export declare function comboBoxFieldIds(comboBoxId: string): {
8
8
  listId: string;
9
9
  };
10
10
  export declare function comboBoxActiveOptionId(listId: string, open: boolean, activeValue: string | null): string | undefined;
11
- export declare function comboBoxTriggerAriaLabel(open: boolean): string;
11
+ export declare function comboBoxTriggerAriaLabel(open: boolean, labels?: {
12
+ openList: string;
13
+ closeList: string;
14
+ }): string;
12
15
  export declare function comboBoxResolveHintStatus(status: Exclude<InputStatus, "danger"> | "default" | undefined, fieldStatus: InputStatus): Exclude<InputStatus, "danger"> | "default";
@@ -5,9 +5,9 @@ export declare const COMBOBOX_CHEVRON_ICON: Record<InputSize, string>;
5
5
  export declare const COMBOBOX_INPUT_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-left overflow-hidden motion-reduce:transition-none";
6
6
  export declare const COMBOBOX_INPUT_BASE_CLASS = "min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted field-control-mobile-no-zoom";
7
7
  export declare const COMBOBOX_INPUT_MUTED_CLASS = "text-muted";
8
- export declare const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring";
8
+ export declare const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset";
9
9
  export declare const COMBOBOX_TRIGGER_DISABLED_CLASS = "pointer-events-none";
10
- export declare const COMBOBOX_POPOVER_CLASS = "z-[100]";
10
+ export declare const COMBOBOX_POPOVER_CLASS = "z-popover";
11
11
  export declare const COMBOBOX_POPOVER_BODY_CLASS = "gap-0 p-base";
12
12
  export declare const COMBOBOX_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
13
13
  export declare const COMBOBOX_INPUT_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
@@ -26,4 +26,4 @@ export declare const DialogPanel: import('react').ForwardRefExoticComponent<impo
26
26
  themeAnchor?: HTMLElement | null;
27
27
  portalContainer?: HTMLElement | null;
28
28
  } & import('react').RefAttributes<HTMLDivElement>>;
29
- export declare function DialogPortalShell({ children, className, style, variant, sizePreset, portalTheme, lightUi, titleId, descriptionId, hasDescription, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DialogPortalShellProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function DialogPortalShell({ children, className, style, variant, sizePreset, portalTheme, lightUi, titleId, descriptionId, hasTitle, hasDescription, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DialogPortalShellProps): import("react/jsx-runtime").JSX.Element;
@@ -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";
7
- export declare const DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-[100]";
8
- export declare const DIALOG_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-[100]";
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
+ export declare const DIALOG_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
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";
@@ -18,6 +18,7 @@ export declare const DIALOG_TITLE_CLASS = "min-w-0";
18
18
  export declare const DIALOG_BODY_BASE_CLASS = "min-h-0 flex-1 overflow-y-auto py-small";
19
19
  export declare const DIALOG_FOOTER_CLASS = "flex shrink-0 flex-wrap items-center justify-end gap-base";
20
20
  export declare const DIALOG_CLOSE_CLASS = "shrink-0";
21
+ export declare const DIALOG_TRIGGER_BASE_CLASS = "outline-none focus-ring";
21
22
  export declare const DIALOG_GLOSS_CONTENT_CLASS = "gloss-content";
22
23
  export declare function dialogOverlayEnterStyle(): {
23
24
  opacity: number;
@@ -60,6 +60,8 @@ export type DialogContextValue = {
60
60
  open: boolean;
61
61
  titleId: string;
62
62
  descriptionId: string;
63
+ hasTitle: boolean;
64
+ setHasTitle: (value: boolean) => void;
63
65
  hasDescription: boolean;
64
66
  setHasDescription: (value: boolean) => void;
65
67
  onOpenChange: (open: boolean) => void;
@@ -100,6 +102,7 @@ export type DialogPortalShellProps = {
100
102
  lightUi: boolean;
101
103
  titleId: string;
102
104
  descriptionId: string;
105
+ hasTitle: boolean;
103
106
  hasDescription: boolean;
104
107
  dialogRef: React.RefObject<HTMLDialogElement | null>;
105
108
  overlayRef: React.RefObject<HTMLDivElement | null>;
@@ -1,3 +1,5 @@
1
+ import { BurneLabels } from '../../../theme/burneLabels';
1
2
  import { DrawerPlacement } from './drawerTypes';
2
- export declare const DRAWER_CLOSE_DEFAULT_ARIA_LABEL = "Close";
3
- export declare function drawerHandleAriaLabel(placement: DrawerPlacement): string;
3
+ export declare function drawerHandleAriaLabel(placement: DrawerPlacement, labels?: Pick<BurneLabels, "drawerDragDownToClose" | "drawerDragUpToClose" | "drawerDragLeftToClose" | "drawerDragRightToClose">): string;
4
+ /** Enter / Space on Handle = close (least destructive dismiss). */
5
+ export declare function isDrawerHandleActivateKey(key: string): boolean;
@@ -4,7 +4,7 @@ export declare namespace DrawerBackdropInner {
4
4
  var displayName: string;
5
5
  }
6
6
  export declare const DrawerContent: import('react').ForwardRefExoticComponent<DrawerContentProps & import('react').RefAttributes<HTMLDivElement>>;
7
- export declare function DrawerHandleInner({ className, onPointerDown, ...rest }: DrawerHandleProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function DrawerHandleInner({ className, onPointerDown, onKeyDown, ...rest }: DrawerHandleProps): import("react/jsx-runtime").JSX.Element;
8
8
  export declare namespace DrawerHandleInner {
9
9
  var displayName: string;
10
10
  }
@@ -37,4 +37,4 @@ export declare const DrawerPanel: import('react').ForwardRefExoticComponent<impo
37
37
  themeAnchor?: HTMLElement | null;
38
38
  portalContainer?: HTMLElement | null;
39
39
  } & import('react').RefAttributes<HTMLDivElement>>;
40
- export declare function DrawerPortalShell({ className, style, variant, placement, extent, portalTheme, lightUi, titleId, descriptionId, hasDescription, backdropIsDismissable, panelSegments, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DrawerPortalShellProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function DrawerPortalShell({ className, style, variant, placement, extent, portalTheme, lightUi, titleId, descriptionId, hasTitle, hasDescription, backdropIsDismissable, panelSegments, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DrawerPortalShellProps): import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,28 @@
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
- export declare const DRAWER_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-[100]";
9
- export declare const DRAWER_NATIVE_POSITION_CONTAINED_CLASS = "absolute inset-0 z-[100]";
8
+ export declare const DRAWER_NATIVE_POSITION_FIXED_CLASS = "fixed inset-0 z-dialog";
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";
21
21
  export declare const DRAWER_BODY_BASE_CLASS = "min-h-0 flex-1 overflow-y-auto";
22
22
  export declare const DRAWER_FOOTER_CLASS = "flex shrink-0 flex-wrap items-center justify-end gap-base";
23
23
  export declare const DRAWER_CLOSE_CLASS = "shrink-0";
24
- export declare const DRAWER_HANDLE_BASE_CLASS = "flex touch-none select-none shrink-0 items-center justify-center cursor-grab active:cursor-grabbing box-content";
24
+ export declare const DRAWER_TRIGGER_BASE_CLASS = "outline-none focus-ring";
25
+ export declare const DRAWER_HANDLE_BASE_CLASS = "flex touch-none select-none shrink-0 items-center justify-center cursor-grab active:cursor-grabbing box-content outline-none focus-ring";
25
26
  export declare const DRAWER_HANDLE_GRIP_HORIZONTAL_CLASS = "h-1 w-10";
26
27
  export declare const DRAWER_HANDLE_GRIP_VERTICAL_CLASS = "h-10 w-1";
27
28
  export declare const DRAWER_HANDLE_GRIP_BASE_CLASS = "rounded-full bg-tertiary";
@@ -49,6 +49,8 @@ export type DrawerContextValue = {
49
49
  open: boolean;
50
50
  titleId: string;
51
51
  descriptionId: string;
52
+ hasTitle: boolean;
53
+ setHasTitle: (value: boolean) => void;
52
54
  hasDescription: boolean;
53
55
  setHasDescription: (value: boolean) => void;
54
56
  onOpenChange: (open: boolean) => void;
@@ -108,6 +110,7 @@ export type DrawerPortalShellProps = {
108
110
  lightUi: boolean;
109
111
  titleId: string;
110
112
  descriptionId: string;
113
+ hasTitle: boolean;
111
114
  hasDescription: boolean;
112
115
  backdropIsDismissable: boolean;
113
116
  panelSegments: DrawerPanelSegment[];
@@ -1,3 +1,4 @@
1
1
  export declare const DROPDOWN_MENU_ITEM_SELECTOR = "[role=\"menuitem\"]:not([aria-disabled=\"true\"]), [role=\"menuitemcheckbox\"]:not([disabled]), [role=\"menuitemradio\"]:not([disabled])";
2
2
  export declare function getFocusableDropdownMenuItems(root: HTMLElement): HTMLElement[];
3
3
  export declare function focusDropdownMenuItem(items: HTMLElement[], index: number): void;
4
+ export declare function dropdownMenuItemTypeaheadLabel(el: HTMLElement): string;