rudiment-ui 0.1.0 → 0.2.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 (90) hide show
  1. package/README.md +288 -17
  2. package/dist/components/Alert/Alert.d.ts +2 -2
  3. package/dist/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/components/Avatar/Avatar.d.ts +2 -2
  5. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  6. package/dist/components/Badge/Badge.d.ts +2 -2
  7. package/dist/components/Badge/Badge.d.ts.map +1 -1
  8. package/dist/components/Button/Button.d.ts +2 -2
  9. package/dist/components/Button/Button.d.ts.map +1 -1
  10. package/dist/components/Card/Card.d.ts +8 -8
  11. package/dist/components/Card/Card.d.ts.map +1 -1
  12. package/dist/components/Charts/BarChart/BarChart.d.ts +2 -2
  13. package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
  14. package/dist/components/Charts/DonutChart/DonutChart.d.ts +4 -4
  15. package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  16. package/dist/components/Charts/LineChart/LineChart.d.ts +2 -2
  17. package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  18. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  19. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  20. package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -2
  21. package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  22. package/dist/components/CircularProgress/CircularProgress.d.ts +2 -2
  23. package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  24. package/dist/components/Dialog/Dialog.d.ts +2 -2
  25. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  26. package/dist/components/Icon/Icon.d.ts +2 -2
  27. package/dist/components/Icon/Icon.d.ts.map +1 -1
  28. package/dist/components/IconButton/IconButton.d.ts +2 -2
  29. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  30. package/dist/components/Input/Input.d.ts +2 -2
  31. package/dist/components/Input/Input.d.ts.map +1 -1
  32. package/dist/components/Kanban/KanbanBoard.d.ts +12 -12
  33. package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
  34. package/dist/components/Kanban/KanbanCard.d.ts +2 -2
  35. package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
  36. package/dist/components/Kanban/KanbanColumn.d.ts +5 -5
  37. package/dist/components/Kanban/KanbanColumn.d.ts.map +1 -1
  38. package/dist/components/Menu/Keyboard.d.ts +2 -2
  39. package/dist/components/Menu/Keyboard.d.ts.map +1 -1
  40. package/dist/components/Menu/Menu.d.ts +2 -2
  41. package/dist/components/Menu/Menu.d.ts.map +1 -1
  42. package/dist/components/Menu/MenuItem.d.ts +2 -2
  43. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  44. package/dist/components/Menu/MenuSection.d.ts +2 -2
  45. package/dist/components/Menu/MenuSection.d.ts.map +1 -1
  46. package/dist/components/Menu/MenuTrigger.d.ts +2 -2
  47. package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
  48. package/dist/components/NavItem/NavItem.d.ts +2 -2
  49. package/dist/components/NavItem/NavItem.d.ts.map +1 -1
  50. package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
  51. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  52. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  53. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  54. package/dist/components/Select/Select.d.ts +2 -2
  55. package/dist/components/Select/Select.d.ts.map +1 -1
  56. package/dist/components/StatCard/StatCard.d.ts +2 -2
  57. package/dist/components/StatCard/StatCard.d.ts.map +1 -1
  58. package/dist/components/Switch/Switch.d.ts +2 -2
  59. package/dist/components/Switch/Switch.d.ts.map +1 -1
  60. package/dist/components/Tag/Tag.d.ts +2 -2
  61. package/dist/components/Tag/Tag.d.ts.map +1 -1
  62. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  63. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  64. package/dist/index.css +1 -1
  65. package/dist/index.d.ts +85 -85
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +675 -675
  68. package/dist/layouts/Box/Box.d.ts +2 -2
  69. package/dist/layouts/Box/Box.d.ts.map +1 -1
  70. package/dist/layouts/Center/Center.d.ts +2 -2
  71. package/dist/layouts/Center/Center.d.ts.map +1 -1
  72. package/dist/layouts/Cluster/Cluster.d.ts +2 -2
  73. package/dist/layouts/Cluster/Cluster.d.ts.map +1 -1
  74. package/dist/layouts/Cover/Cover.d.ts +2 -2
  75. package/dist/layouts/Cover/Cover.d.ts.map +1 -1
  76. package/dist/layouts/Grid/Grid.d.ts +2 -2
  77. package/dist/layouts/Grid/Grid.d.ts.map +1 -1
  78. package/dist/layouts/Sidebar/Sidebar.d.ts +2 -2
  79. package/dist/layouts/Sidebar/Sidebar.d.ts.map +1 -1
  80. package/dist/layouts/Stack/Stack.d.ts +3 -3
  81. package/dist/layouts/Stack/Stack.d.ts.map +1 -1
  82. package/dist/layouts/Switcher/Switcher.d.ts +2 -2
  83. package/dist/layouts/Switcher/Switcher.d.ts.map +1 -1
  84. package/dist/typography/Heading/Heading.d.ts +2 -2
  85. package/dist/typography/Heading/Heading.d.ts.map +1 -1
  86. package/dist/typography/Prose/Prose.d.ts +2 -2
  87. package/dist/typography/Prose/Prose.d.ts.map +1 -1
  88. package/dist/typography/Text/Text.d.ts +2 -2
  89. package/dist/typography/Text/Text.d.ts.map +1 -1
  90. package/package.json +1 -1
package/README.md CHANGED
@@ -51,40 +51,110 @@ Import the stylesheet once at your app's entry point:
51
51
  import 'rudiment-ui/styles'
52
52
  ```
53
53
 
54
- This ships the component styles plus all six themes. It does **not** include Tailwind — components are styled with plain CSS custom properties, so nothing resets your app's own styles.
54
+ This ships the component styles plus all six themes. It does **not** include Tailwind — components are styled with plain BEM classes and CSS custom properties, and the bundle contains no bare-element selectors, so it will not reset or clobber your app's own styles.
55
55
 
56
56
  Every export is marked `"use client"`, so the package can be imported directly into a Next.js App Router Server Component without a re-export barrel.
57
57
 
58
- ## Customizing for your brand
58
+ ---
59
59
 
60
- 1. Edit primitive values in `tokens/tokens.json` (colors, spacing, typography)
61
- 2. Update semantic mappings in `tokens/semantic.json` (brand colors, theme values)
62
- 3. Adjust component-level tokens in `tokens/components.json` (per-component overrides)
63
- 4. Rebuild tokens: `npm run build:tokens`
64
- 5. Preview changes in Storybook: `npm run dev`
60
+ # Using Rudiment UI in your app
61
+
62
+ ## Setup
63
+
64
+ ```tsx
65
+ // app entry — main.tsx, _app.tsx, or app/layout.tsx
66
+ import 'rudiment-ui/styles'
67
+ ```
68
+
69
+ That single import is the whole setup. There is no provider to mount — `Dialog` portals itself, and `useChartTheme` reads tokens straight off `document.documentElement`.
70
+
71
+ ## Themes
72
+
73
+ Six themes ship in the stylesheet. Set `data-theme` on a root element to switch:
65
74
 
66
- ## Switching themes
75
+ | Theme | Attribute |
76
+ |-------|-----------|
77
+ | Default (light) | *no attribute* |
78
+ | Dark | `data-theme="dark"` |
79
+ | Teal | `data-theme="teal"` |
80
+ | Teal Dark | `data-theme="teal-dark"` |
81
+ | Cyberpunk | `data-theme="cyberpunk"` |
82
+ | Cyberpunk Dark | `data-theme="cyberpunk-dark"` |
67
83
 
68
- Set `data-theme` on a root element. The default theme lives on `:root`, so **omit the attribute** for it — there is no `data-theme="light"`.
84
+ The default theme lives on `:root`, so **omit the attribute for it** — there is no `data-theme="light"`. Remove the attribute to return to default.
69
85
 
70
- ```html
71
- <html data-theme="dark"> <!-- dark, teal, teal-dark, cyberpunk, cyberpunk-dark -->
72
- <html> <!-- default -->
86
+ ```tsx
87
+ type Theme = 'default' | 'dark' | 'teal' | 'teal-dark' | 'cyberpunk' | 'cyberpunk-dark'
88
+
89
+ function applyTheme(theme: Theme) {
90
+ if (theme === 'default') {
91
+ document.documentElement.removeAttribute('data-theme')
92
+ } else {
93
+ document.documentElement.setAttribute('data-theme', theme)
94
+ }
95
+ }
96
+ ```
97
+
98
+ Themes are scoped by attribute rather than element, so you can theme a subtree — a dark sidebar inside a light page — by putting `data-theme` on any wrapper.
99
+
100
+ No `prefers-color-scheme` query ships with the package. If you want OS-driven dark mode, wire it up yourself:
101
+
102
+ ```tsx
103
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
104
+ applyTheme(prefersDark ? 'dark' : 'default')
73
105
  ```
74
106
 
75
- Themes are plain custom-property blocks, so consuming the package as a dependency and overriding a few tokens downstream also works:
107
+ Charts follow theme changes automatically — `useChartTheme` watches `data-theme` on `<html>` with a `MutationObserver` and re-resolves its colors.
108
+
109
+ ## Tokens
110
+
111
+ Every visual value is a CSS custom property prefixed `--rudi-`, arranged in three tiers that resolve through `var()` chains. Overriding a tier cascades to everything below it.
112
+
113
+ ```css
114
+ --rudi-color-neutral-900: #171717; /* 1. primitive */
115
+ --rudi-color-brand-primary: var(--rudi-color-neutral-900); /* 2. semantic */
116
+ --rudi-component-button-primary-bg: var(--rudi-color-brand-primary); /* 3. component */
117
+ ```
118
+
119
+ Rebrand by overriding tier 2 in your own stylesheet, loaded after `rudiment-ui/styles`:
76
120
 
77
121
  ```css
78
122
  :root {
79
- --token-component-button-primary-bg: #7c3aed;
123
+ --rudi-color-brand-primary: #7c3aed;
124
+ --rudi-color-brand-primary-hover: #6d28d9;
125
+ --rudi-color-brand-primary-active: #5b21b6;
80
126
  }
81
127
  ```
82
128
 
83
- ## Using components
129
+ **Scope overrides per theme.** `:root` and `[data-theme="dark"]` have equal specificity, and the theme blocks come later in the stylesheet — so a plain `:root` override loses inside a themed subtree. Repeat it under each theme you use:
130
+
131
+ ```css
132
+ :root { --rudi-color-brand-primary: #7c3aed; }
133
+ [data-theme="dark"] { --rudi-color-brand-primary: #a78bfa; }
134
+ ```
135
+
136
+ The tokens worth reaching for most often:
137
+
138
+ | Purpose | Tokens |
139
+ |---------|--------|
140
+ | **Brand** | `--rudi-color-brand-primary`, `-hover`, `-active` |
141
+ | **Surfaces** | `--rudi-color-background-surface`, `-raised`, `-sunken`, `-overlay`, `--rudi-color-background-disabled`, `-inverted` |
142
+ | **Text** | `--rudi-color-text-default`, `-subtle`, `-disabled`, `-on-brand`, `-on-inverted` |
143
+ | **Borders** | `--rudi-color-border-default`, `-focus`, `-error` |
144
+ | **Feedback** | `--rudi-color-feedback-{error,success,warning,info}` each with `-surface`, `-border`, `-text` |
145
+ | **Charts** | `--rudi-color-dataviz-series-1` … `-8` |
146
+ | **Spacing** | `--rudi-spacing-{0,1,2,3,4,6,8,12}` (`0.25rem` steps — note 5, 7, 9–11 don't exist) |
147
+ | **Radius** | `--rudi-radius-{none,sm,md,lg,full}` |
148
+ | **Type** | `--rudi-font-family-{sans,mono}`, `--rudi-font-size-{xs…4xl}`, `--rudi-font-weight-{regular,medium,semibold,bold}` |
149
+ | **Motion** | `--rudi-motion-duration-{fast,base,slow}`, `--rudi-motion-easing-standard` |
150
+ | **Layout** | `--rudi-layout-sidebar-width`, `--rudi-layout-grid-min-cell`, `--rudi-layout-center-max-width`, `--rudi-layout-switcher-threshold` |
151
+
152
+ Component-level tokens (`--rudi-component-*`) are available for surgical changes — `--rudi-component-button-primary-bg`, `--rudi-component-card-bg`, `--rudi-component-input-bg`, and so on — but prefer semantic overrides so the change carries across every component.
153
+
154
+ ## Components
84
155
 
85
156
  ```tsx
86
157
  import { Button, Input, Stack } from 'rudiment-ui'
87
- import 'rudiment-ui/styles'
88
158
 
89
159
  function LoginForm() {
90
160
  return (
@@ -97,6 +167,207 @@ function LoginForm() {
97
167
  }
98
168
  ```
99
169
 
170
+ ### Conventions worth knowing up front
171
+
172
+ - **`onPress`, not `onClick`.** `Button`, `IconButton`, `Tag`, and `NavItem` are built on React Aria and take `onPress`. React Aria handles pointer, touch, and keyboard activation in one event.
173
+ - **`onChange` gives you a value, not an event.** `Input` calls `onChange(value: string)`, `Checkbox` calls `onChange(isSelected: boolean)`, `CheckboxGroup` calls `onChange(value: string[])`.
174
+ - **Labels are required props, not children.** `Input`, `Select`, `RadioGroup`, `CheckboxGroup`, `ProgressBar`, and the charts all take `label` as a string — it wires up the accessible name for you.
175
+ - **Icons are Iconify names.** Any prop typed as an icon takes a `"collection:name"` string, e.g. `icon="mdi:close"`. No icon imports needed.
176
+ - **`className` is merged, not replaced** — every component runs it through `clsx` + `tailwind-merge`. `cn` is exported if you want the same helper.
177
+ - **Layout primitives are polymorphic and spread props**; components are not. `Stack`, `Box`, `Text` etc. accept `as` plus any DOM attribute. `Button`, `Card`, `Alert` have closed prop interfaces.
178
+
179
+ ### Component reference
180
+
181
+ **Actions**
182
+
183
+ | Component | Props |
184
+ |-----------|-------|
185
+ | `Button` | `variant?: 'primary' \| 'secondary' \| 'destructive' \| 'ghost'` (`'primary'`), `size?: 'sm' \| 'md' \| 'lg'` (`'md'`), `isLoading?`, `iconBefore?`, `iconAfter?`, `onPress?`, `isDisabled?` |
186
+ | `IconButton` | `aria-label` **(required)**, `variant?` (`'secondary'`), `size?: 'sm' \| 'md' \| 'lg'` (`'md'`), `isLoading?`, `onPress?`; `children` is a single element |
187
+ | `NavItem` | `label` **(required)**, `icon?`, `isActive?`, `href?` (renders `<a>`, else `<button>`), `onPress?`, `badge?`, `isDisabled?` |
188
+
189
+ **Forms**
190
+
191
+ | Component | Props |
192
+ |-----------|-------|
193
+ | `Input` | `label` **(required)**, `type?: 'text' \| 'email' \| 'password' \| 'url' \| 'tel' \| 'search' \| 'number'` (`'text'`), `placeholder?`, `description?`, `errorMessage?` (sets invalid state), `isRequired?`, `isDisabled?`, `value?`, `defaultValue?`, `onChange?: (value: string) => void` |
194
+ | `Checkbox` | `children` (label), `isSelected?`, `defaultSelected?`, `isIndeterminate?`, `onChange?: (isSelected: boolean) => void`, `isDisabled?`, `value?` |
195
+ | `CheckboxGroup` | `label` **(required)**, `description?`, `value?: string[]`, `defaultValue?`, `onChange?: (value: string[]) => void`, `errorMessage?`, `isDisabled?` |
196
+ | `Switch` | `children` (label), `isSelected?`, `defaultSelected?`, `onChange?: (isSelected: boolean) => void`, `isDisabled?` |
197
+ | `Select` | `label`, `items`, `children: (item) => ReactNode`, `selectedKey?`, `defaultSelectedKey?`, `onSelectionChange?: (key) => void`, `placeholder?`, `description?`, `errorMessage?`, `isRequired?`, `isDisabled?` |
198
+ | `RadioGroup` | `label`, `orientation?: 'horizontal' \| 'vertical'`, `value?`, `defaultValue?`, `onChange?: (value: string) => void`, `errorMessage?`, `isDisabled?` |
199
+
200
+ `Select` renders its options from an `items` collection plus a render function. The item element comes from `react-stately`:
201
+
202
+ ```tsx
203
+ import { Item } from 'react-stately'
204
+ import { Select } from 'rudiment-ui'
205
+
206
+ const roles = [
207
+ { id: 'viewer', label: 'Viewer' },
208
+ { id: 'editor', label: 'Editor' },
209
+ { id: 'admin', label: 'Admin' },
210
+ ]
211
+
212
+ <Select label="Role" items={roles} placeholder="Choose a role" onSelectionChange={setRole}>
213
+ {(item) => <Item key={item.id}>{item.label}</Item>}
214
+ </Select>
215
+ ```
216
+
217
+ **Feedback & display**
218
+
219
+ | Component | Props |
220
+ |-----------|-------|
221
+ | `Alert` | `variant: 'info' \| 'success' \| 'warning' \| 'error'` **(required)**, `title?`, `icon?`, `isPolite?` (`role="status"` instead of `"alert"`), `dismissible?`, `onDismiss?` |
222
+ | `Badge` | `variant?: 'default' \| 'success' \| 'warning' \| 'error' \| 'info'` (`'default'`), `size?: 'sm' \| 'md'` (`'md'`), `dot?` (hides children) |
223
+ | `Tag` | `variant?` (as Badge), `dismissible?`, `onDismiss?`, `onPress?` (switches root to `<button>`), `isDisabled?` |
224
+ | `Avatar` | `src?`, `alt?`, `name?` (derives initials), `size?: 'sm' \| 'md' \| 'lg'` (`'md'`), `status?: 'success' \| 'warning' \| 'error' \| 'info'` |
225
+ | `Icon` | `icon` **(required)**, `size?: 'sm' \| 'md' \| 'lg' \| number` (`'md'`), `color?`, `label?` (sets `role="img"`; without it the icon is `aria-hidden`) |
226
+ | `ProgressBar` | `value` + `label` **(required)**, `minValue?` (`0`), `maxValue?` (`100`), `showValueLabel?`, `variant?: 'default' \| 'success' \| 'warning' \| 'error'`, `size?: 'sm' \| 'md'` |
227
+ | `CircularProgress` | same as ProgressBar plus `size?: 'sm' \| 'md' \| 'lg'` and `children?` for custom center content |
228
+ | `StatCard` | `label`, `value: string \| number`, `delta?: string`, `trend?: 'up' \| 'down' \| 'neutral'` (`'neutral'`), `children?` |
229
+
230
+ `Alert` and `Tag` handle dismissal with internal state — once dismissed they render `null` and can't be reopened via props. Control visibility yourself if you need it back.
231
+
232
+ **Containers & overlays**
233
+
234
+ | Component | Props |
235
+ |-----------|-------|
236
+ | `Card` | `variant?: 'default' \| 'outlined' \| 'elevated'` (`'default'`), `padding?: 'none' \| 'sm' \| 'md' \| 'lg'` (`'md'`) |
237
+ | `Dialog` | `isOpen`, `onClose`, `title` **(all required)**, `isDismissable?` (`true`), `size?: 'sm' \| 'md' \| 'lg'` (`'md'`) |
238
+ | `TooltipTrigger` / `Tooltip` | `delay?` (`500`ms), `closeDelay?` (`0`ms); children must be exactly `[trigger, tooltip]` |
239
+ | `MenuTrigger` / `Menu` / `MenuItem` / `MenuSection` / `Keyboard` | React Aria menu primitives; `MenuItem` adds `isDestructive?` |
240
+
241
+ `Card` is compound — use the dot subcomponents:
242
+
243
+ ```tsx
244
+ <Card variant="elevated" padding="lg">
245
+ <Card.Header>Monthly revenue</Card.Header>
246
+ <Card.Body>…</Card.Body>
247
+ <Card.Footer>…</Card.Footer>
248
+ </Card>
249
+ ```
250
+
251
+ `Dialog` is fully controlled — it has no internal open state:
252
+
253
+ ```tsx
254
+ const [isOpen, setIsOpen] = useState(false)
255
+
256
+ <Button onPress={() => setIsOpen(true)}>Delete account</Button>
257
+ <Dialog isOpen={isOpen} onClose={() => setIsOpen(false)} title="Are you sure?" size="sm">
258
+ <Button variant="destructive" onPress={confirmDelete}>Delete</Button>
259
+ </Dialog>
260
+ ```
261
+
262
+ `TooltipTrigger` takes exactly two children, in order:
263
+
264
+ ```tsx
265
+ <TooltipTrigger>
266
+ <IconButton aria-label="Delete"><Icon icon="mdi:trash-can" /></IconButton>
267
+ <Tooltip>Delete this item</Tooltip>
268
+ </TooltipTrigger>
269
+ ```
270
+
271
+ ## Layout primitives
272
+
273
+ Eight primitives handle spacing and composition. **Every spacing prop takes a raw CSS length string** — `"1rem"`, `"2rem"`, or `var(--rudi-spacing-6)` — not a numeric scale. The prop is `space` everywhere (never `gap`); `Box` uses `padding`. All accept `as`, `className`, and any DOM attribute.
274
+
275
+ | Component | Props | Default |
276
+ |-----------|-------|---------|
277
+ | `Box` | `padding?`, `bordered?`, `invert?` | padding `1rem` |
278
+ | `Stack` | `space?`, `recursive?`, `splitAfter?: number` | space `1.5rem` |
279
+ | `Cluster` | `space?`, `justify?: 'flex-start' \| 'flex-end' \| 'center' \| 'space-between' \| 'space-around'`, `align?: 'flex-start' \| 'flex-end' \| 'center' \| 'baseline' \| 'stretch'` | space `1rem`, justify `flex-start`, align `center` |
280
+ | `Grid` | `minCellWidth?`, `space?` | min cell `15rem`, space `1.5rem` |
281
+ | `Sidebar` | `side?: 'left' \| 'right'`, `sideWidth?`, `contentMin?`, `space?`, `noStretch?` | side `left`, width `20rem`, content min `50%` |
282
+ | `Center` | `maxWidth?`, `gutters?`, `intrinsic?` | max width `60rem`, gutters `1rem` |
283
+ | `Cover` | `minHeight?`, `space?` | min height `100vh` |
284
+ | `Switcher` | `threshold?`, `space?` | threshold `30rem`, space `1.5rem` |
285
+
286
+ ```tsx
287
+ <Sidebar side="left" sideWidth="16rem" space="2rem">
288
+ <nav>…</nav>
289
+ <Stack space="1.5rem">
290
+ <Heading level={1}>Dashboard</Heading>
291
+ <Grid minCellWidth="18rem" space="1rem">
292
+ <StatCard label="Revenue" value="$48.2k" delta="+12.5%" trend="up" />
293
+ <StatCard label="Users" value="1,284" delta="+3.1%" trend="up" />
294
+ </Grid>
295
+ </Stack>
296
+ </Sidebar>
297
+ ```
298
+
299
+ `Stack` deserves a note: `recursive` applies the spacing to all nested descendants rather than direct children, and `splitAfter={n}` pushes everything after the nth child to the bottom — useful for pinning a footer inside a sidebar.
300
+
301
+ ## Typography
302
+
303
+ | Component | Props |
304
+ |-----------|-------|
305
+ | `Heading` | `level: 1–6` **(required, sets the tag)**, `size?: 1–6` (visual size, defaults to `level`) |
306
+ | `Text` | `variant?: 'body' \| 'body-sm' \| 'caption' \| 'overline' \| 'code'` (`'body'`), `as?` (`'p'`) |
307
+ | `Prose` | `size?: 'sm' \| 'base' \| 'lg'` (`'base'`), `as?` (`'div'`) |
308
+
309
+ `level` and `size` are separate so you can keep a correct document outline while styling freely — `<Heading level={2} size={4}>` renders an `<h2>` that looks like an h4. `Prose` styles a block of unstyled HTML (CMS content, rendered Markdown).
310
+
311
+ ## Charts
312
+
313
+ All three wrap Recharts, size themselves to their container, and require a `label` for the accessible name. Series colors come from the dataviz tokens and follow the active theme automatically.
314
+
315
+ | Component | Props |
316
+ |-----------|-------|
317
+ | `BarChart` | `data`, `dataKeys: string[]`, `indexKey`, `label`, `layout?: 'vertical' \| 'horizontal'` (`'vertical'`), `stacked?`, `showLegend?` (`true`), `showGrid?` (`true`), `height?` (`300`) |
318
+ | `LineChart` | `data`, `dataKeys`, `indexKey`, `label`, `curved?` (`true`), `showDots?` (`true`), `showGrid?`, `showLegend?`, `height?` |
319
+ | `DonutChart` | `data: { name, value }[]`, `label`, `innerRadius?` (`60`), `showLabels?` (`false`), `showLegend?`, `height?` |
320
+
321
+ ```tsx
322
+ <BarChart
323
+ label="Revenue by month"
324
+ data={[
325
+ { month: 'Jan', revenue: 4200, costs: 2400 },
326
+ { month: 'Feb', revenue: 5100, costs: 2600 },
327
+ ]}
328
+ dataKeys={['revenue', 'costs']}
329
+ indexKey="month"
330
+ stacked
331
+ />
332
+ ```
333
+
334
+ Note that `BarChart`'s `layout` describes the bars, not the Recharts axis: the default `"vertical"` gives you vertical bars, and `"horizontal"` gives horizontal ones.
335
+
336
+ ## Kanban
337
+
338
+ `KanbanBoard` is fully controlled — it never mutates `columns`. Apply the move yourself in `onCardMove`:
339
+
340
+ ```tsx
341
+ import { KanbanBoard, KanbanCard, type KanbanCardMoveEvent } from 'rudiment-ui'
342
+
343
+ <KanbanBoard
344
+ columns={columns} // { id, title, items: { id, ... }[] }[]
345
+ renderCard={(item) => <KanbanCard id={item.id}>{item.title}</KanbanCard>}
346
+ onCardMove={(e: KanbanCardMoveEvent) => {
347
+ // e: { cardId, fromColumnId, toColumnId, fromIndex, toIndex }
348
+ setColumns((prev) => applyMove(prev, e))
349
+ }}
350
+ />
351
+ ```
352
+
353
+ `renderCard` must return a `<KanbanCard id={item.id}>` — that's what supplies the drag wiring and handle. `onCardMove` doesn't fire when a card is dropped back in its original position.
354
+
355
+ ## Hooks
356
+
357
+ **`useChartTheme()`** returns the resolved chart palette for the active theme — `{ colors, axisColor, gridColor, labelColor, legendColor, tooltipBg, tooltipText, tooltipBorder, chartBg }`. Use it to style custom Recharts compositions so they match the built-in charts. It's SSR-safe and re-resolves on theme change.
358
+
359
+ **`useLoadingButton(ariaProps, isLoading, ref)`** returns `{ buttonProps }` with disabled and `aria-busy` handled. Useful if you're building a custom button rather than using `Button`.
360
+
361
+ ## Customizing the tokens at source
362
+
363
+ If you cloned the template rather than installing the package:
364
+
365
+ 1. Edit primitive values in `tokens/tokens.json` (colors, spacing, typography)
366
+ 2. Update semantic mappings in `tokens/semantic.json` (brand colors, theme values)
367
+ 3. Adjust component-level tokens in `tokens/components.json` (per-component overrides)
368
+ 4. Rebuild tokens: `npm run build:tokens`
369
+ 5. Preview changes in Storybook: `npm run dev`
370
+
100
371
  ## Available scripts
101
372
 
102
373
  | Command | Description |
@@ -147,4 +418,4 @@ See [CHANGELOG.md](CHANGELOG.md) for release history.
147
418
 
148
419
  ## License
149
420
 
150
- ISC
421
+ [MIT](LICENSE)
@@ -1,4 +1,4 @@
1
- export interface AlertProps {
1
+ export interface RudiAlertProps {
2
2
  variant: 'info' | 'success' | 'warning' | 'error';
3
3
  title?: string;
4
4
  icon?: string;
@@ -8,5 +8,5 @@ export interface AlertProps {
8
8
  children: React.ReactNode;
9
9
  className?: string;
10
10
  }
11
- export declare function Alert({ variant, title, icon, isPolite, dismissible, onDismiss, children, className, }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
11
+ export declare function RudiAlert({ variant, title, icon, isPolite, dismissible, onDismiss, children, className, }: RudiAlertProps): import("react/jsx-runtime").JSX.Element | null;
12
12
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAO,EACP,KAAK,EACL,IAAI,EACJ,QAAgB,EAChB,WAAmB,EACnB,SAAS,EACT,QAAQ,EACR,SAAS,GACV,EAAE,UAAU,kDAsCZ"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,KAAK,EACL,IAAI,EACJ,QAAgB,EAChB,WAAmB,EACnB,SAAS,EACT,QAAQ,EACR,SAAS,GACV,EAAE,cAAc,kDAsChB"}
@@ -1,4 +1,4 @@
1
- export interface AvatarProps {
1
+ export interface RudiAvatarProps {
2
2
  src?: string;
3
3
  alt?: string;
4
4
  name?: string;
@@ -6,5 +6,5 @@ export interface AvatarProps {
6
6
  status?: 'success' | 'warning' | 'error' | 'info';
7
7
  className?: string;
8
8
  }
9
- export declare function Avatar({ src, alt, name, size, status, className, }: AvatarProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function RudiAvatar({ src, alt, name, size, status, className, }: RudiAvatarProps): import("react/jsx-runtime").JSX.Element;
10
10
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAUD,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,IAAW,EACX,MAAM,EACN,SAAS,GACV,EAAE,WAAW,2CAqCb"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAUD,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,IAAW,EACX,MAAM,EACN,SAAS,GACV,EAAE,eAAe,2CAqCjB"}
@@ -1,9 +1,9 @@
1
- export interface BadgeProps {
1
+ export interface RudiBadgeProps {
2
2
  variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
3
3
  size?: 'sm' | 'md';
4
4
  dot?: boolean;
5
5
  children?: React.ReactNode;
6
6
  className?: string;
7
7
  }
8
- export declare function Badge({ variant, size, dot, children, className, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function RudiBadge({ variant, size, dot, children, className, }: RudiBadgeProps): import("react/jsx-runtime").JSX.Element;
9
9
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC9D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,IAAW,EACX,GAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,UAAU,2CAcZ"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC9D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAmB,EACnB,IAAW,EACX,GAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,cAAc,2CAchB"}
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { AriaButtonProps } from 'react-aria';
3
- export interface ButtonProps extends AriaButtonProps {
3
+ export interface RudiButtonProps extends AriaButtonProps {
4
4
  variant?: 'primary' | 'secondary' | 'destructive' | 'ghost';
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  isLoading?: boolean;
@@ -9,5 +9,5 @@ export interface ButtonProps extends AriaButtonProps {
9
9
  className?: string;
10
10
  children: React.ReactNode;
11
11
  }
12
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export declare const RudiButton: React.ForwardRefExoticComponent<RudiButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
13
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,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,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,MAAM,uFA4ClB,CAAA"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,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,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,UAAU,2FA4CtB,CAAA"}
@@ -1,25 +1,25 @@
1
- export interface CardProps {
1
+ export interface RudiCardProps {
2
2
  variant?: 'default' | 'outlined' | 'elevated';
3
3
  padding?: 'none' | 'sm' | 'md' | 'lg';
4
4
  children: React.ReactNode;
5
5
  className?: string;
6
6
  }
7
- export interface CardHeaderProps {
7
+ export interface RudiCardHeaderProps {
8
8
  children: React.ReactNode;
9
9
  className?: string;
10
10
  }
11
- export interface CardBodyProps {
11
+ export interface RudiCardBodyProps {
12
12
  children: React.ReactNode;
13
13
  className?: string;
14
14
  }
15
- export interface CardFooterProps {
15
+ export interface RudiCardFooterProps {
16
16
  children: React.ReactNode;
17
17
  className?: string;
18
18
  }
19
- declare function CardHeader({ children, className }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
20
- declare function CardBody({ children, className }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
21
- declare function CardFooter({ children, className }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
22
- export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>> & {
19
+ declare function CardHeader({ children, className }: RudiCardHeaderProps): import("react/jsx-runtime").JSX.Element;
20
+ declare function CardBody({ children, className }: RudiCardBodyProps): import("react/jsx-runtime").JSX.Element;
21
+ declare function CardFooter({ children, className }: RudiCardFooterProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare const RudiCard: import('react').ForwardRefExoticComponent<RudiCardProps & import('react').RefAttributes<HTMLDivElement>> & {
23
23
  Header: typeof CardHeader;
24
24
  Body: typeof CardBody;
25
25
  Footer: typeof CardFooter;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAuBD,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,2CAI3D;AAED,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,aAAa,2CAIvD;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,eAAe,2CAI3D;AAED,eAAO,MAAM,IAAI;;;;CAIf,CAAA"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAuBD,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAI/D;AAED,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAI3D;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAI/D;AAED,eAAO,MAAM,QAAQ;;;;CAInB,CAAA"}
@@ -1,4 +1,4 @@
1
- export interface BarChartProps {
1
+ export interface RudiBarChartProps {
2
2
  data: Array<Record<string, string | number>>;
3
3
  dataKeys: string[];
4
4
  indexKey: string;
@@ -10,5 +10,5 @@ export interface BarChartProps {
10
10
  label: string;
11
11
  className?: string;
12
12
  }
13
- export declare function BarChart({ data, dataKeys, indexKey, layout, stacked, showLegend, showGrid, height, label, className, }: BarChartProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function RudiBarChart({ data, dataKeys, indexKey, layout, stacked, showLegend, showGrid, height, label, className, }: RudiBarChartProps): import("react/jsx-runtime").JSX.Element;
14
14
  //# sourceMappingURL=BarChart.d.ts.map
@@ -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,aAAa;IAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,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,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAmB,EACnB,OAAe,EACf,UAAiB,EACjB,QAAe,EACf,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,aAAa,2CAiEf"}
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,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,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,2CAiEnB"}
@@ -1,9 +1,9 @@
1
- export interface DonutChartDatum {
1
+ export interface RudiDonutChartDatum {
2
2
  name: string;
3
3
  value: number;
4
4
  }
5
- export interface DonutChartProps {
6
- data: DonutChartDatum[];
5
+ export interface RudiDonutChartProps {
6
+ data: RudiDonutChartDatum[];
7
7
  innerRadius?: number;
8
8
  showLabels?: boolean;
9
9
  showLegend?: boolean;
@@ -11,5 +11,5 @@ export interface DonutChartProps {
11
11
  label: string;
12
12
  className?: string;
13
13
  }
14
- export declare function DonutChart({ data, innerRadius, showLabels, showLegend, height, label, className, }: DonutChartProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function RudiDonutChart({ data, innerRadius, showLabels, showLegend, height, label, className, }: RudiDonutChartProps): import("react/jsx-runtime").JSX.Element;
15
15
  //# 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,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,eAAe,EAAE,CAAA;IACvB,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,UAAU,CAAC,EACzB,IAAI,EACJ,WAAgB,EAChB,UAAkB,EAClB,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,eAAe,2CA8CjB"}
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,2CA8CrB"}
@@ -1,4 +1,4 @@
1
- export interface LineChartProps {
1
+ export interface RudiLineChartProps {
2
2
  data: Array<Record<string, string | number>>;
3
3
  dataKeys: string[];
4
4
  indexKey: string;
@@ -10,5 +10,5 @@ export interface LineChartProps {
10
10
  label: string;
11
11
  className?: string;
12
12
  }
13
- export declare function LineChart({ data, dataKeys, indexKey, curved, showDots, showGrid, showLegend, height, label, className, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function RudiLineChart({ data, dataKeys, indexKey, curved, showDots, showGrid, showLegend, height, label, className, }: RudiLineChartProps): import("react/jsx-runtime").JSX.Element;
14
14
  //# sourceMappingURL=LineChart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAYA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,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,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAa,EACb,QAAe,EACf,QAAe,EACf,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,cAAc,2CA+ChB"}
1
+ {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAYA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,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,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAa,EACb,QAAe,EACf,QAAe,EACf,UAAiB,EACjB,MAAY,EACZ,KAAK,EACL,SAAS,GACV,EAAE,kBAAkB,2CA+CpB"}
@@ -1,4 +1,4 @@
1
- export interface CheckboxProps {
1
+ export interface RudiCheckboxProps {
2
2
  children: React.ReactNode;
3
3
  isSelected?: boolean;
4
4
  defaultSelected?: boolean;
@@ -8,5 +8,5 @@ export interface CheckboxProps {
8
8
  value?: string;
9
9
  className?: string;
10
10
  }
11
- export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
11
+ export declare const RudiCheckbox: import('react').ForwardRefExoticComponent<RudiCheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
12
12
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,aAAa;IAC5B,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,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,4GA4BpB,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAKA,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,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,gHA4BxB,CAAA"}
@@ -1,4 +1,4 @@
1
- export interface CheckboxGroupProps {
1
+ export interface RudiCheckboxGroupProps {
2
2
  label: string;
3
3
  description?: string;
4
4
  value?: string[];
@@ -9,5 +9,5 @@ export interface CheckboxGroupProps {
9
9
  children: React.ReactNode;
10
10
  className?: string;
11
11
  }
12
- export declare function CheckboxGroup(props: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function RudiCheckboxGroup(props: RudiCheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
13
13
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,kBAAkB;IACjC,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,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA6BtD"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxGroup.tsx"],"names":[],"mappings":"AAGA,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,2CA6B9D"}
@@ -1,4 +1,4 @@
1
- export interface CircularProgressProps {
1
+ export interface RudiCircularProgressProps {
2
2
  value: number;
3
3
  minValue?: number;
4
4
  maxValue?: number;
@@ -9,5 +9,5 @@ export interface CircularProgressProps {
9
9
  children?: React.ReactNode;
10
10
  className?: string;
11
11
  }
12
- export declare function CircularProgress({ value, minValue, maxValue, label, showValueLabel, variant, size, children, className, }: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function RudiCircularProgress({ value, minValue, maxValue, label, showValueLabel, variant, size, children, className, }: RudiCircularProgressProps): import("react/jsx-runtime").JSX.Element;
13
13
  //# 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,qBAAqB;IACpC,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,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAY,EACZ,QAAc,EACd,KAAK,EACL,cAAsB,EACtB,OAAmB,EACnB,IAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,qBAAqB,2CA4DvB"}
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,4 +1,4 @@
1
- export interface DialogProps {
1
+ export interface RudiDialogProps {
2
2
  isOpen: boolean;
3
3
  onClose: () => void;
4
4
  title: string;
@@ -7,5 +7,5 @@ export interface DialogProps {
7
7
  children: React.ReactNode;
8
8
  className?: string;
9
9
  }
10
- export declare const Dialog: import('react').ForwardRefExoticComponent<DialogProps & import('react').RefAttributes<HTMLDivElement>>;
10
+ export declare const RudiDialog: import('react').ForwardRefExoticComponent<RudiDialogProps & import('react').RefAttributes<HTMLDivElement>>;
11
11
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAWA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,WAAW;IAC1B,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,eAAO,MAAM,MAAM,wGAkEjB,CAAA"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAWA,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,eAAO,MAAM,UAAU,4GAkErB,CAAA"}