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
@@ -1,3 +1,3 @@
1
- export declare function searchInputCollapseA11yLabel(ariaLabel?: string): string;
2
- export declare function searchInputControlAriaLabel(ariaLabel?: string, placeholder?: string): string;
3
- export declare const SEARCH_INPUT_CLEAR_A11Y_LABEL = "Clear field";
1
+ export declare function searchInputCollapseA11yLabel(ariaLabel?: string, openSearchLabel?: string): string;
2
+ export declare function searchInputControlAriaLabel(ariaLabel?: string, placeholder?: string, searchLabel?: string): string;
3
+ export declare function searchInputClearA11yLabel(clearLabel?: string): string;
@@ -1,6 +1,7 @@
1
1
  import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
2
2
  import { ComponentSize } from '../utils/componentSize';
3
3
  import { SearchInputSize, SearchInputVariant, SearchSizeLayout } from './searchInputTypes';
4
+ export declare const SEARCH_INPUT_EXPAND_TRIGGER_CLASS = "absolute inset-0 z-[2] m-0 cursor-pointer border-0 bg-transparent p-0 outline-none focus-ring-inset rounded-[inherit]";
4
5
  export declare const SEARCH_INPUT_ICON_WRAP_CLASS = "pointer-events-none absolute inset-y-0 z-[1] flex items-center justify-center text-muted";
5
6
  export declare const SEARCH_INPUT_ICON_CLASS = "shrink-0";
6
7
  export declare const SEARCH_INPUT_CONTROL_BASE_CLASS = "box-border min-h-0 w-full border-0 bg-transparent text-foreground outline-none placeholder:text-muted [&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none disabled:cursor-not-allowed disabled:opacity-100";
@@ -8,6 +8,8 @@ export type SearchInputClassNames = {
8
8
  icon?: string;
9
9
  input?: string;
10
10
  clear?: string;
11
+ /** Collapsed expand control (`role=button` overlay). */
12
+ expandTrigger?: string;
11
13
  };
12
14
  export type SearchSizeLayout = {
13
15
  defaultExpandedW: number;
@@ -31,9 +31,9 @@ export declare function useSearchInputRootState({ size: sizeProp, variant: varia
31
31
  handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
32
32
  handleClearClick: (e: MouseEvent<HTMLButtonElement>) => void;
33
33
  handleRootPointerDown: (_e: PointerEvent<HTMLDivElement>) => void;
34
- handleRootClick: (e: MouseEvent<HTMLDivElement>) => void;
34
+ handleRootClick: (e: MouseEvent<HTMLButtonElement>) => void;
35
35
  handleInputBlur: (e: FocusEvent<HTMLInputElement>) => void;
36
- handleRootKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
36
+ handleRootKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
37
37
  handleInputKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void;
38
38
  bindRootRef: (node: HTMLDivElement | null) => void;
39
39
  bindIconRef: (node: HTMLSpanElement | null) => void;
@@ -7,4 +7,7 @@ export declare function selectFieldIds(selectId: string): {
7
7
  listId: string;
8
8
  };
9
9
  export declare function selectActiveOptionId(listId: string, open: boolean, activeValue: string | null): string | undefined;
10
- export declare function selectTriggerAriaLabel(open: boolean): string;
10
+ export declare function selectTriggerAriaLabel(open: boolean, labels?: {
11
+ openList: string;
12
+ closeList: string;
13
+ }): string;
@@ -10,5 +10,8 @@ export declare function selectBumpActiveValue({ optionValues, activeValue, optio
10
10
  }): string | null;
11
11
  export declare function selectFirstEnabledValue(optionValues: string[], optionsByValue: Map<string, SelectOption>): string | null;
12
12
  export declare function selectLastEnabledValue(optionValues: string[], optionsByValue: Map<string, SelectOption>): string | null;
13
+ /** Haystack for typeahead — string label / value only. */
14
+ export declare function selectOptionTypeaheadLabel(opt: SelectOption | undefined): string;
15
+ export declare function selectTypeaheadLabels(optionValues: string[], optionsByValue: Map<string, SelectOption>): string[];
13
16
  export declare function selectResolveHintStatus(status: Exclude<InputStatus, "danger"> | "default" | undefined, fieldStatus: InputStatus): Exclude<InputStatus, "danger"> | "default";
14
17
  export declare const EMPTY_SELECT_OPTIONS: SelectOption[];
@@ -3,12 +3,12 @@ import { InputSize, InputStatus, InputVariant } from '../Input';
3
3
  export declare const SELECT_VALUE_CONTROL: Record<InputSize, string>;
4
4
  export declare const SELECT_CHEVRON_ICON: Record<InputSize, string>;
5
5
  export declare const SELECT_TRIGGER_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-left overflow-hidden motion-reduce:transition-none";
6
- export declare const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 truncate bg-transparent text-left text-foreground outline-none focus-ring";
6
+ export declare const SELECT_VALUE_BASE_CLASS = "min-w-0 flex-1 truncate bg-transparent text-left text-foreground outline-none";
7
7
  export declare const SELECT_VALUE_MUTED_CLASS = "text-muted";
8
- export declare const SELECT_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 SELECT_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 SELECT_TRIGGER_DISABLED_CLASS = "pointer-events-none";
10
- /** Above Dialog/Drawer (`z-[100]`), aligned with Dropdown submenus. */
11
- export declare const SELECT_POPOVER_CLASS = "z-[110]";
10
+ /** Same band as Popover; above Dialog when sharing a stacking context (not `showModal` top layer). */
11
+ export declare const SELECT_POPOVER_CLASS = "z-popover";
12
12
  export declare const SELECT_POPOVER_BODY_CLASS = "gap-0 p-base";
13
13
  export declare const SELECT_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
14
14
  export declare const SELECT_TRIGGER_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
@@ -1,8 +1,8 @@
1
- import { SkeletonBlock, SkeletonCircle, SkeletonText } from './skeletonParts';
2
- export type { SkeletonProps, SkeletonCircleProps, SkeletonTextProps, SkeletonBlockProps, SkeletonAnimation, SkeletonRadius, SkeletonClassNames, SkeletonCircleClassNames, SkeletonTextClassNames, SkeletonBlockClassNames, } from './skeletonTypes';
1
+ import { SkeletonBlock, SkeletonCircle, SkeletonRegion, SkeletonText } from './skeletonParts';
2
+ export type { SkeletonProps, SkeletonCircleProps, SkeletonTextProps, SkeletonBlockProps, SkeletonRegionProps, SkeletonAnimation, SkeletonRadius, SkeletonClassNames, SkeletonCircleClassNames, SkeletonTextClassNames, SkeletonBlockClassNames, SkeletonRegionClassNames, } from './skeletonTypes';
3
3
  export declare const SkeletonRoot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
4
4
  animation?: import('./skeletonTypes').SkeletonAnimation;
5
5
  radius?: import('./skeletonTypes').SkeletonRadius;
6
6
  classNames?: import('./skeletonTypes').SkeletonClassNames;
7
7
  } & import('react').RefAttributes<HTMLDivElement>>;
8
- export { SkeletonCircle, SkeletonText, SkeletonBlock };
8
+ export { SkeletonCircle, SkeletonText, SkeletonBlock, SkeletonRegion };
@@ -18,5 +18,9 @@ export declare const Skeleton: import('react').ForwardRefExoticComponent<import(
18
18
  animation?: import('./skeletonTypes').SkeletonAnimation;
19
19
  classNames?: import('./skeletonTypes').SkeletonBlockClassNames;
20
20
  } & import('react').RefAttributes<HTMLDivElement>>;
21
+ Region: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
22
+ busy?: boolean;
23
+ classNames?: import('./skeletonTypes').SkeletonRegionClassNames;
24
+ } & import('react').RefAttributes<HTMLDivElement>>;
21
25
  };
22
- export type { SkeletonProps, SkeletonCircleProps, SkeletonTextProps, SkeletonBlockProps, SkeletonAnimation, SkeletonRadius, SkeletonClassNames, SkeletonCircleClassNames, SkeletonTextClassNames, SkeletonBlockClassNames, } from './skeletonTypes';
26
+ export type { SkeletonProps, SkeletonCircleProps, SkeletonTextProps, SkeletonBlockProps, SkeletonRegionProps, SkeletonAnimation, SkeletonRadius, SkeletonClassNames, SkeletonCircleClassNames, SkeletonTextClassNames, SkeletonBlockClassNames, SkeletonRegionClassNames, } from './skeletonTypes';
@@ -2,3 +2,8 @@ export declare function skeletonPresentationProps(): {
2
2
  "aria-hidden": true;
3
3
  role: "presentation";
4
4
  };
5
+ /** Parent loading region — not decorative; announces busy state to AT. */
6
+ export declare function skeletonRegionA11yProps(busy: boolean): {
7
+ "aria-busy": boolean;
8
+ "aria-live": "polite";
9
+ };
@@ -15,3 +15,7 @@ export declare const SkeletonBlock: import('react').ForwardRefExoticComponent<im
15
15
  animation?: import('./skeletonTypes').SkeletonAnimation;
16
16
  classNames?: import('./skeletonTypes').SkeletonBlockClassNames;
17
17
  } & import('react').RefAttributes<HTMLDivElement>>;
18
+ export declare const SkeletonRegion: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
19
+ busy?: boolean;
20
+ classNames?: import('./skeletonTypes').SkeletonRegionClassNames;
21
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -18,6 +18,9 @@ export type SkeletonBlockClassNames = {
18
18
  root?: string;
19
19
  wave?: string;
20
20
  };
21
+ export type SkeletonRegionClassNames = {
22
+ root?: string;
23
+ };
21
24
  export type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
22
25
  animation?: SkeletonAnimation;
23
26
  radius?: SkeletonRadius;
@@ -39,6 +42,12 @@ export type SkeletonBlockProps = HTMLAttributes<HTMLDivElement> & {
39
42
  animation?: SkeletonAnimation;
40
43
  classNames?: SkeletonBlockClassNames;
41
44
  };
45
+ /** Semantic parent for loading placeholders — sets `aria-busy` / `aria-live`. */
46
+ export type SkeletonRegionProps = HTMLAttributes<HTMLDivElement> & {
47
+ /** When true, region is loading (`aria-busy`). Default `true`. */
48
+ busy?: boolean;
49
+ classNames?: SkeletonRegionClassNames;
50
+ };
42
51
  export type SkeletonWaveProps = {
43
52
  className?: string;
44
53
  style?: CSSProperties;
@@ -868,6 +868,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
868
868
  color?: string | undefined | undefined;
869
869
  prefix?: string | undefined | undefined;
870
870
  id?: string | undefined | undefined;
871
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
871
872
  slot?: string | undefined | undefined;
872
873
  title?: string | undefined | undefined;
873
874
  accessKey?: string | undefined | undefined;
@@ -909,7 +910,6 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
909
910
  results?: number | undefined | undefined;
910
911
  security?: string | undefined | undefined;
911
912
  unselectable?: "on" | "off" | undefined | undefined;
912
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
913
913
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
914
914
  popoverTarget?: string | undefined | undefined;
915
915
  inert?: boolean | undefined | undefined;
@@ -1141,6 +1141,7 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1141
1141
  color?: string | undefined | undefined;
1142
1142
  prefix?: string | undefined | undefined;
1143
1143
  id?: string | undefined | undefined;
1144
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1144
1145
  slot?: string | undefined | undefined;
1145
1146
  title?: string | undefined | undefined;
1146
1147
  accessKey?: string | undefined | undefined;
@@ -1182,7 +1183,6 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
1182
1183
  results?: number | undefined | undefined;
1183
1184
  security?: string | undefined | undefined;
1184
1185
  unselectable?: "on" | "off" | undefined | undefined;
1185
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1186
1186
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
1187
1187
  popoverTarget?: string | undefined | undefined;
1188
1188
  inert?: boolean | undefined | undefined;
@@ -31,6 +31,7 @@ export declare function useSwitchRootState({ children, label, hint, error, label
31
31
  prefix?: string | undefined;
32
32
  id?: string | undefined;
33
33
  style?: import('react').CSSProperties | undefined;
34
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
34
35
  form?: string | undefined;
35
36
  slot?: string | undefined;
36
37
  title?: string | undefined;
@@ -74,7 +75,6 @@ export declare function useSwitchRootState({ children, label, hint, error, label
74
75
  results?: number | undefined;
75
76
  security?: string | undefined;
76
77
  unselectable?: "on" | "off" | undefined;
77
- popover?: "" | "auto" | "manual" | "hint" | undefined;
78
78
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
79
79
  popoverTarget?: string | undefined;
80
80
  inert?: boolean | undefined;
@@ -1,3 +1,10 @@
1
- import { SortDirection } from './tableTypes';
1
+ import { SelectionMode, SortDirection } from './tableTypes';
2
2
  export declare function columnAriaSort(allowsSorting: boolean, sortDirection: SortDirection | undefined): "ascending" | "descending" | "none" | undefined;
3
- export declare function rowAriaSelected(selectionMode: "none" | "single" | "multiple", isSelected: boolean): boolean | undefined;
3
+ export declare function rowAriaSelected(selectionMode: SelectionMode, isSelected: boolean): boolean | undefined;
4
+ /** `aria-selected` on `row` is valid only inside `grid` / `treegrid`. */
5
+ export declare function tableContentRole(selectionMode: SelectionMode): "grid" | undefined;
6
+ export declare function tableIsSelectableGrid(selectionMode: SelectionMode): boolean;
7
+ export declare function tableAriaMultiSelectable(selectionMode: SelectionMode): true | undefined;
8
+ export declare function tableRowRole(isGrid: boolean): "row" | undefined;
9
+ export declare function tableColumnHeaderRole(isGrid: boolean, isRowHeader: boolean): "columnheader" | "rowheader" | undefined;
10
+ export declare function tableCellRole(isGrid: boolean): "gridcell" | undefined;
@@ -12,3 +12,8 @@ export declare function toggleSelectionKey({ selectionMode, selectedKeys, key, }
12
12
  }): Selection | null;
13
13
  export declare function resolveColumnSortDirection(columnId: string | undefined, sortDescriptor: SortDescriptor | undefined): SortDescriptor["direction"] | undefined;
14
14
  export declare function resolveNextSortDescriptor(columnId: string, sortDescriptor: SortDescriptor | undefined): SortDescriptor;
15
+ export declare const TABLE_ROW_KEY_ATTR = "data-table-row-key";
16
+ export declare function tableSelectableRows(table: HTMLElement): HTMLElement[];
17
+ export declare function tableSortButtons(from: HTMLElement): HTMLButtonElement[];
18
+ export declare function tableBumpRow(rows: HTMLElement[], current: HTMLElement, delta: number): HTMLElement | null;
19
+ export declare function tableBumpSortButton(buttons: HTMLButtonElement[], current: HTMLButtonElement, delta: number): HTMLButtonElement | null;
@@ -2,13 +2,14 @@ import { TableVariant } from './tableTypes';
2
2
  export declare const TABLE_ROOT_BASE_CLASS = "w-full";
3
3
  export declare const TABLE_ROOT_VARIANT_CLASS: Record<TableVariant, string>;
4
4
  export declare const TABLE_GLOSS_CONTENT_CLASS = "gloss-content w-full min-w-0";
5
- export declare const TABLE_SCROLL_CONTAINER_CLASS = "w-full overflow-x-auto";
5
+ export declare const TABLE_SCROLL_CONTAINER_CLASS = "w-full overflow-x-auto outline-none focus-ring";
6
6
  export declare const TABLE_CONTENT_BASE_CLASS = "w-full";
7
7
  export declare const TABLE_CONTENT_VARIANT_CLASS: Record<TableVariant, string>;
8
8
  export declare const TABLE_HEADER_ROW_VARIANT_CLASS: Record<TableVariant, string>;
9
9
  export declare const TABLE_COLUMN_BASE_CLASS = "group/col";
10
10
  export declare const TABLE_COLUMN_VARIANT_CLASS: Record<TableVariant, string>;
11
- export declare const TABLE_COLUMN_SORTABLE_CLASS = "cursor-pointer select-none hover:text-foreground";
11
+ export declare const TABLE_COLUMN_SORTABLE_CLASS = "select-none";
12
+ export declare const TABLE_COLUMN_SORT_BUTTON_CLASS = "inline-flex w-full min-w-0 items-center gap-xsmall border-0 bg-transparent text-inherit cursor-pointer outline-none focus-ring-inset rounded-small hover:text-foreground -mx-mid -my-plus px-mid py-plus box-border";
12
13
  export declare const TABLE_COLUMN_INNER_CLASS = "inline-flex items-center gap-xsmall";
13
14
  export declare const TABLE_COLUMN_LABEL_CLASS = "min-w-0 text-small text-left font-w-mid";
14
15
  export declare const TABLE_COLUMN_SORT_CHEVRON_BASE_CLASS = "shrink-0 origin-center";
@@ -46,6 +47,10 @@ export declare function tableColumnClass({ variant, allowsSorting, slotClass, cl
46
47
  slotClass?: string;
47
48
  className?: string;
48
49
  }): string;
50
+ export declare function tableColumnSortButtonClass({ slotClass, className, }: {
51
+ slotClass?: string;
52
+ className?: string;
53
+ }): string;
49
54
  export declare function tableColumnLabelClass({ slotClass, className, }: {
50
55
  slotClass?: string;
51
56
  className?: string;
@@ -83,6 +83,11 @@ export type TableContentContextValue = {
83
83
  isRowSelected: (key: string | number) => boolean;
84
84
  sortDescriptor: SortDescriptor | undefined;
85
85
  onSortChange: ((d: SortDescriptor) => void) | undefined;
86
+ /** Roving focus key for selectable grid rows. */
87
+ focusedRowKey: string | number | null;
88
+ setFocusedRowKey: (key: string | number) => void;
89
+ /** First selectable row claims initial tab stop. */
90
+ claimFocusedRowKey: (key: string | number) => void;
86
91
  };
87
92
  export type TableRowContextValue = {
88
93
  tone: TableRowTone;
@@ -1 +1 @@
1
- export declare const TEXTAREA_RESIZE_HANDLE_ARIA_LABEL = "Resize height";
1
+ export declare function textAreaResizeHandleAriaLabel(label?: string): string;
@@ -6,7 +6,7 @@ export declare const TEXTAREA_CONTROL_BASE_CLASS = "box-border block min-h-0 w-f
6
6
  export declare const TEXTAREA_RESIZE_GRIP_LINE_PRIMARY_CLASS = "absolute bottom-[2px] right-0 block h-px w-[9px] origin-bottom-right rotate-[135deg] bg-muted";
7
7
  export declare const TEXTAREA_RESIZE_GRIP_LINE_SECONDARY_CLASS = "absolute bottom-[6px] right-0 block h-px w-[6px] origin-bottom-right rotate-[135deg] bg-muted";
8
8
  export declare const TEXTAREA_RESIZE_GRIP_WRAP_CLASS = "relative block size-3 shrink-0";
9
- export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 right-0 z-[2] m-0 flex touch-none select-none appearance-none border-0 bg-transparent items-end justify-end p-xsmall";
9
+ export declare const TEXTAREA_RESIZE_HANDLE_BASE_CLASS = "absolute bottom-0 right-0 z-[2] m-0 flex touch-none select-none appearance-none border-0 bg-transparent items-end justify-end p-xsmall outline-none focus-ring-inset";
10
10
  export declare const TEXTAREA_RESIZE_HANDLE_DISABLED_CLASS = "cursor-not-allowed opacity-45";
11
11
  export declare const TEXTAREA_RESIZE_HANDLE_ENABLED_CLASS = "cursor-ns-resize";
12
12
  export declare function textareaControlClass(size: TextAreaSize): string;
@@ -1,5 +1,6 @@
1
- import { PointerEvent as ReactPointerEvent, RefObject } from 'react';
1
+ import { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent, RefObject } from 'react';
2
2
  import { ComponentSize } from '../utils/componentSize';
3
3
  export declare function useTextAreaResize(shellRef: RefObject<HTMLElement | null>, enabled: boolean, blocked: boolean, size: ComponentSize): {
4
4
  onResizePointerDown: (e: ReactPointerEvent<HTMLButtonElement>) => void;
5
+ onResizeKeyDown: (e: ReactKeyboardEvent<HTMLButtonElement>) => void;
5
6
  };
@@ -1,20 +1,22 @@
1
1
  import { TimeFieldSegId, TimeFieldStatus } from './timeFieldTypes';
2
- export declare const TIME_FIELD_FALLBACK_ARIA_LABEL = "Time";
3
- export declare const TIME_FIELD_SEG_LABEL: Record<TimeFieldSegId, string>;
4
- export declare function timeFieldShellAria({ labelConnected, labelId, }: {
2
+ import { BurneLabels } from '../../../theme/burneLabels';
3
+ export declare function timeFieldShellAria({ labelConnected, labelId, timeLabel, }: {
5
4
  labelConnected: boolean;
6
5
  labelId: string;
6
+ timeLabel?: string;
7
7
  }): {
8
- readonly "aria-label": "Time" | undefined;
8
+ readonly "aria-label": string | undefined;
9
9
  readonly "aria-labelledby": string | undefined;
10
10
  };
11
- export declare function timeFieldSegSpinbuttonA11y({ seg, value, required, isDanger, isFirstSegment, disabled, }: {
11
+ export declare function timeFieldSegLabel(seg: TimeFieldSegId, labels?: Pick<BurneLabels, "timeHours" | "timeMinutes" | "timeSeconds">): string;
12
+ export declare function timeFieldSegSpinbuttonA11y({ seg, value, required, isDanger, isFirstSegment, disabled, segLabel, }: {
12
13
  seg: TimeFieldSegId;
13
14
  value: number;
14
15
  required: boolean;
15
16
  isDanger: boolean;
16
17
  isFirstSegment: boolean;
17
18
  disabled: boolean;
19
+ segLabel: string;
18
20
  }): {
19
21
  role: "spinbutton";
20
22
  "aria-label": string;
@@ -13,7 +13,7 @@ export declare function useTimeFieldControlState({ value: valueProp, defaultValu
13
13
  fieldId: string | undefined;
14
14
  controlId: string | undefined;
15
15
  shellAria: {
16
- readonly "aria-label": "Time" | undefined;
16
+ readonly "aria-label": string | undefined;
17
17
  readonly "aria-labelledby": string | undefined;
18
18
  };
19
19
  ariaDescribedBy: string | undefined;
@@ -2,7 +2,6 @@ import { TimeFieldFieldContextValue, UseTimeFieldRootStateProps } from './timeFi
2
2
  export declare function useTimeFieldRootState({ children, label, hint, error, id: idProp, required, status, size, variant, compact, }: UseTimeFieldRootStateProps): {
3
3
  fieldCtx: TimeFieldFieldContextValue;
4
4
  fieldLabelCtx: {
5
- controlId: string;
6
5
  labelId: string;
7
6
  required: boolean;
8
7
  };
@@ -1,4 +1,10 @@
1
+ import { BurneLabels } from '../../../theme/burneLabels';
1
2
  import { ToastLiveRole, ToastPlacement, ToastStatus } from './toastTypes';
2
- export declare const TOAST_CLOSE_ARIA_LABEL = "Close";
3
+ /** Visually hidden, always-mounted live region for toast announcements. */
4
+ export declare const TOAST_LIVE_REGION_CLASS = "sr-only absolute m-0 h-px w-px overflow-hidden whitespace-nowrap border-0 p-0";
3
5
  export declare function resolveToastLiveRole(status: ToastStatus): ToastLiveRole;
4
- export declare function toastViewportAriaLabel(placement: ToastPlacement): string;
6
+ export declare function toastViewportAriaLabel(placement: ToastPlacement, template?: string): string;
7
+ /** Plain-text announcement for the permanent aria-live region. */
8
+ export declare function toastAnnouncementText(title: unknown, description: unknown): string;
9
+ export declare function toastFallbackAriaLabel(title: unknown, description: unknown): string | undefined;
10
+ export type ToastViewportLabelSource = Pick<BurneLabels, "toastNotifications">;
@@ -9,7 +9,7 @@ export declare const TOAST_DESCRIPTION_CLASS = "text-muted";
9
9
  export declare const TOAST_CLOSE_BUTTON_OFFSET_CLASS = "-mx-xsmall";
10
10
  export declare const TOAST_INDICATOR_BASE_CLASS = "inline-flex shrink-0 items-center justify-center";
11
11
  export declare function toastIndicatorClass(status: ToastStatus, iconSvgClass: string, slotClass?: string): string;
12
- export declare const TOAST_VIEWPORT_BASE_CLASS = "fixed z-[300] pointer-events-none";
12
+ export declare const TOAST_VIEWPORT_BASE_CLASS = "fixed z-toast pointer-events-none";
13
13
  export declare const TOAST_STACK_CONTAINER_CLASS = "relative grid";
14
14
  export declare const TOAST_STACK_ITEM_CLASS = "will-change-transform";
15
15
  export declare const TOAST_SCRIM_BASE_CLASS = "pointer-events-none absolute";
@@ -54,6 +54,12 @@ export type ToastEntry = {
54
54
  loading: boolean;
55
55
  classNames?: ToastClassNames;
56
56
  };
57
+ export type ToastLiveAnnouncement = {
58
+ text: string;
59
+ assertive: boolean;
60
+ /** Bumps on each announce so identical messages still fire. */
61
+ nonce: number;
62
+ };
57
63
  export type ToastContextValue = {
58
64
  add: (opts: AddToastOpts) => string;
59
65
  update: (id: string, patch: Partial<Omit<ToastEntry, "id" | "createdAt">>) => void;
@@ -1,4 +1,4 @@
1
- import { AddToastOpts, ToastContextValue, ToastEntry, ToastPlacement } from './toastTypes';
1
+ import { AddToastOpts, ToastContextValue, ToastEntry, ToastLiveAnnouncement, ToastPlacement } from './toastTypes';
2
2
  export declare function useToastProviderState({ defaultPlacement, defaultVariant, defaultSize, classNames: providerClassNames, }: {
3
3
  defaultPlacement?: ToastPlacement;
4
4
  defaultVariant?: "default" | "gloss";
@@ -14,4 +14,5 @@ export declare function useToastProviderState({ defaultPlacement, defaultVariant
14
14
  removeFinal: (id: string) => void;
15
15
  providerClassNames: import('./toastTypes').ToastClassNames | undefined;
16
16
  defaultSize: import('../utils/componentSize').ComponentSize;
17
+ liveAnnouncement: ToastLiveAnnouncement;
17
18
  };
@@ -1,7 +1,6 @@
1
1
  import { ToastItemContextValue, UseToastRootStateProps } from './toastTypes';
2
2
  export declare function useToastRootState({ status, size: sizeProp, title, description, action, loading, onClose, children, }: UseToastRootStateProps): {
3
3
  isCompound: boolean;
4
- liveRole: import('./toastTypes').ToastLiveRole;
5
4
  titleId: string;
6
5
  size: import('../utils/componentSize').ComponentSize;
7
6
  itemCtx: ToastItemContextValue;
@@ -15,12 +15,12 @@ export declare const TOOLTIP_ICON_SLOT_SVG: Record<TooltipSize, string>;
15
15
  export declare const TOOLTIP_ICON_TEXT_CLASS: Record<TooltipVariant, string>;
16
16
  export declare const TOOLTIP_STATUS_ICON_CLASS: Record<SemanticStatus, string>;
17
17
  export declare const TOOLTIP_GRID_GAP: Record<TooltipSize, string>;
18
- export declare const TOOLTIP_TRIGGER_BASE_CLASS = "inline-flex shrink-0";
18
+ export declare const TOOLTIP_TRIGGER_BASE_CLASS = "inline-flex shrink-0 outline-none focus-ring";
19
19
  export declare const TOOLTIP_INDICATOR_BASE_CLASS = "inline-flex shrink-0 [&_svg]:shrink-0";
20
20
  export declare const TOOLTIP_DESCRIPTION_MUTED_CLASS = "text-muted";
21
21
  export declare const TOOLTIP_ARROW_BASE_CLASS = "pointer-events-none absolute z-0 size-2 rotate-45";
22
22
  export declare const TOOLTIP_ARROW_GLOSS_CLASS = "border-0 bg-[var(--color-surface)]";
23
- export declare const TOOLTIP_CONTENT_BASE_CLASS = "pointer-events-none z-[10000] w-max min-w-0 overflow-visible text-left outline-none will-change-transform";
23
+ export declare const TOOLTIP_CONTENT_BASE_CLASS = "pointer-events-none z-tooltip w-max min-w-0 overflow-visible text-left outline-none will-change-transform";
24
24
  export declare const TOOLTIP_CONTENT_INNER_CLASS = "relative overflow-visible";
25
25
  export declare const TOOLTIP_GLOSS_PANEL_BASE_CLASS = "gloss-panel gloss-deep relative z-[1] w-max min-w-0 origin-center overflow-hidden rounded-mid text-left text-foreground";
26
26
  export declare const TOOLTIP_GLOSS_CONTENT_CLASS = "gloss-content";
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Resolve the DOM node for overlay portals (`createPortal`).
3
3
  * Defaults to `document.body` when `container` is omitted.
4
- * Call only after an SSR `typeof document !== "undefined"` guard.
4
+ * Returns `null` during SSR (no `document`) — callers must skip the portal.
5
5
  */
6
- export declare function resolvePortalContainer(container?: HTMLElement | null): HTMLElement;
6
+ export declare function resolvePortalContainer(container?: HTMLElement | null): HTMLElement | null;
7
7
  /**
8
8
  * Custom portal hosts (not `document.body`) need non-modal `<dialog>.show()`
9
9
  * and `position: absolute` — `showModal()` promotes to the browser top layer
@@ -0,0 +1,20 @@
1
+ /** APG menu / listbox typeahead: typed character buffer + prefix match. */
2
+ export declare const TYPEAHEAD_RESET_MS = 500;
3
+ export type TypeaheadBufferState = {
4
+ buffer: string;
5
+ timeoutId: ReturnType<typeof setTimeout> | null;
6
+ };
7
+ export declare function createTypeaheadBufferState(): TypeaheadBufferState;
8
+ export declare function isTypeaheadPrintableKey(key: string, mods: {
9
+ ctrlKey?: boolean;
10
+ altKey?: boolean;
11
+ metaKey?: boolean;
12
+ }): boolean;
13
+ export declare function typeaheadPush(state: TypeaheadBufferState, char: string, resetMs?: number): string;
14
+ /** Same letter repeated → cycle matches for that letter (APG). */
15
+ export declare function typeaheadQuery(buffer: string): string;
16
+ /**
17
+ * Next label (case-insensitive prefix) after `currentIndex`, wrapping.
18
+ * `currentIndex` < 0 means start from the beginning.
19
+ */
20
+ export declare function typeaheadMatchIndex(labels: readonly string[], buffer: string, currentIndex: number): number;