rudiment-ui 0.1.0 → 0.3.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 (124) hide show
  1. package/README.md +325 -35
  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/AppShell/AppShell.d.ts +48 -0
  5. package/dist/components/AppShell/AppShell.d.ts.map +1 -0
  6. package/dist/components/Avatar/Avatar.d.ts +2 -2
  7. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.d.ts +2 -2
  9. package/dist/components/Badge/Badge.d.ts.map +1 -1
  10. package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
  11. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  12. package/dist/components/Button/Button.d.ts +2 -2
  13. package/dist/components/Button/Button.d.ts.map +1 -1
  14. package/dist/components/Card/Card.d.ts +8 -8
  15. package/dist/components/Card/Card.d.ts.map +1 -1
  16. package/dist/components/Charts/BarChart/BarChart.d.ts +7 -3
  17. package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
  18. package/dist/components/Charts/DonutChart/DonutChart.d.ts +4 -4
  19. package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  20. package/dist/components/Charts/LineChart/LineChart.d.ts +8 -3
  21. package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  22. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  23. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  24. package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -2
  25. package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  26. package/dist/components/CircularProgress/CircularProgress.d.ts +2 -2
  27. package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  28. package/dist/components/Dialog/Dialog.d.ts +2 -2
  29. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  30. package/dist/components/Divider/Divider.d.ts +15 -0
  31. package/dist/components/Divider/Divider.d.ts.map +1 -0
  32. package/dist/components/Dot/Dot.d.ts +20 -0
  33. package/dist/components/Dot/Dot.d.ts.map +1 -0
  34. package/dist/components/Footer/Footer.d.ts +31 -0
  35. package/dist/components/Footer/Footer.d.ts.map +1 -0
  36. package/dist/components/Icon/Icon.d.ts +2 -2
  37. package/dist/components/Icon/Icon.d.ts.map +1 -1
  38. package/dist/components/IconButton/IconButton.d.ts +2 -2
  39. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  40. package/dist/components/Image/Image.d.ts +18 -0
  41. package/dist/components/Image/Image.d.ts.map +1 -0
  42. package/dist/components/Input/Input.d.ts +2 -2
  43. package/dist/components/Input/Input.d.ts.map +1 -1
  44. package/dist/components/Kanban/KanbanBoard.d.ts +12 -12
  45. package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
  46. package/dist/components/Kanban/KanbanCard.d.ts +2 -2
  47. package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
  48. package/dist/components/Kanban/KanbanColumn.d.ts +5 -5
  49. package/dist/components/Kanban/KanbanColumn.d.ts.map +1 -1
  50. package/dist/components/Link/Link.d.ts +16 -0
  51. package/dist/components/Link/Link.d.ts.map +1 -0
  52. package/dist/components/Menu/Keyboard.d.ts +2 -2
  53. package/dist/components/Menu/Keyboard.d.ts.map +1 -1
  54. package/dist/components/Menu/Menu.d.ts +2 -2
  55. package/dist/components/Menu/Menu.d.ts.map +1 -1
  56. package/dist/components/Menu/MenuItem.d.ts +11 -2
  57. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  58. package/dist/components/Menu/MenuSection.d.ts +2 -2
  59. package/dist/components/Menu/MenuSection.d.ts.map +1 -1
  60. package/dist/components/Menu/MenuSeparator.d.ts +5 -0
  61. package/dist/components/Menu/MenuSeparator.d.ts.map +1 -0
  62. package/dist/components/Menu/MenuTrigger.d.ts +2 -2
  63. package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
  64. package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
  65. package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
  66. package/dist/components/NavItem/NavItem.d.ts +2 -2
  67. package/dist/components/NavItem/NavItem.d.ts.map +1 -1
  68. package/dist/components/PageHeader/PageHeader.d.ts +12 -0
  69. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  70. package/dist/components/Pagination/Pagination.d.ts +14 -0
  71. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  72. package/dist/components/ProgressBar/ProgressBar.d.ts +15 -3
  73. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  74. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  75. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  76. package/dist/components/Rating/Rating.d.ts +18 -0
  77. package/dist/components/Rating/Rating.d.ts.map +1 -0
  78. package/dist/components/SectionHeader/SectionHeader.d.ts +12 -0
  79. package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
  80. package/dist/components/Select/Option.d.ts +3 -0
  81. package/dist/components/Select/Option.d.ts.map +1 -0
  82. package/dist/components/Select/Select.d.ts +2 -2
  83. package/dist/components/Select/Select.d.ts.map +1 -1
  84. package/dist/components/StatCard/StatCard.d.ts +2 -2
  85. package/dist/components/StatCard/StatCard.d.ts.map +1 -1
  86. package/dist/components/Stepper/Stepper.d.ts +17 -0
  87. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  88. package/dist/components/Switch/Switch.d.ts +2 -2
  89. package/dist/components/Switch/Switch.d.ts.map +1 -1
  90. package/dist/components/Tag/Tag.d.ts +2 -2
  91. package/dist/components/Tag/Tag.d.ts.map +1 -1
  92. package/dist/components/Textarea/Textarea.d.ts +17 -0
  93. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  94. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  95. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  96. package/dist/components/TopBar/TopBar.d.ts +18 -0
  97. package/dist/components/TopBar/TopBar.d.ts.map +1 -0
  98. package/dist/index.css +1 -1
  99. package/dist/index.d.ts +109 -85
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +1424 -945
  102. package/dist/layouts/Box/Box.d.ts +2 -2
  103. package/dist/layouts/Box/Box.d.ts.map +1 -1
  104. package/dist/layouts/Center/Center.d.ts +2 -2
  105. package/dist/layouts/Center/Center.d.ts.map +1 -1
  106. package/dist/layouts/Cluster/Cluster.d.ts +2 -2
  107. package/dist/layouts/Cluster/Cluster.d.ts.map +1 -1
  108. package/dist/layouts/Cover/Cover.d.ts +2 -2
  109. package/dist/layouts/Cover/Cover.d.ts.map +1 -1
  110. package/dist/layouts/Grid/Grid.d.ts +2 -2
  111. package/dist/layouts/Grid/Grid.d.ts.map +1 -1
  112. package/dist/layouts/Sidebar/Sidebar.d.ts +2 -2
  113. package/dist/layouts/Sidebar/Sidebar.d.ts.map +1 -1
  114. package/dist/layouts/Stack/Stack.d.ts +3 -3
  115. package/dist/layouts/Stack/Stack.d.ts.map +1 -1
  116. package/dist/layouts/Switcher/Switcher.d.ts +2 -2
  117. package/dist/layouts/Switcher/Switcher.d.ts.map +1 -1
  118. package/dist/typography/Heading/Heading.d.ts +11 -2
  119. package/dist/typography/Heading/Heading.d.ts.map +1 -1
  120. package/dist/typography/Prose/Prose.d.ts +2 -2
  121. package/dist/typography/Prose/Prose.d.ts.map +1 -1
  122. package/dist/typography/Text/Text.d.ts +13 -2
  123. package/dist/typography/Text/Text.d.ts.map +1 -1
  124. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,45 +1,46 @@
1
1
  "use client";
2
2
  import { clsx as ne } from "clsx";
3
3
  import { twMerge as oe } from "tailwind-merge";
4
- import { useButton as O, useTextField as ie, useCheckbox as ae, useCheckboxGroup as se, useSelect as ce, HiddenSelect as le, usePopover as de, useListBox as ue, useOption as me, usePreventScroll as fe, useModalOverlay as he, useDialog as pe, OverlayContainer as ge, FocusScope as be, useSwitch as _e, VisuallyHidden as ve, useRadioGroup as Ne, useTooltip as Ce, useTooltipTrigger as ye, useProgressBar as Z, useLink as ke } from "react-aria";
5
- import w, { useState as D, useCallback as $, useEffect as xe, forwardRef as b, useRef as y, createContext as Pe, Children as Se, isValidElement as Be, cloneElement as Ie } from "react";
6
- import { jsx as r, jsxs as h, Fragment as T } from "react/jsx-runtime";
4
+ import { useButton as L, useTextField as Z, useCheckbox as se, useCheckboxGroup as de, useSelect as ce, HiddenSelect as le, usePopover as ue, useListBox as me, useOption as pe, usePreventScroll as he, useModalOverlay as fe, useDialog as _e, OverlayContainer as ge, FocusScope as be, useSwitch as ve, VisuallyHidden as Ne, useRadioGroup as xe, useTooltip as Re, useTooltipTrigger as ye, useProgressBar as q, useLink as ke } from "react-aria";
5
+ import P, { useState as M, useCallback as T, useEffect as Ce, forwardRef as v, useRef as C, createContext as Pe, Children as Se, isValidElement as $e, cloneElement as Be } from "react";
6
+ import { jsx as i, jsxs as p, Fragment as B } from "react/jsx-runtime";
7
7
  import { useObjectRef as k } from "@react-aria/utils";
8
- import { Icon as $e } from "@iconify/react";
9
- import { useToggleState as q, useCheckboxGroupState as we, useSelectState as Te, useRadioGroupState as De, useTooltipTriggerState as Me } from "react-stately";
10
- import { MenuTrigger as Re, Popover as Ee, Menu as Oe, MenuItem as Ke, MenuSection as Le, Header as Ge, Collection as Ae, Keyboard as Fe } from "react-aria-components";
11
- import { Separator as kr, SubmenuTrigger as xr } from "react-aria-components";
12
- import { ResponsiveContainer as G, BarChart as je, CartesianGrid as J, XAxis as K, YAxis as L, Tooltip as A, Legend as F, Bar as ze, LineChart as He, Line as Ue, PieChart as Xe, Pie as We, Cell as Ye } from "recharts";
13
- import { useDroppable as Ze, useSensors as qe, useSensor as U, PointerSensor as Je, KeyboardSensor as Qe, DndContext as Ve, closestCorners as et, DragOverlay as tt } from "@dnd-kit/core";
14
- import { SortableContext as rt, verticalListSortingStrategy as nt, sortableKeyboardCoordinates as ot, useSortable as it } from "@dnd-kit/sortable";
15
- import { CSS as at } from "@dnd-kit/utilities";
16
- function m(...t) {
17
- return oe(ne(t));
8
+ import { Icon as Ie } from "@iconify/react";
9
+ import { useToggleState as J, useCheckboxGroupState as we, useSelectState as Te, useRadioGroupState as Me, useTooltipTriggerState as De } from "react-stately";
10
+ import { Item as Ai } from "react-stately";
11
+ import { MenuTrigger as Ee, Popover as Oe, Menu as Le, Keyboard as ze, MenuItem as Ke, Text as V, MenuSection as Ge, Header as Ae, Collection as Fe, Separator as je, SubmenuTrigger as He } from "react-aria-components";
12
+ import { Separator as ji } from "react-aria-components";
13
+ import { ResponsiveContainer as G, BarChart as Ve, CartesianGrid as Q, XAxis as z, YAxis as K, Tooltip as A, Legend as F, Bar as Ue, LineChart as Xe, Line as We, PieChart as Ye, Pie as Ze, Cell as qe } from "recharts";
14
+ import { useDroppable as Je, useSensors as Qe, useSensor as U, PointerSensor as er, KeyboardSensor as rr, DndContext as ir, closestCorners as tr, DragOverlay as ar } from "@dnd-kit/core";
15
+ import { SortableContext as nr, verticalListSortingStrategy as or, sortableKeyboardCoordinates as sr, useSortable as dr } from "@dnd-kit/sortable";
16
+ import { CSS as cr } from "@dnd-kit/utilities";
17
+ function m(...r) {
18
+ return oe(ne(r));
18
19
  }
19
- function Q(t, e, n) {
20
- const { buttonProps: o } = O(
21
- { ...t, isDisabled: t.isDisabled || e },
22
- n
20
+ function ee(r, e, t) {
21
+ const { buttonProps: n } = L(
22
+ { ...r, isDisabled: r.isDisabled || e },
23
+ t
23
24
  );
24
25
  return {
25
26
  buttonProps: {
26
- ...o,
27
+ ...n,
27
28
  "aria-busy": e || void 0
28
29
  }
29
30
  };
30
31
  }
31
- const st = {
32
- axisColor: "--token-component-chart-axis-color",
33
- gridColor: "--token-component-chart-grid-color",
34
- labelColor: "--token-component-chart-label-color",
35
- legendColor: "--token-component-chart-legend-color",
36
- tooltipBg: "--token-component-chart-tooltip-bg",
37
- tooltipText: "--token-component-chart-tooltip-text",
38
- tooltipBorder: "--token-component-chart-tooltip-border",
39
- chartBg: "--token-component-chart-bg"
40
- }, ct = Array.from(
32
+ const lr = {
33
+ axisColor: "--rudi-component-chart-axis-color",
34
+ gridColor: "--rudi-component-chart-grid-color",
35
+ labelColor: "--rudi-component-chart-label-color",
36
+ legendColor: "--rudi-component-chart-legend-color",
37
+ tooltipBg: "--rudi-component-chart-tooltip-bg",
38
+ tooltipText: "--rudi-component-chart-tooltip-text",
39
+ tooltipBorder: "--rudi-component-chart-tooltip-border",
40
+ chartBg: "--rudi-component-chart-bg"
41
+ }, ur = Array.from(
41
42
  { length: 8 },
42
- (t, e) => `--token-color-dataviz-series-${e + 1}`
43
+ (r, e) => `--rudi-color-dataviz-series-${e + 1}`
43
44
  ), X = [
44
45
  "#2563eb",
45
46
  "#d946ef",
@@ -63,205 +64,205 @@ function W() {
63
64
  tooltipBorder: "#e5e7eb",
64
65
  chartBg: "#ffffff"
65
66
  };
66
- const t = getComputedStyle(document.documentElement), e = (i) => t.getPropertyValue(i).trim(), n = ct.map((i, a) => e(i) || X[a]), o = {};
67
- for (const [i, a] of Object.entries(st))
68
- o[i] = e(a) || "";
67
+ const r = getComputedStyle(document.documentElement), e = (a) => r.getPropertyValue(a).trim(), t = ur.map((a, o) => e(a) || X[o]), n = {};
68
+ for (const [a, o] of Object.entries(lr))
69
+ n[a] = e(o) || "";
69
70
  return {
70
- colors: n,
71
- axisColor: o.axisColor,
72
- gridColor: o.gridColor,
73
- labelColor: o.labelColor,
74
- legendColor: o.legendColor,
75
- tooltipBg: o.tooltipBg,
76
- tooltipText: o.tooltipText,
77
- tooltipBorder: o.tooltipBorder,
78
- chartBg: o.chartBg
71
+ colors: t,
72
+ axisColor: n.axisColor,
73
+ gridColor: n.gridColor,
74
+ labelColor: n.labelColor,
75
+ legendColor: n.legendColor,
76
+ tooltipBg: n.tooltipBg,
77
+ tooltipText: n.tooltipText,
78
+ tooltipBorder: n.tooltipBorder,
79
+ chartBg: n.chartBg
79
80
  };
80
81
  }
81
82
  function j() {
82
- const [t, e] = D(W), n = $(() => {
83
+ const [r, e] = M(W), t = T(() => {
83
84
  e(W());
84
85
  }, []);
85
- return xe(() => {
86
- n();
87
- const o = new MutationObserver((i) => {
88
- for (const a of i)
89
- a.type === "attributes" && a.attributeName === "data-theme" && n();
86
+ return Ce(() => {
87
+ t();
88
+ const n = new MutationObserver((a) => {
89
+ for (const o of a)
90
+ o.type === "attributes" && o.attributeName === "data-theme" && t();
90
91
  });
91
- return o.observe(document.documentElement, {
92
+ return n.observe(document.documentElement, {
92
93
  attributes: !0,
93
94
  attributeFilter: ["data-theme"]
94
- }), () => o.disconnect();
95
- }, [n]), t;
95
+ }), () => n.disconnect();
96
+ }, [t]), r;
96
97
  }
97
- const P = b(
98
- function({ icon: e, size: n = "md", color: o, label: i, className: a }, l) {
99
- const c = typeof n == "string" ? `rudiment-icon--${n}` : void 0, d = typeof n == "number" ? { width: n, height: n, ...o ? { color: o } : {} } : o ? { color: o } : void 0;
100
- return /* @__PURE__ */ r(
98
+ const N = v(
99
+ function({ icon: e, size: t = "md", color: n, label: a, className: o }, d) {
100
+ const c = typeof t == "string" ? `rudi-icon--${t}` : void 0, s = typeof t == "number" ? { width: t, height: t, ...n ? { color: n } : {} } : n ? { color: n } : void 0;
101
+ return /* @__PURE__ */ i(
101
102
  "span",
102
103
  {
103
- ref: l,
104
- className: m("rudiment-icon", c, a),
105
- role: i ? "img" : void 0,
106
- "aria-label": i,
107
- "aria-hidden": i ? void 0 : !0,
108
- style: d,
109
- children: /* @__PURE__ */ r($e, { icon: e })
104
+ ref: d,
105
+ className: m("rudi-icon", c, o),
106
+ role: a ? "img" : void 0,
107
+ "aria-label": a,
108
+ "aria-hidden": a ? void 0 : !0,
109
+ style: s,
110
+ children: /* @__PURE__ */ i(Ie, { icon: e })
110
111
  }
111
112
  );
112
113
  }
113
- ), Ot = w.forwardRef(
114
+ ), Hr = P.forwardRef(
114
115
  function({
115
116
  variant: e = "primary",
116
- size: n = "md",
117
- isLoading: o = !1,
118
- iconBefore: i,
119
- iconAfter: a,
120
- className: l,
117
+ size: t = "md",
118
+ isLoading: n = !1,
119
+ iconBefore: a,
120
+ iconAfter: o,
121
+ className: d,
121
122
  children: c,
122
- ...d
123
- }, u) {
124
- const s = k(u), { buttonProps: p } = Q(d, o, s);
125
- return /* @__PURE__ */ r(
123
+ ...s
124
+ }, l) {
125
+ const u = k(l), { buttonProps: f } = ee(s, n, u);
126
+ return /* @__PURE__ */ i(
126
127
  "button",
127
128
  {
128
- ...p,
129
- ref: s,
129
+ ...f,
130
+ ref: u,
130
131
  className: m(
131
- "rudiment-button",
132
- `rudiment-button--${e}`,
133
- `rudiment-button--${n}`,
134
- o && "rudiment-button--loading",
135
- l
132
+ "rudi-button",
133
+ `rudi-button--${e}`,
134
+ `rudi-button--${t}`,
135
+ n && "rudi-button--loading",
136
+ d
136
137
  ),
137
- children: o ? /* @__PURE__ */ h(T, { children: [
138
- /* @__PURE__ */ r("span", { className: "rudiment-button__spinner", role: "img", "aria-hidden": "true" }),
139
- /* @__PURE__ */ r("span", { children: c })
140
- ] }) : /* @__PURE__ */ h(T, { children: [
141
- i && /* @__PURE__ */ r(P, { icon: i, size: n, className: "rudiment-button__icon" }),
142
- /* @__PURE__ */ r("span", { children: c }),
143
- a && /* @__PURE__ */ r(P, { icon: a, size: n, className: "rudiment-button__icon" })
138
+ children: n ? /* @__PURE__ */ p(B, { children: [
139
+ /* @__PURE__ */ i("span", { className: "rudi-button__spinner", role: "img", "aria-hidden": "true" }),
140
+ /* @__PURE__ */ i("span", { children: c })
141
+ ] }) : /* @__PURE__ */ p(B, { children: [
142
+ a && /* @__PURE__ */ i(N, { icon: a, size: t, className: "rudi-button__icon" }),
143
+ /* @__PURE__ */ i("span", { children: c }),
144
+ o && /* @__PURE__ */ i(N, { icon: o, size: t, className: "rudi-button__icon" })
144
145
  ] })
145
146
  }
146
147
  );
147
148
  }
148
- ), Kt = w.forwardRef(
149
+ ), Vr = P.forwardRef(
149
150
  function({
150
151
  label: e,
151
- type: n = "text",
152
- placeholder: o,
153
- description: i,
154
- errorMessage: a,
155
- isRequired: l = !1,
152
+ type: t = "text",
153
+ placeholder: n,
154
+ description: a,
155
+ errorMessage: o,
156
+ isRequired: d = !1,
156
157
  isDisabled: c = !1,
157
- value: d,
158
- defaultValue: u,
159
- onChange: s,
160
- className: p
161
- }, g) {
162
- const f = k(g), {
163
- labelProps: _,
164
- inputProps: v,
165
- descriptionProps: N,
166
- errorMessageProps: x,
167
- isInvalid: C
168
- } = ie(
158
+ value: s,
159
+ defaultValue: l,
160
+ onChange: u,
161
+ className: f
162
+ }, _) {
163
+ const h = k(_), {
164
+ labelProps: g,
165
+ inputProps: b,
166
+ descriptionProps: x,
167
+ errorMessageProps: y,
168
+ isInvalid: R
169
+ } = Z(
169
170
  {
170
171
  label: e,
171
- type: n,
172
- placeholder: o,
173
- description: i,
174
- errorMessage: a,
175
- isRequired: l,
172
+ type: t,
173
+ placeholder: n,
174
+ description: a,
175
+ errorMessage: o,
176
+ isRequired: d,
176
177
  isDisabled: c,
177
- value: d,
178
- defaultValue: u,
179
- onChange: s,
180
- isInvalid: !!a
178
+ value: s,
179
+ defaultValue: l,
180
+ onChange: u,
181
+ isInvalid: !!o
181
182
  },
182
- f
183
+ h
183
184
  );
184
- return /* @__PURE__ */ h("div", { className: m("rudiment-input", p), children: [
185
- /* @__PURE__ */ h("label", { ..._, className: "rudiment-input__label", children: [
185
+ return /* @__PURE__ */ p("div", { className: m("rudi-input", f), children: [
186
+ /* @__PURE__ */ p("label", { ...g, className: "rudi-input__label", children: [
186
187
  e,
187
- l && /* @__PURE__ */ h("span", { className: "rudiment-input__required", "aria-hidden": "true", children: [
188
+ d && /* @__PURE__ */ p("span", { className: "rudi-input__required", "aria-hidden": "true", children: [
188
189
  " ",
189
190
  "*"
190
191
  ] })
191
192
  ] }),
192
- /* @__PURE__ */ r(
193
+ /* @__PURE__ */ i(
193
194
  "input",
194
195
  {
195
- ...v,
196
- ref: f,
196
+ ...b,
197
+ ref: h,
197
198
  className: m(
198
- "rudiment-input__field",
199
- C && "rudiment-input__field--error"
199
+ "rudi-input__field",
200
+ R && "rudi-input__field--error"
200
201
  )
201
202
  }
202
203
  ),
203
- i && !C && /* @__PURE__ */ r("p", { ...N, className: "rudiment-input__description", children: i }),
204
- C && a && /* @__PURE__ */ r("p", { ...x, className: "rudiment-input__error", children: a })
204
+ a && !R && /* @__PURE__ */ i("p", { ...x, className: "rudi-input__description", children: a }),
205
+ R && o && /* @__PURE__ */ i("p", { ...y, className: "rudi-input__error", children: o })
205
206
  ] });
206
207
  }
207
- ), Lt = b(
208
- function(e, n) {
209
- const o = k(n), i = q(e), { inputProps: a } = ae(e, i, o);
210
- return /* @__PURE__ */ h(
208
+ ), Ur = v(
209
+ function(e, t) {
210
+ const n = k(t), a = J(e), { inputProps: o } = se(e, a, n);
211
+ return /* @__PURE__ */ p(
211
212
  "label",
212
213
  {
213
214
  className: m(
214
- "rudiment-checkbox",
215
- e.isDisabled && "rudiment-checkbox--disabled",
215
+ "rudi-checkbox",
216
+ e.isDisabled && "rudi-checkbox--disabled",
216
217
  e.className
217
218
  ),
218
219
  children: [
219
- /* @__PURE__ */ r("input", { ...a, ref: o, className: "rudiment-checkbox__input" }),
220
- /* @__PURE__ */ r(
220
+ /* @__PURE__ */ i("input", { ...o, ref: n, className: "rudi-checkbox__input" }),
221
+ /* @__PURE__ */ i(
221
222
  "span",
222
223
  {
223
224
  className: m(
224
- "rudiment-checkbox__control",
225
- i.isSelected && "rudiment-checkbox__control--checked",
226
- e.isIndeterminate && "rudiment-checkbox__control--indeterminate"
225
+ "rudi-checkbox__control",
226
+ a.isSelected && "rudi-checkbox__control--checked",
227
+ e.isIndeterminate && "rudi-checkbox__control--indeterminate"
227
228
  ),
228
229
  "aria-hidden": "true"
229
230
  }
230
231
  ),
231
- /* @__PURE__ */ r("span", { className: "rudiment-checkbox__label", children: e.children })
232
+ /* @__PURE__ */ i("span", { className: "rudi-checkbox__label", children: e.children })
232
233
  ]
233
234
  }
234
235
  );
235
236
  }
236
237
  );
237
- function Gt(t) {
238
- const e = we(t), { groupProps: n, labelProps: o, descriptionProps: i, errorMessageProps: a } = se(t, e);
239
- return /* @__PURE__ */ h(
238
+ function Xr(r) {
239
+ const e = we(r), { groupProps: t, labelProps: n, descriptionProps: a, errorMessageProps: o } = de(r, e);
240
+ return /* @__PURE__ */ p(
240
241
  "div",
241
242
  {
242
- ...n,
243
- className: m("rudiment-checkbox-group", t.className),
243
+ ...t,
244
+ className: m("rudi-checkbox-group", r.className),
244
245
  children: [
245
- /* @__PURE__ */ r("span", { ...o, className: "rudiment-checkbox-group__label", children: t.label }),
246
- t.children,
247
- t.description && !t.errorMessage && /* @__PURE__ */ r(
246
+ /* @__PURE__ */ i("span", { ...n, className: "rudi-checkbox-group__label", children: r.label }),
247
+ r.children,
248
+ r.description && !r.errorMessage && /* @__PURE__ */ i(
248
249
  "p",
249
250
  {
250
- ...i,
251
- className: "rudiment-checkbox-group__description",
252
- children: t.description
251
+ ...a,
252
+ className: "rudi-checkbox-group__description",
253
+ children: r.description
253
254
  }
254
255
  ),
255
- t.errorMessage && /* @__PURE__ */ r("p", { ...a, className: "rudiment-checkbox-group__error", children: t.errorMessage })
256
+ r.errorMessage && /* @__PURE__ */ i("p", { ...o, className: "rudi-checkbox-group__error", children: r.errorMessage })
256
257
  ]
257
258
  }
258
259
  );
259
260
  }
260
- function lt(t) {
261
- return /* @__PURE__ */ r(
261
+ function mr(r) {
262
+ return /* @__PURE__ */ i(
262
263
  "svg",
263
264
  {
264
- ...t,
265
+ ...r,
265
266
  xmlns: "http://www.w3.org/2000/svg",
266
267
  width: "16",
267
268
  height: "16",
@@ -271,489 +272,527 @@ function lt(t) {
271
272
  strokeWidth: "2",
272
273
  strokeLinecap: "round",
273
274
  strokeLinejoin: "round",
274
- children: /* @__PURE__ */ r("polyline", { points: "6 9 12 15 18 9" })
275
+ children: /* @__PURE__ */ i("polyline", { points: "6 9 12 15 18 9" })
275
276
  }
276
277
  );
277
278
  }
278
- function dt({
279
- state: t,
279
+ function pr({
280
+ state: r,
280
281
  triggerRef: e,
281
- popoverRef: n,
282
- children: o
282
+ popoverRef: t,
283
+ children: n
283
284
  }) {
284
- const { popoverProps: i } = de({ triggerRef: e, popoverRef: n }, t);
285
- return /* @__PURE__ */ r(
285
+ const { popoverProps: a } = ue({ triggerRef: e, popoverRef: t }, r);
286
+ return /* @__PURE__ */ i(
286
287
  "div",
287
288
  {
288
- ...i,
289
- ref: n,
290
- className: "rudiment-select__popover",
291
- children: o
289
+ ...a,
290
+ ref: t,
291
+ className: "rudi-select__popover",
292
+ children: n
292
293
  }
293
294
  );
294
295
  }
295
- function ut({ state: t, listBoxRef: e, ...n }) {
296
- const { listBoxProps: o } = ue(n, t, e);
297
- return /* @__PURE__ */ r("ul", { ...o, ref: e, className: "rudiment-select__listbox", children: [...t.collection].map((i) => /* @__PURE__ */ r(mt, { item: i, state: t }, i.key)) });
296
+ function hr({ state: r, listBoxRef: e, ...t }) {
297
+ const { listBoxProps: n } = me(t, r, e);
298
+ return /* @__PURE__ */ i("ul", { ...n, ref: e, className: "rudi-select__listbox", children: [...r.collection].map((a) => /* @__PURE__ */ i(fr, { item: a, state: r }, a.key)) });
298
299
  }
299
- function mt({ item: t, state: e }) {
300
- const n = y(null), { optionProps: o, isSelected: i, isFocused: a } = me(
301
- { key: t.key },
300
+ function fr({ item: r, state: e }) {
301
+ const t = C(null), { optionProps: n, isSelected: a, isFocused: o } = pe(
302
+ { key: r.key },
302
303
  e,
303
- n
304
+ t
304
305
  );
305
- return /* @__PURE__ */ r(
306
+ return /* @__PURE__ */ i(
306
307
  "li",
307
308
  {
308
- ...o,
309
- ref: n,
310
- className: "rudiment-select__option",
311
- "data-focused": a,
312
- "aria-selected": i,
313
- children: t.rendered
309
+ ...n,
310
+ ref: t,
311
+ className: "rudi-select__option",
312
+ "data-focused": o,
313
+ "aria-selected": a,
314
+ children: r.rendered
314
315
  }
315
316
  );
316
317
  }
317
- function At(t) {
318
- const e = Te(t), n = y(null), o = y(null), i = y(null), {
319
- labelProps: a,
320
- triggerProps: l,
318
+ function Wr(r) {
319
+ const e = Te(r), t = C(null), n = C(null), a = C(null), {
320
+ labelProps: o,
321
+ triggerProps: d,
321
322
  valueProps: c,
322
- menuProps: d,
323
- descriptionProps: u,
324
- errorMessageProps: s
323
+ menuProps: s,
324
+ descriptionProps: l,
325
+ errorMessageProps: u
325
326
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
326
- } = ce(t, e, n), { buttonProps: p } = O(l, n);
327
- return /* @__PURE__ */ h("div", { className: m("rudiment-select", t.className), children: [
328
- /* @__PURE__ */ r("label", { ...a, className: "rudiment-select__label", children: t.label }),
329
- /* @__PURE__ */ r(le, { state: e, triggerRef: n, label: t.label }),
330
- /* @__PURE__ */ h(
327
+ } = ce(r, e, t), { buttonProps: f } = L(d, t);
328
+ return /* @__PURE__ */ p("div", { className: m("rudi-select", r.className), children: [
329
+ /* @__PURE__ */ i("label", { ...o, className: "rudi-select__label", children: r.label }),
330
+ /* @__PURE__ */ i(le, { state: e, triggerRef: t, label: r.label }),
331
+ /* @__PURE__ */ p(
331
332
  "button",
332
333
  {
333
- ...p,
334
- ref: n,
334
+ ...f,
335
+ ref: t,
335
336
  className: m(
336
- "rudiment-select__trigger",
337
- t.errorMessage && "rudiment-select__trigger--error"
337
+ "rudi-select__trigger",
338
+ r.errorMessage && "rudi-select__trigger--error"
338
339
  ),
339
340
  children: [
340
- /* @__PURE__ */ r("span", { ...c, children: e.selectedItem ? e.selectedItem.rendered : t.placeholder || "Select an option" }),
341
- /* @__PURE__ */ r(lt, { "aria-hidden": "true" })
341
+ /* @__PURE__ */ i("span", { ...c, children: e.selectedItem ? e.selectedItem.rendered : r.placeholder || "Select an option" }),
342
+ /* @__PURE__ */ i(mr, { "aria-hidden": "true" })
342
343
  ]
343
344
  }
344
345
  ),
345
- e.isOpen && /* @__PURE__ */ r(dt, { state: e, triggerRef: n, popoverRef: o, children: /* @__PURE__ */ r(ut, { ...d, state: e, listBoxRef: i }) }),
346
- t.description && !t.errorMessage && /* @__PURE__ */ r("p", { ...u, className: "rudiment-select__description", children: t.description }),
347
- t.errorMessage && /* @__PURE__ */ r("p", { ...s, className: "rudiment-select__error", children: t.errorMessage })
346
+ e.isOpen && /* @__PURE__ */ i(pr, { state: e, triggerRef: t, popoverRef: n, children: /* @__PURE__ */ i(hr, { ...s, state: e, listBoxRef: a }) }),
347
+ r.description && !r.errorMessage && /* @__PURE__ */ i("p", { ...l, className: "rudi-select__description", children: r.description }),
348
+ r.errorMessage && /* @__PURE__ */ i("p", { ...u, className: "rudi-select__error", children: r.errorMessage })
348
349
  ] });
349
350
  }
350
- function Ft(t) {
351
- return /* @__PURE__ */ r(Re, { ...t });
351
+ function Yr(r) {
352
+ return /* @__PURE__ */ i(Ee, { ...r });
352
353
  }
353
- function jt({ className: t, ...e }) {
354
- return /* @__PURE__ */ r(Ee, { className: "rudiment-menu__popover", children: /* @__PURE__ */ r(
355
- Oe,
354
+ function Zr({ className: r, ...e }) {
355
+ return /* @__PURE__ */ i(Oe, { className: "rudi-menu__popover", children: /* @__PURE__ */ i(
356
+ Le,
356
357
  {
357
358
  ...e,
358
- className: m("rudiment-menu__list", t)
359
+ className: m("rudi-menu__list", r)
359
360
  }
360
361
  ) });
361
362
  }
362
- function zt({ isDestructive: t, className: e, ...n }) {
363
- return /* @__PURE__ */ r(
363
+ function _r({ className: r, ...e }) {
364
+ return /* @__PURE__ */ i(
365
+ ze,
366
+ {
367
+ ...e,
368
+ className: m("rudi-menu__item-shortcut", r)
369
+ }
370
+ );
371
+ }
372
+ function qr({
373
+ isDestructive: r,
374
+ icon: e,
375
+ label: t,
376
+ description: n,
377
+ shortcut: a,
378
+ className: o,
379
+ textValue: d,
380
+ children: c,
381
+ ...s
382
+ }) {
383
+ const l = t != null || e != null || n != null || a != null;
384
+ return /* @__PURE__ */ i(
364
385
  Ke,
365
386
  {
366
- ...n,
367
- className: (o) => m(
368
- "rudiment-menu__item",
369
- t && "rudiment-menu__item--destructive",
370
- typeof e == "function" ? e(o) : e
387
+ ...s,
388
+ textValue: d ?? t ?? (typeof c == "string" ? c : void 0),
389
+ className: (f) => m(
390
+ "rudi-menu__item",
391
+ r && "rudi-menu__item--destructive",
392
+ typeof o == "function" ? o(f) : o
371
393
  ),
372
- "data-destructive": t || void 0
394
+ "data-destructive": r || void 0,
395
+ children: l ? /* @__PURE__ */ p(B, { children: [
396
+ e && /* @__PURE__ */ i(N, { icon: e, className: "rudi-menu__item-icon" }),
397
+ (t != null || n != null) && /* @__PURE__ */ p("span", { className: "rudi-menu__item-content", children: [
398
+ t != null && /* @__PURE__ */ i(V, { slot: "label", className: "rudi-menu__item-label", children: t }),
399
+ n != null && /* @__PURE__ */ i(V, { slot: "description", className: "rudi-menu__item-description", children: n })
400
+ ] }),
401
+ a != null && /* @__PURE__ */ i(_r, { children: a })
402
+ ] }) : c
373
403
  }
374
404
  );
375
405
  }
376
- function Ht({
377
- title: t,
406
+ function Jr({
407
+ title: r,
378
408
  className: e,
379
- children: n,
380
- ...o
409
+ children: t,
410
+ ...n
381
411
  }) {
382
- return /* @__PURE__ */ h(Le, { ...o, className: m("rudiment-menu__section", e), children: [
383
- t && /* @__PURE__ */ r(Ge, { className: "rudiment-menu__section-header", children: t }),
384
- /* @__PURE__ */ r(Ae, { items: o.items, children: n })
412
+ return /* @__PURE__ */ p(Ge, { ...n, className: m("rudi-menu__section", e), children: [
413
+ r && /* @__PURE__ */ i(Ae, { className: "rudi-menu__section-header", children: r }),
414
+ /* @__PURE__ */ i(Fe, { items: n.items, children: t })
385
415
  ] });
386
416
  }
387
- function Ut({ className: t, ...e }) {
388
- return /* @__PURE__ */ r(
389
- Fe,
417
+ function Qr({ className: r, ...e }) {
418
+ return /* @__PURE__ */ i(
419
+ je,
390
420
  {
391
421
  ...e,
392
- className: m("rudiment-menu__item-shortcut", t)
422
+ className: m("rudi-menu__separator", r)
393
423
  }
394
424
  );
395
425
  }
396
- const Xt = b(function({
426
+ function ei(r) {
427
+ return /* @__PURE__ */ i(He, { ...r });
428
+ }
429
+ const ri = v(function({
397
430
  isOpen: e,
398
- onClose: n,
399
- title: o,
400
- isDismissable: i = !0,
401
- size: a = "md",
402
- children: l,
431
+ onClose: t,
432
+ title: n,
433
+ isDismissable: a = !0,
434
+ size: o = "md",
435
+ children: d,
403
436
  className: c
404
- }, d) {
405
- const u = y(null), s = k(d);
406
- fe({ isDisabled: !e });
407
- const p = {
437
+ }, s) {
438
+ const l = C(null), u = k(s);
439
+ he({ isDisabled: !e });
440
+ const f = {
408
441
  isOpen: e,
409
- close: n,
442
+ close: t,
410
443
  open: () => {
411
444
  },
412
445
  toggle: () => {
413
446
  },
414
447
  setOpen: () => {
415
448
  }
416
- }, { modalProps: g, underlayProps: f } = he(
417
- { isDismissable: i },
418
- p,
419
- s
420
- ), { dialogProps: _, titleProps: v } = pe({}, s);
421
- return e ? /* @__PURE__ */ r(ge, { children: /* @__PURE__ */ r(
449
+ }, { modalProps: _, underlayProps: h } = fe(
450
+ { isDismissable: a },
451
+ f,
452
+ u
453
+ ), { dialogProps: g, titleProps: b } = _e({}, u);
454
+ return e ? /* @__PURE__ */ i(ge, { children: /* @__PURE__ */ i(
422
455
  "div",
423
456
  {
424
- ...f,
425
- ref: u,
426
- className: "rudiment-dialog__overlay",
427
- children: /* @__PURE__ */ r(be, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ h(
457
+ ...h,
458
+ ref: l,
459
+ className: "rudi-dialog__overlay",
460
+ children: /* @__PURE__ */ i(be, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ p(
428
461
  "div",
429
462
  {
430
- ...g,
431
463
  ..._,
432
- ref: s,
464
+ ...g,
465
+ ref: u,
433
466
  className: m(
434
- "rudiment-dialog",
435
- `rudiment-dialog--${a}`,
467
+ "rudi-dialog",
468
+ `rudi-dialog--${o}`,
436
469
  c
437
470
  ),
438
471
  children: [
439
- /* @__PURE__ */ r("h2", { ...v, className: "rudiment-dialog__title", children: o }),
440
- /* @__PURE__ */ r("div", { className: "rudiment-dialog__body", children: l })
472
+ /* @__PURE__ */ i("h2", { ...b, className: "rudi-dialog__title", children: n }),
473
+ /* @__PURE__ */ i("div", { className: "rudi-dialog__body", children: d })
441
474
  ]
442
475
  }
443
476
  ) })
444
477
  }
445
478
  ) }) : null;
446
- }), Wt = b(
447
- function(e, n) {
448
- const o = k(n), i = q(e), { inputProps: a } = _e(e, i, o);
449
- return /* @__PURE__ */ h(
479
+ }), ii = v(
480
+ function(e, t) {
481
+ const n = k(t), a = J(e), { inputProps: o } = ve(e, a, n);
482
+ return /* @__PURE__ */ p(
450
483
  "label",
451
484
  {
452
485
  className: m(
453
- "rudiment-switch",
454
- e.isDisabled && "rudiment-switch--disabled",
486
+ "rudi-switch",
487
+ e.isDisabled && "rudi-switch--disabled",
455
488
  e.className
456
489
  ),
457
490
  children: [
458
- /* @__PURE__ */ r(ve, { children: /* @__PURE__ */ r("input", { ...a, ref: o }) }),
459
- /* @__PURE__ */ r(
491
+ /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i("input", { ...o, ref: n }) }),
492
+ /* @__PURE__ */ i(
460
493
  "span",
461
494
  {
462
495
  className: m(
463
- "rudiment-switch__track",
464
- i.isSelected && "rudiment-switch__track--on"
496
+ "rudi-switch__track",
497
+ a.isSelected && "rudi-switch__track--on"
465
498
  ),
466
499
  "aria-hidden": "true",
467
- children: /* @__PURE__ */ r("span", { className: "rudiment-switch__thumb" })
500
+ children: /* @__PURE__ */ i("span", { className: "rudi-switch__thumb" })
468
501
  }
469
502
  ),
470
- /* @__PURE__ */ r("span", { className: "rudiment-switch__label", children: e.children })
503
+ /* @__PURE__ */ i("span", { className: "rudi-switch__label", children: e.children })
471
504
  ]
472
505
  }
473
506
  );
474
507
  }
475
- ), ft = Pe(null);
476
- function Yt(t) {
477
- const e = De(t), { radioGroupProps: n, labelProps: o, descriptionProps: i, errorMessageProps: a } = Ne(t, e);
478
- return /* @__PURE__ */ r(ft.Provider, { value: e, children: /* @__PURE__ */ h(
508
+ ), gr = Pe(null);
509
+ function ti(r) {
510
+ const e = Me(r), { radioGroupProps: t, labelProps: n, descriptionProps: a, errorMessageProps: o } = xe(r, e);
511
+ return /* @__PURE__ */ i(gr.Provider, { value: e, children: /* @__PURE__ */ p(
479
512
  "div",
480
513
  {
481
- ...n,
482
- className: m("rudiment-radio-group", t.className),
514
+ ...t,
515
+ className: m("rudi-radio-group", r.className),
483
516
  children: [
484
- /* @__PURE__ */ r("span", { ...o, className: "rudiment-radio-group__label", children: t.label }),
485
- /* @__PURE__ */ r(
517
+ /* @__PURE__ */ i("span", { ...n, className: "rudi-radio-group__label", children: r.label }),
518
+ /* @__PURE__ */ i(
486
519
  "div",
487
520
  {
488
521
  className: m(
489
- "rudiment-radio-group__options",
490
- t.orientation === "horizontal" && "rudiment-radio-group__options--horizontal"
522
+ "rudi-radio-group__options",
523
+ r.orientation === "horizontal" && "rudi-radio-group__options--horizontal"
491
524
  ),
492
- children: t.children
525
+ children: r.children
493
526
  }
494
527
  ),
495
- t.description && !t.errorMessage && /* @__PURE__ */ r("p", { ...i, className: "rudiment-radio-group__description", children: t.description }),
496
- t.errorMessage && /* @__PURE__ */ r("p", { ...a, className: "rudiment-radio-group__error", children: t.errorMessage })
528
+ r.description && !r.errorMessage && /* @__PURE__ */ i("p", { ...a, className: "rudi-radio-group__description", children: r.description }),
529
+ r.errorMessage && /* @__PURE__ */ i("p", { ...o, className: "rudi-radio-group__error", children: r.errorMessage })
497
530
  ]
498
531
  }
499
532
  ) });
500
533
  }
501
- const Zt = b(
502
- function({ delay: e = 500, closeDelay: n = 0, children: o }, i) {
503
- const a = Me({ delay: e, closeDelay: n }), l = y(null), { triggerProps: c, tooltipProps: d } = ye({ delay: e, closeDelay: n }, a, l), [u, s] = o, { "aria-describedby": p, tabIndex: g, ...f } = c;
504
- return /* @__PURE__ */ h("span", { ref: i, className: "rudiment-tooltip-trigger", ...f, children: [
505
- w.cloneElement(u, {
506
- ref: l,
507
- "aria-describedby": p
534
+ const ai = v(
535
+ function({ delay: e = 500, closeDelay: t = 0, children: n }, a) {
536
+ const o = De({ delay: e, closeDelay: t }), d = C(null), { triggerProps: c, tooltipProps: s } = ye({ delay: e, closeDelay: t }, o, d), [l, u] = n, { "aria-describedby": f, tabIndex: _, ...h } = c;
537
+ return /* @__PURE__ */ p("span", { ref: a, className: "rudi-tooltip-trigger", ...h, children: [
538
+ P.cloneElement(l, {
539
+ ref: d,
540
+ "aria-describedby": f
508
541
  }),
509
- a.isOpen && w.cloneElement(s, d)
542
+ o.isOpen && P.cloneElement(u, s)
510
543
  ] });
511
544
  }
512
- ), qt = b(
513
- function({ children: e, className: n, ...o }, i) {
514
- const { tooltipProps: a } = Ce(o);
515
- return /* @__PURE__ */ r(
545
+ ), ni = v(
546
+ function({ children: e, className: t, ...n }, a) {
547
+ const { tooltipProps: o } = Re(n);
548
+ return /* @__PURE__ */ i(
516
549
  "span",
517
550
  {
518
- ...a,
519
- ref: i,
520
- className: m("rudiment-tooltip", n),
551
+ ...o,
552
+ ref: a,
553
+ className: m("rudi-tooltip", t),
521
554
  role: "tooltip",
522
555
  children: e
523
556
  }
524
557
  );
525
558
  }
526
559
  );
527
- function Jt({
528
- variant: t,
560
+ function oi({
561
+ variant: r,
529
562
  title: e,
530
- icon: n,
531
- isPolite: o = !1,
532
- dismissible: i = !1,
533
- onDismiss: a,
534
- children: l,
563
+ icon: t,
564
+ isPolite: n = !1,
565
+ dismissible: a = !1,
566
+ onDismiss: o,
567
+ children: d,
535
568
  className: c
536
569
  }) {
537
- const [d, u] = D(!1);
538
- return d ? null : /* @__PURE__ */ h(
570
+ const [s, l] = M(!1);
571
+ return s ? null : /* @__PURE__ */ p(
539
572
  "div",
540
573
  {
541
- role: o ? "status" : "alert",
574
+ role: n ? "status" : "alert",
542
575
  className: m(
543
- "rudiment-alert",
544
- `rudiment-alert--${t}`,
545
- n && "rudiment-alert--has-icon",
546
- i && "rudiment-alert--dismissible",
576
+ "rudi-alert",
577
+ `rudi-alert--${r}`,
578
+ t && "rudi-alert--has-icon",
579
+ a && "rudi-alert--dismissible",
547
580
  c
548
581
  ),
549
582
  children: [
550
- n && /* @__PURE__ */ r(P, { icon: n, size: "md", className: "rudiment-alert__icon", "aria-hidden": "true" }),
551
- /* @__PURE__ */ h("div", { className: "rudiment-alert__body", children: [
552
- e && /* @__PURE__ */ r("p", { className: "rudiment-alert__title", children: e }),
553
- /* @__PURE__ */ r("div", { className: "rudiment-alert__content", children: l })
583
+ t && /* @__PURE__ */ i(N, { icon: t, size: "md", className: "rudi-alert__icon", "aria-hidden": "true" }),
584
+ /* @__PURE__ */ p("div", { className: "rudi-alert__body", children: [
585
+ e && /* @__PURE__ */ i("p", { className: "rudi-alert__title", children: e }),
586
+ /* @__PURE__ */ i("div", { className: "rudi-alert__content", children: d })
554
587
  ] }),
555
- i && /* @__PURE__ */ r(
588
+ a && /* @__PURE__ */ i(
556
589
  "button",
557
590
  {
558
591
  type: "button",
559
- className: "rudiment-alert__dismiss",
592
+ className: "rudi-alert__dismiss",
560
593
  "aria-label": "Dismiss alert",
561
594
  onClick: () => {
562
- u(!0), a?.();
595
+ l(!0), o?.();
563
596
  },
564
- children: /* @__PURE__ */ r(P, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
597
+ children: /* @__PURE__ */ i(N, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
565
598
  }
566
599
  )
567
600
  ]
568
601
  }
569
602
  );
570
603
  }
571
- const Qt = w.forwardRef(
604
+ const si = P.forwardRef(
572
605
  function({
573
606
  variant: e = "secondary",
574
- size: n = "md",
575
- isLoading: o = !1,
576
- className: i,
577
- children: a,
578
- ...l
607
+ size: t = "md",
608
+ isLoading: n = !1,
609
+ className: a,
610
+ children: o,
611
+ ...d
579
612
  }, c) {
580
- const d = k(c), { buttonProps: u } = Q(l, o, d);
581
- return /* @__PURE__ */ r(
613
+ const s = k(c), { buttonProps: l } = ee(d, n, s);
614
+ return /* @__PURE__ */ i(
582
615
  "button",
583
616
  {
584
- ...u,
585
- ref: d,
617
+ ...l,
618
+ ref: s,
586
619
  className: m(
587
- "rudiment-icon-button",
588
- `rudiment-icon-button--${e}`,
589
- `rudiment-icon-button--${n}`,
590
- i
620
+ "rudi-icon-button",
621
+ `rudi-icon-button--${e}`,
622
+ `rudi-icon-button--${t}`,
623
+ a
591
624
  ),
592
- children: a
625
+ children: o
593
626
  }
594
627
  );
595
628
  }
596
629
  );
597
- function ht({
598
- variant: t = "default",
630
+ function br({
631
+ variant: r = "default",
599
632
  size: e = "md",
600
- dot: n = !1,
601
- children: o,
602
- className: i
633
+ dot: t = !1,
634
+ children: n,
635
+ className: a
603
636
  }) {
604
- return /* @__PURE__ */ r(
637
+ return /* @__PURE__ */ i(
605
638
  "span",
606
639
  {
607
640
  className: m(
608
- "rudiment-badge",
609
- `rudiment-badge--${t}`,
610
- `rudiment-badge--${e}`,
611
- n && "rudiment-badge--dot",
612
- i
641
+ "rudi-badge",
642
+ `rudi-badge--${r}`,
643
+ `rudi-badge--${e}`,
644
+ t && "rudi-badge--dot",
645
+ a
613
646
  ),
614
- children: !n && o
647
+ children: !t && n
615
648
  }
616
649
  );
617
650
  }
618
- function Vt({
619
- variant: t = "default",
651
+ function di({
652
+ variant: r = "default",
620
653
  dismissible: e = !1,
621
- onDismiss: n,
622
- onPress: o,
623
- isDisabled: i = !1,
624
- children: a,
625
- className: l
654
+ onDismiss: t,
655
+ onPress: n,
656
+ isDisabled: a = !1,
657
+ children: o,
658
+ className: d
626
659
  }) {
627
- const [c, d] = D(!1), u = y(null), { buttonProps: s } = O(
660
+ const [c, s] = M(!1), l = C(null), { buttonProps: u } = L(
628
661
  {
629
- onPress: o,
630
- isDisabled: i,
631
- elementType: o ? "button" : "span"
662
+ onPress: n,
663
+ isDisabled: a,
664
+ elementType: n ? "button" : "span"
632
665
  },
633
- u
634
- ), p = typeof a == "string" ? `Remove ${a}` : "Remove", g = m(
635
- "rudiment-tag",
636
- `rudiment-tag--${t}`,
637
- o && "rudiment-tag--interactive",
638
- e && "rudiment-tag--dismissible",
639
666
  l
667
+ ), f = typeof o == "string" ? `Remove ${o}` : "Remove", _ = m(
668
+ "rudi-tag",
669
+ `rudi-tag--${r}`,
670
+ n && "rudi-tag--interactive",
671
+ e && "rudi-tag--dismissible",
672
+ d
640
673
  );
641
- return c ? null : o ? /* @__PURE__ */ h("button", { ref: u, ...s, className: g, children: [
642
- a,
643
- e && /* @__PURE__ */ r(
674
+ return c ? null : n ? /* @__PURE__ */ p("button", { ref: l, ...u, className: _, children: [
675
+ o,
676
+ e && /* @__PURE__ */ i(
644
677
  "span",
645
678
  {
646
679
  role: "button",
647
680
  tabIndex: 0,
648
- className: "rudiment-tag__close",
649
- "aria-label": p,
650
- onClick: (f) => {
651
- f.stopPropagation(), d(!0), n?.();
681
+ className: "rudi-tag__close",
682
+ "aria-label": f,
683
+ onClick: (h) => {
684
+ h.stopPropagation(), s(!0), t?.();
652
685
  },
653
- onKeyDown: (f) => {
654
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), d(!0), n?.());
686
+ onKeyDown: (h) => {
687
+ (h.key === "Enter" || h.key === " ") && (h.preventDefault(), h.stopPropagation(), s(!0), t?.());
655
688
  },
656
- children: /* @__PURE__ */ r(P, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
689
+ children: /* @__PURE__ */ i(N, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
657
690
  }
658
691
  )
659
- ] }) : /* @__PURE__ */ h(
692
+ ] }) : /* @__PURE__ */ p(
660
693
  "span",
661
694
  {
662
- className: g,
663
- ...i ? { "aria-disabled": "true" } : {},
695
+ className: _,
696
+ ...a ? { "aria-disabled": "true" } : {},
664
697
  children: [
665
- a,
666
- e && /* @__PURE__ */ r(
698
+ o,
699
+ e && /* @__PURE__ */ i(
667
700
  "button",
668
701
  {
669
702
  type: "button",
670
- className: "rudiment-tag__close",
671
- "aria-label": p,
703
+ className: "rudi-tag__close",
704
+ "aria-label": f,
672
705
  onClick: () => {
673
- d(!0), n?.();
706
+ s(!0), t?.();
674
707
  },
675
- children: /* @__PURE__ */ r(P, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
708
+ children: /* @__PURE__ */ i(N, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
676
709
  }
677
710
  )
678
711
  ]
679
712
  }
680
713
  );
681
714
  }
682
- const pt = b(
683
- function({ variant: e = "default", padding: n = "md", children: o, className: i }, a) {
684
- return /* @__PURE__ */ r(
715
+ const vr = v(
716
+ function({ variant: e = "default", padding: t = "md", children: n, className: a }, o) {
717
+ return /* @__PURE__ */ i(
685
718
  "div",
686
719
  {
687
- ref: a,
720
+ ref: o,
688
721
  className: m(
689
- "rudiment-card",
690
- `rudiment-card--${e}`,
691
- `rudiment-card--padding-${n}`,
692
- i
722
+ "rudi-card",
723
+ `rudi-card--${e}`,
724
+ `rudi-card--padding-${t}`,
725
+ a
693
726
  ),
694
- children: o
727
+ children: n
695
728
  }
696
729
  );
697
730
  }
698
731
  );
699
- function gt({ children: t, className: e }) {
700
- return /* @__PURE__ */ r("div", { className: m("rudiment-card__header", e), children: t });
732
+ function Nr({ children: r, className: e }) {
733
+ return /* @__PURE__ */ i("div", { className: m("rudi-card__header", e), children: r });
701
734
  }
702
- function bt({ children: t, className: e }) {
703
- return /* @__PURE__ */ r("div", { className: m("rudiment-card__body", e), children: t });
735
+ function xr({ children: r, className: e }) {
736
+ return /* @__PURE__ */ i("div", { className: m("rudi-card__body", e), children: r });
704
737
  }
705
- function _t({ children: t, className: e }) {
706
- return /* @__PURE__ */ r("div", { className: m("rudiment-card__footer", e), children: t });
738
+ function Rr({ children: r, className: e }) {
739
+ return /* @__PURE__ */ i("div", { className: m("rudi-card__footer", e), children: r });
707
740
  }
708
- const Y = Object.assign(pt, {
709
- Header: gt,
710
- Body: bt,
711
- Footer: _t
741
+ const Y = Object.assign(vr, {
742
+ Header: Nr,
743
+ Body: xr,
744
+ Footer: Rr
712
745
  });
713
- function er({
714
- value: t,
746
+ function yr(r, e, t) {
747
+ if (!t || t.length === 0) return e;
748
+ const n = [...t].sort((a, o) => o.at - a.at).find((a) => r >= a.at);
749
+ return n ? n.variant : e;
750
+ }
751
+ function ci({
752
+ value: r,
715
753
  minValue: e = 0,
716
- maxValue: n = 100,
717
- label: o,
718
- showValueLabel: i = !1,
719
- variant: a = "default",
720
- size: l = "md",
721
- className: c
754
+ maxValue: t = 100,
755
+ label: n,
756
+ showValueLabel: a = !1,
757
+ variant: o = "default",
758
+ thresholds: d,
759
+ size: c = "md",
760
+ className: s
722
761
  }) {
723
- const { progressBarProps: d, labelProps: u } = Z({
724
- label: o,
725
- value: t,
762
+ const { progressBarProps: l, labelProps: u } = q({
763
+ label: n,
764
+ value: r,
726
765
  minValue: e,
727
- maxValue: n
728
- }), s = (t - e) / (n - e) * 100;
729
- return /* @__PURE__ */ h(
766
+ maxValue: t
767
+ }), f = t - e, _ = f === 0 ? 0 : (r - e) / f * 100, h = Math.min(100, Math.max(0, _)), g = yr(h, o, d);
768
+ return /* @__PURE__ */ p(
730
769
  "div",
731
770
  {
732
- ...d,
733
- className: m("rudiment-progress", c),
771
+ ...l,
772
+ className: m("rudi-progress", s),
734
773
  children: [
735
- /* @__PURE__ */ h("div", { className: "rudiment-progress__label-row", children: [
736
- /* @__PURE__ */ r("span", { ...u, className: "rudiment-progress__label", children: o }),
737
- i && /* @__PURE__ */ h("span", { className: "rudiment-progress__value", children: [
738
- Math.round(s),
774
+ /* @__PURE__ */ p("div", { className: "rudi-progress__label-row", children: [
775
+ /* @__PURE__ */ i("span", { ...u, className: "rudi-progress__label", children: n }),
776
+ a && /* @__PURE__ */ p("span", { className: "rudi-progress__value", children: [
777
+ Math.round(h),
739
778
  "%"
740
779
  ] })
741
780
  ] }),
742
- /* @__PURE__ */ r(
781
+ /* @__PURE__ */ i(
743
782
  "div",
744
783
  {
745
784
  className: m(
746
- "rudiment-progress__track",
747
- `rudiment-progress__track--${l}`
785
+ "rudi-progress__track",
786
+ `rudi-progress__track--${c}`
748
787
  ),
749
- children: /* @__PURE__ */ r(
788
+ children: /* @__PURE__ */ i(
750
789
  "div",
751
790
  {
752
791
  className: m(
753
- "rudiment-progress__bar",
754
- `rudiment-progress__bar--${a}`
792
+ "rudi-progress__bar",
793
+ `rudi-progress__bar--${g}`
755
794
  ),
756
- style: { width: `${s}%` }
795
+ style: { width: `${h}%` }
757
796
  }
758
797
  )
759
798
  }
@@ -762,292 +801,700 @@ function er({
762
801
  }
763
802
  );
764
803
  }
765
- function vt(t) {
766
- const e = t.trim().split(/\s+/);
804
+ function li({
805
+ orientation: r = "horizontal",
806
+ spacing: e = "md",
807
+ label: t,
808
+ className: n
809
+ }) {
810
+ const a = m(
811
+ "rudi-divider",
812
+ `rudi-divider--${r}`,
813
+ `rudi-divider--spacing-${e}`,
814
+ t && r === "horizontal" && "rudi-divider--labeled",
815
+ n
816
+ );
817
+ return t && r === "horizontal" ? /* @__PURE__ */ p("div", { className: a, role: "separator", "aria-orientation": "horizontal", children: [
818
+ /* @__PURE__ */ i("span", { className: "rudi-divider__line", "aria-hidden": "true" }),
819
+ /* @__PURE__ */ i("span", { className: "rudi-divider__label", children: t }),
820
+ /* @__PURE__ */ i("span", { className: "rudi-divider__line", "aria-hidden": "true" })
821
+ ] }) : r === "vertical" ? /* @__PURE__ */ i(
822
+ "div",
823
+ {
824
+ className: a,
825
+ role: "separator",
826
+ "aria-orientation": "vertical"
827
+ }
828
+ ) : /* @__PURE__ */ i("hr", { className: a });
829
+ }
830
+ function ui({
831
+ tone: r = "default",
832
+ color: e,
833
+ size: t = "md",
834
+ pulse: n = !1,
835
+ label: a,
836
+ className: o
837
+ }) {
838
+ const d = e ? { "--rudi-dot-color": e } : void 0;
839
+ return /* @__PURE__ */ i(
840
+ "span",
841
+ {
842
+ className: m(
843
+ "rudi-dot",
844
+ !e && `rudi-dot--${r}`,
845
+ `rudi-dot--${t}`,
846
+ n && "rudi-dot--pulse",
847
+ o
848
+ ),
849
+ style: d,
850
+ role: a ? "status" : void 0,
851
+ "aria-hidden": a ? void 0 : !0,
852
+ children: a && /* @__PURE__ */ i("span", { className: "rudi-dot__label", children: a })
853
+ }
854
+ );
855
+ }
856
+ const mi = P.forwardRef(
857
+ function({
858
+ href: e,
859
+ variant: t = "default",
860
+ underline: n = "hover",
861
+ external: a = !1,
862
+ children: o,
863
+ className: d,
864
+ ...c
865
+ }, s) {
866
+ return /* @__PURE__ */ p(
867
+ "a",
868
+ {
869
+ ...c,
870
+ ...a ? { target: "_blank", rel: "noreferrer noopener" } : {},
871
+ ref: s,
872
+ href: e,
873
+ className: m(
874
+ "rudi-link",
875
+ `rudi-link--${t}`,
876
+ `rudi-link--underline-${n}`,
877
+ d
878
+ ),
879
+ children: [
880
+ o,
881
+ a && /* @__PURE__ */ i(
882
+ N,
883
+ {
884
+ icon: "lucide:arrow-up-right",
885
+ size: "sm",
886
+ className: "rudi-link__external-icon"
887
+ }
888
+ )
889
+ ]
890
+ }
891
+ );
892
+ }
893
+ );
894
+ function pi({
895
+ src: r,
896
+ alt: e,
897
+ aspectRatio: t,
898
+ fit: n = "cover",
899
+ radius: a = "md",
900
+ loading: o = "lazy",
901
+ overlay: d,
902
+ className: c
903
+ }) {
904
+ return /* @__PURE__ */ p(
905
+ "div",
906
+ {
907
+ className: m("rudi-image", `rudi-image--radius-${a}`, c),
908
+ style: t ? { aspectRatio: t } : void 0,
909
+ children: [
910
+ /* @__PURE__ */ i(
911
+ "img",
912
+ {
913
+ src: r,
914
+ alt: e,
915
+ loading: o,
916
+ className: m("rudi-image__img", `rudi-image__img--${n}`)
917
+ }
918
+ ),
919
+ d != null && /* @__PURE__ */ i("div", { className: "rudi-image__overlay", children: d })
920
+ ]
921
+ }
922
+ );
923
+ }
924
+ function kr(r, e) {
925
+ return e >= r + 1 ? "full" : e >= r + 0.5 ? "half" : "empty";
926
+ }
927
+ function hi({
928
+ value: r,
929
+ max: e = 5,
930
+ size: t = "md",
931
+ onChange: n,
932
+ showValue: a = !1,
933
+ count: o,
934
+ label: d,
935
+ className: c
936
+ }) {
937
+ const s = typeof n == "function", l = s ? Math.round(r) : r, u = Array.from({ length: e }, (g, b) => kr(b, l)), f = d ?? `Rated ${l} out of ${e}`, _ = (g) => /* @__PURE__ */ i(
938
+ N,
939
+ {
940
+ icon: g === "half" ? "lucide:star-half" : "lucide:star",
941
+ size: t,
942
+ className: m("rudi-rating__star", `rudi-rating__star--${g}`)
943
+ }
944
+ ), h = (a || o != null) && /* @__PURE__ */ p("span", { className: "rudi-rating__text", children: [
945
+ a && l.toFixed(1),
946
+ o != null && ` (${o})`
947
+ ] });
948
+ return s ? /* @__PURE__ */ p(
949
+ "div",
950
+ {
951
+ className: m("rudi-rating", `rudi-rating--${t}`, c),
952
+ role: "radiogroup",
953
+ "aria-label": f,
954
+ children: [
955
+ u.map((g, b) => /* @__PURE__ */ i(
956
+ "button",
957
+ {
958
+ type: "button",
959
+ role: "radio",
960
+ "aria-checked": Math.round(r) === b + 1,
961
+ "aria-label": `${b + 1} star${b === 0 ? "" : "s"}`,
962
+ className: "rudi-rating__button",
963
+ onClick: () => n(b + 1),
964
+ children: _(g)
965
+ },
966
+ b
967
+ )),
968
+ h
969
+ ]
970
+ }
971
+ ) : /* @__PURE__ */ p(
972
+ "div",
973
+ {
974
+ className: m("rudi-rating", `rudi-rating--${t}`, c),
975
+ role: "img",
976
+ "aria-label": f,
977
+ children: [
978
+ /* @__PURE__ */ i("span", { className: "rudi-rating__stars", "aria-hidden": "true", children: u.map((g, b) => /* @__PURE__ */ i("span", { children: _(g) }, b)) }),
979
+ h
980
+ ]
981
+ }
982
+ );
983
+ }
984
+ function Cr(r, e) {
985
+ return r.icon ? /* @__PURE__ */ i(N, { icon: r.icon, size: "sm" }) : r.status === "complete" ? /* @__PURE__ */ i(N, { icon: "lucide:check", size: "sm" }) : /* @__PURE__ */ i("span", { className: "rudi-stepper__number", children: e + 1 });
986
+ }
987
+ function fi({
988
+ steps: r,
989
+ orientation: e = "horizontal",
990
+ size: t = "md",
991
+ className: n
992
+ }) {
993
+ return /* @__PURE__ */ i(
994
+ "ol",
995
+ {
996
+ className: m(
997
+ "rudi-stepper",
998
+ `rudi-stepper--${e}`,
999
+ `rudi-stepper--${t}`,
1000
+ n
1001
+ ),
1002
+ children: r.map((a, o) => {
1003
+ const d = a.status ?? "upcoming", c = d === "complete" || d === "current", s = o < r.length - 1 && (r[o + 1].status ?? "upcoming") !== "upcoming";
1004
+ return /* @__PURE__ */ p(
1005
+ "li",
1006
+ {
1007
+ className: m("rudi-stepper__step", `rudi-stepper__step--${d}`),
1008
+ "aria-current": d === "current" ? "step" : void 0,
1009
+ children: [
1010
+ /* @__PURE__ */ p("div", { className: "rudi-stepper__marker", children: [
1011
+ o > 0 && /* @__PURE__ */ i(
1012
+ "span",
1013
+ {
1014
+ className: m(
1015
+ "rudi-stepper__connector",
1016
+ "rudi-stepper__connector--before",
1017
+ c && "rudi-stepper__connector--filled"
1018
+ ),
1019
+ "aria-hidden": "true"
1020
+ }
1021
+ ),
1022
+ /* @__PURE__ */ i(
1023
+ "span",
1024
+ {
1025
+ className: m(
1026
+ "rudi-stepper__node",
1027
+ c && "rudi-stepper__node--filled"
1028
+ ),
1029
+ children: Cr(a, o)
1030
+ }
1031
+ ),
1032
+ o < r.length - 1 && /* @__PURE__ */ i(
1033
+ "span",
1034
+ {
1035
+ className: m(
1036
+ "rudi-stepper__connector",
1037
+ "rudi-stepper__connector--after",
1038
+ s && "rudi-stepper__connector--filled"
1039
+ ),
1040
+ "aria-hidden": "true"
1041
+ }
1042
+ )
1043
+ ] }),
1044
+ /* @__PURE__ */ p("div", { className: "rudi-stepper__content", children: [
1045
+ /* @__PURE__ */ i("span", { className: "rudi-stepper__label", children: a.label }),
1046
+ a.description && /* @__PURE__ */ i("span", { className: "rudi-stepper__description", children: a.description })
1047
+ ] })
1048
+ ]
1049
+ },
1050
+ `${a.label}-${o}`
1051
+ );
1052
+ })
1053
+ }
1054
+ );
1055
+ }
1056
+ const _i = P.forwardRef(function({
1057
+ label: e,
1058
+ placeholder: t,
1059
+ description: n,
1060
+ errorMessage: a,
1061
+ isRequired: o = !1,
1062
+ isDisabled: d = !1,
1063
+ value: c,
1064
+ defaultValue: s,
1065
+ onChange: l,
1066
+ rows: u = 4,
1067
+ resize: f = "vertical",
1068
+ className: _
1069
+ }, h) {
1070
+ const g = k(h), {
1071
+ labelProps: b,
1072
+ inputProps: x,
1073
+ descriptionProps: y,
1074
+ errorMessageProps: R,
1075
+ isInvalid: S
1076
+ } = Z(
1077
+ {
1078
+ label: e,
1079
+ placeholder: t,
1080
+ description: n,
1081
+ errorMessage: a,
1082
+ isRequired: o,
1083
+ isDisabled: d,
1084
+ value: c,
1085
+ defaultValue: s,
1086
+ onChange: l,
1087
+ isInvalid: !!a,
1088
+ inputElementType: "textarea"
1089
+ },
1090
+ g
1091
+ );
1092
+ return /* @__PURE__ */ p("div", { className: m("rudi-textarea", _), children: [
1093
+ /* @__PURE__ */ p("label", { ...b, className: "rudi-textarea__label", children: [
1094
+ e,
1095
+ o && /* @__PURE__ */ p("span", { className: "rudi-textarea__required", "aria-hidden": "true", children: [
1096
+ " ",
1097
+ "*"
1098
+ ] })
1099
+ ] }),
1100
+ /* @__PURE__ */ i(
1101
+ "textarea",
1102
+ {
1103
+ ...x,
1104
+ ref: g,
1105
+ rows: u,
1106
+ className: m(
1107
+ "rudi-textarea__field",
1108
+ `rudi-textarea__field--resize-${f}`,
1109
+ S && "rudi-textarea__field--error"
1110
+ )
1111
+ }
1112
+ ),
1113
+ n && !S && /* @__PURE__ */ i("p", { ...y, className: "rudi-textarea__description", children: n }),
1114
+ S && a && /* @__PURE__ */ i("p", { ...R, className: "rudi-textarea__error", children: a })
1115
+ ] });
1116
+ });
1117
+ function gi({
1118
+ items: r,
1119
+ separator: e = "lucide:chevron-right",
1120
+ label: t = "Breadcrumb",
1121
+ className: n
1122
+ }) {
1123
+ return /* @__PURE__ */ i("nav", { "aria-label": t, className: m("rudi-breadcrumb", n), children: /* @__PURE__ */ i("ol", { className: "rudi-breadcrumb__list", children: r.map((a, o) => {
1124
+ const d = o === r.length - 1;
1125
+ return /* @__PURE__ */ p("li", { className: "rudi-breadcrumb__item", children: [
1126
+ d || !a.href ? /* @__PURE__ */ i(
1127
+ "span",
1128
+ {
1129
+ className: "rudi-breadcrumb__current",
1130
+ "aria-current": d ? "page" : void 0,
1131
+ children: a.label
1132
+ }
1133
+ ) : /* @__PURE__ */ i("a", { href: a.href, className: "rudi-breadcrumb__link", children: a.label }),
1134
+ !d && /* @__PURE__ */ i(
1135
+ N,
1136
+ {
1137
+ icon: e,
1138
+ size: "sm",
1139
+ className: "rudi-breadcrumb__separator"
1140
+ }
1141
+ )
1142
+ ] }, `${a.label}-${o}`);
1143
+ }) }) });
1144
+ }
1145
+ function Pr(r, e, t) {
1146
+ const n = t * 2 + 5;
1147
+ if (e <= n)
1148
+ return Array.from({ length: e }, (l, u) => u + 1);
1149
+ const a = Math.max(r - t, 1), o = Math.min(r + t, e), d = a > 2, c = o < e - 1, s = [1];
1150
+ if (d) s.push("ellipsis-start");
1151
+ else for (let l = 2; l < a; l++) s.push(l);
1152
+ for (let l = a; l <= o; l++)
1153
+ l !== 1 && l !== e && s.push(l);
1154
+ if (c) s.push("ellipsis-end");
1155
+ else for (let l = o + 1; l < e; l++) s.push(l);
1156
+ return s.push(e), s;
1157
+ }
1158
+ function bi({
1159
+ page: r,
1160
+ pageCount: e,
1161
+ onPageChange: t,
1162
+ siblingCount: n = 1,
1163
+ label: a = "Pagination",
1164
+ className: o
1165
+ }) {
1166
+ if (e <= 1) return null;
1167
+ const d = Pr(r, e, n), c = (s) => {
1168
+ const l = Math.min(Math.max(s, 1), e);
1169
+ l !== r && t(l);
1170
+ };
1171
+ return /* @__PURE__ */ i("nav", { "aria-label": a, className: m("rudi-pagination", o), children: /* @__PURE__ */ p("ul", { className: "rudi-pagination__list", children: [
1172
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1173
+ "button",
1174
+ {
1175
+ type: "button",
1176
+ className: "rudi-pagination__control",
1177
+ "aria-label": "Go to previous page",
1178
+ disabled: r <= 1,
1179
+ onClick: () => c(r - 1),
1180
+ children: /* @__PURE__ */ i(N, { icon: "lucide:chevron-left", size: "sm" })
1181
+ }
1182
+ ) }),
1183
+ d.map(
1184
+ (s) => typeof s == "number" ? /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1185
+ "button",
1186
+ {
1187
+ type: "button",
1188
+ className: m(
1189
+ "rudi-pagination__page",
1190
+ s === r && "rudi-pagination__page--active"
1191
+ ),
1192
+ "aria-label": `Go to page ${s}`,
1193
+ "aria-current": s === r ? "page" : void 0,
1194
+ onClick: () => c(s),
1195
+ children: s
1196
+ }
1197
+ ) }, s) : /* @__PURE__ */ i("li", { className: "rudi-pagination__ellipsis", "aria-hidden": "true", children: "…" }, s)
1198
+ ),
1199
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1200
+ "button",
1201
+ {
1202
+ type: "button",
1203
+ className: "rudi-pagination__control",
1204
+ "aria-label": "Go to next page",
1205
+ disabled: r >= e,
1206
+ onClick: () => c(r + 1),
1207
+ children: /* @__PURE__ */ i(N, { icon: "lucide:chevron-right", size: "sm" })
1208
+ }
1209
+ ) })
1210
+ ] }) });
1211
+ }
1212
+ function Sr(r) {
1213
+ const e = r.trim().split(/\s+/);
767
1214
  return e.length >= 2 ? (e[0][0] + e[e.length - 1][0]).toUpperCase() : (e[0]?.[0] ?? "").toUpperCase();
768
1215
  }
769
- function tr({
770
- src: t,
1216
+ function vi({
1217
+ src: r,
771
1218
  alt: e,
772
- name: n,
773
- size: o = "md",
774
- status: i,
775
- className: a
1219
+ name: t,
1220
+ size: n = "md",
1221
+ status: a,
1222
+ className: o
776
1223
  }) {
777
- const [l, c] = D(!1), d = t && !l, u = n ? vt(n) : "", s = e || n;
778
- return /* @__PURE__ */ h(
1224
+ const [d, c] = M(!1), s = r && !d, l = t ? Sr(t) : "", u = e || t;
1225
+ return /* @__PURE__ */ p(
779
1226
  "span",
780
1227
  {
781
1228
  className: m(
782
- "rudiment-avatar",
783
- `rudiment-avatar--${o}`,
784
- a
1229
+ "rudi-avatar",
1230
+ `rudi-avatar--${n}`,
1231
+ o
785
1232
  ),
786
1233
  role: "img",
787
- "aria-label": s,
1234
+ "aria-label": u,
788
1235
  children: [
789
- d ? /* @__PURE__ */ r(
1236
+ s ? /* @__PURE__ */ i(
790
1237
  "img",
791
1238
  {
792
- src: t,
1239
+ src: r,
793
1240
  alt: e || "",
794
- className: "rudiment-avatar__image",
1241
+ className: "rudi-avatar__image",
795
1242
  onError: () => c(!0)
796
1243
  }
797
- ) : /* @__PURE__ */ r("span", { className: "rudiment-avatar__initials", "aria-hidden": "true", children: u }),
798
- i && /* @__PURE__ */ r(
799
- ht,
1244
+ ) : /* @__PURE__ */ i("span", { className: "rudi-avatar__initials", "aria-hidden": "true", children: l }),
1245
+ a && /* @__PURE__ */ i(
1246
+ br,
800
1247
  {
801
- variant: i,
1248
+ variant: a,
802
1249
  dot: !0,
803
- className: "rudiment-avatar__status"
1250
+ className: "rudi-avatar__status"
804
1251
  }
805
1252
  )
806
1253
  ]
807
1254
  }
808
1255
  );
809
1256
  }
810
- function rr({
811
- label: t,
1257
+ function Ni({
1258
+ label: r,
812
1259
  value: e,
813
- delta: n,
814
- trend: o = "neutral",
815
- children: i,
816
- className: a
1260
+ delta: t,
1261
+ trend: n = "neutral",
1262
+ children: a,
1263
+ className: o
817
1264
  }) {
818
- return /* @__PURE__ */ r(
1265
+ return /* @__PURE__ */ i(
819
1266
  Y,
820
1267
  {
821
1268
  variant: "outlined",
822
1269
  padding: "md",
823
- className: m("rudiment-stat-card", a),
824
- children: /* @__PURE__ */ h(Y.Body, { children: [
825
- /* @__PURE__ */ r("span", { className: "rudiment-stat-card__label", children: t }),
826
- /* @__PURE__ */ r("span", { className: "rudiment-stat-card__value", children: e }),
827
- n && /* @__PURE__ */ r(
1270
+ className: m("rudi-stat-card", o),
1271
+ children: /* @__PURE__ */ p(Y.Body, { children: [
1272
+ /* @__PURE__ */ i("span", { className: "rudi-stat-card__label", children: r }),
1273
+ /* @__PURE__ */ i("span", { className: "rudi-stat-card__value", children: e }),
1274
+ t && /* @__PURE__ */ i(
828
1275
  "span",
829
1276
  {
830
1277
  className: m(
831
- "rudiment-stat-card__delta",
832
- `rudiment-stat-card__delta--${o}`
1278
+ "rudi-stat-card__delta",
1279
+ `rudi-stat-card__delta--${n}`
833
1280
  ),
834
- children: n
1281
+ children: t
835
1282
  }
836
1283
  ),
837
- i && /* @__PURE__ */ r("div", { className: "rudiment-stat-card__extra", children: i })
1284
+ a && /* @__PURE__ */ i("div", { className: "rudi-stat-card__extra", children: a })
838
1285
  ] })
839
1286
  }
840
1287
  );
841
1288
  }
842
- function V(t, e) {
1289
+ function re(r, e) {
843
1290
  return m(
844
- "rudiment-nav-item",
845
- t && "rudiment-nav-item--active",
1291
+ "rudi-nav-item",
1292
+ r && "rudi-nav-item--active",
846
1293
  e
847
1294
  );
848
1295
  }
849
- function ee(t, e, n) {
850
- return /* @__PURE__ */ h(T, { children: [
851
- t && /* @__PURE__ */ r(P, { icon: t, className: "rudiment-nav-item__icon" }),
852
- /* @__PURE__ */ r("span", { className: "rudiment-nav-item__label", children: e }),
853
- n && /* @__PURE__ */ r("span", { className: "rudiment-nav-item__badge", children: n })
1296
+ function ie(r, e, t) {
1297
+ return /* @__PURE__ */ p(B, { children: [
1298
+ r && /* @__PURE__ */ i(N, { icon: r, className: "rudi-nav-item__icon" }),
1299
+ /* @__PURE__ */ i("span", { className: "rudi-nav-item__label", children: e }),
1300
+ t && /* @__PURE__ */ i("span", { className: "rudi-nav-item__badge", children: t })
854
1301
  ] });
855
1302
  }
856
- const Nt = b(
857
- function({ label: e, icon: n, isActive: o = !1, href: i, onPress: a, badge: l, isDisabled: c = !1, className: d }, u) {
858
- const s = k(u), { linkProps: p } = ke(
859
- { href: i, isDisabled: c, onPress: a },
860
- s
1303
+ const $r = v(
1304
+ function({ label: e, icon: t, isActive: n = !1, href: a, onPress: o, badge: d, isDisabled: c = !1, className: s }, l) {
1305
+ const u = k(l), { linkProps: f } = ke(
1306
+ { href: a, isDisabled: c, onPress: o },
1307
+ u
861
1308
  );
862
- return /* @__PURE__ */ r(
1309
+ return /* @__PURE__ */ i(
863
1310
  "a",
864
1311
  {
865
- ...p,
866
- ref: s,
867
- href: i,
868
- className: V(o, d),
869
- children: ee(n, e, l)
1312
+ ...f,
1313
+ ref: u,
1314
+ href: a,
1315
+ className: re(n, s),
1316
+ children: ie(t, e, d)
870
1317
  }
871
1318
  );
872
1319
  }
873
- ), Ct = b(
874
- function({ label: e, icon: n, isActive: o = !1, onPress: i, badge: a, isDisabled: l = !1, className: c }, d) {
875
- const u = k(d), { buttonProps: s } = O(
876
- { onPress: i, isDisabled: l },
877
- u
1320
+ ), Br = v(
1321
+ function({ label: e, icon: t, isActive: n = !1, onPress: a, badge: o, isDisabled: d = !1, className: c }, s) {
1322
+ const l = k(s), { buttonProps: u } = L(
1323
+ { onPress: a, isDisabled: d },
1324
+ l
878
1325
  );
879
- return /* @__PURE__ */ r(
1326
+ return /* @__PURE__ */ i(
880
1327
  "button",
881
1328
  {
882
- ...s,
883
- ref: u,
884
- className: V(o, c),
885
- children: ee(n, e, a)
1329
+ ...u,
1330
+ ref: l,
1331
+ className: re(n, c),
1332
+ children: ie(t, e, o)
886
1333
  }
887
1334
  );
888
1335
  }
889
- ), nr = b(
890
- function(e, n) {
891
- return e.href ? /* @__PURE__ */ r(
892
- Nt,
1336
+ ), xi = v(
1337
+ function(e, t) {
1338
+ return e.href ? /* @__PURE__ */ i(
1339
+ $r,
893
1340
  {
894
1341
  ...e,
895
- ref: n
1342
+ ref: t
896
1343
  }
897
- ) : /* @__PURE__ */ r(
898
- Ct,
1344
+ ) : /* @__PURE__ */ i(
1345
+ Br,
899
1346
  {
900
1347
  ...e,
901
- ref: n
1348
+ ref: t
902
1349
  }
903
1350
  );
904
1351
  }
905
- ), E = 100, M = E / 2;
906
- function or({
907
- value: t,
1352
+ ), O = 100, D = O / 2;
1353
+ function Ri({
1354
+ value: r,
908
1355
  minValue: e = 0,
909
- maxValue: n = 100,
910
- label: o,
911
- showValueLabel: i = !1,
912
- variant: a = "default",
913
- size: l = "md",
1356
+ maxValue: t = 100,
1357
+ label: n,
1358
+ showValueLabel: a = !1,
1359
+ variant: o = "default",
1360
+ size: d = "md",
914
1361
  children: c,
915
- className: d
1362
+ className: s
916
1363
  }) {
917
- const { progressBarProps: u, labelProps: s } = Z({
918
- label: o,
919
- value: t,
1364
+ const { progressBarProps: l, labelProps: u } = q({
1365
+ label: n,
1366
+ value: r,
920
1367
  minValue: e,
921
- maxValue: n
922
- }), p = (t - e) / (n - e) * 100, g = 8, f = (E - g) / 2, _ = 2 * Math.PI * f, v = _ * (1 - p / 100);
923
- return /* @__PURE__ */ h(
1368
+ maxValue: t
1369
+ }), f = (r - e) / (t - e) * 100, _ = 8, h = (O - _) / 2, g = 2 * Math.PI * h, b = g * (1 - f / 100);
1370
+ return /* @__PURE__ */ p(
924
1371
  "div",
925
1372
  {
926
- ...u,
1373
+ ...l,
927
1374
  className: m(
928
- "rudiment-circular-progress",
929
- `rudiment-circular-progress--${l}`,
930
- d
1375
+ "rudi-circular-progress",
1376
+ `rudi-circular-progress--${d}`,
1377
+ s
931
1378
  ),
932
1379
  children: [
933
- /* @__PURE__ */ h(
1380
+ /* @__PURE__ */ p(
934
1381
  "svg",
935
1382
  {
936
- viewBox: `0 0 ${E} ${E}`,
937
- className: "rudiment-circular-progress__svg",
1383
+ viewBox: `0 0 ${O} ${O}`,
1384
+ className: "rudi-circular-progress__svg",
938
1385
  children: [
939
- /* @__PURE__ */ r(
1386
+ /* @__PURE__ */ i(
940
1387
  "circle",
941
1388
  {
942
- cx: M,
943
- cy: M,
944
- r: f,
945
- className: "rudiment-circular-progress__track",
946
- strokeWidth: g
1389
+ cx: D,
1390
+ cy: D,
1391
+ r: h,
1392
+ className: "rudi-circular-progress__track",
1393
+ strokeWidth: _
947
1394
  }
948
1395
  ),
949
- /* @__PURE__ */ r(
1396
+ /* @__PURE__ */ i(
950
1397
  "circle",
951
1398
  {
952
- cx: M,
953
- cy: M,
954
- r: f,
1399
+ cx: D,
1400
+ cy: D,
1401
+ r: h,
955
1402
  className: m(
956
- "rudiment-circular-progress__fill",
957
- `rudiment-circular-progress__fill--${a}`
1403
+ "rudi-circular-progress__fill",
1404
+ `rudi-circular-progress__fill--${o}`
958
1405
  ),
959
- strokeWidth: g,
960
- strokeDasharray: _,
961
- strokeDashoffset: v,
1406
+ strokeWidth: _,
1407
+ strokeDasharray: g,
1408
+ strokeDashoffset: b,
962
1409
  strokeLinecap: "round"
963
1410
  }
964
1411
  )
965
1412
  ]
966
1413
  }
967
1414
  ),
968
- /* @__PURE__ */ r("div", { className: "rudiment-circular-progress__center", children: c ?? (i && /* @__PURE__ */ h("span", { className: "rudiment-circular-progress__value", children: [
969
- Math.round(p),
1415
+ /* @__PURE__ */ i("div", { className: "rudi-circular-progress__center", children: c ?? (a && /* @__PURE__ */ p("span", { className: "rudi-circular-progress__value", children: [
1416
+ Math.round(f),
970
1417
  "%"
971
1418
  ] })) }),
972
- /* @__PURE__ */ r("span", { ...s, className: "rudiment-circular-progress__label", children: o })
1419
+ /* @__PURE__ */ i("span", { ...u, className: "rudi-circular-progress__label", children: n })
973
1420
  ]
974
1421
  }
975
1422
  );
976
1423
  }
977
- function ir({
978
- data: t,
1424
+ function yi({
1425
+ data: r,
979
1426
  dataKeys: e,
980
- indexKey: n,
981
- layout: o = "vertical",
982
- stacked: i = !1,
983
- showLegend: a = !0,
984
- showGrid: l = !0,
1427
+ indexKey: t,
1428
+ layout: n = "vertical",
1429
+ stacked: a = !1,
1430
+ showLegend: o = !0,
1431
+ showGrid: d = !0,
985
1432
  height: c = 300,
986
- label: d,
987
- className: u
1433
+ label: s,
1434
+ className: l
988
1435
  }) {
989
- const s = j(), p = o === "horizontal";
990
- return /* @__PURE__ */ r(
1436
+ const u = j(), f = n === "horizontal";
1437
+ return /* @__PURE__ */ i(
991
1438
  "div",
992
1439
  {
993
- className: m("rudiment-chart", u),
1440
+ className: m("rudi-chart", l),
994
1441
  role: "img",
995
- "aria-label": d,
996
- children: /* @__PURE__ */ r(G, { width: "100%", height: c, children: /* @__PURE__ */ h(
997
- je,
1442
+ "aria-label": s,
1443
+ children: /* @__PURE__ */ i(G, { width: "100%", height: c, children: /* @__PURE__ */ p(
1444
+ Ve,
998
1445
  {
999
- data: t,
1000
- layout: p ? "vertical" : "horizontal",
1446
+ data: r,
1447
+ layout: f ? "vertical" : "horizontal",
1001
1448
  children: [
1002
- l && /* @__PURE__ */ r(
1003
- J,
1449
+ d && /* @__PURE__ */ i(
1450
+ Q,
1004
1451
  {
1005
1452
  strokeDasharray: "3 3",
1006
- stroke: s.gridColor,
1007
- vertical: !p,
1008
- horizontal: !p
1453
+ stroke: u.gridColor,
1454
+ vertical: !f,
1455
+ horizontal: !f
1009
1456
  }
1010
1457
  ),
1011
- p ? /* @__PURE__ */ h(T, { children: [
1012
- /* @__PURE__ */ r(K, { type: "number", tick: { fill: s.axisColor } }),
1013
- /* @__PURE__ */ r(
1014
- L,
1458
+ f ? /* @__PURE__ */ p(B, { children: [
1459
+ /* @__PURE__ */ i(z, { type: "number", tick: { fill: u.axisColor } }),
1460
+ /* @__PURE__ */ i(
1461
+ K,
1015
1462
  {
1016
- dataKey: n,
1463
+ dataKey: t,
1017
1464
  type: "category",
1018
- tick: { fill: s.axisColor }
1465
+ tick: { fill: u.axisColor }
1019
1466
  }
1020
1467
  )
1021
- ] }) : /* @__PURE__ */ h(T, { children: [
1022
- /* @__PURE__ */ r(K, { dataKey: n, tick: { fill: s.axisColor } }),
1023
- /* @__PURE__ */ r(L, { tick: { fill: s.axisColor } })
1468
+ ] }) : /* @__PURE__ */ p(B, { children: [
1469
+ /* @__PURE__ */ i(z, { dataKey: t, tick: { fill: u.axisColor } }),
1470
+ /* @__PURE__ */ i(K, { tick: { fill: u.axisColor } })
1024
1471
  ] }),
1025
- /* @__PURE__ */ r(
1472
+ /* @__PURE__ */ i(
1026
1473
  A,
1027
1474
  {
1028
1475
  contentStyle: {
1029
- backgroundColor: s.tooltipBg,
1030
- color: s.tooltipText,
1031
- border: `1px solid ${s.tooltipBorder}`,
1476
+ backgroundColor: u.tooltipBg,
1477
+ color: u.tooltipText,
1478
+ border: `1px solid ${u.tooltipBorder}`,
1032
1479
  borderRadius: "0.375rem"
1033
1480
  }
1034
1481
  }
1035
1482
  ),
1036
- a && /* @__PURE__ */ r(
1483
+ o && /* @__PURE__ */ i(
1037
1484
  F,
1038
1485
  {
1039
- wrapperStyle: { color: s.legendColor }
1486
+ wrapperStyle: { color: u.legendColor }
1040
1487
  }
1041
1488
  ),
1042
- e.map((g, f) => /* @__PURE__ */ r(
1043
- ze,
1489
+ e.map((_, h) => /* @__PURE__ */ i(
1490
+ Ue,
1044
1491
  {
1045
- dataKey: g,
1046
- fill: s.colors[f % s.colors.length],
1047
- stackId: i ? "stack" : void 0,
1492
+ dataKey: _,
1493
+ fill: u.colors[h % u.colors.length],
1494
+ stackId: a ? "stack" : void 0,
1048
1495
  radius: [2, 2, 0, 0]
1049
1496
  },
1050
- g
1497
+ _
1051
1498
  ))
1052
1499
  ]
1053
1500
  }
@@ -1055,89 +1502,89 @@ function ir({
1055
1502
  }
1056
1503
  );
1057
1504
  }
1058
- function ar({
1059
- data: t,
1505
+ function ki({
1506
+ data: r,
1060
1507
  dataKeys: e,
1061
- indexKey: n,
1062
- curved: o = !0,
1063
- showDots: i = !0,
1064
- showGrid: a = !0,
1065
- showLegend: l = !0,
1508
+ indexKey: t,
1509
+ curved: n = !0,
1510
+ showDots: a = !0,
1511
+ showGrid: o = !0,
1512
+ showLegend: d = !0,
1066
1513
  height: c = 300,
1067
- label: d,
1068
- className: u
1514
+ label: s,
1515
+ className: l
1069
1516
  }) {
1070
- const s = j();
1071
- return /* @__PURE__ */ r(
1517
+ const u = j();
1518
+ return /* @__PURE__ */ i(
1072
1519
  "div",
1073
1520
  {
1074
- className: m("rudiment-chart", u),
1521
+ className: m("rudi-chart", l),
1075
1522
  role: "img",
1076
- "aria-label": d,
1077
- children: /* @__PURE__ */ r(G, { width: "100%", height: c, children: /* @__PURE__ */ h(He, { data: t, children: [
1078
- a && /* @__PURE__ */ r(
1079
- J,
1523
+ "aria-label": s,
1524
+ children: /* @__PURE__ */ i(G, { width: "100%", height: c, children: /* @__PURE__ */ p(Xe, { data: r, children: [
1525
+ o && /* @__PURE__ */ i(
1526
+ Q,
1080
1527
  {
1081
1528
  strokeDasharray: "3 3",
1082
- stroke: s.gridColor
1529
+ stroke: u.gridColor
1083
1530
  }
1084
1531
  ),
1085
- /* @__PURE__ */ r(K, { dataKey: n, tick: { fill: s.axisColor } }),
1086
- /* @__PURE__ */ r(L, { tick: { fill: s.axisColor } }),
1087
- /* @__PURE__ */ r(
1532
+ /* @__PURE__ */ i(z, { dataKey: t, tick: { fill: u.axisColor } }),
1533
+ /* @__PURE__ */ i(K, { tick: { fill: u.axisColor } }),
1534
+ /* @__PURE__ */ i(
1088
1535
  A,
1089
1536
  {
1090
1537
  contentStyle: {
1091
- backgroundColor: s.tooltipBg,
1092
- color: s.tooltipText,
1093
- border: `1px solid ${s.tooltipBorder}`,
1538
+ backgroundColor: u.tooltipBg,
1539
+ color: u.tooltipText,
1540
+ border: `1px solid ${u.tooltipBorder}`,
1094
1541
  borderRadius: "0.375rem"
1095
1542
  }
1096
1543
  }
1097
1544
  ),
1098
- l && /* @__PURE__ */ r(
1545
+ d && /* @__PURE__ */ i(
1099
1546
  F,
1100
1547
  {
1101
- wrapperStyle: { color: s.legendColor }
1548
+ wrapperStyle: { color: u.legendColor }
1102
1549
  }
1103
1550
  ),
1104
- e.map((p, g) => /* @__PURE__ */ r(
1105
- Ue,
1551
+ e.map((f, _) => /* @__PURE__ */ i(
1552
+ We,
1106
1553
  {
1107
- type: o ? "monotone" : "linear",
1108
- dataKey: p,
1109
- stroke: s.colors[g % s.colors.length],
1110
- dot: i,
1554
+ type: n ? "monotone" : "linear",
1555
+ dataKey: f,
1556
+ stroke: u.colors[_ % u.colors.length],
1557
+ dot: a,
1111
1558
  strokeWidth: 2,
1112
1559
  activeDot: { r: 5 }
1113
1560
  },
1114
- p
1561
+ f
1115
1562
  ))
1116
1563
  ] }) })
1117
1564
  }
1118
1565
  );
1119
1566
  }
1120
- function sr({
1121
- data: t,
1567
+ function Ci({
1568
+ data: r,
1122
1569
  innerRadius: e = 60,
1123
- showLabels: n = !1,
1124
- showLegend: o = !0,
1125
- height: i = 300,
1126
- label: a,
1127
- className: l
1570
+ showLabels: t = !1,
1571
+ showLegend: n = !0,
1572
+ height: a = 300,
1573
+ label: o,
1574
+ className: d
1128
1575
  }) {
1129
1576
  const c = j();
1130
- return /* @__PURE__ */ r(
1577
+ return /* @__PURE__ */ i(
1131
1578
  "div",
1132
1579
  {
1133
- className: m("rudiment-chart", l),
1580
+ className: m("rudi-chart", d),
1134
1581
  role: "img",
1135
- "aria-label": a,
1136
- children: /* @__PURE__ */ r(G, { width: "100%", height: i, children: /* @__PURE__ */ h(Xe, { children: [
1137
- /* @__PURE__ */ r(
1138
- We,
1582
+ "aria-label": o,
1583
+ children: /* @__PURE__ */ i(G, { width: "100%", height: a, children: /* @__PURE__ */ p(Ye, { children: [
1584
+ /* @__PURE__ */ i(
1585
+ Ze,
1139
1586
  {
1140
- data: t,
1587
+ data: r,
1141
1588
  dataKey: "value",
1142
1589
  nameKey: "name",
1143
1590
  cx: "50%",
@@ -1145,17 +1592,17 @@ function sr({
1145
1592
  innerRadius: e,
1146
1593
  outerRadius: e + 30,
1147
1594
  paddingAngle: 2,
1148
- label: n ? ({ name: d }) => d : !1,
1149
- children: t.map((d, u) => /* @__PURE__ */ r(
1150
- Ye,
1595
+ label: t ? ({ name: s }) => s : !1,
1596
+ children: r.map((s, l) => /* @__PURE__ */ i(
1597
+ qe,
1151
1598
  {
1152
- fill: c.colors[u % c.colors.length]
1599
+ fill: c.colors[l % c.colors.length]
1153
1600
  },
1154
- u
1601
+ l
1155
1602
  ))
1156
1603
  }
1157
1604
  ),
1158
- /* @__PURE__ */ r(
1605
+ /* @__PURE__ */ i(
1159
1606
  A,
1160
1607
  {
1161
1608
  contentStyle: {
@@ -1166,7 +1613,7 @@ function sr({
1166
1613
  }
1167
1614
  }
1168
1615
  ),
1169
- o && /* @__PURE__ */ r(
1616
+ n && /* @__PURE__ */ i(
1170
1617
  F,
1171
1618
  {
1172
1619
  wrapperStyle: { color: c.legendColor }
@@ -1177,168 +1624,168 @@ function sr({
1177
1624
  );
1178
1625
  }
1179
1626
  function te({
1180
- id: t,
1627
+ id: r,
1181
1628
  title: e,
1182
- items: n,
1183
- renderCard: o,
1184
- className: i
1629
+ items: t,
1630
+ renderCard: n,
1631
+ className: a
1185
1632
  }) {
1186
- const { setNodeRef: a, isOver: l } = Ze({ id: t });
1187
- return /* @__PURE__ */ h(
1633
+ const { setNodeRef: o, isOver: d } = Je({ id: r });
1634
+ return /* @__PURE__ */ p(
1188
1635
  "div",
1189
1636
  {
1190
1637
  className: m(
1191
- "rudiment-kanban__column",
1192
- l && "rudiment-kanban__column--over",
1193
- i
1638
+ "rudi-kanban__column",
1639
+ d && "rudi-kanban__column--over",
1640
+ a
1194
1641
  ),
1195
1642
  role: "region",
1196
1643
  "aria-label": e,
1197
1644
  children: [
1198
- /* @__PURE__ */ h("div", { className: "rudiment-kanban__column-header", children: [
1199
- /* @__PURE__ */ r("span", { className: "rudiment-kanban__column-title", children: e }),
1200
- /* @__PURE__ */ r("span", { className: "rudiment-kanban__column-count", children: n.length })
1645
+ /* @__PURE__ */ p("div", { className: "rudi-kanban__column-header", children: [
1646
+ /* @__PURE__ */ i("span", { className: "rudi-kanban__column-title", children: e }),
1647
+ /* @__PURE__ */ i("span", { className: "rudi-kanban__column-count", children: t.length })
1201
1648
  ] }),
1202
- /* @__PURE__ */ r("div", { ref: a, className: "rudiment-kanban__column-body", children: /* @__PURE__ */ r(
1203
- rt,
1649
+ /* @__PURE__ */ i("div", { ref: o, className: "rudi-kanban__column-body", children: /* @__PURE__ */ i(
1650
+ nr,
1204
1651
  {
1205
- items: n.map((c) => c.id),
1206
- strategy: nt,
1207
- children: n.map((c) => o(c))
1652
+ items: t.map((c) => c.id),
1653
+ strategy: or,
1654
+ children: t.map((c) => n(c))
1208
1655
  }
1209
1656
  ) })
1210
1657
  ]
1211
1658
  }
1212
1659
  );
1213
1660
  }
1214
- function R(t, e) {
1215
- return t.find((n) => n.items.some((o) => o.id === e));
1661
+ function E(r, e) {
1662
+ return r.find((t) => t.items.some((n) => n.id === e));
1216
1663
  }
1217
- function yt({
1218
- columns: t,
1664
+ function Ir({
1665
+ columns: r,
1219
1666
  onCardMove: e,
1220
- renderCard: n,
1221
- className: o
1667
+ renderCard: t,
1668
+ className: n
1222
1669
  }) {
1223
- const [i, a] = D(null), l = y(null), c = qe(
1224
- U(Je, {
1670
+ const [a, o] = M(null), d = C(null), c = Qe(
1671
+ U(er, {
1225
1672
  activationConstraint: { distance: 5 }
1226
1673
  }),
1227
- U(Qe, {
1228
- coordinateGetter: ot
1674
+ U(rr, {
1675
+ coordinateGetter: sr
1229
1676
  })
1230
- ), d = $((f) => {
1231
- l.current && (l.current.textContent = f);
1232
- }, []), u = i ? t.flatMap((f) => f.items).find((f) => f.id === i) : null, s = $(
1233
- (f) => {
1234
- const _ = String(f.active.id);
1235
- a(_);
1236
- const v = R(t, _);
1237
- v && d(`Picked up card from ${v.title}`);
1677
+ ), s = T((h) => {
1678
+ d.current && (d.current.textContent = h);
1679
+ }, []), l = a ? r.flatMap((h) => h.items).find((h) => h.id === a) : null, u = T(
1680
+ (h) => {
1681
+ const g = String(h.active.id);
1682
+ o(g);
1683
+ const b = E(r, g);
1684
+ b && s(`Picked up card from ${b.title}`);
1238
1685
  },
1239
- [t, d]
1240
- ), p = $(
1241
- (f) => {
1242
- const { over: _ } = f;
1243
- if (!_) return;
1244
- const v = String(_.id), N = t.find((x) => x.id === v) || R(t, v);
1245
- N && d(`Over column ${N.title}`);
1686
+ [r, s]
1687
+ ), f = T(
1688
+ (h) => {
1689
+ const { over: g } = h;
1690
+ if (!g) return;
1691
+ const b = String(g.id), x = r.find((y) => y.id === b) || E(r, b);
1692
+ x && s(`Over column ${x.title}`);
1246
1693
  },
1247
- [t, d]
1248
- ), g = $(
1249
- (f) => {
1250
- const { active: _, over: v } = f;
1251
- if (a(null), !v) {
1252
- d("Cancelled drag");
1694
+ [r, s]
1695
+ ), _ = T(
1696
+ (h) => {
1697
+ const { active: g, over: b } = h;
1698
+ if (o(null), !b) {
1699
+ s("Cancelled drag");
1253
1700
  return;
1254
1701
  }
1255
- const N = String(_.id), x = String(v.id), C = R(t, N);
1256
- if (!C) return;
1257
- const z = C.items.findIndex(
1258
- (I) => I.id === N
1259
- ), H = t.find((I) => I.id === x), re = R(t, x), S = H || re;
1260
- if (!S) return;
1261
- let B;
1262
- H ? B = S.items.length : B = S.items.findIndex((I) => I.id === x), !(C.id === S.id && z === B) && (d(`Dropped card in ${S.title} at position ${B + 1}`), e({
1263
- cardId: N,
1264
- fromColumnId: C.id,
1265
- toColumnId: S.id,
1266
- fromIndex: z,
1267
- toIndex: B
1702
+ const x = String(g.id), y = String(b.id), R = E(r, x);
1703
+ if (!R) return;
1704
+ const S = R.items.findIndex(
1705
+ (w) => w.id === x
1706
+ ), H = r.find((w) => w.id === y), ae = E(r, y), $ = H || ae;
1707
+ if (!$) return;
1708
+ let I;
1709
+ H ? I = $.items.length : I = $.items.findIndex((w) => w.id === y), !(R.id === $.id && S === I) && (s(`Dropped card in ${$.title} at position ${I + 1}`), e({
1710
+ cardId: x,
1711
+ fromColumnId: R.id,
1712
+ toColumnId: $.id,
1713
+ fromIndex: S,
1714
+ toIndex: I
1268
1715
  }));
1269
1716
  },
1270
- [t, e, d]
1717
+ [r, e, s]
1271
1718
  );
1272
- return /* @__PURE__ */ h(
1273
- Ve,
1719
+ return /* @__PURE__ */ p(
1720
+ ir,
1274
1721
  {
1275
1722
  sensors: c,
1276
- collisionDetection: et,
1277
- onDragStart: s,
1278
- onDragOver: p,
1279
- onDragEnd: g,
1723
+ collisionDetection: tr,
1724
+ onDragStart: u,
1725
+ onDragOver: f,
1726
+ onDragEnd: _,
1280
1727
  children: [
1281
- /* @__PURE__ */ r("div", { className: m("rudiment-kanban", o), children: t.map((f) => /* @__PURE__ */ r(
1728
+ /* @__PURE__ */ i("div", { className: m("rudi-kanban", n), children: r.map((h) => /* @__PURE__ */ i(
1282
1729
  te,
1283
1730
  {
1284
- id: f.id,
1285
- title: f.title,
1286
- items: f.items,
1287
- renderCard: n
1731
+ id: h.id,
1732
+ title: h.title,
1733
+ items: h.items,
1734
+ renderCard: t
1288
1735
  },
1289
- f.id
1736
+ h.id
1290
1737
  )) }),
1291
- /* @__PURE__ */ r(tt, { children: u ? /* @__PURE__ */ r("div", { className: "rudiment-kanban__card rudiment-kanban__card--overlay", children: n(u) }) : null }),
1292
- /* @__PURE__ */ r(
1738
+ /* @__PURE__ */ i(ar, { children: l ? /* @__PURE__ */ i("div", { className: "rudi-kanban__card rudi-kanban__card--overlay", children: t(l) }) : null }),
1739
+ /* @__PURE__ */ i(
1293
1740
  "div",
1294
1741
  {
1295
- ref: l,
1742
+ ref: d,
1296
1743
  role: "status",
1297
1744
  "aria-live": "assertive",
1298
1745
  "aria-atomic": "true",
1299
- className: "rudiment-kanban__sr-only"
1746
+ className: "rudi-kanban__sr-only"
1300
1747
  }
1301
1748
  )
1302
1749
  ]
1303
1750
  }
1304
1751
  );
1305
1752
  }
1306
- const cr = Object.assign(yt, {
1753
+ const Pi = Object.assign(Ir, {
1307
1754
  Column: te
1308
1755
  });
1309
- function lr({ id: t, children: e, className: n }) {
1756
+ function Si({ id: r, children: e, className: t }) {
1310
1757
  const {
1311
- attributes: o,
1312
- listeners: i,
1313
- setNodeRef: a,
1314
- transform: l,
1758
+ attributes: n,
1759
+ listeners: a,
1760
+ setNodeRef: o,
1761
+ transform: d,
1315
1762
  transition: c,
1316
- isDragging: d
1317
- } = it({ id: t }), u = {
1318
- transform: at.Transform.toString(l),
1763
+ isDragging: s
1764
+ } = dr({ id: r }), l = {
1765
+ transform: cr.Transform.toString(d),
1319
1766
  transition: c
1320
1767
  };
1321
- return /* @__PURE__ */ h(
1768
+ return /* @__PURE__ */ p(
1322
1769
  "div",
1323
1770
  {
1324
- ref: a,
1325
- style: u,
1771
+ ref: o,
1772
+ style: l,
1326
1773
  className: m(
1327
- "rudiment-kanban__card",
1328
- d && "rudiment-kanban__card--dragging",
1329
- n
1774
+ "rudi-kanban__card",
1775
+ s && "rudi-kanban__card--dragging",
1776
+ t
1330
1777
  ),
1331
1778
  children: [
1332
- /* @__PURE__ */ r(
1779
+ /* @__PURE__ */ i(
1333
1780
  "button",
1334
1781
  {
1335
1782
  type: "button",
1336
- className: "rudiment-kanban__card-handle",
1337
- "aria-label": `Drag handle for card ${t}`,
1338
- ...o,
1339
- ...i,
1783
+ className: "rudi-kanban__card-handle",
1784
+ "aria-label": `Drag handle for card ${r}`,
1785
+ ...n,
1786
+ ...a,
1340
1787
  "aria-roledescription": "sortable",
1341
- children: /* @__PURE__ */ h(
1788
+ children: /* @__PURE__ */ p(
1342
1789
  "svg",
1343
1790
  {
1344
1791
  width: "12",
@@ -1347,309 +1794,341 @@ function lr({ id: t, children: e, className: n }) {
1347
1794
  fill: "currentColor",
1348
1795
  "aria-hidden": "true",
1349
1796
  children: [
1350
- /* @__PURE__ */ r("circle", { cx: "3.5", cy: "2", r: "1.25" }),
1351
- /* @__PURE__ */ r("circle", { cx: "8.5", cy: "2", r: "1.25" }),
1352
- /* @__PURE__ */ r("circle", { cx: "3.5", cy: "6", r: "1.25" }),
1353
- /* @__PURE__ */ r("circle", { cx: "8.5", cy: "6", r: "1.25" }),
1354
- /* @__PURE__ */ r("circle", { cx: "3.5", cy: "10", r: "1.25" }),
1355
- /* @__PURE__ */ r("circle", { cx: "8.5", cy: "10", r: "1.25" })
1797
+ /* @__PURE__ */ i("circle", { cx: "3.5", cy: "2", r: "1.25" }),
1798
+ /* @__PURE__ */ i("circle", { cx: "8.5", cy: "2", r: "1.25" }),
1799
+ /* @__PURE__ */ i("circle", { cx: "3.5", cy: "6", r: "1.25" }),
1800
+ /* @__PURE__ */ i("circle", { cx: "8.5", cy: "6", r: "1.25" }),
1801
+ /* @__PURE__ */ i("circle", { cx: "3.5", cy: "10", r: "1.25" }),
1802
+ /* @__PURE__ */ i("circle", { cx: "8.5", cy: "10", r: "1.25" })
1356
1803
  ]
1357
1804
  }
1358
1805
  )
1359
1806
  }
1360
1807
  ),
1361
- /* @__PURE__ */ r("div", { className: "rudiment-kanban__card-content", children: e })
1808
+ /* @__PURE__ */ i("div", { className: "rudi-kanban__card-content", children: e })
1362
1809
  ]
1363
1810
  }
1364
1811
  );
1365
1812
  }
1366
- const dr = b(
1367
- function({ level: e, size: n, className: o, children: i, ...a }, l) {
1368
- const c = `h${e}`;
1369
- return /* @__PURE__ */ r(
1370
- c,
1813
+ const $i = v(
1814
+ function({ level: e, size: t, weight: n, tone: a, align: o, noMargin: d, className: c, children: s, ...l }, u) {
1815
+ const f = `h${e}`;
1816
+ return /* @__PURE__ */ i(
1817
+ f,
1371
1818
  {
1372
- ref: l,
1819
+ ref: u,
1373
1820
  className: m(
1374
- `rudiment-heading rudiment-heading--${n ?? e}`,
1375
- o
1821
+ `rudi-heading rudi-heading--${t ?? e}`,
1822
+ n && `rudi-heading--weight-${n}`,
1823
+ a && `rudi-heading--tone-${a}`,
1824
+ o && `rudi-heading--align-${o}`,
1825
+ d && "rudi-heading--flush",
1826
+ c
1376
1827
  ),
1377
- ...a,
1378
- children: i
1828
+ ...l,
1829
+ children: s
1379
1830
  }
1380
1831
  );
1381
1832
  }
1382
- ), ur = b(function({ variant: e = "body", as: n = "p", className: o, children: i, ...a }, l) {
1383
- return /* @__PURE__ */ r(
1384
- n,
1833
+ ), Bi = v(function({
1834
+ variant: e = "body",
1835
+ as: t = "p",
1836
+ weight: n,
1837
+ tone: a,
1838
+ align: o,
1839
+ noMargin: d,
1840
+ className: c,
1841
+ children: s,
1842
+ ...l
1843
+ }, u) {
1844
+ return /* @__PURE__ */ i(
1845
+ t,
1385
1846
  {
1386
- ref: l,
1387
- className: m(`rudiment-text rudiment-text--${e}`, o),
1388
- ...a,
1389
- children: i
1847
+ ref: u,
1848
+ className: m(
1849
+ `rudi-text rudi-text--${e}`,
1850
+ n && `rudi-text--weight-${n}`,
1851
+ a && `rudi-text--tone-${a}`,
1852
+ o && `rudi-text--align-${o}`,
1853
+ d && "rudi-text--flush",
1854
+ c
1855
+ ),
1856
+ ...l,
1857
+ children: s
1390
1858
  }
1391
1859
  );
1392
- }), mr = b(function({ size: e = "base", as: n = "div", className: o, children: i, ...a }, l) {
1393
- return /* @__PURE__ */ r(
1394
- n,
1860
+ }), Ii = v(function({ size: e = "base", as: t = "div", className: n, children: a, ...o }, d) {
1861
+ return /* @__PURE__ */ i(
1862
+ t,
1395
1863
  {
1396
- ref: l,
1864
+ ref: d,
1397
1865
  className: m(
1398
- "rudiment-prose",
1399
- e !== "base" && `rudiment-prose--${e}`,
1400
- o
1866
+ "rudi-prose",
1867
+ e !== "base" && `rudi-prose--${e}`,
1868
+ n
1401
1869
  ),
1402
- ...a,
1403
- children: i
1870
+ ...o,
1871
+ children: a
1404
1872
  }
1405
1873
  );
1406
- }), fr = b(function({
1874
+ }), wi = v(function({
1407
1875
  padding: e,
1408
- bordered: n = !1,
1409
- invert: o = !1,
1410
- as: i = "div",
1411
- className: a,
1412
- style: l,
1876
+ bordered: t = !1,
1877
+ invert: n = !1,
1878
+ as: a = "div",
1879
+ className: o,
1880
+ style: d,
1413
1881
  children: c,
1414
- ...d
1415
- }, u) {
1416
- const s = {};
1417
- return e && (s["--box-padding"] = e), /* @__PURE__ */ r(
1418
- i,
1882
+ ...s
1883
+ }, l) {
1884
+ const u = {};
1885
+ return e && (u["--box-padding"] = e), /* @__PURE__ */ i(
1886
+ a,
1419
1887
  {
1420
- ref: u,
1888
+ ref: l,
1421
1889
  className: m(
1422
- "rudiment-box",
1423
- n && "rudiment-box--bordered",
1424
- o && "rudiment-box--invert",
1425
- a
1890
+ "rudi-box",
1891
+ t && "rudi-box--bordered",
1892
+ n && "rudi-box--invert",
1893
+ o
1426
1894
  ),
1427
- style: { ...s, ...l },
1428
- ...d,
1895
+ style: { ...u, ...d },
1896
+ ...s,
1429
1897
  children: c
1430
1898
  }
1431
1899
  );
1432
- }), hr = b(function({
1900
+ }), Ti = v(function({
1433
1901
  space: e,
1434
- recursive: n = !1,
1435
- splitAfter: o,
1436
- as: i = "div",
1437
- className: a,
1438
- style: l,
1902
+ recursive: t = !1,
1903
+ splitAfter: n,
1904
+ as: a = "div",
1905
+ className: o,
1906
+ style: d,
1439
1907
  children: c,
1440
- ...d
1441
- }, u) {
1442
- const s = {};
1443
- e && (s["--stack-space"] = e);
1444
- const p = Se.toArray(c), g = o ? p.map((f, _) => _ === o - 1 && Be(f) ? Ie(
1445
- f,
1908
+ ...s
1909
+ }, l) {
1910
+ const u = {};
1911
+ e && (u["--stack-space"] = e);
1912
+ const f = Se.toArray(c), _ = n ? f.map((h, g) => g === n - 1 && $e(h) ? Be(
1913
+ h,
1446
1914
  {
1447
1915
  style: {
1448
- ...f.props.style,
1916
+ ...h.props.style,
1449
1917
  marginBlockEnd: "auto"
1450
1918
  }
1451
1919
  }
1452
- ) : f) : c;
1453
- return /* @__PURE__ */ r(
1454
- i,
1920
+ ) : h) : c;
1921
+ return /* @__PURE__ */ i(
1922
+ a,
1455
1923
  {
1456
- ref: u,
1924
+ ref: l,
1457
1925
  className: m(
1458
- "rudiment-stack",
1459
- n && "rudiment-stack--recursive",
1460
- o && "rudiment-stack--split",
1461
- a
1926
+ "rudi-stack",
1927
+ t && "rudi-stack--recursive",
1928
+ n && "rudi-stack--split",
1929
+ o
1462
1930
  ),
1463
- style: { ...s, ...l },
1464
- ...d,
1465
- children: g
1931
+ style: { ...u, ...d },
1932
+ ...s,
1933
+ children: _
1466
1934
  }
1467
1935
  );
1468
- }), pr = b(function({
1936
+ }), Mi = v(function({
1469
1937
  space: e,
1470
- justify: n,
1471
- align: o,
1472
- as: i = "div",
1473
- className: a,
1474
- style: l,
1938
+ justify: t,
1939
+ align: n,
1940
+ as: a = "div",
1941
+ className: o,
1942
+ style: d,
1475
1943
  children: c,
1476
- ...d
1477
- }, u) {
1478
- const s = {};
1479
- return e && (s["--cluster-space"] = e), n && (s["--cluster-justify"] = n), o && (s["--cluster-align"] = o), /* @__PURE__ */ r(
1480
- i,
1944
+ ...s
1945
+ }, l) {
1946
+ const u = {};
1947
+ return e && (u["--cluster-space"] = e), t && (u["--cluster-justify"] = t), n && (u["--cluster-align"] = n), /* @__PURE__ */ i(
1948
+ a,
1481
1949
  {
1482
- ref: u,
1483
- className: m("rudiment-cluster", a),
1484
- style: { ...s, ...l },
1485
- ...d,
1950
+ ref: l,
1951
+ className: m("rudi-cluster", o),
1952
+ style: { ...u, ...d },
1953
+ ...s,
1486
1954
  children: c
1487
1955
  }
1488
1956
  );
1489
- }), gr = b(function({
1957
+ }), Di = v(function({
1490
1958
  minCellWidth: e,
1491
- space: n,
1492
- as: o = "div",
1493
- className: i,
1494
- style: a,
1495
- children: l,
1959
+ space: t,
1960
+ as: n = "div",
1961
+ className: a,
1962
+ style: o,
1963
+ children: d,
1496
1964
  ...c
1497
- }, d) {
1498
- const u = {};
1499
- return e && (u["--grid-min-cell"] = e), n && (u["--grid-space"] = n), /* @__PURE__ */ r(
1500
- o,
1965
+ }, s) {
1966
+ const l = {};
1967
+ return e && (l["--grid-min-cell"] = e), t && (l["--grid-space"] = t), /* @__PURE__ */ i(
1968
+ n,
1501
1969
  {
1502
- ref: d,
1503
- className: m("rudiment-grid", i),
1504
- style: { ...u, ...a },
1970
+ ref: s,
1971
+ className: m("rudi-grid", a),
1972
+ style: { ...l, ...o },
1505
1973
  ...c,
1506
- children: l
1974
+ children: d
1507
1975
  }
1508
1976
  );
1509
- }), br = b(function({
1977
+ }), Ei = v(function({
1510
1978
  side: e = "left",
1511
- sideWidth: n,
1512
- contentMin: o,
1513
- space: i,
1514
- noStretch: a = !1,
1515
- as: l = "div",
1979
+ sideWidth: t,
1980
+ contentMin: n,
1981
+ space: a,
1982
+ noStretch: o = !1,
1983
+ as: d = "div",
1516
1984
  className: c,
1517
- style: d,
1518
- children: u,
1519
- ...s
1520
- }, p) {
1521
- const g = {};
1522
- return n && (g["--sidebar-width"] = n), o && (g["--sidebar-content-min"] = o), i && (g["--sidebar-space"] = i), /* @__PURE__ */ r(
1523
- l,
1985
+ style: s,
1986
+ children: l,
1987
+ ...u
1988
+ }, f) {
1989
+ const _ = {};
1990
+ return t && (_["--sidebar-width"] = t), n && (_["--sidebar-content-min"] = n), a && (_["--sidebar-space"] = a), /* @__PURE__ */ i(
1991
+ d,
1524
1992
  {
1525
- ref: p,
1993
+ ref: f,
1526
1994
  className: m(
1527
- "rudiment-sidebar",
1528
- e === "right" && "rudiment-sidebar--right",
1529
- a && "rudiment-sidebar--no-stretch",
1995
+ "rudi-sidebar",
1996
+ e === "right" && "rudi-sidebar--right",
1997
+ o && "rudi-sidebar--no-stretch",
1530
1998
  c
1531
1999
  ),
1532
- style: { ...g, ...d },
1533
- ...s,
1534
- children: u
2000
+ style: { ..._, ...s },
2001
+ ...u,
2002
+ children: l
1535
2003
  }
1536
2004
  );
1537
- }), _r = b(function({
2005
+ }), Oi = v(function({
1538
2006
  maxWidth: e,
1539
- gutters: n,
1540
- intrinsic: o = !1,
1541
- as: i = "div",
1542
- className: a,
1543
- style: l,
2007
+ gutters: t,
2008
+ intrinsic: n = !1,
2009
+ as: a = "div",
2010
+ className: o,
2011
+ style: d,
1544
2012
  children: c,
1545
- ...d
1546
- }, u) {
1547
- const s = {};
1548
- return e && (s["--center-max-width"] = e), n && (s["--center-gutters"] = n), /* @__PURE__ */ r(
1549
- i,
2013
+ ...s
2014
+ }, l) {
2015
+ const u = {};
2016
+ return e && (u["--center-max-width"] = e), t && (u["--center-gutters"] = t), /* @__PURE__ */ i(
2017
+ a,
1550
2018
  {
1551
- ref: u,
2019
+ ref: l,
1552
2020
  className: m(
1553
- "rudiment-center",
1554
- o && "rudiment-center--intrinsic",
1555
- a
2021
+ "rudi-center",
2022
+ n && "rudi-center--intrinsic",
2023
+ o
1556
2024
  ),
1557
- style: { ...s, ...l },
1558
- ...d,
2025
+ style: { ...u, ...d },
2026
+ ...s,
1559
2027
  children: c
1560
2028
  }
1561
2029
  );
1562
- }), vr = b(function({
2030
+ }), Li = v(function({
1563
2031
  minHeight: e,
1564
- space: n,
1565
- as: o = "div",
1566
- className: i,
1567
- style: a,
1568
- children: l,
2032
+ space: t,
2033
+ as: n = "div",
2034
+ className: a,
2035
+ style: o,
2036
+ children: d,
1569
2037
  ...c
1570
- }, d) {
1571
- const u = {};
1572
- return e && (u["--cover-min-height"] = e), n && (u["--cover-space"] = n), /* @__PURE__ */ r(
1573
- o,
2038
+ }, s) {
2039
+ const l = {};
2040
+ return e && (l["--cover-min-height"] = e), t && (l["--cover-space"] = t), /* @__PURE__ */ i(
2041
+ n,
1574
2042
  {
1575
- ref: d,
1576
- className: m("rudiment-cover", i),
1577
- style: { ...u, ...a },
2043
+ ref: s,
2044
+ className: m("rudi-cover", a),
2045
+ style: { ...l, ...o },
1578
2046
  ...c,
1579
- children: l
2047
+ children: d
1580
2048
  }
1581
2049
  );
1582
- }), Nr = b(
2050
+ }), zi = v(
1583
2051
  function({
1584
2052
  threshold: e,
1585
- space: n,
1586
- limit: o,
1587
- as: i = "div",
1588
- className: a,
1589
- style: l,
2053
+ space: t,
2054
+ limit: n,
2055
+ as: a = "div",
2056
+ className: o,
2057
+ style: d,
1590
2058
  children: c,
1591
- ...d
1592
- }, u) {
1593
- const s = {};
1594
- return e && (s["--switcher-threshold"] = e), n && (s["--switcher-space"] = n), /* @__PURE__ */ r(
1595
- i,
2059
+ ...s
2060
+ }, l) {
2061
+ const u = {};
2062
+ return e && (u["--switcher-threshold"] = e), t && (u["--switcher-space"] = t), /* @__PURE__ */ i(
2063
+ a,
1596
2064
  {
1597
- ref: u,
1598
- className: m("rudiment-switcher", a),
1599
- style: { ...s, ...l },
1600
- ...d,
2065
+ ref: l,
2066
+ className: m("rudi-switcher", o),
2067
+ style: { ...u, ...d },
2068
+ ...s,
1601
2069
  children: c
1602
2070
  }
1603
2071
  );
1604
2072
  }
1605
2073
  );
1606
2074
  export {
1607
- Jt as Alert,
1608
- tr as Avatar,
1609
- ht as Badge,
1610
- ir as BarChart,
1611
- fr as Box,
1612
- Ot as Button,
1613
- Y as Card,
1614
- _r as Center,
1615
- Lt as Checkbox,
1616
- Gt as CheckboxGroup,
1617
- or as CircularProgress,
1618
- pr as Cluster,
1619
- vr as Cover,
1620
- Xt as Dialog,
1621
- sr as DonutChart,
1622
- gr as Grid,
1623
- dr as Heading,
1624
- P as Icon,
1625
- Qt as IconButton,
1626
- Kt as Input,
1627
- cr as KanbanBoard,
1628
- lr as KanbanCard,
1629
- te as KanbanColumn,
1630
- Ut as Keyboard,
1631
- ar as LineChart,
1632
- jt as Menu,
1633
- zt as MenuItem,
1634
- Ht as MenuSection,
1635
- Ft as MenuTrigger,
1636
- nr as NavItem,
1637
- er as ProgressBar,
1638
- mr as Prose,
1639
- Yt as RadioGroup,
1640
- At as Select,
1641
- kr as Separator,
1642
- br as Sidebar,
1643
- hr as Stack,
1644
- rr as StatCard,
1645
- xr as SubmenuTrigger,
1646
- Wt as Switch,
1647
- Nr as Switcher,
1648
- Vt as Tag,
1649
- ur as Text,
1650
- qt as Tooltip,
1651
- Zt as TooltipTrigger,
2075
+ oi as RudiAlert,
2076
+ vi as RudiAvatar,
2077
+ br as RudiBadge,
2078
+ yi as RudiBarChart,
2079
+ wi as RudiBox,
2080
+ gi as RudiBreadcrumb,
2081
+ Hr as RudiButton,
2082
+ Y as RudiCard,
2083
+ Oi as RudiCenter,
2084
+ Ur as RudiCheckbox,
2085
+ Xr as RudiCheckboxGroup,
2086
+ Ri as RudiCircularProgress,
2087
+ Mi as RudiCluster,
2088
+ Li as RudiCover,
2089
+ ri as RudiDialog,
2090
+ li as RudiDivider,
2091
+ Ci as RudiDonutChart,
2092
+ ui as RudiDot,
2093
+ Di as RudiGrid,
2094
+ $i as RudiHeading,
2095
+ N as RudiIcon,
2096
+ si as RudiIconButton,
2097
+ pi as RudiImage,
2098
+ Vr as RudiInput,
2099
+ Pi as RudiKanbanBoard,
2100
+ Si as RudiKanbanCard,
2101
+ te as RudiKanbanColumn,
2102
+ _r as RudiKeyboard,
2103
+ ki as RudiLineChart,
2104
+ mi as RudiLink,
2105
+ Zr as RudiMenu,
2106
+ qr as RudiMenuItem,
2107
+ Jr as RudiMenuSection,
2108
+ Qr as RudiMenuSeparator,
2109
+ Yr as RudiMenuTrigger,
2110
+ xi as RudiNavItem,
2111
+ Ai as RudiOption,
2112
+ bi as RudiPagination,
2113
+ ci as RudiProgressBar,
2114
+ Ii as RudiProse,
2115
+ ti as RudiRadioGroup,
2116
+ hi as RudiRating,
2117
+ Wr as RudiSelect,
2118
+ ji as RudiSeparator,
2119
+ Ei as RudiSidebar,
2120
+ Ti as RudiStack,
2121
+ Ni as RudiStatCard,
2122
+ fi as RudiStepper,
2123
+ ei as RudiSubmenuTrigger,
2124
+ ii as RudiSwitch,
2125
+ zi as RudiSwitcher,
2126
+ di as RudiTag,
2127
+ Bi as RudiText,
2128
+ _i as RudiTextarea,
2129
+ ni as RudiTooltip,
2130
+ ai as RudiTooltipTrigger,
1652
2131
  m as cn,
1653
2132
  j as useChartTheme,
1654
- Q as useLoadingButton
2133
+ ee as useLoadingButton
1655
2134
  };