@pantheon-systems/pds-toolkit-react 1.0.0-dev.161 → 1.0.0-dev.162
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 +252 -252
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -774,13 +774,13 @@ const l1 = {
|
|
|
774
774
|
restMs: 300,
|
|
775
775
|
delay: { open: 500, close: 0 },
|
|
776
776
|
move: !1
|
|
777
|
-
}), w = gs(C),
|
|
777
|
+
}), w = gs(C), L = Ie(C), k = Te(C, { role: "tooltip" }), { getReferenceProps: x, getFloatingProps: N } = Oe([
|
|
778
778
|
v,
|
|
779
779
|
w,
|
|
780
|
-
|
|
780
|
+
L,
|
|
781
781
|
k
|
|
782
|
-
]),
|
|
783
|
-
zIndex: a ||
|
|
782
|
+
]), M = c1, z = ge(y({}, f), {
|
|
783
|
+
zIndex: a || M
|
|
784
784
|
});
|
|
785
785
|
return /* @__PURE__ */ e.createElement(
|
|
786
786
|
"div",
|
|
@@ -1805,7 +1805,7 @@ const Ae = Ke(
|
|
|
1805
1805
|
"validationState",
|
|
1806
1806
|
"className"
|
|
1807
1807
|
]);
|
|
1808
|
-
const C = "pds-input-wrapper", v = `${C}--${r}`, w = "pds-input-label",
|
|
1808
|
+
const C = "pds-input-wrapper", v = `${C}--${r}`, w = "pds-input-label", L = `pds-input-field__message pds-input-field__message--${p}`, k = b === "error" ? "pds-has-error" : null, x = b === "success" ? "pds-has-success" : null, N = a ? "pds-is-disabled" : null, M = h ? "pds-is-readonly" : null, z = d && !a ? "pds-is-required" : null, I = o ? `${o / 16}rem` : null, H = o ? { width: I } : null, V = l ? "fieldset" : "div", S = d && !a ? /* @__PURE__ */ e.createElement(
|
|
1809
1809
|
A,
|
|
1810
1810
|
{
|
|
1811
1811
|
iconName: "asterisk",
|
|
@@ -1815,7 +1815,7 @@ const Ae = Ke(
|
|
|
1815
1815
|
) : null, D = m ? /* @__PURE__ */ e.createElement(
|
|
1816
1816
|
"div",
|
|
1817
1817
|
{
|
|
1818
|
-
className:
|
|
1818
|
+
className: L,
|
|
1819
1819
|
id: `${c}__message`,
|
|
1820
1820
|
role: b === "error" ? "alert" : null,
|
|
1821
1821
|
style: H
|
|
@@ -1829,7 +1829,7 @@ const Ae = Ke(
|
|
|
1829
1829
|
C,
|
|
1830
1830
|
v,
|
|
1831
1831
|
N,
|
|
1832
|
-
|
|
1832
|
+
M,
|
|
1833
1833
|
z,
|
|
1834
1834
|
k,
|
|
1835
1835
|
x,
|
|
@@ -1954,7 +1954,7 @@ const ks = Ke(
|
|
|
1954
1954
|
showLabel: C = !0,
|
|
1955
1955
|
validationFunction: v,
|
|
1956
1956
|
className: w
|
|
1957
|
-
} = N,
|
|
1957
|
+
} = N, L = T(N, [
|
|
1958
1958
|
"disabled",
|
|
1959
1959
|
"hasClearButton",
|
|
1960
1960
|
"hasDropdownTrigger",
|
|
@@ -1978,11 +1978,11 @@ const ks = Ke(
|
|
|
1978
1978
|
"validationFunction",
|
|
1979
1979
|
"className"
|
|
1980
1980
|
]);
|
|
1981
|
-
const
|
|
1981
|
+
const M = (de) => {
|
|
1982
1982
|
const me = g.find((ze) => ze.value === de);
|
|
1983
1983
|
return me ? me.label : "";
|
|
1984
1984
|
}, [z, I] = R(!1), [H, V] = R(null), [S, D] = R(
|
|
1985
|
-
l ?
|
|
1985
|
+
l ? M(l) : ""
|
|
1986
1986
|
), [q, B] = R([]), [W, Z] = R(""), [F, O] = R(null), j = ee([]), U = "pds-combobox", { context: G, refs: te } = Se({
|
|
1987
1987
|
open: z,
|
|
1988
1988
|
onOpenChange: I,
|
|
@@ -2031,12 +2031,12 @@ const ks = Ke(
|
|
|
2031
2031
|
}, ce = (de) => {
|
|
2032
2032
|
const me = q[de];
|
|
2033
2033
|
D(me.label), V(null), I(!1), $ && $(me), v && he(me);
|
|
2034
|
-
},
|
|
2034
|
+
}, Le = () => {
|
|
2035
2035
|
var de;
|
|
2036
2036
|
X(), D(""), I(!0), (de = te.domReference.current) == null || de.focus();
|
|
2037
2037
|
}, He = () => {
|
|
2038
2038
|
I(!z);
|
|
2039
|
-
},
|
|
2039
|
+
}, Me = (de) => de.map((ze) => {
|
|
2040
2040
|
const { label: Pe, optionDisplay: je, value: pt, searchIndex: ht } = ze, P = pt || Pe, re = [Pe, pt];
|
|
2041
2041
|
return ht && re.push(...ht), {
|
|
2042
2042
|
label: Pe,
|
|
@@ -2046,7 +2046,7 @@ const ks = Ke(
|
|
|
2046
2046
|
};
|
|
2047
2047
|
});
|
|
2048
2048
|
ae(() => {
|
|
2049
|
-
const de =
|
|
2049
|
+
const de = Me(g).filter((me) => {
|
|
2050
2050
|
const ze = me.searchIndex.map(
|
|
2051
2051
|
(je) => je.toLowerCase()
|
|
2052
2052
|
), Pe = S.toLowerCase();
|
|
@@ -2072,7 +2072,7 @@ const ks = Ke(
|
|
|
2072
2072
|
active: H === me
|
|
2073
2073
|
}),
|
|
2074
2074
|
de.optionDisplay || de.label
|
|
2075
|
-
)), Xe = W || u,
|
|
2075
|
+
)), Xe = W || u, Mt = i ? `${i / 16}rem` : null, Qe = i ? { width: Mt } : null;
|
|
2076
2076
|
return /* @__PURE__ */ e.createElement(
|
|
2077
2077
|
Ae,
|
|
2078
2078
|
y({
|
|
@@ -2087,7 +2087,7 @@ const ks = Ke(
|
|
|
2087
2087
|
required: f,
|
|
2088
2088
|
showLabel: C,
|
|
2089
2089
|
validationState: F
|
|
2090
|
-
},
|
|
2090
|
+
}, L),
|
|
2091
2091
|
/* @__PURE__ */ e.createElement(
|
|
2092
2092
|
"span",
|
|
2093
2093
|
{
|
|
@@ -2123,7 +2123,7 @@ const ks = Ke(
|
|
|
2123
2123
|
{
|
|
2124
2124
|
id: o,
|
|
2125
2125
|
label: h.clearButton,
|
|
2126
|
-
handleClearInput:
|
|
2126
|
+
handleClearInput: Le
|
|
2127
2127
|
}
|
|
2128
2128
|
),
|
|
2129
2129
|
!S && r && /* @__PURE__ */ e.createElement(Gt, { label: h.searchShortcut }),
|
|
@@ -2443,7 +2443,7 @@ const qe = Ct(null), C1 = ({
|
|
|
2443
2443
|
), { isMobile: b } = ke(qe), E = ee(), [$] = Nt(E), _ = {
|
|
2444
2444
|
navbarWidth: $.width,
|
|
2445
2445
|
isSidebarExpanded: b ? !0 : d
|
|
2446
|
-
}, f = "pds-dashboard", C = b ? `${f}--isMobile` : `${f}--notMobile`, v = b ? null : d ? `${f}--sidebarExpanded` : `${f}--sidebarCollapsed`, w = d ? `${r}rem` : `${c}rem`,
|
|
2446
|
+
}, f = "pds-dashboard", C = b ? `${f}--isMobile` : `${f}--notMobile`, v = b ? null : d ? `${f}--sidebarExpanded` : `${f}--sidebarCollapsed`, w = d ? `${r}rem` : `${c}rem`, L = {
|
|
2447
2447
|
width: w,
|
|
2448
2448
|
transition: "width 200ms ease-in-out"
|
|
2449
2449
|
}, k = b ? {} : {
|
|
@@ -2458,7 +2458,7 @@ const qe = Ct(null), C1 = ({
|
|
|
2458
2458
|
q && (N[q] ? N[q].push(D) : N[q] = [D]);
|
|
2459
2459
|
}
|
|
2460
2460
|
});
|
|
2461
|
-
const
|
|
2461
|
+
const M = N.header, z = N.sidebar, I = N.main, H = N.footer, V = /* @__PURE__ */ e.createElement("aside", { className: `${f}__sidebar` }, z), S = /* @__PURE__ */ e.createElement("aside", { className: `${f}__sidebar`, style: L }, n && /* @__PURE__ */ e.createElement(
|
|
2462
2462
|
"button",
|
|
2463
2463
|
{
|
|
2464
2464
|
className: `${f}__sidebar-toggle-button`,
|
|
@@ -2479,7 +2479,7 @@ const qe = Ct(null), C1 = ({
|
|
|
2479
2479
|
i != null ? i : ""
|
|
2480
2480
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
2481
2481
|
}, m),
|
|
2482
|
-
b &&
|
|
2482
|
+
b && M,
|
|
2483
2483
|
b ? V : S,
|
|
2484
2484
|
/* @__PURE__ */ e.createElement(
|
|
2485
2485
|
"div",
|
|
@@ -2488,7 +2488,7 @@ const qe = Ct(null), C1 = ({
|
|
|
2488
2488
|
className: `${f}__container`,
|
|
2489
2489
|
style: k
|
|
2490
2490
|
},
|
|
2491
|
-
!b && /* @__PURE__ */ e.createElement("div", { className: `${f}__header` },
|
|
2491
|
+
!b && /* @__PURE__ */ e.createElement("div", { className: `${f}__header` }, M),
|
|
2492
2492
|
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${f}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__main-inner` }, I), H && /* @__PURE__ */ e.createElement("footer", { className: `${f}__footer` }, H))
|
|
2493
2493
|
)
|
|
2494
2494
|
));
|
|
@@ -2602,14 +2602,14 @@ const y1 = (E) => {
|
|
|
2602
2602
|
]);
|
|
2603
2603
|
const [g, _] = R(!1), [f, C] = R(null), v = ee(null);
|
|
2604
2604
|
let w = !1;
|
|
2605
|
-
const
|
|
2606
|
-
|
|
2605
|
+
const L = ke(qe);
|
|
2606
|
+
L && (w = L.isMobile);
|
|
2607
2607
|
let k = null;
|
|
2608
2608
|
const x = ke(Yt);
|
|
2609
2609
|
x && (k = x.navbarWidth);
|
|
2610
|
-
const N = 2.25,
|
|
2610
|
+
const N = 2.25, M = 22, z = k > 900 ? M : k / 16 - d - N * 0.675;
|
|
2611
2611
|
let I = N;
|
|
2612
|
-
g && !k && (I =
|
|
2612
|
+
g && !k && (I = M), g && k && (I = z);
|
|
2613
2613
|
const H = {
|
|
2614
2614
|
right: `${d}rem`,
|
|
2615
2615
|
width: `${I}rem`
|
|
@@ -2907,7 +2907,7 @@ const Et = (d) => {
|
|
|
2907
2907
|
g.hide
|
|
2908
2908
|
), C.current.classList.add(g.scaleIn), v.current.classList.remove(g.scaleIn), v.current.classList.add(g.hide);
|
|
2909
2909
|
}, 2e3);
|
|
2910
|
-
},
|
|
2910
|
+
}, L = () => {
|
|
2911
2911
|
f && w(), l && l();
|
|
2912
2912
|
}, k = f ? /* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement("div", { ref: C, className: `${b}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2913
2913
|
A,
|
|
@@ -2944,7 +2944,7 @@ const Et = (d) => {
|
|
|
2944
2944
|
"aria-label": s,
|
|
2945
2945
|
className: [b, E, $, p].join(" ").trim().replace(/\s+/g, " "),
|
|
2946
2946
|
disabled: a,
|
|
2947
|
-
onClick:
|
|
2947
|
+
onClick: L,
|
|
2948
2948
|
type: n,
|
|
2949
2949
|
title: c && !a ? null : s
|
|
2950
2950
|
}, h),
|
|
@@ -2990,20 +2990,20 @@ const Et = (d) => {
|
|
|
2990
2990
|
"validationFunction",
|
|
2991
2991
|
"className"
|
|
2992
2992
|
]);
|
|
2993
|
-
const [_, f] = R(!1), [C, v] = R(), [w,
|
|
2993
|
+
const [_, f] = R(!1), [C, v] = R(), [w, L] = R(null), k = "pds-file-upload", x = _ ? `${k}--has-value` : null;
|
|
2994
2994
|
let N = null;
|
|
2995
2995
|
w === "error" && (N = "error"), w === "success" && (N = "success");
|
|
2996
|
-
const
|
|
2997
|
-
v(""),
|
|
2996
|
+
const M = () => {
|
|
2997
|
+
v(""), L(null);
|
|
2998
2998
|
}, z = (V) => {
|
|
2999
2999
|
if (u) {
|
|
3000
3000
|
const S = u(V.target.files) || {};
|
|
3001
|
-
|
|
3001
|
+
M(), S.error && L("error"), S.success && L("success"), v(S.message);
|
|
3002
3002
|
}
|
|
3003
3003
|
p && p(V.target.files), V.target.files.length > 0 ? f(!0) : f(!1);
|
|
3004
3004
|
}, I = () => {
|
|
3005
3005
|
const V = document.getElementById(o);
|
|
3006
|
-
V.value = "", f(!1),
|
|
3006
|
+
V.value = "", f(!1), M();
|
|
3007
3007
|
}, H = C || i;
|
|
3008
3008
|
return /* @__PURE__ */ e.createElement(
|
|
3009
3009
|
Ae,
|
|
@@ -3217,7 +3217,7 @@ z1.propTypes = {
|
|
|
3217
3217
|
*/
|
|
3218
3218
|
className: t.string
|
|
3219
3219
|
};
|
|
3220
|
-
const
|
|
3220
|
+
const L1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = L1.find((s) => s.type === "decimal").value, St = 16, cs = 10, M1 = (E) => {
|
|
3221
3221
|
var $ = E, {
|
|
3222
3222
|
disabled: s = !1,
|
|
3223
3223
|
formatting: n,
|
|
@@ -3252,7 +3252,7 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3252
3252
|
g,
|
|
3253
3253
|
_,
|
|
3254
3254
|
u
|
|
3255
|
-
]), [C, v] = R(""), [w,
|
|
3255
|
+
]), [C, v] = R(""), [w, L] = R(null), [k, x] = R(null), N = ee(null), M = ee(null), z = ee("");
|
|
3256
3256
|
ae(() => {
|
|
3257
3257
|
switch (r && v(Z(r)), z.numExtra = "", n) {
|
|
3258
3258
|
case "credit-card":
|
|
@@ -3272,11 +3272,11 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3272
3272
|
(O) => O !== ye.error && O !== ye.success
|
|
3273
3273
|
);
|
|
3274
3274
|
}, V = () => {
|
|
3275
|
-
H(),
|
|
3275
|
+
H(), L(""), x(null);
|
|
3276
3276
|
}, S = (O) => {
|
|
3277
3277
|
i && i({
|
|
3278
3278
|
formattedValue: O,
|
|
3279
|
-
rawValue:
|
|
3279
|
+
rawValue: M.current
|
|
3280
3280
|
});
|
|
3281
3281
|
}, D = (O) => {
|
|
3282
3282
|
v(Z(O.target.value)), V(), S(O.target.value);
|
|
@@ -3285,21 +3285,21 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3285
3285
|
}, B = (O) => {
|
|
3286
3286
|
if (d) {
|
|
3287
3287
|
const j = d(O.target.value) || {};
|
|
3288
|
-
V(), j.error && q(), j.success && (x("success"), f.current.push(ye.success)),
|
|
3288
|
+
V(), j.error && q(), j.success && (x("success"), f.current.push(ye.success)), L(j.message);
|
|
3289
3289
|
} else
|
|
3290
|
-
N.current.checkValidity() === !1 || O.target.value.length < z.current + z.numExtra ? (q(), n === "credit-card" &&
|
|
3290
|
+
N.current.checkValidity() === !1 || O.target.value.length < z.current + z.numExtra ? (q(), n === "credit-card" && L(
|
|
3291
3291
|
`Credit card number must have at least ${z.current} digits.`
|
|
3292
|
-
), n === "phone" &&
|
|
3292
|
+
), n === "phone" && L(
|
|
3293
3293
|
`Phone number must have at least ${z.current} digits.`
|
|
3294
3294
|
)) : (n === "credit-card" || n === "phone") && (x("success"), f.current.push(ye.success));
|
|
3295
3295
|
S(O.target.value);
|
|
3296
3296
|
}, W = () => {
|
|
3297
|
-
V(), v(""),
|
|
3297
|
+
V(), v(""), M.current = "", N.current.focus(), S("");
|
|
3298
3298
|
}, Z = (O) => {
|
|
3299
3299
|
if (O) {
|
|
3300
3300
|
if (n === "credit-card") {
|
|
3301
3301
|
const j = ("" + O).replace(/\D/g, "");
|
|
3302
|
-
if (
|
|
3302
|
+
if (M.current = j, j) {
|
|
3303
3303
|
if (new RegExp("^34|37", "g").test(j)) {
|
|
3304
3304
|
z.numExtra = 2, z.current = St - 1;
|
|
3305
3305
|
const se = {};
|
|
@@ -3313,7 +3313,7 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3313
3313
|
}
|
|
3314
3314
|
if (n === "phone") {
|
|
3315
3315
|
const j = ("" + O).replace(/\D/g, "");
|
|
3316
|
-
if (
|
|
3316
|
+
if (M.current = j, j) {
|
|
3317
3317
|
z.numExtra = 4, z.current = cs;
|
|
3318
3318
|
let U = j.substring(0, 3), G = j.substring(3, 6);
|
|
3319
3319
|
G.length > 0 && (U = `(${U})`, G = ` ${G}`);
|
|
@@ -3324,7 +3324,7 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3324
3324
|
}
|
|
3325
3325
|
if (n === "number-localized") {
|
|
3326
3326
|
const j = new RegExp(`[^0-9${Vt}]`, "g"), U = ("" + O).replace(j, "");
|
|
3327
|
-
|
|
3327
|
+
M.current = U;
|
|
3328
3328
|
const G = new Intl.NumberFormat(void 0, {
|
|
3329
3329
|
maximumFractionDigits: 20
|
|
3330
3330
|
}).format(U);
|
|
@@ -3371,7 +3371,7 @@ const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Vt = M1.find((s)
|
|
|
3371
3371
|
w || l
|
|
3372
3372
|
));
|
|
3373
3373
|
};
|
|
3374
|
-
|
|
3374
|
+
M1.propTypes = {
|
|
3375
3375
|
/**
|
|
3376
3376
|
* Is the field disabled?
|
|
3377
3377
|
*/
|
|
@@ -3474,7 +3474,7 @@ const x1 = (b) => {
|
|
|
3474
3474
|
"validationFunction",
|
|
3475
3475
|
"className"
|
|
3476
3476
|
]);
|
|
3477
|
-
const $ = "pds-input-obscured", g = ee(["pds-input-field", $, d]), [_, f] = R(r), [C, v] = R(s("")), [w,
|
|
3477
|
+
const $ = "pds-input-obscured", g = ee(["pds-input-field", $, d]), [_, f] = R(r), [C, v] = R(s("")), [w, L] = R(), [k, x] = R(null), [N, M] = R(!1), z = ee(null), I = ee(null);
|
|
3478
3478
|
ae(() => {
|
|
3479
3479
|
r && s && v(s(r));
|
|
3480
3480
|
}, []);
|
|
@@ -3487,22 +3487,22 @@ const x1 = (b) => {
|
|
|
3487
3487
|
(O) => O !== ye.error && O !== ye.success
|
|
3488
3488
|
);
|
|
3489
3489
|
}, S = () => {
|
|
3490
|
-
V(),
|
|
3490
|
+
V(), L(""), x(null);
|
|
3491
3491
|
}, D = (O) => {
|
|
3492
3492
|
f(O.target.value), S(), s && v(s(O.target.value)), i && i(O.target.value);
|
|
3493
3493
|
}, q = (O) => {
|
|
3494
|
-
if (
|
|
3494
|
+
if (M(!1), h) {
|
|
3495
3495
|
const j = h(O.target.value) || {};
|
|
3496
|
-
S(), j.error && (x("error"), g.current.push(ye.error)), j.success && (x("success"), g.current.push(ye.success)),
|
|
3496
|
+
S(), j.error && (x("error"), g.current.push(ye.error)), j.success && (x("success"), g.current.push(ye.success)), L(j.message);
|
|
3497
3497
|
}
|
|
3498
3498
|
i && i(_);
|
|
3499
3499
|
}, B = () => {
|
|
3500
3500
|
S(), f(""), I.current.value = null, I.current.focus(), s && v(s("")), i && i("");
|
|
3501
3501
|
}, W = () => {
|
|
3502
|
-
|
|
3502
|
+
M((O) => !O);
|
|
3503
3503
|
}, Z = (O) => {
|
|
3504
3504
|
var j;
|
|
3505
|
-
(!((j = z.current) != null && j.contains(O.relatedTarget)) || !O.relatedTarget) &&
|
|
3505
|
+
(!((j = z.current) != null && j.contains(O.relatedTarget)) || !O.relatedTarget) && M(!1);
|
|
3506
3506
|
};
|
|
3507
3507
|
H(), m && !n && g.current.push(ye.required), n && g.current.push(ye.disabled);
|
|
3508
3508
|
let F = null;
|
|
@@ -3641,7 +3641,7 @@ x1.propTypes = {
|
|
|
3641
3641
|
className: t.string
|
|
3642
3642
|
};
|
|
3643
3643
|
const It = 16, rs = 10, V1 = (N) => {
|
|
3644
|
-
var
|
|
3644
|
+
var M = N, {
|
|
3645
3645
|
autoComplete: s = "on",
|
|
3646
3646
|
counterFunction: n = () => {
|
|
3647
3647
|
},
|
|
@@ -3671,12 +3671,12 @@ const It = 16, rs = 10, V1 = (N) => {
|
|
|
3671
3671
|
toggleVisibility: C = !1,
|
|
3672
3672
|
type: v = "text",
|
|
3673
3673
|
validationFunction: w,
|
|
3674
|
-
validationMessages:
|
|
3674
|
+
validationMessages: L = {
|
|
3675
3675
|
creditCardError: "Please enter a valid credit card number.",
|
|
3676
3676
|
phoneError: "Please enter a valid phone number."
|
|
3677
3677
|
},
|
|
3678
3678
|
className: k
|
|
3679
|
-
} =
|
|
3679
|
+
} = M, x = T(M, [
|
|
3680
3680
|
"autoComplete",
|
|
3681
3681
|
"counterFunction",
|
|
3682
3682
|
"disabled",
|
|
@@ -3736,10 +3736,10 @@ const It = 16, rs = 10, V1 = (N) => {
|
|
|
3736
3736
|
const ce = ("" + J).replace(/\D/g, "");
|
|
3737
3737
|
if (j.current = ce, ce) {
|
|
3738
3738
|
U.numExtra = 4, U.current = rs;
|
|
3739
|
-
let
|
|
3740
|
-
He.length > 0 && (
|
|
3741
|
-
let
|
|
3742
|
-
return
|
|
3739
|
+
let Le = ce.substring(0, 3), He = ce.substring(3, 6);
|
|
3740
|
+
He.length > 0 && (Le = `(${Le})`, He = ` ${He}`);
|
|
3741
|
+
let Me = ce.substring(6);
|
|
3742
|
+
return Me.length > 0 && (Me = `-${Me}`), `${Le}${He}${Me}`;
|
|
3743
3743
|
}
|
|
3744
3744
|
return ce;
|
|
3745
3745
|
}
|
|
@@ -3762,7 +3762,7 @@ const It = 16, rs = 10, V1 = (N) => {
|
|
|
3762
3762
|
const ce = w(J.target.value) || {};
|
|
3763
3763
|
ie(), ce.error && B("error"), ce.success && B("success"), D(ce.message);
|
|
3764
3764
|
}
|
|
3765
|
-
_ && f && !w && (F.current.checkValidity() === !1 || J.target.value.length < fe ? (B("error"), _ === "credit-card" && D(
|
|
3765
|
+
_ && f && !w && (F.current.checkValidity() === !1 || J.target.value.length < fe ? (B("error"), _ === "credit-card" && D(L.creditCardError), _ === "phone" && D(L.phoneError)) : B("success")), pe(J.target.value);
|
|
3766
3766
|
}, K = (J) => {
|
|
3767
3767
|
var ce;
|
|
3768
3768
|
(!((ce = O.current) != null && ce.contains(J.relatedTarget)) || !J.relatedTarget) && Z(!1);
|
|
@@ -4075,7 +4075,7 @@ const os = [
|
|
|
4075
4075
|
}, o),
|
|
4076
4076
|
a ? $ : E
|
|
4077
4077
|
);
|
|
4078
|
-
}, Tt = (s) => s.isSeparator, Ot = (s) => s.isHeading, Rt = (s) => s.isLink, T1 = (s) => s.isNode,
|
|
4078
|
+
}, Tt = (s) => s.isSeparator, Ot = (s) => s.isHeading, Rt = (s) => s.isLink, T1 = (s) => s.isNode, Ls = (g) => {
|
|
4079
4079
|
var _ = g, {
|
|
4080
4080
|
avatarImageSrc: s,
|
|
4081
4081
|
disabled: n,
|
|
@@ -4114,7 +4114,7 @@ const os = [
|
|
|
4114
4114
|
y: C,
|
|
4115
4115
|
reference: v,
|
|
4116
4116
|
floating: w,
|
|
4117
|
-
strategy:
|
|
4117
|
+
strategy: L,
|
|
4118
4118
|
update: k,
|
|
4119
4119
|
placement: x,
|
|
4120
4120
|
refs: N
|
|
@@ -4122,17 +4122,17 @@ const os = [
|
|
|
4122
4122
|
placement: "bottom-start",
|
|
4123
4123
|
middleware: [Js()]
|
|
4124
4124
|
});
|
|
4125
|
-
let
|
|
4125
|
+
let M = !1;
|
|
4126
4126
|
const z = ke(qe);
|
|
4127
|
-
z && (
|
|
4128
|
-
const I = b &&
|
|
4127
|
+
z && (M = z.isMobile);
|
|
4128
|
+
const I = b && M, H = "pds-menu-button", V = I ? `${H}--isMobile` : null, S = b ? `${H}--navbar` : null, D = Re(), [q] = R(`menu-button-${D}`), [B] = R(`menu-listbox-${D}`), W = r || q, Z = N.floating, F = ee(null), [O, j] = R(!1), [U, G] = R(!1), [te, se] = R(""), [fe, ne] = R(0), ie = ee([]), Y = ee([]), pe = ee([]);
|
|
4129
4129
|
Ws(() => {
|
|
4130
|
-
window.addEventListener("mousedown",
|
|
4130
|
+
window.addEventListener("mousedown", Me, !0), k();
|
|
4131
4131
|
const P = Z.current;
|
|
4132
4132
|
return P && (P.dataset.fuiPlacement = x), U && (setTimeout(() => {
|
|
4133
4133
|
P.focus();
|
|
4134
4134
|
}, 0), G(!1)), () => {
|
|
4135
|
-
window.removeEventListener("mousedown",
|
|
4135
|
+
window.removeEventListener("mousedown", Me, !0);
|
|
4136
4136
|
};
|
|
4137
4137
|
}, [O, x]);
|
|
4138
4138
|
const be = (P, re) => {
|
|
@@ -4169,7 +4169,7 @@ const os = [
|
|
|
4169
4169
|
O ? K() : le(), G((re) => !re), P.stopPropagation(), P.preventDefault();
|
|
4170
4170
|
}, ce = (P) => {
|
|
4171
4171
|
he(P.currentTarget.id), I || K();
|
|
4172
|
-
},
|
|
4172
|
+
}, Le = (P) => {
|
|
4173
4173
|
var re = P.key, Q = !1;
|
|
4174
4174
|
switch (re) {
|
|
4175
4175
|
case " ":
|
|
@@ -4235,7 +4235,7 @@ const os = [
|
|
|
4235
4235
|
}
|
|
4236
4236
|
Q && (P.stopPropagation(), P.preventDefault());
|
|
4237
4237
|
}
|
|
4238
|
-
},
|
|
4238
|
+
}, Me = (P) => {
|
|
4239
4239
|
F.current && !F.current.contains(P.target) && O && K();
|
|
4240
4240
|
}, _e = (P, re, Q = "", ve = "", ...ue) => {
|
|
4241
4241
|
const we = Q ? `-group-${Q}` : "", $e = W + we + "-item-" + (re + 1), Ve = P.id ? P.id : $e;
|
|
@@ -4292,7 +4292,7 @@ const os = [
|
|
|
4292
4292
|
return P.map((we, $e) => {
|
|
4293
4293
|
we !== ve ? (ue.push(we), $e + 1 === P.length && Q.push(ue)) : (Q.push(ue), ue = [], ue.push(we), ve = re.shift());
|
|
4294
4294
|
}), Q.filter((we) => we.length > 0);
|
|
4295
|
-
},
|
|
4295
|
+
}, Mt = (P) => {
|
|
4296
4296
|
Y.current = [], pe.current = [];
|
|
4297
4297
|
const re = P, Q = P.filter(
|
|
4298
4298
|
Ot || Tt
|
|
@@ -4320,7 +4320,7 @@ const os = [
|
|
|
4320
4320
|
visibility: O ? "visible" : "hidden",
|
|
4321
4321
|
opacity: O ? "1" : "0",
|
|
4322
4322
|
transition: "opacity 300ms ease-in-out 0s",
|
|
4323
|
-
position:
|
|
4323
|
+
position: L,
|
|
4324
4324
|
transform: `translate(${Math.round(f)}px,${Math.round(C)}px)`,
|
|
4325
4325
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
4326
4326
|
},
|
|
@@ -4362,7 +4362,7 @@ const os = [
|
|
|
4362
4362
|
visibility: O ? "visible" : "hidden",
|
|
4363
4363
|
opacity: O ? "1" : "0",
|
|
4364
4364
|
transition: "opacity 300ms ease-in-out 0s",
|
|
4365
|
-
position:
|
|
4365
|
+
position: L,
|
|
4366
4366
|
transform: `translate(${Math.round(f)}px,${Math.round(C)}px)`
|
|
4367
4367
|
},
|
|
4368
4368
|
onKeyDown: He,
|
|
@@ -4390,7 +4390,7 @@ const os = [
|
|
|
4390
4390
|
"aria-controls": B,
|
|
4391
4391
|
"aria-expanded": O,
|
|
4392
4392
|
onClick: J,
|
|
4393
|
-
onKeyDown:
|
|
4393
|
+
onKeyDown: Le,
|
|
4394
4394
|
ref: v
|
|
4395
4395
|
}
|
|
4396
4396
|
)), a === "icon-only" && (Qe = /* @__PURE__ */ e.createElement(
|
|
@@ -4408,7 +4408,7 @@ const os = [
|
|
|
4408
4408
|
"aria-controls": B,
|
|
4409
4409
|
"aria-expanded": O,
|
|
4410
4410
|
onClick: J,
|
|
4411
|
-
onKeyDown:
|
|
4411
|
+
onKeyDown: Le,
|
|
4412
4412
|
ref: v,
|
|
4413
4413
|
hasTooltip: !1
|
|
4414
4414
|
}
|
|
@@ -4424,7 +4424,7 @@ const os = [
|
|
|
4424
4424
|
"aria-controls": B,
|
|
4425
4425
|
"aria-expanded": O,
|
|
4426
4426
|
onClick: J,
|
|
4427
|
-
onKeyDown:
|
|
4427
|
+
onKeyDown: Le,
|
|
4428
4428
|
ref: v
|
|
4429
4429
|
},
|
|
4430
4430
|
/* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(it, { size: "sm", imageSrc: s }), a === "avatar-with-text" && l),
|
|
@@ -4474,10 +4474,10 @@ const os = [
|
|
|
4474
4474
|
"data-testid": h,
|
|
4475
4475
|
ref: F
|
|
4476
4476
|
}, $),
|
|
4477
|
-
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, pt, /* @__PURE__ */ e.createElement(me, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Qe,
|
|
4477
|
+
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, pt, /* @__PURE__ */ e.createElement(me, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Qe, Mt(i))
|
|
4478
4478
|
);
|
|
4479
4479
|
};
|
|
4480
|
-
|
|
4480
|
+
Ls.propTypes = {
|
|
4481
4481
|
/**
|
|
4482
4482
|
* Image src for avatar — only necessary for avatar-based buttons.
|
|
4483
4483
|
*/
|
|
@@ -4981,10 +4981,10 @@ const O1 = (u) => {
|
|
|
4981
4981
|
const _ = ke(qe);
|
|
4982
4982
|
_ && (g = _.isMobile);
|
|
4983
4983
|
const f = "pds-navbar", C = c ? `${f}--noBorder` : "", v = n !== "default" ? `${f}--${n}` : "", w = g ? `${f}--isMobile` : `${f}--notMobile`;
|
|
4984
|
-
ae(() => (window.addEventListener("keyup",
|
|
4985
|
-
window.removeEventListener("keyup",
|
|
4984
|
+
ae(() => (window.addEventListener("keyup", L), () => {
|
|
4985
|
+
window.removeEventListener("keyup", L);
|
|
4986
4986
|
}), []);
|
|
4987
|
-
const
|
|
4987
|
+
const L = (Z) => {
|
|
4988
4988
|
var F = Z.key, O = !1;
|
|
4989
4989
|
switch (F) {
|
|
4990
4990
|
case "Esc":
|
|
@@ -5021,12 +5021,12 @@ const O1 = (u) => {
|
|
|
5021
5021
|
}, [g]), ae(() => {
|
|
5022
5022
|
E ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
5023
5023
|
}, [E]);
|
|
5024
|
-
const
|
|
5024
|
+
const M = {};
|
|
5025
5025
|
e.Children.forEach(s, (Z) => {
|
|
5026
5026
|
const F = Z.props.slot;
|
|
5027
|
-
F && (
|
|
5027
|
+
F && (M[F] ? M[F].push(Z) : M[F] = [Z]);
|
|
5028
5028
|
});
|
|
5029
|
-
const z =
|
|
5029
|
+
const z = M["items-left"], I = M["items-right"];
|
|
5030
5030
|
let H = /* @__PURE__ */ e.createElement(
|
|
5031
5031
|
"img",
|
|
5032
5032
|
{
|
|
@@ -5139,7 +5139,7 @@ O1.propTypes = {
|
|
|
5139
5139
|
*/
|
|
5140
5140
|
className: t.string
|
|
5141
5141
|
};
|
|
5142
|
-
const
|
|
5142
|
+
const Ms = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
5143
5143
|
const [c, r] = R(!1), [o, l] = R(0);
|
|
5144
5144
|
ae(() => (l(window.innerWidth), window.addEventListener("resize", i), () => {
|
|
5145
5145
|
window.removeEventListener("resize", i);
|
|
@@ -5194,7 +5194,7 @@ const Ls = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5194
5194
|
))
|
|
5195
5195
|
));
|
|
5196
5196
|
};
|
|
5197
|
-
|
|
5197
|
+
Ms.propTypes = {
|
|
5198
5198
|
items: t.array,
|
|
5199
5199
|
label: t.string,
|
|
5200
5200
|
mobileMenuMaxWidth: t.number
|
|
@@ -5233,7 +5233,7 @@ const R1 = (l) => {
|
|
|
5233
5233
|
focusVisible: !0
|
|
5234
5234
|
}));
|
|
5235
5235
|
}, [u]);
|
|
5236
|
-
const v = "pds-nav-menu", w = n !== "default" ? `${v}--${n}` : "",
|
|
5236
|
+
const v = "pds-nav-menu", w = n !== "default" ? `${v}--${n}` : "", L = C ? `${v}--isMobile` : `${v}--notMobile`, k = ee([]), x = (z) => {
|
|
5237
5237
|
const I = k.current.length - 1, B = {
|
|
5238
5238
|
ArrowRight: () => {
|
|
5239
5239
|
d(-1), b(u === -1 ? 1 : u === I ? 0 : u + 1);
|
|
@@ -5265,10 +5265,10 @@ const R1 = (l) => {
|
|
|
5265
5265
|
}
|
|
5266
5266
|
return !1;
|
|
5267
5267
|
};
|
|
5268
|
-
let
|
|
5268
|
+
let M = [];
|
|
5269
5269
|
return a.map((z, I) => {
|
|
5270
5270
|
const H = `item-${Re()}`, V = z.id ? z.id : H;
|
|
5271
|
-
z.links ?
|
|
5271
|
+
z.links ? M.push(
|
|
5272
5272
|
/* @__PURE__ */ e.createElement(
|
|
5273
5273
|
"li",
|
|
5274
5274
|
{
|
|
@@ -5278,7 +5278,7 @@ const R1 = (l) => {
|
|
|
5278
5278
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${N(z) === !0 ? `${v}__item--active` : ""}`
|
|
5279
5279
|
},
|
|
5280
5280
|
/* @__PURE__ */ e.createElement(
|
|
5281
|
-
|
|
5281
|
+
Ms,
|
|
5282
5282
|
{
|
|
5283
5283
|
label: z.label,
|
|
5284
5284
|
items: z.links,
|
|
@@ -5286,7 +5286,7 @@ const R1 = (l) => {
|
|
|
5286
5286
|
}
|
|
5287
5287
|
)
|
|
5288
5288
|
)
|
|
5289
|
-
) :
|
|
5289
|
+
) : M.push(
|
|
5290
5290
|
/* @__PURE__ */ e.createElement(
|
|
5291
5291
|
"li",
|
|
5292
5292
|
{
|
|
@@ -5301,13 +5301,13 @@ const R1 = (l) => {
|
|
|
5301
5301
|
}), /* @__PURE__ */ e.createElement(
|
|
5302
5302
|
"nav",
|
|
5303
5303
|
y({
|
|
5304
|
-
className: [v, w,
|
|
5304
|
+
className: [v, w, L, r].join(" ").trim().replace(/\s+/g, " "),
|
|
5305
5305
|
"aria-label": s,
|
|
5306
5306
|
onKeyDown: (z) => {
|
|
5307
5307
|
x(z);
|
|
5308
5308
|
}
|
|
5309
5309
|
}, o),
|
|
5310
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` },
|
|
5310
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, M)
|
|
5311
5311
|
);
|
|
5312
5312
|
};
|
|
5313
5313
|
R1.propTypes = {
|
|
@@ -5811,7 +5811,7 @@ Vs.propTypes = {
|
|
|
5811
5811
|
pages: t.arrayOf(t.shape({ link: t.string })).isRequired,
|
|
5812
5812
|
headingId: t.string
|
|
5813
5813
|
};
|
|
5814
|
-
const
|
|
5814
|
+
const Lt = (E) => {
|
|
5815
5815
|
var $ = E, {
|
|
5816
5816
|
disabled: s = !1,
|
|
5817
5817
|
id: n,
|
|
@@ -5841,12 +5841,12 @@ const Mt = (E) => {
|
|
|
5841
5841
|
"validationFunction",
|
|
5842
5842
|
"className"
|
|
5843
5843
|
]);
|
|
5844
|
-
const [g, _] = R(!1), [f, C] = R(null), [v, w] = R(a), [
|
|
5844
|
+
const [g, _] = R(!1), [f, C] = R(null), [v, w] = R(a), [L, k] = R(), [x, N] = R(null), M = ee([]), z = "pds-select", { context: I, refs: H } = Se({
|
|
5845
5845
|
open: g,
|
|
5846
5846
|
onOpenChange: _,
|
|
5847
5847
|
whileElementsMounted: De
|
|
5848
5848
|
}), V = Te(I, { role: "listbox" }), S = Ie(I), D = dt(I, {
|
|
5849
|
-
listRef:
|
|
5849
|
+
listRef: M,
|
|
5850
5850
|
activeIndex: f,
|
|
5851
5851
|
onNavigate: C,
|
|
5852
5852
|
loop: !0,
|
|
@@ -5891,7 +5891,7 @@ const Mt = (E) => {
|
|
|
5891
5891
|
}, W({
|
|
5892
5892
|
key: le.value,
|
|
5893
5893
|
ref(X) {
|
|
5894
|
-
|
|
5894
|
+
M.current[K] = X;
|
|
5895
5895
|
},
|
|
5896
5896
|
onClick() {
|
|
5897
5897
|
var X;
|
|
@@ -5906,7 +5906,7 @@ const Mt = (E) => {
|
|
|
5906
5906
|
}),
|
|
5907
5907
|
le.label,
|
|
5908
5908
|
v === le.value && ne
|
|
5909
|
-
)), Y =
|
|
5909
|
+
)), Y = L || o, pe = c ? `${c / 16}rem` : null, be = c ? { width: pe } : null;
|
|
5910
5910
|
return /* @__PURE__ */ e.createElement(
|
|
5911
5911
|
Ae,
|
|
5912
5912
|
y({
|
|
@@ -5961,8 +5961,8 @@ const Mt = (E) => {
|
|
|
5961
5961
|
)
|
|
5962
5962
|
);
|
|
5963
5963
|
};
|
|
5964
|
-
|
|
5965
|
-
|
|
5964
|
+
Lt.displayName = "Select";
|
|
5965
|
+
Lt.propTypes = {
|
|
5966
5966
|
/**
|
|
5967
5967
|
* Is the field disabled?
|
|
5968
5968
|
*/
|
|
@@ -6115,7 +6115,7 @@ const P1 = (n) => {
|
|
|
6115
6115
|
}, s),
|
|
6116
6116
|
/* @__PURE__ */ e.createElement("div", { id: o, className: "visually-hidden" }, "Pagination"),
|
|
6117
6117
|
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, c > 0 ? /* @__PURE__ */ e.createElement(Ge, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
6118
|
-
|
|
6118
|
+
Lt,
|
|
6119
6119
|
{
|
|
6120
6120
|
label: "Page select dropdown",
|
|
6121
6121
|
selectOptions: m,
|
|
@@ -6473,7 +6473,7 @@ const U1 = {
|
|
|
6473
6473
|
]);
|
|
6474
6474
|
const E = "pds-pricing-card", $ = `${E}-container`, g = a ? `${$}--with-list` : null, _ = p ? `${E}--${p}` : null, f = (V) => V.toLowerCase().replace(/\s/g, "-"), C = l && l.length > 1, [v, w] = R(
|
|
6475
6475
|
f(l[0].label)
|
|
6476
|
-
), [
|
|
6476
|
+
), [L, k] = R(
|
|
6477
6477
|
s.label
|
|
6478
6478
|
);
|
|
6479
6479
|
let x = null, N = null;
|
|
@@ -6526,7 +6526,7 @@ const U1 = {
|
|
|
6526
6526
|
}
|
|
6527
6527
|
);
|
|
6528
6528
|
}));
|
|
6529
|
-
const
|
|
6529
|
+
const M = (V) => {
|
|
6530
6530
|
const S = l.find(
|
|
6531
6531
|
(D) => f(D.label) === V
|
|
6532
6532
|
);
|
|
@@ -6534,7 +6534,7 @@ const U1 = {
|
|
|
6534
6534
|
};
|
|
6535
6535
|
let z = null;
|
|
6536
6536
|
C && (z = /* @__PURE__ */ e.createElement(
|
|
6537
|
-
|
|
6537
|
+
Lt,
|
|
6538
6538
|
{
|
|
6539
6539
|
id: "plan-select",
|
|
6540
6540
|
className: `${E}__select`,
|
|
@@ -6546,7 +6546,7 @@ const U1 = {
|
|
|
6546
6546
|
})),
|
|
6547
6547
|
initialValue: f(l[0].label),
|
|
6548
6548
|
onOptionSelect: (V) => {
|
|
6549
|
-
w(V.value), k(
|
|
6549
|
+
w(V.value), k(M(V.value)), c && c(V.value);
|
|
6550
6550
|
}
|
|
6551
6551
|
}
|
|
6552
6552
|
));
|
|
@@ -6555,7 +6555,7 @@ const U1 = {
|
|
|
6555
6555
|
Ze,
|
|
6556
6556
|
{
|
|
6557
6557
|
variant: s.variant,
|
|
6558
|
-
label:
|
|
6558
|
+
label: L,
|
|
6559
6559
|
onClick: s.buttonAction,
|
|
6560
6560
|
disabled: s.disabled
|
|
6561
6561
|
}
|
|
@@ -7063,7 +7063,7 @@ const At = {
|
|
|
7063
7063
|
}, l),
|
|
7064
7064
|
b,
|
|
7065
7065
|
/* @__PURE__ */ e.createElement(
|
|
7066
|
-
|
|
7066
|
+
Ls,
|
|
7067
7067
|
{
|
|
7068
7068
|
className: `${p}__menu-button`,
|
|
7069
7069
|
label: a,
|
|
@@ -7168,8 +7168,8 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7168
7168
|
let g = $(sn), _ = 7;
|
|
7169
7169
|
l === "sm" && (g = $(tn), _ = _ / 1.25), l === "lg" && (g = $(nn), _ = _ * 1.25);
|
|
7170
7170
|
const f = g / 2 - _ / 2, C = `${f / 100}rem`, v = 2 * Math.PI * f, w = v - v * c / 100;
|
|
7171
|
-
let
|
|
7172
|
-
return n ?
|
|
7171
|
+
let L;
|
|
7172
|
+
return n ? L = n : o ? L = `${c}%` : L = "", /* @__PURE__ */ e.createElement(
|
|
7173
7173
|
"div",
|
|
7174
7174
|
y({
|
|
7175
7175
|
className: [u, i].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -7227,7 +7227,7 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7227
7227
|
textAnchor: "middle",
|
|
7228
7228
|
dy: C
|
|
7229
7229
|
},
|
|
7230
|
-
|
|
7230
|
+
L
|
|
7231
7231
|
)
|
|
7232
7232
|
)
|
|
7233
7233
|
)
|
|
@@ -7248,11 +7248,11 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7248
7248
|
"className"
|
|
7249
7249
|
]);
|
|
7250
7250
|
const l = "pds-stepper", i = "pds-stepper-mobile", m = ee(), [p] = Nt(m), h = p.width, d = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, u = -40, b = 2, E = 5, $ = s.length, g = s.findLastIndex((C) => C.isCurrent), _ = s.map((C, v) => {
|
|
7251
|
-
const w = v + 1,
|
|
7251
|
+
const w = v + 1, L = v === g, k = v < g, x = C.hasError && L, M = (h - $ * d) / ($ + ($ - 2)), z = d + M * 2, I = d + M, H = M + u * -1, V = v === 0, S = v === $ - 1;
|
|
7252
7252
|
let D = z;
|
|
7253
7253
|
(V || S) && (D = I);
|
|
7254
7254
|
const q = `${l}__step`, B = [q];
|
|
7255
|
-
|
|
7255
|
+
L && B.push(`${q}--current`), k && B.push(`${q}--complete`), x && B.push(`${q}--error`);
|
|
7256
7256
|
let W = `${n.step} ${w}`;
|
|
7257
7257
|
k && (W = `${n.step} ${w}, ${n.completed}`), x && (W = `${n.step} ${w}, ${n.hasError}`);
|
|
7258
7258
|
const Z = k ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
@@ -7286,7 +7286,7 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7286
7286
|
"aria-label": W,
|
|
7287
7287
|
"aria-posinset": w,
|
|
7288
7288
|
"aria-setsize": $,
|
|
7289
|
-
"aria-current":
|
|
7289
|
+
"aria-current": L ? "step" : null,
|
|
7290
7290
|
className: B.join(" ").trim().replace(/\s+/g, " "),
|
|
7291
7291
|
style: { width: D }
|
|
7292
7292
|
},
|
|
@@ -7310,9 +7310,9 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7310
7310
|
)
|
|
7311
7311
|
);
|
|
7312
7312
|
}), f = s.map((C, v) => {
|
|
7313
|
-
const w = v + 1,
|
|
7314
|
-
if (
|
|
7315
|
-
const
|
|
7313
|
+
const w = v + 1, L = v === g, k = v === $ - 1, x = C.hasError && L, N = s[g + 1] ? s[g + 1].label : null;
|
|
7314
|
+
if (L) {
|
|
7315
|
+
const M = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), w, " of ", $), z = w / $ * 100, I = x ? {
|
|
7316
7316
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
7317
7317
|
} : {
|
|
7318
7318
|
"--pds-color-progress-partial": "var(--pds-color-stepper-completed)"
|
|
@@ -7330,7 +7330,7 @@ const tn = 3.815, sn = 4.678, nn = 5.96, an = (p) => {
|
|
|
7330
7330
|
label: "Step progress",
|
|
7331
7331
|
size: "sm",
|
|
7332
7332
|
percentage: z,
|
|
7333
|
-
innerLabel:
|
|
7333
|
+
innerLabel: M,
|
|
7334
7334
|
style: I
|
|
7335
7335
|
}
|
|
7336
7336
|
)),
|
|
@@ -7497,7 +7497,7 @@ const rn = (p) => {
|
|
|
7497
7497
|
"|",
|
|
7498
7498
|
"~"
|
|
7499
7499
|
], E = `#${l} h2:not(.${r}), h3:not(.${r})`, $ = () => {
|
|
7500
|
-
const [N,
|
|
7500
|
+
const [N, M] = R([]);
|
|
7501
7501
|
return ae(() => {
|
|
7502
7502
|
const z = Array.from(
|
|
7503
7503
|
document.querySelectorAll(E)
|
|
@@ -7511,26 +7511,26 @@ const rn = (p) => {
|
|
|
7511
7511
|
H.id || (H.id = V);
|
|
7512
7512
|
});
|
|
7513
7513
|
const I = g(z);
|
|
7514
|
-
|
|
7514
|
+
M(I);
|
|
7515
7515
|
}, []), { nestedHeadings: N };
|
|
7516
7516
|
}, g = (N) => {
|
|
7517
|
-
const
|
|
7517
|
+
const M = [];
|
|
7518
7518
|
return N.forEach((z) => {
|
|
7519
7519
|
const { innerText: I, id: H } = z;
|
|
7520
|
-
z.nodeName === "H2" ?
|
|
7520
|
+
z.nodeName === "H2" ? M.push({ id: H, title: I, items: [] }) : z.nodeName === "H3" && M.length > 0 && M[M.length - 1].items.push({
|
|
7521
7521
|
id: H,
|
|
7522
7522
|
title: I
|
|
7523
7523
|
});
|
|
7524
|
-
}),
|
|
7524
|
+
}), M;
|
|
7525
7525
|
}, { nestedHeadings: _ } = $(), [f, C] = R();
|
|
7526
7526
|
((N) => {
|
|
7527
|
-
const
|
|
7527
|
+
const M = ee({});
|
|
7528
7528
|
ae(() => {
|
|
7529
7529
|
const z = (V) => {
|
|
7530
|
-
|
|
7530
|
+
M.current = V.reduce((q, B) => (q[B.target.id] = B, q), M.current);
|
|
7531
7531
|
const S = [];
|
|
7532
|
-
Object.keys(
|
|
7533
|
-
const B =
|
|
7532
|
+
Object.keys(M.current).forEach((q) => {
|
|
7533
|
+
const B = M.current[q];
|
|
7534
7534
|
B.isIntersecting && S.push(B);
|
|
7535
7535
|
});
|
|
7536
7536
|
const D = (q) => H.findIndex((B) => B.id === q);
|
|
@@ -7552,29 +7552,29 @@ const rn = (p) => {
|
|
|
7552
7552
|
})(C);
|
|
7553
7553
|
const w = (N) => {
|
|
7554
7554
|
typeof window != "undefined" && window.location.hash !== `#${N}` && window.history.pushState({}, "", `#${N}`);
|
|
7555
|
-
},
|
|
7555
|
+
}, L = (N) => {
|
|
7556
7556
|
document.querySelector(`#${N}`).scrollIntoView({
|
|
7557
7557
|
behavior: "smooth",
|
|
7558
7558
|
block: "start"
|
|
7559
7559
|
});
|
|
7560
|
-
}, k = (N,
|
|
7561
|
-
N.preventDefault(), s && w(
|
|
7562
|
-
}, x = ({ headings: N }) => /* @__PURE__ */ e.createElement("ul", { className: `${d}__list ${d}__list--top-level` }, N.map((
|
|
7560
|
+
}, k = (N, M) => {
|
|
7561
|
+
N.preventDefault(), s && w(M), L(M);
|
|
7562
|
+
}, x = ({ headings: N }) => /* @__PURE__ */ e.createElement("ul", { className: `${d}__list ${d}__list--top-level` }, N.map((M) => /* @__PURE__ */ e.createElement("li", { key: M.id, className: `${d}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
7563
7563
|
"a",
|
|
7564
7564
|
{
|
|
7565
|
-
className:
|
|
7566
|
-
href: `#${
|
|
7565
|
+
className: M.id === f ? `${d}__link ${d}__link--active` : `${d}__link`,
|
|
7566
|
+
href: `#${M.id}`,
|
|
7567
7567
|
onClick: (z) => {
|
|
7568
|
-
k(z,
|
|
7568
|
+
k(z, M.id);
|
|
7569
7569
|
}
|
|
7570
7570
|
},
|
|
7571
|
-
|
|
7572
|
-
),
|
|
7571
|
+
M.title
|
|
7572
|
+
), M.items.length > 0 && /* @__PURE__ */ e.createElement(
|
|
7573
7573
|
"ul",
|
|
7574
7574
|
{
|
|
7575
7575
|
className: `${d}__list ${d}__list--second-level`
|
|
7576
7576
|
},
|
|
7577
|
-
|
|
7577
|
+
M.items.map((z) => /* @__PURE__ */ e.createElement("li", { key: z.id, className: `${d}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
7578
7578
|
"a",
|
|
7579
7579
|
{
|
|
7580
7580
|
className: z.id === f ? `${d}__link ${d}__link--active` : `${d}__link`,
|
|
@@ -7689,21 +7689,21 @@ const Fn = (m) => {
|
|
|
7689
7689
|
g((u + 1) % C, "next"), b(u + 1);
|
|
7690
7690
|
}, w = () => {
|
|
7691
7691
|
g((u - 1 + C) % C, "prev"), b(u - 1);
|
|
7692
|
-
},
|
|
7692
|
+
}, L = () => {
|
|
7693
7693
|
g(0), b(0);
|
|
7694
7694
|
}, k = () => {
|
|
7695
7695
|
g(C - 1), b(C - 1);
|
|
7696
7696
|
}, x = () => {
|
|
7697
7697
|
$.current[u].focus();
|
|
7698
|
-
},
|
|
7698
|
+
}, M = {
|
|
7699
7699
|
ArrowRight: v,
|
|
7700
7700
|
ArrowLeft: w,
|
|
7701
|
-
Home:
|
|
7701
|
+
Home: L,
|
|
7702
7702
|
End: k,
|
|
7703
7703
|
Space: x,
|
|
7704
7704
|
Enter: x
|
|
7705
7705
|
}[f.code];
|
|
7706
|
-
|
|
7706
|
+
M && (f.preventDefault(), M());
|
|
7707
7707
|
};
|
|
7708
7708
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7709
7709
|
"div",
|
|
@@ -7718,52 +7718,52 @@ const Fn = (m) => {
|
|
|
7718
7718
|
"aria-label": n,
|
|
7719
7719
|
"aria-orientation": "horizontal"
|
|
7720
7720
|
},
|
|
7721
|
-
o.map(({ disabled: f, icon: C, tabId: v, tabLabel: w },
|
|
7721
|
+
o.map(({ disabled: f, icon: C, tabId: v, tabLabel: w }, L) => /* @__PURE__ */ e.createElement(
|
|
7722
7722
|
"button",
|
|
7723
7723
|
{
|
|
7724
7724
|
className: `${h}__tab`,
|
|
7725
|
-
"aria-selected":
|
|
7726
|
-
"data-tabnumber":
|
|
7725
|
+
"aria-selected": L == u,
|
|
7726
|
+
"data-tabnumber": L,
|
|
7727
7727
|
role: "tab",
|
|
7728
7728
|
id: v,
|
|
7729
7729
|
onKeyDown: (k) => {
|
|
7730
7730
|
k.preventDefault(), _(k);
|
|
7731
7731
|
},
|
|
7732
7732
|
key: w,
|
|
7733
|
-
ref: (k) => f ? null : $.current[
|
|
7734
|
-
"aria-controls": `tabpanel_${
|
|
7735
|
-
tabIndex: u ===
|
|
7733
|
+
ref: (k) => f ? null : $.current[L] = k,
|
|
7734
|
+
"aria-controls": `tabpanel_${L}`,
|
|
7735
|
+
tabIndex: u === L ? 1 : -1,
|
|
7736
7736
|
"aria-disabled": !!f,
|
|
7737
7737
|
onClick: f ? null : E
|
|
7738
7738
|
},
|
|
7739
7739
|
/* @__PURE__ */ e.createElement("div", { key: C, className: `${h}__tab-text` }, C ? /* @__PURE__ */ e.createElement(A, { iconName: C, iconSize: r }) : null, " ", w)
|
|
7740
7740
|
))
|
|
7741
7741
|
),
|
|
7742
|
-
o.map(({ tabLabel: f, icon: C, disabled: v, panelContent: w },
|
|
7742
|
+
o.map(({ tabLabel: f, icon: C, disabled: v, panelContent: w }, L) => /* @__PURE__ */ e.createElement(
|
|
7743
7743
|
"div",
|
|
7744
7744
|
y({
|
|
7745
7745
|
className: `${h}__panel`,
|
|
7746
7746
|
role: "tabpanel",
|
|
7747
|
-
key:
|
|
7748
|
-
id: `${h}__tab--${
|
|
7749
|
-
"aria-labelledby": `${h}__tab--${
|
|
7747
|
+
key: L,
|
|
7748
|
+
id: `${h}__tab--${L}`,
|
|
7749
|
+
"aria-labelledby": `${h}__tab--${L}`
|
|
7750
7750
|
}, i),
|
|
7751
7751
|
/* @__PURE__ */ e.createElement(
|
|
7752
7752
|
"button",
|
|
7753
7753
|
{
|
|
7754
7754
|
className: `${h}__trigger`,
|
|
7755
|
-
"aria-selected":
|
|
7755
|
+
"aria-selected": L == u,
|
|
7756
7756
|
role: "tab",
|
|
7757
|
-
"data-tabnumber":
|
|
7757
|
+
"data-tabnumber": L,
|
|
7758
7758
|
key: f,
|
|
7759
7759
|
onKeyDown: _,
|
|
7760
7760
|
"aria-disabled": !!v,
|
|
7761
|
-
"aria-controls": `tabpanel_${
|
|
7762
|
-
tabIndex: u ===
|
|
7761
|
+
"aria-controls": `tabpanel_${L}`,
|
|
7762
|
+
tabIndex: u === L ? 1 : -1,
|
|
7763
7763
|
onClick: v ? null : E
|
|
7764
7764
|
},
|
|
7765
7765
|
/* @__PURE__ */ e.createElement("div", { key: C, className: `${h}__tab-text` }, C ? /* @__PURE__ */ e.createElement(A, { iconSize: "md", iconName: C }) : null, " ", f),
|
|
7766
|
-
|
|
7766
|
+
L == u ? /* @__PURE__ */ e.createElement(
|
|
7767
7767
|
A,
|
|
7768
7768
|
{
|
|
7769
7769
|
iconName: "angleUp",
|
|
@@ -7783,7 +7783,7 @@ const Fn = (m) => {
|
|
|
7783
7783
|
"section",
|
|
7784
7784
|
{
|
|
7785
7785
|
className: `${h}__panel-content`,
|
|
7786
|
-
hidden:
|
|
7786
|
+
hidden: L != u
|
|
7787
7787
|
},
|
|
7788
7788
|
w
|
|
7789
7789
|
)
|
|
@@ -7824,7 +7824,7 @@ const Fn = (m) => {
|
|
|
7824
7824
|
"validationFunction",
|
|
7825
7825
|
"className"
|
|
7826
7826
|
]);
|
|
7827
|
-
const [f, C] = R(c), [v, w] = R(s("")), [
|
|
7827
|
+
const [f, C] = R(c), [v, w] = R(s("")), [L, k] = R(), [x, N] = R(null), M = ee(null), z = "pds-textarea", I = o ? "pds-is-resizable" : null;
|
|
7828
7828
|
ae(() => {
|
|
7829
7829
|
c && s && w(s(c));
|
|
7830
7830
|
}, []);
|
|
@@ -7838,7 +7838,7 @@ const Fn = (m) => {
|
|
|
7838
7838
|
H(), B.error && N("error"), B.success && N("success"), k(B.message);
|
|
7839
7839
|
}
|
|
7840
7840
|
m && m(f);
|
|
7841
|
-
}, D =
|
|
7841
|
+
}, D = L || i;
|
|
7842
7842
|
return /* @__PURE__ */ e.createElement(
|
|
7843
7843
|
Ae,
|
|
7844
7844
|
y({
|
|
@@ -7868,7 +7868,7 @@ const Fn = (m) => {
|
|
|
7868
7868
|
rows: u,
|
|
7869
7869
|
onChange: V,
|
|
7870
7870
|
onBlur: S,
|
|
7871
|
-
ref:
|
|
7871
|
+
ref: M,
|
|
7872
7872
|
"aria-invalid": x === "error",
|
|
7873
7873
|
"aria-describedby": D ? `${a}__message` : null
|
|
7874
7874
|
}
|
|
@@ -8526,11 +8526,11 @@ const Wn = () => {
|
|
|
8526
8526
|
visibilityToggleShow: "Show input value"
|
|
8527
8527
|
},
|
|
8528
8528
|
type: w = "text",
|
|
8529
|
-
validationMessage:
|
|
8529
|
+
validationMessage: L,
|
|
8530
8530
|
validationStatus: k,
|
|
8531
8531
|
value: x,
|
|
8532
8532
|
className: N
|
|
8533
|
-
} = H,
|
|
8533
|
+
} = H, M = T(H, [
|
|
8534
8534
|
"autoComplete",
|
|
8535
8535
|
"counterMaxLength",
|
|
8536
8536
|
"defaultValue",
|
|
@@ -8561,7 +8561,7 @@ const Wn = () => {
|
|
|
8561
8561
|
const V = Ns(m), S = "pds-text-input", D = c ? Ee.disabled : null, q = _ && !c ? Ee.required : null, B = k === "error" ? Ee.error : null, W = k === "success" ? Ee.success : null, Z = g ? Ee.readonly : null;
|
|
8562
8562
|
let F = null;
|
|
8563
8563
|
w === "search" && (F = "search"), k === "error" && (F = "error"), k === "success" && (F = "success");
|
|
8564
|
-
const O =
|
|
8564
|
+
const O = L || h, j = typeof x != "undefined", U = typeof a != "undefined", [G, te] = R(
|
|
8565
8565
|
U ? a : ""
|
|
8566
8566
|
), se = x || G, fe = (K) => {
|
|
8567
8567
|
C && Y && pe(!1), d && d(K);
|
|
@@ -8591,7 +8591,7 @@ const Wn = () => {
|
|
|
8591
8591
|
N != null ? N : ""
|
|
8592
8592
|
]),
|
|
8593
8593
|
style: m ? V : null
|
|
8594
|
-
},
|
|
8594
|
+
}, M),
|
|
8595
8595
|
/* @__PURE__ */ e.createElement(
|
|
8596
8596
|
Ht,
|
|
8597
8597
|
{
|
|
@@ -8661,7 +8661,7 @@ const Wn = () => {
|
|
|
8661
8661
|
{
|
|
8662
8662
|
id: l,
|
|
8663
8663
|
message: O,
|
|
8664
|
-
hasValidationMessage: !!
|
|
8664
|
+
hasValidationMessage: !!L,
|
|
8665
8665
|
validationMessageHasDecorators: !1,
|
|
8666
8666
|
validationStatus: k
|
|
8667
8667
|
}
|
|
@@ -8698,10 +8698,10 @@ const Wn = () => {
|
|
|
8698
8698
|
"className"
|
|
8699
8699
|
]);
|
|
8700
8700
|
const [b, E] = R(!1), [$, g] = R(null), [_, f] = R(m), C = ee([]), v = ee(null), w = m.length >= o;
|
|
8701
|
-
let
|
|
8701
|
+
let L = !1;
|
|
8702
8702
|
const k = ke(qe);
|
|
8703
|
-
k && (
|
|
8704
|
-
const x = i &&
|
|
8703
|
+
k && (L = k.isMobile);
|
|
8704
|
+
const x = i && L, N = "pds-workspace-selector", M = x ? `${N}--isMobile` : null, z = `${N}__menu`, I = w ? `${z}--scroll` : null, { refs: H, floatingStyles: V, context: S } = Se({
|
|
8705
8705
|
open: b,
|
|
8706
8706
|
onOpenChange: E,
|
|
8707
8707
|
whileElementsMounted: De
|
|
@@ -8780,7 +8780,7 @@ const Wn = () => {
|
|
|
8780
8780
|
}
|
|
8781
8781
|
)), Y = _.map(
|
|
8782
8782
|
(X, he) => {
|
|
8783
|
-
const Ne = `${N}__item`, J = X.isActive ? `${Ne}--active` : null, ce = X.isUnprivileged ? `${Ne}--unprivileged` : null,
|
|
8783
|
+
const Ne = `${N}__item`, J = X.isActive ? `${Ne}--active` : null, ce = X.isUnprivileged ? `${Ne}--unprivileged` : null, Le = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${N}__active-icon` }), He = X.workspaceId, Me = X.workspaceLink.type, _e = X.isUnprivileged ? null : (Xe) => {
|
|
8784
8784
|
C.current[he] = Xe;
|
|
8785
8785
|
};
|
|
8786
8786
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8799,7 +8799,7 @@ const Wn = () => {
|
|
|
8799
8799
|
onKeyDown: se
|
|
8800
8800
|
}, O()),
|
|
8801
8801
|
/* @__PURE__ */ e.createElement(
|
|
8802
|
-
|
|
8802
|
+
Me,
|
|
8803
8803
|
ge(y({}, X.workspaceLink.props), {
|
|
8804
8804
|
onClick: () => E(!1)
|
|
8805
8805
|
}),
|
|
@@ -8812,7 +8812,7 @@ const Wn = () => {
|
|
|
8812
8812
|
className: `${N}__list-avatar`
|
|
8813
8813
|
}
|
|
8814
8814
|
), X.displayName),
|
|
8815
|
-
X.isActive &&
|
|
8815
|
+
X.isActive && Le
|
|
8816
8816
|
)
|
|
8817
8817
|
);
|
|
8818
8818
|
}
|
|
@@ -8882,7 +8882,7 @@ const Wn = () => {
|
|
|
8882
8882
|
return /* @__PURE__ */ e.createElement(
|
|
8883
8883
|
"span",
|
|
8884
8884
|
y({
|
|
8885
|
-
className: [N,
|
|
8885
|
+
className: [N, M, p].join(" ").trim().replace(/\s+/g, " ")
|
|
8886
8886
|
}, h),
|
|
8887
8887
|
x ? K : be
|
|
8888
8888
|
);
|
|
@@ -9097,8 +9097,8 @@ const vn = (o) => {
|
|
|
9097
9097
|
)), /* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), n && /* @__PURE__ */ e.createElement("div", { className: `${i}__title` }, n), s && /* @__PURE__ */ e.createElement("div", { className: `${i}__main-content` }, s)))
|
|
9098
9098
|
);
|
|
9099
9099
|
}, _n = Ke(
|
|
9100
|
-
(
|
|
9101
|
-
var k =
|
|
9100
|
+
(L, w) => {
|
|
9101
|
+
var k = L, {
|
|
9102
9102
|
checked: s,
|
|
9103
9103
|
defaultChecked: n,
|
|
9104
9104
|
disabled: a,
|
|
@@ -9141,7 +9141,7 @@ const vn = (o) => {
|
|
|
9141
9141
|
"value",
|
|
9142
9142
|
"className"
|
|
9143
9143
|
]);
|
|
9144
|
-
const x = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox",
|
|
9144
|
+
const x = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", M = a ? Ee.disabled : null, z = E && !a ? Ee.required : null, I = _ === "error" ? Ee.error : null, H = _ === "success" ? Ee.success : null, V = h > 0 ? `${N}--indent-${h}` : null, S = g || m, D = typeof s != "undefined", q = typeof n != "undefined", [B, W] = R(
|
|
9145
9145
|
q ? n : !1
|
|
9146
9146
|
), Z = s || B, F = (te) => {
|
|
9147
9147
|
D || W(te.target.checked), u && u(te);
|
|
@@ -9170,7 +9170,7 @@ const vn = (o) => {
|
|
|
9170
9170
|
y({
|
|
9171
9171
|
className: [
|
|
9172
9172
|
N,
|
|
9173
|
-
|
|
9173
|
+
M,
|
|
9174
9174
|
z,
|
|
9175
9175
|
I,
|
|
9176
9176
|
H,
|
|
@@ -9327,7 +9327,7 @@ const vn = (o) => {
|
|
|
9327
9327
|
"validationStatus",
|
|
9328
9328
|
"className"
|
|
9329
9329
|
]);
|
|
9330
|
-
const _ = c ? { width: `${c / 16}rem` } : null, f = "pds-checkbox-group", C = s ? Ee.disabled : null, v = p && !s ? Ee.required : null, w = u === "error" ? Ee.error : null,
|
|
9330
|
+
const _ = c ? { width: `${c / 16}rem` } : null, f = "pds-checkbox-group", C = s ? Ee.disabled : null, v = p && !s ? Ee.required : null, w = u === "error" ? Ee.error : null, L = u === "success" ? Ee.success : null, k = d || o;
|
|
9331
9331
|
m.map((H) => {
|
|
9332
9332
|
H.id || (H.id = H.value);
|
|
9333
9333
|
});
|
|
@@ -9335,9 +9335,9 @@ const vn = (o) => {
|
|
|
9335
9335
|
m.map((H) => {
|
|
9336
9336
|
H.checked === !0 && x.push(H.value);
|
|
9337
9337
|
});
|
|
9338
|
-
const [N,
|
|
9338
|
+
const [N, M] = R(x), z = (H) => {
|
|
9339
9339
|
const { value: V } = H.target, S = N.includes(V) ? N.filter((D) => D !== V) : [...N, V];
|
|
9340
|
-
|
|
9340
|
+
M(S), i && i(S);
|
|
9341
9341
|
};
|
|
9342
9342
|
m.map((H) => {
|
|
9343
9343
|
N.includes(H.value) ? H.checked = !0 : H.checked = !1;
|
|
@@ -9355,7 +9355,7 @@ const vn = (o) => {
|
|
|
9355
9355
|
C,
|
|
9356
9356
|
v,
|
|
9357
9357
|
w,
|
|
9358
|
-
|
|
9358
|
+
L,
|
|
9359
9359
|
b != null ? b : ""
|
|
9360
9360
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
9361
9361
|
style: c ? _ : null
|
|
@@ -9405,7 +9405,7 @@ const vn = (o) => {
|
|
|
9405
9405
|
"className"
|
|
9406
9406
|
]);
|
|
9407
9407
|
var $, g, _, f;
|
|
9408
|
-
const o = "pds-input-group", l = [], i = ["TextInput", "Select"], m = ["Button", "IconButton"];
|
|
9408
|
+
const o = "pds-input-group", l = [], i = ["TextInput", "Select"], m = ["Button", "IconButton", "ButtonLink"];
|
|
9409
9409
|
i.includes(s[0].type.displayName) && l.push(s[0]), m.includes(s[1].type.displayName) && l.push(s[1]);
|
|
9410
9410
|
const p = ($ = s[0].props.id) != null ? $ : null, h = (g = s[0].props.message) != null ? g : null, d = (_ = s[0].props.validationMessage) != null ? _ : null, u = (f = s[0].props.validationStatus) != null ? f : null, b = d || h, E = b ? `${o}--has-message` : null;
|
|
9411
9411
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9486,7 +9486,7 @@ const vn = (o) => {
|
|
|
9486
9486
|
"showStatusLabel",
|
|
9487
9487
|
"className"
|
|
9488
9488
|
]);
|
|
9489
|
-
const v = Ns(o), w = "pds-switch",
|
|
9489
|
+
const v = Ns(o), w = "pds-switch", L = a ? Ee.disabled : null, k = u && !a ? Ee.required : null, x = typeof s != "undefined", N = i == "below", M = i == "right", z = !x && n ? n : !1, [I, H] = R(z), V = s || I ? d : p, S = (F) => {
|
|
9490
9490
|
x || H(F.target.checked), h && h(F);
|
|
9491
9491
|
}, D = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
9492
9492
|
"input",
|
|
@@ -9527,7 +9527,7 @@ const vn = (o) => {
|
|
|
9527
9527
|
}
|
|
9528
9528
|
);
|
|
9529
9529
|
let W, Z;
|
|
9530
|
-
return N ? W = /* @__PURE__ */ e.createElement(e.Fragment, null, q, B, D) :
|
|
9530
|
+
return N ? W = /* @__PURE__ */ e.createElement(e.Fragment, null, q, B, D) : M && (Z = "pds-switch--placement-right", W = m ? /* @__PURE__ */ e.createElement(e.Fragment, null, q, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, B, /* @__PURE__ */ e.createElement("div", null, D))) : /* @__PURE__ */ e.createElement(
|
|
9531
9531
|
"div",
|
|
9532
9532
|
{
|
|
9533
9533
|
className: oe([
|
|
@@ -9543,7 +9543,7 @@ const vn = (o) => {
|
|
|
9543
9543
|
className: oe([
|
|
9544
9544
|
Ee.base,
|
|
9545
9545
|
w,
|
|
9546
|
-
|
|
9546
|
+
L,
|
|
9547
9547
|
k,
|
|
9548
9548
|
Z,
|
|
9549
9549
|
$
|
|
@@ -9585,7 +9585,7 @@ const vn = (o) => {
|
|
|
9585
9585
|
onOpenChange: E
|
|
9586
9586
|
}), f = lt(g), C = Ie(g, {
|
|
9587
9587
|
outsidePressEvent: "mousedown"
|
|
9588
|
-
}), v = Te(g), { getFloatingProps: w } = Oe([f, C, v]), { isMounted:
|
|
9588
|
+
}), v = Te(g), { getFloatingProps: w } = Oe([f, C, v]), { isMounted: L, styles: k } = Ye(g, {
|
|
9589
9589
|
duration: {
|
|
9590
9590
|
open: 300,
|
|
9591
9591
|
close: 300
|
|
@@ -9603,7 +9603,7 @@ const vn = (o) => {
|
|
|
9603
9603
|
transform: "translateY(1rem)"
|
|
9604
9604
|
}
|
|
9605
9605
|
});
|
|
9606
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
9606
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, L && /* @__PURE__ */ e.createElement(
|
|
9607
9607
|
Gs,
|
|
9608
9608
|
{
|
|
9609
9609
|
lockScroll: !0,
|
|
@@ -9729,15 +9729,15 @@ const vn = (o) => {
|
|
|
9729
9729
|
open: m,
|
|
9730
9730
|
onOpenChange: p,
|
|
9731
9731
|
whileElementsMounted: De
|
|
9732
|
-
}), w = ee([]),
|
|
9732
|
+
}), w = ee([]), L = dt(v, {
|
|
9733
9733
|
listRef: w,
|
|
9734
9734
|
activeIndex: h,
|
|
9735
9735
|
onNavigate: d,
|
|
9736
9736
|
loop: !0,
|
|
9737
9737
|
openOnArrowKeyDown: !0,
|
|
9738
9738
|
focusItemOnHover: !0
|
|
9739
|
-
}), k = lt(v, { event: "mousedown" }), x = Ie(v), N = Te(v, { role: "menu" }), { getReferenceProps:
|
|
9740
|
-
[x, N, k,
|
|
9739
|
+
}), k = lt(v, { event: "mousedown" }), x = Ie(v), N = Te(v, { role: "menu" }), { getReferenceProps: M, getFloatingProps: z, getItemProps: I } = Oe(
|
|
9740
|
+
[x, N, k, L]
|
|
9741
9741
|
), { isMounted: H, styles: V } = Ye(v, {
|
|
9742
9742
|
duration: {
|
|
9743
9743
|
open: 300,
|
|
@@ -9758,7 +9758,7 @@ const vn = (o) => {
|
|
|
9758
9758
|
y({
|
|
9759
9759
|
className: `${i}__trigger`,
|
|
9760
9760
|
ref: C.setReference
|
|
9761
|
-
},
|
|
9761
|
+
}, M()),
|
|
9762
9762
|
/* @__PURE__ */ e.createElement("span", { className: `${i}__active-label` }, b),
|
|
9763
9763
|
/* @__PURE__ */ e.createElement(
|
|
9764
9764
|
A,
|
|
@@ -9821,11 +9821,11 @@ const vn = (o) => {
|
|
|
9821
9821
|
"aria-expanded",
|
|
9822
9822
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9823
9823
|
), w.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9824
|
-
}, $ = (v, w,
|
|
9824
|
+
}, $ = (v, w, L) => {
|
|
9825
9825
|
let k = null;
|
|
9826
9826
|
if (typeof v == "string") {
|
|
9827
|
-
const x =
|
|
9828
|
-
/* @__PURE__ */ e.createElement("span", { key: v, className: `${u}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${u}__link-icon` }, /* @__PURE__ */ e.createElement(A, { iconName:
|
|
9827
|
+
const x = L ? [
|
|
9828
|
+
/* @__PURE__ */ e.createElement("span", { key: v, className: `${u}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${u}__link-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: L, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${u}__link-label` }, v))
|
|
9829
9829
|
] : [
|
|
9830
9830
|
/* @__PURE__ */ e.createElement("span", { key: v, className: `${u}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${u}__link-label` }, v))
|
|
9831
9831
|
];
|
|
@@ -9835,19 +9835,19 @@ const vn = (o) => {
|
|
|
9835
9835
|
} else
|
|
9836
9836
|
k = null;
|
|
9837
9837
|
}
|
|
9838
|
-
return typeof v == "object" && (
|
|
9838
|
+
return typeof v == "object" && (L ? k = ot(v, ge(y({}, v.props), {
|
|
9839
9839
|
children: [
|
|
9840
|
-
/* @__PURE__ */ e.createElement("span", { key:
|
|
9840
|
+
/* @__PURE__ */ e.createElement("span", { key: L, className: `${u}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${u}__link-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: L, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${u}__link-label` }, v.props.children))
|
|
9841
9841
|
]
|
|
9842
9842
|
})) : k = v), k;
|
|
9843
9843
|
}, g = (v, w) => {
|
|
9844
|
-
const { linkContent:
|
|
9844
|
+
const { linkContent: L, links: k, icon: x } = v, N = `${u}__item`, M = `${u}__menu`, z = /* @__PURE__ */ e.createElement("div", { className: `${N}-wrapper` }, $(L, k, x)), I = (U, G) => /* @__PURE__ */ e.createElement(
|
|
9845
9845
|
"ul",
|
|
9846
9846
|
{
|
|
9847
9847
|
className: oe([
|
|
9848
|
-
|
|
9848
|
+
M,
|
|
9849
9849
|
G,
|
|
9850
|
-
Ce(v) ? `${
|
|
9850
|
+
Ce(v) ? `${M}--expanded` : null
|
|
9851
9851
|
])
|
|
9852
9852
|
},
|
|
9853
9853
|
U.map((te, se) => /* @__PURE__ */ e.createElement(
|
|
@@ -9893,7 +9893,7 @@ const vn = (o) => {
|
|
|
9893
9893
|
]),
|
|
9894
9894
|
ref: d ? null : S.setReference
|
|
9895
9895
|
}, O()),
|
|
9896
|
-
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}-wrapper` }, $(
|
|
9896
|
+
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}-wrapper` }, $(L, k, x), d && /* @__PURE__ */ e.createElement(
|
|
9897
9897
|
"button",
|
|
9898
9898
|
{
|
|
9899
9899
|
"aria-expanded": Ce(v),
|
|
@@ -9904,20 +9904,20 @@ const vn = (o) => {
|
|
|
9904
9904
|
onClick: E
|
|
9905
9905
|
},
|
|
9906
9906
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleDown", iconSize: "md" }),
|
|
9907
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${n.toggle} ${nt(
|
|
9908
|
-
)), d && I(k, `${
|
|
9907
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${n.toggle} ${nt(L)} ${n.submenu}`)
|
|
9908
|
+
)), d && I(k, `${M}--second-level`), !d && H && /* @__PURE__ */ e.createElement(
|
|
9909
9909
|
"div",
|
|
9910
9910
|
y({
|
|
9911
9911
|
className: `${u}__flyout`,
|
|
9912
9912
|
ref: S.setFloating,
|
|
9913
9913
|
style: D
|
|
9914
9914
|
}, j()),
|
|
9915
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, nt(
|
|
9916
|
-
I(k, `${
|
|
9915
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, nt(L)),
|
|
9916
|
+
I(k, `${M}--flyout`)
|
|
9917
9917
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, d ? z : /* @__PURE__ */ e.createElement(
|
|
9918
9918
|
vt,
|
|
9919
9919
|
{
|
|
9920
|
-
content: nt(
|
|
9920
|
+
content: nt(L),
|
|
9921
9921
|
customTrigger: z,
|
|
9922
9922
|
offsetValue: {
|
|
9923
9923
|
mainAxis: -6,
|
|
@@ -9993,7 +9993,7 @@ const vn = (o) => {
|
|
|
9993
9993
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9994
9994
|
), w.parentElement.nextElementSibling.classList.toggle(`${d}__menu--expanded`);
|
|
9995
9995
|
}, _ = (v, w) => {
|
|
9996
|
-
const { linkContent:
|
|
9996
|
+
const { linkContent: L, links: k } = v, x = `${d}__item`, N = `${d}__menu`;
|
|
9997
9997
|
return /* @__PURE__ */ e.createElement(
|
|
9998
9998
|
"li",
|
|
9999
9999
|
{
|
|
@@ -10005,7 +10005,7 @@ const vn = (o) => {
|
|
|
10005
10005
|
Ce(v) ? `${x}--active` : null
|
|
10006
10006
|
])
|
|
10007
10007
|
},
|
|
10008
|
-
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${x}-wrapper` }, We(
|
|
10008
|
+
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${x}-wrapper` }, We(L, k), /* @__PURE__ */ e.createElement(
|
|
10009
10009
|
"button",
|
|
10010
10010
|
{
|
|
10011
10011
|
"aria-expanded": Ce(v),
|
|
@@ -10016,7 +10016,7 @@ const vn = (o) => {
|
|
|
10016
10016
|
onClick: g
|
|
10017
10017
|
},
|
|
10018
10018
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleDown", iconSize: "md" }),
|
|
10019
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(
|
|
10019
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(L)} ${c.submenu}`)
|
|
10020
10020
|
)), /* @__PURE__ */ e.createElement(
|
|
10021
10021
|
"ul",
|
|
10022
10022
|
{
|
|
@@ -10026,24 +10026,24 @@ const vn = (o) => {
|
|
|
10026
10026
|
Ce(v) ? `${N}--expanded` : null
|
|
10027
10027
|
])
|
|
10028
10028
|
},
|
|
10029
|
-
k.map((
|
|
10029
|
+
k.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
10030
10030
|
"li",
|
|
10031
10031
|
{
|
|
10032
10032
|
key: z,
|
|
10033
10033
|
className: oe([
|
|
10034
10034
|
x,
|
|
10035
10035
|
`${x}--second-level`,
|
|
10036
|
-
Ce(
|
|
10036
|
+
Ce(M) ? `${x}--active` : null
|
|
10037
10037
|
])
|
|
10038
10038
|
},
|
|
10039
10039
|
We(
|
|
10040
|
-
|
|
10041
|
-
|
|
10040
|
+
M.linkContent,
|
|
10041
|
+
M.links
|
|
10042
10042
|
)
|
|
10043
10043
|
))
|
|
10044
10044
|
)) : (
|
|
10045
10045
|
// If no top-level child links are present, render the link content as is.
|
|
10046
|
-
|
|
10046
|
+
L
|
|
10047
10047
|
)
|
|
10048
10048
|
);
|
|
10049
10049
|
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((v, w) => _(v, w)))), C = /* @__PURE__ */ e.createElement(
|
|
@@ -10098,7 +10098,7 @@ const vn = (o) => {
|
|
|
10098
10098
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
10099
10099
|
), w.parentElement.nextElementSibling.classList.toggle(`${d}__menu--expanded`);
|
|
10100
10100
|
}, _ = (v, w) => {
|
|
10101
|
-
const { linkContent:
|
|
10101
|
+
const { linkContent: L, links: k } = v, x = `${d}__item`, N = `${d}__menu`;
|
|
10102
10102
|
return /* @__PURE__ */ e.createElement(
|
|
10103
10103
|
"li",
|
|
10104
10104
|
{
|
|
@@ -10121,8 +10121,8 @@ const vn = (o) => {
|
|
|
10121
10121
|
onClick: g
|
|
10122
10122
|
},
|
|
10123
10123
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "md" }),
|
|
10124
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(
|
|
10125
|
-
), We(
|
|
10124
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(L)} ${c.submenu}`)
|
|
10125
|
+
), We(L, k)), /* @__PURE__ */ e.createElement(
|
|
10126
10126
|
"ul",
|
|
10127
10127
|
{
|
|
10128
10128
|
className: oe([
|
|
@@ -10131,41 +10131,41 @@ const vn = (o) => {
|
|
|
10131
10131
|
Ce(v) ? `${N}--expanded` : null
|
|
10132
10132
|
])
|
|
10133
10133
|
},
|
|
10134
|
-
k.map((
|
|
10134
|
+
k.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
10135
10135
|
"li",
|
|
10136
10136
|
{
|
|
10137
10137
|
key: z,
|
|
10138
10138
|
className: oe([
|
|
10139
10139
|
x,
|
|
10140
10140
|
`${x}--second-level`,
|
|
10141
|
-
Ce(
|
|
10141
|
+
Ce(M) ? `${x}--active` : null
|
|
10142
10142
|
])
|
|
10143
10143
|
},
|
|
10144
|
-
|
|
10144
|
+
M.links ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${x}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10145
10145
|
"button",
|
|
10146
10146
|
{
|
|
10147
|
-
"aria-expanded": Ce(
|
|
10147
|
+
"aria-expanded": Ce(M),
|
|
10148
10148
|
className: oe([
|
|
10149
10149
|
`${d}__toggle`,
|
|
10150
|
-
Ce(
|
|
10150
|
+
Ce(M) ? `${d}__toggle--expanded` : null
|
|
10151
10151
|
]),
|
|
10152
10152
|
onClick: g
|
|
10153
10153
|
},
|
|
10154
10154
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "md" }),
|
|
10155
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(
|
|
10155
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${nt(M.linkContent)} ${c.submenu}`)
|
|
10156
10156
|
), We(
|
|
10157
|
-
|
|
10158
|
-
|
|
10157
|
+
M.linkContent,
|
|
10158
|
+
M.links
|
|
10159
10159
|
)), /* @__PURE__ */ e.createElement(
|
|
10160
10160
|
"ul",
|
|
10161
10161
|
{
|
|
10162
10162
|
className: oe([
|
|
10163
10163
|
N,
|
|
10164
10164
|
`${N}--third-level`,
|
|
10165
|
-
Ce(
|
|
10165
|
+
Ce(M) ? `${N}--expanded` : null
|
|
10166
10166
|
])
|
|
10167
10167
|
},
|
|
10168
|
-
|
|
10168
|
+
M.links.map((I, H) => /* @__PURE__ */ e.createElement(
|
|
10169
10169
|
"li",
|
|
10170
10170
|
{
|
|
10171
10171
|
key: H,
|
|
@@ -10182,12 +10182,12 @@ const vn = (o) => {
|
|
|
10182
10182
|
))
|
|
10183
10183
|
)) : (
|
|
10184
10184
|
// If no second-level child links are present, render the link content as is.
|
|
10185
|
-
|
|
10185
|
+
M.linkContent
|
|
10186
10186
|
)
|
|
10187
10187
|
))
|
|
10188
10188
|
)) : (
|
|
10189
10189
|
// If no top-level child links are present, render the link content as is.
|
|
10190
|
-
|
|
10190
|
+
L
|
|
10191
10191
|
)
|
|
10192
10192
|
);
|
|
10193
10193
|
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((v, w) => _(v, w)))), C = /* @__PURE__ */ e.createElement(
|
|
@@ -10228,13 +10228,13 @@ const vn = (o) => {
|
|
|
10228
10228
|
let g = !1;
|
|
10229
10229
|
const _ = ke(qe);
|
|
10230
10230
|
_ && (g = _.isMobile);
|
|
10231
|
-
const f = o && g, C = "pds-user-menu", v = f ? `${C}--isMobile` : null, w = `${C}__menu`, { refs:
|
|
10231
|
+
const f = o && g, C = "pds-user-menu", v = f ? `${C}--isMobile` : null, w = `${C}__menu`, { refs: L, floatingStyles: k, context: x } = Se({
|
|
10232
10232
|
placement: "bottom-end",
|
|
10233
10233
|
open: u,
|
|
10234
10234
|
onOpenChange: b,
|
|
10235
10235
|
middleware: [$t(12), yt(), wt()],
|
|
10236
10236
|
whileElementsMounted: De
|
|
10237
|
-
}), N = lt(x, { event: "mousedown" }),
|
|
10237
|
+
}), N = lt(x, { event: "mousedown" }), M = Ie(x), z = Te(x, { role: "menu" }), I = ee([]), H = dt(x, {
|
|
10238
10238
|
listRef: I,
|
|
10239
10239
|
activeIndex: h,
|
|
10240
10240
|
onNavigate: d,
|
|
@@ -10243,7 +10243,7 @@ const vn = (o) => {
|
|
|
10243
10243
|
focusItemOnOpen: !1,
|
|
10244
10244
|
focusItemOnHover: !0
|
|
10245
10245
|
}), { getReferenceProps: V, getFloatingProps: S, getItemProps: D } = Oe(
|
|
10246
|
-
[
|
|
10246
|
+
[M, z, N, H]
|
|
10247
10247
|
), { isMounted: q, styles: B } = Ye(x, {
|
|
10248
10248
|
duration: {
|
|
10249
10249
|
open: 300,
|
|
@@ -10308,14 +10308,14 @@ const vn = (o) => {
|
|
|
10308
10308
|
y({
|
|
10309
10309
|
className: `${C}__trigger`,
|
|
10310
10310
|
"aria-label": s,
|
|
10311
|
-
ref:
|
|
10311
|
+
ref: L.setReference
|
|
10312
10312
|
}, V()),
|
|
10313
10313
|
W
|
|
10314
10314
|
), q && /* @__PURE__ */ e.createElement(
|
|
10315
10315
|
"div",
|
|
10316
10316
|
y({
|
|
10317
10317
|
className: `${C}__dropdown`,
|
|
10318
|
-
ref:
|
|
10318
|
+
ref: L.setFloating,
|
|
10319
10319
|
style: ge(y({}, k), {
|
|
10320
10320
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
10321
10321
|
})
|
|
@@ -10409,8 +10409,8 @@ const vn = (o) => {
|
|
|
10409
10409
|
...k.slice(0, k.length - 1)
|
|
10410
10410
|
]), document.getElementById(p[0].id).classList.remove(`${u}--fading`);
|
|
10411
10411
|
}, 200);
|
|
10412
|
-
},
|
|
10413
|
-
const { id: N, isDismissible:
|
|
10412
|
+
}, L = (k, x) => {
|
|
10413
|
+
const { id: N, isDismissible: M, message: z, onDismiss: I, type: H } = k, S = ["critical", "warning"].includes(H) ? "alert" : "status", D = `${r[H]}: `, q = (B) => {
|
|
10414
10414
|
B.preventDefault(), document.getElementById(N).classList.add(`${u}--dismissing`), setTimeout(() => {
|
|
10415
10415
|
if (d === 1) {
|
|
10416
10416
|
h([]);
|
|
@@ -10440,7 +10440,7 @@ const vn = (o) => {
|
|
|
10440
10440
|
className: `${u}__icon ${u}__icon--${k.type}`
|
|
10441
10441
|
}
|
|
10442
10442
|
), /* @__PURE__ */ e.createElement("div", { className: `${u}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, D, " "), z)),
|
|
10443
|
-
|
|
10443
|
+
M && /* @__PURE__ */ e.createElement(
|
|
10444
10444
|
"button",
|
|
10445
10445
|
{
|
|
10446
10446
|
className: `${u}__dismiss-button`,
|
|
@@ -10479,7 +10479,7 @@ const vn = (o) => {
|
|
|
10479
10479
|
ariaLabel: a,
|
|
10480
10480
|
onClick: v
|
|
10481
10481
|
}
|
|
10482
|
-
), p.map((k, x) =>
|
|
10482
|
+
), p.map((k, x) => L(k, x))) : L(p[0], 0)
|
|
10483
10483
|
);
|
|
10484
10484
|
}, Pt = {
|
|
10485
10485
|
info: "circleInfo",
|
|
@@ -10575,8 +10575,8 @@ const vn = (o) => {
|
|
|
10575
10575
|
u.current.addEventListener("animationend", v, {
|
|
10576
10576
|
once: !0
|
|
10577
10577
|
});
|
|
10578
|
-
}, v = (
|
|
10579
|
-
c(
|
|
10578
|
+
}, v = (L) => {
|
|
10579
|
+
c(L, n);
|
|
10580
10580
|
}, w = () => {
|
|
10581
10581
|
C(), u.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
10582
10582
|
u.current.classList.toggle(E.dismissing), u.current.classList.toggle(E.dismissed);
|
|
@@ -10671,7 +10671,7 @@ const vn = (o) => {
|
|
|
10671
10671
|
const _ = typeof n, f = "pds-popover", C = [
|
|
10672
10672
|
`${f}__trigger-custom`,
|
|
10673
10673
|
_ === "string" ? `${f}__trigger-text` : ""
|
|
10674
|
-
].join(" ").trim().replace(/\s+/g, " "), v = n ? c : 0, w = ee(null), { refs:
|
|
10674
|
+
].join(" ").trim().replace(/\s+/g, " "), v = n ? c : 0, w = ee(null), { refs: L, floatingStyles: k, context: x, middlewareData: N } = Se({
|
|
10675
10675
|
placement: o,
|
|
10676
10676
|
open: $,
|
|
10677
10677
|
onOpenChange(G) {
|
|
@@ -10684,7 +10684,7 @@ const vn = (o) => {
|
|
|
10684
10684
|
Ks({ element: w })
|
|
10685
10685
|
],
|
|
10686
10686
|
whileElementsMounted: De
|
|
10687
|
-
}),
|
|
10687
|
+
}), M = () => {
|
|
10688
10688
|
g(!1), r && r();
|
|
10689
10689
|
}, z = lt(x), I = Ie(x), H = Te(x), { getReferenceProps: V, getFloatingProps: S } = Oe([
|
|
10690
10690
|
z,
|
|
@@ -10712,7 +10712,7 @@ const vn = (o) => {
|
|
|
10712
10712
|
"span",
|
|
10713
10713
|
y({
|
|
10714
10714
|
className: `${f}__trigger`,
|
|
10715
|
-
ref:
|
|
10715
|
+
ref: L.setReference
|
|
10716
10716
|
}, V()),
|
|
10717
10717
|
n ? /* @__PURE__ */ e.createElement("span", { className: C }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement(
|
|
10718
10718
|
A,
|
|
@@ -10727,7 +10727,7 @@ const vn = (o) => {
|
|
|
10727
10727
|
"div",
|
|
10728
10728
|
y({
|
|
10729
10729
|
className: `${f}__container`,
|
|
10730
|
-
ref:
|
|
10730
|
+
ref: L.setFloating,
|
|
10731
10731
|
style: k
|
|
10732
10732
|
}, S()),
|
|
10733
10733
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10744,7 +10744,7 @@ const vn = (o) => {
|
|
|
10744
10744
|
className: `${f}__arrow`
|
|
10745
10745
|
}
|
|
10746
10746
|
),
|
|
10747
|
-
/* @__PURE__ */ e.createElement("div", { className: `${f}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, l), s && /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, s), a && /* @__PURE__ */ e.createElement("button", { onClick:
|
|
10747
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, l), s && /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, s), a && /* @__PURE__ */ e.createElement("button", { onClick: M, className: `${f}__close` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"), /* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "lg" })))
|
|
10748
10748
|
))
|
|
10749
10749
|
);
|
|
10750
10750
|
}, us = {
|
|
@@ -10782,8 +10782,8 @@ const vn = (o) => {
|
|
|
10782
10782
|
]);
|
|
10783
10783
|
const b = n || Re(), E = "pds-progress-bar", $ = l ? `${E}__label` : "visually-hidden", g = `${E}__track ${E}__track--${m}`, _ = o > 100 ? 100 : o;
|
|
10784
10784
|
let f = "neutral";
|
|
10785
|
-
s.forEach((
|
|
10786
|
-
o >=
|
|
10785
|
+
s.forEach((L) => {
|
|
10786
|
+
o >= L.percentage && (f = L.colorType);
|
|
10787
10787
|
});
|
|
10788
10788
|
const C = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, c), v = c && r === "above", w = c && r === "below";
|
|
10789
10789
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -11069,9 +11069,9 @@ const zn = (i) => {
|
|
|
11069
11069
|
const d = "pds-sidebar-layout", u = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, b = `${d}--${a}`, E = () => {
|
|
11070
11070
|
h(window.innerWidth);
|
|
11071
11071
|
}, $ = {};
|
|
11072
|
-
e.Children.forEach(s, (
|
|
11073
|
-
const k =
|
|
11074
|
-
k && ($[k] ? $[k].push(
|
|
11072
|
+
e.Children.forEach(s, (L) => {
|
|
11073
|
+
const k = L.props.slot;
|
|
11074
|
+
k && ($[k] ? $[k].push(L) : $[k] = [L]);
|
|
11075
11075
|
});
|
|
11076
11076
|
let g = "pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", _ = "pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
11077
11077
|
r === "narrow" && (g = "pds-grid-item--md-9 pds-grid-item--lg-10", _ = "pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (g = "pds-grid-item--md-7 pds-grid-item--lg-8", _ = "pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
@@ -11125,7 +11125,7 @@ zn.propTypes = {
|
|
|
11125
11125
|
*/
|
|
11126
11126
|
className: t.string
|
|
11127
11127
|
};
|
|
11128
|
-
const
|
|
11128
|
+
const Ln = (c) => {
|
|
11129
11129
|
var r = c, { children: s, className: n } = r, a = T(r, ["children", "className"]);
|
|
11130
11130
|
const o = {};
|
|
11131
11131
|
e.Children.forEach(s, (u) => {
|
|
@@ -11154,7 +11154,7 @@ const Mn = (c) => {
|
|
|
11154
11154
|
i && /* @__PURE__ */ e.createElement("div", { className: `${d}__form-container` }, i)
|
|
11155
11155
|
);
|
|
11156
11156
|
};
|
|
11157
|
-
|
|
11157
|
+
Ln.propTypes = {
|
|
11158
11158
|
/**
|
|
11159
11159
|
* Layout content.
|
|
11160
11160
|
*/
|
|
@@ -11164,7 +11164,7 @@ Mn.propTypes = {
|
|
|
11164
11164
|
*/
|
|
11165
11165
|
className: t.string
|
|
11166
11166
|
};
|
|
11167
|
-
const
|
|
11167
|
+
const Mn = (r) => {
|
|
11168
11168
|
var o = r, {
|
|
11169
11169
|
children: s,
|
|
11170
11170
|
gridGap: n = "standard",
|
|
@@ -11199,7 +11199,7 @@ const Ln = (r) => {
|
|
|
11199
11199
|
))
|
|
11200
11200
|
);
|
|
11201
11201
|
};
|
|
11202
|
-
|
|
11202
|
+
Mn.propTypes = {
|
|
11203
11203
|
/**
|
|
11204
11204
|
* Item content.
|
|
11205
11205
|
*/
|
|
@@ -11309,13 +11309,13 @@ export {
|
|
|
11309
11309
|
Et as IconButton,
|
|
11310
11310
|
_t as IndicatorBadge,
|
|
11311
11311
|
a2 as InlineMessage,
|
|
11312
|
-
|
|
11312
|
+
M1 as InputFormatted,
|
|
11313
11313
|
Yn as InputGroup,
|
|
11314
11314
|
x1 as InputObscured,
|
|
11315
11315
|
V1 as InputText,
|
|
11316
11316
|
Ae as InputWrapper,
|
|
11317
11317
|
S1 as LinksCard,
|
|
11318
|
-
|
|
11318
|
+
Ls as MenuButton,
|
|
11319
11319
|
Qn as Modal,
|
|
11320
11320
|
R1 as NavMenu,
|
|
11321
11321
|
O1 as Navbar,
|
|
@@ -11333,7 +11333,7 @@ export {
|
|
|
11333
11333
|
qe as ResponsiveContext,
|
|
11334
11334
|
l2 as SectionMessage,
|
|
11335
11335
|
Zn as SegmentedButton,
|
|
11336
|
-
|
|
11336
|
+
Lt as Select,
|
|
11337
11337
|
e2 as SideNav,
|
|
11338
11338
|
t2 as SideNavCompact,
|
|
11339
11339
|
zn as SidebarLayout,
|
|
@@ -11347,7 +11347,7 @@ export {
|
|
|
11347
11347
|
Xt as StatusBadge,
|
|
11348
11348
|
d2 as StatusIndicator,
|
|
11349
11349
|
ln as Stepper,
|
|
11350
|
-
|
|
11350
|
+
Ln as StepperLayout,
|
|
11351
11351
|
Xn as Switch,
|
|
11352
11352
|
cn as Table,
|
|
11353
11353
|
rn as TableOfContents,
|
|
@@ -11356,7 +11356,7 @@ export {
|
|
|
11356
11356
|
vn as Tally,
|
|
11357
11357
|
gn as TextInput,
|
|
11358
11358
|
on as Textarea,
|
|
11359
|
-
|
|
11359
|
+
Mn as ThreeItemLayout,
|
|
11360
11360
|
Is as Tile,
|
|
11361
11361
|
mn as TileGrid,
|
|
11362
11362
|
Ts as Toast,
|