@amberstack/comp-lib 0.0.0-stage → 0.1.0

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 (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -2
  3. package/dist/amberstack.css +2 -0
  4. package/dist/components/Accordion/Accordion.d.ts +18 -0
  5. package/dist/components/Accordion/AccordionContext.d.ts +10 -0
  6. package/dist/components/Accordion/AccordionItem.d.ts +11 -0
  7. package/dist/components/Accordion/index.d.ts +2 -0
  8. package/dist/components/ActivityItem/ActivityItem.d.ts +15 -0
  9. package/dist/components/ActivityItem/index.d.ts +1 -0
  10. package/dist/components/AreaChart/AreaChart.d.ts +4 -0
  11. package/dist/components/AreaChart/index.d.ts +1 -0
  12. package/dist/components/AssetField/AssetField.d.ts +26 -0
  13. package/dist/components/AssetField/index.d.ts +1 -0
  14. package/dist/components/Avatar/Avatar.d.ts +19 -0
  15. package/dist/components/Avatar/AvatarContext.d.ts +3 -0
  16. package/dist/components/Avatar/AvatarGroup.d.ts +12 -0
  17. package/dist/components/Avatar/index.d.ts +2 -0
  18. package/dist/components/Banner/Banner.d.ts +18 -0
  19. package/dist/components/Banner/index.d.ts +1 -0
  20. package/dist/components/BarChart/BarChart.d.ts +25 -0
  21. package/dist/components/BarChart/index.d.ts +1 -0
  22. package/dist/components/BlockHeader/BlockHeader.d.ts +22 -0
  23. package/dist/components/BlockHeader/index.d.ts +1 -0
  24. package/dist/components/Breadcrumb/Breadcrumb.d.ts +9 -0
  25. package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +11 -0
  26. package/dist/components/Breadcrumb/index.d.ts +2 -0
  27. package/dist/components/Button/Button.d.ts +16 -0
  28. package/dist/components/Button/index.d.ts +1 -0
  29. package/dist/components/Calendar/Calendar.d.ts +49 -0
  30. package/dist/components/Calendar/CalendarDay.d.ts +25 -0
  31. package/dist/components/Calendar/CalendarHeader.d.ts +27 -0
  32. package/dist/components/Calendar/DateTriggerInternal.d.ts +30 -0
  33. package/dist/components/Calendar/dateUtils.d.ts +95 -0
  34. package/dist/components/Calendar/index.d.ts +4 -0
  35. package/dist/components/Calendar/useDatePopup.d.ts +22 -0
  36. package/dist/components/Card/Card.d.ts +10 -0
  37. package/dist/components/Card/CardFooter.d.ts +8 -0
  38. package/dist/components/Card/CardHeader.d.ts +14 -0
  39. package/dist/components/Card/index.d.ts +3 -0
  40. package/dist/components/CatalogCard/CatalogCard.d.ts +18 -0
  41. package/dist/components/CatalogCard/index.d.ts +1 -0
  42. package/dist/components/ChartCard/ChartCard.d.ts +30 -0
  43. package/dist/components/ChartCard/index.d.ts +1 -0
  44. package/dist/components/ChartCore/ChartAxes.d.ts +24 -0
  45. package/dist/components/ChartCore/ChartDataTable.d.ts +19 -0
  46. package/dist/components/ChartCore/ChartFrame.d.ts +11 -0
  47. package/dist/components/ChartCore/ChartHoverLayer.d.ts +21 -0
  48. package/dist/components/ChartCore/chartPlayHelpers.d.ts +11 -0
  49. package/dist/components/ChartCore/index.d.ts +10 -0
  50. package/dist/components/ChartCore/paths.d.ts +23 -0
  51. package/dist/components/ChartCore/scales.d.ts +40 -0
  52. package/dist/components/ChartCore/series.d.ts +4 -0
  53. package/dist/components/ChartCore/types.d.ts +38 -0
  54. package/dist/components/ChartCore/useChartHover.d.ts +25 -0
  55. package/dist/components/ChartCore/useChartSize.d.ts +6 -0
  56. package/dist/components/ChartLegend/ChartLegend.d.ts +20 -0
  57. package/dist/components/ChartLegend/ChartLegendItem.d.ts +19 -0
  58. package/dist/components/ChartLegend/index.d.ts +4 -0
  59. package/dist/components/ChartLegend/legendHelpers.d.ts +20 -0
  60. package/dist/components/ChartLegend/useLegendState.d.ts +10 -0
  61. package/dist/components/ChartTooltip/ChartTooltip.d.ts +20 -0
  62. package/dist/components/ChartTooltip/index.d.ts +1 -0
  63. package/dist/components/Checkbox/Checkbox.d.ts +11 -0
  64. package/dist/components/Checkbox/index.d.ts +1 -0
  65. package/dist/components/ChecklistItem/ChecklistItem.d.ts +14 -0
  66. package/dist/components/ChecklistItem/index.d.ts +1 -0
  67. package/dist/components/CommandPalette/CommandPalette.d.ts +32 -0
  68. package/dist/components/CommandPalette/CommandPaletteItem.d.ts +14 -0
  69. package/dist/components/CommandPalette/index.d.ts +2 -0
  70. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +27 -0
  71. package/dist/components/ConfirmDialog/index.d.ts +1 -0
  72. package/dist/components/ContentRow/ContentRow.d.ts +20 -0
  73. package/dist/components/ContentRow/index.d.ts +1 -0
  74. package/dist/components/CredentialRow/CredentialRow.d.ts +18 -0
  75. package/dist/components/CredentialRow/index.d.ts +1 -0
  76. package/dist/components/DataTable/DataTable.d.ts +115 -0
  77. package/dist/components/DataTable/index.d.ts +1 -0
  78. package/dist/components/DataTable/useControllable.d.ts +2 -0
  79. package/dist/components/DateField/DateField.d.ts +4 -0
  80. package/dist/components/DateField/index.d.ts +1 -0
  81. package/dist/components/DatePicker/DatePicker.d.ts +42 -0
  82. package/dist/components/DatePicker/index.d.ts +1 -0
  83. package/dist/components/DateRangePicker/DateRangePicker.d.ts +87 -0
  84. package/dist/components/DateRangePicker/DateRangePresets.d.ts +24 -0
  85. package/dist/components/DateRangePicker/DateRangeTrigger.d.ts +10 -0
  86. package/dist/components/DateRangePicker/index.d.ts +3 -0
  87. package/dist/components/Dialog/Dialog.d.ts +23 -0
  88. package/dist/components/Dialog/DialogBody.d.ts +4 -0
  89. package/dist/components/Dialog/DialogFooter.d.ts +4 -0
  90. package/dist/components/Dialog/DialogHeader.d.ts +15 -0
  91. package/dist/components/Dialog/dialogContext.d.ts +23 -0
  92. package/dist/components/Dialog/index.d.ts +5 -0
  93. package/dist/components/Dialog/useModalBehaviour.d.ts +27 -0
  94. package/dist/components/Divider/Divider.d.ts +10 -0
  95. package/dist/components/Divider/index.d.ts +1 -0
  96. package/dist/components/DonutChart/DonutChart.d.ts +20 -0
  97. package/dist/components/DonutChart/index.d.ts +1 -0
  98. package/dist/components/Drawer/Drawer.d.ts +21 -0
  99. package/dist/components/Drawer/index.d.ts +1 -0
  100. package/dist/components/DropdownMenu/DropdownMenu.d.ts +32 -0
  101. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +13 -0
  102. package/dist/components/DropdownMenu/DropdownMenuContext.d.ts +5 -0
  103. package/dist/components/DropdownMenu/DropdownMenuItem.d.ts +16 -0
  104. package/dist/components/DropdownMenu/DropdownMenuLabel.d.ts +4 -0
  105. package/dist/components/DropdownMenu/DropdownMenuSeparator.d.ts +4 -0
  106. package/dist/components/DropdownMenu/index.d.ts +5 -0
  107. package/dist/components/EmptyState/EmptyState.d.ts +14 -0
  108. package/dist/components/EmptyState/index.d.ts +1 -0
  109. package/dist/components/EnvironmentLabel/EnvironmentLabel.d.ts +10 -0
  110. package/dist/components/EnvironmentLabel/index.d.ts +1 -0
  111. package/dist/components/Field/Field.d.ts +26 -0
  112. package/dist/components/Field/FieldContext.d.ts +17 -0
  113. package/dist/components/Field/index.d.ts +2 -0
  114. package/dist/components/Field/useFieldControl.d.ts +34 -0
  115. package/dist/components/Filters/FilterBar.d.ts +9 -0
  116. package/dist/components/Filters/FilterChip.d.ts +18 -0
  117. package/dist/components/Filters/FilterMenu.d.ts +37 -0
  118. package/dist/components/Filters/index.d.ts +3 -0
  119. package/dist/components/IconButton/IconButton.d.ts +16 -0
  120. package/dist/components/IconButton/index.d.ts +1 -0
  121. package/dist/components/Input/Input.d.ts +14 -0
  122. package/dist/components/Input/LockedTagInternal.d.ts +2 -0
  123. package/dist/components/Input/index.d.ts +1 -0
  124. package/dist/components/KPI/KPI.d.ts +24 -0
  125. package/dist/components/KPI/index.d.ts +1 -0
  126. package/dist/components/KPIGraph/KPIGraph.d.ts +12 -0
  127. package/dist/components/KPIGraph/index.d.ts +1 -0
  128. package/dist/components/Kbd/Kbd.d.ts +4 -0
  129. package/dist/components/Kbd/index.d.ts +1 -0
  130. package/dist/components/Label/Label.d.ts +14 -0
  131. package/dist/components/Label/index.d.ts +1 -0
  132. package/dist/components/LineChart/LineChart.d.ts +4 -0
  133. package/dist/components/LineChart/SeriesChartInternal.d.ts +30 -0
  134. package/dist/components/LineChart/index.d.ts +2 -0
  135. package/dist/components/Link/Link.d.ts +20 -0
  136. package/dist/components/Link/index.d.ts +1 -0
  137. package/dist/components/MediaTile/MediaTile.d.ts +13 -0
  138. package/dist/components/MediaTile/index.d.ts +1 -0
  139. package/dist/components/Menu/Menu.d.ts +7 -0
  140. package/dist/components/Menu/MenuItem.d.ts +20 -0
  141. package/dist/components/Menu/index.d.ts +3 -0
  142. package/dist/components/Menu/usePopup.d.ts +46 -0
  143. package/dist/components/MetricCard/MetricCard.d.ts +26 -0
  144. package/dist/components/MetricCard/index.d.ts +1 -0
  145. package/dist/components/MultiSelect/MultiSelect.d.ts +42 -0
  146. package/dist/components/MultiSelect/index.d.ts +1 -0
  147. package/dist/components/NavGroup/NavGroup.d.ts +17 -0
  148. package/dist/components/NavGroup/index.d.ts +1 -0
  149. package/dist/components/NavItem/NavItem.d.ts +28 -0
  150. package/dist/components/NavItem/index.d.ts +1 -0
  151. package/dist/components/NodeGraph/GraphNode.d.ts +15 -0
  152. package/dist/components/NodeGraph/NodeGraph.d.ts +34 -0
  153. package/dist/components/NodeGraph/index.d.ts +2 -0
  154. package/dist/components/NodeReference/NodeReference.d.ts +12 -0
  155. package/dist/components/NodeReference/index.d.ts +1 -0
  156. package/dist/components/NumberField/NumberField.d.ts +28 -0
  157. package/dist/components/NumberField/index.d.ts +1 -0
  158. package/dist/components/PageHeader/PageHeader.d.ts +20 -0
  159. package/dist/components/PageHeader/index.d.ts +1 -0
  160. package/dist/components/Pagination/Pagination.d.ts +21 -0
  161. package/dist/components/Pagination/index.d.ts +1 -0
  162. package/dist/components/PickerItem/PickerItem.d.ts +14 -0
  163. package/dist/components/PickerItem/index.d.ts +1 -0
  164. package/dist/components/Popover/Popover.d.ts +24 -0
  165. package/dist/components/Popover/index.d.ts +1 -0
  166. package/dist/components/ProgressBar/ProgressBar.d.ts +16 -0
  167. package/dist/components/ProgressBar/index.d.ts +1 -0
  168. package/dist/components/ProposedNote/ProposedNote.d.ts +9 -0
  169. package/dist/components/ProposedNote/index.d.ts +1 -0
  170. package/dist/components/Radio/Radio.d.ts +11 -0
  171. package/dist/components/Radio/RadioGroup.d.ts +22 -0
  172. package/dist/components/Radio/RadioGroupContext.d.ts +11 -0
  173. package/dist/components/Radio/index.d.ts +2 -0
  174. package/dist/components/RangeTabs/RangeTabs.d.ts +21 -0
  175. package/dist/components/RangeTabs/Segment.d.ts +7 -0
  176. package/dist/components/RangeTabs/index.d.ts +2 -0
  177. package/dist/components/ResourceCard/ResourceCard.d.ts +29 -0
  178. package/dist/components/ResourceCard/index.d.ts +1 -0
  179. package/dist/components/RichTextField/RichTextField.d.ts +26 -0
  180. package/dist/components/RichTextField/RichTextTool.d.ts +9 -0
  181. package/dist/components/RichTextField/RichTextToolbar.d.ts +12 -0
  182. package/dist/components/RichTextField/index.d.ts +4 -0
  183. package/dist/components/RichTextField/richTextCommands.d.ts +18 -0
  184. package/dist/components/ScatterPlot/ScatterPlot.d.ts +41 -0
  185. package/dist/components/ScatterPlot/index.d.ts +1 -0
  186. package/dist/components/Search/Search.d.ts +15 -0
  187. package/dist/components/Search/index.d.ts +1 -0
  188. package/dist/components/Select/Select.d.ts +38 -0
  189. package/dist/components/Select/index.d.ts +1 -0
  190. package/dist/components/Select/useListbox.d.ts +38 -0
  191. package/dist/components/SetupStep/SetupStep.d.ts +18 -0
  192. package/dist/components/SetupStep/index.d.ts +1 -0
  193. package/dist/components/Sidebar/Sidebar.d.ts +17 -0
  194. package/dist/components/Sidebar/SidebarBrand.d.ts +11 -0
  195. package/dist/components/Sidebar/SidebarUser.d.ts +13 -0
  196. package/dist/components/Sidebar/index.d.ts +3 -0
  197. package/dist/components/Skeleton/Skeleton.d.ts +12 -0
  198. package/dist/components/Skeleton/index.d.ts +1 -0
  199. package/dist/components/SortableRow/SortableRow.d.ts +24 -0
  200. package/dist/components/SortableRow/index.d.ts +1 -0
  201. package/dist/components/Sparkline/Sparkline.d.ts +18 -0
  202. package/dist/components/Sparkline/index.d.ts +1 -0
  203. package/dist/components/Spinner/Spinner.d.ts +10 -0
  204. package/dist/components/Spinner/index.d.ts +1 -0
  205. package/dist/components/Status/Status.d.ts +8 -0
  206. package/dist/components/Status/index.d.ts +1 -0
  207. package/dist/components/StatusIcon/StatusIcon.d.ts +13 -0
  208. package/dist/components/StatusIcon/index.d.ts +1 -0
  209. package/dist/components/Stepper/Step.d.ts +19 -0
  210. package/dist/components/Stepper/Stepper.d.ts +28 -0
  211. package/dist/components/Stepper/index.d.ts +2 -0
  212. package/dist/components/SwitchField/SwitchField.d.ts +10 -0
  213. package/dist/components/SwitchField/index.d.ts +1 -0
  214. package/dist/components/Table/Table.d.ts +9 -0
  215. package/dist/components/Table/TableCell.d.ts +10 -0
  216. package/dist/components/Table/TableCellActions.d.ts +11 -0
  217. package/dist/components/Table/TableCellCheckbox.d.ts +7 -0
  218. package/dist/components/Table/TableCellNumber.d.ts +11 -0
  219. package/dist/components/Table/TableCellStatus.d.ts +4 -0
  220. package/dist/components/Table/TableCellText.d.ts +7 -0
  221. package/dist/components/Table/TableCellTwoLine.d.ts +9 -0
  222. package/dist/components/Table/TableCellUser.d.ts +11 -0
  223. package/dist/components/Table/TableContext.d.ts +3 -0
  224. package/dist/components/Table/TableFooter.d.ts +9 -0
  225. package/dist/components/Table/TableHeaderCell.d.ts +17 -0
  226. package/dist/components/Table/TableHeaderRow.d.ts +4 -0
  227. package/dist/components/Table/TableRow.d.ts +7 -0
  228. package/dist/components/Table/TableToolbar.d.ts +13 -0
  229. package/dist/components/Table/index.d.ts +14 -0
  230. package/dist/components/Table/storyHelpers.d.ts +12 -0
  231. package/dist/components/Tabs/Tab.d.ts +9 -0
  232. package/dist/components/Tabs/TabList.d.ts +4 -0
  233. package/dist/components/Tabs/TabPanel.d.ts +7 -0
  234. package/dist/components/Tabs/Tabs.d.ts +11 -0
  235. package/dist/components/Tabs/TabsContext.d.ts +12 -0
  236. package/dist/components/Tabs/index.d.ts +4 -0
  237. package/dist/components/Textarea/Textarea.d.ts +9 -0
  238. package/dist/components/Textarea/index.d.ts +1 -0
  239. package/dist/components/Toast/Toast.d.ts +23 -0
  240. package/dist/components/Toast/ToastProvider.d.ts +12 -0
  241. package/dist/components/Toast/ToastStack.d.ts +11 -0
  242. package/dist/components/Toast/index.d.ts +4 -0
  243. package/dist/components/Toast/useToast.d.ts +25 -0
  244. package/dist/components/Toggle/Toggle.d.ts +14 -0
  245. package/dist/components/Toggle/index.d.ts +1 -0
  246. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  247. package/dist/components/Tooltip/index.d.ts +1 -0
  248. package/dist/components/Tooltip/useAnchoredPosition.d.ts +13 -0
  249. package/dist/components/TopBar/ContextSwitcher.d.ts +10 -0
  250. package/dist/components/TopBar/TopBar.d.ts +9 -0
  251. package/dist/components/TopBar/TopBarSeparator.d.ts +4 -0
  252. package/dist/components/TopBar/index.d.ts +3 -0
  253. package/dist/components/UnavailableState/UnavailableState.d.ts +18 -0
  254. package/dist/components/UnavailableState/index.d.ts +1 -0
  255. package/dist/icons/index.d.ts +57 -0
  256. package/dist/index.d.ts +86 -0
  257. package/dist/index.js +6774 -0
  258. package/dist/index.js.map +1 -0
  259. package/dist/lib/cx.d.ts +2 -0
  260. package/package.json +87 -4
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Everything that touches the browser's editing commands, kept in one file so it can be swapped for an
3
+ * editor library later. `document.execCommand` is deprecated but has no native replacement.
4
+ */
5
+ export type RichTextFormat = 'h2' | 'h3' | 'bold' | 'italic' | 'link' | 'bulletList' | 'numberedList' | 'quote';
6
+ /** True for the link addresses the editor accepts. */
7
+ export declare function isSafeUrl(url: string): boolean;
8
+ /** The formats at the current selection. */
9
+ export declare function getActiveFormats(): RichTextFormat[];
10
+ /**
11
+ * Toggles a format at the current selection. The editor must have focus. `url` is required to add a link;
12
+ * unsafe addresses are ignored.
13
+ */
14
+ export declare function applyFormat(format: RichTextFormat, url?: string): void;
15
+ /** Inserts plain text at the current selection, which is how pasted and dropped content arrives. */
16
+ export declare function insertPlainText(text: string): void;
17
+ /** Keeps only the markup the editor can produce. Runs on every value passed in, so a stored value cannot add scripts. */
18
+ export declare function sanitizeHtml(html: string): string;
@@ -0,0 +1,41 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ /** One point of a scatter plot. */
3
+ export interface ScatterPoint {
4
+ /** Position along the x measure. */
5
+ x: number;
6
+ /** Position along the y measure. */
7
+ y: number;
8
+ }
9
+ /** A named group of points. */
10
+ export interface ScatterSeries {
11
+ /** Stable identifier. */
12
+ id: string;
13
+ /** Name shown in the legend and tooltip. */
14
+ name: string;
15
+ /** The points. */
16
+ points: readonly ScatterPoint[];
17
+ }
18
+ export interface ScatterPlotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
19
+ /** One or two series. Any more are left out, because points in more colours stop being readable. */
20
+ series: ScatterSeries[];
21
+ /** Name of the x measure, used in the data table. */
22
+ xLabel?: string;
23
+ /** Name of the y measure, used in the data table. */
24
+ yLabel?: string;
25
+ /** Height of the plot in pixels, including the axis labels. Width fills the container. */
26
+ height?: number;
27
+ /** Accessible name of the chart. Say what it shows. */
28
+ 'aria-label'?: string;
29
+ /** Shown in place of the chart when there is no data. */
30
+ emptyMessage?: ReactNode;
31
+ /** Formats values in the tooltip and the data table. */
32
+ formatValue?: (value: number) => string;
33
+ /** Hidden series ids, when controlled. */
34
+ hiddenSeries?: string[];
35
+ /** Hidden series ids at first, when uncontrolled. */
36
+ defaultHiddenSeries?: string[];
37
+ /** Called with the new hidden series ids. */
38
+ onHiddenSeriesChange?: (hiddenSeries: string[]) => void;
39
+ }
40
+ /** The relationship between two measures. Points have a 2 px surface ring so they stay legible where they overlap. */
41
+ export declare const ScatterPlot: import("react").ForwardRefExoticComponent<ScatterPlotProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './ScatterPlot';
@@ -0,0 +1,15 @@
1
+ import { type InputHTMLAttributes } from 'react';
2
+ export interface SearchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'defaultValue'> {
3
+ /** The query, when controlled. */
4
+ value?: string;
5
+ /** The first query, when uncontrolled. */
6
+ defaultValue?: string;
7
+ /** Keyboard shortcut chip, such as "Ctrl K". It is hidden while there is a value. */
8
+ shortcut?: string;
9
+ /** Called after the clear button empties the box. `onChange` fires first. */
10
+ onClear?: () => void;
11
+ /** Accessible name of the clear button. */
12
+ clearLabel?: string;
13
+ }
14
+ /** Search box with an optional keyboard shortcut and a clear button. Sits at the top of a sidebar or table. */
15
+ export declare const Search: import("react").ForwardRefExoticComponent<SearchProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from './Search';
@@ -0,0 +1,38 @@
1
+ import { type ButtonHTMLAttributes } from 'react';
2
+ import { type IconName } from '../../icons';
3
+ export interface SelectOption {
4
+ /** The value reported by `onChange`. */
5
+ value: string;
6
+ /** The text shown for the option. */
7
+ label: string;
8
+ /** Stops the option being chosen. */
9
+ disabled?: boolean;
10
+ /** Icon before the label. */
11
+ icon?: IconName;
12
+ }
13
+ export interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'children'> {
14
+ /** The options to choose from. */
15
+ options: SelectOption[];
16
+ /** The chosen value, when controlled. */
17
+ value?: string;
18
+ /** The first chosen value, when uncontrolled. */
19
+ defaultValue?: string;
20
+ /** Called with the new value when an option is chosen. */
21
+ onChange?: (value: string) => void;
22
+ /** Text shown when nothing is chosen. */
23
+ placeholder?: string;
24
+ /** Shows the error state and sets `aria-invalid`. */
25
+ invalid?: boolean;
26
+ /** Read-only look with a "Locked" tag. It can be focused but not opened. */
27
+ locked?: boolean;
28
+ /** Marks the control as required. */
29
+ required?: boolean;
30
+ /** Adds a filter box at the top of the popup. */
31
+ searchable?: boolean;
32
+ /** Accessible name and placeholder of the filter box. */
33
+ filterLabel?: string;
34
+ /** Text shown when the filter matches nothing. */
35
+ emptyLabel?: string;
36
+ }
37
+ /** Single select dropdown, following the WAI-ARIA select-only combobox pattern. */
38
+ export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './Select';
@@ -0,0 +1,38 @@
1
+ export interface ListboxItem {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ /** The active row, filter text and type-ahead buffer shared by Select and MultiSelect. */
7
+ export declare function useListbox<T extends ListboxItem>(options: T[]): {
8
+ query: string;
9
+ setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
10
+ activeIndex: number;
11
+ setActiveIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
12
+ filtered: T[];
13
+ typed: import("react").RefObject<{
14
+ text: string;
15
+ time: number;
16
+ }>;
17
+ };
18
+ /** The first enabled index at or after `start`, walking in `step` direction. Returns -1 if there is none. */
19
+ export declare function findEnabled(items: ListboxItem[], start: number, step: 1 | -1): number;
20
+ /** The index a navigation key moves to, or null if the key does not navigate. It does not wrap, as the APG select-only pattern advises. */
21
+ export declare function nextIndexForKey(key: string, items: ListboxItem[], current: number): number | null;
22
+ /** True for a single printable character, without modifiers. */
23
+ export declare function isPrintableKey(event: {
24
+ key: string;
25
+ altKey: boolean;
26
+ ctrlKey: boolean;
27
+ metaKey: boolean;
28
+ }): boolean;
29
+ /**
30
+ * Finds the next match for typed characters. Characters typed quickly build up a prefix, and repeating one
31
+ * character cycles through the options that start with it. Returns -1 if nothing matches.
32
+ */
33
+ export declare function typeAheadIndex(items: ListboxItem[], current: number, char: string, buffer: {
34
+ text: string;
35
+ time: number;
36
+ }, now: number): number;
37
+ /** The id of an option row, or undefined when no row is active. */
38
+ export declare function optionId(listId: string, index: number): string | undefined;
@@ -0,0 +1,18 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export type SetupStepState = 'done' | 'next' | 'todo';
3
+ export interface SetupStepProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4
+ /** `done` is finished, `next` is the step to do now and `todo` is still to come. */
5
+ state?: SetupStepState;
6
+ /** The position of the step in the list. */
7
+ step?: number;
8
+ /** What the step achieves. */
9
+ title: ReactNode;
10
+ /** More about the step, or what was done. */
11
+ description?: ReactNode;
12
+ /** The control that starts the step, normally a Button. Use `primary` only for `next`. Not shown when `done`. */
13
+ action?: ReactNode;
14
+ /** Text shown at the right when `done`. */
15
+ doneLabel?: ReactNode;
16
+ }
17
+ /** One step in a setup list. Marks the current step with `aria-current`. */
18
+ export declare const SetupStep: import("react").ForwardRefExoticComponent<SetupStepProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './SetupStep';
@@ -0,0 +1,17 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface SidebarProps extends HTMLAttributes<HTMLElement> {
3
+ /** Top of the column: a SidebarBrand, or a back link with an environment label. */
4
+ header?: ReactNode;
5
+ /** The Quick search box. */
6
+ search?: ReactNode;
7
+ /** NavItems kept below the scrolling list, such as Settings. */
8
+ pinned?: ReactNode;
9
+ /** Bottom of the column: connection status and a SidebarUser. */
10
+ footer?: ReactNode;
11
+ /** Accessible name of the navigation landmark. */
12
+ navLabel?: string;
13
+ /** The scrolling navigation: NavGroups and NavItems. */
14
+ children?: ReactNode;
15
+ }
16
+ /** The navigation column of the app. It fills the height of its container and its list scrolls. */
17
+ export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,11 @@
1
+ import { type ButtonHTMLAttributes } from 'react';
2
+ export interface SidebarBrandProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'name' | 'children'> {
3
+ /** Name of the account. */
4
+ name: string;
5
+ /** Line under the name. */
6
+ description?: string;
7
+ /** Letter in the tile. */
8
+ initial: string;
9
+ }
10
+ /** The account tile and name at the top of the sidebar. It opens the menu to change account. */
11
+ export declare const SidebarBrand: import("react").ForwardRefExoticComponent<SidebarBrandProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,13 @@
1
+ import { type ButtonHTMLAttributes } from 'react';
2
+ export interface SidebarUserProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'name' | 'children'> {
3
+ /** The person's name. */
4
+ name: string;
5
+ /** Their role, shown under the name. */
6
+ role?: string;
7
+ /** Short text for the avatar, such as `DR`. */
8
+ initials?: string;
9
+ /** Photo for the avatar. */
10
+ src?: string;
11
+ }
12
+ /** The signed-in person at the foot of the sidebar. It opens the account menu. */
13
+ export declare const SidebarUser: import("react").ForwardRefExoticComponent<SidebarUserProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,3 @@
1
+ export * from './Sidebar';
2
+ export * from './SidebarBrand';
3
+ export * from './SidebarUser';
@@ -0,0 +1,12 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export type SkeletonVariant = 'text' | 'circle' | 'rect';
3
+ export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /** Shape: `text` is one line of text, `circle` is an avatar and `rect` is any block. */
5
+ variant?: SkeletonVariant;
6
+ /** Width, in pixels or any CSS length. Defaults to 32 px for `circle` and the full width otherwise. */
7
+ width?: number | string;
8
+ /** Height, in pixels or any CSS length. Defaults to the width for `circle`, one line for `text` and 80 px for `rect`. */
9
+ height?: number | string;
10
+ }
11
+ /** Placeholder for content that is still loading. Hidden from assistive technology: announce loading with a Spinner or a status message. */
12
+ export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1 @@
1
+ export * from './Skeleton';
@@ -0,0 +1,24 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export type SortableRowState = 'default' | 'dragging';
3
+ export interface SortableRowProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4
+ /** `dragging` lifts the row, to show it being moved. */
5
+ state?: SortableRowState;
6
+ /** A short overline at the left, such as the kind of block. */
7
+ kind?: ReactNode;
8
+ /** What the row is. */
9
+ title: ReactNode;
10
+ /** A quieter line below the title. */
11
+ subtitle?: ReactNode;
12
+ /** The control at the right, normally a ghost Button. */
13
+ action?: ReactNode;
14
+ /** Called by the Move up button. Without it, the button is disabled. */
15
+ onMoveUp?: () => void;
16
+ /** Called by the Move down button. Without it, the button is disabled. */
17
+ onMoveDown?: () => void;
18
+ /** Accessible name of the Move up button. Name the row. */
19
+ moveUpLabel?: string;
20
+ /** Accessible name of the Move down button. Name the row. */
21
+ moveDownLabel?: string;
22
+ }
23
+ /** One row in a list that can be reordered, using Move up and Move down buttons that work from the keyboard. */
24
+ export declare const SortableRow: import("react").ForwardRefExoticComponent<SortableRowProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './SortableRow';
@@ -0,0 +1,18 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export type SparklineTone = 'accent' | 'neutral';
3
+ export interface SparklineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
+ /** Values in order. Use `null` where nothing was recorded. */
5
+ data: (number | null)[];
6
+ /** Accessible name. Say what the trend is, because the shape alone has no words. */
7
+ label: string;
8
+ /** `accent` for the one trend that matters, `neutral` for the rest. */
9
+ tone?: SparklineTone;
10
+ /** Height in pixels. Width fills the container. */
11
+ height?: number;
12
+ /** Shown in place of the line when there is no data. */
13
+ emptyMessage?: ReactNode;
14
+ /** Formats values in the data table. */
15
+ formatValue?: (value: number) => string;
16
+ }
17
+ /** A tiny trend for tables and KPIs, with no axes. Pair it with a number, because it shows shape rather than exact values. */
18
+ export declare const Sparkline: import("react").ForwardRefExoticComponent<SparklineProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './Sparkline';
@@ -0,0 +1,10 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export type SpinnerSize = 'sm' | 'md';
3
+ export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /** Diameter: `sm` is 16 px and `md` is 20 px. */
5
+ size?: SpinnerSize;
6
+ /** Accessible name, announced as a status message. */
7
+ label?: string;
8
+ }
9
+ /** Shows that something is loading, for a wait of unknown length. */
10
+ export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1 @@
1
+ export * from './Spinner';
@@ -0,0 +1,8 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export type StatusTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral' | 'pending';
3
+ export interface StatusProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /** State of the object. Sets the dot colour; `pending` draws a hollow ring. */
5
+ tone?: StatusTone;
6
+ }
7
+ /** Dot plus text, for object state in tables, cards and headers. The text always states the status, so colour is never the only signal. */
8
+ export declare const Status: import("react").ForwardRefExoticComponent<StatusProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1 @@
1
+ export * from './Status';
@@ -0,0 +1,13 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { StatusTone } from '../Status';
3
+ export type StatusIconSize = 'sm' | 'md' | 'lg';
4
+ export interface StatusIconProps extends HTMLAttributes<HTMLSpanElement> {
5
+ /** State to show. Picks both the icon and its colour. */
6
+ tone?: StatusTone;
7
+ /** Icon size: `sm` is 16 px, `md` is 20 px and `lg` is 24 px. */
8
+ size?: StatusIconSize;
9
+ /** Accessible name stating the status, because the icon has no visible text. */
10
+ label: string;
11
+ }
12
+ /** Icon-only status for dense spots such as table cells and checklists. */
13
+ export declare const StatusIcon: import("react").ForwardRefExoticComponent<StatusIconProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1 @@
1
+ export * from './StatusIcon';
@@ -0,0 +1,19 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type IconName } from '../../icons';
3
+ export type StepState = 'done' | 'current' | 'upcoming' | 'failed';
4
+ export interface StepProps extends HTMLAttributes<HTMLDivElement> {
5
+ /** Name of the step. */
6
+ label: ReactNode;
7
+ /** Small text under the label, such as "In progress". */
8
+ meta?: ReactNode;
9
+ /** Where the step has got to. `done` draws a check and `failed` draws a cross. */
10
+ state?: StepState;
11
+ /** Number in the indicator, for current and upcoming steps. */
12
+ number?: number;
13
+ /** Icon in the indicator, in place of the number or the state icon. */
14
+ icon?: IconName;
15
+ /** Words that say the state to screen readers when the indicator shows an icon. */
16
+ stateLabel?: string;
17
+ }
18
+ /** One stage in a sequence: an indicator with the label and meta stacked and centred under it. */
19
+ export declare const Step: import("react").ForwardRefExoticComponent<StepProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,28 @@
1
+ import { type OlHTMLAttributes, type ReactNode } from 'react';
2
+ import type { IconName } from '../../icons';
3
+ import { type StepState } from './Step';
4
+ export type StepperOrientation = 'horizontal' | 'vertical';
5
+ export interface StepperStep {
6
+ /** Stable key for this step. */
7
+ id: string;
8
+ /** Name of the step. */
9
+ label: ReactNode;
10
+ /** Small text under the label. Takes priority over `stateMeta`. */
11
+ meta?: ReactNode;
12
+ /** Icon in the indicator, in place of the number or the state icon. */
13
+ icon?: IconName;
14
+ /** Overrides the state worked out from `current`, usually to mark a step as `failed`. */
15
+ state?: StepState;
16
+ }
17
+ export interface StepperProps extends OlHTMLAttributes<HTMLOListElement> {
18
+ /** The steps, in order. */
19
+ steps: StepperStep[];
20
+ /** Zero-based index of the current step. Earlier steps are done and later ones are upcoming. Use `steps.length` when every step is done. */
21
+ current: number;
22
+ /** Direction of the sequence. Each step stays stacked and centred in both. */
23
+ orientation?: StepperOrientation;
24
+ /** Text under each label, by state, for steps that have no `meta` of their own. */
25
+ stateMeta?: Partial<Record<StepState, ReactNode>>;
26
+ }
27
+ /** Shows progress through a fixed sequence. */
28
+ export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<HTMLOListElement>>;
@@ -0,0 +1,2 @@
1
+ export * from './Stepper';
2
+ export * from './Step';
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type ToggleProps } from '../Toggle';
3
+ export interface SwitchFieldProps extends ToggleProps {
4
+ /** The visible label. */
5
+ label: ReactNode;
6
+ /** A short explanation below the label. */
7
+ description?: ReactNode;
8
+ }
9
+ /** A labelled Toggle for settings lists. It takes effect immediately, so do not use it inside a form that needs saving. */
10
+ export declare const SwitchField: import("react").ForwardRefExoticComponent<SwitchFieldProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './SwitchField';
@@ -0,0 +1,9 @@
1
+ import { type TableHTMLAttributes } from 'react';
2
+ import { type TableDensity } from './TableContext';
3
+ export type { TableDensity } from './TableContext';
4
+ export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
5
+ /** Row height: `default` is 52 px and `dense` is 40 px. */
6
+ density?: TableDensity;
7
+ }
8
+ /** The semantic table. Compose it with `thead`, `tbody`, TableHeaderRow, TableRow and TableCell. Give it a `caption`, `aria-label` or `aria-labelledby`. */
9
+ export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
@@ -0,0 +1,10 @@
1
+ import { type TdHTMLAttributes } from 'react';
2
+ export type TableCellAlign = 'left' | 'right' | 'center';
3
+ export interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
4
+ /** Horizontal alignment. Use `right` for numbers and row actions. */
5
+ align?: TableCellAlign;
6
+ /** Column width, in pixels or any CSS length. */
7
+ width?: number | string;
8
+ }
9
+ /** One cell in a TableRow. Holds a cell-content part such as TableCellText, or any content. Its height follows the density of the Table. */
10
+ export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes, type MouseEventHandler, type ReactNode } from 'react';
2
+ export interface TableCellActionsProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onClick'> {
3
+ /** Accessible name of the default button. Name the row, such as `Actions for Docs`. */
4
+ label?: string;
5
+ /** Called when the default button is pressed. */
6
+ onClick?: MouseEventHandler<HTMLButtonElement>;
7
+ /** Replaces the default button, for example with a DropdownMenu. */
8
+ children?: ReactNode;
9
+ }
10
+ /** The actions at the end of a row: a More button by default, or your own controls. */
11
+ export declare const TableCellActions: import("react").ForwardRefExoticComponent<TableCellActionsProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,7 @@
1
+ import { type CheckboxProps } from '../Checkbox';
2
+ export interface TableCellCheckboxProps extends Omit<CheckboxProps, 'label' | 'description' | 'aria-label'> {
3
+ /** Accessible name. Name the row, such as `Select Docs`. */
4
+ label: string;
5
+ }
6
+ /** The checkbox that selects a row, or in a header the whole table. Has no visible label. */
7
+ export declare const TableCellCheckbox: import("react").ForwardRefExoticComponent<TableCellCheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export interface TableCellNumberProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
3
+ /** The number. Numbers are grouped for the locale. A string is shown as it is, such as `No data`. */
4
+ value: number | string;
5
+ /** Locale used to group digits. */
6
+ locale?: string;
7
+ /** Options for the number format, such as a currency or a percentage. */
8
+ format?: Intl.NumberFormatOptions;
9
+ }
10
+ /** A number in a table cell, in monospaced digits and aligned to the right so that columns of numbers line up. */
11
+ export declare const TableCellNumber: import("react").ForwardRefExoticComponent<TableCellNumberProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,4 @@
1
+ import { type StatusProps } from '../Status';
2
+ export type TableCellStatusProps = StatusProps;
3
+ /** The state of a row, as a dot plus text. */
4
+ export declare const TableCellStatus: import("react").ForwardRefExoticComponent<StatusProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,7 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export interface TableCellTextProps extends HTMLAttributes<HTMLSpanElement> {
3
+ /** Uses the monospaced font in a quieter colour, for times, IDs and paths. */
4
+ mono?: boolean;
5
+ }
6
+ /** One line of text in a table cell. */
7
+ export declare const TableCellText: import("react").ForwardRefExoticComponent<TableCellTextProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,9 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface TableCellTwoLineProps extends HTMLAttributes<HTMLSpanElement> {
3
+ /** The first line. */
4
+ primary: ReactNode;
5
+ /** The quieter second line. */
6
+ secondary?: ReactNode;
7
+ }
8
+ /** A name with a quieter line of detail below it. */
9
+ export declare const TableCellTwoLine: import("react").ForwardRefExoticComponent<TableCellTwoLineProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export interface TableCellUserProps extends HTMLAttributes<HTMLSpanElement> {
3
+ /** The name of the person or team. */
4
+ name: string;
5
+ /** Short text for the avatar, such as `DR`. */
6
+ initials?: string;
7
+ /** Avatar image. */
8
+ src?: string;
9
+ }
10
+ /** A person, as a small avatar and their name. */
11
+ export declare const TableCellUser: import("react").ForwardRefExoticComponent<TableCellUserProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,3 @@
1
+ export type TableDensity = 'default' | 'dense';
2
+ /** Passes the density of a Table to its cells. */
3
+ export declare const TableDensityContext: import("react").Context<TableDensity>;
@@ -0,0 +1,9 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface TableFooterProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** How many rows are showing, such as `Showing 1–5 of 8`. Announced politely when it changes. */
4
+ count?: ReactNode;
5
+ /** The page controls, normally a Pagination. */
6
+ pagination?: ReactNode;
7
+ }
8
+ /** The bar below a table, with the row count and page controls. */
9
+ export declare const TableFooter: import("react").ForwardRefExoticComponent<TableFooterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import { type MouseEventHandler, type ThHTMLAttributes } from 'react';
2
+ export type TableHeaderCellSort = 'none' | 'sortable' | 'ascending' | 'descending';
3
+ export type TableHeaderCellAlign = 'left' | 'right' | 'center';
4
+ export interface TableHeaderCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
5
+ /** `none` is plain text. The others render a button: `sortable` is unsorted, `ascending` and `descending` show the current direction. */
6
+ sort?: TableHeaderCellSort;
7
+ /** Called when the sort button is pressed. */
8
+ onSort?: MouseEventHandler<HTMLButtonElement>;
9
+ /** Horizontal alignment. Match the cells below. */
10
+ align?: TableHeaderCellAlign;
11
+ /** Column width, in pixels or any CSS length. */
12
+ width?: number | string;
13
+ /** Keeps the text for assistive technology only, for columns such as row actions. */
14
+ hideLabel?: boolean;
15
+ }
16
+ /** A column header, with `aria-sort` and a real button when the column can be sorted. */
17
+ export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<TableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
@@ -0,0 +1,4 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export type TableHeaderRowProps = HTMLAttributes<HTMLTableRowElement>;
3
+ /** The row of column headers. Place it inside `thead`, with TableHeaderCell children. */
4
+ export declare const TableHeaderRow: import("react").ForwardRefExoticComponent<TableHeaderRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -0,0 +1,7 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
3
+ /** Marks the row as chosen, with the selection tint. Pair it with a checked TableCellCheckbox, which states the selection to assistive technology. */
4
+ selected?: boolean;
5
+ }
6
+ /** One row of data. Place it inside `tbody`, with TableCell children. It highlights on hover. */
7
+ export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
@@ -0,0 +1,13 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface TableToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
3
+ /** What the table lists. */
4
+ title?: ReactNode;
5
+ /** The search box, normally a Search. */
6
+ search?: ReactNode;
7
+ /** The action that opens the filters, normally a Button. */
8
+ filterAction?: ReactNode;
9
+ /** A second row below the title, such as a FilterBar. */
10
+ children?: ReactNode;
11
+ }
12
+ /** The bar above a table, with its title, search and filter action. */
13
+ export declare const TableToolbar: import("react").ForwardRefExoticComponent<TableToolbarProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ export * from './Table';
2
+ export * from './TableHeaderCell';
3
+ export * from './TableHeaderRow';
4
+ export * from './TableRow';
5
+ export * from './TableCell';
6
+ export * from './TableCellText';
7
+ export * from './TableCellTwoLine';
8
+ export * from './TableCellStatus';
9
+ export * from './TableCellUser';
10
+ export * from './TableCellNumber';
11
+ export * from './TableCellActions';
12
+ export * from './TableCellCheckbox';
13
+ export * from './TableToolbar';
14
+ export * from './TableFooter';
@@ -0,0 +1,12 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { TableDensity } from './TableContext';
3
+ /** Renders a story that is a `tr` inside a table body. */
4
+ export declare const inTableBody: (density?: TableDensity) => (Story: ComponentType) => import("react").JSX.Element;
5
+ /** Renders a story that is a header `tr`. */
6
+ export declare const inTableHead: (Story: ComponentType) => import("react").JSX.Element;
7
+ /** Renders a story that is a `td` inside a row. */
8
+ export declare const inRow: (density?: TableDensity) => (Story: ComponentType) => import("react").JSX.Element;
9
+ /** Renders a story that is a `th` inside a header row. */
10
+ export declare const inHeaderRow: (Story: ComponentType) => import("react").JSX.Element;
11
+ /** Renders a story that is the content of a cell. */
12
+ export declare const inCell: (Story: ComponentType) => import("react").JSX.Element;