tharaday 0.7.2 → 0.7.4
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 +883 -815
- 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/package.json +8 -1
- package/src/components/Accordion/Accordion.test.tsx +82 -0
- 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 +8 -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 +5 -5
- package/src/components/Modal/Modal.test.tsx +86 -0
- 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/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/Tooltip/Tooltip.module.css +6 -6
- 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/styles/ds.css +14 -9
- package/src/styles/palette.css +71 -0
- package/src/styles/themes/dark.css +35 -35
- package/src/styles/themes/light.css +35 -35
- package/src/styles/themes/retro-dark.css +35 -35
- package/src/styles/themes/retro-light.css +35 -35
- package/src/styles/themes/retro-palette.css +85 -0
- package/src/styles/themes/sanzo-152-dark.css +35 -35
- package/src/styles/themes/sanzo-152-light.css +35 -35
- package/src/styles/themes/sanzo-152-palette.css +66 -0
- package/src/styles/tokens.css +14 -224
- package/src/styles/semantic.css +0 -56
package/dist/ds.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
18
|
+
var h = {
|
|
19
19
|
root: "_root_1f38q_1",
|
|
20
20
|
default: "_default_1f38q_8",
|
|
21
21
|
bordered: "_bordered_1f38q_14",
|
|
@@ -33,34 +33,34 @@ var m = {
|
|
|
33
33
|
content: "_content_1f38q_106",
|
|
34
34
|
contentBody: "_contentBody_1f38q_121",
|
|
35
35
|
contentBodyExpanded: "_contentBodyExpanded_1f38q_134"
|
|
36
|
-
},
|
|
37
|
-
let
|
|
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:
|
|
55
|
+
children: [/* @__PURE__ */ u("span", { children: e.title }), /* @__PURE__ */ u("span", {
|
|
56
|
+
className: m(h.icon, t && h.iconExpanded),
|
|
57
57
|
"aria-hidden": "true",
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ u("svg", {
|
|
59
59
|
width: "12",
|
|
60
60
|
height: "12",
|
|
61
61
|
viewBox: "0 0 12 12",
|
|
62
62
|
fill: "none",
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ u("path", {
|
|
64
64
|
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
65
65
|
stroke: "currentColor",
|
|
66
66
|
strokeWidth: "1.5",
|
|
@@ -69,15 +69,15 @@ var m = {
|
|
|
69
69
|
})
|
|
70
70
|
})
|
|
71
71
|
})]
|
|
72
|
-
}), /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ u("div", {
|
|
73
73
|
id: `${f}-content-${e.id}`,
|
|
74
74
|
role: "region",
|
|
75
75
|
"aria-labelledby": `${f}-header-${e.id}`,
|
|
76
|
-
className:
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
className:
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
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),
|
|
81
81
|
children: e.content
|
|
82
82
|
})
|
|
83
83
|
})
|
|
@@ -85,7 +85,7 @@ var m = {
|
|
|
85
85
|
}, e.id);
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, _ = {
|
|
89
89
|
root: "_root_17k2j_1",
|
|
90
90
|
image: "_image_17k2j_14",
|
|
91
91
|
defaultIcon: "_defaultIcon_17k2j_20",
|
|
@@ -95,32 +95,32 @@ var m = {
|
|
|
95
95
|
md: "_md_17k2j_44",
|
|
96
96
|
lg: "_lg_17k2j_49",
|
|
97
97
|
xl: "_xl_17k2j_54"
|
|
98
|
-
},
|
|
99
|
-
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", {
|
|
100
100
|
src: e,
|
|
101
101
|
alt: d || "",
|
|
102
|
-
className:
|
|
103
|
-
onError: () =>
|
|
104
|
-
}) : i ? /* @__PURE__ */
|
|
105
|
-
className:
|
|
102
|
+
className: _.image,
|
|
103
|
+
onError: () => l(!0)
|
|
104
|
+
}) : i ? /* @__PURE__ */ u("span", {
|
|
105
|
+
className: _.fallback,
|
|
106
106
|
children: i
|
|
107
|
-
}) : n ? /* @__PURE__ */
|
|
108
|
-
className:
|
|
107
|
+
}) : n ? /* @__PURE__ */ u("span", {
|
|
108
|
+
className: _.fallback,
|
|
109
109
|
children: f(n)
|
|
110
|
-
}) : /* @__PURE__ */
|
|
110
|
+
}) : /* @__PURE__ */ u("svg", {
|
|
111
111
|
viewBox: "0 0 24 24",
|
|
112
112
|
fill: "currentColor",
|
|
113
|
-
className:
|
|
113
|
+
className: m(_.image, _.defaultIcon),
|
|
114
114
|
"aria-hidden": "true",
|
|
115
115
|
focusable: "false",
|
|
116
|
-
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" })
|
|
117
117
|
});
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
className:
|
|
118
|
+
return /* @__PURE__ */ u("div", {
|
|
119
|
+
className: m(_.root, _[r], a),
|
|
120
120
|
...o,
|
|
121
|
-
children:
|
|
121
|
+
children: p()
|
|
122
122
|
});
|
|
123
|
-
},
|
|
123
|
+
}, y = {
|
|
124
124
|
root: "_root_13wyx_1",
|
|
125
125
|
sm: "_sm_13wyx_12",
|
|
126
126
|
md: "_md_13wyx_18",
|
|
@@ -133,13 +133,13 @@ var m = {
|
|
|
133
133
|
info: "_info_13wyx_47",
|
|
134
134
|
subtle: "_subtle_13wyx_53",
|
|
135
135
|
outline: "_outline_13wyx_75"
|
|
136
|
-
},
|
|
137
|
-
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),
|
|
138
138
|
...a,
|
|
139
139
|
children: i
|
|
140
|
-
}),
|
|
141
|
-
box:
|
|
142
|
-
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,
|
|
143
143
|
"display-block": "_display-block_ynnco_10",
|
|
144
144
|
"display-flex": "_display-flex_ynnco_13",
|
|
145
145
|
"display-inline-flex": "_display-inline-flex_ynnco_16",
|
|
@@ -339,8 +339,8 @@ var m = {
|
|
|
339
339
|
"bg-success-subtle": "_bg-success-subtle_ynnco_672",
|
|
340
340
|
"bg-warning-subtle": "_bg-warning-subtle_ynnco_675",
|
|
341
341
|
"bg-danger-subtle": "_bg-danger-subtle_ynnco_678",
|
|
342
|
-
border:
|
|
343
|
-
borderBottom:
|
|
342
|
+
border: C,
|
|
343
|
+
borderBottom: w,
|
|
344
344
|
"borderColor-main": "_borderColor-main_ynnco_691",
|
|
345
345
|
"borderColor-subtle": "_borderColor-subtle_ynnco_694",
|
|
346
346
|
"borderColor-danger": "_borderColor-danger_ynnco_697",
|
|
@@ -355,64 +355,64 @@ var m = {
|
|
|
355
355
|
"borderRadius-md": "_borderRadius-md_ynnco_728",
|
|
356
356
|
"borderRadius-lg": "_borderRadius-lg_ynnco_731",
|
|
357
357
|
"borderRadius-full": "_borderRadius-full_ynnco_734"
|
|
358
|
-
},
|
|
358
|
+
}, E = (e, t, n, r, i, a, o, s) => {
|
|
359
359
|
let c = {};
|
|
360
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;
|
|
361
|
-
},
|
|
362
|
-
let
|
|
363
|
-
...
|
|
364
|
-
flexGrow:
|
|
365
|
-
flexShrink:
|
|
366
|
-
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,
|
|
367
367
|
width: A,
|
|
368
|
-
height:
|
|
369
|
-
maxWidth:
|
|
370
|
-
gridTemplateColumns:
|
|
368
|
+
height: j,
|
|
369
|
+
maxWidth: M,
|
|
370
|
+
gridTemplateColumns: te,
|
|
371
371
|
gap: typeof y == "string" ? y : void 0,
|
|
372
|
-
...
|
|
373
|
-
...
|
|
372
|
+
...E("padding", r, i, a, o, s, c, l),
|
|
373
|
+
...E("margin", d, f, p, h, g, _, v)
|
|
374
374
|
};
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
className:
|
|
377
|
-
style:
|
|
378
|
-
...
|
|
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,
|
|
379
379
|
children: e
|
|
380
380
|
});
|
|
381
|
-
},
|
|
381
|
+
}, O = {
|
|
382
382
|
root: "_root_10ujs_1",
|
|
383
383
|
list: "_list_10ujs_6",
|
|
384
384
|
item: "_item_10ujs_16",
|
|
385
385
|
link: "_link_10ujs_21",
|
|
386
386
|
current: "_current_10ujs_27",
|
|
387
387
|
separator: "_separator_10ujs_38"
|
|
388
|
-
},
|
|
388
|
+
}, ee = ({ href: e, isCurrent: t, children: n, className: r, ...i }) => {
|
|
389
389
|
let a = e && !t ? "a" : "span";
|
|
390
|
-
return /* @__PURE__ */
|
|
391
|
-
className:
|
|
392
|
-
children: /* @__PURE__ */
|
|
390
|
+
return /* @__PURE__ */ u("li", {
|
|
391
|
+
className: O.item,
|
|
392
|
+
children: /* @__PURE__ */ u(a, {
|
|
393
393
|
href: e,
|
|
394
|
-
className:
|
|
394
|
+
className: m(O.link, t && O.current, r),
|
|
395
395
|
"aria-current": t ? "page" : void 0,
|
|
396
396
|
...i,
|
|
397
397
|
children: n
|
|
398
398
|
})
|
|
399
399
|
});
|
|
400
|
-
},
|
|
400
|
+
}, k = ({ children: n, separator: r = "/", className: i, ...a }) => {
|
|
401
401
|
let o = e.toArray(n);
|
|
402
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ u("nav", {
|
|
403
403
|
"aria-label": "Breadcrumbs",
|
|
404
|
-
className:
|
|
404
|
+
className: m(O.root, i),
|
|
405
405
|
...a,
|
|
406
|
-
children: /* @__PURE__ */
|
|
407
|
-
className:
|
|
408
|
-
children: o.map((e, n) => /* @__PURE__ */
|
|
409
|
-
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,
|
|
410
410
|
"aria-hidden": "true",
|
|
411
411
|
children: r
|
|
412
412
|
})] }, n))
|
|
413
413
|
})
|
|
414
414
|
});
|
|
415
|
-
},
|
|
415
|
+
}, A = {
|
|
416
416
|
root: "_root_1vhu8_1",
|
|
417
417
|
xs: "_xs_1vhu8_31",
|
|
418
418
|
sm: "_sm_1vhu8_39",
|
|
@@ -430,18 +430,18 @@ var m = {
|
|
|
430
430
|
loading: "_loading_1vhu8_249",
|
|
431
431
|
spinner: "_spinner_1vhu8_253",
|
|
432
432
|
spin: "_spin_1vhu8_253"
|
|
433
|
-
},
|
|
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", {
|
|
434
434
|
type: "button",
|
|
435
|
-
className:
|
|
435
|
+
className: m(A.root, A[e], A[t], A[n], r && A.fullWidth, i && A.loading, a),
|
|
436
436
|
disabled: s || i,
|
|
437
437
|
"aria-busy": i || void 0,
|
|
438
438
|
...c,
|
|
439
|
-
children: [i && /* @__PURE__ */
|
|
440
|
-
className:
|
|
439
|
+
children: [i && /* @__PURE__ */ u("svg", {
|
|
440
|
+
className: A.spinner,
|
|
441
441
|
viewBox: "0 0 16 16",
|
|
442
442
|
fill: "none",
|
|
443
443
|
"aria-hidden": "true",
|
|
444
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ u("circle", {
|
|
445
445
|
cx: "8",
|
|
446
446
|
cy: "8",
|
|
447
447
|
r: "6",
|
|
@@ -451,12 +451,12 @@ var m = {
|
|
|
451
451
|
strokeDashoffset: "10"
|
|
452
452
|
})
|
|
453
453
|
}), o]
|
|
454
|
-
}),
|
|
455
|
-
root:
|
|
456
|
-
bordered:
|
|
457
|
-
shadowNone:
|
|
458
|
-
shadowSm:
|
|
459
|
-
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,
|
|
460
460
|
"borderColor-main": "_borderColor-main_1k781_25",
|
|
461
461
|
"borderColor-subtle": "_borderColor-subtle_1k781_28",
|
|
462
462
|
"borderColor-danger": "_borderColor-danger_1k781_31",
|
|
@@ -469,106 +469,106 @@ var m = {
|
|
|
469
469
|
"backgroundColor-success-subtle": "_backgroundColor-success-subtle_1k781_54",
|
|
470
470
|
"backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_1k781_57",
|
|
471
471
|
"backgroundColor-info-subtle": "_backgroundColor-info-subtle_1k781_60",
|
|
472
|
-
pNone:
|
|
473
|
-
pSm:
|
|
474
|
-
pMd:
|
|
475
|
-
pLg:
|
|
476
|
-
header:
|
|
477
|
-
title:
|
|
478
|
-
subtitle:
|
|
479
|
-
content:
|
|
480
|
-
footer:
|
|
481
|
-
},
|
|
472
|
+
pNone: F,
|
|
473
|
+
pSm: re,
|
|
474
|
+
pMd: ie,
|
|
475
|
+
pLg: ae,
|
|
476
|
+
header: oe,
|
|
477
|
+
title: se,
|
|
478
|
+
subtitle: ce,
|
|
479
|
+
content: le,
|
|
480
|
+
footer: ue
|
|
481
|
+
}, de = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
|
|
482
482
|
let c = {
|
|
483
|
-
none:
|
|
484
|
-
sm:
|
|
485
|
-
md:
|
|
486
|
-
lg:
|
|
487
|
-
}[e],
|
|
488
|
-
none:
|
|
489
|
-
sm:
|
|
490
|
-
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
|
|
491
491
|
}[t];
|
|
492
|
-
return /* @__PURE__ */
|
|
493
|
-
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),
|
|
494
494
|
...s,
|
|
495
495
|
children: o
|
|
496
496
|
});
|
|
497
|
-
},
|
|
498
|
-
className:
|
|
497
|
+
}, fe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ d("div", {
|
|
498
|
+
className: m(I.header, n),
|
|
499
499
|
...i,
|
|
500
500
|
children: [
|
|
501
|
-
e && /* @__PURE__ */
|
|
502
|
-
className:
|
|
501
|
+
e && /* @__PURE__ */ u("h3", {
|
|
502
|
+
className: I.title,
|
|
503
503
|
children: e
|
|
504
504
|
}),
|
|
505
|
-
t && /* @__PURE__ */
|
|
506
|
-
className:
|
|
505
|
+
t && /* @__PURE__ */ u("p", {
|
|
506
|
+
className: I.subtitle,
|
|
507
507
|
children: t
|
|
508
508
|
}),
|
|
509
509
|
r
|
|
510
510
|
]
|
|
511
|
-
}),
|
|
512
|
-
className:
|
|
511
|
+
}), pe = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
512
|
+
className: m(I.content, e),
|
|
513
513
|
...n,
|
|
514
514
|
children: t
|
|
515
|
-
}),
|
|
516
|
-
className:
|
|
515
|
+
}), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
516
|
+
className: m(I.footer, e),
|
|
517
517
|
...n,
|
|
518
518
|
children: t
|
|
519
|
-
}),
|
|
520
|
-
wrapper: "
|
|
521
|
-
container: "
|
|
522
|
-
disabled: "
|
|
523
|
-
input: "
|
|
524
|
-
control: "
|
|
525
|
-
checkmark: "
|
|
526
|
-
label: "
|
|
527
|
-
error: "
|
|
528
|
-
helperText: "
|
|
529
|
-
errorText: "
|
|
530
|
-
},
|
|
531
|
-
let c = a(),
|
|
532
|
-
return /* @__PURE__ */
|
|
533
|
-
className:
|
|
534
|
-
children: [/* @__PURE__ */
|
|
535
|
-
htmlFor:
|
|
536
|
-
className:
|
|
519
|
+
}), L = {
|
|
520
|
+
wrapper: "_wrapper_n7hfc_1",
|
|
521
|
+
container: "_container_n7hfc_8",
|
|
522
|
+
disabled: "_disabled_n7hfc_16",
|
|
523
|
+
input: "_input_n7hfc_21",
|
|
524
|
+
control: "_control_n7hfc_29",
|
|
525
|
+
checkmark: "_checkmark_n7hfc_58",
|
|
526
|
+
label: "_label_n7hfc_69",
|
|
527
|
+
error: "_error_n7hfc_76",
|
|
528
|
+
helperText: "_helperText_n7hfc_80",
|
|
529
|
+
errorText: "_errorText_n7hfc_87"
|
|
530
|
+
}, he = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: o, ...s }) => {
|
|
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),
|
|
537
537
|
children: [
|
|
538
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ u("input", {
|
|
539
539
|
type: "checkbox",
|
|
540
|
-
id:
|
|
540
|
+
id: l,
|
|
541
541
|
disabled: i,
|
|
542
|
-
className:
|
|
542
|
+
className: L.input,
|
|
543
543
|
"aria-describedby": f,
|
|
544
544
|
"aria-invalid": t || void 0,
|
|
545
545
|
...s
|
|
546
546
|
}),
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
className:
|
|
549
|
-
children: /* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ u("span", {
|
|
548
|
+
className: L.control,
|
|
549
|
+
children: /* @__PURE__ */ u("svg", {
|
|
550
550
|
viewBox: "0 0 24 24",
|
|
551
551
|
fill: "none",
|
|
552
552
|
stroke: "currentColor",
|
|
553
553
|
strokeWidth: "4",
|
|
554
554
|
strokeLinecap: "round",
|
|
555
555
|
strokeLinejoin: "round",
|
|
556
|
-
className:
|
|
557
|
-
children: /* @__PURE__ */
|
|
556
|
+
className: L.checkmark,
|
|
557
|
+
children: /* @__PURE__ */ u("polyline", { points: "20 6 9 17 4 12" })
|
|
558
558
|
})
|
|
559
559
|
}),
|
|
560
|
-
e && /* @__PURE__ */
|
|
561
|
-
className:
|
|
560
|
+
e && /* @__PURE__ */ u("span", {
|
|
561
|
+
className: L.label,
|
|
562
562
|
children: e
|
|
563
563
|
})
|
|
564
564
|
]
|
|
565
|
-
}), n && /* @__PURE__ */
|
|
565
|
+
}), n && /* @__PURE__ */ u("span", {
|
|
566
566
|
id: f,
|
|
567
|
-
className:
|
|
567
|
+
className: m(L.helperText, t && L.errorText),
|
|
568
568
|
children: n
|
|
569
569
|
})]
|
|
570
570
|
});
|
|
571
|
-
},
|
|
571
|
+
}, R = {
|
|
572
572
|
wrapper: "_wrapper_qhe61_1",
|
|
573
573
|
fullWidth: "_fullWidth_qhe61_9",
|
|
574
574
|
label: "_label_qhe61_13",
|
|
@@ -588,73 +588,73 @@ var m = {
|
|
|
588
588
|
optionDescription: "_optionDescription_qhe61_128",
|
|
589
589
|
helperText: "_helperText_qhe61_133",
|
|
590
590
|
errorText: "_errorText_qhe61_138"
|
|
591
|
-
},
|
|
592
|
-
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 = () => {
|
|
593
593
|
if (!h) {
|
|
594
594
|
let t = !C;
|
|
595
595
|
if (w(t), t) {
|
|
596
|
-
if (
|
|
596
|
+
if (D === -1) {
|
|
597
597
|
let t = e.findIndex((e) => e.value === A);
|
|
598
|
-
|
|
598
|
+
O(t >= 0 ? t : 0);
|
|
599
599
|
}
|
|
600
|
-
} else
|
|
600
|
+
} else O(-1);
|
|
601
601
|
}
|
|
602
|
-
},
|
|
603
|
-
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());
|
|
604
604
|
};
|
|
605
605
|
return i(() => {
|
|
606
|
-
C &&
|
|
606
|
+
C && D >= 0 && document.getElementById(`${x}-opt-${D}`)?.scrollIntoView({ block: "nearest" });
|
|
607
607
|
}, [
|
|
608
|
-
|
|
608
|
+
D,
|
|
609
609
|
C,
|
|
610
610
|
x
|
|
611
611
|
]), i(() => {
|
|
612
612
|
let e = (e) => {
|
|
613
|
-
|
|
613
|
+
ee.current && !ee.current.contains(e.target) && (w(!1), O(-1));
|
|
614
614
|
};
|
|
615
615
|
return document.addEventListener("mousedown", e), () => {
|
|
616
616
|
document.removeEventListener("mousedown", e);
|
|
617
617
|
};
|
|
618
|
-
}, []), /* @__PURE__ */
|
|
619
|
-
className:
|
|
620
|
-
ref:
|
|
618
|
+
}, []), /* @__PURE__ */ d("div", {
|
|
619
|
+
className: m(R.wrapper, R[g], y && R.fullWidth, p && R.error, _),
|
|
620
|
+
ref: ee,
|
|
621
621
|
children: [
|
|
622
|
-
|
|
622
|
+
l && /* @__PURE__ */ u("label", {
|
|
623
623
|
htmlFor: x,
|
|
624
|
-
className:
|
|
625
|
-
children:
|
|
624
|
+
className: R.label,
|
|
625
|
+
children: l
|
|
626
626
|
}),
|
|
627
|
-
/* @__PURE__ */
|
|
628
|
-
className:
|
|
629
|
-
children: [/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ d("div", {
|
|
628
|
+
className: R.container,
|
|
629
|
+
children: [/* @__PURE__ */ d("button", {
|
|
630
630
|
id: x,
|
|
631
631
|
ref: k,
|
|
632
632
|
type: "button",
|
|
633
|
-
className:
|
|
634
|
-
onClick:
|
|
633
|
+
className: m(R.trigger, C && R.isOpen),
|
|
634
|
+
onClick: te,
|
|
635
635
|
onKeyDown: (t) => {
|
|
636
636
|
if (!h) switch (t.key) {
|
|
637
637
|
case "ArrowDown":
|
|
638
|
-
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));
|
|
639
639
|
break;
|
|
640
640
|
case "ArrowUp":
|
|
641
|
-
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));
|
|
642
642
|
break;
|
|
643
643
|
case "Enter":
|
|
644
644
|
case " ":
|
|
645
|
-
t.preventDefault(), C ?
|
|
645
|
+
t.preventDefault(), C ? D >= 0 && N(e[D], D) : (w(!0), O(e.findIndex((e) => e.value === A) || 0));
|
|
646
646
|
break;
|
|
647
647
|
case "Escape":
|
|
648
|
-
C && (t.preventDefault(), w(!1),
|
|
648
|
+
C && (t.preventDefault(), w(!1), O(-1), k.current?.focus());
|
|
649
649
|
break;
|
|
650
650
|
case "Tab":
|
|
651
|
-
C && (w(!1),
|
|
651
|
+
C && (w(!1), O(-1));
|
|
652
652
|
break;
|
|
653
653
|
case "Home":
|
|
654
|
-
C && (t.preventDefault(),
|
|
654
|
+
C && (t.preventDefault(), O(0));
|
|
655
655
|
break;
|
|
656
656
|
case "End":
|
|
657
|
-
C && (t.preventDefault(),
|
|
657
|
+
C && (t.preventDefault(), O(e.length - 1));
|
|
658
658
|
break;
|
|
659
659
|
default: break;
|
|
660
660
|
}
|
|
@@ -663,22 +663,22 @@ var m = {
|
|
|
663
663
|
"aria-haspopup": "listbox",
|
|
664
664
|
"aria-expanded": C,
|
|
665
665
|
"aria-describedby": S,
|
|
666
|
-
"aria-invalid":
|
|
666
|
+
"aria-invalid": p || void 0,
|
|
667
667
|
"aria-controls": C ? `${x}-menu` : void 0,
|
|
668
|
-
"aria-activedescendant": C ?
|
|
669
|
-
children: [/* @__PURE__ */
|
|
670
|
-
className:
|
|
671
|
-
children:
|
|
672
|
-
}), /* @__PURE__ */
|
|
673
|
-
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,
|
|
674
674
|
"aria-hidden": "true",
|
|
675
|
-
children: /* @__PURE__ */
|
|
675
|
+
children: /* @__PURE__ */ u("svg", {
|
|
676
676
|
width: "12",
|
|
677
677
|
height: "12",
|
|
678
678
|
viewBox: "0 0 12 12",
|
|
679
679
|
fill: "none",
|
|
680
680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
681
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ u("path", {
|
|
682
682
|
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
683
683
|
stroke: "currentColor",
|
|
684
684
|
strokeWidth: "1.5",
|
|
@@ -687,62 +687,62 @@ var m = {
|
|
|
687
687
|
})
|
|
688
688
|
})
|
|
689
689
|
})]
|
|
690
|
-
}), C && /* @__PURE__ */
|
|
690
|
+
}), C && /* @__PURE__ */ u("ul", {
|
|
691
691
|
id: `${x}-menu`,
|
|
692
|
-
className:
|
|
692
|
+
className: R.menu,
|
|
693
693
|
role: "listbox",
|
|
694
|
-
"aria-labelledby":
|
|
694
|
+
"aria-labelledby": l ? void 0 : x,
|
|
695
695
|
children: e.map((e, t) => {
|
|
696
|
-
let n = e.value === A, r = t ===
|
|
697
|
-
return /* @__PURE__ */
|
|
696
|
+
let n = e.value === A, r = t === D;
|
|
697
|
+
return /* @__PURE__ */ d("li", {
|
|
698
698
|
id: `${x}-opt-${t}`,
|
|
699
699
|
role: "option",
|
|
700
700
|
"aria-selected": n,
|
|
701
|
-
className:
|
|
702
|
-
onClick: () =>
|
|
703
|
-
onMouseEnter: () => !e.disabled &&
|
|
704
|
-
children: [/* @__PURE__ */
|
|
705
|
-
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,
|
|
706
706
|
children: e.label
|
|
707
|
-
}), e.description && /* @__PURE__ */
|
|
708
|
-
className:
|
|
707
|
+
}), e.description && /* @__PURE__ */ u("span", {
|
|
708
|
+
className: R.optionDescription,
|
|
709
709
|
children: e.description
|
|
710
710
|
})]
|
|
711
711
|
}, e.value);
|
|
712
712
|
})
|
|
713
713
|
})]
|
|
714
714
|
}),
|
|
715
|
-
f && /* @__PURE__ */
|
|
715
|
+
f && /* @__PURE__ */ u("span", {
|
|
716
716
|
id: S,
|
|
717
|
-
className:
|
|
717
|
+
className: m(R.helperText, p && R.errorText),
|
|
718
718
|
children: f
|
|
719
719
|
})
|
|
720
720
|
]
|
|
721
721
|
});
|
|
722
|
-
},
|
|
722
|
+
}, _e = {
|
|
723
723
|
root: "_root_1one2_1",
|
|
724
724
|
horizontal: "_horizontal_1one2_13",
|
|
725
725
|
vertical: "_vertical_1one2_21"
|
|
726
|
-
},
|
|
726
|
+
}, ve = (e) => typeof e == "number" ? `${e}px` : e, ye = ({ orientation: e = "horizontal", thickness: t, length: n, spacing: r, inset: i, className: a, style: o, ...s }) => {
|
|
727
727
|
let c = {
|
|
728
728
|
...o,
|
|
729
|
-
"--divider-thickness":
|
|
730
|
-
"--divider-length":
|
|
731
|
-
"--divider-spacing":
|
|
732
|
-
"--divider-inset":
|
|
729
|
+
"--divider-thickness": ve(t),
|
|
730
|
+
"--divider-length": ve(n),
|
|
731
|
+
"--divider-spacing": ve(r),
|
|
732
|
+
"--divider-inset": ve(i)
|
|
733
733
|
};
|
|
734
|
-
return e === "vertical" ? /* @__PURE__ */
|
|
734
|
+
return e === "vertical" ? /* @__PURE__ */ u("div", {
|
|
735
735
|
role: "separator",
|
|
736
736
|
"aria-orientation": "vertical",
|
|
737
|
-
className:
|
|
737
|
+
className: m(_e.root, _e.vertical, a),
|
|
738
738
|
style: c,
|
|
739
739
|
...s
|
|
740
|
-
}) : /* @__PURE__ */
|
|
741
|
-
className:
|
|
740
|
+
}) : /* @__PURE__ */ u("hr", {
|
|
741
|
+
className: m(_e.root, _e.horizontal, a),
|
|
742
742
|
style: c,
|
|
743
743
|
...s
|
|
744
744
|
});
|
|
745
|
-
},
|
|
745
|
+
}, z = {
|
|
746
746
|
root: "_root_1ujj3_1",
|
|
747
747
|
container: "_container_1ujj3_8",
|
|
748
748
|
sideContainer: "_sideContainer_1ujj3_18",
|
|
@@ -751,46 +751,46 @@ var m = {
|
|
|
751
751
|
actions: "_actions_1ujj3_32",
|
|
752
752
|
title: "_title_1ujj3_44",
|
|
753
753
|
welcome: "_welcome_1ujj3_52"
|
|
754
|
-
},
|
|
755
|
-
let
|
|
754
|
+
}, be = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
|
|
755
|
+
let l = {
|
|
756
756
|
size: "sm",
|
|
757
757
|
intent: "info"
|
|
758
758
|
};
|
|
759
|
-
return /* @__PURE__ */
|
|
759
|
+
return /* @__PURE__ */ u("header", {
|
|
760
760
|
id: e,
|
|
761
|
-
className:
|
|
762
|
-
children: /* @__PURE__ */
|
|
763
|
-
className:
|
|
761
|
+
className: m(z.root, s),
|
|
762
|
+
children: /* @__PURE__ */ d("div", {
|
|
763
|
+
className: z.container,
|
|
764
764
|
style: { maxWidth: c },
|
|
765
|
-
children: [/* @__PURE__ */
|
|
766
|
-
className:
|
|
767
|
-
children: [t, n ? /* @__PURE__ */
|
|
768
|
-
className:
|
|
765
|
+
children: [/* @__PURE__ */ d("div", {
|
|
766
|
+
className: m(z.sideContainer, z.leftSide),
|
|
767
|
+
children: [t, n ? /* @__PURE__ */ u("h1", {
|
|
768
|
+
className: z.title,
|
|
769
769
|
children: n
|
|
770
770
|
}) : null]
|
|
771
|
-
}), /* @__PURE__ */
|
|
772
|
-
className:
|
|
773
|
-
children: r ? /* @__PURE__ */
|
|
774
|
-
className:
|
|
775
|
-
children: [/* @__PURE__ */
|
|
776
|
-
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,
|
|
777
777
|
children: [
|
|
778
778
|
"Welcome, ",
|
|
779
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ u("strong", { children: r.name }),
|
|
780
780
|
"!"
|
|
781
781
|
]
|
|
782
|
-
}), /* @__PURE__ */
|
|
783
|
-
...
|
|
782
|
+
}), /* @__PURE__ */ u(j, {
|
|
783
|
+
...l,
|
|
784
784
|
onClick: a,
|
|
785
785
|
children: "Log out"
|
|
786
786
|
})]
|
|
787
|
-
}) : /* @__PURE__ */
|
|
788
|
-
className:
|
|
789
|
-
children: [i ? /* @__PURE__ */
|
|
790
|
-
...
|
|
787
|
+
}) : /* @__PURE__ */ d("div", {
|
|
788
|
+
className: z.actions,
|
|
789
|
+
children: [i ? /* @__PURE__ */ u(j, {
|
|
790
|
+
...l,
|
|
791
791
|
onClick: i,
|
|
792
792
|
children: "Log in"
|
|
793
|
-
}) : null, o ? /* @__PURE__ */
|
|
793
|
+
}) : null, o ? /* @__PURE__ */ u(j, {
|
|
794
794
|
size: "sm",
|
|
795
795
|
intent: "info",
|
|
796
796
|
variant: "solid",
|
|
@@ -801,37 +801,37 @@ var m = {
|
|
|
801
801
|
})]
|
|
802
802
|
})
|
|
803
803
|
});
|
|
804
|
-
},
|
|
805
|
-
root: "
|
|
806
|
-
container: "
|
|
807
|
-
leftSection: "
|
|
808
|
-
nav: "
|
|
809
|
-
navList: "
|
|
810
|
-
navItem: "
|
|
811
|
-
navLink: "
|
|
812
|
-
disabled: "
|
|
813
|
-
active: "
|
|
814
|
-
rightSection: "
|
|
815
|
-
},
|
|
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", {
|
|
816
816
|
id: e,
|
|
817
|
-
className:
|
|
818
|
-
children: /* @__PURE__ */
|
|
819
|
-
className:
|
|
817
|
+
className: m(B.root, o),
|
|
818
|
+
children: /* @__PURE__ */ d("div", {
|
|
819
|
+
className: B.container,
|
|
820
820
|
style: { maxWidth: s },
|
|
821
821
|
children: [
|
|
822
|
-
r && /* @__PURE__ */
|
|
823
|
-
className:
|
|
822
|
+
r && /* @__PURE__ */ u("div", {
|
|
823
|
+
className: B.leftSection,
|
|
824
824
|
children: r
|
|
825
825
|
}),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
className:
|
|
828
|
-
children: /* @__PURE__ */
|
|
829
|
-
className:
|
|
830
|
-
children: t.map((e) => /* @__PURE__ */
|
|
831
|
-
className:
|
|
832
|
-
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", {
|
|
833
833
|
type: "button",
|
|
834
|
-
className:
|
|
834
|
+
className: m(B.navLink, n === e.id && B.active, e.disabled && B.disabled),
|
|
835
835
|
onClick: () => !e.disabled && a?.(e.id),
|
|
836
836
|
disabled: e.disabled,
|
|
837
837
|
"aria-current": n === e.id ? "page" : void 0,
|
|
@@ -840,13 +840,13 @@ var m = {
|
|
|
840
840
|
}, e.id))
|
|
841
841
|
})
|
|
842
842
|
}),
|
|
843
|
-
i && /* @__PURE__ */
|
|
844
|
-
className:
|
|
843
|
+
i && /* @__PURE__ */ u("div", {
|
|
844
|
+
className: B.rightSection,
|
|
845
845
|
children: i
|
|
846
846
|
})
|
|
847
847
|
]
|
|
848
848
|
})
|
|
849
|
-
}),
|
|
849
|
+
}), V = {
|
|
850
850
|
wrapper: "_wrapper_15ibj_1",
|
|
851
851
|
fullWidth: "_fullWidth_15ibj_8",
|
|
852
852
|
label: "_label_15ibj_13",
|
|
@@ -857,31 +857,31 @@ var m = {
|
|
|
857
857
|
error: "_error_15ibj_79",
|
|
858
858
|
helperText: "_helperText_15ibj_88",
|
|
859
859
|
errorText: "_errorText_15ibj_94"
|
|
860
|
-
},
|
|
861
|
-
let
|
|
862
|
-
return /* @__PURE__ */
|
|
863
|
-
className:
|
|
860
|
+
}, Se = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, ...c }) => {
|
|
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),
|
|
864
864
|
children: [
|
|
865
|
-
n && /* @__PURE__ */
|
|
865
|
+
n && /* @__PURE__ */ u("label", {
|
|
866
866
|
htmlFor: f,
|
|
867
|
-
className:
|
|
867
|
+
className: V.label,
|
|
868
868
|
children: n
|
|
869
869
|
}),
|
|
870
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ u("input", {
|
|
871
871
|
id: f,
|
|
872
|
-
className:
|
|
873
|
-
"aria-describedby":
|
|
872
|
+
className: m(V.inputRoot, V[e], t && V.error),
|
|
873
|
+
"aria-describedby": p,
|
|
874
874
|
"aria-invalid": t || void 0,
|
|
875
875
|
...c
|
|
876
876
|
}),
|
|
877
|
-
r && /* @__PURE__ */
|
|
878
|
-
id:
|
|
879
|
-
className:
|
|
877
|
+
r && /* @__PURE__ */ u("span", {
|
|
878
|
+
id: p,
|
|
879
|
+
className: m(V.helperText, t && V.errorText),
|
|
880
880
|
children: r
|
|
881
881
|
})
|
|
882
882
|
]
|
|
883
883
|
});
|
|
884
|
-
},
|
|
884
|
+
}, Ce = {
|
|
885
885
|
loader: "_loader_wvz8q_1",
|
|
886
886
|
spin: "_spin_wvz8q_1",
|
|
887
887
|
neutral: "_neutral_wvz8q_10",
|
|
@@ -892,77 +892,77 @@ var m = {
|
|
|
892
892
|
sm: "_sm_wvz8q_27",
|
|
893
893
|
md: "_md_wvz8q_33",
|
|
894
894
|
lg: "_lg_wvz8q_39"
|
|
895
|
-
},
|
|
895
|
+
}, we = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ u("div", {
|
|
896
896
|
id: e,
|
|
897
|
-
className:
|
|
897
|
+
className: m(Ce.loader, Ce[t], Ce[n], r),
|
|
898
898
|
role: "status",
|
|
899
899
|
"aria-label": "Loading"
|
|
900
|
-
}),
|
|
901
|
-
root:
|
|
902
|
-
unordered:
|
|
903
|
-
ordered:
|
|
904
|
-
none:
|
|
905
|
-
"gap-0": "_gap-
|
|
906
|
-
"gap-1": "_gap-
|
|
907
|
-
"gap-2": "_gap-
|
|
908
|
-
"gap-3": "_gap-
|
|
909
|
-
"gap-4": "_gap-
|
|
910
|
-
"gap-5": "_gap-
|
|
911
|
-
"gap-6": "_gap-
|
|
912
|
-
"gap-8": "_gap-
|
|
913
|
-
"gap-10": "_gap-
|
|
914
|
-
"gap-12": "_gap-
|
|
915
|
-
"gap-14": "_gap-
|
|
916
|
-
flex:
|
|
917
|
-
},
|
|
900
|
+
}), Te = "_root_16t5p_1", Ee = "_unordered_16t5p_6", De = "_ordered_16t5p_11", Oe = "_none_16t5p_16", ke = "_flex_16t5p_57", H = {
|
|
901
|
+
root: Te,
|
|
902
|
+
unordered: Ee,
|
|
903
|
+
ordered: De,
|
|
904
|
+
none: Oe,
|
|
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",
|
|
916
|
+
flex: ke
|
|
917
|
+
}, Ae = {
|
|
918
918
|
item: "_item_1x04p_1",
|
|
919
919
|
iconWrapper: "_iconWrapper_1x04p_6"
|
|
920
|
-
},
|
|
921
|
-
className:
|
|
920
|
+
}, je = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ d("li", {
|
|
921
|
+
className: m(Ae.item, n),
|
|
922
922
|
...r,
|
|
923
|
-
children: [t && /* @__PURE__ */
|
|
924
|
-
className:
|
|
923
|
+
children: [t && /* @__PURE__ */ u("span", {
|
|
924
|
+
className: Ae.iconWrapper,
|
|
925
925
|
children: t
|
|
926
|
-
}), /* @__PURE__ */
|
|
927
|
-
className:
|
|
926
|
+
}), /* @__PURE__ */ u("div", {
|
|
927
|
+
className: Ae.content,
|
|
928
928
|
children: e
|
|
929
929
|
})]
|
|
930
|
-
}),
|
|
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 }) => {
|
|
931
931
|
let S = t === "ordered" ? "ol" : "ul", C = {
|
|
932
932
|
...b,
|
|
933
|
-
...
|
|
934
|
-
...
|
|
933
|
+
...E("padding", f, p, h, g, _, v, y),
|
|
934
|
+
...E("margin", i, a, o, s, c, l, d),
|
|
935
935
|
"--list-spacing": typeof n == "number" ? `${n * .25}rem` : n
|
|
936
936
|
};
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
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),
|
|
939
939
|
style: C,
|
|
940
940
|
...x,
|
|
941
941
|
children: e
|
|
942
942
|
});
|
|
943
943
|
};
|
|
944
|
-
|
|
945
|
-
var
|
|
946
|
-
overlay: "
|
|
947
|
-
modal: "
|
|
948
|
-
header: "
|
|
949
|
-
title: "
|
|
950
|
-
closeButton: "
|
|
951
|
-
content: "
|
|
952
|
-
footer: "
|
|
953
|
-
sm: "
|
|
954
|
-
md: "
|
|
955
|
-
lg: "
|
|
956
|
-
xl: "
|
|
957
|
-
full: "
|
|
958
|
-
loading: "
|
|
959
|
-
},
|
|
944
|
+
Me.Item = je;
|
|
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 }) => {
|
|
960
960
|
let g = s(null), _ = s(null), v = s(t), y = a(), b = h ?? `ds-modal-${y}`, x = `${b}-title`;
|
|
961
961
|
return i(() => {
|
|
962
962
|
v.current = t;
|
|
963
963
|
}, [t]), i(() => {
|
|
964
964
|
let t = (e) => {
|
|
965
|
-
if (e.key === "Escape" && !
|
|
965
|
+
if (e.key === "Escape" && !l) {
|
|
966
966
|
v.current();
|
|
967
967
|
return;
|
|
968
968
|
}
|
|
@@ -977,38 +977,38 @@ var V = {
|
|
|
977
977
|
})), () => {
|
|
978
978
|
document.body.style.overflow = "unset", window.removeEventListener("keydown", t), _.current?.focus();
|
|
979
979
|
};
|
|
980
|
-
}, [e,
|
|
981
|
-
className:
|
|
982
|
-
onClick: () => !
|
|
983
|
-
children: /* @__PURE__ */
|
|
980
|
+
}, [e, l]), e ? f(/* @__PURE__ */ u("div", {
|
|
981
|
+
className: U.overlay,
|
|
982
|
+
onClick: () => !l && t(),
|
|
983
|
+
children: /* @__PURE__ */ d("div", {
|
|
984
984
|
id: b,
|
|
985
|
-
className:
|
|
985
|
+
className: m(U.modal, U[c], l && U.loading, p),
|
|
986
986
|
onClick: (e) => e.stopPropagation(),
|
|
987
987
|
role: "dialog",
|
|
988
988
|
"aria-modal": "true",
|
|
989
989
|
"aria-labelledby": n ? x : void 0,
|
|
990
990
|
ref: g,
|
|
991
991
|
children: [
|
|
992
|
-
/* @__PURE__ */
|
|
993
|
-
className:
|
|
994
|
-
children: [n && /* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ d("div", {
|
|
993
|
+
className: U.header,
|
|
994
|
+
children: [n && /* @__PURE__ */ u("h2", {
|
|
995
995
|
id: x,
|
|
996
|
-
className:
|
|
996
|
+
className: U.title,
|
|
997
997
|
children: n
|
|
998
|
-
}), /* @__PURE__ */
|
|
998
|
+
}), /* @__PURE__ */ u(j, {
|
|
999
999
|
variant: "subtle",
|
|
1000
1000
|
size: "sm",
|
|
1001
1001
|
onClick: t,
|
|
1002
|
-
className:
|
|
1002
|
+
className: U.closeButton,
|
|
1003
1003
|
"aria-label": "Close modal",
|
|
1004
|
-
disabled:
|
|
1005
|
-
children: /* @__PURE__ */
|
|
1004
|
+
disabled: l,
|
|
1005
|
+
children: /* @__PURE__ */ u("svg", {
|
|
1006
1006
|
width: "10",
|
|
1007
1007
|
height: "10",
|
|
1008
1008
|
viewBox: "0 0 10 10",
|
|
1009
1009
|
fill: "none",
|
|
1010
1010
|
"aria-hidden": "true",
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ u("path", {
|
|
1012
1012
|
d: "M1 1L9 9M9 1L1 9",
|
|
1013
1013
|
stroke: "currentColor",
|
|
1014
1014
|
strokeWidth: "1.5",
|
|
@@ -1017,54 +1017,54 @@ var V = {
|
|
|
1017
1017
|
})
|
|
1018
1018
|
})]
|
|
1019
1019
|
}),
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
className:
|
|
1020
|
+
/* @__PURE__ */ u("div", {
|
|
1021
|
+
className: U.content,
|
|
1022
1022
|
children: r
|
|
1023
1023
|
}),
|
|
1024
|
-
o && /* @__PURE__ */
|
|
1025
|
-
className:
|
|
1024
|
+
o && /* @__PURE__ */ u("div", {
|
|
1025
|
+
className: U.footer,
|
|
1026
1026
|
children: o
|
|
1027
1027
|
})
|
|
1028
1028
|
]
|
|
1029
1029
|
})
|
|
1030
1030
|
}), document.body) : null;
|
|
1031
|
-
},
|
|
1032
|
-
root: "
|
|
1033
|
-
content: "
|
|
1034
|
-
title: "
|
|
1035
|
-
message: "
|
|
1036
|
-
closeButton: "
|
|
1037
|
-
neutral: "
|
|
1038
|
-
info: "
|
|
1039
|
-
success: "
|
|
1040
|
-
warning: "
|
|
1041
|
-
danger: "
|
|
1042
|
-
},
|
|
1043
|
-
className:
|
|
1031
|
+
}, Pe = {
|
|
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),
|
|
1044
1044
|
role: "alert",
|
|
1045
1045
|
...a,
|
|
1046
|
-
children: [/* @__PURE__ */
|
|
1047
|
-
className:
|
|
1048
|
-
children: [t && /* @__PURE__ */
|
|
1049
|
-
className:
|
|
1046
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1047
|
+
className: Pe.content,
|
|
1048
|
+
children: [t && /* @__PURE__ */ u("div", {
|
|
1049
|
+
className: Pe.title,
|
|
1050
1050
|
children: t
|
|
1051
|
-
}), /* @__PURE__ */
|
|
1052
|
-
className:
|
|
1051
|
+
}), /* @__PURE__ */ u("div", {
|
|
1052
|
+
className: Pe.message,
|
|
1053
1053
|
children: n
|
|
1054
1054
|
})]
|
|
1055
|
-
}), r && /* @__PURE__ */
|
|
1055
|
+
}), r && /* @__PURE__ */ u(j, {
|
|
1056
1056
|
variant: "subtle",
|
|
1057
1057
|
size: "xs",
|
|
1058
1058
|
onClick: r,
|
|
1059
|
-
className:
|
|
1059
|
+
className: Pe.closeButton,
|
|
1060
1060
|
"aria-label": "Close notification",
|
|
1061
|
-
children: /* @__PURE__ */
|
|
1061
|
+
children: /* @__PURE__ */ u("svg", {
|
|
1062
1062
|
width: "10",
|
|
1063
1063
|
height: "10",
|
|
1064
1064
|
viewBox: "0 0 10 10",
|
|
1065
1065
|
fill: "none",
|
|
1066
1066
|
"aria-hidden": "true",
|
|
1067
|
-
children: /* @__PURE__ */
|
|
1067
|
+
children: /* @__PURE__ */ u("path", {
|
|
1068
1068
|
d: "M1 1L9 9M9 1L1 9",
|
|
1069
1069
|
stroke: "currentColor",
|
|
1070
1070
|
strokeWidth: "1.5",
|
|
@@ -1072,93 +1072,93 @@ var V = {
|
|
|
1072
1072
|
})
|
|
1073
1073
|
})
|
|
1074
1074
|
})]
|
|
1075
|
-
}),
|
|
1075
|
+
}), W = {
|
|
1076
1076
|
root: "_root_o4mj7_1",
|
|
1077
1077
|
list: "_list_o4mj7_6",
|
|
1078
1078
|
item: "_item_o4mj7_15",
|
|
1079
1079
|
ellipsis: "_ellipsis_o4mj7_19",
|
|
1080
1080
|
pageButton: "_pageButton_o4mj7_29"
|
|
1081
|
-
},
|
|
1081
|
+
}, Ie = (e, t, n) => Math.min(Math.max(e, t), n), Le = (e, t) => {
|
|
1082
1082
|
let n = [];
|
|
1083
1083
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
1084
1084
|
return n;
|
|
1085
|
-
},
|
|
1085
|
+
}, Re = (e, t, n, r, i) => {
|
|
1086
1086
|
if (e <= 0) return [];
|
|
1087
|
-
if (!i || e <= n * 2 + 1 + r * 2 + 2) return
|
|
1088
|
-
let a =
|
|
1089
|
-
return l && d.push("ellipsis"), f <= p && d.push(...
|
|
1090
|
-
},
|
|
1091
|
-
let k = a(),
|
|
1092
|
-
|
|
1093
|
-
|
|
1087
|
+
if (!i || e <= n * 2 + 1 + r * 2 + 2) return Le(1, e);
|
|
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;
|
|
1089
|
+
return l && d.push("ellipsis"), f <= p && d.push(...Le(f, p)), u && d.push("ellipsis"), d.push(...o), d;
|
|
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), [
|
|
1092
|
+
N,
|
|
1093
|
+
P,
|
|
1094
1094
|
h,
|
|
1095
1095
|
g,
|
|
1096
1096
|
y
|
|
1097
|
-
]),
|
|
1098
|
-
b || e ===
|
|
1097
|
+
]), F = (e) => {
|
|
1098
|
+
b || e === P || (n === void 0 && te(e), i?.(e));
|
|
1099
|
+
}, re = () => {
|
|
1100
|
+
F(1), s?.(1);
|
|
1101
|
+
}, ie = () => {
|
|
1102
|
+
let e = N;
|
|
1103
|
+
F(e), l?.(e);
|
|
1099
1104
|
}, ae = () => {
|
|
1100
|
-
|
|
1105
|
+
let e = Math.max(1, P - 1);
|
|
1106
|
+
F(e), p?.(e);
|
|
1101
1107
|
}, oe = () => {
|
|
1102
|
-
let e =
|
|
1103
|
-
|
|
1104
|
-
}, se = () => {
|
|
1105
|
-
let e = Math.max(1, M - 1);
|
|
1106
|
-
N(e), m?.(e);
|
|
1107
|
-
}, ce = () => {
|
|
1108
|
-
let e = Math.min(j, M + 1);
|
|
1109
|
-
N(e), f?.(e);
|
|
1108
|
+
let e = Math.min(N, P + 1);
|
|
1109
|
+
F(e), f?.(e);
|
|
1110
1110
|
};
|
|
1111
|
-
return
|
|
1112
|
-
id:
|
|
1113
|
-
"aria-label":
|
|
1114
|
-
className:
|
|
1115
|
-
children: /* @__PURE__ */
|
|
1116
|
-
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,
|
|
1117
1117
|
children: [
|
|
1118
|
-
_ && /* @__PURE__ */
|
|
1119
|
-
className:
|
|
1120
|
-
children: /* @__PURE__ */
|
|
1118
|
+
_ && /* @__PURE__ */ u("li", {
|
|
1119
|
+
className: W.item,
|
|
1120
|
+
children: /* @__PURE__ */ u(j, {
|
|
1121
1121
|
size: x,
|
|
1122
1122
|
variant: S,
|
|
1123
1123
|
intent: C,
|
|
1124
|
-
className:
|
|
1125
|
-
onClick:
|
|
1126
|
-
disabled: b ||
|
|
1124
|
+
className: W.pageButton,
|
|
1125
|
+
onClick: re,
|
|
1126
|
+
disabled: b || P === 1,
|
|
1127
1127
|
"aria-label": "Go to first page",
|
|
1128
|
-
children:
|
|
1128
|
+
children: E?.first ?? "First"
|
|
1129
1129
|
})
|
|
1130
1130
|
}),
|
|
1131
|
-
v && /* @__PURE__ */
|
|
1132
|
-
className:
|
|
1133
|
-
children: /* @__PURE__ */
|
|
1131
|
+
v && /* @__PURE__ */ u("li", {
|
|
1132
|
+
className: W.item,
|
|
1133
|
+
children: /* @__PURE__ */ u(j, {
|
|
1134
1134
|
size: x,
|
|
1135
1135
|
variant: S,
|
|
1136
1136
|
intent: C,
|
|
1137
|
-
className:
|
|
1138
|
-
onClick:
|
|
1139
|
-
disabled: b ||
|
|
1137
|
+
className: W.pageButton,
|
|
1138
|
+
onClick: ae,
|
|
1139
|
+
disabled: b || P === 1,
|
|
1140
1140
|
"aria-label": "Go to previous page",
|
|
1141
|
-
children:
|
|
1141
|
+
children: E?.prev ?? "Prev"
|
|
1142
1142
|
})
|
|
1143
1143
|
}),
|
|
1144
|
-
|
|
1145
|
-
if (e === "ellipsis") return /* @__PURE__ */
|
|
1146
|
-
className:
|
|
1144
|
+
ne.map((e, t) => {
|
|
1145
|
+
if (e === "ellipsis") return /* @__PURE__ */ u("li", {
|
|
1146
|
+
className: W.item,
|
|
1147
1147
|
"aria-hidden": "true",
|
|
1148
|
-
children: /* @__PURE__ */
|
|
1149
|
-
className:
|
|
1148
|
+
children: /* @__PURE__ */ u("span", {
|
|
1149
|
+
className: W.ellipsis,
|
|
1150
1150
|
children: "…"
|
|
1151
1151
|
})
|
|
1152
1152
|
}, `ellipsis-${t}`);
|
|
1153
|
-
let n = e ===
|
|
1154
|
-
return /* @__PURE__ */
|
|
1155
|
-
className:
|
|
1156
|
-
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, {
|
|
1157
1157
|
size: x,
|
|
1158
1158
|
variant: n ? w : S,
|
|
1159
|
-
intent: n ?
|
|
1160
|
-
className:
|
|
1161
|
-
onClick: () =>
|
|
1159
|
+
intent: n ? T ?? C : C,
|
|
1160
|
+
className: W.pageButton,
|
|
1161
|
+
onClick: () => F(e),
|
|
1162
1162
|
disabled: b,
|
|
1163
1163
|
"aria-current": n ? "page" : void 0,
|
|
1164
1164
|
"aria-label": r,
|
|
@@ -1166,36 +1166,36 @@ var V = {
|
|
|
1166
1166
|
})
|
|
1167
1167
|
}, e);
|
|
1168
1168
|
}),
|
|
1169
|
-
v && /* @__PURE__ */
|
|
1170
|
-
className:
|
|
1171
|
-
children: /* @__PURE__ */
|
|
1169
|
+
v && /* @__PURE__ */ u("li", {
|
|
1170
|
+
className: W.item,
|
|
1171
|
+
children: /* @__PURE__ */ u(j, {
|
|
1172
1172
|
size: x,
|
|
1173
1173
|
variant: S,
|
|
1174
1174
|
intent: C,
|
|
1175
|
-
className:
|
|
1176
|
-
onClick:
|
|
1177
|
-
disabled: b ||
|
|
1175
|
+
className: W.pageButton,
|
|
1176
|
+
onClick: oe,
|
|
1177
|
+
disabled: b || P === N,
|
|
1178
1178
|
"aria-label": "Go to next page",
|
|
1179
|
-
children:
|
|
1179
|
+
children: E?.next ?? "Next"
|
|
1180
1180
|
})
|
|
1181
1181
|
}),
|
|
1182
|
-
_ && /* @__PURE__ */
|
|
1183
|
-
className:
|
|
1184
|
-
children: /* @__PURE__ */
|
|
1182
|
+
_ && /* @__PURE__ */ u("li", {
|
|
1183
|
+
className: W.item,
|
|
1184
|
+
children: /* @__PURE__ */ u(j, {
|
|
1185
1185
|
size: x,
|
|
1186
1186
|
variant: S,
|
|
1187
1187
|
intent: C,
|
|
1188
|
-
className:
|
|
1189
|
-
onClick:
|
|
1190
|
-
disabled: b ||
|
|
1188
|
+
className: W.pageButton,
|
|
1189
|
+
onClick: ie,
|
|
1190
|
+
disabled: b || P === N,
|
|
1191
1191
|
"aria-label": "Go to last page",
|
|
1192
|
-
children:
|
|
1192
|
+
children: E?.last ?? "Last"
|
|
1193
1193
|
})
|
|
1194
1194
|
})
|
|
1195
1195
|
]
|
|
1196
1196
|
})
|
|
1197
1197
|
});
|
|
1198
|
-
},
|
|
1198
|
+
}, G = {
|
|
1199
1199
|
wrapper: "_wrapper_16yvn_1",
|
|
1200
1200
|
labelWrapper: "_labelWrapper_16yvn_8",
|
|
1201
1201
|
label: "_label_16yvn_8",
|
|
@@ -1209,36 +1209,36 @@ var V = {
|
|
|
1209
1209
|
success: "_success_16yvn_57",
|
|
1210
1210
|
warning: "_warning_16yvn_61",
|
|
1211
1211
|
danger: "_danger_16yvn_65"
|
|
1212
|
-
},
|
|
1213
|
-
let
|
|
1214
|
-
return /* @__PURE__ */
|
|
1212
|
+
}, Be = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: o, className: s, id: c }) => {
|
|
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", {
|
|
1215
1215
|
id: f,
|
|
1216
|
-
className:
|
|
1217
|
-
children: [(o || i) && /* @__PURE__ */
|
|
1218
|
-
className:
|
|
1219
|
-
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", {
|
|
1220
1220
|
id: _,
|
|
1221
|
-
className:
|
|
1221
|
+
className: G.label,
|
|
1222
1222
|
children: o
|
|
1223
|
-
}), i && /* @__PURE__ */
|
|
1224
|
-
className:
|
|
1223
|
+
}), i && /* @__PURE__ */ d("span", {
|
|
1224
|
+
className: G.percentage,
|
|
1225
1225
|
children: [Math.round(g), "%"]
|
|
1226
1226
|
})]
|
|
1227
|
-
}), /* @__PURE__ */
|
|
1228
|
-
className:
|
|
1227
|
+
}), /* @__PURE__ */ u("div", {
|
|
1228
|
+
className: G.progressRoot,
|
|
1229
1229
|
role: "progressbar",
|
|
1230
1230
|
"aria-valuenow": h,
|
|
1231
1231
|
"aria-valuemin": 0,
|
|
1232
1232
|
"aria-valuemax": t,
|
|
1233
1233
|
"aria-labelledby": _,
|
|
1234
1234
|
"aria-label": o ? void 0 : "Progress",
|
|
1235
|
-
children: /* @__PURE__ */
|
|
1236
|
-
className:
|
|
1235
|
+
children: /* @__PURE__ */ u("div", {
|
|
1236
|
+
className: G.indicator,
|
|
1237
1237
|
style: { width: `${g}%` }
|
|
1238
1238
|
})
|
|
1239
1239
|
})]
|
|
1240
1240
|
});
|
|
1241
|
-
},
|
|
1241
|
+
}, K = {
|
|
1242
1242
|
wrapper: "_wrapper_92sko_1",
|
|
1243
1243
|
fullWidth: "_fullWidth_92sko_8",
|
|
1244
1244
|
header: "_header_92sko_13",
|
|
@@ -1258,143 +1258,143 @@ var V = {
|
|
|
1258
1258
|
inputsRow: "_inputsRow_92sko_179",
|
|
1259
1259
|
singleInputRow: "_singleInputRow_92sko_187",
|
|
1260
1260
|
separator: "_separator_92sko_191"
|
|
1261
|
-
},
|
|
1261
|
+
}, q = (e, t) => {
|
|
1262
1262
|
if (e == null) return t;
|
|
1263
1263
|
let n = typeof e == "number" ? e : Number(e);
|
|
1264
1264
|
return Number.isNaN(n) ? t : n;
|
|
1265
|
-
},
|
|
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) => {
|
|
1266
1266
|
if (Array.isArray(e)) {
|
|
1267
|
-
let r =
|
|
1267
|
+
let r = Ve(q(e[0], t), t, n), i = Ve(q(e[1], n), t, n);
|
|
1268
1268
|
return r <= i ? [r, i] : [i, r];
|
|
1269
1269
|
}
|
|
1270
|
-
let r =
|
|
1270
|
+
let r = Ve(q(e, t), t, n);
|
|
1271
1271
|
return [r, r];
|
|
1272
|
-
},
|
|
1273
|
-
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), [
|
|
1274
1274
|
h,
|
|
1275
1275
|
S,
|
|
1276
1276
|
x,
|
|
1277
|
-
|
|
1278
|
-
])), [
|
|
1279
|
-
|
|
1280
|
-
},
|
|
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) => {
|
|
1281
1281
|
if (!e.trim()) return;
|
|
1282
1282
|
let t = Number(e);
|
|
1283
|
-
Number.isNaN(t) ||
|
|
1284
|
-
},
|
|
1283
|
+
Number.isNaN(t) || M([He(t, x, w ? O : S, C), O]);
|
|
1284
|
+
}, N = (e) => {
|
|
1285
1285
|
if (!e.trim()) return;
|
|
1286
1286
|
let t = Number(e);
|
|
1287
|
-
Number.isNaN(t) ||
|
|
1287
|
+
Number.isNaN(t) || M([D, He(t, D, S, C)]);
|
|
1288
1288
|
};
|
|
1289
|
-
return /* @__PURE__ */
|
|
1290
|
-
className:
|
|
1289
|
+
return /* @__PURE__ */ d("div", {
|
|
1290
|
+
className: m(K.wrapper, r && K.fullWidth, l),
|
|
1291
1291
|
children: [
|
|
1292
|
-
(t || i) && /* @__PURE__ */
|
|
1293
|
-
className:
|
|
1294
|
-
children: [t && /* @__PURE__ */
|
|
1292
|
+
(t || i) && /* @__PURE__ */ d("div", {
|
|
1293
|
+
className: K.header,
|
|
1294
|
+
children: [t && /* @__PURE__ */ u("label", {
|
|
1295
1295
|
htmlFor: y,
|
|
1296
|
-
className:
|
|
1296
|
+
className: K.label,
|
|
1297
1297
|
children: t
|
|
1298
|
-
}), i && /* @__PURE__ */
|
|
1299
|
-
className:
|
|
1300
|
-
children:
|
|
1298
|
+
}), i && /* @__PURE__ */ u("span", {
|
|
1299
|
+
className: K.value,
|
|
1300
|
+
children: ee
|
|
1301
1301
|
})]
|
|
1302
1302
|
}),
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
className:
|
|
1303
|
+
/* @__PURE__ */ d("div", {
|
|
1304
|
+
className: m(K.sliderRoot, K[e], _.disabled && K.disabled),
|
|
1305
1305
|
children: [
|
|
1306
|
-
/* @__PURE__ */
|
|
1307
|
-
/* @__PURE__ */
|
|
1308
|
-
className:
|
|
1306
|
+
/* @__PURE__ */ u("div", { className: K.track }),
|
|
1307
|
+
/* @__PURE__ */ u("div", {
|
|
1308
|
+
className: K.activeTrack,
|
|
1309
1309
|
style: {
|
|
1310
1310
|
left: `${w ? A : 0}%`,
|
|
1311
|
-
width: `${w ?
|
|
1311
|
+
width: `${w ? j - A : A}%`
|
|
1312
1312
|
}
|
|
1313
1313
|
}),
|
|
1314
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ u("input", {
|
|
1315
1315
|
id: y,
|
|
1316
1316
|
type: "range",
|
|
1317
|
-
className:
|
|
1317
|
+
className: m(K.inputRoot, w && K.inputStart),
|
|
1318
1318
|
"aria-describedby": b,
|
|
1319
1319
|
"aria-label": t ? void 0 : w ? "Slider minimum" : "Slider",
|
|
1320
|
-
"aria-valuetext": i ?
|
|
1320
|
+
"aria-valuetext": i ? ee : void 0,
|
|
1321
1321
|
..._,
|
|
1322
1322
|
min: x,
|
|
1323
1323
|
max: S,
|
|
1324
1324
|
step: C,
|
|
1325
|
-
value:
|
|
1325
|
+
value: D,
|
|
1326
1326
|
onChange: (e) => {
|
|
1327
|
-
|
|
1327
|
+
M([He(q(e.target.value, x), x, O, C), O]);
|
|
1328
1328
|
}
|
|
1329
1329
|
}),
|
|
1330
|
-
w && /* @__PURE__ */
|
|
1330
|
+
w && /* @__PURE__ */ u("input", {
|
|
1331
1331
|
id: `${y}-end`,
|
|
1332
1332
|
type: "range",
|
|
1333
|
-
className:
|
|
1333
|
+
className: m(K.inputRoot, K.inputEnd),
|
|
1334
1334
|
"aria-describedby": b,
|
|
1335
1335
|
"aria-label": t ? `${t} maximum` : "Slider maximum",
|
|
1336
1336
|
..._,
|
|
1337
1337
|
min: x,
|
|
1338
1338
|
max: S,
|
|
1339
1339
|
step: C,
|
|
1340
|
-
value:
|
|
1340
|
+
value: O,
|
|
1341
1341
|
onChange: (e) => {
|
|
1342
|
-
|
|
1342
|
+
M([D, He(q(e.target.value, S), D, S, C)]);
|
|
1343
1343
|
}
|
|
1344
1344
|
})
|
|
1345
1345
|
]
|
|
1346
1346
|
}),
|
|
1347
|
-
s && /* @__PURE__ */
|
|
1348
|
-
className:
|
|
1347
|
+
s && /* @__PURE__ */ d("div", {
|
|
1348
|
+
className: m(K.inputsRow, !w && K.singleInputRow),
|
|
1349
1349
|
children: [
|
|
1350
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ u(Se, {
|
|
1351
1351
|
type: "number",
|
|
1352
1352
|
inputMode: "decimal",
|
|
1353
1353
|
size: e,
|
|
1354
|
-
defaultValue:
|
|
1354
|
+
defaultValue: D,
|
|
1355
1355
|
min: x,
|
|
1356
|
-
max: w ?
|
|
1356
|
+
max: w ? O : S,
|
|
1357
1357
|
step: C,
|
|
1358
1358
|
"aria-label": t ? `${t} minimum input` : w ? "Slider minimum input" : "Slider input",
|
|
1359
1359
|
fullWidth: !0,
|
|
1360
1360
|
onBlur: (e) => {
|
|
1361
|
-
|
|
1361
|
+
te(e.target.value);
|
|
1362
1362
|
},
|
|
1363
1363
|
onKeyDown: (e) => {
|
|
1364
|
-
e.key === "Enter" &&
|
|
1364
|
+
e.key === "Enter" && te(e.currentTarget.value);
|
|
1365
1365
|
}
|
|
1366
|
-
}, `slider-start-${
|
|
1367
|
-
w && /* @__PURE__ */
|
|
1368
|
-
className:
|
|
1366
|
+
}, `slider-start-${D}-${O}`),
|
|
1367
|
+
w && /* @__PURE__ */ u("span", {
|
|
1368
|
+
className: K.separator,
|
|
1369
1369
|
children: "-"
|
|
1370
1370
|
}),
|
|
1371
|
-
w && /* @__PURE__ */
|
|
1371
|
+
w && /* @__PURE__ */ u(Se, {
|
|
1372
1372
|
type: "number",
|
|
1373
1373
|
inputMode: "decimal",
|
|
1374
1374
|
size: e,
|
|
1375
|
-
defaultValue:
|
|
1376
|
-
min:
|
|
1375
|
+
defaultValue: O,
|
|
1376
|
+
min: D,
|
|
1377
1377
|
max: S,
|
|
1378
1378
|
step: C,
|
|
1379
1379
|
"aria-label": t ? `${t} maximum input` : "Slider maximum input",
|
|
1380
1380
|
fullWidth: !0,
|
|
1381
1381
|
onBlur: (e) => {
|
|
1382
|
-
|
|
1382
|
+
N(e.target.value);
|
|
1383
1383
|
},
|
|
1384
1384
|
onKeyDown: (e) => {
|
|
1385
|
-
e.key === "Enter" &&
|
|
1385
|
+
e.key === "Enter" && N(e.currentTarget.value);
|
|
1386
1386
|
}
|
|
1387
|
-
}, `slider-end-${
|
|
1387
|
+
}, `slider-end-${D}-${O}`)
|
|
1388
1388
|
]
|
|
1389
1389
|
}),
|
|
1390
|
-
n && /* @__PURE__ */
|
|
1390
|
+
n && /* @__PURE__ */ u("span", {
|
|
1391
1391
|
id: b,
|
|
1392
|
-
className:
|
|
1392
|
+
className: K.helperText,
|
|
1393
1393
|
children: n
|
|
1394
1394
|
})
|
|
1395
1395
|
]
|
|
1396
1396
|
});
|
|
1397
|
-
},
|
|
1397
|
+
}, J = {
|
|
1398
1398
|
wrapper: "_wrapper_4v5ks_1",
|
|
1399
1399
|
label: "_label_4v5ks_7",
|
|
1400
1400
|
sm: "_sm_4v5ks_17",
|
|
@@ -1407,34 +1407,34 @@ var V = {
|
|
|
1407
1407
|
error: "_error_4v5ks_133",
|
|
1408
1408
|
helperText: "_helperText_4v5ks_142",
|
|
1409
1409
|
errorText: "_errorText_4v5ks_156"
|
|
1410
|
-
},
|
|
1411
|
-
let c = a(),
|
|
1412
|
-
return /* @__PURE__ */
|
|
1413
|
-
className:
|
|
1414
|
-
children: [/* @__PURE__ */
|
|
1415
|
-
htmlFor:
|
|
1416
|
-
className:
|
|
1417
|
-
children: [/* @__PURE__ */
|
|
1418
|
-
className:
|
|
1419
|
-
children: [/* @__PURE__ */
|
|
1410
|
+
}, Ge = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: o, ...s }) => {
|
|
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", {
|
|
1420
1420
|
type: "radio",
|
|
1421
|
-
id:
|
|
1422
|
-
className:
|
|
1421
|
+
id: l,
|
|
1422
|
+
className: m(J.radioRoot, J[e], r && J.error),
|
|
1423
1423
|
"aria-describedby": f,
|
|
1424
1424
|
"aria-invalid": r || void 0,
|
|
1425
1425
|
...s
|
|
1426
|
-
}), /* @__PURE__ */
|
|
1427
|
-
}), t && /* @__PURE__ */
|
|
1428
|
-
className:
|
|
1426
|
+
}), /* @__PURE__ */ u("span", { className: J.checkmark })]
|
|
1427
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1428
|
+
className: J.labelText,
|
|
1429
1429
|
children: t
|
|
1430
1430
|
})]
|
|
1431
|
-
}), n && /* @__PURE__ */
|
|
1431
|
+
}), n && /* @__PURE__ */ u("span", {
|
|
1432
1432
|
id: f,
|
|
1433
|
-
className:
|
|
1433
|
+
className: m(J.helperText, r && J.errorText),
|
|
1434
1434
|
children: n
|
|
1435
1435
|
})]
|
|
1436
1436
|
});
|
|
1437
|
-
},
|
|
1437
|
+
}, Ke = {
|
|
1438
1438
|
root: "_root_1qfdr_1",
|
|
1439
1439
|
text: "_text_1qfdr_6",
|
|
1440
1440
|
rectangular: "_rectangular_1qfdr_15",
|
|
@@ -1442,38 +1442,38 @@ var V = {
|
|
|
1442
1442
|
circular: "_circular_1qfdr_23",
|
|
1443
1443
|
pulse: "_pulse_1qfdr_28",
|
|
1444
1444
|
wave: "_wave_1qfdr_44"
|
|
1445
|
-
},
|
|
1446
|
-
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),
|
|
1447
1447
|
width: t,
|
|
1448
1448
|
height: n,
|
|
1449
1449
|
style: a,
|
|
1450
1450
|
"aria-hidden": o ?? !0,
|
|
1451
1451
|
...s
|
|
1452
|
-
}), Ye = "
|
|
1453
|
-
step:
|
|
1454
|
-
stepRow:
|
|
1455
|
-
interactive:
|
|
1456
|
-
marker:
|
|
1457
|
-
text:
|
|
1458
|
-
label:
|
|
1459
|
-
description:
|
|
1460
|
-
connector:
|
|
1461
|
-
completed:
|
|
1462
|
-
"connector-completed": "_connector-
|
|
1463
|
-
current:
|
|
1464
|
-
"connector-current": "_connector-
|
|
1465
|
-
error:
|
|
1466
|
-
"connector-error": "_connector-
|
|
1467
|
-
upcoming:
|
|
1468
|
-
disabled:
|
|
1469
|
-
},
|
|
1470
|
-
let c = !!e.disabled,
|
|
1471
|
-
return /* @__PURE__ */
|
|
1472
|
-
className:
|
|
1473
|
-
children: [/* @__PURE__ */
|
|
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 = {
|
|
1453
|
+
step: Je,
|
|
1454
|
+
stepRow: Ye,
|
|
1455
|
+
interactive: Xe,
|
|
1456
|
+
marker: Ze,
|
|
1457
|
+
text: Qe,
|
|
1458
|
+
label: $e,
|
|
1459
|
+
description: et,
|
|
1460
|
+
connector: tt,
|
|
1461
|
+
completed: nt,
|
|
1462
|
+
"connector-completed": "_connector-completed_69ymb_120",
|
|
1463
|
+
current: rt,
|
|
1464
|
+
"connector-current": "_connector-current_69ymb_134",
|
|
1465
|
+
error: it,
|
|
1466
|
+
"connector-error": "_connector-error_69ymb_148",
|
|
1467
|
+
upcoming: at,
|
|
1468
|
+
disabled: ot
|
|
1469
|
+
}, st = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
|
|
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, {
|
|
1474
1474
|
id: o,
|
|
1475
1475
|
type: r ? "button" : void 0,
|
|
1476
|
-
className:
|
|
1476
|
+
className: m(Y.stepRow, r && Y.interactive),
|
|
1477
1477
|
onClick: () => {
|
|
1478
1478
|
r && !c && i?.(e, t);
|
|
1479
1479
|
},
|
|
@@ -1484,50 +1484,50 @@ var V = {
|
|
|
1484
1484
|
"aria-disabled": c ? !0 : void 0,
|
|
1485
1485
|
disabled: r && c ? !0 : void 0,
|
|
1486
1486
|
tabIndex: r && !c ? 0 : void 0,
|
|
1487
|
-
children: [/* @__PURE__ */
|
|
1488
|
-
className:
|
|
1487
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1488
|
+
className: Y.marker,
|
|
1489
1489
|
"aria-hidden": "true",
|
|
1490
1490
|
children: f
|
|
1491
|
-
}), /* @__PURE__ */
|
|
1492
|
-
className:
|
|
1493
|
-
children: [/* @__PURE__ */
|
|
1494
|
-
className:
|
|
1491
|
+
}), /* @__PURE__ */ d("span", {
|
|
1492
|
+
className: Y.text,
|
|
1493
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1494
|
+
className: Y.label,
|
|
1495
1495
|
children: e.label
|
|
1496
|
-
}), e.description && /* @__PURE__ */
|
|
1497
|
-
className:
|
|
1496
|
+
}), e.description && /* @__PURE__ */ u("span", {
|
|
1497
|
+
className: Y.description,
|
|
1498
1498
|
children: e.description
|
|
1499
1499
|
})]
|
|
1500
1500
|
})]
|
|
1501
|
-
}), !a && /* @__PURE__ */
|
|
1502
|
-
className:
|
|
1501
|
+
}), !a && /* @__PURE__ */ u("span", {
|
|
1502
|
+
className: m(Y.connector, Y[`connector-${n}`]),
|
|
1503
1503
|
"aria-hidden": "true"
|
|
1504
1504
|
})]
|
|
1505
1505
|
});
|
|
1506
|
-
},
|
|
1506
|
+
}, ct = {
|
|
1507
1507
|
root: "_root_cxvk2_1",
|
|
1508
1508
|
sm: "_sm_cxvk2_15",
|
|
1509
1509
|
lg: "_lg_cxvk2_22",
|
|
1510
1510
|
horizontal: "_horizontal_cxvk2_29",
|
|
1511
1511
|
vertical: "_vertical_cxvk2_35"
|
|
1512
|
-
},
|
|
1513
|
-
let d = a(), f = c ?? `ds-stepper-${d}`,
|
|
1514
|
-
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", {
|
|
1515
1515
|
id: f,
|
|
1516
|
-
className:
|
|
1516
|
+
className: m(ct.root, ct[n], ct[r], s),
|
|
1517
1517
|
"aria-label": h,
|
|
1518
1518
|
"data-orientation": n,
|
|
1519
|
-
...
|
|
1520
|
-
children: e.map((t, n) => /* @__PURE__ */
|
|
1519
|
+
...l,
|
|
1520
|
+
children: e.map((t, n) => /* @__PURE__ */ u(st, {
|
|
1521
1521
|
id: `${f}-step-${t.id}`,
|
|
1522
1522
|
step: t,
|
|
1523
1523
|
index: n,
|
|
1524
|
-
status:
|
|
1524
|
+
status: dt(n, p, t.status),
|
|
1525
1525
|
isInteractive: !!i,
|
|
1526
1526
|
onStepClick: i,
|
|
1527
1527
|
isLast: n === e.length - 1
|
|
1528
1528
|
}, t.id))
|
|
1529
1529
|
});
|
|
1530
|
-
},
|
|
1530
|
+
}, X = {
|
|
1531
1531
|
wrapper: "_wrapper_vo2yb_1",
|
|
1532
1532
|
fullWidth: "_fullWidth_vo2yb_8",
|
|
1533
1533
|
label: "_label_vo2yb_13",
|
|
@@ -1538,36 +1538,36 @@ var V = {
|
|
|
1538
1538
|
error: "_error_vo2yb_80",
|
|
1539
1539
|
helperText: "_helperText_vo2yb_89",
|
|
1540
1540
|
errorText: "_errorText_vo2yb_95"
|
|
1541
|
-
},
|
|
1542
|
-
let
|
|
1543
|
-
return /* @__PURE__ */
|
|
1544
|
-
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),
|
|
1545
1545
|
children: [
|
|
1546
|
-
n && /* @__PURE__ */
|
|
1546
|
+
n && /* @__PURE__ */ u("label", {
|
|
1547
1547
|
htmlFor: h,
|
|
1548
|
-
className:
|
|
1548
|
+
className: X.label,
|
|
1549
1549
|
children: n
|
|
1550
1550
|
}),
|
|
1551
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ u("select", {
|
|
1552
1552
|
id: h,
|
|
1553
|
-
className:
|
|
1553
|
+
className: m(X.selectRoot, X[e], t && X.error),
|
|
1554
1554
|
"aria-describedby": g,
|
|
1555
1555
|
"aria-invalid": t || void 0,
|
|
1556
1556
|
...f,
|
|
1557
|
-
children: c ? c.map((e) => /* @__PURE__ */
|
|
1557
|
+
children: c ? c.map((e) => /* @__PURE__ */ u("option", {
|
|
1558
1558
|
value: e.value,
|
|
1559
1559
|
disabled: e.disabled,
|
|
1560
1560
|
children: e.label
|
|
1561
|
-
}, e.value)) :
|
|
1561
|
+
}, e.value)) : l
|
|
1562
1562
|
}),
|
|
1563
|
-
r && /* @__PURE__ */
|
|
1563
|
+
r && /* @__PURE__ */ u("span", {
|
|
1564
1564
|
id: g,
|
|
1565
|
-
className:
|
|
1565
|
+
className: m(X.helperText, t && X.errorText),
|
|
1566
1566
|
children: r
|
|
1567
1567
|
})
|
|
1568
1568
|
]
|
|
1569
1569
|
});
|
|
1570
|
-
},
|
|
1570
|
+
}, mt = {
|
|
1571
1571
|
wrapper: "_wrapper_196po_1",
|
|
1572
1572
|
container: "_container_196po_7",
|
|
1573
1573
|
disabled: "_disabled_196po_15",
|
|
@@ -1577,38 +1577,38 @@ var V = {
|
|
|
1577
1577
|
label: "_label_196po_62",
|
|
1578
1578
|
helperText: "_helperText_196po_69"
|
|
1579
1579
|
}, ht = ({ label: e, helperText: t, className: n, disabled: r, id: i, ...o }) => {
|
|
1580
|
-
let s = a(), c = i ?? `ds-switch-${s}`,
|
|
1581
|
-
return /* @__PURE__ */
|
|
1582
|
-
className:
|
|
1583
|
-
children: [/* @__PURE__ */
|
|
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", {
|
|
1584
1584
|
htmlFor: c,
|
|
1585
|
-
className:
|
|
1585
|
+
className: m(mt.container, r && mt.disabled),
|
|
1586
1586
|
children: [
|
|
1587
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ u("input", {
|
|
1588
1588
|
type: "checkbox",
|
|
1589
1589
|
id: c,
|
|
1590
1590
|
role: "switch",
|
|
1591
1591
|
disabled: r,
|
|
1592
|
-
className:
|
|
1593
|
-
"aria-describedby":
|
|
1592
|
+
className: mt.input,
|
|
1593
|
+
"aria-describedby": l,
|
|
1594
1594
|
...o
|
|
1595
1595
|
}),
|
|
1596
|
-
/* @__PURE__ */
|
|
1597
|
-
className:
|
|
1598
|
-
children: /* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ u("span", {
|
|
1597
|
+
className: mt.track,
|
|
1598
|
+
children: /* @__PURE__ */ u("span", { className: mt.thumb })
|
|
1599
1599
|
}),
|
|
1600
|
-
e && /* @__PURE__ */
|
|
1601
|
-
className:
|
|
1600
|
+
e && /* @__PURE__ */ u("span", {
|
|
1601
|
+
className: mt.label,
|
|
1602
1602
|
children: e
|
|
1603
1603
|
})
|
|
1604
1604
|
]
|
|
1605
|
-
}), t && /* @__PURE__ */
|
|
1606
|
-
id:
|
|
1607
|
-
className:
|
|
1605
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1606
|
+
id: l,
|
|
1607
|
+
className: mt.helperText,
|
|
1608
1608
|
children: t
|
|
1609
1609
|
})]
|
|
1610
1610
|
});
|
|
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",
|
|
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
1612
|
wrapper: gt,
|
|
1613
1613
|
table: _t,
|
|
1614
1614
|
thead: vt,
|
|
@@ -1624,39 +1624,39 @@ var V = {
|
|
|
1624
1624
|
"align-right": "_align-right_1w3cj_68",
|
|
1625
1625
|
"align-justify": "_align-justify_1w3cj_71",
|
|
1626
1626
|
loading: Et
|
|
1627
|
-
}, Dt = ({ children: e, className: t, striped: n, hoverable: r, dense: i, isLoading: a, ...o }) => /* @__PURE__ */
|
|
1628
|
-
className:
|
|
1629
|
-
children: /* @__PURE__ */
|
|
1630
|
-
className:
|
|
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),
|
|
1631
1631
|
"aria-busy": a || void 0,
|
|
1632
1632
|
...o,
|
|
1633
1633
|
children: e
|
|
1634
1634
|
})
|
|
1635
|
-
}), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1636
|
-
className:
|
|
1635
|
+
}), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("thead", {
|
|
1636
|
+
className: m(Z.thead, t),
|
|
1637
1637
|
...n,
|
|
1638
1638
|
children: e
|
|
1639
|
-
}), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1640
|
-
className:
|
|
1639
|
+
}), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tbody", {
|
|
1640
|
+
className: m(Z.tbody, t),
|
|
1641
1641
|
...n,
|
|
1642
1642
|
children: e
|
|
1643
|
-
}), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1644
|
-
className:
|
|
1643
|
+
}), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tfoot", {
|
|
1644
|
+
className: m(Z.tfoot, t),
|
|
1645
1645
|
...n,
|
|
1646
1646
|
children: e
|
|
1647
|
-
}), jt = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1648
|
-
className:
|
|
1647
|
+
}), jt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ u("tr", {
|
|
1648
|
+
className: m(Z.tr, t),
|
|
1649
1649
|
...n,
|
|
1650
1650
|
children: e
|
|
1651
|
-
}), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */
|
|
1652
|
-
className:
|
|
1651
|
+
}), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ u("th", {
|
|
1652
|
+
className: m(Z.th, n && Z[`align-${n}`], t),
|
|
1653
1653
|
...r,
|
|
1654
1654
|
children: e
|
|
1655
|
-
}), Nt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */
|
|
1656
|
-
className:
|
|
1655
|
+
}), Nt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ u("td", {
|
|
1656
|
+
className: m(Z.td, n && Z[`align-${n}`], t),
|
|
1657
1657
|
...r,
|
|
1658
1658
|
children: e
|
|
1659
|
-
}),
|
|
1659
|
+
}), Pt = {
|
|
1660
1660
|
root: "_root_1luck_1",
|
|
1661
1661
|
tabList: "_tabList_1luck_8",
|
|
1662
1662
|
tabItem: "_tabItem_1luck_16",
|
|
@@ -1665,8 +1665,8 @@ var V = {
|
|
|
1665
1665
|
pillList: "_pillList_1luck_52",
|
|
1666
1666
|
pillItem: "_pillItem_1luck_60",
|
|
1667
1667
|
tabPanel: "_tabPanel_1luck_72"
|
|
1668
|
-
},
|
|
1669
|
-
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) => {
|
|
1670
1670
|
t || (n === void 0 && g(e), r?.(e));
|
|
1671
1671
|
}, b = (t) => {
|
|
1672
1672
|
let n = e.filter((e) => !e.disabled), r = n.findIndex((e) => e.id === _), i = -1;
|
|
@@ -1678,59 +1678,59 @@ var V = {
|
|
|
1678
1678
|
Array.from(r || []).find((t) => t.getAttribute("data-id") === e)?.focus();
|
|
1679
1679
|
}
|
|
1680
1680
|
}, x = e.find((e) => e.id === _);
|
|
1681
|
-
return /* @__PURE__ */
|
|
1682
|
-
id:
|
|
1683
|
-
className:
|
|
1684
|
-
children: [/* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ d("div", {
|
|
1682
|
+
id: p,
|
|
1683
|
+
className: m(Pt.root, i),
|
|
1684
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1685
1685
|
role: "tablist",
|
|
1686
1686
|
ref: v,
|
|
1687
|
-
className:
|
|
1687
|
+
className: m(Pt.tabList, o === "pill" && Pt.pillList),
|
|
1688
1688
|
onKeyDown: b,
|
|
1689
1689
|
children: e.map((e) => {
|
|
1690
1690
|
let t = e.id === _, n = !!e.disabled, r = n ? -1 : t ? 0 : -1;
|
|
1691
|
-
return /* @__PURE__ */
|
|
1691
|
+
return /* @__PURE__ */ u("button", {
|
|
1692
1692
|
role: "tab",
|
|
1693
|
-
id: `${
|
|
1693
|
+
id: `${p}-tab-${e.id}`,
|
|
1694
1694
|
"aria-selected": t,
|
|
1695
|
-
"aria-controls": `${
|
|
1695
|
+
"aria-controls": `${p}-panel-${e.id}`,
|
|
1696
1696
|
"aria-disabled": n,
|
|
1697
1697
|
tabIndex: r,
|
|
1698
1698
|
disabled: n,
|
|
1699
1699
|
"data-id": e.id,
|
|
1700
|
-
className:
|
|
1700
|
+
className: m(Pt.tabItem, o === "pill" && Pt.pillItem, t && Pt.active, n && Pt.disabled),
|
|
1701
1701
|
onClick: () => y(e.id, n),
|
|
1702
1702
|
children: e.label
|
|
1703
1703
|
}, e.id);
|
|
1704
1704
|
})
|
|
1705
|
-
}), /* @__PURE__ */
|
|
1705
|
+
}), /* @__PURE__ */ u("div", {
|
|
1706
1706
|
role: "tabpanel",
|
|
1707
|
-
id: `${
|
|
1708
|
-
"aria-labelledby": `${
|
|
1709
|
-
className:
|
|
1707
|
+
id: `${p}-panel-${_}`,
|
|
1708
|
+
"aria-labelledby": `${p}-tab-${_}`,
|
|
1709
|
+
className: Pt.tabPanel,
|
|
1710
1710
|
tabIndex: 0,
|
|
1711
1711
|
children: x?.content
|
|
1712
1712
|
})]
|
|
1713
1713
|
});
|
|
1714
|
-
},
|
|
1715
|
-
root:
|
|
1716
|
-
h1:
|
|
1717
|
-
h2:
|
|
1718
|
-
h3:
|
|
1719
|
-
h4:
|
|
1720
|
-
h5:
|
|
1721
|
-
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,
|
|
1722
1722
|
"body-lg": "_body-lg_1onf5_42",
|
|
1723
1723
|
"body-md": "_body-md_1onf5_46",
|
|
1724
1724
|
"body-sm": "_body-sm_1onf5_50",
|
|
1725
|
-
label:
|
|
1726
|
-
code:
|
|
1727
|
-
left:
|
|
1728
|
-
center:
|
|
1729
|
-
right:
|
|
1730
|
-
justify:
|
|
1731
|
-
regular:
|
|
1732
|
-
medium:
|
|
1733
|
-
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,
|
|
1734
1734
|
"color-main": "_color-main_1onf5_95",
|
|
1735
1735
|
"color-subtle": "_color-subtle_1onf5_98",
|
|
1736
1736
|
"color-on-brand": "_color-on-brand_1onf5_104",
|
|
@@ -1738,7 +1738,7 @@ var V = {
|
|
|
1738
1738
|
"color-success": "_color-success_1onf5_110",
|
|
1739
1739
|
"color-warning": "_color-warning_1onf5_113",
|
|
1740
1740
|
"color-info": "_color-info_1onf5_116",
|
|
1741
|
-
noWrap:
|
|
1741
|
+
noWrap: Qt,
|
|
1742
1742
|
"p-0": "_p-0_1onf5_128",
|
|
1743
1743
|
"p-1": "_p-1_1onf5_131",
|
|
1744
1744
|
"p-2": "_p-2_1onf5_134",
|
|
@@ -1904,7 +1904,7 @@ var V = {
|
|
|
1904
1904
|
"mr-10": "_mr-10_1onf5_674",
|
|
1905
1905
|
"mr-12": "_mr-12_1onf5_677",
|
|
1906
1906
|
"mr-14": "_mr-14_1onf5_680"
|
|
1907
|
-
},
|
|
1907
|
+
}, $t = {
|
|
1908
1908
|
h1: "h1",
|
|
1909
1909
|
h2: "h2",
|
|
1910
1910
|
h3: "h3",
|
|
@@ -1916,11 +1916,11 @@ var V = {
|
|
|
1916
1916
|
"body-sm": "p",
|
|
1917
1917
|
label: "span",
|
|
1918
1918
|
code: "code"
|
|
1919
|
-
},
|
|
1920
|
-
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),
|
|
1921
1921
|
...w,
|
|
1922
1922
|
children: e
|
|
1923
|
-
}),
|
|
1923
|
+
}), tn = {
|
|
1924
1924
|
wrapper: "_wrapper_idhh9_1",
|
|
1925
1925
|
fullWidth: "_fullWidth_idhh9_8",
|
|
1926
1926
|
label: "_label_idhh9_13",
|
|
@@ -1931,47 +1931,47 @@ var V = {
|
|
|
1931
1931
|
error: "_error_idhh9_74",
|
|
1932
1932
|
helperText: "_helperText_idhh9_83",
|
|
1933
1933
|
errorText: "_errorText_idhh9_89"
|
|
1934
|
-
},
|
|
1935
|
-
let f = a(),
|
|
1936
|
-
return /* @__PURE__ */
|
|
1937
|
-
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),
|
|
1938
1938
|
children: [
|
|
1939
|
-
n && /* @__PURE__ */
|
|
1940
|
-
htmlFor:
|
|
1941
|
-
className:
|
|
1939
|
+
n && /* @__PURE__ */ u("label", {
|
|
1940
|
+
htmlFor: p,
|
|
1941
|
+
className: tn.label,
|
|
1942
1942
|
children: n
|
|
1943
1943
|
}),
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
id:
|
|
1944
|
+
/* @__PURE__ */ u("textarea", {
|
|
1945
|
+
id: p,
|
|
1946
1946
|
rows: c,
|
|
1947
|
-
className:
|
|
1947
|
+
className: m(tn.textareaRoot, tn[e], t && tn.error),
|
|
1948
1948
|
"aria-describedby": h,
|
|
1949
1949
|
"aria-invalid": t || void 0,
|
|
1950
|
-
...
|
|
1950
|
+
...l
|
|
1951
1951
|
}),
|
|
1952
|
-
r && /* @__PURE__ */
|
|
1952
|
+
r && /* @__PURE__ */ u("span", {
|
|
1953
1953
|
id: h,
|
|
1954
|
-
className:
|
|
1954
|
+
className: m(tn.helperText, t && tn.errorText),
|
|
1955
1955
|
children: r
|
|
1956
1956
|
})
|
|
1957
1957
|
]
|
|
1958
1958
|
});
|
|
1959
|
-
},
|
|
1960
|
-
root: "
|
|
1961
|
-
trigger: "
|
|
1962
|
-
tooltip: "
|
|
1963
|
-
dark: "
|
|
1964
|
-
light: "
|
|
1965
|
-
visible: "
|
|
1966
|
-
top: "
|
|
1967
|
-
bottom: "
|
|
1968
|
-
left: "
|
|
1969
|
-
right: "
|
|
1970
|
-
},
|
|
1971
|
-
let [h, g] = c(!1), _ = s(null), v = a(), y =
|
|
1959
|
+
}, rn = {
|
|
1960
|
+
root: "_root_67qke_1",
|
|
1961
|
+
trigger: "_trigger_67qke_6",
|
|
1962
|
+
tooltip: "_tooltip_67qke_10",
|
|
1963
|
+
dark: "_dark_67qke_22",
|
|
1964
|
+
light: "_light_67qke_27",
|
|
1965
|
+
visible: "_visible_67qke_34",
|
|
1966
|
+
top: "_top_67qke_39",
|
|
1967
|
+
bottom: "_bottom_67qke_45",
|
|
1968
|
+
left: "_left_67qke_51",
|
|
1969
|
+
right: "_right_67qke_57"
|
|
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 = () => {
|
|
1972
1972
|
_.current = window.setTimeout(() => {
|
|
1973
1973
|
g(!0);
|
|
1974
|
-
},
|
|
1974
|
+
}, l);
|
|
1975
1975
|
}, S = () => {
|
|
1976
1976
|
_.current && window.clearTimeout(_.current), g(!1);
|
|
1977
1977
|
}, C = (e) => {
|
|
@@ -1980,37 +1980,79 @@ var V = {
|
|
|
1980
1980
|
let e = t;
|
|
1981
1981
|
return n(e, { "aria-describedby": [e.props["aria-describedby"], b].filter(Boolean).join(" ") });
|
|
1982
1982
|
})() : t;
|
|
1983
|
-
return /* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ d("div", {
|
|
1984
1984
|
id: y,
|
|
1985
|
-
className:
|
|
1985
|
+
className: m(rn.root, f),
|
|
1986
1986
|
onMouseEnter: x,
|
|
1987
1987
|
onMouseLeave: S,
|
|
1988
1988
|
onFocus: x,
|
|
1989
1989
|
onBlur: S,
|
|
1990
1990
|
onKeyDown: C,
|
|
1991
|
-
children: [/* @__PURE__ */
|
|
1992
|
-
className:
|
|
1991
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1992
|
+
className: rn.trigger,
|
|
1993
1993
|
children: w
|
|
1994
|
-
}), /* @__PURE__ */
|
|
1995
|
-
className:
|
|
1994
|
+
}), /* @__PURE__ */ u("div", {
|
|
1995
|
+
className: m(rn.tooltip, rn[i], rn[o], h && rn.visible),
|
|
1996
1996
|
id: b,
|
|
1997
1997
|
role: "tooltip",
|
|
1998
1998
|
children: e
|
|
1999
1999
|
})]
|
|
2000
2000
|
});
|
|
2001
|
-
},
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
key: "
|
|
2007
|
-
value: "
|
|
2008
|
-
empty: "
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
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", {
|
|
2014
2056
|
width: "10",
|
|
2015
2057
|
height: "10",
|
|
2016
2058
|
viewBox: "0 0 24 24",
|
|
@@ -2019,8 +2061,8 @@ var V = {
|
|
|
2019
2061
|
strokeWidth: "3",
|
|
2020
2062
|
strokeLinecap: "round",
|
|
2021
2063
|
strokeLinejoin: "round",
|
|
2022
|
-
children: /* @__PURE__ */
|
|
2023
|
-
}),
|
|
2064
|
+
children: /* @__PURE__ */ u("polyline", { points: "9 18 15 12 9 6" })
|
|
2065
|
+
}), E = /* @__PURE__ */ u("svg", {
|
|
2024
2066
|
width: "10",
|
|
2025
2067
|
height: "10",
|
|
2026
2068
|
viewBox: "0 0 24 24",
|
|
@@ -2029,101 +2071,127 @@ var V = {
|
|
|
2029
2071
|
strokeWidth: "3",
|
|
2030
2072
|
strokeLinecap: "round",
|
|
2031
2073
|
strokeLinejoin: "round",
|
|
2032
|
-
children: /* @__PURE__ */
|
|
2033
|
-
}),
|
|
2074
|
+
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
2075
|
+
}), D = () => e === void 0 ? /* @__PURE__ */ u("span", {
|
|
2034
2076
|
className: $.empty,
|
|
2035
2077
|
children: "undefined"
|
|
2036
|
-
}) : e === null ? /* @__PURE__ */
|
|
2078
|
+
}) : e === null ? /* @__PURE__ */ u("span", {
|
|
2037
2079
|
className: $.empty,
|
|
2038
2080
|
children: "null"
|
|
2039
|
-
}) : typeof e == "object" ? Array.isArray(e)
|
|
2081
|
+
}) : typeof e == "object" ? Array.isArray(e) && e.length === 0 ? /* @__PURE__ */ u("span", {
|
|
2040
2082
|
className: $.empty,
|
|
2041
2083
|
children: "[]"
|
|
2042
|
-
}) : /* @__PURE__ */
|
|
2043
|
-
className:
|
|
2044
|
-
children:
|
|
2045
|
-
|
|
2046
|
-
children: /* @__PURE__ */ l(on, {
|
|
2047
|
-
data: e,
|
|
2048
|
-
defaultExpanded: n,
|
|
2049
|
-
expandIcon: r,
|
|
2050
|
-
collapseIcon: i
|
|
2051
|
-
})
|
|
2052
|
-
}, t))
|
|
2053
|
-
}) : Object.keys(e).length === 0 ? /* @__PURE__ */ l("span", { className: $.empty }) : /* @__PURE__ */ l("ul", {
|
|
2054
|
-
className: p($.list, $.collapsibleContent, o && $.expanded, a && $.rootList),
|
|
2055
|
-
children: Object.entries(e).map(([e, t]) => /* @__PURE__ */ l("li", {
|
|
2056
|
-
className: $.item,
|
|
2057
|
-
children: /* @__PURE__ */ l(on, {
|
|
2058
|
-
label: e,
|
|
2059
|
-
data: t,
|
|
2060
|
-
defaultExpanded: n,
|
|
2061
|
-
expandIcon: r,
|
|
2062
|
-
collapseIcon: i
|
|
2063
|
-
})
|
|
2064
|
-
}, e))
|
|
2065
|
-
}) : /* @__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", {
|
|
2066
2088
|
className: $.value,
|
|
2067
2089
|
children: String(e)
|
|
2068
|
-
})
|
|
2069
|
-
|
|
2070
|
-
|
|
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", {
|
|
2071
2113
|
className: $.itemHeader,
|
|
2072
2114
|
children: [
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
"aria-expanded": o,
|
|
2078
|
-
children: o ? i ?? h : r ?? m
|
|
2079
|
-
}) : /* @__PURE__ */ l("div", {
|
|
2080
|
-
className: $.toggleButton,
|
|
2081
|
-
"aria-hidden": "true"
|
|
2115
|
+
/* @__PURE__ */ u("span", {
|
|
2116
|
+
className: $.toggleIcon,
|
|
2117
|
+
"aria-hidden": "true",
|
|
2118
|
+
children: y ? h ? i ?? E : r ?? T : null
|
|
2082
2119
|
}),
|
|
2083
|
-
t && /* @__PURE__ */
|
|
2120
|
+
t !== void 0 && /* @__PURE__ */ d("span", {
|
|
2084
2121
|
className: $.key,
|
|
2085
2122
|
children: [t, ":"]
|
|
2086
2123
|
}),
|
|
2087
|
-
!
|
|
2124
|
+
!y && D()
|
|
2088
2125
|
]
|
|
2089
|
-
}),
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
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
|
|
2094
2172
|
})
|
|
2095
|
-
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
children: /* @__PURE__ */ l(on, {
|
|
2100
|
-
data: e,
|
|
2101
|
-
defaultExpanded: n,
|
|
2102
|
-
expandIcon: r,
|
|
2103
|
-
collapseIcon: i,
|
|
2104
|
-
isRoot: !0
|
|
2105
|
-
})
|
|
2106
|
-
});
|
|
2107
|
-
sn.Item = on;
|
|
2108
|
-
var cn = {
|
|
2173
|
+
});
|
|
2174
|
+
};
|
|
2175
|
+
ln.Item = cn;
|
|
2176
|
+
var un = {
|
|
2109
2177
|
root: "_root_1931n_1",
|
|
2110
2178
|
main: "_main_1931n_8",
|
|
2111
2179
|
container: "_container_1931n_13"
|
|
2112
|
-
},
|
|
2113
|
-
className:
|
|
2180
|
+
}, dn = ({ header: e, navbar: t, children: n, className: r, maxWidth: i = "75rem" }) => /* @__PURE__ */ d("div", {
|
|
2181
|
+
className: m(un.root, r),
|
|
2114
2182
|
children: [
|
|
2115
2183
|
e,
|
|
2116
2184
|
t,
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
className:
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2120
|
-
className:
|
|
2185
|
+
/* @__PURE__ */ u("main", {
|
|
2186
|
+
className: un.main,
|
|
2187
|
+
children: /* @__PURE__ */ u(D, {
|
|
2188
|
+
className: un.container,
|
|
2121
2189
|
maxWidth: i,
|
|
2122
2190
|
children: n
|
|
2123
2191
|
})
|
|
2124
2192
|
})
|
|
2125
2193
|
]
|
|
2126
|
-
}),
|
|
2194
|
+
}), fn = {
|
|
2127
2195
|
root: "_root_416o7_1",
|
|
2128
2196
|
card: "_card_416o7_11",
|
|
2129
2197
|
header: "_header_416o7_21",
|
|
@@ -2131,93 +2199,93 @@ var cn = {
|
|
|
2131
2199
|
title: "_title_416o7_32",
|
|
2132
2200
|
description: "_description_416o7_39",
|
|
2133
2201
|
content: "_content_416o7_45"
|
|
2134
|
-
},
|
|
2135
|
-
className:
|
|
2136
|
-
children: /* @__PURE__ */
|
|
2137
|
-
className:
|
|
2138
|
-
children: [/* @__PURE__ */
|
|
2139
|
-
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,
|
|
2140
2208
|
children: [
|
|
2141
|
-
e && /* @__PURE__ */
|
|
2142
|
-
className:
|
|
2209
|
+
e && /* @__PURE__ */ u(D, {
|
|
2210
|
+
className: fn.logo,
|
|
2143
2211
|
children: e
|
|
2144
2212
|
}),
|
|
2145
|
-
t && /* @__PURE__ */
|
|
2213
|
+
t && /* @__PURE__ */ u(en, {
|
|
2146
2214
|
variant: "h3",
|
|
2147
2215
|
as: "h1",
|
|
2148
|
-
className:
|
|
2216
|
+
className: fn.title,
|
|
2149
2217
|
children: t
|
|
2150
2218
|
}),
|
|
2151
|
-
n && /* @__PURE__ */
|
|
2219
|
+
n && /* @__PURE__ */ u(en, {
|
|
2152
2220
|
variant: "body-sm",
|
|
2153
2221
|
color: "subtle",
|
|
2154
|
-
className:
|
|
2222
|
+
className: fn.description,
|
|
2155
2223
|
children: n
|
|
2156
2224
|
})
|
|
2157
2225
|
]
|
|
2158
|
-
}), /* @__PURE__ */
|
|
2159
|
-
className:
|
|
2226
|
+
}), /* @__PURE__ */ u(D, {
|
|
2227
|
+
className: fn.content,
|
|
2160
2228
|
children: r
|
|
2161
2229
|
})]
|
|
2162
2230
|
})
|
|
2163
|
-
}),
|
|
2231
|
+
}), mn = {
|
|
2164
2232
|
root: "_root_1vwxr_1",
|
|
2165
2233
|
main: "_main_1vwxr_7",
|
|
2166
2234
|
container: "_container_1vwxr_11",
|
|
2167
2235
|
topBar: "_topBar_1vwxr_20",
|
|
2168
2236
|
stats: "_stats_1vwxr_27",
|
|
2169
2237
|
content: "_content_1vwxr_33"
|
|
2170
|
-
},
|
|
2171
|
-
className:
|
|
2172
|
-
children: [e, /* @__PURE__ */
|
|
2173
|
-
className:
|
|
2174
|
-
children: /* @__PURE__ */
|
|
2175
|
-
className:
|
|
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,
|
|
2176
2244
|
children: [
|
|
2177
|
-
(t || n) && /* @__PURE__ */
|
|
2178
|
-
className:
|
|
2179
|
-
children: [/* @__PURE__ */
|
|
2180
|
-
className:
|
|
2245
|
+
(t || n) && /* @__PURE__ */ d("div", {
|
|
2246
|
+
className: mn.topBar,
|
|
2247
|
+
children: [/* @__PURE__ */ u("div", {
|
|
2248
|
+
className: mn.breadcrumbs,
|
|
2181
2249
|
children: t
|
|
2182
|
-
}), /* @__PURE__ */
|
|
2183
|
-
className:
|
|
2250
|
+
}), /* @__PURE__ */ u("div", {
|
|
2251
|
+
className: mn.actions,
|
|
2184
2252
|
children: n
|
|
2185
2253
|
})]
|
|
2186
2254
|
}),
|
|
2187
|
-
r && /* @__PURE__ */
|
|
2188
|
-
className:
|
|
2255
|
+
r && /* @__PURE__ */ u("div", {
|
|
2256
|
+
className: mn.stats,
|
|
2189
2257
|
children: r
|
|
2190
2258
|
}),
|
|
2191
|
-
/* @__PURE__ */
|
|
2192
|
-
className:
|
|
2259
|
+
/* @__PURE__ */ u("div", {
|
|
2260
|
+
className: mn.content,
|
|
2193
2261
|
children: i
|
|
2194
2262
|
})
|
|
2195
2263
|
]
|
|
2196
2264
|
})
|
|
2197
2265
|
})]
|
|
2198
|
-
}),
|
|
2266
|
+
}), gn = {
|
|
2199
2267
|
root: "_root_o4vai_1",
|
|
2200
2268
|
main: "_main_o4vai_7",
|
|
2201
2269
|
container: "_container_o4vai_11",
|
|
2202
2270
|
layoutBody: "_layoutBody_o4vai_20",
|
|
2203
2271
|
sidebar: "_sidebar_o4vai_26",
|
|
2204
2272
|
content: "_content_o4vai_34"
|
|
2205
|
-
},
|
|
2206
|
-
className:
|
|
2207
|
-
children: [e, /* @__PURE__ */
|
|
2208
|
-
className:
|
|
2209
|
-
children: /* @__PURE__ */
|
|
2210
|
-
className:
|
|
2211
|
-
children: [t && /* @__PURE__ */
|
|
2212
|
-
className:
|
|
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,
|
|
2213
2281
|
children: t
|
|
2214
|
-
}), /* @__PURE__ */
|
|
2215
|
-
className:
|
|
2216
|
-
children: [n && /* @__PURE__ */
|
|
2217
|
-
className:
|
|
2282
|
+
}), /* @__PURE__ */ d("div", {
|
|
2283
|
+
className: gn.layoutBody,
|
|
2284
|
+
children: [n && /* @__PURE__ */ u("aside", {
|
|
2285
|
+
className: gn.sidebar,
|
|
2218
2286
|
children: n
|
|
2219
|
-
}), /* @__PURE__ */
|
|
2220
|
-
className:
|
|
2287
|
+
}), /* @__PURE__ */ u("section", {
|
|
2288
|
+
className: gn.content,
|
|
2221
2289
|
children: r
|
|
2222
2290
|
})]
|
|
2223
2291
|
})]
|
|
@@ -2225,4 +2293,4 @@ var cn = {
|
|
|
2225
2293
|
})]
|
|
2226
2294
|
});
|
|
2227
2295
|
//#endregion
|
|
2228
|
-
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 };
|