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