rudiment-ui 0.4.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,20 +1,59 @@
1
+ /** Props for `RudiDialog`. */
1
2
  export interface RudiDialogProps {
3
+ /** Controls visibility. The dialog is controlled only; it renders nothing while `false`. */
2
4
  isOpen: boolean;
5
+ /** Called when the user dismisses the dialog (close button, Escape, or outside click). Set `isOpen` to `false` here. */
3
6
  onClose: () => void;
7
+ /** Heading text. Rendered as the `h2` that gives the dialog its accessible name. */
4
8
  title: string;
9
+ /**
10
+ * Allows closing with the header close button, Escape and outside click. When `false`, none of
11
+ * those close it and the close button is hidden, so provide an action in a `RudiDialog.Footer`.
12
+ * @default true
13
+ */
5
14
  isDismissable?: boolean;
15
+ /**
16
+ * Panel width.
17
+ * @default 'md'
18
+ */
6
19
  size?: 'sm' | 'md' | 'lg';
20
+ /** Dialog body. A `RudiDialog.Footer` child is pulled out and pinned below the scrolling body. */
7
21
  children: React.ReactNode;
22
+ /**
23
+ * Accessible label of the header close button.
24
+ * @default 'Close'
25
+ */
26
+ closeLabel?: string;
27
+ /** Class merged onto the dialog panel. */
8
28
  className?: string;
9
29
  }
30
+ /** Props for `RudiDialog.Footer`. */
10
31
  export interface RudiDialogFooterProps {
11
32
  /** Action buttons, primary action last. */
12
33
  children: React.ReactNode;
34
+ /** Class merged onto the footer element. */
13
35
  className?: string;
14
36
  }
15
37
  /** Action row pinned to the bottom of the dialog (it stays visible while the body scrolls). */
16
38
  declare function DialogFooter({ children, className }: RudiDialogFooterProps): import("react/jsx-runtime").JSX.Element;
39
+ /**
40
+ * Modal dialog with a title, scrolling body and optional pinned footer. Use it for focused tasks
41
+ * and confirmations that block the page; it traps focus, restores focus on close, and locks page
42
+ * scroll. It is controlled: you own `isOpen` and must clear it in `onClose`. `title` is required
43
+ * and is the accessible name. Put action buttons in `RudiDialog.Footer`, primary action last.
44
+ * The forwarded ref points at the dialog panel element.
45
+ *
46
+ * @example
47
+ * <RudiDialog isOpen={open} onClose={() => setOpen(false)} title="Delete shipment">
48
+ * <p>This cannot be undone.</p>
49
+ * <RudiDialog.Footer>
50
+ * <RudiButton variant="secondary" onPress={() => setOpen(false)}>Cancel</RudiButton>
51
+ * <RudiButton variant="destructive" onPress={handleDelete}>Delete</RudiButton>
52
+ * </RudiDialog.Footer>
53
+ * </RudiDialog>
54
+ */
17
55
  export declare const RudiDialog: import('react').ForwardRefExoticComponent<RudiDialogProps & import('react').RefAttributes<HTMLDivElement>> & {
56
+ /** Action row pinned to the bottom of the dialog; primary action last. */
18
57
  Footer: typeof DialogFooter;
19
58
  };
20
59
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,+FAA+F;AAC/F,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CAEnE;AA0FD,eAAO,MAAM,UAAU;;CAAsD,CAAA"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,cAAc,CAAA;AAErB,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,4FAA4F;IAC5F,MAAM,EAAE,OAAO,CAAA;IACf,wHAAwH;IACxH,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,kGAAkG;IAClG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,qCAAqC;AACrC,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,+FAA+F;AAC/F,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CAEnE;AA2FD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU;IACrB,0EAA0E;;CAE1E,CAAA"}
@@ -1,15 +1,28 @@
1
1
  import { ReactNode } from 'react';
2
+ /** Props for `RudiDivider`. */
2
3
  export interface RudiDividerProps {
3
- /** Layout direction of the rule. */
4
+ /**
5
+ * Direction of the rule.
6
+ * @default 'horizontal'
7
+ */
4
8
  orientation?: 'horizontal' | 'vertical';
5
- /** Margin applied on the block/inline axis around the rule. */
6
- spacing?: 'none' | 'sm' | 'md' | 'lg';
7
9
  /**
8
- * Optional centered label. Only meaningful for a horizontal divider — it
9
- * renders a rule / text / rule row instead of a bare line.
10
+ * Margin around the rule, on the block axis when horizontal and the inline axis when vertical.
11
+ * @default 'md'
10
12
  */
13
+ spacing?: 'none' | 'sm' | 'md' | 'lg';
14
+ /** Centered label rendered between two rules. Horizontal only; ignored when vertical. */
11
15
  label?: ReactNode;
16
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
12
17
  className?: string;
13
18
  }
19
+ /**
20
+ * Thin rule that separates sections of content. Renders a native `hr` for a plain horizontal rule, and a `role="separator"` element when vertical or labelled.
21
+ * A `label` only applies to horizontal dividers; it is ignored when `orientation="vertical"`.
22
+ * @example
23
+ * ```tsx
24
+ * <RudiDivider label="or" />
25
+ * ```
26
+ */
14
27
  export declare function RudiDivider({ orientation, spacing, label, className, }: RudiDividerProps): import("react/jsx-runtime").JSX.Element;
15
28
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAA0B,EAC1B,OAAc,EACd,KAAK,EACL,SAAS,GACV,EAAE,gBAAgB,2CA8BlB"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,eAAe,CAAA;AAEtB,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,yFAAyF;IACzF,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,WAA0B,EAC1B,OAAc,EACd,KAAK,EACL,SAAS,GACV,EAAE,gBAAgB,2CA8BlB"}
@@ -1,20 +1,34 @@
1
+ /** Props for `RudiDot`. */
1
2
  export interface RudiDotProps {
2
- /** Semantic color of the dot. Ignored when `color` is set. */
3
- tone?: 'default' | 'success' | 'warning' | 'error' | 'info';
4
3
  /**
5
- * Explicit color (any CSS color or design token, e.g.
6
- * `var(--rudi-color-dataviz-3)`) for domain accents. Overrides `tone`.
4
+ * Semantic color of the dot. Ignored when `color` is set.
5
+ * @default 'default'
7
6
  */
7
+ tone?: 'default' | 'success' | 'warning' | 'error' | 'info';
8
+ /** Explicit CSS color or token, e.g. `var(--rudi-color-dataviz-3)`, for domain accents. Overrides `tone`. */
8
9
  color?: string;
10
+ /**
11
+ * Diameter of the dot.
12
+ * @default 'md'
13
+ */
9
14
  size?: 'sm' | 'md' | 'lg';
10
- /** Renders an animated halo to draw attention (e.g. "live"). */
11
- pulse?: boolean;
12
15
  /**
13
- * Accessible label. When provided the dot is exposed as a status with
14
- * visually-hidden text; otherwise it is decorative (`aria-hidden`).
16
+ * Renders an animated halo to draw attention, e.g. for a "live" state.
17
+ * @default false
15
18
  */
19
+ pulse?: boolean;
20
+ /** Accessible label. When set the dot is exposed as `role="status"` with visually hidden text; otherwise it is hidden from assistive technology. */
16
21
  label?: string;
22
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
17
23
  className?: string;
18
24
  }
25
+ /**
26
+ * Small colored circle for status or category. Use `RudiBadge` when the indicator needs text beside it.
27
+ * Decorative (`aria-hidden`) unless `label` is set, in which case it is exposed as a status with visually hidden text.
28
+ * @example
29
+ * ```tsx
30
+ * <RudiDot tone="success" pulse label="Live" />
31
+ * ```
32
+ */
19
33
  export declare function RudiDot({ tone, color, size, pulse, label, className, }: RudiDotProps): import("react/jsx-runtime").JSX.Element;
20
34
  //# sourceMappingURL=Dot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../src/components/Dot/Dot.tsx"],"names":[],"mappings":"AAEA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,YAAY;IAC3B,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC3D;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,OAAO,CAAC,EACtB,IAAgB,EAChB,KAAK,EACL,IAAW,EACX,KAAa,EACb,KAAK,EACL,SAAS,GACV,EAAE,YAAY,2CAqBd"}
1
+ {"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../src/components/Dot/Dot.tsx"],"names":[],"mappings":"AAEA,OAAO,WAAW,CAAA;AAElB,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC3D,6GAA6G;IAC7G,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oJAAoJ;IACpJ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAgB,EAChB,KAAK,EACL,IAAW,EACX,KAAa,EACb,KAAK,EACL,SAAS,GACV,EAAE,YAAY,2CAqBd"}
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ /** Props for `RudiEmptyState`. */
2
3
  export interface RudiEmptyStateProps {
3
4
  /** Iconify icon name shown above the title. Decorative. */
4
5
  icon?: string;
@@ -8,11 +9,31 @@ export interface RudiEmptyStateProps {
8
9
  description?: ReactNode;
9
10
  /** Call to action, e.g. a `RudiButton`. */
10
11
  action?: ReactNode;
11
- /** Semantic heading level for the title. Defaults to 3. */
12
+ /**
13
+ * Semantic heading level for the title.
14
+ * @default 3
15
+ */
12
16
  headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
13
- /** `sm` for table cells and cards, `md` for page sections. Defaults to `md`. */
17
+ /**
18
+ * `sm` for table cells and cards, `md` for page sections.
19
+ * @default 'md'
20
+ */
14
21
  size?: 'sm' | 'md';
22
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
15
23
  className?: string;
16
24
  }
25
+ /**
26
+ * Placeholder for a view, table, or card with no content, explaining why and offering a next step. Forwards its ref to the root `div`.
27
+ * The title renders as a heading, so set `headingLevel` to fit the surrounding outline.
28
+ * @example
29
+ * ```tsx
30
+ * <RudiEmptyState
31
+ * icon="lucide:inbox"
32
+ * title="No shipments yet"
33
+ * description="Shipments appear here once an order is placed."
34
+ * action={<RudiButton onPress={create}>New order</RudiButton>}
35
+ * />
36
+ * ```
37
+ */
17
38
  export declare const RudiEmptyState: import('react').ForwardRefExoticComponent<RudiEmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
18
39
  //# sourceMappingURL=EmptyState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlD,OAAO,mBAAmB,CAAA;AAE1B,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,0DAA0D;IAC1D,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC,gFAAgF;IAChF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,gHAiC1B,CAAA"}
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlD,OAAO,mBAAmB,CAAA;AAE1B,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,0DAA0D;IAC1D,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,gHAiC1B,CAAA"}
@@ -1,4 +1,8 @@
1
1
  import { default as React } from 'react';
2
+ /**
3
+ * Props for `RudiForm`. Also accepts native `<form>` attributes except `onSubmit` and `children`,
4
+ * and spreads them onto the element. `noValidate` defaults to `true`, so validation is left to the app.
5
+ */
2
6
  export interface RudiFormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'children'> {
3
7
  /** Called on submit with the form's data. The page never reloads. */
4
8
  onSubmit?: (data: FormData, event: React.FormEvent<HTMLFormElement>) => void;
@@ -6,12 +10,27 @@ export interface RudiFormProps extends Omit<React.FormHTMLAttributes<HTMLFormEle
6
10
  * Problems to fix, shown as a summary at the top. After each submit that leaves
7
11
  * problems, the summary receives focus so keyboard and screen-reader users land
8
12
  * on it. Updating `errors` while the user edits never moves focus.
13
+ * @default []
9
14
  */
10
15
  errors?: string[];
11
- /** Summary heading. Defaults to "1 problem to fix" / "N problems to fix". */
16
+ /**
17
+ * Builds the summary heading from the error count.
18
+ * @default defaultTitle
19
+ */
12
20
  errorTitle?: (count: number) => string;
21
+ /** The form's fields and buttons. */
13
22
  children: React.ReactNode;
23
+ /** Extra class names for the form element, merged with the component's own classes. */
14
24
  className?: string;
15
25
  }
26
+ /**
27
+ * A `<form>` that collects submitted values as `FormData`, never reloads the page, and shows a focusable error summary when `errors` is non-empty. Validate in `onSubmit` and pass the messages back via `errors`; field-level `errorMessage` props are set separately on each field.
28
+ *
29
+ * @example
30
+ * <RudiForm onSubmit={(data) => save(data)} errors={errors}>
31
+ * <RudiInput label="Name" name="name" />
32
+ * <RudiButton type="submit">Save</RudiButton>
33
+ * </RudiForm>
34
+ */
16
35
  export declare const RudiForm: React.ForwardRefExoticComponent<RudiFormProps & React.RefAttributes<HTMLFormElement>>;
17
36
  //# sourceMappingURL=Form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAItE,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAChF,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAA;IAC5E;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID,eAAO,MAAM,QAAQ,uFAyCnB,CAAA"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAItE,OAAO,YAAY,CAAA;AAEnB;;;GAGG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAChF,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAA;IAC5E;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,qCAAqC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,uFAyCnB,CAAA"}
@@ -1,9 +1,26 @@
1
+ /** Props for `RudiIcon`. */
1
2
  export interface RudiIconProps {
3
+ /** Iconify icon name in `prefix:name` form, e.g. `"mdi:close"` or `"lucide:check"`. */
2
4
  icon: string;
5
+ /**
6
+ * Preset size, or a number for an exact width and height in px.
7
+ * @default 'md'
8
+ */
3
9
  size?: 'sm' | 'md' | 'lg' | number;
10
+ /** CSS color applied to the icon. Defaults to the inherited text color (`currentColor`). */
4
11
  color?: string;
12
+ /** Accessible name. When set the icon is exposed as `role="img"`; when omitted it is hidden from assistive technology. */
5
13
  label?: string;
14
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
6
15
  className?: string;
7
16
  }
17
+ /**
18
+ * Renders an Iconify icon by name (for example `"mdi:close"`). Icons are always passed as name strings, never imported components.
19
+ * Decorative by default (`aria-hidden`). Pass `label` to expose it as an image with an accessible name. Forwards its ref to the wrapping `span`.
20
+ * @example
21
+ * ```tsx
22
+ * <RudiIcon icon="mdi:check-circle" size="lg" label="Verified" />
23
+ * ```
24
+ */
8
25
  export declare const RudiIcon: import('react').ForwardRefExoticComponent<RudiIconProps & import('react').RefAttributes<HTMLSpanElement>>;
9
26
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,2GAuBpB,CAAA"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,YAAY,CAAA;AAEnB,4BAA4B;AAC5B,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAClC,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0HAA0H;IAC1H,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,2GAuBpB,CAAA"}
@@ -1,12 +1,36 @@
1
1
  import { default as React } from 'react';
2
2
  import { AriaButtonProps } from 'react-aria';
3
+ /** Props for `RudiIconButton`. Also accepts React Aria's `AriaButtonProps` (`onPress`, `isDisabled`, `type`, ...). */
3
4
  export interface RudiIconButtonProps extends AriaButtonProps {
5
+ /** Accessible name. Required because the button has no visible text. */
4
6
  'aria-label': string;
7
+ /**
8
+ * Visual emphasis: `primary` for the main action, `destructive` for irreversible actions, `ghost` for low-emphasis ones.
9
+ * @default 'secondary'
10
+ */
5
11
  variant?: 'primary' | 'secondary' | 'destructive' | 'ghost';
12
+ /**
13
+ * Button height and icon size.
14
+ * @default 'md'
15
+ */
6
16
  size?: 'sm' | 'md' | 'lg';
17
+ /**
18
+ * Sets `aria-busy` and disables the button so it cannot be pressed again. Unlike `RudiButton`, it shows no spinner.
19
+ * @default false
20
+ */
7
21
  isLoading?: boolean;
22
+ /** Extra class names, merged with the component's own classes. */
8
23
  className?: string;
24
+ /** The icon element, e.g. `<RudiIcon icon="mdi:close" />`. Must be a single element. */
9
25
  children: React.ReactElement;
10
26
  }
27
+ /**
28
+ * A button that shows only an icon. Requires `aria-label` since there is no visible text; use `RudiButton` with `iconBefore` when a text label fits. Handle activation with `onPress`, not `onClick`.
29
+ *
30
+ * @example
31
+ * <RudiIconButton aria-label="Close" onPress={close}>
32
+ * <RudiIcon icon="mdi:close" />
33
+ * </RudiIconButton>
34
+ */
11
35
  export declare const RudiIconButton: React.ForwardRefExoticComponent<RudiIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
36
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD,OAAO,mBAAmB,CAAA;AAE1B,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAA;IAC3D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAC7B;AAED,eAAO,MAAM,cAAc,+FA8B1B,CAAA"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD,OAAO,mBAAmB,CAAA;AAE1B,sHAAsH;AACtH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAA;IAC3D;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wFAAwF;IACxF,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,+FA8B1B,CAAA"}
@@ -1,18 +1,43 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode, SyntheticEvent } from 'react';
2
+ /** Props for `RudiImage`. */
2
3
  export interface RudiImageProps {
4
+ /** Image URL. */
3
5
  src: string;
6
+ /** Text alternative for the image. Use an empty string when the image is decorative. */
4
7
  alt: string;
5
- /** CSS aspect ratio for the frame, e.g. `'16 / 9'`, `'1 / 1'`, `'4 / 3'`. */
8
+ /** CSS aspect ratio for the frame, e.g. `'16 / 9'`, `'1 / 1'`, `'4 / 3'`. Without it the frame sizes to the image. */
6
9
  aspectRatio?: CSSProperties['aspectRatio'];
10
+ /**
11
+ * How the image fills the frame: `cover` crops to fill, `contain` shows the whole image.
12
+ * @default 'cover'
13
+ */
7
14
  fit?: 'cover' | 'contain';
15
+ /**
16
+ * Corner radius of the frame.
17
+ * @default 'md'
18
+ */
8
19
  radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
9
- loading?: 'lazy' | 'eager';
10
20
  /**
11
- * Content layered over the image (badges, wishlist button, gradient scrim,
12
- * duotone wash). Rendered in a positioned layer above the picture.
21
+ * Native loading strategy for the `img`.
22
+ * @default 'lazy'
13
23
  */
24
+ loading?: 'lazy' | 'eager';
25
+ /** Content shown in place of the image when it fails to load. Defaults to a muted placeholder with an `image-off` icon that keeps the frame's `aspectRatio` and `radius`. */
26
+ fallback?: ReactNode;
27
+ /** Called when the image fails to load. */
28
+ onError?: (event: SyntheticEvent<HTMLImageElement>) => void;
29
+ /** Content layered over the image (badges, wishlist button, gradient scrim, duotone wash). Rendered in a positioned layer above the picture. */
14
30
  overlay?: ReactNode;
31
+ /** Extra class names, merged with the component's own classes rather than replacing them. */
15
32
  className?: string;
16
33
  }
17
- export declare function RudiImage({ src, alt, aspectRatio, fit, radius, loading, overlay, className, }: RudiImageProps): import("react/jsx-runtime").JSX.Element;
34
+ /**
35
+ * Image in a framed, rounded container with an optional aspect ratio and overlay layer. Use it instead of a bare `img` when the image needs a fixed shape or content layered on top.
36
+ * `alt` is required; pass an empty string for a purely decorative image. When the image fails to load, `fallback` (or a neutral placeholder) is shown in its place.
37
+ * @example
38
+ * ```tsx
39
+ * <RudiImage src="/shoe.jpg" alt="Red running shoe" aspectRatio="4 / 3" overlay={<RudiBadge>New</RudiBadge>} />
40
+ * ```
41
+ */
42
+ export declare function RudiImage({ src, alt, aspectRatio, fit, radius, loading, fallback, onError, overlay, className, }: RudiImageProps): import("react/jsx-runtime").JSX.Element;
18
43
  //# sourceMappingURL=Image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/components/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,6EAA6E;IAC7E,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAC1C,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,WAAW,EACX,GAAa,EACb,MAAa,EACb,OAAgB,EAChB,OAAO,EACP,SAAS,GACV,EAAE,cAAc,2CAehB"}
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/components/Image/Image.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGrE,OAAO,aAAa,CAAA;AAEpB,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,wFAAwF;IACxF,GAAG,EAAE,MAAM,CAAA;IACX,sHAAsH;IACtH,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAC1C;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1B,6KAA6K;IAC7K,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,gJAAgJ;IAChJ,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,WAAW,EACX,GAAa,EACb,MAAa,EACb,OAAgB,EAChB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,SAAS,GACV,EAAE,cAAc,2CA+BhB"}
@@ -1,14 +1,36 @@
1
1
  import { default as React } from 'react';
2
+ /** Props for `RudiInput`. */
2
3
  export interface RudiInputProps {
4
+ /** Visible label and the field's accessible name. Required. */
3
5
  label: string;
6
+ /**
7
+ * Native input type. Prefer `RudiNumberField` over `"number"` for numeric entry.
8
+ * @default 'text'
9
+ */
4
10
  type?: 'text' | 'email' | 'password' | 'url' | 'tel' | 'search' | 'number';
11
+ /** Hint text shown while the field is empty. Not a substitute for `label`. */
5
12
  placeholder?: string;
13
+ /** Help text under the field. Hidden while `errorMessage` is shown. */
6
14
  description?: string;
15
+ /**
16
+ * Error text shown under the field. Setting it marks the field invalid; leave it unset when the value is valid.
17
+ */
7
18
  errorMessage?: string;
19
+ /**
20
+ * Marks the field required and adds an asterisk to the label.
21
+ * @default false
22
+ */
8
23
  isRequired?: boolean;
24
+ /**
25
+ * Disables the field.
26
+ * @default false
27
+ */
9
28
  isDisabled?: boolean;
29
+ /** Controlled value. Pair with `onChange`. */
10
30
  value?: string;
31
+ /** Initial value for an uncontrolled field. */
11
32
  defaultValue?: string;
33
+ /** Called with the new text (a string, not an event) on every edit. */
12
34
  onChange?: (value: string) => void;
13
35
  /** Called when the field loses focus, e.g. to validate on blur. */
14
36
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
@@ -18,10 +40,20 @@ export interface RudiInputProps {
18
40
  autoComplete?: string;
19
41
  /** Virtual-keyboard hint, e.g. `numeric` for a one-time code. */
20
42
  inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
43
+ /** Maximum number of characters the user can enter. */
21
44
  maxLength?: number;
45
+ /** Makes the value selectable and focusable but not editable. */
22
46
  isReadOnly?: boolean;
47
+ /** Focuses the field on mount. */
23
48
  autoFocus?: boolean;
49
+ /** Extra class names for the wrapper element, merged with the component's own classes. */
24
50
  className?: string;
25
51
  }
52
+ /**
53
+ * A single-line text field with label, description and error message. `label` is required and is the accessible name. `onChange` receives the string value, not an event. The ref points at the `<input>`.
54
+ *
55
+ * @example
56
+ * <RudiInput label="Email" type="email" value={email} onChange={setEmail} />
57
+ */
26
58
  export declare const RudiInput: React.ForwardRefExoticComponent<RudiInputProps & React.RefAttributes<HTMLInputElement>>;
27
59
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IAC1E,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,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,mEAAmE;IACnE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC5D,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;IACxF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,SAAS,yFAuFrB,CAAA"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,aAAa,CAAA;AAEpB,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IAC1E,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,mEAAmE;IACnE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC5D,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;IACxF,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,yFAuFrB,CAAA"}
@@ -1,30 +1,62 @@
1
1
  import { RudiKanbanColumn } from './KanbanColumn';
2
+ /** A card's data. Any extra fields are passed through to `renderCard`. */
2
3
  export interface RudiKanbanItem {
4
+ /** Unique across the whole board, not just its column. Used as the drag id. */
3
5
  id: string;
6
+ /** Any other data your `renderCard` needs. */
4
7
  [key: string]: unknown;
5
8
  }
9
+ /** Data for one board column. */
6
10
  export interface RudiKanbanColumnData {
11
+ /** Unique column id. Reported as `fromColumnId` / `toColumnId` in move events. */
7
12
  id: string;
13
+ /** Column heading. Also the column region's accessible name and used in drag announcements. */
8
14
  title: string;
15
+ /** Cards in display order. */
9
16
  items: RudiKanbanItem[];
10
17
  }
18
+ /** Describes a completed card drag. Use it to update your own column state. */
11
19
  export interface RudiKanbanCardMoveEvent {
20
+ /** `id` of the card that moved. */
12
21
  cardId: string;
22
+ /** `id` of the column the card started in. */
13
23
  fromColumnId: string;
24
+ /** `id` of the column the card was dropped in. */
14
25
  toColumnId: string;
26
+ /** Index of the card in its source column before the move. */
15
27
  fromIndex: number;
28
+ /** The card's index in the destination column after the move, counted with the card removed from its source (so `items.splice(fromIndex, 1)` then `splice(toIndex, 0, card)` applies it). */
16
29
  toIndex: number;
17
30
  }
31
+ /** Props for `RudiKanbanBoard`. */
18
32
  export interface RudiKanbanBoardProps {
33
+ /** Columns and their cards. The board is controlled: it never reorders them itself. */
19
34
  columns: RudiKanbanColumnData[];
35
+ /** Called once when a drag ends in a new position. Update `columns` here. Not called when the card is dropped where it started. */
20
36
  onCardMove: (event: RudiKanbanCardMoveEvent) => void;
37
+ /** Renders one card. Return a `RudiKanbanCard` with the item's `id`, which makes it draggable. */
21
38
  renderCard: (item: RudiKanbanItem) => React.ReactNode;
22
39
  /** Names a card in drag announcements ("Picked up REF-1042 from Pending"). Defaults to its id. */
23
40
  getCardLabel?: (item: RudiKanbanItem) => string;
41
+ /** Class merged onto the board's column container. */
24
42
  className?: string;
25
43
  }
26
44
  declare function KanbanBoardRoot({ columns, onCardMove, renderCard, getCardLabel, className, }: RudiKanbanBoardProps): import("react/jsx-runtime").JSX.Element;
45
+ /**
46
+ * Drag-and-drop board of columns and cards, with pointer and keyboard dragging and screen-reader
47
+ * announcements. Fully controlled: pass `columns`, and apply each `onCardMove` event to your own
48
+ * state. Render each card as a `RudiKanbanCard` inside `renderCard`. Card ids must be unique
49
+ * across all columns. Use `RudiTable` instead for non-draggable tabular data.
50
+ *
51
+ * @example
52
+ * <RudiKanbanBoard
53
+ * columns={columns}
54
+ * onCardMove={(e) => setColumns((prev) => moveCard(prev, e))}
55
+ * renderCard={(item) => <RudiKanbanCard key={item.id} id={item.id}>{String(item.title)}</RudiKanbanCard>}
56
+ * />
57
+ */
27
58
  export declare const RudiKanbanBoard: typeof KanbanBoardRoot & {
59
+ /** A single column. The board renders these for you; use directly only when composing a custom layout inside the board's drag context. */
28
60
  Column: typeof RudiKanbanColumn;
29
61
  };
30
62
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanBoard.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,oBAAoB,EAAE,CAAA;IAC/B,UAAU,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;IACpD,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,kGAAkG;IAClG,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,CAAA;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AASD,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,GACV,EAAE,oBAAoB,2CA8ItB;AAED,eAAO,MAAM,eAAe;;CAE1B,CAAA"}
1
+ {"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanBoard.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGjD,OAAO,cAAc,CAAA;AAErB,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAA;IACV,8CAA8C;IAC9C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,iCAAiC;AACjC,MAAM,WAAW,oBAAoB;IACnC,kFAAkF;IAClF,EAAE,EAAE,MAAM,CAAA;IACV,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB;AAED,+EAA+E;AAC/E,MAAM,WAAW,uBAAuB;IACtC,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAA;IAClB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAA;IACjB,6LAA6L;IAC7L,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,uFAAuF;IACvF,OAAO,EAAE,oBAAoB,EAAE,CAAA;IAC/B,mIAAmI;IACnI,UAAU,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;IACpD,kGAAkG;IAClG,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,kGAAkG;IAClG,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,CAAA;IAC/C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,eAAe,CAAC,EACvB,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,GACV,EAAE,oBAAoB,2CAyItB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;IAC1B,0IAA0I;;CAE1I,CAAA"}
@@ -1,12 +1,23 @@
1
+ /** Props for `RudiKanbanCard`. */
1
2
  export interface RudiKanbanCardProps {
3
+ /** Matches the `id` of the card's `RudiKanbanItem`. */
2
4
  id: string;
3
5
  /**
4
6
  * Human name for the card (e.g. its title or reference). Names the drag handle
5
7
  * ("Move REF-1042") so screen-reader users hear which card they're on. Falls back to `id`.
6
8
  */
7
9
  label?: string;
10
+ /** Card content, shown beside the drag handle. */
8
11
  children: React.ReactNode;
12
+ /** Class merged onto the card element. */
9
13
  className?: string;
10
14
  }
11
- export declare function RudiKanbanCard({ id, label, children, className }: RudiKanbanCardProps): import("react/jsx-runtime").JSX.Element;
15
+ /**
16
+ * A draggable card with a drag handle. Return it from `RudiKanbanBoard`'s `renderCard`, passing
17
+ * the item's `id`. Pass `label` so the handle is announced as "Move <label>".
18
+ *
19
+ * @example
20
+ * <RudiKanbanCard id={item.id} label={String(item.ref)}>{String(item.ref)}</RudiKanbanCard>
21
+ */
22
+ export declare function RudiKanbanCard(props: RudiKanbanCardProps): import("react/jsx-runtime").JSX.Element;
12
23
  //# sourceMappingURL=KanbanCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanCard.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAqDrF"}
1
+ {"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanCard.tsx"],"names":[],"mappings":"AAMA,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAGxD"}
@@ -1,10 +1,23 @@
1
1
  import { RudiKanbanItem } from './KanbanBoard';
2
+ /** Props for `RudiKanbanColumn`. */
2
3
  export interface RudiKanbanColumnProps {
4
+ /** Unique column id; the drop target id. */
3
5
  id: string;
6
+ /** Column heading and the region's accessible name. */
4
7
  title: string;
8
+ /** Cards in display order. The count is shown in the header. */
5
9
  items: RudiKanbanItem[];
10
+ /** Renders one card; return a `RudiKanbanCard`. */
6
11
  renderCard: (item: RudiKanbanItem) => React.ReactNode;
12
+ /** Class merged onto the column element. */
7
13
  className?: string;
8
14
  }
15
+ /**
16
+ * One droppable column of sortable cards. `RudiKanbanBoard` renders these from its `columns` prop;
17
+ * use directly only inside a board's drag context (also available as `RudiKanbanBoard.Column`).
18
+ *
19
+ * @example
20
+ * <RudiKanbanColumn id="todo" title="To do" items={items} renderCard={renderCard} />
21
+ */
9
22
  export declare function RudiKanbanColumn({ id, title, items, renderCard, className, }: RudiKanbanColumnProps): import("react/jsx-runtime").JSX.Element;
10
23
  //# sourceMappingURL=KanbanColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanColumn.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAS,GACV,EAAE,qBAAqB,2CA2BvB"}
1
+ {"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanColumn.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,oCAAoC;AACpC,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,gEAAgE;IAChE,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,mDAAmD;IACnD,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAS,GACV,EAAE,qBAAqB,2CA+BvB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * True inside the board's `DragOverlay`. `RudiKanbanCard` reads it to render a static visual
3
+ * clone there, because dnd-kit components in a drag overlay must not call `useSortable`.
4
+ * Internal: not exported from the package.
5
+ */
6
+ export declare const KanbanOverlayContext: import('react').Context<boolean>;
7
+ //# sourceMappingURL=KanbanOverlayContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanOverlayContext.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanOverlayContext.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,kCAAuB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { RudiKanbanCardMoveEvent, RudiKanbanColumnData } from './KanbanBoard';
2
+ export declare function findColumnOfItem(columns: RudiKanbanColumnData[], itemId: string): RudiKanbanColumnData | undefined;
3
+ /** The column `id` belongs to, whether `id` is a column or a card. */
4
+ export declare function findContainer(columns: RudiKanbanColumnData[], id: string): RudiKanbanColumnData | undefined;
5
+ /**
6
+ * Moves the active card into the column under the pointer, before the card it's over
7
+ * (after it when `below`), or at the end when it's over the column itself. Returns
8
+ * `columns` unchanged when the card is already in that column: in-column reordering
9
+ * is previewed by the sortable strategy.
10
+ */
11
+ export declare function previewMove(columns: RudiKanbanColumnData[], activeId: string, overId: string, below: boolean): RudiKanbanColumnData[];
12
+ /**
13
+ * The move to report on drop, from the original `columns` and the drag `preview`.
14
+ * `toIndex` is the card's final index, counted with it removed from its source.
15
+ * Returns null when the card ends where it started.
16
+ */
17
+ export declare function resolveDrop(columns: RudiKanbanColumnData[], preview: RudiKanbanColumnData[], activeId: string, overId: string): RudiKanbanCardMoveEvent | null;
18
+ //# sourceMappingURL=kanbanMoves.d.ts.map