tharaday 0.5.8 → 0.5.9
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/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +2 -1
- package/dist/components/Divider/Divider.types.d.ts +1 -0
- package/dist/ds.css +1 -1
- package/dist/ds.js +277 -275
- package/dist/ds.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Divider/Divider.module.css +2 -0
- package/src/components/Divider/Divider.stories.tsx +11 -1
- package/src/components/Divider/Divider.tsx +2 -0
- package/src/components/Divider/Divider.types.ts +1 -0
package/dist/ds.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as _, jsxs as
|
|
2
|
-
import { useId as W, useState as en, Children as Wn, Fragment as Dn, useRef as ln, useEffect as
|
|
1
|
+
import { jsx as _, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useId as W, useState as en, Children as Wn, Fragment as Dn, useRef as ln, useEffect as wn, useMemo as Ln, isValidElement as Rn, cloneElement as Mn } from "react";
|
|
3
3
|
import { createPortal as An } from "react-dom";
|
|
4
4
|
function Sn(n) {
|
|
5
5
|
var o, e, t = "";
|
|
6
6
|
if (typeof n == "string" || typeof n == "number") t += n;
|
|
7
7
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
8
|
-
var
|
|
9
|
-
for (o = 0; o <
|
|
8
|
+
var r = n.length;
|
|
9
|
+
for (o = 0; o < r; o++) n[o] && (e = Sn(n[o])) && (t && (t += " "), t += e);
|
|
10
10
|
} else for (e in n) n[e] && (t && (t += " "), t += e);
|
|
11
11
|
return t;
|
|
12
12
|
}
|
|
13
13
|
function a() {
|
|
14
|
-
for (var n, o, e = 0, t = "",
|
|
14
|
+
for (var n, o, e = 0, t = "", r = arguments.length; e < r; e++) (n = arguments[e]) && (o = Sn(n)) && (t && (t += " "), t += o);
|
|
15
15
|
return t;
|
|
16
16
|
}
|
|
17
17
|
const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On = "_separated_1s3bz_24", Vn = "_ghost_1s3bz_34", Hn = "_header_1s3bz_34", Gn = "_sm_1s3bz_65", Un = "_md_1s3bz_70", Jn = "_lg_1s3bz_75", Qn = "_icon_1s3bz_97", Zn = "_iconExpanded_1s3bz_102", Xn = "_contentWrapper_1s3bz_106", Yn = "_contentExpanded_1s3bz_113", no = "_content_1s3bz_106", oo = "_contentBody_1s3bz_121", eo = "_contentBodyExpanded_1s3bz_134", L = {
|
|
@@ -37,26 +37,26 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
37
37
|
allowMultiple: o = !1,
|
|
38
38
|
defaultExpanded: e = [],
|
|
39
39
|
variant: t = "default",
|
|
40
|
-
size:
|
|
40
|
+
size: r = "md",
|
|
41
41
|
className: c,
|
|
42
42
|
id: l
|
|
43
43
|
}) => {
|
|
44
|
-
const i = W(),
|
|
44
|
+
const i = W(), s = l ?? `ds-accordion-${i}`, [m, b] = en(e), f = (p) => {
|
|
45
45
|
b((u) => u.includes(p) ? u.filter((g) => g !== p) : o ? [...u, p] : [p]);
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */ _("div", { id:
|
|
47
|
+
return /* @__PURE__ */ _("div", { id: s, className: a(L.root, L[t], L[r], c), children: n.map((p) => {
|
|
48
48
|
const u = m.includes(p.id);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ y("div", { className: L.item, children: [
|
|
50
|
+
/* @__PURE__ */ y(
|
|
51
51
|
"button",
|
|
52
52
|
{
|
|
53
53
|
type: "button",
|
|
54
|
-
id: `${
|
|
54
|
+
id: `${s}-header-${p.id}`,
|
|
55
55
|
className: L.header,
|
|
56
|
-
onClick: () =>
|
|
56
|
+
onClick: () => f(p.id),
|
|
57
57
|
disabled: p.isDisabled,
|
|
58
58
|
"aria-expanded": u,
|
|
59
|
-
"aria-controls": `${
|
|
59
|
+
"aria-controls": `${s}-content-${p.id}`,
|
|
60
60
|
children: [
|
|
61
61
|
/* @__PURE__ */ _("span", { children: p.title }),
|
|
62
62
|
/* @__PURE__ */ _("span", { className: a(L.icon, u && L.iconExpanded), children: "▼" })
|
|
@@ -66,9 +66,9 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
66
66
|
/* @__PURE__ */ _(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
id: `${
|
|
69
|
+
id: `${s}-content-${p.id}`,
|
|
70
70
|
role: "region",
|
|
71
|
-
"aria-labelledby": `${
|
|
71
|
+
"aria-labelledby": `${s}-header-${p.id}`,
|
|
72
72
|
className: a(L.contentWrapper, u && L.contentExpanded),
|
|
73
73
|
children: /* @__PURE__ */ _("div", { className: L.content, children: /* @__PURE__ */ _("div", { className: a(L.contentBody, u && L.contentBodyExpanded), children: p.content }) })
|
|
74
74
|
}
|
|
@@ -90,19 +90,19 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
90
90
|
alt: o,
|
|
91
91
|
name: e,
|
|
92
92
|
size: t = "md",
|
|
93
|
-
fallback:
|
|
93
|
+
fallback: r,
|
|
94
94
|
className: c,
|
|
95
95
|
...l
|
|
96
96
|
}) => {
|
|
97
|
-
const [i,
|
|
97
|
+
const [i, s] = en(!1), m = o ?? e, b = (p) => p.split(" ").map((u) => u[0]).slice(0, 2).join(""), f = () => n && !i ? /* @__PURE__ */ _(
|
|
98
98
|
"img",
|
|
99
99
|
{
|
|
100
100
|
src: n,
|
|
101
101
|
alt: m || "",
|
|
102
102
|
className: tn.image,
|
|
103
|
-
onError: () =>
|
|
103
|
+
onError: () => s(!0)
|
|
104
104
|
}
|
|
105
|
-
) :
|
|
105
|
+
) : r ? /* @__PURE__ */ _("span", { className: tn.fallback, children: r }) : e ? /* @__PURE__ */ _("span", { className: tn.fallback, children: b(e) }) : /* @__PURE__ */ _(
|
|
106
106
|
"svg",
|
|
107
107
|
{
|
|
108
108
|
viewBox: "0 0 24 24",
|
|
@@ -113,13 +113,13 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
113
113
|
children: /* @__PURE__ */ _("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" })
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
|
-
return /* @__PURE__ */ _("div", { className: a(tn.root, tn[t], c), ...l, children:
|
|
117
|
-
}, po = "_root_13wyx_1", uo = "_sm_13wyx_12", bo = "_md_13wyx_18",
|
|
116
|
+
return /* @__PURE__ */ _("div", { className: a(tn.root, tn[t], c), ...l, children: f() });
|
|
117
|
+
}, po = "_root_13wyx_1", uo = "_sm_13wyx_12", bo = "_md_13wyx_18", fo = "_lg_13wyx_24", yo = "_solid_13wyx_31", ho = "_neutral_13wyx_31", go = "_success_13wyx_35", xo = "_warning_13wyx_39", $o = "_danger_13wyx_43", vo = "_info_13wyx_47", ko = "_subtle_13wyx_53", wo = "_outline_13wyx_75", $n = {
|
|
118
118
|
root: po,
|
|
119
119
|
sm: uo,
|
|
120
120
|
md: bo,
|
|
121
|
-
lg:
|
|
122
|
-
solid:
|
|
121
|
+
lg: fo,
|
|
122
|
+
solid: yo,
|
|
123
123
|
neutral: ho,
|
|
124
124
|
success: go,
|
|
125
125
|
warning: xo,
|
|
@@ -132,14 +132,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
132
132
|
size: o = "md",
|
|
133
133
|
intent: e = "neutral",
|
|
134
134
|
className: t,
|
|
135
|
-
children:
|
|
135
|
+
children: r,
|
|
136
136
|
...c
|
|
137
137
|
}) => /* @__PURE__ */ _(
|
|
138
138
|
"span",
|
|
139
139
|
{
|
|
140
140
|
className: a($n.root, $n[n], $n[o], $n[e], t),
|
|
141
141
|
...c,
|
|
142
|
-
children:
|
|
142
|
+
children: r
|
|
143
143
|
}
|
|
144
144
|
), No = "_box_ynnco_1", Io = "_fullWidth_ynnco_5", jo = "_border_ynnco_683", Co = "_borderBottom_ynnco_686", k = {
|
|
145
145
|
box: No,
|
|
@@ -359,22 +359,22 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
359
359
|
"borderRadius-md": "_borderRadius-md_ynnco_728",
|
|
360
360
|
"borderRadius-lg": "_borderRadius-lg_ynnco_731",
|
|
361
361
|
"borderRadius-full": "_borderRadius-full_ynnco_734"
|
|
362
|
-
}, Bn = (n, o, e, t,
|
|
363
|
-
const
|
|
364
|
-
return typeof o == "string" && (
|
|
362
|
+
}, Bn = (n, o, e, t, r, c, l, i) => {
|
|
363
|
+
const s = {};
|
|
364
|
+
return typeof o == "string" && (s[n] = o), typeof r == "string" && (s[`${n}Top`] = r), typeof c == "string" && (s[`${n}Bottom`] = c), typeof l == "string" && (s[`${n}Left`] = l), typeof i == "string" && (s[`${n}Right`] = i), typeof e == "string" && (s[`${n}Left`] = e, s[`${n}Right`] = e), typeof t == "string" && (s[`${n}Top`] = t, s[`${n}Bottom`] = t), s;
|
|
365
365
|
}, cn = ({
|
|
366
366
|
children: n,
|
|
367
367
|
as: o = "div",
|
|
368
368
|
display: e,
|
|
369
369
|
padding: t,
|
|
370
|
-
paddingX:
|
|
370
|
+
paddingX: r,
|
|
371
371
|
paddingY: c,
|
|
372
372
|
paddingTop: l,
|
|
373
373
|
paddingBottom: i,
|
|
374
|
-
paddingLeft:
|
|
374
|
+
paddingLeft: s,
|
|
375
375
|
paddingRight: m,
|
|
376
376
|
margin: b,
|
|
377
|
-
marginX:
|
|
377
|
+
marginX: f,
|
|
378
378
|
marginY: p,
|
|
379
379
|
marginTop: u,
|
|
380
380
|
marginBottom: g,
|
|
@@ -396,15 +396,15 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
396
396
|
gridTemplateColumns: $,
|
|
397
397
|
backgroundColor: x,
|
|
398
398
|
border: U,
|
|
399
|
-
borderBottom:
|
|
399
|
+
borderBottom: fn,
|
|
400
400
|
borderColor: gn,
|
|
401
401
|
borderRadius: xn,
|
|
402
402
|
className: I,
|
|
403
|
-
style:
|
|
403
|
+
style: Nn,
|
|
404
404
|
..._n
|
|
405
405
|
}) => {
|
|
406
|
-
const
|
|
407
|
-
...
|
|
406
|
+
const In = {
|
|
407
|
+
...Nn,
|
|
408
408
|
flexGrow: F,
|
|
409
409
|
flexShrink: R,
|
|
410
410
|
flex: P,
|
|
@@ -416,17 +416,17 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
416
416
|
...Bn(
|
|
417
417
|
"padding",
|
|
418
418
|
t,
|
|
419
|
-
|
|
419
|
+
r,
|
|
420
420
|
c,
|
|
421
421
|
l,
|
|
422
422
|
i,
|
|
423
|
-
|
|
423
|
+
s,
|
|
424
424
|
m
|
|
425
425
|
),
|
|
426
426
|
...Bn(
|
|
427
427
|
"margin",
|
|
428
428
|
b,
|
|
429
|
-
|
|
429
|
+
f,
|
|
430
430
|
p,
|
|
431
431
|
u,
|
|
432
432
|
g,
|
|
@@ -442,14 +442,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
442
442
|
e && k[`display-${e}`],
|
|
443
443
|
dn && k[`textAlign-${dn}`],
|
|
444
444
|
typeof t == "number" && k[`p-${t}`],
|
|
445
|
-
typeof
|
|
445
|
+
typeof r == "number" && k[`px-${r}`],
|
|
446
446
|
typeof c == "number" && k[`py-${c}`],
|
|
447
447
|
typeof l == "number" && k[`pt-${l}`],
|
|
448
448
|
typeof i == "number" && k[`pb-${i}`],
|
|
449
|
-
typeof
|
|
449
|
+
typeof s == "number" && k[`pl-${s}`],
|
|
450
450
|
typeof m == "number" && k[`pr-${m}`],
|
|
451
451
|
typeof b == "number" && k[`margin-${b}`],
|
|
452
|
-
typeof
|
|
452
|
+
typeof f == "number" && k[`marginX-${f}`],
|
|
453
453
|
typeof p == "number" && k[`marginY-${p}`],
|
|
454
454
|
typeof u == "number" && k[`marginTop-${u}`],
|
|
455
455
|
typeof g == "number" && k[`marginBottom-${g}`],
|
|
@@ -462,13 +462,13 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
462
462
|
N && k[`flexWrap-${N}`],
|
|
463
463
|
x && k[`bg-${x}`],
|
|
464
464
|
U && k.border,
|
|
465
|
-
|
|
465
|
+
fn && k.borderBottom,
|
|
466
466
|
gn && k[`borderColor-${gn}`],
|
|
467
467
|
xn && k[`borderRadius-${xn}`],
|
|
468
468
|
an && k.fullWidth,
|
|
469
469
|
I
|
|
470
470
|
),
|
|
471
|
-
style:
|
|
471
|
+
style: In,
|
|
472
472
|
..._n,
|
|
473
473
|
children: n
|
|
474
474
|
}
|
|
@@ -485,7 +485,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
485
485
|
isCurrent: o,
|
|
486
486
|
children: e,
|
|
487
487
|
className: t,
|
|
488
|
-
...
|
|
488
|
+
...r
|
|
489
489
|
}) => {
|
|
490
490
|
const c = n && !o ? "a" : "span";
|
|
491
491
|
return /* @__PURE__ */ _("li", { className: un.item, children: /* @__PURE__ */ _(
|
|
@@ -494,7 +494,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
494
494
|
href: n,
|
|
495
495
|
className: a(un.link, o && un.current, t),
|
|
496
496
|
"aria-current": o ? "page" : void 0,
|
|
497
|
-
...
|
|
497
|
+
...r,
|
|
498
498
|
children: e
|
|
499
499
|
}
|
|
500
500
|
) });
|
|
@@ -504,12 +504,12 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
504
504
|
className: e,
|
|
505
505
|
...t
|
|
506
506
|
}) => {
|
|
507
|
-
const
|
|
508
|
-
return /* @__PURE__ */ _("nav", { "aria-label": "Breadcrumbs", className: a(un.root, e), ...t, children: /* @__PURE__ */ _("ol", { className: un.list, children:
|
|
507
|
+
const r = Wn.toArray(n);
|
|
508
|
+
return /* @__PURE__ */ _("nav", { "aria-label": "Breadcrumbs", className: a(un.root, e), ...t, children: /* @__PURE__ */ _("ol", { className: un.list, children: r.map((c, l) => /* @__PURE__ */ y(Dn, { children: [
|
|
509
509
|
c,
|
|
510
|
-
l <
|
|
510
|
+
l < r.length - 1 && /* @__PURE__ */ _("li", { className: un.separator, "aria-hidden": "true", children: o })
|
|
511
511
|
] }, l)) }) });
|
|
512
|
-
}, Wo = "_root_1flxt_1", Do = "_xs_1flxt_31", Lo = "_sm_1flxt_39", Ro = "_md_1flxt_46", Mo = "_lg_1flxt_53", Ao = "_xl_1flxt_60", Fo = "_solid_1flxt_70", Po = "_success_1flxt_82", Ko = "_warning_1flxt_92", Oo = "_danger_1flxt_102", Vo = "_info_1flxt_112", Ho = "_outline_1flxt_123", Go = "_subtle_1flxt_192", Uo = "_fullWidth_1flxt_245",
|
|
512
|
+
}, Wo = "_root_1flxt_1", Do = "_xs_1flxt_31", Lo = "_sm_1flxt_39", Ro = "_md_1flxt_46", Mo = "_lg_1flxt_53", Ao = "_xl_1flxt_60", Fo = "_solid_1flxt_70", Po = "_success_1flxt_82", Ko = "_warning_1flxt_92", Oo = "_danger_1flxt_102", Vo = "_info_1flxt_112", Ho = "_outline_1flxt_123", Go = "_subtle_1flxt_192", Uo = "_fullWidth_1flxt_245", yn = {
|
|
513
513
|
root: Wo,
|
|
514
514
|
xs: Do,
|
|
515
515
|
sm: Lo,
|
|
@@ -529,7 +529,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
529
529
|
variant: o = "outline",
|
|
530
530
|
intent: e = "neutral",
|
|
531
531
|
fullWidth: t = !1,
|
|
532
|
-
className:
|
|
532
|
+
className: r,
|
|
533
533
|
children: c,
|
|
534
534
|
...l
|
|
535
535
|
}) => /* @__PURE__ */ _(
|
|
@@ -537,12 +537,12 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
537
537
|
{
|
|
538
538
|
type: "button",
|
|
539
539
|
className: a(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
t &&
|
|
545
|
-
|
|
540
|
+
yn.root,
|
|
541
|
+
yn[n],
|
|
542
|
+
yn[o],
|
|
543
|
+
yn[e],
|
|
544
|
+
t && yn.fullWidth,
|
|
545
|
+
r
|
|
546
546
|
),
|
|
547
547
|
...l,
|
|
548
548
|
children: c
|
|
@@ -579,12 +579,12 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
579
579
|
shadow: o = "sm",
|
|
580
580
|
bordered: e = !0,
|
|
581
581
|
borderColor: t,
|
|
582
|
-
backgroundColor:
|
|
582
|
+
backgroundColor: r,
|
|
583
583
|
className: c,
|
|
584
584
|
children: l,
|
|
585
585
|
...i
|
|
586
586
|
}) => {
|
|
587
|
-
const
|
|
587
|
+
const s = {
|
|
588
588
|
none: z.pNone,
|
|
589
589
|
sm: z.pSm,
|
|
590
590
|
md: z.pMd,
|
|
@@ -599,22 +599,22 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
599
599
|
{
|
|
600
600
|
className: a(
|
|
601
601
|
z.root,
|
|
602
|
-
|
|
602
|
+
s,
|
|
603
603
|
m,
|
|
604
604
|
e && z.bordered,
|
|
605
605
|
t && z[`borderColor-${t}`],
|
|
606
|
-
|
|
606
|
+
r && z[`backgroundColor-${r}`],
|
|
607
607
|
c
|
|
608
608
|
),
|
|
609
609
|
...i,
|
|
610
610
|
children: l
|
|
611
611
|
}
|
|
612
612
|
);
|
|
613
|
-
}, nc = ({ title: n, subtitle: o, className: e, children: t, ...
|
|
613
|
+
}, nc = ({ title: n, subtitle: o, className: e, children: t, ...r }) => /* @__PURE__ */ y("div", { className: a(z.header, e), ...r, children: [
|
|
614
614
|
n && /* @__PURE__ */ _("h3", { className: z.title, children: n }),
|
|
615
615
|
o && /* @__PURE__ */ _("p", { className: z.subtitle, children: o }),
|
|
616
616
|
t
|
|
617
|
-
] }), oc = ({ className: n, children: o, ...e }) => /* @__PURE__ */ _("div", { className: a(z.content, n), ...e, children: o }), ec = ({ className: n, children: o, ...e }) => /* @__PURE__ */ _("div", { className: a(z.footer, n), ...e, children: o }), ae = "_wrapper_1mupt_1", ie = "_container_1mupt_7", de = "_disabled_1mupt_15", me = "_input_1mupt_20", pe = "_control_1mupt_28", ue = "_checkmark_1mupt_57", be = "_label_1mupt_68",
|
|
617
|
+
] }), oc = ({ className: n, children: o, ...e }) => /* @__PURE__ */ _("div", { className: a(z.content, n), ...e, children: o }), ec = ({ className: n, children: o, ...e }) => /* @__PURE__ */ _("div", { className: a(z.footer, n), ...e, children: o }), ae = "_wrapper_1mupt_1", ie = "_container_1mupt_7", de = "_disabled_1mupt_15", me = "_input_1mupt_20", pe = "_control_1mupt_28", ue = "_checkmark_1mupt_57", be = "_label_1mupt_68", fe = "_error_1mupt_75", ye = "_helperText_1mupt_79", he = "_errorText_1mupt_86", K = {
|
|
618
618
|
wrapper: ae,
|
|
619
619
|
container: ie,
|
|
620
620
|
disabled: de,
|
|
@@ -622,32 +622,32 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
622
622
|
control: pe,
|
|
623
623
|
checkmark: ue,
|
|
624
624
|
label: be,
|
|
625
|
-
error:
|
|
626
|
-
helperText:
|
|
625
|
+
error: fe,
|
|
626
|
+
helperText: ye,
|
|
627
627
|
errorText: he
|
|
628
628
|
}, _c = ({
|
|
629
629
|
label: n,
|
|
630
630
|
error: o,
|
|
631
631
|
helperText: e,
|
|
632
632
|
className: t,
|
|
633
|
-
disabled:
|
|
633
|
+
disabled: r,
|
|
634
634
|
id: c,
|
|
635
635
|
...l
|
|
636
636
|
}) => {
|
|
637
|
-
const i = W(),
|
|
638
|
-
return /* @__PURE__ */
|
|
639
|
-
/* @__PURE__ */
|
|
637
|
+
const i = W(), s = c ?? `ds-checkbox-${i}`, m = e ? `${s}-help` : void 0;
|
|
638
|
+
return /* @__PURE__ */ y("div", { className: a(K.wrapper, t), children: [
|
|
639
|
+
/* @__PURE__ */ y(
|
|
640
640
|
"label",
|
|
641
641
|
{
|
|
642
|
-
htmlFor:
|
|
643
|
-
className: a(K.container,
|
|
642
|
+
htmlFor: s,
|
|
643
|
+
className: a(K.container, r && K.disabled, o && K.error),
|
|
644
644
|
children: [
|
|
645
645
|
/* @__PURE__ */ _(
|
|
646
646
|
"input",
|
|
647
647
|
{
|
|
648
648
|
type: "checkbox",
|
|
649
|
-
id:
|
|
650
|
-
disabled:
|
|
649
|
+
id: s,
|
|
650
|
+
disabled: r,
|
|
651
651
|
className: K.input,
|
|
652
652
|
"aria-describedby": m,
|
|
653
653
|
"aria-invalid": o || void 0,
|
|
@@ -698,18 +698,18 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
698
698
|
value: o,
|
|
699
699
|
defaultValue: e,
|
|
700
700
|
onChange: t,
|
|
701
|
-
placeholder:
|
|
701
|
+
placeholder: r = "Select an option",
|
|
702
702
|
label: c,
|
|
703
703
|
helperText: l,
|
|
704
704
|
error: i,
|
|
705
|
-
disabled:
|
|
705
|
+
disabled: s,
|
|
706
706
|
size: m = "md",
|
|
707
707
|
className: b,
|
|
708
|
-
id:
|
|
708
|
+
id: f,
|
|
709
709
|
fullWidth: p = !1
|
|
710
710
|
}) => {
|
|
711
|
-
const u = W(), g =
|
|
712
|
-
if (!
|
|
711
|
+
const u = W(), g = f ?? `ds-dropdown-${u}`, w = l ? `${g}-help` : void 0, [d, h] = en(!1), [j, C] = en(e), [v, N] = en(-1), F = ln(null), R = ln(null), P = o !== void 0 ? o : j, an = n.find(($) => $.value === P), dn = v >= 0 ? `${g}-opt-${v}` : void 0, bn = () => {
|
|
712
|
+
if (!s) {
|
|
713
713
|
const $ = !d;
|
|
714
714
|
if (h($), $) {
|
|
715
715
|
if (v === -1) {
|
|
@@ -722,7 +722,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
722
722
|
}, D = ($, x) => {
|
|
723
723
|
$.disabled || (o === void 0 && C($.value), t?.($.value), h(!1), N(x), R.current?.focus());
|
|
724
724
|
}, B = ($) => {
|
|
725
|
-
if (!
|
|
725
|
+
if (!s)
|
|
726
726
|
switch ($.key) {
|
|
727
727
|
case "ArrowDown":
|
|
728
728
|
$.preventDefault(), d ? N((x) => x < n.length - 1 ? x + 1 : x) : (h(!0), N(n.findIndex((x) => x.value === P) || 0));
|
|
@@ -750,16 +750,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
|
-
return
|
|
753
|
+
return wn(() => {
|
|
754
754
|
d && v >= 0 && document.getElementById(`${g}-opt-${v}`)?.scrollIntoView({ block: "nearest" });
|
|
755
|
-
}, [v, d, g]),
|
|
755
|
+
}, [v, d, g]), wn(() => {
|
|
756
756
|
const $ = (x) => {
|
|
757
757
|
F.current && !F.current.contains(x.target) && (h(!1), N(-1));
|
|
758
758
|
};
|
|
759
759
|
return document.addEventListener("mousedown", $), () => {
|
|
760
760
|
document.removeEventListener("mousedown", $);
|
|
761
761
|
};
|
|
762
|
-
}, []), /* @__PURE__ */
|
|
762
|
+
}, []), /* @__PURE__ */ y(
|
|
763
763
|
"div",
|
|
764
764
|
{
|
|
765
765
|
className: a(
|
|
@@ -772,8 +772,8 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
772
772
|
ref: F,
|
|
773
773
|
children: [
|
|
774
774
|
c && /* @__PURE__ */ _("label", { htmlFor: g, className: q.label, children: c }),
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ y("div", { className: q.container, children: [
|
|
776
|
+
/* @__PURE__ */ y(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
779
|
id: g,
|
|
@@ -782,7 +782,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
782
782
|
className: a(q.trigger, d && q.isOpen),
|
|
783
783
|
onClick: bn,
|
|
784
784
|
onKeyDown: B,
|
|
785
|
-
disabled:
|
|
785
|
+
disabled: s,
|
|
786
786
|
"aria-haspopup": "listbox",
|
|
787
787
|
"aria-expanded": d,
|
|
788
788
|
"aria-describedby": w,
|
|
@@ -790,7 +790,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
790
790
|
"aria-controls": d ? `${g}-menu` : void 0,
|
|
791
791
|
"aria-activedescendant": d ? dn : void 0,
|
|
792
792
|
children: [
|
|
793
|
-
/* @__PURE__ */ _("span", { className: q.selectedLabel, children: an ? an.label :
|
|
793
|
+
/* @__PURE__ */ _("span", { className: q.selectedLabel, children: an ? an.label : r }),
|
|
794
794
|
/* @__PURE__ */ _("span", { className: q.icon, "aria-hidden": "true", children: /* @__PURE__ */ _(
|
|
795
795
|
"svg",
|
|
796
796
|
{
|
|
@@ -822,8 +822,8 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
822
822
|
role: "listbox",
|
|
823
823
|
"aria-labelledby": c ? void 0 : g,
|
|
824
824
|
children: n.map(($, x) => {
|
|
825
|
-
const U = $.value === P,
|
|
826
|
-
return /* @__PURE__ */
|
|
825
|
+
const U = $.value === P, fn = x === v;
|
|
826
|
+
return /* @__PURE__ */ y(
|
|
827
827
|
"li",
|
|
828
828
|
{
|
|
829
829
|
id: `${g}-opt-${x}`,
|
|
@@ -832,7 +832,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
832
832
|
className: a(
|
|
833
833
|
q.option,
|
|
834
834
|
U && q.optionSelected,
|
|
835
|
-
|
|
835
|
+
fn && q.optionFocused,
|
|
836
836
|
$.disabled && q.optionDisabled
|
|
837
837
|
),
|
|
838
838
|
onClick: () => D($, x),
|
|
@@ -852,40 +852,42 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
852
852
|
]
|
|
853
853
|
}
|
|
854
854
|
);
|
|
855
|
-
}, Re = "
|
|
855
|
+
}, Re = "_root_fk4i4_1", Me = "_horizontal_fk4i4_8", Ae = "_vertical_fk4i4_16", vn = {
|
|
856
856
|
root: Re,
|
|
857
857
|
horizontal: Me,
|
|
858
858
|
vertical: Ae
|
|
859
|
-
},
|
|
859
|
+
}, kn = (n) => typeof n == "number" ? `${n}px` : n, sc = ({
|
|
860
860
|
orientation: n = "horizontal",
|
|
861
861
|
thickness: o,
|
|
862
862
|
length: e,
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
863
|
+
spacing: t,
|
|
864
|
+
inset: r,
|
|
865
|
+
className: c,
|
|
866
|
+
style: l,
|
|
867
|
+
...i
|
|
867
868
|
}) => {
|
|
868
|
-
const
|
|
869
|
-
...
|
|
870
|
-
"--divider-thickness":
|
|
871
|
-
"--divider-length":
|
|
872
|
-
"--divider-
|
|
869
|
+
const s = {
|
|
870
|
+
...l,
|
|
871
|
+
"--divider-thickness": kn(o),
|
|
872
|
+
"--divider-length": kn(e),
|
|
873
|
+
"--divider-spacing": kn(t),
|
|
874
|
+
"--divider-inset": kn(r)
|
|
873
875
|
};
|
|
874
876
|
return n === "vertical" ? /* @__PURE__ */ _(
|
|
875
877
|
"div",
|
|
876
878
|
{
|
|
877
879
|
role: "separator",
|
|
878
880
|
"aria-orientation": "vertical",
|
|
879
|
-
className: a(vn.root, vn.vertical,
|
|
880
|
-
style:
|
|
881
|
-
...
|
|
881
|
+
className: a(vn.root, vn.vertical, c),
|
|
882
|
+
style: s,
|
|
883
|
+
...i
|
|
882
884
|
}
|
|
883
885
|
) : /* @__PURE__ */ _(
|
|
884
886
|
"hr",
|
|
885
887
|
{
|
|
886
|
-
className: a(vn.root, vn.horizontal,
|
|
887
|
-
style:
|
|
888
|
-
...
|
|
888
|
+
className: a(vn.root, vn.horizontal, c),
|
|
889
|
+
style: s,
|
|
890
|
+
...i
|
|
889
891
|
}
|
|
890
892
|
);
|
|
891
893
|
}, Fe = "_root_1ujj3_1", Pe = "_container_1ujj3_8", Ke = "_sideContainer_1ujj3_18", Oe = "_leftSide_1ujj3_24", Ve = "_rightSide_1ujj3_28", He = "_actions_1ujj3_32", Ge = "_title_1ujj3_44", Ue = "_welcome_1ujj3_52", O = {
|
|
@@ -902,27 +904,27 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
902
904
|
logo: o,
|
|
903
905
|
title: e,
|
|
904
906
|
user: t,
|
|
905
|
-
onLogin:
|
|
907
|
+
onLogin: r,
|
|
906
908
|
onLogout: c,
|
|
907
909
|
onCreateAccount: l,
|
|
908
910
|
className: i,
|
|
909
|
-
maxWidth:
|
|
911
|
+
maxWidth: s
|
|
910
912
|
}) => {
|
|
911
913
|
const m = { size: "sm", intent: "info" };
|
|
912
|
-
return /* @__PURE__ */ _("header", { id: n, className: a(O.root, i), children: /* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
+
return /* @__PURE__ */ _("header", { id: n, className: a(O.root, i), children: /* @__PURE__ */ y("div", { className: O.container, style: { maxWidth: s }, children: [
|
|
915
|
+
/* @__PURE__ */ y("div", { className: a(O.sideContainer, O.leftSide), children: [
|
|
914
916
|
o,
|
|
915
917
|
e ? /* @__PURE__ */ _("h1", { className: O.title, children: e }) : null
|
|
916
918
|
] }),
|
|
917
|
-
/* @__PURE__ */ _("div", { className: a(O.sideContainer, O.rightSide), children: t ? /* @__PURE__ */
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ _("div", { className: a(O.sideContainer, O.rightSide), children: t ? /* @__PURE__ */ y("div", { className: O.actions, children: [
|
|
920
|
+
/* @__PURE__ */ y("span", { className: O.welcome, children: [
|
|
919
921
|
"Welcome, ",
|
|
920
922
|
/* @__PURE__ */ _("strong", { children: t.name }),
|
|
921
923
|
"!"
|
|
922
924
|
] }),
|
|
923
925
|
/* @__PURE__ */ _(H, { ...m, onClick: c, children: "Log out" })
|
|
924
|
-
] }) : /* @__PURE__ */
|
|
925
|
-
|
|
926
|
+
] }) : /* @__PURE__ */ y("div", { className: O.actions, children: [
|
|
927
|
+
r ? /* @__PURE__ */ _(H, { ...m, onClick: r, children: "Log in" }) : null,
|
|
926
928
|
l ? /* @__PURE__ */ _(
|
|
927
929
|
H,
|
|
928
930
|
{
|
|
@@ -951,28 +953,28 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
951
953
|
items: o,
|
|
952
954
|
activeId: e,
|
|
953
955
|
logo: t,
|
|
954
|
-
actions:
|
|
956
|
+
actions: r,
|
|
955
957
|
onItemClick: c,
|
|
956
958
|
className: l,
|
|
957
959
|
maxWidth: i
|
|
958
|
-
}) => /* @__PURE__ */ _("nav", { id: n, className: a(V.root, l), children: /* @__PURE__ */
|
|
960
|
+
}) => /* @__PURE__ */ _("nav", { id: n, className: a(V.root, l), children: /* @__PURE__ */ y("div", { className: V.container, style: { maxWidth: i }, children: [
|
|
959
961
|
t && /* @__PURE__ */ _("div", { className: V.leftSection, children: t }),
|
|
960
|
-
/* @__PURE__ */ _("div", { className: V.nav, children: /* @__PURE__ */ _("ul", { className: V.navList, children: o.map((
|
|
962
|
+
/* @__PURE__ */ _("div", { className: V.nav, children: /* @__PURE__ */ _("ul", { className: V.navList, children: o.map((s) => /* @__PURE__ */ _("li", { className: V.navItem, children: /* @__PURE__ */ _(
|
|
961
963
|
"button",
|
|
962
964
|
{
|
|
963
965
|
type: "button",
|
|
964
966
|
className: a(
|
|
965
967
|
V.navLink,
|
|
966
|
-
e ===
|
|
967
|
-
|
|
968
|
+
e === s.id && V.active,
|
|
969
|
+
s.disabled && V.disabled
|
|
968
970
|
),
|
|
969
|
-
onClick: () => !
|
|
970
|
-
disabled:
|
|
971
|
-
"aria-current": e ===
|
|
972
|
-
children:
|
|
971
|
+
onClick: () => !s.disabled && c?.(s.id),
|
|
972
|
+
disabled: s.disabled,
|
|
973
|
+
"aria-current": e === s.id ? "page" : void 0,
|
|
974
|
+
children: s.label
|
|
973
975
|
}
|
|
974
|
-
) },
|
|
975
|
-
|
|
976
|
+
) }, s.id)) }) }),
|
|
977
|
+
r && /* @__PURE__ */ _("div", { className: V.rightSection, children: r })
|
|
976
978
|
] }) }), r_ = "_wrapper_15ibj_1", c_ = "_fullWidth_15ibj_8", l_ = "_label_15ibj_13", a_ = "_inputRoot_15ibj_20", i_ = "_sm_15ibj_56", d_ = "_md_15ibj_62", m_ = "_lg_15ibj_72", p_ = "_error_15ibj_79", u_ = "_helperText_15ibj_88", b_ = "_errorText_15ibj_94", J = {
|
|
977
979
|
wrapper: r_,
|
|
978
980
|
fullWidth: c_,
|
|
@@ -989,13 +991,13 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
989
991
|
error: o,
|
|
990
992
|
label: e,
|
|
991
993
|
helperText: t,
|
|
992
|
-
fullWidth:
|
|
994
|
+
fullWidth: r = !1,
|
|
993
995
|
className: c,
|
|
994
996
|
id: l,
|
|
995
997
|
...i
|
|
996
998
|
}) => {
|
|
997
|
-
const
|
|
998
|
-
return /* @__PURE__ */
|
|
999
|
+
const s = W(), m = l ?? `ds-input-${s}`, b = t ? `${m}-help` : void 0;
|
|
1000
|
+
return /* @__PURE__ */ y("div", { className: a(J.wrapper, r && J.fullWidth, c), children: [
|
|
999
1001
|
e && /* @__PURE__ */ _("label", { htmlFor: m, className: J.label, children: e }),
|
|
1000
1002
|
/* @__PURE__ */ _(
|
|
1001
1003
|
"input",
|
|
@@ -1009,9 +1011,9 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1009
1011
|
),
|
|
1010
1012
|
t && /* @__PURE__ */ _("span", { id: b, className: a(J.helperText, o && J.errorText), children: t })
|
|
1011
1013
|
] });
|
|
1012
|
-
},
|
|
1013
|
-
loader:
|
|
1014
|
-
spin:
|
|
1014
|
+
}, f_ = "_loader_wvz8q_1", y_ = "_spin_wvz8q_1", h_ = "_neutral_wvz8q_10", g_ = "_info_wvz8q_13", x_ = "_success_wvz8q_16", $_ = "_warning_wvz8q_19", v_ = "_danger_wvz8q_22", k_ = "_sm_wvz8q_27", w_ = "_md_wvz8q_33", N_ = "_lg_wvz8q_39", jn = {
|
|
1015
|
+
loader: f_,
|
|
1016
|
+
spin: y_,
|
|
1015
1017
|
neutral: h_,
|
|
1016
1018
|
info: g_,
|
|
1017
1019
|
success: x_,
|
|
@@ -1047,19 +1049,19 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1047
1049
|
onClose: o,
|
|
1048
1050
|
title: e,
|
|
1049
1051
|
children: t,
|
|
1050
|
-
footer:
|
|
1052
|
+
footer: r,
|
|
1051
1053
|
size: c = "md",
|
|
1052
1054
|
isLoading: l = !1,
|
|
1053
1055
|
className: i,
|
|
1054
|
-
id:
|
|
1056
|
+
id: s
|
|
1055
1057
|
}) => {
|
|
1056
|
-
const m = ln(null), b = ln(null),
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1059
|
-
}, [o]),
|
|
1058
|
+
const m = ln(null), b = ln(null), f = ln(o), p = W(), u = s ?? `ds-modal-${p}`, g = `${u}-title`;
|
|
1059
|
+
return wn(() => {
|
|
1060
|
+
f.current = o;
|
|
1061
|
+
}, [o]), wn(() => {
|
|
1060
1062
|
const w = (d) => {
|
|
1061
1063
|
if (d.key === "Escape" && !l) {
|
|
1062
|
-
|
|
1064
|
+
f.current();
|
|
1063
1065
|
return;
|
|
1064
1066
|
}
|
|
1065
1067
|
if (d.key === "Tab" && m.current) {
|
|
@@ -1078,7 +1080,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1078
1080
|
document.body.style.overflow = "unset", window.removeEventListener("keydown", w), b.current?.focus();
|
|
1079
1081
|
};
|
|
1080
1082
|
}, [n, l]), n ? An(
|
|
1081
|
-
/* @__PURE__ */ _("div", { className: G.overlay, onClick: () => !l && o(), children: /* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ _("div", { className: G.overlay, onClick: () => !l && o(), children: /* @__PURE__ */ y(
|
|
1082
1084
|
"div",
|
|
1083
1085
|
{
|
|
1084
1086
|
id: u,
|
|
@@ -1089,7 +1091,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1089
1091
|
"aria-labelledby": e ? g : void 0,
|
|
1090
1092
|
ref: m,
|
|
1091
1093
|
children: [
|
|
1092
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ y("div", { className: G.header, children: [
|
|
1093
1095
|
e && /* @__PURE__ */ _("h2", { id: g, className: G.title, children: e }),
|
|
1094
1096
|
/* @__PURE__ */ _(
|
|
1095
1097
|
H,
|
|
@@ -1105,7 +1107,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1105
1107
|
)
|
|
1106
1108
|
] }),
|
|
1107
1109
|
/* @__PURE__ */ _("div", { className: G.content, children: t }),
|
|
1108
|
-
|
|
1110
|
+
r && /* @__PURE__ */ _("div", { className: G.footer, children: r })
|
|
1109
1111
|
]
|
|
1110
1112
|
}
|
|
1111
1113
|
) }),
|
|
@@ -1127,10 +1129,10 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1127
1129
|
title: o,
|
|
1128
1130
|
children: e,
|
|
1129
1131
|
onClose: t,
|
|
1130
|
-
className:
|
|
1132
|
+
className: r,
|
|
1131
1133
|
...c
|
|
1132
|
-
}) => /* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
+
}) => /* @__PURE__ */ y("div", { className: a(mn.root, mn[n], r), role: "alert", ...c, children: [
|
|
1135
|
+
/* @__PURE__ */ y("div", { className: mn.content, children: [
|
|
1134
1136
|
o && /* @__PURE__ */ _("div", { className: mn.title, children: o }),
|
|
1135
1137
|
/* @__PURE__ */ _("div", { className: mn.message, children: e })
|
|
1136
1138
|
] }),
|
|
@@ -1156,29 +1158,29 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1156
1158
|
for (let t = n; t <= o; t += 1)
|
|
1157
1159
|
e.push(t);
|
|
1158
1160
|
return e;
|
|
1159
|
-
}, ot = (n, o, e, t,
|
|
1161
|
+
}, ot = (n, o, e, t, r) => {
|
|
1160
1162
|
if (n <= 0)
|
|
1161
1163
|
return [];
|
|
1162
|
-
if (!
|
|
1164
|
+
if (!r)
|
|
1163
1165
|
return hn(1, n);
|
|
1164
1166
|
const l = e * 2 + 1 + t * 2 + 2;
|
|
1165
1167
|
if (n <= l)
|
|
1166
1168
|
return hn(1, n);
|
|
1167
|
-
const i = hn(1, Math.min(t, n)),
|
|
1168
|
-
return
|
|
1169
|
+
const i = hn(1, Math.min(t, n)), s = hn(Math.max(n - t + 1, t + 1), n), m = Math.max(o - e, t + 2), b = Math.min(o + e, n - t - 1), f = m > t + 2, p = b < n - t - 1, u = [...i], g = f ? m : t + 1, w = p ? b : n - t;
|
|
1170
|
+
return f && u.push("ellipsis"), g <= w && u.push(...hn(g, w)), p && u.push("ellipsis"), u.push(...s), u;
|
|
1169
1171
|
}, ic = ({
|
|
1170
1172
|
id: n,
|
|
1171
1173
|
count: o,
|
|
1172
1174
|
page: e,
|
|
1173
1175
|
defaultPage: t = 1,
|
|
1174
|
-
onPageChange:
|
|
1176
|
+
onPageChange: r,
|
|
1175
1177
|
onFirstClick: c,
|
|
1176
1178
|
onLastClick: l,
|
|
1177
1179
|
onNextClick: i,
|
|
1178
|
-
onPrevClick:
|
|
1180
|
+
onPrevClick: s,
|
|
1179
1181
|
siblingCount: m = 1,
|
|
1180
1182
|
boundaryCount: b = 1,
|
|
1181
|
-
showFirstLast:
|
|
1183
|
+
showFirstLast: f = !0,
|
|
1182
1184
|
showPrevNext: p = !0,
|
|
1183
1185
|
showEllipsis: u = !0,
|
|
1184
1186
|
disabled: g = !1,
|
|
@@ -1196,21 +1198,21 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1196
1198
|
() => ot(D, B, m, b, u),
|
|
1197
1199
|
[D, B, m, b, u]
|
|
1198
1200
|
), x = (I) => {
|
|
1199
|
-
g || I === B || (e === void 0 && bn(I),
|
|
1201
|
+
g || I === B || (e === void 0 && bn(I), r?.(I));
|
|
1200
1202
|
}, U = () => {
|
|
1201
1203
|
x(1), c?.(1);
|
|
1202
|
-
},
|
|
1204
|
+
}, fn = () => {
|
|
1203
1205
|
const I = D;
|
|
1204
1206
|
x(I), l?.(I);
|
|
1205
1207
|
}, gn = () => {
|
|
1206
1208
|
const I = Math.max(1, B - 1);
|
|
1207
|
-
x(I),
|
|
1209
|
+
x(I), s?.(I);
|
|
1208
1210
|
}, xn = () => {
|
|
1209
1211
|
const I = Math.min(D, B + 1);
|
|
1210
1212
|
x(I), i?.(I);
|
|
1211
1213
|
};
|
|
1212
|
-
return D <= 0 ? null : /* @__PURE__ */ _("nav", { id: an, "aria-label": N, className: a(E.root, R), children: /* @__PURE__ */
|
|
1213
|
-
|
|
1214
|
+
return D <= 0 ? null : /* @__PURE__ */ _("nav", { id: an, "aria-label": N, className: a(E.root, R), children: /* @__PURE__ */ y("ul", { className: E.list, children: [
|
|
1215
|
+
f && /* @__PURE__ */ _("li", { className: E.item, children: /* @__PURE__ */ _(
|
|
1214
1216
|
H,
|
|
1215
1217
|
{
|
|
1216
1218
|
size: w,
|
|
@@ -1236,10 +1238,10 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1236
1238
|
children: v?.prev ?? "Prev"
|
|
1237
1239
|
}
|
|
1238
1240
|
) }),
|
|
1239
|
-
$.map((I,
|
|
1241
|
+
$.map((I, Nn) => {
|
|
1240
1242
|
if (I === "ellipsis")
|
|
1241
|
-
return /* @__PURE__ */ _("li", { className: E.item, "aria-hidden": "true", children: /* @__PURE__ */ _("span", { className: E.ellipsis, children: "…" }) }, `ellipsis-${
|
|
1242
|
-
const _n = I === B,
|
|
1243
|
+
return /* @__PURE__ */ _("li", { className: E.item, "aria-hidden": "true", children: /* @__PURE__ */ _("span", { className: E.ellipsis, children: "…" }) }, `ellipsis-${Nn}`);
|
|
1244
|
+
const _n = I === B, In = F?.(I, _n) ?? `Page ${I}${_n ? ", current page" : ""}`;
|
|
1243
1245
|
return /* @__PURE__ */ _("li", { className: E.item, children: /* @__PURE__ */ _(
|
|
1244
1246
|
H,
|
|
1245
1247
|
{
|
|
@@ -1250,7 +1252,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1250
1252
|
onClick: () => x(I),
|
|
1251
1253
|
disabled: g,
|
|
1252
1254
|
"aria-current": _n ? "page" : void 0,
|
|
1253
|
-
"aria-label":
|
|
1255
|
+
"aria-label": In,
|
|
1254
1256
|
children: I
|
|
1255
1257
|
}
|
|
1256
1258
|
) }, I);
|
|
@@ -1268,14 +1270,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1268
1270
|
children: v?.next ?? "Next"
|
|
1269
1271
|
}
|
|
1270
1272
|
) }),
|
|
1271
|
-
|
|
1273
|
+
f && /* @__PURE__ */ _("li", { className: E.item, children: /* @__PURE__ */ _(
|
|
1272
1274
|
H,
|
|
1273
1275
|
{
|
|
1274
1276
|
size: w,
|
|
1275
1277
|
variant: d,
|
|
1276
1278
|
intent: h,
|
|
1277
1279
|
className: E.pageButton,
|
|
1278
|
-
onClick:
|
|
1280
|
+
onClick: fn,
|
|
1279
1281
|
disabled: g || B === D,
|
|
1280
1282
|
"aria-label": "Go to last page",
|
|
1281
1283
|
children: v?.last ?? "Last"
|
|
@@ -1301,16 +1303,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1301
1303
|
max: o = 100,
|
|
1302
1304
|
size: e = "md",
|
|
1303
1305
|
intent: t = "info",
|
|
1304
|
-
showLabel:
|
|
1306
|
+
showLabel: r = !1,
|
|
1305
1307
|
label: c,
|
|
1306
1308
|
className: l,
|
|
1307
1309
|
id: i
|
|
1308
1310
|
}) => {
|
|
1309
|
-
const
|
|
1310
|
-
return /* @__PURE__ */
|
|
1311
|
-
(c ||
|
|
1311
|
+
const s = W(), m = i ?? `ds-progressbar-${s}`, b = o > 0 ? o : 0, f = Math.min(Math.max(0, n), b), p = b > 0 ? Math.min(Math.max(0, f / b * 100), 100) : 0, u = c ? `${m}-label` : void 0;
|
|
1312
|
+
return /* @__PURE__ */ y("div", { id: m, className: a(Q.wrapper, Q[e], Q[t], l), children: [
|
|
1313
|
+
(c || r) && /* @__PURE__ */ y("div", { className: Q.labelWrapper, children: [
|
|
1312
1314
|
c && /* @__PURE__ */ _("span", { id: u, className: Q.label, children: c }),
|
|
1313
|
-
|
|
1315
|
+
r && /* @__PURE__ */ y("span", { className: Q.percentage, children: [
|
|
1314
1316
|
Math.round(p),
|
|
1315
1317
|
"%"
|
|
1316
1318
|
] })
|
|
@@ -1320,7 +1322,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1320
1322
|
{
|
|
1321
1323
|
className: Q.progressRoot,
|
|
1322
1324
|
role: "progressbar",
|
|
1323
|
-
"aria-valuenow":
|
|
1325
|
+
"aria-valuenow": f,
|
|
1324
1326
|
"aria-valuemin": 0,
|
|
1325
1327
|
"aria-valuemax": o,
|
|
1326
1328
|
"aria-labelledby": u,
|
|
@@ -1329,10 +1331,10 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1329
1331
|
}
|
|
1330
1332
|
)
|
|
1331
1333
|
] });
|
|
1332
|
-
}, bt = "_wrapper_4v5ks_1",
|
|
1334
|
+
}, bt = "_wrapper_4v5ks_1", ft = "_label_4v5ks_7", yt = "_sm_4v5ks_17", ht = "_md_4v5ks_20", gt = "_lg_4v5ks_23", xt = "_inputWrapper_4v5ks_27", $t = "_radioRoot_4v5ks_34", vt = "_checkmark_4v5ks_44", kt = "_labelText_4v5ks_127", wt = "_error_4v5ks_133", Nt = "_helperText_4v5ks_142", It = "_errorText_4v5ks_156", M = {
|
|
1333
1335
|
wrapper: bt,
|
|
1334
|
-
label:
|
|
1335
|
-
sm:
|
|
1336
|
+
label: ft,
|
|
1337
|
+
sm: yt,
|
|
1336
1338
|
md: ht,
|
|
1337
1339
|
lg: gt,
|
|
1338
1340
|
inputWrapper: xt,
|
|
@@ -1347,19 +1349,19 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1347
1349
|
label: o,
|
|
1348
1350
|
helperText: e,
|
|
1349
1351
|
error: t,
|
|
1350
|
-
className:
|
|
1352
|
+
className: r,
|
|
1351
1353
|
id: c,
|
|
1352
1354
|
...l
|
|
1353
1355
|
}) => {
|
|
1354
|
-
const i = W(),
|
|
1355
|
-
return /* @__PURE__ */
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */
|
|
1356
|
+
const i = W(), s = c ?? `ds-radio-${i}`, m = e ? `${s}-help` : void 0;
|
|
1357
|
+
return /* @__PURE__ */ y("div", { className: a(M.wrapper, r), children: [
|
|
1358
|
+
/* @__PURE__ */ y("label", { htmlFor: s, className: a(M.label, M[n]), children: [
|
|
1359
|
+
/* @__PURE__ */ y("div", { className: M.inputWrapper, children: [
|
|
1358
1360
|
/* @__PURE__ */ _(
|
|
1359
1361
|
"input",
|
|
1360
1362
|
{
|
|
1361
1363
|
type: "radio",
|
|
1362
|
-
id:
|
|
1364
|
+
id: s,
|
|
1363
1365
|
className: a(M.radioRoot, M[n], t && M.error),
|
|
1364
1366
|
"aria-describedby": m,
|
|
1365
1367
|
"aria-invalid": t || void 0,
|
|
@@ -1385,7 +1387,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1385
1387
|
width: o,
|
|
1386
1388
|
height: e,
|
|
1387
1389
|
animation: t = "pulse",
|
|
1388
|
-
className:
|
|
1390
|
+
className: r,
|
|
1389
1391
|
style: c,
|
|
1390
1392
|
"aria-hidden": l,
|
|
1391
1393
|
...i
|
|
@@ -1396,7 +1398,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1396
1398
|
Cn.root,
|
|
1397
1399
|
Cn[n],
|
|
1398
1400
|
t !== "none" && Cn[t],
|
|
1399
|
-
|
|
1401
|
+
r
|
|
1400
1402
|
),
|
|
1401
1403
|
width: o,
|
|
1402
1404
|
height: e,
|
|
@@ -1426,32 +1428,32 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1426
1428
|
index: o,
|
|
1427
1429
|
status: e,
|
|
1428
1430
|
isInteractive: t,
|
|
1429
|
-
onStepClick:
|
|
1431
|
+
onStepClick: r,
|
|
1430
1432
|
isLast: c,
|
|
1431
1433
|
id: l,
|
|
1432
1434
|
className: i
|
|
1433
1435
|
}) => {
|
|
1434
|
-
const
|
|
1435
|
-
t && !
|
|
1436
|
+
const s = !!n.disabled, m = t ? "button" : "div", b = e === "error" ? "!" : String(o + 1), f = () => {
|
|
1437
|
+
t && !s && r?.(n, o);
|
|
1436
1438
|
}, p = (u) => {
|
|
1437
|
-
t && !
|
|
1439
|
+
t && !s && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), r?.(n, o));
|
|
1438
1440
|
};
|
|
1439
|
-
return /* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1441
|
+
return /* @__PURE__ */ y("li", { className: a(A.step, A[e], s && A.disabled, i), children: [
|
|
1442
|
+
/* @__PURE__ */ y(
|
|
1441
1443
|
m,
|
|
1442
1444
|
{
|
|
1443
1445
|
id: l,
|
|
1444
1446
|
type: t ? "button" : void 0,
|
|
1445
1447
|
className: a(A.stepRow, t && A.interactive),
|
|
1446
|
-
onClick:
|
|
1448
|
+
onClick: f,
|
|
1447
1449
|
onKeyDown: p,
|
|
1448
1450
|
"aria-current": e === "current" ? "step" : void 0,
|
|
1449
|
-
"aria-disabled":
|
|
1450
|
-
disabled: t &&
|
|
1451
|
-
tabIndex: t && !
|
|
1451
|
+
"aria-disabled": s ? !0 : void 0,
|
|
1452
|
+
disabled: t && s ? !0 : void 0,
|
|
1453
|
+
tabIndex: t && !s ? 0 : void 0,
|
|
1452
1454
|
children: [
|
|
1453
1455
|
/* @__PURE__ */ _("span", { className: A.marker, "aria-hidden": "true", children: b }),
|
|
1454
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ y("span", { className: A.text, children: [
|
|
1455
1457
|
/* @__PURE__ */ _("span", { className: A.label, children: n.label }),
|
|
1456
1458
|
n.description && /* @__PURE__ */ _("span", { className: A.description, children: n.description })
|
|
1457
1459
|
] })
|
|
@@ -1477,13 +1479,13 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1477
1479
|
currentStep: o,
|
|
1478
1480
|
orientation: e = "horizontal",
|
|
1479
1481
|
size: t = "md",
|
|
1480
|
-
onStepClick:
|
|
1482
|
+
onStepClick: r,
|
|
1481
1483
|
ariaLabel: c,
|
|
1482
1484
|
className: l,
|
|
1483
1485
|
id: i,
|
|
1484
|
-
...
|
|
1486
|
+
...s
|
|
1485
1487
|
}) => {
|
|
1486
|
-
const m = W(), b = i ?? `ds-stepper-${m}`,
|
|
1488
|
+
const m = W(), b = i ?? `ds-stepper-${m}`, f = ns(o, n), p = c ?? "Progress";
|
|
1487
1489
|
return /* @__PURE__ */ _(
|
|
1488
1490
|
"ol",
|
|
1489
1491
|
{
|
|
@@ -1491,16 +1493,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1491
1493
|
className: a(Tn.root, Tn[e], Tn[t], l),
|
|
1492
1494
|
"aria-label": p,
|
|
1493
1495
|
"data-orientation": e,
|
|
1494
|
-
...
|
|
1496
|
+
...s,
|
|
1495
1497
|
children: n.map((u, g) => /* @__PURE__ */ _(
|
|
1496
1498
|
Gt,
|
|
1497
1499
|
{
|
|
1498
1500
|
id: `${b}-step-${u.id}`,
|
|
1499
1501
|
step: u,
|
|
1500
1502
|
index: g,
|
|
1501
|
-
status: os(g,
|
|
1502
|
-
isInteractive: !!
|
|
1503
|
-
onStepClick:
|
|
1503
|
+
status: os(g, f, u.status),
|
|
1504
|
+
isInteractive: !!r,
|
|
1505
|
+
onStepClick: r,
|
|
1504
1506
|
isLast: g === n.length - 1
|
|
1505
1507
|
},
|
|
1506
1508
|
u.id
|
|
@@ -1523,42 +1525,42 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1523
1525
|
error: o,
|
|
1524
1526
|
label: e,
|
|
1525
1527
|
helperText: t,
|
|
1526
|
-
fullWidth:
|
|
1528
|
+
fullWidth: r = !1,
|
|
1527
1529
|
className: c,
|
|
1528
1530
|
id: l,
|
|
1529
1531
|
options: i,
|
|
1530
|
-
children:
|
|
1532
|
+
children: s,
|
|
1531
1533
|
...m
|
|
1532
1534
|
}) => {
|
|
1533
|
-
const b = W(),
|
|
1534
|
-
return /* @__PURE__ */
|
|
1535
|
-
e && /* @__PURE__ */ _("label", { htmlFor:
|
|
1535
|
+
const b = W(), f = l ?? `ds-select-${b}`, p = t ? `${f}-help` : void 0;
|
|
1536
|
+
return /* @__PURE__ */ y("div", { className: a(Z.wrapper, r && Z.fullWidth, c), children: [
|
|
1537
|
+
e && /* @__PURE__ */ _("label", { htmlFor: f, className: Z.label, children: e }),
|
|
1536
1538
|
/* @__PURE__ */ _(
|
|
1537
1539
|
"select",
|
|
1538
1540
|
{
|
|
1539
|
-
id:
|
|
1541
|
+
id: f,
|
|
1540
1542
|
className: a(Z.selectRoot, Z[n], o && Z.error),
|
|
1541
1543
|
"aria-describedby": p,
|
|
1542
1544
|
"aria-invalid": o || void 0,
|
|
1543
1545
|
...m,
|
|
1544
|
-
children: i ? i.map((u) => /* @__PURE__ */ _("option", { value: u.value, disabled: u.disabled, children: u.label }, u.value)) :
|
|
1546
|
+
children: i ? i.map((u) => /* @__PURE__ */ _("option", { value: u.value, disabled: u.disabled, children: u.label }, u.value)) : s
|
|
1545
1547
|
}
|
|
1546
1548
|
),
|
|
1547
1549
|
t && /* @__PURE__ */ _("span", { id: p, className: a(Z.helperText, o && Z.errorText), children: t })
|
|
1548
1550
|
] });
|
|
1549
|
-
}, ms = "_wrapper_196po_1", ps = "_container_196po_7", us = "_disabled_196po_15", bs = "_input_196po_20",
|
|
1551
|
+
}, ms = "_wrapper_196po_1", ps = "_container_196po_7", us = "_disabled_196po_15", bs = "_input_196po_20", fs = "_track_196po_27", ys = "_thumb_196po_46", hs = "_label_196po_62", gs = "_helperText_196po_69", X = {
|
|
1550
1552
|
wrapper: ms,
|
|
1551
1553
|
container: ps,
|
|
1552
1554
|
disabled: us,
|
|
1553
1555
|
input: bs,
|
|
1554
|
-
track:
|
|
1555
|
-
thumb:
|
|
1556
|
+
track: fs,
|
|
1557
|
+
thumb: ys,
|
|
1556
1558
|
label: hs,
|
|
1557
1559
|
helperText: gs
|
|
1558
|
-
},
|
|
1559
|
-
const l = W(), i =
|
|
1560
|
-
return /* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1560
|
+
}, fc = ({ label: n, helperText: o, className: e, disabled: t, id: r, ...c }) => {
|
|
1561
|
+
const l = W(), i = r ?? `ds-switch-${l}`, s = o ? `${i}-help` : void 0;
|
|
1562
|
+
return /* @__PURE__ */ y("div", { className: a(X.wrapper, e), children: [
|
|
1563
|
+
/* @__PURE__ */ y("label", { htmlFor: i, className: a(X.container, t && X.disabled), children: [
|
|
1562
1564
|
/* @__PURE__ */ _(
|
|
1563
1565
|
"input",
|
|
1564
1566
|
{
|
|
@@ -1567,14 +1569,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1567
1569
|
role: "switch",
|
|
1568
1570
|
disabled: t,
|
|
1569
1571
|
className: X.input,
|
|
1570
|
-
"aria-describedby":
|
|
1572
|
+
"aria-describedby": s,
|
|
1571
1573
|
...c
|
|
1572
1574
|
}
|
|
1573
1575
|
),
|
|
1574
1576
|
/* @__PURE__ */ _("span", { className: X.track, children: /* @__PURE__ */ _("span", { className: X.thumb }) }),
|
|
1575
1577
|
n && /* @__PURE__ */ _("span", { className: X.label, children: n })
|
|
1576
1578
|
] }),
|
|
1577
|
-
o && /* @__PURE__ */ _("span", { id:
|
|
1579
|
+
o && /* @__PURE__ */ _("span", { id: s, className: X.helperText, children: o })
|
|
1578
1580
|
] });
|
|
1579
1581
|
}, xs = "_wrapper_1w3cj_1", $s = "_table_1w3cj_8", vs = "_thead_1w3cj_17", ks = "_tbody_1w3cj_22", ws = "_tr_1w3cj_22", Ns = "_th_1w3cj_17", Is = "_td_1w3cj_40", js = "_striped_1w3cj_46", Cs = "_hoverable_1w3cj_50", Ts = "_dense_1w3cj_54", qs = "_loading_1w3cj_75", S = {
|
|
1580
1582
|
wrapper: xs,
|
|
@@ -1592,12 +1594,12 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1592
1594
|
"align-right": "_align-right_1w3cj_68",
|
|
1593
1595
|
"align-justify": "_align-justify_1w3cj_71",
|
|
1594
1596
|
loading: qs
|
|
1595
|
-
},
|
|
1597
|
+
}, yc = ({
|
|
1596
1598
|
children: n,
|
|
1597
1599
|
className: o,
|
|
1598
1600
|
striped: e,
|
|
1599
1601
|
hoverable: t,
|
|
1600
|
-
dense:
|
|
1602
|
+
dense: r,
|
|
1601
1603
|
isLoading: c,
|
|
1602
1604
|
...l
|
|
1603
1605
|
}) => /* @__PURE__ */ _("div", { className: a(S.wrapper, c && S.loading, o), children: /* @__PURE__ */ _(
|
|
@@ -1607,7 +1609,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1607
1609
|
S.table,
|
|
1608
1610
|
e && S.striped,
|
|
1609
1611
|
t && S.hoverable,
|
|
1610
|
-
|
|
1612
|
+
r && S.dense
|
|
1611
1613
|
),
|
|
1612
1614
|
"aria-busy": c || void 0,
|
|
1613
1615
|
...l,
|
|
@@ -1627,16 +1629,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1627
1629
|
defaultActiveId: o,
|
|
1628
1630
|
activeId: e,
|
|
1629
1631
|
onChange: t,
|
|
1630
|
-
className:
|
|
1632
|
+
className: r,
|
|
1631
1633
|
variant: c = "line",
|
|
1632
1634
|
id: l
|
|
1633
1635
|
}) => {
|
|
1634
|
-
const i = W(),
|
|
1636
|
+
const i = W(), s = l ?? `ds-tabs-${i}`, [m, b] = en(
|
|
1635
1637
|
o || (n.length > 0 ? n[0].id : "")
|
|
1636
|
-
),
|
|
1638
|
+
), f = e !== void 0 ? e : m, p = ln(null), u = (d, h) => {
|
|
1637
1639
|
h || (e === void 0 && b(d), t?.(d));
|
|
1638
1640
|
}, g = (d) => {
|
|
1639
|
-
const h = n.filter((v) => !v.disabled), j = h.findIndex((v) => v.id ===
|
|
1641
|
+
const h = n.filter((v) => !v.disabled), j = h.findIndex((v) => v.id === f);
|
|
1640
1642
|
let C = -1;
|
|
1641
1643
|
if (d.key === "ArrowRight" || d.key === "ArrowDown" ? C = (j + 1) % h.length : d.key === "ArrowLeft" || d.key === "ArrowUp" ? C = (j - 1 + h.length) % h.length : d.key === "Home" ? C = 0 : d.key === "End" && (C = h.length - 1), C !== -1) {
|
|
1642
1644
|
d.preventDefault();
|
|
@@ -1647,8 +1649,8 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1647
1649
|
(R) => R.getAttribute("data-id") === v
|
|
1648
1650
|
)?.focus();
|
|
1649
1651
|
}
|
|
1650
|
-
}, w = n.find((d) => d.id ===
|
|
1651
|
-
return /* @__PURE__ */
|
|
1652
|
+
}, w = n.find((d) => d.id === f);
|
|
1653
|
+
return /* @__PURE__ */ y("div", { id: s, className: a(Y.root, r), children: [
|
|
1652
1654
|
/* @__PURE__ */ _(
|
|
1653
1655
|
"div",
|
|
1654
1656
|
{
|
|
@@ -1657,14 +1659,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1657
1659
|
className: a(Y.tabList, c === "pill" && Y.pillList),
|
|
1658
1660
|
onKeyDown: g,
|
|
1659
1661
|
children: n.map((d) => {
|
|
1660
|
-
const h = d.id ===
|
|
1662
|
+
const h = d.id === f, j = !!d.disabled, C = j ? -1 : h ? 0 : -1;
|
|
1661
1663
|
return /* @__PURE__ */ _(
|
|
1662
1664
|
"button",
|
|
1663
1665
|
{
|
|
1664
1666
|
role: "tab",
|
|
1665
|
-
id: `${
|
|
1667
|
+
id: `${s}-tab-${d.id}`,
|
|
1666
1668
|
"aria-selected": h,
|
|
1667
|
-
"aria-controls": `${
|
|
1669
|
+
"aria-controls": `${s}-panel-${d.id}`,
|
|
1668
1670
|
"aria-disabled": j,
|
|
1669
1671
|
tabIndex: C,
|
|
1670
1672
|
disabled: j,
|
|
@@ -1687,8 +1689,8 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1687
1689
|
"div",
|
|
1688
1690
|
{
|
|
1689
1691
|
role: "tabpanel",
|
|
1690
|
-
id: `${
|
|
1691
|
-
"aria-labelledby": `${
|
|
1692
|
+
id: `${s}-panel-${f}`,
|
|
1693
|
+
"aria-labelledby": `${s}-tab-${f}`,
|
|
1692
1694
|
className: Y.tabPanel,
|
|
1693
1695
|
tabIndex: 0,
|
|
1694
1696
|
children: w?.content
|
|
@@ -1905,14 +1907,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1905
1907
|
variant: o = "body-md",
|
|
1906
1908
|
as: e,
|
|
1907
1909
|
align: t,
|
|
1908
|
-
weight:
|
|
1910
|
+
weight: r,
|
|
1909
1911
|
color: c,
|
|
1910
1912
|
noWrap: l,
|
|
1911
1913
|
className: i,
|
|
1912
|
-
padding:
|
|
1914
|
+
padding: s,
|
|
1913
1915
|
paddingX: m,
|
|
1914
1916
|
paddingY: b,
|
|
1915
|
-
paddingTop:
|
|
1917
|
+
paddingTop: f,
|
|
1916
1918
|
paddingBottom: p,
|
|
1917
1919
|
paddingLeft: u,
|
|
1918
1920
|
paddingRight: g,
|
|
@@ -1933,13 +1935,13 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1933
1935
|
T.root,
|
|
1934
1936
|
T[o],
|
|
1935
1937
|
t && T[t],
|
|
1936
|
-
|
|
1938
|
+
r && T[r],
|
|
1937
1939
|
c && T[`color-${c}`],
|
|
1938
1940
|
l && T.noWrap,
|
|
1939
|
-
|
|
1941
|
+
s !== void 0 && T[`p-${s}`],
|
|
1940
1942
|
m !== void 0 && T[`px-${m}`],
|
|
1941
1943
|
b !== void 0 && T[`py-${b}`],
|
|
1942
|
-
|
|
1944
|
+
f !== void 0 && T[`pt-${f}`],
|
|
1943
1945
|
p !== void 0 && T[`pb-${p}`],
|
|
1944
1946
|
u !== void 0 && T[`pl-${u}`],
|
|
1945
1947
|
g !== void 0 && T[`pr-${g}`],
|
|
@@ -1972,14 +1974,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1972
1974
|
error: o,
|
|
1973
1975
|
label: e,
|
|
1974
1976
|
helperText: t,
|
|
1975
|
-
fullWidth:
|
|
1977
|
+
fullWidth: r = !1,
|
|
1976
1978
|
className: c,
|
|
1977
1979
|
id: l,
|
|
1978
1980
|
rows: i = 4,
|
|
1979
|
-
...
|
|
1981
|
+
...s
|
|
1980
1982
|
}) => {
|
|
1981
|
-
const m = W(), b = l ?? `ds-textarea-${m}`,
|
|
1982
|
-
return /* @__PURE__ */
|
|
1983
|
+
const m = W(), b = l ?? `ds-textarea-${m}`, f = t ? `${b}-help` : void 0;
|
|
1984
|
+
return /* @__PURE__ */ y("div", { className: a(nn.wrapper, r && nn.fullWidth, c), children: [
|
|
1983
1985
|
e && /* @__PURE__ */ _("label", { htmlFor: b, className: nn.label, children: e }),
|
|
1984
1986
|
/* @__PURE__ */ _(
|
|
1985
1987
|
"textarea",
|
|
@@ -1987,19 +1989,19 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
1987
1989
|
id: b,
|
|
1988
1990
|
rows: i,
|
|
1989
1991
|
className: a(nn.textareaRoot, nn[n], o && nn.error),
|
|
1990
|
-
"aria-describedby":
|
|
1992
|
+
"aria-describedby": f,
|
|
1991
1993
|
"aria-invalid": o || void 0,
|
|
1992
|
-
...
|
|
1994
|
+
...s
|
|
1993
1995
|
}
|
|
1994
1996
|
),
|
|
1995
|
-
t && /* @__PURE__ */ _("span", { id:
|
|
1997
|
+
t && /* @__PURE__ */ _("span", { id: f, className: a(nn.helperText, o && nn.errorText), children: t })
|
|
1996
1998
|
] });
|
|
1997
|
-
}, pr = "_root_1kghr_1", ur = "_trigger_1kghr_6", br = "_tooltip_1kghr_10",
|
|
1999
|
+
}, pr = "_root_1kghr_1", ur = "_trigger_1kghr_6", br = "_tooltip_1kghr_10", fr = "_dark_1kghr_22", yr = "_light_1kghr_27", hr = "_visible_1kghr_34", gr = "_top_1kghr_39", xr = "_bottom_1kghr_45", $r = "_left_1kghr_51", vr = "_right_1kghr_57", pn = {
|
|
1998
2000
|
root: pr,
|
|
1999
2001
|
trigger: ur,
|
|
2000
2002
|
tooltip: br,
|
|
2001
|
-
dark:
|
|
2002
|
-
light:
|
|
2003
|
+
dark: fr,
|
|
2004
|
+
light: yr,
|
|
2003
2005
|
visible: hr,
|
|
2004
2006
|
top: gr,
|
|
2005
2007
|
bottom: xr,
|
|
@@ -2010,16 +2012,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2010
2012
|
children: o,
|
|
2011
2013
|
position: e = "top",
|
|
2012
2014
|
variant: t = "dark",
|
|
2013
|
-
delay:
|
|
2015
|
+
delay: r = 200,
|
|
2014
2016
|
className: c,
|
|
2015
2017
|
id: l
|
|
2016
2018
|
}) => {
|
|
2017
|
-
const [i,
|
|
2019
|
+
const [i, s] = en(!1), m = ln(null), b = W(), f = l ?? `ds-tooltip-${b}`, p = `${f}-content`, u = () => {
|
|
2018
2020
|
m.current = window.setTimeout(() => {
|
|
2019
|
-
|
|
2020
|
-
},
|
|
2021
|
+
s(!0);
|
|
2022
|
+
}, r);
|
|
2021
2023
|
}, g = () => {
|
|
2022
|
-
m.current && window.clearTimeout(m.current),
|
|
2024
|
+
m.current && window.clearTimeout(m.current), s(!1);
|
|
2023
2025
|
}, w = (h) => {
|
|
2024
2026
|
h.key === "Escape" && g();
|
|
2025
2027
|
}, d = Rn(o) ? (() => {
|
|
@@ -2028,10 +2030,10 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2028
2030
|
"aria-describedby": [h.props["aria-describedby"], p].filter(Boolean).join(" ")
|
|
2029
2031
|
});
|
|
2030
2032
|
})() : o;
|
|
2031
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ y(
|
|
2032
2034
|
"div",
|
|
2033
2035
|
{
|
|
2034
|
-
id:
|
|
2036
|
+
id: f,
|
|
2035
2037
|
className: a(pn.root, c),
|
|
2036
2038
|
onMouseEnter: u,
|
|
2037
2039
|
onMouseLeave: g,
|
|
@@ -2066,16 +2068,16 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2066
2068
|
headerTitle: o,
|
|
2067
2069
|
user: e,
|
|
2068
2070
|
navItems: t,
|
|
2069
|
-
activeNavId:
|
|
2071
|
+
activeNavId: r,
|
|
2070
2072
|
navActions: c,
|
|
2071
2073
|
children: l,
|
|
2072
2074
|
onLogin: i,
|
|
2073
|
-
onLogout:
|
|
2075
|
+
onLogout: s,
|
|
2074
2076
|
onCreateAccount: m,
|
|
2075
2077
|
onNavItemClick: b,
|
|
2076
|
-
className:
|
|
2078
|
+
className: f,
|
|
2077
2079
|
maxWidth: p = "75rem"
|
|
2078
|
-
}) => /* @__PURE__ */
|
|
2080
|
+
}) => /* @__PURE__ */ y("div", { className: a(qn.root, f), children: [
|
|
2079
2081
|
/* @__PURE__ */ _(
|
|
2080
2082
|
zn,
|
|
2081
2083
|
{
|
|
@@ -2083,7 +2085,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2083
2085
|
title: o,
|
|
2084
2086
|
user: e,
|
|
2085
2087
|
onLogin: i,
|
|
2086
|
-
onLogout:
|
|
2088
|
+
onLogout: s,
|
|
2087
2089
|
onCreateAccount: m,
|
|
2088
2090
|
maxWidth: p
|
|
2089
2091
|
}
|
|
@@ -2092,7 +2094,7 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2092
2094
|
s_,
|
|
2093
2095
|
{
|
|
2094
2096
|
items: t,
|
|
2095
|
-
activeId:
|
|
2097
|
+
activeId: r,
|
|
2096
2098
|
actions: c,
|
|
2097
2099
|
onItemClick: b,
|
|
2098
2100
|
maxWidth: p
|
|
@@ -2107,8 +2109,8 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2107
2109
|
title: qr,
|
|
2108
2110
|
description: zr,
|
|
2109
2111
|
content: Br
|
|
2110
|
-
}, Cc = ({ logo: n, title: o, description: e, children: t, className:
|
|
2111
|
-
/* @__PURE__ */
|
|
2112
|
+
}, Cc = ({ logo: n, title: o, description: e, children: t, className: r }) => /* @__PURE__ */ _(cn, { className: a(sn.root, r), children: /* @__PURE__ */ y(cn, { className: sn.card, children: [
|
|
2113
|
+
/* @__PURE__ */ y(cn, { className: sn.header, children: [
|
|
2112
2114
|
n && /* @__PURE__ */ _(cn, { className: sn.logo, children: n }),
|
|
2113
2115
|
o && /* @__PURE__ */ _(En, { variant: "h3", as: "h1", className: sn.title, children: o }),
|
|
2114
2116
|
e && /* @__PURE__ */ _(En, { variant: "body-sm", color: "subtle", className: sn.description, children: e })
|
|
@@ -2126,15 +2128,15 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2126
2128
|
headerTitle: o,
|
|
2127
2129
|
breadcrumbs: e,
|
|
2128
2130
|
actions: t,
|
|
2129
|
-
stats:
|
|
2131
|
+
stats: r,
|
|
2130
2132
|
children: c,
|
|
2131
2133
|
user: l,
|
|
2132
2134
|
onLogin: i,
|
|
2133
|
-
onLogout:
|
|
2135
|
+
onLogout: s,
|
|
2134
2136
|
onCreateAccount: m,
|
|
2135
2137
|
className: b,
|
|
2136
|
-
maxWidth:
|
|
2137
|
-
}) => /* @__PURE__ */
|
|
2138
|
+
maxWidth: f
|
|
2139
|
+
}) => /* @__PURE__ */ y("div", { className: a(on.root, b), children: [
|
|
2138
2140
|
/* @__PURE__ */ _(
|
|
2139
2141
|
zn,
|
|
2140
2142
|
{
|
|
@@ -2142,17 +2144,17 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2142
2144
|
title: o,
|
|
2143
2145
|
user: l,
|
|
2144
2146
|
onLogin: i,
|
|
2145
|
-
onLogout:
|
|
2147
|
+
onLogout: s,
|
|
2146
2148
|
onCreateAccount: m,
|
|
2147
|
-
maxWidth:
|
|
2149
|
+
maxWidth: f
|
|
2148
2150
|
}
|
|
2149
2151
|
),
|
|
2150
|
-
/* @__PURE__ */ _("main", { className: on.main, children: /* @__PURE__ */
|
|
2151
|
-
(e || t) && /* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ _("main", { className: on.main, children: /* @__PURE__ */ y("div", { className: on.container, children: [
|
|
2153
|
+
(e || t) && /* @__PURE__ */ y("div", { className: on.topBar, children: [
|
|
2152
2154
|
/* @__PURE__ */ _("div", { className: on.breadcrumbs, children: e }),
|
|
2153
2155
|
/* @__PURE__ */ _("div", { className: on.actions, children: t })
|
|
2154
2156
|
] }),
|
|
2155
|
-
|
|
2157
|
+
r && /* @__PURE__ */ _("div", { className: on.stats, children: r }),
|
|
2156
2158
|
/* @__PURE__ */ _("div", { className: on.content, children: c })
|
|
2157
2159
|
] }) })
|
|
2158
2160
|
] }), Mr = "_root_o4vai_1", Ar = "_main_o4vai_7", Fr = "_container_o4vai_11", Pr = "_layoutBody_o4vai_20", Kr = "_sidebar_o4vai_26", Or = "_content_o4vai_34", rn = {
|
|
@@ -2167,14 +2169,14 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2167
2169
|
headerTitle: o,
|
|
2168
2170
|
breadcrumbs: e,
|
|
2169
2171
|
sidebar: t,
|
|
2170
|
-
children:
|
|
2172
|
+
children: r,
|
|
2171
2173
|
user: c,
|
|
2172
2174
|
onLogin: l,
|
|
2173
2175
|
onLogout: i,
|
|
2174
|
-
onCreateAccount:
|
|
2176
|
+
onCreateAccount: s,
|
|
2175
2177
|
className: m,
|
|
2176
2178
|
maxWidth: b
|
|
2177
|
-
}) => /* @__PURE__ */
|
|
2179
|
+
}) => /* @__PURE__ */ y("div", { className: a(rn.root, m), children: [
|
|
2178
2180
|
/* @__PURE__ */ _(
|
|
2179
2181
|
zn,
|
|
2180
2182
|
{
|
|
@@ -2183,15 +2185,15 @@ const Fn = "_root_1s3bz_1", Pn = "_bordered_1s3bz_14", Kn = "_item_1s3bz_14", On
|
|
|
2183
2185
|
user: c,
|
|
2184
2186
|
onLogin: l,
|
|
2185
2187
|
onLogout: i,
|
|
2186
|
-
onCreateAccount:
|
|
2188
|
+
onCreateAccount: s,
|
|
2187
2189
|
maxWidth: b
|
|
2188
2190
|
}
|
|
2189
2191
|
),
|
|
2190
|
-
/* @__PURE__ */ _("main", { className: rn.main, children: /* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ _("main", { className: rn.main, children: /* @__PURE__ */ y("div", { className: rn.container, children: [
|
|
2191
2193
|
e && /* @__PURE__ */ _("div", { className: rn.breadcrumbs, children: e }),
|
|
2192
|
-
/* @__PURE__ */
|
|
2194
|
+
/* @__PURE__ */ y("div", { className: rn.layoutBody, children: [
|
|
2193
2195
|
t && /* @__PURE__ */ _("aside", { className: rn.sidebar, children: t }),
|
|
2194
|
-
/* @__PURE__ */ _("section", { className: rn.content, children:
|
|
2196
|
+
/* @__PURE__ */ _("section", { className: rn.content, children: r })
|
|
2195
2197
|
] })
|
|
2196
2198
|
] }) })
|
|
2197
2199
|
] });
|
|
@@ -2226,8 +2228,8 @@ export {
|
|
|
2226
2228
|
qc as SettingsLayout,
|
|
2227
2229
|
pc as Skeleton,
|
|
2228
2230
|
uc as Stepper,
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
+
fc as Switch,
|
|
2232
|
+
yc as Table,
|
|
2231
2233
|
gc as TableBody,
|
|
2232
2234
|
kc as TableCell,
|
|
2233
2235
|
xc as TableFooter,
|