tharaday 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +1 -1
- package/.storybook/preview.ts +2 -0
- package/dist/ds.css +1 -1
- package/dist/ds.js +402 -395
- package/dist/ds.umd.cjs +1 -1
- package/dist/src/components/Modal/Modal.stories.d.ts +5 -0
- package/dist/src/components/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/src/components/Tree/Tree.stories.d.ts +7 -0
- package/dist/src/layouts/AppLayout/AppLayout.d.ts +1 -7
- package/dist/src/layouts/AppLayout/AppLayout.stories.d.ts +1 -9
- package/dist/src/layouts/AppLayout/AppLayout.types.d.ts +7 -52
- package/dist/src/layouts/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/dist/src/layouts/DashboardLayout/DashboardLayout.stories.d.ts +1 -7
- package/dist/src/layouts/DashboardLayout/DashboardLayout.types.d.ts +2 -9
- package/dist/src/layouts/SettingsLayout/SettingsLayout.d.ts +1 -1
- package/dist/src/layouts/SettingsLayout/SettingsLayout.stories.d.ts +1 -7
- package/dist/src/layouts/SettingsLayout/SettingsLayout.types.d.ts +2 -9
- package/eslint.config.js +0 -7
- package/package.json +2 -10
- package/src/components/Accordion/Accordion.module.css +1 -1
- package/src/components/Accordion/Accordion.tsx +14 -1
- package/src/components/Dropdown/Dropdown.stories.tsx +24 -0
- package/src/components/Modal/Modal.module.css +7 -8
- package/src/components/Modal/Modal.stories.tsx +22 -0
- package/src/components/Modal/Modal.tsx +10 -4
- package/src/components/Notification/Notification.tsx +8 -1
- package/src/components/Tabs/Tabs.stories.tsx +19 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +24 -0
- package/src/components/Tree/Tree.stories.tsx +15 -0
- package/src/layouts/AppLayout/AppLayout.stories.tsx +48 -36
- package/src/layouts/AppLayout/AppLayout.tsx +4 -34
- package/src/layouts/AppLayout/AppLayout.types.ts +7 -51
- package/src/layouts/DashboardLayout/DashboardLayout.stories.tsx +4 -8
- package/src/layouts/DashboardLayout/DashboardLayout.tsx +2 -17
- package/src/layouts/DashboardLayout/DashboardLayout.types.tsx +2 -7
- package/src/layouts/SettingsLayout/SettingsLayout.stories.tsx +16 -7
- package/src/layouts/SettingsLayout/SettingsLayout.tsx +2 -17
- package/src/layouts/SettingsLayout/SettingsLayout.types.tsx +2 -7
package/dist/ds.js
CHANGED
|
@@ -16,23 +16,23 @@ function p() {
|
|
|
16
16
|
return r;
|
|
17
17
|
}
|
|
18
18
|
var m = {
|
|
19
|
-
root: "
|
|
20
|
-
default: "
|
|
21
|
-
bordered: "
|
|
22
|
-
item: "
|
|
23
|
-
separated: "
|
|
24
|
-
ghost: "
|
|
25
|
-
header: "
|
|
26
|
-
sm: "
|
|
27
|
-
md: "
|
|
28
|
-
lg: "
|
|
29
|
-
icon: "
|
|
30
|
-
iconExpanded: "
|
|
31
|
-
contentWrapper: "
|
|
32
|
-
contentExpanded: "
|
|
33
|
-
content: "
|
|
34
|
-
contentBody: "
|
|
35
|
-
contentBodyExpanded: "
|
|
19
|
+
root: "_root_1f38q_1",
|
|
20
|
+
default: "_default_1f38q_8",
|
|
21
|
+
bordered: "_bordered_1f38q_14",
|
|
22
|
+
item: "_item_1f38q_14",
|
|
23
|
+
separated: "_separated_1f38q_24",
|
|
24
|
+
ghost: "_ghost_1f38q_34",
|
|
25
|
+
header: "_header_1f38q_34",
|
|
26
|
+
sm: "_sm_1f38q_65",
|
|
27
|
+
md: "_md_1f38q_70",
|
|
28
|
+
lg: "_lg_1f38q_75",
|
|
29
|
+
icon: "_icon_1f38q_97",
|
|
30
|
+
iconExpanded: "_iconExpanded_1f38q_102",
|
|
31
|
+
contentWrapper: "_contentWrapper_1f38q_106",
|
|
32
|
+
contentExpanded: "_contentExpanded_1f38q_113",
|
|
33
|
+
content: "_content_1f38q_106",
|
|
34
|
+
contentBody: "_contentBody_1f38q_121",
|
|
35
|
+
contentBodyExpanded: "_contentBodyExpanded_1f38q_134"
|
|
36
36
|
}, h = ({ items: e, allowMultiple: t = !1, defaultExpanded: n = [], variant: r = "default", size: i = "md", className: o, id: s }) => {
|
|
37
37
|
let d = a(), f = s ?? `ds-accordion-${d}`, [h, g] = c(n), _ = (e) => {
|
|
38
38
|
g((n) => n.includes(e) ? n.filter((t) => t !== e) : t ? [...n, e] : [e]);
|
|
@@ -54,7 +54,20 @@ var m = {
|
|
|
54
54
|
"aria-controls": `${f}-content-${e.id}`,
|
|
55
55
|
children: [/* @__PURE__ */ l("span", { children: e.title }), /* @__PURE__ */ l("span", {
|
|
56
56
|
className: p(m.icon, t && m.iconExpanded),
|
|
57
|
-
|
|
57
|
+
"aria-hidden": "true",
|
|
58
|
+
children: /* @__PURE__ */ l("svg", {
|
|
59
|
+
width: "12",
|
|
60
|
+
height: "12",
|
|
61
|
+
viewBox: "0 0 12 12",
|
|
62
|
+
fill: "none",
|
|
63
|
+
children: /* @__PURE__ */ l("path", {
|
|
64
|
+
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
strokeWidth: "1.5",
|
|
67
|
+
strokeLinecap: "round",
|
|
68
|
+
strokeLinejoin: "round"
|
|
69
|
+
})
|
|
70
|
+
})
|
|
58
71
|
})]
|
|
59
72
|
}), /* @__PURE__ */ l("div", {
|
|
60
73
|
id: `${f}-content-${e.id}`,
|
|
@@ -345,24 +358,24 @@ var m = {
|
|
|
345
358
|
}, ee = (e, t, n, r, i, a, o, s) => {
|
|
346
359
|
let c = {};
|
|
347
360
|
return typeof t == "string" && (c[e] = t), typeof i == "string" && (c[`${e}Top`] = i), typeof a == "string" && (c[`${e}Bottom`] = a), typeof o == "string" && (c[`${e}Left`] = o), typeof s == "string" && (c[`${e}Right`] = s), typeof n == "string" && (c[`${e}Left`] = n, c[`${e}Right`] = n), typeof r == "string" && (c[`${e}Top`] = r, c[`${e}Bottom`] = r), c;
|
|
348
|
-
}, T = ({ children: e, as: t = "div", display: n, padding: r, paddingX: i, paddingY: a, paddingTop: o, paddingBottom: s, paddingLeft: c, paddingRight: u, margin: d, marginX: f, marginY: m, marginTop: h, marginBottom: g, marginLeft: _, marginRight: v, gap: y, flexDirection: b, alignItems: x, justifyContent: S, flexWrap: C, flexGrow: T, flexShrink: E, flex: D, fullWidth: O, textAlign: k, width: A, height: te, maxWidth:
|
|
349
|
-
let
|
|
350
|
-
...
|
|
361
|
+
}, T = ({ children: e, as: t = "div", display: n, padding: r, paddingX: i, paddingY: a, paddingTop: o, paddingBottom: s, paddingLeft: c, paddingRight: u, margin: d, marginX: f, marginY: m, marginTop: h, marginBottom: g, marginLeft: _, marginRight: v, gap: y, flexDirection: b, alignItems: x, justifyContent: S, flexWrap: C, flexGrow: T, flexShrink: E, flex: D, fullWidth: O, textAlign: k, width: A, height: te, maxWidth: ne, gridTemplateColumns: re, backgroundColor: j, border: M, borderBottom: ie, borderColor: N, borderRadius: ae, className: oe, style: se, ...ce }) => {
|
|
362
|
+
let le = {
|
|
363
|
+
...se,
|
|
351
364
|
flexGrow: T,
|
|
352
365
|
flexShrink: E,
|
|
353
366
|
flex: D,
|
|
354
367
|
width: A,
|
|
355
368
|
height: te,
|
|
356
|
-
maxWidth:
|
|
357
|
-
gridTemplateColumns:
|
|
369
|
+
maxWidth: ne,
|
|
370
|
+
gridTemplateColumns: re,
|
|
358
371
|
gap: typeof y == "string" ? y : void 0,
|
|
359
372
|
...ee("padding", r, i, a, o, s, c, u),
|
|
360
373
|
...ee("margin", d, f, m, h, g, _, v)
|
|
361
374
|
};
|
|
362
375
|
return /* @__PURE__ */ l(t, {
|
|
363
|
-
className: p(w.box, n && w[`display-${n}`], k && w[`textAlign-${k}`], typeof r == "number" && w[`p-${r}`], typeof i == "number" && w[`px-${i}`], typeof a == "number" && w[`py-${a}`], typeof o == "number" && w[`pt-${o}`], typeof s == "number" && w[`pb-${s}`], typeof c == "number" && w[`pl-${c}`], typeof u == "number" && w[`pr-${u}`], typeof d == "number" && w[`margin-${d}`], typeof f == "number" && w[`marginX-${f}`], typeof m == "number" && w[`marginY-${m}`], typeof h == "number" && w[`marginTop-${h}`], typeof g == "number" && w[`marginBottom-${g}`], typeof _ == "number" && w[`marginLeft-${_}`], typeof v == "number" && w[`marginRight-${v}`], typeof y == "number" && w[`gap-${y}`], b && w[`flexDirection-${b}`], x && w[`alignItems-${x}`], S && w[`justifyContent-${S}`], C && w[`flexWrap-${C}`],
|
|
364
|
-
style:
|
|
365
|
-
...
|
|
376
|
+
className: p(w.box, n && w[`display-${n}`], k && w[`textAlign-${k}`], typeof r == "number" && w[`p-${r}`], typeof i == "number" && w[`px-${i}`], typeof a == "number" && w[`py-${a}`], typeof o == "number" && w[`pt-${o}`], typeof s == "number" && w[`pb-${s}`], typeof c == "number" && w[`pl-${c}`], typeof u == "number" && w[`pr-${u}`], typeof d == "number" && w[`margin-${d}`], typeof f == "number" && w[`marginX-${f}`], typeof m == "number" && w[`marginY-${m}`], typeof h == "number" && w[`marginTop-${h}`], typeof g == "number" && w[`marginBottom-${g}`], typeof _ == "number" && w[`marginLeft-${_}`], typeof v == "number" && w[`marginRight-${v}`], typeof y == "number" && w[`gap-${y}`], b && w[`flexDirection-${b}`], x && w[`alignItems-${x}`], S && w[`justifyContent-${S}`], C && w[`flexWrap-${C}`], j && w[`bg-${j}`], M && w.border, ie && w.borderBottom, N && w[`borderColor-${N}`], ae && w[`borderRadius-${ae}`], O && w.fullWidth, oe),
|
|
377
|
+
style: le,
|
|
378
|
+
...ce,
|
|
366
379
|
children: e
|
|
367
380
|
});
|
|
368
381
|
}, E = {
|
|
@@ -438,12 +451,12 @@ var m = {
|
|
|
438
451
|
strokeDashoffset: "10"
|
|
439
452
|
})
|
|
440
453
|
}), o]
|
|
441
|
-
}), te = "_root_1k781_1",
|
|
454
|
+
}), te = "_root_1k781_1", ne = "_bordered_1k781_9", re = "_shadowNone_1k781_14", j = "_shadowSm_1k781_17", M = "_shadowMd_1k781_20", ie = "_pNone_1k781_65", N = "_pSm_1k781_68", ae = "_pMd_1k781_71", oe = "_pLg_1k781_74", se = "_header_1k781_79", ce = "_title_1k781_85", le = "_subtitle_1k781_93", ue = "_content_1k781_100", de = "_footer_1k781_104", P = {
|
|
442
455
|
root: te,
|
|
443
|
-
bordered:
|
|
444
|
-
shadowNone:
|
|
445
|
-
shadowSm:
|
|
446
|
-
shadowMd:
|
|
456
|
+
bordered: ne,
|
|
457
|
+
shadowNone: re,
|
|
458
|
+
shadowSm: j,
|
|
459
|
+
shadowMd: M,
|
|
447
460
|
"borderColor-main": "_borderColor-main_1k781_25",
|
|
448
461
|
"borderColor-subtle": "_borderColor-subtle_1k781_28",
|
|
449
462
|
"borderColor-danger": "_borderColor-danger_1k781_31",
|
|
@@ -456,54 +469,54 @@ var m = {
|
|
|
456
469
|
"backgroundColor-success-subtle": "_backgroundColor-success-subtle_1k781_54",
|
|
457
470
|
"backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_1k781_57",
|
|
458
471
|
"backgroundColor-info-subtle": "_backgroundColor-info-subtle_1k781_60",
|
|
459
|
-
pNone:
|
|
460
|
-
pSm:
|
|
461
|
-
pMd:
|
|
462
|
-
pLg:
|
|
463
|
-
header:
|
|
464
|
-
title:
|
|
465
|
-
subtitle:
|
|
466
|
-
content:
|
|
467
|
-
footer:
|
|
468
|
-
},
|
|
472
|
+
pNone: ie,
|
|
473
|
+
pSm: N,
|
|
474
|
+
pMd: ae,
|
|
475
|
+
pLg: oe,
|
|
476
|
+
header: se,
|
|
477
|
+
title: ce,
|
|
478
|
+
subtitle: le,
|
|
479
|
+
content: ue,
|
|
480
|
+
footer: de
|
|
481
|
+
}, fe = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
|
|
469
482
|
let c = {
|
|
470
|
-
none:
|
|
471
|
-
sm:
|
|
472
|
-
md:
|
|
473
|
-
lg:
|
|
483
|
+
none: P.pNone,
|
|
484
|
+
sm: P.pSm,
|
|
485
|
+
md: P.pMd,
|
|
486
|
+
lg: P.pLg
|
|
474
487
|
}[e], u = {
|
|
475
|
-
none:
|
|
476
|
-
sm:
|
|
477
|
-
md:
|
|
488
|
+
none: P.shadowNone,
|
|
489
|
+
sm: P.shadowSm,
|
|
490
|
+
md: P.shadowMd
|
|
478
491
|
}[t];
|
|
479
492
|
return /* @__PURE__ */ l("div", {
|
|
480
|
-
className: p(
|
|
493
|
+
className: p(P.root, c, u, n && P.bordered, r && P[`borderColor-${r}`], i && P[`backgroundColor-${i}`], a),
|
|
481
494
|
...s,
|
|
482
495
|
children: o
|
|
483
496
|
});
|
|
484
|
-
},
|
|
485
|
-
className: p(
|
|
497
|
+
}, pe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ u("div", {
|
|
498
|
+
className: p(P.header, n),
|
|
486
499
|
...i,
|
|
487
500
|
children: [
|
|
488
501
|
e && /* @__PURE__ */ l("h3", {
|
|
489
|
-
className:
|
|
502
|
+
className: P.title,
|
|
490
503
|
children: e
|
|
491
504
|
}),
|
|
492
505
|
t && /* @__PURE__ */ l("p", {
|
|
493
|
-
className:
|
|
506
|
+
className: P.subtitle,
|
|
494
507
|
children: t
|
|
495
508
|
}),
|
|
496
509
|
r
|
|
497
510
|
]
|
|
498
|
-
}),
|
|
499
|
-
className: p(
|
|
511
|
+
}), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
|
|
512
|
+
className: p(P.content, e),
|
|
500
513
|
...n,
|
|
501
514
|
children: t
|
|
502
|
-
}),
|
|
503
|
-
className: p(
|
|
515
|
+
}), he = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
|
|
516
|
+
className: p(P.footer, e),
|
|
504
517
|
...n,
|
|
505
518
|
children: t
|
|
506
|
-
}),
|
|
519
|
+
}), F = {
|
|
507
520
|
wrapper: "_wrapper_1mupt_1",
|
|
508
521
|
container: "_container_1mupt_7",
|
|
509
522
|
disabled: "_disabled_1mupt_15",
|
|
@@ -514,25 +527,25 @@ var m = {
|
|
|
514
527
|
error: "_error_1mupt_75",
|
|
515
528
|
helperText: "_helperText_1mupt_79",
|
|
516
529
|
errorText: "_errorText_1mupt_86"
|
|
517
|
-
},
|
|
530
|
+
}, ge = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: o, ...s }) => {
|
|
518
531
|
let c = a(), d = o ?? `ds-checkbox-${c}`, f = n ? `${d}-help` : void 0;
|
|
519
532
|
return /* @__PURE__ */ u("div", {
|
|
520
|
-
className: p(
|
|
533
|
+
className: p(F.wrapper, r),
|
|
521
534
|
children: [/* @__PURE__ */ u("label", {
|
|
522
535
|
htmlFor: d,
|
|
523
|
-
className: p(
|
|
536
|
+
className: p(F.container, i && F.disabled, t && F.error),
|
|
524
537
|
children: [
|
|
525
538
|
/* @__PURE__ */ l("input", {
|
|
526
539
|
type: "checkbox",
|
|
527
540
|
id: d,
|
|
528
541
|
disabled: i,
|
|
529
|
-
className:
|
|
542
|
+
className: F.input,
|
|
530
543
|
"aria-describedby": f,
|
|
531
544
|
"aria-invalid": t || void 0,
|
|
532
545
|
...s
|
|
533
546
|
}),
|
|
534
547
|
/* @__PURE__ */ l("span", {
|
|
535
|
-
className:
|
|
548
|
+
className: F.control,
|
|
536
549
|
children: /* @__PURE__ */ l("svg", {
|
|
537
550
|
viewBox: "0 0 24 24",
|
|
538
551
|
fill: "none",
|
|
@@ -540,22 +553,22 @@ var m = {
|
|
|
540
553
|
strokeWidth: "4",
|
|
541
554
|
strokeLinecap: "round",
|
|
542
555
|
strokeLinejoin: "round",
|
|
543
|
-
className:
|
|
556
|
+
className: F.checkmark,
|
|
544
557
|
children: /* @__PURE__ */ l("polyline", { points: "20 6 9 17 4 12" })
|
|
545
558
|
})
|
|
546
559
|
}),
|
|
547
560
|
e && /* @__PURE__ */ l("span", {
|
|
548
|
-
className:
|
|
561
|
+
className: F.label,
|
|
549
562
|
children: e
|
|
550
563
|
})
|
|
551
564
|
]
|
|
552
565
|
}), n && /* @__PURE__ */ l("span", {
|
|
553
566
|
id: f,
|
|
554
|
-
className: p(
|
|
567
|
+
className: p(F.helperText, t && F.errorText),
|
|
555
568
|
children: n
|
|
556
569
|
})]
|
|
557
570
|
});
|
|
558
|
-
},
|
|
571
|
+
}, I = {
|
|
559
572
|
wrapper: "_wrapper_qhe61_1",
|
|
560
573
|
fullWidth: "_fullWidth_qhe61_9",
|
|
561
574
|
label: "_label_qhe61_13",
|
|
@@ -575,8 +588,8 @@ var m = {
|
|
|
575
588
|
optionDescription: "_optionDescription_qhe61_128",
|
|
576
589
|
helperText: "_helperText_qhe61_133",
|
|
577
590
|
errorText: "_errorText_qhe61_138"
|
|
578
|
-
},
|
|
579
|
-
let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [ee, T] = c(n), [E, D] = c(-1), O = s(null), k = s(null), A = t === void 0 ? ee : t, te = e.find((e) => e.value === A),
|
|
591
|
+
}, _e = ({ options: e, value: t, defaultValue: n, onChange: r, placeholder: o = "Select an option", label: d, helperText: f, error: m, disabled: h, size: g = "md", className: _, id: v, fullWidth: y = !1 }) => {
|
|
592
|
+
let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [ee, T] = c(n), [E, D] = c(-1), O = s(null), k = s(null), A = t === void 0 ? ee : t, te = e.find((e) => e.value === A), ne = E >= 0 ? `${x}-opt-${E}` : void 0, re = () => {
|
|
580
593
|
if (!h) {
|
|
581
594
|
let t = !C;
|
|
582
595
|
if (w(t), t) {
|
|
@@ -586,7 +599,7 @@ var m = {
|
|
|
586
599
|
}
|
|
587
600
|
} else D(-1);
|
|
588
601
|
}
|
|
589
|
-
},
|
|
602
|
+
}, j = (e, n) => {
|
|
590
603
|
e.disabled || (t === void 0 && T(e.value), r?.(e.value), w(!1), D(n), k.current?.focus());
|
|
591
604
|
};
|
|
592
605
|
return i(() => {
|
|
@@ -603,22 +616,22 @@ var m = {
|
|
|
603
616
|
document.removeEventListener("mousedown", e);
|
|
604
617
|
};
|
|
605
618
|
}, []), /* @__PURE__ */ u("div", {
|
|
606
|
-
className: p(
|
|
619
|
+
className: p(I.wrapper, I[g], y && I.fullWidth, m && I.error, _),
|
|
607
620
|
ref: O,
|
|
608
621
|
children: [
|
|
609
622
|
d && /* @__PURE__ */ l("label", {
|
|
610
623
|
htmlFor: x,
|
|
611
|
-
className:
|
|
624
|
+
className: I.label,
|
|
612
625
|
children: d
|
|
613
626
|
}),
|
|
614
627
|
/* @__PURE__ */ u("div", {
|
|
615
|
-
className:
|
|
628
|
+
className: I.container,
|
|
616
629
|
children: [/* @__PURE__ */ u("button", {
|
|
617
630
|
id: x,
|
|
618
631
|
ref: k,
|
|
619
632
|
type: "button",
|
|
620
|
-
className: p(
|
|
621
|
-
onClick:
|
|
633
|
+
className: p(I.trigger, C && I.isOpen),
|
|
634
|
+
onClick: re,
|
|
622
635
|
onKeyDown: (t) => {
|
|
623
636
|
if (!h) switch (t.key) {
|
|
624
637
|
case "ArrowDown":
|
|
@@ -629,7 +642,7 @@ var m = {
|
|
|
629
642
|
break;
|
|
630
643
|
case "Enter":
|
|
631
644
|
case " ":
|
|
632
|
-
t.preventDefault(), C ? E >= 0 &&
|
|
645
|
+
t.preventDefault(), C ? E >= 0 && j(e[E], E) : (w(!0), D(e.findIndex((e) => e.value === A) || 0));
|
|
633
646
|
break;
|
|
634
647
|
case "Escape":
|
|
635
648
|
C && (t.preventDefault(), w(!1), D(-1), k.current?.focus());
|
|
@@ -652,12 +665,12 @@ var m = {
|
|
|
652
665
|
"aria-describedby": S,
|
|
653
666
|
"aria-invalid": m || void 0,
|
|
654
667
|
"aria-controls": C ? `${x}-menu` : void 0,
|
|
655
|
-
"aria-activedescendant": C ?
|
|
668
|
+
"aria-activedescendant": C ? ne : void 0,
|
|
656
669
|
children: [/* @__PURE__ */ l("span", {
|
|
657
|
-
className:
|
|
670
|
+
className: I.selectedLabel,
|
|
658
671
|
children: te ? te.label : o
|
|
659
672
|
}), /* @__PURE__ */ l("span", {
|
|
660
|
-
className:
|
|
673
|
+
className: I.icon,
|
|
661
674
|
"aria-hidden": "true",
|
|
662
675
|
children: /* @__PURE__ */ l("svg", {
|
|
663
676
|
width: "12",
|
|
@@ -676,7 +689,7 @@ var m = {
|
|
|
676
689
|
})]
|
|
677
690
|
}), C && /* @__PURE__ */ l("ul", {
|
|
678
691
|
id: `${x}-menu`,
|
|
679
|
-
className:
|
|
692
|
+
className: I.menu,
|
|
680
693
|
role: "listbox",
|
|
681
694
|
"aria-labelledby": d ? void 0 : x,
|
|
682
695
|
children: e.map((e, t) => {
|
|
@@ -685,14 +698,14 @@ var m = {
|
|
|
685
698
|
id: `${x}-opt-${t}`,
|
|
686
699
|
role: "option",
|
|
687
700
|
"aria-selected": n,
|
|
688
|
-
className: p(
|
|
689
|
-
onClick: () =>
|
|
701
|
+
className: p(I.option, n && I.optionSelected, r && I.optionFocused, e.disabled && I.optionDisabled),
|
|
702
|
+
onClick: () => j(e, t),
|
|
690
703
|
onMouseEnter: () => !e.disabled && D(t),
|
|
691
704
|
children: [/* @__PURE__ */ l("span", {
|
|
692
|
-
className:
|
|
705
|
+
className: I.optionLabel,
|
|
693
706
|
children: e.label
|
|
694
707
|
}), e.description && /* @__PURE__ */ l("span", {
|
|
695
|
-
className:
|
|
708
|
+
className: I.optionDescription,
|
|
696
709
|
children: e.description
|
|
697
710
|
})]
|
|
698
711
|
}, e.value);
|
|
@@ -701,35 +714,35 @@ var m = {
|
|
|
701
714
|
}),
|
|
702
715
|
f && /* @__PURE__ */ l("span", {
|
|
703
716
|
id: S,
|
|
704
|
-
className: p(
|
|
717
|
+
className: p(I.helperText, m && I.errorText),
|
|
705
718
|
children: f
|
|
706
719
|
})
|
|
707
720
|
]
|
|
708
721
|
});
|
|
709
|
-
},
|
|
722
|
+
}, ve = {
|
|
710
723
|
root: "_root_1one2_1",
|
|
711
724
|
horizontal: "_horizontal_1one2_13",
|
|
712
725
|
vertical: "_vertical_1one2_21"
|
|
713
|
-
},
|
|
726
|
+
}, ye = (e) => typeof e == "number" ? `${e}px` : e, be = ({ orientation: e = "horizontal", thickness: t, length: n, spacing: r, inset: i, className: a, style: o, ...s }) => {
|
|
714
727
|
let c = {
|
|
715
728
|
...o,
|
|
716
|
-
"--divider-thickness":
|
|
717
|
-
"--divider-length":
|
|
718
|
-
"--divider-spacing":
|
|
719
|
-
"--divider-inset":
|
|
729
|
+
"--divider-thickness": ye(t),
|
|
730
|
+
"--divider-length": ye(n),
|
|
731
|
+
"--divider-spacing": ye(r),
|
|
732
|
+
"--divider-inset": ye(i)
|
|
720
733
|
};
|
|
721
734
|
return e === "vertical" ? /* @__PURE__ */ l("div", {
|
|
722
735
|
role: "separator",
|
|
723
736
|
"aria-orientation": "vertical",
|
|
724
|
-
className: p(
|
|
737
|
+
className: p(ve.root, ve.vertical, a),
|
|
725
738
|
style: c,
|
|
726
739
|
...s
|
|
727
740
|
}) : /* @__PURE__ */ l("hr", {
|
|
728
|
-
className: p(
|
|
741
|
+
className: p(ve.root, ve.horizontal, a),
|
|
729
742
|
style: c,
|
|
730
743
|
...s
|
|
731
744
|
});
|
|
732
|
-
},
|
|
745
|
+
}, L = {
|
|
733
746
|
root: "_root_1ujj3_1",
|
|
734
747
|
container: "_container_1ujj3_8",
|
|
735
748
|
sideContainer: "_sideContainer_1ujj3_18",
|
|
@@ -738,29 +751,29 @@ var m = {
|
|
|
738
751
|
actions: "_actions_1ujj3_32",
|
|
739
752
|
title: "_title_1ujj3_44",
|
|
740
753
|
welcome: "_welcome_1ujj3_52"
|
|
741
|
-
},
|
|
754
|
+
}, xe = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
|
|
742
755
|
let d = {
|
|
743
756
|
size: "sm",
|
|
744
757
|
intent: "info"
|
|
745
758
|
};
|
|
746
759
|
return /* @__PURE__ */ l("header", {
|
|
747
760
|
id: e,
|
|
748
|
-
className: p(
|
|
761
|
+
className: p(L.root, s),
|
|
749
762
|
children: /* @__PURE__ */ u("div", {
|
|
750
|
-
className:
|
|
763
|
+
className: L.container,
|
|
751
764
|
style: { maxWidth: c },
|
|
752
765
|
children: [/* @__PURE__ */ u("div", {
|
|
753
|
-
className: p(
|
|
766
|
+
className: p(L.sideContainer, L.leftSide),
|
|
754
767
|
children: [t, n ? /* @__PURE__ */ l("h1", {
|
|
755
|
-
className:
|
|
768
|
+
className: L.title,
|
|
756
769
|
children: n
|
|
757
770
|
}) : null]
|
|
758
771
|
}), /* @__PURE__ */ l("div", {
|
|
759
|
-
className: p(
|
|
772
|
+
className: p(L.sideContainer, L.rightSide),
|
|
760
773
|
children: r ? /* @__PURE__ */ u("div", {
|
|
761
|
-
className:
|
|
774
|
+
className: L.actions,
|
|
762
775
|
children: [/* @__PURE__ */ u("span", {
|
|
763
|
-
className:
|
|
776
|
+
className: L.welcome,
|
|
764
777
|
children: [
|
|
765
778
|
"Welcome, ",
|
|
766
779
|
/* @__PURE__ */ l("strong", { children: r.name }),
|
|
@@ -772,7 +785,7 @@ var m = {
|
|
|
772
785
|
children: "Log out"
|
|
773
786
|
})]
|
|
774
787
|
}) : /* @__PURE__ */ u("div", {
|
|
775
|
-
className:
|
|
788
|
+
className: L.actions,
|
|
776
789
|
children: [i ? /* @__PURE__ */ l(A, {
|
|
777
790
|
...d,
|
|
778
791
|
onClick: i,
|
|
@@ -788,7 +801,7 @@ var m = {
|
|
|
788
801
|
})]
|
|
789
802
|
})
|
|
790
803
|
});
|
|
791
|
-
},
|
|
804
|
+
}, R = {
|
|
792
805
|
root: "_root_140uy_1",
|
|
793
806
|
container: "_container_140uy_7",
|
|
794
807
|
leftSection: "_leftSection_140uy_16",
|
|
@@ -799,26 +812,26 @@ var m = {
|
|
|
799
812
|
disabled: "_disabled_140uy_59",
|
|
800
813
|
active: "_active_140uy_63",
|
|
801
814
|
rightSection: "_rightSection_140uy_73"
|
|
802
|
-
},
|
|
815
|
+
}, Se = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */ l("nav", {
|
|
803
816
|
id: e,
|
|
804
|
-
className: p(
|
|
817
|
+
className: p(R.root, o),
|
|
805
818
|
children: /* @__PURE__ */ u("div", {
|
|
806
|
-
className:
|
|
819
|
+
className: R.container,
|
|
807
820
|
style: { maxWidth: s },
|
|
808
821
|
children: [
|
|
809
822
|
r && /* @__PURE__ */ l("div", {
|
|
810
|
-
className:
|
|
823
|
+
className: R.leftSection,
|
|
811
824
|
children: r
|
|
812
825
|
}),
|
|
813
826
|
/* @__PURE__ */ l("div", {
|
|
814
|
-
className:
|
|
827
|
+
className: R.nav,
|
|
815
828
|
children: /* @__PURE__ */ l("ul", {
|
|
816
|
-
className:
|
|
829
|
+
className: R.navList,
|
|
817
830
|
children: t.map((e) => /* @__PURE__ */ l("li", {
|
|
818
|
-
className:
|
|
831
|
+
className: R.navItem,
|
|
819
832
|
children: /* @__PURE__ */ l("button", {
|
|
820
833
|
type: "button",
|
|
821
|
-
className: p(
|
|
834
|
+
className: p(R.navLink, n === e.id && R.active, e.disabled && R.disabled),
|
|
822
835
|
onClick: () => !e.disabled && a?.(e.id),
|
|
823
836
|
disabled: e.disabled,
|
|
824
837
|
"aria-current": n === e.id ? "page" : void 0,
|
|
@@ -828,12 +841,12 @@ var m = {
|
|
|
828
841
|
})
|
|
829
842
|
}),
|
|
830
843
|
i && /* @__PURE__ */ l("div", {
|
|
831
|
-
className:
|
|
844
|
+
className: R.rightSection,
|
|
832
845
|
children: i
|
|
833
846
|
})
|
|
834
847
|
]
|
|
835
848
|
})
|
|
836
|
-
}),
|
|
849
|
+
}), z = {
|
|
837
850
|
wrapper: "_wrapper_15ibj_1",
|
|
838
851
|
fullWidth: "_fullWidth_15ibj_8",
|
|
839
852
|
label: "_label_15ibj_13",
|
|
@@ -844,31 +857,31 @@ var m = {
|
|
|
844
857
|
error: "_error_15ibj_79",
|
|
845
858
|
helperText: "_helperText_15ibj_88",
|
|
846
859
|
errorText: "_errorText_15ibj_94"
|
|
847
|
-
},
|
|
860
|
+
}, Ce = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, ...c }) => {
|
|
848
861
|
let d = a(), f = s ?? `ds-input-${d}`, m = r ? `${f}-help` : void 0;
|
|
849
862
|
return /* @__PURE__ */ u("div", {
|
|
850
|
-
className: p(
|
|
863
|
+
className: p(z.wrapper, i && z.fullWidth, o),
|
|
851
864
|
children: [
|
|
852
865
|
n && /* @__PURE__ */ l("label", {
|
|
853
866
|
htmlFor: f,
|
|
854
|
-
className:
|
|
867
|
+
className: z.label,
|
|
855
868
|
children: n
|
|
856
869
|
}),
|
|
857
870
|
/* @__PURE__ */ l("input", {
|
|
858
871
|
id: f,
|
|
859
|
-
className: p(
|
|
872
|
+
className: p(z.inputRoot, z[e], t && z.error),
|
|
860
873
|
"aria-describedby": m,
|
|
861
874
|
"aria-invalid": t || void 0,
|
|
862
875
|
...c
|
|
863
876
|
}),
|
|
864
877
|
r && /* @__PURE__ */ l("span", {
|
|
865
878
|
id: m,
|
|
866
|
-
className: p(
|
|
879
|
+
className: p(z.helperText, t && z.errorText),
|
|
867
880
|
children: r
|
|
868
881
|
})
|
|
869
882
|
]
|
|
870
883
|
});
|
|
871
|
-
},
|
|
884
|
+
}, we = {
|
|
872
885
|
loader: "_loader_wvz8q_1",
|
|
873
886
|
spin: "_spin_wvz8q_1",
|
|
874
887
|
neutral: "_neutral_wvz8q_10",
|
|
@@ -879,16 +892,16 @@ var m = {
|
|
|
879
892
|
sm: "_sm_wvz8q_27",
|
|
880
893
|
md: "_md_wvz8q_33",
|
|
881
894
|
lg: "_lg_wvz8q_39"
|
|
882
|
-
},
|
|
895
|
+
}, Te = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ l("div", {
|
|
883
896
|
id: e,
|
|
884
|
-
className: p(
|
|
897
|
+
className: p(we.loader, we[t], we[n], r),
|
|
885
898
|
role: "status",
|
|
886
899
|
"aria-label": "Loading"
|
|
887
|
-
}),
|
|
888
|
-
root:
|
|
889
|
-
unordered:
|
|
890
|
-
ordered:
|
|
891
|
-
none:
|
|
900
|
+
}), Ee = "_root_iia7b_1", De = "_unordered_iia7b_6", Oe = "_ordered_iia7b_11", ke = "_none_iia7b_16", Ae = "_flex_iia7b_57", B = {
|
|
901
|
+
root: Ee,
|
|
902
|
+
unordered: De,
|
|
903
|
+
ordered: Oe,
|
|
904
|
+
none: ke,
|
|
892
905
|
"gap-0": "_gap-0_iia7b_21",
|
|
893
906
|
"gap-1": "_gap-1_iia7b_24",
|
|
894
907
|
"gap-2": "_gap-2_iia7b_27",
|
|
@@ -900,21 +913,21 @@ var m = {
|
|
|
900
913
|
"gap-10": "_gap-10_iia7b_45",
|
|
901
914
|
"gap-12": "_gap-12_iia7b_48",
|
|
902
915
|
"gap-14": "_gap-14_iia7b_51",
|
|
903
|
-
flex:
|
|
904
|
-
},
|
|
916
|
+
flex: Ae
|
|
917
|
+
}, je = {
|
|
905
918
|
item: "_item_1x04p_1",
|
|
906
919
|
iconWrapper: "_iconWrapper_1x04p_6"
|
|
907
|
-
},
|
|
908
|
-
className: p(
|
|
920
|
+
}, Me = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ u("li", {
|
|
921
|
+
className: p(je.item, n),
|
|
909
922
|
...r,
|
|
910
923
|
children: [t && /* @__PURE__ */ l("span", {
|
|
911
|
-
className:
|
|
924
|
+
className: je.iconWrapper,
|
|
912
925
|
children: t
|
|
913
926
|
}), /* @__PURE__ */ l("div", {
|
|
914
|
-
className:
|
|
927
|
+
className: je.content,
|
|
915
928
|
children: e
|
|
916
929
|
})]
|
|
917
|
-
}),
|
|
930
|
+
}), Ne = ({ children: e, variant: t = "unordered", spacing: n = 0, className: r, margin: i, marginX: a, marginY: o, marginTop: s, marginBottom: c, marginLeft: u, marginRight: d, padding: f, paddingX: m, paddingY: h, paddingTop: g, paddingBottom: _, paddingLeft: v, paddingRight: y, style: b, ...x }) => {
|
|
918
931
|
let S = t === "ordered" ? "ol" : "ul", C = {
|
|
919
932
|
...b,
|
|
920
933
|
...ee("padding", f, m, h, g, _, v, y),
|
|
@@ -922,28 +935,28 @@ var m = {
|
|
|
922
935
|
"--list-spacing": typeof n == "number" ? `${n * .25}rem` : n
|
|
923
936
|
};
|
|
924
937
|
return /* @__PURE__ */ l(S, {
|
|
925
|
-
className: p(
|
|
938
|
+
className: p(B.root, B[t], typeof n == "number" && B[`gap-${n}`], (t === "none" || typeof n == "number" && n > 0 || typeof n == "string") && B.flex, typeof f == "number" && B[`p-${f}`], typeof m == "number" && B[`px-${m}`], typeof h == "number" && B[`py-${h}`], typeof g == "number" && B[`pt-${g}`], typeof _ == "number" && B[`pb-${_}`], typeof v == "number" && B[`pl-${v}`], typeof y == "number" && B[`pr-${y}`], typeof i == "number" && B[`margin-${i}`], typeof a == "number" && B[`marginX-${a}`], typeof o == "number" && B[`marginY-${o}`], typeof s == "number" && B[`marginTop-${s}`], typeof c == "number" && B[`marginBottom-${c}`], typeof u == "number" && B[`marginLeft-${u}`], typeof d == "number" && B[`marginRight-${d}`], r),
|
|
926
939
|
style: C,
|
|
927
940
|
...x,
|
|
928
941
|
children: e
|
|
929
942
|
});
|
|
930
943
|
};
|
|
931
|
-
|
|
932
|
-
var
|
|
933
|
-
overlay: "
|
|
934
|
-
modal: "
|
|
935
|
-
header: "
|
|
936
|
-
title: "
|
|
937
|
-
closeButton: "
|
|
938
|
-
content: "
|
|
939
|
-
footer: "
|
|
940
|
-
sm: "
|
|
941
|
-
md: "
|
|
942
|
-
lg: "
|
|
943
|
-
xl: "
|
|
944
|
-
full: "
|
|
945
|
-
loading: "
|
|
946
|
-
},
|
|
944
|
+
Ne.Item = Me;
|
|
945
|
+
var V = {
|
|
946
|
+
overlay: "_overlay_dxcrq_1",
|
|
947
|
+
modal: "_modal_dxcrq_15",
|
|
948
|
+
header: "_header_dxcrq_27",
|
|
949
|
+
title: "_title_dxcrq_35",
|
|
950
|
+
closeButton: "_closeButton_dxcrq_43",
|
|
951
|
+
content: "_content_dxcrq_55",
|
|
952
|
+
footer: "_footer_dxcrq_61",
|
|
953
|
+
sm: "_sm_dxcrq_72",
|
|
954
|
+
md: "_md_dxcrq_75",
|
|
955
|
+
lg: "_lg_dxcrq_78",
|
|
956
|
+
xl: "_xl_dxcrq_81",
|
|
957
|
+
full: "_full_dxcrq_84",
|
|
958
|
+
loading: "_loading_dxcrq_89"
|
|
959
|
+
}, Pe = ({ isOpen: e, onClose: t, title: n, children: r, footer: o, size: c = "md", isLoading: f = !1, className: m, id: h }) => {
|
|
947
960
|
let g = s(null), _ = s(null), v = s(t), y = a(), b = h ?? `ds-modal-${y}`, x = `${b}-title`;
|
|
948
961
|
return i(() => {
|
|
949
962
|
v.current = t;
|
|
@@ -958,18 +971,18 @@ var H = {
|
|
|
958
971
|
e.shiftKey ? document.activeElement === n && (r.focus(), e.preventDefault()) : document.activeElement === r && (n.focus(), e.preventDefault());
|
|
959
972
|
}
|
|
960
973
|
};
|
|
961
|
-
return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t),
|
|
974
|
+
return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t), requestAnimationFrame(() => {
|
|
962
975
|
let e = g.current?.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
963
976
|
e && e.length > 0 && e[0].focus();
|
|
964
|
-
}
|
|
977
|
+
})), () => {
|
|
965
978
|
document.body.style.overflow = "unset", window.removeEventListener("keydown", t), _.current?.focus();
|
|
966
979
|
};
|
|
967
980
|
}, [e, f]), e ? d(/* @__PURE__ */ l("div", {
|
|
968
|
-
className:
|
|
981
|
+
className: V.overlay,
|
|
969
982
|
onClick: () => !f && t(),
|
|
970
983
|
children: /* @__PURE__ */ u("div", {
|
|
971
984
|
id: b,
|
|
972
|
-
className: p(
|
|
985
|
+
className: p(V.modal, V[c], f && V.loading, m),
|
|
973
986
|
onClick: (e) => e.stopPropagation(),
|
|
974
987
|
role: "dialog",
|
|
975
988
|
"aria-modal": "true",
|
|
@@ -977,33 +990,45 @@ var H = {
|
|
|
977
990
|
ref: g,
|
|
978
991
|
children: [
|
|
979
992
|
/* @__PURE__ */ u("div", {
|
|
980
|
-
className:
|
|
993
|
+
className: V.header,
|
|
981
994
|
children: [n && /* @__PURE__ */ l("h2", {
|
|
982
995
|
id: x,
|
|
983
|
-
className:
|
|
996
|
+
className: V.title,
|
|
984
997
|
children: n
|
|
985
998
|
}), /* @__PURE__ */ l(A, {
|
|
986
999
|
variant: "subtle",
|
|
987
1000
|
size: "sm",
|
|
988
1001
|
onClick: t,
|
|
989
|
-
className:
|
|
1002
|
+
className: V.closeButton,
|
|
990
1003
|
"aria-label": "Close modal",
|
|
991
1004
|
disabled: f,
|
|
992
|
-
children: "
|
|
1005
|
+
children: /* @__PURE__ */ l("svg", {
|
|
1006
|
+
width: "10",
|
|
1007
|
+
height: "10",
|
|
1008
|
+
viewBox: "0 0 10 10",
|
|
1009
|
+
fill: "none",
|
|
1010
|
+
"aria-hidden": "true",
|
|
1011
|
+
children: /* @__PURE__ */ l("path", {
|
|
1012
|
+
d: "M1 1L9 9M9 1L1 9",
|
|
1013
|
+
stroke: "currentColor",
|
|
1014
|
+
strokeWidth: "1.5",
|
|
1015
|
+
strokeLinecap: "round"
|
|
1016
|
+
})
|
|
1017
|
+
})
|
|
993
1018
|
})]
|
|
994
1019
|
}),
|
|
995
1020
|
/* @__PURE__ */ l("div", {
|
|
996
|
-
className:
|
|
1021
|
+
className: V.content,
|
|
997
1022
|
children: r
|
|
998
1023
|
}),
|
|
999
1024
|
o && /* @__PURE__ */ l("div", {
|
|
1000
|
-
className:
|
|
1025
|
+
className: V.footer,
|
|
1001
1026
|
children: o
|
|
1002
1027
|
})
|
|
1003
1028
|
]
|
|
1004
1029
|
})
|
|
1005
1030
|
}), document.body) : null;
|
|
1006
|
-
},
|
|
1031
|
+
}, Fe = {
|
|
1007
1032
|
root: "_root_1x0nr_1",
|
|
1008
1033
|
content: "_content_1x0nr_13",
|
|
1009
1034
|
title: "_title_1x0nr_17",
|
|
@@ -1014,114 +1039,126 @@ var H = {
|
|
|
1014
1039
|
success: "_success_1x0nr_56",
|
|
1015
1040
|
warning: "_warning_1x0nr_62",
|
|
1016
1041
|
danger: "_danger_1x0nr_68"
|
|
1017
|
-
},
|
|
1018
|
-
className: p(
|
|
1042
|
+
}, Ie = ({ intent: e = "neutral", title: t, children: n, onClose: r, className: i, ...a }) => /* @__PURE__ */ u("div", {
|
|
1043
|
+
className: p(Fe.root, Fe[e], i),
|
|
1019
1044
|
role: "alert",
|
|
1020
1045
|
...a,
|
|
1021
1046
|
children: [/* @__PURE__ */ u("div", {
|
|
1022
|
-
className:
|
|
1047
|
+
className: Fe.content,
|
|
1023
1048
|
children: [t && /* @__PURE__ */ l("div", {
|
|
1024
|
-
className:
|
|
1049
|
+
className: Fe.title,
|
|
1025
1050
|
children: t
|
|
1026
1051
|
}), /* @__PURE__ */ l("div", {
|
|
1027
|
-
className:
|
|
1052
|
+
className: Fe.message,
|
|
1028
1053
|
children: n
|
|
1029
1054
|
})]
|
|
1030
1055
|
}), r && /* @__PURE__ */ l(A, {
|
|
1031
1056
|
variant: "subtle",
|
|
1032
1057
|
size: "xs",
|
|
1033
1058
|
onClick: r,
|
|
1034
|
-
className:
|
|
1059
|
+
className: Fe.closeButton,
|
|
1035
1060
|
"aria-label": "Close notification",
|
|
1036
|
-
children: "
|
|
1061
|
+
children: /* @__PURE__ */ l("svg", {
|
|
1062
|
+
width: "10",
|
|
1063
|
+
height: "10",
|
|
1064
|
+
viewBox: "0 0 10 10",
|
|
1065
|
+
fill: "none",
|
|
1066
|
+
"aria-hidden": "true",
|
|
1067
|
+
children: /* @__PURE__ */ l("path", {
|
|
1068
|
+
d: "M1 1L9 9M9 1L1 9",
|
|
1069
|
+
stroke: "currentColor",
|
|
1070
|
+
strokeWidth: "1.5",
|
|
1071
|
+
strokeLinecap: "round"
|
|
1072
|
+
})
|
|
1073
|
+
})
|
|
1037
1074
|
})]
|
|
1038
|
-
}),
|
|
1075
|
+
}), H = {
|
|
1039
1076
|
root: "_root_o4mj7_1",
|
|
1040
1077
|
list: "_list_o4mj7_6",
|
|
1041
1078
|
item: "_item_o4mj7_15",
|
|
1042
1079
|
ellipsis: "_ellipsis_o4mj7_19",
|
|
1043
1080
|
pageButton: "_pageButton_o4mj7_29"
|
|
1044
|
-
},
|
|
1081
|
+
}, Le = (e, t, n) => Math.min(Math.max(e, t), n), Re = (e, t) => {
|
|
1045
1082
|
let n = [];
|
|
1046
1083
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
1047
1084
|
return n;
|
|
1048
|
-
},
|
|
1085
|
+
}, ze = (e, t, n, r, i) => {
|
|
1049
1086
|
if (e <= 0) return [];
|
|
1050
|
-
if (!i || e <= n * 2 + 1 + r * 2 + 2) return
|
|
1051
|
-
let a =
|
|
1052
|
-
return l && d.push("ellipsis"), f <= p && d.push(...
|
|
1053
|
-
},
|
|
1054
|
-
let k = a(), te = e ?? `ds-pagination-${k}`, [
|
|
1087
|
+
if (!i || e <= n * 2 + 1 + r * 2 + 2) return Re(1, e);
|
|
1088
|
+
let a = Re(1, Math.min(r, e)), o = Re(Math.max(e - r + 1, r + 1), e), s = Math.max(t - n, r + 2), c = Math.min(t + n, e - r - 1), l = s > r + 2, u = c < e - r - 1, d = [...a], f = l ? s : r + 1, p = u ? c : e - r;
|
|
1089
|
+
return l && d.push("ellipsis"), f <= p && d.push(...Re(f, p)), u && d.push("ellipsis"), d.push(...o), d;
|
|
1090
|
+
}, Be = ({ id: e, count: t, page: n, defaultPage: r = 1, onPageChange: i, onFirstClick: s, onLastClick: d, onNextClick: f, onPrevClick: m, siblingCount: h = 1, boundaryCount: g = 1, showFirstLast: _ = !0, showPrevNext: v = !0, showEllipsis: y = !0, disabled: b = !1, size: x = "sm", variant: S = "outline", intent: C = "neutral", activeVariant: w = "solid", activeIntent: ee, labels: T, ariaLabel: E = "Pagination", getPageLabel: D, className: O }) => {
|
|
1091
|
+
let k = a(), te = e ?? `ds-pagination-${k}`, [ne, re] = c(r), j = Math.max(0, t), M = Le(n ?? ne, 1, Math.max(1, j)), ie = o(() => ze(j, M, h, g, y), [
|
|
1092
|
+
j,
|
|
1055
1093
|
M,
|
|
1056
|
-
N,
|
|
1057
1094
|
h,
|
|
1058
1095
|
g,
|
|
1059
1096
|
y
|
|
1060
|
-
]),
|
|
1061
|
-
b || e ===
|
|
1062
|
-
}, ie = () => {
|
|
1063
|
-
P(1), s?.(1);
|
|
1097
|
+
]), N = (e) => {
|
|
1098
|
+
b || e === M || (n === void 0 && re(e), i?.(e));
|
|
1064
1099
|
}, ae = () => {
|
|
1065
|
-
|
|
1066
|
-
P(e), d?.(e);
|
|
1100
|
+
N(1), s?.(1);
|
|
1067
1101
|
}, oe = () => {
|
|
1068
|
-
let e =
|
|
1069
|
-
|
|
1102
|
+
let e = j;
|
|
1103
|
+
N(e), d?.(e);
|
|
1070
1104
|
}, se = () => {
|
|
1071
|
-
let e = Math.
|
|
1072
|
-
|
|
1105
|
+
let e = Math.max(1, M - 1);
|
|
1106
|
+
N(e), m?.(e);
|
|
1107
|
+
}, ce = () => {
|
|
1108
|
+
let e = Math.min(j, M + 1);
|
|
1109
|
+
N(e), f?.(e);
|
|
1073
1110
|
};
|
|
1074
|
-
return
|
|
1111
|
+
return j <= 0 ? null : /* @__PURE__ */ l("nav", {
|
|
1075
1112
|
id: te,
|
|
1076
1113
|
"aria-label": E,
|
|
1077
|
-
className: p(
|
|
1114
|
+
className: p(H.root, O),
|
|
1078
1115
|
children: /* @__PURE__ */ u("ul", {
|
|
1079
|
-
className:
|
|
1116
|
+
className: H.list,
|
|
1080
1117
|
children: [
|
|
1081
1118
|
_ && /* @__PURE__ */ l("li", {
|
|
1082
|
-
className:
|
|
1119
|
+
className: H.item,
|
|
1083
1120
|
children: /* @__PURE__ */ l(A, {
|
|
1084
1121
|
size: x,
|
|
1085
1122
|
variant: S,
|
|
1086
1123
|
intent: C,
|
|
1087
|
-
className:
|
|
1088
|
-
onClick:
|
|
1089
|
-
disabled: b ||
|
|
1124
|
+
className: H.pageButton,
|
|
1125
|
+
onClick: ae,
|
|
1126
|
+
disabled: b || M === 1,
|
|
1090
1127
|
"aria-label": "Go to first page",
|
|
1091
1128
|
children: T?.first ?? "First"
|
|
1092
1129
|
})
|
|
1093
1130
|
}),
|
|
1094
1131
|
v && /* @__PURE__ */ l("li", {
|
|
1095
|
-
className:
|
|
1132
|
+
className: H.item,
|
|
1096
1133
|
children: /* @__PURE__ */ l(A, {
|
|
1097
1134
|
size: x,
|
|
1098
1135
|
variant: S,
|
|
1099
1136
|
intent: C,
|
|
1100
|
-
className:
|
|
1101
|
-
onClick:
|
|
1102
|
-
disabled: b ||
|
|
1137
|
+
className: H.pageButton,
|
|
1138
|
+
onClick: se,
|
|
1139
|
+
disabled: b || M === 1,
|
|
1103
1140
|
"aria-label": "Go to previous page",
|
|
1104
1141
|
children: T?.prev ?? "Prev"
|
|
1105
1142
|
})
|
|
1106
1143
|
}),
|
|
1107
|
-
|
|
1144
|
+
ie.map((e, t) => {
|
|
1108
1145
|
if (e === "ellipsis") return /* @__PURE__ */ l("li", {
|
|
1109
|
-
className:
|
|
1146
|
+
className: H.item,
|
|
1110
1147
|
"aria-hidden": "true",
|
|
1111
1148
|
children: /* @__PURE__ */ l("span", {
|
|
1112
|
-
className:
|
|
1149
|
+
className: H.ellipsis,
|
|
1113
1150
|
children: "…"
|
|
1114
1151
|
})
|
|
1115
1152
|
}, `ellipsis-${t}`);
|
|
1116
|
-
let n = e ===
|
|
1153
|
+
let n = e === M, r = D?.(e, n) ?? `Page ${e}${n ? ", current page" : ""}`;
|
|
1117
1154
|
return /* @__PURE__ */ l("li", {
|
|
1118
|
-
className:
|
|
1155
|
+
className: H.item,
|
|
1119
1156
|
children: /* @__PURE__ */ l(A, {
|
|
1120
1157
|
size: x,
|
|
1121
1158
|
variant: n ? w : S,
|
|
1122
1159
|
intent: n ? ee ?? C : C,
|
|
1123
|
-
className:
|
|
1124
|
-
onClick: () =>
|
|
1160
|
+
className: H.pageButton,
|
|
1161
|
+
onClick: () => N(e),
|
|
1125
1162
|
disabled: b,
|
|
1126
1163
|
"aria-current": n ? "page" : void 0,
|
|
1127
1164
|
"aria-label": r,
|
|
@@ -1130,27 +1167,27 @@ var H = {
|
|
|
1130
1167
|
}, e);
|
|
1131
1168
|
}),
|
|
1132
1169
|
v && /* @__PURE__ */ l("li", {
|
|
1133
|
-
className:
|
|
1170
|
+
className: H.item,
|
|
1134
1171
|
children: /* @__PURE__ */ l(A, {
|
|
1135
1172
|
size: x,
|
|
1136
1173
|
variant: S,
|
|
1137
1174
|
intent: C,
|
|
1138
|
-
className:
|
|
1139
|
-
onClick:
|
|
1140
|
-
disabled: b ||
|
|
1175
|
+
className: H.pageButton,
|
|
1176
|
+
onClick: ce,
|
|
1177
|
+
disabled: b || M === j,
|
|
1141
1178
|
"aria-label": "Go to next page",
|
|
1142
1179
|
children: T?.next ?? "Next"
|
|
1143
1180
|
})
|
|
1144
1181
|
}),
|
|
1145
1182
|
_ && /* @__PURE__ */ l("li", {
|
|
1146
|
-
className:
|
|
1183
|
+
className: H.item,
|
|
1147
1184
|
children: /* @__PURE__ */ l(A, {
|
|
1148
1185
|
size: x,
|
|
1149
1186
|
variant: S,
|
|
1150
1187
|
intent: C,
|
|
1151
|
-
className:
|
|
1152
|
-
onClick:
|
|
1153
|
-
disabled: b ||
|
|
1188
|
+
className: H.pageButton,
|
|
1189
|
+
onClick: oe,
|
|
1190
|
+
disabled: b || M === j,
|
|
1154
1191
|
"aria-label": "Go to last page",
|
|
1155
1192
|
children: T?.last ?? "Last"
|
|
1156
1193
|
})
|
|
@@ -1158,7 +1195,7 @@ var H = {
|
|
|
1158
1195
|
]
|
|
1159
1196
|
})
|
|
1160
1197
|
});
|
|
1161
|
-
},
|
|
1198
|
+
}, U = {
|
|
1162
1199
|
wrapper: "_wrapper_16yvn_1",
|
|
1163
1200
|
labelWrapper: "_labelWrapper_16yvn_8",
|
|
1164
1201
|
label: "_label_16yvn_8",
|
|
@@ -1172,23 +1209,23 @@ var H = {
|
|
|
1172
1209
|
success: "_success_16yvn_57",
|
|
1173
1210
|
warning: "_warning_16yvn_61",
|
|
1174
1211
|
danger: "_danger_16yvn_65"
|
|
1175
|
-
},
|
|
1212
|
+
}, Ve = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: o, className: s, id: c }) => {
|
|
1176
1213
|
let d = a(), f = c ?? `ds-progressbar-${d}`, m = t > 0 ? t : 0, h = Math.min(Math.max(0, e), m), g = m > 0 ? Math.min(Math.max(0, h / m * 100), 100) : 0, _ = o ? `${f}-label` : void 0;
|
|
1177
1214
|
return /* @__PURE__ */ u("div", {
|
|
1178
1215
|
id: f,
|
|
1179
|
-
className: p(
|
|
1216
|
+
className: p(U.wrapper, U[n], U[r], s),
|
|
1180
1217
|
children: [(o || i) && /* @__PURE__ */ u("div", {
|
|
1181
|
-
className:
|
|
1218
|
+
className: U.labelWrapper,
|
|
1182
1219
|
children: [o && /* @__PURE__ */ l("span", {
|
|
1183
1220
|
id: _,
|
|
1184
|
-
className:
|
|
1221
|
+
className: U.label,
|
|
1185
1222
|
children: o
|
|
1186
1223
|
}), i && /* @__PURE__ */ u("span", {
|
|
1187
|
-
className:
|
|
1224
|
+
className: U.percentage,
|
|
1188
1225
|
children: [Math.round(g), "%"]
|
|
1189
1226
|
})]
|
|
1190
1227
|
}), /* @__PURE__ */ l("div", {
|
|
1191
|
-
className:
|
|
1228
|
+
className: U.progressRoot,
|
|
1192
1229
|
role: "progressbar",
|
|
1193
1230
|
"aria-valuenow": h,
|
|
1194
1231
|
"aria-valuemin": 0,
|
|
@@ -1196,12 +1233,12 @@ var H = {
|
|
|
1196
1233
|
"aria-labelledby": _,
|
|
1197
1234
|
"aria-label": o ? void 0 : "Progress",
|
|
1198
1235
|
children: /* @__PURE__ */ l("div", {
|
|
1199
|
-
className:
|
|
1236
|
+
className: U.indicator,
|
|
1200
1237
|
style: { width: `${g}%` }
|
|
1201
1238
|
})
|
|
1202
1239
|
})]
|
|
1203
1240
|
});
|
|
1204
|
-
},
|
|
1241
|
+
}, W = {
|
|
1205
1242
|
wrapper: "_wrapper_92sko_1",
|
|
1206
1243
|
fullWidth: "_fullWidth_92sko_8",
|
|
1207
1244
|
header: "_header_92sko_13",
|
|
@@ -1221,54 +1258,54 @@ var H = {
|
|
|
1221
1258
|
inputsRow: "_inputsRow_92sko_179",
|
|
1222
1259
|
singleInputRow: "_singleInputRow_92sko_187",
|
|
1223
1260
|
separator: "_separator_92sko_191"
|
|
1224
|
-
},
|
|
1261
|
+
}, G = (e, t) => {
|
|
1225
1262
|
if (e == null) return t;
|
|
1226
1263
|
let n = typeof e == "number" ? e : Number(e);
|
|
1227
1264
|
return Number.isNaN(n) ? t : n;
|
|
1228
|
-
},
|
|
1265
|
+
}, He = (e, t, n) => Math.min(Math.max(e, t), n), Ue = (e, t, n, r) => He(r == null || r === "any" || r <= 0 ? e : t + Math.round((e - t) / r) * r, t, n), We = (e, t, n) => {
|
|
1229
1266
|
if (Array.isArray(e)) {
|
|
1230
|
-
let r =
|
|
1267
|
+
let r = He(G(e[0], t), t, n), i = He(G(e[1], n), t, n);
|
|
1231
1268
|
return r <= i ? [r, i] : [i, r];
|
|
1232
1269
|
}
|
|
1233
|
-
let r =
|
|
1270
|
+
let r = He(G(e, t), t, n);
|
|
1234
1271
|
return [r, r];
|
|
1235
|
-
},
|
|
1236
|
-
let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x =
|
|
1272
|
+
}, Ge = ({ size: e = "md", label: t, helperText: n, fullWidth: r = !1, showValue: i = !1, showInputs: s = !1, className: d, id: f, value: m, defaultValue: h, onValueChange: g, ..._ }) => {
|
|
1273
|
+
let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x = G(_.min, 0), S = G(_.max, 100), C = _.step === "any" ? "any" : G(_.step, 1), w = Array.isArray(m) || Array.isArray(h), [ee, T] = c(o(() => We(h ?? m, x, S), [
|
|
1237
1274
|
h,
|
|
1238
1275
|
S,
|
|
1239
1276
|
x,
|
|
1240
1277
|
m
|
|
1241
|
-
])), [E, D] = m == null ? ee :
|
|
1278
|
+
])), [E, D] = m == null ? ee : We(m, x, S), O = w ? `${E} - ${D}` : String(E), k = Math.max(S - x, 1), A = (E - x) / k * 100, te = (D - x) / k * 100, ne = (e) => {
|
|
1242
1279
|
m ?? T(e), g?.(w ? e : e[0]);
|
|
1243
|
-
},
|
|
1280
|
+
}, re = (e) => {
|
|
1244
1281
|
if (!e.trim()) return;
|
|
1245
1282
|
let t = Number(e);
|
|
1246
|
-
Number.isNaN(t) ||
|
|
1247
|
-
},
|
|
1283
|
+
Number.isNaN(t) || ne([Ue(t, x, w ? D : S, C), D]);
|
|
1284
|
+
}, j = (e) => {
|
|
1248
1285
|
if (!e.trim()) return;
|
|
1249
1286
|
let t = Number(e);
|
|
1250
|
-
Number.isNaN(t) ||
|
|
1287
|
+
Number.isNaN(t) || ne([E, Ue(t, E, S, C)]);
|
|
1251
1288
|
};
|
|
1252
1289
|
return /* @__PURE__ */ u("div", {
|
|
1253
|
-
className: p(
|
|
1290
|
+
className: p(W.wrapper, r && W.fullWidth, d),
|
|
1254
1291
|
children: [
|
|
1255
1292
|
(t || i) && /* @__PURE__ */ u("div", {
|
|
1256
|
-
className:
|
|
1293
|
+
className: W.header,
|
|
1257
1294
|
children: [t && /* @__PURE__ */ l("label", {
|
|
1258
1295
|
htmlFor: y,
|
|
1259
|
-
className:
|
|
1296
|
+
className: W.label,
|
|
1260
1297
|
children: t
|
|
1261
1298
|
}), i && /* @__PURE__ */ l("span", {
|
|
1262
|
-
className:
|
|
1299
|
+
className: W.value,
|
|
1263
1300
|
children: O
|
|
1264
1301
|
})]
|
|
1265
1302
|
}),
|
|
1266
1303
|
/* @__PURE__ */ u("div", {
|
|
1267
|
-
className: p(
|
|
1304
|
+
className: p(W.sliderRoot, W[e], _.disabled && W.disabled),
|
|
1268
1305
|
children: [
|
|
1269
|
-
/* @__PURE__ */ l("div", { className:
|
|
1306
|
+
/* @__PURE__ */ l("div", { className: W.track }),
|
|
1270
1307
|
/* @__PURE__ */ l("div", {
|
|
1271
|
-
className:
|
|
1308
|
+
className: W.activeTrack,
|
|
1272
1309
|
style: {
|
|
1273
1310
|
left: `${w ? A : 0}%`,
|
|
1274
1311
|
width: `${w ? te - A : A}%`
|
|
@@ -1277,7 +1314,7 @@ var H = {
|
|
|
1277
1314
|
/* @__PURE__ */ l("input", {
|
|
1278
1315
|
id: y,
|
|
1279
1316
|
type: "range",
|
|
1280
|
-
className: p(
|
|
1317
|
+
className: p(W.inputRoot, w && W.inputStart),
|
|
1281
1318
|
"aria-describedby": b,
|
|
1282
1319
|
"aria-label": t ? void 0 : w ? "Slider minimum" : "Slider",
|
|
1283
1320
|
"aria-valuetext": i ? O : void 0,
|
|
@@ -1287,13 +1324,13 @@ var H = {
|
|
|
1287
1324
|
step: C,
|
|
1288
1325
|
value: E,
|
|
1289
1326
|
onChange: (e) => {
|
|
1290
|
-
|
|
1327
|
+
ne([Ue(G(e.target.value, x), x, D, C), D]);
|
|
1291
1328
|
}
|
|
1292
1329
|
}),
|
|
1293
1330
|
w && /* @__PURE__ */ l("input", {
|
|
1294
1331
|
id: `${y}-end`,
|
|
1295
1332
|
type: "range",
|
|
1296
|
-
className: p(
|
|
1333
|
+
className: p(W.inputRoot, W.inputEnd),
|
|
1297
1334
|
"aria-describedby": b,
|
|
1298
1335
|
"aria-label": t ? `${t} maximum` : "Slider maximum",
|
|
1299
1336
|
..._,
|
|
@@ -1302,15 +1339,15 @@ var H = {
|
|
|
1302
1339
|
step: C,
|
|
1303
1340
|
value: D,
|
|
1304
1341
|
onChange: (e) => {
|
|
1305
|
-
|
|
1342
|
+
ne([E, Ue(G(e.target.value, S), E, S, C)]);
|
|
1306
1343
|
}
|
|
1307
1344
|
})
|
|
1308
1345
|
]
|
|
1309
1346
|
}),
|
|
1310
1347
|
s && /* @__PURE__ */ u("div", {
|
|
1311
|
-
className: p(
|
|
1348
|
+
className: p(W.inputsRow, !w && W.singleInputRow),
|
|
1312
1349
|
children: [
|
|
1313
|
-
/* @__PURE__ */ l(
|
|
1350
|
+
/* @__PURE__ */ l(Ce, {
|
|
1314
1351
|
type: "number",
|
|
1315
1352
|
inputMode: "decimal",
|
|
1316
1353
|
size: e,
|
|
@@ -1321,17 +1358,17 @@ var H = {
|
|
|
1321
1358
|
"aria-label": t ? `${t} minimum input` : w ? "Slider minimum input" : "Slider input",
|
|
1322
1359
|
fullWidth: !0,
|
|
1323
1360
|
onBlur: (e) => {
|
|
1324
|
-
|
|
1361
|
+
re(e.target.value);
|
|
1325
1362
|
},
|
|
1326
1363
|
onKeyDown: (e) => {
|
|
1327
|
-
e.key === "Enter" &&
|
|
1364
|
+
e.key === "Enter" && re(e.currentTarget.value);
|
|
1328
1365
|
}
|
|
1329
1366
|
}, `slider-start-${E}-${D}`),
|
|
1330
1367
|
w && /* @__PURE__ */ l("span", {
|
|
1331
|
-
className:
|
|
1368
|
+
className: W.separator,
|
|
1332
1369
|
children: "-"
|
|
1333
1370
|
}),
|
|
1334
|
-
w && /* @__PURE__ */ l(
|
|
1371
|
+
w && /* @__PURE__ */ l(Ce, {
|
|
1335
1372
|
type: "number",
|
|
1336
1373
|
inputMode: "decimal",
|
|
1337
1374
|
size: e,
|
|
@@ -1342,22 +1379,22 @@ var H = {
|
|
|
1342
1379
|
"aria-label": t ? `${t} maximum input` : "Slider maximum input",
|
|
1343
1380
|
fullWidth: !0,
|
|
1344
1381
|
onBlur: (e) => {
|
|
1345
|
-
|
|
1382
|
+
j(e.target.value);
|
|
1346
1383
|
},
|
|
1347
1384
|
onKeyDown: (e) => {
|
|
1348
|
-
e.key === "Enter" &&
|
|
1385
|
+
e.key === "Enter" && j(e.currentTarget.value);
|
|
1349
1386
|
}
|
|
1350
1387
|
}, `slider-end-${E}-${D}`)
|
|
1351
1388
|
]
|
|
1352
1389
|
}),
|
|
1353
1390
|
n && /* @__PURE__ */ l("span", {
|
|
1354
1391
|
id: b,
|
|
1355
|
-
className:
|
|
1392
|
+
className: W.helperText,
|
|
1356
1393
|
children: n
|
|
1357
1394
|
})
|
|
1358
1395
|
]
|
|
1359
1396
|
});
|
|
1360
|
-
},
|
|
1397
|
+
}, K = {
|
|
1361
1398
|
wrapper: "_wrapper_4v5ks_1",
|
|
1362
1399
|
label: "_label_4v5ks_7",
|
|
1363
1400
|
sm: "_sm_4v5ks_17",
|
|
@@ -1370,34 +1407,34 @@ var H = {
|
|
|
1370
1407
|
error: "_error_4v5ks_133",
|
|
1371
1408
|
helperText: "_helperText_4v5ks_142",
|
|
1372
1409
|
errorText: "_errorText_4v5ks_156"
|
|
1373
|
-
},
|
|
1410
|
+
}, Ke = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: o, ...s }) => {
|
|
1374
1411
|
let c = a(), d = o ?? `ds-radio-${c}`, f = n ? `${d}-help` : void 0;
|
|
1375
1412
|
return /* @__PURE__ */ u("div", {
|
|
1376
|
-
className: p(
|
|
1413
|
+
className: p(K.wrapper, i),
|
|
1377
1414
|
children: [/* @__PURE__ */ u("label", {
|
|
1378
1415
|
htmlFor: d,
|
|
1379
|
-
className: p(
|
|
1416
|
+
className: p(K.label, K[e]),
|
|
1380
1417
|
children: [/* @__PURE__ */ u("div", {
|
|
1381
|
-
className:
|
|
1418
|
+
className: K.inputWrapper,
|
|
1382
1419
|
children: [/* @__PURE__ */ l("input", {
|
|
1383
1420
|
type: "radio",
|
|
1384
1421
|
id: d,
|
|
1385
|
-
className: p(
|
|
1422
|
+
className: p(K.radioRoot, K[e], r && K.error),
|
|
1386
1423
|
"aria-describedby": f,
|
|
1387
1424
|
"aria-invalid": r || void 0,
|
|
1388
1425
|
...s
|
|
1389
|
-
}), /* @__PURE__ */ l("span", { className:
|
|
1426
|
+
}), /* @__PURE__ */ l("span", { className: K.checkmark })]
|
|
1390
1427
|
}), t && /* @__PURE__ */ l("span", {
|
|
1391
|
-
className:
|
|
1428
|
+
className: K.labelText,
|
|
1392
1429
|
children: t
|
|
1393
1430
|
})]
|
|
1394
1431
|
}), n && /* @__PURE__ */ l("span", {
|
|
1395
1432
|
id: f,
|
|
1396
|
-
className: p(
|
|
1433
|
+
className: p(K.helperText, r && K.errorText),
|
|
1397
1434
|
children: n
|
|
1398
1435
|
})]
|
|
1399
1436
|
});
|
|
1400
|
-
},
|
|
1437
|
+
}, qe = {
|
|
1401
1438
|
root: "_root_1qfdr_1",
|
|
1402
1439
|
text: "_text_1qfdr_6",
|
|
1403
1440
|
rectangular: "_rectangular_1qfdr_15",
|
|
@@ -1405,38 +1442,38 @@ var H = {
|
|
|
1405
1442
|
circular: "_circular_1qfdr_23",
|
|
1406
1443
|
pulse: "_pulse_1qfdr_28",
|
|
1407
1444
|
wave: "_wave_1qfdr_44"
|
|
1408
|
-
},
|
|
1409
|
-
className: p(
|
|
1445
|
+
}, Je = ({ variant: e = "rectangular", width: t, height: n, animation: r = "pulse", className: i, style: a, "aria-hidden": o, ...s }) => /* @__PURE__ */ l(T, {
|
|
1446
|
+
className: p(qe.root, qe[e], r !== "none" && qe[r], i),
|
|
1410
1447
|
width: t,
|
|
1411
1448
|
height: n,
|
|
1412
1449
|
style: a,
|
|
1413
1450
|
"aria-hidden": o ?? !0,
|
|
1414
1451
|
...s
|
|
1415
|
-
}),
|
|
1416
|
-
step:
|
|
1417
|
-
stepRow:
|
|
1418
|
-
interactive:
|
|
1419
|
-
marker:
|
|
1420
|
-
text:
|
|
1421
|
-
label:
|
|
1422
|
-
description:
|
|
1423
|
-
connector:
|
|
1424
|
-
completed:
|
|
1452
|
+
}), Ye = "_step_1z90u_1", Xe = "_stepRow_1z90u_18", Ze = "_interactive_1z90u_28", Qe = "_marker_1z90u_48", $e = "_text_1z90u_67", et = "_label_1z90u_74", tt = "_description_1z90u_83", nt = "_connector_1z90u_92", rt = "_completed_1z90u_110", it = "_current_1z90u_124", at = "_error_1z90u_138", ot = "_upcoming_1z90u_152", st = "_disabled_1z90u_156", q = {
|
|
1453
|
+
step: Ye,
|
|
1454
|
+
stepRow: Xe,
|
|
1455
|
+
interactive: Ze,
|
|
1456
|
+
marker: Qe,
|
|
1457
|
+
text: $e,
|
|
1458
|
+
label: et,
|
|
1459
|
+
description: tt,
|
|
1460
|
+
connector: nt,
|
|
1461
|
+
completed: rt,
|
|
1425
1462
|
"connector-completed": "_connector-completed_1z90u_120",
|
|
1426
|
-
current:
|
|
1463
|
+
current: it,
|
|
1427
1464
|
"connector-current": "_connector-current_1z90u_134",
|
|
1428
|
-
error:
|
|
1465
|
+
error: at,
|
|
1429
1466
|
"connector-error": "_connector-error_1z90u_148",
|
|
1430
|
-
upcoming:
|
|
1431
|
-
disabled:
|
|
1432
|
-
},
|
|
1467
|
+
upcoming: ot,
|
|
1468
|
+
disabled: st
|
|
1469
|
+
}, ct = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
|
|
1433
1470
|
let c = !!e.disabled, d = r ? "button" : "div", f = n === "error" ? "!" : String(t + 1);
|
|
1434
1471
|
return /* @__PURE__ */ u("li", {
|
|
1435
|
-
className: p(
|
|
1472
|
+
className: p(q.step, q[n], c && q.disabled, s),
|
|
1436
1473
|
children: [/* @__PURE__ */ u(d, {
|
|
1437
1474
|
id: o,
|
|
1438
1475
|
type: r ? "button" : void 0,
|
|
1439
|
-
className: p(
|
|
1476
|
+
className: p(q.stepRow, r && q.interactive),
|
|
1440
1477
|
onClick: () => {
|
|
1441
1478
|
r && !c && i?.(e, t);
|
|
1442
1479
|
},
|
|
@@ -1448,49 +1485,49 @@ var H = {
|
|
|
1448
1485
|
disabled: r && c ? !0 : void 0,
|
|
1449
1486
|
tabIndex: r && !c ? 0 : void 0,
|
|
1450
1487
|
children: [/* @__PURE__ */ l("span", {
|
|
1451
|
-
className:
|
|
1488
|
+
className: q.marker,
|
|
1452
1489
|
"aria-hidden": "true",
|
|
1453
1490
|
children: f
|
|
1454
1491
|
}), /* @__PURE__ */ u("span", {
|
|
1455
|
-
className:
|
|
1492
|
+
className: q.text,
|
|
1456
1493
|
children: [/* @__PURE__ */ l("span", {
|
|
1457
|
-
className:
|
|
1494
|
+
className: q.label,
|
|
1458
1495
|
children: e.label
|
|
1459
1496
|
}), e.description && /* @__PURE__ */ l("span", {
|
|
1460
|
-
className:
|
|
1497
|
+
className: q.description,
|
|
1461
1498
|
children: e.description
|
|
1462
1499
|
})]
|
|
1463
1500
|
})]
|
|
1464
1501
|
}), !a && /* @__PURE__ */ l("span", {
|
|
1465
|
-
className: p(
|
|
1502
|
+
className: p(q.connector, q[`connector-${n}`]),
|
|
1466
1503
|
"aria-hidden": "true"
|
|
1467
1504
|
})]
|
|
1468
1505
|
});
|
|
1469
|
-
},
|
|
1506
|
+
}, lt = {
|
|
1470
1507
|
root: "_root_cxvk2_1",
|
|
1471
1508
|
sm: "_sm_cxvk2_15",
|
|
1472
1509
|
lg: "_lg_cxvk2_22",
|
|
1473
1510
|
horizontal: "_horizontal_cxvk2_29",
|
|
1474
1511
|
vertical: "_vertical_cxvk2_35"
|
|
1475
|
-
},
|
|
1476
|
-
let d = a(), f = c ?? `ds-stepper-${d}`, m =
|
|
1512
|
+
}, ut = (e, t) => Number.isNaN(e) || t <= 0 ? -1 : Math.min(Math.max(e, 0), t - 1), dt = (e, t) => typeof e == "number" ? ut(e, t.length) : typeof e == "string" ? t.findIndex((t) => t.id === e) : t.findIndex((e) => e.status === "current"), ft = (e, t, n) => n || (t === -1 ? "upcoming" : e < t ? "completed" : e === t ? "current" : "upcoming"), pt = ({ steps: e, currentStep: t, orientation: n = "horizontal", size: r = "md", onStepClick: i, ariaLabel: o, className: s, id: c, ...u }) => {
|
|
1513
|
+
let d = a(), f = c ?? `ds-stepper-${d}`, m = dt(t, e), h = o ?? "Progress";
|
|
1477
1514
|
return /* @__PURE__ */ l("ol", {
|
|
1478
1515
|
id: f,
|
|
1479
|
-
className: p(
|
|
1516
|
+
className: p(lt.root, lt[n], lt[r], s),
|
|
1480
1517
|
"aria-label": h,
|
|
1481
1518
|
"data-orientation": n,
|
|
1482
1519
|
...u,
|
|
1483
|
-
children: e.map((t, n) => /* @__PURE__ */ l(
|
|
1520
|
+
children: e.map((t, n) => /* @__PURE__ */ l(ct, {
|
|
1484
1521
|
id: `${f}-step-${t.id}`,
|
|
1485
1522
|
step: t,
|
|
1486
1523
|
index: n,
|
|
1487
|
-
status:
|
|
1524
|
+
status: ft(n, m, t.status),
|
|
1488
1525
|
isInteractive: !!i,
|
|
1489
1526
|
onStepClick: i,
|
|
1490
1527
|
isLast: n === e.length - 1
|
|
1491
1528
|
}, t.id))
|
|
1492
1529
|
});
|
|
1493
|
-
},
|
|
1530
|
+
}, J = {
|
|
1494
1531
|
wrapper: "_wrapper_vo2yb_1",
|
|
1495
1532
|
fullWidth: "_fullWidth_vo2yb_8",
|
|
1496
1533
|
label: "_label_vo2yb_13",
|
|
@@ -1501,19 +1538,19 @@ var H = {
|
|
|
1501
1538
|
error: "_error_vo2yb_80",
|
|
1502
1539
|
helperText: "_helperText_vo2yb_89",
|
|
1503
1540
|
errorText: "_errorText_vo2yb_95"
|
|
1504
|
-
},
|
|
1541
|
+
}, mt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, options: c, children: d, ...f }) => {
|
|
1505
1542
|
let m = a(), h = s ?? `ds-select-${m}`, g = r ? `${h}-help` : void 0;
|
|
1506
1543
|
return /* @__PURE__ */ u("div", {
|
|
1507
|
-
className: p(
|
|
1544
|
+
className: p(J.wrapper, i && J.fullWidth, o),
|
|
1508
1545
|
children: [
|
|
1509
1546
|
n && /* @__PURE__ */ l("label", {
|
|
1510
1547
|
htmlFor: h,
|
|
1511
|
-
className:
|
|
1548
|
+
className: J.label,
|
|
1512
1549
|
children: n
|
|
1513
1550
|
}),
|
|
1514
1551
|
/* @__PURE__ */ l("select", {
|
|
1515
1552
|
id: h,
|
|
1516
|
-
className: p(
|
|
1553
|
+
className: p(J.selectRoot, J[e], t && J.error),
|
|
1517
1554
|
"aria-describedby": g,
|
|
1518
1555
|
"aria-invalid": t || void 0,
|
|
1519
1556
|
...f,
|
|
@@ -1525,12 +1562,12 @@ var H = {
|
|
|
1525
1562
|
}),
|
|
1526
1563
|
r && /* @__PURE__ */ l("span", {
|
|
1527
1564
|
id: g,
|
|
1528
|
-
className: p(
|
|
1565
|
+
className: p(J.helperText, t && J.errorText),
|
|
1529
1566
|
children: r
|
|
1530
1567
|
})
|
|
1531
1568
|
]
|
|
1532
1569
|
});
|
|
1533
|
-
},
|
|
1570
|
+
}, Y = {
|
|
1534
1571
|
wrapper: "_wrapper_196po_1",
|
|
1535
1572
|
container: "_container_196po_7",
|
|
1536
1573
|
disabled: "_disabled_196po_15",
|
|
@@ -1539,87 +1576,87 @@ var H = {
|
|
|
1539
1576
|
thumb: "_thumb_196po_46",
|
|
1540
1577
|
label: "_label_196po_62",
|
|
1541
1578
|
helperText: "_helperText_196po_69"
|
|
1542
|
-
},
|
|
1579
|
+
}, ht = ({ label: e, helperText: t, className: n, disabled: r, id: i, ...o }) => {
|
|
1543
1580
|
let s = a(), c = i ?? `ds-switch-${s}`, d = t ? `${c}-help` : void 0;
|
|
1544
1581
|
return /* @__PURE__ */ u("div", {
|
|
1545
|
-
className: p(
|
|
1582
|
+
className: p(Y.wrapper, n),
|
|
1546
1583
|
children: [/* @__PURE__ */ u("label", {
|
|
1547
1584
|
htmlFor: c,
|
|
1548
|
-
className: p(
|
|
1585
|
+
className: p(Y.container, r && Y.disabled),
|
|
1549
1586
|
children: [
|
|
1550
1587
|
/* @__PURE__ */ l("input", {
|
|
1551
1588
|
type: "checkbox",
|
|
1552
1589
|
id: c,
|
|
1553
1590
|
role: "switch",
|
|
1554
1591
|
disabled: r,
|
|
1555
|
-
className:
|
|
1592
|
+
className: Y.input,
|
|
1556
1593
|
"aria-describedby": d,
|
|
1557
1594
|
...o
|
|
1558
1595
|
}),
|
|
1559
1596
|
/* @__PURE__ */ l("span", {
|
|
1560
|
-
className:
|
|
1561
|
-
children: /* @__PURE__ */ l("span", { className:
|
|
1597
|
+
className: Y.track,
|
|
1598
|
+
children: /* @__PURE__ */ l("span", { className: Y.thumb })
|
|
1562
1599
|
}),
|
|
1563
1600
|
e && /* @__PURE__ */ l("span", {
|
|
1564
|
-
className:
|
|
1601
|
+
className: Y.label,
|
|
1565
1602
|
children: e
|
|
1566
1603
|
})
|
|
1567
1604
|
]
|
|
1568
1605
|
}), t && /* @__PURE__ */ l("span", {
|
|
1569
1606
|
id: d,
|
|
1570
|
-
className:
|
|
1607
|
+
className: Y.helperText,
|
|
1571
1608
|
children: t
|
|
1572
1609
|
})]
|
|
1573
1610
|
});
|
|
1574
|
-
},
|
|
1575
|
-
wrapper:
|
|
1576
|
-
table:
|
|
1577
|
-
thead:
|
|
1578
|
-
tbody:
|
|
1579
|
-
tr:
|
|
1580
|
-
th:
|
|
1581
|
-
td:
|
|
1582
|
-
striped:
|
|
1583
|
-
hoverable:
|
|
1584
|
-
dense:
|
|
1611
|
+
}, gt = "_wrapper_1w3cj_1", _t = "_table_1w3cj_8", vt = "_thead_1w3cj_17", yt = "_tbody_1w3cj_22", bt = "_tr_1w3cj_22", xt = "_th_1w3cj_17", St = "_td_1w3cj_40", Ct = "_striped_1w3cj_46", wt = "_hoverable_1w3cj_50", Tt = "_dense_1w3cj_54", Et = "_loading_1w3cj_75", X = {
|
|
1612
|
+
wrapper: gt,
|
|
1613
|
+
table: _t,
|
|
1614
|
+
thead: vt,
|
|
1615
|
+
tbody: yt,
|
|
1616
|
+
tr: bt,
|
|
1617
|
+
th: xt,
|
|
1618
|
+
td: St,
|
|
1619
|
+
striped: Ct,
|
|
1620
|
+
hoverable: wt,
|
|
1621
|
+
dense: Tt,
|
|
1585
1622
|
"align-left": "_align-left_1w3cj_62",
|
|
1586
1623
|
"align-center": "_align-center_1w3cj_65",
|
|
1587
1624
|
"align-right": "_align-right_1w3cj_68",
|
|
1588
1625
|
"align-justify": "_align-justify_1w3cj_71",
|
|
1589
|
-
loading:
|
|
1590
|
-
},
|
|
1591
|
-
className: p(
|
|
1626
|
+
loading: Et
|
|
1627
|
+
}, Dt = ({ children: e, className: t, striped: n, hoverable: r, dense: i, isLoading: a, ...o }) => /* @__PURE__ */ l("div", {
|
|
1628
|
+
className: p(X.wrapper, a && X.loading, t),
|
|
1592
1629
|
children: /* @__PURE__ */ l("table", {
|
|
1593
|
-
className: p(
|
|
1630
|
+
className: p(X.table, n && X.striped, r && X.hoverable, i && X.dense),
|
|
1594
1631
|
"aria-busy": a || void 0,
|
|
1595
1632
|
...o,
|
|
1596
1633
|
children: e
|
|
1597
1634
|
})
|
|
1598
|
-
}),
|
|
1599
|
-
className: p(
|
|
1635
|
+
}), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("thead", {
|
|
1636
|
+
className: p(X.thead, t),
|
|
1600
1637
|
...n,
|
|
1601
1638
|
children: e
|
|
1602
|
-
}),
|
|
1603
|
-
className: p(
|
|
1639
|
+
}), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tbody", {
|
|
1640
|
+
className: p(X.tbody, t),
|
|
1604
1641
|
...n,
|
|
1605
1642
|
children: e
|
|
1606
|
-
}),
|
|
1607
|
-
className: p(
|
|
1643
|
+
}), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tfoot", {
|
|
1644
|
+
className: p(X.tfoot, t),
|
|
1608
1645
|
...n,
|
|
1609
1646
|
children: e
|
|
1610
|
-
}),
|
|
1611
|
-
className: p(
|
|
1647
|
+
}), jt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tr", {
|
|
1648
|
+
className: p(X.tr, t),
|
|
1612
1649
|
...n,
|
|
1613
1650
|
children: e
|
|
1614
|
-
}),
|
|
1615
|
-
className: p(
|
|
1651
|
+
}), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("th", {
|
|
1652
|
+
className: p(X.th, n && X[`align-${n}`], t),
|
|
1616
1653
|
...r,
|
|
1617
1654
|
children: e
|
|
1618
|
-
}),
|
|
1619
|
-
className: p(
|
|
1655
|
+
}), Nt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("td", {
|
|
1656
|
+
className: p(X.td, n && X[`align-${n}`], t),
|
|
1620
1657
|
...r,
|
|
1621
1658
|
children: e
|
|
1622
|
-
}),
|
|
1659
|
+
}), Z = {
|
|
1623
1660
|
root: "_root_1luck_1",
|
|
1624
1661
|
tabList: "_tabList_1luck_8",
|
|
1625
1662
|
tabItem: "_tabItem_1luck_16",
|
|
@@ -1643,11 +1680,11 @@ var H = {
|
|
|
1643
1680
|
}, x = e.find((e) => e.id === _);
|
|
1644
1681
|
return /* @__PURE__ */ u("div", {
|
|
1645
1682
|
id: m,
|
|
1646
|
-
className: p(
|
|
1683
|
+
className: p(Z.root, i),
|
|
1647
1684
|
children: [/* @__PURE__ */ l("div", {
|
|
1648
1685
|
role: "tablist",
|
|
1649
1686
|
ref: v,
|
|
1650
|
-
className: p(
|
|
1687
|
+
className: p(Z.tabList, o === "pill" && Z.pillList),
|
|
1651
1688
|
onKeyDown: b,
|
|
1652
1689
|
children: e.map((e) => {
|
|
1653
1690
|
let t = e.id === _, n = !!e.disabled, r = n ? -1 : t ? 0 : -1;
|
|
@@ -1660,7 +1697,7 @@ var H = {
|
|
|
1660
1697
|
tabIndex: r,
|
|
1661
1698
|
disabled: n,
|
|
1662
1699
|
"data-id": e.id,
|
|
1663
|
-
className: p(
|
|
1700
|
+
className: p(Z.tabItem, o === "pill" && Z.pillItem, t && Z.active, n && Z.disabled),
|
|
1664
1701
|
onClick: () => y(e.id, n),
|
|
1665
1702
|
children: e.label
|
|
1666
1703
|
}, e.id);
|
|
@@ -1669,7 +1706,7 @@ var H = {
|
|
|
1669
1706
|
role: "tabpanel",
|
|
1670
1707
|
id: `${m}-panel-${_}`,
|
|
1671
1708
|
"aria-labelledby": `${m}-tab-${_}`,
|
|
1672
|
-
className:
|
|
1709
|
+
className: Z.tabPanel,
|
|
1673
1710
|
tabIndex: 0,
|
|
1674
1711
|
children: x?.content
|
|
1675
1712
|
})]
|
|
@@ -2072,31 +2109,17 @@ var cn = {
|
|
|
2072
2109
|
root: "_root_1931n_1",
|
|
2073
2110
|
main: "_main_1931n_8",
|
|
2074
2111
|
container: "_container_1931n_13"
|
|
2075
|
-
}, ln = ({
|
|
2076
|
-
className: p(cn.root,
|
|
2112
|
+
}, ln = ({ header: e, navbar: t, children: n, className: r, maxWidth: i = "75rem" }) => /* @__PURE__ */ u("div", {
|
|
2113
|
+
className: p(cn.root, r),
|
|
2077
2114
|
children: [
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
title: t,
|
|
2081
|
-
user: n,
|
|
2082
|
-
onLogin: s,
|
|
2083
|
-
onLogout: c,
|
|
2084
|
-
onCreateAccount: d,
|
|
2085
|
-
maxWidth: h
|
|
2086
|
-
}),
|
|
2087
|
-
/* @__PURE__ */ l(xe, {
|
|
2088
|
-
items: r,
|
|
2089
|
-
activeId: i,
|
|
2090
|
-
actions: a,
|
|
2091
|
-
onItemClick: f,
|
|
2092
|
-
maxWidth: h
|
|
2093
|
-
}),
|
|
2115
|
+
e,
|
|
2116
|
+
t,
|
|
2094
2117
|
/* @__PURE__ */ l("main", {
|
|
2095
2118
|
className: cn.main,
|
|
2096
2119
|
children: /* @__PURE__ */ l(T, {
|
|
2097
2120
|
className: cn.container,
|
|
2098
|
-
maxWidth:
|
|
2099
|
-
children:
|
|
2121
|
+
maxWidth: i,
|
|
2122
|
+
children: n
|
|
2100
2123
|
})
|
|
2101
2124
|
})
|
|
2102
2125
|
]
|
|
@@ -2144,38 +2167,30 @@ var cn = {
|
|
|
2144
2167
|
topBar: "_topBar_1vwxr_20",
|
|
2145
2168
|
stats: "_stats_1vwxr_27",
|
|
2146
2169
|
content: "_content_1vwxr_33"
|
|
2147
|
-
}, pn = ({
|
|
2148
|
-
className: p(fn.root,
|
|
2149
|
-
children: [/* @__PURE__ */ l(
|
|
2150
|
-
logo: e,
|
|
2151
|
-
title: t,
|
|
2152
|
-
user: o,
|
|
2153
|
-
onLogin: s,
|
|
2154
|
-
onLogout: c,
|
|
2155
|
-
onCreateAccount: d,
|
|
2156
|
-
maxWidth: m
|
|
2157
|
-
}), /* @__PURE__ */ l("main", {
|
|
2170
|
+
}, pn = ({ header: e, breadcrumbs: t, actions: n, stats: r, children: i, className: a }) => /* @__PURE__ */ u("div", {
|
|
2171
|
+
className: p(fn.root, a),
|
|
2172
|
+
children: [e, /* @__PURE__ */ l("main", {
|
|
2158
2173
|
className: fn.main,
|
|
2159
2174
|
children: /* @__PURE__ */ u("div", {
|
|
2160
2175
|
className: fn.container,
|
|
2161
2176
|
children: [
|
|
2162
|
-
(
|
|
2177
|
+
(t || n) && /* @__PURE__ */ u("div", {
|
|
2163
2178
|
className: fn.topBar,
|
|
2164
2179
|
children: [/* @__PURE__ */ l("div", {
|
|
2165
2180
|
className: fn.breadcrumbs,
|
|
2166
|
-
children:
|
|
2181
|
+
children: t
|
|
2167
2182
|
}), /* @__PURE__ */ l("div", {
|
|
2168
2183
|
className: fn.actions,
|
|
2169
|
-
children:
|
|
2184
|
+
children: n
|
|
2170
2185
|
})]
|
|
2171
2186
|
}),
|
|
2172
|
-
|
|
2187
|
+
r && /* @__PURE__ */ l("div", {
|
|
2173
2188
|
className: fn.stats,
|
|
2174
|
-
children:
|
|
2189
|
+
children: r
|
|
2175
2190
|
}),
|
|
2176
2191
|
/* @__PURE__ */ l("div", {
|
|
2177
2192
|
className: fn.content,
|
|
2178
|
-
children:
|
|
2193
|
+
children: i
|
|
2179
2194
|
})
|
|
2180
2195
|
]
|
|
2181
2196
|
})
|
|
@@ -2187,35 +2202,27 @@ var cn = {
|
|
|
2187
2202
|
layoutBody: "_layoutBody_o4vai_20",
|
|
2188
2203
|
sidebar: "_sidebar_o4vai_26",
|
|
2189
2204
|
content: "_content_o4vai_34"
|
|
2190
|
-
}, hn = ({
|
|
2191
|
-
className: p(mn.root,
|
|
2192
|
-
children: [/* @__PURE__ */ l(
|
|
2193
|
-
logo: e,
|
|
2194
|
-
title: t,
|
|
2195
|
-
user: a,
|
|
2196
|
-
onLogin: o,
|
|
2197
|
-
onLogout: s,
|
|
2198
|
-
onCreateAccount: c,
|
|
2199
|
-
maxWidth: f
|
|
2200
|
-
}), /* @__PURE__ */ l("main", {
|
|
2205
|
+
}, hn = ({ header: e, breadcrumbs: t, sidebar: n, children: r, className: i }) => /* @__PURE__ */ u("div", {
|
|
2206
|
+
className: p(mn.root, i),
|
|
2207
|
+
children: [e, /* @__PURE__ */ l("main", {
|
|
2201
2208
|
className: mn.main,
|
|
2202
2209
|
children: /* @__PURE__ */ u("div", {
|
|
2203
2210
|
className: mn.container,
|
|
2204
|
-
children: [
|
|
2211
|
+
children: [t && /* @__PURE__ */ l("div", {
|
|
2205
2212
|
className: mn.breadcrumbs,
|
|
2206
|
-
children:
|
|
2213
|
+
children: t
|
|
2207
2214
|
}), /* @__PURE__ */ u("div", {
|
|
2208
2215
|
className: mn.layoutBody,
|
|
2209
|
-
children: [
|
|
2216
|
+
children: [n && /* @__PURE__ */ l("aside", {
|
|
2210
2217
|
className: mn.sidebar,
|
|
2211
|
-
children:
|
|
2218
|
+
children: n
|
|
2212
2219
|
}), /* @__PURE__ */ l("section", {
|
|
2213
2220
|
className: mn.content,
|
|
2214
|
-
children:
|
|
2221
|
+
children: r
|
|
2215
2222
|
})]
|
|
2216
2223
|
})]
|
|
2217
2224
|
})
|
|
2218
2225
|
})]
|
|
2219
2226
|
});
|
|
2220
2227
|
//#endregion
|
|
2221
|
-
export { h as Accordion, ln as AppLayout, dn as AuthLayout, _ as Avatar, y as Badge, T as Box, D as BreadcrumbItem, O as Breadcrumbs, A as Button,
|
|
2228
|
+
export { h as Accordion, ln as AppLayout, dn as AuthLayout, _ as Avatar, y as Badge, T as Box, D as BreadcrumbItem, O as Breadcrumbs, A as Button, fe as Card, me as CardContent, he as CardFooter, pe as CardHeader, ge as Checkbox, pn as DashboardLayout, be as Divider, _e as Dropdown, xe as Header, Ce as Input, Ne as List, Me as ListItem, Te as Loader, Pe as Modal, Se as NavBar, Ie as Notification, Be as Pagination, Ve as ProgressBar, Ke as RadioButton, mt as Select, hn as SettingsLayout, Je as Skeleton, Ge as Slider, pt as Stepper, ht as Switch, Dt as Table, kt as TableBody, Nt as TableCell, At as TableFooter, Mt as TableHead, Ot as TableHeader, jt as TableRow, Pt as Tabs, $t as Text, tn as Textarea, rn as Tooltip, sn as Tree, on as TreeItem };
|