@pantheon-systems/pds-toolkit-react 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/index.js +179 -176
- package/_dist/index.js.map +1 -1
- package/_dist/libs/types/custom-types.d.ts +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -1505,7 +1505,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
1505
1505
|
let L = !1;
|
|
1506
1506
|
const $ = Ce($e);
|
|
1507
1507
|
$ && (L = $.isMobile);
|
|
1508
|
-
const M = b === "navbar" && L, k = "pds-menu-button", z = M ? `${k}--isMobile` : null,
|
|
1508
|
+
const M = b === "navbar" && L, k = "pds-menu-button", z = M ? `${k}--isMobile` : null, P = p ? `${k}--navbar` : null, I = r, [A] = Z(`menu-button-${r}`), D = f.floating, U = le(null), [F, Q] = Z(!1), [Y, j] = Z(!1), [K, X] = Z(""), [T, x] = Z(0), S = le([]), V = le([]), G = le([]);
|
|
1509
1509
|
G2(() => {
|
|
1510
1510
|
window.addEventListener("mousedown", Le, !0), N();
|
|
1511
1511
|
const B = D.current;
|
|
@@ -1514,7 +1514,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
1514
1514
|
}, 0), j(!1)), () => {
|
|
1515
1515
|
window.removeEventListener("mousedown", Le, !0);
|
|
1516
1516
|
};
|
|
1517
|
-
}, [
|
|
1517
|
+
}, [F, C]);
|
|
1518
1518
|
const O = (B, se) => {
|
|
1519
1519
|
X(B), x(se);
|
|
1520
1520
|
}, W = () => {
|
|
@@ -1546,7 +1546,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
1546
1546
|
const B = V.current[T];
|
|
1547
1547
|
me(B);
|
|
1548
1548
|
}, te = (B) => {
|
|
1549
|
-
|
|
1549
|
+
F ? ee() : W(), o && o(), j((se) => !se), B.stopPropagation(), B.preventDefault();
|
|
1550
1550
|
}, ie = (B) => {
|
|
1551
1551
|
me(B.currentTarget.id), M || ee();
|
|
1552
1552
|
}, re = (B) => {
|
|
@@ -1621,8 +1621,8 @@ const St = 500, o1 = 700, we = ({
|
|
|
1621
1621
|
q && (B.stopPropagation(), B.preventDefault());
|
|
1622
1622
|
}
|
|
1623
1623
|
}, Le = (B) => {
|
|
1624
|
-
U.current && !U.current.contains(B.target) &&
|
|
1625
|
-
},
|
|
1624
|
+
U.current && !U.current.contains(B.target) && F && ee();
|
|
1625
|
+
}, Pe = (B, se, q = "", ne = "", ...oe) => {
|
|
1626
1626
|
const fe = q ? `-group-${q}` : "", de = I + fe + "-item-" + (se + 1), be = B.id ? B.id : de;
|
|
1627
1627
|
if (Vt(B))
|
|
1628
1628
|
return /* @__PURE__ */ e.createElement("li", { key: be, role: "separator" });
|
|
@@ -1711,8 +1711,8 @@ const St = 500, o1 = 700, we = ({
|
|
|
1711
1711
|
onKeyDown: ge,
|
|
1712
1712
|
role: "menu",
|
|
1713
1713
|
style: {
|
|
1714
|
-
visibility:
|
|
1715
|
-
opacity:
|
|
1714
|
+
visibility: F ? "visible" : "hidden",
|
|
1715
|
+
opacity: F ? "1" : "0",
|
|
1716
1716
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1717
1717
|
position: _,
|
|
1718
1718
|
transform: `translate(${Math.round(y)}px,${Math.round(w)}px)`,
|
|
@@ -1722,16 +1722,16 @@ const St = 500, o1 = 700, we = ({
|
|
|
1722
1722
|
},
|
|
1723
1723
|
fe.map((He, qe) => {
|
|
1724
1724
|
de = S.current[qe];
|
|
1725
|
-
const Be = He[0].isHeading, lt = Be ? `${I}-group-${de}-heading` : "",
|
|
1725
|
+
const Be = He[0].isHeading, lt = Be ? `${I}-group-${de}-heading` : "", F2 = `${I}-group-${de}`, B2 = Be ? null : `${g} ${qe + 1}`;
|
|
1726
1726
|
return /* @__PURE__ */ e.createElement(
|
|
1727
1727
|
"ul",
|
|
1728
1728
|
{
|
|
1729
|
-
key:
|
|
1729
|
+
key: F2,
|
|
1730
1730
|
"aria-label": B2,
|
|
1731
1731
|
"aria-labelledby": lt,
|
|
1732
1732
|
role: "group"
|
|
1733
1733
|
},
|
|
1734
|
-
He.map((Z2, W2) =>
|
|
1734
|
+
He.map((Z2, W2) => Pe(
|
|
1735
1735
|
Z2,
|
|
1736
1736
|
W2,
|
|
1737
1737
|
de,
|
|
@@ -1753,25 +1753,25 @@ const St = 500, o1 = 700, we = ({
|
|
|
1753
1753
|
onKeyDown: ge,
|
|
1754
1754
|
role: "menu",
|
|
1755
1755
|
style: {
|
|
1756
|
-
visibility:
|
|
1757
|
-
opacity:
|
|
1756
|
+
visibility: F ? "visible" : "hidden",
|
|
1757
|
+
opacity: F ? "1" : "0",
|
|
1758
1758
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1759
1759
|
position: _,
|
|
1760
1760
|
transform: `translate(${Math.round(y)}px,${Math.round(w)}px)`
|
|
1761
1761
|
},
|
|
1762
1762
|
tabIndex: -1
|
|
1763
1763
|
},
|
|
1764
|
-
se.map((de, be) =>
|
|
1764
|
+
se.map((de, be) => Pe(de, be))
|
|
1765
1765
|
));
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
let
|
|
1769
|
-
if (s === "icon-end" && (
|
|
1768
|
+
let Fe;
|
|
1769
|
+
if (s === "icon-end" && (Fe = /* @__PURE__ */ e.createElement(
|
|
1770
1770
|
ze,
|
|
1771
1771
|
{
|
|
1772
1772
|
ref: u,
|
|
1773
1773
|
"aria-controls": A,
|
|
1774
|
-
"aria-expanded":
|
|
1774
|
+
"aria-expanded": F,
|
|
1775
1775
|
"aria-haspopup": "true",
|
|
1776
1776
|
className: `${k}__trigger`,
|
|
1777
1777
|
disabled: a,
|
|
@@ -1788,12 +1788,12 @@ const St = 500, o1 = 700, we = ({
|
|
|
1788
1788
|
}
|
|
1789
1789
|
)), s === "icon-only") {
|
|
1790
1790
|
const B = Jt(i);
|
|
1791
|
-
|
|
1791
|
+
Fe = /* @__PURE__ */ e.createElement(
|
|
1792
1792
|
Ht,
|
|
1793
1793
|
{
|
|
1794
1794
|
ref: u,
|
|
1795
1795
|
"aria-controls": A,
|
|
1796
|
-
"aria-expanded":
|
|
1796
|
+
"aria-expanded": F,
|
|
1797
1797
|
"aria-haspopup": "true",
|
|
1798
1798
|
ariaLabel: B,
|
|
1799
1799
|
className: `${k}__trigger ${k}__trigger--icon-only`,
|
|
@@ -1815,7 +1815,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
1815
1815
|
"aria-expanded",
|
|
1816
1816
|
se.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1817
1817
|
), se.nextElementSibling.classList.toggle(`${k}__mobile-menu--expanded`);
|
|
1818
|
-
}, dt = () => /* @__PURE__ */ e.createElement("ul", { className: `${k}__mobile-menu`, role: "menu" }, t.map((B, se) =>
|
|
1818
|
+
}, dt = () => /* @__PURE__ */ e.createElement("ul", { className: `${k}__mobile-menu`, role: "menu" }, t.map((B, se) => Pe(B, se)));
|
|
1819
1819
|
let pe;
|
|
1820
1820
|
const _e = s === "icon-end" ? "pds-button pds-button--navbar" : null, Ee = H([
|
|
1821
1821
|
`${k}__toggle`,
|
|
@@ -1841,14 +1841,14 @@ const St = 500, o1 = 700, we = ({
|
|
|
1841
1841
|
}
|
|
1842
1842
|
)
|
|
1843
1843
|
));
|
|
1844
|
-
const Ne = pe, ye =
|
|
1844
|
+
const Ne = pe, ye = F ? `${k}--expanded` : null;
|
|
1845
1845
|
return /* @__PURE__ */ e.createElement(
|
|
1846
1846
|
"span",
|
|
1847
1847
|
{
|
|
1848
1848
|
ref: U,
|
|
1849
1849
|
className: H([
|
|
1850
1850
|
k,
|
|
1851
|
-
|
|
1851
|
+
P,
|
|
1852
1852
|
z,
|
|
1853
1853
|
ye,
|
|
1854
1854
|
n
|
|
@@ -1856,7 +1856,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
1856
1856
|
"data-testid": v,
|
|
1857
1857
|
...h
|
|
1858
1858
|
},
|
|
1859
|
-
M ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ne, /* @__PURE__ */ e.createElement(dt, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
1859
|
+
M ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ne, /* @__PURE__ */ e.createElement(dt, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Fe, Ge(t))
|
|
1860
1860
|
);
|
|
1861
1861
|
}, f1 = ({
|
|
1862
1862
|
className: n,
|
|
@@ -3055,8 +3055,8 @@ const St = 500, o1 = 700, we = ({
|
|
|
3055
3055
|
const f = We(r), _ = "pds-select", N = s ? J.disabled : null, y = g && !s ? J.required : null, w = E === "error" ? J.error : null, L = E === "success" ? J.success : null;
|
|
3056
3056
|
let $ = null;
|
|
3057
3057
|
E === "error" && ($ = "error"), E === "success" && ($ = "success");
|
|
3058
|
-
const M = h || t, k = typeof C < "u", z = typeof a < "u", I = ((pe) => pe.reduce((_e, Ee) => o2(Ee) ? [..._e, ...Ee.options] : [..._e, Ee], []))(v), A = (pe) => I.findIndex((_e) => _e.value === pe), D = k && A(C) >= 0 ? A(C) : null, U = z ? A(a) : null,
|
|
3059
|
-
|
|
3058
|
+
const M = h || t, k = typeof C < "u", z = typeof a < "u", I = ((pe) => pe.reduce((_e, Ee) => o2(Ee) ? [..._e, ...Ee.options] : [..._e, Ee], []))(v), A = (pe) => I.findIndex((_e) => _e.value === pe), D = k && A(C) >= 0 ? A(C) : null, U = z ? A(a) : null, F = D || U, [Q, Y] = Z(!1), [j, K] = Z(null), [X, T] = Z(
|
|
3059
|
+
F ?? null
|
|
3060
3060
|
), x = X !== null ? I[X]?.label : void 0, S = X !== null ? I[X]?.value : void 0, V = le([]), { context: G, floatingStyles: O, refs: W } = ke({
|
|
3061
3061
|
open: Q,
|
|
3062
3062
|
onOpenChange: Y,
|
|
@@ -3095,7 +3095,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
3095
3095
|
}
|
|
3096
3096
|
}), { getFloatingProps: ie, getItemProps: re, getReferenceProps: ge } = Ae(
|
|
3097
3097
|
[me, ce, he, ee, te]
|
|
3098
|
-
), { isMounted: Le, styles:
|
|
3098
|
+
), { isMounted: Le, styles: Pe } = Xe(G, {
|
|
3099
3099
|
duration: {
|
|
3100
3100
|
open: 300,
|
|
3101
3101
|
close: 150
|
|
@@ -3121,7 +3121,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
3121
3121
|
}, [C]);
|
|
3122
3122
|
const Ge = () => {
|
|
3123
3123
|
d && d(S);
|
|
3124
|
-
},
|
|
3124
|
+
}, Fe = () => {
|
|
3125
3125
|
o && o(S);
|
|
3126
3126
|
}, Qe = () => {
|
|
3127
3127
|
W.reference.current.focus();
|
|
@@ -3225,7 +3225,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
3225
3225
|
...ge({
|
|
3226
3226
|
onClick: Qe,
|
|
3227
3227
|
onBlur: Ge,
|
|
3228
|
-
onFocus:
|
|
3228
|
+
onFocus: Fe
|
|
3229
3229
|
})
|
|
3230
3230
|
},
|
|
3231
3231
|
$ && /* @__PURE__ */ e.createElement(mt, { variant: $ }),
|
|
@@ -3242,7 +3242,7 @@ const St = 500, o1 = 700, we = ({
|
|
|
3242
3242
|
},
|
|
3243
3243
|
...ie()
|
|
3244
3244
|
},
|
|
3245
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...
|
|
3245
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...Pe } }, /* @__PURE__ */ e.createElement("ul", { className: `${_}__options`, role: "group" }, dt(v)))
|
|
3246
3246
|
),
|
|
3247
3247
|
M && /* @__PURE__ */ e.createElement(
|
|
3248
3248
|
Re,
|
|
@@ -3332,10 +3332,10 @@ const St = 500, o1 = 700, we = ({
|
|
|
3332
3332
|
);
|
|
3333
3333
|
}));
|
|
3334
3334
|
const L = (z) => {
|
|
3335
|
-
const
|
|
3335
|
+
const P = t.find(
|
|
3336
3336
|
(I) => E(I.label) === z
|
|
3337
3337
|
);
|
|
3338
|
-
return
|
|
3338
|
+
return P.customActionLabel ? P.customActionLabel : n.label;
|
|
3339
3339
|
};
|
|
3340
3340
|
let $ = null;
|
|
3341
3341
|
C && ($ = /* @__PURE__ */ e.createElement(
|
|
@@ -4068,41 +4068,41 @@ function N1() {
|
|
|
4068
4068
|
for (var M = 0; M < $.length; ++M) {
|
|
4069
4069
|
if (w && w.cause == L + "," + M)
|
|
4070
4070
|
return;
|
|
4071
|
-
var k = $[M], z = k.inside,
|
|
4071
|
+
var k = $[M], z = k.inside, P = !!k.lookbehind, I = !!k.greedy, A = k.alias;
|
|
4072
4072
|
if (I && !k.pattern.global) {
|
|
4073
4073
|
var D = k.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4074
4074
|
k.pattern = RegExp(k.pattern.source, D + "g");
|
|
4075
4075
|
}
|
|
4076
|
-
for (var U = k.pattern || k,
|
|
4077
|
-
var Y =
|
|
4076
|
+
for (var U = k.pattern || k, F = N.next, Q = y; F !== f.tail && !(w && Q >= w.reach); Q += F.value.length, F = F.next) {
|
|
4077
|
+
var Y = F.value;
|
|
4078
4078
|
if (f.length > u.length)
|
|
4079
4079
|
return;
|
|
4080
4080
|
if (!(Y instanceof d)) {
|
|
4081
4081
|
var j = 1, K;
|
|
4082
4082
|
if (I) {
|
|
4083
|
-
if (K = o(U, Q, u,
|
|
4083
|
+
if (K = o(U, Q, u, P), !K || K.index >= u.length)
|
|
4084
4084
|
break;
|
|
4085
4085
|
var S = K.index, X = K.index + K[0].length, T = Q;
|
|
4086
|
-
for (T +=
|
|
4087
|
-
|
|
4088
|
-
if (T -=
|
|
4086
|
+
for (T += F.value.length; S >= T; )
|
|
4087
|
+
F = F.next, T += F.value.length;
|
|
4088
|
+
if (T -= F.value.length, Q = T, F.value instanceof d)
|
|
4089
4089
|
continue;
|
|
4090
|
-
for (var x =
|
|
4090
|
+
for (var x = F; x !== f.tail && (T < X || typeof x.value == "string"); x = x.next)
|
|
4091
4091
|
j++, T += x.value.length;
|
|
4092
4092
|
j--, Y = u.slice(Q, T), K.index -= Q;
|
|
4093
|
-
} else if (K = o(U, 0, Y,
|
|
4093
|
+
} else if (K = o(U, 0, Y, P), !K)
|
|
4094
4094
|
continue;
|
|
4095
4095
|
var S = K.index, V = K[0], G = Y.slice(0, S), O = Y.slice(S + V.length), W = Q + Y.length;
|
|
4096
4096
|
w && W > w.reach && (w.reach = W);
|
|
4097
|
-
var ee =
|
|
4097
|
+
var ee = F.prev;
|
|
4098
4098
|
G && (ee = g(f, ee, G), Q += G.length), b(f, ee, j);
|
|
4099
4099
|
var ce = new d(L, z ? t.tokenize(V, z) : V, A, V);
|
|
4100
|
-
if (
|
|
4100
|
+
if (F = g(f, ee, ce), O && g(f, F, O), j > 1) {
|
|
4101
4101
|
var me = {
|
|
4102
4102
|
cause: L + "," + M,
|
|
4103
4103
|
reach: W
|
|
4104
4104
|
};
|
|
4105
|
-
m(u, f, _,
|
|
4105
|
+
m(u, f, _, F.prev, Q, me), w && me.reach > w.reach && (w.reach = me.reach);
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
@@ -4427,11 +4427,11 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
4427
4427
|
SPACING_6XL: T2,
|
|
4428
4428
|
SPACING_7XL: D2,
|
|
4429
4429
|
SPACING_8XL: D1
|
|
4430
|
-
}, O1 = 0.64, R1 = 0.8,
|
|
4430
|
+
}, O1 = 0.64, R1 = 0.8, P1 = 1, F1 = 1.25, B1 = 1.563, Z1 = 1.953, W1 = 2.441, G1 = 3.052, q1 = 3.815, U1 = 4.678, j1 = 5.96, K1 = 7.451, X1 = 6.192, h2 = {
|
|
4431
4431
|
TYPE_SCALE_XS: O1,
|
|
4432
4432
|
TYPE_SCALE_S: R1,
|
|
4433
|
-
TYPE_SCALE_M:
|
|
4434
|
-
TYPE_SCALE_L:
|
|
4433
|
+
TYPE_SCALE_M: P1,
|
|
4434
|
+
TYPE_SCALE_L: F1,
|
|
4435
4435
|
TYPE_SCALE_XL: B1,
|
|
4436
4436
|
TYPE_SCALE_2XL: Z1,
|
|
4437
4437
|
TYPE_SCALE_3XL: W1,
|
|
@@ -4488,11 +4488,11 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
4488
4488
|
}, w = () => `var(--pds-typography-size-${t})`, L = (M) => {
|
|
4489
4489
|
if (!(c === "code-block" || c === "code-block-prefix") || f < 5)
|
|
4490
4490
|
return 1;
|
|
4491
|
-
const z = Math.ceil(f / 2),
|
|
4492
|
-
if (M <
|
|
4491
|
+
const z = Math.ceil(f / 2), P = Math.max(0, z - 1);
|
|
4492
|
+
if (M < P)
|
|
4493
4493
|
return 1;
|
|
4494
|
-
const I = f -
|
|
4495
|
-
return Math.max(0.1,
|
|
4494
|
+
const I = f - P, A = M - P, D = 1 - 0.1, U = A / I, F = 1 - D * U;
|
|
4495
|
+
return Math.max(0.1, F);
|
|
4496
4496
|
}, $ = /* @__PURE__ */ e.createElement(
|
|
4497
4497
|
"div",
|
|
4498
4498
|
{
|
|
@@ -4740,19 +4740,19 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
4740
4740
|
shape: l || i ? "code-block-prefix" : "code-block",
|
|
4741
4741
|
textLineCount: m
|
|
4742
4742
|
}
|
|
4743
|
-
)), w = (
|
|
4743
|
+
)), w = (P) => {
|
|
4744
4744
|
const I = document.createElement("div");
|
|
4745
|
-
return I.innerHTML =
|
|
4745
|
+
return I.innerHTML = P, I.querySelectorAll("br").forEach((D) => {
|
|
4746
4746
|
D.replaceWith(`
|
|
4747
4747
|
`);
|
|
4748
4748
|
}), I.textContent || I.innerText || "";
|
|
4749
|
-
}, L = (
|
|
4749
|
+
}, L = (P) => P.split(/<br\s*\/?>/i).map((A, D) => /* @__PURE__ */ e.createElement("div", { key: D, className: `${E}__line ${u}` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__number` }, D + 1), /* @__PURE__ */ e.createElement(
|
|
4750
4750
|
"span",
|
|
4751
4751
|
{
|
|
4752
4752
|
className: `${E}__line-content`,
|
|
4753
4753
|
dangerouslySetInnerHTML: { __html: A }
|
|
4754
4754
|
}
|
|
4755
|
-
))), $ = (
|
|
4755
|
+
))), $ = (P) => P.split(/<br\s*\/?>/i).map((A, D) => /* @__PURE__ */ e.createElement("div", { key: D, className: `${E}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__prompt` }, g), /* @__PURE__ */ e.createElement(
|
|
4756
4756
|
"span",
|
|
4757
4757
|
{
|
|
4758
4758
|
className: `${E}__line-content`,
|
|
@@ -4760,7 +4760,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
4760
4760
|
}
|
|
4761
4761
|
)));
|
|
4762
4762
|
if (b) {
|
|
4763
|
-
const
|
|
4763
|
+
const P = w(a);
|
|
4764
4764
|
return /* @__PURE__ */ e.createElement(
|
|
4765
4765
|
"div",
|
|
4766
4766
|
{
|
|
@@ -4778,7 +4778,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
4778
4778
|
i2,
|
|
4779
4779
|
{
|
|
4780
4780
|
ariaLabel: c,
|
|
4781
|
-
clipboardText:
|
|
4781
|
+
clipboardText: P,
|
|
4782
4782
|
variant: _
|
|
4783
4783
|
}
|
|
4784
4784
|
)))
|
|
@@ -5204,9 +5204,9 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5204
5204
|
value: _,
|
|
5205
5205
|
...N
|
|
5206
5206
|
}, y) => {
|
|
5207
|
-
const w = t ? { width: `${t / 16}rem` } : null, L = "pds-checkbox", $ = c ? J.disabled : null, M = f === "error" ? J.error : null, k = v > 0 ? `${L}--indent-${v}` : null, z = h && !c ? J.required : null,
|
|
5207
|
+
const w = t ? { width: `${t / 16}rem` } : null, L = "pds-checkbox", $ = c ? J.disabled : null, M = f === "error" ? J.error : null, k = v > 0 ? `${L}--indent-${v}` : null, z = h && !c ? J.required : null, P = C === "S" ? `${L}--sm` : null, I = f === "success" ? J.success : null, A = u || o, D = typeof n < "u", U = typeof s < "u", [F, Q] = Z(
|
|
5208
5208
|
U ? s : !1
|
|
5209
|
-
), Y = n ||
|
|
5209
|
+
), Y = n || F, j = (S) => {
|
|
5210
5210
|
D || Q(S.target.checked), b && b(S);
|
|
5211
5211
|
}, K = `${L}__box`, X = l ? null : Y ? `${K}--checked` : null, T = l ? `${K}--indeterminate` : null, x = Wt(() => {
|
|
5212
5212
|
if (l)
|
|
@@ -5237,7 +5237,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5237
5237
|
z,
|
|
5238
5238
|
M,
|
|
5239
5239
|
I,
|
|
5240
|
-
|
|
5240
|
+
P,
|
|
5241
5241
|
k,
|
|
5242
5242
|
a ?? ""
|
|
5243
5243
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -5249,7 +5249,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5249
5249
|
{
|
|
5250
5250
|
ref: y,
|
|
5251
5251
|
"aria-checked": l ? "mixed" : Y ? "true" : "false",
|
|
5252
|
-
checked: D ? n :
|
|
5252
|
+
checked: D ? n : F,
|
|
5253
5253
|
id: r,
|
|
5254
5254
|
name: m,
|
|
5255
5255
|
type: "checkbox",
|
|
@@ -5378,7 +5378,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5378
5378
|
z.checked === !0 && w.push(z.value);
|
|
5379
5379
|
});
|
|
5380
5380
|
const [L, $] = Z(w), M = (z) => {
|
|
5381
|
-
const { value:
|
|
5381
|
+
const { value: P } = z.target, I = L.includes(P) ? L.filter((A) => A !== P) : [...L, P];
|
|
5382
5382
|
$(I), d && d(I);
|
|
5383
5383
|
};
|
|
5384
5384
|
o.map((z) => {
|
|
@@ -5476,8 +5476,8 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5476
5476
|
validationStatus: M,
|
|
5477
5477
|
value: k,
|
|
5478
5478
|
...z
|
|
5479
|
-
},
|
|
5480
|
-
const I = We(d), A = "pds-combobox", D = s ? J.disabled : null, U = y && !s ? J.required : null,
|
|
5479
|
+
}, P) => {
|
|
5480
|
+
const I = We(d), A = "pds-combobox", D = s ? J.disabled : null, U = y && !s ? J.required : null, F = M === "error" ? J.error : null, Q = M === "success" ? J.success : null;
|
|
5481
5481
|
let Y = null;
|
|
5482
5482
|
l && (Y = "search"), M === "error" && (Y = "error"), M === "success" && (Y = "success");
|
|
5483
5483
|
const j = $ || b, K = typeof k < "u", X = typeof a < "u", T = (q) => {
|
|
@@ -5496,7 +5496,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5496
5496
|
virtual: !0,
|
|
5497
5497
|
loop: !0,
|
|
5498
5498
|
allowEscape: !0
|
|
5499
|
-
}), { getFloatingProps:
|
|
5499
|
+
}), { getFloatingProps: Pe, getItemProps: De, getReferenceProps: Ge } = Ae([re, ge, Le]), { isMounted: Fe, styles: Qe } = Xe(te, {
|
|
5500
5500
|
duration: {
|
|
5501
5501
|
open: 300,
|
|
5502
5502
|
close: 150
|
|
@@ -5574,7 +5574,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5574
5574
|
A,
|
|
5575
5575
|
D,
|
|
5576
5576
|
U,
|
|
5577
|
-
|
|
5577
|
+
F,
|
|
5578
5578
|
Q,
|
|
5579
5579
|
n ?? ""
|
|
5580
5580
|
]),
|
|
@@ -5595,7 +5595,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5595
5595
|
/* @__PURE__ */ e.createElement(
|
|
5596
5596
|
"span",
|
|
5597
5597
|
{
|
|
5598
|
-
ref:
|
|
5598
|
+
ref: P,
|
|
5599
5599
|
"aria-describedby": j ? `${t}__message` : null,
|
|
5600
5600
|
"aria-disabled": s ? !0 : null,
|
|
5601
5601
|
"aria-invalid": M === "error" ? !0 : null,
|
|
@@ -5663,12 +5663,12 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5663
5663
|
)
|
|
5664
5664
|
)
|
|
5665
5665
|
),
|
|
5666
|
-
|
|
5666
|
+
Fe && /* @__PURE__ */ e.createElement(
|
|
5667
5667
|
"div",
|
|
5668
5668
|
{
|
|
5669
5669
|
ref: ie.setFloating,
|
|
5670
5670
|
className: `${A}__dropdown`,
|
|
5671
|
-
...
|
|
5671
|
+
...Pe({
|
|
5672
5672
|
style: {
|
|
5673
5673
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5674
5674
|
}
|
|
@@ -5726,7 +5726,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5726
5726
|
[v, y, _]
|
|
5727
5727
|
), k = (S) => {
|
|
5728
5728
|
w(S), m?.(S);
|
|
5729
|
-
}, { getDropdownProps: z, getSelectedItemProps:
|
|
5729
|
+
}, { getDropdownProps: z, getSelectedItemProps: P, removeSelectedItem: I } = pt({
|
|
5730
5730
|
selectedItems: y,
|
|
5731
5731
|
onStateChange: ({ selectedItems: S, type: V }) => {
|
|
5732
5732
|
if (!a)
|
|
@@ -5743,7 +5743,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5743
5743
|
getInputProps: A,
|
|
5744
5744
|
getItemProps: D,
|
|
5745
5745
|
getMenuProps: U,
|
|
5746
|
-
getToggleButtonProps:
|
|
5746
|
+
getToggleButtonProps: F,
|
|
5747
5747
|
highlightedIndex: Q,
|
|
5748
5748
|
isOpen: Y,
|
|
5749
5749
|
selectedItem: j
|
|
@@ -5796,7 +5796,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5796
5796
|
if (!a && ((S.key === "Backspace" || S.key === "Delete") && !_ && y.length > 0 && (S.preventDefault(), K()), S.key === "Enter" && L !== null && (S.preventDefault(), K()), S.key === "ArrowDown" && !Y)) {
|
|
5797
5797
|
S.preventDefault();
|
|
5798
5798
|
const V = S.nativeEvent;
|
|
5799
|
-
|
|
5799
|
+
F().onClick?.(V);
|
|
5800
5800
|
}
|
|
5801
5801
|
}, T = A({
|
|
5802
5802
|
...z({
|
|
@@ -5846,7 +5846,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5846
5846
|
${C}__selected-item
|
|
5847
5847
|
${V === L ? `${C}__selected-item--marked-for-deletion` : ""}
|
|
5848
5848
|
`,
|
|
5849
|
-
...
|
|
5849
|
+
...P({
|
|
5850
5850
|
selectedItem: S,
|
|
5851
5851
|
index: V
|
|
5852
5852
|
})
|
|
@@ -5871,7 +5871,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5871
5871
|
disabled: a,
|
|
5872
5872
|
tabIndex: -1,
|
|
5873
5873
|
type: "button",
|
|
5874
|
-
...
|
|
5874
|
+
...F()
|
|
5875
5875
|
},
|
|
5876
5876
|
/* @__PURE__ */ e.createElement(R, { className: `${C}__trigger-icon`, iconName: "angleDown" })
|
|
5877
5877
|
)
|
|
@@ -5943,7 +5943,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
5943
5943
|
value: p,
|
|
5944
5944
|
...h
|
|
5945
5945
|
}) => {
|
|
5946
|
-
const [E, C] = Z(p), [u, f] = Z(!1), [_, N] = Z(null), [y, w] = Z(""), L = We(r), $ = "pds-datepicker", M = a ? J.disabled : null, k = m && !a ? J.required : null, z = o && o.length > 0 && s ? "bottom-end" : "bottom-start", { floatingStyles:
|
|
5946
|
+
const [E, C] = Z(p), [u, f] = Z(!1), [_, N] = Z(null), [y, w] = Z(""), L = We(r), $ = "pds-datepicker", M = a ? J.disabled : null, k = m && !a ? J.required : null, z = o && o.length > 0 && s ? "bottom-end" : "bottom-start", { floatingStyles: P, refs: I } = ke({
|
|
5947
5947
|
open: u,
|
|
5948
5948
|
onOpenChange: f,
|
|
5949
5949
|
placement: z,
|
|
@@ -6002,7 +6002,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6002
6002
|
}, 300);
|
|
6003
6003
|
}, U = (O) => {
|
|
6004
6004
|
D(O);
|
|
6005
|
-
},
|
|
6005
|
+
}, F = (O) => {
|
|
6006
6006
|
D(O);
|
|
6007
6007
|
}, Q = () => {
|
|
6008
6008
|
C(void 0), t?.(void 0), w("");
|
|
@@ -6115,7 +6115,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6115
6115
|
{
|
|
6116
6116
|
ref: I.setFloating,
|
|
6117
6117
|
className: `${$}__popover`,
|
|
6118
|
-
style:
|
|
6118
|
+
style: P
|
|
6119
6119
|
},
|
|
6120
6120
|
/* @__PURE__ */ e.createElement("div", { className: `${$}__calendar` }, s ? /* @__PURE__ */ e.createElement(
|
|
6121
6121
|
a2,
|
|
@@ -6150,7 +6150,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6150
6150
|
mode: "single",
|
|
6151
6151
|
navLayout: "around",
|
|
6152
6152
|
numberOfMonths: 1,
|
|
6153
|
-
onSelect:
|
|
6153
|
+
onSelect: F,
|
|
6154
6154
|
selected: E
|
|
6155
6155
|
}
|
|
6156
6156
|
)),
|
|
@@ -6216,10 +6216,10 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6216
6216
|
}, _) => {
|
|
6217
6217
|
const [N, y] = Z(!1), [w, L] = Z(
|
|
6218
6218
|
!!(vt && s)
|
|
6219
|
-
), $ = We(t), M = "pds-file-upload", k = c ? J.disabled : null, z = b && !c ? J.required : null,
|
|
6219
|
+
), $ = We(t), M = "pds-file-upload", k = c ? J.disabled : null, z = b && !c ? J.required : null, P = u === "error" ? J.error : null, I = u === "success" ? J.success : null, A = w ? `${M}--safari-default` : null;
|
|
6220
6220
|
let D = null;
|
|
6221
6221
|
u === "error" && (D = "error"), u === "success" && (D = "success");
|
|
6222
|
-
const U = C || o,
|
|
6222
|
+
const U = C || o, F = s ? [s] : null, Q = s ? s.split("/").pop() : null, Y = p ? s : Q, j = s ? new File(F, Y) : null;
|
|
6223
6223
|
ae(() => {
|
|
6224
6224
|
const x = new DataTransfer();
|
|
6225
6225
|
if (j && x.items.add(j), x.files.length > 0) {
|
|
@@ -6257,7 +6257,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6257
6257
|
A,
|
|
6258
6258
|
k,
|
|
6259
6259
|
z,
|
|
6260
|
-
|
|
6260
|
+
P,
|
|
6261
6261
|
I,
|
|
6262
6262
|
a ?? ""
|
|
6263
6263
|
]),
|
|
@@ -6368,7 +6368,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6368
6368
|
}) => {
|
|
6369
6369
|
const f = "pds-radio-group", _ = s ? J.disabled : null, N = g && !s ? J.required : null, y = E === "error" ? J.error : null, w = E === "success" ? J.success : null, L = typeof C < "u", $ = typeof a < "u", [M, k] = Z(
|
|
6370
6370
|
$ ? a : ""
|
|
6371
|
-
), z = h || t,
|
|
6371
|
+
), z = h || t, P = (A) => {
|
|
6372
6372
|
L || k(A.target.value), o && o(A), m && m(A.target.value);
|
|
6373
6373
|
}, I = (A) => {
|
|
6374
6374
|
d?.(A);
|
|
@@ -6412,7 +6412,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6412
6412
|
id: A.id ? A.id : `${r}-option-${D}`,
|
|
6413
6413
|
name: r,
|
|
6414
6414
|
onBlur: I,
|
|
6415
|
-
onChange:
|
|
6415
|
+
onChange: P,
|
|
6416
6416
|
required: g,
|
|
6417
6417
|
type: "radio",
|
|
6418
6418
|
value: A.value
|
|
@@ -6452,9 +6452,9 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6452
6452
|
switchPlacement: E = "right",
|
|
6453
6453
|
...C
|
|
6454
6454
|
}, u) => {
|
|
6455
|
-
const f = We(i), _ = "pds-switch", N = `${_}--${E}`, y = d ? `${_}--message` : null, w = c ? J.disabled : null, L = g && !c ? J.required : null, $ = typeof n < "u", M = !$ && s ? s : !1, [k, z] = Z(M),
|
|
6456
|
-
$ || z(
|
|
6457
|
-
}, A = p ? /* @__PURE__ */ e.createElement("span", { className: `${_}__toggle-label` },
|
|
6455
|
+
const f = We(i), _ = "pds-switch", N = `${_}--${E}`, y = d ? `${_}--message` : null, w = c ? J.disabled : null, L = g && !c ? J.required : null, $ = typeof n < "u", M = !$ && s ? s : !1, [k, z] = Z(M), P = n || k ? v : o, I = (F) => {
|
|
6456
|
+
$ || z(F.target.checked), m && m(F);
|
|
6457
|
+
}, A = p ? /* @__PURE__ */ e.createElement("span", { className: `${_}__toggle-label` }, P) : null, D = /* @__PURE__ */ e.createElement(
|
|
6458
6458
|
"div",
|
|
6459
6459
|
{
|
|
6460
6460
|
className: `${_}__control`,
|
|
@@ -6565,10 +6565,10 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6565
6565
|
value: y,
|
|
6566
6566
|
...w
|
|
6567
6567
|
}, L) => {
|
|
6568
|
-
const $ = We(l), M = "pds-textarea", k = i ? "pds-is-resizable" : null, z = c ? J.disabled : null,
|
|
6568
|
+
const $ = We(l), M = "pds-textarea", k = i ? "pds-is-resizable" : null, z = c ? J.disabled : null, P = p && !c ? J.required : null, I = N === "error" ? J.error : null, A = N === "success" ? J.success : null, D = b ? J.readonly : null, U = _ || d, F = y != null && m !== void 0, Q = typeof s < "u", [Y, j] = Z(
|
|
6569
6569
|
Q ? s : ""
|
|
6570
6570
|
), K = y || Y, X = (x) => {
|
|
6571
|
-
|
|
6571
|
+
F || j(x.target.value), m && m(x);
|
|
6572
6572
|
}, T = (x) => {
|
|
6573
6573
|
o && o(x);
|
|
6574
6574
|
};
|
|
@@ -6579,7 +6579,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6579
6579
|
J.base,
|
|
6580
6580
|
M,
|
|
6581
6581
|
z,
|
|
6582
|
-
|
|
6582
|
+
P,
|
|
6583
6583
|
I,
|
|
6584
6584
|
A,
|
|
6585
6585
|
D,
|
|
@@ -6625,7 +6625,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6625
6625
|
readOnly: b,
|
|
6626
6626
|
required: p,
|
|
6627
6627
|
rows: h,
|
|
6628
|
-
value:
|
|
6628
|
+
value: F ? y : Y,
|
|
6629
6629
|
...C
|
|
6630
6630
|
}
|
|
6631
6631
|
)),
|
|
@@ -6679,9 +6679,9 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6679
6679
|
validationMessage: M,
|
|
6680
6680
|
validationStatus: k,
|
|
6681
6681
|
value: z,
|
|
6682
|
-
...
|
|
6682
|
+
...P
|
|
6683
6683
|
}, I) => {
|
|
6684
|
-
const A = We(m), D = "pds-text-input", U = r ? J.disabled : null,
|
|
6684
|
+
const A = We(m), D = "pds-text-input", U = r ? J.disabled : null, F = f && !r ? J.required : null, Q = k === "error" ? J.error : null, Y = k === "success" ? J.success : null, j = u ? J.readonly : null, K = t && $ === "url" ? `${D}--has-url-prefix` : null;
|
|
6685
6685
|
let X = null;
|
|
6686
6686
|
$ === "search" && (X = "search"), $ === "search" && _ === "filter" && (X = "filter"), k === "error" && (X = "error"), k === "success" && (X = "success");
|
|
6687
6687
|
const T = M || g, x = typeof z < "u", S = typeof c < "u", [V, G] = Z(
|
|
@@ -6726,7 +6726,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6726
6726
|
J.base,
|
|
6727
6727
|
D,
|
|
6728
6728
|
U,
|
|
6729
|
-
|
|
6729
|
+
F,
|
|
6730
6730
|
Q,
|
|
6731
6731
|
Y,
|
|
6732
6732
|
j,
|
|
@@ -6734,7 +6734,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
6734
6734
|
a ?? ""
|
|
6735
6735
|
]),
|
|
6736
6736
|
style: m ? A : null,
|
|
6737
|
-
...
|
|
6737
|
+
...P
|
|
6738
6738
|
},
|
|
6739
6739
|
/* @__PURE__ */ e.createElement(
|
|
6740
6740
|
Oe,
|
|
@@ -7522,7 +7522,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7522
7522
|
transition: "width 200ms ease-in-out"
|
|
7523
7523
|
}, k = () => {
|
|
7524
7524
|
h(!p);
|
|
7525
|
-
}, z = Te(n),
|
|
7525
|
+
}, z = Te(n), P = z.header, I = z.sidebar, A = z.main, D = z.footer, U = /* @__PURE__ */ e.createElement(e.Fragment, null, P, /* @__PURE__ */ e.createElement("aside", { className: `${_}__sidebar` }, I), /* @__PURE__ */ e.createElement("main", { className: `${_}__main`, id: "main" }, A), D && /* @__PURE__ */ e.createElement("footer", { className: `${_}__footer` }, D)), F = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("aside", { className: `${_}__sidebar`, style: $ }, s && /* @__PURE__ */ e.createElement(
|
|
7526
7526
|
"button",
|
|
7527
7527
|
{
|
|
7528
7528
|
"aria-expanded": p,
|
|
@@ -7538,7 +7538,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7538
7538
|
className: `${_}__right`,
|
|
7539
7539
|
style: M
|
|
7540
7540
|
},
|
|
7541
|
-
/* @__PURE__ */ e.createElement("div", { className: `${_}__header` },
|
|
7541
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__header` }, P),
|
|
7542
7542
|
/* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement("main", { className: `${_}__main`, id: "main" }, A), D && /* @__PURE__ */ e.createElement("footer", { className: `${_}__footer` }, D))
|
|
7543
7543
|
));
|
|
7544
7544
|
return /* @__PURE__ */ e.createElement(zt.Provider, { value: f }, /* @__PURE__ */ e.createElement(ds, { destination: "main", text: m }), /* @__PURE__ */ e.createElement(
|
|
@@ -7554,7 +7554,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7554
7554
|
]),
|
|
7555
7555
|
...v
|
|
7556
7556
|
},
|
|
7557
|
-
g ? U :
|
|
7557
|
+
g ? U : F
|
|
7558
7558
|
));
|
|
7559
7559
|
}, xt = ({
|
|
7560
7560
|
className: n,
|
|
@@ -7605,15 +7605,15 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7605
7605
|
const A = [];
|
|
7606
7606
|
return I.forEach((D) => {
|
|
7607
7607
|
D.links ? (A.push(h({ item: D, level: "top-level" })), D.links.forEach((U) => {
|
|
7608
|
-
U.links ? (A.push(h({ item: U, level: "second-level" })), U.links.forEach((
|
|
7609
|
-
|
|
7610
|
-
h({ item:
|
|
7611
|
-
),
|
|
7608
|
+
U.links ? (A.push(h({ item: U, level: "second-level" })), U.links.forEach((F) => {
|
|
7609
|
+
F.links && (A.push(
|
|
7610
|
+
h({ item: F, level: "third-level" })
|
|
7611
|
+
), F.links.forEach((Q) => {
|
|
7612
7612
|
A.push(
|
|
7613
7613
|
h({ item: Q, level: "fourth-level" })
|
|
7614
7614
|
);
|
|
7615
7615
|
})), A.push(
|
|
7616
|
-
h({ item:
|
|
7616
|
+
h({ item: F, level: "third-level" })
|
|
7617
7617
|
);
|
|
7618
7618
|
})) : A.push(h({ item: U, level: "second-level" }));
|
|
7619
7619
|
})) : A.push(h({ item: D, level: "top-level" }));
|
|
@@ -7643,7 +7643,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7643
7643
|
}
|
|
7644
7644
|
}), { getFloatingProps: $, getItemProps: M, getReferenceProps: k } = Ae(
|
|
7645
7645
|
[y, w, N, _, L]
|
|
7646
|
-
), { isMounted: z, styles:
|
|
7646
|
+
), { isMounted: z, styles: P } = Xe(C, {
|
|
7647
7647
|
duration: {
|
|
7648
7648
|
open: 300,
|
|
7649
7649
|
close: 300
|
|
@@ -7681,7 +7681,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7681
7681
|
ref: u.setFloating,
|
|
7682
7682
|
className: `${l}__dropdown ${l}__menu ${l}__menu--top-level`,
|
|
7683
7683
|
style: {
|
|
7684
|
-
...
|
|
7684
|
+
...P,
|
|
7685
7685
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7686
7686
|
},
|
|
7687
7687
|
...$()
|
|
@@ -7847,8 +7847,8 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7847
7847
|
content: Me(r),
|
|
7848
7848
|
customTrigger: o,
|
|
7849
7849
|
offsetValue: {
|
|
7850
|
-
mainAxis:
|
|
7851
|
-
crossAxis:
|
|
7850
|
+
mainAxis: 5,
|
|
7851
|
+
crossAxis: 0
|
|
7852
7852
|
},
|
|
7853
7853
|
preferredPlacement: "right"
|
|
7854
7854
|
}
|
|
@@ -7922,13 +7922,16 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7922
7922
|
"performance-large": "Performance Large",
|
|
7923
7923
|
"performance-xl": "Performance XL",
|
|
7924
7924
|
"performance-2xl": "Performance 2XL",
|
|
7925
|
-
elite: "Elite"
|
|
7925
|
+
elite: "Elite",
|
|
7926
|
+
pro: "Professional",
|
|
7927
|
+
business: "Business",
|
|
7928
|
+
"flagship-performance": "Flagship Performance"
|
|
7926
7929
|
}, Mn = {
|
|
7927
7930
|
drupal: "Drupal",
|
|
7928
7931
|
wordpress: "WordPress",
|
|
7929
7932
|
gatsby: "Gatsby",
|
|
7930
7933
|
nextjs: "Next.js"
|
|
7931
|
-
},
|
|
7934
|
+
}, P2 = {
|
|
7932
7935
|
drupal: "drupal",
|
|
7933
7936
|
wordpress: "wordpress",
|
|
7934
7937
|
gatsby: "bolt",
|
|
@@ -7938,7 +7941,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
7938
7941
|
option: a,
|
|
7939
7942
|
...s
|
|
7940
7943
|
}) => {
|
|
7941
|
-
const c = "pds-dashboard-search", r = a.type ?
|
|
7944
|
+
const c = "pds-dashboard-search", r = a.type ? P2[a.type] : "bolt", l = le(null), [i] = Mt(l), t = i.width / 16 - 7.5;
|
|
7942
7945
|
let d, o;
|
|
7943
7946
|
a.status === "active" && (d = "Active", o = "success"), a.status === "frozen" && (d = "Frozen", o = "frozen"), a.status === "restricted" && (d = "Restricted", o = "critical");
|
|
7944
7947
|
const m = /* @__PURE__ */ e.createElement(
|
|
@@ -8015,7 +8018,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8015
8018
|
const L = 2.25, $ = 22, M = y ? 14.5 : 9.625, k = N > 900 ? $ : N / 16 - (M + s) - L * 0.675;
|
|
8016
8019
|
let z = L;
|
|
8017
8020
|
p && !N && (z = $), p && N && (z = k);
|
|
8018
|
-
const
|
|
8021
|
+
const P = {
|
|
8019
8022
|
right: `${M + s}rem`,
|
|
8020
8023
|
width: `${z}rem`
|
|
8021
8024
|
}, I = "pds-dashboard-search", A = f ? `${I}--isMobile` : null, D = () => {
|
|
@@ -8026,7 +8029,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8026
8029
|
setTimeout(() => {
|
|
8027
8030
|
h(!1);
|
|
8028
8031
|
}, 150);
|
|
8029
|
-
},
|
|
8032
|
+
}, F = (X) => {
|
|
8030
8033
|
C(X.value), m && m(X);
|
|
8031
8034
|
};
|
|
8032
8035
|
ae(() => {
|
|
@@ -8063,7 +8066,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8063
8066
|
loadingText: t,
|
|
8064
8067
|
noResultsText: d,
|
|
8065
8068
|
onFocus: o,
|
|
8066
|
-
onOptionSelect:
|
|
8069
|
+
onOptionSelect: F,
|
|
8067
8070
|
options: Q,
|
|
8068
8071
|
placeholder: v,
|
|
8069
8072
|
showLabel: !1
|
|
@@ -8105,7 +8108,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8105
8108
|
onKeyDown: f ? null : (X) => {
|
|
8106
8109
|
X.key === "Escape" && U();
|
|
8107
8110
|
},
|
|
8108
|
-
style: f ? null :
|
|
8111
|
+
style: f ? null : P,
|
|
8109
8112
|
...b
|
|
8110
8113
|
},
|
|
8111
8114
|
f ? K : j
|
|
@@ -8191,11 +8194,11 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8191
8194
|
const $ = Te(n), M = $["items-left"], k = $["items-right"];
|
|
8192
8195
|
let z = "default";
|
|
8193
8196
|
(s === "reverse" || s === "reverse-transparent") && (z = "reverse");
|
|
8194
|
-
const
|
|
8197
|
+
const P = ue(t) ? t.props.children : null, I = ue(t) && P ? xe(
|
|
8195
8198
|
t,
|
|
8196
8199
|
Object.assign({}, t.props, {
|
|
8197
8200
|
children: /* @__PURE__ */ e.createElement("img", { className: `${C}__custom-logo`, src: d }),
|
|
8198
|
-
"aria-label":
|
|
8201
|
+
"aria-label": P || null
|
|
8199
8202
|
})
|
|
8200
8203
|
) : /* @__PURE__ */ e.createElement("img", { alt: "", className: `${C}__custom-logo`, src: d }), A = () => d ? I : /* @__PURE__ */ e.createElement(
|
|
8201
8204
|
n2,
|
|
@@ -8217,7 +8220,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8217
8220
|
), U = Ut.toArray(n).sort((j, K) => {
|
|
8218
8221
|
const X = ue(j) && parseInt(j.props["data-mobile-order"], 10) || 1 / 0, T = ue(K) && parseInt(K.props["data-mobile-order"], 10) || 1 / 0;
|
|
8219
8222
|
return X - T;
|
|
8220
|
-
}),
|
|
8223
|
+
}), F = /* @__PURE__ */ e.createElement(
|
|
8221
8224
|
"div",
|
|
8222
8225
|
{
|
|
8223
8226
|
ref: w,
|
|
@@ -8232,7 +8235,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8232
8235
|
initialFocus: !1
|
|
8233
8236
|
}
|
|
8234
8237
|
},
|
|
8235
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ft, { className: `${C}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__inner-mobile` }, A(), n && D)), /* @__PURE__ */ e.createElement(ft, null, n &&
|
|
8238
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ft, { className: `${C}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__inner-mobile` }, A(), n && D)), /* @__PURE__ */ e.createElement(ft, null, n && F))
|
|
8236
8239
|
), Y = /* @__PURE__ */ e.createElement(ft, { className: `${C}__inner`, width: c }, !l && /* @__PURE__ */ e.createElement("div", { className: `${C}__logo` }, A()), /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, M ? /* @__PURE__ */ e.createElement("div", { className: `${C}__items-left` }, M) : /* @__PURE__ */ e.createElement("span", null), k && /* @__PURE__ */ e.createElement("div", { className: `${C}__items-right` }, k)));
|
|
8237
8240
|
return /* @__PURE__ */ e.createElement(
|
|
8238
8241
|
"header",
|
|
@@ -8348,10 +8351,10 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8348
8351
|
},
|
|
8349
8352
|
ArrowDown: () => {
|
|
8350
8353
|
b("down");
|
|
8351
|
-
const U = $.target.parentNode.children[1],
|
|
8354
|
+
const U = $.target.parentNode.children[1], F = $.target?.parentNode.children[1]?.children || $.target?.parentNode.parentNode.children[1]?.children;
|
|
8352
8355
|
p.container != U && U != null && h({
|
|
8353
8356
|
container: U,
|
|
8354
|
-
containerChildren: [...
|
|
8357
|
+
containerChildren: [...F]
|
|
8355
8358
|
}), d === null || d == p.containerChildren.length - 1 ? o(0) : o(parseInt(d) + 1);
|
|
8356
8359
|
},
|
|
8357
8360
|
ArrowUp: () => {
|
|
@@ -8376,8 +8379,8 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8376
8379
|
"li",
|
|
8377
8380
|
{
|
|
8378
8381
|
key: `${M}-dropdown`,
|
|
8379
|
-
ref: (
|
|
8380
|
-
N.current[M] =
|
|
8382
|
+
ref: (P) => {
|
|
8383
|
+
N.current[M] = P;
|
|
8381
8384
|
},
|
|
8382
8385
|
className: `${u}__item ${u}__item--top-level ${u}__item--has-children ${w($) === !0 ? `${u}__item--active` : ""}`,
|
|
8383
8386
|
id: z
|
|
@@ -8396,8 +8399,8 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8396
8399
|
"li",
|
|
8397
8400
|
{
|
|
8398
8401
|
key: M,
|
|
8399
|
-
ref: (
|
|
8400
|
-
N.current[M] =
|
|
8402
|
+
ref: (P) => {
|
|
8403
|
+
N.current[M] = P;
|
|
8401
8404
|
},
|
|
8402
8405
|
className: `${u}__item ${u}__item--top-level ${u}__item--has-link ${w($) === !0 ? `${u}__item--active` : ""}`,
|
|
8403
8406
|
id: z
|
|
@@ -8642,11 +8645,11 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8642
8645
|
if (x)
|
|
8643
8646
|
switch (T.key) {
|
|
8644
8647
|
case "ArrowDown": {
|
|
8645
|
-
T.preventDefault(),
|
|
8648
|
+
T.preventDefault(), P(1);
|
|
8646
8649
|
break;
|
|
8647
8650
|
}
|
|
8648
8651
|
case "ArrowUp": {
|
|
8649
|
-
T.preventDefault(),
|
|
8652
|
+
T.preventDefault(), P(-1);
|
|
8650
8653
|
break;
|
|
8651
8654
|
}
|
|
8652
8655
|
case "ArrowRight": {
|
|
@@ -8697,7 +8700,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8697
8700
|
break;
|
|
8698
8701
|
}
|
|
8699
8702
|
}
|
|
8700
|
-
},
|
|
8703
|
+
}, P = (T) => {
|
|
8701
8704
|
const x = _.current;
|
|
8702
8705
|
if (x.length === 0) return;
|
|
8703
8706
|
let S = N.current + T;
|
|
@@ -8734,7 +8737,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8734
8737
|
).indexOf(G);
|
|
8735
8738
|
C((W) => V && !W.includes(O) && O !== -1 ? [...W, O] : V ? W : W.filter((ee) => ee !== O));
|
|
8736
8739
|
}
|
|
8737
|
-
V ? U(S) :
|
|
8740
|
+
V ? U(S) : F(S);
|
|
8738
8741
|
}, U = (T) => {
|
|
8739
8742
|
T.style.display = "flex", T.style.height = "auto";
|
|
8740
8743
|
const x = `${T.scrollHeight}px`;
|
|
@@ -8759,7 +8762,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8759
8762
|
marginBlockStart: `${Nt}rem`
|
|
8760
8763
|
}), T.classList.add(`${v}--expanded`), L();
|
|
8761
8764
|
};
|
|
8762
|
-
},
|
|
8765
|
+
}, F = (T) => {
|
|
8763
8766
|
const x = `${T.scrollHeight}px`, S = T.animate(
|
|
8764
8767
|
[
|
|
8765
8768
|
{
|
|
@@ -8979,8 +8982,8 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
8979
8982
|
content: Me(r),
|
|
8980
8983
|
customTrigger: o,
|
|
8981
8984
|
offsetValue: {
|
|
8982
|
-
mainAxis:
|
|
8983
|
-
crossAxis:
|
|
8985
|
+
mainAxis: 5,
|
|
8986
|
+
crossAxis: 0
|
|
8984
8987
|
},
|
|
8985
8988
|
preferredPlacement: "right"
|
|
8986
8989
|
}
|
|
@@ -9067,7 +9070,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9067
9070
|
focusItemOnOpen: !1
|
|
9068
9071
|
}), { getFloatingProps: M, getItemProps: k, getReferenceProps: z } = Ae(
|
|
9069
9072
|
[L, w, $, y]
|
|
9070
|
-
), { isMounted:
|
|
9073
|
+
), { isMounted: P, styles: I } = Xe(_, {
|
|
9071
9074
|
duration: {
|
|
9072
9075
|
open: 300,
|
|
9073
9076
|
close: 150
|
|
@@ -9093,7 +9096,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9093
9096
|
const x = c.filter((S) => D(S, g));
|
|
9094
9097
|
v(x);
|
|
9095
9098
|
}, [c]);
|
|
9096
|
-
const
|
|
9099
|
+
const F = () => {
|
|
9097
9100
|
b(""), v(c);
|
|
9098
9101
|
}, Q = c.reduce(
|
|
9099
9102
|
(x, S) => Me(x.linkContent).length > Me(S.linkContent).length ? x : S
|
|
@@ -9110,7 +9113,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9110
9113
|
id: "links-filter",
|
|
9111
9114
|
label: a,
|
|
9112
9115
|
onChange: U,
|
|
9113
|
-
onClear:
|
|
9116
|
+
onClear: F,
|
|
9114
9117
|
placeholder: s,
|
|
9115
9118
|
showLabel: !1,
|
|
9116
9119
|
type: "search"
|
|
@@ -9151,7 +9154,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9151
9154
|
iconName: "angleDown"
|
|
9152
9155
|
}
|
|
9153
9156
|
)
|
|
9154
|
-
),
|
|
9157
|
+
), P && /* @__PURE__ */ e.createElement(
|
|
9155
9158
|
"div",
|
|
9156
9159
|
{
|
|
9157
9160
|
ref: N.setFloating,
|
|
@@ -9270,7 +9273,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9270
9273
|
openOnArrowKeyDown: !0,
|
|
9271
9274
|
focusItemOnOpen: !1,
|
|
9272
9275
|
focusItemOnHover: !0
|
|
9273
|
-
}), { getFloatingProps: z, getItemProps:
|
|
9276
|
+
}), { getFloatingProps: z, getItemProps: P, getReferenceProps: I } = Ae(
|
|
9274
9277
|
[L, $, w, k]
|
|
9275
9278
|
), { isMounted: A, styles: D } = Xe(_, {
|
|
9276
9279
|
duration: {
|
|
@@ -9295,7 +9298,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9295
9298
|
size: "sm",
|
|
9296
9299
|
uniqueId: c
|
|
9297
9300
|
}
|
|
9298
|
-
),
|
|
9301
|
+
), F = /* @__PURE__ */ e.createElement(R, { className: `${C}__trigger-icon`, iconName: "angleDown" }), Q = /* @__PURE__ */ e.createElement("li", { className: `${C}__user-details`, role: "presentation" }, E ? null : /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, l), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, c));
|
|
9299
9302
|
s.forEach((V) => {
|
|
9300
9303
|
const G = V.id ? V.id : at();
|
|
9301
9304
|
g.current.push(G), b.current.push(V);
|
|
@@ -9321,7 +9324,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9321
9324
|
onKeyDown: j,
|
|
9322
9325
|
role: "menuitem",
|
|
9323
9326
|
tabIndex: d === G ? 0 : -1,
|
|
9324
|
-
...
|
|
9327
|
+
...P({ onClick: (ce) => K(ce) })
|
|
9325
9328
|
},
|
|
9326
9329
|
V.iconName && /* @__PURE__ */ e.createElement(
|
|
9327
9330
|
R,
|
|
@@ -9370,7 +9373,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9370
9373
|
onClick: x
|
|
9371
9374
|
},
|
|
9372
9375
|
/* @__PURE__ */ e.createElement("span", { className: `${C}__toggle-left` }, U, l || c),
|
|
9373
|
-
|
|
9376
|
+
F
|
|
9374
9377
|
), /* @__PURE__ */ e.createElement("div", { className: `${C}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
9375
9378
|
"ul",
|
|
9376
9379
|
{
|
|
@@ -9411,7 +9414,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9411
9414
|
let _ = !1;
|
|
9412
9415
|
const N = Ce($e);
|
|
9413
9416
|
N && (_ = N.isMobile);
|
|
9414
|
-
const y = d && _, w = "pds-workspace-selector", L = y ? `${w}--isMobile` : null, $ = `${w}__menu`, M = f ? `${$}--scroll` : null, { context: k, floatingStyles: z, refs:
|
|
9417
|
+
const y = d && _, w = "pds-workspace-selector", L = y ? `${w}--isMobile` : null, $ = `${w}__menu`, M = f ? `${$}--scroll` : null, { context: k, floatingStyles: z, refs: P } = ke({
|
|
9415
9418
|
open: v,
|
|
9416
9419
|
onOpenChange: g,
|
|
9417
9420
|
whileElementsMounted: Se
|
|
@@ -9423,7 +9426,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9423
9426
|
openOnArrowKeyDown: !0,
|
|
9424
9427
|
focusItemOnHover: !0,
|
|
9425
9428
|
focusItemOnOpen: !1
|
|
9426
|
-
}),
|
|
9429
|
+
}), F = Xt(k, {
|
|
9427
9430
|
listRef: C,
|
|
9428
9431
|
activeIndex: b,
|
|
9429
9432
|
onMatch: (te) => {
|
|
@@ -9434,7 +9437,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9434
9437
|
return te.find((ge) => (ge?.textContent?.trim().toLowerCase() ?? "").startsWith(re));
|
|
9435
9438
|
}
|
|
9436
9439
|
}), { getFloatingProps: Q, getItemProps: Y, getReferenceProps: j } = Ae(
|
|
9437
|
-
f ? [A, D, I, U] : [A, D, I, U,
|
|
9440
|
+
f ? [A, D, I, U] : [A, D, I, U, F]
|
|
9438
9441
|
), { isMounted: K, styles: X } = Xe(k, {
|
|
9439
9442
|
duration: {
|
|
9440
9443
|
open: 300,
|
|
@@ -9501,14 +9504,14 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9501
9504
|
}
|
|
9502
9505
|
)), W = h.map(
|
|
9503
9506
|
(te, ie) => {
|
|
9504
|
-
const re = `${w}__item`, ge = te.isActive ? `${re}--active` : null, Le = te.isUnprivileged ? `${re}--unprivileged` : null,
|
|
9507
|
+
const re = `${w}__item`, ge = te.isActive ? `${re}--active` : null, Le = te.isUnprivileged ? `${re}--unprivileged` : null, Pe = /* @__PURE__ */ e.createElement(R, { className: `${w}__active-icon`, iconName: "check" }), De = te.workspaceId, Ge = te.workspaceLink.type, Fe = te.isUnprivileged ? null : (Qe) => {
|
|
9505
9508
|
C.current[ie] = Qe;
|
|
9506
9509
|
};
|
|
9507
9510
|
return /* @__PURE__ */ e.createElement(
|
|
9508
9511
|
"li",
|
|
9509
9512
|
{
|
|
9510
9513
|
key: De,
|
|
9511
|
-
ref:
|
|
9514
|
+
ref: Fe,
|
|
9512
9515
|
className: H([
|
|
9513
9516
|
re,
|
|
9514
9517
|
ge,
|
|
@@ -9536,7 +9539,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9536
9539
|
uniqueId: te.workspaceId
|
|
9537
9540
|
}
|
|
9538
9541
|
), te.displayName),
|
|
9539
|
-
te.isActive &&
|
|
9542
|
+
te.isActive && Pe
|
|
9540
9543
|
)
|
|
9541
9544
|
);
|
|
9542
9545
|
}
|
|
@@ -9553,7 +9556,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9553
9556
|
)), ce = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9554
9557
|
"button",
|
|
9555
9558
|
{
|
|
9556
|
-
ref:
|
|
9559
|
+
ref: P.setReference,
|
|
9557
9560
|
"aria-label": n,
|
|
9558
9561
|
className: `${w}__trigger`,
|
|
9559
9562
|
type: "button",
|
|
@@ -9564,7 +9567,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9564
9567
|
), K && /* @__PURE__ */ e.createElement(
|
|
9565
9568
|
"div",
|
|
9566
9569
|
{
|
|
9567
|
-
ref:
|
|
9570
|
+
ref: P.setFloating,
|
|
9568
9571
|
className: `${w}__dropdown`,
|
|
9569
9572
|
style: {
|
|
9570
9573
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
@@ -9659,14 +9662,14 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9659
9662
|
]), document.getElementById(t[0].id).classList.remove(`${m}--fading`);
|
|
9660
9663
|
}, 200);
|
|
9661
9664
|
}, _ = (N, y) => {
|
|
9662
|
-
const { id: w, isDismissible: L, message: $, onDismiss: M, type: k } = N,
|
|
9665
|
+
const { id: w, isDismissible: L, message: $, onDismiss: M, type: k } = N, P = ["critical", "warning"].includes(k) ? "alert" : "status", I = `${l[k]}: `, A = (D) => {
|
|
9663
9666
|
D.preventDefault(), document.getElementById(w).classList.add(`${m}--dismissing`), setTimeout(() => {
|
|
9664
9667
|
if (M?.(), o === 1) {
|
|
9665
9668
|
d([]);
|
|
9666
9669
|
return;
|
|
9667
9670
|
}
|
|
9668
9671
|
d(
|
|
9669
|
-
(U) => U.filter((
|
|
9672
|
+
(U) => U.filter((F) => F.id !== w)
|
|
9670
9673
|
);
|
|
9671
9674
|
}, 200);
|
|
9672
9675
|
};
|
|
@@ -9676,7 +9679,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9676
9679
|
key: w,
|
|
9677
9680
|
className: H([m, g[k]]),
|
|
9678
9681
|
id: w,
|
|
9679
|
-
role:
|
|
9682
|
+
role: P,
|
|
9680
9683
|
style: {
|
|
9681
9684
|
zIndex: h(y).zIndex
|
|
9682
9685
|
}
|
|
@@ -9732,7 +9735,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9732
9735
|
}
|
|
9733
9736
|
), t.map((N, y) => _(N, y))) : _(t[0], 0)
|
|
9734
9737
|
);
|
|
9735
|
-
},
|
|
9738
|
+
}, Pt = {
|
|
9736
9739
|
info: "circleInfo",
|
|
9737
9740
|
warning: "triangleExclamation",
|
|
9738
9741
|
success: "circleCheck",
|
|
@@ -9769,19 +9772,19 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9769
9772
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon-${c}` }, c === "working" ? /* @__PURE__ */ e.createElement(ct, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
9770
9773
|
R,
|
|
9771
9774
|
{
|
|
9772
|
-
iconName: `${c}` in
|
|
9775
|
+
iconName: `${c}` in Pt ? Pt[c] : Pt.info,
|
|
9773
9776
|
iconSize: "lg"
|
|
9774
9777
|
}
|
|
9775
9778
|
)),
|
|
9776
9779
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement("div", { className: `${i}__title` }, s), /* @__PURE__ */ e.createElement("div", { className: `${i}__message` }, v))
|
|
9777
9780
|
);
|
|
9778
|
-
},
|
|
9781
|
+
}, Ft = {
|
|
9779
9782
|
info: "circleInfo",
|
|
9780
9783
|
warning: "triangleExclamation",
|
|
9781
9784
|
success: "circleCheck",
|
|
9782
9785
|
critical: "diamondExclamation",
|
|
9783
9786
|
discovery: "squareQuestion"
|
|
9784
|
-
},
|
|
9787
|
+
}, Pn = ({
|
|
9785
9788
|
className: n,
|
|
9786
9789
|
ctaButton: a,
|
|
9787
9790
|
dismissLabel: s = "Dismiss",
|
|
@@ -9838,7 +9841,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9838
9841
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${d}` }, /* @__PURE__ */ e.createElement(
|
|
9839
9842
|
R,
|
|
9840
9843
|
{
|
|
9841
|
-
iconName: `${d}` in
|
|
9844
|
+
iconName: `${d}` in Ft ? Ft[d] : Ft.info,
|
|
9842
9845
|
iconSize: "lg"
|
|
9843
9846
|
}
|
|
9844
9847
|
)), /* @__PURE__ */ e.createElement("div", { className: `${g}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), t && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${g}__message` }, f))),
|
|
@@ -9905,7 +9908,7 @@ const L1 = 0.125, H1 = 0.25, M1 = 0.328, k1 = 0.41, Nt = 0.512, z1 = 0.64, yt =
|
|
|
9905
9908
|
)),
|
|
9906
9909
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t), n)
|
|
9907
9910
|
);
|
|
9908
|
-
},
|
|
9911
|
+
}, Fn = ({
|
|
9909
9912
|
autoCloseDuration: n = 5e3,
|
|
9910
9913
|
className: a,
|
|
9911
9914
|
limit: s = 5,
|
|
@@ -10366,18 +10369,18 @@ const Bn = () => {
|
|
|
10366
10369
|
whileElementsMounted: Se
|
|
10367
10370
|
}), M = () => {
|
|
10368
10371
|
E(!1), t && t();
|
|
10369
|
-
}, k = Ke(y), z = Ve(y),
|
|
10372
|
+
}, k = Ke(y), z = Ve(y), P = Ie(y), { getFloatingProps: I, getReferenceProps: A } = Ae([
|
|
10370
10373
|
k,
|
|
10371
10374
|
z,
|
|
10372
|
-
|
|
10373
|
-
]), D = L.arrow?.x ?? 0, U = L.arrow?.y ?? 0,
|
|
10375
|
+
P
|
|
10376
|
+
]), D = L.arrow?.x ?? 0, U = L.arrow?.y ?? 0, F = D + E2 / 2, Q = U + tt, { isMounted: Y } = Xe(y, {
|
|
10374
10377
|
initial: {
|
|
10375
10378
|
transform: "scale(0)"
|
|
10376
10379
|
},
|
|
10377
10380
|
common: ({ side: j }) => ({
|
|
10378
10381
|
transformOrigin: {
|
|
10379
|
-
top: `${
|
|
10380
|
-
bottom: `${
|
|
10382
|
+
top: `${F}px calc(100% + ${tt}px)`,
|
|
10383
|
+
bottom: `${F}px ${-tt}px`,
|
|
10381
10384
|
left: `calc(100% + ${tt}px) ${Q}px`,
|
|
10382
10385
|
right: `${-tt}px ${Q}px`
|
|
10383
10386
|
}[j]
|
|
@@ -10714,7 +10717,7 @@ const Qn = ({
|
|
|
10714
10717
|
workspaceName: v,
|
|
10715
10718
|
...g
|
|
10716
10719
|
}) => {
|
|
10717
|
-
const b = "pds-site-dashboard-heading", p = ps[t], h = d ?
|
|
10720
|
+
const b = "pds-site-dashboard-heading", p = ps[t], h = d ? P2[d] : "bolt";
|
|
10718
10721
|
return /* @__PURE__ */ e.createElement("div", { className: H([b, n ?? ""]), ...g }, v && /* @__PURE__ */ e.createElement("div", { className: `${b}__workspace-name` }, v), /* @__PURE__ */ e.createElement("div", { className: `${b}__inner` }, /* @__PURE__ */ e.createElement(R, { iconName: h, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, i), /* @__PURE__ */ e.createElement("span", { className: `${b}__plan-level-badge` }, t === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
10719
10722
|
ze,
|
|
10720
10723
|
{
|
|
@@ -10840,14 +10843,14 @@ const Qn = ({
|
|
|
10840
10843
|
const r = "pds-stepper", l = "pds-stepper-mobile", i = le(null), [t] = Mt(i), d = t.width, o = Number(
|
|
10841
10844
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
10842
10845
|
) * 16, m = -40, v = 2, g = 5, b = a.length, p = a.map((C) => C.isCurrent).lastIndexOf(!0), h = a.map((C, u) => {
|
|
10843
|
-
const f = u + 1, _ = u === p, N = C.isComplete || u < p, y = C.hasError && _, L = (d - b * o) / (b + (b - 2)), $ = o + L * 2, M = o + L, k = L + m * -1, z = u === 0,
|
|
10846
|
+
const f = u + 1, _ = u === p, N = C.isComplete || u < p, y = C.hasError && _, L = (d - b * o) / (b + (b - 2)), $ = o + L * 2, M = o + L, k = L + m * -1, z = u === 0, P = u === b - 1;
|
|
10844
10847
|
let I = $;
|
|
10845
|
-
(z ||
|
|
10848
|
+
(z || P) && (I = M);
|
|
10846
10849
|
const A = `${r}__step`, D = [A];
|
|
10847
10850
|
_ && D.push(`${A}--current`), N && D.push(`${A}--complete`), y && D.push(`${A}--error`);
|
|
10848
10851
|
let U = `${s.step} ${f}`;
|
|
10849
10852
|
N && (U = `${s.step} ${f}, ${s.completed}`), y && (U = `${s.step} ${f}, ${s.hasError}`);
|
|
10850
|
-
const
|
|
10853
|
+
const F = N ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${r}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
10851
10854
|
R,
|
|
10852
10855
|
{
|
|
10853
10856
|
className: `${r}__step-complete-icon`,
|
|
@@ -10855,7 +10858,7 @@ const Qn = ({
|
|
|
10855
10858
|
iconSize: "md"
|
|
10856
10859
|
}
|
|
10857
10860
|
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${r}__step-indicator` }), Q = /* @__PURE__ */ e.createElement("div", { className: `${r}__step-label` }, C.label);
|
|
10858
|
-
let Y = /* @__PURE__ */ e.createElement("div", { className: `${r}__step-content` }, Q,
|
|
10861
|
+
let Y = /* @__PURE__ */ e.createElement("div", { className: `${r}__step-content` }, Q, F);
|
|
10859
10862
|
if (N && C.callback) {
|
|
10860
10863
|
const j = (K) => {
|
|
10861
10864
|
C.callback(C), K.preventDefault();
|
|
@@ -10868,7 +10871,7 @@ const Qn = ({
|
|
|
10868
10871
|
type: "button"
|
|
10869
10872
|
},
|
|
10870
10873
|
Q,
|
|
10871
|
-
|
|
10874
|
+
F
|
|
10872
10875
|
);
|
|
10873
10876
|
}
|
|
10874
10877
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -10894,7 +10897,7 @@ const Qn = ({
|
|
|
10894
10897
|
}
|
|
10895
10898
|
),
|
|
10896
10899
|
Y,
|
|
10897
|
-
!
|
|
10900
|
+
!P && /* @__PURE__ */ e.createElement(
|
|
10898
10901
|
"span",
|
|
10899
10902
|
{
|
|
10900
10903
|
className: `${r}__connector ${r}__connector--after`,
|
|
@@ -11130,16 +11133,16 @@ const Qn = ({
|
|
|
11130
11133
|
ae(() => {
|
|
11131
11134
|
const $ = (z) => {
|
|
11132
11135
|
L.current = z.reduce((A, D) => (A[D.target.id] = D, A), L.current);
|
|
11133
|
-
const
|
|
11136
|
+
const P = [];
|
|
11134
11137
|
Object.keys(L.current).forEach((A) => {
|
|
11135
11138
|
const D = L.current[A];
|
|
11136
|
-
D.isIntersecting &&
|
|
11139
|
+
D.isIntersecting && P.push(D);
|
|
11137
11140
|
});
|
|
11138
11141
|
const I = (A) => k.findIndex((D) => D.id === A);
|
|
11139
|
-
if (
|
|
11140
|
-
w(
|
|
11141
|
-
else if (
|
|
11142
|
-
const A =
|
|
11142
|
+
if (P.length === 1)
|
|
11143
|
+
w(P[0].target.id);
|
|
11144
|
+
else if (P.length > 1) {
|
|
11145
|
+
const A = P.sort(
|
|
11143
11146
|
(D, U) => I(D.target.id) - I(U.target.id)
|
|
11144
11147
|
);
|
|
11145
11148
|
w(A[0].target.id);
|
|
@@ -11642,7 +11645,7 @@ const Qn = ({
|
|
|
11642
11645
|
])
|
|
11643
11646
|
},
|
|
11644
11647
|
M
|
|
11645
|
-
), k),
|
|
11648
|
+
), k), P = /* @__PURE__ */ e.createElement(e.Fragment, null, M && /* @__PURE__ */ e.createElement(
|
|
11646
11649
|
"div",
|
|
11647
11650
|
{
|
|
11648
11651
|
...g,
|
|
@@ -11677,7 +11680,7 @@ const Qn = ({
|
|
|
11677
11680
|
]),
|
|
11678
11681
|
...b
|
|
11679
11682
|
},
|
|
11680
|
-
p ? z :
|
|
11683
|
+
p ? z : P
|
|
11681
11684
|
);
|
|
11682
11685
|
}, ua = ({
|
|
11683
11686
|
children: n,
|
|
@@ -12005,7 +12008,7 @@ export {
|
|
|
12005
12008
|
Qn as RefreshChecker,
|
|
12006
12009
|
Hs as RefreshCheckerState,
|
|
12007
12010
|
$e as ResponsiveContext,
|
|
12008
|
-
|
|
12011
|
+
Pn as SectionMessage,
|
|
12009
12012
|
f1 as SegmentedButton,
|
|
12010
12013
|
$1 as Select,
|
|
12011
12014
|
v1 as SelectOptionGroup,
|
|
@@ -12018,7 +12021,7 @@ export {
|
|
|
12018
12021
|
Jn as SiteDashboardHeading,
|
|
12019
12022
|
un as SiteFooter,
|
|
12020
12023
|
ps as SitePlanLevelLabel,
|
|
12021
|
-
|
|
12024
|
+
P2 as SiteTypeIcon,
|
|
12022
12025
|
Mn as SiteTypeLabel,
|
|
12023
12026
|
Y1 as Skeleton,
|
|
12024
12027
|
ds as Skiplink,
|
|
@@ -12044,7 +12047,7 @@ export {
|
|
|
12044
12047
|
ma as TileGrid,
|
|
12045
12048
|
$s as Toast,
|
|
12046
12049
|
bs as ToastType,
|
|
12047
|
-
|
|
12050
|
+
Fn as Toaster,
|
|
12048
12051
|
we as Tooltip,
|
|
12049
12052
|
Ea as TwoItemLayout,
|
|
12050
12053
|
Tn as UserMenu,
|