rudiment-ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +288 -17
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- 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/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 +2 -2
- 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 +2 -2
- 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/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/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/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 +2 -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/MenuTrigger.d.ts +2 -2
- package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
- package/dist/components/NavItem/NavItem.d.ts +2 -2
- package/dist/components/NavItem/NavItem.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
- 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/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/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/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +85 -85
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +675 -675
- 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 +2 -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 +2 -2
- package/dist/typography/Text/Text.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { clsx as
|
|
2
|
+
import { clsx as ie } from "clsx";
|
|
3
3
|
import { twMerge as oe } from "tailwind-merge";
|
|
4
|
-
import { useButton as O, useTextField as
|
|
5
|
-
import w, { useState as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { useObjectRef as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { useToggleState as q, useCheckboxGroupState as we, useSelectState as Te, useRadioGroupState as
|
|
10
|
-
import { MenuTrigger as
|
|
11
|
-
import { Separator as
|
|
4
|
+
import { useButton as O, useTextField as ne, useCheckbox as ae, useCheckboxGroup as se, useSelect as ce, HiddenSelect as de, usePopover as le, useListBox as ue, useOption as me, usePreventScroll as fe, useModalOverlay as he, useDialog as pe, OverlayContainer as ge, FocusScope as be, useSwitch as _e, VisuallyHidden as ve, useRadioGroup as Ne, useTooltip as Ce, useTooltipTrigger as Re, useProgressBar as Z, useLink as ye } from "react-aria";
|
|
5
|
+
import w, { useState as $, useCallback as I, useEffect as xe, forwardRef as b, useRef as R, createContext as ke, Children as Pe, isValidElement as Se, cloneElement as Be } from "react";
|
|
6
|
+
import { jsx as t, jsxs as h, Fragment as T } from "react/jsx-runtime";
|
|
7
|
+
import { useObjectRef as y } from "@react-aria/utils";
|
|
8
|
+
import { Icon as Ie } from "@iconify/react";
|
|
9
|
+
import { useToggleState as q, useCheckboxGroupState as we, useSelectState as Te, useRadioGroupState as $e, useTooltipTriggerState as De } from "react-stately";
|
|
10
|
+
import { MenuTrigger as Me, Popover as Ee, Menu as Oe, MenuItem as Ke, MenuSection as Le, Header as Ge, Collection as Ae, Keyboard as Fe } from "react-aria-components";
|
|
11
|
+
import { Separator as yt, SubmenuTrigger as xt } from "react-aria-components";
|
|
12
12
|
import { ResponsiveContainer as G, BarChart as je, CartesianGrid as J, XAxis as K, YAxis as L, Tooltip as A, Legend as F, Bar as ze, LineChart as He, Line as Ue, PieChart as Xe, Pie as We, Cell as Ye } from "recharts";
|
|
13
|
-
import { useDroppable as Ze, useSensors as qe, useSensor as U, PointerSensor as Je, KeyboardSensor as Qe, DndContext as Ve, closestCorners as
|
|
14
|
-
import { SortableContext as
|
|
15
|
-
import { CSS as
|
|
16
|
-
function m(...
|
|
17
|
-
return oe(
|
|
13
|
+
import { useDroppable as Ze, useSensors as qe, useSensor as U, PointerSensor as Je, KeyboardSensor as Qe, DndContext as Ve, closestCorners as er, DragOverlay as rr } from "@dnd-kit/core";
|
|
14
|
+
import { SortableContext as tr, verticalListSortingStrategy as ir, sortableKeyboardCoordinates as or, useSortable as nr } from "@dnd-kit/sortable";
|
|
15
|
+
import { CSS as ar } from "@dnd-kit/utilities";
|
|
16
|
+
function m(...r) {
|
|
17
|
+
return oe(ie(r));
|
|
18
18
|
}
|
|
19
|
-
function Q(
|
|
19
|
+
function Q(r, e, i) {
|
|
20
20
|
const { buttonProps: o } = O(
|
|
21
|
-
{ ...
|
|
22
|
-
|
|
21
|
+
{ ...r, isDisabled: r.isDisabled || e },
|
|
22
|
+
i
|
|
23
23
|
);
|
|
24
24
|
return {
|
|
25
25
|
buttonProps: {
|
|
@@ -28,18 +28,18 @@ function Q(t, e, n) {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
axisColor: "--
|
|
33
|
-
gridColor: "--
|
|
34
|
-
labelColor: "--
|
|
35
|
-
legendColor: "--
|
|
36
|
-
tooltipBg: "--
|
|
37
|
-
tooltipText: "--
|
|
38
|
-
tooltipBorder: "--
|
|
39
|
-
chartBg: "--
|
|
40
|
-
},
|
|
31
|
+
const sr = {
|
|
32
|
+
axisColor: "--rudi-component-chart-axis-color",
|
|
33
|
+
gridColor: "--rudi-component-chart-grid-color",
|
|
34
|
+
labelColor: "--rudi-component-chart-label-color",
|
|
35
|
+
legendColor: "--rudi-component-chart-legend-color",
|
|
36
|
+
tooltipBg: "--rudi-component-chart-tooltip-bg",
|
|
37
|
+
tooltipText: "--rudi-component-chart-tooltip-text",
|
|
38
|
+
tooltipBorder: "--rudi-component-chart-tooltip-border",
|
|
39
|
+
chartBg: "--rudi-component-chart-bg"
|
|
40
|
+
}, cr = Array.from(
|
|
41
41
|
{ length: 8 },
|
|
42
|
-
(
|
|
42
|
+
(r, e) => `--rudi-color-dataviz-series-${e + 1}`
|
|
43
43
|
), X = [
|
|
44
44
|
"#2563eb",
|
|
45
45
|
"#d946ef",
|
|
@@ -63,11 +63,11 @@ function W() {
|
|
|
63
63
|
tooltipBorder: "#e5e7eb",
|
|
64
64
|
chartBg: "#ffffff"
|
|
65
65
|
};
|
|
66
|
-
const
|
|
67
|
-
for (const [
|
|
68
|
-
o[
|
|
66
|
+
const r = getComputedStyle(document.documentElement), e = (n) => r.getPropertyValue(n).trim(), i = cr.map((n, a) => e(n) || X[a]), o = {};
|
|
67
|
+
for (const [n, a] of Object.entries(sr))
|
|
68
|
+
o[n] = e(a) || "";
|
|
69
69
|
return {
|
|
70
|
-
colors:
|
|
70
|
+
colors: i,
|
|
71
71
|
axisColor: o.axisColor,
|
|
72
72
|
gridColor: o.gridColor,
|
|
73
73
|
labelColor: o.labelColor,
|
|
@@ -79,189 +79,189 @@ function W() {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function j() {
|
|
82
|
-
const [
|
|
82
|
+
const [r, e] = $(W), i = I(() => {
|
|
83
83
|
e(W());
|
|
84
84
|
}, []);
|
|
85
85
|
return xe(() => {
|
|
86
|
-
|
|
87
|
-
const o = new MutationObserver((
|
|
88
|
-
for (const a of
|
|
89
|
-
a.type === "attributes" && a.attributeName === "data-theme" &&
|
|
86
|
+
i();
|
|
87
|
+
const o = new MutationObserver((n) => {
|
|
88
|
+
for (const a of n)
|
|
89
|
+
a.type === "attributes" && a.attributeName === "data-theme" && i();
|
|
90
90
|
});
|
|
91
91
|
return o.observe(document.documentElement, {
|
|
92
92
|
attributes: !0,
|
|
93
93
|
attributeFilter: ["data-theme"]
|
|
94
94
|
}), () => o.disconnect();
|
|
95
|
-
}, [
|
|
95
|
+
}, [i]), r;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
function({ icon: e, size:
|
|
99
|
-
const c = typeof
|
|
100
|
-
return /* @__PURE__ */
|
|
97
|
+
const k = b(
|
|
98
|
+
function({ icon: e, size: i = "md", color: o, label: n, className: a }, d) {
|
|
99
|
+
const c = typeof i == "string" ? `rudi-icon--${i}` : void 0, l = typeof i == "number" ? { width: i, height: i, ...o ? { color: o } : {} } : o ? { color: o } : void 0;
|
|
100
|
+
return /* @__PURE__ */ t(
|
|
101
101
|
"span",
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
104
|
-
className: m("
|
|
105
|
-
role:
|
|
106
|
-
"aria-label":
|
|
107
|
-
"aria-hidden":
|
|
108
|
-
style:
|
|
109
|
-
children: /* @__PURE__ */
|
|
103
|
+
ref: d,
|
|
104
|
+
className: m("rudi-icon", c, a),
|
|
105
|
+
role: n ? "img" : void 0,
|
|
106
|
+
"aria-label": n,
|
|
107
|
+
"aria-hidden": n ? void 0 : !0,
|
|
108
|
+
style: l,
|
|
109
|
+
children: /* @__PURE__ */ t(Ie, { icon: e })
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
),
|
|
113
|
+
), Or = w.forwardRef(
|
|
114
114
|
function({
|
|
115
115
|
variant: e = "primary",
|
|
116
|
-
size:
|
|
116
|
+
size: i = "md",
|
|
117
117
|
isLoading: o = !1,
|
|
118
|
-
iconBefore:
|
|
118
|
+
iconBefore: n,
|
|
119
119
|
iconAfter: a,
|
|
120
|
-
className:
|
|
120
|
+
className: d,
|
|
121
121
|
children: c,
|
|
122
|
-
...
|
|
122
|
+
...l
|
|
123
123
|
}, u) {
|
|
124
|
-
const s =
|
|
125
|
-
return /* @__PURE__ */
|
|
124
|
+
const s = y(u), { buttonProps: p } = Q(l, o, s);
|
|
125
|
+
return /* @__PURE__ */ t(
|
|
126
126
|
"button",
|
|
127
127
|
{
|
|
128
128
|
...p,
|
|
129
129
|
ref: s,
|
|
130
130
|
className: m(
|
|
131
|
-
"
|
|
132
|
-
`
|
|
133
|
-
`
|
|
134
|
-
o && "
|
|
135
|
-
|
|
131
|
+
"rudi-button",
|
|
132
|
+
`rudi-button--${e}`,
|
|
133
|
+
`rudi-button--${i}`,
|
|
134
|
+
o && "rudi-button--loading",
|
|
135
|
+
d
|
|
136
136
|
),
|
|
137
137
|
children: o ? /* @__PURE__ */ h(T, { children: [
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ t("span", { className: "rudi-button__spinner", role: "img", "aria-hidden": "true" }),
|
|
139
|
+
/* @__PURE__ */ t("span", { children: c })
|
|
140
140
|
] }) : /* @__PURE__ */ h(T, { children: [
|
|
141
|
-
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
a && /* @__PURE__ */
|
|
141
|
+
n && /* @__PURE__ */ t(k, { icon: n, size: i, className: "rudi-button__icon" }),
|
|
142
|
+
/* @__PURE__ */ t("span", { children: c }),
|
|
143
|
+
a && /* @__PURE__ */ t(k, { icon: a, size: i, className: "rudi-button__icon" })
|
|
144
144
|
] })
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
|
-
),
|
|
148
|
+
), Kr = w.forwardRef(
|
|
149
149
|
function({
|
|
150
150
|
label: e,
|
|
151
|
-
type:
|
|
151
|
+
type: i = "text",
|
|
152
152
|
placeholder: o,
|
|
153
|
-
description:
|
|
153
|
+
description: n,
|
|
154
154
|
errorMessage: a,
|
|
155
|
-
isRequired:
|
|
155
|
+
isRequired: d = !1,
|
|
156
156
|
isDisabled: c = !1,
|
|
157
|
-
value:
|
|
157
|
+
value: l,
|
|
158
158
|
defaultValue: u,
|
|
159
159
|
onChange: s,
|
|
160
160
|
className: p
|
|
161
161
|
}, g) {
|
|
162
|
-
const f =
|
|
162
|
+
const f = y(g), {
|
|
163
163
|
labelProps: _,
|
|
164
164
|
inputProps: v,
|
|
165
165
|
descriptionProps: N,
|
|
166
166
|
errorMessageProps: x,
|
|
167
167
|
isInvalid: C
|
|
168
|
-
} =
|
|
168
|
+
} = ne(
|
|
169
169
|
{
|
|
170
170
|
label: e,
|
|
171
|
-
type:
|
|
171
|
+
type: i,
|
|
172
172
|
placeholder: o,
|
|
173
|
-
description:
|
|
173
|
+
description: n,
|
|
174
174
|
errorMessage: a,
|
|
175
|
-
isRequired:
|
|
175
|
+
isRequired: d,
|
|
176
176
|
isDisabled: c,
|
|
177
|
-
value:
|
|
177
|
+
value: l,
|
|
178
178
|
defaultValue: u,
|
|
179
179
|
onChange: s,
|
|
180
180
|
isInvalid: !!a
|
|
181
181
|
},
|
|
182
182
|
f
|
|
183
183
|
);
|
|
184
|
-
return /* @__PURE__ */ h("div", { className: m("
|
|
185
|
-
/* @__PURE__ */ h("label", { ..._, className: "
|
|
184
|
+
return /* @__PURE__ */ h("div", { className: m("rudi-input", p), children: [
|
|
185
|
+
/* @__PURE__ */ h("label", { ..._, className: "rudi-input__label", children: [
|
|
186
186
|
e,
|
|
187
|
-
|
|
187
|
+
d && /* @__PURE__ */ h("span", { className: "rudi-input__required", "aria-hidden": "true", children: [
|
|
188
188
|
" ",
|
|
189
189
|
"*"
|
|
190
190
|
] })
|
|
191
191
|
] }),
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ t(
|
|
193
193
|
"input",
|
|
194
194
|
{
|
|
195
195
|
...v,
|
|
196
196
|
ref: f,
|
|
197
197
|
className: m(
|
|
198
|
-
"
|
|
199
|
-
C && "
|
|
198
|
+
"rudi-input__field",
|
|
199
|
+
C && "rudi-input__field--error"
|
|
200
200
|
)
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
|
|
204
|
-
C && a && /* @__PURE__ */
|
|
203
|
+
n && !C && /* @__PURE__ */ t("p", { ...N, className: "rudi-input__description", children: n }),
|
|
204
|
+
C && a && /* @__PURE__ */ t("p", { ...x, className: "rudi-input__error", children: a })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
),
|
|
208
|
-
function(e,
|
|
209
|
-
const o =
|
|
207
|
+
), Lr = b(
|
|
208
|
+
function(e, i) {
|
|
209
|
+
const o = y(i), n = q(e), { inputProps: a } = ae(e, n, o);
|
|
210
210
|
return /* @__PURE__ */ h(
|
|
211
211
|
"label",
|
|
212
212
|
{
|
|
213
213
|
className: m(
|
|
214
|
-
"
|
|
215
|
-
e.isDisabled && "
|
|
214
|
+
"rudi-checkbox",
|
|
215
|
+
e.isDisabled && "rudi-checkbox--disabled",
|
|
216
216
|
e.className
|
|
217
217
|
),
|
|
218
218
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ t("input", { ...a, ref: o, className: "rudi-checkbox__input" }),
|
|
220
|
+
/* @__PURE__ */ t(
|
|
221
221
|
"span",
|
|
222
222
|
{
|
|
223
223
|
className: m(
|
|
224
|
-
"
|
|
225
|
-
|
|
226
|
-
e.isIndeterminate && "
|
|
224
|
+
"rudi-checkbox__control",
|
|
225
|
+
n.isSelected && "rudi-checkbox__control--checked",
|
|
226
|
+
e.isIndeterminate && "rudi-checkbox__control--indeterminate"
|
|
227
227
|
),
|
|
228
228
|
"aria-hidden": "true"
|
|
229
229
|
}
|
|
230
230
|
),
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ t("span", { className: "rudi-checkbox__label", children: e.children })
|
|
232
232
|
]
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
|
-
function
|
|
238
|
-
const e = we(
|
|
237
|
+
function Gr(r) {
|
|
238
|
+
const e = we(r), { groupProps: i, labelProps: o, descriptionProps: n, errorMessageProps: a } = se(r, e);
|
|
239
239
|
return /* @__PURE__ */ h(
|
|
240
240
|
"div",
|
|
241
241
|
{
|
|
242
|
-
...
|
|
243
|
-
className: m("
|
|
242
|
+
...i,
|
|
243
|
+
className: m("rudi-checkbox-group", r.className),
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
/* @__PURE__ */ t("span", { ...o, className: "rudi-checkbox-group__label", children: r.label }),
|
|
246
|
+
r.children,
|
|
247
|
+
r.description && !r.errorMessage && /* @__PURE__ */ t(
|
|
248
248
|
"p",
|
|
249
249
|
{
|
|
250
|
-
...
|
|
251
|
-
className: "
|
|
252
|
-
children:
|
|
250
|
+
...n,
|
|
251
|
+
className: "rudi-checkbox-group__description",
|
|
252
|
+
children: r.description
|
|
253
253
|
}
|
|
254
254
|
),
|
|
255
|
-
|
|
255
|
+
r.errorMessage && /* @__PURE__ */ t("p", { ...a, className: "rudi-checkbox-group__error", children: r.errorMessage })
|
|
256
256
|
]
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
return /* @__PURE__ */
|
|
260
|
+
function dr(r) {
|
|
261
|
+
return /* @__PURE__ */ t(
|
|
262
262
|
"svg",
|
|
263
263
|
{
|
|
264
|
-
...
|
|
264
|
+
...r,
|
|
265
265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
266
266
|
width: "16",
|
|
267
267
|
height: "16",
|
|
@@ -271,142 +271,142 @@ function lt(t) {
|
|
|
271
271
|
strokeWidth: "2",
|
|
272
272
|
strokeLinecap: "round",
|
|
273
273
|
strokeLinejoin: "round",
|
|
274
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" })
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
state:
|
|
278
|
+
function lr({
|
|
279
|
+
state: r,
|
|
280
280
|
triggerRef: e,
|
|
281
|
-
popoverRef:
|
|
281
|
+
popoverRef: i,
|
|
282
282
|
children: o
|
|
283
283
|
}) {
|
|
284
|
-
const { popoverProps:
|
|
285
|
-
return /* @__PURE__ */
|
|
284
|
+
const { popoverProps: n } = le({ triggerRef: e, popoverRef: i }, r);
|
|
285
|
+
return /* @__PURE__ */ t(
|
|
286
286
|
"div",
|
|
287
287
|
{
|
|
288
|
-
...
|
|
289
|
-
ref:
|
|
290
|
-
className: "
|
|
288
|
+
...n,
|
|
289
|
+
ref: i,
|
|
290
|
+
className: "rudi-select__popover",
|
|
291
291
|
children: o
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
const { listBoxProps: o } = ue(
|
|
297
|
-
return /* @__PURE__ */
|
|
295
|
+
function ur({ state: r, listBoxRef: e, ...i }) {
|
|
296
|
+
const { listBoxProps: o } = ue(i, r, e);
|
|
297
|
+
return /* @__PURE__ */ t("ul", { ...o, ref: e, className: "rudi-select__listbox", children: [...r.collection].map((n) => /* @__PURE__ */ t(mr, { item: n, state: r }, n.key)) });
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const
|
|
301
|
-
{ key:
|
|
299
|
+
function mr({ item: r, state: e }) {
|
|
300
|
+
const i = R(null), { optionProps: o, isSelected: n, isFocused: a } = me(
|
|
301
|
+
{ key: r.key },
|
|
302
302
|
e,
|
|
303
|
-
|
|
303
|
+
i
|
|
304
304
|
);
|
|
305
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ t(
|
|
306
306
|
"li",
|
|
307
307
|
{
|
|
308
308
|
...o,
|
|
309
|
-
ref:
|
|
310
|
-
className: "
|
|
309
|
+
ref: i,
|
|
310
|
+
className: "rudi-select__option",
|
|
311
311
|
"data-focused": a,
|
|
312
|
-
"aria-selected":
|
|
313
|
-
children:
|
|
312
|
+
"aria-selected": n,
|
|
313
|
+
children: r.rendered
|
|
314
314
|
}
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
const e = Te(
|
|
317
|
+
function Ar(r) {
|
|
318
|
+
const e = Te(r), i = R(null), o = R(null), n = R(null), {
|
|
319
319
|
labelProps: a,
|
|
320
|
-
triggerProps:
|
|
320
|
+
triggerProps: d,
|
|
321
321
|
valueProps: c,
|
|
322
|
-
menuProps:
|
|
322
|
+
menuProps: l,
|
|
323
323
|
descriptionProps: u,
|
|
324
324
|
errorMessageProps: s
|
|
325
325
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
326
|
-
} = ce(
|
|
327
|
-
return /* @__PURE__ */ h("div", { className: m("
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
326
|
+
} = ce(r, e, i), { buttonProps: p } = O(d, i);
|
|
327
|
+
return /* @__PURE__ */ h("div", { className: m("rudi-select", r.className), children: [
|
|
328
|
+
/* @__PURE__ */ t("label", { ...a, className: "rudi-select__label", children: r.label }),
|
|
329
|
+
/* @__PURE__ */ t(de, { state: e, triggerRef: i, label: r.label }),
|
|
330
330
|
/* @__PURE__ */ h(
|
|
331
331
|
"button",
|
|
332
332
|
{
|
|
333
333
|
...p,
|
|
334
|
-
ref:
|
|
334
|
+
ref: i,
|
|
335
335
|
className: m(
|
|
336
|
-
"
|
|
337
|
-
|
|
336
|
+
"rudi-select__trigger",
|
|
337
|
+
r.errorMessage && "rudi-select__trigger--error"
|
|
338
338
|
),
|
|
339
339
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ t("span", { ...c, children: e.selectedItem ? e.selectedItem.rendered : r.placeholder || "Select an option" }),
|
|
341
|
+
/* @__PURE__ */ t(dr, { "aria-hidden": "true" })
|
|
342
342
|
]
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
|
-
e.isOpen && /* @__PURE__ */
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
e.isOpen && /* @__PURE__ */ t(lr, { state: e, triggerRef: i, popoverRef: o, children: /* @__PURE__ */ t(ur, { ...l, state: e, listBoxRef: n }) }),
|
|
346
|
+
r.description && !r.errorMessage && /* @__PURE__ */ t("p", { ...u, className: "rudi-select__description", children: r.description }),
|
|
347
|
+
r.errorMessage && /* @__PURE__ */ t("p", { ...s, className: "rudi-select__error", children: r.errorMessage })
|
|
348
348
|
] });
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return /* @__PURE__ */
|
|
350
|
+
function Fr(r) {
|
|
351
|
+
return /* @__PURE__ */ t(Me, { ...r });
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return /* @__PURE__ */
|
|
353
|
+
function jr({ className: r, ...e }) {
|
|
354
|
+
return /* @__PURE__ */ t(Ee, { className: "rudi-menu__popover", children: /* @__PURE__ */ t(
|
|
355
355
|
Oe,
|
|
356
356
|
{
|
|
357
357
|
...e,
|
|
358
|
-
className: m("
|
|
358
|
+
className: m("rudi-menu__list", r)
|
|
359
359
|
}
|
|
360
360
|
) });
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
return /* @__PURE__ */
|
|
362
|
+
function zr({ isDestructive: r, className: e, ...i }) {
|
|
363
|
+
return /* @__PURE__ */ t(
|
|
364
364
|
Ke,
|
|
365
365
|
{
|
|
366
|
-
...
|
|
366
|
+
...i,
|
|
367
367
|
className: (o) => m(
|
|
368
|
-
"
|
|
369
|
-
|
|
368
|
+
"rudi-menu__item",
|
|
369
|
+
r && "rudi-menu__item--destructive",
|
|
370
370
|
typeof e == "function" ? e(o) : e
|
|
371
371
|
),
|
|
372
|
-
"data-destructive":
|
|
372
|
+
"data-destructive": r || void 0
|
|
373
373
|
}
|
|
374
374
|
);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
title:
|
|
376
|
+
function Hr({
|
|
377
|
+
title: r,
|
|
378
378
|
className: e,
|
|
379
|
-
children:
|
|
379
|
+
children: i,
|
|
380
380
|
...o
|
|
381
381
|
}) {
|
|
382
|
-
return /* @__PURE__ */ h(Le, { ...o, className: m("
|
|
383
|
-
|
|
384
|
-
/* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ h(Le, { ...o, className: m("rudi-menu__section", e), children: [
|
|
383
|
+
r && /* @__PURE__ */ t(Ge, { className: "rudi-menu__section-header", children: r }),
|
|
384
|
+
/* @__PURE__ */ t(Ae, { items: o.items, children: i })
|
|
385
385
|
] });
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return /* @__PURE__ */
|
|
387
|
+
function Ur({ className: r, ...e }) {
|
|
388
|
+
return /* @__PURE__ */ t(
|
|
389
389
|
Fe,
|
|
390
390
|
{
|
|
391
391
|
...e,
|
|
392
|
-
className: m("
|
|
392
|
+
className: m("rudi-menu__item-shortcut", r)
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const Xr = b(function({
|
|
397
397
|
isOpen: e,
|
|
398
|
-
onClose:
|
|
398
|
+
onClose: i,
|
|
399
399
|
title: o,
|
|
400
|
-
isDismissable:
|
|
400
|
+
isDismissable: n = !0,
|
|
401
401
|
size: a = "md",
|
|
402
|
-
children:
|
|
402
|
+
children: d,
|
|
403
403
|
className: c
|
|
404
|
-
},
|
|
405
|
-
const u =
|
|
404
|
+
}, l) {
|
|
405
|
+
const u = R(null), s = y(l);
|
|
406
406
|
fe({ isDisabled: !e });
|
|
407
407
|
const p = {
|
|
408
408
|
isOpen: e,
|
|
409
|
-
close:
|
|
409
|
+
close: i,
|
|
410
410
|
open: () => {
|
|
411
411
|
},
|
|
412
412
|
toggle: () => {
|
|
@@ -414,344 +414,344 @@ const Xt = b(function({
|
|
|
414
414
|
setOpen: () => {
|
|
415
415
|
}
|
|
416
416
|
}, { modalProps: g, underlayProps: f } = he(
|
|
417
|
-
{ isDismissable:
|
|
417
|
+
{ isDismissable: n },
|
|
418
418
|
p,
|
|
419
419
|
s
|
|
420
420
|
), { dialogProps: _, titleProps: v } = pe({}, s);
|
|
421
|
-
return e ? /* @__PURE__ */
|
|
421
|
+
return e ? /* @__PURE__ */ t(ge, { children: /* @__PURE__ */ t(
|
|
422
422
|
"div",
|
|
423
423
|
{
|
|
424
424
|
...f,
|
|
425
425
|
ref: u,
|
|
426
|
-
className: "
|
|
427
|
-
children: /* @__PURE__ */
|
|
426
|
+
className: "rudi-dialog__overlay",
|
|
427
|
+
children: /* @__PURE__ */ t(be, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ h(
|
|
428
428
|
"div",
|
|
429
429
|
{
|
|
430
430
|
...g,
|
|
431
431
|
..._,
|
|
432
432
|
ref: s,
|
|
433
433
|
className: m(
|
|
434
|
-
"
|
|
435
|
-
`
|
|
434
|
+
"rudi-dialog",
|
|
435
|
+
`rudi-dialog--${a}`,
|
|
436
436
|
c
|
|
437
437
|
),
|
|
438
438
|
children: [
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ t("h2", { ...v, className: "rudi-dialog__title", children: o }),
|
|
440
|
+
/* @__PURE__ */ t("div", { className: "rudi-dialog__body", children: d })
|
|
441
441
|
]
|
|
442
442
|
}
|
|
443
443
|
) })
|
|
444
444
|
}
|
|
445
445
|
) }) : null;
|
|
446
|
-
}),
|
|
447
|
-
function(e,
|
|
448
|
-
const o =
|
|
446
|
+
}), Wr = b(
|
|
447
|
+
function(e, i) {
|
|
448
|
+
const o = y(i), n = q(e), { inputProps: a } = _e(e, n, o);
|
|
449
449
|
return /* @__PURE__ */ h(
|
|
450
450
|
"label",
|
|
451
451
|
{
|
|
452
452
|
className: m(
|
|
453
|
-
"
|
|
454
|
-
e.isDisabled && "
|
|
453
|
+
"rudi-switch",
|
|
454
|
+
e.isDisabled && "rudi-switch--disabled",
|
|
455
455
|
e.className
|
|
456
456
|
),
|
|
457
457
|
children: [
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ t(ve, { children: /* @__PURE__ */ t("input", { ...a, ref: o }) }),
|
|
459
|
+
/* @__PURE__ */ t(
|
|
460
460
|
"span",
|
|
461
461
|
{
|
|
462
462
|
className: m(
|
|
463
|
-
"
|
|
464
|
-
|
|
463
|
+
"rudi-switch__track",
|
|
464
|
+
n.isSelected && "rudi-switch__track--on"
|
|
465
465
|
),
|
|
466
466
|
"aria-hidden": "true",
|
|
467
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ t("span", { className: "rudi-switch__thumb" })
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ t("span", { className: "rudi-switch__label", children: e.children })
|
|
471
471
|
]
|
|
472
472
|
}
|
|
473
473
|
);
|
|
474
474
|
}
|
|
475
|
-
),
|
|
476
|
-
function
|
|
477
|
-
const e =
|
|
478
|
-
return /* @__PURE__ */
|
|
475
|
+
), fr = ke(null);
|
|
476
|
+
function Yr(r) {
|
|
477
|
+
const e = $e(r), { radioGroupProps: i, labelProps: o, descriptionProps: n, errorMessageProps: a } = Ne(r, e);
|
|
478
|
+
return /* @__PURE__ */ t(fr.Provider, { value: e, children: /* @__PURE__ */ h(
|
|
479
479
|
"div",
|
|
480
480
|
{
|
|
481
|
-
...
|
|
482
|
-
className: m("
|
|
481
|
+
...i,
|
|
482
|
+
className: m("rudi-radio-group", r.className),
|
|
483
483
|
children: [
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ t("span", { ...o, className: "rudi-radio-group__label", children: r.label }),
|
|
485
|
+
/* @__PURE__ */ t(
|
|
486
486
|
"div",
|
|
487
487
|
{
|
|
488
488
|
className: m(
|
|
489
|
-
"
|
|
490
|
-
|
|
489
|
+
"rudi-radio-group__options",
|
|
490
|
+
r.orientation === "horizontal" && "rudi-radio-group__options--horizontal"
|
|
491
491
|
),
|
|
492
|
-
children:
|
|
492
|
+
children: r.children
|
|
493
493
|
}
|
|
494
494
|
),
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
r.description && !r.errorMessage && /* @__PURE__ */ t("p", { ...n, className: "rudi-radio-group__description", children: r.description }),
|
|
496
|
+
r.errorMessage && /* @__PURE__ */ t("p", { ...a, className: "rudi-radio-group__error", children: r.errorMessage })
|
|
497
497
|
]
|
|
498
498
|
}
|
|
499
499
|
) });
|
|
500
500
|
}
|
|
501
|
-
const
|
|
502
|
-
function({ delay: e = 500, closeDelay:
|
|
503
|
-
const a =
|
|
504
|
-
return /* @__PURE__ */ h("span", { ref:
|
|
501
|
+
const Zr = b(
|
|
502
|
+
function({ delay: e = 500, closeDelay: i = 0, children: o }, n) {
|
|
503
|
+
const a = De({ delay: e, closeDelay: i }), d = R(null), { triggerProps: c, tooltipProps: l } = Re({ delay: e, closeDelay: i }, a, d), [u, s] = o, { "aria-describedby": p, tabIndex: g, ...f } = c;
|
|
504
|
+
return /* @__PURE__ */ h("span", { ref: n, className: "rudi-tooltip-trigger", ...f, children: [
|
|
505
505
|
w.cloneElement(u, {
|
|
506
|
-
ref:
|
|
506
|
+
ref: d,
|
|
507
507
|
"aria-describedby": p
|
|
508
508
|
}),
|
|
509
|
-
a.isOpen && w.cloneElement(s,
|
|
509
|
+
a.isOpen && w.cloneElement(s, l)
|
|
510
510
|
] });
|
|
511
511
|
}
|
|
512
|
-
),
|
|
513
|
-
function({ children: e, className:
|
|
512
|
+
), qr = b(
|
|
513
|
+
function({ children: e, className: i, ...o }, n) {
|
|
514
514
|
const { tooltipProps: a } = Ce(o);
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ t(
|
|
516
516
|
"span",
|
|
517
517
|
{
|
|
518
518
|
...a,
|
|
519
|
-
ref:
|
|
520
|
-
className: m("
|
|
519
|
+
ref: n,
|
|
520
|
+
className: m("rudi-tooltip", i),
|
|
521
521
|
role: "tooltip",
|
|
522
522
|
children: e
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
function
|
|
528
|
-
variant:
|
|
527
|
+
function Jr({
|
|
528
|
+
variant: r,
|
|
529
529
|
title: e,
|
|
530
|
-
icon:
|
|
530
|
+
icon: i,
|
|
531
531
|
isPolite: o = !1,
|
|
532
|
-
dismissible:
|
|
532
|
+
dismissible: n = !1,
|
|
533
533
|
onDismiss: a,
|
|
534
|
-
children:
|
|
534
|
+
children: d,
|
|
535
535
|
className: c
|
|
536
536
|
}) {
|
|
537
|
-
const [
|
|
538
|
-
return
|
|
537
|
+
const [l, u] = $(!1);
|
|
538
|
+
return l ? null : /* @__PURE__ */ h(
|
|
539
539
|
"div",
|
|
540
540
|
{
|
|
541
541
|
role: o ? "status" : "alert",
|
|
542
542
|
className: m(
|
|
543
|
-
"
|
|
544
|
-
`
|
|
545
|
-
|
|
546
|
-
|
|
543
|
+
"rudi-alert",
|
|
544
|
+
`rudi-alert--${r}`,
|
|
545
|
+
i && "rudi-alert--has-icon",
|
|
546
|
+
n && "rudi-alert--dismissible",
|
|
547
547
|
c
|
|
548
548
|
),
|
|
549
549
|
children: [
|
|
550
|
-
|
|
551
|
-
/* @__PURE__ */ h("div", { className: "
|
|
552
|
-
e && /* @__PURE__ */
|
|
553
|
-
/* @__PURE__ */
|
|
550
|
+
i && /* @__PURE__ */ t(k, { icon: i, size: "md", className: "rudi-alert__icon", "aria-hidden": "true" }),
|
|
551
|
+
/* @__PURE__ */ h("div", { className: "rudi-alert__body", children: [
|
|
552
|
+
e && /* @__PURE__ */ t("p", { className: "rudi-alert__title", children: e }),
|
|
553
|
+
/* @__PURE__ */ t("div", { className: "rudi-alert__content", children: d })
|
|
554
554
|
] }),
|
|
555
|
-
|
|
555
|
+
n && /* @__PURE__ */ t(
|
|
556
556
|
"button",
|
|
557
557
|
{
|
|
558
558
|
type: "button",
|
|
559
|
-
className: "
|
|
559
|
+
className: "rudi-alert__dismiss",
|
|
560
560
|
"aria-label": "Dismiss alert",
|
|
561
561
|
onClick: () => {
|
|
562
562
|
u(!0), a?.();
|
|
563
563
|
},
|
|
564
|
-
children: /* @__PURE__ */
|
|
564
|
+
children: /* @__PURE__ */ t(k, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
|
|
565
565
|
}
|
|
566
566
|
)
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
const
|
|
571
|
+
const Qr = w.forwardRef(
|
|
572
572
|
function({
|
|
573
573
|
variant: e = "secondary",
|
|
574
|
-
size:
|
|
574
|
+
size: i = "md",
|
|
575
575
|
isLoading: o = !1,
|
|
576
|
-
className:
|
|
576
|
+
className: n,
|
|
577
577
|
children: a,
|
|
578
|
-
...
|
|
578
|
+
...d
|
|
579
579
|
}, c) {
|
|
580
|
-
const
|
|
581
|
-
return /* @__PURE__ */
|
|
580
|
+
const l = y(c), { buttonProps: u } = Q(d, o, l);
|
|
581
|
+
return /* @__PURE__ */ t(
|
|
582
582
|
"button",
|
|
583
583
|
{
|
|
584
584
|
...u,
|
|
585
|
-
ref:
|
|
585
|
+
ref: l,
|
|
586
586
|
className: m(
|
|
587
|
-
"
|
|
588
|
-
`
|
|
589
|
-
`
|
|
590
|
-
|
|
587
|
+
"rudi-icon-button",
|
|
588
|
+
`rudi-icon-button--${e}`,
|
|
589
|
+
`rudi-icon-button--${i}`,
|
|
590
|
+
n
|
|
591
591
|
),
|
|
592
592
|
children: a
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
596
|
);
|
|
597
|
-
function
|
|
598
|
-
variant:
|
|
597
|
+
function hr({
|
|
598
|
+
variant: r = "default",
|
|
599
599
|
size: e = "md",
|
|
600
|
-
dot:
|
|
600
|
+
dot: i = !1,
|
|
601
601
|
children: o,
|
|
602
|
-
className:
|
|
602
|
+
className: n
|
|
603
603
|
}) {
|
|
604
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ t(
|
|
605
605
|
"span",
|
|
606
606
|
{
|
|
607
607
|
className: m(
|
|
608
|
-
"
|
|
609
|
-
`
|
|
610
|
-
`
|
|
611
|
-
|
|
612
|
-
|
|
608
|
+
"rudi-badge",
|
|
609
|
+
`rudi-badge--${r}`,
|
|
610
|
+
`rudi-badge--${e}`,
|
|
611
|
+
i && "rudi-badge--dot",
|
|
612
|
+
n
|
|
613
613
|
),
|
|
614
|
-
children: !
|
|
614
|
+
children: !i && o
|
|
615
615
|
}
|
|
616
616
|
);
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
variant:
|
|
618
|
+
function Vr({
|
|
619
|
+
variant: r = "default",
|
|
620
620
|
dismissible: e = !1,
|
|
621
|
-
onDismiss:
|
|
621
|
+
onDismiss: i,
|
|
622
622
|
onPress: o,
|
|
623
|
-
isDisabled:
|
|
623
|
+
isDisabled: n = !1,
|
|
624
624
|
children: a,
|
|
625
|
-
className:
|
|
625
|
+
className: d
|
|
626
626
|
}) {
|
|
627
|
-
const [c,
|
|
627
|
+
const [c, l] = $(!1), u = R(null), { buttonProps: s } = O(
|
|
628
628
|
{
|
|
629
629
|
onPress: o,
|
|
630
|
-
isDisabled:
|
|
630
|
+
isDisabled: n,
|
|
631
631
|
elementType: o ? "button" : "span"
|
|
632
632
|
},
|
|
633
633
|
u
|
|
634
634
|
), p = typeof a == "string" ? `Remove ${a}` : "Remove", g = m(
|
|
635
|
-
"
|
|
636
|
-
`
|
|
637
|
-
o && "
|
|
638
|
-
e && "
|
|
639
|
-
|
|
635
|
+
"rudi-tag",
|
|
636
|
+
`rudi-tag--${r}`,
|
|
637
|
+
o && "rudi-tag--interactive",
|
|
638
|
+
e && "rudi-tag--dismissible",
|
|
639
|
+
d
|
|
640
640
|
);
|
|
641
641
|
return c ? null : o ? /* @__PURE__ */ h("button", { ref: u, ...s, className: g, children: [
|
|
642
642
|
a,
|
|
643
|
-
e && /* @__PURE__ */
|
|
643
|
+
e && /* @__PURE__ */ t(
|
|
644
644
|
"span",
|
|
645
645
|
{
|
|
646
646
|
role: "button",
|
|
647
647
|
tabIndex: 0,
|
|
648
|
-
className: "
|
|
648
|
+
className: "rudi-tag__close",
|
|
649
649
|
"aria-label": p,
|
|
650
650
|
onClick: (f) => {
|
|
651
|
-
f.stopPropagation(),
|
|
651
|
+
f.stopPropagation(), l(!0), i?.();
|
|
652
652
|
},
|
|
653
653
|
onKeyDown: (f) => {
|
|
654
|
-
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(),
|
|
654
|
+
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), l(!0), i?.());
|
|
655
655
|
},
|
|
656
|
-
children: /* @__PURE__ */
|
|
656
|
+
children: /* @__PURE__ */ t(k, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
|
|
657
657
|
}
|
|
658
658
|
)
|
|
659
659
|
] }) : /* @__PURE__ */ h(
|
|
660
660
|
"span",
|
|
661
661
|
{
|
|
662
662
|
className: g,
|
|
663
|
-
...
|
|
663
|
+
...n ? { "aria-disabled": "true" } : {},
|
|
664
664
|
children: [
|
|
665
665
|
a,
|
|
666
|
-
e && /* @__PURE__ */
|
|
666
|
+
e && /* @__PURE__ */ t(
|
|
667
667
|
"button",
|
|
668
668
|
{
|
|
669
669
|
type: "button",
|
|
670
|
-
className: "
|
|
670
|
+
className: "rudi-tag__close",
|
|
671
671
|
"aria-label": p,
|
|
672
672
|
onClick: () => {
|
|
673
|
-
|
|
673
|
+
l(!0), i?.();
|
|
674
674
|
},
|
|
675
|
-
children: /* @__PURE__ */
|
|
675
|
+
children: /* @__PURE__ */ t(k, { icon: "mdi:close", size: "sm", "aria-hidden": "true" })
|
|
676
676
|
}
|
|
677
677
|
)
|
|
678
678
|
]
|
|
679
679
|
}
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
|
-
const
|
|
683
|
-
function({ variant: e = "default", padding:
|
|
684
|
-
return /* @__PURE__ */
|
|
682
|
+
const pr = b(
|
|
683
|
+
function({ variant: e = "default", padding: i = "md", children: o, className: n }, a) {
|
|
684
|
+
return /* @__PURE__ */ t(
|
|
685
685
|
"div",
|
|
686
686
|
{
|
|
687
687
|
ref: a,
|
|
688
688
|
className: m(
|
|
689
|
-
"
|
|
690
|
-
`
|
|
691
|
-
`
|
|
692
|
-
|
|
689
|
+
"rudi-card",
|
|
690
|
+
`rudi-card--${e}`,
|
|
691
|
+
`rudi-card--padding-${i}`,
|
|
692
|
+
n
|
|
693
693
|
),
|
|
694
694
|
children: o
|
|
695
695
|
}
|
|
696
696
|
);
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
|
-
function
|
|
700
|
-
return /* @__PURE__ */
|
|
699
|
+
function gr({ children: r, className: e }) {
|
|
700
|
+
return /* @__PURE__ */ t("div", { className: m("rudi-card__header", e), children: r });
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return /* @__PURE__ */
|
|
702
|
+
function br({ children: r, className: e }) {
|
|
703
|
+
return /* @__PURE__ */ t("div", { className: m("rudi-card__body", e), children: r });
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return /* @__PURE__ */
|
|
705
|
+
function _r({ children: r, className: e }) {
|
|
706
|
+
return /* @__PURE__ */ t("div", { className: m("rudi-card__footer", e), children: r });
|
|
707
707
|
}
|
|
708
|
-
const Y = Object.assign(
|
|
709
|
-
Header:
|
|
710
|
-
Body:
|
|
711
|
-
Footer:
|
|
708
|
+
const Y = Object.assign(pr, {
|
|
709
|
+
Header: gr,
|
|
710
|
+
Body: br,
|
|
711
|
+
Footer: _r
|
|
712
712
|
});
|
|
713
|
-
function
|
|
714
|
-
value:
|
|
713
|
+
function et({
|
|
714
|
+
value: r,
|
|
715
715
|
minValue: e = 0,
|
|
716
|
-
maxValue:
|
|
716
|
+
maxValue: i = 100,
|
|
717
717
|
label: o,
|
|
718
|
-
showValueLabel:
|
|
718
|
+
showValueLabel: n = !1,
|
|
719
719
|
variant: a = "default",
|
|
720
|
-
size:
|
|
720
|
+
size: d = "md",
|
|
721
721
|
className: c
|
|
722
722
|
}) {
|
|
723
|
-
const { progressBarProps:
|
|
723
|
+
const { progressBarProps: l, labelProps: u } = Z({
|
|
724
724
|
label: o,
|
|
725
|
-
value:
|
|
725
|
+
value: r,
|
|
726
726
|
minValue: e,
|
|
727
|
-
maxValue:
|
|
728
|
-
}), s = (
|
|
727
|
+
maxValue: i
|
|
728
|
+
}), s = (r - e) / (i - e) * 100;
|
|
729
729
|
return /* @__PURE__ */ h(
|
|
730
730
|
"div",
|
|
731
731
|
{
|
|
732
|
-
...
|
|
733
|
-
className: m("
|
|
732
|
+
...l,
|
|
733
|
+
className: m("rudi-progress", c),
|
|
734
734
|
children: [
|
|
735
|
-
/* @__PURE__ */ h("div", { className: "
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
|
|
735
|
+
/* @__PURE__ */ h("div", { className: "rudi-progress__label-row", children: [
|
|
736
|
+
/* @__PURE__ */ t("span", { ...u, className: "rudi-progress__label", children: o }),
|
|
737
|
+
n && /* @__PURE__ */ h("span", { className: "rudi-progress__value", children: [
|
|
738
738
|
Math.round(s),
|
|
739
739
|
"%"
|
|
740
740
|
] })
|
|
741
741
|
] }),
|
|
742
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ t(
|
|
743
743
|
"div",
|
|
744
744
|
{
|
|
745
745
|
className: m(
|
|
746
|
-
"
|
|
747
|
-
`
|
|
746
|
+
"rudi-progress__track",
|
|
747
|
+
`rudi-progress__track--${d}`
|
|
748
748
|
),
|
|
749
|
-
children: /* @__PURE__ */
|
|
749
|
+
children: /* @__PURE__ */ t(
|
|
750
750
|
"div",
|
|
751
751
|
{
|
|
752
752
|
className: m(
|
|
753
|
-
"
|
|
754
|
-
`
|
|
753
|
+
"rudi-progress__bar",
|
|
754
|
+
`rudi-progress__bar--${a}`
|
|
755
755
|
),
|
|
756
756
|
style: { width: `${s}%` }
|
|
757
757
|
}
|
|
@@ -762,199 +762,199 @@ function er({
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
const e =
|
|
765
|
+
function vr(r) {
|
|
766
|
+
const e = r.trim().split(/\s+/);
|
|
767
767
|
return e.length >= 2 ? (e[0][0] + e[e.length - 1][0]).toUpperCase() : (e[0]?.[0] ?? "").toUpperCase();
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
src:
|
|
769
|
+
function rt({
|
|
770
|
+
src: r,
|
|
771
771
|
alt: e,
|
|
772
|
-
name:
|
|
772
|
+
name: i,
|
|
773
773
|
size: o = "md",
|
|
774
|
-
status:
|
|
774
|
+
status: n,
|
|
775
775
|
className: a
|
|
776
776
|
}) {
|
|
777
|
-
const [
|
|
777
|
+
const [d, c] = $(!1), l = r && !d, u = i ? vr(i) : "", s = e || i;
|
|
778
778
|
return /* @__PURE__ */ h(
|
|
779
779
|
"span",
|
|
780
780
|
{
|
|
781
781
|
className: m(
|
|
782
|
-
"
|
|
783
|
-
`
|
|
782
|
+
"rudi-avatar",
|
|
783
|
+
`rudi-avatar--${o}`,
|
|
784
784
|
a
|
|
785
785
|
),
|
|
786
786
|
role: "img",
|
|
787
787
|
"aria-label": s,
|
|
788
788
|
children: [
|
|
789
|
-
|
|
789
|
+
l ? /* @__PURE__ */ t(
|
|
790
790
|
"img",
|
|
791
791
|
{
|
|
792
|
-
src:
|
|
792
|
+
src: r,
|
|
793
793
|
alt: e || "",
|
|
794
|
-
className: "
|
|
794
|
+
className: "rudi-avatar__image",
|
|
795
795
|
onError: () => c(!0)
|
|
796
796
|
}
|
|
797
|
-
) : /* @__PURE__ */
|
|
798
|
-
|
|
799
|
-
|
|
797
|
+
) : /* @__PURE__ */ t("span", { className: "rudi-avatar__initials", "aria-hidden": "true", children: u }),
|
|
798
|
+
n && /* @__PURE__ */ t(
|
|
799
|
+
hr,
|
|
800
800
|
{
|
|
801
|
-
variant:
|
|
801
|
+
variant: n,
|
|
802
802
|
dot: !0,
|
|
803
|
-
className: "
|
|
803
|
+
className: "rudi-avatar__status"
|
|
804
804
|
}
|
|
805
805
|
)
|
|
806
806
|
]
|
|
807
807
|
}
|
|
808
808
|
);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
label:
|
|
810
|
+
function tt({
|
|
811
|
+
label: r,
|
|
812
812
|
value: e,
|
|
813
|
-
delta:
|
|
813
|
+
delta: i,
|
|
814
814
|
trend: o = "neutral",
|
|
815
|
-
children:
|
|
815
|
+
children: n,
|
|
816
816
|
className: a
|
|
817
817
|
}) {
|
|
818
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ t(
|
|
819
819
|
Y,
|
|
820
820
|
{
|
|
821
821
|
variant: "outlined",
|
|
822
822
|
padding: "md",
|
|
823
|
-
className: m("
|
|
823
|
+
className: m("rudi-stat-card", a),
|
|
824
824
|
children: /* @__PURE__ */ h(Y.Body, { children: [
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
|
|
825
|
+
/* @__PURE__ */ t("span", { className: "rudi-stat-card__label", children: r }),
|
|
826
|
+
/* @__PURE__ */ t("span", { className: "rudi-stat-card__value", children: e }),
|
|
827
|
+
i && /* @__PURE__ */ t(
|
|
828
828
|
"span",
|
|
829
829
|
{
|
|
830
830
|
className: m(
|
|
831
|
-
"
|
|
832
|
-
`
|
|
831
|
+
"rudi-stat-card__delta",
|
|
832
|
+
`rudi-stat-card__delta--${o}`
|
|
833
833
|
),
|
|
834
|
-
children:
|
|
834
|
+
children: i
|
|
835
835
|
}
|
|
836
836
|
),
|
|
837
|
-
|
|
837
|
+
n && /* @__PURE__ */ t("div", { className: "rudi-stat-card__extra", children: n })
|
|
838
838
|
] })
|
|
839
839
|
}
|
|
840
840
|
);
|
|
841
841
|
}
|
|
842
|
-
function V(
|
|
842
|
+
function V(r, e) {
|
|
843
843
|
return m(
|
|
844
|
-
"
|
|
845
|
-
|
|
844
|
+
"rudi-nav-item",
|
|
845
|
+
r && "rudi-nav-item--active",
|
|
846
846
|
e
|
|
847
847
|
);
|
|
848
848
|
}
|
|
849
|
-
function ee(
|
|
849
|
+
function ee(r, e, i) {
|
|
850
850
|
return /* @__PURE__ */ h(T, { children: [
|
|
851
|
-
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
|
|
851
|
+
r && /* @__PURE__ */ t(k, { icon: r, className: "rudi-nav-item__icon" }),
|
|
852
|
+
/* @__PURE__ */ t("span", { className: "rudi-nav-item__label", children: e }),
|
|
853
|
+
i && /* @__PURE__ */ t("span", { className: "rudi-nav-item__badge", children: i })
|
|
854
854
|
] });
|
|
855
855
|
}
|
|
856
|
-
const
|
|
857
|
-
function({ label: e, icon:
|
|
858
|
-
const s =
|
|
859
|
-
{ href:
|
|
856
|
+
const Nr = b(
|
|
857
|
+
function({ label: e, icon: i, isActive: o = !1, href: n, onPress: a, badge: d, isDisabled: c = !1, className: l }, u) {
|
|
858
|
+
const s = y(u), { linkProps: p } = ye(
|
|
859
|
+
{ href: n, isDisabled: c, onPress: a },
|
|
860
860
|
s
|
|
861
861
|
);
|
|
862
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ t(
|
|
863
863
|
"a",
|
|
864
864
|
{
|
|
865
865
|
...p,
|
|
866
866
|
ref: s,
|
|
867
|
-
href:
|
|
868
|
-
className: V(o,
|
|
869
|
-
children: ee(
|
|
867
|
+
href: n,
|
|
868
|
+
className: V(o, l),
|
|
869
|
+
children: ee(i, e, d)
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
872
|
}
|
|
873
|
-
),
|
|
874
|
-
function({ label: e, icon:
|
|
875
|
-
const u =
|
|
876
|
-
{ onPress:
|
|
873
|
+
), Cr = b(
|
|
874
|
+
function({ label: e, icon: i, isActive: o = !1, onPress: n, badge: a, isDisabled: d = !1, className: c }, l) {
|
|
875
|
+
const u = y(l), { buttonProps: s } = O(
|
|
876
|
+
{ onPress: n, isDisabled: d },
|
|
877
877
|
u
|
|
878
878
|
);
|
|
879
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ t(
|
|
880
880
|
"button",
|
|
881
881
|
{
|
|
882
882
|
...s,
|
|
883
883
|
ref: u,
|
|
884
884
|
className: V(o, c),
|
|
885
|
-
children: ee(
|
|
885
|
+
children: ee(i, e, a)
|
|
886
886
|
}
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
|
-
),
|
|
890
|
-
function(e,
|
|
891
|
-
return e.href ? /* @__PURE__ */
|
|
892
|
-
|
|
889
|
+
), it = b(
|
|
890
|
+
function(e, i) {
|
|
891
|
+
return e.href ? /* @__PURE__ */ t(
|
|
892
|
+
Nr,
|
|
893
893
|
{
|
|
894
894
|
...e,
|
|
895
|
-
ref:
|
|
895
|
+
ref: i
|
|
896
896
|
}
|
|
897
|
-
) : /* @__PURE__ */
|
|
898
|
-
|
|
897
|
+
) : /* @__PURE__ */ t(
|
|
898
|
+
Cr,
|
|
899
899
|
{
|
|
900
900
|
...e,
|
|
901
|
-
ref:
|
|
901
|
+
ref: i
|
|
902
902
|
}
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
|
-
), E = 100,
|
|
906
|
-
function
|
|
907
|
-
value:
|
|
905
|
+
), E = 100, D = E / 2;
|
|
906
|
+
function ot({
|
|
907
|
+
value: r,
|
|
908
908
|
minValue: e = 0,
|
|
909
|
-
maxValue:
|
|
909
|
+
maxValue: i = 100,
|
|
910
910
|
label: o,
|
|
911
|
-
showValueLabel:
|
|
911
|
+
showValueLabel: n = !1,
|
|
912
912
|
variant: a = "default",
|
|
913
|
-
size:
|
|
913
|
+
size: d = "md",
|
|
914
914
|
children: c,
|
|
915
|
-
className:
|
|
915
|
+
className: l
|
|
916
916
|
}) {
|
|
917
917
|
const { progressBarProps: u, labelProps: s } = Z({
|
|
918
918
|
label: o,
|
|
919
|
-
value:
|
|
919
|
+
value: r,
|
|
920
920
|
minValue: e,
|
|
921
|
-
maxValue:
|
|
922
|
-
}), p = (
|
|
921
|
+
maxValue: i
|
|
922
|
+
}), p = (r - e) / (i - e) * 100, g = 8, f = (E - g) / 2, _ = 2 * Math.PI * f, v = _ * (1 - p / 100);
|
|
923
923
|
return /* @__PURE__ */ h(
|
|
924
924
|
"div",
|
|
925
925
|
{
|
|
926
926
|
...u,
|
|
927
927
|
className: m(
|
|
928
|
-
"
|
|
929
|
-
`
|
|
930
|
-
|
|
928
|
+
"rudi-circular-progress",
|
|
929
|
+
`rudi-circular-progress--${d}`,
|
|
930
|
+
l
|
|
931
931
|
),
|
|
932
932
|
children: [
|
|
933
933
|
/* @__PURE__ */ h(
|
|
934
934
|
"svg",
|
|
935
935
|
{
|
|
936
936
|
viewBox: `0 0 ${E} ${E}`,
|
|
937
|
-
className: "
|
|
937
|
+
className: "rudi-circular-progress__svg",
|
|
938
938
|
children: [
|
|
939
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ t(
|
|
940
940
|
"circle",
|
|
941
941
|
{
|
|
942
|
-
cx:
|
|
943
|
-
cy:
|
|
942
|
+
cx: D,
|
|
943
|
+
cy: D,
|
|
944
944
|
r: f,
|
|
945
|
-
className: "
|
|
945
|
+
className: "rudi-circular-progress__track",
|
|
946
946
|
strokeWidth: g
|
|
947
947
|
}
|
|
948
948
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ t(
|
|
950
950
|
"circle",
|
|
951
951
|
{
|
|
952
|
-
cx:
|
|
953
|
-
cy:
|
|
952
|
+
cx: D,
|
|
953
|
+
cy: D,
|
|
954
954
|
r: f,
|
|
955
955
|
className: m(
|
|
956
|
-
"
|
|
957
|
-
`
|
|
956
|
+
"rudi-circular-progress__fill",
|
|
957
|
+
`rudi-circular-progress__fill--${a}`
|
|
958
958
|
),
|
|
959
959
|
strokeWidth: g,
|
|
960
960
|
strokeDasharray: _,
|
|
@@ -965,41 +965,41 @@ function or({
|
|
|
965
965
|
]
|
|
966
966
|
}
|
|
967
967
|
),
|
|
968
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ t("div", { className: "rudi-circular-progress__center", children: c ?? (n && /* @__PURE__ */ h("span", { className: "rudi-circular-progress__value", children: [
|
|
969
969
|
Math.round(p),
|
|
970
970
|
"%"
|
|
971
971
|
] })) }),
|
|
972
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ t("span", { ...s, className: "rudi-circular-progress__label", children: o })
|
|
973
973
|
]
|
|
974
974
|
}
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
data:
|
|
977
|
+
function nt({
|
|
978
|
+
data: r,
|
|
979
979
|
dataKeys: e,
|
|
980
|
-
indexKey:
|
|
980
|
+
indexKey: i,
|
|
981
981
|
layout: o = "vertical",
|
|
982
|
-
stacked:
|
|
982
|
+
stacked: n = !1,
|
|
983
983
|
showLegend: a = !0,
|
|
984
|
-
showGrid:
|
|
984
|
+
showGrid: d = !0,
|
|
985
985
|
height: c = 300,
|
|
986
|
-
label:
|
|
986
|
+
label: l,
|
|
987
987
|
className: u
|
|
988
988
|
}) {
|
|
989
989
|
const s = j(), p = o === "horizontal";
|
|
990
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ t(
|
|
991
991
|
"div",
|
|
992
992
|
{
|
|
993
|
-
className: m("
|
|
993
|
+
className: m("rudi-chart", u),
|
|
994
994
|
role: "img",
|
|
995
|
-
"aria-label":
|
|
996
|
-
children: /* @__PURE__ */
|
|
995
|
+
"aria-label": l,
|
|
996
|
+
children: /* @__PURE__ */ t(G, { width: "100%", height: c, children: /* @__PURE__ */ h(
|
|
997
997
|
je,
|
|
998
998
|
{
|
|
999
|
-
data:
|
|
999
|
+
data: r,
|
|
1000
1000
|
layout: p ? "vertical" : "horizontal",
|
|
1001
1001
|
children: [
|
|
1002
|
-
|
|
1002
|
+
d && /* @__PURE__ */ t(
|
|
1003
1003
|
J,
|
|
1004
1004
|
{
|
|
1005
1005
|
strokeDasharray: "3 3",
|
|
@@ -1009,20 +1009,20 @@ function ir({
|
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
1011
|
p ? /* @__PURE__ */ h(T, { children: [
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ t(K, { type: "number", tick: { fill: s.axisColor } }),
|
|
1013
|
+
/* @__PURE__ */ t(
|
|
1014
1014
|
L,
|
|
1015
1015
|
{
|
|
1016
|
-
dataKey:
|
|
1016
|
+
dataKey: i,
|
|
1017
1017
|
type: "category",
|
|
1018
1018
|
tick: { fill: s.axisColor }
|
|
1019
1019
|
}
|
|
1020
1020
|
)
|
|
1021
1021
|
] }) : /* @__PURE__ */ h(T, { children: [
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ t(K, { dataKey: i, tick: { fill: s.axisColor } }),
|
|
1023
|
+
/* @__PURE__ */ t(L, { tick: { fill: s.axisColor } })
|
|
1024
1024
|
] }),
|
|
1025
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ t(
|
|
1026
1026
|
A,
|
|
1027
1027
|
{
|
|
1028
1028
|
contentStyle: {
|
|
@@ -1033,18 +1033,18 @@ function ir({
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
),
|
|
1036
|
-
a && /* @__PURE__ */
|
|
1036
|
+
a && /* @__PURE__ */ t(
|
|
1037
1037
|
F,
|
|
1038
1038
|
{
|
|
1039
1039
|
wrapperStyle: { color: s.legendColor }
|
|
1040
1040
|
}
|
|
1041
1041
|
),
|
|
1042
|
-
e.map((g, f) => /* @__PURE__ */
|
|
1042
|
+
e.map((g, f) => /* @__PURE__ */ t(
|
|
1043
1043
|
ze,
|
|
1044
1044
|
{
|
|
1045
1045
|
dataKey: g,
|
|
1046
1046
|
fill: s.colors[f % s.colors.length],
|
|
1047
|
-
stackId:
|
|
1047
|
+
stackId: n ? "stack" : void 0,
|
|
1048
1048
|
radius: [2, 2, 0, 0]
|
|
1049
1049
|
},
|
|
1050
1050
|
g
|
|
@@ -1055,36 +1055,36 @@ function ir({
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
data:
|
|
1058
|
+
function at({
|
|
1059
|
+
data: r,
|
|
1060
1060
|
dataKeys: e,
|
|
1061
|
-
indexKey:
|
|
1061
|
+
indexKey: i,
|
|
1062
1062
|
curved: o = !0,
|
|
1063
|
-
showDots:
|
|
1063
|
+
showDots: n = !0,
|
|
1064
1064
|
showGrid: a = !0,
|
|
1065
|
-
showLegend:
|
|
1065
|
+
showLegend: d = !0,
|
|
1066
1066
|
height: c = 300,
|
|
1067
|
-
label:
|
|
1067
|
+
label: l,
|
|
1068
1068
|
className: u
|
|
1069
1069
|
}) {
|
|
1070
1070
|
const s = j();
|
|
1071
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ t(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
|
-
className: m("
|
|
1074
|
+
className: m("rudi-chart", u),
|
|
1075
1075
|
role: "img",
|
|
1076
|
-
"aria-label":
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1078
|
-
a && /* @__PURE__ */
|
|
1076
|
+
"aria-label": l,
|
|
1077
|
+
children: /* @__PURE__ */ t(G, { width: "100%", height: c, children: /* @__PURE__ */ h(He, { data: r, children: [
|
|
1078
|
+
a && /* @__PURE__ */ t(
|
|
1079
1079
|
J,
|
|
1080
1080
|
{
|
|
1081
1081
|
strokeDasharray: "3 3",
|
|
1082
1082
|
stroke: s.gridColor
|
|
1083
1083
|
}
|
|
1084
1084
|
),
|
|
1085
|
-
/* @__PURE__ */
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ t(K, { dataKey: i, tick: { fill: s.axisColor } }),
|
|
1086
|
+
/* @__PURE__ */ t(L, { tick: { fill: s.axisColor } }),
|
|
1087
|
+
/* @__PURE__ */ t(
|
|
1088
1088
|
A,
|
|
1089
1089
|
{
|
|
1090
1090
|
contentStyle: {
|
|
@@ -1095,19 +1095,19 @@ function ar({
|
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
|
|
1098
|
+
d && /* @__PURE__ */ t(
|
|
1099
1099
|
F,
|
|
1100
1100
|
{
|
|
1101
1101
|
wrapperStyle: { color: s.legendColor }
|
|
1102
1102
|
}
|
|
1103
1103
|
),
|
|
1104
|
-
e.map((p, g) => /* @__PURE__ */
|
|
1104
|
+
e.map((p, g) => /* @__PURE__ */ t(
|
|
1105
1105
|
Ue,
|
|
1106
1106
|
{
|
|
1107
1107
|
type: o ? "monotone" : "linear",
|
|
1108
1108
|
dataKey: p,
|
|
1109
1109
|
stroke: s.colors[g % s.colors.length],
|
|
1110
|
-
dot:
|
|
1110
|
+
dot: n,
|
|
1111
1111
|
strokeWidth: 2,
|
|
1112
1112
|
activeDot: { r: 5 }
|
|
1113
1113
|
},
|
|
@@ -1117,27 +1117,27 @@ function ar({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
);
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1121
|
-
data:
|
|
1120
|
+
function st({
|
|
1121
|
+
data: r,
|
|
1122
1122
|
innerRadius: e = 60,
|
|
1123
|
-
showLabels:
|
|
1123
|
+
showLabels: i = !1,
|
|
1124
1124
|
showLegend: o = !0,
|
|
1125
|
-
height:
|
|
1125
|
+
height: n = 300,
|
|
1126
1126
|
label: a,
|
|
1127
|
-
className:
|
|
1127
|
+
className: d
|
|
1128
1128
|
}) {
|
|
1129
1129
|
const c = j();
|
|
1130
|
-
return /* @__PURE__ */
|
|
1130
|
+
return /* @__PURE__ */ t(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
|
-
className: m("
|
|
1133
|
+
className: m("rudi-chart", d),
|
|
1134
1134
|
role: "img",
|
|
1135
1135
|
"aria-label": a,
|
|
1136
|
-
children: /* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1136
|
+
children: /* @__PURE__ */ t(G, { width: "100%", height: n, children: /* @__PURE__ */ h(Xe, { children: [
|
|
1137
|
+
/* @__PURE__ */ t(
|
|
1138
1138
|
We,
|
|
1139
1139
|
{
|
|
1140
|
-
data:
|
|
1140
|
+
data: r,
|
|
1141
1141
|
dataKey: "value",
|
|
1142
1142
|
nameKey: "name",
|
|
1143
1143
|
cx: "50%",
|
|
@@ -1145,8 +1145,8 @@ function sr({
|
|
|
1145
1145
|
innerRadius: e,
|
|
1146
1146
|
outerRadius: e + 30,
|
|
1147
1147
|
paddingAngle: 2,
|
|
1148
|
-
label:
|
|
1149
|
-
children:
|
|
1148
|
+
label: i ? ({ name: l }) => l : !1,
|
|
1149
|
+
children: r.map((l, u) => /* @__PURE__ */ t(
|
|
1150
1150
|
Ye,
|
|
1151
1151
|
{
|
|
1152
1152
|
fill: c.colors[u % c.colors.length]
|
|
@@ -1155,7 +1155,7 @@ function sr({
|
|
|
1155
1155
|
))
|
|
1156
1156
|
}
|
|
1157
1157
|
),
|
|
1158
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ t(
|
|
1159
1159
|
A,
|
|
1160
1160
|
{
|
|
1161
1161
|
contentStyle: {
|
|
@@ -1166,7 +1166,7 @@ function sr({
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
|
-
o && /* @__PURE__ */
|
|
1169
|
+
o && /* @__PURE__ */ t(
|
|
1170
1170
|
F,
|
|
1171
1171
|
{
|
|
1172
1172
|
wrapperStyle: { color: c.legendColor }
|
|
@@ -1176,146 +1176,146 @@ function sr({
|
|
|
1176
1176
|
}
|
|
1177
1177
|
);
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1180
|
-
id:
|
|
1179
|
+
function re({
|
|
1180
|
+
id: r,
|
|
1181
1181
|
title: e,
|
|
1182
|
-
items:
|
|
1182
|
+
items: i,
|
|
1183
1183
|
renderCard: o,
|
|
1184
|
-
className:
|
|
1184
|
+
className: n
|
|
1185
1185
|
}) {
|
|
1186
|
-
const { setNodeRef: a, isOver:
|
|
1186
|
+
const { setNodeRef: a, isOver: d } = Ze({ id: r });
|
|
1187
1187
|
return /* @__PURE__ */ h(
|
|
1188
1188
|
"div",
|
|
1189
1189
|
{
|
|
1190
1190
|
className: m(
|
|
1191
|
-
"
|
|
1192
|
-
|
|
1193
|
-
|
|
1191
|
+
"rudi-kanban__column",
|
|
1192
|
+
d && "rudi-kanban__column--over",
|
|
1193
|
+
n
|
|
1194
1194
|
),
|
|
1195
1195
|
role: "region",
|
|
1196
1196
|
"aria-label": e,
|
|
1197
1197
|
children: [
|
|
1198
|
-
/* @__PURE__ */ h("div", { className: "
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ h("div", { className: "rudi-kanban__column-header", children: [
|
|
1199
|
+
/* @__PURE__ */ t("span", { className: "rudi-kanban__column-title", children: e }),
|
|
1200
|
+
/* @__PURE__ */ t("span", { className: "rudi-kanban__column-count", children: i.length })
|
|
1201
1201
|
] }),
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
|
|
1202
|
+
/* @__PURE__ */ t("div", { ref: a, className: "rudi-kanban__column-body", children: /* @__PURE__ */ t(
|
|
1203
|
+
tr,
|
|
1204
1204
|
{
|
|
1205
|
-
items:
|
|
1206
|
-
strategy:
|
|
1207
|
-
children:
|
|
1205
|
+
items: i.map((c) => c.id),
|
|
1206
|
+
strategy: ir,
|
|
1207
|
+
children: i.map((c) => o(c))
|
|
1208
1208
|
}
|
|
1209
1209
|
) })
|
|
1210
1210
|
]
|
|
1211
1211
|
}
|
|
1212
1212
|
);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1214
|
+
function M(r, e) {
|
|
1215
|
+
return r.find((i) => i.items.some((o) => o.id === e));
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1218
|
-
columns:
|
|
1217
|
+
function Rr({
|
|
1218
|
+
columns: r,
|
|
1219
1219
|
onCardMove: e,
|
|
1220
|
-
renderCard:
|
|
1220
|
+
renderCard: i,
|
|
1221
1221
|
className: o
|
|
1222
1222
|
}) {
|
|
1223
|
-
const [
|
|
1223
|
+
const [n, a] = $(null), d = R(null), c = qe(
|
|
1224
1224
|
U(Je, {
|
|
1225
1225
|
activationConstraint: { distance: 5 }
|
|
1226
1226
|
}),
|
|
1227
1227
|
U(Qe, {
|
|
1228
|
-
coordinateGetter:
|
|
1228
|
+
coordinateGetter: or
|
|
1229
1229
|
})
|
|
1230
|
-
),
|
|
1231
|
-
|
|
1232
|
-
}, []), u =
|
|
1230
|
+
), l = I((f) => {
|
|
1231
|
+
d.current && (d.current.textContent = f);
|
|
1232
|
+
}, []), u = n ? r.flatMap((f) => f.items).find((f) => f.id === n) : null, s = I(
|
|
1233
1233
|
(f) => {
|
|
1234
1234
|
const _ = String(f.active.id);
|
|
1235
1235
|
a(_);
|
|
1236
|
-
const v =
|
|
1237
|
-
v &&
|
|
1236
|
+
const v = M(r, _);
|
|
1237
|
+
v && l(`Picked up card from ${v.title}`);
|
|
1238
1238
|
},
|
|
1239
|
-
[
|
|
1240
|
-
), p =
|
|
1239
|
+
[r, l]
|
|
1240
|
+
), p = I(
|
|
1241
1241
|
(f) => {
|
|
1242
1242
|
const { over: _ } = f;
|
|
1243
1243
|
if (!_) return;
|
|
1244
|
-
const v = String(_.id), N =
|
|
1245
|
-
N &&
|
|
1244
|
+
const v = String(_.id), N = r.find((x) => x.id === v) || M(r, v);
|
|
1245
|
+
N && l(`Over column ${N.title}`);
|
|
1246
1246
|
},
|
|
1247
|
-
[
|
|
1248
|
-
), g =
|
|
1247
|
+
[r, l]
|
|
1248
|
+
), g = I(
|
|
1249
1249
|
(f) => {
|
|
1250
1250
|
const { active: _, over: v } = f;
|
|
1251
1251
|
if (a(null), !v) {
|
|
1252
|
-
|
|
1252
|
+
l("Cancelled drag");
|
|
1253
1253
|
return;
|
|
1254
1254
|
}
|
|
1255
|
-
const N = String(_.id), x = String(v.id), C =
|
|
1255
|
+
const N = String(_.id), x = String(v.id), C = M(r, N);
|
|
1256
1256
|
if (!C) return;
|
|
1257
1257
|
const z = C.items.findIndex(
|
|
1258
|
-
(
|
|
1259
|
-
), H =
|
|
1260
|
-
if (!
|
|
1261
|
-
let
|
|
1262
|
-
H ?
|
|
1258
|
+
(B) => B.id === N
|
|
1259
|
+
), H = r.find((B) => B.id === x), te = M(r, x), P = H || te;
|
|
1260
|
+
if (!P) return;
|
|
1261
|
+
let S;
|
|
1262
|
+
H ? S = P.items.length : S = P.items.findIndex((B) => B.id === x), !(C.id === P.id && z === S) && (l(`Dropped card in ${P.title} at position ${S + 1}`), e({
|
|
1263
1263
|
cardId: N,
|
|
1264
1264
|
fromColumnId: C.id,
|
|
1265
|
-
toColumnId:
|
|
1265
|
+
toColumnId: P.id,
|
|
1266
1266
|
fromIndex: z,
|
|
1267
|
-
toIndex:
|
|
1267
|
+
toIndex: S
|
|
1268
1268
|
}));
|
|
1269
1269
|
},
|
|
1270
|
-
[
|
|
1270
|
+
[r, e, l]
|
|
1271
1271
|
);
|
|
1272
1272
|
return /* @__PURE__ */ h(
|
|
1273
1273
|
Ve,
|
|
1274
1274
|
{
|
|
1275
1275
|
sensors: c,
|
|
1276
|
-
collisionDetection:
|
|
1276
|
+
collisionDetection: er,
|
|
1277
1277
|
onDragStart: s,
|
|
1278
1278
|
onDragOver: p,
|
|
1279
1279
|
onDragEnd: g,
|
|
1280
1280
|
children: [
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
|
|
1281
|
+
/* @__PURE__ */ t("div", { className: m("rudi-kanban", o), children: r.map((f) => /* @__PURE__ */ t(
|
|
1282
|
+
re,
|
|
1283
1283
|
{
|
|
1284
1284
|
id: f.id,
|
|
1285
1285
|
title: f.title,
|
|
1286
1286
|
items: f.items,
|
|
1287
|
-
renderCard:
|
|
1287
|
+
renderCard: i
|
|
1288
1288
|
},
|
|
1289
1289
|
f.id
|
|
1290
1290
|
)) }),
|
|
1291
|
-
/* @__PURE__ */
|
|
1292
|
-
/* @__PURE__ */
|
|
1291
|
+
/* @__PURE__ */ t(rr, { children: u ? /* @__PURE__ */ t("div", { className: "rudi-kanban__card rudi-kanban__card--overlay", children: i(u) }) : null }),
|
|
1292
|
+
/* @__PURE__ */ t(
|
|
1293
1293
|
"div",
|
|
1294
1294
|
{
|
|
1295
|
-
ref:
|
|
1295
|
+
ref: d,
|
|
1296
1296
|
role: "status",
|
|
1297
1297
|
"aria-live": "assertive",
|
|
1298
1298
|
"aria-atomic": "true",
|
|
1299
|
-
className: "
|
|
1299
|
+
className: "rudi-kanban__sr-only"
|
|
1300
1300
|
}
|
|
1301
1301
|
)
|
|
1302
1302
|
]
|
|
1303
1303
|
}
|
|
1304
1304
|
);
|
|
1305
1305
|
}
|
|
1306
|
-
const
|
|
1307
|
-
Column:
|
|
1306
|
+
const ct = Object.assign(Rr, {
|
|
1307
|
+
Column: re
|
|
1308
1308
|
});
|
|
1309
|
-
function
|
|
1309
|
+
function dt({ id: r, children: e, className: i }) {
|
|
1310
1310
|
const {
|
|
1311
1311
|
attributes: o,
|
|
1312
|
-
listeners:
|
|
1312
|
+
listeners: n,
|
|
1313
1313
|
setNodeRef: a,
|
|
1314
|
-
transform:
|
|
1314
|
+
transform: d,
|
|
1315
1315
|
transition: c,
|
|
1316
|
-
isDragging:
|
|
1317
|
-
} =
|
|
1318
|
-
transform:
|
|
1316
|
+
isDragging: l
|
|
1317
|
+
} = nr({ id: r }), u = {
|
|
1318
|
+
transform: ar.Transform.toString(d),
|
|
1319
1319
|
transition: c
|
|
1320
1320
|
};
|
|
1321
1321
|
return /* @__PURE__ */ h(
|
|
@@ -1324,19 +1324,19 @@ function lr({ id: t, children: e, className: n }) {
|
|
|
1324
1324
|
ref: a,
|
|
1325
1325
|
style: u,
|
|
1326
1326
|
className: m(
|
|
1327
|
-
"
|
|
1328
|
-
|
|
1329
|
-
|
|
1327
|
+
"rudi-kanban__card",
|
|
1328
|
+
l && "rudi-kanban__card--dragging",
|
|
1329
|
+
i
|
|
1330
1330
|
),
|
|
1331
1331
|
children: [
|
|
1332
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ t(
|
|
1333
1333
|
"button",
|
|
1334
1334
|
{
|
|
1335
1335
|
type: "button",
|
|
1336
|
-
className: "
|
|
1337
|
-
"aria-label": `Drag handle for card ${
|
|
1336
|
+
className: "rudi-kanban__card-handle",
|
|
1337
|
+
"aria-label": `Drag handle for card ${r}`,
|
|
1338
1338
|
...o,
|
|
1339
|
-
...
|
|
1339
|
+
...n,
|
|
1340
1340
|
"aria-roledescription": "sortable",
|
|
1341
1341
|
children: /* @__PURE__ */ h(
|
|
1342
1342
|
"svg",
|
|
@@ -1347,101 +1347,101 @@ function lr({ id: t, children: e, className: n }) {
|
|
|
1347
1347
|
fill: "currentColor",
|
|
1348
1348
|
"aria-hidden": "true",
|
|
1349
1349
|
children: [
|
|
1350
|
-
/* @__PURE__ */
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ t("circle", { cx: "3.5", cy: "2", r: "1.25" }),
|
|
1351
|
+
/* @__PURE__ */ t("circle", { cx: "8.5", cy: "2", r: "1.25" }),
|
|
1352
|
+
/* @__PURE__ */ t("circle", { cx: "3.5", cy: "6", r: "1.25" }),
|
|
1353
|
+
/* @__PURE__ */ t("circle", { cx: "8.5", cy: "6", r: "1.25" }),
|
|
1354
|
+
/* @__PURE__ */ t("circle", { cx: "3.5", cy: "10", r: "1.25" }),
|
|
1355
|
+
/* @__PURE__ */ t("circle", { cx: "8.5", cy: "10", r: "1.25" })
|
|
1356
1356
|
]
|
|
1357
1357
|
}
|
|
1358
1358
|
)
|
|
1359
1359
|
}
|
|
1360
1360
|
),
|
|
1361
|
-
/* @__PURE__ */
|
|
1361
|
+
/* @__PURE__ */ t("div", { className: "rudi-kanban__card-content", children: e })
|
|
1362
1362
|
]
|
|
1363
1363
|
}
|
|
1364
1364
|
);
|
|
1365
1365
|
}
|
|
1366
|
-
const
|
|
1367
|
-
function({ level: e, size:
|
|
1366
|
+
const lt = b(
|
|
1367
|
+
function({ level: e, size: i, className: o, children: n, ...a }, d) {
|
|
1368
1368
|
const c = `h${e}`;
|
|
1369
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ t(
|
|
1370
1370
|
c,
|
|
1371
1371
|
{
|
|
1372
|
-
ref:
|
|
1372
|
+
ref: d,
|
|
1373
1373
|
className: m(
|
|
1374
|
-
`
|
|
1374
|
+
`rudi-heading rudi-heading--${i ?? e}`,
|
|
1375
1375
|
o
|
|
1376
1376
|
),
|
|
1377
1377
|
...a,
|
|
1378
|
-
children:
|
|
1378
|
+
children: n
|
|
1379
1379
|
}
|
|
1380
1380
|
);
|
|
1381
1381
|
}
|
|
1382
|
-
),
|
|
1383
|
-
return /* @__PURE__ */
|
|
1384
|
-
|
|
1382
|
+
), ut = b(function({ variant: e = "body", as: i = "p", className: o, children: n, ...a }, d) {
|
|
1383
|
+
return /* @__PURE__ */ t(
|
|
1384
|
+
i,
|
|
1385
1385
|
{
|
|
1386
|
-
ref:
|
|
1387
|
-
className: m(`
|
|
1386
|
+
ref: d,
|
|
1387
|
+
className: m(`rudi-text rudi-text--${e}`, o),
|
|
1388
1388
|
...a,
|
|
1389
|
-
children:
|
|
1389
|
+
children: n
|
|
1390
1390
|
}
|
|
1391
1391
|
);
|
|
1392
|
-
}),
|
|
1393
|
-
return /* @__PURE__ */
|
|
1394
|
-
|
|
1392
|
+
}), mt = b(function({ size: e = "base", as: i = "div", className: o, children: n, ...a }, d) {
|
|
1393
|
+
return /* @__PURE__ */ t(
|
|
1394
|
+
i,
|
|
1395
1395
|
{
|
|
1396
|
-
ref:
|
|
1396
|
+
ref: d,
|
|
1397
1397
|
className: m(
|
|
1398
|
-
"
|
|
1399
|
-
e !== "base" && `
|
|
1398
|
+
"rudi-prose",
|
|
1399
|
+
e !== "base" && `rudi-prose--${e}`,
|
|
1400
1400
|
o
|
|
1401
1401
|
),
|
|
1402
1402
|
...a,
|
|
1403
|
-
children:
|
|
1403
|
+
children: n
|
|
1404
1404
|
}
|
|
1405
1405
|
);
|
|
1406
|
-
}),
|
|
1406
|
+
}), ft = b(function({
|
|
1407
1407
|
padding: e,
|
|
1408
|
-
bordered:
|
|
1408
|
+
bordered: i = !1,
|
|
1409
1409
|
invert: o = !1,
|
|
1410
|
-
as:
|
|
1410
|
+
as: n = "div",
|
|
1411
1411
|
className: a,
|
|
1412
|
-
style:
|
|
1412
|
+
style: d,
|
|
1413
1413
|
children: c,
|
|
1414
|
-
...
|
|
1414
|
+
...l
|
|
1415
1415
|
}, u) {
|
|
1416
1416
|
const s = {};
|
|
1417
|
-
return e && (s["--box-padding"] = e), /* @__PURE__ */
|
|
1418
|
-
|
|
1417
|
+
return e && (s["--box-padding"] = e), /* @__PURE__ */ t(
|
|
1418
|
+
n,
|
|
1419
1419
|
{
|
|
1420
1420
|
ref: u,
|
|
1421
1421
|
className: m(
|
|
1422
|
-
"
|
|
1423
|
-
|
|
1424
|
-
o && "
|
|
1422
|
+
"rudi-box",
|
|
1423
|
+
i && "rudi-box--bordered",
|
|
1424
|
+
o && "rudi-box--invert",
|
|
1425
1425
|
a
|
|
1426
1426
|
),
|
|
1427
|
-
style: { ...s, ...
|
|
1428
|
-
...
|
|
1427
|
+
style: { ...s, ...d },
|
|
1428
|
+
...l,
|
|
1429
1429
|
children: c
|
|
1430
1430
|
}
|
|
1431
1431
|
);
|
|
1432
|
-
}),
|
|
1432
|
+
}), ht = b(function({
|
|
1433
1433
|
space: e,
|
|
1434
|
-
recursive:
|
|
1434
|
+
recursive: i = !1,
|
|
1435
1435
|
splitAfter: o,
|
|
1436
|
-
as:
|
|
1436
|
+
as: n = "div",
|
|
1437
1437
|
className: a,
|
|
1438
|
-
style:
|
|
1438
|
+
style: d,
|
|
1439
1439
|
children: c,
|
|
1440
|
-
...
|
|
1440
|
+
...l
|
|
1441
1441
|
}, u) {
|
|
1442
1442
|
const s = {};
|
|
1443
1443
|
e && (s["--stack-space"] = e);
|
|
1444
|
-
const p =
|
|
1444
|
+
const p = Pe.toArray(c), g = o ? p.map((f, _) => _ === o - 1 && Se(f) ? Be(
|
|
1445
1445
|
f,
|
|
1446
1446
|
{
|
|
1447
1447
|
style: {
|
|
@@ -1450,205 +1450,205 @@ const dr = b(
|
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
) : f) : c;
|
|
1453
|
-
return /* @__PURE__ */
|
|
1454
|
-
|
|
1453
|
+
return /* @__PURE__ */ t(
|
|
1454
|
+
n,
|
|
1455
1455
|
{
|
|
1456
1456
|
ref: u,
|
|
1457
1457
|
className: m(
|
|
1458
|
-
"
|
|
1459
|
-
|
|
1460
|
-
o && "
|
|
1458
|
+
"rudi-stack",
|
|
1459
|
+
i && "rudi-stack--recursive",
|
|
1460
|
+
o && "rudi-stack--split",
|
|
1461
1461
|
a
|
|
1462
1462
|
),
|
|
1463
|
-
style: { ...s, ...
|
|
1464
|
-
...
|
|
1463
|
+
style: { ...s, ...d },
|
|
1464
|
+
...l,
|
|
1465
1465
|
children: g
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
}),
|
|
1468
|
+
}), pt = b(function({
|
|
1469
1469
|
space: e,
|
|
1470
|
-
justify:
|
|
1470
|
+
justify: i,
|
|
1471
1471
|
align: o,
|
|
1472
|
-
as:
|
|
1472
|
+
as: n = "div",
|
|
1473
1473
|
className: a,
|
|
1474
|
-
style:
|
|
1474
|
+
style: d,
|
|
1475
1475
|
children: c,
|
|
1476
|
-
...
|
|
1476
|
+
...l
|
|
1477
1477
|
}, u) {
|
|
1478
1478
|
const s = {};
|
|
1479
|
-
return e && (s["--cluster-space"] = e),
|
|
1480
|
-
|
|
1479
|
+
return e && (s["--cluster-space"] = e), i && (s["--cluster-justify"] = i), o && (s["--cluster-align"] = o), /* @__PURE__ */ t(
|
|
1480
|
+
n,
|
|
1481
1481
|
{
|
|
1482
1482
|
ref: u,
|
|
1483
|
-
className: m("
|
|
1484
|
-
style: { ...s, ...
|
|
1485
|
-
...
|
|
1483
|
+
className: m("rudi-cluster", a),
|
|
1484
|
+
style: { ...s, ...d },
|
|
1485
|
+
...l,
|
|
1486
1486
|
children: c
|
|
1487
1487
|
}
|
|
1488
1488
|
);
|
|
1489
|
-
}),
|
|
1489
|
+
}), gt = b(function({
|
|
1490
1490
|
minCellWidth: e,
|
|
1491
|
-
space:
|
|
1491
|
+
space: i,
|
|
1492
1492
|
as: o = "div",
|
|
1493
|
-
className:
|
|
1493
|
+
className: n,
|
|
1494
1494
|
style: a,
|
|
1495
|
-
children:
|
|
1495
|
+
children: d,
|
|
1496
1496
|
...c
|
|
1497
|
-
},
|
|
1497
|
+
}, l) {
|
|
1498
1498
|
const u = {};
|
|
1499
|
-
return e && (u["--grid-min-cell"] = e),
|
|
1499
|
+
return e && (u["--grid-min-cell"] = e), i && (u["--grid-space"] = i), /* @__PURE__ */ t(
|
|
1500
1500
|
o,
|
|
1501
1501
|
{
|
|
1502
|
-
ref:
|
|
1503
|
-
className: m("
|
|
1502
|
+
ref: l,
|
|
1503
|
+
className: m("rudi-grid", n),
|
|
1504
1504
|
style: { ...u, ...a },
|
|
1505
1505
|
...c,
|
|
1506
|
-
children:
|
|
1506
|
+
children: d
|
|
1507
1507
|
}
|
|
1508
1508
|
);
|
|
1509
|
-
}),
|
|
1509
|
+
}), bt = b(function({
|
|
1510
1510
|
side: e = "left",
|
|
1511
|
-
sideWidth:
|
|
1511
|
+
sideWidth: i,
|
|
1512
1512
|
contentMin: o,
|
|
1513
|
-
space:
|
|
1513
|
+
space: n,
|
|
1514
1514
|
noStretch: a = !1,
|
|
1515
|
-
as:
|
|
1515
|
+
as: d = "div",
|
|
1516
1516
|
className: c,
|
|
1517
|
-
style:
|
|
1517
|
+
style: l,
|
|
1518
1518
|
children: u,
|
|
1519
1519
|
...s
|
|
1520
1520
|
}, p) {
|
|
1521
1521
|
const g = {};
|
|
1522
|
-
return
|
|
1523
|
-
|
|
1522
|
+
return i && (g["--sidebar-width"] = i), o && (g["--sidebar-content-min"] = o), n && (g["--sidebar-space"] = n), /* @__PURE__ */ t(
|
|
1523
|
+
d,
|
|
1524
1524
|
{
|
|
1525
1525
|
ref: p,
|
|
1526
1526
|
className: m(
|
|
1527
|
-
"
|
|
1528
|
-
e === "right" && "
|
|
1529
|
-
a && "
|
|
1527
|
+
"rudi-sidebar",
|
|
1528
|
+
e === "right" && "rudi-sidebar--right",
|
|
1529
|
+
a && "rudi-sidebar--no-stretch",
|
|
1530
1530
|
c
|
|
1531
1531
|
),
|
|
1532
|
-
style: { ...g, ...
|
|
1532
|
+
style: { ...g, ...l },
|
|
1533
1533
|
...s,
|
|
1534
1534
|
children: u
|
|
1535
1535
|
}
|
|
1536
1536
|
);
|
|
1537
|
-
}),
|
|
1537
|
+
}), _t = b(function({
|
|
1538
1538
|
maxWidth: e,
|
|
1539
|
-
gutters:
|
|
1539
|
+
gutters: i,
|
|
1540
1540
|
intrinsic: o = !1,
|
|
1541
|
-
as:
|
|
1541
|
+
as: n = "div",
|
|
1542
1542
|
className: a,
|
|
1543
|
-
style:
|
|
1543
|
+
style: d,
|
|
1544
1544
|
children: c,
|
|
1545
|
-
...
|
|
1545
|
+
...l
|
|
1546
1546
|
}, u) {
|
|
1547
1547
|
const s = {};
|
|
1548
|
-
return e && (s["--center-max-width"] = e),
|
|
1549
|
-
|
|
1548
|
+
return e && (s["--center-max-width"] = e), i && (s["--center-gutters"] = i), /* @__PURE__ */ t(
|
|
1549
|
+
n,
|
|
1550
1550
|
{
|
|
1551
1551
|
ref: u,
|
|
1552
1552
|
className: m(
|
|
1553
|
-
"
|
|
1554
|
-
o && "
|
|
1553
|
+
"rudi-center",
|
|
1554
|
+
o && "rudi-center--intrinsic",
|
|
1555
1555
|
a
|
|
1556
1556
|
),
|
|
1557
|
-
style: { ...s, ...
|
|
1558
|
-
...
|
|
1557
|
+
style: { ...s, ...d },
|
|
1558
|
+
...l,
|
|
1559
1559
|
children: c
|
|
1560
1560
|
}
|
|
1561
1561
|
);
|
|
1562
|
-
}),
|
|
1562
|
+
}), vt = b(function({
|
|
1563
1563
|
minHeight: e,
|
|
1564
|
-
space:
|
|
1564
|
+
space: i,
|
|
1565
1565
|
as: o = "div",
|
|
1566
|
-
className:
|
|
1566
|
+
className: n,
|
|
1567
1567
|
style: a,
|
|
1568
|
-
children:
|
|
1568
|
+
children: d,
|
|
1569
1569
|
...c
|
|
1570
|
-
},
|
|
1570
|
+
}, l) {
|
|
1571
1571
|
const u = {};
|
|
1572
|
-
return e && (u["--cover-min-height"] = e),
|
|
1572
|
+
return e && (u["--cover-min-height"] = e), i && (u["--cover-space"] = i), /* @__PURE__ */ t(
|
|
1573
1573
|
o,
|
|
1574
1574
|
{
|
|
1575
|
-
ref:
|
|
1576
|
-
className: m("
|
|
1575
|
+
ref: l,
|
|
1576
|
+
className: m("rudi-cover", n),
|
|
1577
1577
|
style: { ...u, ...a },
|
|
1578
1578
|
...c,
|
|
1579
|
-
children:
|
|
1579
|
+
children: d
|
|
1580
1580
|
}
|
|
1581
1581
|
);
|
|
1582
|
-
}),
|
|
1582
|
+
}), Nt = b(
|
|
1583
1583
|
function({
|
|
1584
1584
|
threshold: e,
|
|
1585
|
-
space:
|
|
1585
|
+
space: i,
|
|
1586
1586
|
limit: o,
|
|
1587
|
-
as:
|
|
1587
|
+
as: n = "div",
|
|
1588
1588
|
className: a,
|
|
1589
|
-
style:
|
|
1589
|
+
style: d,
|
|
1590
1590
|
children: c,
|
|
1591
|
-
...
|
|
1591
|
+
...l
|
|
1592
1592
|
}, u) {
|
|
1593
1593
|
const s = {};
|
|
1594
|
-
return e && (s["--switcher-threshold"] = e),
|
|
1595
|
-
|
|
1594
|
+
return e && (s["--switcher-threshold"] = e), i && (s["--switcher-space"] = i), /* @__PURE__ */ t(
|
|
1595
|
+
n,
|
|
1596
1596
|
{
|
|
1597
1597
|
ref: u,
|
|
1598
|
-
className: m("
|
|
1599
|
-
style: { ...s, ...
|
|
1600
|
-
...
|
|
1598
|
+
className: m("rudi-switcher", a),
|
|
1599
|
+
style: { ...s, ...d },
|
|
1600
|
+
...l,
|
|
1601
1601
|
children: c
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
1604
1604
|
}
|
|
1605
1605
|
);
|
|
1606
1606
|
export {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
Y as
|
|
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
|
-
|
|
1607
|
+
Jr as RudiAlert,
|
|
1608
|
+
rt as RudiAvatar,
|
|
1609
|
+
hr as RudiBadge,
|
|
1610
|
+
nt as RudiBarChart,
|
|
1611
|
+
ft as RudiBox,
|
|
1612
|
+
Or as RudiButton,
|
|
1613
|
+
Y as RudiCard,
|
|
1614
|
+
_t as RudiCenter,
|
|
1615
|
+
Lr as RudiCheckbox,
|
|
1616
|
+
Gr as RudiCheckboxGroup,
|
|
1617
|
+
ot as RudiCircularProgress,
|
|
1618
|
+
pt as RudiCluster,
|
|
1619
|
+
vt as RudiCover,
|
|
1620
|
+
Xr as RudiDialog,
|
|
1621
|
+
st as RudiDonutChart,
|
|
1622
|
+
gt as RudiGrid,
|
|
1623
|
+
lt as RudiHeading,
|
|
1624
|
+
k as RudiIcon,
|
|
1625
|
+
Qr as RudiIconButton,
|
|
1626
|
+
Kr as RudiInput,
|
|
1627
|
+
ct as RudiKanbanBoard,
|
|
1628
|
+
dt as RudiKanbanCard,
|
|
1629
|
+
re as RudiKanbanColumn,
|
|
1630
|
+
Ur as RudiKeyboard,
|
|
1631
|
+
at as RudiLineChart,
|
|
1632
|
+
jr as RudiMenu,
|
|
1633
|
+
zr as RudiMenuItem,
|
|
1634
|
+
Hr as RudiMenuSection,
|
|
1635
|
+
Fr as RudiMenuTrigger,
|
|
1636
|
+
it as RudiNavItem,
|
|
1637
|
+
et as RudiProgressBar,
|
|
1638
|
+
mt as RudiProse,
|
|
1639
|
+
Yr as RudiRadioGroup,
|
|
1640
|
+
Ar as RudiSelect,
|
|
1641
|
+
yt as RudiSeparator,
|
|
1642
|
+
bt as RudiSidebar,
|
|
1643
|
+
ht as RudiStack,
|
|
1644
|
+
tt as RudiStatCard,
|
|
1645
|
+
xt as RudiSubmenuTrigger,
|
|
1646
|
+
Wr as RudiSwitch,
|
|
1647
|
+
Nt as RudiSwitcher,
|
|
1648
|
+
Vr as RudiTag,
|
|
1649
|
+
ut as RudiText,
|
|
1650
|
+
qr as RudiTooltip,
|
|
1651
|
+
Zr as RudiTooltipTrigger,
|
|
1652
1652
|
m as cn,
|
|
1653
1653
|
j as useChartTheme,
|
|
1654
1654
|
Q as useLoadingButton
|