@josephavelez77/base-design-system 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d, Fragment as xt } from "react/jsx-runtime";
|
|
2
2
|
import { FontAwesomeIcon as B } from "@fortawesome/react-fontawesome";
|
|
3
|
-
import M, { useState as I, useRef as A, useEffect as
|
|
3
|
+
import M, { useState as I, useRef as A, useEffect as V, useId as ce, useCallback as gt, useLayoutEffect as pn, createContext as hn, useContext as un } from "react";
|
|
4
4
|
import { faCircleInfo as $t, faCircleCheck as wt, faCircleExclamation as kt, faTriangleExclamation as Be, faXmark as Xe, faUser as mn, faSquareMinus as bn, faSquareCheck as vn, faChevronDown as qe, faChevronLeft as pt, faChevronRight as We, faChevronUp as zt, faMagnifyingGlass as Ct, faFilter as Ft, faInbox as At, faArrowUp as Gt, faArrowDown as Rt, faArrowsUpDown as Ut, faEllipsis as Ht, faCalendar as Vt, faCheck as Yt, faCircleXmark as fn, faTrash as gn, faFile as yn, faFileExcel as Nn, faFileWord as xn, faFilePdf as $n, faUpload as wn, faEyeSlash as kn, faEye as Cn, faMessage as In, faBell as Sn, faGear as jn, faEllipsisVertical as Tn } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { faSquare as Bn, faClock as qn, faCircleDot as En, faCircle as Dn } from "@fortawesome/free-regular-svg-icons";
|
|
6
6
|
import { createPortal as Kt } from "react-dom";
|
|
@@ -11,7 +11,7 @@ const Pn = "_icon_h7mjs_1", On = "_xs_h7mjs_18", Mn = "_small_h7mjs_22", Ln = "_
|
|
|
11
11
|
medium: Ln,
|
|
12
12
|
large: Wn,
|
|
13
13
|
xl: zn
|
|
14
|
-
},
|
|
14
|
+
}, W = ({
|
|
15
15
|
icon: t,
|
|
16
16
|
size: n = "medium",
|
|
17
17
|
color: a,
|
|
@@ -31,19 +31,19 @@ const Pn = "_icon_h7mjs_1", On = "_xs_h7mjs_18", Mn = "_small_h7mjs_22", Ln = "_
|
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
W.displayName = "Icon";
|
|
35
35
|
const Fn = "_iconButton_1h0xu_3", An = "_brandPrimary_1h0xu_29", Gn = "_brandSecondary_1h0xu_43", Rn = "_neutral_1h0xu_57", qt = {
|
|
36
36
|
iconButton: Fn,
|
|
37
37
|
brandPrimary: An,
|
|
38
38
|
brandSecondary: Gn,
|
|
39
39
|
neutral: Rn
|
|
40
|
-
},
|
|
40
|
+
}, K = M.forwardRef(
|
|
41
41
|
({ icon: t, variant: n = "neutral", iconSize: a = "medium", disabled: r, className: o, ...s }, l) => {
|
|
42
42
|
const i = [qt.iconButton, qt[n], o].filter(Boolean).join(" ");
|
|
43
|
-
return /* @__PURE__ */ e("button", { ref: l, type: "button", className: i, disabled: r, ...s, children: /* @__PURE__ */ e(
|
|
43
|
+
return /* @__PURE__ */ e("button", { ref: l, type: "button", className: i, disabled: r, ...s, children: /* @__PURE__ */ e(W, { icon: t, size: a }) });
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
K.displayName = "IconButton";
|
|
47
47
|
const Un = "_alert_i7cfd_3", Hn = "_content_i7cfd_13", Vn = "_leadingIcon_i7cfd_21", Yn = "_message_i7cfd_25", Kn = "_error_i7cfd_42", Zn = "_warning_i7cfd_50", Jn = "_success_i7cfd_58", Xn = "_info_i7cfd_66", Fe = {
|
|
48
48
|
alert: Un,
|
|
49
49
|
content: Hn,
|
|
@@ -72,11 +72,11 @@ const Un = "_alert_i7cfd_3", Hn = "_content_i7cfd_13", Vn = "_leadingIcon_i7cfd_
|
|
|
72
72
|
}, _ = [Fe.alert, Fe[t], o].filter(Boolean).join(" ");
|
|
73
73
|
return /* @__PURE__ */ d("div", { role: t === "error" || t === "warning" ? "alert" : "status", className: _, children: [
|
|
74
74
|
/* @__PURE__ */ d("div", { className: Fe.content, children: [
|
|
75
|
-
/* @__PURE__ */ e("span", { className: Fe.leadingIcon, children: /* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e("span", { className: Fe.leadingIcon, children: /* @__PURE__ */ e(W, { icon: Qn[t], size: "medium" }) }),
|
|
76
76
|
/* @__PURE__ */ e("p", { className: Fe.message, children: n })
|
|
77
77
|
] }),
|
|
78
78
|
a && /* @__PURE__ */ e(
|
|
79
|
-
|
|
79
|
+
K,
|
|
80
80
|
{
|
|
81
81
|
icon: Xe,
|
|
82
82
|
iconSize: "small",
|
|
@@ -110,7 +110,7 @@ const ta = "_avatar_8lt3g_3", na = "_small_8lt3g_19", aa = "_initials_8lt3g_26",
|
|
|
110
110
|
const i = [Ee.avatar, Ee[t], Ee[n], l].filter(Boolean).join(" ");
|
|
111
111
|
return /* @__PURE__ */ d("div", { className: i, "aria-label": t === "initials" ? a : void 0, children: [
|
|
112
112
|
t === "initials" && /* @__PURE__ */ e("span", { className: `${Ee.initialsText} ${Ee[`initialsText_${n}`]}`, children: a }),
|
|
113
|
-
t === "icon" && /* @__PURE__ */ e(
|
|
113
|
+
t === "icon" && /* @__PURE__ */ e(W, { icon: r, size: n === "default" ? "medium" : "small" }),
|
|
114
114
|
t === "image" && o && /* @__PURE__ */ e("img", { className: Ee.img, src: o, alt: s })
|
|
115
115
|
] });
|
|
116
116
|
};
|
|
@@ -143,9 +143,9 @@ const ma = "_wrapper_16e9j_3", ba = "_disabled_16e9j_10", va = "_hitArea_16e9j_1
|
|
|
143
143
|
}, Le = M.forwardRef(
|
|
144
144
|
({ label: t, required: n, disabled: a, indeterminate: r = !1, className: o, id: s, checked: l, defaultChecked: i, onChange: _, ...h }, c) => {
|
|
145
145
|
const p = l !== void 0, [u, m] = I(p ? l : i ?? !1), b = A(null);
|
|
146
|
-
|
|
146
|
+
V(() => {
|
|
147
147
|
p && m(l);
|
|
148
|
-
}, [l, p]),
|
|
148
|
+
}, [l, p]), V(() => {
|
|
149
149
|
const C = (c == null ? void 0 : c.current) ?? b.current;
|
|
150
150
|
C && (C.indeterminate = r);
|
|
151
151
|
}, [r, c]);
|
|
@@ -198,7 +198,7 @@ const xa = "_button_13dpe_3", $a = "_brandPrimary_13dpe_43", wa = "_primary_13dp
|
|
|
198
198
|
loading: Ba,
|
|
199
199
|
spinner: qa,
|
|
200
200
|
spin: Ea
|
|
201
|
-
},
|
|
201
|
+
}, H = M.forwardRef(
|
|
202
202
|
({
|
|
203
203
|
variant: t = "brandPrimary",
|
|
204
204
|
emphasis: n = "primary",
|
|
@@ -236,7 +236,7 @@ const xa = "_button_13dpe_3", $a = "_brandPrimary_13dpe_43", wa = "_primary_13dp
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
|
-
|
|
239
|
+
H.displayName = "Button";
|
|
240
240
|
const Da = "_picker_1ps7c_3", Pa = "_selectedDate_1ps7c_19", Oa = "_selectedDateText_1ps7c_27", Ma = "_calendarControls_1ps7c_37", La = "_monthSelector_1ps7c_46", Wa = "_monthLabel_1ps7c_57", za = "_navigation_1ps7c_64", Fa = "_navButton_1ps7c_70", Aa = "_calendar_1ps7c_37", Ga = "_dayOfWeekRow_1ps7c_100", Ra = "_dayOfWeek_1ps7c_100", Ua = "_weekRow_1ps7c_119", Ha = "_dayCell_1ps7c_123", Va = "_dayCellSelected_1ps7c_141", Ya = "_dayCellOutside_1ps7c_151", Ka = "_actions_1ps7c_162", Z = {
|
|
241
241
|
picker: Da,
|
|
242
242
|
selectedDate: Pa,
|
|
@@ -337,7 +337,7 @@ const Zt = ({
|
|
|
337
337
|
/* @__PURE__ */ d("div", { className: Z.calendar, children: [
|
|
338
338
|
/* @__PURE__ */ e("div", { className: Z.dayOfWeekRow, children: Za.map((y) => /* @__PURE__ */ e("span", { className: Z.dayOfWeek, children: y }, y)) }),
|
|
339
339
|
w.map((y, C) => /* @__PURE__ */ e("div", { className: Z.weekRow, children: y.map((j, P) => {
|
|
340
|
-
const
|
|
340
|
+
const z = Qa(j.date, p);
|
|
341
341
|
return /* @__PURE__ */ e(
|
|
342
342
|
"button",
|
|
343
343
|
{
|
|
@@ -345,11 +345,11 @@ const Zt = ({
|
|
|
345
345
|
className: [
|
|
346
346
|
Z.dayCell,
|
|
347
347
|
j.isCurrentMonth ? "" : Z.dayCellOutside,
|
|
348
|
-
|
|
348
|
+
z ? Z.dayCellSelected : ""
|
|
349
349
|
].filter(Boolean).join(" "),
|
|
350
350
|
onClick: () => f(j),
|
|
351
351
|
"aria-label": j.date.toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" }),
|
|
352
|
-
"aria-pressed":
|
|
352
|
+
"aria-pressed": z,
|
|
353
353
|
children: j.date.getDate()
|
|
354
354
|
},
|
|
355
355
|
P
|
|
@@ -357,9 +357,9 @@ const Zt = ({
|
|
|
357
357
|
}) }, C))
|
|
358
358
|
] }),
|
|
359
359
|
/* @__PURE__ */ d("div", { className: Z.actions, children: [
|
|
360
|
-
/* @__PURE__ */ e(
|
|
360
|
+
/* @__PURE__ */ e(H, { variant: "brandPrimary", emphasis: "tertiary", onClick: s, children: n }),
|
|
361
361
|
/* @__PURE__ */ e(
|
|
362
|
-
|
|
362
|
+
H,
|
|
363
363
|
{
|
|
364
364
|
variant: "brandPrimary",
|
|
365
365
|
emphasis: "tertiary",
|
|
@@ -427,7 +427,7 @@ const ar = "_menuItem_180cn_3", rr = "_selected_180cn_36", sr = "_label_180cn_58
|
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
xe.displayName = "MenuItem";
|
|
430
|
-
const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_21", dr = "_trigger_1g0hn_21", _r = "_triggerOpen_1g0hn_54", pr = "_triggerError_1g0hn_59", hr = "_triggerDisabled_1g0hn_68", ur = "_triggerContent_1g0hn_75", mr = "_triggerText_1g0hn_84", br = "_placeholder_1g0hn_96", vr = "_value_1g0hn_100", fr = "_chevron_1g0hn_106", gr = "_chevronOpen_1g0hn_117", yr = "_menuWrapper_1g0hn_127", Nr = "_disabled_1g0hn_140", xr = "_errorText_1g0hn_146", $r = "_hintText_1g0hn_147", wr = "_required_1g0hn_162",
|
|
430
|
+
const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_21", dr = "_trigger_1g0hn_21", _r = "_triggerOpen_1g0hn_54", pr = "_triggerError_1g0hn_59", hr = "_triggerDisabled_1g0hn_68", ur = "_triggerContent_1g0hn_75", mr = "_triggerText_1g0hn_84", br = "_placeholder_1g0hn_96", vr = "_value_1g0hn_100", fr = "_chevron_1g0hn_106", gr = "_chevronOpen_1g0hn_117", yr = "_menuWrapper_1g0hn_127", Nr = "_disabled_1g0hn_140", xr = "_errorText_1g0hn_146", $r = "_hintText_1g0hn_147", wr = "_required_1g0hn_162", Y = {
|
|
431
431
|
root: lr,
|
|
432
432
|
label: ir,
|
|
433
433
|
triggerWrapper: cr,
|
|
@@ -460,34 +460,34 @@ const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_
|
|
|
460
460
|
onChange: c
|
|
461
461
|
}) => {
|
|
462
462
|
const p = ce(), u = n ? `${p}-error` : void 0, m = a ? `${p}-hint` : void 0, b = s !== void 0, [g, f] = I(), w = b ? s : g, y = o.find((T) => T.value === w), [C, j] = I(!1), P = A(null);
|
|
463
|
-
|
|
463
|
+
V(() => {
|
|
464
464
|
if (!C) return;
|
|
465
465
|
const T = (he) => {
|
|
466
466
|
P.current && !P.current.contains(he.target) && j(!1);
|
|
467
467
|
};
|
|
468
468
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
469
469
|
}, [C]);
|
|
470
|
-
const
|
|
470
|
+
const z = () => {
|
|
471
471
|
i || j((T) => !T);
|
|
472
472
|
}, ne = (T) => {
|
|
473
473
|
b || f(T), c == null || c(T), j(!1);
|
|
474
474
|
}, L = i ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", Q = [
|
|
475
|
-
|
|
476
|
-
C ?
|
|
477
|
-
n ?
|
|
478
|
-
i ?
|
|
479
|
-
].filter(Boolean).join(" "),
|
|
475
|
+
Y.trigger,
|
|
476
|
+
C ? Y.triggerOpen : "",
|
|
477
|
+
n ? Y.triggerError : "",
|
|
478
|
+
i ? Y.triggerDisabled : ""
|
|
479
|
+
].filter(Boolean).join(" "), U = [Y.chevron, C ? Y.chevronOpen : ""].filter(Boolean).join(" ");
|
|
480
480
|
return /* @__PURE__ */ d(
|
|
481
481
|
"div",
|
|
482
482
|
{
|
|
483
483
|
ref: P,
|
|
484
|
-
className: [
|
|
484
|
+
className: [Y.root, i ? Y.disabled : "", h ?? ""].filter(Boolean).join(" "),
|
|
485
485
|
children: [
|
|
486
|
-
t && /* @__PURE__ */ d("label", { htmlFor: p, className:
|
|
486
|
+
t && /* @__PURE__ */ d("label", { htmlFor: p, className: Y.label, children: [
|
|
487
487
|
t,
|
|
488
|
-
_ && /* @__PURE__ */ e("span", { className:
|
|
488
|
+
_ && /* @__PURE__ */ e("span", { className: Y.required, "aria-hidden": !0, children: " *" })
|
|
489
489
|
] }),
|
|
490
|
-
/* @__PURE__ */ d("div", { className:
|
|
490
|
+
/* @__PURE__ */ d("div", { className: Y.triggerWrapper, children: [
|
|
491
491
|
/* @__PURE__ */ d(
|
|
492
492
|
"button",
|
|
493
493
|
{
|
|
@@ -498,17 +498,17 @@ const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_
|
|
|
498
498
|
"aria-haspopup": "listbox",
|
|
499
499
|
"aria-expanded": C,
|
|
500
500
|
"aria-describedby": [u, m].filter(Boolean).join(" ") || void 0,
|
|
501
|
-
onClick:
|
|
501
|
+
onClick: z,
|
|
502
502
|
children: [
|
|
503
|
-
/* @__PURE__ */ d("div", { className:
|
|
504
|
-
((y == null ? void 0 : y.icon) ?? r) && /* @__PURE__ */ e(
|
|
505
|
-
/* @__PURE__ */ e("span", { className: [
|
|
503
|
+
/* @__PURE__ */ d("div", { className: Y.triggerContent, children: [
|
|
504
|
+
((y == null ? void 0 : y.icon) ?? r) && /* @__PURE__ */ e(W, { icon: (y == null ? void 0 : y.icon) ?? r, color: L }),
|
|
505
|
+
/* @__PURE__ */ e("span", { className: [Y.triggerText, y ? Y.value : Y.placeholder].join(" "), children: y ? y.label : l })
|
|
506
506
|
] }),
|
|
507
|
-
/* @__PURE__ */ e("span", { className:
|
|
507
|
+
/* @__PURE__ */ e("span", { className: U, children: /* @__PURE__ */ e(W, { icon: qe, size: "xs" }) })
|
|
508
508
|
]
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
|
-
C && /* @__PURE__ */ e("div", { className:
|
|
511
|
+
C && /* @__PURE__ */ e("div", { className: Y.menuWrapper, children: /* @__PURE__ */ e(Ne, { role: "listbox", children: o.map((T) => /* @__PURE__ */ e(
|
|
512
512
|
xe,
|
|
513
513
|
{
|
|
514
514
|
label: T.label,
|
|
@@ -521,8 +521,8 @@ const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_
|
|
|
521
521
|
T.value
|
|
522
522
|
)) }) })
|
|
523
523
|
] }),
|
|
524
|
-
n && /* @__PURE__ */ e("span", { id: u, className:
|
|
525
|
-
a && !n && /* @__PURE__ */ e("span", { id: m, className:
|
|
524
|
+
n && /* @__PURE__ */ e("span", { id: u, className: Y.errorText, role: "alert", children: n }),
|
|
525
|
+
a && !n && /* @__PURE__ */ e("span", { id: m, className: Y.hintText, children: a })
|
|
526
526
|
]
|
|
527
527
|
}
|
|
528
528
|
);
|
|
@@ -563,35 +563,35 @@ const kr = "_root_lccwy_1", Cr = "_label_lccwy_10", Ir = "_inputWrapper_lccwy_21
|
|
|
563
563
|
className: m,
|
|
564
564
|
onChange: b
|
|
565
565
|
}, g) => {
|
|
566
|
-
const f = ce(), w = n ? `${f}-error` : void 0, y = a ? `${f}-hint` : void 0, C = l !== void 0, [j, P] = I(i),
|
|
566
|
+
const f = ce(), w = n ? `${f}-error` : void 0, y = a ? `${f}-hint` : void 0, C = l !== void 0, [j, P] = I(i), z = C ? l : j, ne = A(null), [L, Q] = I(!1), U = (X) => {
|
|
567
567
|
C || P(X), b == null || b(X);
|
|
568
568
|
}, T = () => {
|
|
569
|
-
const ee = (
|
|
570
|
-
|
|
569
|
+
const ee = (z ?? 0) + c;
|
|
570
|
+
U(h !== void 0 ? Math.min(h, ee) : ee);
|
|
571
571
|
}, he = () => {
|
|
572
|
-
const ee = (
|
|
573
|
-
|
|
572
|
+
const ee = (z ?? 0) - c;
|
|
573
|
+
U(_ !== void 0 ? Math.max(_, ee) : ee);
|
|
574
574
|
}, ge = (X) => {
|
|
575
575
|
const ee = X.target.value;
|
|
576
576
|
if (ee === "") {
|
|
577
|
-
|
|
577
|
+
U(void 0);
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
580
|
const x = parseFloat(ee);
|
|
581
|
-
isNaN(x) ||
|
|
581
|
+
isNaN(x) || U(x);
|
|
582
582
|
}, be = u ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", $e = [
|
|
583
583
|
J.inputWrapper,
|
|
584
584
|
L ? J.wrapperFocused : "",
|
|
585
585
|
n ? J.wrapperError : "",
|
|
586
586
|
u ? J.wrapperDisabled : ""
|
|
587
|
-
].filter(Boolean).join(" "), ve = _ !== void 0 && (
|
|
587
|
+
].filter(Boolean).join(" "), ve = _ !== void 0 && (z ?? 0) <= _, we = h !== void 0 && (z ?? 0) >= h;
|
|
588
588
|
return /* @__PURE__ */ d("div", { className: [J.root, u ? J.disabled : "", m ?? ""].filter(Boolean).join(" "), children: [
|
|
589
589
|
t && /* @__PURE__ */ d("label", { htmlFor: f, className: J.label, children: [
|
|
590
590
|
t,
|
|
591
591
|
s && /* @__PURE__ */ e("span", { className: J.required, "aria-hidden": !0, children: " *" })
|
|
592
592
|
] }),
|
|
593
593
|
/* @__PURE__ */ d("div", { className: $e, children: [
|
|
594
|
-
r && /* @__PURE__ */ e(
|
|
594
|
+
r && /* @__PURE__ */ e(W, { icon: r, color: be }),
|
|
595
595
|
/* @__PURE__ */ e(
|
|
596
596
|
"input",
|
|
597
597
|
{
|
|
@@ -601,7 +601,7 @@ const kr = "_root_lccwy_1", Cr = "_label_lccwy_10", Ir = "_inputWrapper_lccwy_21
|
|
|
601
601
|
id: f,
|
|
602
602
|
type: "number",
|
|
603
603
|
className: J.input,
|
|
604
|
-
value:
|
|
604
|
+
value: z ?? "",
|
|
605
605
|
placeholder: p,
|
|
606
606
|
min: _,
|
|
607
607
|
max: h,
|
|
@@ -614,9 +614,9 @@ const kr = "_root_lccwy_1", Cr = "_label_lccwy_10", Ir = "_inputWrapper_lccwy_21
|
|
|
614
614
|
onBlur: () => Q(!1)
|
|
615
615
|
}
|
|
616
616
|
),
|
|
617
|
-
o &&
|
|
617
|
+
o && z !== void 0 && /* @__PURE__ */ e("span", { className: J.suffix, children: o }),
|
|
618
618
|
n ? /* @__PURE__ */ e(
|
|
619
|
-
|
|
619
|
+
W,
|
|
620
620
|
{
|
|
621
621
|
icon: Be,
|
|
622
622
|
className: J.errorIcon,
|
|
@@ -709,7 +709,7 @@ const Fr = "_pagination_pqktq_3", Ar = "_pageSizeSection_pqktq_12", Gr = "_label
|
|
|
709
709
|
/* @__PURE__ */ e("span", { className: ie.divider, "aria-hidden": !0 }),
|
|
710
710
|
/* @__PURE__ */ d("div", { className: ie.navSection, children: [
|
|
711
711
|
/* @__PURE__ */ e(
|
|
712
|
-
|
|
712
|
+
H,
|
|
713
713
|
{
|
|
714
714
|
variant: "brandPrimary",
|
|
715
715
|
emphasis: "tertiary",
|
|
@@ -739,7 +739,7 @@ const Fr = "_pagination_pqktq_3", Ar = "_pageSizeSection_pqktq_12", Gr = "_label
|
|
|
739
739
|
] })
|
|
740
740
|
] }),
|
|
741
741
|
/* @__PURE__ */ e(
|
|
742
|
-
|
|
742
|
+
H,
|
|
743
743
|
{
|
|
744
744
|
variant: "brandPrimary",
|
|
745
745
|
emphasis: "tertiary",
|
|
@@ -761,7 +761,7 @@ const Qt = ({
|
|
|
761
761
|
className: r
|
|
762
762
|
}) => /* @__PURE__ */ d("div", { className: [ie.simplePagination, r ?? ""].filter(Boolean).join(" "), children: [
|
|
763
763
|
/* @__PURE__ */ e(
|
|
764
|
-
|
|
764
|
+
H,
|
|
765
765
|
{
|
|
766
766
|
variant: "brandPrimary",
|
|
767
767
|
emphasis: "tertiary",
|
|
@@ -778,7 +778,7 @@ const Qt = ({
|
|
|
778
778
|
n
|
|
779
779
|
] }),
|
|
780
780
|
/* @__PURE__ */ e(
|
|
781
|
-
|
|
781
|
+
H,
|
|
782
782
|
{
|
|
783
783
|
variant: "brandPrimary",
|
|
784
784
|
emphasis: "tertiary",
|
|
@@ -827,7 +827,7 @@ const rs = "_track_gkwaj_3", ss = "_checked_gkwaj_20", os = "_disabled_gkwaj_26"
|
|
|
827
827
|
}, St = M.forwardRef(
|
|
828
828
|
({ checked: t, defaultChecked: n, disabled: a, onChange: r, className: o, id: s, ...l }, i) => {
|
|
829
829
|
const _ = t !== void 0, [h, c] = I(_ ? t : n ?? !1), p = A(null);
|
|
830
|
-
|
|
830
|
+
V(() => {
|
|
831
831
|
_ && c(t);
|
|
832
832
|
}, [t, _]);
|
|
833
833
|
const u = (b) => {
|
|
@@ -918,7 +918,7 @@ function Xs({
|
|
|
918
918
|
onClose: s
|
|
919
919
|
}) {
|
|
920
920
|
const l = r === a, i = A(null), _ = n(t);
|
|
921
|
-
return
|
|
921
|
+
return V(() => {
|
|
922
922
|
if (!l) return;
|
|
923
923
|
const h = (c) => {
|
|
924
924
|
var p;
|
|
@@ -927,7 +927,7 @@ function Xs({
|
|
|
927
927
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
928
928
|
}, [l, s]), /* @__PURE__ */ d("div", { ref: i, className: $.overflowContainer, children: [
|
|
929
929
|
/* @__PURE__ */ e(
|
|
930
|
-
|
|
930
|
+
K,
|
|
931
931
|
{
|
|
932
932
|
icon: Ht,
|
|
933
933
|
variant: "brandPrimary",
|
|
@@ -960,7 +960,7 @@ function Qs({
|
|
|
960
960
|
rowId: i
|
|
961
961
|
}) {
|
|
962
962
|
const _ = r === a, h = A(null), c = ye(t, n.accessor), p = n.formatDate ?? Js;
|
|
963
|
-
return
|
|
963
|
+
return V(() => {
|
|
964
964
|
if (!_) return;
|
|
965
965
|
const u = (m) => {
|
|
966
966
|
var b;
|
|
@@ -1015,9 +1015,9 @@ function eo({
|
|
|
1015
1015
|
onPageChange: C,
|
|
1016
1016
|
onPageSizeChange: j,
|
|
1017
1017
|
pageSizeOptions: P,
|
|
1018
|
-
className:
|
|
1018
|
+
className: z
|
|
1019
1019
|
}) {
|
|
1020
|
-
const [ne, L] = I(null), [Q,
|
|
1020
|
+
const [ne, L] = I(null), [Q, U] = I(null), T = gt(() => L(null), []), he = gt(() => U(null), []), ge = t.some((v) => v.type === "row-select"), be = n.map(a), $e = (p == null ? void 0 : p.size) ?? 0, ve = be.length > 0 && be.every((v) => p == null ? void 0 : p.has(v)), we = $e > 0 && !ve, X = () => {
|
|
1021
1021
|
u && u(ve ? /* @__PURE__ */ new Set() : new Set(be));
|
|
1022
1022
|
}, ee = (v, q) => {
|
|
1023
1023
|
if (!u) return;
|
|
@@ -1105,7 +1105,7 @@ function eo({
|
|
|
1105
1105
|
col: v,
|
|
1106
1106
|
cellId: E,
|
|
1107
1107
|
openCellId: Q,
|
|
1108
|
-
onOpen:
|
|
1108
|
+
onOpen: U,
|
|
1109
1109
|
onClose: he,
|
|
1110
1110
|
onRowChange: r,
|
|
1111
1111
|
rowId: O
|
|
@@ -1189,7 +1189,7 @@ function eo({
|
|
|
1189
1189
|
);
|
|
1190
1190
|
}
|
|
1191
1191
|
}, k = (v) => v.type === "row-select" ? `${$.td} ${$.tdCheckbox}` : v.type === "overflow" ? `${$.td} ${$.tdOverflow}` : v.type === "checkbox" || v.type === "switch" ? `${$.td} ${$.tdCenter}` : v.type === "text" || v.type === "number" || v.type === "select" || v.type === "date" ? `${$.td} ${$.tdEditable}` : $.td, fe = (v) => v.type === "row-select" || v.type === "overflow" ? null : v.type === "checkbox" || v.type === "switch" ? /* @__PURE__ */ e(Je, { height: 20, width: 36 }) : v.type === "user" ? /* @__PURE__ */ e(Je, { height: 16, width: 120 }) : /* @__PURE__ */ e(Je, { height: 16, width: "70%" });
|
|
1192
|
-
return /* @__PURE__ */ d("div", { className: [$.wrapper,
|
|
1192
|
+
return /* @__PURE__ */ d("div", { className: [$.wrapper, z ?? ""].filter(Boolean).join(" "), children: [
|
|
1193
1193
|
(h || c) && /* @__PURE__ */ d("div", { className: $.actionBar, children: [
|
|
1194
1194
|
h && /* @__PURE__ */ d("div", { className: $.searchWrapper, children: [
|
|
1195
1195
|
/* @__PURE__ */ e(B, { icon: Ct, className: $.searchIcon, "aria-hidden": !0 }),
|
|
@@ -1205,7 +1205,7 @@ function eo({
|
|
|
1205
1205
|
}
|
|
1206
1206
|
)
|
|
1207
1207
|
] }),
|
|
1208
|
-
c && /* @__PURE__ */ e("div", { className: $.filterWrapper, children: /* @__PURE__ */ e(
|
|
1208
|
+
c && /* @__PURE__ */ e("div", { className: $.filterWrapper, children: /* @__PURE__ */ e(K, { icon: Ft, variant: "brandPrimary", "aria-label": "Filter", onClick: c }) })
|
|
1209
1209
|
] }),
|
|
1210
1210
|
/* @__PURE__ */ e("div", { className: $.tableScroll, children: /* @__PURE__ */ d("table", { className: $.table, children: [
|
|
1211
1211
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: $.headerRow, children: t.map(D) }) }),
|
|
@@ -1332,7 +1332,7 @@ const bo = "_splitButton_1kstx_3", vo = "_btn_1kstx_12", fo = "_main_1kstx_55",
|
|
|
1332
1332
|
className: l
|
|
1333
1333
|
}) => {
|
|
1334
1334
|
const [i, _] = I(!1), h = A(null);
|
|
1335
|
-
|
|
1335
|
+
V(() => {
|
|
1336
1336
|
if (!i) return;
|
|
1337
1337
|
const p = (m) => {
|
|
1338
1338
|
h.current && !h.current.contains(m.target) && _(!1);
|
|
@@ -1469,7 +1469,7 @@ function Jo({
|
|
|
1469
1469
|
onClose: a
|
|
1470
1470
|
}) {
|
|
1471
1471
|
const r = A(null), o = n.getBoundingClientRect();
|
|
1472
|
-
return
|
|
1472
|
+
return V(() => {
|
|
1473
1473
|
const s = (l) => {
|
|
1474
1474
|
var i;
|
|
1475
1475
|
!((i = r.current) != null && i.contains(l.target)) && !n.contains(l.target) && a();
|
|
@@ -1586,7 +1586,7 @@ const Xo = ({ item: t, collapsed: n, flyoutOpen: a, onOpenFlyout: r, onCloseFlyo
|
|
|
1586
1586
|
!s && /* @__PURE__ */ e("div", { className: F.logoMark, "aria-hidden": !0 }),
|
|
1587
1587
|
!s && /* @__PURE__ */ e("span", { className: F.logoName, children: t }),
|
|
1588
1588
|
/* @__PURE__ */ e(
|
|
1589
|
-
|
|
1589
|
+
K,
|
|
1590
1590
|
{
|
|
1591
1591
|
icon: s ? We : pt,
|
|
1592
1592
|
variant: "brandPrimary",
|
|
@@ -1784,8 +1784,8 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1784
1784
|
className: c,
|
|
1785
1785
|
onChange: p
|
|
1786
1786
|
}) => {
|
|
1787
|
-
const u = ce(), m = n ? `${u}-error` : void 0, b = a ? `${u}-hint` : void 0, g = s !== void 0, [f, w] = I(l), y = g ? s ?? [] : f, [C, j] = I(!1), [P,
|
|
1788
|
-
|
|
1787
|
+
const u = ce(), m = n ? `${u}-error` : void 0, b = a ? `${u}-hint` : void 0, g = s !== void 0, [f, w] = I(l), y = g ? s ?? [] : f, [C, j] = I(!1), [P, z] = I(null), ne = A(null), L = A(null), Q = A([]), U = A(null), T = o.filter((N) => y.includes(N.value)), he = T.map((N) => N.value).join(",");
|
|
1788
|
+
V(() => {
|
|
1789
1789
|
if (!C) return;
|
|
1790
1790
|
const N = (k) => {
|
|
1791
1791
|
ne.current && !ne.current.contains(k.target) && j(!1);
|
|
@@ -1793,12 +1793,12 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1793
1793
|
return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
1794
1794
|
}, [C]), pn(() => {
|
|
1795
1795
|
if (!L.current || T.length === 0) {
|
|
1796
|
-
|
|
1796
|
+
z(T.length);
|
|
1797
1797
|
return;
|
|
1798
1798
|
}
|
|
1799
1799
|
const N = () => {
|
|
1800
1800
|
var E;
|
|
1801
|
-
const fe = L.current.offsetWidth, v = ((E =
|
|
1801
|
+
const fe = L.current.offsetWidth, v = ((E = U.current) == null ? void 0 : E.offsetWidth) ?? 40;
|
|
1802
1802
|
let q = 0, O = 0;
|
|
1803
1803
|
for (let G = 0; G < T.length; G++) {
|
|
1804
1804
|
const Qe = Q.current[G];
|
|
@@ -1812,7 +1812,7 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1812
1812
|
else
|
|
1813
1813
|
break;
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1815
|
+
z(O);
|
|
1816
1816
|
};
|
|
1817
1817
|
N();
|
|
1818
1818
|
const k = new ResizeObserver(N);
|
|
@@ -1861,7 +1861,7 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1861
1861
|
onKeyDown: be,
|
|
1862
1862
|
children: [
|
|
1863
1863
|
/* @__PURE__ */ d("div", { className: R.triggerContent, children: [
|
|
1864
|
-
r && /* @__PURE__ */ e(
|
|
1864
|
+
r && /* @__PURE__ */ e(W, { icon: r, color: ee }),
|
|
1865
1865
|
T.length === 0 ? /* @__PURE__ */ e("span", { className: R.placeholder, children: i }) : /* @__PURE__ */ d("div", { ref: L, className: R.chipArea, children: [
|
|
1866
1866
|
/* @__PURE__ */ d("div", { className: R.measureContainer, "aria-hidden": !0, children: [
|
|
1867
1867
|
T.map((N, k) => /* @__PURE__ */ e(
|
|
@@ -1874,7 +1874,7 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1874
1874
|
},
|
|
1875
1875
|
N.value
|
|
1876
1876
|
)),
|
|
1877
|
-
/* @__PURE__ */ d("span", { ref:
|
|
1877
|
+
/* @__PURE__ */ d("span", { ref: U, className: R.overflowChip, children: [
|
|
1878
1878
|
"+",
|
|
1879
1879
|
T.length
|
|
1880
1880
|
] })
|
|
@@ -1894,7 +1894,7 @@ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", v
|
|
|
1894
1894
|
] })
|
|
1895
1895
|
] })
|
|
1896
1896
|
] }),
|
|
1897
|
-
/* @__PURE__ */ e("span", { className: X, children: /* @__PURE__ */ e(
|
|
1897
|
+
/* @__PURE__ */ e("span", { className: X, children: /* @__PURE__ */ e(W, { icon: qe, size: "xs" }) })
|
|
1898
1898
|
]
|
|
1899
1899
|
}
|
|
1900
1900
|
),
|
|
@@ -1974,10 +1974,10 @@ const Dl = "_root_1wacy_1", Pl = "_label_1wacy_10", Ol = "_required_1wacy_19", M
|
|
|
1974
1974
|
onClick: c,
|
|
1975
1975
|
children: [
|
|
1976
1976
|
/* @__PURE__ */ d("div", { className: ae.triggerContent, children: [
|
|
1977
|
-
r && /* @__PURE__ */ e(
|
|
1977
|
+
r && /* @__PURE__ */ e(W, { icon: r, color: g }),
|
|
1978
1978
|
/* @__PURE__ */ e("span", { className: [ae.triggerText, b ? ae.value : ae.placeholder].join(" "), children: b ?? s })
|
|
1979
1979
|
] }),
|
|
1980
|
-
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
1980
|
+
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: /* @__PURE__ */ e(W, { icon: Vt, color: "var(--icon-color-static-brand-primary)" }) })
|
|
1981
1981
|
]
|
|
1982
1982
|
}
|
|
1983
1983
|
),
|
|
@@ -2044,10 +2044,10 @@ const Kl = "_root_1wacy_1", Zl = "_label_1wacy_10", Jl = "_required_1wacy_19", X
|
|
|
2044
2044
|
onClick: p,
|
|
2045
2045
|
children: [
|
|
2046
2046
|
/* @__PURE__ */ d("div", { className: re.triggerContent, children: [
|
|
2047
|
-
r && /* @__PURE__ */ e(
|
|
2047
|
+
r && /* @__PURE__ */ e(W, { icon: r, color: f }),
|
|
2048
2048
|
/* @__PURE__ */ e("span", { className: [re.triggerText, g ? re.value : re.placeholder].join(" "), children: g ?? s })
|
|
2049
2049
|
] }),
|
|
2050
|
-
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
2050
|
+
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: /* @__PURE__ */ e(W, { icon: qn, color: "var(--icon-color-static-brand-primary)" }) })
|
|
2051
2051
|
]
|
|
2052
2052
|
}
|
|
2053
2053
|
),
|
|
@@ -2102,8 +2102,8 @@ const nn = hn(null), ui = () => un(nn), mi = "_accordion_oer2r_3", bi = "_header
|
|
|
2102
2102
|
if (m)
|
|
2103
2103
|
u.onItemToggle(h, u.openId !== h);
|
|
2104
2104
|
else {
|
|
2105
|
-
const
|
|
2106
|
-
b || f(
|
|
2105
|
+
const z = !w;
|
|
2106
|
+
b || f(z), l == null || l(z);
|
|
2107
2107
|
}
|
|
2108
2108
|
}, C = [se.accordion, _].filter(Boolean).join(" "), j = [se.chevron, w ? se.chevronExpanded : ""].filter(Boolean).join(" "), P = [se.body, w ? se.bodyExpanded : ""].filter(Boolean).join(" ");
|
|
2109
2109
|
return /* @__PURE__ */ d("div", { className: C, children: [
|
|
@@ -2119,13 +2119,13 @@ const nn = hn(null), ui = () => un(nn), mi = "_accordion_oer2r_3", bi = "_header
|
|
|
2119
2119
|
"aria-controls": c,
|
|
2120
2120
|
children: [
|
|
2121
2121
|
/* @__PURE__ */ d("div", { className: se.leftContent, children: [
|
|
2122
|
-
a && /* @__PURE__ */ e("span", { className: se.leadingIcon, children: /* @__PURE__ */ e(
|
|
2122
|
+
a && /* @__PURE__ */ e("span", { className: se.leadingIcon, children: /* @__PURE__ */ e(W, { icon: a, size: "medium" }) }),
|
|
2123
2123
|
/* @__PURE__ */ d("div", { className: se.textContent, children: [
|
|
2124
2124
|
/* @__PURE__ */ e("span", { className: se.title, children: t }),
|
|
2125
2125
|
n && /* @__PURE__ */ e("span", { className: se.subtitle, children: n })
|
|
2126
2126
|
] })
|
|
2127
2127
|
] }),
|
|
2128
|
-
/* @__PURE__ */ e("span", { className: j, children: /* @__PURE__ */ e(
|
|
2128
|
+
/* @__PURE__ */ e("span", { className: j, children: /* @__PURE__ */ e(W, { icon: qe, size: "small" }) })
|
|
2129
2129
|
]
|
|
2130
2130
|
}
|
|
2131
2131
|
),
|
|
@@ -2163,18 +2163,18 @@ const qi = "_root_1tici_1", Ei = "_label_1tici_10", Di = "_inputWrapper_1tici_21
|
|
|
2163
2163
|
}, C = (L) => {
|
|
2164
2164
|
w(!1), _ == null || _(L);
|
|
2165
2165
|
}, j = () => {
|
|
2166
|
-
var
|
|
2166
|
+
var U;
|
|
2167
2167
|
const L = g.current;
|
|
2168
2168
|
if (!L) return;
|
|
2169
|
-
const Q = (
|
|
2169
|
+
const Q = (U = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : U.set;
|
|
2170
2170
|
Q == null || Q.call(L, ""), L.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
2171
|
-
}, P = l ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)",
|
|
2171
|
+
}, P = l ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", z = [
|
|
2172
2172
|
ue.inputWrapper,
|
|
2173
2173
|
f ? ue.wrapperFocused : "",
|
|
2174
2174
|
n ? ue.wrapperError : "",
|
|
2175
2175
|
l ? ue.wrapperDisabled : ""
|
|
2176
|
-
].filter(Boolean).join(" "), ne = n ? /* @__PURE__ */ e(
|
|
2177
|
-
|
|
2176
|
+
].filter(Boolean).join(" "), ne = n ? /* @__PURE__ */ e(W, { icon: Be, color: "var(--icon-color-static-state-error)" }) : f ? /* @__PURE__ */ e(
|
|
2177
|
+
K,
|
|
2178
2178
|
{
|
|
2179
2179
|
icon: fn,
|
|
2180
2180
|
variant: "brandPrimary",
|
|
@@ -2185,14 +2185,14 @@ const qi = "_root_1tici_1", Ei = "_label_1tici_10", Di = "_inputWrapper_1tici_21
|
|
|
2185
2185
|
L.preventDefault(), j();
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
) : o ? /* @__PURE__ */ e(
|
|
2188
|
+
) : o ? /* @__PURE__ */ e(W, { icon: o, color: P }) : null;
|
|
2189
2189
|
return /* @__PURE__ */ d("div", { className: [ue.root, l ? ue.disabled : "", s ?? ""].filter(Boolean).join(" "), children: [
|
|
2190
2190
|
t && /* @__PURE__ */ d("label", { htmlFor: u, className: ue.label, children: [
|
|
2191
2191
|
t,
|
|
2192
2192
|
h.required && /* @__PURE__ */ e("span", { className: ue.required, "aria-hidden": !0, children: " *" })
|
|
2193
2193
|
] }),
|
|
2194
|
-
/* @__PURE__ */ d("div", { className:
|
|
2195
|
-
r && /* @__PURE__ */ e(
|
|
2194
|
+
/* @__PURE__ */ d("div", { className: z, children: [
|
|
2195
|
+
r && /* @__PURE__ */ e(W, { icon: r, color: P }),
|
|
2196
2196
|
/* @__PURE__ */ e(
|
|
2197
2197
|
"input",
|
|
2198
2198
|
{
|
|
@@ -2261,7 +2261,7 @@ const Gi = "_scrim_1o2za_3", Ri = "_dialog_1o2za_15", Ui = "_xs_1o2za_28", Hi =
|
|
|
2261
2261
|
r && /* @__PURE__ */ e("p", { className: me.subtitle, children: r })
|
|
2262
2262
|
] }),
|
|
2263
2263
|
o && /* @__PURE__ */ e(
|
|
2264
|
-
|
|
2264
|
+
K,
|
|
2265
2265
|
{
|
|
2266
2266
|
icon: Xe,
|
|
2267
2267
|
variant: "brandPrimary",
|
|
@@ -2273,22 +2273,22 @@ const Gi = "_scrim_1o2za_3", Ri = "_dialog_1o2za_15", Ui = "_xs_1o2za_28", Hi =
|
|
|
2273
2273
|
/* @__PURE__ */ e("div", { className: me.content, children: l ?? (s && /* @__PURE__ */ e("p", { className: me.contentText, children: s })) }),
|
|
2274
2274
|
(i || _) && /* @__PURE__ */ d("div", { className: me.actions, children: [
|
|
2275
2275
|
_ && /* @__PURE__ */ e(
|
|
2276
|
-
|
|
2276
|
+
H,
|
|
2277
2277
|
{
|
|
2278
2278
|
variant: _.variant ?? "brandPrimary",
|
|
2279
2279
|
emphasis: "tertiary",
|
|
2280
|
-
leadingIcon: _.leadingIcon && /* @__PURE__ */ e(
|
|
2280
|
+
leadingIcon: _.leadingIcon && /* @__PURE__ */ e(W, { icon: _.leadingIcon }),
|
|
2281
2281
|
onClick: _.onClick,
|
|
2282
2282
|
disabled: _.disabled,
|
|
2283
2283
|
children: _.label
|
|
2284
2284
|
}
|
|
2285
2285
|
),
|
|
2286
2286
|
i && /* @__PURE__ */ e(
|
|
2287
|
-
|
|
2287
|
+
H,
|
|
2288
2288
|
{
|
|
2289
2289
|
variant: i.variant ?? "brandPrimary",
|
|
2290
2290
|
emphasis: "primary",
|
|
2291
|
-
leadingIcon: i.leadingIcon && /* @__PURE__ */ e(
|
|
2291
|
+
leadingIcon: i.leadingIcon && /* @__PURE__ */ e(W, { icon: i.leadingIcon }),
|
|
2292
2292
|
onClick: i.onClick,
|
|
2293
2293
|
disabled: i.disabled,
|
|
2294
2294
|
children: i.label
|
|
@@ -2327,7 +2327,7 @@ const rc = "_scrim_rhrqn_25", sc = "_scrimEnter_rhrqn_32", oc = "_scrimExit_rhrq
|
|
|
2327
2327
|
className: h
|
|
2328
2328
|
}) => {
|
|
2329
2329
|
const c = ce(), [p, u] = I(t), [m, b] = I(!1);
|
|
2330
|
-
|
|
2330
|
+
V(() => {
|
|
2331
2331
|
t ? (u(!0), b(!1)) : p && b(!0);
|
|
2332
2332
|
}, [t]);
|
|
2333
2333
|
const g = () => {
|
|
@@ -2349,7 +2349,7 @@ const rc = "_scrim_rhrqn_25", sc = "_scrimEnter_rhrqn_32", oc = "_scrimExit_rhrq
|
|
|
2349
2349
|
r && /* @__PURE__ */ e("p", { className: oe.subtitle, children: r })
|
|
2350
2350
|
] }),
|
|
2351
2351
|
o && /* @__PURE__ */ e(
|
|
2352
|
-
|
|
2352
|
+
K,
|
|
2353
2353
|
{
|
|
2354
2354
|
icon: Xe,
|
|
2355
2355
|
variant: "brandPrimary",
|
|
@@ -2361,7 +2361,7 @@ const rc = "_scrim_rhrqn_25", sc = "_scrimEnter_rhrqn_32", oc = "_scrimExit_rhrq
|
|
|
2361
2361
|
/* @__PURE__ */ e("div", { className: oe.content, children: l ?? (s && /* @__PURE__ */ e("p", { className: oe.contentText, children: s })) }),
|
|
2362
2362
|
(i || _) && /* @__PURE__ */ d("div", { className: oe.actions, children: [
|
|
2363
2363
|
_ && /* @__PURE__ */ e(
|
|
2364
|
-
|
|
2364
|
+
H,
|
|
2365
2365
|
{
|
|
2366
2366
|
variant: "brandPrimary",
|
|
2367
2367
|
emphasis: "tertiary",
|
|
@@ -2371,7 +2371,7 @@ const rc = "_scrim_rhrqn_25", sc = "_scrimEnter_rhrqn_32", oc = "_scrimExit_rhrq
|
|
|
2371
2371
|
}
|
|
2372
2372
|
),
|
|
2373
2373
|
i && /* @__PURE__ */ e(
|
|
2374
|
-
|
|
2374
|
+
H,
|
|
2375
2375
|
{
|
|
2376
2376
|
variant: "brandPrimary",
|
|
2377
2377
|
emphasis: "primary",
|
|
@@ -2559,7 +2559,7 @@ const Ac = ({
|
|
|
2559
2559
|
n === "uploading" ? /* @__PURE__ */ e(on, { value: a }) : /* @__PURE__ */ e("span", { className: Ue.fileSize, children: r !== void 0 ? Fc(r) : "" })
|
|
2560
2560
|
] }),
|
|
2561
2561
|
n === "uploaded" && /* @__PURE__ */ e(
|
|
2562
|
-
|
|
2562
|
+
K,
|
|
2563
2563
|
{
|
|
2564
2564
|
icon: gn,
|
|
2565
2565
|
variant: "brandPrimary",
|
|
@@ -2689,7 +2689,7 @@ const nd = "_root_1kadq_1", ad = "_label_1kadq_10", rd = "_inputWrapper_1kadq_21
|
|
|
2689
2689
|
h.required && /* @__PURE__ */ e("span", { className: le.required, "aria-hidden": !0, children: " *" })
|
|
2690
2690
|
] }),
|
|
2691
2691
|
/* @__PURE__ */ d("div", { className: j, children: [
|
|
2692
|
-
r && /* @__PURE__ */ e(
|
|
2692
|
+
r && /* @__PURE__ */ e(W, { icon: r, className: le.leadingIcon, color: C }),
|
|
2693
2693
|
/* @__PURE__ */ e(
|
|
2694
2694
|
"textarea",
|
|
2695
2695
|
{
|
|
@@ -2706,7 +2706,7 @@ const nd = "_root_1kadq_1", ad = "_label_1kadq_10", rd = "_inputWrapper_1kadq_21
|
|
|
2706
2706
|
}
|
|
2707
2707
|
),
|
|
2708
2708
|
n && /* @__PURE__ */ e(
|
|
2709
|
-
|
|
2709
|
+
W,
|
|
2710
2710
|
{
|
|
2711
2711
|
icon: Be,
|
|
2712
2712
|
className: le.errorIcon,
|
|
@@ -2767,14 +2767,14 @@ const bd = "_root_1qjer_1", vd = "_label_1qjer_10", fd = "_inputWrapper_1qjer_21
|
|
|
2767
2767
|
}
|
|
2768
2768
|
),
|
|
2769
2769
|
n ? /* @__PURE__ */ e(
|
|
2770
|
-
|
|
2770
|
+
W,
|
|
2771
2771
|
{
|
|
2772
2772
|
icon: Be,
|
|
2773
2773
|
className: _e.errorIcon,
|
|
2774
2774
|
color: "var(--icon-color-static-state-error)"
|
|
2775
2775
|
}
|
|
2776
2776
|
) : /* @__PURE__ */ e(
|
|
2777
|
-
|
|
2777
|
+
K,
|
|
2778
2778
|
{
|
|
2779
2779
|
icon: f ? kn : Cn,
|
|
2780
2780
|
variant: "brandPrimary",
|
|
@@ -2783,7 +2783,7 @@ const bd = "_root_1qjer_1", vd = "_label_1qjer_10", fd = "_inputWrapper_1qjer_21
|
|
|
2783
2783
|
disabled: s,
|
|
2784
2784
|
tabIndex: -1,
|
|
2785
2785
|
onMouseDown: (P) => {
|
|
2786
|
-
P.preventDefault(), w((
|
|
2786
|
+
P.preventDefault(), w((z) => !z);
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
2789
|
)
|
|
@@ -2823,11 +2823,11 @@ const jd = "_toast_1va1n_1", Td = "_toastSlideIn_1va1n_1", Bd = "_dismissing_1va
|
|
|
2823
2823
|
className: l
|
|
2824
2824
|
}) => {
|
|
2825
2825
|
const [i, _] = I(!1);
|
|
2826
|
-
|
|
2826
|
+
V(() => {
|
|
2827
2827
|
if (!o) return;
|
|
2828
2828
|
const m = setTimeout(() => _(!0), o);
|
|
2829
2829
|
return () => clearTimeout(m);
|
|
2830
|
-
}, [o]),
|
|
2830
|
+
}, [o]), V(() => {
|
|
2831
2831
|
if (!i) return;
|
|
2832
2832
|
const m = setTimeout(() => s == null ? void 0 : s(), Gd);
|
|
2833
2833
|
return () => clearTimeout(m);
|
|
@@ -2842,10 +2842,10 @@ const jd = "_toast_1va1n_1", Td = "_toastSlideIn_1va1n_1", Bd = "_dismissing_1va
|
|
|
2842
2842
|
h ? Ie.messageColored : Ie.messageNone
|
|
2843
2843
|
].join(" ");
|
|
2844
2844
|
return /* @__PURE__ */ d("div", { className: p, role: "status", "aria-live": "polite", children: [
|
|
2845
|
-
c && /* @__PURE__ */ e(
|
|
2845
|
+
c && /* @__PURE__ */ e(W, { icon: c, size: "medium", color: "var(--text-color-static-light)" }),
|
|
2846
2846
|
/* @__PURE__ */ e("span", { className: u, children: n }),
|
|
2847
2847
|
a && /* @__PURE__ */ e(
|
|
2848
|
-
|
|
2848
|
+
H,
|
|
2849
2849
|
{
|
|
2850
2850
|
variant: "neutral",
|
|
2851
2851
|
emphasis: "tertiary",
|
|
@@ -3021,13 +3021,13 @@ const v_ = "_wrapper_13jts_1", f_ = "_popover_13jts_8", g_ = "_open_13jts_36", y
|
|
|
3021
3021
|
placement: r = "bottom"
|
|
3022
3022
|
}) => {
|
|
3023
3023
|
const [o, s] = I(!1), l = ce(), i = A(null);
|
|
3024
|
-
|
|
3024
|
+
V(() => {
|
|
3025
3025
|
if (!o) return;
|
|
3026
3026
|
const h = (c) => {
|
|
3027
3027
|
i.current && !i.current.contains(c.target) && s(!1);
|
|
3028
3028
|
};
|
|
3029
3029
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
3030
|
-
}, [o]),
|
|
3030
|
+
}, [o]), V(() => {
|
|
3031
3031
|
if (!o) return;
|
|
3032
3032
|
const h = (c) => {
|
|
3033
3033
|
c.key === "Escape" && s(!1);
|
|
@@ -3059,7 +3059,7 @@ const v_ = "_wrapper_13jts_1", f_ = "_popover_13jts_8", g_ = "_open_13jts_36", y
|
|
|
3059
3059
|
/* @__PURE__ */ d("span", { className: Se.header, children: [
|
|
3060
3060
|
/* @__PURE__ */ e("span", { className: Se.label, children: t }),
|
|
3061
3061
|
/* @__PURE__ */ e(
|
|
3062
|
-
|
|
3062
|
+
K,
|
|
3063
3063
|
{
|
|
3064
3064
|
icon: Xe,
|
|
3065
3065
|
variant: "brandPrimary",
|
|
@@ -3107,14 +3107,14 @@ function U_(t, n, a) {
|
|
|
3107
3107
|
}
|
|
3108
3108
|
const vt = ({ items: t, value: n, onSelect: a, pad: r = !0 }) => {
|
|
3109
3109
|
const o = A(null), s = A(!1);
|
|
3110
|
-
return
|
|
3110
|
+
return V(() => {
|
|
3111
3111
|
const l = o.current;
|
|
3112
3112
|
if (!l) return;
|
|
3113
3113
|
const i = t.indexOf(n);
|
|
3114
3114
|
if (i < 0) return;
|
|
3115
3115
|
const _ = i * Mt;
|
|
3116
3116
|
s.current ? l.scrollTo({ top: _, behavior: "smooth" }) : (l.scrollTop = _, s.current = !0);
|
|
3117
|
-
}, [n, t]),
|
|
3117
|
+
}, [n, t]), V(() => {
|
|
3118
3118
|
const l = o.current;
|
|
3119
3119
|
if (!l) return;
|
|
3120
3120
|
const i = () => {
|
|
@@ -3200,8 +3200,8 @@ const vt = ({ items: t, value: n, onSelect: a, pad: r = !0 }) => {
|
|
|
3200
3200
|
j
|
|
3201
3201
|
)) }),
|
|
3202
3202
|
/* @__PURE__ */ d("div", { className: te.actions, children: [
|
|
3203
|
-
/* @__PURE__ */ e(
|
|
3204
|
-
/* @__PURE__ */ e(
|
|
3203
|
+
/* @__PURE__ */ e(H, { variant: "brandPrimary", emphasis: "tertiary", onClick: l, children: a }),
|
|
3204
|
+
/* @__PURE__ */ e(H, { variant: "brandPrimary", emphasis: "tertiary", onClick: C, children: r })
|
|
3205
3205
|
] })
|
|
3206
3206
|
] });
|
|
3207
3207
|
};
|
|
@@ -3226,7 +3226,7 @@ const V_ = "_toolbar_rtdu6_3", Y_ = "_search_rtdu6_17", K_ = "_actions_rtdu6_24"
|
|
|
3226
3226
|
) }),
|
|
3227
3227
|
/* @__PURE__ */ d("div", { className: it.actions, children: [
|
|
3228
3228
|
/* @__PURE__ */ e(
|
|
3229
|
-
|
|
3229
|
+
K,
|
|
3230
3230
|
{
|
|
3231
3231
|
icon: In,
|
|
3232
3232
|
variant: "brandPrimary",
|
|
@@ -3234,7 +3234,7 @@ const V_ = "_toolbar_rtdu6_3", Y_ = "_search_rtdu6_17", K_ = "_actions_rtdu6_24"
|
|
|
3234
3234
|
}
|
|
3235
3235
|
),
|
|
3236
3236
|
/* @__PURE__ */ e(
|
|
3237
|
-
|
|
3237
|
+
K,
|
|
3238
3238
|
{
|
|
3239
3239
|
icon: Sn,
|
|
3240
3240
|
variant: "brandPrimary",
|
|
@@ -3242,7 +3242,7 @@ const V_ = "_toolbar_rtdu6_3", Y_ = "_search_rtdu6_17", K_ = "_actions_rtdu6_24"
|
|
|
3242
3242
|
}
|
|
3243
3243
|
),
|
|
3244
3244
|
/* @__PURE__ */ e(
|
|
3245
|
-
|
|
3245
|
+
K,
|
|
3246
3246
|
{
|
|
3247
3247
|
icon: jn,
|
|
3248
3248
|
variant: "brandPrimary",
|
|
@@ -3292,13 +3292,13 @@ const rp = "_header_gdpgf_3", sp = "_left_gdpgf_18", op = "_title_gdpgf_25", lp
|
|
|
3292
3292
|
className: s
|
|
3293
3293
|
}) => {
|
|
3294
3294
|
const [l, i] = I(!1), _ = A(null);
|
|
3295
|
-
|
|
3295
|
+
V(() => {
|
|
3296
3296
|
if (!l) return;
|
|
3297
3297
|
const c = (p) => {
|
|
3298
3298
|
_.current && !_.current.contains(p.target) && i(!1);
|
|
3299
3299
|
};
|
|
3300
3300
|
return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
|
|
3301
|
-
}, [l]),
|
|
3301
|
+
}, [l]), V(() => {
|
|
3302
3302
|
if (!l) return;
|
|
3303
3303
|
const c = (p) => {
|
|
3304
3304
|
p.key === "Escape" && i(!1);
|
|
@@ -3314,7 +3314,7 @@ const rp = "_header_gdpgf_3", sp = "_left_gdpgf_18", op = "_title_gdpgf_25", lp
|
|
|
3314
3314
|
h && /* @__PURE__ */ d("div", { className: Oe.actions, children: [
|
|
3315
3315
|
o && o.length > 0 && /* @__PURE__ */ d("div", { ref: _, className: Oe.overflow, children: [
|
|
3316
3316
|
/* @__PURE__ */ e(
|
|
3317
|
-
|
|
3317
|
+
K,
|
|
3318
3318
|
{
|
|
3319
3319
|
icon: Tn,
|
|
3320
3320
|
variant: "brandPrimary",
|
|
@@ -3338,7 +3338,7 @@ const rp = "_header_gdpgf_3", sp = "_left_gdpgf_18", op = "_title_gdpgf_25", lp
|
|
|
3338
3338
|
)) }) })
|
|
3339
3339
|
] }),
|
|
3340
3340
|
r && /* @__PURE__ */ e(
|
|
3341
|
-
|
|
3341
|
+
H,
|
|
3342
3342
|
{
|
|
3343
3343
|
variant: "brandPrimary",
|
|
3344
3344
|
emphasis: "tertiary",
|
|
@@ -3348,7 +3348,7 @@ const rp = "_header_gdpgf_3", sp = "_left_gdpgf_18", op = "_title_gdpgf_25", lp
|
|
|
3348
3348
|
}
|
|
3349
3349
|
),
|
|
3350
3350
|
a && /* @__PURE__ */ e(
|
|
3351
|
-
|
|
3351
|
+
H,
|
|
3352
3352
|
{
|
|
3353
3353
|
variant: "brandPrimary",
|
|
3354
3354
|
emphasis: "primary",
|
|
@@ -3487,7 +3487,7 @@ const Bp = "_stepper_tadmn_3", qp = "_stepsRow_tadmn_13", Ep = "_stepItem_tadmn_
|
|
|
3487
3487
|
leftControls: Hp
|
|
3488
3488
|
};
|
|
3489
3489
|
function Vp({ state: t, number: n }) {
|
|
3490
|
-
return /* @__PURE__ */ e("div", { className: [pe.badge, pe[`badge_${t}`]].join(" "), children: t === "complete" ? /* @__PURE__ */ e(
|
|
3490
|
+
return /* @__PURE__ */ e("div", { className: [pe.badge, pe[`badge_${t}`]].join(" "), children: t === "complete" ? /* @__PURE__ */ e(W, { icon: Yt, size: "small" }) : /* @__PURE__ */ e("span", { className: pe.badgeNumber, children: n }) });
|
|
3491
3491
|
}
|
|
3492
3492
|
const Yp = ({
|
|
3493
3493
|
steps: t,
|
|
@@ -3516,10 +3516,10 @@ const Yp = ({
|
|
|
3516
3516
|
}) }),
|
|
3517
3517
|
/* @__PURE__ */ d("div", { className: pe.controls, children: [
|
|
3518
3518
|
/* @__PURE__ */ d("div", { className: pe.leftControls, children: [
|
|
3519
|
-
/* @__PURE__ */ e(
|
|
3520
|
-
!p && /* @__PURE__ */ e(
|
|
3519
|
+
/* @__PURE__ */ e(H, { variant: "brandPrimary", emphasis: "tertiary", onClick: o, children: l }),
|
|
3520
|
+
!p && /* @__PURE__ */ e(H, { variant: "brandSecondary", emphasis: "secondary", onClick: r, children: i })
|
|
3521
3521
|
] }),
|
|
3522
|
-
/* @__PURE__ */ e(
|
|
3522
|
+
/* @__PURE__ */ e(H, { variant: "brandPrimary", emphasis: "primary", onClick: u ? s : a, children: u ? h : _ })
|
|
3523
3523
|
] })
|
|
3524
3524
|
] });
|
|
3525
3525
|
};
|
|
@@ -3658,7 +3658,7 @@ function Qh({
|
|
|
3658
3658
|
onClose: s
|
|
3659
3659
|
}) {
|
|
3660
3660
|
const l = r === a, i = A(null), _ = n(t);
|
|
3661
|
-
return
|
|
3661
|
+
return V(() => {
|
|
3662
3662
|
if (!l) return;
|
|
3663
3663
|
const h = (c) => {
|
|
3664
3664
|
var p;
|
|
@@ -3667,7 +3667,7 @@ function Qh({
|
|
|
3667
3667
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
3668
3668
|
}, [l, s]), /* @__PURE__ */ d("div", { ref: i, className: S.overflowContainer, children: [
|
|
3669
3669
|
/* @__PURE__ */ e(
|
|
3670
|
-
|
|
3670
|
+
K,
|
|
3671
3671
|
{
|
|
3672
3672
|
icon: Ht,
|
|
3673
3673
|
variant: "brandPrimary",
|
|
@@ -3713,8 +3713,8 @@ function eu({
|
|
|
3713
3713
|
pageSizeOptions: j,
|
|
3714
3714
|
className: P
|
|
3715
3715
|
}) {
|
|
3716
|
-
const [
|
|
3717
|
-
p && p(he ? /* @__PURE__ */ new Set() : new Set(
|
|
3716
|
+
const [z, ne] = I(null), L = gt(() => ne(null), []), Q = t.some((x) => x.type === "checkbox"), U = n.map(a), T = (c == null ? void 0 : c.size) ?? 0, he = U.length > 0 && U.every((x) => c == null ? void 0 : c.has(x)), ge = T > 0 && !he, be = () => {
|
|
3717
|
+
p && p(he ? /* @__PURE__ */ new Set() : new Set(U));
|
|
3718
3718
|
}, $e = (x, D) => {
|
|
3719
3719
|
if (!p) return;
|
|
3720
3720
|
const N = new Set(c ?? []);
|
|
@@ -3808,14 +3808,14 @@ function eu({
|
|
|
3808
3808
|
row: D,
|
|
3809
3809
|
items: x.items,
|
|
3810
3810
|
rowId: N,
|
|
3811
|
-
openId:
|
|
3811
|
+
openId: z,
|
|
3812
3812
|
onOpen: ne,
|
|
3813
3813
|
onClose: L
|
|
3814
3814
|
}
|
|
3815
3815
|
);
|
|
3816
3816
|
case "nav":
|
|
3817
3817
|
return /* @__PURE__ */ e(
|
|
3818
|
-
|
|
3818
|
+
K,
|
|
3819
3819
|
{
|
|
3820
3820
|
icon: We,
|
|
3821
3821
|
variant: "brandPrimary",
|
|
@@ -3844,7 +3844,7 @@ function eu({
|
|
|
3844
3844
|
}
|
|
3845
3845
|
)
|
|
3846
3846
|
] }),
|
|
3847
|
-
h && /* @__PURE__ */ e("div", { className: S.filterWrapper, children: /* @__PURE__ */ e(
|
|
3847
|
+
h && /* @__PURE__ */ e("div", { className: S.filterWrapper, children: /* @__PURE__ */ e(K, { icon: Ft, variant: "brandPrimary", "aria-label": "Filter", onClick: h }) })
|
|
3848
3848
|
] }),
|
|
3849
3849
|
/* @__PURE__ */ e("div", { className: S.tableScroll, children: /* @__PURE__ */ d("table", { className: S.table, children: [
|
|
3850
3850
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: S.headerRow, children: t.map(we) }) }),
|
|
@@ -3886,7 +3886,7 @@ export {
|
|
|
3886
3886
|
ze as Avatar,
|
|
3887
3887
|
ua as Badge,
|
|
3888
3888
|
dn as Breadcrumb,
|
|
3889
|
-
|
|
3889
|
+
H as Button,
|
|
3890
3890
|
mo as ButtonGroup,
|
|
3891
3891
|
bh as ChartCard,
|
|
3892
3892
|
Le as Checkbox,
|
|
@@ -3901,8 +3901,8 @@ export {
|
|
|
3901
3901
|
td as FileUploader,
|
|
3902
3902
|
Ac as FileUploaderListItem,
|
|
3903
3903
|
J_ as GlobalToolbar,
|
|
3904
|
-
|
|
3905
|
-
|
|
3904
|
+
W as Icon,
|
|
3905
|
+
K as IconButton,
|
|
3906
3906
|
eh as KpiCard,
|
|
3907
3907
|
lh as ListCard,
|
|
3908
3908
|
sn as ListGroup,
|