burne-ui 1.6.3 → 1.6.5

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 (92) hide show
  1. package/README.md +11 -1
  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 +3 -2
  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/CloseButton/closeButtonA11y.d.ts +1 -1
  14. package/dist/components/core/CloseButton/closeButtonStyles.d.ts +1 -2
  15. package/dist/components/core/ColorPicker/colorPickerA11y.d.ts +10 -5
  16. package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +3 -1
  17. package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +5 -5
  18. package/dist/components/core/ComboBox/comboBoxA11y.d.ts +4 -1
  19. package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
  20. package/dist/components/core/Dialog/dialogParts.d.ts +1 -1
  21. package/dist/components/core/Dialog/dialogStyles.d.ts +3 -2
  22. package/dist/components/core/Dialog/dialogTypes.d.ts +3 -0
  23. package/dist/components/core/Drawer/drawerA11y.d.ts +4 -2
  24. package/dist/components/core/Drawer/drawerParts.d.ts +2 -2
  25. package/dist/components/core/Drawer/drawerStyles.d.ts +4 -3
  26. package/dist/components/core/Drawer/drawerTypes.d.ts +3 -0
  27. package/dist/components/core/Dropdown/dropdownA11y.d.ts +1 -0
  28. package/dist/components/core/Dropdown/dropdownAnimations.d.ts +3 -1
  29. package/dist/components/core/Dropdown/dropdownStyles.d.ts +3 -3
  30. package/dist/components/core/Dropdown/dropdownTypes.d.ts +8 -0
  31. package/dist/components/core/Input/inputA11y.d.ts +3 -3
  32. package/dist/components/core/ListBox/listBoxA11y.d.ts +3 -0
  33. package/dist/components/core/ListBox/listBoxAPI.d.ts +13 -0
  34. package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
  35. package/dist/components/core/ListBox/listBoxStyles.d.ts +1 -1
  36. package/dist/components/core/ListBox/listBoxTypes.d.ts +5 -0
  37. package/dist/components/core/Pagination/paginationA11y.d.ts +3 -4
  38. package/dist/components/core/Popover/popoverA11y.d.ts +8 -0
  39. package/dist/components/core/Popover/popoverStyles.d.ts +2 -2
  40. package/dist/components/core/SearchInput/searchInputA11y.d.ts +3 -3
  41. package/dist/components/core/SearchInput/searchInputStyles.d.ts +1 -0
  42. package/dist/components/core/SearchInput/searchInputTypes.d.ts +2 -0
  43. package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +2 -2
  44. package/dist/components/core/Select/selectA11y.d.ts +4 -1
  45. package/dist/components/core/Select/selectAPI.d.ts +3 -0
  46. package/dist/components/core/Select/selectStyles.d.ts +4 -4
  47. package/dist/components/core/Skeleton/Skeleton.d.ts +3 -3
  48. package/dist/components/core/Skeleton/index.d.ts +5 -1
  49. package/dist/components/core/Skeleton/skeletonA11y.d.ts +5 -0
  50. package/dist/components/core/Skeleton/skeletonParts.d.ts +4 -0
  51. package/dist/components/core/Skeleton/skeletonTypes.d.ts +9 -0
  52. package/dist/components/core/Slider/useSliderTrackState.d.ts +2 -2
  53. package/dist/components/core/Switch/useSwitchRootState.d.ts +1 -1
  54. package/dist/components/core/Table/tableA11y.d.ts +9 -2
  55. package/dist/components/core/Table/tableAPI.d.ts +5 -0
  56. package/dist/components/core/Table/tableStyles.d.ts +7 -2
  57. package/dist/components/core/Table/tableTypes.d.ts +5 -0
  58. package/dist/components/core/TextArea/textAreaA11y.d.ts +1 -1
  59. package/dist/components/core/TextArea/textAreaStyles.d.ts +1 -1
  60. package/dist/components/core/TextArea/useTextAreaResize.d.ts +2 -1
  61. package/dist/components/core/TimeField/timeFieldA11y.d.ts +7 -5
  62. package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
  63. package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +0 -1
  64. package/dist/components/core/Toast/toastA11y.d.ts +8 -2
  65. package/dist/components/core/Toast/toastStyles.d.ts +1 -1
  66. package/dist/components/core/Toast/toastTypes.d.ts +6 -0
  67. package/dist/components/core/Toast/useToastProviderState.d.ts +2 -1
  68. package/dist/components/core/Toast/useToastRootState.d.ts +0 -1
  69. package/dist/components/core/Tooltip/tooltipStyles.d.ts +2 -2
  70. package/dist/components/core/utils/portalContainer.d.ts +2 -2
  71. package/dist/components/core/utils/typeahead.d.ts +20 -0
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.d.ts +3 -3
  74. package/dist/index.js +13481 -12241
  75. package/dist/internal.cjs +1 -1
  76. package/dist/internal.js +1 -1
  77. package/dist/theme/BurneLabelsProvider.d.ts +17 -0
  78. package/dist/theme/BurneUIProvider.d.ts +11 -3
  79. package/dist/theme/burneLabels.d.ts +54 -0
  80. package/dist/theme/index.d.ts +4 -1
  81. package/dist/theme/themeConfig.d.ts +11 -0
  82. package/dist/theme/themeDefaults.d.ts +6 -0
  83. package/dist/theme/themeScript.d.ts +30 -0
  84. package/dist/themeRuntimeContext-CQapx3IE.cjs +50 -0
  85. package/dist/{themeRuntimeContext-DyytHHaS.js → themeRuntimeContext-DmzqBFsv.js} +762 -727
  86. package/dist/tokens/config.d.ts +2 -0
  87. package/dist/tokens/index.d.ts +2 -1
  88. package/dist/tokens/zIndex.d.ts +15 -0
  89. package/dist/ui.css +131 -19
  90. package/package.json +1 -1
  91. package/dist/components/core/Dialog/dialogA11y.d.ts +0 -1
  92. package/dist/themeRuntimeContext-DpKqCfd0.cjs +0 -50
package/README.md CHANGED
@@ -67,6 +67,16 @@ export function AppProviders({ children }: { children: React.ReactNode }) {
67
67
  }
68
68
  ```
69
69
 
70
+ Для русской локали дефолтных aria-строк:
71
+
72
+ ```tsx
73
+ import { BurneUIProvider, BURNE_LABELS_RU } from "burne-ui";
74
+
75
+ <BurneUIProvider config={burneTheme} labels={BURNE_LABELS_RU} defaultTheme="system">
76
+ {children}
77
+ </BurneUIProvider>
78
+ ```
79
+
70
80
  Scaffold (`create-burne-app` / `burne-ui init`) уже кладёт `burne-theme.ts` с **`tokens`** (shared), **`colors.light` / `colors.dark`** и **`motion`**.
71
81
 
72
82
  Проектные CSS-переменные можно описать в том же конфиге. Они применяются Provider и автоматически
@@ -105,7 +115,7 @@ devtools; в production выбранный face нужно подключить
105
115
  [docs/SETUP.md](./docs/SETUP.md).
106
116
 
107
117
 
108
- Только переключение `data-theme`: `ThemeProvider` + `useBurneTheme()`. Подробности — [docs/SETUP.md](./docs/SETUP.md).
118
+ Только переключение `data-theme`: `ThemeProvider` + `useBurneTheme()`. Для SSR без вспышки темы — `ThemeScript` (или `getThemeScript`) в root layout. Подробности — [docs/SETUP.md](./docs/SETUP.md).
109
119
 
110
120
  ### CSS-переопределения
111
121
 
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;
@@ -5,14 +5,15 @@ export declare const ALERT_DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col
5
5
  export declare const ALERT_DIALOG_SIZE: Record<AlertDialogSize, AlertDialogSizePreset>;
6
6
  export declare const FOOTER_BUTTON_SIZE: Record<AlertDialogSize, ButtonSize>;
7
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]";
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;
@@ -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;
@@ -4,8 +4,8 @@ export declare const DIALOG_CONTENT_CLASS = "flex min-h-0 flex-1 flex-col gap-mi
4
4
  export declare const DIALOG_SIZE: Record<DialogSize, DialogSizePreset>;
5
5
  export declare const FOOTER_BUTTON_SIZE: Record<DialogSize, ButtonSize>;
6
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]";
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
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
11
  export declare const DIALOG_OVERLAY_DARK_CLASS = "bg-[color-mix(in_oklab,black_58%,transparent)]";
@@ -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;
@@ -5,8 +5,8 @@ export declare const DRAWER_HEADER_PADDING = "px-mid pt-plus";
5
5
  export declare const DRAWER_BODY_PADDING = "px-mid py-base";
6
6
  export declare const DRAWER_FOOTER_PADDING = "px-mid pb-plus";
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
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
12
  export declare const DRAWER_OVERLAY_DARK_CLASS = "bg-[color-mix(in_oklab,black_55%,transparent)]";
@@ -21,7 +21,8 @@ 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;
@@ -1,5 +1,7 @@
1
- import { UseDropdownPopoverMenuProps, UseDropdownSubContentPortalProps } from './dropdownTypes';
1
+ import { UseDropdownPopoverMenuProps, UseDropdownSubContentPortalProps, UseDropdownSubmenuKeyboardProps } from './dropdownTypes';
2
2
  export declare function useDropdownPopoverMenu({ open, setOpen, triggerRef, contentRef, }: UseDropdownPopoverMenuProps): void;
3
+ /** Keyboard nav inside an open submenu panel (APG menu). */
4
+ export declare function useDropdownSubmenuKeyboard({ subOpen, portalMounted, panelRef, triggerRef, setOpen, }: UseDropdownSubmenuKeyboardProps): void;
3
5
  export declare function useDropdownSubContentPortal({ subOpen, triggerRef, menuTriggerRef, subPanelRootsRef, popoverVariant, portalContainer, }: UseDropdownSubContentPortalProps): {
4
6
  isGlossPanel: boolean;
5
7
  panelRef: import('react').RefObject<HTMLDivElement | null>;
@@ -1,8 +1,8 @@
1
1
  import { SelectionIndicatorClassNames } from '../SelectionIndicator';
2
2
  import { DropdownClassNames, DropdownItemIndicatorClassNames, DropdownItemStatus } from './dropdownTypes';
3
3
  export declare const DROPDOWN_ROOT_CLASS = "relative inline-flex";
4
- export declare const DROPDOWN_TRIGGER_CLASS = "inline-flex";
5
- export declare const DROPDOWN_POPOVER_CLASS = "z-[100]";
4
+ export declare const DROPDOWN_TRIGGER_CLASS = "inline-flex outline-none focus-ring";
5
+ export declare const DROPDOWN_POPOVER_CLASS = "z-dropdown";
6
6
  export declare const DROPDOWN_POPOVER_BODY_CLASS = "max-h-[min(24rem,70vh)] gap-xsmall overflow-y-auto overflow-x-hidden p-base text-left outline-none";
7
7
  export declare const DROPDOWN_GROUP_CLASS = "flex min-w-0 flex-col gap-xsmall text-left";
8
8
  export declare const DROPDOWN_LABEL_CLASS = "px-base text-left";
@@ -11,7 +11,7 @@ export declare const DROPDOWN_SUB_CLASS = "relative min-w-0";
11
11
  export declare const DROPDOWN_SUB_TRIGGER_CLASS = "flex w-full min-w-0 cursor-pointer items-center gap-base rounded-mid px-base py-small text-left outline-none text-base text-foreground focus-ring";
12
12
  export declare const DROPDOWN_SUB_TRIGGER_LABEL_WRAP_CLASS = "min-w-0 flex-1";
13
13
  export declare const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted icon-base";
14
- export declare const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-[110] outline-none will-change-transform";
14
+ export declare const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-dropdown-sub outline-none will-change-transform";
15
15
  export declare const DROPDOWN_SUB_CONTENT_SURFACE_CLASS = "flex max-h-[min(22rem,65vh)] flex-col overflow-y-auto overflow-x-hidden rounded-mid border-token bg-surface p-base text-left shadow-token-mid";
16
16
  export declare const DROPDOWN_SUB_CONTENT_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex max-h-[min(22rem,65vh)] min-w-0 origin-center flex-col overflow-hidden rounded-mid text-foreground";
17
17
  export declare const DROPDOWN_SUB_CONTENT_GLOSS_CONTENT_CLASS = "gloss-content flex min-h-0 flex-col overflow-y-auto overflow-x-hidden p-base text-left";
@@ -133,3 +133,11 @@ export type UseDropdownSubContentPortalProps = {
133
133
  subPanelRootsRef: React.RefObject<Set<HTMLElement>>;
134
134
  popoverVariant: PopoverVariant;
135
135
  };
136
+ export type UseDropdownSubmenuKeyboardProps = {
137
+ subOpen: boolean;
138
+ /** Panel must be mounted in the portal before focusing items. */
139
+ portalMounted: boolean;
140
+ panelRef: React.RefObject<HTMLDivElement | null>;
141
+ triggerRef: React.RefObject<HTMLDivElement | null>;
142
+ setOpen: (next: boolean) => void;
143
+ };
@@ -1,3 +1,3 @@
1
- export declare const INPUT_PASSWORD_SHOW_ARIA_LABEL = "Show password";
2
- export declare const INPUT_PASSWORD_HIDE_ARIA_LABEL = "Hide password";
3
- export declare const INPUT_FILE_REMOVE_ARIA_LABEL = "Remove file";
1
+ export declare function inputPasswordShowAriaLabel(label?: string): string;
2
+ export declare function inputPasswordHideAriaLabel(label?: string): string;
3
+ export declare function inputFileRemoveAriaLabel(label?: string): string;
@@ -7,3 +7,6 @@ export declare function resolveListBoxAriaLabel({ ariaLabel, ariaLabelledBy, }:
7
7
  "aria-label"?: string;
8
8
  "aria-labelledby"?: string;
9
9
  };
10
+ export declare function listBoxActiveOptionId(listId: string, activeValue: string | null): string | undefined;
11
+ export declare function listBoxEnabledOptionElements(root: HTMLElement): HTMLElement[];
12
+ export declare function listBoxOptionValue(el: HTMLElement): string | null;
@@ -18,3 +18,16 @@ export declare function resolveListBoxItemLayout({ children, label, hint, icon,
18
18
  hasLabel: boolean;
19
19
  showIndicatorSlot: boolean;
20
20
  };
21
+ /** Next/prev enabled option value inside a listbox root (DOM walk). */
22
+ export declare function listBoxBumpActiveValue({ root, activeValue, delta, }: {
23
+ root: HTMLElement;
24
+ activeValue: string | null;
25
+ delta: number;
26
+ }): string | null;
27
+ export declare function listBoxFirstEnabledValue(root: HTMLElement): string | null;
28
+ export declare function listBoxLastEnabledValue(root: HTMLElement): string | null;
29
+ export declare function listBoxPreferredInitialActiveValue(root: HTMLElement): string | null;
30
+ export declare function listBoxTypeaheadLabels(root: HTMLElement): {
31
+ values: string[];
32
+ labels: string[];
33
+ };
@@ -1,5 +1,5 @@
1
1
  import { ListBoxEmptyProps, ListBoxHeaderProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxLabelProps, ListBoxRootShellProps, ListBoxSectionProps, ListBoxSeparatorProps } from './listBoxTypes';
2
- export declare function ListBoxRootShell({ listId, variant, className, ariaLabel, ariaLabelledBy, children, ...rest }: ListBoxRootShellProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ListBoxRootShell({ listId, variant, className, ariaLabel, ariaLabelledBy, children, tabIndex: tabIndexProp, onKeyDown, onFocus, ...rest }: ListBoxRootShellProps): import("react/jsx-runtime").JSX.Element;
3
3
  export declare namespace ListBoxRootShell {
4
4
  var displayName: string;
5
5
  }
@@ -7,7 +7,7 @@ export declare const LISTBOX_SEPARATOR_CLASS = "my-xsmall h-0 w-full shrink-0 bo
7
7
  export declare const LISTBOX_EMPTY_CLASS = "px-mid py-small text-center text-muted";
8
8
  export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid px-plus py-base text-left outline-none";
9
9
  export declare const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
10
- export declare const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45 hover:bg-transparent";
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";
12
12
  export declare function listBoxRootClass({ isGloss, slotClass, className, }: {
13
13
  isGloss: boolean;
@@ -41,6 +41,11 @@ export type ListBoxContextValue = {
41
41
  showIndicator: boolean;
42
42
  indicatorMode: "radio" | "multi";
43
43
  disabled?: boolean;
44
+ /**
45
+ * Own keyboard / tab stop when ListBox is not driven by Select/ComboBox
46
+ * (`activeValue` uncontrolled).
47
+ */
48
+ standaloneKeyboard: boolean;
44
49
  };
45
50
  export type ListBoxProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
46
51
  children?: ReactNode;
@@ -1,11 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const PAGINATION_DEFAULT_ARIA_LABEL = "Pagination";
3
2
  export declare const PAGINATION_ELLIPSIS_ARIA_HIDDEN: true;
4
3
  export declare const PAGINATION_ICON_ARIA_HIDDEN: true;
5
- export declare const PAGINATION_PREVIOUS_DEFAULT_LABEL = "Back";
6
- export declare const PAGINATION_NEXT_DEFAULT_LABEL = "Forward";
7
- export declare function resolvePaginationPageAriaLabel({ ariaLabel, children, pageNumber, }: {
4
+ export declare function resolvePaginationAriaLabel(ariaLabel?: string, paginationLabel?: string): string;
5
+ export declare function resolvePaginationPageAriaLabel({ ariaLabel, children, pageNumber, pageTemplate, }: {
8
6
  ariaLabel?: string;
9
7
  children?: ReactNode;
10
8
  pageNumber: number;
9
+ pageTemplate?: string;
11
10
  }): string | undefined;
@@ -1,3 +1,9 @@
1
+ export declare const POPOVER_TRIGGER_HASPOPUP: "dialog";
2
+ export declare function popoverTriggerA11y(open: boolean, popoverId: string): {
3
+ readonly "aria-haspopup": "dialog";
4
+ readonly "aria-expanded": boolean;
5
+ readonly "aria-controls": string | undefined;
6
+ };
1
7
  export declare function popoverLabelId(popoverId: string): string;
2
8
  export declare function popoverHintId(popoverId: string): string;
3
9
  export declare function resolvePopoverDescribedBy({ contentRole, labelConnected, hintConnected, labelId, hintId, }: {
@@ -12,3 +18,5 @@ export declare function resolvePopoverLabelledBy({ contentRole, labelConnected,
12
18
  labelConnected: boolean;
13
19
  labelId: string;
14
20
  }): string | undefined;
21
+ /** First keyboard-focusable control inside a popover panel. */
22
+ export declare function getFirstFocusableInPopover(root: HTMLElement): HTMLElement | null;
@@ -8,8 +8,8 @@ export declare const POPOVER_MAX_WIDTH_CLASS: Record<PopoverSize, string>;
8
8
  export declare const POPOVER_PADDING_CLASS: Record<PopoverSize, string>;
9
9
  export declare const POPOVER_GAP_CLASS: Record<PopoverContentGap, string>;
10
10
  export declare const POPOVER_DEFAULT_GAP: Record<PopoverSize, PopoverContentGap>;
11
- export declare const POPOVER_TRIGGER_CLASS = "inline-flex shrink-0 border-0 bg-transparent p-0";
12
- export declare const POPOVER_CONTENT_CLASS = "pointer-events-auto z-[10000] w-max min-w-0 overflow-visible text-left outline-none will-change-transform";
11
+ export declare const POPOVER_TRIGGER_CLASS = "inline-flex shrink-0 border-0 bg-transparent p-0 outline-none focus-ring";
12
+ export declare const POPOVER_CONTENT_CLASS = "pointer-events-auto z-popover w-max min-w-0 overflow-visible text-left outline-none will-change-transform";
13
13
  export declare const POPOVER_PANEL_RELATIVE_CLASS = "relative overflow-visible";
14
14
  export declare const POPOVER_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep relative z-[1] flex min-w-0 origin-center flex-col overflow-hidden rounded-mid text-foreground";
15
15
  export declare const POPOVER_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-col";