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":"BarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/BarChart/BarChart.tsx"],"names":[],"mappings":"AAYA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IACnD,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAmB,EACnB,OAAe,EACf,UAAiB,EACjB,QAAe,EACf,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,iBAAiB,2CA8EnB"}
1
+ {"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/BarChart/BarChart.tsx"],"names":[],"mappings":"AAYA,OAAO,eAAe,CAAA;AAEtB,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,8IAA8I;IAC9I,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IACnD,mGAAmG;IACnG,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAmB,EACnB,OAAe,EACf,UAAiB,EACjB,QAAe,EACf,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,iBAAiB,2CA8EnB"}
@@ -1,15 +1,46 @@
1
+ /** One slice of a `RudiDonutChart`. */
1
2
  export interface RudiDonutChartDatum {
3
+ /** Slice name, used in the legend, tooltip, and slice labels. */
2
4
  name: string;
5
+ /** Size of the slice, relative to the sum of all values. */
3
6
  value: number;
4
7
  }
8
+ /** Props for `RudiDonutChart`. */
5
9
  export interface RudiDonutChartProps {
10
+ /** Slices to draw, in order. */
6
11
  data: RudiDonutChartDatum[];
12
+ /**
13
+ * Radius of the center hole in px. The ring is 30px thick.
14
+ * @default 60
15
+ */
7
16
  innerRadius?: number;
17
+ /**
18
+ * Shows each slice's name beside it.
19
+ * @default false
20
+ */
8
21
  showLabels?: boolean;
22
+ /**
23
+ * Shows the legend.
24
+ * @default true
25
+ */
9
26
  showLegend?: boolean;
27
+ /**
28
+ * Chart height in px.
29
+ * @default 300
30
+ */
10
31
  height?: number;
32
+ /** Accessible name describing the chart. */
11
33
  label: string;
34
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
12
35
  className?: string;
13
36
  }
37
+ /**
38
+ * Donut chart showing parts of a whole, built on Recharts and the library chart theme. Slice colors come from the chart theme in order.
39
+ * `label` is required; the chart is exposed as a single `role="img"` with that name, so summarize the data in it.
40
+ * @example
41
+ * ```tsx
42
+ * <RudiDonutChart label="Tickets by status" data={[{ name: 'Open', value: 14 }, { name: 'Closed', value: 52 }]} />
43
+ * ```
44
+ */
14
45
  export declare function RudiDonutChart({ data, innerRadius, showLabels, showLegend, height, label, className, }: RudiDonutChartProps): import("react/jsx-runtime").JSX.Element;
15
46
  //# sourceMappingURL=DonutChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/DonutChart/DonutChart.tsx"],"names":[],"mappings":"AAUA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,mBAAmB,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,WAAgB,EAChB,UAAkB,EAClB,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,mBAAmB,2CAiDrB"}
1
+ {"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/DonutChart/DonutChart.tsx"],"names":[],"mappings":"AAUA,OAAO,eAAe,CAAA;AAEtB,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAA;IACZ,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gCAAgC;IAChC,IAAI,EAAE,mBAAmB,EAAE,CAAA;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,WAAgB,EAChB,UAAkB,EAClB,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,mBAAmB,2CAiDrB"}
@@ -1,30 +1,76 @@
1
+ /** Props for `RudiLineChart`. */
1
2
  export interface RudiLineChartProps {
2
- /**
3
- * Row data. Values may be `null` to represent gaps in a series (e.g. a
4
- * burndown line that stops partway through the sprint). Strongly-typed data
5
- * objects are accepted directly — no cast required.
6
- */
3
+ /** Row data. Values may be `null` to represent gaps in a series (e.g. a burndown line that stops partway through the sprint). Strongly-typed data objects are accepted directly, with no cast required. */
7
4
  data: Array<Record<string, string | number | null>>;
5
+ /** Keys of `data` rows to plot, one line each. Colors come from the chart theme in order. */
8
6
  dataKeys: string[];
7
+ /** Key of `data` rows used for the x axis labels. */
9
8
  indexKey: string;
9
+ /**
10
+ * Draws smoothed lines instead of straight segments.
11
+ * @default true
12
+ */
10
13
  curved?: boolean;
14
+ /**
15
+ * Draws a dot at each data point.
16
+ * @default true
17
+ */
11
18
  showDots?: boolean;
19
+ /**
20
+ * Shows grid lines.
21
+ * @default true
22
+ */
12
23
  showGrid?: boolean;
24
+ /**
25
+ * Shows the series legend.
26
+ * @default true
27
+ */
13
28
  showLegend?: boolean;
29
+ /**
30
+ * Chart height in px.
31
+ * @default 300
32
+ */
14
33
  height?: number;
34
+ /** Accessible name describing the chart. */
15
35
  label: string;
16
- /** Horizontal guide lines, e.g. a temperature set-point or a target. */
36
+ /**
37
+ * Horizontal guide lines, e.g. a temperature set-point or a target. The y axis extends to keep them in view.
38
+ * @default []
39
+ */
17
40
  referenceLines?: RudiChartReferenceLine[];
18
41
  /** Y-axis range; use `'auto'` for either end. Keeps reference lines in view. */
19
42
  yDomain?: [number | 'auto', number | 'auto'];
20
43
  /** Unit suffix for y-axis ticks and tooltip values, e.g. `°C`. */
21
44
  unit?: string;
45
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
22
46
  className?: string;
23
47
  }
48
+ /** A horizontal guide line drawn across a `RudiLineChart`. */
24
49
  export interface RudiChartReferenceLine {
50
+ /** Value on the y axis where the line is drawn. */
25
51
  y: number;
52
+ /** Text shown on the line, at its top inline-end. */
26
53
  label: string;
54
+ /**
55
+ * Semantic color of the line and its label.
56
+ * @default 'default'
57
+ */
27
58
  tone?: 'default' | 'success' | 'warning' | 'error' | 'info';
28
59
  }
60
+ /**
61
+ * Line chart with one series per data key, built on Recharts and the library chart theme. Use `RudiBarChart` to compare categories.
62
+ * `label` is required; the chart is exposed as a single `role="img"` with that name, so summarize the data in it. It fills its container's width.
63
+ * @example
64
+ * ```tsx
65
+ * <RudiLineChart
66
+ * label="Temperature over 24 hours"
67
+ * data={readings}
68
+ * indexKey="time"
69
+ * dataKeys={['temp']}
70
+ * unit="°C"
71
+ * referenceLines={[{ y: 8, label: 'Set point', tone: 'warning' }]}
72
+ * />
73
+ * ```
74
+ */
29
75
  export declare function RudiLineChart({ data, dataKeys, indexKey, curved, showDots, showGrid, showLegend, height, label, referenceLines, yDomain, unit, className, }: RudiLineChartProps): import("react/jsx-runtime").JSX.Element;
30
76
  //# sourceMappingURL=LineChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAaA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IACnD,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACzC,gFAAgF;IAChF,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;IAC5C,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;CAC5D;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAa,EACb,QAAe,EACf,QAAe,EACf,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,cAAmB,EACnB,OAAO,EACP,IAAI,EACJ,SAAS,GACV,EAAE,kBAAkB,2CA6DpB"}
1
+ {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAaA,OAAO,eAAe,CAAA;AAEtB,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,2MAA2M;IAC3M,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;IACnD,6FAA6F;IAC7F,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACzC,gFAAgF;IAChF,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;IAC5C,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,mDAAmD;IACnD,CAAC,EAAE,MAAM,CAAA;IACT,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;CAC5D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAa,EACb,QAAe,EACf,QAAe,EACf,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,cAAmB,EACnB,OAAO,EACP,IAAI,EACJ,SAAS,GACV,EAAE,kBAAkB,2CA6DpB"}
@@ -0,0 +1,35 @@
1
+ /** Props for `RudiSparkline`. */
2
+ export interface RudiSparklineProps {
3
+ /** Values in order, plotted left to right and scaled to fit the height. */
4
+ data: number[];
5
+ /** Accessible name, e.g. "Temperature over the last 24 hours". */
6
+ label: string;
7
+ /** Fixed width in px, or any CSS length when a string. Defaults to filling the container. */
8
+ width?: number | string;
9
+ /** Fixed height in px, or any CSS length when a string. Defaults to the sparkline height token (2.5rem). */
10
+ height?: number | string;
11
+ /** Draws a dashed horizontal reference line; the y domain always includes it. */
12
+ threshold?: number;
13
+ /**
14
+ * Semantic color of the line.
15
+ * @default 'neutral'
16
+ */
17
+ tone?: 'neutral' | 'brand' | 'error' | 'success';
18
+ /**
19
+ * Draws a dot on the last point.
20
+ * @default false
21
+ */
22
+ showEndpoint?: boolean;
23
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * Tiny axis-less line for showing a trend inside a card, table cell, or sentence. Plain SVG with no Recharts dependency. Use `RudiLineChart` when the reader needs axes or tooltips.
28
+ * `label` is required and is the accessible name. Non-finite values in `data` are dropped. A single point is drawn as a dot.
29
+ * @example
30
+ * ```tsx
31
+ * <RudiSparkline label="Temperature over the last 24 hours" data={[4, 5, 7, 6, 8]} tone="brand" showEndpoint />
32
+ * ```
33
+ */
34
+ export declare function RudiSparkline({ data, label, width, height, threshold, tone, showEndpoint, className, }: RudiSparklineProps): import("react/jsx-runtime").JSX.Element;
35
+ //# sourceMappingURL=Sparkline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/Sparkline/Sparkline.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,2EAA2E;IAC3E,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,4GAA4G;IAC5G,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAOD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,SAAS,EACT,IAAgB,EAChB,YAAoB,EACpB,SAAS,GACV,EAAE,kBAAkB,2CAqEpB"}
@@ -1,19 +1,42 @@
1
+ /** Props for `RudiCheckbox`. */
1
2
  export interface RudiCheckboxProps {
3
+ /** Visible label, rendered next to the box. */
2
4
  children: React.ReactNode;
5
+ /**
6
+ * Controlled checked state for a standalone checkbox. Pair with `onChange`. Ignored inside a `RudiCheckboxGroup`.
7
+ */
3
8
  isSelected?: boolean;
9
+ /** Initial checked state for an uncontrolled standalone checkbox. */
4
10
  defaultSelected?: boolean;
11
+ /**
12
+ * Shows the mixed state (e.g. a "select all" box when only some children are checked). Sets the native `indeterminate` property so assistive tech announces "mixed", and shows the dash. It does not change `isSelected`.
13
+ */
5
14
  isIndeterminate?: boolean;
15
+ /**
16
+ * Called with the new checked state (a boolean, not an event) for a standalone checkbox.
17
+ */
6
18
  onChange?: (isSelected: boolean) => void;
19
+ /** Disables the checkbox. */
7
20
  isDisabled?: boolean;
8
- /** Required inside a RudiCheckboxGroup: the value added to the group's array when checked. */
21
+ /**
22
+ * Required inside a RudiCheckboxGroup: the value added to the group's array when checked. On a standalone checkbox it is the value submitted under `name` in a native form.
23
+ */
9
24
  value?: string;
25
+ /** Form field name for a standalone checkbox. When checked, `name`=`value` is included in native form submission. */
26
+ name?: string;
10
27
  /** Error shown under a standalone checkbox (e.g. an unaccepted agreement); marks it invalid. */
11
28
  errorMessage?: string;
29
+ /**
30
+ * Extra class names, merged with the component's own classes. Always applied to the outermost element: the label, or the wrapper when `errorMessage` is set.
31
+ */
12
32
  className?: string;
13
33
  }
14
34
  /**
15
- * A checkbox. Inside a `RudiCheckboxGroup` it reads and updates the group's value (give it a `value`);
16
- * on its own it's controlled with `isSelected` / `onChange`.
35
+ * A checkbox with a visible label. Inside a `RudiCheckboxGroup` it reads and updates the group's value
36
+ * array (give it a `value`); on its own it is controlled with `isSelected` / `onChange`. The ref points at the `<input>`.
37
+ *
38
+ * @example
39
+ * <RudiCheckbox isSelected={agreed} onChange={setAgreed}>I agree to the terms</RudiCheckbox>
17
40
  */
18
41
  export declare const RudiCheckbox: import('react').ForwardRefExoticComponent<RudiCheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
19
42
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAOA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmED;;;GAGG;AACH,eAAO,MAAM,YAAY,gHASxB,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAOA,OAAO,gBAAgB,CAAA;AAEvB,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qEAAqE;IACrE,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,6BAA6B;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qHAAqH;IACrH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,gHASxB,CAAA"}
@@ -1,13 +1,33 @@
1
+ /** Props for `RudiCheckboxGroup`. */
1
2
  export interface RudiCheckboxGroupProps {
3
+ /** Group legend and accessible name. Required. */
2
4
  label: string;
5
+ /** Help text under the group. Hidden while `errorMessage` is shown. */
3
6
  description?: string;
7
+ /** Controlled array of checked `RudiCheckbox` values. Pair with `onChange`. */
4
8
  value?: string[];
9
+ /** Initial checked values for an uncontrolled group. */
5
10
  defaultValue?: string[];
11
+ /** Called with the full array of checked values (not an event) whenever one changes. */
6
12
  onChange?: (value: string[]) => void;
13
+ /** Disables every checkbox in the group. */
7
14
  isDisabled?: boolean;
15
+ /** Error text shown under the group. Setting it marks the group invalid. */
8
16
  errorMessage?: string;
17
+ /** The `RudiCheckbox` elements. Each needs a `value`. */
9
18
  children: React.ReactNode;
19
+ /** Extra class names for the group element, merged with the component's own classes. */
10
20
  className?: string;
11
21
  }
22
+ /**
23
+ * A labelled set of `RudiCheckbox` options whose selection is a string array. `label` is required. Each child
24
+ * checkbox must have a `value`.
25
+ *
26
+ * @example
27
+ * <RudiCheckboxGroup label="Toppings" value={toppings} onChange={setToppings}>
28
+ * <RudiCheckbox value="cheese">Cheese</RudiCheckbox>
29
+ * <RudiCheckbox value="olives">Olives</RudiCheckbox>
30
+ * </RudiCheckboxGroup>
31
+ */
12
32
  export declare function RudiCheckboxGroup(props: RudiCheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
13
33
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAiC9D"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAA;AAEvB,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACpC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yDAAyD;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAiC9D"}
@@ -1,13 +1,46 @@
1
+ /** Props for `RudiCircularProgress`. */
1
2
  export interface RudiCircularProgressProps {
3
+ /** Current progress, between `minValue` and `maxValue`. Values outside that range are clamped, and the ring shows 0% when the range is empty. */
2
4
  value: number;
5
+ /**
6
+ * Value that represents 0%.
7
+ * @default 0
8
+ */
3
9
  minValue?: number;
10
+ /**
11
+ * Value that represents 100%.
12
+ * @default 100
13
+ */
4
14
  maxValue?: number;
15
+ /** Accessible name of the progress indicator. */
5
16
  label: string;
17
+ /**
18
+ * Shows the rounded percentage in the center. Ignored when `children` is provided.
19
+ * @default false
20
+ */
6
21
  showValueLabel?: boolean;
22
+ /**
23
+ * Semantic color of the ring.
24
+ * @default 'default'
25
+ */
7
26
  variant?: 'default' | 'success' | 'warning' | 'error';
27
+ /**
28
+ * Diameter of the ring.
29
+ * @default 'md'
30
+ */
8
31
  size?: 'sm' | 'md' | 'lg';
32
+ /** Custom content for the center of the ring; replaces the percentage text. */
9
33
  children?: React.ReactNode;
34
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
10
35
  className?: string;
11
36
  }
37
+ /**
38
+ * Ring showing determinate progress, with optional content in the center. Use `RudiProgressBar` for a linear form.
39
+ * `label` is required; it is the accessible name and is also rendered as visible text below the ring.
40
+ * @example
41
+ * ```tsx
42
+ * <RudiCircularProgress label="Profile complete" value={65} showValueLabel />
43
+ * ```
44
+ */
12
45
  export declare function RudiCircularProgress({ value, minValue, maxValue, label, showValueLabel, variant, size, children, className, }: RudiCircularProgressProps): import("react/jsx-runtime").JSX.Element;
13
46
  //# sourceMappingURL=CircularProgress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../src/components/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AAEA,OAAO,yBAAyB,CAAA;AAEhC,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAY,EACZ,QAAc,EACd,KAAK,EACL,cAAsB,EACtB,OAAmB,EACnB,IAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,yBAAyB,2CA4D3B"}
1
+ {"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../src/components/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AAEA,OAAO,yBAAyB,CAAA;AAEhC,wCAAwC;AACxC,MAAM,WAAW,yBAAyB;IACxC,iJAAiJ;IACjJ,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACrD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAY,EACZ,QAAc,EACd,KAAK,EACL,cAAsB,EACtB,OAAmB,EACnB,IAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,yBAAyB,2CAgE3B"}
@@ -1,10 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Key } from 'react-aria';
3
+ /** Props for `RudiComboBox`. */
3
4
  export interface RudiComboBoxProps<T extends object> {
4
5
  /** Visible label. Required for accessibility. */
5
6
  label: string;
6
7
  /** The options. Render each with `RudiOption`; give rich content a `textValue` so it can be filtered. */
7
8
  items: Iterable<T>;
9
+ /** Render function returning a `RudiOption` for each item. */
8
10
  children: (item: T) => ReactNode;
9
11
  /** The selected option key (controlled). */
10
12
  selectedKey?: Key | null;
@@ -18,24 +20,47 @@ export interface RudiComboBoxProps<T extends object> {
18
20
  defaultInputValue?: string;
19
21
  /** Called with the input text whenever it changes. */
20
22
  onInputChange?: (value: string) => void;
23
+ /** Hint text shown in the input while it is empty. */
21
24
  placeholder?: string;
25
+ /** Help text under the field. Hidden while `errorMessage` is shown. */
22
26
  description?: string;
27
+ /** Error text shown under the field. Setting it marks the field invalid. */
23
28
  errorMessage?: string;
29
+ /**
30
+ * Marks the field required and adds an asterisk to the label.
31
+ * @default false
32
+ */
24
33
  isRequired?: boolean;
34
+ /**
35
+ * Disables the input and the chevron button.
36
+ * @default false
37
+ */
25
38
  isDisabled?: boolean;
26
39
  /** Form field name. The input's text is submitted under this name. */
27
40
  name?: string;
28
- /** What opens the list: typing (`input`, default), focusing the field (`focus`), or only the arrow keys / chevron button (`manual`). */
41
+ /** What opens the list: typing (`input`), focusing the field (`focus`), or only the arrow keys / chevron button (`manual`).
42
+ * @default 'input'
43
+ */
29
44
  menuTrigger?: 'focus' | 'input' | 'manual';
30
45
  /** Keep typed text that matches no option instead of reverting to the selected option on blur. */
31
46
  allowsCustomValue?: boolean;
32
- /** Message shown in the popover when the typed text matches no option. */
47
+ /**
48
+ * Message shown in the popover when the typed text matches no option.
49
+ * @default 'No matches'
50
+ */
33
51
  emptyMessage?: string;
52
+ /** Extra class names for the wrapper element, merged with the component's own classes. */
34
53
  className?: string;
35
54
  }
36
55
  /**
37
- * A searchable select: a text input that filters a list of options.
38
- * Options are `RudiOption` elements, the same as `RudiSelect`.
56
+ * A searchable select: a text input that filters a list of options by case- and accent-insensitive substring
57
+ * match. Options are `RudiOption` elements, the same as `RudiSelect`; prefer `RudiSelect` for short lists.
58
+ * `label` is required. The text in the input, not the selected key, is what a `name`d form field submits.
59
+ *
60
+ * @example
61
+ * <RudiComboBox label="City" items={cities} onSelectionChange={setCity}>
62
+ * {(c) => <RudiOption key={c.id}>{c.name}</RudiOption>}
63
+ * </RudiComboBox>
39
64
  */
40
65
  export declare function RudiComboBox<T extends object>(props: RudiComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
41
66
  //# sourceMappingURL=ComboBox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,SAAS,EAAa,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAGrC,OAAO,iBAAiB,CAAA;AAExB,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM;IACjD,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,yGAAyG;IACzG,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAA;IAChC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACxB,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IAC/B,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sDAAsD;IACtD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,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,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wIAAwI;IACxI,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC1C,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiFD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAwGzE"}
1
+ {"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,SAAS,EAAa,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAGrC,OAAO,iBAAiB,CAAA;AAExB,gCAAgC;AAChC,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM;IACjD,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,yGAAyG;IACzG,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAA;IAChC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IACxB,wDAAwD;IACxD,kBAAkB,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;IAC/B,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sDAAsD;IACtD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC1C,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiFD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAwGzE"}
@@ -1,16 +1,24 @@
1
1
  import { default as React } from 'react';
2
2
  import { RudiDateGranularity } from './dateUtils';
3
+ /** Props for `RudiDatePicker`. Values are plain strings, not date objects. */
3
4
  export interface RudiDatePickerProps {
5
+ /** Visible label and the field's accessible name. Required. */
4
6
  label: string;
5
7
  /**
6
8
  * Controlled value: `YYYY-MM-DD` for `granularity="day"`, or
7
9
  * `YYYY-MM-DDTHH:mm` for `granularity="minute"`. `null` clears the field.
8
10
  */
9
11
  value?: string | null;
12
+ /**
13
+ * Initial value for an uncontrolled field, in the same string format as `value`. Read only on mount.
14
+ */
10
15
  defaultValue?: string | null;
11
16
  /** Receives the value in the same string format, or `null` when cleared or incomplete. */
12
17
  onChange?: (value: string | null) => void;
13
- /** `day` (default) shows date segments; `minute` adds hour and minute segments. */
18
+ /**
19
+ * `day` shows date segments; `minute` adds hour and minute segments.
20
+ * @default 'day'
21
+ */
14
22
  granularity?: RudiDateGranularity;
15
23
  /** Earliest selectable value, same string format as `value`. */
16
24
  minValue?: string;
@@ -18,17 +26,37 @@ export interface RudiDatePickerProps {
18
26
  maxValue?: string;
19
27
  /** Return `true` to disable a `YYYY-MM-DD` date (weekends, holidays). */
20
28
  isDateUnavailable?: (date: string) => boolean;
29
+ /** Help text under the field. Hidden while the field is invalid (an `errorMessage`, or a value outside `minValue`/`maxValue` or flagged by `isDateUnavailable`). */
21
30
  description?: string;
22
31
  /** Shows the message and marks the field invalid. */
23
32
  errorMessage?: string;
33
+ /**
34
+ * Marks the field required and adds an asterisk to the label.
35
+ * @default false
36
+ */
24
37
  isRequired?: boolean;
38
+ /**
39
+ * Disables the field and the calendar button.
40
+ * @default false
41
+ */
25
42
  isDisabled?: boolean;
43
+ /**
44
+ * Makes the value focusable but not editable, and disables the calendar.
45
+ * @default false
46
+ */
26
47
  isReadOnly?: boolean;
27
- /** Form field name; submits the ISO string. */
48
+ /** Form field name. Submits `YYYY-MM-DD`, or `YYYY-MM-DDTHH:mm:ss` with `granularity="minute"`. */
28
49
  name?: string;
29
50
  /** Force a 12- or 24-hour clock in minute granularity. Defaults to the locale. */
30
51
  hourCycle?: 12 | 24;
52
+ /** Extra class names for the wrapper element, merged with the component's own classes. */
31
53
  className?: string;
32
54
  }
55
+ /**
56
+ * A date (or date and time) field with segmented keyboard entry and a calendar popover. Values are ISO strings: `YYYY-MM-DD`, or `YYYY-MM-DDTHH:mm` with `granularity="minute"`. `label` is required. Use `RudiDateRangePicker` for a start and end date. Ref points at the wrapper `div`.
57
+ *
58
+ * @example
59
+ * <RudiDatePicker label="Due date" value={due} onChange={setDue} />
60
+ */
33
61
  export declare const RudiDatePicker: React.ForwardRefExoticComponent<RudiDatePickerProps & React.RefAttributes<HTMLDivElement>>;
34
62
  //# sourceMappingURL=DatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAYtC,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAA;AAQpB,OAAO,mBAAmB,CAAA;AAE1B,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,mFAAmF;IACnF,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,4FAqG1B,CAAA"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAYtC,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAA;AAQpB,OAAO,mBAAmB,CAAA;AAE1B,8EAA8E;AAC9E,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAC7C,oKAAoK;IACpK,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAA;IACnB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,4FAqG1B,CAAA"}
@@ -1,13 +1,18 @@
1
1
  import { default as React } from 'react';
2
- /** A date range as `YYYY-MM-DD` strings. */
2
+ /** A date range as `YYYY-MM-DD` strings, passed to and from `RudiDateRangePicker`. */
3
3
  export interface RudiDateRange {
4
+ /** First day of the range, `YYYY-MM-DD`. */
4
5
  start: string;
6
+ /** Last day of the range, `YYYY-MM-DD`. */
5
7
  end: string;
6
8
  }
9
+ /** Props for `RudiDateRangePicker`. Values are plain strings, not date objects. */
7
10
  export interface RudiDateRangePickerProps {
11
+ /** Visible label and the field's accessible name. Required. */
8
12
  label: string;
9
13
  /** Controlled range of `YYYY-MM-DD` strings. `null` clears the field. */
10
14
  value?: RudiDateRange | null;
15
+ /** Initial range for an uncontrolled field. Read only on mount. */
11
16
  defaultValue?: RudiDateRange | null;
12
17
  /** Receives `{ start, end }` once both ends are set, or `null` when cleared. */
13
18
  onChange?: (value: RudiDateRange | null) => void;
@@ -17,17 +22,37 @@ export interface RudiDateRangePickerProps {
17
22
  maxValue?: string;
18
23
  /** Return `true` to disable a `YYYY-MM-DD` date. */
19
24
  isDateUnavailable?: (date: string) => boolean;
25
+ /** Help text under the field. Hidden while the field is invalid (an `errorMessage`, or a value outside `minValue`/`maxValue` or flagged by `isDateUnavailable`). */
20
26
  description?: string;
21
27
  /** Shows the message and marks the field invalid. */
22
28
  errorMessage?: string;
29
+ /**
30
+ * Marks the field required and adds an asterisk to the label.
31
+ * @default false
32
+ */
23
33
  isRequired?: boolean;
34
+ /**
35
+ * Disables the field and the calendar button.
36
+ * @default false
37
+ */
24
38
  isDisabled?: boolean;
39
+ /**
40
+ * Makes the value focusable but not editable, and disables the calendar.
41
+ * @default false
42
+ */
25
43
  isReadOnly?: boolean;
26
44
  /** Form field name for the start date (submits `YYYY-MM-DD`). */
27
45
  startName?: string;
28
46
  /** Form field name for the end date (submits `YYYY-MM-DD`). */
29
47
  endName?: string;
48
+ /** Extra class names for the wrapper element, merged with the component's own classes. */
30
49
  className?: string;
31
50
  }
51
+ /**
52
+ * A start and end date field with segmented keyboard entry and a range calendar popover. Values are `{ start, end }` objects of `YYYY-MM-DD` strings. `label` is required. Use `RudiDatePicker` for a single date. Day granularity only. Ref points at the wrapper `div`.
53
+ *
54
+ * @example
55
+ * <RudiDateRangePicker label="Stay" value={range} onChange={setRange} />
56
+ */
32
57
  export declare const RudiDateRangePicker: React.ForwardRefExoticComponent<RudiDateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
33
58
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAwBtC,OAAO,mBAAmB,CAAA;AAE1B,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,YAAY,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAA;IAChD,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAWD,eAAO,MAAM,mBAAmB,iGA0G9B,CAAA"}
1
+ {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAwBtC,OAAO,mBAAmB,CAAA;AAE1B,sFAAsF;AACtF,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,mFAAmF;AACnF,MAAM,WAAW,wBAAwB;IACvC,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,mEAAmE;IACnE,YAAY,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAA;IAChD,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAC7C,oKAAoK;IACpK,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAWD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,iGA0G9B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { CalendarDate, CalendarDateTime, DateValue } from '@internationalized/date';
2
+ /** Precision of a `RudiDatePicker`: `day` for `YYYY-MM-DD`, `minute` for `YYYY-MM-DDTHH:mm`. */
2
3
  export type RudiDateGranularity = 'day' | 'minute';
3
4
  /**
4
5
  * Parses a public `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm[:ss]` string into a
@@ -1 +1 @@
1
- {"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/dateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAKhB,KAAK,SAAS,EACf,MAAM,yBAAyB,CAAA;AAEhC,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,CAAA;AAIlD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,WAAW,GAAE,mBAA2B,GACvC,YAAY,GAAG,gBAAgB,GAAG,IAAI,CAYxC;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,EAChB,WAAW,GAAE,mBAA2B,GACvC,MAAM,CAKR;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,GAC1C,CAAC,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,GAAG,SAAS,CAG5C"}
1
+ {"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/dateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAKhB,KAAK,SAAS,EACf,MAAM,yBAAyB,CAAA;AAEhC,gGAAgG;AAChG,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,CAAA;AAIlD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,WAAW,GAAE,mBAA2B,GACvC,YAAY,GAAG,gBAAgB,GAAG,IAAI,CAYxC;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,EAChB,WAAW,GAAE,mBAA2B,GACvC,MAAM,CAKR;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,GAC1C,CAAC,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,GAAG,SAAS,CAG5C"}
@@ -0,0 +1,44 @@
1
+ import { default as React } from 'react';
2
+ /** One term and description pair in a `RudiDescriptionList`. */
3
+ export interface RudiDescriptionListItem {
4
+ /** The label, rendered in a `dt`. */
5
+ term: React.ReactNode;
6
+ /** The value, rendered in a `dd`. */
7
+ description: React.ReactNode;
8
+ /** Stable key for the row; also set as the DOM `id` of the row wrapper. Falls back to the index for the key. */
9
+ id?: string;
10
+ }
11
+ /** Props for `RudiDescriptionList`. */
12
+ export interface RudiDescriptionListProps {
13
+ /** Term and description pairs, in display order. */
14
+ items: RudiDescriptionListItem[];
15
+ /**
16
+ * `stacked` puts the term above its description. `inline` puts them side by side in two columns, and collapses back to stacked when the list's own width is narrow (a container query, not the viewport).
17
+ * @default 'stacked'
18
+ */
19
+ layout?: 'stacked' | 'inline';
20
+ /**
21
+ * Maximum number of columns for the `stacked` layout. Fewer are used when the container is narrow.
22
+ * @default 1
23
+ */
24
+ columns?: number;
25
+ /**
26
+ * Draws a hairline under each row.
27
+ * @default false
28
+ */
29
+ dividers?: boolean;
30
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
31
+ className?: string;
32
+ }
33
+ /**
34
+ * Semantic `dl` for read-only key-value data such as record details. Use a table for data with several attributes per row.
35
+ * @example
36
+ * ```tsx
37
+ * <RudiDescriptionList
38
+ * layout="inline"
39
+ * items={[{ term: 'Status', description: 'Shipped' }, { term: 'Carrier', description: 'DHL' }]}
40
+ * />
41
+ * ```
42
+ */
43
+ export declare function RudiDescriptionList({ items, layout, columns, dividers, className, }: RudiDescriptionListProps): import("react/jsx-runtime").JSX.Element;
44
+ //# sourceMappingURL=DescriptionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionList.d.ts","sourceRoot":"","sources":["../../../src/components/DescriptionList/DescriptionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,wBAAwB,CAAA;AAE/B,gEAAgE;AAChE,MAAM,WAAW,uBAAuB;IACtC,qCAAqC;IACrC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,qCAAqC;IACrC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,gHAAgH;IAChH,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAkB,EAClB,OAAW,EACX,QAAgB,EAChB,SAAS,GACV,EAAE,wBAAwB,2CA8B1B"}