@pantheon-systems/pds-toolkit-react 2.0.0-alpha.38 → 2.0.0-alpha.39
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/codemods/v1-to-v2/mappings.json +13 -0
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +1 -3
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +10 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button.css +1 -1
- package/dist/css/component-css/pds-filter-button.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-progress-ring.css +1 -1
- package/dist/css/component-css/pds-skeleton.css +1 -1
- package/dist/css/component-css/pds-switch.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +6 -2
- package/dist/css/design-tokens/variables.light.css +4 -0
- package/dist/css/pds-components.css +3 -3
- package/dist/css/pds-core.css +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +302 -266
- package/dist/index.js.map +1 -1
- package/dist/libs/types/custom-types.d.ts +1 -1
- package/package.json +5 -7
package/dist/index.js
CHANGED
|
@@ -6970,13 +6970,23 @@ var or = {
|
|
|
6970
6970
|
onSelectedItemChange: ({ selectedItem: e }) => {
|
|
6971
6971
|
e && (ae || le(e.label), se(e.value), k?.(e));
|
|
6972
6972
|
},
|
|
6973
|
-
stateReducer: (e, { changes: t, type: n }) =>
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6973
|
+
stateReducer: (e, { changes: t, type: n }) => {
|
|
6974
|
+
if (n === ie.stateChangeTypes.InputBlur) return {
|
|
6975
|
+
...t,
|
|
6976
|
+
inputValue: e.inputValue
|
|
6977
|
+
};
|
|
6978
|
+
if (n === ie.stateChangeTypes.InputClick) {
|
|
6979
|
+
if (F) return {
|
|
6980
|
+
...t,
|
|
6981
|
+
isOpen: !0
|
|
6982
|
+
};
|
|
6983
|
+
if (t.isOpen && !e.inputValue) return {
|
|
6984
|
+
...t,
|
|
6985
|
+
isOpen: !1
|
|
6986
|
+
};
|
|
6987
|
+
}
|
|
6988
|
+
return t;
|
|
6989
|
+
}
|
|
6980
6990
|
}), { context: be, floatingStyles: xe, refs: Se } = A({
|
|
6981
6991
|
open: _e,
|
|
6982
6992
|
whileElementsMounted: S,
|
|
@@ -7088,18 +7098,19 @@ var or = {
|
|
|
7088
7098
|
className: `${G}__trigger-icon`,
|
|
7089
7099
|
iconName: "angleDown",
|
|
7090
7100
|
size: "m"
|
|
7091
|
-
}))),
|
|
7101
|
+
}))), /* @__PURE__ */ e.createElement("div", {
|
|
7092
7102
|
ref: Se.setFloating,
|
|
7093
7103
|
className: `pds-dropdown__panel ${G}__dropdown`,
|
|
7094
|
-
style: {
|
|
7104
|
+
style: Ce ? {
|
|
7095
7105
|
...xe,
|
|
7096
7106
|
...we,
|
|
7097
7107
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7098
|
-
}
|
|
7099
|
-
}, f
|
|
7108
|
+
} : { display: "none" }
|
|
7109
|
+
}, Ce && f && /* @__PURE__ */ e.createElement("div", { className: `${G}__loading` }, v), Ce && !f && fe.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
|
|
7100
7110
|
className: `${G}__options`,
|
|
7101
|
-
...he()
|
|
7102
|
-
|
|
7111
|
+
...he(),
|
|
7112
|
+
style: Ce && !f && fe.length > 0 ? void 0 : { display: "none" }
|
|
7113
|
+
}, Ce && !f && Ae())), re && /* @__PURE__ */ e.createElement(Tt, {
|
|
7103
7114
|
hasValidationMessage: !!z,
|
|
7104
7115
|
id: u,
|
|
7105
7116
|
message: re,
|
|
@@ -7310,14 +7321,14 @@ var or = {
|
|
|
7310
7321
|
className: `${O}__trigger-icon`,
|
|
7311
7322
|
iconName: "angleDown",
|
|
7312
7323
|
size: "m"
|
|
7313
|
-
})))),
|
|
7324
|
+
})))), /* @__PURE__ */ e.createElement("div", {
|
|
7314
7325
|
...q(),
|
|
7315
7326
|
ref: de.setFloating,
|
|
7316
7327
|
className: `pds-dropdown__panel ${O}__dropdown`,
|
|
7317
|
-
style: {
|
|
7328
|
+
style: se ? {
|
|
7318
7329
|
...ue,
|
|
7319
7330
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7320
|
-
}
|
|
7331
|
+
} : { display: "none" }
|
|
7321
7332
|
}, /* @__PURE__ */ e.createElement("div", { className: `${O}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(Dt, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
|
|
7322
7333
|
"aria-label": l.inputInstructions,
|
|
7323
7334
|
className: `${O}__dropdown-input`,
|
|
@@ -7326,10 +7337,11 @@ var or = {
|
|
|
7326
7337
|
onClick: (e) => {
|
|
7327
7338
|
e.stopPropagation();
|
|
7328
7339
|
}
|
|
7329
|
-
})), s
|
|
7340
|
+
})), se && s && /* @__PURE__ */ e.createElement("div", { className: `${O}__loading` }, u), se && !s && W.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
|
|
7330
7341
|
className: `${O}__dropdown-list`,
|
|
7331
|
-
...Y()
|
|
7332
|
-
|
|
7342
|
+
...Y(),
|
|
7343
|
+
style: se && !s && W.length > 0 ? void 0 : { display: "none" }
|
|
7344
|
+
}, se && !s && W.map((t, n) => /* @__PURE__ */ e.createElement(Nt, {
|
|
7333
7345
|
key: `${t.id}-${n}`,
|
|
7334
7346
|
className: `${O}__dropdown-item
|
|
7335
7347
|
${X === n ? "pds-dropdown__item--focused" : ""}
|
|
@@ -7342,7 +7354,7 @@ var or = {
|
|
|
7342
7354
|
}, /* @__PURE__ */ e.createElement("span", { className: `${O}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${O}__dropdown-item-text` }, t.label, t.badge === "ai" && /* @__PURE__ */ e.createElement("span", { className: `${O}__dropdown-item-badge` }, /* @__PURE__ */ e.createElement(Q, {
|
|
7343
7355
|
iconName: "sparkles",
|
|
7344
7356
|
size: "s"
|
|
7345
|
-
}), /* @__PURE__ */ e.createElement("span", null, l.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(Mn, null)))))
|
|
7357
|
+
}), /* @__PURE__ */ e.createElement("span", null, l.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(Mn, null)))))), H && t && /* @__PURE__ */ e.createElement("div", {
|
|
7346
7358
|
ref: me.setFloating,
|
|
7347
7359
|
className: `${O}__aux-panel`,
|
|
7348
7360
|
style: {
|
|
@@ -8531,90 +8543,97 @@ var or = {
|
|
|
8531
8543
|
"aria-hidden": "true",
|
|
8532
8544
|
className: `${m}__separator`
|
|
8533
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)));
|
|
8534
|
-
}, Qr = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8546
|
+
}, Qr = (e) => e.map((e) => `${Ur(e)}${e.links ? `[${Qr(e.links)}]` : ""}`).join("|"), $r = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8535
8547
|
submenu: "submenu",
|
|
8536
8548
|
toggle: "Toggle"
|
|
8537
|
-
}, menuItems: c, mobileMenuSelectTextFallback:
|
|
8538
|
-
let
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8549
|
+
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8550
|
+
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8551
|
+
l(() => {
|
|
8552
|
+
v((e) => Object.keys(e).length ? {} : e);
|
|
8553
|
+
}, [Qr(c)]);
|
|
8554
|
+
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8555
|
+
v((n) => {
|
|
8556
|
+
let r = t in n ? n[t] : e;
|
|
8557
|
+
return {
|
|
8558
|
+
...n,
|
|
8559
|
+
[t]: !r
|
|
8560
|
+
};
|
|
8561
|
+
});
|
|
8562
|
+
}, x = (t, r) => {
|
|
8563
|
+
let { linkContent: i, links: a } = t, c = Wr(t), l = Gr(i), u = y(c, r);
|
|
8545
8564
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8546
8565
|
key: r,
|
|
8547
8566
|
className: Z([
|
|
8548
|
-
|
|
8549
|
-
`${
|
|
8550
|
-
a ? `${
|
|
8551
|
-
c ? `${
|
|
8567
|
+
m,
|
|
8568
|
+
`${m}--top-level`,
|
|
8569
|
+
a ? `${m}--has-children` : null,
|
|
8570
|
+
c ? `${m}--active` : null
|
|
8552
8571
|
])
|
|
8553
8572
|
}, a ? l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
8554
|
-
`${
|
|
8555
|
-
`${
|
|
8556
|
-
`${
|
|
8573
|
+
`${f}__row`,
|
|
8574
|
+
`${f}__row--expandable`,
|
|
8575
|
+
`${m}-wrapper`
|
|
8557
8576
|
]) }, Kr(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8558
8577
|
"aria-expanded": u,
|
|
8559
|
-
className: Z([`${
|
|
8560
|
-
onClick:
|
|
8578
|
+
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8579
|
+
onClick: () => b(c, r),
|
|
8561
8580
|
type: "button"
|
|
8562
8581
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8563
8582
|
iconName: "angleDown",
|
|
8564
8583
|
size: "m"
|
|
8565
8584
|
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${Hr(i)} ${s.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8566
|
-
|
|
8567
|
-
`${
|
|
8568
|
-
u ? `${
|
|
8585
|
+
g,
|
|
8586
|
+
`${g}--second-level`,
|
|
8587
|
+
u ? `${g}--expanded` : null
|
|
8569
8588
|
]) }, a.map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
8570
8589
|
key: n,
|
|
8571
8590
|
className: Z([
|
|
8572
|
-
|
|
8573
|
-
`${
|
|
8574
|
-
Wr(t) ? `${
|
|
8591
|
+
m,
|
|
8592
|
+
`${m}--second-level`,
|
|
8593
|
+
Wr(t) ? `${m}--active` : null
|
|
8575
8594
|
])
|
|
8576
8595
|
}, Kr(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8577
8596
|
"aria-expanded": u,
|
|
8578
8597
|
className: Z([
|
|
8579
|
-
`${
|
|
8580
|
-
`${
|
|
8581
|
-
`${
|
|
8582
|
-
`${
|
|
8583
|
-
u ? `${
|
|
8598
|
+
`${f}__row`,
|
|
8599
|
+
`${f}__row--expandable`,
|
|
8600
|
+
`${f}__toggle`,
|
|
8601
|
+
`${f}__toggle--main`,
|
|
8602
|
+
u ? `${f}__toggle--expanded` : null
|
|
8584
8603
|
]),
|
|
8585
|
-
onClick:
|
|
8604
|
+
onClick: () => b(c, r),
|
|
8586
8605
|
type: "button"
|
|
8587
|
-
}, o(i) && i.type === "span" ? n(i, { className: Z([i.props.className, `${
|
|
8606
|
+
}, o(i) && i.type === "span" ? n(i, { className: Z([i.props.className, `${f}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${f}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
8588
8607
|
iconName: "angleDown",
|
|
8589
8608
|
size: "m"
|
|
8590
8609
|
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${Hr(i)} ${s.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8591
|
-
|
|
8592
|
-
`${
|
|
8593
|
-
u ? `${
|
|
8610
|
+
g,
|
|
8611
|
+
`${g}--second-level`,
|
|
8612
|
+
u ? `${g}--expanded` : null
|
|
8594
8613
|
]) }, a.map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
8595
8614
|
key: n,
|
|
8596
8615
|
className: Z([
|
|
8597
|
-
|
|
8598
|
-
`${
|
|
8599
|
-
Wr(t) ? `${
|
|
8616
|
+
m,
|
|
8617
|
+
`${m}--second-level`,
|
|
8618
|
+
Wr(t) ? `${m}--active` : null
|
|
8600
8619
|
])
|
|
8601
8620
|
}, Kr(t.linkContent, t.links))))) : i);
|
|
8602
|
-
},
|
|
8603
|
-
className: `${
|
|
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(Yr, {
|
|
8622
|
+
className: `${f}__mobile`,
|
|
8604
8623
|
headingText: a,
|
|
8605
8624
|
menuItems: c,
|
|
8606
|
-
selectTextFallback:
|
|
8625
|
+
selectTextFallback: u
|
|
8607
8626
|
});
|
|
8608
8627
|
return /* @__PURE__ */ e.createElement("nav", {
|
|
8609
8628
|
"aria-label": t,
|
|
8610
8629
|
className: Z([
|
|
8611
|
-
d,
|
|
8612
8630
|
f,
|
|
8631
|
+
p,
|
|
8613
8632
|
r ?? ""
|
|
8614
8633
|
]),
|
|
8615
|
-
...
|
|
8616
|
-
},
|
|
8617
|
-
},
|
|
8634
|
+
...d
|
|
8635
|
+
}, S, i && C);
|
|
8636
|
+
}, ei = ({ icon: t, isActive: n, isSidebarCollapsed: r, labels: i, linkContent: a, links: o, onExpandSidebar: s }) => {
|
|
8618
8637
|
let c = "pds-side-nav-global", u = `${c}__item`, d = `${c}__menu`, f = /* @__PURE__ */ e.createElement("div", { className: `${u}-wrapper` }, qr(c, a, o, t)), p = (t, r) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8619
8638
|
d,
|
|
8620
8639
|
`${d}--${r}`,
|
|
@@ -8705,11 +8724,11 @@ var or = {
|
|
|
8705
8724
|
},
|
|
8706
8725
|
preferredPlacement: "right"
|
|
8707
8726
|
}) : f));
|
|
8708
|
-
},
|
|
8727
|
+
}, ti = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8709
8728
|
submenu: "submenu",
|
|
8710
8729
|
toggle: "Toggle"
|
|
8711
8730
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8712
|
-
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, u = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu ${c}__menu--top-level` }, a.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
8731
|
+
let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, u = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu ${c}__menu--top-level` }, a.map((t, n) => /* @__PURE__ */ e.createElement(ei, {
|
|
8713
8732
|
key: n,
|
|
8714
8733
|
icon: t.icon,
|
|
8715
8734
|
isActive: Wr(t),
|
|
@@ -8728,7 +8747,7 @@ var or = {
|
|
|
8728
8747
|
]),
|
|
8729
8748
|
...s
|
|
8730
8749
|
}, u);
|
|
8731
|
-
},
|
|
8750
|
+
}, ni = ({ items: t, label: n }) => {
|
|
8732
8751
|
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"));
|
|
8733
8752
|
l(() => {
|
|
8734
8753
|
let e = new MutationObserver(() => {
|
|
@@ -8775,7 +8794,7 @@ var or = {
|
|
|
8775
8794
|
key: n,
|
|
8776
8795
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${_(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
8777
8796
|
}, !t.isSeparator && t.linkContent))));
|
|
8778
|
-
},
|
|
8797
|
+
}, ri = ({ ariaLabel: t = "Main Navigation", className: n, colorType: r = "default", menuItems: i, ...a }) => {
|
|
8779
8798
|
let [o, s] = h(null), [c, d] = h(-1), [f, p] = h(null), [g, _] = h({
|
|
8780
8799
|
container: null,
|
|
8781
8800
|
containerChildren: []
|
|
@@ -8822,7 +8841,7 @@ var or = {
|
|
|
8822
8841
|
},
|
|
8823
8842
|
className: `${y}__item ${y}__item--top-level ${y}__item--has-children ${C(t) === !0 ? `${y}__item--active` : ""}`,
|
|
8824
8843
|
id: i
|
|
8825
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8844
|
+
}, /* @__PURE__ */ e.createElement(ni, {
|
|
8826
8845
|
items: t.links,
|
|
8827
8846
|
label: t.label
|
|
8828
8847
|
}))) : w.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -8845,7 +8864,7 @@ var or = {
|
|
|
8845
8864
|
},
|
|
8846
8865
|
...a
|
|
8847
8866
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${y}__menu` }, w));
|
|
8848
|
-
},
|
|
8867
|
+
}, ii = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
8849
8868
|
let [s, c] = h(i), [u, d] = h(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, g = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: S, isMounted: C, isOpen: w, listRef: T, refs: E, setActiveIndex: D, transitionStyles: O } = Zt({
|
|
8850
8869
|
offsetValue: 8,
|
|
8851
8870
|
placement: "bottom-start",
|
|
@@ -8910,7 +8929,7 @@ var or = {
|
|
|
8910
8929
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8911
8930
|
} })
|
|
8912
8931
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...O } }, F, /* @__PURE__ */ e.createElement("ul", { className: Z([m, g]) }, I.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : I))));
|
|
8913
|
-
},
|
|
8932
|
+
}, ai = ({ ariaLabel: t, className: r, menuItems: i, ...a }) => {
|
|
8914
8933
|
let s = "pds-tab-menu", c = ({ dropdownSettings: t, icon: r, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
8915
8934
|
let u = `${s}__item`, d = Vr(c);
|
|
8916
8935
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, r) => {
|
|
@@ -8923,7 +8942,7 @@ var or = {
|
|
|
8923
8942
|
iconName: r,
|
|
8924
8943
|
size: "m"
|
|
8925
8944
|
}), t.props.children)] })) : t), i;
|
|
8926
|
-
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(
|
|
8945
|
+
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(ii, {
|
|
8927
8946
|
buttonLabel: t?.buttonLabel,
|
|
8928
8947
|
filterLabel: t?.filterLabel,
|
|
8929
8948
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -8945,11 +8964,11 @@ var or = {
|
|
|
8945
8964
|
className: Z([s, r ?? ""]),
|
|
8946
8965
|
...a
|
|
8947
8966
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, l));
|
|
8948
|
-
},
|
|
8967
|
+
}, oi = {
|
|
8949
8968
|
2: "second",
|
|
8950
8969
|
3: "third",
|
|
8951
8970
|
4: "fourth"
|
|
8952
|
-
},
|
|
8971
|
+
}, si = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
8953
8972
|
submenu: "submenu",
|
|
8954
8973
|
toggle: "Toggle"
|
|
8955
8974
|
}, menuItems: a, ...o }) => {
|
|
@@ -9069,7 +9088,7 @@ var or = {
|
|
|
9069
9088
|
display: "none"
|
|
9070
9089
|
}), b();
|
|
9071
9090
|
}, j = (t, n, r) => {
|
|
9072
|
-
let a =
|
|
9091
|
+
let a = oi[t], o = `${u}--${a}-level`, l = `${c}--${a}-level`, d = t + 1, f = Wr(n);
|
|
9073
9092
|
if (_.current && n.path) {
|
|
9074
9093
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9075
9094
|
if (e) {
|
|
@@ -9106,7 +9125,7 @@ var or = {
|
|
|
9106
9125
|
]),
|
|
9107
9126
|
"data-item-path": t.path || "",
|
|
9108
9127
|
role: "treeitem"
|
|
9109
|
-
}, t.links && d in
|
|
9128
|
+
}, t.links && d in oi ? j(d, t, t.links) : t.linkContent);
|
|
9110
9129
|
})));
|
|
9111
9130
|
}, M = (t, n) => {
|
|
9112
9131
|
let { linkContent: r, links: i } = t, a = Wr(t);
|
|
@@ -9138,7 +9157,7 @@ var or = {
|
|
|
9138
9157
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9139
9158
|
role: "tree"
|
|
9140
9159
|
}, a.map((e, t) => M(e, t))));
|
|
9141
|
-
},
|
|
9160
|
+
}, ci = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], userEmail: i, userImageSrc: a, userName: o, ...s }) => {
|
|
9142
9161
|
let [c, l] = h(null), [d, f] = h(!1), p = m([]), g = m([]), _ = u(), v = "pds-user-menu", y = `${v}__menu`, { context: b, floatingStyles: x, refs: T } = A({
|
|
9143
9162
|
placement: "bottom-end",
|
|
9144
9163
|
open: d,
|
|
@@ -9249,7 +9268,7 @@ var or = {
|
|
|
9249
9268
|
className: y,
|
|
9250
9269
|
role: "menu"
|
|
9251
9270
|
}, W, /* @__PURE__ */ e.createElement("li", { role: "separator" }), J))));
|
|
9252
|
-
},
|
|
9271
|
+
}, li = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
9253
9272
|
let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", x = `${b}__menu`, S = y ? `${x}--scroll` : null, { activeIndex: C, floatingStyles: w, getFloatingProps: T, getItemProps: E, getReferenceProps: D, isMounted: O, listRef: k, refs: A, setIsOpen: j, transitionStyles: M } = Zt({
|
|
9254
9273
|
enableTypeahead: !y,
|
|
9255
9274
|
role: "menu"
|
|
@@ -9389,12 +9408,12 @@ var or = {
|
|
|
9389
9408
|
className: `pds-dropdown__heading ${b}__item-heading`,
|
|
9390
9409
|
role: "presentation"
|
|
9391
9410
|
}, o), R.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : R), B));
|
|
9392
|
-
},
|
|
9411
|
+
}, ui = {
|
|
9393
9412
|
info: "circleInfo",
|
|
9394
9413
|
warning: "triangleExclamation",
|
|
9395
9414
|
critical: "diamondExclamation",
|
|
9396
9415
|
discovery: "bullhorn"
|
|
9397
|
-
},
|
|
9416
|
+
}, di = 200, fi = 50, pi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9398
9417
|
...dn,
|
|
9399
9418
|
neutral: "Notice"
|
|
9400
9419
|
}, ...c }) => {
|
|
@@ -9413,21 +9432,21 @@ var or = {
|
|
|
9413
9432
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9414
9433
|
m(d[0].id), setTimeout(() => {
|
|
9415
9434
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9416
|
-
},
|
|
9435
|
+
}, di);
|
|
9417
9436
|
}, k = () => {
|
|
9418
9437
|
y({
|
|
9419
9438
|
[d[0].id]: 502,
|
|
9420
9439
|
[d[b - 1].id]: 501
|
|
9421
9440
|
}), setTimeout(() => {
|
|
9422
9441
|
m(d[0].id);
|
|
9423
|
-
},
|
|
9442
|
+
}, fi), setTimeout(() => {
|
|
9424
9443
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9425
|
-
},
|
|
9444
|
+
}, di);
|
|
9426
9445
|
}, A = (t, n) => {
|
|
9427
9446
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: l, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, y = (e) => {
|
|
9428
9447
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9429
9448
|
l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9430
|
-
},
|
|
9449
|
+
}, di);
|
|
9431
9450
|
}, b = v[a] ?? E(n);
|
|
9432
9451
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9433
9452
|
key: a,
|
|
@@ -9442,7 +9461,7 @@ var or = {
|
|
|
9442
9461
|
style: { zIndex: b }
|
|
9443
9462
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9444
9463
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9445
|
-
iconName: d === "neutral" ? r :
|
|
9464
|
+
iconName: d === "neutral" ? r : ui[d],
|
|
9446
9465
|
size: u ? "l" : "m"
|
|
9447
9466
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9448
9467
|
className: `${x}__dismiss-button`,
|
|
@@ -9473,12 +9492,12 @@ var or = {
|
|
|
9473
9492
|
onClick: O,
|
|
9474
9493
|
size: "m"
|
|
9475
9494
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
9476
|
-
},
|
|
9495
|
+
}, mi = {
|
|
9477
9496
|
info: "circleInfo",
|
|
9478
9497
|
warning: "triangleExclamation",
|
|
9479
9498
|
success: "circleCheck",
|
|
9480
9499
|
critical: "diamondExclamation"
|
|
9481
|
-
},
|
|
9500
|
+
}, hi = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
9482
9501
|
...dn,
|
|
9483
9502
|
working: "Working"
|
|
9484
9503
|
}, ...o }) => {
|
|
@@ -9499,16 +9518,16 @@ var or = {
|
|
|
9499
9518
|
role: l,
|
|
9500
9519
|
...o
|
|
9501
9520
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(Lt, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9502
|
-
iconName: `${i}` in
|
|
9521
|
+
iconName: `${i}` in mi ? mi[i] : mi.info,
|
|
9503
9522
|
size: "m"
|
|
9504
9523
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
9505
|
-
},
|
|
9524
|
+
}, gi = {
|
|
9506
9525
|
info: "circleInfo",
|
|
9507
9526
|
warning: "triangleExclamation",
|
|
9508
9527
|
success: "circleCheck",
|
|
9509
9528
|
critical: "diamondExclamation",
|
|
9510
9529
|
discovery: "squareQuestion"
|
|
9511
|
-
},
|
|
9530
|
+
}, _i = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: u = "info", typeLabels: d = dn, ...f }) => {
|
|
9512
9531
|
let p = r === "marketing", h = m(null), g = "pds-section-message", _ = {
|
|
9513
9532
|
error: `${g}--error`,
|
|
9514
9533
|
success: `${g}--success`,
|
|
@@ -9541,7 +9560,7 @@ var or = {
|
|
|
9541
9560
|
role: b,
|
|
9542
9561
|
...f
|
|
9543
9562
|
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${u}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9544
|
-
iconName: `${u}` in
|
|
9563
|
+
iconName: `${u}` in gi ? gi[u] : gi.info,
|
|
9545
9564
|
size: p ? "xl" : "l"
|
|
9546
9565
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, x), l && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${g}__message` }, S))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${g}__actions` }, n && /* @__PURE__ */ e.createElement(Wt, {
|
|
9547
9566
|
...n,
|
|
@@ -9554,10 +9573,10 @@ var or = {
|
|
|
9554
9573
|
onClick: T,
|
|
9555
9574
|
size: p ? "l" : "m"
|
|
9556
9575
|
})));
|
|
9557
|
-
},
|
|
9576
|
+
}, vi = 3e4, yi = {
|
|
9558
9577
|
pause: "Pause notification",
|
|
9559
9578
|
resume: "Resume notification"
|
|
9560
|
-
},
|
|
9579
|
+
}, bi = r({ labelStrings: yi }), xi = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Yt, {
|
|
9561
9580
|
ariaLabel: t || "Close",
|
|
9562
9581
|
className: "pds-toast__close-button",
|
|
9563
9582
|
onClick: (e) => {
|
|
@@ -9565,13 +9584,13 @@ var or = {
|
|
|
9565
9584
|
},
|
|
9566
9585
|
size: "l",
|
|
9567
9586
|
tabIndex: 0
|
|
9568
|
-
}),
|
|
9587
|
+
}), Si = ({ className: t, labelStrings: n = yi, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9569
9588
|
let a = Z(["pds-toaster", t]);
|
|
9570
|
-
return /* @__PURE__ */ e.createElement(
|
|
9589
|
+
return /* @__PURE__ */ e.createElement(bi.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(le, {
|
|
9571
9590
|
newestOnTop: !0,
|
|
9572
9591
|
autoClose: !1,
|
|
9573
9592
|
className: a,
|
|
9574
|
-
closeButton:
|
|
9593
|
+
closeButton: xi,
|
|
9575
9594
|
draggable: !1,
|
|
9576
9595
|
icon: !1,
|
|
9577
9596
|
limit: r,
|
|
@@ -9580,25 +9599,25 @@ var or = {
|
|
|
9580
9599
|
role: "status",
|
|
9581
9600
|
transition: ce
|
|
9582
9601
|
}));
|
|
9583
|
-
},
|
|
9602
|
+
}, Ci = de, wi = {
|
|
9584
9603
|
info: "circleInfo",
|
|
9585
9604
|
success: "circleCheck",
|
|
9586
9605
|
warning: "triangleExclamation",
|
|
9587
9606
|
critical: "diamondExclamation"
|
|
9588
|
-
},
|
|
9607
|
+
}, Ti = {
|
|
9589
9608
|
info: "Information",
|
|
9590
9609
|
success: "Success",
|
|
9591
9610
|
warning: "Warning",
|
|
9592
9611
|
critical: "Critical",
|
|
9593
9612
|
working: "Working..."
|
|
9594
|
-
},
|
|
9613
|
+
}, Ei = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ti }) => {
|
|
9595
9614
|
let l = "pds-toast", u = {
|
|
9596
9615
|
critical: `${l}--critical`,
|
|
9597
9616
|
info: `${l}--info`,
|
|
9598
9617
|
success: `${l}--success`,
|
|
9599
9618
|
warning: `${l}--warning`,
|
|
9600
9619
|
working: `${l}--working`
|
|
9601
|
-
}, d = `${s[o]} `, { labelStrings: f } = c(
|
|
9620
|
+
}, d = `${s[o]} `, { labelStrings: f } = c(bi), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
9602
9621
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9603
9622
|
className: Z([
|
|
9604
9623
|
l,
|
|
@@ -9608,23 +9627,23 @@ var or = {
|
|
|
9608
9627
|
id: i
|
|
9609
9628
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Lt, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9610
9629
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9611
|
-
iconName:
|
|
9630
|
+
iconName: wi[o],
|
|
9612
9631
|
size: "l"
|
|
9613
9632
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9614
9633
|
"aria-label": p ? f.resume : f.pause,
|
|
9615
9634
|
className: `${l}__pause-button`,
|
|
9616
9635
|
onClick: p ? () => {
|
|
9617
|
-
m(!1),
|
|
9636
|
+
m(!1), Ci.play({ id: a });
|
|
9618
9637
|
} : () => {
|
|
9619
|
-
m(!0),
|
|
9638
|
+
m(!0), Ci.pause({ id: a });
|
|
9620
9639
|
},
|
|
9621
9640
|
type: "button"
|
|
9622
9641
|
}, /* @__PURE__ */ e.createElement(Q, { iconName: p ? "play" : "pause" })));
|
|
9623
|
-
},
|
|
9642
|
+
}, Di = /* @__PURE__ */ function(e) {
|
|
9624
9643
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9625
|
-
}({}),
|
|
9644
|
+
}({}), Oi = () => [
|
|
9626
9645
|
(t, n, r = {}) => {
|
|
9627
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
9646
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(vi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Ei, {
|
|
9628
9647
|
autoCloseDuration: a || void 0,
|
|
9629
9648
|
toastId: i,
|
|
9630
9649
|
type: t
|
|
@@ -9649,7 +9668,7 @@ var or = {
|
|
|
9649
9668
|
enter: "pds-toast--bounceInPlace",
|
|
9650
9669
|
exit: "pds-toast--slideOut"
|
|
9651
9670
|
})
|
|
9652
|
-
],
|
|
9671
|
+
], ki = ({ 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, ..._ }) => {
|
|
9653
9672
|
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();
|
|
9654
9673
|
l(() => {
|
|
9655
9674
|
c ? E(!0) : O(!1);
|
|
@@ -9714,7 +9733,7 @@ var or = {
|
|
|
9714
9733
|
onClick: M,
|
|
9715
9734
|
size: "m"
|
|
9716
9735
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
9717
|
-
},
|
|
9736
|
+
}, Ai = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
|
|
9718
9737
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = vt();
|
|
9719
9738
|
l(() => {
|
|
9720
9739
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -9779,7 +9798,7 @@ var or = {
|
|
|
9779
9798
|
}),
|
|
9780
9799
|
zIndex: 9999
|
|
9781
9800
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
9782
|
-
},
|
|
9801
|
+
}, ji = ({ 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 }) => {
|
|
9783
9802
|
let m = Ie(n), g = m.__unslotted, _ = m.footer, b = "pds-modal", x = d === "m" ? null : `${b}--${d}`, S = a ? {
|
|
9784
9803
|
maxHeight: a,
|
|
9785
9804
|
paddingInlineEnd: "1rem",
|
|
@@ -9855,27 +9874,27 @@ var or = {
|
|
|
9855
9874
|
className: `${b}__content`,
|
|
9856
9875
|
style: S
|
|
9857
9876
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${b}__footer` }, _)))));
|
|
9858
|
-
},
|
|
9877
|
+
}, Mi = (e, t) => {
|
|
9859
9878
|
let n = t - e + 1;
|
|
9860
9879
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
9861
|
-
},
|
|
9880
|
+
}, Ni = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
9862
9881
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
9863
|
-
if (a >= i) return
|
|
9882
|
+
if (a >= i) return Mi(1, i);
|
|
9864
9883
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
9865
9884
|
if (!l && u) return [
|
|
9866
|
-
...
|
|
9885
|
+
...Mi(1, 3 + 2 * e),
|
|
9867
9886
|
"...",
|
|
9868
9887
|
i
|
|
9869
9888
|
];
|
|
9870
9889
|
if (l && !u) return [
|
|
9871
9890
|
1,
|
|
9872
9891
|
"...",
|
|
9873
|
-
...
|
|
9892
|
+
...Mi(i - (3 + 2 * e) + 1, i)
|
|
9874
9893
|
];
|
|
9875
9894
|
if (l && u) return [
|
|
9876
9895
|
1,
|
|
9877
9896
|
"...",
|
|
9878
|
-
...
|
|
9897
|
+
...Mi(s, c),
|
|
9879
9898
|
"...",
|
|
9880
9899
|
o
|
|
9881
9900
|
];
|
|
@@ -9884,11 +9903,11 @@ var or = {
|
|
|
9884
9903
|
n,
|
|
9885
9904
|
e,
|
|
9886
9905
|
t
|
|
9887
|
-
]),
|
|
9906
|
+
]), Pi = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
9888
9907
|
previous: "Go to previous page",
|
|
9889
9908
|
next: "Go to next page"
|
|
9890
9909
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
9891
|
-
let f =
|
|
9910
|
+
let f = Ni({
|
|
9892
9911
|
currentPage: r,
|
|
9893
9912
|
totalItemCount: u,
|
|
9894
9913
|
bufferCount: t,
|
|
@@ -9942,7 +9961,7 @@ var or = {
|
|
|
9942
9961
|
size: "m"
|
|
9943
9962
|
}))
|
|
9944
9963
|
}))));
|
|
9945
|
-
},
|
|
9964
|
+
}, Fi = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
9946
9965
|
next: "Go to next page",
|
|
9947
9966
|
of: "of",
|
|
9948
9967
|
pageSelect: "Go to page",
|
|
@@ -9995,7 +10014,7 @@ var or = {
|
|
|
9995
10014
|
size: "m"
|
|
9996
10015
|
}))
|
|
9997
10016
|
})));
|
|
9998
|
-
},
|
|
10017
|
+
}, Ii = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
9999
10018
|
next: "Next",
|
|
10000
10019
|
previous: "Previous"
|
|
10001
10020
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10024,7 +10043,7 @@ var or = {
|
|
|
10024
10043
|
iconName: "angleRight",
|
|
10025
10044
|
size: "m"
|
|
10026
10045
|
}))));
|
|
10027
|
-
},
|
|
10046
|
+
}, Li = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10028
10047
|
let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
|
|
10029
10048
|
return l(() => {
|
|
10030
10049
|
let e = v.current;
|
|
@@ -10048,7 +10067,7 @@ var or = {
|
|
|
10048
10067
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10049
10068
|
iconName: "angleDown"
|
|
10050
10069
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10051
|
-
},
|
|
10070
|
+
}, Ri = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10052
10071
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10053
10072
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10054
10073
|
className: Z([
|
|
@@ -10058,7 +10077,7 @@ var or = {
|
|
|
10058
10077
|
]),
|
|
10059
10078
|
...i
|
|
10060
10079
|
}, t);
|
|
10061
|
-
},
|
|
10080
|
+
}, zi = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10062
10081
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10063
10082
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10064
10083
|
className: Z([
|
|
@@ -10068,7 +10087,7 @@ var or = {
|
|
|
10068
10087
|
]),
|
|
10069
10088
|
...a
|
|
10070
10089
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10071
|
-
},
|
|
10090
|
+
}, Bi = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10072
10091
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10073
10092
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10074
10093
|
className: Z([
|
|
@@ -10080,7 +10099,7 @@ var or = {
|
|
|
10080
10099
|
]),
|
|
10081
10100
|
...o
|
|
10082
10101
|
}, n);
|
|
10083
|
-
},
|
|
10102
|
+
}, Vi = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10084
10103
|
let o = "pds-panel-row", [s, c] = h(!1), l = m(null), u = m(null), d = Ie(t), f = d["items-left"], p = d["items-right"], g = d["items-below"], _ = () => {
|
|
10085
10104
|
let e = u.current, t = l.current;
|
|
10086
10105
|
if (!e || !t) return;
|
|
@@ -10116,7 +10135,7 @@ var or = {
|
|
|
10116
10135
|
opacity: "0"
|
|
10117
10136
|
}
|
|
10118
10137
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, g)));
|
|
10119
|
-
},
|
|
10138
|
+
}, Hi = /* @__PURE__ */ e.createElement("svg", {
|
|
10120
10139
|
"aria-label": "Pantheon",
|
|
10121
10140
|
fill: "none",
|
|
10122
10141
|
focusable: "false",
|
|
@@ -10179,7 +10198,7 @@ var or = {
|
|
|
10179
10198
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10180
10199
|
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",
|
|
10181
10200
|
fill: "var(--pds-color-foreground-default)"
|
|
10182
|
-
})),
|
|
10201
|
+
})), Ui = /* @__PURE__ */ e.createElement("svg", {
|
|
10183
10202
|
"aria-label": "Pantheon",
|
|
10184
10203
|
fill: "none",
|
|
10185
10204
|
focusable: "false",
|
|
@@ -10215,7 +10234,7 @@ var or = {
|
|
|
10215
10234
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10216
10235
|
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",
|
|
10217
10236
|
fill: "var(--pds-color-foreground-default)"
|
|
10218
|
-
})),
|
|
10237
|
+
})), Wi = /* @__PURE__ */ e.createElement("svg", {
|
|
10219
10238
|
"aria-label": "Pantheon",
|
|
10220
10239
|
fill: "none",
|
|
10221
10240
|
focusable: "false",
|
|
@@ -10251,17 +10270,17 @@ var or = {
|
|
|
10251
10270
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10252
10271
|
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",
|
|
10253
10272
|
fill: "var(--pds-color-foreground-default)"
|
|
10254
|
-
})),
|
|
10273
|
+
})), Gi = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10255
10274
|
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;
|
|
10256
10275
|
switch (r) {
|
|
10257
10276
|
case "full":
|
|
10258
|
-
f =
|
|
10277
|
+
f = Hi;
|
|
10259
10278
|
break;
|
|
10260
10279
|
case "icon":
|
|
10261
|
-
f =
|
|
10280
|
+
f = Ui;
|
|
10262
10281
|
break;
|
|
10263
10282
|
case "wordmark":
|
|
10264
|
-
f =
|
|
10283
|
+
f = Wi;
|
|
10265
10284
|
break;
|
|
10266
10285
|
}
|
|
10267
10286
|
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, {
|
|
@@ -10278,7 +10297,7 @@ var or = {
|
|
|
10278
10297
|
]),
|
|
10279
10298
|
...s
|
|
10280
10299
|
}, i ? h : f);
|
|
10281
|
-
},
|
|
10300
|
+
}, Ki = 8, qi = 14, Ji = ({ 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 }) => {
|
|
10282
10301
|
let [j, M] = h(d);
|
|
10283
10302
|
l(() => {
|
|
10284
10303
|
M(d);
|
|
@@ -10304,12 +10323,12 @@ var or = {
|
|
|
10304
10323
|
O(V),
|
|
10305
10324
|
k(V),
|
|
10306
10325
|
I(V)
|
|
10307
|
-
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J +
|
|
10326
|
+
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + qi / 2, ne = ee + Ki, { isMounted: re } = L(V, {
|
|
10308
10327
|
initial: { transform: "scale(0)" },
|
|
10309
10328
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10310
|
-
top: `${te}px calc(100% + ${
|
|
10329
|
+
top: `${te}px calc(100% + ${Ki}px)`,
|
|
10311
10330
|
bottom: `${te}px -8px`,
|
|
10312
|
-
left: `calc(100% + ${
|
|
10331
|
+
left: `calc(100% + ${Ki}px) ${ne}px`,
|
|
10313
10332
|
right: `-8px ${ne}px`
|
|
10314
10333
|
}[e] })
|
|
10315
10334
|
});
|
|
@@ -10341,23 +10360,23 @@ var or = {
|
|
|
10341
10360
|
className: `${F}__arrow`,
|
|
10342
10361
|
context: V,
|
|
10343
10362
|
fill: "var(--pds-color-surface-default)",
|
|
10344
|
-
height:
|
|
10363
|
+
height: Ki,
|
|
10345
10364
|
stroke: "var(--pds-color-popover-border)",
|
|
10346
10365
|
strokeWidth: 1,
|
|
10347
10366
|
tipRadius: 0,
|
|
10348
|
-
width:
|
|
10367
|
+
width: qi
|
|
10349
10368
|
}), /* @__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, {
|
|
10350
10369
|
ariaLabel: r,
|
|
10351
10370
|
onClick: G,
|
|
10352
10371
|
size: "s"
|
|
10353
10372
|
})))))));
|
|
10354
|
-
},
|
|
10373
|
+
}, Yi = {
|
|
10355
10374
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10356
10375
|
info: "--pds-color-status-info-fill",
|
|
10357
10376
|
success: "--pds-color-status-success-fill",
|
|
10358
10377
|
warning: "--pds-color-status-warning-fill",
|
|
10359
10378
|
critical: "--pds-color-status-critical-fill"
|
|
10360
|
-
},
|
|
10379
|
+
}, Xi = ({ className: t, colorBreakpoints: n = [{
|
|
10361
10380
|
colorType: "info",
|
|
10362
10381
|
percentage: 0
|
|
10363
10382
|
}, {
|
|
@@ -10378,7 +10397,7 @@ var or = {
|
|
|
10378
10397
|
id: m
|
|
10379
10398
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10380
10399
|
className: `${h}__percentage`,
|
|
10381
|
-
style: { color: `hsl(from var(${
|
|
10400
|
+
style: { color: `hsl(from var(${Yi[y]}) h s calc(l - 7))` }
|
|
10382
10401
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10383
10402
|
"aria-labelledby": m,
|
|
10384
10403
|
"aria-valuenow": v,
|
|
@@ -10388,58 +10407,75 @@ var or = {
|
|
|
10388
10407
|
className: `${h}__bar`,
|
|
10389
10408
|
style: {
|
|
10390
10409
|
width: `${v}%`,
|
|
10391
|
-
backgroundColor: `var(${
|
|
10410
|
+
backgroundColor: `var(${Yi[y]})`
|
|
10392
10411
|
}
|
|
10393
10412
|
}))), S && b);
|
|
10394
|
-
},
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10413
|
+
}, Zi = {
|
|
10414
|
+
neutral: "--pds-color-status-neutral-indicator",
|
|
10415
|
+
info: "--pds-color-status-info-fill",
|
|
10416
|
+
success: "--pds-color-status-success-fill",
|
|
10417
|
+
warning: "--pds-color-status-warning-fill",
|
|
10418
|
+
critical: "--pds-color-status-critical-fill"
|
|
10419
|
+
}, Qi = ({ className: t, colorBreakpoints: n = [{
|
|
10420
|
+
colorType: "info",
|
|
10421
|
+
percentage: 0
|
|
10422
|
+
}, {
|
|
10423
|
+
colorType: "success",
|
|
10424
|
+
percentage: 100
|
|
10425
|
+
}], id: r, innerLabel: i, label: a, percentage: o, showLabel: s = !1, showPercentage: c = !1, size: l = "m", ...d }) => {
|
|
10426
|
+
let f = u(), p = r ?? f, m = "pds-progress-ring", h = s ? `${m}__label` : "visually-hidden", g = Z([`${m}__loading-text`, l === "m" ? null : `${m}__loading-text--${l}`]), _ = (e) => e * 16, v = _(parseFloat(Ye)), y = 7;
|
|
10427
|
+
l === "s" && (v = _(parseFloat(Xe)), y /= 1.25), l === "l" && (v = _(parseFloat(Je)), y *= 1.25);
|
|
10428
|
+
let b = v / 2 - y / 2, x = 2 * Math.PI * b, S = x - x * o / 100, C = "neutral";
|
|
10429
|
+
n.forEach((e) => {
|
|
10430
|
+
o >= e.percentage && (C = e.colorType);
|
|
10431
|
+
});
|
|
10432
|
+
let w;
|
|
10433
|
+
return w = i || (c ? `${o}%` : ""), /* @__PURE__ */ e.createElement("div", {
|
|
10434
|
+
className: Z([m, t]),
|
|
10400
10435
|
style: {
|
|
10401
|
-
"--ring-stroke-dashoffset":
|
|
10402
|
-
"--ring-stroke-dasharray":
|
|
10436
|
+
"--ring-stroke-dashoffset": S,
|
|
10437
|
+
"--ring-stroke-dasharray": x
|
|
10403
10438
|
},
|
|
10404
|
-
...
|
|
10439
|
+
...d
|
|
10405
10440
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
10406
|
-
className:
|
|
10407
|
-
id:
|
|
10408
|
-
},
|
|
10409
|
-
"aria-labelledby":
|
|
10441
|
+
className: h,
|
|
10442
|
+
id: p
|
|
10443
|
+
}, a), /* @__PURE__ */ e.createElement("div", {
|
|
10444
|
+
"aria-labelledby": p,
|
|
10410
10445
|
"aria-valuemax": 100,
|
|
10411
10446
|
"aria-valuemin": 0,
|
|
10412
|
-
"aria-valuenow":
|
|
10413
|
-
className: `${
|
|
10447
|
+
"aria-valuenow": o,
|
|
10448
|
+
className: `${m}__ring`,
|
|
10414
10449
|
role: "progressbar"
|
|
10415
10450
|
}, /* @__PURE__ */ e.createElement("svg", {
|
|
10416
|
-
height:
|
|
10417
|
-
viewBox: `0 0 ${
|
|
10418
|
-
width:
|
|
10451
|
+
height: v,
|
|
10452
|
+
viewBox: `0 0 ${v} ${v}`,
|
|
10453
|
+
width: v
|
|
10419
10454
|
}, /* @__PURE__ */ e.createElement("circle", {
|
|
10420
|
-
className: `${
|
|
10421
|
-
cx:
|
|
10422
|
-
cy:
|
|
10423
|
-
r:
|
|
10424
|
-
strokeWidth:
|
|
10455
|
+
className: `${m}__track`,
|
|
10456
|
+
cx: v / 2,
|
|
10457
|
+
cy: v / 2,
|
|
10458
|
+
r: b,
|
|
10459
|
+
strokeWidth: y
|
|
10425
10460
|
}), /* @__PURE__ */ e.createElement("circle", {
|
|
10426
|
-
className: `${
|
|
10427
|
-
cx:
|
|
10428
|
-
cy:
|
|
10429
|
-
r:
|
|
10430
|
-
strokeDasharray:
|
|
10431
|
-
strokeDashoffset:
|
|
10432
|
-
strokeWidth:
|
|
10433
|
-
|
|
10461
|
+
className: `${m}__progress`,
|
|
10462
|
+
cx: v / 2,
|
|
10463
|
+
cy: v / 2,
|
|
10464
|
+
r: b,
|
|
10465
|
+
strokeDasharray: x,
|
|
10466
|
+
strokeDashoffset: S,
|
|
10467
|
+
strokeWidth: y,
|
|
10468
|
+
style: { stroke: `var(${Zi[C]})` },
|
|
10469
|
+
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10434
10470
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10435
10471
|
alignmentBaseline: "middle",
|
|
10436
|
-
className:
|
|
10472
|
+
className: g,
|
|
10437
10473
|
dominantBaseline: "middle",
|
|
10438
10474
|
textAnchor: "middle",
|
|
10439
10475
|
x: "50%",
|
|
10440
10476
|
y: "51%"
|
|
10441
|
-
},
|
|
10442
|
-
},
|
|
10477
|
+
}, w))));
|
|
10478
|
+
}, $i = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10443
10479
|
"privacy",
|
|
10444
10480
|
"dataSubjectRequest",
|
|
10445
10481
|
"cookiePolicy",
|
|
@@ -10457,7 +10493,7 @@ var or = {
|
|
|
10457
10493
|
]),
|
|
10458
10494
|
...c
|
|
10459
10495
|
}, /* @__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"))));
|
|
10460
|
-
},
|
|
10496
|
+
}, ea = ({ className: t, option: n, ...r }) => {
|
|
10461
10497
|
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;
|
|
10462
10498
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10463
10499
|
let d = /* @__PURE__ */ e.createElement(Rt, {
|
|
@@ -10480,7 +10516,7 @@ var or = {
|
|
|
10480
10516
|
className: `${i}__status`,
|
|
10481
10517
|
style: { pointerEvents: "none" }
|
|
10482
10518
|
}, d));
|
|
10483
|
-
},
|
|
10519
|
+
}, ta = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10484
10520
|
clearButton: "Clear input text",
|
|
10485
10521
|
inputInstructions: "Type to search options"
|
|
10486
10522
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10492,7 +10528,7 @@ var or = {
|
|
|
10492
10528
|
id: n,
|
|
10493
10529
|
label: i,
|
|
10494
10530
|
value: r ?? i,
|
|
10495
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10531
|
+
optionDisplay: /* @__PURE__ */ e.createElement(ea, { option: t }),
|
|
10496
10532
|
siteData: t
|
|
10497
10533
|
};
|
|
10498
10534
|
});
|
|
@@ -10521,7 +10557,7 @@ var or = {
|
|
|
10521
10557
|
};
|
|
10522
10558
|
//#endregion
|
|
10523
10559
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10524
|
-
function
|
|
10560
|
+
function na(e, t, n = null, r = 0, i = []) {
|
|
10525
10561
|
return e.reduce((e, a, o) => {
|
|
10526
10562
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10527
10563
|
return e.push({
|
|
@@ -10533,10 +10569,10 @@ function ea(e, t, n = null, r = 0, i = []) {
|
|
|
10533
10569
|
index: o,
|
|
10534
10570
|
isExpanded: c,
|
|
10535
10571
|
parentId: n
|
|
10536
|
-
}), s && c && a.children && e.push(...
|
|
10572
|
+
}), s && c && a.children && e.push(...na(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10537
10573
|
}, []);
|
|
10538
10574
|
}
|
|
10539
|
-
function
|
|
10575
|
+
function ra(e) {
|
|
10540
10576
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10541
10577
|
for (let i of e) {
|
|
10542
10578
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10549,28 +10585,28 @@ function ta(e) {
|
|
|
10549
10585
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10550
10586
|
}
|
|
10551
10587
|
}
|
|
10552
|
-
return
|
|
10588
|
+
return ia(r);
|
|
10553
10589
|
}
|
|
10554
|
-
function
|
|
10590
|
+
function ia(e) {
|
|
10555
10591
|
return e.map((e) => {
|
|
10556
10592
|
if (e.children?.length) return {
|
|
10557
10593
|
...e,
|
|
10558
|
-
children:
|
|
10594
|
+
children: ia(e.children)
|
|
10559
10595
|
};
|
|
10560
10596
|
let { children: t, ...n } = e;
|
|
10561
10597
|
return n;
|
|
10562
10598
|
});
|
|
10563
10599
|
}
|
|
10564
|
-
function
|
|
10600
|
+
function aa(e, t) {
|
|
10565
10601
|
for (let n of e) {
|
|
10566
10602
|
if (n.id === t) return n;
|
|
10567
10603
|
if (n.children) {
|
|
10568
|
-
let e =
|
|
10604
|
+
let e = aa(n.children, t);
|
|
10569
10605
|
if (e) return e;
|
|
10570
10606
|
}
|
|
10571
10607
|
}
|
|
10572
10608
|
}
|
|
10573
|
-
function
|
|
10609
|
+
function oa(e, t, n, r, i, a, o) {
|
|
10574
10610
|
let s = e.findIndex((e) => e.id === n);
|
|
10575
10611
|
if (s === -1) return 0;
|
|
10576
10612
|
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;
|
|
@@ -10578,7 +10614,7 @@ function ia(e, t, n, r, i, a, o) {
|
|
|
10578
10614
|
}
|
|
10579
10615
|
//#endregion
|
|
10580
10616
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
10581
|
-
var
|
|
10617
|
+
var sa = ({ children: t, className: n, columns: r, ...i }) => {
|
|
10582
10618
|
if (!r && !t) return null;
|
|
10583
10619
|
let a = r ? {
|
|
10584
10620
|
display: "grid",
|
|
@@ -10599,13 +10635,13 @@ var aa = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
10599
10635
|
};
|
|
10600
10636
|
//#endregion
|
|
10601
10637
|
//#region src/components/SortableList/useSortableTree.ts
|
|
10602
|
-
function
|
|
10638
|
+
function ca({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
10603
10639
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
10604
10640
|
t && !d.current && (u.current = {
|
|
10605
10641
|
items: i ? n : a,
|
|
10606
10642
|
expandedIds: c
|
|
10607
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
10608
|
-
let f = i ? n : a, g = p(() =>
|
|
10643
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && ua("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
10644
|
+
let f = i ? n : a, g = p(() => na(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
10609
10645
|
l((t) => {
|
|
10610
10646
|
let n = new Set(t);
|
|
10611
10647
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -10623,7 +10659,7 @@ function oa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10623
10659
|
}, []),
|
|
10624
10660
|
flatNodes: g,
|
|
10625
10661
|
handleReorder: s((e) => {
|
|
10626
|
-
let t =
|
|
10662
|
+
let t = ra(e);
|
|
10627
10663
|
i || o(t), r?.(t);
|
|
10628
10664
|
}, [i, r]),
|
|
10629
10665
|
resetToSnapshot: s(() => {
|
|
@@ -10635,24 +10671,24 @@ function oa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10635
10671
|
toggleExpand: v
|
|
10636
10672
|
};
|
|
10637
10673
|
}
|
|
10638
|
-
var
|
|
10639
|
-
function
|
|
10640
|
-
|
|
10674
|
+
var la = /* @__PURE__ */ new Set();
|
|
10675
|
+
function ua(e) {
|
|
10676
|
+
la.has(e) || (la.add(e), console.warn(e));
|
|
10641
10677
|
}
|
|
10642
10678
|
//#endregion
|
|
10643
10679
|
//#region src/components/SortableList/SortableList.tsx
|
|
10644
|
-
var
|
|
10680
|
+
var da = 24, fa = { droppable: { strategy: _e.Always } }, pa = 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) {
|
|
10645
10681
|
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) => {
|
|
10646
10682
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
10647
10683
|
e.preventDefault();
|
|
10648
10684
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
10649
10685
|
return B.current = i, z(i), {
|
|
10650
|
-
x: t.currentCoordinates.x + a *
|
|
10686
|
+
x: t.currentCoordinates.x + a * da,
|
|
10651
10687
|
y: t.currentCoordinates.y
|
|
10652
10688
|
};
|
|
10653
10689
|
}
|
|
10654
10690
|
return Ce(e, t);
|
|
10655
|
-
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } =
|
|
10691
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = ca({
|
|
10656
10692
|
defaultItems: a,
|
|
10657
10693
|
isDragEnabled: G,
|
|
10658
10694
|
items: g,
|
|
@@ -10679,9 +10715,9 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10679
10715
|
X,
|
|
10680
10716
|
Y,
|
|
10681
10717
|
j
|
|
10682
|
-
]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ?
|
|
10718
|
+
]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ? aa(K, String(T)) ?? null : null, [T, K]), de = p(() => {
|
|
10683
10719
|
let e = le?.depth ?? 0;
|
|
10684
|
-
return !T || !j || O || _ === 0 ? e :
|
|
10720
|
+
return !T || !j || O || _ === 0 ? e : oa(J, String(T), String(j), V * da, da, _);
|
|
10685
10721
|
}, [
|
|
10686
10722
|
T,
|
|
10687
10723
|
le,
|
|
@@ -10693,7 +10729,7 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10693
10729
|
]), fe = p(() => {
|
|
10694
10730
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
10695
10731
|
let e = J.findIndex((e) => e.id === T);
|
|
10696
|
-
return e === -1 ? null :
|
|
10732
|
+
return e === -1 ? null : ma(J, e, de);
|
|
10697
10733
|
}, [
|
|
10698
10734
|
T,
|
|
10699
10735
|
J,
|
|
@@ -10739,19 +10775,19 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10739
10775
|
}, [J, Y]), Ee = s((e) => {
|
|
10740
10776
|
let t = e.delta.x;
|
|
10741
10777
|
if (P.current = t, A.current || _ === 0) return;
|
|
10742
|
-
let n = Math.floor(t /
|
|
10743
|
-
(n > r || n < r && t < r *
|
|
10778
|
+
let n = Math.floor(t / da), r = U.current;
|
|
10779
|
+
(n > r || n < r && t < r * da - da * .4) && (U.current = n, H(n));
|
|
10744
10780
|
}, [_]), De = s((e) => {
|
|
10745
10781
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
10746
10782
|
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);
|
|
10747
|
-
let o = J.findIndex((e) => e.id === t.id), s = r ? i *
|
|
10783
|
+
let o = J.findIndex((e) => e.id === t.id), s = r ? i * da : a * da, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
10748
10784
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
10749
10785
|
if (o === -1) return;
|
|
10750
10786
|
let e = J[o];
|
|
10751
10787
|
if (!e) return;
|
|
10752
|
-
let n =
|
|
10788
|
+
let n = oa(J, String(t.id), String(t.id), s, da, _);
|
|
10753
10789
|
if (n === e.depth) return;
|
|
10754
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
10790
|
+
let r = [...J], [i] = r.splice(o, 1), a = ma(r, o, n);
|
|
10755
10791
|
if (a && oe.has(a)) return;
|
|
10756
10792
|
let c = {
|
|
10757
10793
|
...i,
|
|
@@ -10773,9 +10809,9 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10773
10809
|
let e = J[u];
|
|
10774
10810
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
10775
10811
|
} else {
|
|
10776
|
-
g =
|
|
10812
|
+
g = oa(d, String(t.id), String(l), s, da, _, p.depth);
|
|
10777
10813
|
let e = d[h];
|
|
10778
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
10814
|
+
v = e && e.depth === g - 1 ? String(l) : ma(d, h, g);
|
|
10779
10815
|
}
|
|
10780
10816
|
if (v && oe.has(v)) return;
|
|
10781
10817
|
let y = {
|
|
@@ -10798,24 +10834,24 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10798
10834
|
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);
|
|
10799
10835
|
}, [q]), ke = p(() => ({
|
|
10800
10836
|
onDragStart({ active: e }) {
|
|
10801
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
10837
|
+
let t = J.find((t) => t.id === e.id), n = aa(K, String(e.id));
|
|
10802
10838
|
return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
|
|
10803
10839
|
},
|
|
10804
10840
|
onDragOver({ active: e, over: t }) {
|
|
10805
10841
|
if (!t) return;
|
|
10806
10842
|
let n = J.findIndex((e) => e.id === t.id);
|
|
10807
10843
|
if (n === -1) return;
|
|
10808
|
-
let r =
|
|
10844
|
+
let r = aa(K, String(e.id)), i = r ? c(r) : String(e.id), a = oa(J, String(e.id), String(t.id), P.current, da, _);
|
|
10809
10845
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
10810
10846
|
},
|
|
10811
10847
|
onDragEnd({ active: e, over: t }) {
|
|
10812
|
-
let n =
|
|
10848
|
+
let n = aa(K, String(e.id)), r = n ? c(n) : String(e.id);
|
|
10813
10849
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
10814
|
-
let i = J.findIndex((e) => e.id === t.id), a =
|
|
10850
|
+
let i = J.findIndex((e) => e.id === t.id), a = oa(J, String(e.id), String(t.id), P.current, da, _);
|
|
10815
10851
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
10816
10852
|
},
|
|
10817
10853
|
onDragCancel({ active: e }) {
|
|
10818
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
10854
|
+
let t = J.find((t) => t.id === e.id), n = aa(K, String(e.id));
|
|
10819
10855
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
10820
10856
|
}
|
|
10821
10857
|
}), [
|
|
@@ -10823,14 +10859,14 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10823
10859
|
J,
|
|
10824
10860
|
c,
|
|
10825
10861
|
_
|
|
10826
|
-
]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type ===
|
|
10862
|
+
]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type === sa ? e.cloneElement(t, Ae) : t);
|
|
10827
10863
|
return /* @__PURE__ */ e.createElement(me, {
|
|
10828
10864
|
accessibility: {
|
|
10829
10865
|
announcements: ke,
|
|
10830
10866
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
10831
10867
|
},
|
|
10832
10868
|
collisionDetection: _e,
|
|
10833
|
-
measuring:
|
|
10869
|
+
measuring: fa,
|
|
10834
10870
|
onDragCancel: Oe,
|
|
10835
10871
|
onDragEnd: De,
|
|
10836
10872
|
onDragMove: Ee,
|
|
@@ -10905,14 +10941,14 @@ var la = 24, ua = { droppable: { strategy: _e.Always } }, da = a(function({ chil
|
|
|
10905
10941
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
10906
10942
|
})()) : null));
|
|
10907
10943
|
});
|
|
10908
|
-
function
|
|
10944
|
+
function ma(e, t, n) {
|
|
10909
10945
|
if (n === 0) return null;
|
|
10910
10946
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
10911
10947
|
return null;
|
|
10912
10948
|
}
|
|
10913
10949
|
//#endregion
|
|
10914
10950
|
//#region src/components/SortableList/SortableRow.tsx
|
|
10915
|
-
var
|
|
10951
|
+
var ha = ({ 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 }) => {
|
|
10916
10952
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = we({
|
|
10917
10953
|
attributes: {
|
|
10918
10954
|
role: "listitem",
|
|
@@ -10967,7 +11003,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
10967
11003
|
key: t.id,
|
|
10968
11004
|
className: `${w}__cell`
|
|
10969
11005
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
10970
|
-
},
|
|
11006
|
+
}, ga = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
10971
11007
|
let l = {
|
|
10972
11008
|
checkForUpdates: "Check for updates",
|
|
10973
11009
|
checking: "Checking...",
|
|
@@ -11014,7 +11050,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11014
11050
|
triggerIconColor: "default",
|
|
11015
11051
|
triggerIconSize: "s"
|
|
11016
11052
|
}), t === "left" && g));
|
|
11017
|
-
},
|
|
11053
|
+
}, _a = ({ className: t, label: n = null, size: r = "s", type: i = "neutral", ...a }) => {
|
|
11018
11054
|
let o = "pds-status-indicator", s = `${o}--${i}`, c = r === "s" ? null : `${o}--${r}`;
|
|
11019
11055
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11020
11056
|
className: Z([
|
|
@@ -11032,7 +11068,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11032
11068
|
className: `${o}__icon`,
|
|
11033
11069
|
role: "img"
|
|
11034
11070
|
}), n && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, n));
|
|
11035
|
-
},
|
|
11071
|
+
}, va = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11036
11072
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11037
11073
|
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`;
|
|
11038
11074
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11050,7 +11086,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11050
11086
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11051
11087
|
...a
|
|
11052
11088
|
}, l);
|
|
11053
|
-
},
|
|
11089
|
+
}, ya = ({ className: t, steps: n, translatableLabels: r = {
|
|
11054
11090
|
step: "Step",
|
|
11055
11091
|
completed: "completed",
|
|
11056
11092
|
hasError: "has an error",
|
|
@@ -11114,7 +11150,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11114
11150
|
key: t.id,
|
|
11115
11151
|
className: `${o}__step`,
|
|
11116
11152
|
id: `${t.id}--mobile`
|
|
11117
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11153
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Qi, {
|
|
11118
11154
|
innerLabel: n,
|
|
11119
11155
|
label: "Step progress",
|
|
11120
11156
|
percentage: i,
|
|
@@ -11139,7 +11175,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11139
11175
|
"data-steps": d,
|
|
11140
11176
|
...i
|
|
11141
11177
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11142
|
-
},
|
|
11178
|
+
}, ba = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11143
11179
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11144
11180
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11145
11181
|
className: Z([...p]),
|
|
@@ -11165,14 +11201,14 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11165
11201
|
size: "s",
|
|
11166
11202
|
variant: "highlight"
|
|
11167
11203
|
})))));
|
|
11168
|
-
},
|
|
11204
|
+
}, xa = ({ className: t, labelStrings: n = {
|
|
11169
11205
|
step: "Step",
|
|
11170
11206
|
completed: "completed",
|
|
11171
11207
|
hasError: "has an error"
|
|
11172
11208
|
}, steps: r, ...i }) => {
|
|
11173
11209
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11174
11210
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11175
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11211
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ba, {
|
|
11176
11212
|
key: `s${i}`,
|
|
11177
11213
|
_isFirstStep: c,
|
|
11178
11214
|
"aria-current": a ? "step" : null,
|
|
@@ -11193,7 +11229,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11193
11229
|
className: Z([a, t ?? ""]),
|
|
11194
11230
|
...i
|
|
11195
11231
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11196
|
-
},
|
|
11232
|
+
}, Sa = ({ 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 }) => {
|
|
11197
11233
|
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({
|
|
11198
11234
|
key: a ?? "",
|
|
11199
11235
|
order: a === void 0 ? "asc" : o
|
|
@@ -11343,7 +11379,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11343
11379
|
showLabel: !1,
|
|
11344
11380
|
size: "s",
|
|
11345
11381
|
value: String(pe)
|
|
11346
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11382
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Fi, {
|
|
11347
11383
|
currentPage: ne ? i ?? 1 : oe,
|
|
11348
11384
|
itemsPerPage: pe,
|
|
11349
11385
|
onPageChange: ne ? A : X,
|
|
@@ -11383,8 +11419,8 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11383
11419
|
size: "s",
|
|
11384
11420
|
variant: "standard"
|
|
11385
11421
|
}))))));
|
|
11386
|
-
return I ? /* @__PURE__ */ e.createElement(
|
|
11387
|
-
},
|
|
11422
|
+
return I ? /* @__PURE__ */ e.createElement(zi, { padding: "none" }, Ue) : Ue;
|
|
11423
|
+
}, Ca = [
|
|
11388
11424
|
" ",
|
|
11389
11425
|
"/",
|
|
11390
11426
|
".",
|
|
@@ -11402,7 +11438,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11402
11438
|
"=",
|
|
11403
11439
|
"|",
|
|
11404
11440
|
"~"
|
|
11405
|
-
],
|
|
11441
|
+
], wa = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ta = (e) => {
|
|
11406
11442
|
let t = [];
|
|
11407
11443
|
return e.forEach((e) => {
|
|
11408
11444
|
let { id: n, innerText: r } = e;
|
|
@@ -11415,18 +11451,18 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11415
11451
|
title: r
|
|
11416
11452
|
});
|
|
11417
11453
|
}), t;
|
|
11418
|
-
},
|
|
11454
|
+
}, Ea = (e, t, n) => {
|
|
11419
11455
|
let [r, i] = h([]);
|
|
11420
11456
|
return l(() => {
|
|
11421
11457
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11422
11458
|
let e = Array.from(document.querySelectorAll(r));
|
|
11423
11459
|
e.forEach((e) => {
|
|
11424
|
-
|
|
11425
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11460
|
+
Ca.forEach((t) => {
|
|
11461
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(wa(t), "g"), "-"));
|
|
11426
11462
|
});
|
|
11427
11463
|
}), e.forEach((e, t) => {
|
|
11428
11464
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11429
|
-
}), i(
|
|
11465
|
+
}), i(Ta(e));
|
|
11430
11466
|
};
|
|
11431
11467
|
a();
|
|
11432
11468
|
let o = document.getElementById(e);
|
|
@@ -11442,7 +11478,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11442
11478
|
t,
|
|
11443
11479
|
n
|
|
11444
11480
|
]), { nestedHeadings: r };
|
|
11445
|
-
},
|
|
11481
|
+
}, Da = (e, t) => {
|
|
11446
11482
|
let [n, r] = h(void 0), i = m({});
|
|
11447
11483
|
return l(() => {
|
|
11448
11484
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11461,7 +11497,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11461
11497
|
o.disconnect(), r(void 0);
|
|
11462
11498
|
};
|
|
11463
11499
|
}, [e, t]), n;
|
|
11464
|
-
},
|
|
11500
|
+
}, Oa = ({ 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", {
|
|
11465
11501
|
key: r.id,
|
|
11466
11502
|
className: `${n}__list-item`
|
|
11467
11503
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11477,8 +11513,8 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11477
11513
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11478
11514
|
href: `#${r.id}`,
|
|
11479
11515
|
onClick: (e) => i(e, r.id)
|
|
11480
|
-
}, r.title))))))),
|
|
11481
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11516
|
+
}, r.title))))))), ka = ({ 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 }) => {
|
|
11517
|
+
let d = "pds-toc", { nestedHeadings: f } = Ea(c, o, u()), p = Da(c, o), m = (e) => {
|
|
11482
11518
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11483
11519
|
}, h = (e) => {
|
|
11484
11520
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11496,13 +11532,13 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11496
11532
|
baseClass: d,
|
|
11497
11533
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11498
11534
|
level: i
|
|
11499
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11535
|
+
}, a), /* @__PURE__ */ e.createElement(Oa, {
|
|
11500
11536
|
activeID: p,
|
|
11501
11537
|
baseClass: d,
|
|
11502
11538
|
headings: f,
|
|
11503
11539
|
onLinkClick: g
|
|
11504
11540
|
}));
|
|
11505
|
-
},
|
|
11541
|
+
}, Aa = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11506
11542
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11507
11543
|
l(() => {
|
|
11508
11544
|
a !== void 0 && d(a);
|
|
@@ -11613,7 +11649,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11613
11649
|
className: `${c}__panel-content`,
|
|
11614
11650
|
hidden: o !== u
|
|
11615
11651
|
}, r)))));
|
|
11616
|
-
},
|
|
11652
|
+
}, ja = [
|
|
11617
11653
|
"orange",
|
|
11618
11654
|
"stone",
|
|
11619
11655
|
"gold",
|
|
@@ -11628,7 +11664,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11628
11664
|
"rose",
|
|
11629
11665
|
"red",
|
|
11630
11666
|
"silver"
|
|
11631
|
-
],
|
|
11667
|
+
], Ma = [
|
|
11632
11668
|
"orange-solid",
|
|
11633
11669
|
"teal-solid",
|
|
11634
11670
|
"indigo-solid",
|
|
@@ -11639,8 +11675,8 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11639
11675
|
"critical-solid",
|
|
11640
11676
|
"info-solid",
|
|
11641
11677
|
"discovery-solid"
|
|
11642
|
-
],
|
|
11643
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
11678
|
+
], Na = (e) => ja[parseInt(g(e), 16) % ja.length], Pa = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Fa = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
11679
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${Na(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
11644
11680
|
p((e) => !e);
|
|
11645
11681
|
}, b, x, S;
|
|
11646
11682
|
if (r && !n && o(r)) {
|
|
@@ -11662,7 +11698,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11662
11698
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
11663
11699
|
className: `${m}__label`,
|
|
11664
11700
|
title: l
|
|
11665
|
-
}, u > 0 ?
|
|
11701
|
+
}, u > 0 ? Pa(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
11666
11702
|
"aria-label": `${a}: ${l}`,
|
|
11667
11703
|
className: `${m}__remove`,
|
|
11668
11704
|
onClick: () => {
|
|
@@ -11674,11 +11710,11 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11674
11710
|
iconName: "xmark",
|
|
11675
11711
|
size: "m"
|
|
11676
11712
|
})) : null);
|
|
11677
|
-
},
|
|
11713
|
+
}, Ia = {
|
|
11678
11714
|
light: "sunBright",
|
|
11679
11715
|
dark: "moon",
|
|
11680
11716
|
system: "desktop"
|
|
11681
|
-
},
|
|
11717
|
+
}, La = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
11682
11718
|
light: "Light",
|
|
11683
11719
|
dark: "Dark",
|
|
11684
11720
|
system: "System"
|
|
@@ -11689,7 +11725,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11689
11725
|
"system"
|
|
11690
11726
|
].map((e) => ({
|
|
11691
11727
|
callback: () => i?.(e),
|
|
11692
|
-
iconName:
|
|
11728
|
+
iconName: Ia[e],
|
|
11693
11729
|
iconSize: "m",
|
|
11694
11730
|
label: r[e]
|
|
11695
11731
|
}));
|
|
@@ -11701,7 +11737,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11701
11737
|
customTrigger: /* @__PURE__ */ e.createElement(vn, {
|
|
11702
11738
|
iconOnly: !0,
|
|
11703
11739
|
"aria-label": s,
|
|
11704
|
-
iconName:
|
|
11740
|
+
iconName: Ia[a],
|
|
11705
11741
|
id: n,
|
|
11706
11742
|
label: "",
|
|
11707
11743
|
menuItems: c,
|
|
@@ -11710,7 +11746,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11710
11746
|
offsetValue: 0,
|
|
11711
11747
|
preferredPlacement: "top"
|
|
11712
11748
|
}));
|
|
11713
|
-
},
|
|
11749
|
+
}, Ra = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
11714
11750
|
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;
|
|
11715
11751
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11716
11752
|
className: Z([
|
|
@@ -11721,7 +11757,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11721
11757
|
]),
|
|
11722
11758
|
...a
|
|
11723
11759
|
}, /* @__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)));
|
|
11724
|
-
},
|
|
11760
|
+
}, za = () => {
|
|
11725
11761
|
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");
|
|
11726
11762
|
return l(() => {
|
|
11727
11763
|
if (!e) return;
|
|
@@ -11732,7 +11768,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11732
11768
|
window.removeEventListener("resize", n);
|
|
11733
11769
|
};
|
|
11734
11770
|
}, []), n;
|
|
11735
|
-
},
|
|
11771
|
+
}, Ba = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g = {
|
|
11736
11772
|
collapseSidebar: "Press [ to collapse sidebar",
|
|
11737
11773
|
drawerToggle: "Open account menu",
|
|
11738
11774
|
expandSidebar: "Press ] to expand sidebar"
|
|
@@ -11752,7 +11788,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11752
11788
|
return;
|
|
11753
11789
|
}
|
|
11754
11790
|
M(!j);
|
|
11755
|
-
}, B =
|
|
11791
|
+
}, B = za();
|
|
11756
11792
|
l(() => {
|
|
11757
11793
|
B === "sm" && !j ? (R.current = !0, S ? S() : M(!0)) : B !== "sm" && R.current && (R.current = !1, S ? S() : M(!1));
|
|
11758
11794
|
}, [B]);
|
|
@@ -11850,7 +11886,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11850
11886
|
n ?? ""
|
|
11851
11887
|
]),
|
|
11852
11888
|
...A
|
|
11853
|
-
}, 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(
|
|
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(ki, {
|
|
11854
11890
|
...a,
|
|
11855
11891
|
isOpen: u,
|
|
11856
11892
|
placement: "left",
|
|
@@ -11858,7 +11894,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11858
11894
|
!e && u && x && x();
|
|
11859
11895
|
}
|
|
11860
11896
|
}, r));
|
|
11861
|
-
},
|
|
11897
|
+
}, Va = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
11862
11898
|
let c = "pds-docs-layout", l = {
|
|
11863
11899
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
11864
11900
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -11876,7 +11912,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11876
11912
|
},
|
|
11877
11913
|
...s
|
|
11878
11914
|
}, 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));
|
|
11879
|
-
},
|
|
11915
|
+
}, Ha = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
11880
11916
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Ie(t);
|
|
11881
11917
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11882
11918
|
className: Z([u, n ?? ""]),
|
|
@@ -11890,7 +11926,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11890
11926
|
},
|
|
11891
11927
|
...l
|
|
11892
11928
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
11893
|
-
},
|
|
11929
|
+
}, Ua = ({ children: t, className: n, ...r }) => {
|
|
11894
11930
|
let i = Ie(t), a = i.stepper, o = i.form, s = m(null), [c] = pe(s), l = c.width;
|
|
11895
11931
|
document.documentElement.style.setProperty("--stepper-layout-max-width", l + "px");
|
|
11896
11932
|
let u = "pds-stepper-layout";
|
|
@@ -11901,7 +11937,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11901
11937
|
ref: s,
|
|
11902
11938
|
className: `${u}__stepper-container`
|
|
11903
11939
|
}, a), o && /* @__PURE__ */ e.createElement("div", { className: `${u}__form-container` }, o));
|
|
11904
|
-
},
|
|
11940
|
+
}, Wa = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
11905
11941
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Ie(t), u = [
|
|
11906
11942
|
l["first-item"],
|
|
11907
11943
|
l["second-item"],
|
|
@@ -11919,7 +11955,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11919
11955
|
key: n,
|
|
11920
11956
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
11921
11957
|
}, t)));
|
|
11922
|
-
},
|
|
11958
|
+
}, Ga = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
11923
11959
|
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;
|
|
11924
11960
|
switch (i) {
|
|
11925
11961
|
case "equal":
|
|
@@ -11940,7 +11976,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11940
11976
|
]),
|
|
11941
11977
|
...o
|
|
11942
11978
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
11943
|
-
},
|
|
11979
|
+
}, Ka = ({ 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 }) => {
|
|
11944
11980
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
11945
11981
|
"--pds-flex-align-content": t,
|
|
11946
11982
|
"--pds-flex-align-items": n,
|
|
@@ -11966,12 +12002,12 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11966
12002
|
},
|
|
11967
12003
|
...g
|
|
11968
12004
|
}, r);
|
|
11969
|
-
},
|
|
12005
|
+
}, qa = ({ children: t, mobileMaxWidth: n = 767 }) => (l(() => {
|
|
11970
12006
|
let e = document.documentElement, t = () => {
|
|
11971
12007
|
window.innerWidth <= n ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
11972
12008
|
};
|
|
11973
12009
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
11974
|
-
}, [n]), /* @__PURE__ */ e.createElement(_t, null, t)),
|
|
12010
|
+
}, [n]), /* @__PURE__ */ e.createElement(_t, null, t)), Ja = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
11975
12011
|
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}`;
|
|
11976
12012
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11977
12013
|
className: Z([
|
|
@@ -11985,7 +12021,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11985
12021
|
]),
|
|
11986
12022
|
...c
|
|
11987
12023
|
}, n);
|
|
11988
|
-
},
|
|
12024
|
+
}, Ya = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
11989
12025
|
let f = "pds-grid-item", p = [
|
|
11990
12026
|
l ? `${f}--sm-${l}` : null,
|
|
11991
12027
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12004,7 +12040,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12004
12040
|
]),
|
|
12005
12041
|
...d
|
|
12006
12042
|
}, t);
|
|
12007
|
-
},
|
|
12043
|
+
}, Xa = (e) => {
|
|
12008
12044
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12009
12045
|
return l(() => {
|
|
12010
12046
|
if (!t) return;
|
|
@@ -12013,7 +12049,7 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12013
12049
|
};
|
|
12014
12050
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12015
12051
|
}, [e]), n;
|
|
12016
|
-
},
|
|
12052
|
+
}, Za = () => {
|
|
12017
12053
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12018
12054
|
return l(() => {
|
|
12019
12055
|
if (!e) return;
|
|
@@ -12027,6 +12063,6 @@ var pa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12027
12063
|
}, []), t;
|
|
12028
12064
|
};
|
|
12029
12065
|
//#endregion
|
|
12030
|
-
export { On as ActionCard,
|
|
12066
|
+
export { On as ActionCard, Ba 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, Jr 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, Xr as Container, Er as Datepicker, Va as DocsLayout, ki as Drawer, en as Dropdown, Yr as DropdownMenu, Li as ExpansionPanel, Ri as ExpansionPanelGroup, pr as FileDiff, Dr as FileUpload, ln as FilterButton, Ka as FlexContainer, Ai as FullScreenOverlay, qa as GlobalWrapper, Ja as Grid, Ya 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, ji as Modal, Zr as Navbar, Pi as Pagination, Fi as PaginationCompact, Ii as PaginationMini, zi as Panel, Bi as PanelList, Vi as PanelRow, Gi as PantheonLogo, hr as PaymentIcon, zr as Picture, nr as PieChart, Sn as PlatformIcon, Ji as Popover, Xi as ProgressBar, Qi 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, Ha as SidebarLayout, $i as SiteFooter, ri as SiteMenu, ea as SiteOptionDisplay, ta as SiteSearch, _n as SiteTypeIcon, gn as SiteTypeLabel, Jn as Skeleton, Rr as Skiplink, pa as SortableList, sa as SortableListHeader, ha as SortableRow, Lt as Spinner, bn as SplitButton, Rt as StatusBadge, ga as StatusChecker, _a as StatusIndicator, dn as StatusTypeLabels, va as StepList, ya as Stepper, Ua as StepperLayout, Ar as Switch, ai as TabMenu, Sa as Table, ka as TableOfContents, Aa as Tabs, Fa as Tag, Mr as TagsInput, zt as Tally, Fr as TextInput, Nr as Textarea, La as ThemeSwitcher, Wa as ThreeItemLayout, Ei as Toast, Di as ToastType, Si as Toaster, bi as ToasterContext, bt as Tooltip, si as TreeNav, Ga as TwoItemLayout, ci as UserMenu, Ra as UtilityBar, Tn as UtilityButton, fr as VerticalEmptyState, xa 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, ja as tagColors, Ma as tagSolidColors, za as useBreakpoint, Kt as useClipboard, Zt as useDropdown, yt as useKeyPress, Xa as useMediaQuery, Oi as useToast, Za as useWindowWidth };
|
|
12031
12067
|
|
|
12032
12068
|
//# sourceMappingURL=index.js.map
|