rudiment-ui 0.2.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 (52) hide show
  1. package/README.md +119 -100
  2. package/dist/components/AppShell/AppShell.d.ts +48 -0
  3. package/dist/components/AppShell/AppShell.d.ts.map +1 -0
  4. package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
  5. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  6. package/dist/components/Charts/BarChart/BarChart.d.ts +5 -1
  7. package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
  8. package/dist/components/Charts/LineChart/LineChart.d.ts +6 -1
  9. package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  10. package/dist/components/Divider/Divider.d.ts +15 -0
  11. package/dist/components/Divider/Divider.d.ts.map +1 -0
  12. package/dist/components/Dot/Dot.d.ts +20 -0
  13. package/dist/components/Dot/Dot.d.ts.map +1 -0
  14. package/dist/components/Footer/Footer.d.ts +31 -0
  15. package/dist/components/Footer/Footer.d.ts.map +1 -0
  16. package/dist/components/Image/Image.d.ts +18 -0
  17. package/dist/components/Image/Image.d.ts.map +1 -0
  18. package/dist/components/Link/Link.d.ts +16 -0
  19. package/dist/components/Link/Link.d.ts.map +1 -0
  20. package/dist/components/Menu/MenuItem.d.ts +10 -1
  21. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  22. package/dist/components/Menu/MenuSeparator.d.ts +5 -0
  23. package/dist/components/Menu/MenuSeparator.d.ts.map +1 -0
  24. package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
  25. package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
  26. package/dist/components/PageHeader/PageHeader.d.ts +12 -0
  27. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  28. package/dist/components/Pagination/Pagination.d.ts +14 -0
  29. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  30. package/dist/components/ProgressBar/ProgressBar.d.ts +14 -2
  31. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  32. package/dist/components/Rating/Rating.d.ts +18 -0
  33. package/dist/components/Rating/Rating.d.ts.map +1 -0
  34. package/dist/components/SectionHeader/SectionHeader.d.ts +12 -0
  35. package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
  36. package/dist/components/Select/Option.d.ts +3 -0
  37. package/dist/components/Select/Option.d.ts.map +1 -0
  38. package/dist/components/Stepper/Stepper.d.ts +17 -0
  39. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  40. package/dist/components/Textarea/Textarea.d.ts +17 -0
  41. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  42. package/dist/components/TopBar/TopBar.d.ts +18 -0
  43. package/dist/components/TopBar/TopBar.d.ts.map +1 -0
  44. package/dist/index.css +1 -1
  45. package/dist/index.d.ts +27 -3
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1289 -810
  48. package/dist/typography/Heading/Heading.d.ts +9 -0
  49. package/dist/typography/Heading/Heading.d.ts.map +1 -1
  50. package/dist/typography/Text/Text.d.ts +11 -0
  51. package/dist/typography/Text/Text.d.ts.map +1 -1
  52. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,34 +1,35 @@
1
1
  "use client";
2
- import { clsx as ie } from "clsx";
2
+ import { clsx as ne } from "clsx";
3
3
  import { twMerge as oe } from "tailwind-merge";
4
- import { useButton as O, useTextField as ne, useCheckbox as ae, useCheckboxGroup as se, useSelect as ce, HiddenSelect as de, usePopover as le, 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 Re, useProgressBar as Z, useLink as ye } from "react-aria";
5
- import w, { useState as $, useCallback as I, useEffect as xe, forwardRef as b, useRef as R, createContext as ke, Children as Pe, isValidElement as Se, cloneElement as Be } from "react";
6
- import { jsx as t, jsxs as h, Fragment as T } from "react/jsx-runtime";
7
- import { useObjectRef as y } from "@react-aria/utils";
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
+ import { useObjectRef as k } from "@react-aria/utils";
8
8
  import { Icon as Ie } from "@iconify/react";
9
- import { useToggleState as q, useCheckboxGroupState as we, useSelectState as Te, useRadioGroupState as $e, useTooltipTriggerState as De } from "react-stately";
10
- import { MenuTrigger as Me, 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 yt, SubmenuTrigger as xt } 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 er, DragOverlay as rr } from "@dnd-kit/core";
14
- import { SortableContext as tr, verticalListSortingStrategy as ir, sortableKeyboardCoordinates as or, useSortable as nr } from "@dnd-kit/sortable";
15
- import { CSS as ar } from "@dnd-kit/utilities";
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";
16
17
  function m(...r) {
17
- return oe(ie(r));
18
+ return oe(ne(r));
18
19
  }
19
- function Q(r, e, i) {
20
- const { buttonProps: o } = O(
20
+ function ee(r, e, t) {
21
+ const { buttonProps: n } = L(
21
22
  { ...r, isDisabled: r.isDisabled || e },
22
- i
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 sr = {
32
+ const lr = {
32
33
  axisColor: "--rudi-component-chart-axis-color",
33
34
  gridColor: "--rudi-component-chart-grid-color",
34
35
  labelColor: "--rudi-component-chart-label-color",
@@ -37,7 +38,7 @@ const sr = {
37
38
  tooltipText: "--rudi-component-chart-tooltip-text",
38
39
  tooltipBorder: "--rudi-component-chart-tooltip-border",
39
40
  chartBg: "--rudi-component-chart-bg"
40
- }, cr = Array.from(
41
+ }, ur = Array.from(
41
42
  { length: 8 },
42
43
  (r, e) => `--rudi-color-dataviz-series-${e + 1}`
43
44
  ), X = [
@@ -63,151 +64,151 @@ function W() {
63
64
  tooltipBorder: "#e5e7eb",
64
65
  chartBg: "#ffffff"
65
66
  };
66
- const r = getComputedStyle(document.documentElement), e = (n) => r.getPropertyValue(n).trim(), i = cr.map((n, a) => e(n) || X[a]), o = {};
67
- for (const [n, a] of Object.entries(sr))
68
- o[n] = 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: i,
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 [r, e] = $(W), i = I(() => {
83
+ const [r, e] = M(W), t = T(() => {
83
84
  e(W());
84
85
  }, []);
85
- return xe(() => {
86
- i();
87
- const o = new MutationObserver((n) => {
88
- for (const a of n)
89
- a.type === "attributes" && a.attributeName === "data-theme" && i();
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
- }, [i]), r;
95
+ }), () => n.disconnect();
96
+ }, [t]), r;
96
97
  }
97
- const k = b(
98
- function({ icon: e, size: i = "md", color: o, label: n, className: a }, d) {
99
- const c = typeof i == "string" ? `rudi-icon--${i}` : void 0, l = typeof i == "number" ? { width: i, height: i, ...o ? { color: o } : {} } : o ? { color: o } : void 0;
100
- return /* @__PURE__ */ t(
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
104
  ref: d,
104
- className: m("rudi-icon", c, a),
105
- role: n ? "img" : void 0,
106
- "aria-label": n,
107
- "aria-hidden": n ? void 0 : !0,
108
- style: l,
109
- children: /* @__PURE__ */ t(Ie, { icon: e })
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
- ), Or = w.forwardRef(
114
+ ), Hr = P.forwardRef(
114
115
  function({
115
116
  variant: e = "primary",
116
- size: i = "md",
117
- isLoading: o = !1,
118
- iconBefore: n,
119
- iconAfter: a,
117
+ size: t = "md",
118
+ isLoading: n = !1,
119
+ iconBefore: a,
120
+ iconAfter: o,
120
121
  className: d,
121
122
  children: c,
122
- ...l
123
- }, u) {
124
- const s = y(u), { buttonProps: p } = Q(l, o, s);
125
- return /* @__PURE__ */ t(
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
132
  "rudi-button",
132
133
  `rudi-button--${e}`,
133
- `rudi-button--${i}`,
134
- o && "rudi-button--loading",
134
+ `rudi-button--${t}`,
135
+ n && "rudi-button--loading",
135
136
  d
136
137
  ),
137
- children: o ? /* @__PURE__ */ h(T, { children: [
138
- /* @__PURE__ */ t("span", { className: "rudi-button__spinner", role: "img", "aria-hidden": "true" }),
139
- /* @__PURE__ */ t("span", { children: c })
140
- ] }) : /* @__PURE__ */ h(T, { children: [
141
- n && /* @__PURE__ */ t(k, { icon: n, size: i, className: "rudi-button__icon" }),
142
- /* @__PURE__ */ t("span", { children: c }),
143
- a && /* @__PURE__ */ t(k, { icon: a, size: i, className: "rudi-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
- ), Kr = w.forwardRef(
149
+ ), Vr = P.forwardRef(
149
150
  function({
150
151
  label: e,
151
- type: i = "text",
152
- placeholder: o,
153
- description: n,
154
- errorMessage: a,
152
+ type: t = "text",
153
+ placeholder: n,
154
+ description: a,
155
+ errorMessage: o,
155
156
  isRequired: d = !1,
156
157
  isDisabled: c = !1,
157
- value: l,
158
- defaultValue: u,
159
- onChange: s,
160
- className: p
161
- }, g) {
162
- const f = y(g), {
163
- labelProps: _,
164
- inputProps: v,
165
- descriptionProps: N,
166
- errorMessageProps: x,
167
- isInvalid: C
168
- } = ne(
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: i,
172
- placeholder: o,
173
- description: n,
174
- errorMessage: a,
172
+ type: t,
173
+ placeholder: n,
174
+ description: a,
175
+ errorMessage: o,
175
176
  isRequired: d,
176
177
  isDisabled: c,
177
- value: l,
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("rudi-input", p), children: [
185
- /* @__PURE__ */ h("label", { ..._, className: "rudi-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
- d && /* @__PURE__ */ h("span", { className: "rudi-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__ */ t(
193
+ /* @__PURE__ */ i(
193
194
  "input",
194
195
  {
195
- ...v,
196
- ref: f,
196
+ ...b,
197
+ ref: h,
197
198
  className: m(
198
199
  "rudi-input__field",
199
- C && "rudi-input__field--error"
200
+ R && "rudi-input__field--error"
200
201
  )
201
202
  }
202
203
  ),
203
- n && !C && /* @__PURE__ */ t("p", { ...N, className: "rudi-input__description", children: n }),
204
- C && a && /* @__PURE__ */ t("p", { ...x, className: "rudi-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
- ), Lr = b(
208
- function(e, i) {
209
- const o = y(i), n = q(e), { inputProps: a } = ae(e, n, 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(
@@ -216,49 +217,49 @@ const k = b(
216
217
  e.className
217
218
  ),
218
219
  children: [
219
- /* @__PURE__ */ t("input", { ...a, ref: o, className: "rudi-checkbox__input" }),
220
- /* @__PURE__ */ t(
220
+ /* @__PURE__ */ i("input", { ...o, ref: n, className: "rudi-checkbox__input" }),
221
+ /* @__PURE__ */ i(
221
222
  "span",
222
223
  {
223
224
  className: m(
224
225
  "rudi-checkbox__control",
225
- n.isSelected && "rudi-checkbox__control--checked",
226
+ a.isSelected && "rudi-checkbox__control--checked",
226
227
  e.isIndeterminate && "rudi-checkbox__control--indeterminate"
227
228
  ),
228
229
  "aria-hidden": "true"
229
230
  }
230
231
  ),
231
- /* @__PURE__ */ t("span", { className: "rudi-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 Gr(r) {
238
- const e = we(r), { groupProps: i, labelProps: o, descriptionProps: n, errorMessageProps: a } = se(r, 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
- ...i,
243
+ ...t,
243
244
  className: m("rudi-checkbox-group", r.className),
244
245
  children: [
245
- /* @__PURE__ */ t("span", { ...o, className: "rudi-checkbox-group__label", children: r.label }),
246
+ /* @__PURE__ */ i("span", { ...n, className: "rudi-checkbox-group__label", children: r.label }),
246
247
  r.children,
247
- r.description && !r.errorMessage && /* @__PURE__ */ t(
248
+ r.description && !r.errorMessage && /* @__PURE__ */ i(
248
249
  "p",
249
250
  {
250
- ...n,
251
+ ...a,
251
252
  className: "rudi-checkbox-group__description",
252
253
  children: r.description
253
254
  }
254
255
  ),
255
- r.errorMessage && /* @__PURE__ */ t("p", { ...a, className: "rudi-checkbox-group__error", children: r.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 dr(r) {
261
- return /* @__PURE__ */ t(
261
+ function mr(r) {
262
+ return /* @__PURE__ */ i(
262
263
  "svg",
263
264
  {
264
265
  ...r,
@@ -271,182 +272,214 @@ function dr(r) {
271
272
  strokeWidth: "2",
272
273
  strokeLinecap: "round",
273
274
  strokeLinejoin: "round",
274
- children: /* @__PURE__ */ t("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 lr({
279
+ function pr({
279
280
  state: r,
280
281
  triggerRef: e,
281
- popoverRef: i,
282
- children: o
282
+ popoverRef: t,
283
+ children: n
283
284
  }) {
284
- const { popoverProps: n } = le({ triggerRef: e, popoverRef: i }, r);
285
- return /* @__PURE__ */ t(
285
+ const { popoverProps: a } = ue({ triggerRef: e, popoverRef: t }, r);
286
+ return /* @__PURE__ */ i(
286
287
  "div",
287
288
  {
288
- ...n,
289
- ref: i,
289
+ ...a,
290
+ ref: t,
290
291
  className: "rudi-select__popover",
291
- children: o
292
+ children: n
292
293
  }
293
294
  );
294
295
  }
295
- function ur({ state: r, listBoxRef: e, ...i }) {
296
- const { listBoxProps: o } = ue(i, r, e);
297
- return /* @__PURE__ */ t("ul", { ...o, ref: e, className: "rudi-select__listbox", children: [...r.collection].map((n) => /* @__PURE__ */ t(mr, { item: n, state: r }, n.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 mr({ item: r, state: e }) {
300
- const i = R(null), { optionProps: o, isSelected: n, isFocused: a } = me(
300
+ function fr({ item: r, state: e }) {
301
+ const t = C(null), { optionProps: n, isSelected: a, isFocused: o } = pe(
301
302
  { key: r.key },
302
303
  e,
303
- i
304
+ t
304
305
  );
305
- return /* @__PURE__ */ t(
306
+ return /* @__PURE__ */ i(
306
307
  "li",
307
308
  {
308
- ...o,
309
- ref: i,
309
+ ...n,
310
+ ref: t,
310
311
  className: "rudi-select__option",
311
- "data-focused": a,
312
- "aria-selected": n,
312
+ "data-focused": o,
313
+ "aria-selected": a,
313
314
  children: r.rendered
314
315
  }
315
316
  );
316
317
  }
317
- function Ar(r) {
318
- const e = Te(r), i = R(null), o = R(null), n = R(null), {
319
- labelProps: a,
318
+ function Wr(r) {
319
+ const e = Te(r), t = C(null), n = C(null), a = C(null), {
320
+ labelProps: o,
320
321
  triggerProps: d,
321
322
  valueProps: c,
322
- menuProps: l,
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(r, e, i), { buttonProps: p } = O(d, i);
327
- return /* @__PURE__ */ h("div", { className: m("rudi-select", r.className), children: [
328
- /* @__PURE__ */ t("label", { ...a, className: "rudi-select__label", children: r.label }),
329
- /* @__PURE__ */ t(de, { state: e, triggerRef: i, label: r.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: i,
334
+ ...f,
335
+ ref: t,
335
336
  className: m(
336
337
  "rudi-select__trigger",
337
338
  r.errorMessage && "rudi-select__trigger--error"
338
339
  ),
339
340
  children: [
340
- /* @__PURE__ */ t("span", { ...c, children: e.selectedItem ? e.selectedItem.rendered : r.placeholder || "Select an option" }),
341
- /* @__PURE__ */ t(dr, { "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__ */ t(lr, { state: e, triggerRef: i, popoverRef: o, children: /* @__PURE__ */ t(ur, { ...l, state: e, listBoxRef: n }) }),
346
- r.description && !r.errorMessage && /* @__PURE__ */ t("p", { ...u, className: "rudi-select__description", children: r.description }),
347
- r.errorMessage && /* @__PURE__ */ t("p", { ...s, className: "rudi-select__error", children: r.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 Fr(r) {
351
- return /* @__PURE__ */ t(Me, { ...r });
351
+ function Yr(r) {
352
+ return /* @__PURE__ */ i(Ee, { ...r });
352
353
  }
353
- function jr({ className: r, ...e }) {
354
- return /* @__PURE__ */ t(Ee, { className: "rudi-menu__popover", children: /* @__PURE__ */ t(
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
359
  className: m("rudi-menu__list", r)
359
360
  }
360
361
  ) });
361
362
  }
362
- function zr({ isDestructive: r, className: e, ...i }) {
363
- return /* @__PURE__ */ t(
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
- ...i,
367
- className: (o) => m(
387
+ ...s,
388
+ textValue: d ?? t ?? (typeof c == "string" ? c : void 0),
389
+ className: (f) => m(
368
390
  "rudi-menu__item",
369
391
  r && "rudi-menu__item--destructive",
370
- typeof e == "function" ? e(o) : e
392
+ typeof o == "function" ? o(f) : o
371
393
  ),
372
- "data-destructive": r || 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 Hr({
406
+ function Jr({
377
407
  title: r,
378
408
  className: e,
379
- children: i,
380
- ...o
409
+ children: t,
410
+ ...n
381
411
  }) {
382
- return /* @__PURE__ */ h(Le, { ...o, className: m("rudi-menu__section", e), children: [
383
- r && /* @__PURE__ */ t(Ge, { className: "rudi-menu__section-header", children: r }),
384
- /* @__PURE__ */ t(Ae, { items: o.items, children: i })
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 Ur({ className: r, ...e }) {
388
- return /* @__PURE__ */ t(
389
- Fe,
417
+ function Qr({ className: r, ...e }) {
418
+ return /* @__PURE__ */ i(
419
+ je,
390
420
  {
391
421
  ...e,
392
- className: m("rudi-menu__item-shortcut", r)
422
+ className: m("rudi-menu__separator", r)
393
423
  }
394
424
  );
395
425
  }
396
- const Xr = b(function({
426
+ function ei(r) {
427
+ return /* @__PURE__ */ i(He, { ...r });
428
+ }
429
+ const ri = v(function({
397
430
  isOpen: e,
398
- onClose: i,
399
- title: o,
400
- isDismissable: n = !0,
401
- size: a = "md",
431
+ onClose: t,
432
+ title: n,
433
+ isDismissable: a = !0,
434
+ size: o = "md",
402
435
  children: d,
403
436
  className: c
404
- }, l) {
405
- const u = R(null), s = y(l);
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: i,
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: n },
418
- p,
419
- s
420
- ), { dialogProps: _, titleProps: v } = pe({}, s);
421
- return e ? /* @__PURE__ */ t(ge, { children: /* @__PURE__ */ t(
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,
457
+ ...h,
458
+ ref: l,
426
459
  className: "rudi-dialog__overlay",
427
- children: /* @__PURE__ */ t(be, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ h(
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
467
  "rudi-dialog",
435
- `rudi-dialog--${a}`,
468
+ `rudi-dialog--${o}`,
436
469
  c
437
470
  ),
438
471
  children: [
439
- /* @__PURE__ */ t("h2", { ...v, className: "rudi-dialog__title", children: o }),
440
- /* @__PURE__ */ t("div", { className: "rudi-dialog__body", children: d })
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
- }), Wr = b(
447
- function(e, i) {
448
- const o = y(i), n = q(e), { inputProps: a } = _e(e, n, 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(
@@ -455,34 +488,34 @@ const Xr = b(function({
455
488
  e.className
456
489
  ),
457
490
  children: [
458
- /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t("input", { ...a, ref: o }) }),
459
- /* @__PURE__ */ t(
491
+ /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i("input", { ...o, ref: n }) }),
492
+ /* @__PURE__ */ i(
460
493
  "span",
461
494
  {
462
495
  className: m(
463
496
  "rudi-switch__track",
464
- n.isSelected && "rudi-switch__track--on"
497
+ a.isSelected && "rudi-switch__track--on"
465
498
  ),
466
499
  "aria-hidden": "true",
467
- children: /* @__PURE__ */ t("span", { className: "rudi-switch__thumb" })
500
+ children: /* @__PURE__ */ i("span", { className: "rudi-switch__thumb" })
468
501
  }
469
502
  ),
470
- /* @__PURE__ */ t("span", { className: "rudi-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
- ), fr = ke(null);
476
- function Yr(r) {
477
- const e = $e(r), { radioGroupProps: i, labelProps: o, descriptionProps: n, errorMessageProps: a } = Ne(r, e);
478
- return /* @__PURE__ */ t(fr.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
- ...i,
514
+ ...t,
482
515
  className: m("rudi-radio-group", r.className),
483
516
  children: [
484
- /* @__PURE__ */ t("span", { ...o, className: "rudi-radio-group__label", children: r.label }),
485
- /* @__PURE__ */ t(
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(
@@ -492,268 +525,274 @@ function Yr(r) {
492
525
  children: r.children
493
526
  }
494
527
  ),
495
- r.description && !r.errorMessage && /* @__PURE__ */ t("p", { ...n, className: "rudi-radio-group__description", children: r.description }),
496
- r.errorMessage && /* @__PURE__ */ t("p", { ...a, className: "rudi-radio-group__error", children: r.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 Zr = b(
502
- function({ delay: e = 500, closeDelay: i = 0, children: o }, n) {
503
- const a = De({ delay: e, closeDelay: i }), d = R(null), { triggerProps: c, tooltipProps: l } = Re({ delay: e, closeDelay: i }, a, d), [u, s] = o, { "aria-describedby": p, tabIndex: g, ...f } = c;
504
- return /* @__PURE__ */ h("span", { ref: n, className: "rudi-tooltip-trigger", ...f, children: [
505
- w.cloneElement(u, {
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, {
506
539
  ref: d,
507
- "aria-describedby": p
540
+ "aria-describedby": f
508
541
  }),
509
- a.isOpen && w.cloneElement(s, l)
542
+ o.isOpen && P.cloneElement(u, s)
510
543
  ] });
511
544
  }
512
- ), qr = b(
513
- function({ children: e, className: i, ...o }, n) {
514
- const { tooltipProps: a } = Ce(o);
515
- return /* @__PURE__ */ t(
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: n,
520
- className: m("rudi-tooltip", i),
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 Jr({
560
+ function oi({
528
561
  variant: r,
529
562
  title: e,
530
- icon: i,
531
- isPolite: o = !1,
532
- dismissible: n = !1,
533
- onDismiss: a,
563
+ icon: t,
564
+ isPolite: n = !1,
565
+ dismissible: a = !1,
566
+ onDismiss: o,
534
567
  children: d,
535
568
  className: c
536
569
  }) {
537
- const [l, u] = $(!1);
538
- return l ? 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
576
  "rudi-alert",
544
577
  `rudi-alert--${r}`,
545
- i && "rudi-alert--has-icon",
546
- n && "rudi-alert--dismissible",
578
+ t && "rudi-alert--has-icon",
579
+ a && "rudi-alert--dismissible",
547
580
  c
548
581
  ),
549
582
  children: [
550
- i && /* @__PURE__ */ t(k, { icon: i, size: "md", className: "rudi-alert__icon", "aria-hidden": "true" }),
551
- /* @__PURE__ */ h("div", { className: "rudi-alert__body", children: [
552
- e && /* @__PURE__ */ t("p", { className: "rudi-alert__title", children: e }),
553
- /* @__PURE__ */ t("div", { className: "rudi-alert__content", children: d })
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
- n && /* @__PURE__ */ t(
588
+ a && /* @__PURE__ */ i(
556
589
  "button",
557
590
  {
558
591
  type: "button",
559
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__ */ t(k, { 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 Qr = w.forwardRef(
604
+ const si = P.forwardRef(
572
605
  function({
573
606
  variant: e = "secondary",
574
- size: i = "md",
575
- isLoading: o = !1,
576
- className: n,
577
- children: a,
607
+ size: t = "md",
608
+ isLoading: n = !1,
609
+ className: a,
610
+ children: o,
578
611
  ...d
579
612
  }, c) {
580
- const l = y(c), { buttonProps: u } = Q(d, o, l);
581
- return /* @__PURE__ */ t(
613
+ const s = k(c), { buttonProps: l } = ee(d, n, s);
614
+ return /* @__PURE__ */ i(
582
615
  "button",
583
616
  {
584
- ...u,
585
- ref: l,
617
+ ...l,
618
+ ref: s,
586
619
  className: m(
587
620
  "rudi-icon-button",
588
621
  `rudi-icon-button--${e}`,
589
- `rudi-icon-button--${i}`,
590
- n
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 hr({
630
+ function br({
598
631
  variant: r = "default",
599
632
  size: e = "md",
600
- dot: i = !1,
601
- children: o,
602
- className: n
633
+ dot: t = !1,
634
+ children: n,
635
+ className: a
603
636
  }) {
604
- return /* @__PURE__ */ t(
637
+ return /* @__PURE__ */ i(
605
638
  "span",
606
639
  {
607
640
  className: m(
608
641
  "rudi-badge",
609
642
  `rudi-badge--${r}`,
610
643
  `rudi-badge--${e}`,
611
- i && "rudi-badge--dot",
612
- n
644
+ t && "rudi-badge--dot",
645
+ a
613
646
  ),
614
- children: !i && o
647
+ children: !t && n
615
648
  }
616
649
  );
617
650
  }
618
- function Vr({
651
+ function di({
619
652
  variant: r = "default",
620
653
  dismissible: e = !1,
621
- onDismiss: i,
622
- onPress: o,
623
- isDisabled: n = !1,
624
- children: a,
654
+ onDismiss: t,
655
+ onPress: n,
656
+ isDisabled: a = !1,
657
+ children: o,
625
658
  className: d
626
659
  }) {
627
- const [c, l] = $(!1), u = R(null), { buttonProps: s } = O(
660
+ const [c, s] = M(!1), l = C(null), { buttonProps: u } = L(
628
661
  {
629
- onPress: o,
630
- isDisabled: n,
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(
666
+ l
667
+ ), f = typeof o == "string" ? `Remove ${o}` : "Remove", _ = m(
635
668
  "rudi-tag",
636
669
  `rudi-tag--${r}`,
637
- o && "rudi-tag--interactive",
670
+ n && "rudi-tag--interactive",
638
671
  e && "rudi-tag--dismissible",
639
672
  d
640
673
  );
641
- return c ? null : o ? /* @__PURE__ */ h("button", { ref: u, ...s, className: g, children: [
642
- a,
643
- e && /* @__PURE__ */ t(
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
681
  className: "rudi-tag__close",
649
- "aria-label": p,
650
- onClick: (f) => {
651
- f.stopPropagation(), l(!0), i?.();
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(), l(!0), i?.());
686
+ onKeyDown: (h) => {
687
+ (h.key === "Enter" || h.key === " ") && (h.preventDefault(), h.stopPropagation(), s(!0), t?.());
655
688
  },
656
- children: /* @__PURE__ */ t(k, { 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
- ...n ? { "aria-disabled": "true" } : {},
695
+ className: _,
696
+ ...a ? { "aria-disabled": "true" } : {},
664
697
  children: [
665
- a,
666
- e && /* @__PURE__ */ t(
698
+ o,
699
+ e && /* @__PURE__ */ i(
667
700
  "button",
668
701
  {
669
702
  type: "button",
670
703
  className: "rudi-tag__close",
671
- "aria-label": p,
704
+ "aria-label": f,
672
705
  onClick: () => {
673
- l(!0), i?.();
706
+ s(!0), t?.();
674
707
  },
675
- children: /* @__PURE__ */ t(k, { 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 pr = b(
683
- function({ variant: e = "default", padding: i = "md", children: o, className: n }, a) {
684
- return /* @__PURE__ */ t(
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
722
  "rudi-card",
690
723
  `rudi-card--${e}`,
691
- `rudi-card--padding-${i}`,
692
- n
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 gr({ children: r, className: e }) {
700
- return /* @__PURE__ */ t("div", { className: m("rudi-card__header", e), children: r });
732
+ function Nr({ children: r, className: e }) {
733
+ return /* @__PURE__ */ i("div", { className: m("rudi-card__header", e), children: r });
701
734
  }
702
- function br({ children: r, className: e }) {
703
- return /* @__PURE__ */ t("div", { className: m("rudi-card__body", e), children: r });
735
+ function xr({ children: r, className: e }) {
736
+ return /* @__PURE__ */ i("div", { className: m("rudi-card__body", e), children: r });
704
737
  }
705
- function _r({ children: r, className: e }) {
706
- return /* @__PURE__ */ t("div", { className: m("rudi-card__footer", e), children: r });
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(pr, {
709
- Header: gr,
710
- Body: br,
711
- Footer: _r
741
+ const Y = Object.assign(vr, {
742
+ Header: Nr,
743
+ Body: xr,
744
+ Footer: Rr
712
745
  });
713
- function et({
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({
714
752
  value: r,
715
753
  minValue: e = 0,
716
- maxValue: i = 100,
717
- label: o,
718
- showValueLabel: n = !1,
719
- variant: a = "default",
720
- size: d = "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: l, labelProps: u } = Z({
724
- label: o,
762
+ const { progressBarProps: l, labelProps: u } = q({
763
+ label: n,
725
764
  value: r,
726
765
  minValue: e,
727
- maxValue: i
728
- }), s = (r - e) / (i - 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
771
  ...l,
733
- className: m("rudi-progress", c),
772
+ className: m("rudi-progress", s),
734
773
  children: [
735
- /* @__PURE__ */ h("div", { className: "rudi-progress__label-row", children: [
736
- /* @__PURE__ */ t("span", { ...u, className: "rudi-progress__label", children: o }),
737
- n && /* @__PURE__ */ h("span", { className: "rudi-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__ */ t(
781
+ /* @__PURE__ */ i(
743
782
  "div",
744
783
  {
745
784
  className: m(
746
785
  "rudi-progress__track",
747
- `rudi-progress__track--${d}`
786
+ `rudi-progress__track--${c}`
748
787
  ),
749
- children: /* @__PURE__ */ t(
788
+ children: /* @__PURE__ */ i(
750
789
  "div",
751
790
  {
752
791
  className: m(
753
792
  "rudi-progress__bar",
754
- `rudi-progress__bar--${a}`
793
+ `rudi-progress__bar--${g}`
755
794
  ),
756
- style: { width: `${s}%` }
795
+ style: { width: `${h}%` }
757
796
  }
758
797
  )
759
798
  }
@@ -762,31 +801,439 @@ function et({
762
801
  }
763
802
  );
764
803
  }
765
- function vr(r) {
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) {
766
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 rt({
1216
+ function vi({
770
1217
  src: r,
771
1218
  alt: e,
772
- name: i,
773
- size: o = "md",
774
- status: n,
775
- className: a
1219
+ name: t,
1220
+ size: n = "md",
1221
+ status: a,
1222
+ className: o
776
1223
  }) {
777
- const [d, c] = $(!1), l = r && !d, u = i ? vr(i) : "", s = e || i;
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
1229
  "rudi-avatar",
783
- `rudi-avatar--${o}`,
784
- a
1230
+ `rudi-avatar--${n}`,
1231
+ o
785
1232
  ),
786
1233
  role: "img",
787
- "aria-label": s,
1234
+ "aria-label": u,
788
1235
  children: [
789
- l ? /* @__PURE__ */ t(
1236
+ s ? /* @__PURE__ */ i(
790
1237
  "img",
791
1238
  {
792
1239
  src: r,
@@ -794,11 +1241,11 @@ function rt({
794
1241
  className: "rudi-avatar__image",
795
1242
  onError: () => c(!0)
796
1243
  }
797
- ) : /* @__PURE__ */ t("span", { className: "rudi-avatar__initials", "aria-hidden": "true", children: u }),
798
- n && /* @__PURE__ */ t(
799
- hr,
1244
+ ) : /* @__PURE__ */ i("span", { className: "rudi-avatar__initials", "aria-hidden": "true", children: l }),
1245
+ a && /* @__PURE__ */ i(
1246
+ br,
800
1247
  {
801
- variant: n,
1248
+ variant: a,
802
1249
  dot: !0,
803
1250
  className: "rudi-avatar__status"
804
1251
  }
@@ -807,247 +1254,247 @@ function rt({
807
1254
  }
808
1255
  );
809
1256
  }
810
- function tt({
1257
+ function Ni({
811
1258
  label: r,
812
1259
  value: e,
813
- delta: i,
814
- trend: o = "neutral",
815
- children: n,
816
- className: a
1260
+ delta: t,
1261
+ trend: n = "neutral",
1262
+ children: a,
1263
+ className: o
817
1264
  }) {
818
- return /* @__PURE__ */ t(
1265
+ return /* @__PURE__ */ i(
819
1266
  Y,
820
1267
  {
821
1268
  variant: "outlined",
822
1269
  padding: "md",
823
- className: m("rudi-stat-card", a),
824
- children: /* @__PURE__ */ h(Y.Body, { children: [
825
- /* @__PURE__ */ t("span", { className: "rudi-stat-card__label", children: r }),
826
- /* @__PURE__ */ t("span", { className: "rudi-stat-card__value", children: e }),
827
- i && /* @__PURE__ */ t(
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
1278
  "rudi-stat-card__delta",
832
- `rudi-stat-card__delta--${o}`
1279
+ `rudi-stat-card__delta--${n}`
833
1280
  ),
834
- children: i
1281
+ children: t
835
1282
  }
836
1283
  ),
837
- n && /* @__PURE__ */ t("div", { className: "rudi-stat-card__extra", children: n })
1284
+ a && /* @__PURE__ */ i("div", { className: "rudi-stat-card__extra", children: a })
838
1285
  ] })
839
1286
  }
840
1287
  );
841
1288
  }
842
- function V(r, e) {
1289
+ function re(r, e) {
843
1290
  return m(
844
1291
  "rudi-nav-item",
845
1292
  r && "rudi-nav-item--active",
846
1293
  e
847
1294
  );
848
1295
  }
849
- function ee(r, e, i) {
850
- return /* @__PURE__ */ h(T, { children: [
851
- r && /* @__PURE__ */ t(k, { icon: r, className: "rudi-nav-item__icon" }),
852
- /* @__PURE__ */ t("span", { className: "rudi-nav-item__label", children: e }),
853
- i && /* @__PURE__ */ t("span", { className: "rudi-nav-item__badge", children: i })
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 Nr = b(
857
- function({ label: e, icon: i, isActive: o = !1, href: n, onPress: a, badge: d, isDisabled: c = !1, className: l }, u) {
858
- const s = y(u), { linkProps: p } = ye(
859
- { href: n, 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__ */ t(
1309
+ return /* @__PURE__ */ i(
863
1310
  "a",
864
1311
  {
865
- ...p,
866
- ref: s,
867
- href: n,
868
- className: V(o, l),
869
- children: ee(i, e, d)
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
- ), Cr = b(
874
- function({ label: e, icon: i, isActive: o = !1, onPress: n, badge: a, isDisabled: d = !1, className: c }, l) {
875
- const u = y(l), { buttonProps: s } = O(
876
- { onPress: n, isDisabled: d },
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__ */ t(
1326
+ return /* @__PURE__ */ i(
880
1327
  "button",
881
1328
  {
882
- ...s,
883
- ref: u,
884
- className: V(o, c),
885
- children: ee(i, 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
- ), it = b(
890
- function(e, i) {
891
- return e.href ? /* @__PURE__ */ t(
892
- Nr,
1336
+ ), xi = v(
1337
+ function(e, t) {
1338
+ return e.href ? /* @__PURE__ */ i(
1339
+ $r,
893
1340
  {
894
1341
  ...e,
895
- ref: i
1342
+ ref: t
896
1343
  }
897
- ) : /* @__PURE__ */ t(
898
- Cr,
1344
+ ) : /* @__PURE__ */ i(
1345
+ Br,
899
1346
  {
900
1347
  ...e,
901
- ref: i
1348
+ ref: t
902
1349
  }
903
1350
  );
904
1351
  }
905
- ), E = 100, D = E / 2;
906
- function ot({
1352
+ ), O = 100, D = O / 2;
1353
+ function Ri({
907
1354
  value: r,
908
1355
  minValue: e = 0,
909
- maxValue: i = 100,
910
- label: o,
911
- showValueLabel: n = !1,
912
- variant: a = "default",
1356
+ maxValue: t = 100,
1357
+ label: n,
1358
+ showValueLabel: a = !1,
1359
+ variant: o = "default",
913
1360
  size: d = "md",
914
1361
  children: c,
915
- className: l
1362
+ className: s
916
1363
  }) {
917
- const { progressBarProps: u, labelProps: s } = Z({
918
- label: o,
1364
+ const { progressBarProps: l, labelProps: u } = q({
1365
+ label: n,
919
1366
  value: r,
920
1367
  minValue: e,
921
- maxValue: i
922
- }), p = (r - e) / (i - 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
1375
  "rudi-circular-progress",
929
1376
  `rudi-circular-progress--${d}`,
930
- l
1377
+ s
931
1378
  ),
932
1379
  children: [
933
- /* @__PURE__ */ h(
1380
+ /* @__PURE__ */ p(
934
1381
  "svg",
935
1382
  {
936
- viewBox: `0 0 ${E} ${E}`,
1383
+ viewBox: `0 0 ${O} ${O}`,
937
1384
  className: "rudi-circular-progress__svg",
938
1385
  children: [
939
- /* @__PURE__ */ t(
1386
+ /* @__PURE__ */ i(
940
1387
  "circle",
941
1388
  {
942
1389
  cx: D,
943
1390
  cy: D,
944
- r: f,
1391
+ r: h,
945
1392
  className: "rudi-circular-progress__track",
946
- strokeWidth: g
1393
+ strokeWidth: _
947
1394
  }
948
1395
  ),
949
- /* @__PURE__ */ t(
1396
+ /* @__PURE__ */ i(
950
1397
  "circle",
951
1398
  {
952
1399
  cx: D,
953
1400
  cy: D,
954
- r: f,
1401
+ r: h,
955
1402
  className: m(
956
1403
  "rudi-circular-progress__fill",
957
- `rudi-circular-progress__fill--${a}`
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__ */ t("div", { className: "rudi-circular-progress__center", children: c ?? (n && /* @__PURE__ */ h("span", { className: "rudi-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__ */ t("span", { ...s, className: "rudi-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 nt({
1424
+ function yi({
978
1425
  data: r,
979
1426
  dataKeys: e,
980
- indexKey: i,
981
- layout: o = "vertical",
982
- stacked: n = !1,
983
- showLegend: a = !0,
1427
+ indexKey: t,
1428
+ layout: n = "vertical",
1429
+ stacked: a = !1,
1430
+ showLegend: o = !0,
984
1431
  showGrid: d = !0,
985
1432
  height: c = 300,
986
- label: l,
987
- className: u
1433
+ label: s,
1434
+ className: l
988
1435
  }) {
989
- const s = j(), p = o === "horizontal";
990
- return /* @__PURE__ */ t(
1436
+ const u = j(), f = n === "horizontal";
1437
+ return /* @__PURE__ */ i(
991
1438
  "div",
992
1439
  {
993
- className: m("rudi-chart", u),
1440
+ className: m("rudi-chart", l),
994
1441
  role: "img",
995
- "aria-label": l,
996
- children: /* @__PURE__ */ t(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
1446
  data: r,
1000
- layout: p ? "vertical" : "horizontal",
1447
+ layout: f ? "vertical" : "horizontal",
1001
1448
  children: [
1002
- d && /* @__PURE__ */ t(
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__ */ t(K, { type: "number", tick: { fill: s.axisColor } }),
1013
- /* @__PURE__ */ t(
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: i,
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__ */ t(K, { dataKey: i, tick: { fill: s.axisColor } }),
1023
- /* @__PURE__ */ t(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__ */ t(
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__ */ t(
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__ */ t(
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: n ? "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,87 +1502,87 @@ function nt({
1055
1502
  }
1056
1503
  );
1057
1504
  }
1058
- function at({
1505
+ function ki({
1059
1506
  data: r,
1060
1507
  dataKeys: e,
1061
- indexKey: i,
1062
- curved: o = !0,
1063
- showDots: n = !0,
1064
- showGrid: a = !0,
1508
+ indexKey: t,
1509
+ curved: n = !0,
1510
+ showDots: a = !0,
1511
+ showGrid: o = !0,
1065
1512
  showLegend: d = !0,
1066
1513
  height: c = 300,
1067
- label: l,
1068
- className: u
1514
+ label: s,
1515
+ className: l
1069
1516
  }) {
1070
- const s = j();
1071
- return /* @__PURE__ */ t(
1517
+ const u = j();
1518
+ return /* @__PURE__ */ i(
1072
1519
  "div",
1073
1520
  {
1074
- className: m("rudi-chart", u),
1521
+ className: m("rudi-chart", l),
1075
1522
  role: "img",
1076
- "aria-label": l,
1077
- children: /* @__PURE__ */ t(G, { width: "100%", height: c, children: /* @__PURE__ */ h(He, { data: r, children: [
1078
- a && /* @__PURE__ */ t(
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__ */ t(K, { dataKey: i, tick: { fill: s.axisColor } }),
1086
- /* @__PURE__ */ t(L, { tick: { fill: s.axisColor } }),
1087
- /* @__PURE__ */ t(
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
- d && /* @__PURE__ */ t(
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__ */ t(
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: n,
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 st({
1567
+ function Ci({
1121
1568
  data: r,
1122
1569
  innerRadius: e = 60,
1123
- showLabels: i = !1,
1124
- showLegend: o = !0,
1125
- height: n = 300,
1126
- label: a,
1570
+ showLabels: t = !1,
1571
+ showLegend: n = !0,
1572
+ height: a = 300,
1573
+ label: o,
1127
1574
  className: d
1128
1575
  }) {
1129
1576
  const c = j();
1130
- return /* @__PURE__ */ t(
1577
+ return /* @__PURE__ */ i(
1131
1578
  "div",
1132
1579
  {
1133
1580
  className: m("rudi-chart", d),
1134
1581
  role: "img",
1135
- "aria-label": a,
1136
- children: /* @__PURE__ */ t(G, { width: "100%", height: n, children: /* @__PURE__ */ h(Xe, { children: [
1137
- /* @__PURE__ */ t(
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
1587
  data: r,
1141
1588
  dataKey: "value",
@@ -1145,17 +1592,17 @@ function st({
1145
1592
  innerRadius: e,
1146
1593
  outerRadius: e + 30,
1147
1594
  paddingAngle: 2,
1148
- label: i ? ({ name: l }) => l : !1,
1149
- children: r.map((l, u) => /* @__PURE__ */ t(
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__ */ t(
1605
+ /* @__PURE__ */ i(
1159
1606
  A,
1160
1607
  {
1161
1608
  contentStyle: {
@@ -1166,7 +1613,7 @@ function st({
1166
1613
  }
1167
1614
  }
1168
1615
  ),
1169
- o && /* @__PURE__ */ t(
1616
+ n && /* @__PURE__ */ i(
1170
1617
  F,
1171
1618
  {
1172
1619
  wrapperStyle: { color: c.legendColor }
@@ -1176,120 +1623,120 @@ function st({
1176
1623
  }
1177
1624
  );
1178
1625
  }
1179
- function re({
1626
+ function te({
1180
1627
  id: r,
1181
1628
  title: e,
1182
- items: i,
1183
- renderCard: o,
1184
- className: n
1629
+ items: t,
1630
+ renderCard: n,
1631
+ className: a
1185
1632
  }) {
1186
- const { setNodeRef: a, isOver: d } = Ze({ id: r });
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
1638
  "rudi-kanban__column",
1192
1639
  d && "rudi-kanban__column--over",
1193
- n
1640
+ a
1194
1641
  ),
1195
1642
  role: "region",
1196
1643
  "aria-label": e,
1197
1644
  children: [
1198
- /* @__PURE__ */ h("div", { className: "rudi-kanban__column-header", children: [
1199
- /* @__PURE__ */ t("span", { className: "rudi-kanban__column-title", children: e }),
1200
- /* @__PURE__ */ t("span", { className: "rudi-kanban__column-count", children: i.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__ */ t("div", { ref: a, className: "rudi-kanban__column-body", children: /* @__PURE__ */ t(
1203
- tr,
1649
+ /* @__PURE__ */ i("div", { ref: o, className: "rudi-kanban__column-body", children: /* @__PURE__ */ i(
1650
+ nr,
1204
1651
  {
1205
- items: i.map((c) => c.id),
1206
- strategy: ir,
1207
- children: i.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 M(r, e) {
1215
- return r.find((i) => i.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 Rr({
1664
+ function Ir({
1218
1665
  columns: r,
1219
1666
  onCardMove: e,
1220
- renderCard: i,
1221
- className: o
1667
+ renderCard: t,
1668
+ className: n
1222
1669
  }) {
1223
- const [n, a] = $(null), d = R(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: or
1674
+ U(rr, {
1675
+ coordinateGetter: sr
1229
1676
  })
1230
- ), l = I((f) => {
1231
- d.current && (d.current.textContent = f);
1232
- }, []), u = n ? r.flatMap((f) => f.items).find((f) => f.id === n) : null, s = I(
1233
- (f) => {
1234
- const _ = String(f.active.id);
1235
- a(_);
1236
- const v = M(r, _);
1237
- v && l(`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
- [r, l]
1240
- ), p = I(
1241
- (f) => {
1242
- const { over: _ } = f;
1243
- if (!_) return;
1244
- const v = String(_.id), N = r.find((x) => x.id === v) || M(r, v);
1245
- N && l(`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
- [r, l]
1248
- ), g = I(
1249
- (f) => {
1250
- const { active: _, over: v } = f;
1251
- if (a(null), !v) {
1252
- l("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 = M(r, N);
1256
- if (!C) return;
1257
- const z = C.items.findIndex(
1258
- (B) => B.id === N
1259
- ), H = r.find((B) => B.id === x), te = M(r, x), P = H || te;
1260
- if (!P) return;
1261
- let S;
1262
- H ? S = P.items.length : S = P.items.findIndex((B) => B.id === x), !(C.id === P.id && z === S) && (l(`Dropped card in ${P.title} at position ${S + 1}`), e({
1263
- cardId: N,
1264
- fromColumnId: C.id,
1265
- toColumnId: P.id,
1266
- fromIndex: z,
1267
- toIndex: S
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
- [r, e, l]
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: er,
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__ */ t("div", { className: m("rudi-kanban", o), children: r.map((f) => /* @__PURE__ */ t(
1282
- re,
1728
+ /* @__PURE__ */ i("div", { className: m("rudi-kanban", n), children: r.map((h) => /* @__PURE__ */ i(
1729
+ te,
1283
1730
  {
1284
- id: f.id,
1285
- title: f.title,
1286
- items: f.items,
1287
- renderCard: i
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__ */ t(rr, { children: u ? /* @__PURE__ */ t("div", { className: "rudi-kanban__card rudi-kanban__card--overlay", children: i(u) }) : null }),
1292
- /* @__PURE__ */ t(
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
1742
  ref: d,
@@ -1303,42 +1750,42 @@ function Rr({
1303
1750
  }
1304
1751
  );
1305
1752
  }
1306
- const ct = Object.assign(Rr, {
1307
- Column: re
1753
+ const Pi = Object.assign(Ir, {
1754
+ Column: te
1308
1755
  });
1309
- function dt({ id: r, children: e, className: i }) {
1756
+ function Si({ id: r, children: e, className: t }) {
1310
1757
  const {
1311
- attributes: o,
1312
- listeners: n,
1313
- setNodeRef: a,
1758
+ attributes: n,
1759
+ listeners: a,
1760
+ setNodeRef: o,
1314
1761
  transform: d,
1315
1762
  transition: c,
1316
- isDragging: l
1317
- } = nr({ id: r }), u = {
1318
- transform: ar.Transform.toString(d),
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
1774
  "rudi-kanban__card",
1328
- l && "rudi-kanban__card--dragging",
1329
- i
1775
+ s && "rudi-kanban__card--dragging",
1776
+ t
1330
1777
  ),
1331
1778
  children: [
1332
- /* @__PURE__ */ t(
1779
+ /* @__PURE__ */ i(
1333
1780
  "button",
1334
1781
  {
1335
1782
  type: "button",
1336
1783
  className: "rudi-kanban__card-handle",
1337
1784
  "aria-label": `Drag handle for card ${r}`,
1338
- ...o,
1339
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 dt({ id: r, children: e, className: i }) {
1347
1794
  fill: "currentColor",
1348
1795
  "aria-hidden": "true",
1349
1796
  children: [
1350
- /* @__PURE__ */ t("circle", { cx: "3.5", cy: "2", r: "1.25" }),
1351
- /* @__PURE__ */ t("circle", { cx: "8.5", cy: "2", r: "1.25" }),
1352
- /* @__PURE__ */ t("circle", { cx: "3.5", cy: "6", r: "1.25" }),
1353
- /* @__PURE__ */ t("circle", { cx: "8.5", cy: "6", r: "1.25" }),
1354
- /* @__PURE__ */ t("circle", { cx: "3.5", cy: "10", r: "1.25" }),
1355
- /* @__PURE__ */ t("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__ */ t("div", { className: "rudi-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 lt = b(
1367
- function({ level: e, size: i, className: o, children: n, ...a }, d) {
1368
- const c = `h${e}`;
1369
- return /* @__PURE__ */ t(
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: d,
1819
+ ref: u,
1373
1820
  className: m(
1374
- `rudi-heading rudi-heading--${i ?? 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: n
1828
+ ...l,
1829
+ children: s
1379
1830
  }
1380
1831
  );
1381
1832
  }
1382
- ), ut = b(function({ variant: e = "body", as: i = "p", className: o, children: n, ...a }, d) {
1383
- return /* @__PURE__ */ t(
1384
- i,
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: d,
1387
- className: m(`rudi-text rudi-text--${e}`, o),
1388
- ...a,
1389
- children: n
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
- }), mt = b(function({ size: e = "base", as: i = "div", className: o, children: n, ...a }, d) {
1393
- return /* @__PURE__ */ t(
1394
- i,
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
1864
  ref: d,
1397
1865
  className: m(
1398
1866
  "rudi-prose",
1399
1867
  e !== "base" && `rudi-prose--${e}`,
1400
- o
1868
+ n
1401
1869
  ),
1402
- ...a,
1403
- children: n
1870
+ ...o,
1871
+ children: a
1404
1872
  }
1405
1873
  );
1406
- }), ft = b(function({
1874
+ }), wi = v(function({
1407
1875
  padding: e,
1408
- bordered: i = !1,
1409
- invert: o = !1,
1410
- as: n = "div",
1411
- className: a,
1876
+ bordered: t = !1,
1877
+ invert: n = !1,
1878
+ as: a = "div",
1879
+ className: o,
1412
1880
  style: d,
1413
1881
  children: c,
1414
- ...l
1415
- }, u) {
1416
- const s = {};
1417
- return e && (s["--box-padding"] = e), /* @__PURE__ */ t(
1418
- n,
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
1890
  "rudi-box",
1423
- i && "rudi-box--bordered",
1424
- o && "rudi-box--invert",
1425
- a
1891
+ t && "rudi-box--bordered",
1892
+ n && "rudi-box--invert",
1893
+ o
1426
1894
  ),
1427
- style: { ...s, ...d },
1428
- ...l,
1895
+ style: { ...u, ...d },
1896
+ ...s,
1429
1897
  children: c
1430
1898
  }
1431
1899
  );
1432
- }), ht = b(function({
1900
+ }), Ti = v(function({
1433
1901
  space: e,
1434
- recursive: i = !1,
1435
- splitAfter: o,
1436
- as: n = "div",
1437
- className: a,
1902
+ recursive: t = !1,
1903
+ splitAfter: n,
1904
+ as: a = "div",
1905
+ className: o,
1438
1906
  style: d,
1439
1907
  children: c,
1440
- ...l
1441
- }, u) {
1442
- const s = {};
1443
- e && (s["--stack-space"] = e);
1444
- const p = Pe.toArray(c), g = o ? p.map((f, _) => _ === o - 1 && Se(f) ? Be(
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__ */ t(
1454
- n,
1920
+ ) : h) : c;
1921
+ return /* @__PURE__ */ i(
1922
+ a,
1455
1923
  {
1456
- ref: u,
1924
+ ref: l,
1457
1925
  className: m(
1458
1926
  "rudi-stack",
1459
- i && "rudi-stack--recursive",
1460
- o && "rudi-stack--split",
1461
- a
1927
+ t && "rudi-stack--recursive",
1928
+ n && "rudi-stack--split",
1929
+ o
1462
1930
  ),
1463
- style: { ...s, ...d },
1464
- ...l,
1465
- children: g
1931
+ style: { ...u, ...d },
1932
+ ...s,
1933
+ children: _
1466
1934
  }
1467
1935
  );
1468
- }), pt = b(function({
1936
+ }), Mi = v(function({
1469
1937
  space: e,
1470
- justify: i,
1471
- align: o,
1472
- as: n = "div",
1473
- className: a,
1938
+ justify: t,
1939
+ align: n,
1940
+ as: a = "div",
1941
+ className: o,
1474
1942
  style: d,
1475
1943
  children: c,
1476
- ...l
1477
- }, u) {
1478
- const s = {};
1479
- return e && (s["--cluster-space"] = e), i && (s["--cluster-justify"] = i), o && (s["--cluster-align"] = o), /* @__PURE__ */ t(
1480
- n,
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("rudi-cluster", a),
1484
- style: { ...s, ...d },
1485
- ...l,
1950
+ ref: l,
1951
+ className: m("rudi-cluster", o),
1952
+ style: { ...u, ...d },
1953
+ ...s,
1486
1954
  children: c
1487
1955
  }
1488
1956
  );
1489
- }), gt = b(function({
1957
+ }), Di = v(function({
1490
1958
  minCellWidth: e,
1491
- space: i,
1492
- as: o = "div",
1493
- className: n,
1494
- style: a,
1959
+ space: t,
1960
+ as: n = "div",
1961
+ className: a,
1962
+ style: o,
1495
1963
  children: d,
1496
1964
  ...c
1497
- }, l) {
1498
- const u = {};
1499
- return e && (u["--grid-min-cell"] = e), i && (u["--grid-space"] = i), /* @__PURE__ */ t(
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: l,
1503
- className: m("rudi-grid", n),
1504
- style: { ...u, ...a },
1970
+ ref: s,
1971
+ className: m("rudi-grid", a),
1972
+ style: { ...l, ...o },
1505
1973
  ...c,
1506
1974
  children: d
1507
1975
  }
1508
1976
  );
1509
- }), bt = b(function({
1977
+ }), Ei = v(function({
1510
1978
  side: e = "left",
1511
- sideWidth: i,
1512
- contentMin: o,
1513
- space: n,
1514
- noStretch: a = !1,
1979
+ sideWidth: t,
1980
+ contentMin: n,
1981
+ space: a,
1982
+ noStretch: o = !1,
1515
1983
  as: d = "div",
1516
1984
  className: c,
1517
- style: l,
1518
- children: u,
1519
- ...s
1520
- }, p) {
1521
- const g = {};
1522
- return i && (g["--sidebar-width"] = i), o && (g["--sidebar-content-min"] = o), n && (g["--sidebar-space"] = n), /* @__PURE__ */ t(
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(
1523
1991
  d,
1524
1992
  {
1525
- ref: p,
1993
+ ref: f,
1526
1994
  className: m(
1527
1995
  "rudi-sidebar",
1528
1996
  e === "right" && "rudi-sidebar--right",
1529
- a && "rudi-sidebar--no-stretch",
1997
+ o && "rudi-sidebar--no-stretch",
1530
1998
  c
1531
1999
  ),
1532
- style: { ...g, ...l },
1533
- ...s,
1534
- children: u
2000
+ style: { ..._, ...s },
2001
+ ...u,
2002
+ children: l
1535
2003
  }
1536
2004
  );
1537
- }), _t = b(function({
2005
+ }), Oi = v(function({
1538
2006
  maxWidth: e,
1539
- gutters: i,
1540
- intrinsic: o = !1,
1541
- as: n = "div",
1542
- className: a,
2007
+ gutters: t,
2008
+ intrinsic: n = !1,
2009
+ as: a = "div",
2010
+ className: o,
1543
2011
  style: d,
1544
2012
  children: c,
1545
- ...l
1546
- }, u) {
1547
- const s = {};
1548
- return e && (s["--center-max-width"] = e), i && (s["--center-gutters"] = i), /* @__PURE__ */ t(
1549
- n,
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
2021
  "rudi-center",
1554
- o && "rudi-center--intrinsic",
1555
- a
2022
+ n && "rudi-center--intrinsic",
2023
+ o
1556
2024
  ),
1557
- style: { ...s, ...d },
1558
- ...l,
2025
+ style: { ...u, ...d },
2026
+ ...s,
1559
2027
  children: c
1560
2028
  }
1561
2029
  );
1562
- }), vt = b(function({
2030
+ }), Li = v(function({
1563
2031
  minHeight: e,
1564
- space: i,
1565
- as: o = "div",
1566
- className: n,
1567
- style: a,
2032
+ space: t,
2033
+ as: n = "div",
2034
+ className: a,
2035
+ style: o,
1568
2036
  children: d,
1569
2037
  ...c
1570
- }, l) {
1571
- const u = {};
1572
- return e && (u["--cover-min-height"] = e), i && (u["--cover-space"] = i), /* @__PURE__ */ t(
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: l,
1576
- className: m("rudi-cover", n),
1577
- style: { ...u, ...a },
2043
+ ref: s,
2044
+ className: m("rudi-cover", a),
2045
+ style: { ...l, ...o },
1578
2046
  ...c,
1579
2047
  children: d
1580
2048
  }
1581
2049
  );
1582
- }), Nt = b(
2050
+ }), zi = v(
1583
2051
  function({
1584
2052
  threshold: e,
1585
- space: i,
1586
- limit: o,
1587
- as: n = "div",
1588
- className: a,
2053
+ space: t,
2054
+ limit: n,
2055
+ as: a = "div",
2056
+ className: o,
1589
2057
  style: d,
1590
2058
  children: c,
1591
- ...l
1592
- }, u) {
1593
- const s = {};
1594
- return e && (s["--switcher-threshold"] = e), i && (s["--switcher-space"] = i), /* @__PURE__ */ t(
1595
- n,
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("rudi-switcher", a),
1599
- style: { ...s, ...d },
1600
- ...l,
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
- Jr as RudiAlert,
1608
- rt as RudiAvatar,
1609
- hr as RudiBadge,
1610
- nt as RudiBarChart,
1611
- ft as RudiBox,
1612
- Or as RudiButton,
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,
1613
2082
  Y as RudiCard,
1614
- _t as RudiCenter,
1615
- Lr as RudiCheckbox,
1616
- Gr as RudiCheckboxGroup,
1617
- ot as RudiCircularProgress,
1618
- pt as RudiCluster,
1619
- vt as RudiCover,
1620
- Xr as RudiDialog,
1621
- st as RudiDonutChart,
1622
- gt as RudiGrid,
1623
- lt as RudiHeading,
1624
- k as RudiIcon,
1625
- Qr as RudiIconButton,
1626
- Kr as RudiInput,
1627
- ct as RudiKanbanBoard,
1628
- dt as RudiKanbanCard,
1629
- re as RudiKanbanColumn,
1630
- Ur as RudiKeyboard,
1631
- at as RudiLineChart,
1632
- jr as RudiMenu,
1633
- zr as RudiMenuItem,
1634
- Hr as RudiMenuSection,
1635
- Fr as RudiMenuTrigger,
1636
- it as RudiNavItem,
1637
- et as RudiProgressBar,
1638
- mt as RudiProse,
1639
- Yr as RudiRadioGroup,
1640
- Ar as RudiSelect,
1641
- yt as RudiSeparator,
1642
- bt as RudiSidebar,
1643
- ht as RudiStack,
1644
- tt as RudiStatCard,
1645
- xt as RudiSubmenuTrigger,
1646
- Wr as RudiSwitch,
1647
- Nt as RudiSwitcher,
1648
- Vr as RudiTag,
1649
- ut as RudiText,
1650
- qr as RudiTooltip,
1651
- Zr as RudiTooltipTrigger,
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
  };