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