tharaday 0.8.0 → 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.js +349 -353
- package/dist/ds.umd.cjs +1 -1
- package/dist/src/components/NavBar/NavBar.types.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Avatar/Avatar.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +3 -2
- package/src/components/Modal/Modal.tsx +4 -0
- package/src/components/NavBar/NavBar.test.tsx +1 -1
- package/src/components/NavBar/NavBar.tsx +1 -1
- package/src/components/NavBar/NavBar.types.ts +1 -1
- package/src/components/Slider/Slider.tsx +3 -2
package/dist/ds.js
CHANGED
|
@@ -137,7 +137,6 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
137
137
|
fill: "currentColor",
|
|
138
138
|
className: (0, x.default)(T.image, T.defaultIcon),
|
|
139
139
|
"aria-hidden": "true",
|
|
140
|
-
focusable: "false",
|
|
141
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" })
|
|
142
141
|
}), m = e && !s;
|
|
143
142
|
return /* @__PURE__ */ u("div", {
|
|
@@ -164,7 +163,7 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
164
163
|
className: (0, x.default)(D.root, D[e], D[t], D[n], r),
|
|
165
164
|
...a,
|
|
166
165
|
children: i
|
|
167
|
-
}), ee = "_box_ynnco_1", k = "_fullWidth_ynnco_5",
|
|
166
|
+
}), ee = "_box_ynnco_1", k = "_fullWidth_ynnco_5", A = "_border_ynnco_683", te = "_borderBottom_ynnco_686", j = {
|
|
168
167
|
box: ee,
|
|
169
168
|
fullWidth: k,
|
|
170
169
|
"display-block": "_display-block_ynnco_10",
|
|
@@ -366,8 +365,8 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
366
365
|
"bg-success-subtle": "_bg-success-subtle_ynnco_672",
|
|
367
366
|
"bg-warning-subtle": "_bg-warning-subtle_ynnco_675",
|
|
368
367
|
"bg-danger-subtle": "_bg-danger-subtle_ynnco_678",
|
|
369
|
-
border:
|
|
370
|
-
borderBottom:
|
|
368
|
+
border: A,
|
|
369
|
+
borderBottom: te,
|
|
371
370
|
"borderColor-main": "_borderColor-main_ynnco_691",
|
|
372
371
|
"borderColor-subtle": "_borderColor-subtle_ynnco_694",
|
|
373
372
|
"borderColor-danger": "_borderColor-danger_ynnco_697",
|
|
@@ -382,64 +381,64 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
382
381
|
"borderRadius-md": "_borderRadius-md_ynnco_728",
|
|
383
382
|
"borderRadius-lg": "_borderRadius-lg_ynnco_731",
|
|
384
383
|
"borderRadius-full": "_borderRadius-full_ynnco_734"
|
|
385
|
-
},
|
|
384
|
+
}, M = (e, t, n, r, i, a, o, s) => {
|
|
386
385
|
let c = {};
|
|
387
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;
|
|
388
|
-
},
|
|
389
|
-
let
|
|
390
|
-
...
|
|
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,
|
|
391
390
|
flexGrow: w,
|
|
392
391
|
flexShrink: T,
|
|
393
392
|
flex: E,
|
|
394
393
|
width: ee,
|
|
395
394
|
height: k,
|
|
396
|
-
maxWidth:
|
|
397
|
-
gridTemplateColumns:
|
|
395
|
+
maxWidth: A,
|
|
396
|
+
gridTemplateColumns: te,
|
|
398
397
|
gap: typeof v == "string" ? v : void 0,
|
|
399
|
-
...
|
|
400
|
-
...
|
|
398
|
+
...M("padding", r, i, a, o, s, c, l),
|
|
399
|
+
...M("margin", d, f, p, m, h, g, _)
|
|
401
400
|
};
|
|
402
401
|
return /* @__PURE__ */ u(t, {
|
|
403
|
-
className: (0, x.default)(
|
|
404
|
-
style:
|
|
405
|
-
...
|
|
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,
|
|
406
405
|
children: e
|
|
407
406
|
});
|
|
408
|
-
},
|
|
407
|
+
}, P = {
|
|
409
408
|
root: "_root_10ujs_1",
|
|
410
409
|
list: "_list_10ujs_6",
|
|
411
410
|
item: "_item_10ujs_16",
|
|
412
411
|
link: "_link_10ujs_21",
|
|
413
412
|
current: "_current_10ujs_27",
|
|
414
413
|
separator: "_separator_10ujs_38"
|
|
415
|
-
},
|
|
414
|
+
}, F = ({ href: e, isCurrent: t, children: n, className: r, ...i }) => {
|
|
416
415
|
let a = e && !t ? "a" : "span";
|
|
417
416
|
return /* @__PURE__ */ u("li", {
|
|
418
|
-
className:
|
|
417
|
+
className: P.item,
|
|
419
418
|
children: /* @__PURE__ */ u(a, {
|
|
420
419
|
href: e,
|
|
421
|
-
className: (0, x.default)(
|
|
420
|
+
className: (0, x.default)(P.link, t && P.current, r),
|
|
422
421
|
"aria-current": t ? "page" : void 0,
|
|
423
422
|
...i,
|
|
424
423
|
children: n
|
|
425
424
|
})
|
|
426
425
|
});
|
|
427
|
-
},
|
|
426
|
+
}, ne = ({ children: n, separator: i = "/", className: a, ...o }) => {
|
|
428
427
|
let s = e.toArray(n);
|
|
429
428
|
return /* @__PURE__ */ u("nav", {
|
|
430
429
|
"aria-label": "Breadcrumbs",
|
|
431
|
-
className: (0, x.default)(
|
|
430
|
+
className: (0, x.default)(P.root, a),
|
|
432
431
|
...o,
|
|
433
432
|
children: /* @__PURE__ */ u("ol", {
|
|
434
|
-
className:
|
|
433
|
+
className: P.list,
|
|
435
434
|
children: s.map((e, n) => /* @__PURE__ */ d(t, { children: [e, n < s.length - 1 && /* @__PURE__ */ u("li", {
|
|
436
|
-
className:
|
|
435
|
+
className: P.separator,
|
|
437
436
|
"aria-hidden": "true",
|
|
438
437
|
children: i
|
|
439
438
|
})] }, r(e) ? e.key : n))
|
|
440
439
|
})
|
|
441
440
|
});
|
|
442
|
-
},
|
|
441
|
+
}, I = {
|
|
443
442
|
root: "_root_1vhu8_1",
|
|
444
443
|
xs: "_xs_1vhu8_31",
|
|
445
444
|
sm: "_sm_1vhu8_39",
|
|
@@ -457,14 +456,14 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
457
456
|
loading: "_loading_1vhu8_249",
|
|
458
457
|
spinner: "_spinner_1vhu8_253",
|
|
459
458
|
spin: "_spin_1vhu8_253"
|
|
460
|
-
},
|
|
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", {
|
|
461
460
|
type: e,
|
|
462
|
-
className: (0, x.default)(
|
|
461
|
+
className: (0, x.default)(I.root, I[t], I[n], I[r], i && I.fullWidth, a && I.loading, o),
|
|
463
462
|
disabled: c || a,
|
|
464
463
|
"aria-busy": a || void 0,
|
|
465
464
|
...l,
|
|
466
465
|
children: [a && /* @__PURE__ */ u("svg", {
|
|
467
|
-
className:
|
|
466
|
+
className: I.spinner,
|
|
468
467
|
viewBox: "0 0 16 16",
|
|
469
468
|
fill: "none",
|
|
470
469
|
"aria-hidden": "true",
|
|
@@ -478,12 +477,12 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
478
477
|
strokeDashoffset: "10"
|
|
479
478
|
})
|
|
480
479
|
}), s]
|
|
481
|
-
}),
|
|
482
|
-
root:
|
|
483
|
-
bordered:
|
|
484
|
-
shadowNone:
|
|
485
|
-
shadowSm:
|
|
486
|
-
shadowMd:
|
|
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 = {
|
|
481
|
+
root: re,
|
|
482
|
+
bordered: ie,
|
|
483
|
+
shadowNone: ae,
|
|
484
|
+
shadowSm: oe,
|
|
485
|
+
shadowMd: se,
|
|
487
486
|
"borderColor-main": "_borderColor-main_1k781_25",
|
|
488
487
|
"borderColor-subtle": "_borderColor-subtle_1k781_28",
|
|
489
488
|
"borderColor-danger": "_borderColor-danger_1k781_31",
|
|
@@ -496,54 +495,54 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
496
495
|
"backgroundColor-success-subtle": "_backgroundColor-success-subtle_1k781_54",
|
|
497
496
|
"backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_1k781_57",
|
|
498
497
|
"backgroundColor-info-subtle": "_backgroundColor-info-subtle_1k781_60",
|
|
499
|
-
pNone:
|
|
500
|
-
pSm:
|
|
501
|
-
pMd:
|
|
502
|
-
pLg:
|
|
503
|
-
header:
|
|
504
|
-
title:
|
|
505
|
-
subtitle:
|
|
506
|
-
content:
|
|
507
|
-
footer:
|
|
508
|
-
},
|
|
498
|
+
pNone: ce,
|
|
499
|
+
pSm: le,
|
|
500
|
+
pMd: ue,
|
|
501
|
+
pLg: de,
|
|
502
|
+
header: fe,
|
|
503
|
+
title: pe,
|
|
504
|
+
subtitle: me,
|
|
505
|
+
content: he,
|
|
506
|
+
footer: ge
|
|
507
|
+
}, _e = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
|
|
509
508
|
let c = {
|
|
510
|
-
none:
|
|
511
|
-
sm:
|
|
512
|
-
md:
|
|
513
|
-
lg:
|
|
509
|
+
none: R.pNone,
|
|
510
|
+
sm: R.pSm,
|
|
511
|
+
md: R.pMd,
|
|
512
|
+
lg: R.pLg
|
|
514
513
|
}[e], l = {
|
|
515
|
-
none:
|
|
516
|
-
sm:
|
|
517
|
-
md:
|
|
514
|
+
none: R.shadowNone,
|
|
515
|
+
sm: R.shadowSm,
|
|
516
|
+
md: R.shadowMd
|
|
518
517
|
}[t];
|
|
519
518
|
return /* @__PURE__ */ u("div", {
|
|
520
|
-
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),
|
|
521
520
|
...s,
|
|
522
521
|
children: o
|
|
523
522
|
});
|
|
524
|
-
},
|
|
525
|
-
className: (0, x.default)(
|
|
523
|
+
}, ve = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ d("div", {
|
|
524
|
+
className: (0, x.default)(R.header, n),
|
|
526
525
|
...i,
|
|
527
526
|
children: [
|
|
528
527
|
e && /* @__PURE__ */ u("h3", {
|
|
529
|
-
className:
|
|
528
|
+
className: R.title,
|
|
530
529
|
children: e
|
|
531
530
|
}),
|
|
532
531
|
t && /* @__PURE__ */ u("p", {
|
|
533
|
-
className:
|
|
532
|
+
className: R.subtitle,
|
|
534
533
|
children: t
|
|
535
534
|
}),
|
|
536
535
|
r
|
|
537
536
|
]
|
|
538
|
-
}),
|
|
539
|
-
className: (0, x.default)(
|
|
537
|
+
}), ye = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
538
|
+
className: (0, x.default)(R.content, e),
|
|
540
539
|
...n,
|
|
541
540
|
children: t
|
|
542
|
-
}),
|
|
543
|
-
className: (0, x.default)(
|
|
541
|
+
}), be = ({ className: e, children: t, ...n }) => /* @__PURE__ */ u("div", {
|
|
542
|
+
className: (0, x.default)(R.footer, e),
|
|
544
543
|
...n,
|
|
545
544
|
children: t
|
|
546
|
-
}),
|
|
545
|
+
}), z = {
|
|
547
546
|
wrapper: "_wrapper_2le1f_1",
|
|
548
547
|
container: "_container_2le1f_8",
|
|
549
548
|
disabled: "_disabled_2le1f_16",
|
|
@@ -554,25 +553,25 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
554
553
|
error: "_error_2le1f_76",
|
|
555
554
|
helperText: "_helperText_2le1f_80",
|
|
556
555
|
errorText: "_errorText_2le1f_87"
|
|
557
|
-
},
|
|
556
|
+
}, xe = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: a, ...o }) => {
|
|
558
557
|
let s = S("checkbox", a), c = n ? `${s}-help` : void 0;
|
|
559
558
|
return /* @__PURE__ */ d("div", {
|
|
560
|
-
className: (0, x.default)(
|
|
559
|
+
className: (0, x.default)(z.wrapper, r),
|
|
561
560
|
children: [/* @__PURE__ */ d("label", {
|
|
562
561
|
htmlFor: s,
|
|
563
|
-
className: (0, x.default)(
|
|
562
|
+
className: (0, x.default)(z.container, i && z.disabled, t && z.error),
|
|
564
563
|
children: [
|
|
565
564
|
/* @__PURE__ */ u("input", {
|
|
566
565
|
type: "checkbox",
|
|
567
566
|
id: s,
|
|
568
567
|
disabled: i,
|
|
569
|
-
className:
|
|
568
|
+
className: z.input,
|
|
570
569
|
"aria-describedby": c,
|
|
571
570
|
"aria-invalid": t || void 0,
|
|
572
571
|
...o
|
|
573
572
|
}),
|
|
574
573
|
/* @__PURE__ */ u("span", {
|
|
575
|
-
className:
|
|
574
|
+
className: z.control,
|
|
576
575
|
children: /* @__PURE__ */ u("svg", {
|
|
577
576
|
viewBox: "0 0 24 24",
|
|
578
577
|
fill: "none",
|
|
@@ -580,22 +579,22 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
580
579
|
strokeWidth: "4",
|
|
581
580
|
strokeLinecap: "round",
|
|
582
581
|
strokeLinejoin: "round",
|
|
583
|
-
className:
|
|
582
|
+
className: z.checkmark,
|
|
584
583
|
children: /* @__PURE__ */ u("polyline", { points: "20 6 9 17 4 12" })
|
|
585
584
|
})
|
|
586
585
|
}),
|
|
587
586
|
e && /* @__PURE__ */ u("span", {
|
|
588
|
-
className:
|
|
587
|
+
className: z.label,
|
|
589
588
|
children: e
|
|
590
589
|
})
|
|
591
590
|
]
|
|
592
591
|
}), n && /* @__PURE__ */ u("span", {
|
|
593
592
|
id: c,
|
|
594
|
-
className: (0, x.default)(
|
|
593
|
+
className: (0, x.default)(z.helperText, t && z.errorText),
|
|
595
594
|
children: n
|
|
596
595
|
})]
|
|
597
596
|
});
|
|
598
|
-
},
|
|
597
|
+
}, B = {
|
|
599
598
|
wrapper: "_wrapper_16f4v_1",
|
|
600
599
|
fullWidth: "_fullWidth_16f4v_9",
|
|
601
600
|
label: "_label_16f4v_13",
|
|
@@ -617,103 +616,104 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
617
616
|
optionDescription: "_optionDescription_16f4v_144",
|
|
618
617
|
helperText: "_helperText_16f4v_149",
|
|
619
618
|
errorText: "_errorText_16f4v_154"
|
|
620
|
-
},
|
|
621
|
-
let v = S("dropdown", g), y = l ? `${v}-help` : void 0, [
|
|
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 = () => {
|
|
622
621
|
if (!p) {
|
|
623
|
-
let t = !
|
|
624
|
-
if (
|
|
625
|
-
if (
|
|
626
|
-
let t = e.findIndex((e) => e.value ===
|
|
627
|
-
|
|
622
|
+
let t = !C;
|
|
623
|
+
if (w(t), t) {
|
|
624
|
+
if (D === -1) {
|
|
625
|
+
let t = e.findIndex((e) => e.value === A);
|
|
626
|
+
O(t >= 0 ? t : 0);
|
|
628
627
|
}
|
|
629
|
-
} else
|
|
628
|
+
} else O(-1);
|
|
630
629
|
}
|
|
631
|
-
},
|
|
632
|
-
e.disabled || (t === void 0 &&
|
|
633
|
-
},
|
|
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) => {
|
|
634
633
|
let r = t + n;
|
|
635
634
|
for (; r >= 0 && r < e.length;) {
|
|
636
635
|
if (!e[r].disabled) return r;
|
|
637
636
|
r += n;
|
|
638
637
|
}
|
|
639
638
|
return t;
|
|
640
|
-
},
|
|
639
|
+
}, F = () => {
|
|
641
640
|
let t = e.findIndex((e) => !e.disabled);
|
|
642
641
|
return t >= 0 ? t : 0;
|
|
643
|
-
},
|
|
642
|
+
}, ne = () => {
|
|
644
643
|
let t = e.length - 1;
|
|
645
644
|
for (; t >= 0 && e[t].disabled;) --t;
|
|
646
645
|
return t >= 0 ? t : e.length - 1;
|
|
647
646
|
};
|
|
648
647
|
return i(() => {
|
|
649
|
-
|
|
648
|
+
C && D >= 0 && document.getElementById(`${v}-opt-${D}`)?.scrollIntoView({ block: "nearest" });
|
|
650
649
|
}, [
|
|
651
|
-
|
|
652
|
-
|
|
650
|
+
D,
|
|
651
|
+
C,
|
|
653
652
|
v
|
|
654
653
|
]), i(() => {
|
|
655
654
|
let e = (e) => {
|
|
656
|
-
|
|
655
|
+
ee.current && !ee.current.contains(e.target) && (w(!1), O(-1));
|
|
657
656
|
};
|
|
658
657
|
return document.addEventListener("mousedown", e), () => {
|
|
659
658
|
document.removeEventListener("mousedown", e);
|
|
660
659
|
};
|
|
661
660
|
}, []), /* @__PURE__ */ d("div", {
|
|
662
|
-
className: (0, x.default)(
|
|
663
|
-
ref:
|
|
661
|
+
className: (0, x.default)(B.wrapper, B[m], _ && B.fullWidth, f && B.error, h),
|
|
662
|
+
ref: ee,
|
|
664
663
|
children: [
|
|
665
664
|
o && /* @__PURE__ */ u("label", {
|
|
665
|
+
id: y,
|
|
666
666
|
htmlFor: v,
|
|
667
|
-
className:
|
|
667
|
+
className: B.label,
|
|
668
668
|
children: o
|
|
669
669
|
}),
|
|
670
670
|
/* @__PURE__ */ d("div", {
|
|
671
|
-
className:
|
|
671
|
+
className: B.container,
|
|
672
672
|
children: [/* @__PURE__ */ d("button", {
|
|
673
673
|
id: v,
|
|
674
|
-
ref:
|
|
674
|
+
ref: k,
|
|
675
675
|
type: "button",
|
|
676
|
-
className: (0, x.default)(
|
|
677
|
-
onClick:
|
|
676
|
+
className: (0, x.default)(B.trigger, C && B.isOpen),
|
|
677
|
+
onClick: M,
|
|
678
678
|
onKeyDown: (t) => {
|
|
679
679
|
if (!p) switch (t.key) {
|
|
680
680
|
case "ArrowDown":
|
|
681
|
-
t.preventDefault(),
|
|
681
|
+
t.preventDefault(), C ? O((e) => P(e, 1)) : (w(!0), O(e.findIndex((e) => e.value === A) || 0));
|
|
682
682
|
break;
|
|
683
683
|
case "ArrowUp":
|
|
684
|
-
t.preventDefault(),
|
|
684
|
+
t.preventDefault(), C ? O((e) => P(e, -1)) : (w(!0), O(e.findIndex((e) => e.value === A) || e.length - 1));
|
|
685
685
|
break;
|
|
686
686
|
case "Enter":
|
|
687
687
|
case " ":
|
|
688
|
-
t.preventDefault(),
|
|
688
|
+
t.preventDefault(), C ? D >= 0 && N(e[D], D) : (w(!0), O(e.findIndex((e) => e.value === A) || 0));
|
|
689
689
|
break;
|
|
690
690
|
case "Escape":
|
|
691
|
-
|
|
691
|
+
C && (t.preventDefault(), w(!1), O(-1), k.current?.focus());
|
|
692
692
|
break;
|
|
693
693
|
case "Tab":
|
|
694
|
-
|
|
694
|
+
C && (w(!1), O(-1));
|
|
695
695
|
break;
|
|
696
696
|
case "Home":
|
|
697
|
-
|
|
697
|
+
C && (t.preventDefault(), O(F()));
|
|
698
698
|
break;
|
|
699
699
|
case "End":
|
|
700
|
-
|
|
700
|
+
C && (t.preventDefault(), O(ne()));
|
|
701
701
|
break;
|
|
702
702
|
default: break;
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
disabled: p,
|
|
706
706
|
"aria-haspopup": "listbox",
|
|
707
|
-
"aria-expanded":
|
|
708
|
-
"aria-describedby":
|
|
707
|
+
"aria-expanded": C,
|
|
708
|
+
"aria-describedby": b,
|
|
709
709
|
"aria-invalid": f || void 0,
|
|
710
|
-
"aria-controls":
|
|
711
|
-
"aria-activedescendant":
|
|
710
|
+
"aria-controls": C ? `${v}-menu` : void 0,
|
|
711
|
+
"aria-activedescendant": C ? j : void 0,
|
|
712
712
|
children: [/* @__PURE__ */ u("span", {
|
|
713
|
-
className:
|
|
713
|
+
className: B.selectedLabel,
|
|
714
714
|
children: te ? te.label : a
|
|
715
715
|
}), /* @__PURE__ */ u("span", {
|
|
716
|
-
className:
|
|
716
|
+
className: B.icon,
|
|
717
717
|
"aria-hidden": "true",
|
|
718
718
|
children: /* @__PURE__ */ u("svg", {
|
|
719
719
|
width: "12",
|
|
@@ -730,31 +730,31 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
730
730
|
})
|
|
731
731
|
})
|
|
732
732
|
})]
|
|
733
|
-
}),
|
|
733
|
+
}), C && /* @__PURE__ */ u("ul", {
|
|
734
734
|
id: `${v}-menu`,
|
|
735
|
-
className:
|
|
735
|
+
className: B.menu,
|
|
736
736
|
role: "listbox",
|
|
737
|
-
"aria-labelledby":
|
|
737
|
+
"aria-labelledby": y ?? v,
|
|
738
738
|
children: e.map((e, t) => {
|
|
739
|
-
let n = e.value ===
|
|
739
|
+
let n = e.value === A, r = t === D;
|
|
740
740
|
return /* @__PURE__ */ d("li", {
|
|
741
741
|
id: `${v}-opt-${t}`,
|
|
742
742
|
role: "option",
|
|
743
743
|
"aria-selected": n,
|
|
744
|
-
className: (0, x.default)(
|
|
745
|
-
onClick: () =>
|
|
746
|
-
onMouseEnter: () => !e.disabled &&
|
|
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
747
|
children: [e.icon && /* @__PURE__ */ u("span", {
|
|
748
|
-
className:
|
|
748
|
+
className: B.optionIcon,
|
|
749
749
|
"aria-hidden": "true",
|
|
750
750
|
children: e.icon
|
|
751
751
|
}), /* @__PURE__ */ d("span", {
|
|
752
|
-
className:
|
|
752
|
+
className: B.optionContent,
|
|
753
753
|
children: [/* @__PURE__ */ u("span", {
|
|
754
|
-
className:
|
|
754
|
+
className: B.optionLabel,
|
|
755
755
|
children: e.label
|
|
756
756
|
}), e.description && /* @__PURE__ */ u("span", {
|
|
757
|
-
className:
|
|
757
|
+
className: B.optionDescription,
|
|
758
758
|
children: e.description
|
|
759
759
|
})]
|
|
760
760
|
})]
|
|
@@ -763,36 +763,36 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
763
763
|
})]
|
|
764
764
|
}),
|
|
765
765
|
l && /* @__PURE__ */ u("span", {
|
|
766
|
-
id:
|
|
767
|
-
className: (0, x.default)(
|
|
766
|
+
id: b,
|
|
767
|
+
className: (0, x.default)(B.helperText, f && B.errorText),
|
|
768
768
|
children: l
|
|
769
769
|
})
|
|
770
770
|
]
|
|
771
771
|
});
|
|
772
|
-
},
|
|
772
|
+
}, Ce = {
|
|
773
773
|
root: "_root_1one2_1",
|
|
774
774
|
horizontal: "_horizontal_1one2_13",
|
|
775
775
|
vertical: "_vertical_1one2_21"
|
|
776
|
-
},
|
|
776
|
+
}, we = (e) => typeof e == "number" ? `${e}px` : e, Te = ({ orientation: e = "horizontal", thickness: t, length: n, spacing: r, inset: i, className: a, style: o, ...s }) => {
|
|
777
777
|
let c = {
|
|
778
778
|
...o,
|
|
779
|
-
"--divider-thickness":
|
|
780
|
-
"--divider-length":
|
|
781
|
-
"--divider-spacing":
|
|
782
|
-
"--divider-inset":
|
|
779
|
+
"--divider-thickness": we(t),
|
|
780
|
+
"--divider-length": we(n),
|
|
781
|
+
"--divider-spacing": we(r),
|
|
782
|
+
"--divider-inset": we(i)
|
|
783
783
|
};
|
|
784
784
|
return e === "vertical" ? /* @__PURE__ */ u("div", {
|
|
785
785
|
role: "separator",
|
|
786
786
|
"aria-orientation": "vertical",
|
|
787
|
-
className: (0, x.default)(
|
|
787
|
+
className: (0, x.default)(Ce.root, Ce.vertical, a),
|
|
788
788
|
style: c,
|
|
789
789
|
...s
|
|
790
790
|
}) : /* @__PURE__ */ u("hr", {
|
|
791
|
-
className: (0, x.default)(
|
|
791
|
+
className: (0, x.default)(Ce.root, Ce.horizontal, a),
|
|
792
792
|
style: c,
|
|
793
793
|
...s
|
|
794
794
|
});
|
|
795
|
-
},
|
|
795
|
+
}, V = {
|
|
796
796
|
root: "_root_1ujj3_1",
|
|
797
797
|
container: "_container_1ujj3_8",
|
|
798
798
|
sideContainer: "_sideContainer_1ujj3_18",
|
|
@@ -801,46 +801,46 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
801
801
|
actions: "_actions_1ujj3_32",
|
|
802
802
|
title: "_title_1ujj3_44",
|
|
803
803
|
welcome: "_welcome_1ujj3_52"
|
|
804
|
-
},
|
|
804
|
+
}, Ee = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
|
|
805
805
|
let l = {
|
|
806
806
|
size: "sm",
|
|
807
807
|
intent: "info"
|
|
808
808
|
};
|
|
809
809
|
return /* @__PURE__ */ u("header", {
|
|
810
810
|
id: e,
|
|
811
|
-
className: (0, x.default)(
|
|
811
|
+
className: (0, x.default)(V.root, s),
|
|
812
812
|
children: /* @__PURE__ */ d("div", {
|
|
813
|
-
className:
|
|
813
|
+
className: V.container,
|
|
814
814
|
style: { maxWidth: c },
|
|
815
815
|
children: [/* @__PURE__ */ d("div", {
|
|
816
|
-
className: (0, x.default)(
|
|
816
|
+
className: (0, x.default)(V.sideContainer, V.leftSide),
|
|
817
817
|
children: [t, n ? /* @__PURE__ */ u("h1", {
|
|
818
|
-
className:
|
|
818
|
+
className: V.title,
|
|
819
819
|
children: n
|
|
820
820
|
}) : null]
|
|
821
821
|
}), /* @__PURE__ */ u("div", {
|
|
822
|
-
className: (0, x.default)(
|
|
822
|
+
className: (0, x.default)(V.sideContainer, V.rightSide),
|
|
823
823
|
children: r ? /* @__PURE__ */ d("div", {
|
|
824
|
-
className:
|
|
824
|
+
className: V.actions,
|
|
825
825
|
children: [/* @__PURE__ */ d("span", {
|
|
826
|
-
className:
|
|
826
|
+
className: V.welcome,
|
|
827
827
|
children: [
|
|
828
828
|
"Welcome, ",
|
|
829
829
|
/* @__PURE__ */ u("strong", { children: r.name }),
|
|
830
830
|
"!"
|
|
831
831
|
]
|
|
832
|
-
}), /* @__PURE__ */ u(
|
|
832
|
+
}), /* @__PURE__ */ u(L, {
|
|
833
833
|
...l,
|
|
834
834
|
onClick: a,
|
|
835
835
|
children: "Log out"
|
|
836
836
|
})]
|
|
837
837
|
}) : /* @__PURE__ */ d("div", {
|
|
838
|
-
className:
|
|
839
|
-
children: [i ? /* @__PURE__ */ u(
|
|
838
|
+
className: V.actions,
|
|
839
|
+
children: [i ? /* @__PURE__ */ u(L, {
|
|
840
840
|
...l,
|
|
841
841
|
onClick: i,
|
|
842
842
|
children: "Log in"
|
|
843
|
-
}) : null, o ? /* @__PURE__ */ u(
|
|
843
|
+
}) : null, o ? /* @__PURE__ */ u(L, {
|
|
844
844
|
size: "sm",
|
|
845
845
|
intent: "info",
|
|
846
846
|
variant: "solid",
|
|
@@ -851,7 +851,7 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
851
851
|
})]
|
|
852
852
|
})
|
|
853
853
|
});
|
|
854
|
-
},
|
|
854
|
+
}, H = {
|
|
855
855
|
root: "_root_1eu6u_1",
|
|
856
856
|
container: "_container_1eu6u_7",
|
|
857
857
|
leftSection: "_leftSection_1eu6u_16",
|
|
@@ -862,27 +862,27 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
862
862
|
disabled: "_disabled_1eu6u_59",
|
|
863
863
|
active: "_active_1eu6u_63",
|
|
864
864
|
rightSection: "_rightSection_1eu6u_73"
|
|
865
|
-
},
|
|
865
|
+
}, De = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */ u("nav", {
|
|
866
866
|
id: e,
|
|
867
|
-
className: (0, x.default)(
|
|
867
|
+
className: (0, x.default)(H.root, o),
|
|
868
868
|
children: /* @__PURE__ */ d("div", {
|
|
869
|
-
className:
|
|
869
|
+
className: H.container,
|
|
870
870
|
style: { maxWidth: s },
|
|
871
871
|
children: [
|
|
872
872
|
r && /* @__PURE__ */ u("div", {
|
|
873
|
-
className:
|
|
873
|
+
className: H.leftSection,
|
|
874
874
|
children: r
|
|
875
875
|
}),
|
|
876
876
|
/* @__PURE__ */ u("div", {
|
|
877
|
-
className:
|
|
877
|
+
className: H.nav,
|
|
878
878
|
children: /* @__PURE__ */ u("ul", {
|
|
879
|
-
className:
|
|
879
|
+
className: H.navList,
|
|
880
880
|
children: t.map((e) => /* @__PURE__ */ u("li", {
|
|
881
|
-
className:
|
|
881
|
+
className: H.navItem,
|
|
882
882
|
children: /* @__PURE__ */ u("button", {
|
|
883
883
|
type: "button",
|
|
884
|
-
className: (0, x.default)(
|
|
885
|
-
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),
|
|
886
886
|
disabled: e.disabled,
|
|
887
887
|
"aria-current": n === e.id ? "page" : void 0,
|
|
888
888
|
children: e.label
|
|
@@ -891,12 +891,12 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
891
891
|
})
|
|
892
892
|
}),
|
|
893
893
|
i && /* @__PURE__ */ u("div", {
|
|
894
|
-
className:
|
|
894
|
+
className: H.rightSection,
|
|
895
895
|
children: i
|
|
896
896
|
})
|
|
897
897
|
]
|
|
898
898
|
})
|
|
899
|
-
}),
|
|
899
|
+
}), Oe = {
|
|
900
900
|
wrapper: "_wrapper_15ibj_1",
|
|
901
901
|
fullWidth: "_fullWidth_15ibj_8",
|
|
902
902
|
label: "_label_15ibj_13",
|
|
@@ -907,31 +907,31 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
907
907
|
error: "_error_15ibj_79",
|
|
908
908
|
helperText: "_helperText_15ibj_88",
|
|
909
909
|
errorText: "_errorText_15ibj_94"
|
|
910
|
-
},
|
|
910
|
+
}, ke = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: a, id: o, ...s }) => {
|
|
911
911
|
let c = S("input", o), l = r ? `${c}-help` : void 0;
|
|
912
912
|
return /* @__PURE__ */ d("div", {
|
|
913
|
-
className: (0, x.default)(
|
|
913
|
+
className: (0, x.default)(Oe.wrapper, i && Oe.fullWidth, a),
|
|
914
914
|
children: [
|
|
915
915
|
n && /* @__PURE__ */ u("label", {
|
|
916
916
|
htmlFor: c,
|
|
917
|
-
className:
|
|
917
|
+
className: Oe.label,
|
|
918
918
|
children: n
|
|
919
919
|
}),
|
|
920
920
|
/* @__PURE__ */ u("input", {
|
|
921
921
|
id: c,
|
|
922
|
-
className: (0, x.default)(
|
|
922
|
+
className: (0, x.default)(Oe.inputRoot, Oe[e], t && Oe.error),
|
|
923
923
|
"aria-describedby": l,
|
|
924
924
|
"aria-invalid": t || void 0,
|
|
925
925
|
...s
|
|
926
926
|
}),
|
|
927
927
|
r && /* @__PURE__ */ u("span", {
|
|
928
928
|
id: l,
|
|
929
|
-
className: (0, x.default)(
|
|
929
|
+
className: (0, x.default)(Oe.helperText, t && Oe.errorText),
|
|
930
930
|
children: r
|
|
931
931
|
})
|
|
932
932
|
]
|
|
933
933
|
});
|
|
934
|
-
},
|
|
934
|
+
}, Ae = {
|
|
935
935
|
loader: "_loader_wvz8q_1",
|
|
936
936
|
spin: "_spin_wvz8q_1",
|
|
937
937
|
neutral: "_neutral_wvz8q_10",
|
|
@@ -942,16 +942,16 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
942
942
|
sm: "_sm_wvz8q_27",
|
|
943
943
|
md: "_md_wvz8q_33",
|
|
944
944
|
lg: "_lg_wvz8q_39"
|
|
945
|
-
},
|
|
945
|
+
}, je = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ u("div", {
|
|
946
946
|
id: e,
|
|
947
|
-
className: (0, x.default)(
|
|
947
|
+
className: (0, x.default)(Ae.loader, Ae[t], Ae[n], r),
|
|
948
948
|
role: "status",
|
|
949
949
|
"aria-label": "Loading"
|
|
950
|
-
}),
|
|
951
|
-
root:
|
|
952
|
-
unordered:
|
|
953
|
-
ordered:
|
|
954
|
-
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,
|
|
955
955
|
"gap-0": "_gap-0_16t5p_21",
|
|
956
956
|
"gap-1": "_gap-1_16t5p_24",
|
|
957
957
|
"gap-2": "_gap-2_16t5p_27",
|
|
@@ -963,36 +963,36 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
963
963
|
"gap-10": "_gap-10_16t5p_45",
|
|
964
964
|
"gap-12": "_gap-12_16t5p_48",
|
|
965
965
|
"gap-14": "_gap-14_16t5p_51",
|
|
966
|
-
flex:
|
|
967
|
-
},
|
|
966
|
+
flex: Ie
|
|
967
|
+
}, Le = {
|
|
968
968
|
item: "_item_1x04p_1",
|
|
969
969
|
iconWrapper: "_iconWrapper_1x04p_6"
|
|
970
|
-
},
|
|
971
|
-
className: (0, x.default)(
|
|
970
|
+
}, Re = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ d("li", {
|
|
971
|
+
className: (0, x.default)(Le.item, n),
|
|
972
972
|
...r,
|
|
973
973
|
children: [t && /* @__PURE__ */ u("span", {
|
|
974
|
-
className:
|
|
974
|
+
className: Le.iconWrapper,
|
|
975
975
|
children: t
|
|
976
976
|
}), /* @__PURE__ */ u("div", {
|
|
977
|
-
className:
|
|
977
|
+
className: Le.content,
|
|
978
978
|
children: e
|
|
979
979
|
})]
|
|
980
|
-
}),
|
|
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 }) => {
|
|
981
981
|
let S = t === "ordered" ? "ol" : "ul", C = {
|
|
982
982
|
...y,
|
|
983
|
-
...
|
|
984
|
-
...
|
|
983
|
+
...M("padding", f, p, m, h, g, _, v),
|
|
984
|
+
...M("margin", i, a, o, s, c, l, d),
|
|
985
985
|
"--list-spacing": typeof n == "number" ? `${n * .25}rem` : n
|
|
986
986
|
};
|
|
987
987
|
return /* @__PURE__ */ u(S, {
|
|
988
|
-
className: (0, x.default)(
|
|
988
|
+
className: (0, x.default)(U.root, U[t], typeof n == "number" && U[`gap-${n}`], (t === "none" || typeof n == "number" && n > 0 || typeof n == "string") && U.flex, typeof f == "number" && U[`p-${f}`], typeof p == "number" && U[`px-${p}`], typeof m == "number" && U[`py-${m}`], typeof h == "number" && U[`pt-${h}`], typeof g == "number" && U[`pb-${g}`], typeof _ == "number" && U[`pl-${_}`], typeof v == "number" && U[`pr-${v}`], typeof i == "number" && U[`margin-${i}`], typeof a == "number" && U[`marginX-${a}`], typeof o == "number" && U[`marginY-${o}`], typeof s == "number" && U[`marginTop-${s}`], typeof c == "number" && U[`marginBottom-${c}`], typeof l == "number" && U[`marginLeft-${l}`], typeof d == "number" && U[`marginRight-${d}`], r),
|
|
989
989
|
style: C,
|
|
990
990
|
...b,
|
|
991
991
|
children: e
|
|
992
992
|
});
|
|
993
993
|
};
|
|
994
|
-
|
|
995
|
-
var
|
|
994
|
+
ze.Item = Re;
|
|
995
|
+
var W = {
|
|
996
996
|
overlay: "_overlay_ay3tu_1",
|
|
997
997
|
modal: "_modal_ay3tu_15",
|
|
998
998
|
header: "_header_ay3tu_27",
|
|
@@ -1006,7 +1006,7 @@ var U = {
|
|
|
1006
1006
|
xl: "_xl_ay3tu_81",
|
|
1007
1007
|
full: "_full_ay3tu_84",
|
|
1008
1008
|
loading: "_loading_ay3tu_89"
|
|
1009
|
-
},
|
|
1009
|
+
}, Be = ({ isOpen: e, onClose: t, title: n, children: r, footer: a, size: o = "md", isLoading: c = !1, className: l, id: p }) => {
|
|
1010
1010
|
let m = s(null), h = s(null), g = s(t), _ = S("modal", p), v = `${_}-title`;
|
|
1011
1011
|
return i(() => {
|
|
1012
1012
|
g.current = t;
|
|
@@ -1018,6 +1018,7 @@ var U = {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
if (e.key === "Tab" && m.current) {
|
|
1020
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;
|
|
1021
1022
|
e.shiftKey ? document.activeElement === n && (r.focus(), e.preventDefault()) : document.activeElement === r && (n.focus(), e.preventDefault());
|
|
1022
1023
|
}
|
|
1023
1024
|
};
|
|
@@ -1028,11 +1029,11 @@ var U = {
|
|
|
1028
1029
|
document.body.style.overflow = "unset", window.removeEventListener("keydown", t), h.current?.focus();
|
|
1029
1030
|
};
|
|
1030
1031
|
}, [e, c]), e ? f(/* @__PURE__ */ u("div", {
|
|
1031
|
-
className:
|
|
1032
|
+
className: W.overlay,
|
|
1032
1033
|
onClick: () => !c && t(),
|
|
1033
1034
|
children: /* @__PURE__ */ d("div", {
|
|
1034
1035
|
id: _,
|
|
1035
|
-
className: (0, x.default)(
|
|
1036
|
+
className: (0, x.default)(W.modal, W[o], c && W.loading, l),
|
|
1036
1037
|
onClick: (e) => e.stopPropagation(),
|
|
1037
1038
|
role: "dialog",
|
|
1038
1039
|
"aria-modal": "true",
|
|
@@ -1040,16 +1041,16 @@ var U = {
|
|
|
1040
1041
|
ref: m,
|
|
1041
1042
|
children: [
|
|
1042
1043
|
/* @__PURE__ */ d("div", {
|
|
1043
|
-
className:
|
|
1044
|
+
className: W.header,
|
|
1044
1045
|
children: [n && /* @__PURE__ */ u("h2", {
|
|
1045
1046
|
id: v,
|
|
1046
|
-
className:
|
|
1047
|
+
className: W.title,
|
|
1047
1048
|
children: n
|
|
1048
|
-
}), /* @__PURE__ */ u(
|
|
1049
|
+
}), /* @__PURE__ */ u(L, {
|
|
1049
1050
|
variant: "subtle",
|
|
1050
1051
|
size: "sm",
|
|
1051
1052
|
onClick: t,
|
|
1052
|
-
className:
|
|
1053
|
+
className: W.closeButton,
|
|
1053
1054
|
"aria-label": "Close modal",
|
|
1054
1055
|
disabled: c,
|
|
1055
1056
|
children: /* @__PURE__ */ u("svg", {
|
|
@@ -1068,17 +1069,17 @@ var U = {
|
|
|
1068
1069
|
})]
|
|
1069
1070
|
}),
|
|
1070
1071
|
/* @__PURE__ */ u("div", {
|
|
1071
|
-
className:
|
|
1072
|
+
className: W.content,
|
|
1072
1073
|
children: r
|
|
1073
1074
|
}),
|
|
1074
1075
|
a && /* @__PURE__ */ u("div", {
|
|
1075
|
-
className:
|
|
1076
|
+
className: W.footer,
|
|
1076
1077
|
children: a
|
|
1077
1078
|
})
|
|
1078
1079
|
]
|
|
1079
1080
|
})
|
|
1080
1081
|
}), document.body) : null;
|
|
1081
|
-
},
|
|
1082
|
+
}, Ve = {
|
|
1082
1083
|
root: "_root_1bwyw_1",
|
|
1083
1084
|
content: "_content_1bwyw_13",
|
|
1084
1085
|
title: "_title_1bwyw_17",
|
|
@@ -1089,24 +1090,24 @@ var U = {
|
|
|
1089
1090
|
success: "_success_1bwyw_56",
|
|
1090
1091
|
warning: "_warning_1bwyw_62",
|
|
1091
1092
|
danger: "_danger_1bwyw_68"
|
|
1092
|
-
},
|
|
1093
|
-
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),
|
|
1094
1095
|
role: "alert",
|
|
1095
1096
|
...a,
|
|
1096
1097
|
children: [/* @__PURE__ */ d("div", {
|
|
1097
|
-
className:
|
|
1098
|
+
className: Ve.content,
|
|
1098
1099
|
children: [t && /* @__PURE__ */ u("div", {
|
|
1099
|
-
className:
|
|
1100
|
+
className: Ve.title,
|
|
1100
1101
|
children: t
|
|
1101
1102
|
}), /* @__PURE__ */ u("div", {
|
|
1102
|
-
className:
|
|
1103
|
+
className: Ve.message,
|
|
1103
1104
|
children: n
|
|
1104
1105
|
})]
|
|
1105
|
-
}), r && /* @__PURE__ */ u(
|
|
1106
|
+
}), r && /* @__PURE__ */ u(L, {
|
|
1106
1107
|
variant: "subtle",
|
|
1107
1108
|
size: "xs",
|
|
1108
1109
|
onClick: r,
|
|
1109
|
-
className:
|
|
1110
|
+
className: Ve.closeButton,
|
|
1110
1111
|
"aria-label": "Close notification",
|
|
1111
1112
|
children: /* @__PURE__ */ u("svg", {
|
|
1112
1113
|
width: "10",
|
|
@@ -1122,93 +1123,93 @@ var U = {
|
|
|
1122
1123
|
})
|
|
1123
1124
|
})
|
|
1124
1125
|
})]
|
|
1125
|
-
}),
|
|
1126
|
+
}), G = {
|
|
1126
1127
|
root: "_root_o4mj7_1",
|
|
1127
1128
|
list: "_list_o4mj7_6",
|
|
1128
1129
|
item: "_item_o4mj7_15",
|
|
1129
1130
|
ellipsis: "_ellipsis_o4mj7_19",
|
|
1130
1131
|
pageButton: "_pageButton_o4mj7_29"
|
|
1131
|
-
},
|
|
1132
|
+
}, Ue = (e, t, n) => Math.min(Math.max(e, t), n), We = (e, t) => {
|
|
1132
1133
|
let n = [];
|
|
1133
1134
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
1134
1135
|
return n;
|
|
1135
|
-
},
|
|
1136
|
+
}, Ge = (e, t, n, r, i) => {
|
|
1136
1137
|
if (e <= 0) return [];
|
|
1137
|
-
if (!i || e <= n * 2 + 1 + r * 2 + 2) return
|
|
1138
|
-
let a =
|
|
1139
|
-
return l && d.push("ellipsis"), f <= p && d.push(...
|
|
1140
|
-
},
|
|
1141
|
-
let k = S("pagination", e), [
|
|
1142
|
-
A,
|
|
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
1143
|
j,
|
|
1144
|
+
M,
|
|
1144
1145
|
p,
|
|
1145
1146
|
m,
|
|
1146
1147
|
_
|
|
1147
|
-
]),
|
|
1148
|
-
v || e ===
|
|
1148
|
+
]), P = (e) => {
|
|
1149
|
+
v || e === M || (n === void 0 && te(e), i?.(e));
|
|
1150
|
+
}, F = () => {
|
|
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);
|
|
1149
1158
|
}, re = () => {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
let e = A;
|
|
1153
|
-
N(e), s?.(e);
|
|
1154
|
-
}, P = () => {
|
|
1155
|
-
let e = Math.max(1, j - 1);
|
|
1156
|
-
N(e), f?.(e);
|
|
1157
|
-
}, ae = () => {
|
|
1158
|
-
let e = Math.min(A, j + 1);
|
|
1159
|
-
N(e), l?.(e);
|
|
1159
|
+
let e = Math.min(j, M + 1);
|
|
1160
|
+
P(e), l?.(e);
|
|
1160
1161
|
};
|
|
1161
|
-
return
|
|
1162
|
+
return j <= 0 ? null : /* @__PURE__ */ u("nav", {
|
|
1162
1163
|
id: k,
|
|
1163
1164
|
"aria-label": D,
|
|
1164
|
-
className: (0, x.default)(
|
|
1165
|
+
className: (0, x.default)(G.root, ee),
|
|
1165
1166
|
children: /* @__PURE__ */ d("ul", {
|
|
1166
|
-
className:
|
|
1167
|
+
className: G.list,
|
|
1167
1168
|
children: [
|
|
1168
1169
|
h && /* @__PURE__ */ u("li", {
|
|
1169
|
-
className:
|
|
1170
|
-
children: /* @__PURE__ */ u(
|
|
1170
|
+
className: G.item,
|
|
1171
|
+
children: /* @__PURE__ */ u(L, {
|
|
1171
1172
|
size: y,
|
|
1172
1173
|
variant: b,
|
|
1173
1174
|
intent: C,
|
|
1174
|
-
className:
|
|
1175
|
-
onClick:
|
|
1176
|
-
disabled: v ||
|
|
1175
|
+
className: G.pageButton,
|
|
1176
|
+
onClick: F,
|
|
1177
|
+
disabled: v || M === 1,
|
|
1177
1178
|
"aria-label": "Go to first page",
|
|
1178
1179
|
children: E?.first ?? "First"
|
|
1179
1180
|
})
|
|
1180
1181
|
}),
|
|
1181
1182
|
g && /* @__PURE__ */ u("li", {
|
|
1182
|
-
className:
|
|
1183
|
-
children: /* @__PURE__ */ u(
|
|
1183
|
+
className: G.item,
|
|
1184
|
+
children: /* @__PURE__ */ u(L, {
|
|
1184
1185
|
size: y,
|
|
1185
1186
|
variant: b,
|
|
1186
1187
|
intent: C,
|
|
1187
|
-
className:
|
|
1188
|
-
onClick:
|
|
1189
|
-
disabled: v ||
|
|
1188
|
+
className: G.pageButton,
|
|
1189
|
+
onClick: I,
|
|
1190
|
+
disabled: v || M === 1,
|
|
1190
1191
|
"aria-label": "Go to previous page",
|
|
1191
1192
|
children: E?.prev ?? "Prev"
|
|
1192
1193
|
})
|
|
1193
1194
|
}),
|
|
1194
|
-
|
|
1195
|
+
N.map((e, t) => {
|
|
1195
1196
|
if (e === "ellipsis") return /* @__PURE__ */ u("li", {
|
|
1196
|
-
className:
|
|
1197
|
+
className: G.item,
|
|
1197
1198
|
"aria-hidden": "true",
|
|
1198
1199
|
children: /* @__PURE__ */ u("span", {
|
|
1199
|
-
className:
|
|
1200
|
+
className: G.ellipsis,
|
|
1200
1201
|
children: "…"
|
|
1201
1202
|
})
|
|
1202
1203
|
}, `ellipsis-${t}`);
|
|
1203
|
-
let n = e ===
|
|
1204
|
+
let n = e === M, r = O?.(e, n) || `Page ${e}${n ? ", current page" : ""}`;
|
|
1204
1205
|
return /* @__PURE__ */ u("li", {
|
|
1205
|
-
className:
|
|
1206
|
-
children: /* @__PURE__ */ u(
|
|
1206
|
+
className: G.item,
|
|
1207
|
+
children: /* @__PURE__ */ u(L, {
|
|
1207
1208
|
size: y,
|
|
1208
1209
|
variant: n ? w : b,
|
|
1209
1210
|
intent: n ? T ?? C : C,
|
|
1210
|
-
className:
|
|
1211
|
-
onClick: () =>
|
|
1211
|
+
className: G.pageButton,
|
|
1212
|
+
onClick: () => P(e),
|
|
1212
1213
|
disabled: v,
|
|
1213
1214
|
"aria-current": n ? "page" : void 0,
|
|
1214
1215
|
"aria-label": r,
|
|
@@ -1217,27 +1218,27 @@ var U = {
|
|
|
1217
1218
|
}, e);
|
|
1218
1219
|
}),
|
|
1219
1220
|
g && /* @__PURE__ */ u("li", {
|
|
1220
|
-
className:
|
|
1221
|
-
children: /* @__PURE__ */ u(
|
|
1221
|
+
className: G.item,
|
|
1222
|
+
children: /* @__PURE__ */ u(L, {
|
|
1222
1223
|
size: y,
|
|
1223
1224
|
variant: b,
|
|
1224
1225
|
intent: C,
|
|
1225
|
-
className:
|
|
1226
|
-
onClick:
|
|
1227
|
-
disabled: v ||
|
|
1226
|
+
className: G.pageButton,
|
|
1227
|
+
onClick: re,
|
|
1228
|
+
disabled: v || M === j,
|
|
1228
1229
|
"aria-label": "Go to next page",
|
|
1229
1230
|
children: E?.next ?? "Next"
|
|
1230
1231
|
})
|
|
1231
1232
|
}),
|
|
1232
1233
|
h && /* @__PURE__ */ u("li", {
|
|
1233
|
-
className:
|
|
1234
|
-
children: /* @__PURE__ */ u(
|
|
1234
|
+
className: G.item,
|
|
1235
|
+
children: /* @__PURE__ */ u(L, {
|
|
1235
1236
|
size: y,
|
|
1236
1237
|
variant: b,
|
|
1237
1238
|
intent: C,
|
|
1238
|
-
className:
|
|
1239
|
-
onClick:
|
|
1240
|
-
disabled: v ||
|
|
1239
|
+
className: G.pageButton,
|
|
1240
|
+
onClick: ne,
|
|
1241
|
+
disabled: v || M === j,
|
|
1241
1242
|
"aria-label": "Go to last page",
|
|
1242
1243
|
children: E?.last ?? "Last"
|
|
1243
1244
|
})
|
|
@@ -1245,7 +1246,7 @@ var U = {
|
|
|
1245
1246
|
]
|
|
1246
1247
|
})
|
|
1247
1248
|
});
|
|
1248
|
-
},
|
|
1249
|
+
}, K = {
|
|
1249
1250
|
wrapper: "_wrapper_1bgdh_1",
|
|
1250
1251
|
labelWrapper: "_labelWrapper_1bgdh_8",
|
|
1251
1252
|
label: "_label_1bgdh_8",
|
|
@@ -1260,23 +1261,23 @@ var U = {
|
|
|
1260
1261
|
success: "_success_1bgdh_61",
|
|
1261
1262
|
warning: "_warning_1bgdh_65",
|
|
1262
1263
|
danger: "_danger_1bgdh_69"
|
|
1263
|
-
},
|
|
1264
|
+
}, qe = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: a, className: o, id: s }) => {
|
|
1264
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;
|
|
1265
1266
|
return /* @__PURE__ */ d("div", {
|
|
1266
1267
|
id: c,
|
|
1267
|
-
className: (0, x.default)(
|
|
1268
|
+
className: (0, x.default)(K.wrapper, K[n], K[r], o),
|
|
1268
1269
|
children: [(a || i) && /* @__PURE__ */ d("div", {
|
|
1269
|
-
className:
|
|
1270
|
+
className: K.labelWrapper,
|
|
1270
1271
|
children: [a && /* @__PURE__ */ u("span", {
|
|
1271
1272
|
id: m,
|
|
1272
|
-
className:
|
|
1273
|
+
className: K.label,
|
|
1273
1274
|
children: a
|
|
1274
1275
|
}), i && /* @__PURE__ */ d("span", {
|
|
1275
|
-
className:
|
|
1276
|
+
className: K.percentage,
|
|
1276
1277
|
children: [Math.round(p), "%"]
|
|
1277
1278
|
})]
|
|
1278
1279
|
}), /* @__PURE__ */ u("div", {
|
|
1279
|
-
className:
|
|
1280
|
+
className: K.progressRoot,
|
|
1280
1281
|
role: "progressbar",
|
|
1281
1282
|
"aria-valuenow": f,
|
|
1282
1283
|
"aria-valuemin": 0,
|
|
@@ -1284,12 +1285,12 @@ var U = {
|
|
|
1284
1285
|
"aria-labelledby": m,
|
|
1285
1286
|
"aria-label": a ? void 0 : "Progress",
|
|
1286
1287
|
children: /* @__PURE__ */ u("div", {
|
|
1287
|
-
className:
|
|
1288
|
+
className: K.indicator,
|
|
1288
1289
|
style: { width: `${p}%` }
|
|
1289
1290
|
})
|
|
1290
1291
|
})]
|
|
1291
1292
|
});
|
|
1292
|
-
},
|
|
1293
|
+
}, q = {
|
|
1293
1294
|
wrapper: "_wrapper_92sko_1",
|
|
1294
1295
|
fullWidth: "_fullWidth_92sko_8",
|
|
1295
1296
|
header: "_header_92sko_13",
|
|
@@ -1309,103 +1310,98 @@ var U = {
|
|
|
1309
1310
|
inputsRow: "_inputsRow_92sko_179",
|
|
1310
1311
|
singleInputRow: "_singleInputRow_92sko_187",
|
|
1311
1312
|
separator: "_separator_92sko_191"
|
|
1312
|
-
},
|
|
1313
|
+
}, J = (e, t) => {
|
|
1313
1314
|
if (e == null) return t;
|
|
1314
1315
|
let n = typeof e == "number" ? e : Number(e);
|
|
1315
1316
|
return Number.isNaN(n) ? t : n;
|
|
1316
|
-
},
|
|
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) => {
|
|
1317
1318
|
if (Array.isArray(e)) {
|
|
1318
|
-
let r =
|
|
1319
|
+
let r = Je(J(e[0], t), t, n), i = Je(J(e[1], n), t, n);
|
|
1319
1320
|
return r <= i ? [r, i] : [i, r];
|
|
1320
1321
|
}
|
|
1321
|
-
let r =
|
|
1322
|
+
let r = Je(J(e, t), t, n);
|
|
1322
1323
|
return [r, r];
|
|
1323
|
-
},
|
|
1324
|
-
let _ = S("slider", f), v = n ? `${_}-help` : void 0, y =
|
|
1325
|
-
m,
|
|
1326
|
-
b,
|
|
1327
|
-
y,
|
|
1328
|
-
p
|
|
1329
|
-
])), [D, O] = p == null ? T : Ze(p, y, b), [ee, k] = c(String(D)), [te, ne] = c(String(O));
|
|
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));
|
|
1330
1326
|
i(() => {
|
|
1331
1327
|
k(String(D));
|
|
1332
1328
|
}, [D]), i(() => {
|
|
1333
|
-
|
|
1329
|
+
te(String(O));
|
|
1334
1330
|
}, [O]);
|
|
1335
|
-
let
|
|
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) => {
|
|
1336
1332
|
p ?? E(e), h?.(w ? e : e[0]);
|
|
1337
|
-
},
|
|
1333
|
+
}, ne = (e) => {
|
|
1338
1334
|
if (!e.trim()) return;
|
|
1339
1335
|
let t = Number(e);
|
|
1340
|
-
Number.isNaN(t) ||
|
|
1341
|
-
},
|
|
1336
|
+
Number.isNaN(t) || F([Ye(t, y, w ? O : b, C), O]);
|
|
1337
|
+
}, I = (e) => {
|
|
1342
1338
|
if (!e.trim()) return;
|
|
1343
1339
|
let t = Number(e);
|
|
1344
|
-
Number.isNaN(t) ||
|
|
1340
|
+
Number.isNaN(t) || F([D, Ye(t, D, b, C)]);
|
|
1345
1341
|
};
|
|
1346
1342
|
return /* @__PURE__ */ d("div", {
|
|
1347
|
-
className: (0, x.default)(
|
|
1343
|
+
className: (0, x.default)(q.wrapper, r && q.fullWidth, l),
|
|
1348
1344
|
children: [
|
|
1349
1345
|
(t || a) && /* @__PURE__ */ d("div", {
|
|
1350
|
-
className:
|
|
1346
|
+
className: q.header,
|
|
1351
1347
|
children: [t && /* @__PURE__ */ u("label", {
|
|
1352
1348
|
htmlFor: _,
|
|
1353
|
-
className:
|
|
1349
|
+
className: q.label,
|
|
1354
1350
|
children: t
|
|
1355
1351
|
}), a && /* @__PURE__ */ u("span", {
|
|
1356
|
-
className:
|
|
1357
|
-
children:
|
|
1352
|
+
className: q.value,
|
|
1353
|
+
children: j
|
|
1358
1354
|
})]
|
|
1359
1355
|
}),
|
|
1360
1356
|
/* @__PURE__ */ d("div", {
|
|
1361
|
-
className: (0, x.default)(
|
|
1357
|
+
className: (0, x.default)(q.sliderRoot, q[e], g.disabled && q.disabled),
|
|
1362
1358
|
children: [
|
|
1363
|
-
/* @__PURE__ */ u("div", { className:
|
|
1359
|
+
/* @__PURE__ */ u("div", { className: q.track }),
|
|
1364
1360
|
/* @__PURE__ */ u("div", {
|
|
1365
|
-
className:
|
|
1361
|
+
className: q.activeTrack,
|
|
1366
1362
|
style: {
|
|
1367
|
-
left: `${w ?
|
|
1368
|
-
width: `${w ?
|
|
1363
|
+
left: `${w ? N : 0}%`,
|
|
1364
|
+
width: `${w ? P - N : N}%`
|
|
1369
1365
|
}
|
|
1370
1366
|
}),
|
|
1371
1367
|
/* @__PURE__ */ u("input", {
|
|
1372
1368
|
id: _,
|
|
1373
1369
|
type: "range",
|
|
1374
|
-
className: (0, x.default)(
|
|
1370
|
+
className: (0, x.default)(q.inputRoot, w && q.inputStart),
|
|
1375
1371
|
"aria-describedby": v,
|
|
1376
1372
|
"aria-label": t ? void 0 : w ? "Slider minimum" : "Slider",
|
|
1377
|
-
"aria-valuetext": a ?
|
|
1373
|
+
"aria-valuetext": a ? j : void 0,
|
|
1378
1374
|
...g,
|
|
1379
1375
|
min: y,
|
|
1380
1376
|
max: b,
|
|
1381
1377
|
step: C,
|
|
1382
1378
|
value: D,
|
|
1383
1379
|
onChange: (e) => {
|
|
1384
|
-
|
|
1380
|
+
F([Ye(J(e.target.value, y), y, O, C), O]);
|
|
1385
1381
|
}
|
|
1386
1382
|
}),
|
|
1387
1383
|
w && /* @__PURE__ */ u("input", {
|
|
1388
1384
|
id: `${_}-end`,
|
|
1389
1385
|
type: "range",
|
|
1390
|
-
className: (0, x.default)(
|
|
1386
|
+
className: (0, x.default)(q.inputRoot, q.inputEnd),
|
|
1391
1387
|
"aria-describedby": v,
|
|
1392
1388
|
"aria-label": t ? `${t} maximum` : "Slider maximum",
|
|
1393
|
-
"aria-valuetext": a ?
|
|
1389
|
+
"aria-valuetext": a ? j : void 0,
|
|
1394
1390
|
...g,
|
|
1395
1391
|
min: y,
|
|
1396
1392
|
max: b,
|
|
1397
1393
|
step: C,
|
|
1398
1394
|
value: O,
|
|
1399
1395
|
onChange: (e) => {
|
|
1400
|
-
|
|
1396
|
+
F([D, Ye(J(e.target.value, b), D, b, C)]);
|
|
1401
1397
|
}
|
|
1402
1398
|
})
|
|
1403
1399
|
]
|
|
1404
1400
|
}),
|
|
1405
1401
|
s && /* @__PURE__ */ d("div", {
|
|
1406
|
-
className: (0, x.default)(
|
|
1402
|
+
className: (0, x.default)(q.inputsRow, !w && q.singleInputRow),
|
|
1407
1403
|
children: [
|
|
1408
|
-
/* @__PURE__ */ u(
|
|
1404
|
+
/* @__PURE__ */ u(ke, {
|
|
1409
1405
|
type: "number",
|
|
1410
1406
|
inputMode: "decimal",
|
|
1411
1407
|
size: e,
|
|
@@ -1417,44 +1413,44 @@ var U = {
|
|
|
1417
1413
|
"aria-label": t ? `${t} minimum input` : w ? "Slider minimum input" : "Slider input",
|
|
1418
1414
|
fullWidth: !0,
|
|
1419
1415
|
onBlur: (e) => {
|
|
1420
|
-
|
|
1416
|
+
ne(e.target.value);
|
|
1421
1417
|
},
|
|
1422
1418
|
onKeyDown: (e) => {
|
|
1423
|
-
e.key === "Enter" &&
|
|
1419
|
+
e.key === "Enter" && ne(e.currentTarget.value);
|
|
1424
1420
|
}
|
|
1425
1421
|
}),
|
|
1426
1422
|
w && /* @__PURE__ */ u("span", {
|
|
1427
|
-
className:
|
|
1423
|
+
className: q.separator,
|
|
1428
1424
|
children: "-"
|
|
1429
1425
|
}),
|
|
1430
|
-
w && /* @__PURE__ */ u(
|
|
1426
|
+
w && /* @__PURE__ */ u(ke, {
|
|
1431
1427
|
type: "number",
|
|
1432
1428
|
inputMode: "decimal",
|
|
1433
1429
|
size: e,
|
|
1434
|
-
value:
|
|
1435
|
-
onChange: (e) =>
|
|
1430
|
+
value: A,
|
|
1431
|
+
onChange: (e) => te(e.target.value),
|
|
1436
1432
|
min: D,
|
|
1437
1433
|
max: b,
|
|
1438
1434
|
step: C,
|
|
1439
1435
|
"aria-label": t ? `${t} maximum input` : "Slider maximum input",
|
|
1440
1436
|
fullWidth: !0,
|
|
1441
1437
|
onBlur: (e) => {
|
|
1442
|
-
|
|
1438
|
+
I(e.target.value);
|
|
1443
1439
|
},
|
|
1444
1440
|
onKeyDown: (e) => {
|
|
1445
|
-
e.key === "Enter" &&
|
|
1441
|
+
e.key === "Enter" && I(e.currentTarget.value);
|
|
1446
1442
|
}
|
|
1447
1443
|
})
|
|
1448
1444
|
]
|
|
1449
1445
|
}),
|
|
1450
1446
|
n && /* @__PURE__ */ u("span", {
|
|
1451
1447
|
id: v,
|
|
1452
|
-
className:
|
|
1448
|
+
className: q.helperText,
|
|
1453
1449
|
children: n
|
|
1454
1450
|
})
|
|
1455
1451
|
]
|
|
1456
1452
|
});
|
|
1457
|
-
},
|
|
1453
|
+
}, Y = {
|
|
1458
1454
|
wrapper: "_wrapper_4v5ks_1",
|
|
1459
1455
|
label: "_label_4v5ks_7",
|
|
1460
1456
|
sm: "_sm_4v5ks_17",
|
|
@@ -1467,34 +1463,34 @@ var U = {
|
|
|
1467
1463
|
error: "_error_4v5ks_133",
|
|
1468
1464
|
helperText: "_helperText_4v5ks_142",
|
|
1469
1465
|
errorText: "_errorText_4v5ks_156"
|
|
1470
|
-
},
|
|
1466
|
+
}, Qe = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: a, ...o }) => {
|
|
1471
1467
|
let s = S("radio", a), c = n ? `${s}-help` : void 0;
|
|
1472
1468
|
return /* @__PURE__ */ d("div", {
|
|
1473
|
-
className: (0, x.default)(
|
|
1469
|
+
className: (0, x.default)(Y.wrapper, i),
|
|
1474
1470
|
children: [/* @__PURE__ */ d("label", {
|
|
1475
1471
|
htmlFor: s,
|
|
1476
|
-
className: (0, x.default)(
|
|
1472
|
+
className: (0, x.default)(Y.label, Y[e]),
|
|
1477
1473
|
children: [/* @__PURE__ */ d("div", {
|
|
1478
|
-
className:
|
|
1474
|
+
className: Y.inputWrapper,
|
|
1479
1475
|
children: [/* @__PURE__ */ u("input", {
|
|
1480
1476
|
type: "radio",
|
|
1481
1477
|
id: s,
|
|
1482
|
-
className: (0, x.default)(
|
|
1478
|
+
className: (0, x.default)(Y.radioRoot, Y[e], r && Y.error),
|
|
1483
1479
|
"aria-describedby": c,
|
|
1484
1480
|
"aria-invalid": r || void 0,
|
|
1485
1481
|
...o
|
|
1486
|
-
}), /* @__PURE__ */ u("span", { className:
|
|
1482
|
+
}), /* @__PURE__ */ u("span", { className: Y.checkmark })]
|
|
1487
1483
|
}), t && /* @__PURE__ */ u("span", {
|
|
1488
|
-
className:
|
|
1484
|
+
className: Y.labelText,
|
|
1489
1485
|
children: t
|
|
1490
1486
|
})]
|
|
1491
1487
|
}), n && /* @__PURE__ */ u("span", {
|
|
1492
1488
|
id: c,
|
|
1493
|
-
className: (0, x.default)(
|
|
1489
|
+
className: (0, x.default)(Y.helperText, r && Y.errorText),
|
|
1494
1490
|
children: n
|
|
1495
1491
|
})]
|
|
1496
1492
|
});
|
|
1497
|
-
},
|
|
1493
|
+
}, $e = {
|
|
1498
1494
|
root: "_root_1qfdr_1",
|
|
1499
1495
|
text: "_text_1qfdr_6",
|
|
1500
1496
|
rectangular: "_rectangular_1qfdr_15",
|
|
@@ -1502,38 +1498,38 @@ var U = {
|
|
|
1502
1498
|
circular: "_circular_1qfdr_23",
|
|
1503
1499
|
pulse: "_pulse_1qfdr_28",
|
|
1504
1500
|
wave: "_wave_1qfdr_44"
|
|
1505
|
-
},
|
|
1506
|
-
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),
|
|
1507
1503
|
width: t,
|
|
1508
1504
|
height: n,
|
|
1509
1505
|
style: a,
|
|
1510
1506
|
"aria-hidden": o ?? !0,
|
|
1511
1507
|
...s
|
|
1512
|
-
}),
|
|
1513
|
-
step:
|
|
1514
|
-
stepRow:
|
|
1515
|
-
interactive:
|
|
1516
|
-
marker:
|
|
1517
|
-
text:
|
|
1518
|
-
label:
|
|
1519
|
-
description:
|
|
1520
|
-
connector:
|
|
1521
|
-
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,
|
|
1522
1518
|
"connector-completed": "_connector-completed_69ymb_120",
|
|
1523
|
-
current:
|
|
1519
|
+
current: ut,
|
|
1524
1520
|
"connector-current": "_connector-current_69ymb_134",
|
|
1525
|
-
error:
|
|
1521
|
+
error: dt,
|
|
1526
1522
|
"connector-error": "_connector-error_69ymb_148",
|
|
1527
|
-
upcoming:
|
|
1528
|
-
disabled:
|
|
1529
|
-
},
|
|
1523
|
+
upcoming: ft,
|
|
1524
|
+
disabled: pt
|
|
1525
|
+
}, mt = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
|
|
1530
1526
|
let c = !!e.disabled, l = r ? "button" : "div", f = n === "error" ? "!" : String(t + 1);
|
|
1531
1527
|
return /* @__PURE__ */ d("li", {
|
|
1532
|
-
className: (0, x.default)(
|
|
1528
|
+
className: (0, x.default)(X.step, X[n], c && X.disabled, s),
|
|
1533
1529
|
children: [/* @__PURE__ */ d(l, {
|
|
1534
1530
|
id: o,
|
|
1535
1531
|
type: r ? "button" : void 0,
|
|
1536
|
-
className: (0, x.default)(
|
|
1532
|
+
className: (0, x.default)(X.stepRow, r && X.interactive),
|
|
1537
1533
|
onClick: () => {
|
|
1538
1534
|
r && !c && i?.(e, t);
|
|
1539
1535
|
},
|
|
@@ -1545,49 +1541,49 @@ var U = {
|
|
|
1545
1541
|
disabled: r && c ? !0 : void 0,
|
|
1546
1542
|
tabIndex: r && !c ? 0 : void 0,
|
|
1547
1543
|
children: [/* @__PURE__ */ u("span", {
|
|
1548
|
-
className:
|
|
1544
|
+
className: X.marker,
|
|
1549
1545
|
"aria-hidden": "true",
|
|
1550
1546
|
children: f
|
|
1551
1547
|
}), /* @__PURE__ */ d("span", {
|
|
1552
|
-
className:
|
|
1548
|
+
className: X.text,
|
|
1553
1549
|
children: [/* @__PURE__ */ u("span", {
|
|
1554
|
-
className:
|
|
1550
|
+
className: X.label,
|
|
1555
1551
|
children: e.label
|
|
1556
1552
|
}), e.description && /* @__PURE__ */ u("span", {
|
|
1557
|
-
className:
|
|
1553
|
+
className: X.description,
|
|
1558
1554
|
children: e.description
|
|
1559
1555
|
})]
|
|
1560
1556
|
})]
|
|
1561
1557
|
}), !a && /* @__PURE__ */ u("span", {
|
|
1562
|
-
className: (0, x.default)(
|
|
1558
|
+
className: (0, x.default)(X.connector, X[`connector-${n}`]),
|
|
1563
1559
|
"aria-hidden": "true"
|
|
1564
1560
|
})]
|
|
1565
1561
|
});
|
|
1566
|
-
},
|
|
1562
|
+
}, ht = {
|
|
1567
1563
|
root: "_root_cxvk2_1",
|
|
1568
1564
|
sm: "_sm_cxvk2_15",
|
|
1569
1565
|
lg: "_lg_cxvk2_22",
|
|
1570
1566
|
horizontal: "_horizontal_cxvk2_29",
|
|
1571
1567
|
vertical: "_vertical_cxvk2_35"
|
|
1572
|
-
},
|
|
1573
|
-
let l = S("stepper", s), d =
|
|
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";
|
|
1574
1570
|
return /* @__PURE__ */ u("ol", {
|
|
1575
1571
|
id: l,
|
|
1576
|
-
className: (0, x.default)(
|
|
1572
|
+
className: (0, x.default)(ht.root, ht[n], ht[r], o),
|
|
1577
1573
|
"aria-label": f,
|
|
1578
1574
|
"data-orientation": n,
|
|
1579
1575
|
...c,
|
|
1580
|
-
children: e.map((t, n) => /* @__PURE__ */ u(
|
|
1576
|
+
children: e.map((t, n) => /* @__PURE__ */ u(mt, {
|
|
1581
1577
|
id: `${l}-step-${t.id}`,
|
|
1582
1578
|
step: t,
|
|
1583
1579
|
index: n,
|
|
1584
|
-
status:
|
|
1580
|
+
status: vt(n, d, t.status),
|
|
1585
1581
|
isInteractive: !!i,
|
|
1586
1582
|
onStepClick: i,
|
|
1587
1583
|
isLast: n === e.length - 1
|
|
1588
1584
|
}, t.id))
|
|
1589
1585
|
});
|
|
1590
|
-
},
|
|
1586
|
+
}, bt = {
|
|
1591
1587
|
wrapper: "_wrapper_vo2yb_1",
|
|
1592
1588
|
fullWidth: "_fullWidth_vo2yb_8",
|
|
1593
1589
|
label: "_label_vo2yb_13",
|
|
@@ -1601,16 +1597,16 @@ var U = {
|
|
|
1601
1597
|
}, xt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: a, id: o, options: s, children: c, ...l }) => {
|
|
1602
1598
|
let f = S("select", o), p = r ? `${f}-help` : void 0;
|
|
1603
1599
|
return /* @__PURE__ */ d("div", {
|
|
1604
|
-
className: (0, x.default)(
|
|
1600
|
+
className: (0, x.default)(bt.wrapper, i && bt.fullWidth, a),
|
|
1605
1601
|
children: [
|
|
1606
1602
|
n && /* @__PURE__ */ u("label", {
|
|
1607
1603
|
htmlFor: f,
|
|
1608
|
-
className:
|
|
1604
|
+
className: bt.label,
|
|
1609
1605
|
children: n
|
|
1610
1606
|
}),
|
|
1611
1607
|
/* @__PURE__ */ u("select", {
|
|
1612
1608
|
id: f,
|
|
1613
|
-
className: (0, x.default)(
|
|
1609
|
+
className: (0, x.default)(bt.selectRoot, bt[e], t && bt.error),
|
|
1614
1610
|
"aria-describedby": p,
|
|
1615
1611
|
"aria-invalid": t || void 0,
|
|
1616
1612
|
...l,
|
|
@@ -1622,7 +1618,7 @@ var U = {
|
|
|
1622
1618
|
}),
|
|
1623
1619
|
r && /* @__PURE__ */ u("span", {
|
|
1624
1620
|
id: p,
|
|
1625
|
-
className: (0, x.default)(
|
|
1621
|
+
className: (0, x.default)(bt.helperText, t && bt.errorText),
|
|
1626
1622
|
children: r
|
|
1627
1623
|
})
|
|
1628
1624
|
]
|
|
@@ -1983,8 +1979,8 @@ var U = {
|
|
|
1983
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 }) => {
|
|
1984
1980
|
let E = n || ln[t] || "span", D = {
|
|
1985
1981
|
...c,
|
|
1986
|
-
...
|
|
1987
|
-
...
|
|
1982
|
+
...M("padding", l, d, f, p, m, h, g),
|
|
1983
|
+
...M("margin", _, v, y, b, S, C, w)
|
|
1988
1984
|
};
|
|
1989
1985
|
return /* @__PURE__ */ u(E, {
|
|
1990
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),
|
|
@@ -2256,7 +2252,7 @@ var yn = {
|
|
|
2256
2252
|
t,
|
|
2257
2253
|
/* @__PURE__ */ u("main", {
|
|
2258
2254
|
className: yn.main,
|
|
2259
|
-
children: /* @__PURE__ */ u(
|
|
2255
|
+
children: /* @__PURE__ */ u(N, {
|
|
2260
2256
|
className: yn.container,
|
|
2261
2257
|
maxWidth: i,
|
|
2262
2258
|
children: n
|
|
@@ -2271,14 +2267,14 @@ var yn = {
|
|
|
2271
2267
|
title: "_title_416o7_32",
|
|
2272
2268
|
description: "_description_416o7_39",
|
|
2273
2269
|
content: "_content_416o7_45"
|
|
2274
|
-
}, Sn = ({ logo: e, title: t, description: n, children: r, className: i }) => /* @__PURE__ */ u(
|
|
2270
|
+
}, Sn = ({ logo: e, title: t, description: n, children: r, className: i }) => /* @__PURE__ */ u(N, {
|
|
2275
2271
|
className: (0, x.default)(xn.root, i),
|
|
2276
|
-
children: /* @__PURE__ */ d(
|
|
2272
|
+
children: /* @__PURE__ */ d(N, {
|
|
2277
2273
|
className: xn.card,
|
|
2278
|
-
children: [/* @__PURE__ */ d(
|
|
2274
|
+
children: [/* @__PURE__ */ d(N, {
|
|
2279
2275
|
className: xn.header,
|
|
2280
2276
|
children: [
|
|
2281
|
-
e && /* @__PURE__ */ u(
|
|
2277
|
+
e && /* @__PURE__ */ u(N, {
|
|
2282
2278
|
className: xn.logo,
|
|
2283
2279
|
children: e
|
|
2284
2280
|
}),
|
|
@@ -2295,7 +2291,7 @@ var yn = {
|
|
|
2295
2291
|
children: n
|
|
2296
2292
|
})
|
|
2297
2293
|
]
|
|
2298
|
-
}), /* @__PURE__ */ u(
|
|
2294
|
+
}), /* @__PURE__ */ u(N, {
|
|
2299
2295
|
className: xn.content,
|
|
2300
2296
|
children: r
|
|
2301
2297
|
})]
|
|
@@ -2365,4 +2361,4 @@ var yn = {
|
|
|
2365
2361
|
})]
|
|
2366
2362
|
});
|
|
2367
2363
|
//#endregion
|
|
2368
|
-
export { w as Accordion, bn as AppLayout, Sn as AuthLayout, E as Avatar, O as Badge,
|
|
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 };
|