rudiment-ui 0.5.0 → 0.6.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 (186) hide show
  1. package/README.md +59 -21
  2. package/dist/components/Alert/Alert.d.ts +28 -1
  3. package/dist/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/components/AppShell/AppShell.d.ts +52 -6
  5. package/dist/components/AppShell/AppShell.d.ts.map +1 -1
  6. package/dist/components/Avatar/Avatar.d.ts +21 -1
  7. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.d.ts +23 -0
  9. package/dist/components/Badge/Badge.d.ts.map +1 -1
  10. package/dist/components/Brand/Brand.d.ts +17 -2
  11. package/dist/components/Brand/Brand.d.ts.map +1 -1
  12. package/dist/components/Breadcrumb/Breadcrumb.d.ts +24 -2
  13. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  14. package/dist/components/Button/Button.d.ts +31 -0
  15. package/dist/components/Button/Button.d.ts.map +1 -1
  16. package/dist/components/Card/Card.d.ts +34 -0
  17. package/dist/components/Card/Card.d.ts.map +1 -1
  18. package/dist/components/Charts/BarChart/BarChart.d.ts +39 -4
  19. package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
  20. package/dist/components/Charts/DonutChart/DonutChart.d.ts +31 -0
  21. package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  22. package/dist/components/Charts/LineChart/LineChart.d.ts +52 -6
  23. package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  24. package/dist/components/Charts/Sparkline/Sparkline.d.ts +35 -0
  25. package/dist/components/Charts/Sparkline/Sparkline.d.ts.map +1 -0
  26. package/dist/components/Checkbox/Checkbox.d.ts +26 -3
  27. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  28. package/dist/components/Checkbox/CheckboxGroup.d.ts +20 -0
  29. package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  30. package/dist/components/CircularProgress/CircularProgress.d.ts +33 -0
  31. package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  32. package/dist/components/ComboBox/ComboBox.d.ts +29 -4
  33. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  34. package/dist/components/DatePicker/DatePicker.d.ts +30 -2
  35. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  36. package/dist/components/DatePicker/DateRangePicker.d.ts +26 -1
  37. package/dist/components/DatePicker/DateRangePicker.d.ts.map +1 -1
  38. package/dist/components/DatePicker/dateUtils.d.ts +1 -0
  39. package/dist/components/DatePicker/dateUtils.d.ts.map +1 -1
  40. package/dist/components/DescriptionList/DescriptionList.d.ts +44 -0
  41. package/dist/components/DescriptionList/DescriptionList.d.ts.map +1 -0
  42. package/dist/components/Dialog/Dialog.d.ts +39 -0
  43. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  44. package/dist/components/Divider/Divider.d.ts +18 -5
  45. package/dist/components/Divider/Divider.d.ts.map +1 -1
  46. package/dist/components/Dot/Dot.d.ts +22 -8
  47. package/dist/components/Dot/Dot.d.ts.map +1 -1
  48. package/dist/components/EmptyState/EmptyState.d.ts +23 -2
  49. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  50. package/dist/components/Form/Form.d.ts +20 -1
  51. package/dist/components/Form/Form.d.ts.map +1 -1
  52. package/dist/components/Icon/Icon.d.ts +17 -0
  53. package/dist/components/Icon/Icon.d.ts.map +1 -1
  54. package/dist/components/IconButton/IconButton.d.ts +24 -0
  55. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  56. package/dist/components/Image/Image.d.ts +31 -6
  57. package/dist/components/Image/Image.d.ts.map +1 -1
  58. package/dist/components/Input/Input.d.ts +32 -0
  59. package/dist/components/Input/Input.d.ts.map +1 -1
  60. package/dist/components/Kanban/KanbanBoard.d.ts +32 -0
  61. package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
  62. package/dist/components/Kanban/KanbanCard.d.ts +12 -1
  63. package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
  64. package/dist/components/Kanban/KanbanColumn.d.ts +13 -0
  65. package/dist/components/Kanban/KanbanColumn.d.ts.map +1 -1
  66. package/dist/components/Kanban/KanbanOverlayContext.d.ts +7 -0
  67. package/dist/components/Kanban/KanbanOverlayContext.d.ts.map +1 -0
  68. package/dist/components/Kanban/kanbanMoves.d.ts +18 -0
  69. package/dist/components/Kanban/kanbanMoves.d.ts.map +1 -0
  70. package/dist/components/Link/Link.d.ts +24 -3
  71. package/dist/components/Link/Link.d.ts.map +1 -1
  72. package/dist/components/Menu/Keyboard.d.ts +9 -0
  73. package/dist/components/Menu/Keyboard.d.ts.map +1 -1
  74. package/dist/components/Menu/Menu.d.ts +13 -0
  75. package/dist/components/Menu/Menu.d.ts.map +1 -1
  76. package/dist/components/Menu/MenuItem.d.ts +11 -0
  77. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  78. package/dist/components/Menu/MenuSection.d.ts +12 -0
  79. package/dist/components/Menu/MenuSection.d.ts.map +1 -1
  80. package/dist/components/Menu/MenuSeparator.d.ts +8 -0
  81. package/dist/components/Menu/MenuSeparator.d.ts.map +1 -1
  82. package/dist/components/Menu/MenuTrigger.d.ts +16 -0
  83. package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
  84. package/dist/components/Menu/SubmenuTrigger.d.ts +13 -0
  85. package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -1
  86. package/dist/components/NavItem/NavItem.d.ts +14 -0
  87. package/dist/components/NavItem/NavItem.d.ts.map +1 -1
  88. package/dist/components/NumberField/NumberField.d.ts +36 -3
  89. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  90. package/dist/components/PageHeader/PageHeader.d.ts +18 -1
  91. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  92. package/dist/components/Pagination/Pagination.d.ts +19 -2
  93. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  94. package/dist/components/ProgressBar/ProgressBar.d.ts +36 -2
  95. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  96. package/dist/components/RadioGroup/Radio.d.ts +6 -1
  97. package/dist/components/RadioGroup/Radio.d.ts.map +1 -1
  98. package/dist/components/RadioGroup/RadioGroup.d.ts +24 -0
  99. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  100. package/dist/components/Rating/Rating.d.ts +26 -6
  101. package/dist/components/Rating/Rating.d.ts.map +1 -1
  102. package/dist/components/RouterProvider/RouterProvider.d.ts +1 -0
  103. package/dist/components/RouterProvider/RouterProvider.d.ts.map +1 -1
  104. package/dist/components/SectionHeader/SectionHeader.d.ts +14 -1
  105. package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  106. package/dist/components/Select/Option.d.ts +8 -0
  107. package/dist/components/Select/Option.d.ts.map +1 -1
  108. package/dist/components/Select/Select.d.ts +29 -0
  109. package/dist/components/Select/Select.d.ts.map +1 -1
  110. package/dist/components/StatCard/StatCard.d.ts +23 -1
  111. package/dist/components/StatCard/StatCard.d.ts.map +1 -1
  112. package/dist/components/Stepper/Stepper.d.ts +34 -2
  113. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  114. package/dist/components/Switch/Switch.d.ts +13 -0
  115. package/dist/components/Switch/Switch.d.ts.map +1 -1
  116. package/dist/components/Table/Table.d.ts +31 -3
  117. package/dist/components/Table/Table.d.ts.map +1 -1
  118. package/dist/components/Table/TableBody.d.ts +7 -0
  119. package/dist/components/Table/TableBody.d.ts.map +1 -1
  120. package/dist/components/Table/TableCell.d.ts +11 -0
  121. package/dist/components/Table/TableCell.d.ts.map +1 -1
  122. package/dist/components/Table/TableColumn.d.ts +16 -1
  123. package/dist/components/Table/TableColumn.d.ts.map +1 -1
  124. package/dist/components/Table/TableHeader.d.ts +8 -1
  125. package/dist/components/Table/TableHeader.d.ts.map +1 -1
  126. package/dist/components/Table/TableRow.d.ts +10 -1
  127. package/dist/components/Table/TableRow.d.ts.map +1 -1
  128. package/dist/components/Tabs/Tab.d.ts +8 -0
  129. package/dist/components/Tabs/Tab.d.ts.map +1 -1
  130. package/dist/components/Tabs/TabList.d.ts +15 -1
  131. package/dist/components/Tabs/TabList.d.ts.map +1 -1
  132. package/dist/components/Tabs/TabPanel.d.ts +9 -0
  133. package/dist/components/Tabs/TabPanel.d.ts.map +1 -1
  134. package/dist/components/Tabs/Tabs.d.ts +11 -1
  135. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  136. package/dist/components/Tag/Tag.d.ts +27 -0
  137. package/dist/components/Tag/Tag.d.ts.map +1 -1
  138. package/dist/components/Textarea/Textarea.d.ts +43 -0
  139. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  140. package/dist/components/Toast/Toast.d.ts +17 -3
  141. package/dist/components/Toast/Toast.d.ts.map +1 -1
  142. package/dist/components/Toast/toastQueue.d.ts +20 -1
  143. package/dist/components/Toast/toastQueue.d.ts.map +1 -1
  144. package/dist/components/Tooltip/Tooltip.d.ts +32 -0
  145. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  146. package/dist/components/TopBar/TopBar.d.ts +17 -2
  147. package/dist/components/TopBar/TopBar.d.ts.map +1 -1
  148. package/dist/components.json +7919 -0
  149. package/dist/hooks/useChartTheme.d.ts +10 -0
  150. package/dist/hooks/useChartTheme.d.ts.map +1 -1
  151. package/dist/hooks/useLoadingButton.d.ts +10 -0
  152. package/dist/hooks/useLoadingButton.d.ts.map +1 -1
  153. package/dist/index.css +1 -1
  154. package/dist/index.d.ts +11 -0
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +1858 -1621
  157. package/dist/layouts/Box/Box.d.ts +31 -1
  158. package/dist/layouts/Box/Box.d.ts.map +1 -1
  159. package/dist/layouts/Center/Center.d.ts +22 -0
  160. package/dist/layouts/Center/Center.d.ts.map +1 -1
  161. package/dist/layouts/Cluster/Cluster.d.ts +19 -0
  162. package/dist/layouts/Cluster/Cluster.d.ts.map +1 -1
  163. package/dist/layouts/Cover/Cover.d.ts +28 -0
  164. package/dist/layouts/Cover/Cover.d.ts.map +1 -1
  165. package/dist/layouts/Grid/Grid.d.ts +18 -0
  166. package/dist/layouts/Grid/Grid.d.ts.map +1 -1
  167. package/dist/layouts/Sidebar/Sidebar.d.ts +29 -0
  168. package/dist/layouts/Sidebar/Sidebar.d.ts.map +1 -1
  169. package/dist/layouts/Stack/Stack.d.ts +21 -2
  170. package/dist/layouts/Stack/Stack.d.ts.map +1 -1
  171. package/dist/layouts/Switcher/Switcher.d.ts +19 -0
  172. package/dist/layouts/Switcher/Switcher.d.ts.map +1 -1
  173. package/dist/llms-full.txt +2284 -0
  174. package/dist/llms.txt +162 -0
  175. package/dist/typography/Heading/Heading.d.ts +12 -0
  176. package/dist/typography/Heading/Heading.d.ts.map +1 -1
  177. package/dist/typography/Prose/Prose.d.ts +21 -0
  178. package/dist/typography/Prose/Prose.d.ts.map +1 -1
  179. package/dist/typography/Text/Text.d.ts +28 -1
  180. package/dist/typography/Text/Text.d.ts.map +1 -1
  181. package/dist/utils/cn.d.ts +7 -0
  182. package/dist/utils/cn.d.ts.map +1 -1
  183. package/mcp/README.md +111 -0
  184. package/mcp/render.mjs +116 -0
  185. package/mcp/server.mjs +321 -0
  186. package/package.json +12 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAUD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,GAAO,EACP,IAAW,EACX,QAAQ,EACR,SAAiB,EACjB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,eAAe,2CA4DjB"}
1
+ {"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AAMA,OAAO,cAAc,CAAA;AAErB,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,gNAAgN;IAChN,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,uOAAuO;IACvO,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA2FD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,GAAO,EACP,IAAW,EACX,QAAQ,EACR,SAAiB,EACjB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,eAAe,2CAiDjB"}
@@ -11,5 +11,6 @@ import { RouterProvider } from 'react-aria';
11
11
  * Without it, links work as ordinary full-page links.
12
12
  */
13
13
  export declare const RudiRouterProvider: typeof RouterProvider;
14
+ /** Props for `RudiRouterProvider`: `navigate`, optional `useHref`, and `children`. */
14
15
  export type RudiRouterProviderProps = React.ComponentProps<typeof RouterProvider>;
15
16
  //# sourceMappingURL=RouterProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouterProvider.d.ts","sourceRoot":"","sources":["../../../src/components/RouterProvider/RouterProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,uBAAiB,CAAA;AAEhD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"RouterProvider.d.ts","sourceRoot":"","sources":["../../../src/components/RouterProvider/RouterProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,uBAAiB,CAAA;AAEhD,sFAAsF;AACtF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -1,12 +1,25 @@
1
1
  import { default as React } from 'react';
2
2
  export interface RudiSectionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
3
+ /** Section title, rendered as the heading. */
3
4
  title: React.ReactNode;
5
+ /** Supporting text below the title, in small body text. */
4
6
  description?: React.ReactNode;
5
7
  /** Content pinned to the inline-end, e.g. a "see all" link or button. */
6
8
  action?: React.ReactNode;
7
- /** Heading level for the title. Defaults to 2. */
9
+ /**
10
+ * Heading level for the title. Defaults to 2.
11
+ *
12
+ * @default 2
13
+ */
8
14
  headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
15
+ /** Extra class names, merged with the built-in classes. */
9
16
  className?: string;
10
17
  }
18
+ /**
19
+ * Heading row for a section of a page, with an optional description and an action slot. Use `RudiPageHeader` for the page title instead. The title is visually sized 5 whatever `headingLevel` is. Other DOM props go on the root `div`.
20
+ *
21
+ * @example
22
+ * <RudiSectionHeader title="Recent activity" action={<RudiButton onPress={showAll}>See all</RudiButton>} />
23
+ */
11
24
  export declare const RudiSectionHeader: React.ForwardRefExoticComponent<RudiSectionHeaderProps & React.RefAttributes<HTMLDivElement>>;
12
25
  //# sourceMappingURL=SectionHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,sBAAsB,CAAA;AAE7B,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kDAAkD;IAClD,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,iBAAiB,+FAiC5B,CAAA"}
1
+ {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,sBAAsB,CAAA;AAE7B,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC3D,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,+FAiC5B,CAAA"}
@@ -1,3 +1,11 @@
1
+ /**
2
+ * One entry in a `RudiSelect` or `RudiComboBox` list. Its children are the visible content; set `textValue`
3
+ * when the children are not plain text (used for typeahead and filtering). Give it a `key` (or `id`).
4
+ *
5
+ * @example
6
+ * <RudiOption key="us">United States</RudiOption>
7
+ */
1
8
  export { Item as RudiOption } from 'react-stately';
9
+ /** Props for `RudiOption`: `children`, `textValue`, `aria-label`, and `key`. Re-exported from react-stately. */
2
10
  export type { ItemProps as RudiOptionProps } from 'react-stately';
3
11
  //# sourceMappingURL=Option.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Option.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAClD,YAAY,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Option.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAClD,gHAAgH;AAChH,YAAY,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA"}
@@ -1,17 +1,46 @@
1
1
  import { Key } from 'react-aria';
2
+ /** Props for `RudiSelect`. */
2
3
  export interface RudiSelectProps<T extends object> {
4
+ /** Visible label and the field's accessible name. Required. */
3
5
  label: string;
6
+ /**
7
+ * The options as data. Each item is rendered by the `children` function; give items an `id` or `key` for stable selection.
8
+ */
4
9
  items: Iterable<T>;
10
+ /** Render function returning a `RudiOption` for each item. */
5
11
  children: (item: T) => React.ReactNode;
12
+ /** Controlled selected option key. Pair with `onSelectionChange`. */
6
13
  selectedKey?: Key | null;
14
+ /** Initial selected key for an uncontrolled select. */
7
15
  defaultSelectedKey?: Key | null;
16
+ /** Called with the chosen option's key (not an event). */
8
17
  onSelectionChange?: (key: Key | null) => void;
18
+ /**
19
+ * Text shown when nothing is selected.
20
+ * @default 'Select an option'
21
+ */
9
22
  placeholder?: string;
23
+ /** Help text under the field. Hidden while `errorMessage` is shown. */
10
24
  description?: string;
25
+ /** Error text shown under the field. Setting it marks the field invalid. */
11
26
  errorMessage?: string;
27
+ /** Form field name. The selected option's key is submitted under this name in a native form. */
28
+ name?: string;
29
+ /** Marks the field required for assistive tech and adds an asterisk to the label. It does not block native form submission. */
12
30
  isRequired?: boolean;
31
+ /** Disables the field. */
13
32
  isDisabled?: boolean;
33
+ /** Extra class names for the wrapper element, merged with the component's own classes. */
14
34
  className?: string;
15
35
  }
36
+ /**
37
+ * A dropdown for choosing one option from a list. Pass data via `items` and render each entry with a
38
+ * `RudiOption` in `children`. `label` is required. Use `RudiComboBox` when the list is long enough to need search.
39
+ *
40
+ * @example
41
+ * <RudiSelect label="Country" items={countries} onSelectionChange={setCountry}>
42
+ * {(c) => <RudiOption key={c.id}>{c.name}</RudiOption>}
43
+ * </RudiSelect>
44
+ */
16
45
  export declare function RudiSelect<T extends object>(props: RudiSelectProps<T>): import("react/jsx-runtime").JSX.Element;
17
46
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM;IAC/C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IACtC,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACxB,kBAAkB,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IAC/B,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA6FD,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,2CAyDrE"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,cAAc,CAAA;AAErB,8BAA8B;AAC9B,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM;IAC/C,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IACtC,qEAAqE;IACrE,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACxB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IAC/B,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gGAAgG;IAChG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+HAA+H;IAC/H,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0BAA0B;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA6FD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,2CAqErE"}
@@ -1,10 +1,32 @@
1
+ /** Props for `RudiStatCard`. */
1
2
  export interface RudiStatCardProps {
3
+ /** Name of the metric, shown above the value. */
2
4
  label: string;
5
+ /** The headline figure. */
3
6
  value: string | number;
7
+ /** Change text such as `"+4.2%"`, colored by `trend`. */
4
8
  delta?: string;
9
+ /**
10
+ * Direction of the change; sets the delta color and shows a trend icon next to it.
11
+ * @default 'neutral'
12
+ */
5
13
  trend?: 'up' | 'down' | 'neutral';
14
+ /**
15
+ * Screen-reader text for the trend, read before `delta`. Defaults to "Increased", "Decreased" or "No change" by `trend`.
16
+ */
17
+ trendLabel?: string;
18
+ /** Extra content below the value, such as a `RudiSparkline`. */
6
19
  children?: React.ReactNode;
20
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
7
21
  className?: string;
8
22
  }
9
- export declare function RudiStatCard({ label, value, delta, trend, children, className, }: RudiStatCardProps): import("react/jsx-runtime").JSX.Element;
23
+ /**
24
+ * Outlined card showing one headline metric with an optional change indicator. Built on `RudiCard`.
25
+ * The trend is shown by color and an icon, and announced to screen readers (see `trendLabel`).
26
+ * @example
27
+ * ```tsx
28
+ * <RudiStatCard label="Revenue" value="$48,200" delta="+4.2%" trend="up" />
29
+ * ```
30
+ */
31
+ export declare function RudiStatCard({ label, value, delta, trend, trendLabel, children, className, }: RudiStatCardProps): import("react/jsx-runtime").JSX.Element;
10
32
  //# sourceMappingURL=StatCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/StatCard.tsx"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,CAAA;AAExB,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAiB,EACjB,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,2CA0BnB"}
1
+ {"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/StatCard.tsx"],"names":[],"mappings":"AAIA,OAAO,iBAAiB,CAAA;AAExB,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,2CA8BnB"}
@@ -1,17 +1,49 @@
1
+ /** Progress state of a step: finished, in progress, or not yet reached. */
1
2
  export type RudiStepStatus = 'complete' | 'current' | 'upcoming';
3
+ /** One step in a `RudiStepper`. */
2
4
  export interface RudiStepperStep {
5
+ /** Step title. */
3
6
  label: string;
7
+ /** Secondary text shown under the label. */
4
8
  description?: string;
5
- /** Icon name for the node. Falls back to a check (complete) or the step number. */
9
+ /** Iconify icon name for the node. Falls back to a check (complete) or the step number. */
6
10
  icon?: string;
11
+ /**
12
+ * Progress state of the step.
13
+ * @default 'upcoming'
14
+ */
7
15
  status?: RudiStepStatus;
8
16
  }
17
+ /** Props for `RudiStepper`. */
9
18
  export interface RudiStepperProps {
19
+ /** Steps in order. */
10
20
  steps: RudiStepperStep[];
11
- /** `horizontal` — a progress track; `vertical` — a timeline. */
21
+ /**
22
+ * `horizontal` is a progress track; `vertical` is a timeline.
23
+ * @default 'horizontal'
24
+ */
12
25
  orientation?: 'horizontal' | 'vertical';
26
+ /**
27
+ * Size of the step nodes and text.
28
+ * @default 'md'
29
+ */
13
30
  size?: 'sm' | 'md';
31
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
14
32
  className?: string;
15
33
  }
34
+ /**
35
+ * Ordered list of steps that shows progress through a multi-step process. Display only: it has no internal state or navigation, so set each step's `status` from your own state.
36
+ * The step with `status: 'current'` gets `aria-current="step"`; steps without a status are treated as `upcoming`.
37
+ * @example
38
+ * ```tsx
39
+ * <RudiStepper
40
+ * steps={[
41
+ * { label: 'Cart', status: 'complete' },
42
+ * { label: 'Payment', status: 'current' },
43
+ * { label: 'Confirm' },
44
+ * ]}
45
+ * />
46
+ * ```
47
+ */
16
48
  export declare function RudiStepper({ steps, orientation, size, className, }: RudiStepperProps): import("react/jsx-runtime").JSX.Element;
17
49
  //# sourceMappingURL=Stepper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAEhE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,gEAAgE;IAChE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAA0B,EAC1B,IAAW,EACX,SAAS,GACV,EAAE,gBAAgB,2CA+DlB"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAEhE,mCAAmC;AACnC,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAA0B,EAC1B,IAAW,EACX,SAAS,GACV,EAAE,gBAAgB,2CA+DlB"}
@@ -1,14 +1,27 @@
1
+ /** Props for `RudiSwitch`. */
1
2
  export interface RudiSwitchProps {
2
3
  /** Visible label. Omit only when `aria-label` or `aria-labelledby` names the switch. */
3
4
  children?: React.ReactNode;
4
5
  /** Accessible name, for switches whose visible text repeats (e.g. one per table row). */
5
6
  'aria-label'?: string;
7
+ /** Id of an element that names the switch, as an alternative to `aria-label`. */
6
8
  'aria-labelledby'?: string;
9
+ /** Controlled on/off state. Pair with `onChange`. */
7
10
  isSelected?: boolean;
11
+ /** Initial on/off state for an uncontrolled switch. */
8
12
  defaultSelected?: boolean;
13
+ /** Called with the new on/off state (a boolean, not an event). */
9
14
  onChange?: (isSelected: boolean) => void;
15
+ /** Disables the switch. */
10
16
  isDisabled?: boolean;
17
+ /** Extra class names for the wrapper label, merged with the component's own classes. */
11
18
  className?: string;
12
19
  }
20
+ /**
21
+ * An on/off toggle for settings that take effect immediately; use `RudiCheckbox` for choices submitted with a form. Needs a visible label (children) or `aria-label` / `aria-labelledby`. The ref points at the `<input>`.
22
+ *
23
+ * @example
24
+ * <RudiSwitch isSelected={enabled} onChange={setEnabled}>Email notifications</RudiSwitch>
25
+ */
13
26
  export declare const RudiSwitch: import('react').ForwardRefExoticComponent<RudiSwitchProps & import('react').RefAttributes<HTMLInputElement>>;
14
27
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,wFAAwF;IACxF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,8GA8BtB,CAAA"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAA;AAErB,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,wFAAwF;IACxF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uDAAuD;IACvD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,8GA8BtB,CAAA"}
@@ -1,19 +1,30 @@
1
1
  import { TableProps as AriaTableProps } from 'react-aria-components';
2
2
  type RudiTableLabelProps = {
3
+ /** Accessible name for the table. Required unless `aria-labelledby` is set. */
3
4
  'aria-label': string;
5
+ /** Id of an element that names the table. */
4
6
  'aria-labelledby'?: string;
5
7
  } | {
8
+ /** Accessible name for the table. */
6
9
  'aria-label'?: string;
10
+ /** Id of an element that names the table. Required unless `aria-label` is set. */
7
11
  'aria-labelledby': string;
8
12
  };
9
13
  export type RudiTableProps = Omit<AriaTableProps, 'className' | 'style' | 'aria-label' | 'aria-labelledby'> & RudiTableLabelProps & {
10
- /** Row height / cell padding. */
14
+ /**
15
+ * Row height and cell padding.
16
+ * @default 'regular'
17
+ */
11
18
  density?: 'compact' | 'regular';
12
- /** Alternate row backgrounds (zebra striping). Off by default. */
19
+ /**
20
+ * Alternate row backgrounds (zebra striping).
21
+ * @default false
22
+ */
13
23
  striped?: boolean;
14
24
  /**
15
25
  * Pin the header row while the body scrolls. The header sticks to the table's own
16
26
  * scroll container, so pair it with `maxHeight`.
27
+ * @default false
17
28
  */
18
29
  stickyHeader?: boolean;
19
30
  /** Max height of the scroll container (CSS length or px number). Enables vertical scrolling. */
@@ -23,7 +34,24 @@ export type RudiTableProps = Omit<AriaTableProps, 'className' | 'style' | 'aria-
23
34
  };
24
35
  /**
25
36
  * Accessible data table built on React Aria Components' `Table`. Wraps the grid in a scroll
26
- * container so wide tables scroll horizontally instead of overflowing the page.
37
+ * container so wide tables scroll horizontally instead of overflowing the page. Needs an accessible
38
+ * name: pass `aria-label` or `aria-labelledby`. Selection, sorting and row actions come from React
39
+ * Aria (`selectionMode`, `sortDescriptor`, `onSortChange`, `onRowAction`). Compose with
40
+ * `RudiTableHeader`, `RudiTableColumn`, `RudiTableBody`, `RudiTableRow` and `RudiTableCell`.
41
+ *
42
+ * @example
43
+ * <RudiTable aria-label="Shipments" density="compact">
44
+ * <RudiTableHeader>
45
+ * <RudiTableColumn isRowHeader>Reference</RudiTableColumn>
46
+ * <RudiTableColumn align="end">Weight</RudiTableColumn>
47
+ * </RudiTableHeader>
48
+ * <RudiTableBody>
49
+ * <RudiTableRow id="1">
50
+ * <RudiTableCell>REF-1042</RudiTableCell>
51
+ * <RudiTableCell>12 kg</RudiTableCell>
52
+ * </RudiTableRow>
53
+ * </RudiTableBody>
54
+ * </RudiTable>
27
55
  */
28
56
  export declare const RudiTable: import('react').ForwardRefExoticComponent<RudiTableProps & import('react').RefAttributes<HTMLTableElement>>;
29
57
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE7F,OAAO,aAAa,CAAA;AAEpB,KAAK,mBAAmB,GACpB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACd,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,iBAAiB,CACzD,GACC,mBAAmB,GAAG;IACpB,iCAAiC;IACjC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,SAAS,6GA0BpB,CAAA"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE7F,OAAO,aAAa,CAAA;AAEpB,KAAK,mBAAmB,GACpB;IACE,+EAA+E;IAC/E,YAAY,EAAE,MAAM,CAAA;IACpB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,GACD;IACE,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kFAAkF;IAClF,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAEL,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACd,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,iBAAiB,CACzD,GACC,mBAAmB,GAAG;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS,6GA0BpB,CAAA"}
@@ -1,10 +1,17 @@
1
1
  import { TableBodyProps as AriaTableBodyProps } from 'react-aria-components';
2
+ /** Props for `RudiTableBody`. Inherits `items`, `children` and `renderEmptyState` from React Aria's `TableBody`. */
2
3
  export interface RudiTableBodyProps<T extends object> extends Omit<AriaTableBodyProps<T>, 'className' | 'style'> {
4
+ /** Class merged onto the body element. */
3
5
  className?: string;
4
6
  }
5
7
  /**
6
8
  * The table body. Pass static `RudiTableRow` children, or `items` plus a render function.
7
9
  * `renderEmptyState` renders (full width) when there are no rows — e.g. a `RudiEmptyState`.
10
+ *
11
+ * @example
12
+ * <RudiTableBody items={rows}>
13
+ * {(row) => <RudiTableRow><RudiTableCell>{row.name}</RudiTableCell></RudiTableRow>}
14
+ * </RudiTableBody>
8
15
  */
9
16
  export declare function RudiTableBody<T extends object>({ className, ...props }: RudiTableBodyProps<T>): import("react/jsx-runtime").JSX.Element;
10
17
  //# sourceMappingURL=TableBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAClD,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAE7F"}
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,uBAAuB,CAAA;AAG9B,oHAAoH;AACpH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAClD,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC1D,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAE7F"}
@@ -1,11 +1,22 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CellProps as AriaCellProps } from 'react-aria-components';
3
3
  import { RudiTableAlign } from './TableColumn';
4
+ /** Props for `RudiTableCell`. Inherits `id`, `colSpan` and `textValue` from React Aria's `Cell`. */
4
5
  export interface RudiTableCellProps extends Omit<AriaCellProps, 'className' | 'style' | 'children'> {
5
6
  /** Overrides the alignment inherited from the cell's `RudiTableColumn`. */
6
7
  align?: RudiTableAlign;
8
+ /** Cell content. A plain string also becomes the `textValue` unless one is given. */
7
9
  children?: ReactNode;
10
+ /** Class merged onto the cell element. */
8
11
  className?: string;
9
12
  }
13
+ /**
14
+ * A data cell in a `RudiTableRow`, in the same order as the table's columns. It inherits its
15
+ * column's `align` unless it sets its own. Focusing a text field inside the cell pauses the grid's
16
+ * arrow-key navigation so the field keeps the keys.
17
+ *
18
+ * @example
19
+ * <RudiTableCell align="end">12 kg</RudiTableCell>
20
+ */
10
21
  export declare function RudiTableCell({ align, children, className, textValue, ...props }: RudiTableCellProps): import("react/jsx-runtime").JSX.Element;
11
22
  //# sourceMappingURL=TableCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAGL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;IACjG,2EAA2E;IAC3E,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyCD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAcpG"}
1
+ {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAGL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,oGAAoG;AACpG,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;IACjG,2EAA2E;IAC3E,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyCD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAcpG"}
@@ -1,15 +1,30 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ColumnProps as AriaColumnProps } from 'react-aria-components';
3
+ /** Horizontal alignment of table content: `start`, `center` or `end` (use `end` for numbers). */
3
4
  export type RudiTableAlign = 'start' | 'center' | 'end';
5
+ /** Props for `RudiTableColumn`. Inherits `id`, `isRowHeader`, `allowsSorting` and `textValue` from React Aria's `Column`. */
4
6
  export interface RudiTableColumnProps extends Omit<AriaColumnProps, 'className' | 'style' | 'children' | 'width' | 'defaultWidth' | 'minWidth' | 'maxWidth'> {
5
- /** Horizontal alignment of the header and every cell in this column. Use `end` for numbers. */
7
+ /**
8
+ * Horizontal alignment of the header and every cell in this column. Use `end` for numbers.
9
+ * @default 'start'
10
+ */
6
11
  align?: RudiTableAlign;
7
12
  /** Column width (CSS length or px number). */
8
13
  width?: string | number;
9
14
  /** Minimum column width (CSS length or px number). */
10
15
  minWidth?: string | number;
16
+ /** Header label. A plain string also becomes the `textValue` unless one is given. */
11
17
  children?: ReactNode;
18
+ /** Class merged onto the column header element. */
12
19
  className?: string;
13
20
  }
21
+ /**
22
+ * A column header in `RudiTableHeader`. Mark one column `isRowHeader` so screen readers can name
23
+ * each row. Set `allowsSorting` for a sortable column, which shows a sort icon, and handle sorting
24
+ * on the table with `sortDescriptor` and `onSortChange`.
25
+ *
26
+ * @example
27
+ * <RudiTableColumn id="weight" allowsSorting align="end" width={120}>Weight</RudiTableColumn>
28
+ */
14
29
  export declare function RudiTableColumn({ align, width, minWidth, children, className, textValue, ...props }: RudiTableColumnProps): import("react/jsx-runtime").JSX.Element;
15
30
  //# sourceMappingURL=TableColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableColumn.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIjG,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEvD,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,eAAe,EACf,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CACxF;IACD,+FAA+F;IAC/F,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,2CA2BtB"}
1
+ {"version":3,"file":"TableColumn.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIjG,iGAAiG;AACjG,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEvD,6HAA6H;AAC7H,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,eAAe,EACf,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CACxF;IACD;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,qFAAqF;IACrF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,2CA2BtB"}
@@ -1,10 +1,17 @@
1
1
  import { TableHeaderProps as AriaTableHeaderProps } from 'react-aria-components';
2
+ /** Props for `RudiTableHeader`. Inherits `columns`, `children` and `dependencies` from React Aria's `TableHeader`. */
2
3
  export interface RudiTableHeaderProps<T extends object> extends Omit<AriaTableHeaderProps<T>, 'className' | 'style'> {
4
+ /** Class merged onto the header element. */
3
5
  className?: string;
4
6
  }
5
7
  /**
6
8
  * The header row. Pass static `RudiTableColumn` children, or `columns` plus a render function.
7
- * A selection column is prepended automatically when the table has a `selectionMode`.
9
+ * A selection column is prepended automatically when the table has a `selectionMode` and its `selectionBehavior` is `toggle` (the default).
10
+ *
11
+ * @example
12
+ * <RudiTableHeader>
13
+ * <RudiTableColumn isRowHeader>Name</RudiTableColumn>
14
+ * </RudiTableHeader>
8
15
  */
9
16
  export declare function RudiTableHeader<T extends object>({ columns, children, dependencies, className, ...props }: RudiTableHeaderProps<T>): import("react/jsx-runtime").JSX.Element;
10
17
  //# sourceMappingURL=TableHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,IAAI,oBAAoB,EAC9C,MAAM,uBAAuB,CAAA;AAK9B,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CACpD,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAmBzB"}
1
+ {"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,IAAI,oBAAoB,EAC9C,MAAM,uBAAuB,CAAA;AAK9B,sHAAsH;AACtH,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CACpD,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC5D,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAmBzB"}
@@ -1,10 +1,19 @@
1
1
  import { RowProps as AriaRowProps } from 'react-aria-components';
2
+ /** Props for `RudiTableRow`. Inherits `id`, `href`, `onAction`, `columns` and `isDisabled` from React Aria's `Row`. */
2
3
  export interface RudiTableRowProps<T extends object> extends Omit<AriaRowProps<T>, 'className' | 'style'> {
4
+ /** Class merged onto the row element. */
3
5
  className?: string;
4
6
  }
5
7
  /**
6
8
  * A table row. Give it `href` to make the whole row a link (routed through
7
- * `RudiRouterProvider`), or handle `onAction` / the table's `onRowAction`.
9
+ * `RudiRouterProvider`), or handle `onAction` / the table's `onRowAction`. Give each row an `id`
10
+ * so selection and actions can refer to it. A selection checkbox cell is prepended automatically
11
+ * when the table has a `selectionMode` and its `selectionBehavior` is `toggle` (the default).
12
+ *
13
+ * @example
14
+ * <RudiTableRow id="1" href="/shipments/1">
15
+ * <RudiTableCell>REF-1042</RudiTableCell>
16
+ * </RudiTableRow>
8
17
  */
9
18
  export declare function RudiTableRow<T extends object>({ id, columns, children, dependencies, className, ...props }: RudiTableRowProps<T>): import("react/jsx-runtime").JSX.Element;
10
19
  //# sourceMappingURL=TableRow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,IAAI,YAAY,EAC9B,MAAM,uBAAuB,CAAA;AAI9B,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,CACjD,SAAQ,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,EAAE,EACF,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAetB"}
1
+ {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,IAAI,YAAY,EAC9B,MAAM,uBAAuB,CAAA;AAI9B,uHAAuH;AACvH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,CACjD,SAAQ,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACpD,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,EAAE,EACF,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAetB"}
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TabProps as AriaTabProps } from 'react-aria-components';
3
+ /** Props for `RudiTab`. Inherits `isDisabled` and `href` from React Aria's `Tab`. */
3
4
  export interface RudiTabProps extends Omit<AriaTabProps, 'className' | 'style' | 'children' | 'id'> {
4
5
  /** Unique key; matches the `id` of the corresponding `RudiTabPanel`. */
5
6
  id: string;
@@ -9,7 +10,14 @@ export interface RudiTabProps extends Omit<AriaTabProps, 'className' | 'style' |
9
10
  icon?: string;
10
11
  /** Trailing content after the label, e.g. a count `RudiBadge`. Part of the accessible name. */
11
12
  badge?: ReactNode;
13
+ /** Class merged onto the tab element. */
12
14
  className?: string;
13
15
  }
16
+ /**
17
+ * A single tab in a `RudiTabList`. Its `id` must match the `id` of the `RudiTabPanel` it controls.
18
+ *
19
+ * @example
20
+ * <RudiTab id="pending" icon="mdi:clock-outline" badge={7}>Pending</RudiTab>
21
+ */
14
22
  export declare function RudiTab({ id, icon, badge, className, children, ...props }: RudiTabProps): import("react/jsx-runtime").JSX.Element;
15
23
  //# sourceMappingURL=Tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAkB,KAAK,QAAQ,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIrF,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;IACrE,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAevF"}
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAkB,KAAK,QAAQ,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIrF,qFAAqF;AACrF,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;IACrE,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAevF"}
@@ -1,10 +1,24 @@
1
1
  import { TabListProps as AriaTabListProps } from 'react-aria-components';
2
+ /** Props for `RudiTabList`. */
2
3
  export interface RudiTabListProps<T extends object> extends Omit<AriaTabListProps<T>, 'className' | 'style' | 'aria-label'> {
3
4
  /** Accessible name for the tab list, e.g. "Shipment status". */
4
5
  'aria-label': string;
5
- /** Visual treatment of the tabs. Defaults to `underline`. */
6
+ /**
7
+ * Visual treatment of the tabs.
8
+ * @default 'underline'
9
+ */
6
10
  variant?: 'underline' | 'pill';
11
+ /** Class merged onto the tab list element. */
7
12
  className?: string;
8
13
  }
14
+ /**
15
+ * Container for the `RudiTab`s inside `RudiTabs`. `aria-label` is required because the list is a
16
+ * `tablist` landmark. Render the matching `RudiTabPanel`s as siblings of the list, not inside it.
17
+ *
18
+ * @example
19
+ * <RudiTabList aria-label="Shipment status" variant="pill">
20
+ * <RudiTab id="all">All</RudiTab>
21
+ * </RudiTabList>
22
+ */
9
23
  export declare function RudiTabList<T extends object>({ variant, className, ...props }: RudiTabListProps<T>): import("react/jsx-runtime").JSX.Element;
10
24
  //# sourceMappingURL=TabList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAChD,SAAQ,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;IACvE,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAA;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,EAC5C,OAAqB,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAOrB"}
1
+ {"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,uBAAuB,CAAA;AAG9B,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAChD,SAAQ,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;IACvE,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAC9B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,EAC5C,OAAqB,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAOrB"}
@@ -1,8 +1,17 @@
1
1
  import { TabPanelProps as AriaTabPanelProps } from 'react-aria-components';
2
+ /** Props for `RudiTabPanel`. Inherits `shouldForceMount` from React Aria's `TabPanel`. */
2
3
  export interface RudiTabPanelProps extends Omit<AriaTabPanelProps, 'className' | 'style' | 'id'> {
3
4
  /** Must match the `id` of the `RudiTab` that controls this panel. */
4
5
  id: string;
6
+ /** Class merged onto the panel element. */
5
7
  className?: string;
6
8
  }
9
+ /**
10
+ * Content shown when its tab is selected. Only the selected panel is rendered. Its `id` must match
11
+ * a `RudiTab` `id`.
12
+ *
13
+ * @example
14
+ * <RudiTabPanel id="all">All shipments</RudiTabPanel>
15
+ */
7
16
  export declare function RudiTabPanel({ className, ...props }: RudiTabPanelProps): import("react/jsx-runtime").JSX.Element;
8
17
  //# sourceMappingURL=TabPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9F,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAEtE"}
1
+ {"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,uBAAuB,CAAA;AAG9B,0FAA0F;AAC1F,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9F,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAA;IACV,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAEtE"}
@@ -1,15 +1,25 @@
1
1
  import { TabsProps as AriaTabsProps } from 'react-aria-components';
2
+ /** Props for `RudiTabs`. Inherits `selectedKey`, `defaultSelectedKey`, `onSelectionChange`, `isDisabled` and `keyboardActivation` from React Aria's `Tabs`. */
2
3
  export interface RudiTabsProps extends Omit<AriaTabsProps, 'className' | 'style'> {
3
4
  /**
4
5
  * Layout and arrow-key axis. Lives on the root (not the list) because React Aria reads it
5
6
  * from `Tabs`; vertical places the list beside the panels.
7
+ * @default 'horizontal'
6
8
  */
7
9
  orientation?: 'horizontal' | 'vertical';
10
+ /** Class merged onto the root element. */
8
11
  className?: string;
9
12
  }
10
13
  /**
11
14
  * Root of the tabs compound. Owns selection (`selectedKey` / `defaultSelectedKey` /
12
- * `onSelectionChange`). Compose with `RudiTabList`, `RudiTab` and `RudiTabPanel`.
15
+ * `onSelectionChange`). Compose with `RudiTabList`, `RudiTab` and `RudiTabPanel`. Uncontrolled
16
+ * unless `selectedKey` is set. Keys are the string `id`s of the tabs.
17
+ *
18
+ * @example
19
+ * <RudiTabs defaultSelectedKey="all">
20
+ * <RudiTabList aria-label="Shipments"><RudiTab id="all">All</RudiTab></RudiTabList>
21
+ * <RudiTabPanel id="all">All shipments</RudiTabPanel>
22
+ * </RudiTabs>
13
23
  */
14
24
  export declare function RudiTabs({ orientation, className, ...props }: RudiTabsProps): import("react/jsx-runtime").JSX.Element;
15
25
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/E;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,WAA0B,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAQ1F"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,YAAY,CAAA;AAEnB,+JAA+J;AAC/J,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/E;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,WAA0B,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAQ1F"}