tharaday 0.7.1 → 0.7.3
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/.storybook/main.ts +1 -1
- package/.storybook/preview.ts +0 -2
- package/.storybook/vitest.setup.ts +2 -0
- package/dist/ds.css +1 -1
- package/dist/ds.js +889 -814
- package/dist/ds.umd.cjs +1 -1
- package/dist/src/components/Tree/Tree.d.ts +1 -1
- package/dist/src/components/Tree/Tree.stories.d.ts +1 -1
- package/dist/src/components/Tree/TreeItem.d.ts +1 -1
- package/dist/src/components/Tree/TreeItem.types.d.ts +6 -0
- package/dist/src/layouts/AppLayout/AppLayout.d.ts +1 -7
- package/dist/src/layouts/AppLayout/AppLayout.stories.d.ts +1 -9
- package/dist/src/layouts/AppLayout/AppLayout.types.d.ts +7 -52
- package/dist/src/layouts/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/dist/src/layouts/DashboardLayout/DashboardLayout.stories.d.ts +1 -7
- package/dist/src/layouts/DashboardLayout/DashboardLayout.types.d.ts +2 -9
- package/dist/src/layouts/SettingsLayout/SettingsLayout.d.ts +1 -1
- package/dist/src/layouts/SettingsLayout/SettingsLayout.stories.d.ts +1 -7
- package/dist/src/layouts/SettingsLayout/SettingsLayout.types.d.ts +2 -9
- package/package.json +8 -1
- package/src/components/Accordion/Accordion.module.css +1 -1
- package/src/components/Accordion/Accordion.test.tsx +82 -0
- package/src/components/Accordion/Accordion.tsx +14 -1
- package/src/components/Avatar/Avatar.test.tsx +36 -0
- package/src/components/Badge/Badge.test.tsx +15 -0
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +96 -0
- package/src/components/Checkbox/Checkbox.module.css +7 -7
- package/src/components/Checkbox/Checkbox.test.tsx +68 -0
- package/src/components/Dropdown/Dropdown.test.tsx +104 -0
- package/src/components/Input/Input.test.tsx +61 -0
- package/src/components/List/List.module.css +12 -12
- package/src/components/List/List.test.tsx +46 -0
- package/src/components/Modal/Modal.module.css +12 -13
- package/src/components/Modal/Modal.test.tsx +86 -0
- package/src/components/Modal/Modal.tsx +10 -4
- package/src/components/NavBar/NavBar.module.css +3 -3
- package/src/components/Notification/Notification.module.css +6 -6
- package/src/components/Notification/Notification.test.tsx +38 -0
- package/src/components/Notification/Notification.tsx +8 -1
- package/src/components/Pagination/Pagination.test.tsx +70 -0
- package/src/components/ProgressBar/ProgressBar.test.tsx +58 -0
- package/src/components/RadioButton/RadioButton.test.tsx +51 -0
- package/src/components/Select/Select.test.tsx +64 -0
- package/src/components/Slider/Slider.test.tsx +49 -0
- package/src/components/Stepper/Step.module.css +2 -2
- package/src/components/Stepper/Stepper.test.tsx +51 -0
- package/src/components/Switch/Switch.test.tsx +53 -0
- package/src/components/Table/Table.test.tsx +78 -0
- package/src/components/Tabs/Tabs.test.tsx +83 -0
- package/src/components/Textarea/Textarea.test.tsx +56 -0
- package/src/components/Tree/Tree.test.tsx +116 -0
- package/src/components/Tree/Tree.tsx +65 -1
- package/src/components/Tree/TreeItem.module.css +20 -26
- package/src/components/Tree/TreeItem.tsx +144 -79
- package/src/components/Tree/TreeItem.types.ts +6 -0
- package/src/layouts/AppLayout/AppLayout.stories.tsx +48 -36
- package/src/layouts/AppLayout/AppLayout.tsx +4 -34
- package/src/layouts/AppLayout/AppLayout.types.ts +7 -51
- package/src/layouts/DashboardLayout/DashboardLayout.stories.tsx +4 -8
- package/src/layouts/DashboardLayout/DashboardLayout.tsx +2 -17
- package/src/layouts/DashboardLayout/DashboardLayout.types.tsx +2 -7
- package/src/layouts/SettingsLayout/SettingsLayout.stories.tsx +16 -7
- package/src/layouts/SettingsLayout/SettingsLayout.tsx +2 -17
- package/src/layouts/SettingsLayout/SettingsLayout.types.tsx +2 -7
- package/src/styles/semantic.css +3 -0
- package/src/styles/tokens.css +15 -0
package/dist/ds.js
CHANGED
|
@@ -1,70 +1,83 @@
|
|
|
1
1
|
import { Children as e, Fragment as t, cloneElement as n, isValidElement as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { createPortal as
|
|
2
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import { createPortal as f } from "react-dom";
|
|
4
4
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
5
|
-
function
|
|
5
|
+
function p(e) {
|
|
6
6
|
var t, n, r = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
8
8
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
9
9
|
var i = e.length;
|
|
10
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
10
|
+
for (t = 0; t < i; t++) e[t] && (n = p(e[t])) && (r && (r += " "), r += n);
|
|
11
11
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
12
12
|
return r;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
14
|
+
function m() {
|
|
15
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = p(e)) && (r && (r += " "), r += t);
|
|
16
16
|
return r;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
root: "
|
|
20
|
-
default: "
|
|
21
|
-
bordered: "
|
|
22
|
-
item: "
|
|
23
|
-
separated: "
|
|
24
|
-
ghost: "
|
|
25
|
-
header: "
|
|
26
|
-
sm: "
|
|
27
|
-
md: "
|
|
28
|
-
lg: "
|
|
29
|
-
icon: "
|
|
30
|
-
iconExpanded: "
|
|
31
|
-
contentWrapper: "
|
|
32
|
-
contentExpanded: "
|
|
33
|
-
content: "
|
|
34
|
-
contentBody: "
|
|
35
|
-
contentBodyExpanded: "
|
|
36
|
-
},
|
|
37
|
-
let
|
|
18
|
+
var h = {
|
|
19
|
+
root: "_root_1f38q_1",
|
|
20
|
+
default: "_default_1f38q_8",
|
|
21
|
+
bordered: "_bordered_1f38q_14",
|
|
22
|
+
item: "_item_1f38q_14",
|
|
23
|
+
separated: "_separated_1f38q_24",
|
|
24
|
+
ghost: "_ghost_1f38q_34",
|
|
25
|
+
header: "_header_1f38q_34",
|
|
26
|
+
sm: "_sm_1f38q_65",
|
|
27
|
+
md: "_md_1f38q_70",
|
|
28
|
+
lg: "_lg_1f38q_75",
|
|
29
|
+
icon: "_icon_1f38q_97",
|
|
30
|
+
iconExpanded: "_iconExpanded_1f38q_102",
|
|
31
|
+
contentWrapper: "_contentWrapper_1f38q_106",
|
|
32
|
+
contentExpanded: "_contentExpanded_1f38q_113",
|
|
33
|
+
content: "_content_1f38q_106",
|
|
34
|
+
contentBody: "_contentBody_1f38q_121",
|
|
35
|
+
contentBodyExpanded: "_contentBodyExpanded_1f38q_134"
|
|
36
|
+
}, g = ({ items: e, allowMultiple: t = !1, defaultExpanded: n = [], variant: r = "default", size: i = "md", className: o, id: s }) => {
|
|
37
|
+
let l = a(), f = s ?? `ds-accordion-${l}`, [p, g] = c(n), _ = (e) => {
|
|
38
38
|
g((n) => n.includes(e) ? n.filter((t) => t !== e) : t ? [...n, e] : [e]);
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ u("div", {
|
|
41
41
|
id: f,
|
|
42
|
-
className:
|
|
42
|
+
className: m(h.root, h[r], h[i], o),
|
|
43
43
|
children: e.map((e) => {
|
|
44
|
-
let t =
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
className:
|
|
47
|
-
children: [/* @__PURE__ */
|
|
44
|
+
let t = p.includes(e.id);
|
|
45
|
+
return /* @__PURE__ */ d("div", {
|
|
46
|
+
className: h.item,
|
|
47
|
+
children: [/* @__PURE__ */ d("button", {
|
|
48
48
|
type: "button",
|
|
49
49
|
id: `${f}-header-${e.id}`,
|
|
50
|
-
className:
|
|
50
|
+
className: h.header,
|
|
51
51
|
onClick: () => _(e.id),
|
|
52
52
|
disabled: e.isDisabled,
|
|
53
53
|
"aria-expanded": t,
|
|
54
54
|
"aria-controls": `${f}-content-${e.id}`,
|
|
55
|
-
children: [/* @__PURE__ */
|
|
56
|
-
className:
|
|
57
|
-
|
|
55
|
+
children: [/* @__PURE__ */ u("span", { children: e.title }), /* @__PURE__ */ u("span", {
|
|
56
|
+
className: m(h.icon, t && h.iconExpanded),
|
|
57
|
+
"aria-hidden": "true",
|
|
58
|
+
children: /* @__PURE__ */ u("svg", {
|
|
59
|
+
width: "12",
|
|
60
|
+
height: "12",
|
|
61
|
+
viewBox: "0 0 12 12",
|
|
62
|
+
fill: "none",
|
|
63
|
+
children: /* @__PURE__ */ u("path", {
|
|
64
|
+
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
strokeWidth: "1.5",
|
|
67
|
+
strokeLinecap: "round",
|
|
68
|
+
strokeLinejoin: "round"
|
|
69
|
+
})
|
|
70
|
+
})
|
|
58
71
|
})]
|
|
59
|
-
}), /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ u("div", {
|
|
60
73
|
id: `${f}-content-${e.id}`,
|
|
61
74
|
role: "region",
|
|
62
75
|
"aria-labelledby": `${f}-header-${e.id}`,
|
|
63
|
-
className:
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
-
className:
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
className:
|
|
76
|
+
className: m(h.contentWrapper, t && h.contentExpanded),
|
|
77
|
+
children: /* @__PURE__ */ u("div", {
|
|
78
|
+
className: h.content,
|
|
79
|
+
children: /* @__PURE__ */ u("div", {
|
|
80
|
+
className: m(h.contentBody, t && h.contentBodyExpanded),
|
|
68
81
|
children: e.content
|
|
69
82
|
})
|
|
70
83
|
})
|
|
@@ -72,7 +85,7 @@ var m = {
|
|
|
72
85
|
}, e.id);
|
|
73
86
|
})
|
|
74
87
|
});
|
|
75
|
-
},
|
|
88
|
+
}, _ = {
|
|
76
89
|
root: "_root_17k2j_1",
|
|
77
90
|
image: "_image_17k2j_14",
|
|
78
91
|
defaultIcon: "_defaultIcon_17k2j_20",
|
|
@@ -82,32 +95,32 @@ var m = {
|
|
|
82
95
|
md: "_md_17k2j_44",
|
|
83
96
|
lg: "_lg_17k2j_49",
|
|
84
97
|
xl: "_xl_17k2j_54"
|
|
85
|
-
},
|
|
86
|
-
let [s,
|
|
98
|
+
}, v = ({ src: e, alt: t, name: n, size: r = "md", fallback: i, className: a, ...o }) => {
|
|
99
|
+
let [s, l] = c(!1), d = t ?? n, f = (e) => e.split(" ").map((e) => e[0]).slice(0, 2).join(""), p = () => e && !s ? /* @__PURE__ */ u("img", {
|
|
87
100
|
src: e,
|
|
88
101
|
alt: d || "",
|
|
89
|
-
className:
|
|
90
|
-
onError: () =>
|
|
91
|
-
}) : i ? /* @__PURE__ */
|
|
92
|
-
className:
|
|
102
|
+
className: _.image,
|
|
103
|
+
onError: () => l(!0)
|
|
104
|
+
}) : i ? /* @__PURE__ */ u("span", {
|
|
105
|
+
className: _.fallback,
|
|
93
106
|
children: i
|
|
94
|
-
}) : n ? /* @__PURE__ */
|
|
95
|
-
className:
|
|
107
|
+
}) : n ? /* @__PURE__ */ u("span", {
|
|
108
|
+
className: _.fallback,
|
|
96
109
|
children: f(n)
|
|
97
|
-
}) : /* @__PURE__ */
|
|
110
|
+
}) : /* @__PURE__ */ u("svg", {
|
|
98
111
|
viewBox: "0 0 24 24",
|
|
99
112
|
fill: "currentColor",
|
|
100
|
-
className:
|
|
113
|
+
className: m(_.image, _.defaultIcon),
|
|
101
114
|
"aria-hidden": "true",
|
|
102
115
|
focusable: "false",
|
|
103
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ u("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })
|
|
104
117
|
});
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
className:
|
|
118
|
+
return /* @__PURE__ */ u("div", {
|
|
119
|
+
className: m(_.root, _[r], a),
|
|
107
120
|
...o,
|
|
108
|
-
children:
|
|
121
|
+
children: p()
|
|
109
122
|
});
|
|
110
|
-
},
|
|
123
|
+
}, y = {
|
|
111
124
|
root: "_root_13wyx_1",
|
|
112
125
|
sm: "_sm_13wyx_12",
|
|
113
126
|
md: "_md_13wyx_18",
|
|
@@ -120,13 +133,13 @@ var m = {
|
|
|
120
133
|
info: "_info_13wyx_47",
|
|
121
134
|
subtle: "_subtle_13wyx_53",
|
|
122
135
|
outline: "_outline_13wyx_75"
|
|
123
|
-
},
|
|
124
|
-
className:
|
|
136
|
+
}, b = ({ variant: e = "solid", size: t = "md", intent: n = "neutral", className: r, children: i, ...a }) => /* @__PURE__ */ u("span", {
|
|
137
|
+
className: m(y.root, y[e], y[t], y[n], r),
|
|
125
138
|
...a,
|
|
126
139
|
children: i
|
|
127
|
-
}),
|
|
128
|
-
box:
|
|
129
|
-
fullWidth:
|
|
140
|
+
}), x = "_box_ynnco_1", S = "_fullWidth_ynnco_5", C = "_border_ynnco_683", w = "_borderBottom_ynnco_686", T = {
|
|
141
|
+
box: x,
|
|
142
|
+
fullWidth: S,
|
|
130
143
|
"display-block": "_display-block_ynnco_10",
|
|
131
144
|
"display-flex": "_display-flex_ynnco_13",
|
|
132
145
|
"display-inline-flex": "_display-inline-flex_ynnco_16",
|
|
@@ -326,8 +339,8 @@ var m = {
|
|
|
326
339
|
"bg-success-subtle": "_bg-success-subtle_ynnco_672",
|
|
327
340
|
"bg-warning-subtle": "_bg-warning-subtle_ynnco_675",
|
|
328
341
|
"bg-danger-subtle": "_bg-danger-subtle_ynnco_678",
|
|
329
|
-
border:
|
|
330
|
-
borderBottom:
|
|
342
|
+
border: C,
|
|
343
|
+
borderBottom: w,
|
|
331
344
|
"borderColor-main": "_borderColor-main_ynnco_691",
|
|
332
345
|
"borderColor-subtle": "_borderColor-subtle_ynnco_694",
|
|
333
346
|
"borderColor-danger": "_borderColor-danger_ynnco_697",
|
|
@@ -342,64 +355,64 @@ var m = {
|
|
|
342
355
|
"borderRadius-md": "_borderRadius-md_ynnco_728",
|
|
343
356
|
"borderRadius-lg": "_borderRadius-lg_ynnco_731",
|
|
344
357
|
"borderRadius-full": "_borderRadius-full_ynnco_734"
|
|
345
|
-
},
|
|
358
|
+
}, E = (e, t, n, r, i, a, o, s) => {
|
|
346
359
|
let c = {};
|
|
347
360
|
return typeof t == "string" && (c[e] = t), typeof i == "string" && (c[`${e}Top`] = i), typeof a == "string" && (c[`${e}Bottom`] = a), typeof o == "string" && (c[`${e}Left`] = o), typeof s == "string" && (c[`${e}Right`] = s), typeof n == "string" && (c[`${e}Left`] = n, c[`${e}Right`] = n), typeof r == "string" && (c[`${e}Top`] = r, c[`${e}Bottom`] = r), c;
|
|
348
|
-
},
|
|
349
|
-
let
|
|
350
|
-
...
|
|
351
|
-
flexGrow:
|
|
352
|
-
flexShrink:
|
|
353
|
-
flex:
|
|
361
|
+
}, D = ({ children: e, as: t = "div", display: n, padding: r, paddingX: i, paddingY: a, paddingTop: o, paddingBottom: s, paddingLeft: c, paddingRight: l, margin: d, marginX: f, marginY: p, marginTop: h, marginBottom: g, marginLeft: _, marginRight: v, gap: y, flexDirection: b, alignItems: x, justifyContent: S, flexWrap: C, flexGrow: w, flexShrink: D, flex: O, fullWidth: ee, textAlign: k, width: A, height: j, maxWidth: M, gridTemplateColumns: te, backgroundColor: N, border: P, borderBottom: ne, borderColor: F, borderRadius: re, className: ie, style: ae, ...oe }) => {
|
|
362
|
+
let se = {
|
|
363
|
+
...ae,
|
|
364
|
+
flexGrow: w,
|
|
365
|
+
flexShrink: D,
|
|
366
|
+
flex: O,
|
|
354
367
|
width: A,
|
|
355
|
-
height:
|
|
356
|
-
maxWidth:
|
|
357
|
-
gridTemplateColumns:
|
|
368
|
+
height: j,
|
|
369
|
+
maxWidth: M,
|
|
370
|
+
gridTemplateColumns: te,
|
|
358
371
|
gap: typeof y == "string" ? y : void 0,
|
|
359
|
-
...
|
|
360
|
-
...
|
|
372
|
+
...E("padding", r, i, a, o, s, c, l),
|
|
373
|
+
...E("margin", d, f, p, h, g, _, v)
|
|
361
374
|
};
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
className:
|
|
364
|
-
style:
|
|
365
|
-
...
|
|
375
|
+
return /* @__PURE__ */ u(t, {
|
|
376
|
+
className: m(T.box, n && T[`display-${n}`], k && T[`textAlign-${k}`], typeof r == "number" && T[`p-${r}`], typeof i == "number" && T[`px-${i}`], typeof a == "number" && T[`py-${a}`], typeof o == "number" && T[`pt-${o}`], typeof s == "number" && T[`pb-${s}`], typeof c == "number" && T[`pl-${c}`], typeof l == "number" && T[`pr-${l}`], typeof d == "number" && T[`margin-${d}`], typeof f == "number" && T[`marginX-${f}`], typeof p == "number" && T[`marginY-${p}`], typeof h == "number" && T[`marginTop-${h}`], typeof g == "number" && T[`marginBottom-${g}`], typeof _ == "number" && T[`marginLeft-${_}`], typeof v == "number" && T[`marginRight-${v}`], typeof y == "number" && T[`gap-${y}`], b && T[`flexDirection-${b}`], x && T[`alignItems-${x}`], S && T[`justifyContent-${S}`], C && T[`flexWrap-${C}`], N && T[`bg-${N}`], P && T.border, ne && T.borderBottom, F && T[`borderColor-${F}`], re && T[`borderRadius-${re}`], ee && T.fullWidth, ie),
|
|
377
|
+
style: se,
|
|
378
|
+
...oe,
|
|
366
379
|
children: e
|
|
367
380
|
});
|
|
368
|
-
},
|
|
381
|
+
}, O = {
|
|
369
382
|
root: "_root_10ujs_1",
|
|
370
383
|
list: "_list_10ujs_6",
|
|
371
384
|
item: "_item_10ujs_16",
|
|
372
385
|
link: "_link_10ujs_21",
|
|
373
386
|
current: "_current_10ujs_27",
|
|
374
387
|
separator: "_separator_10ujs_38"
|
|
375
|
-
},
|
|
388
|
+
}, ee = ({ href: e, isCurrent: t, children: n, className: r, ...i }) => {
|
|
376
389
|
let a = e && !t ? "a" : "span";
|
|
377
|
-
return /* @__PURE__ */
|
|
378
|
-
className:
|
|
379
|
-
children: /* @__PURE__ */
|
|
390
|
+
return /* @__PURE__ */ u("li", {
|
|
391
|
+
className: O.item,
|
|
392
|
+
children: /* @__PURE__ */ u(a, {
|
|
380
393
|
href: e,
|
|
381
|
-
className:
|
|
394
|
+
className: m(O.link, t && O.current, r),
|
|
382
395
|
"aria-current": t ? "page" : void 0,
|
|
383
396
|
...i,
|
|
384
397
|
children: n
|
|
385
398
|
})
|
|
386
399
|
});
|
|
387
|
-
},
|
|
400
|
+
}, k = ({ children: n, separator: r = "/", className: i, ...a }) => {
|
|
388
401
|
let o = e.toArray(n);
|
|
389
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ u("nav", {
|
|
390
403
|
"aria-label": "Breadcrumbs",
|
|
391
|
-
className:
|
|
404
|
+
className: m(O.root, i),
|
|
392
405
|
...a,
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
-
className:
|
|
395
|
-
children: o.map((e, n) => /* @__PURE__ */
|
|
396
|
-
className:
|
|
406
|
+
children: /* @__PURE__ */ u("ol", {
|
|
407
|
+
className: O.list,
|
|
408
|
+
children: o.map((e, n) => /* @__PURE__ */ d(t, { children: [e, n < o.length - 1 && /* @__PURE__ */ u("li", {
|
|
409
|
+
className: O.separator,
|
|
397
410
|
"aria-hidden": "true",
|
|
398
411
|
children: r
|
|
399
412
|
})] }, n))
|
|
400
413
|
})
|
|
401
414
|
});
|
|
402
|
-
},
|
|
415
|
+
}, A = {
|
|
403
416
|
root: "_root_1vhu8_1",
|
|
404
417
|
xs: "_xs_1vhu8_31",
|
|
405
418
|
sm: "_sm_1vhu8_39",
|
|
@@ -417,18 +430,18 @@ var m = {
|
|
|
417
430
|
loading: "_loading_1vhu8_249",
|
|
418
431
|
spinner: "_spinner_1vhu8_253",
|
|
419
432
|
spin: "_spin_1vhu8_253"
|
|
420
|
-
},
|
|
433
|
+
}, j = ({ size: e = "md", variant: t = "outline", intent: n = "neutral", fullWidth: r = !1, isLoading: i = !1, className: a, children: o, disabled: s, ...c }) => /* @__PURE__ */ d("button", {
|
|
421
434
|
type: "button",
|
|
422
|
-
className:
|
|
435
|
+
className: m(A.root, A[e], A[t], A[n], r && A.fullWidth, i && A.loading, a),
|
|
423
436
|
disabled: s || i,
|
|
424
437
|
"aria-busy": i || void 0,
|
|
425
438
|
...c,
|
|
426
|
-
children: [i && /* @__PURE__ */
|
|
427
|
-
className:
|
|
439
|
+
children: [i && /* @__PURE__ */ u("svg", {
|
|
440
|
+
className: A.spinner,
|
|
428
441
|
viewBox: "0 0 16 16",
|
|
429
442
|
fill: "none",
|
|
430
443
|
"aria-hidden": "true",
|
|
431
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ u("circle", {
|
|
432
445
|
cx: "8",
|
|
433
446
|
cy: "8",
|
|
434
447
|
r: "6",
|
|
@@ -438,12 +451,12 @@ var m = {
|
|
|
438
451
|
strokeDashoffset: "10"
|
|
439
452
|
})
|
|
440
453
|
}), o]
|
|
441
|
-
}),
|
|
442
|
-
root:
|
|
443
|
-
bordered:
|
|
444
|
-
shadowNone:
|
|
445
|
-
shadowSm:
|
|
446
|
-
shadowMd:
|
|
454
|
+
}), M = "_root_1k781_1", te = "_bordered_1k781_9", N = "_shadowNone_1k781_14", P = "_shadowSm_1k781_17", ne = "_shadowMd_1k781_20", F = "_pNone_1k781_65", re = "_pSm_1k781_68", ie = "_pMd_1k781_71", ae = "_pLg_1k781_74", oe = "_header_1k781_79", se = "_title_1k781_85", ce = "_subtitle_1k781_93", le = "_content_1k781_100", ue = "_footer_1k781_104", I = {
|
|
455
|
+
root: M,
|
|
456
|
+
bordered: te,
|
|
457
|
+
shadowNone: N,
|
|
458
|
+
shadowSm: P,
|
|
459
|
+
shadowMd: ne,
|
|
447
460
|
"borderColor-main": "_borderColor-main_1k781_25",
|
|
448
461
|
"borderColor-subtle": "_borderColor-subtle_1k781_28",
|
|
449
462
|
"borderColor-danger": "_borderColor-danger_1k781_31",
|
|
@@ -456,8 +469,8 @@ var m = {
|
|
|
456
469
|
"backgroundColor-success-subtle": "_backgroundColor-success-subtle_1k781_54",
|
|
457
470
|
"backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_1k781_57",
|
|
458
471
|
"backgroundColor-info-subtle": "_backgroundColor-info-subtle_1k781_60",
|
|
459
|
-
pNone:
|
|
460
|
-
pSm:
|
|
472
|
+
pNone: F,
|
|
473
|
+
pSm: re,
|
|
461
474
|
pMd: ie,
|
|
462
475
|
pLg: ae,
|
|
463
476
|
header: oe,
|
|
@@ -467,95 +480,95 @@ var m = {
|
|
|
467
480
|
footer: ue
|
|
468
481
|
}, de = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
|
|
469
482
|
let c = {
|
|
470
|
-
none:
|
|
471
|
-
sm:
|
|
472
|
-
md:
|
|
473
|
-
lg:
|
|
474
|
-
}[e],
|
|
475
|
-
none:
|
|
476
|
-
sm:
|
|
477
|
-
md:
|
|
483
|
+
none: I.pNone,
|
|
484
|
+
sm: I.pSm,
|
|
485
|
+
md: I.pMd,
|
|
486
|
+
lg: I.pLg
|
|
487
|
+
}[e], l = {
|
|
488
|
+
none: I.shadowNone,
|
|
489
|
+
sm: I.shadowSm,
|
|
490
|
+
md: I.shadowMd
|
|
478
491
|
}[t];
|
|
479
|
-
return /* @__PURE__ */
|
|
480
|
-
className:
|
|
492
|
+
return /* @__PURE__ */ u("div", {
|
|
493
|
+
className: m(I.root, c, l, n && I.bordered, r && I[`borderColor-${r}`], i && I[`backgroundColor-${i}`], a),
|
|
481
494
|
...s,
|
|
482
495
|
children: o
|
|
483
496
|
});
|
|
484
|
-
}, fe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */
|
|
485
|
-
className:
|
|
497
|
+
}, fe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ d("div", {
|
|
498
|
+
className: m(I.header, n),
|
|
486
499
|
...i,
|
|
487
500
|
children: [
|
|
488
|
-
e && /* @__PURE__ */
|
|
489
|
-
className:
|
|
501
|
+
e && /* @__PURE__ */ u("h3", {
|
|
502
|
+
className: I.title,
|
|
490
503
|
children: e
|
|
491
504
|
}),
|
|
492
|
-
t && /* @__PURE__ */
|
|
493
|
-
className:
|
|
505
|
+
t && /* @__PURE__ */ u("p", {
|
|
506
|
+
className: I.subtitle,
|
|
494
507
|
children: t
|
|
495
508
|
}),
|
|
496
509
|
r
|
|
497
510
|
]
|
|
498
|
-
}), pe = ({ className: e, children: t, ...n }) => /* @__PURE__ */
|
|
499
|
-
className:
|
|
511
|
+
}), pe = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
512
|
+
className: m(I.content, e),
|
|
500
513
|
...n,
|
|
501
514
|
children: t
|
|
502
|
-
}), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */
|
|
503
|
-
className:
|
|
515
|
+
}), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
516
|
+
className: m(I.footer, e),
|
|
504
517
|
...n,
|
|
505
518
|
children: t
|
|
506
|
-
}),
|
|
507
|
-
wrapper: "
|
|
508
|
-
container: "
|
|
509
|
-
disabled: "
|
|
510
|
-
input: "
|
|
511
|
-
control: "
|
|
512
|
-
checkmark: "
|
|
513
|
-
label: "
|
|
514
|
-
error: "
|
|
515
|
-
helperText: "
|
|
516
|
-
errorText: "
|
|
519
|
+
}), L = {
|
|
520
|
+
wrapper: "_wrapper_mfefa_1",
|
|
521
|
+
container: "_container_mfefa_7",
|
|
522
|
+
disabled: "_disabled_mfefa_15",
|
|
523
|
+
input: "_input_mfefa_20",
|
|
524
|
+
control: "_control_mfefa_28",
|
|
525
|
+
checkmark: "_checkmark_mfefa_57",
|
|
526
|
+
label: "_label_mfefa_68",
|
|
527
|
+
error: "_error_mfefa_75",
|
|
528
|
+
helperText: "_helperText_mfefa_79",
|
|
529
|
+
errorText: "_errorText_mfefa_86"
|
|
517
530
|
}, he = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: o, ...s }) => {
|
|
518
|
-
let c = a(),
|
|
519
|
-
return /* @__PURE__ */
|
|
520
|
-
className:
|
|
521
|
-
children: [/* @__PURE__ */
|
|
522
|
-
htmlFor:
|
|
523
|
-
className:
|
|
531
|
+
let c = a(), l = o ?? `ds-checkbox-${c}`, f = n ? `${l}-help` : void 0;
|
|
532
|
+
return /* @__PURE__ */ d("div", {
|
|
533
|
+
className: m(L.wrapper, r),
|
|
534
|
+
children: [/* @__PURE__ */ d("label", {
|
|
535
|
+
htmlFor: l,
|
|
536
|
+
className: m(L.container, i && L.disabled, t && L.error),
|
|
524
537
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ u("input", {
|
|
526
539
|
type: "checkbox",
|
|
527
|
-
id:
|
|
540
|
+
id: l,
|
|
528
541
|
disabled: i,
|
|
529
|
-
className:
|
|
542
|
+
className: L.input,
|
|
530
543
|
"aria-describedby": f,
|
|
531
544
|
"aria-invalid": t || void 0,
|
|
532
545
|
...s
|
|
533
546
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
className:
|
|
536
|
-
children: /* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ u("span", {
|
|
548
|
+
className: L.control,
|
|
549
|
+
children: /* @__PURE__ */ u("svg", {
|
|
537
550
|
viewBox: "0 0 24 24",
|
|
538
551
|
fill: "none",
|
|
539
552
|
stroke: "currentColor",
|
|
540
553
|
strokeWidth: "4",
|
|
541
554
|
strokeLinecap: "round",
|
|
542
555
|
strokeLinejoin: "round",
|
|
543
|
-
className:
|
|
544
|
-
children: /* @__PURE__ */
|
|
556
|
+
className: L.checkmark,
|
|
557
|
+
children: /* @__PURE__ */ u("polyline", { points: "20 6 9 17 4 12" })
|
|
545
558
|
})
|
|
546
559
|
}),
|
|
547
|
-
e && /* @__PURE__ */
|
|
548
|
-
className:
|
|
560
|
+
e && /* @__PURE__ */ u("span", {
|
|
561
|
+
className: L.label,
|
|
549
562
|
children: e
|
|
550
563
|
})
|
|
551
564
|
]
|
|
552
|
-
}), n && /* @__PURE__ */
|
|
565
|
+
}), n && /* @__PURE__ */ u("span", {
|
|
553
566
|
id: f,
|
|
554
|
-
className:
|
|
567
|
+
className: m(L.helperText, t && L.errorText),
|
|
555
568
|
children: n
|
|
556
569
|
})]
|
|
557
570
|
});
|
|
558
|
-
},
|
|
571
|
+
}, R = {
|
|
559
572
|
wrapper: "_wrapper_qhe61_1",
|
|
560
573
|
fullWidth: "_fullWidth_qhe61_9",
|
|
561
574
|
label: "_label_qhe61_13",
|
|
@@ -575,73 +588,73 @@ var m = {
|
|
|
575
588
|
optionDescription: "_optionDescription_qhe61_128",
|
|
576
589
|
helperText: "_helperText_qhe61_133",
|
|
577
590
|
errorText: "_errorText_qhe61_138"
|
|
578
|
-
}, ge = ({ options: e, value: t, defaultValue: n, onChange: r, placeholder: o = "Select an option", label:
|
|
579
|
-
let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [
|
|
591
|
+
}, ge = ({ options: e, value: t, defaultValue: n, onChange: r, placeholder: o = "Select an option", label: l, helperText: f, error: p, disabled: h, size: g = "md", className: _, id: v, fullWidth: y = !1 }) => {
|
|
592
|
+
let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [T, E] = c(n), [D, O] = c(-1), ee = s(null), k = s(null), A = t === void 0 ? T : t, j = e.find((e) => e.value === A), M = D >= 0 ? `${x}-opt-${D}` : void 0, te = () => {
|
|
580
593
|
if (!h) {
|
|
581
594
|
let t = !C;
|
|
582
595
|
if (w(t), t) {
|
|
583
|
-
if (
|
|
596
|
+
if (D === -1) {
|
|
584
597
|
let t = e.findIndex((e) => e.value === A);
|
|
585
|
-
|
|
598
|
+
O(t >= 0 ? t : 0);
|
|
586
599
|
}
|
|
587
|
-
} else
|
|
600
|
+
} else O(-1);
|
|
588
601
|
}
|
|
589
|
-
},
|
|
590
|
-
e.disabled || (t === void 0 &&
|
|
602
|
+
}, N = (e, n) => {
|
|
603
|
+
e.disabled || (t === void 0 && E(e.value), r?.(e.value), w(!1), O(n), k.current?.focus());
|
|
591
604
|
};
|
|
592
605
|
return i(() => {
|
|
593
|
-
C &&
|
|
606
|
+
C && D >= 0 && document.getElementById(`${x}-opt-${D}`)?.scrollIntoView({ block: "nearest" });
|
|
594
607
|
}, [
|
|
595
|
-
|
|
608
|
+
D,
|
|
596
609
|
C,
|
|
597
610
|
x
|
|
598
611
|
]), i(() => {
|
|
599
612
|
let e = (e) => {
|
|
600
|
-
|
|
613
|
+
ee.current && !ee.current.contains(e.target) && (w(!1), O(-1));
|
|
601
614
|
};
|
|
602
615
|
return document.addEventListener("mousedown", e), () => {
|
|
603
616
|
document.removeEventListener("mousedown", e);
|
|
604
617
|
};
|
|
605
|
-
}, []), /* @__PURE__ */
|
|
606
|
-
className:
|
|
607
|
-
ref:
|
|
618
|
+
}, []), /* @__PURE__ */ d("div", {
|
|
619
|
+
className: m(R.wrapper, R[g], y && R.fullWidth, p && R.error, _),
|
|
620
|
+
ref: ee,
|
|
608
621
|
children: [
|
|
609
|
-
|
|
622
|
+
l && /* @__PURE__ */ u("label", {
|
|
610
623
|
htmlFor: x,
|
|
611
|
-
className:
|
|
612
|
-
children:
|
|
624
|
+
className: R.label,
|
|
625
|
+
children: l
|
|
613
626
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
className:
|
|
616
|
-
children: [/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ d("div", {
|
|
628
|
+
className: R.container,
|
|
629
|
+
children: [/* @__PURE__ */ d("button", {
|
|
617
630
|
id: x,
|
|
618
631
|
ref: k,
|
|
619
632
|
type: "button",
|
|
620
|
-
className:
|
|
621
|
-
onClick:
|
|
633
|
+
className: m(R.trigger, C && R.isOpen),
|
|
634
|
+
onClick: te,
|
|
622
635
|
onKeyDown: (t) => {
|
|
623
636
|
if (!h) switch (t.key) {
|
|
624
637
|
case "ArrowDown":
|
|
625
|
-
t.preventDefault(), C ?
|
|
638
|
+
t.preventDefault(), C ? O((t) => t < e.length - 1 ? t + 1 : t) : (w(!0), O(e.findIndex((e) => e.value === A) || 0));
|
|
626
639
|
break;
|
|
627
640
|
case "ArrowUp":
|
|
628
|
-
t.preventDefault(), C ?
|
|
641
|
+
t.preventDefault(), C ? O((e) => e > 0 ? e - 1 : e) : (w(!0), O(e.findIndex((e) => e.value === A) || e.length - 1));
|
|
629
642
|
break;
|
|
630
643
|
case "Enter":
|
|
631
644
|
case " ":
|
|
632
|
-
t.preventDefault(), C ?
|
|
645
|
+
t.preventDefault(), C ? D >= 0 && N(e[D], D) : (w(!0), O(e.findIndex((e) => e.value === A) || 0));
|
|
633
646
|
break;
|
|
634
647
|
case "Escape":
|
|
635
|
-
C && (t.preventDefault(), w(!1),
|
|
648
|
+
C && (t.preventDefault(), w(!1), O(-1), k.current?.focus());
|
|
636
649
|
break;
|
|
637
650
|
case "Tab":
|
|
638
|
-
C && (w(!1),
|
|
651
|
+
C && (w(!1), O(-1));
|
|
639
652
|
break;
|
|
640
653
|
case "Home":
|
|
641
|
-
C && (t.preventDefault(),
|
|
654
|
+
C && (t.preventDefault(), O(0));
|
|
642
655
|
break;
|
|
643
656
|
case "End":
|
|
644
|
-
C && (t.preventDefault(),
|
|
657
|
+
C && (t.preventDefault(), O(e.length - 1));
|
|
645
658
|
break;
|
|
646
659
|
default: break;
|
|
647
660
|
}
|
|
@@ -650,22 +663,22 @@ var m = {
|
|
|
650
663
|
"aria-haspopup": "listbox",
|
|
651
664
|
"aria-expanded": C,
|
|
652
665
|
"aria-describedby": S,
|
|
653
|
-
"aria-invalid":
|
|
666
|
+
"aria-invalid": p || void 0,
|
|
654
667
|
"aria-controls": C ? `${x}-menu` : void 0,
|
|
655
|
-
"aria-activedescendant": C ?
|
|
656
|
-
children: [/* @__PURE__ */
|
|
657
|
-
className:
|
|
658
|
-
children:
|
|
659
|
-
}), /* @__PURE__ */
|
|
660
|
-
className:
|
|
668
|
+
"aria-activedescendant": C ? M : void 0,
|
|
669
|
+
children: [/* @__PURE__ */ u("span", {
|
|
670
|
+
className: R.selectedLabel,
|
|
671
|
+
children: j ? j.label : o
|
|
672
|
+
}), /* @__PURE__ */ u("span", {
|
|
673
|
+
className: R.icon,
|
|
661
674
|
"aria-hidden": "true",
|
|
662
|
-
children: /* @__PURE__ */
|
|
675
|
+
children: /* @__PURE__ */ u("svg", {
|
|
663
676
|
width: "12",
|
|
664
677
|
height: "12",
|
|
665
678
|
viewBox: "0 0 12 12",
|
|
666
679
|
fill: "none",
|
|
667
680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
668
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ u("path", {
|
|
669
682
|
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
670
683
|
stroke: "currentColor",
|
|
671
684
|
strokeWidth: "1.5",
|
|
@@ -674,34 +687,34 @@ var m = {
|
|
|
674
687
|
})
|
|
675
688
|
})
|
|
676
689
|
})]
|
|
677
|
-
}), C && /* @__PURE__ */
|
|
690
|
+
}), C && /* @__PURE__ */ u("ul", {
|
|
678
691
|
id: `${x}-menu`,
|
|
679
|
-
className:
|
|
692
|
+
className: R.menu,
|
|
680
693
|
role: "listbox",
|
|
681
|
-
"aria-labelledby":
|
|
694
|
+
"aria-labelledby": l ? void 0 : x,
|
|
682
695
|
children: e.map((e, t) => {
|
|
683
|
-
let n = e.value === A, r = t ===
|
|
684
|
-
return /* @__PURE__ */
|
|
696
|
+
let n = e.value === A, r = t === D;
|
|
697
|
+
return /* @__PURE__ */ d("li", {
|
|
685
698
|
id: `${x}-opt-${t}`,
|
|
686
699
|
role: "option",
|
|
687
700
|
"aria-selected": n,
|
|
688
|
-
className:
|
|
689
|
-
onClick: () =>
|
|
690
|
-
onMouseEnter: () => !e.disabled &&
|
|
691
|
-
children: [/* @__PURE__ */
|
|
692
|
-
className:
|
|
701
|
+
className: m(R.option, n && R.optionSelected, r && R.optionFocused, e.disabled && R.optionDisabled),
|
|
702
|
+
onClick: () => N(e, t),
|
|
703
|
+
onMouseEnter: () => !e.disabled && O(t),
|
|
704
|
+
children: [/* @__PURE__ */ u("span", {
|
|
705
|
+
className: R.optionLabel,
|
|
693
706
|
children: e.label
|
|
694
|
-
}), e.description && /* @__PURE__ */
|
|
695
|
-
className:
|
|
707
|
+
}), e.description && /* @__PURE__ */ u("span", {
|
|
708
|
+
className: R.optionDescription,
|
|
696
709
|
children: e.description
|
|
697
710
|
})]
|
|
698
711
|
}, e.value);
|
|
699
712
|
})
|
|
700
713
|
})]
|
|
701
714
|
}),
|
|
702
|
-
f && /* @__PURE__ */
|
|
715
|
+
f && /* @__PURE__ */ u("span", {
|
|
703
716
|
id: S,
|
|
704
|
-
className:
|
|
717
|
+
className: m(R.helperText, p && R.errorText),
|
|
705
718
|
children: f
|
|
706
719
|
})
|
|
707
720
|
]
|
|
@@ -718,18 +731,18 @@ var m = {
|
|
|
718
731
|
"--divider-spacing": ve(r),
|
|
719
732
|
"--divider-inset": ve(i)
|
|
720
733
|
};
|
|
721
|
-
return e === "vertical" ? /* @__PURE__ */
|
|
734
|
+
return e === "vertical" ? /* @__PURE__ */ u("div", {
|
|
722
735
|
role: "separator",
|
|
723
736
|
"aria-orientation": "vertical",
|
|
724
|
-
className:
|
|
737
|
+
className: m(_e.root, _e.vertical, a),
|
|
725
738
|
style: c,
|
|
726
739
|
...s
|
|
727
|
-
}) : /* @__PURE__ */
|
|
728
|
-
className:
|
|
740
|
+
}) : /* @__PURE__ */ u("hr", {
|
|
741
|
+
className: m(_e.root, _e.horizontal, a),
|
|
729
742
|
style: c,
|
|
730
743
|
...s
|
|
731
744
|
});
|
|
732
|
-
},
|
|
745
|
+
}, z = {
|
|
733
746
|
root: "_root_1ujj3_1",
|
|
734
747
|
container: "_container_1ujj3_8",
|
|
735
748
|
sideContainer: "_sideContainer_1ujj3_18",
|
|
@@ -739,45 +752,45 @@ var m = {
|
|
|
739
752
|
title: "_title_1ujj3_44",
|
|
740
753
|
welcome: "_welcome_1ujj3_52"
|
|
741
754
|
}, be = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
|
|
742
|
-
let
|
|
755
|
+
let l = {
|
|
743
756
|
size: "sm",
|
|
744
757
|
intent: "info"
|
|
745
758
|
};
|
|
746
|
-
return /* @__PURE__ */
|
|
759
|
+
return /* @__PURE__ */ u("header", {
|
|
747
760
|
id: e,
|
|
748
|
-
className:
|
|
749
|
-
children: /* @__PURE__ */
|
|
750
|
-
className:
|
|
761
|
+
className: m(z.root, s),
|
|
762
|
+
children: /* @__PURE__ */ d("div", {
|
|
763
|
+
className: z.container,
|
|
751
764
|
style: { maxWidth: c },
|
|
752
|
-
children: [/* @__PURE__ */
|
|
753
|
-
className:
|
|
754
|
-
children: [t, n ? /* @__PURE__ */
|
|
755
|
-
className:
|
|
765
|
+
children: [/* @__PURE__ */ d("div", {
|
|
766
|
+
className: m(z.sideContainer, z.leftSide),
|
|
767
|
+
children: [t, n ? /* @__PURE__ */ u("h1", {
|
|
768
|
+
className: z.title,
|
|
756
769
|
children: n
|
|
757
770
|
}) : null]
|
|
758
|
-
}), /* @__PURE__ */
|
|
759
|
-
className:
|
|
760
|
-
children: r ? /* @__PURE__ */
|
|
761
|
-
className:
|
|
762
|
-
children: [/* @__PURE__ */
|
|
763
|
-
className:
|
|
771
|
+
}), /* @__PURE__ */ u("div", {
|
|
772
|
+
className: m(z.sideContainer, z.rightSide),
|
|
773
|
+
children: r ? /* @__PURE__ */ d("div", {
|
|
774
|
+
className: z.actions,
|
|
775
|
+
children: [/* @__PURE__ */ d("span", {
|
|
776
|
+
className: z.welcome,
|
|
764
777
|
children: [
|
|
765
778
|
"Welcome, ",
|
|
766
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ u("strong", { children: r.name }),
|
|
767
780
|
"!"
|
|
768
781
|
]
|
|
769
|
-
}), /* @__PURE__ */
|
|
770
|
-
...
|
|
782
|
+
}), /* @__PURE__ */ u(j, {
|
|
783
|
+
...l,
|
|
771
784
|
onClick: a,
|
|
772
785
|
children: "Log out"
|
|
773
786
|
})]
|
|
774
|
-
}) : /* @__PURE__ */
|
|
775
|
-
className:
|
|
776
|
-
children: [i ? /* @__PURE__ */
|
|
777
|
-
...
|
|
787
|
+
}) : /* @__PURE__ */ d("div", {
|
|
788
|
+
className: z.actions,
|
|
789
|
+
children: [i ? /* @__PURE__ */ u(j, {
|
|
790
|
+
...l,
|
|
778
791
|
onClick: i,
|
|
779
792
|
children: "Log in"
|
|
780
|
-
}) : null, o ? /* @__PURE__ */
|
|
793
|
+
}) : null, o ? /* @__PURE__ */ u(j, {
|
|
781
794
|
size: "sm",
|
|
782
795
|
intent: "info",
|
|
783
796
|
variant: "solid",
|
|
@@ -788,37 +801,37 @@ var m = {
|
|
|
788
801
|
})]
|
|
789
802
|
})
|
|
790
803
|
});
|
|
791
|
-
},
|
|
792
|
-
root: "
|
|
793
|
-
container: "
|
|
794
|
-
leftSection: "
|
|
795
|
-
nav: "
|
|
796
|
-
navList: "
|
|
797
|
-
navItem: "
|
|
798
|
-
navLink: "
|
|
799
|
-
disabled: "
|
|
800
|
-
active: "
|
|
801
|
-
rightSection: "
|
|
802
|
-
}, xe = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */
|
|
804
|
+
}, B = {
|
|
805
|
+
root: "_root_1eu6u_1",
|
|
806
|
+
container: "_container_1eu6u_7",
|
|
807
|
+
leftSection: "_leftSection_1eu6u_16",
|
|
808
|
+
nav: "_nav_1eu6u_22",
|
|
809
|
+
navList: "_navList_1eu6u_28",
|
|
810
|
+
navItem: "_navItem_1eu6u_36",
|
|
811
|
+
navLink: "_navLink_1eu6u_41",
|
|
812
|
+
disabled: "_disabled_1eu6u_59",
|
|
813
|
+
active: "_active_1eu6u_63",
|
|
814
|
+
rightSection: "_rightSection_1eu6u_73"
|
|
815
|
+
}, xe = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */ u("nav", {
|
|
803
816
|
id: e,
|
|
804
|
-
className:
|
|
805
|
-
children: /* @__PURE__ */
|
|
806
|
-
className:
|
|
817
|
+
className: m(B.root, o),
|
|
818
|
+
children: /* @__PURE__ */ d("div", {
|
|
819
|
+
className: B.container,
|
|
807
820
|
style: { maxWidth: s },
|
|
808
821
|
children: [
|
|
809
|
-
r && /* @__PURE__ */
|
|
810
|
-
className:
|
|
822
|
+
r && /* @__PURE__ */ u("div", {
|
|
823
|
+
className: B.leftSection,
|
|
811
824
|
children: r
|
|
812
825
|
}),
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
className:
|
|
815
|
-
children: /* @__PURE__ */
|
|
816
|
-
className:
|
|
817
|
-
children: t.map((e) => /* @__PURE__ */
|
|
818
|
-
className:
|
|
819
|
-
children: /* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ u("div", {
|
|
827
|
+
className: B.nav,
|
|
828
|
+
children: /* @__PURE__ */ u("ul", {
|
|
829
|
+
className: B.navList,
|
|
830
|
+
children: t.map((e) => /* @__PURE__ */ u("li", {
|
|
831
|
+
className: B.navItem,
|
|
832
|
+
children: /* @__PURE__ */ u("button", {
|
|
820
833
|
type: "button",
|
|
821
|
-
className:
|
|
834
|
+
className: m(B.navLink, n === e.id && B.active, e.disabled && B.disabled),
|
|
822
835
|
onClick: () => !e.disabled && a?.(e.id),
|
|
823
836
|
disabled: e.disabled,
|
|
824
837
|
"aria-current": n === e.id ? "page" : void 0,
|
|
@@ -827,13 +840,13 @@ var m = {
|
|
|
827
840
|
}, e.id))
|
|
828
841
|
})
|
|
829
842
|
}),
|
|
830
|
-
i && /* @__PURE__ */
|
|
831
|
-
className:
|
|
843
|
+
i && /* @__PURE__ */ u("div", {
|
|
844
|
+
className: B.rightSection,
|
|
832
845
|
children: i
|
|
833
846
|
})
|
|
834
847
|
]
|
|
835
848
|
})
|
|
836
|
-
}),
|
|
849
|
+
}), V = {
|
|
837
850
|
wrapper: "_wrapper_15ibj_1",
|
|
838
851
|
fullWidth: "_fullWidth_15ibj_8",
|
|
839
852
|
label: "_label_15ibj_13",
|
|
@@ -845,25 +858,25 @@ var m = {
|
|
|
845
858
|
helperText: "_helperText_15ibj_88",
|
|
846
859
|
errorText: "_errorText_15ibj_94"
|
|
847
860
|
}, Se = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, ...c }) => {
|
|
848
|
-
let
|
|
849
|
-
return /* @__PURE__ */
|
|
850
|
-
className:
|
|
861
|
+
let l = a(), f = s ?? `ds-input-${l}`, p = r ? `${f}-help` : void 0;
|
|
862
|
+
return /* @__PURE__ */ d("div", {
|
|
863
|
+
className: m(V.wrapper, i && V.fullWidth, o),
|
|
851
864
|
children: [
|
|
852
|
-
n && /* @__PURE__ */
|
|
865
|
+
n && /* @__PURE__ */ u("label", {
|
|
853
866
|
htmlFor: f,
|
|
854
|
-
className:
|
|
867
|
+
className: V.label,
|
|
855
868
|
children: n
|
|
856
869
|
}),
|
|
857
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ u("input", {
|
|
858
871
|
id: f,
|
|
859
|
-
className:
|
|
860
|
-
"aria-describedby":
|
|
872
|
+
className: m(V.inputRoot, V[e], t && V.error),
|
|
873
|
+
"aria-describedby": p,
|
|
861
874
|
"aria-invalid": t || void 0,
|
|
862
875
|
...c
|
|
863
876
|
}),
|
|
864
|
-
r && /* @__PURE__ */
|
|
865
|
-
id:
|
|
866
|
-
className:
|
|
877
|
+
r && /* @__PURE__ */ u("span", {
|
|
878
|
+
id: p,
|
|
879
|
+
className: m(V.helperText, t && V.errorText),
|
|
867
880
|
children: r
|
|
868
881
|
})
|
|
869
882
|
]
|
|
@@ -879,77 +892,77 @@ var m = {
|
|
|
879
892
|
sm: "_sm_wvz8q_27",
|
|
880
893
|
md: "_md_wvz8q_33",
|
|
881
894
|
lg: "_lg_wvz8q_39"
|
|
882
|
-
}, we = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */
|
|
895
|
+
}, we = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ u("div", {
|
|
883
896
|
id: e,
|
|
884
|
-
className:
|
|
897
|
+
className: m(Ce.loader, Ce[t], Ce[n], r),
|
|
885
898
|
role: "status",
|
|
886
899
|
"aria-label": "Loading"
|
|
887
|
-
}), Te = "
|
|
900
|
+
}), Te = "_root_16t5p_1", Ee = "_unordered_16t5p_6", De = "_ordered_16t5p_11", Oe = "_none_16t5p_16", ke = "_flex_16t5p_57", H = {
|
|
888
901
|
root: Te,
|
|
889
902
|
unordered: Ee,
|
|
890
903
|
ordered: De,
|
|
891
904
|
none: Oe,
|
|
892
|
-
"gap-0": "_gap-
|
|
893
|
-
"gap-1": "_gap-
|
|
894
|
-
"gap-2": "_gap-
|
|
895
|
-
"gap-3": "_gap-
|
|
896
|
-
"gap-4": "_gap-
|
|
897
|
-
"gap-5": "_gap-
|
|
898
|
-
"gap-6": "_gap-
|
|
899
|
-
"gap-8": "_gap-
|
|
900
|
-
"gap-10": "_gap-
|
|
901
|
-
"gap-12": "_gap-
|
|
902
|
-
"gap-14": "_gap-
|
|
905
|
+
"gap-0": "_gap-0_16t5p_21",
|
|
906
|
+
"gap-1": "_gap-1_16t5p_24",
|
|
907
|
+
"gap-2": "_gap-2_16t5p_27",
|
|
908
|
+
"gap-3": "_gap-3_16t5p_30",
|
|
909
|
+
"gap-4": "_gap-4_16t5p_33",
|
|
910
|
+
"gap-5": "_gap-5_16t5p_36",
|
|
911
|
+
"gap-6": "_gap-6_16t5p_39",
|
|
912
|
+
"gap-8": "_gap-8_16t5p_42",
|
|
913
|
+
"gap-10": "_gap-10_16t5p_45",
|
|
914
|
+
"gap-12": "_gap-12_16t5p_48",
|
|
915
|
+
"gap-14": "_gap-14_16t5p_51",
|
|
903
916
|
flex: ke
|
|
904
917
|
}, Ae = {
|
|
905
918
|
item: "_item_1x04p_1",
|
|
906
919
|
iconWrapper: "_iconWrapper_1x04p_6"
|
|
907
|
-
}, je = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */
|
|
908
|
-
className:
|
|
920
|
+
}, je = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ d("li", {
|
|
921
|
+
className: m(Ae.item, n),
|
|
909
922
|
...r,
|
|
910
|
-
children: [t && /* @__PURE__ */
|
|
923
|
+
children: [t && /* @__PURE__ */ u("span", {
|
|
911
924
|
className: Ae.iconWrapper,
|
|
912
925
|
children: t
|
|
913
|
-
}), /* @__PURE__ */
|
|
926
|
+
}), /* @__PURE__ */ u("div", {
|
|
914
927
|
className: Ae.content,
|
|
915
928
|
children: e
|
|
916
929
|
})]
|
|
917
|
-
}), Me = ({ children: e, variant: t = "unordered", spacing: n = 0, className: r, margin: i, marginX: a, marginY: o, marginTop: s, marginBottom: c, marginLeft:
|
|
930
|
+
}), Me = ({ children: e, variant: t = "unordered", spacing: n = 0, className: r, margin: i, marginX: a, marginY: o, marginTop: s, marginBottom: c, marginLeft: l, marginRight: d, padding: f, paddingX: p, paddingY: h, paddingTop: g, paddingBottom: _, paddingLeft: v, paddingRight: y, style: b, ...x }) => {
|
|
918
931
|
let S = t === "ordered" ? "ol" : "ul", C = {
|
|
919
932
|
...b,
|
|
920
|
-
...
|
|
921
|
-
...
|
|
933
|
+
...E("padding", f, p, h, g, _, v, y),
|
|
934
|
+
...E("margin", i, a, o, s, c, l, d),
|
|
922
935
|
"--list-spacing": typeof n == "number" ? `${n * .25}rem` : n
|
|
923
936
|
};
|
|
924
|
-
return /* @__PURE__ */
|
|
925
|
-
className:
|
|
937
|
+
return /* @__PURE__ */ u(S, {
|
|
938
|
+
className: m(H.root, H[t], typeof n == "number" && H[`gap-${n}`], (t === "none" || typeof n == "number" && n > 0 || typeof n == "string") && H.flex, typeof f == "number" && H[`p-${f}`], typeof p == "number" && H[`px-${p}`], typeof h == "number" && H[`py-${h}`], typeof g == "number" && H[`pt-${g}`], typeof _ == "number" && H[`pb-${_}`], typeof v == "number" && H[`pl-${v}`], typeof y == "number" && H[`pr-${y}`], typeof i == "number" && H[`margin-${i}`], typeof a == "number" && H[`marginX-${a}`], typeof o == "number" && H[`marginY-${o}`], typeof s == "number" && H[`marginTop-${s}`], typeof c == "number" && H[`marginBottom-${c}`], typeof l == "number" && H[`marginLeft-${l}`], typeof d == "number" && H[`marginRight-${d}`], r),
|
|
926
939
|
style: C,
|
|
927
940
|
...x,
|
|
928
941
|
children: e
|
|
929
942
|
});
|
|
930
943
|
};
|
|
931
944
|
Me.Item = je;
|
|
932
|
-
var
|
|
933
|
-
overlay: "
|
|
934
|
-
modal: "
|
|
935
|
-
header: "
|
|
936
|
-
title: "
|
|
937
|
-
closeButton: "
|
|
938
|
-
content: "
|
|
939
|
-
footer: "
|
|
940
|
-
sm: "
|
|
941
|
-
md: "
|
|
942
|
-
lg: "
|
|
943
|
-
xl: "
|
|
944
|
-
full: "
|
|
945
|
-
loading: "
|
|
946
|
-
}, Ne = ({ isOpen: e, onClose: t, title: n, children: r, footer: o, size: c = "md", isLoading:
|
|
945
|
+
var U = {
|
|
946
|
+
overlay: "_overlay_ay3tu_1",
|
|
947
|
+
modal: "_modal_ay3tu_15",
|
|
948
|
+
header: "_header_ay3tu_27",
|
|
949
|
+
title: "_title_ay3tu_35",
|
|
950
|
+
closeButton: "_closeButton_ay3tu_43",
|
|
951
|
+
content: "_content_ay3tu_55",
|
|
952
|
+
footer: "_footer_ay3tu_61",
|
|
953
|
+
sm: "_sm_ay3tu_72",
|
|
954
|
+
md: "_md_ay3tu_75",
|
|
955
|
+
lg: "_lg_ay3tu_78",
|
|
956
|
+
xl: "_xl_ay3tu_81",
|
|
957
|
+
full: "_full_ay3tu_84",
|
|
958
|
+
loading: "_loading_ay3tu_89"
|
|
959
|
+
}, Ne = ({ isOpen: e, onClose: t, title: n, children: r, footer: o, size: c = "md", isLoading: l = !1, className: p, id: h }) => {
|
|
947
960
|
let g = s(null), _ = s(null), v = s(t), y = a(), b = h ?? `ds-modal-${y}`, x = `${b}-title`;
|
|
948
961
|
return i(() => {
|
|
949
962
|
v.current = t;
|
|
950
963
|
}, [t]), i(() => {
|
|
951
964
|
let t = (e) => {
|
|
952
|
-
if (e.key === "Escape" && !
|
|
965
|
+
if (e.key === "Escape" && !l) {
|
|
953
966
|
v.current();
|
|
954
967
|
return;
|
|
955
968
|
}
|
|
@@ -958,84 +971,108 @@ var H = {
|
|
|
958
971
|
e.shiftKey ? document.activeElement === n && (r.focus(), e.preventDefault()) : document.activeElement === r && (n.focus(), e.preventDefault());
|
|
959
972
|
}
|
|
960
973
|
};
|
|
961
|
-
return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t),
|
|
974
|
+
return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t), requestAnimationFrame(() => {
|
|
962
975
|
let e = g.current?.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
963
976
|
e && e.length > 0 && e[0].focus();
|
|
964
|
-
}
|
|
977
|
+
})), () => {
|
|
965
978
|
document.body.style.overflow = "unset", window.removeEventListener("keydown", t), _.current?.focus();
|
|
966
979
|
};
|
|
967
|
-
}, [e,
|
|
968
|
-
className:
|
|
969
|
-
onClick: () => !
|
|
970
|
-
children: /* @__PURE__ */
|
|
980
|
+
}, [e, l]), e ? f(/* @__PURE__ */ u("div", {
|
|
981
|
+
className: U.overlay,
|
|
982
|
+
onClick: () => !l && t(),
|
|
983
|
+
children: /* @__PURE__ */ d("div", {
|
|
971
984
|
id: b,
|
|
972
|
-
className:
|
|
985
|
+
className: m(U.modal, U[c], l && U.loading, p),
|
|
973
986
|
onClick: (e) => e.stopPropagation(),
|
|
974
987
|
role: "dialog",
|
|
975
988
|
"aria-modal": "true",
|
|
976
989
|
"aria-labelledby": n ? x : void 0,
|
|
977
990
|
ref: g,
|
|
978
991
|
children: [
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
className:
|
|
981
|
-
children: [n && /* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ d("div", {
|
|
993
|
+
className: U.header,
|
|
994
|
+
children: [n && /* @__PURE__ */ u("h2", {
|
|
982
995
|
id: x,
|
|
983
|
-
className:
|
|
996
|
+
className: U.title,
|
|
984
997
|
children: n
|
|
985
|
-
}), /* @__PURE__ */
|
|
998
|
+
}), /* @__PURE__ */ u(j, {
|
|
986
999
|
variant: "subtle",
|
|
987
1000
|
size: "sm",
|
|
988
1001
|
onClick: t,
|
|
989
|
-
className:
|
|
1002
|
+
className: U.closeButton,
|
|
990
1003
|
"aria-label": "Close modal",
|
|
991
|
-
disabled:
|
|
992
|
-
children: "
|
|
1004
|
+
disabled: l,
|
|
1005
|
+
children: /* @__PURE__ */ u("svg", {
|
|
1006
|
+
width: "10",
|
|
1007
|
+
height: "10",
|
|
1008
|
+
viewBox: "0 0 10 10",
|
|
1009
|
+
fill: "none",
|
|
1010
|
+
"aria-hidden": "true",
|
|
1011
|
+
children: /* @__PURE__ */ u("path", {
|
|
1012
|
+
d: "M1 1L9 9M9 1L1 9",
|
|
1013
|
+
stroke: "currentColor",
|
|
1014
|
+
strokeWidth: "1.5",
|
|
1015
|
+
strokeLinecap: "round"
|
|
1016
|
+
})
|
|
1017
|
+
})
|
|
993
1018
|
})]
|
|
994
1019
|
}),
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
className:
|
|
1020
|
+
/* @__PURE__ */ u("div", {
|
|
1021
|
+
className: U.content,
|
|
997
1022
|
children: r
|
|
998
1023
|
}),
|
|
999
|
-
o && /* @__PURE__ */
|
|
1000
|
-
className:
|
|
1024
|
+
o && /* @__PURE__ */ u("div", {
|
|
1025
|
+
className: U.footer,
|
|
1001
1026
|
children: o
|
|
1002
1027
|
})
|
|
1003
1028
|
]
|
|
1004
1029
|
})
|
|
1005
1030
|
}), document.body) : null;
|
|
1006
1031
|
}, Pe = {
|
|
1007
|
-
root: "
|
|
1008
|
-
content: "
|
|
1009
|
-
title: "
|
|
1010
|
-
message: "
|
|
1011
|
-
closeButton: "
|
|
1012
|
-
neutral: "
|
|
1013
|
-
info: "
|
|
1014
|
-
success: "
|
|
1015
|
-
warning: "
|
|
1016
|
-
danger: "
|
|
1017
|
-
}, Fe = ({ intent: e = "neutral", title: t, children: n, onClose: r, className: i, ...a }) => /* @__PURE__ */
|
|
1018
|
-
className:
|
|
1032
|
+
root: "_root_1bwyw_1",
|
|
1033
|
+
content: "_content_1bwyw_13",
|
|
1034
|
+
title: "_title_1bwyw_17",
|
|
1035
|
+
message: "_message_1bwyw_23",
|
|
1036
|
+
closeButton: "_closeButton_1bwyw_29",
|
|
1037
|
+
neutral: "_neutral_1bwyw_44",
|
|
1038
|
+
info: "_info_1bwyw_50",
|
|
1039
|
+
success: "_success_1bwyw_56",
|
|
1040
|
+
warning: "_warning_1bwyw_62",
|
|
1041
|
+
danger: "_danger_1bwyw_68"
|
|
1042
|
+
}, Fe = ({ intent: e = "neutral", title: t, children: n, onClose: r, className: i, ...a }) => /* @__PURE__ */ d("div", {
|
|
1043
|
+
className: m(Pe.root, Pe[e], i),
|
|
1019
1044
|
role: "alert",
|
|
1020
1045
|
...a,
|
|
1021
|
-
children: [/* @__PURE__ */
|
|
1046
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1022
1047
|
className: Pe.content,
|
|
1023
|
-
children: [t && /* @__PURE__ */
|
|
1048
|
+
children: [t && /* @__PURE__ */ u("div", {
|
|
1024
1049
|
className: Pe.title,
|
|
1025
1050
|
children: t
|
|
1026
|
-
}), /* @__PURE__ */
|
|
1051
|
+
}), /* @__PURE__ */ u("div", {
|
|
1027
1052
|
className: Pe.message,
|
|
1028
1053
|
children: n
|
|
1029
1054
|
})]
|
|
1030
|
-
}), r && /* @__PURE__ */
|
|
1055
|
+
}), r && /* @__PURE__ */ u(j, {
|
|
1031
1056
|
variant: "subtle",
|
|
1032
1057
|
size: "xs",
|
|
1033
1058
|
onClick: r,
|
|
1034
1059
|
className: Pe.closeButton,
|
|
1035
1060
|
"aria-label": "Close notification",
|
|
1036
|
-
children: "
|
|
1061
|
+
children: /* @__PURE__ */ u("svg", {
|
|
1062
|
+
width: "10",
|
|
1063
|
+
height: "10",
|
|
1064
|
+
viewBox: "0 0 10 10",
|
|
1065
|
+
fill: "none",
|
|
1066
|
+
"aria-hidden": "true",
|
|
1067
|
+
children: /* @__PURE__ */ u("path", {
|
|
1068
|
+
d: "M1 1L9 9M9 1L1 9",
|
|
1069
|
+
stroke: "currentColor",
|
|
1070
|
+
strokeWidth: "1.5",
|
|
1071
|
+
strokeLinecap: "round"
|
|
1072
|
+
})
|
|
1073
|
+
})
|
|
1037
1074
|
})]
|
|
1038
|
-
}),
|
|
1075
|
+
}), W = {
|
|
1039
1076
|
root: "_root_o4mj7_1",
|
|
1040
1077
|
list: "_list_o4mj7_6",
|
|
1041
1078
|
item: "_item_o4mj7_15",
|
|
@@ -1050,78 +1087,78 @@ var H = {
|
|
|
1050
1087
|
if (!i || e <= n * 2 + 1 + r * 2 + 2) return Le(1, e);
|
|
1051
1088
|
let a = Le(1, Math.min(r, e)), o = Le(Math.max(e - r + 1, r + 1), e), s = Math.max(t - n, r + 2), c = Math.min(t + n, e - r - 1), l = s > r + 2, u = c < e - r - 1, d = [...a], f = l ? s : r + 1, p = u ? c : e - r;
|
|
1052
1089
|
return l && d.push("ellipsis"), f <= p && d.push(...Le(f, p)), u && d.push("ellipsis"), d.push(...o), d;
|
|
1053
|
-
}, ze = ({ id: e, count: t, page: n, defaultPage: r = 1, onPageChange: i, onFirstClick: s, onLastClick:
|
|
1054
|
-
let k = a(),
|
|
1055
|
-
M,
|
|
1090
|
+
}, ze = ({ id: e, count: t, page: n, defaultPage: r = 1, onPageChange: i, onFirstClick: s, onLastClick: l, onNextClick: f, onPrevClick: p, siblingCount: h = 1, boundaryCount: g = 1, showFirstLast: _ = !0, showPrevNext: v = !0, showEllipsis: y = !0, disabled: b = !1, size: x = "sm", variant: S = "outline", intent: C = "neutral", activeVariant: w = "solid", activeIntent: T, labels: E, ariaLabel: D = "Pagination", getPageLabel: O, className: ee }) => {
|
|
1091
|
+
let k = a(), A = e ?? `ds-pagination-${k}`, [M, te] = c(r), N = Math.max(0, t), P = Ie(n ?? M, 1, Math.max(1, N)), ne = o(() => Re(N, P, h, g, y), [
|
|
1056
1092
|
N,
|
|
1093
|
+
P,
|
|
1057
1094
|
h,
|
|
1058
1095
|
g,
|
|
1059
1096
|
y
|
|
1060
|
-
]),
|
|
1061
|
-
b || e ===
|
|
1097
|
+
]), F = (e) => {
|
|
1098
|
+
b || e === P || (n === void 0 && te(e), i?.(e));
|
|
1099
|
+
}, re = () => {
|
|
1100
|
+
F(1), s?.(1);
|
|
1062
1101
|
}, ie = () => {
|
|
1063
|
-
|
|
1102
|
+
let e = N;
|
|
1103
|
+
F(e), l?.(e);
|
|
1064
1104
|
}, ae = () => {
|
|
1065
|
-
let e =
|
|
1066
|
-
|
|
1105
|
+
let e = Math.max(1, P - 1);
|
|
1106
|
+
F(e), p?.(e);
|
|
1067
1107
|
}, oe = () => {
|
|
1068
|
-
let e = Math.
|
|
1069
|
-
|
|
1070
|
-
}, se = () => {
|
|
1071
|
-
let e = Math.min(M, N + 1);
|
|
1072
|
-
P(e), f?.(e);
|
|
1108
|
+
let e = Math.min(N, P + 1);
|
|
1109
|
+
F(e), f?.(e);
|
|
1073
1110
|
};
|
|
1074
|
-
return
|
|
1075
|
-
id:
|
|
1076
|
-
"aria-label":
|
|
1077
|
-
className:
|
|
1078
|
-
children: /* @__PURE__ */
|
|
1079
|
-
className:
|
|
1111
|
+
return N <= 0 ? null : /* @__PURE__ */ u("nav", {
|
|
1112
|
+
id: A,
|
|
1113
|
+
"aria-label": D,
|
|
1114
|
+
className: m(W.root, ee),
|
|
1115
|
+
children: /* @__PURE__ */ d("ul", {
|
|
1116
|
+
className: W.list,
|
|
1080
1117
|
children: [
|
|
1081
|
-
_ && /* @__PURE__ */
|
|
1082
|
-
className:
|
|
1083
|
-
children: /* @__PURE__ */
|
|
1118
|
+
_ && /* @__PURE__ */ u("li", {
|
|
1119
|
+
className: W.item,
|
|
1120
|
+
children: /* @__PURE__ */ u(j, {
|
|
1084
1121
|
size: x,
|
|
1085
1122
|
variant: S,
|
|
1086
1123
|
intent: C,
|
|
1087
|
-
className:
|
|
1088
|
-
onClick:
|
|
1089
|
-
disabled: b ||
|
|
1124
|
+
className: W.pageButton,
|
|
1125
|
+
onClick: re,
|
|
1126
|
+
disabled: b || P === 1,
|
|
1090
1127
|
"aria-label": "Go to first page",
|
|
1091
|
-
children:
|
|
1128
|
+
children: E?.first ?? "First"
|
|
1092
1129
|
})
|
|
1093
1130
|
}),
|
|
1094
|
-
v && /* @__PURE__ */
|
|
1095
|
-
className:
|
|
1096
|
-
children: /* @__PURE__ */
|
|
1131
|
+
v && /* @__PURE__ */ u("li", {
|
|
1132
|
+
className: W.item,
|
|
1133
|
+
children: /* @__PURE__ */ u(j, {
|
|
1097
1134
|
size: x,
|
|
1098
1135
|
variant: S,
|
|
1099
1136
|
intent: C,
|
|
1100
|
-
className:
|
|
1101
|
-
onClick:
|
|
1102
|
-
disabled: b ||
|
|
1137
|
+
className: W.pageButton,
|
|
1138
|
+
onClick: ae,
|
|
1139
|
+
disabled: b || P === 1,
|
|
1103
1140
|
"aria-label": "Go to previous page",
|
|
1104
|
-
children:
|
|
1141
|
+
children: E?.prev ?? "Prev"
|
|
1105
1142
|
})
|
|
1106
1143
|
}),
|
|
1107
|
-
|
|
1108
|
-
if (e === "ellipsis") return /* @__PURE__ */
|
|
1109
|
-
className:
|
|
1144
|
+
ne.map((e, t) => {
|
|
1145
|
+
if (e === "ellipsis") return /* @__PURE__ */ u("li", {
|
|
1146
|
+
className: W.item,
|
|
1110
1147
|
"aria-hidden": "true",
|
|
1111
|
-
children: /* @__PURE__ */
|
|
1112
|
-
className:
|
|
1148
|
+
children: /* @__PURE__ */ u("span", {
|
|
1149
|
+
className: W.ellipsis,
|
|
1113
1150
|
children: "…"
|
|
1114
1151
|
})
|
|
1115
1152
|
}, `ellipsis-${t}`);
|
|
1116
|
-
let n = e ===
|
|
1117
|
-
return /* @__PURE__ */
|
|
1118
|
-
className:
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1153
|
+
let n = e === P, r = O?.(e, n) ?? `Page ${e}${n ? ", current page" : ""}`;
|
|
1154
|
+
return /* @__PURE__ */ u("li", {
|
|
1155
|
+
className: W.item,
|
|
1156
|
+
children: /* @__PURE__ */ u(j, {
|
|
1120
1157
|
size: x,
|
|
1121
1158
|
variant: n ? w : S,
|
|
1122
|
-
intent: n ?
|
|
1123
|
-
className:
|
|
1124
|
-
onClick: () =>
|
|
1159
|
+
intent: n ? T ?? C : C,
|
|
1160
|
+
className: W.pageButton,
|
|
1161
|
+
onClick: () => F(e),
|
|
1125
1162
|
disabled: b,
|
|
1126
1163
|
"aria-current": n ? "page" : void 0,
|
|
1127
1164
|
"aria-label": r,
|
|
@@ -1129,36 +1166,36 @@ var H = {
|
|
|
1129
1166
|
})
|
|
1130
1167
|
}, e);
|
|
1131
1168
|
}),
|
|
1132
|
-
v && /* @__PURE__ */
|
|
1133
|
-
className:
|
|
1134
|
-
children: /* @__PURE__ */
|
|
1169
|
+
v && /* @__PURE__ */ u("li", {
|
|
1170
|
+
className: W.item,
|
|
1171
|
+
children: /* @__PURE__ */ u(j, {
|
|
1135
1172
|
size: x,
|
|
1136
1173
|
variant: S,
|
|
1137
1174
|
intent: C,
|
|
1138
|
-
className:
|
|
1139
|
-
onClick:
|
|
1140
|
-
disabled: b ||
|
|
1175
|
+
className: W.pageButton,
|
|
1176
|
+
onClick: oe,
|
|
1177
|
+
disabled: b || P === N,
|
|
1141
1178
|
"aria-label": "Go to next page",
|
|
1142
|
-
children:
|
|
1179
|
+
children: E?.next ?? "Next"
|
|
1143
1180
|
})
|
|
1144
1181
|
}),
|
|
1145
|
-
_ && /* @__PURE__ */
|
|
1146
|
-
className:
|
|
1147
|
-
children: /* @__PURE__ */
|
|
1182
|
+
_ && /* @__PURE__ */ u("li", {
|
|
1183
|
+
className: W.item,
|
|
1184
|
+
children: /* @__PURE__ */ u(j, {
|
|
1148
1185
|
size: x,
|
|
1149
1186
|
variant: S,
|
|
1150
1187
|
intent: C,
|
|
1151
|
-
className:
|
|
1152
|
-
onClick:
|
|
1153
|
-
disabled: b ||
|
|
1188
|
+
className: W.pageButton,
|
|
1189
|
+
onClick: ie,
|
|
1190
|
+
disabled: b || P === N,
|
|
1154
1191
|
"aria-label": "Go to last page",
|
|
1155
|
-
children:
|
|
1192
|
+
children: E?.last ?? "Last"
|
|
1156
1193
|
})
|
|
1157
1194
|
})
|
|
1158
1195
|
]
|
|
1159
1196
|
})
|
|
1160
1197
|
});
|
|
1161
|
-
},
|
|
1198
|
+
}, G = {
|
|
1162
1199
|
wrapper: "_wrapper_16yvn_1",
|
|
1163
1200
|
labelWrapper: "_labelWrapper_16yvn_8",
|
|
1164
1201
|
label: "_label_16yvn_8",
|
|
@@ -1173,35 +1210,35 @@ var H = {
|
|
|
1173
1210
|
warning: "_warning_16yvn_61",
|
|
1174
1211
|
danger: "_danger_16yvn_65"
|
|
1175
1212
|
}, Be = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: o, className: s, id: c }) => {
|
|
1176
|
-
let
|
|
1177
|
-
return /* @__PURE__ */
|
|
1213
|
+
let l = a(), f = c ?? `ds-progressbar-${l}`, p = t > 0 ? t : 0, h = Math.min(Math.max(0, e), p), g = p > 0 ? Math.min(Math.max(0, h / p * 100), 100) : 0, _ = o ? `${f}-label` : void 0;
|
|
1214
|
+
return /* @__PURE__ */ d("div", {
|
|
1178
1215
|
id: f,
|
|
1179
|
-
className:
|
|
1180
|
-
children: [(o || i) && /* @__PURE__ */
|
|
1181
|
-
className:
|
|
1182
|
-
children: [o && /* @__PURE__ */
|
|
1216
|
+
className: m(G.wrapper, G[n], G[r], s),
|
|
1217
|
+
children: [(o || i) && /* @__PURE__ */ d("div", {
|
|
1218
|
+
className: G.labelWrapper,
|
|
1219
|
+
children: [o && /* @__PURE__ */ u("span", {
|
|
1183
1220
|
id: _,
|
|
1184
|
-
className:
|
|
1221
|
+
className: G.label,
|
|
1185
1222
|
children: o
|
|
1186
|
-
}), i && /* @__PURE__ */
|
|
1187
|
-
className:
|
|
1223
|
+
}), i && /* @__PURE__ */ d("span", {
|
|
1224
|
+
className: G.percentage,
|
|
1188
1225
|
children: [Math.round(g), "%"]
|
|
1189
1226
|
})]
|
|
1190
|
-
}), /* @__PURE__ */
|
|
1191
|
-
className:
|
|
1227
|
+
}), /* @__PURE__ */ u("div", {
|
|
1228
|
+
className: G.progressRoot,
|
|
1192
1229
|
role: "progressbar",
|
|
1193
1230
|
"aria-valuenow": h,
|
|
1194
1231
|
"aria-valuemin": 0,
|
|
1195
1232
|
"aria-valuemax": t,
|
|
1196
1233
|
"aria-labelledby": _,
|
|
1197
1234
|
"aria-label": o ? void 0 : "Progress",
|
|
1198
|
-
children: /* @__PURE__ */
|
|
1199
|
-
className:
|
|
1235
|
+
children: /* @__PURE__ */ u("div", {
|
|
1236
|
+
className: G.indicator,
|
|
1200
1237
|
style: { width: `${g}%` }
|
|
1201
1238
|
})
|
|
1202
1239
|
})]
|
|
1203
1240
|
});
|
|
1204
|
-
},
|
|
1241
|
+
}, K = {
|
|
1205
1242
|
wrapper: "_wrapper_92sko_1",
|
|
1206
1243
|
fullWidth: "_fullWidth_92sko_8",
|
|
1207
1244
|
header: "_header_92sko_13",
|
|
@@ -1221,143 +1258,143 @@ var H = {
|
|
|
1221
1258
|
inputsRow: "_inputsRow_92sko_179",
|
|
1222
1259
|
singleInputRow: "_singleInputRow_92sko_187",
|
|
1223
1260
|
separator: "_separator_92sko_191"
|
|
1224
|
-
},
|
|
1261
|
+
}, q = (e, t) => {
|
|
1225
1262
|
if (e == null) return t;
|
|
1226
1263
|
let n = typeof e == "number" ? e : Number(e);
|
|
1227
1264
|
return Number.isNaN(n) ? t : n;
|
|
1228
1265
|
}, Ve = (e, t, n) => Math.min(Math.max(e, t), n), He = (e, t, n, r) => Ve(r == null || r === "any" || r <= 0 ? e : t + Math.round((e - t) / r) * r, t, n), Ue = (e, t, n) => {
|
|
1229
1266
|
if (Array.isArray(e)) {
|
|
1230
|
-
let r = Ve(
|
|
1267
|
+
let r = Ve(q(e[0], t), t, n), i = Ve(q(e[1], n), t, n);
|
|
1231
1268
|
return r <= i ? [r, i] : [i, r];
|
|
1232
1269
|
}
|
|
1233
|
-
let r = Ve(
|
|
1270
|
+
let r = Ve(q(e, t), t, n);
|
|
1234
1271
|
return [r, r];
|
|
1235
|
-
}, We = ({ size: e = "md", label: t, helperText: n, fullWidth: r = !1, showValue: i = !1, showInputs: s = !1, className:
|
|
1236
|
-
let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x =
|
|
1272
|
+
}, We = ({ size: e = "md", label: t, helperText: n, fullWidth: r = !1, showValue: i = !1, showInputs: s = !1, className: l, id: f, value: p, defaultValue: h, onValueChange: g, ..._ }) => {
|
|
1273
|
+
let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x = q(_.min, 0), S = q(_.max, 100), C = _.step === "any" ? "any" : q(_.step, 1), w = Array.isArray(p) || Array.isArray(h), [T, E] = c(o(() => Ue(h ?? p, x, S), [
|
|
1237
1274
|
h,
|
|
1238
1275
|
S,
|
|
1239
1276
|
x,
|
|
1240
|
-
|
|
1241
|
-
])), [
|
|
1242
|
-
|
|
1243
|
-
},
|
|
1277
|
+
p
|
|
1278
|
+
])), [D, O] = p == null ? T : Ue(p, x, S), ee = w ? `${D} - ${O}` : String(D), k = Math.max(S - x, 1), A = (D - x) / k * 100, j = (O - x) / k * 100, M = (e) => {
|
|
1279
|
+
p ?? E(e), g?.(w ? e : e[0]);
|
|
1280
|
+
}, te = (e) => {
|
|
1244
1281
|
if (!e.trim()) return;
|
|
1245
1282
|
let t = Number(e);
|
|
1246
|
-
Number.isNaN(t) ||
|
|
1247
|
-
},
|
|
1283
|
+
Number.isNaN(t) || M([He(t, x, w ? O : S, C), O]);
|
|
1284
|
+
}, N = (e) => {
|
|
1248
1285
|
if (!e.trim()) return;
|
|
1249
1286
|
let t = Number(e);
|
|
1250
|
-
Number.isNaN(t) ||
|
|
1287
|
+
Number.isNaN(t) || M([D, He(t, D, S, C)]);
|
|
1251
1288
|
};
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
className:
|
|
1289
|
+
return /* @__PURE__ */ d("div", {
|
|
1290
|
+
className: m(K.wrapper, r && K.fullWidth, l),
|
|
1254
1291
|
children: [
|
|
1255
|
-
(t || i) && /* @__PURE__ */
|
|
1256
|
-
className:
|
|
1257
|
-
children: [t && /* @__PURE__ */
|
|
1292
|
+
(t || i) && /* @__PURE__ */ d("div", {
|
|
1293
|
+
className: K.header,
|
|
1294
|
+
children: [t && /* @__PURE__ */ u("label", {
|
|
1258
1295
|
htmlFor: y,
|
|
1259
|
-
className:
|
|
1296
|
+
className: K.label,
|
|
1260
1297
|
children: t
|
|
1261
|
-
}), i && /* @__PURE__ */
|
|
1262
|
-
className:
|
|
1263
|
-
children:
|
|
1298
|
+
}), i && /* @__PURE__ */ u("span", {
|
|
1299
|
+
className: K.value,
|
|
1300
|
+
children: ee
|
|
1264
1301
|
})]
|
|
1265
1302
|
}),
|
|
1266
|
-
/* @__PURE__ */
|
|
1267
|
-
className:
|
|
1303
|
+
/* @__PURE__ */ d("div", {
|
|
1304
|
+
className: m(K.sliderRoot, K[e], _.disabled && K.disabled),
|
|
1268
1305
|
children: [
|
|
1269
|
-
/* @__PURE__ */
|
|
1270
|
-
/* @__PURE__ */
|
|
1271
|
-
className:
|
|
1306
|
+
/* @__PURE__ */ u("div", { className: K.track }),
|
|
1307
|
+
/* @__PURE__ */ u("div", {
|
|
1308
|
+
className: K.activeTrack,
|
|
1272
1309
|
style: {
|
|
1273
1310
|
left: `${w ? A : 0}%`,
|
|
1274
|
-
width: `${w ?
|
|
1311
|
+
width: `${w ? j - A : A}%`
|
|
1275
1312
|
}
|
|
1276
1313
|
}),
|
|
1277
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ u("input", {
|
|
1278
1315
|
id: y,
|
|
1279
1316
|
type: "range",
|
|
1280
|
-
className:
|
|
1317
|
+
className: m(K.inputRoot, w && K.inputStart),
|
|
1281
1318
|
"aria-describedby": b,
|
|
1282
1319
|
"aria-label": t ? void 0 : w ? "Slider minimum" : "Slider",
|
|
1283
|
-
"aria-valuetext": i ?
|
|
1320
|
+
"aria-valuetext": i ? ee : void 0,
|
|
1284
1321
|
..._,
|
|
1285
1322
|
min: x,
|
|
1286
1323
|
max: S,
|
|
1287
1324
|
step: C,
|
|
1288
|
-
value:
|
|
1325
|
+
value: D,
|
|
1289
1326
|
onChange: (e) => {
|
|
1290
|
-
|
|
1327
|
+
M([He(q(e.target.value, x), x, O, C), O]);
|
|
1291
1328
|
}
|
|
1292
1329
|
}),
|
|
1293
|
-
w && /* @__PURE__ */
|
|
1330
|
+
w && /* @__PURE__ */ u("input", {
|
|
1294
1331
|
id: `${y}-end`,
|
|
1295
1332
|
type: "range",
|
|
1296
|
-
className:
|
|
1333
|
+
className: m(K.inputRoot, K.inputEnd),
|
|
1297
1334
|
"aria-describedby": b,
|
|
1298
1335
|
"aria-label": t ? `${t} maximum` : "Slider maximum",
|
|
1299
1336
|
..._,
|
|
1300
1337
|
min: x,
|
|
1301
1338
|
max: S,
|
|
1302
1339
|
step: C,
|
|
1303
|
-
value:
|
|
1340
|
+
value: O,
|
|
1304
1341
|
onChange: (e) => {
|
|
1305
|
-
|
|
1342
|
+
M([D, He(q(e.target.value, S), D, S, C)]);
|
|
1306
1343
|
}
|
|
1307
1344
|
})
|
|
1308
1345
|
]
|
|
1309
1346
|
}),
|
|
1310
|
-
s && /* @__PURE__ */
|
|
1311
|
-
className:
|
|
1347
|
+
s && /* @__PURE__ */ d("div", {
|
|
1348
|
+
className: m(K.inputsRow, !w && K.singleInputRow),
|
|
1312
1349
|
children: [
|
|
1313
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ u(Se, {
|
|
1314
1351
|
type: "number",
|
|
1315
1352
|
inputMode: "decimal",
|
|
1316
1353
|
size: e,
|
|
1317
|
-
defaultValue:
|
|
1354
|
+
defaultValue: D,
|
|
1318
1355
|
min: x,
|
|
1319
|
-
max: w ?
|
|
1356
|
+
max: w ? O : S,
|
|
1320
1357
|
step: C,
|
|
1321
1358
|
"aria-label": t ? `${t} minimum input` : w ? "Slider minimum input" : "Slider input",
|
|
1322
1359
|
fullWidth: !0,
|
|
1323
1360
|
onBlur: (e) => {
|
|
1324
|
-
|
|
1361
|
+
te(e.target.value);
|
|
1325
1362
|
},
|
|
1326
1363
|
onKeyDown: (e) => {
|
|
1327
|
-
e.key === "Enter" &&
|
|
1364
|
+
e.key === "Enter" && te(e.currentTarget.value);
|
|
1328
1365
|
}
|
|
1329
|
-
}, `slider-start-${
|
|
1330
|
-
w && /* @__PURE__ */
|
|
1331
|
-
className:
|
|
1366
|
+
}, `slider-start-${D}-${O}`),
|
|
1367
|
+
w && /* @__PURE__ */ u("span", {
|
|
1368
|
+
className: K.separator,
|
|
1332
1369
|
children: "-"
|
|
1333
1370
|
}),
|
|
1334
|
-
w && /* @__PURE__ */
|
|
1371
|
+
w && /* @__PURE__ */ u(Se, {
|
|
1335
1372
|
type: "number",
|
|
1336
1373
|
inputMode: "decimal",
|
|
1337
1374
|
size: e,
|
|
1338
|
-
defaultValue:
|
|
1339
|
-
min:
|
|
1375
|
+
defaultValue: O,
|
|
1376
|
+
min: D,
|
|
1340
1377
|
max: S,
|
|
1341
1378
|
step: C,
|
|
1342
1379
|
"aria-label": t ? `${t} maximum input` : "Slider maximum input",
|
|
1343
1380
|
fullWidth: !0,
|
|
1344
1381
|
onBlur: (e) => {
|
|
1345
|
-
|
|
1382
|
+
N(e.target.value);
|
|
1346
1383
|
},
|
|
1347
1384
|
onKeyDown: (e) => {
|
|
1348
|
-
e.key === "Enter" &&
|
|
1385
|
+
e.key === "Enter" && N(e.currentTarget.value);
|
|
1349
1386
|
}
|
|
1350
|
-
}, `slider-end-${
|
|
1387
|
+
}, `slider-end-${D}-${O}`)
|
|
1351
1388
|
]
|
|
1352
1389
|
}),
|
|
1353
|
-
n && /* @__PURE__ */
|
|
1390
|
+
n && /* @__PURE__ */ u("span", {
|
|
1354
1391
|
id: b,
|
|
1355
|
-
className:
|
|
1392
|
+
className: K.helperText,
|
|
1356
1393
|
children: n
|
|
1357
1394
|
})
|
|
1358
1395
|
]
|
|
1359
1396
|
});
|
|
1360
|
-
},
|
|
1397
|
+
}, J = {
|
|
1361
1398
|
wrapper: "_wrapper_4v5ks_1",
|
|
1362
1399
|
label: "_label_4v5ks_7",
|
|
1363
1400
|
sm: "_sm_4v5ks_17",
|
|
@@ -1371,29 +1408,29 @@ var H = {
|
|
|
1371
1408
|
helperText: "_helperText_4v5ks_142",
|
|
1372
1409
|
errorText: "_errorText_4v5ks_156"
|
|
1373
1410
|
}, Ge = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: o, ...s }) => {
|
|
1374
|
-
let c = a(),
|
|
1375
|
-
return /* @__PURE__ */
|
|
1376
|
-
className:
|
|
1377
|
-
children: [/* @__PURE__ */
|
|
1378
|
-
htmlFor:
|
|
1379
|
-
className:
|
|
1380
|
-
children: [/* @__PURE__ */
|
|
1381
|
-
className:
|
|
1382
|
-
children: [/* @__PURE__ */
|
|
1411
|
+
let c = a(), l = o ?? `ds-radio-${c}`, f = n ? `${l}-help` : void 0;
|
|
1412
|
+
return /* @__PURE__ */ d("div", {
|
|
1413
|
+
className: m(J.wrapper, i),
|
|
1414
|
+
children: [/* @__PURE__ */ d("label", {
|
|
1415
|
+
htmlFor: l,
|
|
1416
|
+
className: m(J.label, J[e]),
|
|
1417
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1418
|
+
className: J.inputWrapper,
|
|
1419
|
+
children: [/* @__PURE__ */ u("input", {
|
|
1383
1420
|
type: "radio",
|
|
1384
|
-
id:
|
|
1385
|
-
className:
|
|
1421
|
+
id: l,
|
|
1422
|
+
className: m(J.radioRoot, J[e], r && J.error),
|
|
1386
1423
|
"aria-describedby": f,
|
|
1387
1424
|
"aria-invalid": r || void 0,
|
|
1388
1425
|
...s
|
|
1389
|
-
}), /* @__PURE__ */
|
|
1390
|
-
}), t && /* @__PURE__ */
|
|
1391
|
-
className:
|
|
1426
|
+
}), /* @__PURE__ */ u("span", { className: J.checkmark })]
|
|
1427
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1428
|
+
className: J.labelText,
|
|
1392
1429
|
children: t
|
|
1393
1430
|
})]
|
|
1394
|
-
}), n && /* @__PURE__ */
|
|
1431
|
+
}), n && /* @__PURE__ */ u("span", {
|
|
1395
1432
|
id: f,
|
|
1396
|
-
className:
|
|
1433
|
+
className: m(J.helperText, r && J.errorText),
|
|
1397
1434
|
children: n
|
|
1398
1435
|
})]
|
|
1399
1436
|
});
|
|
@@ -1405,14 +1442,14 @@ var H = {
|
|
|
1405
1442
|
circular: "_circular_1qfdr_23",
|
|
1406
1443
|
pulse: "_pulse_1qfdr_28",
|
|
1407
1444
|
wave: "_wave_1qfdr_44"
|
|
1408
|
-
}, qe = ({ variant: e = "rectangular", width: t, height: n, animation: r = "pulse", className: i, style: a, "aria-hidden": o, ...s }) => /* @__PURE__ */
|
|
1409
|
-
className:
|
|
1445
|
+
}, qe = ({ variant: e = "rectangular", width: t, height: n, animation: r = "pulse", className: i, style: a, "aria-hidden": o, ...s }) => /* @__PURE__ */ u(D, {
|
|
1446
|
+
className: m(Ke.root, Ke[e], r !== "none" && Ke[r], i),
|
|
1410
1447
|
width: t,
|
|
1411
1448
|
height: n,
|
|
1412
1449
|
style: a,
|
|
1413
1450
|
"aria-hidden": o ?? !0,
|
|
1414
1451
|
...s
|
|
1415
|
-
}), Je = "
|
|
1452
|
+
}), Je = "_step_69ymb_1", Ye = "_stepRow_69ymb_18", Xe = "_interactive_69ymb_28", Ze = "_marker_69ymb_48", Qe = "_text_69ymb_67", $e = "_label_69ymb_74", et = "_description_69ymb_83", tt = "_connector_69ymb_92", nt = "_completed_69ymb_110", rt = "_current_69ymb_124", it = "_error_69ymb_138", at = "_upcoming_69ymb_152", ot = "_disabled_69ymb_156", Y = {
|
|
1416
1453
|
step: Je,
|
|
1417
1454
|
stepRow: Ye,
|
|
1418
1455
|
interactive: Xe,
|
|
@@ -1422,21 +1459,21 @@ var H = {
|
|
|
1422
1459
|
description: et,
|
|
1423
1460
|
connector: tt,
|
|
1424
1461
|
completed: nt,
|
|
1425
|
-
"connector-completed": "_connector-
|
|
1462
|
+
"connector-completed": "_connector-completed_69ymb_120",
|
|
1426
1463
|
current: rt,
|
|
1427
|
-
"connector-current": "_connector-
|
|
1464
|
+
"connector-current": "_connector-current_69ymb_134",
|
|
1428
1465
|
error: it,
|
|
1429
|
-
"connector-error": "_connector-
|
|
1466
|
+
"connector-error": "_connector-error_69ymb_148",
|
|
1430
1467
|
upcoming: at,
|
|
1431
1468
|
disabled: ot
|
|
1432
1469
|
}, st = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
|
|
1433
|
-
let c = !!e.disabled,
|
|
1434
|
-
return /* @__PURE__ */
|
|
1435
|
-
className:
|
|
1436
|
-
children: [/* @__PURE__ */
|
|
1470
|
+
let c = !!e.disabled, l = r ? "button" : "div", f = n === "error" ? "!" : String(t + 1);
|
|
1471
|
+
return /* @__PURE__ */ d("li", {
|
|
1472
|
+
className: m(Y.step, Y[n], c && Y.disabled, s),
|
|
1473
|
+
children: [/* @__PURE__ */ d(l, {
|
|
1437
1474
|
id: o,
|
|
1438
1475
|
type: r ? "button" : void 0,
|
|
1439
|
-
className:
|
|
1476
|
+
className: m(Y.stepRow, r && Y.interactive),
|
|
1440
1477
|
onClick: () => {
|
|
1441
1478
|
r && !c && i?.(e, t);
|
|
1442
1479
|
},
|
|
@@ -1447,22 +1484,22 @@ var H = {
|
|
|
1447
1484
|
"aria-disabled": c ? !0 : void 0,
|
|
1448
1485
|
disabled: r && c ? !0 : void 0,
|
|
1449
1486
|
tabIndex: r && !c ? 0 : void 0,
|
|
1450
|
-
children: [/* @__PURE__ */
|
|
1451
|
-
className:
|
|
1487
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1488
|
+
className: Y.marker,
|
|
1452
1489
|
"aria-hidden": "true",
|
|
1453
1490
|
children: f
|
|
1454
|
-
}), /* @__PURE__ */
|
|
1455
|
-
className:
|
|
1456
|
-
children: [/* @__PURE__ */
|
|
1457
|
-
className:
|
|
1491
|
+
}), /* @__PURE__ */ d("span", {
|
|
1492
|
+
className: Y.text,
|
|
1493
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1494
|
+
className: Y.label,
|
|
1458
1495
|
children: e.label
|
|
1459
|
-
}), e.description && /* @__PURE__ */
|
|
1460
|
-
className:
|
|
1496
|
+
}), e.description && /* @__PURE__ */ u("span", {
|
|
1497
|
+
className: Y.description,
|
|
1461
1498
|
children: e.description
|
|
1462
1499
|
})]
|
|
1463
1500
|
})]
|
|
1464
|
-
}), !a && /* @__PURE__ */
|
|
1465
|
-
className:
|
|
1501
|
+
}), !a && /* @__PURE__ */ u("span", {
|
|
1502
|
+
className: m(Y.connector, Y[`connector-${n}`]),
|
|
1466
1503
|
"aria-hidden": "true"
|
|
1467
1504
|
})]
|
|
1468
1505
|
});
|
|
@@ -1472,25 +1509,25 @@ var H = {
|
|
|
1472
1509
|
lg: "_lg_cxvk2_22",
|
|
1473
1510
|
horizontal: "_horizontal_cxvk2_29",
|
|
1474
1511
|
vertical: "_vertical_cxvk2_35"
|
|
1475
|
-
}, lt = (e, t) => Number.isNaN(e) || t <= 0 ? -1 : Math.min(Math.max(e, 0), t - 1), ut = (e, t) => typeof e == "number" ? lt(e, t.length) : typeof e == "string" ? t.findIndex((t) => t.id === e) : t.findIndex((e) => e.status === "current"), dt = (e, t, n) => n || (t === -1 ? "upcoming" : e < t ? "completed" : e === t ? "current" : "upcoming"), ft = ({ steps: e, currentStep: t, orientation: n = "horizontal", size: r = "md", onStepClick: i, ariaLabel: o, className: s, id: c, ...
|
|
1476
|
-
let d = a(), f = c ?? `ds-stepper-${d}`,
|
|
1477
|
-
return /* @__PURE__ */
|
|
1512
|
+
}, lt = (e, t) => Number.isNaN(e) || t <= 0 ? -1 : Math.min(Math.max(e, 0), t - 1), ut = (e, t) => typeof e == "number" ? lt(e, t.length) : typeof e == "string" ? t.findIndex((t) => t.id === e) : t.findIndex((e) => e.status === "current"), dt = (e, t, n) => n || (t === -1 ? "upcoming" : e < t ? "completed" : e === t ? "current" : "upcoming"), ft = ({ steps: e, currentStep: t, orientation: n = "horizontal", size: r = "md", onStepClick: i, ariaLabel: o, className: s, id: c, ...l }) => {
|
|
1513
|
+
let d = a(), f = c ?? `ds-stepper-${d}`, p = ut(t, e), h = o ?? "Progress";
|
|
1514
|
+
return /* @__PURE__ */ u("ol", {
|
|
1478
1515
|
id: f,
|
|
1479
|
-
className:
|
|
1516
|
+
className: m(ct.root, ct[n], ct[r], s),
|
|
1480
1517
|
"aria-label": h,
|
|
1481
1518
|
"data-orientation": n,
|
|
1482
|
-
...
|
|
1483
|
-
children: e.map((t, n) => /* @__PURE__ */
|
|
1519
|
+
...l,
|
|
1520
|
+
children: e.map((t, n) => /* @__PURE__ */ u(st, {
|
|
1484
1521
|
id: `${f}-step-${t.id}`,
|
|
1485
1522
|
step: t,
|
|
1486
1523
|
index: n,
|
|
1487
|
-
status: dt(n,
|
|
1524
|
+
status: dt(n, p, t.status),
|
|
1488
1525
|
isInteractive: !!i,
|
|
1489
1526
|
onStepClick: i,
|
|
1490
1527
|
isLast: n === e.length - 1
|
|
1491
1528
|
}, t.id))
|
|
1492
1529
|
});
|
|
1493
|
-
},
|
|
1530
|
+
}, X = {
|
|
1494
1531
|
wrapper: "_wrapper_vo2yb_1",
|
|
1495
1532
|
fullWidth: "_fullWidth_vo2yb_8",
|
|
1496
1533
|
label: "_label_vo2yb_13",
|
|
@@ -1501,36 +1538,36 @@ var H = {
|
|
|
1501
1538
|
error: "_error_vo2yb_80",
|
|
1502
1539
|
helperText: "_helperText_vo2yb_89",
|
|
1503
1540
|
errorText: "_errorText_vo2yb_95"
|
|
1504
|
-
}, pt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, options: c, children:
|
|
1505
|
-
let
|
|
1506
|
-
return /* @__PURE__ */
|
|
1507
|
-
className:
|
|
1541
|
+
}, pt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, options: c, children: l, ...f }) => {
|
|
1542
|
+
let p = a(), h = s ?? `ds-select-${p}`, g = r ? `${h}-help` : void 0;
|
|
1543
|
+
return /* @__PURE__ */ d("div", {
|
|
1544
|
+
className: m(X.wrapper, i && X.fullWidth, o),
|
|
1508
1545
|
children: [
|
|
1509
|
-
n && /* @__PURE__ */
|
|
1546
|
+
n && /* @__PURE__ */ u("label", {
|
|
1510
1547
|
htmlFor: h,
|
|
1511
|
-
className:
|
|
1548
|
+
className: X.label,
|
|
1512
1549
|
children: n
|
|
1513
1550
|
}),
|
|
1514
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ u("select", {
|
|
1515
1552
|
id: h,
|
|
1516
|
-
className:
|
|
1553
|
+
className: m(X.selectRoot, X[e], t && X.error),
|
|
1517
1554
|
"aria-describedby": g,
|
|
1518
1555
|
"aria-invalid": t || void 0,
|
|
1519
1556
|
...f,
|
|
1520
|
-
children: c ? c.map((e) => /* @__PURE__ */
|
|
1557
|
+
children: c ? c.map((e) => /* @__PURE__ */ u("option", {
|
|
1521
1558
|
value: e.value,
|
|
1522
1559
|
disabled: e.disabled,
|
|
1523
1560
|
children: e.label
|
|
1524
|
-
}, e.value)) :
|
|
1561
|
+
}, e.value)) : l
|
|
1525
1562
|
}),
|
|
1526
|
-
r && /* @__PURE__ */
|
|
1563
|
+
r && /* @__PURE__ */ u("span", {
|
|
1527
1564
|
id: g,
|
|
1528
|
-
className:
|
|
1565
|
+
className: m(X.helperText, t && X.errorText),
|
|
1529
1566
|
children: r
|
|
1530
1567
|
})
|
|
1531
1568
|
]
|
|
1532
1569
|
});
|
|
1533
|
-
},
|
|
1570
|
+
}, mt = {
|
|
1534
1571
|
wrapper: "_wrapper_196po_1",
|
|
1535
1572
|
container: "_container_196po_7",
|
|
1536
1573
|
disabled: "_disabled_196po_15",
|
|
@@ -1539,87 +1576,87 @@ var H = {
|
|
|
1539
1576
|
thumb: "_thumb_196po_46",
|
|
1540
1577
|
label: "_label_196po_62",
|
|
1541
1578
|
helperText: "_helperText_196po_69"
|
|
1542
|
-
},
|
|
1543
|
-
let s = a(), c = i ?? `ds-switch-${s}`,
|
|
1544
|
-
return /* @__PURE__ */
|
|
1545
|
-
className:
|
|
1546
|
-
children: [/* @__PURE__ */
|
|
1579
|
+
}, ht = ({ label: e, helperText: t, className: n, disabled: r, id: i, ...o }) => {
|
|
1580
|
+
let s = a(), c = i ?? `ds-switch-${s}`, l = t ? `${c}-help` : void 0;
|
|
1581
|
+
return /* @__PURE__ */ d("div", {
|
|
1582
|
+
className: m(mt.wrapper, n),
|
|
1583
|
+
children: [/* @__PURE__ */ d("label", {
|
|
1547
1584
|
htmlFor: c,
|
|
1548
|
-
className:
|
|
1585
|
+
className: m(mt.container, r && mt.disabled),
|
|
1549
1586
|
children: [
|
|
1550
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ u("input", {
|
|
1551
1588
|
type: "checkbox",
|
|
1552
1589
|
id: c,
|
|
1553
1590
|
role: "switch",
|
|
1554
1591
|
disabled: r,
|
|
1555
|
-
className:
|
|
1556
|
-
"aria-describedby":
|
|
1592
|
+
className: mt.input,
|
|
1593
|
+
"aria-describedby": l,
|
|
1557
1594
|
...o
|
|
1558
1595
|
}),
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
className:
|
|
1561
|
-
children: /* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ u("span", {
|
|
1597
|
+
className: mt.track,
|
|
1598
|
+
children: /* @__PURE__ */ u("span", { className: mt.thumb })
|
|
1562
1599
|
}),
|
|
1563
|
-
e && /* @__PURE__ */
|
|
1564
|
-
className:
|
|
1600
|
+
e && /* @__PURE__ */ u("span", {
|
|
1601
|
+
className: mt.label,
|
|
1565
1602
|
children: e
|
|
1566
1603
|
})
|
|
1567
1604
|
]
|
|
1568
|
-
}), t && /* @__PURE__ */
|
|
1569
|
-
id:
|
|
1570
|
-
className:
|
|
1605
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1606
|
+
id: l,
|
|
1607
|
+
className: mt.helperText,
|
|
1571
1608
|
children: t
|
|
1572
1609
|
})]
|
|
1573
1610
|
});
|
|
1574
|
-
},
|
|
1575
|
-
wrapper:
|
|
1576
|
-
table:
|
|
1577
|
-
thead:
|
|
1578
|
-
tbody:
|
|
1579
|
-
tr:
|
|
1580
|
-
th:
|
|
1581
|
-
td:
|
|
1582
|
-
striped:
|
|
1583
|
-
hoverable:
|
|
1584
|
-
dense:
|
|
1611
|
+
}, gt = "_wrapper_1w3cj_1", _t = "_table_1w3cj_8", vt = "_thead_1w3cj_17", yt = "_tbody_1w3cj_22", bt = "_tr_1w3cj_22", xt = "_th_1w3cj_17", St = "_td_1w3cj_40", Ct = "_striped_1w3cj_46", wt = "_hoverable_1w3cj_50", Tt = "_dense_1w3cj_54", Et = "_loading_1w3cj_75", Z = {
|
|
1612
|
+
wrapper: gt,
|
|
1613
|
+
table: _t,
|
|
1614
|
+
thead: vt,
|
|
1615
|
+
tbody: yt,
|
|
1616
|
+
tr: bt,
|
|
1617
|
+
th: xt,
|
|
1618
|
+
td: St,
|
|
1619
|
+
striped: Ct,
|
|
1620
|
+
hoverable: wt,
|
|
1621
|
+
dense: Tt,
|
|
1585
1622
|
"align-left": "_align-left_1w3cj_62",
|
|
1586
1623
|
"align-center": "_align-center_1w3cj_65",
|
|
1587
1624
|
"align-right": "_align-right_1w3cj_68",
|
|
1588
1625
|
"align-justify": "_align-justify_1w3cj_71",
|
|
1589
|
-
loading:
|
|
1590
|
-
},
|
|
1591
|
-
className:
|
|
1592
|
-
children: /* @__PURE__ */
|
|
1593
|
-
className:
|
|
1626
|
+
loading: Et
|
|
1627
|
+
}, Dt = ({ children: e, className: t, striped: n, hoverable: r, dense: i, isLoading: a, ...o }) => /* @__PURE__ */ u("div", {
|
|
1628
|
+
className: m(Z.wrapper, a && Z.loading, t),
|
|
1629
|
+
children: /* @__PURE__ */ u("table", {
|
|
1630
|
+
className: m(Z.table, n && Z.striped, r && Z.hoverable, i && Z.dense),
|
|
1594
1631
|
"aria-busy": a || void 0,
|
|
1595
1632
|
...o,
|
|
1596
1633
|
children: e
|
|
1597
1634
|
})
|
|
1598
|
-
}),
|
|
1599
|
-
className:
|
|
1635
|
+
}), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("thead", {
|
|
1636
|
+
className: m(Z.thead, t),
|
|
1600
1637
|
...n,
|
|
1601
1638
|
children: e
|
|
1602
|
-
}),
|
|
1603
|
-
className:
|
|
1639
|
+
}), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tbody", {
|
|
1640
|
+
className: m(Z.tbody, t),
|
|
1604
1641
|
...n,
|
|
1605
1642
|
children: e
|
|
1606
|
-
}),
|
|
1607
|
-
className:
|
|
1643
|
+
}), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tfoot", {
|
|
1644
|
+
className: m(Z.tfoot, t),
|
|
1608
1645
|
...n,
|
|
1609
1646
|
children: e
|
|
1610
|
-
}),
|
|
1611
|
-
className:
|
|
1647
|
+
}), jt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tr", {
|
|
1648
|
+
className: m(Z.tr, t),
|
|
1612
1649
|
...n,
|
|
1613
1650
|
children: e
|
|
1614
|
-
}),
|
|
1615
|
-
className:
|
|
1651
|
+
}), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ u("th", {
|
|
1652
|
+
className: m(Z.th, n && Z[`align-${n}`], t),
|
|
1616
1653
|
...r,
|
|
1617
1654
|
children: e
|
|
1618
|
-
}),
|
|
1619
|
-
className:
|
|
1655
|
+
}), Nt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ u("td", {
|
|
1656
|
+
className: m(Z.td, n && Z[`align-${n}`], t),
|
|
1620
1657
|
...r,
|
|
1621
1658
|
children: e
|
|
1622
|
-
}),
|
|
1659
|
+
}), Pt = {
|
|
1623
1660
|
root: "_root_1luck_1",
|
|
1624
1661
|
tabList: "_tabList_1luck_8",
|
|
1625
1662
|
tabItem: "_tabItem_1luck_16",
|
|
@@ -1628,8 +1665,8 @@ var H = {
|
|
|
1628
1665
|
pillList: "_pillList_1luck_52",
|
|
1629
1666
|
pillItem: "_pillItem_1luck_60",
|
|
1630
1667
|
tabPanel: "_tabPanel_1luck_72"
|
|
1631
|
-
},
|
|
1632
|
-
let f = a(),
|
|
1668
|
+
}, Ft = ({ items: e, defaultActiveId: t, activeId: n, onChange: r, className: i, variant: o = "line", id: l }) => {
|
|
1669
|
+
let f = a(), p = l ?? `ds-tabs-${f}`, [h, g] = c(t || (e.length > 0 ? e[0].id : "")), _ = n === void 0 ? h : n, v = s(null), y = (e, t) => {
|
|
1633
1670
|
t || (n === void 0 && g(e), r?.(e));
|
|
1634
1671
|
}, b = (t) => {
|
|
1635
1672
|
let n = e.filter((e) => !e.disabled), r = n.findIndex((e) => e.id === _), i = -1;
|
|
@@ -1641,59 +1678,59 @@ var H = {
|
|
|
1641
1678
|
Array.from(r || []).find((t) => t.getAttribute("data-id") === e)?.focus();
|
|
1642
1679
|
}
|
|
1643
1680
|
}, x = e.find((e) => e.id === _);
|
|
1644
|
-
return /* @__PURE__ */
|
|
1645
|
-
id:
|
|
1646
|
-
className:
|
|
1647
|
-
children: [/* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ d("div", {
|
|
1682
|
+
id: p,
|
|
1683
|
+
className: m(Pt.root, i),
|
|
1684
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1648
1685
|
role: "tablist",
|
|
1649
1686
|
ref: v,
|
|
1650
|
-
className:
|
|
1687
|
+
className: m(Pt.tabList, o === "pill" && Pt.pillList),
|
|
1651
1688
|
onKeyDown: b,
|
|
1652
1689
|
children: e.map((e) => {
|
|
1653
1690
|
let t = e.id === _, n = !!e.disabled, r = n ? -1 : t ? 0 : -1;
|
|
1654
|
-
return /* @__PURE__ */
|
|
1691
|
+
return /* @__PURE__ */ u("button", {
|
|
1655
1692
|
role: "tab",
|
|
1656
|
-
id: `${
|
|
1693
|
+
id: `${p}-tab-${e.id}`,
|
|
1657
1694
|
"aria-selected": t,
|
|
1658
|
-
"aria-controls": `${
|
|
1695
|
+
"aria-controls": `${p}-panel-${e.id}`,
|
|
1659
1696
|
"aria-disabled": n,
|
|
1660
1697
|
tabIndex: r,
|
|
1661
1698
|
disabled: n,
|
|
1662
1699
|
"data-id": e.id,
|
|
1663
|
-
className:
|
|
1700
|
+
className: m(Pt.tabItem, o === "pill" && Pt.pillItem, t && Pt.active, n && Pt.disabled),
|
|
1664
1701
|
onClick: () => y(e.id, n),
|
|
1665
1702
|
children: e.label
|
|
1666
1703
|
}, e.id);
|
|
1667
1704
|
})
|
|
1668
|
-
}), /* @__PURE__ */
|
|
1705
|
+
}), /* @__PURE__ */ u("div", {
|
|
1669
1706
|
role: "tabpanel",
|
|
1670
|
-
id: `${
|
|
1671
|
-
"aria-labelledby": `${
|
|
1672
|
-
className:
|
|
1707
|
+
id: `${p}-panel-${_}`,
|
|
1708
|
+
"aria-labelledby": `${p}-tab-${_}`,
|
|
1709
|
+
className: Pt.tabPanel,
|
|
1673
1710
|
tabIndex: 0,
|
|
1674
1711
|
children: x?.content
|
|
1675
1712
|
})]
|
|
1676
1713
|
});
|
|
1677
|
-
},
|
|
1678
|
-
root:
|
|
1679
|
-
h1:
|
|
1680
|
-
h2:
|
|
1681
|
-
h3:
|
|
1682
|
-
h4:
|
|
1683
|
-
h5:
|
|
1684
|
-
h6:
|
|
1714
|
+
}, It = "_root_1onf5_1", Lt = "_h1_1onf5_9", Rt = "_h2_1onf5_15", zt = "_h3_1onf5_21", Bt = "_h4_1onf5_27", Vt = "_h5_1onf5_32", Ht = "_h6_1onf5_37", Ut = "_label_1onf5_54", Wt = "_code_1onf5_61", Gt = "_left_1onf5_70", Kt = "_center_1onf5_73", qt = "_right_1onf5_76", Jt = "_justify_1onf5_79", Yt = "_regular_1onf5_84", Xt = "_medium_1onf5_87", Zt = "_bold_1onf5_90", Qt = "_noWrap_1onf5_121", Q = {
|
|
1715
|
+
root: It,
|
|
1716
|
+
h1: Lt,
|
|
1717
|
+
h2: Rt,
|
|
1718
|
+
h3: zt,
|
|
1719
|
+
h4: Bt,
|
|
1720
|
+
h5: Vt,
|
|
1721
|
+
h6: Ht,
|
|
1685
1722
|
"body-lg": "_body-lg_1onf5_42",
|
|
1686
1723
|
"body-md": "_body-md_1onf5_46",
|
|
1687
1724
|
"body-sm": "_body-sm_1onf5_50",
|
|
1688
|
-
label:
|
|
1689
|
-
code:
|
|
1690
|
-
left:
|
|
1691
|
-
center:
|
|
1692
|
-
right:
|
|
1693
|
-
justify:
|
|
1694
|
-
regular:
|
|
1695
|
-
medium:
|
|
1696
|
-
bold:
|
|
1725
|
+
label: Ut,
|
|
1726
|
+
code: Wt,
|
|
1727
|
+
left: Gt,
|
|
1728
|
+
center: Kt,
|
|
1729
|
+
right: qt,
|
|
1730
|
+
justify: Jt,
|
|
1731
|
+
regular: Yt,
|
|
1732
|
+
medium: Xt,
|
|
1733
|
+
bold: Zt,
|
|
1697
1734
|
"color-main": "_color-main_1onf5_95",
|
|
1698
1735
|
"color-subtle": "_color-subtle_1onf5_98",
|
|
1699
1736
|
"color-on-brand": "_color-on-brand_1onf5_104",
|
|
@@ -1701,7 +1738,7 @@ var H = {
|
|
|
1701
1738
|
"color-success": "_color-success_1onf5_110",
|
|
1702
1739
|
"color-warning": "_color-warning_1onf5_113",
|
|
1703
1740
|
"color-info": "_color-info_1onf5_116",
|
|
1704
|
-
noWrap:
|
|
1741
|
+
noWrap: Qt,
|
|
1705
1742
|
"p-0": "_p-0_1onf5_128",
|
|
1706
1743
|
"p-1": "_p-1_1onf5_131",
|
|
1707
1744
|
"p-2": "_p-2_1onf5_134",
|
|
@@ -1867,7 +1904,7 @@ var H = {
|
|
|
1867
1904
|
"mr-10": "_mr-10_1onf5_674",
|
|
1868
1905
|
"mr-12": "_mr-12_1onf5_677",
|
|
1869
1906
|
"mr-14": "_mr-14_1onf5_680"
|
|
1870
|
-
},
|
|
1907
|
+
}, $t = {
|
|
1871
1908
|
h1: "h1",
|
|
1872
1909
|
h2: "h2",
|
|
1873
1910
|
h3: "h3",
|
|
@@ -1879,11 +1916,11 @@ var H = {
|
|
|
1879
1916
|
"body-sm": "p",
|
|
1880
1917
|
label: "span",
|
|
1881
1918
|
code: "code"
|
|
1882
|
-
},
|
|
1883
|
-
className:
|
|
1919
|
+
}, en = ({ children: e, variant: t = "body-md", as: n, align: r, weight: i, color: a, noWrap: o, className: s, padding: c, paddingX: l, paddingY: d, paddingTop: f, paddingBottom: p, paddingLeft: h, paddingRight: g, margin: _, marginX: v, marginY: y, marginTop: b, marginBottom: x, marginLeft: S, marginRight: C, ...w }) => /* @__PURE__ */ u(n || $t[t] || "span", {
|
|
1920
|
+
className: m(Q.root, Q[t], r && Q[r], i && Q[i], a && Q[`color-${a}`], o && Q.noWrap, c !== void 0 && Q[`p-${c}`], l !== void 0 && Q[`px-${l}`], d !== void 0 && Q[`py-${d}`], f !== void 0 && Q[`pt-${f}`], p !== void 0 && Q[`pb-${p}`], h !== void 0 && Q[`pl-${h}`], g !== void 0 && Q[`pr-${g}`], _ !== void 0 && Q[`margin-${_}`], v !== void 0 && Q[`marginX-${v}`], y !== void 0 && Q[`marginY-${y}`], b !== void 0 && Q[`marginTop-${b}`], x !== void 0 && Q[`marginBottom-${x}`], S !== void 0 && Q[`marginLeft-${S}`], C !== void 0 && Q[`marginRight-${C}`], s),
|
|
1884
1921
|
...w,
|
|
1885
1922
|
children: e
|
|
1886
|
-
}),
|
|
1923
|
+
}), tn = {
|
|
1887
1924
|
wrapper: "_wrapper_idhh9_1",
|
|
1888
1925
|
fullWidth: "_fullWidth_idhh9_8",
|
|
1889
1926
|
label: "_label_idhh9_13",
|
|
@@ -1894,32 +1931,32 @@ var H = {
|
|
|
1894
1931
|
error: "_error_idhh9_74",
|
|
1895
1932
|
helperText: "_helperText_idhh9_83",
|
|
1896
1933
|
errorText: "_errorText_idhh9_89"
|
|
1897
|
-
},
|
|
1898
|
-
let f = a(),
|
|
1899
|
-
return /* @__PURE__ */
|
|
1900
|
-
className:
|
|
1934
|
+
}, nn = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, rows: c = 4, ...l }) => {
|
|
1935
|
+
let f = a(), p = s ?? `ds-textarea-${f}`, h = r ? `${p}-help` : void 0;
|
|
1936
|
+
return /* @__PURE__ */ d("div", {
|
|
1937
|
+
className: m(tn.wrapper, i && tn.fullWidth, o),
|
|
1901
1938
|
children: [
|
|
1902
|
-
n && /* @__PURE__ */
|
|
1903
|
-
htmlFor:
|
|
1904
|
-
className:
|
|
1939
|
+
n && /* @__PURE__ */ u("label", {
|
|
1940
|
+
htmlFor: p,
|
|
1941
|
+
className: tn.label,
|
|
1905
1942
|
children: n
|
|
1906
1943
|
}),
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
id:
|
|
1944
|
+
/* @__PURE__ */ u("textarea", {
|
|
1945
|
+
id: p,
|
|
1909
1946
|
rows: c,
|
|
1910
|
-
className:
|
|
1947
|
+
className: m(tn.textareaRoot, tn[e], t && tn.error),
|
|
1911
1948
|
"aria-describedby": h,
|
|
1912
1949
|
"aria-invalid": t || void 0,
|
|
1913
|
-
...
|
|
1950
|
+
...l
|
|
1914
1951
|
}),
|
|
1915
|
-
r && /* @__PURE__ */
|
|
1952
|
+
r && /* @__PURE__ */ u("span", {
|
|
1916
1953
|
id: h,
|
|
1917
|
-
className:
|
|
1954
|
+
className: m(tn.helperText, t && tn.errorText),
|
|
1918
1955
|
children: r
|
|
1919
1956
|
})
|
|
1920
1957
|
]
|
|
1921
1958
|
});
|
|
1922
|
-
},
|
|
1959
|
+
}, rn = {
|
|
1923
1960
|
root: "_root_1kghr_1",
|
|
1924
1961
|
trigger: "_trigger_1kghr_6",
|
|
1925
1962
|
tooltip: "_tooltip_1kghr_10",
|
|
@@ -1930,11 +1967,11 @@ var H = {
|
|
|
1930
1967
|
bottom: "_bottom_1kghr_45",
|
|
1931
1968
|
left: "_left_1kghr_51",
|
|
1932
1969
|
right: "_right_1kghr_57"
|
|
1933
|
-
},
|
|
1934
|
-
let [h, g] = c(!1), _ = s(null), v = a(), y =
|
|
1970
|
+
}, an = ({ content: e, children: t, position: i = "top", variant: o = "dark", delay: l = 200, className: f, id: p }) => {
|
|
1971
|
+
let [h, g] = c(!1), _ = s(null), v = a(), y = p ?? `ds-tooltip-${v}`, b = `${y}-content`, x = () => {
|
|
1935
1972
|
_.current = window.setTimeout(() => {
|
|
1936
1973
|
g(!0);
|
|
1937
|
-
},
|
|
1974
|
+
}, l);
|
|
1938
1975
|
}, S = () => {
|
|
1939
1976
|
_.current && window.clearTimeout(_.current), g(!1);
|
|
1940
1977
|
}, C = (e) => {
|
|
@@ -1943,37 +1980,79 @@ var H = {
|
|
|
1943
1980
|
let e = t;
|
|
1944
1981
|
return n(e, { "aria-describedby": [e.props["aria-describedby"], b].filter(Boolean).join(" ") });
|
|
1945
1982
|
})() : t;
|
|
1946
|
-
return /* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ d("div", {
|
|
1947
1984
|
id: y,
|
|
1948
|
-
className:
|
|
1985
|
+
className: m(rn.root, f),
|
|
1949
1986
|
onMouseEnter: x,
|
|
1950
1987
|
onMouseLeave: S,
|
|
1951
1988
|
onFocus: x,
|
|
1952
1989
|
onBlur: S,
|
|
1953
1990
|
onKeyDown: C,
|
|
1954
|
-
children: [/* @__PURE__ */
|
|
1955
|
-
className:
|
|
1991
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1992
|
+
className: rn.trigger,
|
|
1956
1993
|
children: w
|
|
1957
|
-
}), /* @__PURE__ */
|
|
1958
|
-
className:
|
|
1994
|
+
}), /* @__PURE__ */ u("div", {
|
|
1995
|
+
className: m(rn.tooltip, rn[i], rn[o], h && rn.visible),
|
|
1959
1996
|
id: b,
|
|
1960
1997
|
role: "tooltip",
|
|
1961
1998
|
children: e
|
|
1962
1999
|
})]
|
|
1963
2000
|
});
|
|
1964
|
-
},
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
key: "
|
|
1970
|
-
value: "
|
|
1971
|
-
empty: "
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
2001
|
+
}, on = { root: "_root_kcagb_1" }, $ = {
|
|
2002
|
+
item: "_item_m6oh9_1",
|
|
2003
|
+
itemHeader: "_itemHeader_m6oh9_5",
|
|
2004
|
+
branch: "_branch_m6oh9_21",
|
|
2005
|
+
toggleIcon: "_toggleIcon_m6oh9_29",
|
|
2006
|
+
key: "_key_m6oh9_39",
|
|
2007
|
+
value: "_value_m6oh9_44",
|
|
2008
|
+
empty: "_empty_m6oh9_49",
|
|
2009
|
+
childGroup: "_childGroup_m6oh9_55"
|
|
2010
|
+
};
|
|
2011
|
+
//#endregion
|
|
2012
|
+
//#region src/components/Tree/TreeItem.tsx
|
|
2013
|
+
function sn(e) {
|
|
2014
|
+
let t = e.closest("[role=\"tree\"]");
|
|
2015
|
+
t && (t.querySelectorAll("[role=\"treeitem\"]").forEach((e) => {
|
|
2016
|
+
e.tabIndex = -1;
|
|
2017
|
+
}), e.tabIndex = 0, e.focus());
|
|
2018
|
+
}
|
|
2019
|
+
var cn = ({ data: e, label: t, defaultExpanded: n, expandIcon: r, collapseIcon: i, isRoot: a, level: o, setSize: f, posInSet: p }) => {
|
|
2020
|
+
let [h, g] = c(a ? !0 : n ?? !1), _ = s(null), v = typeof e == "object" && !!e, y = v && (Array.isArray(e) ? e.length > 0 : Object.keys(e).length > 0), b = a ? o : o + 1, x = v ? Array.isArray(e) ? e.map((e, t) => ({
|
|
2021
|
+
key: String(t),
|
|
2022
|
+
value: e
|
|
2023
|
+
})) : Object.entries(e).map(([e, t]) => ({
|
|
2024
|
+
key: e,
|
|
2025
|
+
value: t
|
|
2026
|
+
})) : [], S = (e) => {
|
|
2027
|
+
e.stopPropagation(), y && g((e) => !e), _.current && sn(_.current);
|
|
2028
|
+
}, C = (e) => {
|
|
2029
|
+
if (e.stopPropagation(), !_.current) return;
|
|
2030
|
+
let t = _.current.closest("[role=\"tree\"]");
|
|
2031
|
+
t && (t.querySelectorAll("[role=\"treeitem\"]").forEach((e) => {
|
|
2032
|
+
e.tabIndex = -1;
|
|
2033
|
+
}), _.current.tabIndex = 0);
|
|
2034
|
+
}, w = (e) => {
|
|
2035
|
+
switch (e.key) {
|
|
2036
|
+
case "Enter":
|
|
2037
|
+
case " ":
|
|
2038
|
+
e.preventDefault(), y && g((e) => !e);
|
|
2039
|
+
break;
|
|
2040
|
+
case "ArrowRight":
|
|
2041
|
+
if (e.preventDefault(), e.stopPropagation(), y && !h) g(!0);
|
|
2042
|
+
else if (y && h) {
|
|
2043
|
+
let e = _.current?.querySelector("[role=\"treeitem\"]");
|
|
2044
|
+
e && sn(e);
|
|
2045
|
+
}
|
|
2046
|
+
break;
|
|
2047
|
+
case "ArrowLeft":
|
|
2048
|
+
if (e.preventDefault(), e.stopPropagation(), y && h) g(!1);
|
|
2049
|
+
else {
|
|
2050
|
+
let e = _.current?.parentElement?.closest("[role=\"treeitem\"]");
|
|
2051
|
+
e && sn(e);
|
|
2052
|
+
}
|
|
2053
|
+
break;
|
|
2054
|
+
}
|
|
2055
|
+
}, T = /* @__PURE__ */ u("svg", {
|
|
1977
2056
|
width: "10",
|
|
1978
2057
|
height: "10",
|
|
1979
2058
|
viewBox: "0 0 24 24",
|
|
@@ -1982,8 +2061,8 @@ var H = {
|
|
|
1982
2061
|
strokeWidth: "3",
|
|
1983
2062
|
strokeLinecap: "round",
|
|
1984
2063
|
strokeLinejoin: "round",
|
|
1985
|
-
children: /* @__PURE__ */
|
|
1986
|
-
}),
|
|
2064
|
+
children: /* @__PURE__ */ u("polyline", { points: "9 18 15 12 9 6" })
|
|
2065
|
+
}), E = /* @__PURE__ */ u("svg", {
|
|
1987
2066
|
width: "10",
|
|
1988
2067
|
height: "10",
|
|
1989
2068
|
viewBox: "0 0 24 24",
|
|
@@ -1992,115 +2071,127 @@ var H = {
|
|
|
1992
2071
|
strokeWidth: "3",
|
|
1993
2072
|
strokeLinecap: "round",
|
|
1994
2073
|
strokeLinejoin: "round",
|
|
1995
|
-
children: /* @__PURE__ */
|
|
1996
|
-
}),
|
|
2074
|
+
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
2075
|
+
}), D = () => e === void 0 ? /* @__PURE__ */ u("span", {
|
|
1997
2076
|
className: $.empty,
|
|
1998
2077
|
children: "undefined"
|
|
1999
|
-
}) : e === null ? /* @__PURE__ */
|
|
2078
|
+
}) : e === null ? /* @__PURE__ */ u("span", {
|
|
2000
2079
|
className: $.empty,
|
|
2001
2080
|
children: "null"
|
|
2002
|
-
}) : typeof e == "object" ? Array.isArray(e)
|
|
2081
|
+
}) : typeof e == "object" ? Array.isArray(e) && e.length === 0 ? /* @__PURE__ */ u("span", {
|
|
2003
2082
|
className: $.empty,
|
|
2004
2083
|
children: "[]"
|
|
2005
|
-
}) : /* @__PURE__ */
|
|
2006
|
-
className:
|
|
2007
|
-
children:
|
|
2008
|
-
|
|
2009
|
-
children: /* @__PURE__ */ l(on, {
|
|
2010
|
-
data: e,
|
|
2011
|
-
defaultExpanded: n,
|
|
2012
|
-
expandIcon: r,
|
|
2013
|
-
collapseIcon: i
|
|
2014
|
-
})
|
|
2015
|
-
}, t))
|
|
2016
|
-
}) : Object.keys(e).length === 0 ? /* @__PURE__ */ l("span", { className: $.empty }) : /* @__PURE__ */ l("ul", {
|
|
2017
|
-
className: p($.list, $.collapsibleContent, o && $.expanded, a && $.rootList),
|
|
2018
|
-
children: Object.entries(e).map(([e, t]) => /* @__PURE__ */ l("li", {
|
|
2019
|
-
className: $.item,
|
|
2020
|
-
children: /* @__PURE__ */ l(on, {
|
|
2021
|
-
label: e,
|
|
2022
|
-
data: t,
|
|
2023
|
-
defaultExpanded: n,
|
|
2024
|
-
expandIcon: r,
|
|
2025
|
-
collapseIcon: i
|
|
2026
|
-
})
|
|
2027
|
-
}, e))
|
|
2028
|
-
}) : /* @__PURE__ */ l("span", {
|
|
2084
|
+
}) : !Array.isArray(e) && Object.keys(e).length === 0 ? /* @__PURE__ */ u("span", {
|
|
2085
|
+
className: $.empty,
|
|
2086
|
+
children: "{}"
|
|
2087
|
+
}) : null : /* @__PURE__ */ u("span", {
|
|
2029
2088
|
className: $.value,
|
|
2030
2089
|
children: String(e)
|
|
2031
|
-
})
|
|
2032
|
-
|
|
2033
|
-
|
|
2090
|
+
}), O = x.map((t, a) => /* @__PURE__ */ u(cn, {
|
|
2091
|
+
label: Array.isArray(e) ? void 0 : t.key,
|
|
2092
|
+
data: t.value,
|
|
2093
|
+
defaultExpanded: n,
|
|
2094
|
+
expandIcon: r,
|
|
2095
|
+
collapseIcon: i,
|
|
2096
|
+
level: b,
|
|
2097
|
+
setSize: x.length,
|
|
2098
|
+
posInSet: a + 1
|
|
2099
|
+
}, t.key));
|
|
2100
|
+
return a ? y ? /* @__PURE__ */ u(l, { children: O }) : /* @__PURE__ */ u(l, { children: D() }) : /* @__PURE__ */ d("div", {
|
|
2101
|
+
ref: _,
|
|
2102
|
+
role: "treeitem",
|
|
2103
|
+
"aria-expanded": y ? h : void 0,
|
|
2104
|
+
"aria-level": o,
|
|
2105
|
+
"aria-setsize": f,
|
|
2106
|
+
"aria-posinset": p,
|
|
2107
|
+
tabIndex: -1,
|
|
2108
|
+
className: m($.item, y && $.branch),
|
|
2109
|
+
onClick: S,
|
|
2110
|
+
onFocus: C,
|
|
2111
|
+
onKeyDown: w,
|
|
2112
|
+
children: [/* @__PURE__ */ d("div", {
|
|
2034
2113
|
className: $.itemHeader,
|
|
2035
2114
|
children: [
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
"aria-expanded": o,
|
|
2041
|
-
children: o ? i ?? h : r ?? m
|
|
2042
|
-
}) : /* @__PURE__ */ l("div", {
|
|
2043
|
-
className: $.toggleButton,
|
|
2044
|
-
"aria-hidden": "true"
|
|
2115
|
+
/* @__PURE__ */ u("span", {
|
|
2116
|
+
className: $.toggleIcon,
|
|
2117
|
+
"aria-hidden": "true",
|
|
2118
|
+
children: y ? h ? i ?? E : r ?? T : null
|
|
2045
2119
|
}),
|
|
2046
|
-
t && /* @__PURE__ */
|
|
2120
|
+
t !== void 0 && /* @__PURE__ */ d("span", {
|
|
2047
2121
|
className: $.key,
|
|
2048
2122
|
children: [t, ":"]
|
|
2049
2123
|
}),
|
|
2050
|
-
!
|
|
2124
|
+
!y && D()
|
|
2051
2125
|
]
|
|
2052
|
-
}),
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2126
|
+
}), y && h && /* @__PURE__ */ u("div", {
|
|
2127
|
+
role: "group",
|
|
2128
|
+
className: $.childGroup,
|
|
2129
|
+
children: O
|
|
2130
|
+
})]
|
|
2131
|
+
});
|
|
2132
|
+
}, ln = ({ data: e, className: t, defaultExpanded: n, expandIcon: r, collapseIcon: a, ...o }) => {
|
|
2133
|
+
let c = s(null);
|
|
2134
|
+
return i(() => {
|
|
2135
|
+
let e = c.current?.querySelector("[role=\"treeitem\"]");
|
|
2136
|
+
e && (e.tabIndex = 0);
|
|
2137
|
+
}, []), /* @__PURE__ */ u("div", {
|
|
2138
|
+
ref: c,
|
|
2139
|
+
role: "tree",
|
|
2140
|
+
className: m(on.root, t),
|
|
2141
|
+
onKeyDown: (e) => {
|
|
2142
|
+
let t = c.current;
|
|
2143
|
+
if (!t) return;
|
|
2144
|
+
let n = Array.from(t.querySelectorAll("[role=\"treeitem\"]"));
|
|
2145
|
+
if (n.length === 0) return;
|
|
2146
|
+
let r = n.find((e) => e.tabIndex === 0) ?? n[0], i = n.indexOf(r);
|
|
2147
|
+
switch (e.key) {
|
|
2148
|
+
case "ArrowDown":
|
|
2149
|
+
e.preventDefault(), i < n.length - 1 && (r.tabIndex = -1, n[i + 1].tabIndex = 0, n[i + 1].focus());
|
|
2150
|
+
break;
|
|
2151
|
+
case "ArrowUp":
|
|
2152
|
+
e.preventDefault(), i > 0 && (r.tabIndex = -1, n[i - 1].tabIndex = 0, n[i - 1].focus());
|
|
2153
|
+
break;
|
|
2154
|
+
case "Home":
|
|
2155
|
+
e.preventDefault(), r.tabIndex = -1, n[0].tabIndex = 0, n[0].focus();
|
|
2156
|
+
break;
|
|
2157
|
+
case "End":
|
|
2158
|
+
e.preventDefault(), r.tabIndex = -1, n[n.length - 1].tabIndex = 0, n[n.length - 1].focus();
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
...o,
|
|
2163
|
+
children: /* @__PURE__ */ u(cn, {
|
|
2164
|
+
data: e,
|
|
2165
|
+
defaultExpanded: n,
|
|
2166
|
+
expandIcon: r,
|
|
2167
|
+
collapseIcon: a,
|
|
2168
|
+
isRoot: !0,
|
|
2169
|
+
level: 1,
|
|
2170
|
+
setSize: 1,
|
|
2171
|
+
posInSet: 1
|
|
2057
2172
|
})
|
|
2058
|
-
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
children: /* @__PURE__ */ l(on, {
|
|
2063
|
-
data: e,
|
|
2064
|
-
defaultExpanded: n,
|
|
2065
|
-
expandIcon: r,
|
|
2066
|
-
collapseIcon: i,
|
|
2067
|
-
isRoot: !0
|
|
2068
|
-
})
|
|
2069
|
-
});
|
|
2070
|
-
sn.Item = on;
|
|
2071
|
-
var cn = {
|
|
2173
|
+
});
|
|
2174
|
+
};
|
|
2175
|
+
ln.Item = cn;
|
|
2176
|
+
var un = {
|
|
2072
2177
|
root: "_root_1931n_1",
|
|
2073
2178
|
main: "_main_1931n_8",
|
|
2074
2179
|
container: "_container_1931n_13"
|
|
2075
|
-
},
|
|
2076
|
-
className:
|
|
2180
|
+
}, dn = ({ header: e, navbar: t, children: n, className: r, maxWidth: i = "75rem" }) => /* @__PURE__ */ d("div", {
|
|
2181
|
+
className: m(un.root, r),
|
|
2077
2182
|
children: [
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
}),
|
|
2087
|
-
/* @__PURE__ */ l(xe, {
|
|
2088
|
-
items: r,
|
|
2089
|
-
activeId: i,
|
|
2090
|
-
actions: a,
|
|
2091
|
-
onItemClick: f,
|
|
2092
|
-
maxWidth: h
|
|
2093
|
-
}),
|
|
2094
|
-
/* @__PURE__ */ l("main", {
|
|
2095
|
-
className: cn.main,
|
|
2096
|
-
children: /* @__PURE__ */ l(T, {
|
|
2097
|
-
className: cn.container,
|
|
2098
|
-
maxWidth: h,
|
|
2099
|
-
children: o
|
|
2183
|
+
e,
|
|
2184
|
+
t,
|
|
2185
|
+
/* @__PURE__ */ u("main", {
|
|
2186
|
+
className: un.main,
|
|
2187
|
+
children: /* @__PURE__ */ u(D, {
|
|
2188
|
+
className: un.container,
|
|
2189
|
+
maxWidth: i,
|
|
2190
|
+
children: n
|
|
2100
2191
|
})
|
|
2101
2192
|
})
|
|
2102
2193
|
]
|
|
2103
|
-
}),
|
|
2194
|
+
}), fn = {
|
|
2104
2195
|
root: "_root_416o7_1",
|
|
2105
2196
|
card: "_card_416o7_11",
|
|
2106
2197
|
header: "_header_416o7_21",
|
|
@@ -2108,114 +2199,98 @@ var cn = {
|
|
|
2108
2199
|
title: "_title_416o7_32",
|
|
2109
2200
|
description: "_description_416o7_39",
|
|
2110
2201
|
content: "_content_416o7_45"
|
|
2111
|
-
},
|
|
2112
|
-
className:
|
|
2113
|
-
children: /* @__PURE__ */
|
|
2114
|
-
className:
|
|
2115
|
-
children: [/* @__PURE__ */
|
|
2116
|
-
className:
|
|
2202
|
+
}, pn = ({ logo: e, title: t, description: n, children: r, className: i }) => /* @__PURE__ */ u(D, {
|
|
2203
|
+
className: m(fn.root, i),
|
|
2204
|
+
children: /* @__PURE__ */ d(D, {
|
|
2205
|
+
className: fn.card,
|
|
2206
|
+
children: [/* @__PURE__ */ d(D, {
|
|
2207
|
+
className: fn.header,
|
|
2117
2208
|
children: [
|
|
2118
|
-
e && /* @__PURE__ */
|
|
2119
|
-
className:
|
|
2209
|
+
e && /* @__PURE__ */ u(D, {
|
|
2210
|
+
className: fn.logo,
|
|
2120
2211
|
children: e
|
|
2121
2212
|
}),
|
|
2122
|
-
t && /* @__PURE__ */
|
|
2213
|
+
t && /* @__PURE__ */ u(en, {
|
|
2123
2214
|
variant: "h3",
|
|
2124
2215
|
as: "h1",
|
|
2125
|
-
className:
|
|
2216
|
+
className: fn.title,
|
|
2126
2217
|
children: t
|
|
2127
2218
|
}),
|
|
2128
|
-
n && /* @__PURE__ */
|
|
2219
|
+
n && /* @__PURE__ */ u(en, {
|
|
2129
2220
|
variant: "body-sm",
|
|
2130
2221
|
color: "subtle",
|
|
2131
|
-
className:
|
|
2222
|
+
className: fn.description,
|
|
2132
2223
|
children: n
|
|
2133
2224
|
})
|
|
2134
2225
|
]
|
|
2135
|
-
}), /* @__PURE__ */
|
|
2136
|
-
className:
|
|
2226
|
+
}), /* @__PURE__ */ u(D, {
|
|
2227
|
+
className: fn.content,
|
|
2137
2228
|
children: r
|
|
2138
2229
|
})]
|
|
2139
2230
|
})
|
|
2140
|
-
}),
|
|
2231
|
+
}), mn = {
|
|
2141
2232
|
root: "_root_1vwxr_1",
|
|
2142
2233
|
main: "_main_1vwxr_7",
|
|
2143
2234
|
container: "_container_1vwxr_11",
|
|
2144
2235
|
topBar: "_topBar_1vwxr_20",
|
|
2145
2236
|
stats: "_stats_1vwxr_27",
|
|
2146
2237
|
content: "_content_1vwxr_33"
|
|
2147
|
-
},
|
|
2148
|
-
className:
|
|
2149
|
-
children: [/* @__PURE__ */
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
onLogin: s,
|
|
2154
|
-
onLogout: c,
|
|
2155
|
-
onCreateAccount: d,
|
|
2156
|
-
maxWidth: m
|
|
2157
|
-
}), /* @__PURE__ */ l("main", {
|
|
2158
|
-
className: fn.main,
|
|
2159
|
-
children: /* @__PURE__ */ u("div", {
|
|
2160
|
-
className: fn.container,
|
|
2238
|
+
}, hn = ({ header: e, breadcrumbs: t, actions: n, stats: r, children: i, className: a }) => /* @__PURE__ */ d("div", {
|
|
2239
|
+
className: m(mn.root, a),
|
|
2240
|
+
children: [e, /* @__PURE__ */ u("main", {
|
|
2241
|
+
className: mn.main,
|
|
2242
|
+
children: /* @__PURE__ */ d("div", {
|
|
2243
|
+
className: mn.container,
|
|
2161
2244
|
children: [
|
|
2162
|
-
(
|
|
2163
|
-
className:
|
|
2164
|
-
children: [/* @__PURE__ */
|
|
2165
|
-
className:
|
|
2245
|
+
(t || n) && /* @__PURE__ */ d("div", {
|
|
2246
|
+
className: mn.topBar,
|
|
2247
|
+
children: [/* @__PURE__ */ u("div", {
|
|
2248
|
+
className: mn.breadcrumbs,
|
|
2249
|
+
children: t
|
|
2250
|
+
}), /* @__PURE__ */ u("div", {
|
|
2251
|
+
className: mn.actions,
|
|
2166
2252
|
children: n
|
|
2167
|
-
}), /* @__PURE__ */ l("div", {
|
|
2168
|
-
className: fn.actions,
|
|
2169
|
-
children: r
|
|
2170
2253
|
})]
|
|
2171
2254
|
}),
|
|
2172
|
-
|
|
2173
|
-
className:
|
|
2174
|
-
children:
|
|
2255
|
+
r && /* @__PURE__ */ u("div", {
|
|
2256
|
+
className: mn.stats,
|
|
2257
|
+
children: r
|
|
2175
2258
|
}),
|
|
2176
|
-
/* @__PURE__ */
|
|
2177
|
-
className:
|
|
2178
|
-
children:
|
|
2259
|
+
/* @__PURE__ */ u("div", {
|
|
2260
|
+
className: mn.content,
|
|
2261
|
+
children: i
|
|
2179
2262
|
})
|
|
2180
2263
|
]
|
|
2181
2264
|
})
|
|
2182
2265
|
})]
|
|
2183
|
-
}),
|
|
2266
|
+
}), gn = {
|
|
2184
2267
|
root: "_root_o4vai_1",
|
|
2185
2268
|
main: "_main_o4vai_7",
|
|
2186
2269
|
container: "_container_o4vai_11",
|
|
2187
2270
|
layoutBody: "_layoutBody_o4vai_20",
|
|
2188
2271
|
sidebar: "_sidebar_o4vai_26",
|
|
2189
2272
|
content: "_content_o4vai_34"
|
|
2190
|
-
},
|
|
2191
|
-
className:
|
|
2192
|
-
children: [/* @__PURE__ */
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
children: n
|
|
2207
|
-
}), /* @__PURE__ */ u("div", {
|
|
2208
|
-
className: mn.layoutBody,
|
|
2209
|
-
children: [r && /* @__PURE__ */ l("aside", {
|
|
2210
|
-
className: mn.sidebar,
|
|
2273
|
+
}, _n = ({ header: e, breadcrumbs: t, sidebar: n, children: r, className: i }) => /* @__PURE__ */ d("div", {
|
|
2274
|
+
className: m(gn.root, i),
|
|
2275
|
+
children: [e, /* @__PURE__ */ u("main", {
|
|
2276
|
+
className: gn.main,
|
|
2277
|
+
children: /* @__PURE__ */ d("div", {
|
|
2278
|
+
className: gn.container,
|
|
2279
|
+
children: [t && /* @__PURE__ */ u("div", {
|
|
2280
|
+
className: gn.breadcrumbs,
|
|
2281
|
+
children: t
|
|
2282
|
+
}), /* @__PURE__ */ d("div", {
|
|
2283
|
+
className: gn.layoutBody,
|
|
2284
|
+
children: [n && /* @__PURE__ */ u("aside", {
|
|
2285
|
+
className: gn.sidebar,
|
|
2286
|
+
children: n
|
|
2287
|
+
}), /* @__PURE__ */ u("section", {
|
|
2288
|
+
className: gn.content,
|
|
2211
2289
|
children: r
|
|
2212
|
-
}), /* @__PURE__ */ l("section", {
|
|
2213
|
-
className: mn.content,
|
|
2214
|
-
children: i
|
|
2215
2290
|
})]
|
|
2216
2291
|
})]
|
|
2217
2292
|
})
|
|
2218
2293
|
})]
|
|
2219
2294
|
});
|
|
2220
2295
|
//#endregion
|
|
2221
|
-
export {
|
|
2296
|
+
export { g as Accordion, dn as AppLayout, pn as AuthLayout, v as Avatar, b as Badge, D as Box, ee as BreadcrumbItem, k as Breadcrumbs, j as Button, de as Card, pe as CardContent, me as CardFooter, fe as CardHeader, he as Checkbox, hn as DashboardLayout, ye as Divider, ge as Dropdown, be as Header, Se as Input, Me as List, je as ListItem, we as Loader, Ne as Modal, xe as NavBar, Fe as Notification, ze as Pagination, Be as ProgressBar, Ge as RadioButton, pt as Select, _n as SettingsLayout, qe as Skeleton, We as Slider, ft as Stepper, ht as Switch, Dt as Table, kt as TableBody, Nt as TableCell, At as TableFooter, Mt as TableHead, Ot as TableHeader, jt as TableRow, Ft as Tabs, en as Text, nn as Textarea, an as Tooltip, ln as Tree, cn as TreeItem };
|