@pantheon-systems/pds-toolkit-react 2.0.0-alpha.39 → 2.0.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +11 -1
- package/dist/components/navigation/navigation-utilities.d.ts +12 -0
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-side-nav.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/pds-components.css +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +260 -249
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8275,20 +8275,20 @@ var or = {
|
|
|
8275
8275
|
for (let t = 0; t < e.links.length; t++) if (Wr(e.links[t])) return !0;
|
|
8276
8276
|
}
|
|
8277
8277
|
return !1;
|
|
8278
|
-
}, Gr = (e) => {
|
|
8278
|
+
}, Gr = (e) => e.map((e) => `${Ur(e)}${e.links ? `[${Gr(e.links)}]` : ""}`).join("|"), Kr = (e) => {
|
|
8279
8279
|
if (o(e)) {
|
|
8280
8280
|
let t = e.type;
|
|
8281
8281
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8282
8282
|
}
|
|
8283
8283
|
return !1;
|
|
8284
|
-
},
|
|
8284
|
+
}, qr = (e, t) => {
|
|
8285
8285
|
let r = null;
|
|
8286
8286
|
if (typeof e == "string" && t) {
|
|
8287
8287
|
let i = t ? t[0].linkContent : null;
|
|
8288
8288
|
o(i) && (r = n(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8289
8289
|
} else r = e;
|
|
8290
8290
|
return r;
|
|
8291
|
-
},
|
|
8291
|
+
}, Jr = (t, r, i, a) => {
|
|
8292
8292
|
let s = null;
|
|
8293
8293
|
if (typeof r == "string") {
|
|
8294
8294
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8313,7 +8313,7 @@ var or = {
|
|
|
8313
8313
|
iconName: a,
|
|
8314
8314
|
size: "m"
|
|
8315
8315
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
|
|
8316
|
-
},
|
|
8316
|
+
}, Yr = ({ ariaLabel: t, className: n, menuItems: r, ...i }) => {
|
|
8317
8317
|
let a = m(null), o = "pds-button-nav";
|
|
8318
8318
|
l(() => {
|
|
8319
8319
|
let e = (e) => {
|
|
@@ -8356,7 +8356,7 @@ var or = {
|
|
|
8356
8356
|
className: Z([o, n ?? ""]),
|
|
8357
8357
|
...i
|
|
8358
8358
|
}, c, d);
|
|
8359
|
-
},
|
|
8359
|
+
}, Xr = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8360
8360
|
let s = "pds-dropdown-menu", c = Vr(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(Mn, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Zt({
|
|
8361
8361
|
enableShift: !1,
|
|
8362
8362
|
enableTypeahead: !0,
|
|
@@ -8366,7 +8366,7 @@ var or = {
|
|
|
8366
8366
|
}, S = (e) => {
|
|
8367
8367
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8368
8368
|
}, C = ({ item: e, level: t }) => {
|
|
8369
|
-
let r =
|
|
8369
|
+
let r = qr(e.linkContent, e.links);
|
|
8370
8370
|
return {
|
|
8371
8371
|
...e,
|
|
8372
8372
|
level: t,
|
|
@@ -8457,7 +8457,7 @@ var or = {
|
|
|
8457
8457
|
tabIndex: d === n ? 0 : -1,
|
|
8458
8458
|
...m({ onKeyDown: S })
|
|
8459
8459
|
}, t.linkContent, t.isActive === !0 && u))));
|
|
8460
|
-
},
|
|
8460
|
+
}, Zr = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8461
8461
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8462
8462
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8463
8463
|
className: Z([
|
|
@@ -8467,7 +8467,7 @@ var or = {
|
|
|
8467
8467
|
]),
|
|
8468
8468
|
...i
|
|
8469
8469
|
}, t);
|
|
8470
|
-
},
|
|
8470
|
+
}, Qr = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8471
8471
|
closeMobileNav: "Close navigation area",
|
|
8472
8472
|
openMobileNav: "Open navigation area"
|
|
8473
8473
|
}, ...c }) => {
|
|
@@ -8521,7 +8521,7 @@ var or = {
|
|
|
8521
8521
|
n ?? ""
|
|
8522
8522
|
]),
|
|
8523
8523
|
...c
|
|
8524
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8524
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement(Zr, null, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` }, S, O && k))), /* @__PURE__ */ e.createElement(se, {
|
|
8525
8525
|
active: u,
|
|
8526
8526
|
focusTrapOptions: {
|
|
8527
8527
|
clickOutsideDeactivates: !0,
|
|
@@ -8531,11 +8531,11 @@ var or = {
|
|
|
8531
8531
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8532
8532
|
className: Z([`${m}__mobile`, u ? `${m}__mobile--open` : null]),
|
|
8533
8533
|
inert: u ? void 0 : !0
|
|
8534
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8534
|
+
}, /* @__PURE__ */ e.createElement(Zr, null, /* @__PURE__ */ e.createElement("button", {
|
|
8535
8535
|
className: "visually-hidden",
|
|
8536
8536
|
onClick: y,
|
|
8537
8537
|
type: "button"
|
|
8538
|
-
}, s.closeMobileNav), C, w, T))), /* @__PURE__ */ e.createElement(
|
|
8538
|
+
}, s.closeMobileNav), C, w, T))), /* @__PURE__ */ e.createElement(Zr, {
|
|
8539
8539
|
className: `${m}__inner`,
|
|
8540
8540
|
style: o ? { paddingInline: o } : void 0,
|
|
8541
8541
|
width: i
|
|
@@ -8543,14 +8543,14 @@ var or = {
|
|
|
8543
8543
|
"aria-hidden": "true",
|
|
8544
8544
|
className: `${m}__separator`
|
|
8545
8545
|
}), C && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-left` }, C)), w && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-center` }, w), T && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-right` }, T)));
|
|
8546
|
-
},
|
|
8546
|
+
}, $r = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8547
8547
|
submenu: "submenu",
|
|
8548
8548
|
toggle: "Toggle"
|
|
8549
8549
|
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8550
8550
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8551
8551
|
l(() => {
|
|
8552
8552
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8553
|
-
}, [
|
|
8553
|
+
}, [Gr(c)]);
|
|
8554
8554
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8555
8555
|
v((n) => {
|
|
8556
8556
|
let r = t in n ? n[t] : e;
|
|
@@ -8560,7 +8560,7 @@ var or = {
|
|
|
8560
8560
|
};
|
|
8561
8561
|
});
|
|
8562
8562
|
}, x = (t, r) => {
|
|
8563
|
-
let { linkContent: i, links: a } = t, c = Wr(t), l =
|
|
8563
|
+
let { linkContent: i, links: a } = t, c = Wr(t), l = Kr(i), u = y(c, r);
|
|
8564
8564
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8565
8565
|
key: r,
|
|
8566
8566
|
className: Z([
|
|
@@ -8573,7 +8573,7 @@ var or = {
|
|
|
8573
8573
|
`${f}__row`,
|
|
8574
8574
|
`${f}__row--expandable`,
|
|
8575
8575
|
`${m}-wrapper`
|
|
8576
|
-
]) },
|
|
8576
|
+
]) }, qr(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8577
8577
|
"aria-expanded": u,
|
|
8578
8578
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8579
8579
|
onClick: () => b(c, r),
|
|
@@ -8592,7 +8592,7 @@ var or = {
|
|
|
8592
8592
|
`${m}--second-level`,
|
|
8593
8593
|
Wr(t) ? `${m}--active` : null
|
|
8594
8594
|
])
|
|
8595
|
-
},
|
|
8595
|
+
}, qr(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8596
8596
|
"aria-expanded": u,
|
|
8597
8597
|
className: Z([
|
|
8598
8598
|
`${f}__row`,
|
|
@@ -8617,8 +8617,8 @@ var or = {
|
|
|
8617
8617
|
`${m}--second-level`,
|
|
8618
8618
|
Wr(t) ? `${m}--active` : null
|
|
8619
8619
|
])
|
|
8620
|
-
},
|
|
8621
|
-
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(
|
|
8620
|
+
}, qr(t.linkContent, t.links))))) : i);
|
|
8621
|
+
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(Xr, {
|
|
8622
8622
|
className: `${f}__mobile`,
|
|
8623
8623
|
headingText: a,
|
|
8624
8624
|
menuItems: c,
|
|
@@ -8633,23 +8633,23 @@ var or = {
|
|
|
8633
8633
|
]),
|
|
8634
8634
|
...d
|
|
8635
8635
|
}, S, i && C);
|
|
8636
|
-
}, ei = ({ icon: t, isActive: n,
|
|
8637
|
-
let
|
|
8638
|
-
|
|
8639
|
-
`${
|
|
8640
|
-
|
|
8641
|
-
]) }, t.map((t,
|
|
8642
|
-
key:
|
|
8636
|
+
}, ei = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: u }) => {
|
|
8637
|
+
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Jr(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8638
|
+
p,
|
|
8639
|
+
`${p}--${n}`,
|
|
8640
|
+
r ? `${p}--expanded` : null
|
|
8641
|
+
]) }, t.map((t, r) => /* @__PURE__ */ e.createElement("li", {
|
|
8642
|
+
key: r,
|
|
8643
8643
|
className: Z([
|
|
8644
|
-
|
|
8645
|
-
`${
|
|
8646
|
-
Wr(t) ? `${
|
|
8644
|
+
f,
|
|
8645
|
+
`${f}--${n}`,
|
|
8646
|
+
Wr(t) ? `${f}--active` : null
|
|
8647
8647
|
])
|
|
8648
|
-
}, t.linkContent))), [
|
|
8648
|
+
}, t.linkContent))), [v, y] = h(!1), b = m(v), x = m(!1), { context: D, floatingStyles: O, refs: j } = A({
|
|
8649
8649
|
placement: "right-start",
|
|
8650
|
-
open:
|
|
8650
|
+
open: v,
|
|
8651
8651
|
onOpenChange: (e, t, n) => {
|
|
8652
|
-
|
|
8652
|
+
y(e), e || (x.current = n === "escape-key" || n === "focus-out");
|
|
8653
8653
|
},
|
|
8654
8654
|
middleware: [
|
|
8655
8655
|
w(8),
|
|
@@ -8659,18 +8659,18 @@ var or = {
|
|
|
8659
8659
|
whileElementsMounted: S
|
|
8660
8660
|
});
|
|
8661
8661
|
l(() => {
|
|
8662
|
-
if (
|
|
8663
|
-
let e =
|
|
8662
|
+
if (b.current && !v && i && x.current && j.reference.current) {
|
|
8663
|
+
let e = j.reference.current;
|
|
8664
8664
|
e instanceof HTMLElement && e.querySelector("a")?.focus();
|
|
8665
8665
|
}
|
|
8666
|
-
|
|
8666
|
+
b.current = v;
|
|
8667
8667
|
}, [
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8668
|
+
v,
|
|
8669
|
+
i,
|
|
8670
|
+
j.reference
|
|
8671
8671
|
]);
|
|
8672
|
-
let { getFloatingProps:
|
|
8673
|
-
M(
|
|
8672
|
+
let { getFloatingProps: N, getReferenceProps: F } = P([
|
|
8673
|
+
M(D, {
|
|
8674
8674
|
move: !1,
|
|
8675
8675
|
delay: {
|
|
8676
8676
|
open: 100,
|
|
@@ -8678,75 +8678,87 @@ var or = {
|
|
|
8678
8678
|
},
|
|
8679
8679
|
handleClose: T()
|
|
8680
8680
|
}),
|
|
8681
|
-
k(
|
|
8682
|
-
I(
|
|
8683
|
-
]),
|
|
8684
|
-
|
|
8685
|
-
},
|
|
8686
|
-
!
|
|
8687
|
-
}, L = (e) => {
|
|
8688
|
-
let t = e.currentTarget, n = t.parentElement?.nextElementSibling;
|
|
8689
|
-
if (!n) return;
|
|
8690
|
-
let r = t.getAttribute("aria-expanded") === "false";
|
|
8691
|
-
t.classList.toggle(`${c}__toggle--expanded`, r), t.setAttribute("aria-expanded", r ? "true" : "false"), n.classList.toggle(`${d}--expanded`, r);
|
|
8681
|
+
k(D),
|
|
8682
|
+
I(D, { role: "menu" })
|
|
8683
|
+
]), L = (e) => {
|
|
8684
|
+
i && s && (e.key === "ArrowDown" || e.key === "ArrowRight" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), y(!0));
|
|
8685
|
+
}, R = (e) => {
|
|
8686
|
+
!i || !s || !c || e.nativeEvent.pointerType === "touch" && (e.preventDefault(), e.stopPropagation(), c());
|
|
8692
8687
|
};
|
|
8693
8688
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8694
|
-
ref:
|
|
8689
|
+
ref: i ? j.setReference : null,
|
|
8695
8690
|
className: Z([
|
|
8696
|
-
|
|
8697
|
-
`${
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
n ? `${
|
|
8691
|
+
f,
|
|
8692
|
+
`${f}--top-level`,
|
|
8693
|
+
s ? `${f}--has-children` : null,
|
|
8694
|
+
i ? `${f}--collapsed` : null,
|
|
8695
|
+
n ? `${f}--active` : null
|
|
8701
8696
|
]),
|
|
8702
|
-
...
|
|
8703
|
-
onClick:
|
|
8704
|
-
onKeyDown:
|
|
8705
|
-
},
|
|
8706
|
-
"aria-expanded":
|
|
8707
|
-
className: Z([`${
|
|
8708
|
-
onClick:
|
|
8697
|
+
...F(),
|
|
8698
|
+
onClick: R,
|
|
8699
|
+
onKeyDown: L
|
|
8700
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Jr(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
8701
|
+
"aria-expanded": r,
|
|
8702
|
+
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
8703
|
+
onClick: u,
|
|
8709
8704
|
type: "button"
|
|
8710
8705
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8711
8706
|
iconName: "angleDown",
|
|
8712
8707
|
size: "m"
|
|
8713
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${
|
|
8714
|
-
ref:
|
|
8715
|
-
className: `${
|
|
8716
|
-
style:
|
|
8717
|
-
...
|
|
8718
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8719
|
-
content: Hr(
|
|
8720
|
-
customTrigger:
|
|
8708
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Hr(o)} ${a.submenu}`))), !i && _(s, "second-level"), i && v && /* @__PURE__ */ e.createElement("div", {
|
|
8709
|
+
ref: j.setFloating,
|
|
8710
|
+
className: `${d}__flyout`,
|
|
8711
|
+
style: O,
|
|
8712
|
+
...N()
|
|
8713
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` }, Hr(o)), _(s, "second-level-flyout"))) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(bt, {
|
|
8714
|
+
content: Hr(o),
|
|
8715
|
+
customTrigger: g,
|
|
8721
8716
|
offsetValue: {
|
|
8722
8717
|
mainAxis: 8,
|
|
8723
8718
|
crossAxis: 0
|
|
8724
8719
|
},
|
|
8725
8720
|
preferredPlacement: "right"
|
|
8726
|
-
}) :
|
|
8721
|
+
}) : g));
|
|
8727
8722
|
}, ti = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8728
8723
|
submenu: "submenu",
|
|
8729
8724
|
toggle: "Toggle"
|
|
8730
8725
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8731
|
-
let c = "pds-side-nav-global",
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8726
|
+
let c = "pds-side-nav-global", u = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = h({});
|
|
8727
|
+
l(() => {
|
|
8728
|
+
f((e) => Object.keys(e).length ? {} : e);
|
|
8729
|
+
}, [Gr(a)]);
|
|
8730
|
+
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
8731
|
+
f((n) => {
|
|
8732
|
+
let r = t in n ? n[t] : e;
|
|
8733
|
+
return {
|
|
8734
|
+
...n,
|
|
8735
|
+
[t]: !r
|
|
8736
|
+
};
|
|
8737
|
+
});
|
|
8738
|
+
}, g = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu ${c}__menu--top-level` }, a.map((t, n) => {
|
|
8739
|
+
let a = Wr(t);
|
|
8740
|
+
return /* @__PURE__ */ e.createElement(ei, {
|
|
8741
|
+
key: n,
|
|
8742
|
+
icon: t.icon,
|
|
8743
|
+
isActive: a,
|
|
8744
|
+
isExpanded: p(a, n),
|
|
8745
|
+
isSidebarCollapsed: r,
|
|
8746
|
+
labels: i,
|
|
8747
|
+
linkContent: t.linkContent,
|
|
8748
|
+
links: t.links,
|
|
8749
|
+
onExpandSidebar: o,
|
|
8750
|
+
onToggleExpand: () => m(a, n)
|
|
8751
|
+
});
|
|
8752
|
+
})));
|
|
8741
8753
|
return /* @__PURE__ */ e.createElement("nav", {
|
|
8742
8754
|
"aria-label": t,
|
|
8743
8755
|
className: Z([
|
|
8744
8756
|
c,
|
|
8745
|
-
|
|
8757
|
+
u,
|
|
8746
8758
|
n
|
|
8747
8759
|
]),
|
|
8748
8760
|
...s
|
|
8749
|
-
},
|
|
8761
|
+
}, g);
|
|
8750
8762
|
}, ni = ({ items: t, label: n }) => {
|
|
8751
8763
|
let r = m(null), i = "pds-nav-menu", a = t && t.length > 0, [o, s] = h(() => typeof document < "u" && document.documentElement.hasAttribute("data-pds-mobile"));
|
|
8752
8764
|
l(() => {
|
|
@@ -9105,7 +9117,7 @@ var or = {
|
|
|
9105
9117
|
iconName: "angleDown",
|
|
9106
9118
|
size: "s",
|
|
9107
9119
|
verticalAlign: "-0.0625rem"
|
|
9108
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Hr(n.linkContent)} ${i.submenu}`)),
|
|
9120
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Hr(n.linkContent)} ${i.submenu}`)), qr(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9109
9121
|
className: Z([
|
|
9110
9122
|
u,
|
|
9111
9123
|
o,
|
|
@@ -9582,7 +9594,7 @@ var or = {
|
|
|
9582
9594
|
onClick: (e) => {
|
|
9583
9595
|
e.stopPropagation(), n(e);
|
|
9584
9596
|
},
|
|
9585
|
-
size: "
|
|
9597
|
+
size: "s",
|
|
9586
9598
|
tabIndex: 0
|
|
9587
9599
|
}), Si = ({ className: t, labelStrings: n = yi, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9588
9600
|
let a = Z(["pds-toaster", t]);
|
|
@@ -9595,22 +9607,23 @@ var or = {
|
|
|
9595
9607
|
icon: !1,
|
|
9596
9608
|
limit: r,
|
|
9597
9609
|
pauseOnFocusLoss: !1,
|
|
9610
|
+
pauseOnHover: !1,
|
|
9598
9611
|
position: i,
|
|
9599
9612
|
role: "status",
|
|
9600
9613
|
transition: ce
|
|
9601
9614
|
}));
|
|
9602
|
-
}, Ci =
|
|
9615
|
+
}, Ci = {
|
|
9603
9616
|
info: "circleInfo",
|
|
9604
9617
|
success: "circleCheck",
|
|
9605
9618
|
warning: "triangleExclamation",
|
|
9606
9619
|
critical: "diamondExclamation"
|
|
9607
|
-
},
|
|
9620
|
+
}, wi = {
|
|
9608
9621
|
info: "Information",
|
|
9609
9622
|
success: "Success",
|
|
9610
9623
|
warning: "Warning",
|
|
9611
9624
|
critical: "Critical",
|
|
9612
9625
|
working: "Working..."
|
|
9613
|
-
},
|
|
9626
|
+
}, Ti = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = wi }) => {
|
|
9614
9627
|
let l = "pds-toast", u = {
|
|
9615
9628
|
critical: `${l}--critical`,
|
|
9616
9629
|
info: `${l}--info`,
|
|
@@ -9627,23 +9640,26 @@ var or = {
|
|
|
9627
9640
|
id: i
|
|
9628
9641
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Lt, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9629
9642
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9630
|
-
iconName:
|
|
9643
|
+
iconName: Ci[o],
|
|
9631
9644
|
size: "l"
|
|
9632
9645
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9633
9646
|
"aria-label": p ? f.resume : f.pause,
|
|
9634
9647
|
className: `${l}__pause-button`,
|
|
9635
9648
|
onClick: p ? () => {
|
|
9636
|
-
m(!1),
|
|
9649
|
+
m(!1), de.play({ id: a });
|
|
9637
9650
|
} : () => {
|
|
9638
|
-
m(!0),
|
|
9651
|
+
m(!0), de.pause({ id: a });
|
|
9639
9652
|
},
|
|
9640
9653
|
type: "button"
|
|
9641
|
-
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9642
|
-
|
|
9654
|
+
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9655
|
+
iconName: p ? "play" : "pause",
|
|
9656
|
+
size: "m"
|
|
9657
|
+
})));
|
|
9658
|
+
}, Ei = /* @__PURE__ */ function(e) {
|
|
9643
9659
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9644
|
-
}({}),
|
|
9660
|
+
}({}), Di = () => [
|
|
9645
9661
|
(t, n, r = {}) => {
|
|
9646
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(vi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(
|
|
9662
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(vi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Ti, {
|
|
9647
9663
|
autoCloseDuration: a || void 0,
|
|
9648
9664
|
toastId: i,
|
|
9649
9665
|
type: t
|
|
@@ -9668,7 +9684,7 @@ var or = {
|
|
|
9668
9684
|
enter: "pds-toast--bounceInPlace",
|
|
9669
9685
|
exit: "pds-toast--slideOut"
|
|
9670
9686
|
})
|
|
9671
|
-
],
|
|
9687
|
+
], Oi = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: c = !1, placement: u = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: g, ..._ }) => {
|
|
9672
9688
|
let v = Ie(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = g ? null : `${x}--${f}`, C = `${x}--${u}`, w = g ? { width: g } : void 0, [T, E] = h(c), [D, O] = h(!1), k = m(null), { closeOverlay: A, openOverlay: j } = vt();
|
|
9673
9689
|
l(() => {
|
|
9674
9690
|
c ? E(!0) : O(!1);
|
|
@@ -9733,7 +9749,7 @@ var or = {
|
|
|
9733
9749
|
onClick: M,
|
|
9734
9750
|
size: "m"
|
|
9735
9751
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
9736
|
-
},
|
|
9752
|
+
}, ki = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
|
|
9737
9753
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = vt();
|
|
9738
9754
|
l(() => {
|
|
9739
9755
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -9798,7 +9814,7 @@ var or = {
|
|
|
9798
9814
|
}),
|
|
9799
9815
|
zIndex: 9999
|
|
9800
9816
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
9801
|
-
},
|
|
9817
|
+
}, Ai = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: u = () => {}, size: d = "m", title: f, ...p }) => {
|
|
9802
9818
|
let m = Ie(n), g = m.__unslotted, _ = m.footer, b = "pds-modal", x = d === "m" ? null : `${b}--${d}`, S = a ? {
|
|
9803
9819
|
maxHeight: a,
|
|
9804
9820
|
paddingInlineEnd: "1rem",
|
|
@@ -9874,27 +9890,27 @@ var or = {
|
|
|
9874
9890
|
className: `${b}__content`,
|
|
9875
9891
|
style: S
|
|
9876
9892
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${b}__footer` }, _)))));
|
|
9877
|
-
},
|
|
9893
|
+
}, ji = (e, t) => {
|
|
9878
9894
|
let n = t - e + 1;
|
|
9879
9895
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
9880
|
-
},
|
|
9896
|
+
}, Mi = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
9881
9897
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
9882
|
-
if (a >= i) return
|
|
9898
|
+
if (a >= i) return ji(1, i);
|
|
9883
9899
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
9884
9900
|
if (!l && u) return [
|
|
9885
|
-
...
|
|
9901
|
+
...ji(1, 3 + 2 * e),
|
|
9886
9902
|
"...",
|
|
9887
9903
|
i
|
|
9888
9904
|
];
|
|
9889
9905
|
if (l && !u) return [
|
|
9890
9906
|
1,
|
|
9891
9907
|
"...",
|
|
9892
|
-
...
|
|
9908
|
+
...ji(i - (3 + 2 * e) + 1, i)
|
|
9893
9909
|
];
|
|
9894
9910
|
if (l && u) return [
|
|
9895
9911
|
1,
|
|
9896
9912
|
"...",
|
|
9897
|
-
...
|
|
9913
|
+
...ji(s, c),
|
|
9898
9914
|
"...",
|
|
9899
9915
|
o
|
|
9900
9916
|
];
|
|
@@ -9903,11 +9919,11 @@ var or = {
|
|
|
9903
9919
|
n,
|
|
9904
9920
|
e,
|
|
9905
9921
|
t
|
|
9906
|
-
]),
|
|
9922
|
+
]), Ni = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
9907
9923
|
previous: "Go to previous page",
|
|
9908
9924
|
next: "Go to next page"
|
|
9909
9925
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
9910
|
-
let f =
|
|
9926
|
+
let f = Mi({
|
|
9911
9927
|
currentPage: r,
|
|
9912
9928
|
totalItemCount: u,
|
|
9913
9929
|
bufferCount: t,
|
|
@@ -9961,7 +9977,7 @@ var or = {
|
|
|
9961
9977
|
size: "m"
|
|
9962
9978
|
}))
|
|
9963
9979
|
}))));
|
|
9964
|
-
},
|
|
9980
|
+
}, Pi = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
9965
9981
|
next: "Go to next page",
|
|
9966
9982
|
of: "of",
|
|
9967
9983
|
pageSelect: "Go to page",
|
|
@@ -10014,7 +10030,7 @@ var or = {
|
|
|
10014
10030
|
size: "m"
|
|
10015
10031
|
}))
|
|
10016
10032
|
})));
|
|
10017
|
-
},
|
|
10033
|
+
}, Fi = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10018
10034
|
next: "Next",
|
|
10019
10035
|
previous: "Previous"
|
|
10020
10036
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10043,7 +10059,7 @@ var or = {
|
|
|
10043
10059
|
iconName: "angleRight",
|
|
10044
10060
|
size: "m"
|
|
10045
10061
|
}))));
|
|
10046
|
-
},
|
|
10062
|
+
}, Ii = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10047
10063
|
let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
|
|
10048
10064
|
return l(() => {
|
|
10049
10065
|
let e = v.current;
|
|
@@ -10067,7 +10083,7 @@ var or = {
|
|
|
10067
10083
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10068
10084
|
iconName: "angleDown"
|
|
10069
10085
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10070
|
-
},
|
|
10086
|
+
}, Li = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10071
10087
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10072
10088
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10073
10089
|
className: Z([
|
|
@@ -10077,7 +10093,7 @@ var or = {
|
|
|
10077
10093
|
]),
|
|
10078
10094
|
...i
|
|
10079
10095
|
}, t);
|
|
10080
|
-
},
|
|
10096
|
+
}, Ri = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10081
10097
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10082
10098
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10083
10099
|
className: Z([
|
|
@@ -10087,7 +10103,7 @@ var or = {
|
|
|
10087
10103
|
]),
|
|
10088
10104
|
...a
|
|
10089
10105
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10090
|
-
},
|
|
10106
|
+
}, zi = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10091
10107
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10092
10108
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10093
10109
|
className: Z([
|
|
@@ -10099,43 +10115,38 @@ var or = {
|
|
|
10099
10115
|
]),
|
|
10100
10116
|
...o
|
|
10101
10117
|
}, n);
|
|
10102
|
-
},
|
|
10103
|
-
let o = "pds-panel-row", [s, c] = h(!1), l =
|
|
10104
|
-
|
|
10105
|
-
if (!e || !t) return;
|
|
10106
|
-
let n = !s;
|
|
10107
|
-
c(n), n ? (Object.assign(e.style, {
|
|
10108
|
-
display: "block",
|
|
10109
|
-
height: "auto",
|
|
10110
|
-
opacity: "1"
|
|
10111
|
-
}), t.classList.add("is-expanded")) : (Object.assign(e.style, {
|
|
10112
|
-
height: "0",
|
|
10113
|
-
opacity: "0",
|
|
10114
|
-
display: "none"
|
|
10115
|
-
}), t.classList.remove("is-expanded"));
|
|
10118
|
+
}, Bi = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10119
|
+
let o = "pds-panel-row", [s, c] = h(!1), l = Ie(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
|
|
10120
|
+
c((e) => !e);
|
|
10116
10121
|
};
|
|
10117
10122
|
return /* @__PURE__ */ e.createElement("li", {
|
|
10118
|
-
className: Z([
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10123
|
+
className: Z([
|
|
10124
|
+
o,
|
|
10125
|
+
s ? "is-expanded" : null,
|
|
10126
|
+
n ?? ""
|
|
10127
|
+
]),
|
|
10128
|
+
...a
|
|
10129
|
+
}, /* @__PURE__ */ e.createElement("div", { className: Z([`${o}__main`, i ? "is-expandable" : ""]) }, u && /* @__PURE__ */ e.createElement("div", { className: `${o}__items ${o}__items--left` }, u), d && /* @__PURE__ */ e.createElement("div", { className: `${o}__items ${o}__items--right` }, d), i && /* @__PURE__ */ e.createElement("button", {
|
|
10122
10130
|
"aria-expanded": s,
|
|
10123
10131
|
"aria-label": r,
|
|
10124
10132
|
className: `${o}__expand-button`,
|
|
10125
|
-
onClick:
|
|
10133
|
+
onClick: p
|
|
10126
10134
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
10127
10135
|
className: `${o}__expand-icon ${s ? "rotated" : ""}`,
|
|
10128
10136
|
iconName: "angleDown"
|
|
10129
|
-
}))), i &&
|
|
10130
|
-
ref: u,
|
|
10137
|
+
}))), i && f && /* @__PURE__ */ e.createElement("div", {
|
|
10131
10138
|
className: `${o}__items ${o}__items--below`,
|
|
10132
|
-
style: {
|
|
10139
|
+
style: s ? {
|
|
10140
|
+
display: "block",
|
|
10141
|
+
height: "auto",
|
|
10142
|
+
opacity: "1"
|
|
10143
|
+
} : {
|
|
10133
10144
|
display: "none",
|
|
10134
10145
|
height: "0",
|
|
10135
10146
|
opacity: "0"
|
|
10136
10147
|
}
|
|
10137
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` },
|
|
10138
|
-
},
|
|
10148
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10149
|
+
}, Vi = /* @__PURE__ */ e.createElement("svg", {
|
|
10139
10150
|
"aria-label": "Pantheon",
|
|
10140
10151
|
fill: "none",
|
|
10141
10152
|
focusable: "false",
|
|
@@ -10198,7 +10209,7 @@ var or = {
|
|
|
10198
10209
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10199
10210
|
d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
|
|
10200
10211
|
fill: "var(--pds-color-foreground-default)"
|
|
10201
|
-
})),
|
|
10212
|
+
})), Hi = /* @__PURE__ */ e.createElement("svg", {
|
|
10202
10213
|
"aria-label": "Pantheon",
|
|
10203
10214
|
fill: "none",
|
|
10204
10215
|
focusable: "false",
|
|
@@ -10234,7 +10245,7 @@ var or = {
|
|
|
10234
10245
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10235
10246
|
d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
|
|
10236
10247
|
fill: "var(--pds-color-foreground-default)"
|
|
10237
|
-
})),
|
|
10248
|
+
})), Ui = /* @__PURE__ */ e.createElement("svg", {
|
|
10238
10249
|
"aria-label": "Pantheon",
|
|
10239
10250
|
fill: "none",
|
|
10240
10251
|
focusable: "false",
|
|
@@ -10270,17 +10281,17 @@ var or = {
|
|
|
10270
10281
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10271
10282
|
d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
|
|
10272
10283
|
fill: "var(--pds-color-foreground-default)"
|
|
10273
|
-
})),
|
|
10284
|
+
})), Wi = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10274
10285
|
let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
|
|
10275
10286
|
switch (r) {
|
|
10276
10287
|
case "full":
|
|
10277
|
-
f =
|
|
10288
|
+
f = Vi;
|
|
10278
10289
|
break;
|
|
10279
10290
|
case "icon":
|
|
10280
|
-
f =
|
|
10291
|
+
f = Hi;
|
|
10281
10292
|
break;
|
|
10282
10293
|
case "wordmark":
|
|
10283
|
-
f =
|
|
10294
|
+
f = Ui;
|
|
10284
10295
|
break;
|
|
10285
10296
|
}
|
|
10286
10297
|
let p = o(i) && typeof i.props.children == "string" ? i.props.children : "", m = o(i) ? i.type : null, h = o(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
@@ -10297,7 +10308,7 @@ var or = {
|
|
|
10297
10308
|
]),
|
|
10298
10309
|
...s
|
|
10299
10310
|
}, i ? h : f);
|
|
10300
|
-
},
|
|
10311
|
+
}, Gi = 8, Ki = 14, qi = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: u = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: g = "Show more information", triggerIcon: y = "circleInfo", triggerIconSize: T = "m", ...D }) => {
|
|
10301
10312
|
let [j, M] = h(d);
|
|
10302
10313
|
l(() => {
|
|
10303
10314
|
M(d);
|
|
@@ -10323,12 +10334,12 @@ var or = {
|
|
|
10323
10334
|
O(V),
|
|
10324
10335
|
k(V),
|
|
10325
10336
|
I(V)
|
|
10326
|
-
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J +
|
|
10337
|
+
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ki / 2, ne = ee + Gi, { isMounted: re } = L(V, {
|
|
10327
10338
|
initial: { transform: "scale(0)" },
|
|
10328
10339
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10329
|
-
top: `${te}px calc(100% + ${
|
|
10340
|
+
top: `${te}px calc(100% + ${Gi}px)`,
|
|
10330
10341
|
bottom: `${te}px -8px`,
|
|
10331
|
-
left: `calc(100% + ${
|
|
10342
|
+
left: `calc(100% + ${Gi}px) ${ne}px`,
|
|
10332
10343
|
right: `-8px ${ne}px`
|
|
10333
10344
|
}[e] })
|
|
10334
10345
|
});
|
|
@@ -10360,23 +10371,23 @@ var or = {
|
|
|
10360
10371
|
className: `${F}__arrow`,
|
|
10361
10372
|
context: V,
|
|
10362
10373
|
fill: "var(--pds-color-surface-default)",
|
|
10363
|
-
height:
|
|
10374
|
+
height: Gi,
|
|
10364
10375
|
stroke: "var(--pds-color-popover-border)",
|
|
10365
10376
|
strokeWidth: 1,
|
|
10366
10377
|
tipRadius: 0,
|
|
10367
|
-
width:
|
|
10378
|
+
width: Ki
|
|
10368
10379
|
}), /* @__PURE__ */ e.createElement("div", { className: `${F}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${F}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${F}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${F}__close-wrapper` }, /* @__PURE__ */ e.createElement(Yt, {
|
|
10369
10380
|
ariaLabel: r,
|
|
10370
10381
|
onClick: G,
|
|
10371
10382
|
size: "s"
|
|
10372
10383
|
})))))));
|
|
10373
|
-
},
|
|
10384
|
+
}, Ji = {
|
|
10374
10385
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10375
10386
|
info: "--pds-color-status-info-fill",
|
|
10376
10387
|
success: "--pds-color-status-success-fill",
|
|
10377
10388
|
warning: "--pds-color-status-warning-fill",
|
|
10378
10389
|
critical: "--pds-color-status-critical-fill"
|
|
10379
|
-
},
|
|
10390
|
+
}, Yi = ({ className: t, colorBreakpoints: n = [{
|
|
10380
10391
|
colorType: "info",
|
|
10381
10392
|
percentage: 0
|
|
10382
10393
|
}, {
|
|
@@ -10397,7 +10408,7 @@ var or = {
|
|
|
10397
10408
|
id: m
|
|
10398
10409
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10399
10410
|
className: `${h}__percentage`,
|
|
10400
|
-
style: { color: `hsl(from var(${
|
|
10411
|
+
style: { color: `hsl(from var(${Ji[y]}) h s calc(l - 7))` }
|
|
10401
10412
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10402
10413
|
"aria-labelledby": m,
|
|
10403
10414
|
"aria-valuenow": v,
|
|
@@ -10407,16 +10418,16 @@ var or = {
|
|
|
10407
10418
|
className: `${h}__bar`,
|
|
10408
10419
|
style: {
|
|
10409
10420
|
width: `${v}%`,
|
|
10410
|
-
backgroundColor: `var(${
|
|
10421
|
+
backgroundColor: `var(${Ji[y]})`
|
|
10411
10422
|
}
|
|
10412
10423
|
}))), S && b);
|
|
10413
|
-
},
|
|
10424
|
+
}, Xi = {
|
|
10414
10425
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10415
10426
|
info: "--pds-color-status-info-fill",
|
|
10416
10427
|
success: "--pds-color-status-success-fill",
|
|
10417
10428
|
warning: "--pds-color-status-warning-fill",
|
|
10418
10429
|
critical: "--pds-color-status-critical-fill"
|
|
10419
|
-
},
|
|
10430
|
+
}, Zi = ({ className: t, colorBreakpoints: n = [{
|
|
10420
10431
|
colorType: "info",
|
|
10421
10432
|
percentage: 0
|
|
10422
10433
|
}, {
|
|
@@ -10465,7 +10476,7 @@ var or = {
|
|
|
10465
10476
|
strokeDasharray: x,
|
|
10466
10477
|
strokeDashoffset: S,
|
|
10467
10478
|
strokeWidth: y,
|
|
10468
|
-
style: { stroke: `var(${
|
|
10479
|
+
style: { stroke: `var(${Xi[C]})` },
|
|
10469
10480
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10470
10481
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10471
10482
|
alignmentBaseline: "middle",
|
|
@@ -10475,7 +10486,7 @@ var or = {
|
|
|
10475
10486
|
x: "50%",
|
|
10476
10487
|
y: "51%"
|
|
10477
10488
|
}, w))));
|
|
10478
|
-
},
|
|
10489
|
+
}, Qi = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10479
10490
|
"privacy",
|
|
10480
10491
|
"dataSubjectRequest",
|
|
10481
10492
|
"cookiePolicy",
|
|
@@ -10493,7 +10504,7 @@ var or = {
|
|
|
10493
10504
|
]),
|
|
10494
10505
|
...c
|
|
10495
10506
|
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), h && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), g && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), v && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), y && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
10496
|
-
},
|
|
10507
|
+
}, $i = ({ className: t, option: n, ...r }) => {
|
|
10497
10508
|
let i = "pds-site-option-display", a = n.type ? _n[n.type] : "boltSolid", o = m(null), [s] = pe(o), c = s.width / 16 - 7.5, l, u;
|
|
10498
10509
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10499
10510
|
let d = /* @__PURE__ */ e.createElement(Rt, {
|
|
@@ -10516,7 +10527,7 @@ var or = {
|
|
|
10516
10527
|
className: `${i}__status`,
|
|
10517
10528
|
style: { pointerEvents: "none" }
|
|
10518
10529
|
}, d));
|
|
10519
|
-
},
|
|
10530
|
+
}, ea = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10520
10531
|
clearButton: "Clear input text",
|
|
10521
10532
|
inputInstructions: "Type to search options"
|
|
10522
10533
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10528,7 +10539,7 @@ var or = {
|
|
|
10528
10539
|
id: n,
|
|
10529
10540
|
label: i,
|
|
10530
10541
|
value: r ?? i,
|
|
10531
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10542
|
+
optionDisplay: /* @__PURE__ */ e.createElement($i, { option: t }),
|
|
10532
10543
|
siteData: t
|
|
10533
10544
|
};
|
|
10534
10545
|
});
|
|
@@ -10557,7 +10568,7 @@ var or = {
|
|
|
10557
10568
|
};
|
|
10558
10569
|
//#endregion
|
|
10559
10570
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10560
|
-
function
|
|
10571
|
+
function ta(e, t, n = null, r = 0, i = []) {
|
|
10561
10572
|
return e.reduce((e, a, o) => {
|
|
10562
10573
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10563
10574
|
return e.push({
|
|
@@ -10569,10 +10580,10 @@ function na(e, t, n = null, r = 0, i = []) {
|
|
|
10569
10580
|
index: o,
|
|
10570
10581
|
isExpanded: c,
|
|
10571
10582
|
parentId: n
|
|
10572
|
-
}), s && c && a.children && e.push(...
|
|
10583
|
+
}), s && c && a.children && e.push(...ta(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10573
10584
|
}, []);
|
|
10574
10585
|
}
|
|
10575
|
-
function
|
|
10586
|
+
function na(e) {
|
|
10576
10587
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10577
10588
|
for (let i of e) {
|
|
10578
10589
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10585,28 +10596,28 @@ function ra(e) {
|
|
|
10585
10596
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10586
10597
|
}
|
|
10587
10598
|
}
|
|
10588
|
-
return
|
|
10599
|
+
return ra(r);
|
|
10589
10600
|
}
|
|
10590
|
-
function
|
|
10601
|
+
function ra(e) {
|
|
10591
10602
|
return e.map((e) => {
|
|
10592
10603
|
if (e.children?.length) return {
|
|
10593
10604
|
...e,
|
|
10594
|
-
children:
|
|
10605
|
+
children: ra(e.children)
|
|
10595
10606
|
};
|
|
10596
10607
|
let { children: t, ...n } = e;
|
|
10597
10608
|
return n;
|
|
10598
10609
|
});
|
|
10599
10610
|
}
|
|
10600
|
-
function
|
|
10611
|
+
function ia(e, t) {
|
|
10601
10612
|
for (let n of e) {
|
|
10602
10613
|
if (n.id === t) return n;
|
|
10603
10614
|
if (n.children) {
|
|
10604
|
-
let e =
|
|
10615
|
+
let e = ia(n.children, t);
|
|
10605
10616
|
if (e) return e;
|
|
10606
10617
|
}
|
|
10607
10618
|
}
|
|
10608
10619
|
}
|
|
10609
|
-
function
|
|
10620
|
+
function aa(e, t, n, r, i, a, o) {
|
|
10610
10621
|
let s = e.findIndex((e) => e.id === n);
|
|
10611
10622
|
if (s === -1) return 0;
|
|
10612
10623
|
let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
|
|
@@ -10614,7 +10625,7 @@ function oa(e, t, n, r, i, a, o) {
|
|
|
10614
10625
|
}
|
|
10615
10626
|
//#endregion
|
|
10616
10627
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
10617
|
-
var
|
|
10628
|
+
var oa = ({ children: t, className: n, columns: r, ...i }) => {
|
|
10618
10629
|
if (!r && !t) return null;
|
|
10619
10630
|
let a = r ? {
|
|
10620
10631
|
display: "grid",
|
|
@@ -10635,13 +10646,13 @@ var sa = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
10635
10646
|
};
|
|
10636
10647
|
//#endregion
|
|
10637
10648
|
//#region src/components/SortableList/useSortableTree.ts
|
|
10638
|
-
function
|
|
10649
|
+
function sa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
10639
10650
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
10640
10651
|
t && !d.current && (u.current = {
|
|
10641
10652
|
items: i ? n : a,
|
|
10642
10653
|
expandedIds: c
|
|
10643
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
10644
|
-
let f = i ? n : a, g = p(() =>
|
|
10654
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && la("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
10655
|
+
let f = i ? n : a, g = p(() => ta(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
10645
10656
|
l((t) => {
|
|
10646
10657
|
let n = new Set(t);
|
|
10647
10658
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -10659,7 +10670,7 @@ function ca({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10659
10670
|
}, []),
|
|
10660
10671
|
flatNodes: g,
|
|
10661
10672
|
handleReorder: s((e) => {
|
|
10662
|
-
let t =
|
|
10673
|
+
let t = na(e);
|
|
10663
10674
|
i || o(t), r?.(t);
|
|
10664
10675
|
}, [i, r]),
|
|
10665
10676
|
resetToSnapshot: s(() => {
|
|
@@ -10671,24 +10682,24 @@ function ca({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10671
10682
|
toggleExpand: v
|
|
10672
10683
|
};
|
|
10673
10684
|
}
|
|
10674
|
-
var
|
|
10675
|
-
function
|
|
10676
|
-
|
|
10685
|
+
var ca = /* @__PURE__ */ new Set();
|
|
10686
|
+
function la(e) {
|
|
10687
|
+
ca.has(e) || (ca.add(e), console.warn(e));
|
|
10677
10688
|
}
|
|
10678
10689
|
//#endregion
|
|
10679
10690
|
//#region src/components/SortableList/SortableList.tsx
|
|
10680
|
-
var
|
|
10691
|
+
var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: c = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: f = () => !1, items: g, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
10681
10692
|
let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), W = s((e, t) => {
|
|
10682
10693
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
10683
10694
|
e.preventDefault();
|
|
10684
10695
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
10685
10696
|
return B.current = i, z(i), {
|
|
10686
|
-
x: t.currentCoordinates.x + a *
|
|
10697
|
+
x: t.currentCoordinates.x + a * ua,
|
|
10687
10698
|
y: t.currentCoordinates.y
|
|
10688
10699
|
};
|
|
10689
10700
|
}
|
|
10690
10701
|
return Ce(e, t);
|
|
10691
|
-
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } =
|
|
10702
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = sa({
|
|
10692
10703
|
defaultItems: a,
|
|
10693
10704
|
isDragEnabled: G,
|
|
10694
10705
|
items: g,
|
|
@@ -10715,9 +10726,9 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10715
10726
|
X,
|
|
10716
10727
|
Y,
|
|
10717
10728
|
j
|
|
10718
|
-
]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ?
|
|
10729
|
+
]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ? ia(K, String(T)) ?? null : null, [T, K]), de = p(() => {
|
|
10719
10730
|
let e = le?.depth ?? 0;
|
|
10720
|
-
return !T || !j || O || _ === 0 ? e :
|
|
10731
|
+
return !T || !j || O || _ === 0 ? e : aa(J, String(T), String(j), V * ua, ua, _);
|
|
10721
10732
|
}, [
|
|
10722
10733
|
T,
|
|
10723
10734
|
le,
|
|
@@ -10729,7 +10740,7 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10729
10740
|
]), fe = p(() => {
|
|
10730
10741
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
10731
10742
|
let e = J.findIndex((e) => e.id === T);
|
|
10732
|
-
return e === -1 ? null :
|
|
10743
|
+
return e === -1 ? null : pa(J, e, de);
|
|
10733
10744
|
}, [
|
|
10734
10745
|
T,
|
|
10735
10746
|
J,
|
|
@@ -10775,19 +10786,19 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10775
10786
|
}, [J, Y]), Ee = s((e) => {
|
|
10776
10787
|
let t = e.delta.x;
|
|
10777
10788
|
if (P.current = t, A.current || _ === 0) return;
|
|
10778
|
-
let n = Math.floor(t /
|
|
10779
|
-
(n > r || n < r && t < r *
|
|
10789
|
+
let n = Math.floor(t / ua), r = U.current;
|
|
10790
|
+
(n > r || n < r && t < r * ua - ua * .4) && (U.current = n, H(n));
|
|
10780
10791
|
}, [_]), De = s((e) => {
|
|
10781
10792
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
10782
10793
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
|
|
10783
|
-
let o = J.findIndex((e) => e.id === t.id), s = r ? i *
|
|
10794
|
+
let o = J.findIndex((e) => e.id === t.id), s = r ? i * ua : a * ua, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
10784
10795
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
10785
10796
|
if (o === -1) return;
|
|
10786
10797
|
let e = J[o];
|
|
10787
10798
|
if (!e) return;
|
|
10788
|
-
let n =
|
|
10799
|
+
let n = aa(J, String(t.id), String(t.id), s, ua, _);
|
|
10789
10800
|
if (n === e.depth) return;
|
|
10790
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
10801
|
+
let r = [...J], [i] = r.splice(o, 1), a = pa(r, o, n);
|
|
10791
10802
|
if (a && oe.has(a)) return;
|
|
10792
10803
|
let c = {
|
|
10793
10804
|
...i,
|
|
@@ -10809,9 +10820,9 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10809
10820
|
let e = J[u];
|
|
10810
10821
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
10811
10822
|
} else {
|
|
10812
|
-
g =
|
|
10823
|
+
g = aa(d, String(t.id), String(l), s, ua, _, p.depth);
|
|
10813
10824
|
let e = d[h];
|
|
10814
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
10825
|
+
v = e && e.depth === g - 1 ? String(l) : pa(d, h, g);
|
|
10815
10826
|
}
|
|
10816
10827
|
if (v && oe.has(v)) return;
|
|
10817
10828
|
let y = {
|
|
@@ -10834,24 +10845,24 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10834
10845
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
|
|
10835
10846
|
}, [q]), ke = p(() => ({
|
|
10836
10847
|
onDragStart({ active: e }) {
|
|
10837
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
10848
|
+
let t = J.find((t) => t.id === e.id), n = ia(K, String(e.id));
|
|
10838
10849
|
return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
|
|
10839
10850
|
},
|
|
10840
10851
|
onDragOver({ active: e, over: t }) {
|
|
10841
10852
|
if (!t) return;
|
|
10842
10853
|
let n = J.findIndex((e) => e.id === t.id);
|
|
10843
10854
|
if (n === -1) return;
|
|
10844
|
-
let r =
|
|
10855
|
+
let r = ia(K, String(e.id)), i = r ? c(r) : String(e.id), a = aa(J, String(e.id), String(t.id), P.current, ua, _);
|
|
10845
10856
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
10846
10857
|
},
|
|
10847
10858
|
onDragEnd({ active: e, over: t }) {
|
|
10848
|
-
let n =
|
|
10859
|
+
let n = ia(K, String(e.id)), r = n ? c(n) : String(e.id);
|
|
10849
10860
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
10850
|
-
let i = J.findIndex((e) => e.id === t.id), a =
|
|
10861
|
+
let i = J.findIndex((e) => e.id === t.id), a = aa(J, String(e.id), String(t.id), P.current, ua, _);
|
|
10851
10862
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
10852
10863
|
},
|
|
10853
10864
|
onDragCancel({ active: e }) {
|
|
10854
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
10865
|
+
let t = J.find((t) => t.id === e.id), n = ia(K, String(e.id));
|
|
10855
10866
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
10856
10867
|
}
|
|
10857
10868
|
}), [
|
|
@@ -10859,14 +10870,14 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10859
10870
|
J,
|
|
10860
10871
|
c,
|
|
10861
10872
|
_
|
|
10862
|
-
]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type ===
|
|
10873
|
+
]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type === oa ? e.cloneElement(t, Ae) : t);
|
|
10863
10874
|
return /* @__PURE__ */ e.createElement(me, {
|
|
10864
10875
|
accessibility: {
|
|
10865
10876
|
announcements: ke,
|
|
10866
10877
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
10867
10878
|
},
|
|
10868
10879
|
collisionDetection: _e,
|
|
10869
|
-
measuring:
|
|
10880
|
+
measuring: da,
|
|
10870
10881
|
onDragCancel: Oe,
|
|
10871
10882
|
onDragEnd: De,
|
|
10872
10883
|
onDragMove: Ee,
|
|
@@ -10941,14 +10952,14 @@ var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = a(function({ chil
|
|
|
10941
10952
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
10942
10953
|
})()) : null));
|
|
10943
10954
|
});
|
|
10944
|
-
function
|
|
10955
|
+
function pa(e, t, n) {
|
|
10945
10956
|
if (n === 0) return null;
|
|
10946
10957
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
10947
10958
|
return null;
|
|
10948
10959
|
}
|
|
10949
10960
|
//#endregion
|
|
10950
10961
|
//#region src/components/SortableList/SortableRow.tsx
|
|
10951
|
-
var
|
|
10962
|
+
var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
|
|
10952
10963
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = we({
|
|
10953
10964
|
attributes: {
|
|
10954
10965
|
role: "listitem",
|
|
@@ -11003,7 +11014,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11003
11014
|
key: t.id,
|
|
11004
11015
|
className: `${w}__cell`
|
|
11005
11016
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11006
|
-
},
|
|
11017
|
+
}, ha = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11007
11018
|
let l = {
|
|
11008
11019
|
checkForUpdates: "Check for updates",
|
|
11009
11020
|
checking: "Checking...",
|
|
@@ -11050,7 +11061,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11050
11061
|
triggerIconColor: "default",
|
|
11051
11062
|
triggerIconSize: "s"
|
|
11052
11063
|
}), t === "left" && g));
|
|
11053
|
-
},
|
|
11064
|
+
}, ga = ({ className: t, label: n = null, size: r = "s", type: i = "neutral", ...a }) => {
|
|
11054
11065
|
let o = "pds-status-indicator", s = `${o}--${i}`, c = r === "s" ? null : `${o}--${r}`;
|
|
11055
11066
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11056
11067
|
className: Z([
|
|
@@ -11068,7 +11079,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11068
11079
|
className: `${o}__icon`,
|
|
11069
11080
|
role: "img"
|
|
11070
11081
|
}), n && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, n));
|
|
11071
|
-
},
|
|
11082
|
+
}, _a = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11072
11083
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11073
11084
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
11074
11085
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11086,7 +11097,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11086
11097
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11087
11098
|
...a
|
|
11088
11099
|
}, l);
|
|
11089
|
-
},
|
|
11100
|
+
}, va = ({ className: t, steps: n, translatableLabels: r = {
|
|
11090
11101
|
step: "Step",
|
|
11091
11102
|
completed: "completed",
|
|
11092
11103
|
hasError: "has an error",
|
|
@@ -11150,7 +11161,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11150
11161
|
key: t.id,
|
|
11151
11162
|
className: `${o}__step`,
|
|
11152
11163
|
id: `${t.id}--mobile`
|
|
11153
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11164
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Zi, {
|
|
11154
11165
|
innerLabel: n,
|
|
11155
11166
|
label: "Step progress",
|
|
11156
11167
|
percentage: i,
|
|
@@ -11175,7 +11186,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11175
11186
|
"data-steps": d,
|
|
11176
11187
|
...i
|
|
11177
11188
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11178
|
-
},
|
|
11189
|
+
}, ya = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11179
11190
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11180
11191
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11181
11192
|
className: Z([...p]),
|
|
@@ -11201,14 +11212,14 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11201
11212
|
size: "s",
|
|
11202
11213
|
variant: "highlight"
|
|
11203
11214
|
})))));
|
|
11204
|
-
},
|
|
11215
|
+
}, ba = ({ className: t, labelStrings: n = {
|
|
11205
11216
|
step: "Step",
|
|
11206
11217
|
completed: "completed",
|
|
11207
11218
|
hasError: "has an error"
|
|
11208
11219
|
}, steps: r, ...i }) => {
|
|
11209
11220
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11210
11221
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11211
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11222
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ya, {
|
|
11212
11223
|
key: `s${i}`,
|
|
11213
11224
|
_isFirstStep: c,
|
|
11214
11225
|
"aria-current": a ? "step" : null,
|
|
@@ -11229,7 +11240,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11229
11240
|
className: Z([a, t ?? ""]),
|
|
11230
11241
|
...i
|
|
11231
11242
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11232
|
-
},
|
|
11243
|
+
}, xa = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: m = "No results found.", emptyStateMessage: g, footer: _, getPageSizeLabel: v = (e) => `Show ${e} rows per page`, getRowClassName: y, getRowId: b, getSelectRowLabel: x = (e, t) => `Select row ${t}`, getSortLabel: S = (e) => `Sort by ${e}`, inspectedRowId: C, isLoading: w = !1, itemsPerPage: T, loadingRowCount: E = 5, nextDetailPanelRowLabel: D = "Next row", onDetailPanelNext: O, onDetailPanelPrev: k, onPageChange: A, onPageSizeChange: j, onRowInspect: M, onRowSelectionChange: N, onSort: P, pageSizeOptions: F, panel: I, prevDetailPanelRowLabel: L = "Previous row", renderDetailPanel: R, renderDetailPanelFooter: z, rowData: B, selectAllLabel: V = "Select all rows", selectedRows: H, sortKey: U, sortOrder: W, totalItemCount: G, ...K }) => {
|
|
11233
11244
|
let q = "pds-table", J = u(), ee = u(), te = P !== void 0, ne = A !== void 0, re = j !== void 0, ie = ne || T !== void 0 || F !== void 0, [ae, Y] = h({
|
|
11234
11245
|
key: a ?? "",
|
|
11235
11246
|
order: a === void 0 ? "asc" : o
|
|
@@ -11379,7 +11390,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11379
11390
|
showLabel: !1,
|
|
11380
11391
|
size: "s",
|
|
11381
11392
|
value: String(pe)
|
|
11382
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11393
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Pi, {
|
|
11383
11394
|
currentPage: ne ? i ?? 1 : oe,
|
|
11384
11395
|
itemsPerPage: pe,
|
|
11385
11396
|
onPageChange: ne ? A : X,
|
|
@@ -11419,8 +11430,8 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11419
11430
|
size: "s",
|
|
11420
11431
|
variant: "standard"
|
|
11421
11432
|
}))))));
|
|
11422
|
-
return I ? /* @__PURE__ */ e.createElement(
|
|
11423
|
-
},
|
|
11433
|
+
return I ? /* @__PURE__ */ e.createElement(Ri, { padding: "none" }, Ue) : Ue;
|
|
11434
|
+
}, Sa = [
|
|
11424
11435
|
" ",
|
|
11425
11436
|
"/",
|
|
11426
11437
|
".",
|
|
@@ -11438,7 +11449,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11438
11449
|
"=",
|
|
11439
11450
|
"|",
|
|
11440
11451
|
"~"
|
|
11441
|
-
],
|
|
11452
|
+
], Ca = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), wa = (e) => {
|
|
11442
11453
|
let t = [];
|
|
11443
11454
|
return e.forEach((e) => {
|
|
11444
11455
|
let { id: n, innerText: r } = e;
|
|
@@ -11451,18 +11462,18 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11451
11462
|
title: r
|
|
11452
11463
|
});
|
|
11453
11464
|
}), t;
|
|
11454
|
-
},
|
|
11465
|
+
}, Ta = (e, t, n) => {
|
|
11455
11466
|
let [r, i] = h([]);
|
|
11456
11467
|
return l(() => {
|
|
11457
11468
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11458
11469
|
let e = Array.from(document.querySelectorAll(r));
|
|
11459
11470
|
e.forEach((e) => {
|
|
11460
|
-
|
|
11461
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11471
|
+
Sa.forEach((t) => {
|
|
11472
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(Ca(t), "g"), "-"));
|
|
11462
11473
|
});
|
|
11463
11474
|
}), e.forEach((e, t) => {
|
|
11464
11475
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11465
|
-
}), i(
|
|
11476
|
+
}), i(wa(e));
|
|
11466
11477
|
};
|
|
11467
11478
|
a();
|
|
11468
11479
|
let o = document.getElementById(e);
|
|
@@ -11478,7 +11489,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11478
11489
|
t,
|
|
11479
11490
|
n
|
|
11480
11491
|
]), { nestedHeadings: r };
|
|
11481
|
-
},
|
|
11492
|
+
}, Ea = (e, t) => {
|
|
11482
11493
|
let [n, r] = h(void 0), i = m({});
|
|
11483
11494
|
return l(() => {
|
|
11484
11495
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11497,7 +11508,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11497
11508
|
o.disconnect(), r(void 0);
|
|
11498
11509
|
};
|
|
11499
11510
|
}, [e, t]), n;
|
|
11500
|
-
},
|
|
11511
|
+
}, Da = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
11501
11512
|
key: r.id,
|
|
11502
11513
|
className: `${n}__list-item`
|
|
11503
11514
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11513,8 +11524,8 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11513
11524
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11514
11525
|
href: `#${r.id}`,
|
|
11515
11526
|
onClick: (e) => i(e, r.id)
|
|
11516
|
-
}, r.title))))))),
|
|
11517
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11527
|
+
}, r.title))))))), Oa = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
11528
|
+
let d = "pds-toc", { nestedHeadings: f } = Ta(c, o, u()), p = Ea(c, o), m = (e) => {
|
|
11518
11529
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11519
11530
|
}, h = (e) => {
|
|
11520
11531
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11532,13 +11543,13 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11532
11543
|
baseClass: d,
|
|
11533
11544
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11534
11545
|
level: i
|
|
11535
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11546
|
+
}, a), /* @__PURE__ */ e.createElement(Da, {
|
|
11536
11547
|
activeID: p,
|
|
11537
11548
|
baseClass: d,
|
|
11538
11549
|
headings: f,
|
|
11539
11550
|
onLinkClick: g
|
|
11540
11551
|
}));
|
|
11541
|
-
},
|
|
11552
|
+
}, ka = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11542
11553
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11543
11554
|
l(() => {
|
|
11544
11555
|
a !== void 0 && d(a);
|
|
@@ -11649,7 +11660,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11649
11660
|
className: `${c}__panel-content`,
|
|
11650
11661
|
hidden: o !== u
|
|
11651
11662
|
}, r)))));
|
|
11652
|
-
},
|
|
11663
|
+
}, Aa = [
|
|
11653
11664
|
"orange",
|
|
11654
11665
|
"stone",
|
|
11655
11666
|
"gold",
|
|
@@ -11664,7 +11675,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11664
11675
|
"rose",
|
|
11665
11676
|
"red",
|
|
11666
11677
|
"silver"
|
|
11667
|
-
],
|
|
11678
|
+
], ja = [
|
|
11668
11679
|
"orange-solid",
|
|
11669
11680
|
"teal-solid",
|
|
11670
11681
|
"indigo-solid",
|
|
@@ -11675,8 +11686,8 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11675
11686
|
"critical-solid",
|
|
11676
11687
|
"info-solid",
|
|
11677
11688
|
"discovery-solid"
|
|
11678
|
-
],
|
|
11679
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
11689
|
+
], Ma = (e) => Aa[parseInt(g(e), 16) % Aa.length], Na = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Pa = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
11690
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${Ma(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
11680
11691
|
p((e) => !e);
|
|
11681
11692
|
}, b, x, S;
|
|
11682
11693
|
if (r && !n && o(r)) {
|
|
@@ -11698,7 +11709,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11698
11709
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
11699
11710
|
className: `${m}__label`,
|
|
11700
11711
|
title: l
|
|
11701
|
-
}, u > 0 ?
|
|
11712
|
+
}, u > 0 ? Na(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
11702
11713
|
"aria-label": `${a}: ${l}`,
|
|
11703
11714
|
className: `${m}__remove`,
|
|
11704
11715
|
onClick: () => {
|
|
@@ -11710,11 +11721,11 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11710
11721
|
iconName: "xmark",
|
|
11711
11722
|
size: "m"
|
|
11712
11723
|
})) : null);
|
|
11713
|
-
},
|
|
11724
|
+
}, Fa = {
|
|
11714
11725
|
light: "sunBright",
|
|
11715
11726
|
dark: "moon",
|
|
11716
11727
|
system: "desktop"
|
|
11717
|
-
},
|
|
11728
|
+
}, Ia = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
11718
11729
|
light: "Light",
|
|
11719
11730
|
dark: "Dark",
|
|
11720
11731
|
system: "System"
|
|
@@ -11725,7 +11736,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11725
11736
|
"system"
|
|
11726
11737
|
].map((e) => ({
|
|
11727
11738
|
callback: () => i?.(e),
|
|
11728
|
-
iconName:
|
|
11739
|
+
iconName: Fa[e],
|
|
11729
11740
|
iconSize: "m",
|
|
11730
11741
|
label: r[e]
|
|
11731
11742
|
}));
|
|
@@ -11737,7 +11748,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11737
11748
|
customTrigger: /* @__PURE__ */ e.createElement(vn, {
|
|
11738
11749
|
iconOnly: !0,
|
|
11739
11750
|
"aria-label": s,
|
|
11740
|
-
iconName:
|
|
11751
|
+
iconName: Fa[a],
|
|
11741
11752
|
id: n,
|
|
11742
11753
|
label: "",
|
|
11743
11754
|
menuItems: c,
|
|
@@ -11746,7 +11757,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11746
11757
|
offsetValue: 0,
|
|
11747
11758
|
preferredPlacement: "top"
|
|
11748
11759
|
}));
|
|
11749
|
-
},
|
|
11760
|
+
}, La = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
11750
11761
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Ie(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
11751
11762
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11752
11763
|
className: Z([
|
|
@@ -11757,7 +11768,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11757
11768
|
]),
|
|
11758
11769
|
...a
|
|
11759
11770
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
11760
|
-
},
|
|
11771
|
+
}, Ra = () => {
|
|
11761
11772
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = h(e ? t(window.innerWidth) : "lg");
|
|
11762
11773
|
return l(() => {
|
|
11763
11774
|
if (!e) return;
|
|
@@ -11768,7 +11779,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11768
11779
|
window.removeEventListener("resize", n);
|
|
11769
11780
|
};
|
|
11770
11781
|
}, []), n;
|
|
11771
|
-
},
|
|
11782
|
+
}, za = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g = {
|
|
11772
11783
|
collapseSidebar: "Press [ to collapse sidebar",
|
|
11773
11784
|
drawerToggle: "Open account menu",
|
|
11774
11785
|
expandSidebar: "Press ] to expand sidebar"
|
|
@@ -11788,7 +11799,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11788
11799
|
return;
|
|
11789
11800
|
}
|
|
11790
11801
|
M(!j);
|
|
11791
|
-
}, B =
|
|
11802
|
+
}, B = Ra();
|
|
11792
11803
|
l(() => {
|
|
11793
11804
|
B === "sm" && !j ? (R.current = !0, S ? S() : M(!0)) : B !== "sm" && R.current && (R.current = !1, S ? S() : M(!1));
|
|
11794
11805
|
}, [B]);
|
|
@@ -11886,7 +11897,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11886
11897
|
n ?? ""
|
|
11887
11898
|
]),
|
|
11888
11899
|
...A
|
|
11889
|
-
}, K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(
|
|
11900
|
+
}, K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(Oi, {
|
|
11890
11901
|
...a,
|
|
11891
11902
|
isOpen: u,
|
|
11892
11903
|
placement: "left",
|
|
@@ -11894,7 +11905,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11894
11905
|
!e && u && x && x();
|
|
11895
11906
|
}
|
|
11896
11907
|
}, r));
|
|
11897
|
-
},
|
|
11908
|
+
}, Ba = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
11898
11909
|
let c = "pds-docs-layout", l = {
|
|
11899
11910
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
11900
11911
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -11912,7 +11923,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11912
11923
|
},
|
|
11913
11924
|
...s
|
|
11914
11925
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
11915
|
-
},
|
|
11926
|
+
}, Va = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
11916
11927
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Ie(t);
|
|
11917
11928
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11918
11929
|
className: Z([u, n ?? ""]),
|
|
@@ -11926,18 +11937,18 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11926
11937
|
},
|
|
11927
11938
|
...l
|
|
11928
11939
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
11929
|
-
},
|
|
11940
|
+
}, Ha = ({ children: t, className: n, ...r }) => {
|
|
11930
11941
|
let i = Ie(t), a = i.stepper, o = i.form, s = m(null), [c] = pe(s), l = c.width;
|
|
11931
11942
|
document.documentElement.style.setProperty("--stepper-layout-max-width", l + "px");
|
|
11932
11943
|
let u = "pds-stepper-layout";
|
|
11933
|
-
return /* @__PURE__ */ e.createElement(
|
|
11944
|
+
return /* @__PURE__ */ e.createElement(Zr, {
|
|
11934
11945
|
className: Z([u, n]),
|
|
11935
11946
|
...r
|
|
11936
11947
|
}, a && /* @__PURE__ */ e.createElement("div", {
|
|
11937
11948
|
ref: s,
|
|
11938
11949
|
className: `${u}__stepper-container`
|
|
11939
11950
|
}, a), o && /* @__PURE__ */ e.createElement("div", { className: `${u}__form-container` }, o));
|
|
11940
|
-
},
|
|
11951
|
+
}, Ua = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
11941
11952
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Ie(t), u = [
|
|
11942
11953
|
l["first-item"],
|
|
11943
11954
|
l["second-item"],
|
|
@@ -11955,7 +11966,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11955
11966
|
key: n,
|
|
11956
11967
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
11957
11968
|
}, t)));
|
|
11958
|
-
},
|
|
11969
|
+
}, Wa = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
11959
11970
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
11960
11971
|
switch (i) {
|
|
11961
11972
|
case "equal":
|
|
@@ -11976,7 +11987,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11976
11987
|
]),
|
|
11977
11988
|
...o
|
|
11978
11989
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
11979
|
-
},
|
|
11990
|
+
}, Ga = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
|
|
11980
11991
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
11981
11992
|
"--pds-flex-align-content": t,
|
|
11982
11993
|
"--pds-flex-align-items": n,
|
|
@@ -12002,12 +12013,12 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12002
12013
|
},
|
|
12003
12014
|
...g
|
|
12004
12015
|
}, r);
|
|
12005
|
-
},
|
|
12016
|
+
}, Ka = ({ children: t, mobileMaxWidth: n = 767 }) => (l(() => {
|
|
12006
12017
|
let e = document.documentElement, t = () => {
|
|
12007
12018
|
window.innerWidth <= n ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12008
12019
|
};
|
|
12009
12020
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12010
|
-
}, [n]), /* @__PURE__ */ e.createElement(_t, null, t)),
|
|
12021
|
+
}, [n]), /* @__PURE__ */ e.createElement(_t, null, t)), qa = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12011
12022
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
12012
12023
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12013
12024
|
className: Z([
|
|
@@ -12021,7 +12032,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12021
12032
|
]),
|
|
12022
12033
|
...c
|
|
12023
12034
|
}, n);
|
|
12024
|
-
},
|
|
12035
|
+
}, Ja = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12025
12036
|
let f = "pds-grid-item", p = [
|
|
12026
12037
|
l ? `${f}--sm-${l}` : null,
|
|
12027
12038
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12040,7 +12051,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12040
12051
|
]),
|
|
12041
12052
|
...d
|
|
12042
12053
|
}, t);
|
|
12043
|
-
},
|
|
12054
|
+
}, Ya = (e) => {
|
|
12044
12055
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12045
12056
|
return l(() => {
|
|
12046
12057
|
if (!t) return;
|
|
@@ -12049,7 +12060,7 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12049
12060
|
};
|
|
12050
12061
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12051
12062
|
}, [e]), n;
|
|
12052
|
-
},
|
|
12063
|
+
}, Xa = () => {
|
|
12053
12064
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12054
12065
|
return l(() => {
|
|
12055
12066
|
if (!e) return;
|
|
@@ -12063,6 +12074,6 @@ var ha = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12063
12074
|
}, []), t;
|
|
12064
12075
|
};
|
|
12065
12076
|
//#endregion
|
|
12066
|
-
export { On as ActionCard,
|
|
12077
|
+
export { On as ActionCard, za as AppLayout, Ue as Avatar, We as Badge, pi as Banner, Qn as BarChart, Bt as BranchDiff, Br as Breadcrumb, Wt as Button, Gt as ButtonLink, Yr as ButtonNav, Ir as CTALink, Dn as Callout, kn as Card, An as CardSelect, _r as Checkbox, vr as CheckboxFieldset, yr as CheckboxGroup, Jt as ClipboardButton, Yt as CloseButton, sr as CodeBlock, br as Combobox, Sr as ComboboxMultiselect, jn as CompactEmptyState, lr as ComparisonList, Zr as Container, Er as Datepicker, Ba as DocsLayout, Oi as Drawer, en as Dropdown, Xr as DropdownMenu, Ii as ExpansionPanel, Li as ExpansionPanelGroup, pr as FileDiff, Dr as FileUpload, ln as FilterButton, Ga as FlexContainer, ki as FullScreenOverlay, Ka as GlobalWrapper, qa as Grid, Ja as GridItem, dr as HorizontalEmptyState, Q as Icon, qt as IconButton, gr as IdentityBlock, hi as InlineMessage, Or as InputGroup, er as LineChart, Lr as LinkNewWindow, vi as MIN_AUTO_CLOSE_DURATION, vn as MenuButton, Ai as Modal, Qr as Navbar, Ni as Pagination, Pi as PaginationCompact, Fi as PaginationMini, Ri as Panel, zi as PanelList, Bi as PanelRow, Wi as PantheonLogo, hr as PaymentIcon, zr as Picture, nr as PieChart, Sn as PlatformIcon, qi as Popover, Yi as ProgressBar, Zi as ProgressRing, ir as ProportionBar, kr as RadioGroup, wn as SSOButton, _i as SectionMessage, yn as SegmentedButton, Pn as Select, Nn as SelectOptionGroup, $r as SideNav, ti as SideNavGlobal, ei as SideNavGlobalItem, Va as SidebarLayout, Qi as SiteFooter, ri as SiteMenu, $i as SiteOptionDisplay, ea as SiteSearch, _n as SiteTypeIcon, gn as SiteTypeLabel, Jn as Skeleton, Rr as Skiplink, fa as SortableList, oa as SortableListHeader, ma as SortableRow, Lt as Spinner, bn as SplitButton, Rt as StatusBadge, ha as StatusChecker, ga as StatusIndicator, dn as StatusTypeLabels, _a as StepList, va as Stepper, Ha as StepperLayout, Ar as Switch, ai as TabMenu, xa as Table, Oa as TableOfContents, ka as Tabs, Pa as Tag, Mr as TagsInput, zt as Tally, Fr as TextInput, Nr as Textarea, Ia as ThemeSwitcher, Ua as ThreeItemLayout, Ti as Toast, Ei as ToastType, Si as Toaster, bi as ToasterContext, bt as Tooltip, si as TreeNav, Wa as TwoItemLayout, ci as UserMenu, La as UtilityBar, Tn as UtilityButton, fr as VerticalEmptyState, ba as VerticalStepper, ur as VideoEmbed, li as WorkspaceSelector, wr as getPresetDateRange, Be as iconList, pn as isHeadingItemType, mn as isLinkItemType, hn as isNodeItemType, fn as isSeparatorItemType, Aa as tagColors, ja as tagSolidColors, Ra as useBreakpoint, Kt as useClipboard, Zt as useDropdown, yt as useKeyPress, Ya as useMediaQuery, Di as useToast, Xa as useWindowWidth };
|
|
12067
12078
|
|
|
12068
12079
|
//# sourceMappingURL=index.js.map
|