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,11 +1,41 @@
1
1
  export interface RudiBoxProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Padding on all four sides; any CSS length, such as `"1rem"` or `"var(--rudi-spacing-6)"`. Falls back to the `--rudi-layout-box-padding` token (1rem). */
2
3
  padding?: string;
4
+ /**
5
+ * Draws a 1px border with the themed border color and radius.
6
+ *
7
+ * @default false
8
+ */
3
9
  bordered?: boolean;
10
+ /**
11
+ * Swaps to the inverted surface and text colors (dark panel on a light theme, and the reverse).
12
+ *
13
+ * @default false
14
+ */
4
15
  invert?: boolean;
5
- /** Stick to the top of the scroll container while scrolling. A string sets the top offset (e.g. `"1rem"`). */
16
+ /**
17
+ * Stick to the top of the scroll container while scrolling. A string sets the top offset (e.g. `"1rem"`).
18
+ *
19
+ * @default false
20
+ */
6
21
  sticky?: boolean | string;
22
+ /**
23
+ * Element or component to render as the root.
24
+ *
25
+ * @default 'div'
26
+ */
7
27
  as?: React.ElementType;
28
+ /** Content placed inside the padded container. */
8
29
  children?: React.ReactNode;
9
30
  }
31
+ /**
32
+ * Padded container with an optional border or inverted surface. Use it for cards, panels, and callouts; use `RudiStack` or `RudiCluster` to space the things inside it, and `RudiCenter` when you need a max-width rather than padding.
33
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
34
+ *
35
+ * @example
36
+ * <RudiBox padding="1.5rem" bordered>
37
+ * <RudiText>Panel content</RudiText>
38
+ * </RudiBox>
39
+ */
10
40
  export declare const RudiBox: import('react').ForwardRefExoticComponent<RudiBoxProps & import('react').RefAttributes<HTMLElement>>;
11
41
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,8GAA8G;IAC9G,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO,sGAkClB,CAAA"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,4JAA4J;IAC5J,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,sGAkClB,CAAA"}
@@ -1,9 +1,31 @@
1
1
  export interface RudiCenterProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Maximum content width; any CSS length, such as `"45rem"`. Falls back to the `--rudi-layout-center-max-width` token (60rem). */
2
3
  maxWidth?: string;
4
+ /** Minimum inline padding on each side, so content never touches the viewport edge; any CSS length. Falls back to the `--rudi-layout-center-gutters` token (1rem). */
3
5
  gutters?: string;
6
+ /**
7
+ * Also centers each child horizontally by its own content width, as a column flex container.
8
+ *
9
+ * @default false
10
+ */
4
11
  intrinsic?: boolean;
12
+ /**
13
+ * Element or component to render as the root.
14
+ *
15
+ * @default 'div'
16
+ */
5
17
  as?: React.ElementType;
18
+ /** Content to center. */
6
19
  children?: React.ReactNode;
7
20
  }
21
+ /**
22
+ * Horizontally centers its content in a column capped at a maximum width. Use it for article text, hero copy, and page-width wrappers; use `RudiBox` for padding and `RudiCover` for vertical centering. The max width is added to the gutters because the box uses `content-box` sizing.
23
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
24
+ *
25
+ * @example
26
+ * <RudiCenter maxWidth="40rem">
27
+ * <RudiProse>...</RudiProse>
28
+ * </RudiCenter>
29
+ */
8
30
  export declare const RudiCenter: import('react').ForwardRefExoticComponent<RudiCenterProps & import('react').RefAttributes<HTMLElement>>;
9
31
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,yGA+BrB,CAAA"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,kIAAkI;IAClI,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sKAAsK;IACtK,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,yGA+BrB,CAAA"}
@@ -1,9 +1,28 @@
1
1
  export interface RudiClusterProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Gap between items, both horizontally and between wrapped rows; any CSS length. Falls back to the `--rudi-layout-cluster-space` token (1rem). */
2
3
  space?: string;
4
+ /** Horizontal distribution of items along each row (`justify-content`). Defaults to `flex-start` in CSS. */
3
5
  justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
6
+ /** Vertical alignment of items within each row (`align-items`). Defaults to `center` in CSS. */
4
7
  align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
8
+ /**
9
+ * Element or component to render as the root. Use `"ul"` or `"ol"` for a list; bullets and indent are removed.
10
+ *
11
+ * @default 'div'
12
+ */
5
13
  as?: React.ElementType;
14
+ /** Items to lay out in a row. */
6
15
  children?: React.ReactNode;
7
16
  }
17
+ /**
18
+ * Horizontal row of items that wraps onto new lines when space runs out. Choose it for tags, button groups, and breadcrumbs. Use `RudiStack` for a vertical list, and `RudiSwitcher` when a row should collapse to a single column as a whole instead of wrapping item by item.
19
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
20
+ *
21
+ * @example
22
+ * <RudiCluster space="0.5rem" justify="flex-end">
23
+ * <RudiButton onPress={cancel}>Cancel</RudiButton>
24
+ * <RudiButton onPress={save}>Save</RudiButton>
25
+ * </RudiCluster>
26
+ */
8
27
  export declare const RudiCluster: import('react').ForwardRefExoticComponent<RudiClusterProps & import('react').RefAttributes<HTMLElement>>;
9
28
  //# sourceMappingURL=Cluster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EACJ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,CAAA;IAClB,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACrE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GA4BtB,CAAA"}
1
+ {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,mJAAmJ;IACnJ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4GAA4G;IAC5G,OAAO,CAAC,EACJ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,CAAA;IAClB,gGAAgG;IAChG,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACrE;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,0GA4BtB,CAAA"}
@@ -1,14 +1,42 @@
1
1
  export interface RudiCoverProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Minimum block size of the cover; any CSS length. Falls back to the `--rudi-layout-cover-min-height` token (100vh). */
2
3
  minHeight?: string;
4
+ /** Minimum vertical space between the cover's children; any CSS length. Falls back to the `--rudi-layout-cover-space` token (1.5rem). */
3
5
  space?: string;
6
+ /**
7
+ * Element or component to render as the root.
8
+ *
9
+ * @default 'div'
10
+ */
4
11
  as?: React.ElementType;
12
+ /** Optional header and footer elements, plus one `RudiCover.Centered` child. */
5
13
  children?: React.ReactNode;
6
14
  }
15
+ /** Props for `RudiCover.Centered`. Other DOM props are spread onto the element. */
7
16
  export interface RudiCoverCenteredProps extends React.HTMLAttributes<HTMLElement> {
17
+ /**
18
+ * Element or component to render as the root.
19
+ *
20
+ * @default 'div'
21
+ */
8
22
  as?: React.ElementType;
23
+ /** The principal content to center vertically. */
9
24
  children?: React.ReactNode;
10
25
  }
26
+ /**
27
+ * Full-height column that pins an optional first and last child to the top and bottom and centers `RudiCover.Centered` in between. Use it for hero sections and login pages; use `RudiCenter` for horizontal centering only.
28
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
29
+ *
30
+ * @example
31
+ * <RudiCover minHeight="100vh">
32
+ * <RudiTopBar />
33
+ * <RudiCover.Centered>
34
+ * <RudiHeading level={1}>Sign in</RudiHeading>
35
+ * </RudiCover.Centered>
36
+ * </RudiCover>
37
+ */
11
38
  export declare const RudiCover: import('react').ForwardRefExoticComponent<RudiCoverProps & import('react').RefAttributes<HTMLElement>> & {
39
+ /** The child centered vertically between the cover's other children. Use at most one per cover. */
12
40
  Centered: import('react').ForwardRefExoticComponent<RudiCoverCenteredProps & import('react').RefAttributes<HTMLElement>>;
13
41
  };
14
42
  //# sourceMappingURL=Cover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC/E,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AA0CD,eAAO,MAAM,SAAS;;CAAwD,CAAA"}
1
+ {"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,yHAAyH;IACzH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,mFAAmF;AACnF,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC/E;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AA0CD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS;IACpB,mGAAmG;;CAEnG,CAAA"}
@@ -1,8 +1,26 @@
1
1
  export interface RudiGridProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Minimum width of each column before the grid fits fewer columns; any CSS length, capped at 100% of the container. Falls back to the `--rudi-layout-grid-min-cell` token (15rem). */
2
3
  minCellWidth?: string;
4
+ /** Gap between rows and columns; any CSS length. Falls back to the `--rudi-layout-grid-space` token (1.5rem). */
3
5
  space?: string;
6
+ /**
7
+ * Element or component to render as the root. Use `"ul"` or `"ol"` for a list; bullets and indent are removed.
8
+ *
9
+ * @default 'div'
10
+ */
4
11
  as?: React.ElementType;
12
+ /** Items, one per cell. */
5
13
  children?: React.ReactNode;
6
14
  }
15
+ /**
16
+ * Responsive grid of equal-width columns that adds or drops columns as the container width changes, with no breakpoints. Choose it for card grids, galleries, and dashboards of similar items. Use `RudiSwitcher` for a single row that stacks all at once, and `RudiSidebar` for two panels of different widths.
17
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
18
+ *
19
+ * @example
20
+ * <RudiGrid minCellWidth="16rem" space="1rem">
21
+ * <RudiCard>One</RudiCard>
22
+ * <RudiCard>Two</RudiCard>
23
+ * </RudiGrid>
24
+ */
7
25
  export declare const RudiGrid: import('react').ForwardRefExoticComponent<RudiGridProps & import('react').RefAttributes<HTMLElement>>;
8
26
  //# sourceMappingURL=Grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,QAAQ,uGA0BnB,CAAA"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,uLAAuL;IACvL,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iHAAiH;IACjH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,uGA0BnB,CAAA"}
@@ -1,11 +1,40 @@
1
1
  export interface RudiSidebarProps extends React.HTMLAttributes<HTMLElement> {
2
+ /**
3
+ * Which edge the sidebar sits on. The sidebar is the first child when `"left"` and the last child when `"right"`.
4
+ *
5
+ * @default 'left'
6
+ */
2
7
  side?: 'left' | 'right';
8
+ /** Preferred width of the sidebar; any CSS length. Falls back to the `--rudi-layout-sidebar-width` token (20rem). */
3
9
  sideWidth?: string;
10
+ /** Minimum width of the content child, as a CSS length or percentage, before the two panels wrap into a column. Falls back to the `--rudi-layout-sidebar-content-min` token (50%). */
4
11
  contentMin?: string;
12
+ /** Gap between the two panels, including after they wrap; any CSS length. Falls back to the `--rudi-layout-sidebar-space` token (1.5rem). */
5
13
  space?: string;
14
+ /**
15
+ * Keeps each panel at its own content height instead of stretching to match the taller one.
16
+ *
17
+ * @default false
18
+ */
6
19
  noStretch?: boolean;
20
+ /**
21
+ * Element or component to render as the root.
22
+ *
23
+ * @default 'div'
24
+ */
7
25
  as?: React.ElementType;
26
+ /** Exactly two children: the sidebar and the main content, in DOM order matching `side`. */
8
27
  children?: React.ReactNode;
9
28
  }
29
+ /**
30
+ * Two-panel layout where one panel has a set width and the other fills the rest, wrapping to a column when the content would drop below `contentMin`. Choose it for navigation or filters beside content. Use `RudiSwitcher` for panels of equal weight, and `RudiAppShell` for the application frame.
31
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
32
+ *
33
+ * @example
34
+ * <RudiSidebar sideWidth="16rem">
35
+ * <aside>Filters</aside>
36
+ * <main>Results</main>
37
+ * </RudiSidebar>
38
+ */
10
39
  export declare const RudiSidebar: import('react').ForwardRefExoticComponent<RudiSidebarProps & import('react').RefAttributes<HTMLElement>>;
11
40
  //# sourceMappingURL=Sidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GAmCtB,CAAA"}
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvB,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sLAAsL;IACtL,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,6IAA6I;IAC7I,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,0GAmCtB,CAAA"}
@@ -1,13 +1,32 @@
1
1
  export interface RudiStackProps extends React.HTMLAttributes<HTMLElement> {
2
2
  /** CSS spacing value. Defaults to --rudi-layout-stack-space-default token. */
3
3
  space?: string;
4
- /** Apply spacing recursively to all nested elements, not just direct children. */
4
+ /**
5
+ * Apply spacing recursively to all nested elements, not just direct children.
6
+ *
7
+ * @default false
8
+ */
5
9
  recursive?: boolean;
6
10
  /** 1-based index of the child after which to insert an auto margin, splitting the stack. */
7
11
  splitAfter?: number;
8
- /** HTML element to render. */
12
+ /**
13
+ * HTML element to render.
14
+ *
15
+ * @default 'div'
16
+ */
9
17
  as?: React.ElementType;
18
+ /** Items to space out vertically. */
10
19
  children?: React.ReactNode;
11
20
  }
21
+ /**
22
+ * Vertical list of children with consistent spacing. Choose it for forms, card content, and page sections; use `RudiCluster` for items that run horizontally and wrap, and `RudiSwitcher` for a row that collapses to a column.
23
+ * Polymorphic through `as` (use `"ul"` or `"ol"` for a list; bullets and indent are removed); unrecognised DOM props are spread onto the root element, and `className` is merged with the built-in class, not replaced.
24
+ *
25
+ * @example
26
+ * <RudiStack space="1rem">
27
+ * <RudiInput label="Name" />
28
+ * <RudiInput label="Email" />
29
+ * </RudiStack>
30
+ */
12
31
  export declare const RudiStack: import('react').ForwardRefExoticComponent<RudiStackProps & import('react').RefAttributes<HTMLElement>>;
13
32
  //# sourceMappingURL=Stack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wGAsDpB,CAAA"}
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,wGAsDpB,CAAA"}
@@ -1,9 +1,28 @@
1
1
  export interface RudiSwitcherProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** Container width below which the children stack into a single column and above which they share one row; any CSS length. Falls back to the `--rudi-layout-switcher-threshold` token (30rem). */
2
3
  threshold?: string;
4
+ /** Gap between children, in both row and column layouts; any CSS length. Falls back to the `--rudi-layout-switcher-space` token (1.5rem). */
3
5
  space?: string;
6
+ /** Maximum number of children that can share a row. When there are more children than `limit`, they all stack in a single column, each at full width, at any container width. Unset by default, so only `threshold` decides. */
4
7
  limit?: number;
8
+ /**
9
+ * Element or component to render as the root.
10
+ *
11
+ * @default 'div'
12
+ */
5
13
  as?: React.ElementType;
14
+ /** Items that sit in a row or stack together. */
6
15
  children?: React.ReactNode;
7
16
  }
17
+ /**
18
+ * Row of children that switches to a single column, all at once, when the container is narrower than `threshold`. Choose it for form field groups and pricing cards. Use `RudiCluster` when items should wrap one by one, and `RudiGrid` for many equal cells in several rows.
19
+ * Polymorphic through `as`; unrecognised DOM props (`id`, `aria-*`, `data-*`, handlers) are spread onto the root element, and `className` is merged with the built-in class, not replaced.
20
+ *
21
+ * @example
22
+ * <RudiSwitcher threshold="40rem">
23
+ * <RudiInput label="First name" />
24
+ * <RudiInput label="Last name" />
25
+ * </RudiSwitcher>
26
+ */
8
27
  export declare const RudiSwitcher: import('react').ForwardRefExoticComponent<RudiSwitcherProps & import('react').RefAttributes<HTMLElement>>;
9
28
  //# sourceMappingURL=Switcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,2GA6BxB,CAAA"}
1
+ {"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,kMAAkM;IAClM,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6IAA6I;IAC7I,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gOAAgO;IAChO,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,2GAiCxB,CAAA"}