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
@@ -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,7 +1,7 @@
1
1
  import { InputError, InputHint, InputLabel, InputRoot } from './Input';
2
2
  export declare const Input: typeof InputRoot & {
3
3
  Label: typeof InputLabel;
4
- Control: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "onPointerDown" | "type"> & {
4
+ Control: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "prefix" | "onPointerDown"> & {
5
5
  variant?: import('./inputTypes').InputVariant;
6
6
  size?: import('./inputTypes').InputSize;
7
7
  groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
@@ -1,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;
@@ -1,4 +1,4 @@
1
- export declare const InputControl: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "onPointerDown" | "type"> & {
1
+ export declare const InputControl: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "prefix" | "onPointerDown"> & {
2
2
  variant?: import('./inputTypes').InputVariant;
3
3
  size?: import('./inputTypes').InputSize;
4
4
  groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
@@ -5,7 +5,7 @@ export declare const KBD_TEXT_VARIANT: Record<KbdSize, TextVariant>;
5
5
  export declare const KBD_LAYOUT: Record<KbdSize, string>;
6
6
  export declare const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
7
7
  export declare const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
8
- export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-tools";
8
+ export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall";
9
9
  export declare function kbdSurfaceClass(variant: KbdVariant): string;
10
10
  export declare function kbdRootClass({ variant, size, motionClass, slotRoot, className, }: {
11
11
  variant: KbdVariant;
@@ -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
  }
@@ -1,13 +1,13 @@
1
1
  export declare const LISTBOX_ROOT_CLASS = "flex min-h-0 flex-col gap-xsmall text-left outline-none";
2
- export declare const LISTBOX_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep rounded-mid p-plus text-foreground";
2
+ export declare const LISTBOX_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep rounded-mid p-mid text-foreground";
3
3
  export declare const LISTBOX_SECTION_CLASS = "flex min-w-0 flex-col gap-xsmall";
4
- export declare const LISTBOX_HEADER_CLASS = "px-plus text-left";
4
+ export declare const LISTBOX_HEADER_CLASS = "px-mid text-left";
5
5
  export declare const LISTBOX_HEADER_TEXT_CLASS = "text-muted";
6
6
  export declare const LISTBOX_SEPARATOR_CLASS = "my-xsmall h-0 w-full shrink-0 border-t-token";
7
- export declare const LISTBOX_EMPTY_CLASS = "px-mid py-small text-center text-muted";
8
- export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid px-plus py-base text-left outline-none";
7
+ export declare const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted";
8
+ export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid px-mid py-base text-left outline-none";
9
9
  export declare const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
10
- 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";
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactNode, RefObject } from 'react';
5
5
  export type PopoverSide = TooltipSide;
6
6
  export type PopoverSize = "small" | "base" | "mid" | "large";
7
7
  export type PopoverVariant = "default" | "gloss";
8
- export type PopoverContentGap = "small" | "base" | "plus" | "mid";
8
+ export type PopoverContentGap = "small" | "base" | "mid" | "large";
9
9
  export type PopoverClassNames = {
10
10
  root?: string;
11
11
  trigger?: string;
@@ -1,5 +1,5 @@
1
1
  export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, } from './radioTypes';
2
- export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
2
+ export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  children?: import('react').ReactNode;
4
4
  label?: import('react').ReactNode;
5
5
  hint?: import('react').ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { RadioError, RadioHint, RadioIndicator, RadioLabel } from './Radio';
2
- export declare const Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
2
+ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  children?: import('react').ReactNode;
4
4
  label?: import('react').ReactNode;
5
5
  hint?: import('react').ReactNode;
@@ -1,5 +1,5 @@
1
1
  export type { SearchInputProps, SearchInputSize, SearchInputVariant, SearchInputClassNames, } from './searchInputTypes';
2
- export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
2
+ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
3
3
  size?: import('./searchInputTypes').SearchInputSize;
4
4
  variant?: import('./searchInputTypes').SearchInputVariant;
5
5
  expandedWidth?: number;
@@ -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";
@@ -17,7 +18,7 @@ export declare const SEARCH_INPUT_CURSOR_POINTER_CLASS = "cursor-pointer";
17
18
  export declare const SEARCH_INPUT_BLOCKED_CLASS = "pointer-events-none opacity-55";
18
19
  export declare const SEARCH_EXPANDED_ROUNDED_CLASS: Record<ComponentSize, string>;
19
20
  export declare function resolveSearchLayout(size: ComponentSize): SearchSizeLayout;
20
- /** Border radius in px for expanded SearchInput — reads `--radius-value-*` from `:root`. */
21
+ /** Border radius in px for expanded SearchInput — reads `--radius-*` from `:root`. */
21
22
  export declare function readSearchExpandedRadiusPx(size: ComponentSize, rootPx?: number): number;
22
23
  export declare function searchInputGroupShellClass(segment: ButtonGroupSegment): string;
23
24
  export declare function searchInputRootClass({ size, variant, expanded, blocked, isGloss, groupSegment, shellHoverMotionClass, standardMotionClass, className, slotRoot, }: {
@@ -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>>;
@@ -8,7 +8,7 @@ export declare const SKELETON_TEXT_ROOT_CLASS = "flex flex-col gap-small";
8
8
  export declare const SKELETON_TEXT_LINE_CLASS = "h-[1em] rounded-small";
9
9
  export declare const SKELETON_TEXT_LINE_LAST_SHORT_CLASS = "w-3/5";
10
10
  export declare const SKELETON_TEXT_LINE_FULL_CLASS = "w-full";
11
- export declare const SKELETON_BLOCK_CLASS = "rounded-mid px-mid py-plus";
11
+ export declare const SKELETON_BLOCK_CLASS = "rounded-mid px-large py-mid";
12
12
  export declare const SKELETON_RADIUS_CLASS: Record<SkeletonRadius, string>;
13
13
  export declare const SKELETON_PULSE_ANIMATION = "skeleton-pulse 1.6s ease-in-out infinite";
14
14
  export declare const SKELETON_WAVE_ANIMATION = "skeleton-wave-slide 2s linear 0.2s infinite";
@@ -18,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;
@@ -18,4 +18,4 @@ export declare const SliderThumbButton: import('react').ForwardRefExoticComponen
18
18
  ariaDescribedBy?: string;
19
19
  onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
20
20
  onKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
21
- } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "className" | "style" | "disabled" | "children" | "onPointerDown" | "role" | "onKeyDown" | "type"> & import('react').RefAttributes<HTMLButtonElement>>;
21
+ } & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "className" | "style" | "disabled" | "children" | "onPointerDown" | "role" | "onKeyDown"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -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;
@@ -13,8 +13,8 @@ export declare const SURFACE_PADDING_CLASS: {
13
13
  readonly none: "";
14
14
  readonly small: "p-small";
15
15
  readonly base: "p-base";
16
- readonly plus: "p-plus";
17
16
  readonly mid: "p-mid";
17
+ readonly large: "p-large";
18
18
  };
19
19
  export declare const SURFACE_RADIUS_CLASS: {
20
20
  readonly base: "rounded-base";
@@ -2,7 +2,7 @@ import { HTMLAttributes } from 'react';
2
2
  import { ShadowSize } from '../../../tokens/shadows';
3
3
  export type SurfaceVariant = "default" | "secondary" | "tertiary" | "gloss";
4
4
  export type SurfaceShadow = ShadowSize;
5
- export type SurfacePadding = "none" | "small" | "base" | "plus" | "mid";
5
+ export type SurfacePadding = "none" | "small" | "base" | "mid" | "large";
6
6
  export type SurfaceRadius = "base" | "mid" | "large";
7
7
  export type SurfaceClassNames = {
8
8
  root?: string;
@@ -11,7 +11,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
11
11
  classNames?: import('./switchTypes').SwitchClassNames;
12
12
  onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
13
13
  } & Partial<import('./switchTypes').SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>> & {
14
- Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
14
+ Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
15
15
  size?: import('./switchGeometry').SwitchSize;
16
16
  thickness?: number | string;
17
17
  iconOff?: import('react').ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "children" | "type"> & {
2
+ export declare const SwitchControl: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
3
3
  size?: import('./switchGeometry').SwitchSize;
4
4
  thickness?: number | string;
5
5
  iconOff?: ReactNode;
@@ -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,20 +2,21 @@ 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-large -my-mid px-large py-mid 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";
15
16
  export declare const TABLE_COLUMN_SORT_CHEVRON_ICON_CLASS = "icon-xsmall";
16
17
  export declare const TABLE_COLUMN_SORT_CHEVRON_ACTIVE_CLASS = "text-primary opacity-100";
17
18
  export declare const TABLE_COLUMN_SORT_CHEVRON_IDLE_CLASS = "opacity-0 group-hover/col:opacity-40 text-muted";
18
- export declare const TABLE_BODY_EMPTY_CELL_CLASS = "px-mid py-mid text-center";
19
+ export declare const TABLE_BODY_EMPTY_CELL_CLASS = "px-large py-large text-center";
19
20
  export declare const TABLE_ROW_BASE_CLASS = "outline-none";
20
21
  export declare const TABLE_ROW_VARIANT_CLASS: Record<TableVariant, string>;
21
22
  export declare const TABLE_ROW_SELECTABLE_CLASS = "cursor-pointer";
@@ -27,7 +28,7 @@ export declare const TABLE_CELL_BASE_CLASS = "text-small";
27
28
  export declare const TABLE_CELL_VARIANT_CLASS: Record<TableVariant, string>;
28
29
  export declare const TABLE_CELL_SELECTED_RING_CLASS = "ring-2 ring-inset ring-primary";
29
30
  export declare const TABLE_CELL_TONED_HOVER_CLASS = "hover:brightness-[0.97] motion-reduce:hover:brightness-100";
30
- export declare const TABLE_FOOTER_CLASS = "flex flex-wrap items-center justify-between gap-base border-t-token px-mid py-plus";
31
+ export declare const TABLE_FOOTER_CLASS = "flex flex-wrap items-center justify-between gap-base border-t-token px-large py-mid";
31
32
  export type TableRowTone = "default" | "outline" | "secondary" | "danger" | "success" | "info" | "warning";
32
33
  export declare const TABLE_ROW_TONE_SURFACE: Record<TableRowTone, string>;
33
34
  export declare function tableRootClass({ variant, slotClass, className, }: {
@@ -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,5 +1,5 @@
1
1
  import { ElementType, HTMLAttributes } from 'react';
2
- export type TextVariant = "accent-header" | "header-1" | "header-2" | "large" | "mid" | "base" | "small" | "tools";
2
+ export type TextVariant = "accent-header" | "header-1" | "header-2" | "large" | "mid" | "base" | "small" | "xsmall";
3
3
  export type TextProps = Omit<HTMLAttributes<HTMLElement>, "className"> & {
4
4
  variant: TextVariant;
5
5
  as?: ElementType;