@pantheon-systems/pds-toolkit-react 2.0.0-alpha.57 → 2.0.0-alpha.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CodeBlock/prism-setup.d.ts +2 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/panels/PanelStack/PanelStack.d.ts +19 -0
- package/dist/css/component-css/pds-index.css +1 -1
- package/dist/css/component-css/pds-panel-stack.css +1 -0
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/pds-components.css +1 -1
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +321 -305
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2461,7 +2461,8 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2461
2461
|
w(),
|
|
2462
2462
|
D()
|
|
2463
2463
|
],
|
|
2464
|
-
whileElementsMounted: C
|
|
2464
|
+
whileElementsMounted: C,
|
|
2465
|
+
strategy: "fixed"
|
|
2465
2466
|
}), { getFloatingProps: O, getReferenceProps: k } = F([
|
|
2466
2467
|
N(b, {
|
|
2467
2468
|
restMs: 300,
|
|
@@ -2474,7 +2475,15 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2474
2475
|
M(b, { enabled: !i }),
|
|
2475
2476
|
A(b),
|
|
2476
2477
|
L(b, { role: "tooltip" })
|
|
2477
|
-
])
|
|
2478
|
+
]), { isMounted: P, styles: I } = R(b, {
|
|
2479
|
+
duration: {
|
|
2480
|
+
open: 0,
|
|
2481
|
+
close: 300
|
|
2482
|
+
},
|
|
2483
|
+
initial: { opacity: 0 },
|
|
2484
|
+
open: { opacity: 1 },
|
|
2485
|
+
close: { opacity: 0 }
|
|
2486
|
+
});
|
|
2478
2487
|
return /* @__PURE__ */ e.createElement("div", {
|
|
2479
2488
|
className: Z([_, t ?? ""]),
|
|
2480
2489
|
...f
|
|
@@ -2492,16 +2501,15 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2492
2501
|
className: `${_}__icon`,
|
|
2493
2502
|
iconName: c,
|
|
2494
2503
|
size: u
|
|
2495
|
-
})), /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
2504
|
+
})), P && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
2496
2505
|
ref: E.setFloating,
|
|
2497
2506
|
"aria-hidden": !p,
|
|
2498
2507
|
className: `${_}__container`,
|
|
2499
2508
|
style: {
|
|
2500
2509
|
...S,
|
|
2510
|
+
...I,
|
|
2501
2511
|
zIndex: d,
|
|
2502
|
-
|
|
2503
|
-
pointerEvents: p ? "auto" : "none",
|
|
2504
|
-
transition: "var(--pds-animation-transition-reveal)"
|
|
2512
|
+
pointerEvents: p ? "auto" : "none"
|
|
2505
2513
|
},
|
|
2506
2514
|
...O()
|
|
2507
2515
|
}, n)));
|
|
@@ -3019,7 +3027,8 @@ var on = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
|
|
|
3019
3027
|
left: 24
|
|
3020
3028
|
}
|
|
3021
3029
|
})), e;
|
|
3022
|
-
})()
|
|
3030
|
+
})(),
|
|
3031
|
+
strategy: "fixed"
|
|
3023
3032
|
}), { getFloatingProps: P, getItemProps: B, getReferenceProps: V } = F([
|
|
3024
3033
|
k(x, {
|
|
3025
3034
|
enabled: t,
|
|
@@ -5629,6 +5638,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5629
5638
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5630
5639
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5631
5640
|
})))(), 1);
|
|
5641
|
+
typeof globalThis < "u" && (globalThis.Prism = wr.default);
|
|
5642
|
+
var Tr = wr.default;
|
|
5632
5643
|
//#endregion
|
|
5633
5644
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5634
5645
|
Prism.languages.markup = {
|
|
@@ -6298,7 +6309,7 @@ Prism.languages.markup = {
|
|
|
6298
6309
|
})(Prism);
|
|
6299
6310
|
//#endregion
|
|
6300
6311
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6301
|
-
var
|
|
6312
|
+
var Er = {
|
|
6302
6313
|
plain: {
|
|
6303
6314
|
color: "var(--pds-color-code-block-foreground)",
|
|
6304
6315
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6374,7 +6385,7 @@ var Tr = {
|
|
|
6374
6385
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6375
6386
|
}
|
|
6376
6387
|
]
|
|
6377
|
-
},
|
|
6388
|
+
}, Dr = ({ className: t, code: n, copyButtonLabel: r = "Copy to clipboard", hasCopyButton: i, hasLineNumbers: a, hasPrompt: o, height: s, isLoading: c, language: l, loadingLineCount: u = 1, maxHeight: d, promptSymbol: f = "$", renderAsLegacy: p = !1, shouldWrap: m = !1, ...h }) => {
|
|
6378
6389
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6379
6390
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6380
6391
|
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(pr, {
|
|
@@ -6426,8 +6437,8 @@ var Tr = {
|
|
|
6426
6437
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, {
|
|
6427
6438
|
code: n,
|
|
6428
6439
|
language: l || "",
|
|
6429
|
-
prism:
|
|
6430
|
-
theme:
|
|
6440
|
+
prism: Tr,
|
|
6441
|
+
theme: Er
|
|
6431
6442
|
}, /* @__PURE__ */ e.createElement(J.Code, {
|
|
6432
6443
|
className: `${g}__code`,
|
|
6433
6444
|
tabIndex: 0
|
|
@@ -6436,11 +6447,11 @@ var Tr = {
|
|
|
6436
6447
|
clipboardText: n,
|
|
6437
6448
|
variant: "reverse"
|
|
6438
6449
|
}))));
|
|
6439
|
-
},
|
|
6450
|
+
}, Or = {
|
|
6440
6451
|
addon: "circlePlus",
|
|
6441
6452
|
included: "circleCheck",
|
|
6442
6453
|
notIncluded: "xmark"
|
|
6443
|
-
},
|
|
6454
|
+
}, kr = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6444
6455
|
addon: "Add-on",
|
|
6445
6456
|
included: "Included",
|
|
6446
6457
|
notIncluded: "Not included"
|
|
@@ -6459,10 +6470,10 @@ var Tr = {
|
|
|
6459
6470
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6460
6471
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6461
6472
|
className: `${u}__item-icon`,
|
|
6462
|
-
iconName:
|
|
6473
|
+
iconName: Or[t.type],
|
|
6463
6474
|
size: s
|
|
6464
6475
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6465
|
-
},
|
|
6476
|
+
}, Ar = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6466
6477
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6467
6478
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6468
6479
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6493,7 +6504,7 @@ var Tr = {
|
|
|
6493
6504
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6494
6505
|
...a
|
|
6495
6506
|
}, l);
|
|
6496
|
-
},
|
|
6507
|
+
}, jr = ({ alignment: t = "center", className: n, ctaRegion: r, hasIndentedContent: i, heading: a, headingLevel: o = "h1", image: s, imageMarginLeft: c = "0", imageWidth: l = "40%", maxWidth: u = "100%", message: d, video: f, ...p }) => {
|
|
6497
6508
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6498
6509
|
marginInlineStart: c,
|
|
6499
6510
|
width: l
|
|
@@ -6519,11 +6530,11 @@ var Tr = {
|
|
|
6519
6530
|
alt: "",
|
|
6520
6531
|
className: `${m}__image`,
|
|
6521
6532
|
src: s
|
|
6522
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6533
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Ar, {
|
|
6523
6534
|
platform: f.platform,
|
|
6524
6535
|
videoId: f.videoId
|
|
6525
6536
|
})));
|
|
6526
|
-
},
|
|
6537
|
+
}, Mr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6527
6538
|
let u = "pds-vertical-empty-state";
|
|
6528
6539
|
return c = typeof c == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${u}__message` }, c) : /* @__PURE__ */ e.createElement("div", { className: `${u}__message` }, c), /* @__PURE__ */ e.createElement("div", {
|
|
6529
6540
|
className: Z([u, t ?? ""]),
|
|
@@ -6538,7 +6549,7 @@ var Tr = {
|
|
|
6538
6549
|
baseClass: u,
|
|
6539
6550
|
level: i
|
|
6540
6551
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6541
|
-
},
|
|
6552
|
+
}, Nr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6542
6553
|
linesChanged: "lines changed",
|
|
6543
6554
|
additions: "additions",
|
|
6544
6555
|
deletions: "deletions"
|
|
@@ -6570,7 +6581,7 @@ var Tr = {
|
|
|
6570
6581
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6571
6582
|
preferredPlacement: "top"
|
|
6572
6583
|
}))));
|
|
6573
|
-
},
|
|
6584
|
+
}, Pr = {
|
|
6574
6585
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6575
6586
|
fill: "none",
|
|
6576
6587
|
height: "42",
|
|
@@ -6788,7 +6799,7 @@ var Tr = {
|
|
|
6788
6799
|
height: "42",
|
|
6789
6800
|
width: "70"
|
|
6790
6801
|
}))))
|
|
6791
|
-
},
|
|
6802
|
+
}, Fr = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6792
6803
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6793
6804
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6794
6805
|
className: Z([
|
|
@@ -6797,8 +6808,8 @@ var Tr = {
|
|
|
6797
6808
|
t ?? ""
|
|
6798
6809
|
]),
|
|
6799
6810
|
...i
|
|
6800
|
-
},
|
|
6801
|
-
},
|
|
6811
|
+
}, Pr[n]);
|
|
6812
|
+
}, Ir = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...c }) => {
|
|
6802
6813
|
let u = "pds-identity-block", d = r ? `${u}--collapsed` : null, f = i ? `${u}--single-line` : null, p = t ? {
|
|
6803
6814
|
...t,
|
|
6804
6815
|
size: i ? "s" : "m"
|
|
@@ -6837,7 +6848,7 @@ var Tr = {
|
|
|
6837
6848
|
className: `${u}__secondary-text`,
|
|
6838
6849
|
title: x ? o : void 0
|
|
6839
6850
|
}, o)));
|
|
6840
|
-
},
|
|
6851
|
+
}, Lr = a(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: c, inputWidth: l, label: u, message: d, name: f, nestingLevel: p = 0, onBlur: m, onChange: g, onFocus: _, required: v, showLabel: y = !0, size: b = "s", validationMessage: x, validationStatus: S, value: C, ...w }, T) => {
|
|
6841
6852
|
let E = l ? { width: `${l / 16}rem` } : null, D = "pds-checkbox", O = i ? $.disabled : null, k = S === "error" ? $.error : null, A = p > 0 ? `${D}--indent-${p}` : null, j = v && !i ? $.required : null, M = b === "s" ? null : `${D}--${b}`, N = S === "success" ? $.success : null, P = x || d, F = t !== void 0, [I, L] = h(r === void 0 ? !1 : r), R = t || I, z = (e) => {
|
|
6842
6853
|
F || L(e.target.checked), g && g(e);
|
|
6843
6854
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = s(() => {
|
|
@@ -6909,7 +6920,7 @@ var Tr = {
|
|
|
6909
6920
|
message: P,
|
|
6910
6921
|
validationStatus: S
|
|
6911
6922
|
}));
|
|
6912
|
-
}),
|
|
6923
|
+
}), Rr = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, required: u = !1, showLabel: d = !0, tooltipText: f = null, validationMessage: p, validationStatus: m, ...h }) => {
|
|
6913
6924
|
let g = o ? { width: `${o / 16}rem` } : null, _ = "pds-checkbox-group", v = r ? $.disabled : null, y = u && !r ? $.required : null, b = m === "error" ? $.error : null, x = m === "success" ? $.success : null, S = p || l;
|
|
6914
6925
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6915
6926
|
className: Z([
|
|
@@ -6942,7 +6953,7 @@ var Tr = {
|
|
|
6942
6953
|
message: S,
|
|
6943
6954
|
validationStatus: m
|
|
6944
6955
|
}));
|
|
6945
|
-
},
|
|
6956
|
+
}, zr = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, labelVariant: s, message: c, onGroupBlur: u, onValueChange: d, options: f, required: p = !1, showLabel: g = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, ...b }) => {
|
|
6946
6957
|
let x = a ? { width: `${a / 16}rem` } : null, S = "pds-checkbox-group", C = n ? $.disabled : null, w = p && !n ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = v || c;
|
|
6947
6958
|
f.map((e) => {
|
|
6948
6959
|
e.id || (e.id = e.value);
|
|
@@ -6991,7 +7002,7 @@ var Tr = {
|
|
|
6991
7002
|
required: p,
|
|
6992
7003
|
showLabel: g,
|
|
6993
7004
|
tooltipText: _
|
|
6994
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(
|
|
7005
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(Lr, {
|
|
6995
7006
|
key: t.id,
|
|
6996
7007
|
checked: t.checked,
|
|
6997
7008
|
className: `${S}__checkbox`,
|
|
@@ -7009,7 +7020,7 @@ var Tr = {
|
|
|
7009
7020
|
message: D,
|
|
7010
7021
|
validationStatus: y
|
|
7011
7022
|
}));
|
|
7012
|
-
},
|
|
7023
|
+
}, Br = a(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: c = !1, id: u, inputWidth: d, isLoading: f = !1, label: g, labelStrings: _ = {
|
|
7013
7024
|
clearButton: "Clear input text",
|
|
7014
7025
|
inputInstructions: "Type to search options",
|
|
7015
7026
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7202,13 +7213,13 @@ var Tr = {
|
|
|
7202
7213
|
validationMessageHasDecorators: !1,
|
|
7203
7214
|
validationStatus: B
|
|
7204
7215
|
}));
|
|
7205
|
-
}),
|
|
7216
|
+
}), Vr = (e, t, n) => {
|
|
7206
7217
|
let r = n.toLowerCase();
|
|
7207
7218
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7208
7219
|
...e,
|
|
7209
7220
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7210
7221
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7211
|
-
},
|
|
7222
|
+
}, Hr = ({ aiSuggestions: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, isLoading: s = !1, label: c = "Lorem ipsum dolor sit:", labelStrings: l = {
|
|
7212
7223
|
aiBadgeLabel: "Suggested",
|
|
7213
7224
|
aiPanelButton: "Show AI suggestions",
|
|
7214
7225
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7216,7 +7227,7 @@ var Tr = {
|
|
|
7216
7227
|
inputInstructions: "Type to search options",
|
|
7217
7228
|
triggerButton: "Toggle dropdown menu"
|
|
7218
7229
|
}, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: g, placeholder: _ = "Filter", required: v = !1, showAllTags: y = !1, showLabel: b = !0, size: x = "s", ...S }) => {
|
|
7219
|
-
let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() =>
|
|
7230
|
+
let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() => Vr(g, R, I), [
|
|
7220
7231
|
g,
|
|
7221
7232
|
R,
|
|
7222
7233
|
I
|
|
@@ -7475,7 +7486,7 @@ var Tr = {
|
|
|
7475
7486
|
iconName: "xmark",
|
|
7476
7487
|
size: "m"
|
|
7477
7488
|
})))));
|
|
7478
|
-
},
|
|
7489
|
+
}, Ur = (e, t) => e ? se(e, "PP", { locale: t }) : "", Wr = (e) => {
|
|
7479
7490
|
if (e.custom) return e.custom();
|
|
7480
7491
|
let t = /* @__PURE__ */ new Date();
|
|
7481
7492
|
if (t.setHours(0, 0, 0, 0), e.days !== void 0) {
|
|
@@ -7528,7 +7539,7 @@ var Tr = {
|
|
|
7528
7539
|
to: t
|
|
7529
7540
|
};
|
|
7530
7541
|
}
|
|
7531
|
-
},
|
|
7542
|
+
}, Gr = {
|
|
7532
7543
|
clearButton: "Clear",
|
|
7533
7544
|
doneButton: "Done",
|
|
7534
7545
|
noDateSelected: "No date selected",
|
|
@@ -7539,9 +7550,9 @@ var Tr = {
|
|
|
7539
7550
|
selectedDateRange: "Selected date range: ",
|
|
7540
7551
|
to: " to ",
|
|
7541
7552
|
todayButton: "Today"
|
|
7542
|
-
},
|
|
7553
|
+
}, Kr = ({ className: t, disabled: n = !1, hasDateRange: r, id: i, inputWidth: a, label: o, locale: s, maxDate: c, message: u, minDate: d, onChange: f, placeholder: p, required: m = !1, showLabel: g = !0, tooltipText: _, translationStrings: v, validationMessage: y, validationStatus: b, value: x, ...S }) => {
|
|
7543
7554
|
let E = {
|
|
7544
|
-
...
|
|
7555
|
+
...Gr,
|
|
7545
7556
|
...v
|
|
7546
7557
|
}, [O, k] = h(x), [A, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = Bt(a), R = "pds-datepicker", z = n ? $.disabled : null, B = m && !n ? $.required : null, V = b === "error" ? $.error : null, H = b === "success" ? $.success : null, U = y || u, { floatingStyles: ee, refs: W } = j({
|
|
7547
7558
|
open: A,
|
|
@@ -7582,18 +7593,18 @@ var Tr = {
|
|
|
7582
7593
|
}, Y = () => {
|
|
7583
7594
|
if (r) {
|
|
7584
7595
|
let t = O;
|
|
7585
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7596
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ur(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${R}__separator` }, " – "), Ur(t.to, s)) : Ur(t.from, s) : p || "";
|
|
7586
7597
|
} else {
|
|
7587
7598
|
let e = O;
|
|
7588
|
-
return e ?
|
|
7599
|
+
return e ? Ur(e, s) : p || "";
|
|
7589
7600
|
}
|
|
7590
7601
|
}, X = () => r ? !O?.from : !O, le = () => {
|
|
7591
7602
|
if (r) {
|
|
7592
7603
|
let e = O;
|
|
7593
|
-
return e?.from ? e.to ? `${E.selectedDateRange}${
|
|
7604
|
+
return e?.from ? e.to ? `${E.selectedDateRange}${Ur(e.from, s)}${E.to}${Ur(e.to, s)}` : `${E.selectedStartDate}${Ur(e.from, s)}${E.pleaseSelectEndDate}` : E.noDateRangeSelected || "";
|
|
7594
7605
|
} else {
|
|
7595
7606
|
let e = O;
|
|
7596
|
-
return e ? `${E.selectedDate}${
|
|
7607
|
+
return e ? `${E.selectedDate}${Ur(e, s)}` : E.noDateSelected || "";
|
|
7597
7608
|
}
|
|
7598
7609
|
}, ue = (e) => {
|
|
7599
7610
|
W.floating.current && !W.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
|
|
@@ -7695,7 +7706,7 @@ var Tr = {
|
|
|
7695
7706
|
type: "button",
|
|
7696
7707
|
variant: "highlight"
|
|
7697
7708
|
})))));
|
|
7698
|
-
},
|
|
7709
|
+
}, qr = a(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: u = {
|
|
7699
7710
|
chooseFile: "Choose file",
|
|
7700
7711
|
clearButton: "Clear selected file"
|
|
7701
7712
|
}, message: d, multiple: f = !1, onClear: p, onFileChange: m, required: g = !1, showFullPath: _, showLabel: v = !0, size: y = "s", tooltipText: b = null, validationMessage: x, validationStatus: S, ...C }, w) => {
|
|
@@ -7779,7 +7790,7 @@ var Tr = {
|
|
|
7779
7790
|
validationMessageHasDecorators: !1,
|
|
7780
7791
|
validationStatus: S
|
|
7781
7792
|
}));
|
|
7782
|
-
}),
|
|
7793
|
+
}), Jr = ({ children: t, className: n, ...r }) => {
|
|
7783
7794
|
let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
|
|
7784
7795
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7785
7796
|
className: Z([
|
|
@@ -7796,7 +7807,7 @@ var Tr = {
|
|
|
7796
7807
|
validationMessageHasDecorators: !1,
|
|
7797
7808
|
validationStatus: l
|
|
7798
7809
|
}));
|
|
7799
|
-
},
|
|
7810
|
+
}, Yr = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, onBlur: u, onChange: d, onValueChange: f, options: p, required: m = !1, showLabel: g = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, value: b, ...x }) => {
|
|
7800
7811
|
let S = "pds-radio-group", C = r ? $.disabled : null, w = m && !r ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = b !== void 0, [O, k] = h(n === void 0 ? "" : n), A = v || l, j = (e) => {
|
|
7801
7812
|
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
7802
7813
|
}, M = (e) => {
|
|
@@ -7846,7 +7857,7 @@ var Tr = {
|
|
|
7846
7857
|
message: A,
|
|
7847
7858
|
validationStatus: y
|
|
7848
7859
|
}));
|
|
7849
|
-
},
|
|
7860
|
+
}, Xr = a(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, label: c, message: l, offLabel: u = "Off", onChange: d, onLabel: f = "On", required: p = !1, showLabel: m = !0, showStatusLabel: g = !0, statusLabelPlacement: _ = "right", switchPlacement: v = "right", ...y }, b) => {
|
|
7850
7861
|
let x = Bt(s), S = "pds-switch", C = `${S}--${v}`, w = l ? `${S}--message` : null, T = i ? $.disabled : null, E = p && !i ? $.required : null, D = t !== void 0, [O, k] = h(!D && r ? r : !1), A = t || O ? f : u, j = (e) => {
|
|
7851
7862
|
D || k(e.target.checked), d && d(e);
|
|
7852
7863
|
}, M = g ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -7901,7 +7912,7 @@ var Tr = {
|
|
|
7901
7912
|
required: p,
|
|
7902
7913
|
showLabel: m
|
|
7903
7914
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
7904
|
-
}),
|
|
7915
|
+
}), Zr = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: u, onFocusInput: d, onKeyboardMove: f, onRemove: p, setFocusedIndex: h, tag: g, totalTags: _, translationStrings: v }) => {
|
|
7905
7916
|
let y = m(null), b = "pds-tags-input__tag";
|
|
7906
7917
|
l(() => {
|
|
7907
7918
|
r === i && y.current && y.current.focus();
|
|
@@ -7968,7 +7979,7 @@ var Tr = {
|
|
|
7968
7979
|
iconName: "xmark",
|
|
7969
7980
|
size: "s"
|
|
7970
7981
|
})));
|
|
7971
|
-
},
|
|
7982
|
+
}, Qr = a(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, isSortable: s = !1, label: c, message: l, onChange: u, placeholder: d, required: f = !1, showLabel: p = !0, size: g = "s", tags: _, tooltipText: v = null, translationStrings: y = {
|
|
7972
7983
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
7973
7984
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
7974
7985
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8054,7 +8065,7 @@ var Tr = {
|
|
|
8054
8065
|
return P && P !== t.id && (I === t.id && R === "before" ? i = "before" : I === t.id && R === "after" && n === _.length - 1 ? i = "after" : n > 0 && I === _[n - 1].id && R === "after" && (i = "before")), /* @__PURE__ */ e.createElement("div", {
|
|
8055
8066
|
key: t.id,
|
|
8056
8067
|
role: "listitem"
|
|
8057
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8068
|
+
}, /* @__PURE__ */ e.createElement(Zr, {
|
|
8058
8069
|
disabled: r,
|
|
8059
8070
|
dropTargetDirection: i,
|
|
8060
8071
|
focusedIndex: B,
|
|
@@ -8098,7 +8109,7 @@ var Tr = {
|
|
|
8098
8109
|
validationMessageHasDecorators: !1,
|
|
8099
8110
|
validationStatus: x
|
|
8100
8111
|
}));
|
|
8101
|
-
}),
|
|
8112
|
+
}), $r = a(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, isResizable: s = !0, label: c, message: l, onBlur: u, onChange: d, onFocus: f, placeholder: p, readonly: m = !1, required: g = !1, rows: _ = 5, showLabel: v, size: y = "s", textareaProps: b, tooltipText: x = null, translationStrings: S = {
|
|
8102
8113
|
clearButton: "Clear input text",
|
|
8103
8114
|
counterOverLimit: "Character limit exceeded by",
|
|
8104
8115
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8162,7 +8173,7 @@ var Tr = {
|
|
|
8162
8173
|
message: L,
|
|
8163
8174
|
validationStatus: w
|
|
8164
8175
|
}));
|
|
8165
|
-
}),
|
|
8176
|
+
}), ei = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), ti = a(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, label: f, message: p, onBlur: m, onChange: g, onClear: _, onFocus: v, placeholder: y, readonly: b = !1, required: x = !1, searchIcon: S = "search", showLabel: C = !0, showVisibilityToggle: w = !1, size: T = "s", tooltipText: E = null, translationStrings: D = {
|
|
8166
8177
|
clearButton: "Clear input text",
|
|
8167
8178
|
counterOverLimit: "Character limit exceeded by",
|
|
8168
8179
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8228,7 +8239,7 @@ var Tr = {
|
|
|
8228
8239
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8229
8240
|
"aria-live": "polite",
|
|
8230
8241
|
className: "visually-hidden"
|
|
8231
|
-
}, `${D.visibilityStatus} ${q ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(
|
|
8242
|
+
}, `${D.visibilityStatus} ${q ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ei, null), /* @__PURE__ */ e.createElement("input", {
|
|
8232
8243
|
ref: N,
|
|
8233
8244
|
"aria-describedby": ee ? `${l}__message` : null,
|
|
8234
8245
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8275,12 +8286,12 @@ var Tr = {
|
|
|
8275
8286
|
validationMessageHasDecorators: !1,
|
|
8276
8287
|
validationStatus: A
|
|
8277
8288
|
}));
|
|
8278
|
-
}),
|
|
8289
|
+
}), ni = (e) => String(e).padStart(2, "0"), ri = (e) => {
|
|
8279
8290
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
8280
8291
|
if (!t) return null;
|
|
8281
8292
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
8282
8293
|
return n > 23 || r > 59 ? null : new ue(n, r);
|
|
8283
|
-
},
|
|
8294
|
+
}, ii = (e) => e ? `${ni(e.hour)}:${ni(e.minute)}` : void 0, ai = ({ baseClass: t, segment: n, state: r }) => {
|
|
8284
8295
|
let i = m(null), { segmentProps: a } = ge(n, r, i), { focusProps: o, isFocusVisible: s } = _e(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
8285
8296
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8286
8297
|
...he(a, o),
|
|
@@ -8291,7 +8302,7 @@ var Tr = {
|
|
|
8291
8302
|
s ? `${t}__segment--focus-visible` : null
|
|
8292
8303
|
])
|
|
8293
8304
|
}, c);
|
|
8294
|
-
},
|
|
8305
|
+
}, oi = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, label: c, message: u, onBlur: d, onChange: f, onFocus: g, required: _ = !1, showLabel: v = !0, size: y = "s", timeZone: b, tooltipText: x = null, validationMessage: S, validationStatus: C, value: w }) => {
|
|
8295
8306
|
let T = Bt(s), E = "pds-time-input", D = y === "s" ? null : `${E}--${y}`, O = i ? $.disabled : null, k = _ && !i ? $.required : null, A = C === "error" ? $.error : null, j = C === "success" ? $.success : null, M = S || u, N = w !== void 0, { locale: P } = ve(), [F, I] = h(r), L = N ? w : F, R = be({
|
|
8296
8307
|
granularity: "minute",
|
|
8297
8308
|
hourCycle: a,
|
|
@@ -8299,14 +8310,14 @@ var Tr = {
|
|
|
8299
8310
|
locale: P,
|
|
8300
8311
|
onBlur: d,
|
|
8301
8312
|
onChange: (e) => {
|
|
8302
|
-
let t =
|
|
8313
|
+
let t = ii(e);
|
|
8303
8314
|
t && (N || I(t), f && f(t));
|
|
8304
8315
|
},
|
|
8305
8316
|
onFocusChange: (e) => {
|
|
8306
8317
|
e && g && g();
|
|
8307
8318
|
},
|
|
8308
8319
|
shouldForceLeadingZeros: !0,
|
|
8309
|
-
value: p(() =>
|
|
8320
|
+
value: p(() => ri(L), [L])
|
|
8310
8321
|
}), z = m(null), { fieldProps: B } = ye({
|
|
8311
8322
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
8312
8323
|
"aria-labelledby": `${o}-label`,
|
|
@@ -8317,7 +8328,7 @@ var Tr = {
|
|
|
8317
8328
|
if (V.current = b, !b || !e || b === e) return;
|
|
8318
8329
|
let n = R.value;
|
|
8319
8330
|
if (!n) return;
|
|
8320
|
-
let r = fe(pe(de(t ?? me(e), n), e), b), i =
|
|
8331
|
+
let r = fe(pe(de(t ?? me(e), n), e), b), i = ii(new ue(r.hour, r.minute));
|
|
8321
8332
|
i && (N || I(i), f && f(i));
|
|
8322
8333
|
}, [b]);
|
|
8323
8334
|
let H = p(() => {
|
|
@@ -8367,7 +8378,7 @@ var Tr = {
|
|
|
8367
8378
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
8368
8379
|
key: n,
|
|
8369
8380
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
8370
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
8381
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ai, {
|
|
8371
8382
|
key: n,
|
|
8372
8383
|
baseClass: E,
|
|
8373
8384
|
segment: t,
|
|
@@ -8379,7 +8390,7 @@ var Tr = {
|
|
|
8379
8390
|
validationMessageHasDecorators: !1,
|
|
8380
8391
|
validationStatus: C
|
|
8381
8392
|
}));
|
|
8382
|
-
},
|
|
8393
|
+
}, si = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8383
8394
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8384
8395
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8385
8396
|
className: Z([
|
|
@@ -8393,7 +8404,7 @@ var Tr = {
|
|
|
8393
8404
|
iconName: "arrowRight",
|
|
8394
8405
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8395
8406
|
}));
|
|
8396
|
-
},
|
|
8407
|
+
}, ci = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8397
8408
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8398
8409
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8399
8410
|
"aria-hidden": "true",
|
|
@@ -8420,11 +8431,11 @@ var Tr = {
|
|
|
8420
8431
|
className: `${c}__icon`,
|
|
8421
8432
|
iconName: "externalLink"
|
|
8422
8433
|
}));
|
|
8423
|
-
},
|
|
8434
|
+
}, li = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8424
8435
|
className: Z(["pds-skiplink", t]),
|
|
8425
8436
|
href: `#${n}`,
|
|
8426
8437
|
...i
|
|
8427
|
-
}, r),
|
|
8438
|
+
}, r), ui = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8428
8439
|
let c = "pds-picture";
|
|
8429
8440
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8430
8441
|
srcSet: a,
|
|
@@ -8437,7 +8448,7 @@ var Tr = {
|
|
|
8437
8448
|
width: o,
|
|
8438
8449
|
...s
|
|
8439
8450
|
}));
|
|
8440
|
-
},
|
|
8451
|
+
}, di = ({ ariaLabel: t = "Breadcrumb", className: r, crumbs: i, ...a }) => {
|
|
8441
8452
|
let s = "pds-breadcrumb", c = i.length, l = i.map((t, r) => {
|
|
8442
8453
|
if (r < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8443
8454
|
key: r,
|
|
@@ -8456,36 +8467,36 @@ var Tr = {
|
|
|
8456
8467
|
className: Z([s, r]),
|
|
8457
8468
|
...a
|
|
8458
8469
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${s}__crumbs` }, l));
|
|
8459
|
-
},
|
|
8470
|
+
}, fi = (e) => {
|
|
8460
8471
|
if (!e) return null;
|
|
8461
8472
|
for (let t = 0; t < e.length; t++) {
|
|
8462
|
-
if (
|
|
8473
|
+
if (mi(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8463
8474
|
if (e[t].links) {
|
|
8464
|
-
let n =
|
|
8475
|
+
let n = fi(e[t].links);
|
|
8465
8476
|
if (n) return n;
|
|
8466
8477
|
}
|
|
8467
8478
|
}
|
|
8468
8479
|
return null;
|
|
8469
|
-
},
|
|
8470
|
-
if (
|
|
8480
|
+
}, pi = (e) => typeof e == "string" ? e : e.props.children, mi = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), hi = (e) => {
|
|
8481
|
+
if (mi(e)) return !0;
|
|
8471
8482
|
if (e.links) {
|
|
8472
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8483
|
+
for (let t = 0; t < e.links.length; t++) if (hi(e.links[t])) return !0;
|
|
8473
8484
|
}
|
|
8474
8485
|
return !1;
|
|
8475
|
-
},
|
|
8486
|
+
}, gi = (e) => e.map((e) => `${mi(e)}${e.links ? `[${gi(e.links)}]` : ""}`).join("|"), _i = (e) => {
|
|
8476
8487
|
if (o(e)) {
|
|
8477
8488
|
let t = e.type;
|
|
8478
8489
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8479
8490
|
}
|
|
8480
8491
|
return !1;
|
|
8481
|
-
},
|
|
8492
|
+
}, vi = (e, t) => {
|
|
8482
8493
|
let r = null;
|
|
8483
8494
|
if (typeof e == "string" && t) {
|
|
8484
8495
|
let i = t ? t[0].linkContent : null;
|
|
8485
8496
|
o(i) && (r = n(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8486
8497
|
} else r = e;
|
|
8487
8498
|
return r;
|
|
8488
|
-
},
|
|
8499
|
+
}, yi = (t, r, i, a) => {
|
|
8489
8500
|
let s = null;
|
|
8490
8501
|
if (typeof r == "string") {
|
|
8491
8502
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8510,7 +8521,7 @@ var Tr = {
|
|
|
8510
8521
|
iconName: a,
|
|
8511
8522
|
size: "m"
|
|
8512
8523
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
|
|
8513
|
-
},
|
|
8524
|
+
}, bi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8514
8525
|
let o = m(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8515
8526
|
l(() => {
|
|
8516
8527
|
let e = (e) => {
|
|
@@ -8529,11 +8540,11 @@ var Tr = {
|
|
|
8529
8540
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8530
8541
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(u, {
|
|
8531
8542
|
key: n,
|
|
8532
|
-
isActive:
|
|
8543
|
+
isActive: hi(t),
|
|
8533
8544
|
linkContent: t.linkContent
|
|
8534
8545
|
}))) : null, f = [];
|
|
8535
8546
|
i.map((e) => {
|
|
8536
|
-
e.linkContent && (
|
|
8547
|
+
e.linkContent && (hi(e) ? f.unshift({
|
|
8537
8548
|
linkContent: e.linkContent,
|
|
8538
8549
|
isLink: !0
|
|
8539
8550
|
}) : f.push({
|
|
@@ -8557,8 +8568,8 @@ var Tr = {
|
|
|
8557
8568
|
]),
|
|
8558
8569
|
...a
|
|
8559
8570
|
}, d, p);
|
|
8560
|
-
},
|
|
8561
|
-
let s = "pds-dropdown-menu", c =
|
|
8571
|
+
}, xi = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8572
|
+
let s = "pds-dropdown-menu", c = fi(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(On, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = _n({
|
|
8562
8573
|
enableShift: !1,
|
|
8563
8574
|
enableTypeahead: !0,
|
|
8564
8575
|
role: "menu"
|
|
@@ -8567,7 +8578,7 @@ var Tr = {
|
|
|
8567
8578
|
}, C = (e) => {
|
|
8568
8579
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8569
8580
|
}, w = ({ item: e, level: t }) => {
|
|
8570
|
-
let r =
|
|
8581
|
+
let r = vi(e.linkContent, e.links);
|
|
8571
8582
|
return {
|
|
8572
8583
|
...e,
|
|
8573
8584
|
level: t,
|
|
@@ -8658,7 +8669,7 @@ var Tr = {
|
|
|
8658
8669
|
tabIndex: d === n ? 0 : -1,
|
|
8659
8670
|
...m({ onKeyDown: C })
|
|
8660
8671
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8661
|
-
},
|
|
8672
|
+
}, Si = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8662
8673
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8663
8674
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8664
8675
|
className: Z([
|
|
@@ -8668,7 +8679,7 @@ var Tr = {
|
|
|
8668
8679
|
]),
|
|
8669
8680
|
...i
|
|
8670
8681
|
}, t);
|
|
8671
|
-
},
|
|
8682
|
+
}, Ci = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8672
8683
|
closeMobileNav: "Close navigation area",
|
|
8673
8684
|
openMobileNav: "Open navigation area"
|
|
8674
8685
|
}, ...c }) => {
|
|
@@ -8724,7 +8735,7 @@ var Tr = {
|
|
|
8724
8735
|
n ?? ""
|
|
8725
8736
|
]),
|
|
8726
8737
|
...c
|
|
8727
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8738
|
+
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(Si, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner-mobile` }, C, k && A))), /* @__PURE__ */ e.createElement(xe, {
|
|
8728
8739
|
active: u,
|
|
8729
8740
|
focusTrapOptions: {
|
|
8730
8741
|
clickOutsideDeactivates: !0,
|
|
@@ -8734,11 +8745,11 @@ var Tr = {
|
|
|
8734
8745
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8735
8746
|
className: Z([`${g}__mobile`, u ? `${g}__mobile--open` : null]),
|
|
8736
8747
|
inert: u ? void 0 : ""
|
|
8737
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8748
|
+
}, /* @__PURE__ */ e.createElement(Si, null, /* @__PURE__ */ e.createElement("button", {
|
|
8738
8749
|
className: "visually-hidden",
|
|
8739
8750
|
onClick: b,
|
|
8740
8751
|
type: "button"
|
|
8741
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8752
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Si, {
|
|
8742
8753
|
className: `${g}__inner`,
|
|
8743
8754
|
style: o ? { paddingInline: o } : void 0,
|
|
8744
8755
|
width: i
|
|
@@ -8746,14 +8757,14 @@ var Tr = {
|
|
|
8746
8757
|
"aria-hidden": "true",
|
|
8747
8758
|
className: `${g}__separator`
|
|
8748
8759
|
}), w && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-left` }, w)), T && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-center` }, T), E && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-right` }, E)));
|
|
8749
|
-
},
|
|
8760
|
+
}, wi = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8750
8761
|
submenu: "submenu",
|
|
8751
8762
|
toggle: "Toggle"
|
|
8752
8763
|
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8753
8764
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8754
8765
|
l(() => {
|
|
8755
8766
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8756
|
-
}, [
|
|
8767
|
+
}, [gi(c)]);
|
|
8757
8768
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8758
8769
|
v((n) => {
|
|
8759
8770
|
let r = t in n ? n[t] : e;
|
|
@@ -8763,7 +8774,7 @@ var Tr = {
|
|
|
8763
8774
|
};
|
|
8764
8775
|
});
|
|
8765
8776
|
}, x = (t, r) => {
|
|
8766
|
-
let { linkContent: i, links: a } = t, c =
|
|
8777
|
+
let { linkContent: i, links: a } = t, c = hi(t), l = _i(i), u = y(c, r);
|
|
8767
8778
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8768
8779
|
key: r,
|
|
8769
8780
|
className: Z([
|
|
@@ -8776,7 +8787,7 @@ var Tr = {
|
|
|
8776
8787
|
`${f}__row`,
|
|
8777
8788
|
`${f}__row--expandable`,
|
|
8778
8789
|
`${m}-wrapper`
|
|
8779
|
-
]) },
|
|
8790
|
+
]) }, vi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8780
8791
|
"aria-expanded": u,
|
|
8781
8792
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8782
8793
|
onClick: () => b(c, r),
|
|
@@ -8784,7 +8795,7 @@ var Tr = {
|
|
|
8784
8795
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8785
8796
|
iconName: "angleDown",
|
|
8786
8797
|
size: "m"
|
|
8787
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8798
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${pi(i)} ${s.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8788
8799
|
g,
|
|
8789
8800
|
`${g}--second-level`,
|
|
8790
8801
|
u ? `${g}--expanded` : null
|
|
@@ -8793,9 +8804,9 @@ var Tr = {
|
|
|
8793
8804
|
className: Z([
|
|
8794
8805
|
m,
|
|
8795
8806
|
`${m}--second-level`,
|
|
8796
|
-
|
|
8807
|
+
hi(t) ? `${m}--active` : null
|
|
8797
8808
|
])
|
|
8798
|
-
},
|
|
8809
|
+
}, vi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8799
8810
|
"aria-expanded": u,
|
|
8800
8811
|
className: Z([
|
|
8801
8812
|
`${f}__row`,
|
|
@@ -8809,7 +8820,7 @@ var Tr = {
|
|
|
8809
8820
|
}, 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, {
|
|
8810
8821
|
iconName: "angleDown",
|
|
8811
8822
|
size: "m"
|
|
8812
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8823
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${pi(i)} ${s.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8813
8824
|
g,
|
|
8814
8825
|
`${g}--second-level`,
|
|
8815
8826
|
u ? `${g}--expanded` : null
|
|
@@ -8818,10 +8829,10 @@ var Tr = {
|
|
|
8818
8829
|
className: Z([
|
|
8819
8830
|
m,
|
|
8820
8831
|
`${m}--second-level`,
|
|
8821
|
-
|
|
8832
|
+
hi(t) ? `${m}--active` : null
|
|
8822
8833
|
])
|
|
8823
|
-
},
|
|
8824
|
-
}, 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(
|
|
8834
|
+
}, vi(t.linkContent, t.links))))) : i);
|
|
8835
|
+
}, 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(xi, {
|
|
8825
8836
|
className: `${f}__mobile`,
|
|
8826
8837
|
headingText: a,
|
|
8827
8838
|
menuItems: c,
|
|
@@ -8836,8 +8847,8 @@ var Tr = {
|
|
|
8836
8847
|
]),
|
|
8837
8848
|
...d
|
|
8838
8849
|
}, S, i && C);
|
|
8839
|
-
},
|
|
8840
|
-
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8850
|
+
}, Ti = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: u }) => {
|
|
8851
|
+
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, yi(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8841
8852
|
p,
|
|
8842
8853
|
`${p}--${n}`,
|
|
8843
8854
|
r ? `${p}--expanded` : null
|
|
@@ -8846,7 +8857,7 @@ var Tr = {
|
|
|
8846
8857
|
className: Z([
|
|
8847
8858
|
f,
|
|
8848
8859
|
`${f}--${n}`,
|
|
8849
|
-
|
|
8860
|
+
hi(t) ? `${f}--active` : null
|
|
8850
8861
|
])
|
|
8851
8862
|
}, t.linkContent))), [v, y] = h(!1), b = m(v), S = m(!1), { context: O, floatingStyles: k, refs: M } = j({
|
|
8852
8863
|
placement: "right-start",
|
|
@@ -8900,7 +8911,7 @@ var Tr = {
|
|
|
8900
8911
|
...I(),
|
|
8901
8912
|
onClick: z,
|
|
8902
8913
|
onKeyDown: R
|
|
8903
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8914
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, yi(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
8904
8915
|
"aria-expanded": r,
|
|
8905
8916
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
8906
8917
|
onClick: u,
|
|
@@ -8908,13 +8919,13 @@ var Tr = {
|
|
|
8908
8919
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8909
8920
|
iconName: "angleDown",
|
|
8910
8921
|
size: "m"
|
|
8911
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
8922
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${pi(o)} ${a.submenu}`))), !i && _(s, "second-level"), i && v && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
8912
8923
|
ref: M.setFloating,
|
|
8913
8924
|
className: `${d}__flyout`,
|
|
8914
8925
|
style: k,
|
|
8915
8926
|
...P()
|
|
8916
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
8917
|
-
content:
|
|
8927
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` }, pi(o)), _(s, "second-level-flyout")))) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(zt, {
|
|
8928
|
+
content: pi(o),
|
|
8918
8929
|
customTrigger: g,
|
|
8919
8930
|
offsetValue: {
|
|
8920
8931
|
mainAxis: 8,
|
|
@@ -8922,14 +8933,14 @@ var Tr = {
|
|
|
8922
8933
|
},
|
|
8923
8934
|
preferredPlacement: "right"
|
|
8924
8935
|
}) : g));
|
|
8925
|
-
},
|
|
8936
|
+
}, Ei = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8926
8937
|
submenu: "submenu",
|
|
8927
8938
|
toggle: "Toggle"
|
|
8928
8939
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8929
8940
|
let c = "pds-side-nav-global", u = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = h({});
|
|
8930
8941
|
l(() => {
|
|
8931
8942
|
f((e) => Object.keys(e).length ? {} : e);
|
|
8932
|
-
}, [
|
|
8943
|
+
}, [gi(a)]);
|
|
8933
8944
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
8934
8945
|
f((n) => {
|
|
8935
8946
|
let r = t in n ? n[t] : e;
|
|
@@ -8950,8 +8961,8 @@ var Tr = {
|
|
|
8950
8961
|
className: `${c}__section-label`,
|
|
8951
8962
|
role: "presentation"
|
|
8952
8963
|
}, t.label);
|
|
8953
|
-
let a =
|
|
8954
|
-
return /* @__PURE__ */ e.createElement(
|
|
8964
|
+
let a = hi(t);
|
|
8965
|
+
return /* @__PURE__ */ e.createElement(Ti, {
|
|
8955
8966
|
key: n,
|
|
8956
8967
|
icon: t.icon,
|
|
8957
8968
|
isActive: a,
|
|
@@ -8973,7 +8984,7 @@ var Tr = {
|
|
|
8973
8984
|
]),
|
|
8974
8985
|
...s
|
|
8975
8986
|
}, g);
|
|
8976
|
-
},
|
|
8987
|
+
}, Di = ({ items: t, label: n }) => {
|
|
8977
8988
|
let r = m(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = _n({
|
|
8978
8989
|
offsetValue: 8,
|
|
8979
8990
|
openOnHover: !Nt()
|
|
@@ -9010,7 +9021,7 @@ var Tr = {
|
|
|
9010
9021
|
key: n,
|
|
9011
9022
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9012
9023
|
}, !t.isSeparator && t.linkContent)))));
|
|
9013
|
-
},
|
|
9024
|
+
}, Oi = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9014
9025
|
let [a, o] = h(null), [s, c] = h(-1), [d, f] = h(null), [p, g] = h({
|
|
9015
9026
|
container: null,
|
|
9016
9027
|
containerChildren: []
|
|
@@ -9057,7 +9068,7 @@ var Tr = {
|
|
|
9057
9068
|
},
|
|
9058
9069
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9059
9070
|
id: i
|
|
9060
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9071
|
+
}, /* @__PURE__ */ e.createElement(Di, {
|
|
9061
9072
|
items: t.links,
|
|
9062
9073
|
label: t.label
|
|
9063
9074
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9076,14 +9087,14 @@ var Tr = {
|
|
|
9076
9087
|
},
|
|
9077
9088
|
...i
|
|
9078
9089
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9079
|
-
},
|
|
9090
|
+
}, ki = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9080
9091
|
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: S, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setActiveIndex: O, transitionStyles: k } = _n({
|
|
9081
9092
|
offsetValue: 8,
|
|
9082
9093
|
placement: "bottom-start",
|
|
9083
9094
|
role: "listbox"
|
|
9084
9095
|
}), A = (e) => {
|
|
9085
9096
|
e.preventDefault(), e.key === "Enter" && E.current[v].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && f && document.getElementById("links-filter").focus();
|
|
9086
|
-
}, j = (e, t) =>
|
|
9097
|
+
}, j = (e, t) => pi(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9087
9098
|
let t = e.target.value;
|
|
9088
9099
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9089
9100
|
};
|
|
@@ -9094,11 +9105,11 @@ var Tr = {
|
|
|
9094
9105
|
d(""), c(i);
|
|
9095
9106
|
}, P = {
|
|
9096
9107
|
minWidth: "13rem",
|
|
9097
|
-
width: `${
|
|
9108
|
+
width: `${pi(i.reduce((e, t) => pi(e.linkContent).length > pi(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9098
9109
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9099
9110
|
className: `${p}__active-icon`,
|
|
9100
9111
|
iconName: "check"
|
|
9101
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9112
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9102
9113
|
hasClearButton: !0,
|
|
9103
9114
|
autoComplete: "off",
|
|
9104
9115
|
id: "links-filter",
|
|
@@ -9141,9 +9152,9 @@ var Tr = {
|
|
|
9141
9152
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9142
9153
|
} })
|
|
9143
9154
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([m, g]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : L)))));
|
|
9144
|
-
},
|
|
9155
|
+
}, Ai = ({ ariaLabel: t, className: r, menuItems: i, ...a }) => {
|
|
9145
9156
|
let s = "pds-tab-menu", c = ({ dropdownSettings: t, icon: r, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9146
|
-
let u = `${s}__item`, d =
|
|
9157
|
+
let u = `${s}__item`, d = fi(c);
|
|
9147
9158
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, r) => {
|
|
9148
9159
|
let i = null;
|
|
9149
9160
|
return o(t) && (i = r ? n(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9154,7 +9165,7 @@ var Tr = {
|
|
|
9154
9165
|
iconName: r,
|
|
9155
9166
|
size: "m"
|
|
9156
9167
|
}), t.props.children)] })) : t), i;
|
|
9157
|
-
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(
|
|
9168
|
+
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(ki, {
|
|
9158
9169
|
buttonLabel: t?.buttonLabel,
|
|
9159
9170
|
filterLabel: t?.filterLabel,
|
|
9160
9171
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9166,7 +9177,7 @@ var Tr = {
|
|
|
9166
9177
|
key: n,
|
|
9167
9178
|
dropdownSettings: t.dropdownSettings,
|
|
9168
9179
|
icon: t.icon,
|
|
9169
|
-
isActive:
|
|
9180
|
+
isActive: hi(t),
|
|
9170
9181
|
linkContent: t.linkContent,
|
|
9171
9182
|
links: t.links,
|
|
9172
9183
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9176,11 +9187,11 @@ var Tr = {
|
|
|
9176
9187
|
className: Z([s, r ?? ""]),
|
|
9177
9188
|
...a
|
|
9178
9189
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, l));
|
|
9179
|
-
},
|
|
9190
|
+
}, ji = {
|
|
9180
9191
|
2: "second",
|
|
9181
9192
|
3: "third",
|
|
9182
9193
|
4: "fourth"
|
|
9183
|
-
},
|
|
9194
|
+
}, Mi = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9184
9195
|
submenu: "submenu",
|
|
9185
9196
|
toggle: "Toggle"
|
|
9186
9197
|
}, menuItems: a, ...o }) => {
|
|
@@ -9300,7 +9311,7 @@ var Tr = {
|
|
|
9300
9311
|
display: "none"
|
|
9301
9312
|
}), b();
|
|
9302
9313
|
}, j = (t, n, r) => {
|
|
9303
|
-
let a =
|
|
9314
|
+
let a = ji[t], o = `${u}--${a}-level`, l = `${c}--${a}-level`, d = t + 1, f = hi(n);
|
|
9304
9315
|
if (_.current && n.path) {
|
|
9305
9316
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9306
9317
|
if (e) {
|
|
@@ -9317,7 +9328,7 @@ var Tr = {
|
|
|
9317
9328
|
iconName: "angleDown",
|
|
9318
9329
|
size: "s",
|
|
9319
9330
|
verticalAlign: "-0.0625rem"
|
|
9320
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9331
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${pi(n.linkContent)} ${i.submenu}`)), vi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9321
9332
|
className: Z([
|
|
9322
9333
|
u,
|
|
9323
9334
|
o,
|
|
@@ -9325,7 +9336,7 @@ var Tr = {
|
|
|
9325
9336
|
]),
|
|
9326
9337
|
role: "group"
|
|
9327
9338
|
}, n.links.map((t, n) => {
|
|
9328
|
-
let r =
|
|
9339
|
+
let r = hi(t);
|
|
9329
9340
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9330
9341
|
key: `${n}-${a}`,
|
|
9331
9342
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9337,10 +9348,10 @@ var Tr = {
|
|
|
9337
9348
|
]),
|
|
9338
9349
|
"data-item-path": t.path || "",
|
|
9339
9350
|
role: "treeitem"
|
|
9340
|
-
}, t.links && d in
|
|
9351
|
+
}, t.links && d in ji ? j(d, t, t.links) : t.linkContent);
|
|
9341
9352
|
})));
|
|
9342
9353
|
}, M = (t, n) => {
|
|
9343
|
-
let { linkContent: r, links: i } = t, a =
|
|
9354
|
+
let { linkContent: r, links: i } = t, a = hi(t);
|
|
9344
9355
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9345
9356
|
key: n,
|
|
9346
9357
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9369,11 +9380,11 @@ var Tr = {
|
|
|
9369
9380
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9370
9381
|
role: "tree"
|
|
9371
9382
|
}, a.map((e, t) => M(e, t))));
|
|
9372
|
-
},
|
|
9383
|
+
}, Ni = {
|
|
9373
9384
|
light: "sunBright",
|
|
9374
9385
|
dark: "moon",
|
|
9375
9386
|
system: "circleHalfStroke"
|
|
9376
|
-
},
|
|
9387
|
+
}, Pi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9377
9388
|
light: "Light",
|
|
9378
9389
|
dark: "Dark",
|
|
9379
9390
|
system: "System"
|
|
@@ -9385,7 +9396,7 @@ var Tr = {
|
|
|
9385
9396
|
];
|
|
9386
9397
|
if (s === "toggle") {
|
|
9387
9398
|
let s = d.map((e) => ({
|
|
9388
|
-
iconName:
|
|
9399
|
+
iconName: Ni[e],
|
|
9389
9400
|
label: r[e],
|
|
9390
9401
|
value: e
|
|
9391
9402
|
}));
|
|
@@ -9404,7 +9415,7 @@ var Tr = {
|
|
|
9404
9415
|
}
|
|
9405
9416
|
let f = d.map((e) => ({
|
|
9406
9417
|
callback: () => i?.(e),
|
|
9407
|
-
iconName:
|
|
9418
|
+
iconName: Ni[e],
|
|
9408
9419
|
iconSize: "m",
|
|
9409
9420
|
label: r[e]
|
|
9410
9421
|
}));
|
|
@@ -9416,7 +9427,7 @@ var Tr = {
|
|
|
9416
9427
|
customTrigger: /* @__PURE__ */ e.createElement(Rn, {
|
|
9417
9428
|
iconOnly: !0,
|
|
9418
9429
|
"aria-label": u,
|
|
9419
|
-
iconName:
|
|
9430
|
+
iconName: Ni[o],
|
|
9420
9431
|
id: n,
|
|
9421
9432
|
label: "",
|
|
9422
9433
|
menuItems: f,
|
|
@@ -9425,7 +9436,7 @@ var Tr = {
|
|
|
9425
9436
|
offsetValue: 0,
|
|
9426
9437
|
preferredPlacement: "top"
|
|
9427
9438
|
}));
|
|
9428
|
-
},
|
|
9439
|
+
}, Fi = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: d, ...f }) => {
|
|
9429
9440
|
let [p, g] = h(null), [_, v] = h(!1), y = m([]), b = m([]), S = u(), E = "pds-user-menu", O = `${E}__menu`, { context: M, floatingStyles: N, refs: P } = j({
|
|
9430
9441
|
placement: "bottom-end",
|
|
9431
9442
|
open: _,
|
|
@@ -9435,7 +9446,8 @@ var Tr = {
|
|
|
9435
9446
|
w(),
|
|
9436
9447
|
D()
|
|
9437
9448
|
],
|
|
9438
|
-
whileElementsMounted: C
|
|
9449
|
+
whileElementsMounted: C,
|
|
9450
|
+
strategy: "fixed"
|
|
9439
9451
|
}), z = k(M, { event: "mousedown" }), B = A(M), V = L(M, { role: "menu" }), H = m([]), { getFloatingProps: U, getItemProps: ee, getReferenceProps: W } = F([
|
|
9440
9452
|
B,
|
|
9441
9453
|
V,
|
|
@@ -9469,7 +9481,7 @@ var Tr = {
|
|
|
9469
9481
|
}, /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, c)), re = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9470
9482
|
className: `${E}__theme-row`,
|
|
9471
9483
|
role: "presentation"
|
|
9472
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9484
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(Pi, {
|
|
9473
9485
|
id: `${S}-theme`,
|
|
9474
9486
|
labelStrings: s,
|
|
9475
9487
|
onChange: i,
|
|
@@ -9548,7 +9560,7 @@ var Tr = {
|
|
|
9548
9560
|
className: O,
|
|
9549
9561
|
role: "menu"
|
|
9550
9562
|
}, ne, /* @__PURE__ */ e.createElement("li", { role: "separator" }), re, oe)))));
|
|
9551
|
-
},
|
|
9563
|
+
}, Ii = ({ 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 }) => {
|
|
9552
9564
|
let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", S = `${b}__menu`, C = y ? `${S}--scroll` : null, { activeIndex: w, floatingStyles: T, getFloatingProps: E, getItemProps: D, getReferenceProps: O, isMounted: k, listRef: A, refs: j, setIsOpen: M, transitionStyles: N } = _n({
|
|
9553
9565
|
enableTypeahead: !y,
|
|
9554
9566
|
role: "menu"
|
|
@@ -9635,7 +9647,7 @@ var Tr = {
|
|
|
9635
9647
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9636
9648
|
className: Z([b, n]),
|
|
9637
9649
|
...u
|
|
9638
|
-
}, /* @__PURE__ */ e.createElement(An, { label: H }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9650
|
+
}, /* @__PURE__ */ e.createElement(An, { label: H }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9639
9651
|
hasClearButton: !0,
|
|
9640
9652
|
id: "workspace-filter-mobile",
|
|
9641
9653
|
label: i,
|
|
@@ -9672,7 +9684,7 @@ var Tr = {
|
|
|
9672
9684
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9673
9685
|
},
|
|
9674
9686
|
...E()
|
|
9675
|
-
}, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9687
|
+
}, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9676
9688
|
hasClearButton: !0,
|
|
9677
9689
|
id: "workspace-filter",
|
|
9678
9690
|
label: i,
|
|
@@ -9688,12 +9700,12 @@ var Tr = {
|
|
|
9688
9700
|
className: `pds-dropdown__heading ${b}__item-heading`,
|
|
9689
9701
|
role: "presentation"
|
|
9690
9702
|
}, o), z.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : z), V)));
|
|
9691
|
-
},
|
|
9703
|
+
}, Li = {
|
|
9692
9704
|
info: "circleInfo",
|
|
9693
9705
|
warning: "triangleExclamation",
|
|
9694
9706
|
critical: "diamondExclamation",
|
|
9695
9707
|
discovery: "bullhorn"
|
|
9696
|
-
},
|
|
9708
|
+
}, Ri = 200, zi = 50, Bi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9697
9709
|
...jn,
|
|
9698
9710
|
neutral: "Notice"
|
|
9699
9711
|
}, ...c }) => {
|
|
@@ -9712,21 +9724,21 @@ var Tr = {
|
|
|
9712
9724
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9713
9725
|
m(d[0].id), setTimeout(() => {
|
|
9714
9726
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9715
|
-
},
|
|
9727
|
+
}, Ri);
|
|
9716
9728
|
}, k = () => {
|
|
9717
9729
|
y({
|
|
9718
9730
|
[d[0].id]: 502,
|
|
9719
9731
|
[d[b - 1].id]: 501
|
|
9720
9732
|
}), setTimeout(() => {
|
|
9721
9733
|
m(d[0].id);
|
|
9722
|
-
},
|
|
9734
|
+
}, zi), setTimeout(() => {
|
|
9723
9735
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9724
|
-
},
|
|
9736
|
+
}, Ri);
|
|
9725
9737
|
}, A = (t, n) => {
|
|
9726
9738
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: l, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, y = (e) => {
|
|
9727
9739
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9728
9740
|
l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9729
|
-
},
|
|
9741
|
+
}, Ri);
|
|
9730
9742
|
}, b = v[a] ?? E(n);
|
|
9731
9743
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9732
9744
|
key: a,
|
|
@@ -9741,7 +9753,7 @@ var Tr = {
|
|
|
9741
9753
|
style: { zIndex: b }
|
|
9742
9754
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9743
9755
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9744
|
-
iconName: d === "neutral" ? r :
|
|
9756
|
+
iconName: d === "neutral" ? r : Li[d],
|
|
9745
9757
|
size: u ? "l" : "m"
|
|
9746
9758
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9747
9759
|
className: `${x}__dismiss-button`,
|
|
@@ -9772,12 +9784,12 @@ var Tr = {
|
|
|
9772
9784
|
onClick: O,
|
|
9773
9785
|
size: "m"
|
|
9774
9786
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
9775
|
-
},
|
|
9787
|
+
}, Vi = {
|
|
9776
9788
|
info: "circleInfo",
|
|
9777
9789
|
warning: "triangleExclamation",
|
|
9778
9790
|
success: "circleCheck",
|
|
9779
9791
|
critical: "diamondExclamation"
|
|
9780
|
-
},
|
|
9792
|
+
}, Hi = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
9781
9793
|
...jn,
|
|
9782
9794
|
working: "Working"
|
|
9783
9795
|
}, ...o }) => {
|
|
@@ -9798,16 +9810,16 @@ var Tr = {
|
|
|
9798
9810
|
role: l,
|
|
9799
9811
|
...o
|
|
9800
9812
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9801
|
-
iconName: `${i}` in
|
|
9813
|
+
iconName: `${i}` in Vi ? Vi[i] : Vi.info,
|
|
9802
9814
|
size: "m"
|
|
9803
9815
|
})), /* @__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)));
|
|
9804
|
-
},
|
|
9816
|
+
}, Ui = {
|
|
9805
9817
|
info: "circleInfo",
|
|
9806
9818
|
warning: "triangleExclamation",
|
|
9807
9819
|
success: "circleCheck",
|
|
9808
9820
|
critical: "diamondExclamation",
|
|
9809
9821
|
discovery: "squareQuestion"
|
|
9810
|
-
},
|
|
9822
|
+
}, Wi = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: u, type: d = "info", typeLabels: f = jn, ...p }) => {
|
|
9811
9823
|
let h = r === "marketing", g = m(null), _ = m(void 0), v = "pds-section-message", y = {
|
|
9812
9824
|
error: `${v}--error`,
|
|
9813
9825
|
success: `${v}--success`,
|
|
@@ -9844,7 +9856,7 @@ var Tr = {
|
|
|
9844
9856
|
role: S,
|
|
9845
9857
|
...p
|
|
9846
9858
|
}, /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9847
|
-
iconName: `${d}` in
|
|
9859
|
+
iconName: `${d}` in Ui ? Ui[d] : Ui.info,
|
|
9848
9860
|
size: h ? "xl" : "l"
|
|
9849
9861
|
})), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), u && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, u), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, w))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${v}__actions` }, n && /* @__PURE__ */ e.createElement(un, {
|
|
9850
9862
|
...n,
|
|
@@ -9857,10 +9869,10 @@ var Tr = {
|
|
|
9857
9869
|
onClick: D,
|
|
9858
9870
|
size: h ? "l" : "m"
|
|
9859
9871
|
})));
|
|
9860
|
-
},
|
|
9872
|
+
}, Gi = 3e4, Ki = {
|
|
9861
9873
|
pause: "Pause notification",
|
|
9862
9874
|
resume: "Resume notification"
|
|
9863
|
-
},
|
|
9875
|
+
}, qi = r({ labelStrings: Ki }), Ji = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(hn, {
|
|
9864
9876
|
ariaLabel: t || "Close",
|
|
9865
9877
|
className: "pds-toast__close-button",
|
|
9866
9878
|
onClick: (e) => {
|
|
@@ -9868,13 +9880,13 @@ var Tr = {
|
|
|
9868
9880
|
},
|
|
9869
9881
|
size: "s",
|
|
9870
9882
|
tabIndex: 0
|
|
9871
|
-
}),
|
|
9883
|
+
}), Yi = ({ className: t, labelStrings: n = Ki, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9872
9884
|
let a = Z(["pds-toaster", t]);
|
|
9873
|
-
return /* @__PURE__ */ e.createElement(
|
|
9885
|
+
return /* @__PURE__ */ e.createElement(qi.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(Ce, {
|
|
9874
9886
|
newestOnTop: !0,
|
|
9875
9887
|
autoClose: !1,
|
|
9876
9888
|
className: a,
|
|
9877
|
-
closeButton:
|
|
9889
|
+
closeButton: Ji,
|
|
9878
9890
|
draggable: !1,
|
|
9879
9891
|
icon: !1,
|
|
9880
9892
|
limit: r,
|
|
@@ -9884,25 +9896,25 @@ var Tr = {
|
|
|
9884
9896
|
role: "status",
|
|
9885
9897
|
transition: Se
|
|
9886
9898
|
}));
|
|
9887
|
-
},
|
|
9899
|
+
}, Xi = {
|
|
9888
9900
|
info: "circleInfo",
|
|
9889
9901
|
success: "circleCheck",
|
|
9890
9902
|
warning: "triangleExclamation",
|
|
9891
9903
|
critical: "diamondExclamation"
|
|
9892
|
-
},
|
|
9904
|
+
}, Zi = {
|
|
9893
9905
|
info: "Information",
|
|
9894
9906
|
success: "Success",
|
|
9895
9907
|
warning: "Warning",
|
|
9896
9908
|
critical: "Critical",
|
|
9897
9909
|
working: "Working..."
|
|
9898
|
-
},
|
|
9910
|
+
}, Qi = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Zi }) => {
|
|
9899
9911
|
let l = "pds-toast", u = {
|
|
9900
9912
|
critical: `${l}--critical`,
|
|
9901
9913
|
info: `${l}--info`,
|
|
9902
9914
|
success: `${l}--success`,
|
|
9903
9915
|
warning: `${l}--warning`,
|
|
9904
9916
|
working: `${l}--working`
|
|
9905
|
-
}, d = `${s[o]} `, { labelStrings: f } = c(
|
|
9917
|
+
}, d = `${s[o]} `, { labelStrings: f } = c(qi), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
9906
9918
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9907
9919
|
className: Z([
|
|
9908
9920
|
l,
|
|
@@ -9912,7 +9924,7 @@ var Tr = {
|
|
|
9912
9924
|
id: i
|
|
9913
9925
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9914
9926
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9915
|
-
iconName:
|
|
9927
|
+
iconName: Xi[o],
|
|
9916
9928
|
size: "l"
|
|
9917
9929
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9918
9930
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -9927,11 +9939,11 @@ var Tr = {
|
|
|
9927
9939
|
iconName: p ? "play" : "pause",
|
|
9928
9940
|
size: "m"
|
|
9929
9941
|
})));
|
|
9930
|
-
},
|
|
9942
|
+
}, $i = /* @__PURE__ */ function(e) {
|
|
9931
9943
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9932
|
-
}({}),
|
|
9944
|
+
}({}), ea = () => [
|
|
9933
9945
|
(t, n, r = {}) => {
|
|
9934
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
9946
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(Gi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Qi, {
|
|
9935
9947
|
autoCloseDuration: a || void 0,
|
|
9936
9948
|
toastId: i,
|
|
9937
9949
|
type: t
|
|
@@ -9956,7 +9968,7 @@ var Tr = {
|
|
|
9956
9968
|
enter: "pds-toast--bounceInPlace",
|
|
9957
9969
|
exit: "pds-toast--slideOut"
|
|
9958
9970
|
})
|
|
9959
|
-
],
|
|
9971
|
+
], ta = ({ 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, ..._ }) => {
|
|
9960
9972
|
let v = Xe(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 } = Lt();
|
|
9961
9973
|
l(() => {
|
|
9962
9974
|
c ? E(!0) : O(!1);
|
|
@@ -10021,7 +10033,7 @@ var Tr = {
|
|
|
10021
10033
|
onClick: M,
|
|
10022
10034
|
size: "m"
|
|
10023
10035
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10024
|
-
},
|
|
10036
|
+
}, na = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
|
|
10025
10037
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = Lt();
|
|
10026
10038
|
l(() => {
|
|
10027
10039
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10086,7 +10098,7 @@ var Tr = {
|
|
|
10086
10098
|
}),
|
|
10087
10099
|
zIndex: 9999
|
|
10088
10100
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10089
|
-
},
|
|
10101
|
+
}, ra = ({ 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 }) => {
|
|
10090
10102
|
let m = Xe(n), g = m.__unslotted, _ = m.footer, v = "pds-modal", x = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10091
10103
|
maxHeight: a,
|
|
10092
10104
|
paddingInlineEnd: "1rem",
|
|
@@ -10162,27 +10174,27 @@ var Tr = {
|
|
|
10162
10174
|
className: `${v}__content`,
|
|
10163
10175
|
style: S
|
|
10164
10176
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10165
|
-
},
|
|
10177
|
+
}, ia = (e, t) => {
|
|
10166
10178
|
let n = t - e + 1;
|
|
10167
10179
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10168
|
-
},
|
|
10180
|
+
}, aa = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
10169
10181
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10170
|
-
if (a >= i) return
|
|
10182
|
+
if (a >= i) return ia(1, i);
|
|
10171
10183
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10172
10184
|
if (!l && u) return [
|
|
10173
|
-
...
|
|
10185
|
+
...ia(1, 3 + 2 * e),
|
|
10174
10186
|
"...",
|
|
10175
10187
|
i
|
|
10176
10188
|
];
|
|
10177
10189
|
if (l && !u) return [
|
|
10178
10190
|
1,
|
|
10179
10191
|
"...",
|
|
10180
|
-
...
|
|
10192
|
+
...ia(i - (3 + 2 * e) + 1, i)
|
|
10181
10193
|
];
|
|
10182
10194
|
if (l && u) return [
|
|
10183
10195
|
1,
|
|
10184
10196
|
"...",
|
|
10185
|
-
...
|
|
10197
|
+
...ia(s, c),
|
|
10186
10198
|
"...",
|
|
10187
10199
|
o
|
|
10188
10200
|
];
|
|
@@ -10191,11 +10203,11 @@ var Tr = {
|
|
|
10191
10203
|
n,
|
|
10192
10204
|
e,
|
|
10193
10205
|
t
|
|
10194
|
-
]),
|
|
10206
|
+
]), oa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10195
10207
|
previous: "Go to previous page",
|
|
10196
10208
|
next: "Go to next page"
|
|
10197
10209
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10198
|
-
let f =
|
|
10210
|
+
let f = aa({
|
|
10199
10211
|
currentPage: r,
|
|
10200
10212
|
totalItemCount: u,
|
|
10201
10213
|
bufferCount: t,
|
|
@@ -10249,7 +10261,7 @@ var Tr = {
|
|
|
10249
10261
|
size: "m"
|
|
10250
10262
|
}))
|
|
10251
10263
|
}))));
|
|
10252
|
-
},
|
|
10264
|
+
}, sa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10253
10265
|
next: "Next",
|
|
10254
10266
|
previous: "Previous"
|
|
10255
10267
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10278,7 +10290,7 @@ var Tr = {
|
|
|
10278
10290
|
iconName: "angleRight",
|
|
10279
10291
|
size: "m"
|
|
10280
10292
|
}))));
|
|
10281
|
-
},
|
|
10293
|
+
}, ca = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10282
10294
|
next: "Go to next page",
|
|
10283
10295
|
of: "of",
|
|
10284
10296
|
page: "Page",
|
|
@@ -10314,7 +10326,7 @@ var Tr = {
|
|
|
10314
10326
|
className: "visually-hidden",
|
|
10315
10327
|
id: "pagination-compact",
|
|
10316
10328
|
level: r
|
|
10317
|
-
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10329
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ti, {
|
|
10318
10330
|
className: C ? `${b}__page-input--error` : void 0,
|
|
10319
10331
|
id: m,
|
|
10320
10332
|
inputProps: {
|
|
@@ -10382,7 +10394,7 @@ var Tr = {
|
|
|
10382
10394
|
size: "m"
|
|
10383
10395
|
}))
|
|
10384
10396
|
})));
|
|
10385
|
-
},
|
|
10397
|
+
}, la = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10386
10398
|
let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
|
|
10387
10399
|
return l(() => {
|
|
10388
10400
|
let e = v.current;
|
|
@@ -10406,7 +10418,7 @@ var Tr = {
|
|
|
10406
10418
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10407
10419
|
iconName: "angleDown"
|
|
10408
10420
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10409
|
-
},
|
|
10421
|
+
}, ua = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10410
10422
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10411
10423
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10412
10424
|
className: Z([
|
|
@@ -10416,7 +10428,7 @@ var Tr = {
|
|
|
10416
10428
|
]),
|
|
10417
10429
|
...i
|
|
10418
10430
|
}, t);
|
|
10419
|
-
},
|
|
10431
|
+
}, da = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10420
10432
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10421
10433
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10422
10434
|
className: Z([
|
|
@@ -10426,7 +10438,7 @@ var Tr = {
|
|
|
10426
10438
|
]),
|
|
10427
10439
|
...a
|
|
10428
10440
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10429
|
-
},
|
|
10441
|
+
}, fa = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10430
10442
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10431
10443
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10432
10444
|
className: Z([
|
|
@@ -10438,7 +10450,7 @@ var Tr = {
|
|
|
10438
10450
|
]),
|
|
10439
10451
|
...o
|
|
10440
10452
|
}, n);
|
|
10441
|
-
},
|
|
10453
|
+
}, pa = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10442
10454
|
let o = "pds-panel-row", [s, c] = h(!1), l = Xe(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
|
|
10443
10455
|
c((e) => !e);
|
|
10444
10456
|
};
|
|
@@ -10469,7 +10481,10 @@ var Tr = {
|
|
|
10469
10481
|
opacity: "0"
|
|
10470
10482
|
}
|
|
10471
10483
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10472
|
-
},
|
|
10484
|
+
}, ma = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10485
|
+
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10486
|
+
...r
|
|
10487
|
+
}, t), ha = /* @__PURE__ */ e.createElement("svg", {
|
|
10473
10488
|
"aria-label": "Pantheon",
|
|
10474
10489
|
fill: "none",
|
|
10475
10490
|
focusable: "false",
|
|
@@ -10531,7 +10546,7 @@ var Tr = {
|
|
|
10531
10546
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10532
10547
|
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",
|
|
10533
10548
|
fill: "var(--pds-color-foreground-default)"
|
|
10534
|
-
})),
|
|
10549
|
+
})), ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10535
10550
|
"aria-label": "Pantheon",
|
|
10536
10551
|
fill: "none",
|
|
10537
10552
|
focusable: "false",
|
|
@@ -10566,7 +10581,7 @@ var Tr = {
|
|
|
10566
10581
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10567
10582
|
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",
|
|
10568
10583
|
fill: "var(--pds-color-foreground-default)"
|
|
10569
|
-
})),
|
|
10584
|
+
})), _a = /* @__PURE__ */ e.createElement("svg", {
|
|
10570
10585
|
"aria-label": "Pantheon",
|
|
10571
10586
|
fill: "none",
|
|
10572
10587
|
focusable: "false",
|
|
@@ -10601,17 +10616,17 @@ var Tr = {
|
|
|
10601
10616
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10602
10617
|
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",
|
|
10603
10618
|
fill: "var(--pds-color-foreground-default)"
|
|
10604
|
-
})),
|
|
10619
|
+
})), va = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10605
10620
|
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;
|
|
10606
10621
|
switch (r) {
|
|
10607
10622
|
case "full":
|
|
10608
|
-
f =
|
|
10623
|
+
f = ha;
|
|
10609
10624
|
break;
|
|
10610
10625
|
case "icon":
|
|
10611
|
-
f =
|
|
10626
|
+
f = ga;
|
|
10612
10627
|
break;
|
|
10613
10628
|
case "wordmark":
|
|
10614
|
-
f =
|
|
10629
|
+
f = _a;
|
|
10615
10630
|
break;
|
|
10616
10631
|
}
|
|
10617
10632
|
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, {
|
|
@@ -10628,7 +10643,7 @@ var Tr = {
|
|
|
10628
10643
|
]),
|
|
10629
10644
|
...s
|
|
10630
10645
|
}, i ? h : f);
|
|
10631
|
-
},
|
|
10646
|
+
}, ya = 8, ba = 14, xa = ({ 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: _ = "circleInfo", triggerIconSize: b = "m", ...E }) => {
|
|
10632
10647
|
let [O, M] = h(d);
|
|
10633
10648
|
l(() => {
|
|
10634
10649
|
M(d);
|
|
@@ -10647,19 +10662,20 @@ var Tr = {
|
|
|
10647
10662
|
D({ padding: 8 }),
|
|
10648
10663
|
S({ element: B })
|
|
10649
10664
|
],
|
|
10650
|
-
whileElementsMounted: C
|
|
10665
|
+
whileElementsMounted: C,
|
|
10666
|
+
strategy: "fixed"
|
|
10651
10667
|
}), W = () => {
|
|
10652
10668
|
M(!1), c && c();
|
|
10653
10669
|
}, { getFloatingProps: G, getReferenceProps: te } = F([
|
|
10654
10670
|
k(V),
|
|
10655
10671
|
A(V),
|
|
10656
10672
|
L(V)
|
|
10657
|
-
]), K = U.arrow?.x ?? 0, ne = U.arrow?.y ?? 0, re = K +
|
|
10673
|
+
]), K = U.arrow?.x ?? 0, ne = U.arrow?.y ?? 0, re = K + ba / 2, ie = ne + ya, { isMounted: q } = R(V, {
|
|
10658
10674
|
initial: { transform: "scale(0)" },
|
|
10659
10675
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10660
|
-
top: `${re}px calc(100% + ${
|
|
10676
|
+
top: `${re}px calc(100% + ${ya}px)`,
|
|
10661
10677
|
bottom: `${re}px -8px`,
|
|
10662
|
-
left: `calc(100% + ${
|
|
10678
|
+
left: `calc(100% + ${ya}px) ${ie}px`,
|
|
10663
10679
|
right: `-8px ${ie}px`
|
|
10664
10680
|
}[e] })
|
|
10665
10681
|
});
|
|
@@ -10691,23 +10707,23 @@ var Tr = {
|
|
|
10691
10707
|
className: `${P}__arrow`,
|
|
10692
10708
|
context: V,
|
|
10693
10709
|
fill: "var(--pds-color-surface-default)",
|
|
10694
|
-
height:
|
|
10710
|
+
height: ya,
|
|
10695
10711
|
stroke: "var(--pds-color-popover-border)",
|
|
10696
10712
|
strokeWidth: 1,
|
|
10697
10713
|
tipRadius: 0,
|
|
10698
|
-
width:
|
|
10714
|
+
width: ba
|
|
10699
10715
|
}), /* @__PURE__ */ e.createElement("div", { className: `${P}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${P}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${P}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${P}__close-wrapper` }, /* @__PURE__ */ e.createElement(hn, {
|
|
10700
10716
|
ariaLabel: r,
|
|
10701
10717
|
onClick: W,
|
|
10702
10718
|
size: "s"
|
|
10703
10719
|
})))))));
|
|
10704
|
-
},
|
|
10720
|
+
}, Sa = {
|
|
10705
10721
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10706
10722
|
info: "--pds-color-status-info-fill",
|
|
10707
10723
|
success: "--pds-color-status-success-fill",
|
|
10708
10724
|
warning: "--pds-color-status-warning-fill",
|
|
10709
10725
|
critical: "--pds-color-status-critical-fill"
|
|
10710
|
-
},
|
|
10726
|
+
}, Ca = ({ className: t, colorBreakpoints: n = [{
|
|
10711
10727
|
colorType: "info",
|
|
10712
10728
|
percentage: 0
|
|
10713
10729
|
}, {
|
|
@@ -10728,7 +10744,7 @@ var Tr = {
|
|
|
10728
10744
|
id: m
|
|
10729
10745
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10730
10746
|
className: `${h}__percentage`,
|
|
10731
|
-
style: { color: `hsl(from var(${
|
|
10747
|
+
style: { color: `hsl(from var(${Sa[y]}) h s calc(l - 7))` }
|
|
10732
10748
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10733
10749
|
"aria-labelledby": m,
|
|
10734
10750
|
"aria-valuenow": v,
|
|
@@ -10738,16 +10754,16 @@ var Tr = {
|
|
|
10738
10754
|
className: `${h}__bar`,
|
|
10739
10755
|
style: {
|
|
10740
10756
|
width: `${v}%`,
|
|
10741
|
-
backgroundColor: `var(${
|
|
10757
|
+
backgroundColor: `var(${Sa[y]})`
|
|
10742
10758
|
}
|
|
10743
10759
|
}))), S && b);
|
|
10744
|
-
},
|
|
10760
|
+
}, wa = {
|
|
10745
10761
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10746
10762
|
info: "--pds-color-status-info-fill",
|
|
10747
10763
|
success: "--pds-color-status-success-fill",
|
|
10748
10764
|
warning: "--pds-color-status-warning-fill",
|
|
10749
10765
|
critical: "--pds-color-status-critical-fill"
|
|
10750
|
-
},
|
|
10766
|
+
}, Ta = ({ className: t, colorBreakpoints: n = [{
|
|
10751
10767
|
colorType: "info",
|
|
10752
10768
|
percentage: 0
|
|
10753
10769
|
}, {
|
|
@@ -10796,7 +10812,7 @@ var Tr = {
|
|
|
10796
10812
|
strokeDasharray: x,
|
|
10797
10813
|
strokeDashoffset: S,
|
|
10798
10814
|
strokeWidth: y,
|
|
10799
|
-
style: { stroke: `var(${
|
|
10815
|
+
style: { stroke: `var(${wa[C]})` },
|
|
10800
10816
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10801
10817
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10802
10818
|
alignmentBaseline: "middle",
|
|
@@ -10806,22 +10822,22 @@ var Tr = {
|
|
|
10806
10822
|
x: "50%",
|
|
10807
10823
|
y: "51%"
|
|
10808
10824
|
}, w))));
|
|
10809
|
-
},
|
|
10825
|
+
}, Ea = {
|
|
10810
10826
|
of: "of",
|
|
10811
10827
|
showing: "Showing",
|
|
10812
10828
|
unitPlural: "results",
|
|
10813
10829
|
unitSingular: "result"
|
|
10814
|
-
},
|
|
10830
|
+
}, Da = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Oa = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
10815
10831
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
10816
|
-
...
|
|
10832
|
+
...Ea,
|
|
10817
10833
|
...i
|
|
10818
|
-
}, p = n !== void 0, m =
|
|
10834
|
+
}, p = n !== void 0, m = Da(r, f, d, a);
|
|
10819
10835
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10820
10836
|
"aria-live": "polite",
|
|
10821
10837
|
className: Z([s, t ?? ""]),
|
|
10822
10838
|
...o
|
|
10823
10839
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && `${u} `, /* @__PURE__ */ e.createElement("span", { className: c }, n), ` ${l} `), /* @__PURE__ */ e.createElement("span", { className: c }, r), ` ${m}`));
|
|
10824
|
-
},
|
|
10840
|
+
}, ka = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10825
10841
|
"privacy",
|
|
10826
10842
|
"dataSubjectRequest",
|
|
10827
10843
|
"cookiePolicy",
|
|
@@ -10839,7 +10855,7 @@ var Tr = {
|
|
|
10839
10855
|
]),
|
|
10840
10856
|
...c
|
|
10841
10857
|
}, /* @__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"))));
|
|
10842
|
-
},
|
|
10858
|
+
}, Aa = ({ className: t, option: n, ...r }) => {
|
|
10843
10859
|
let i = "pds-site-option-display", a = n.type ? Ln[n.type] : "boltSolid", o = m(null), [s] = De(o), c = s.width / 16 - 7.5, l, u;
|
|
10844
10860
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10845
10861
|
let d = /* @__PURE__ */ e.createElement(rn, {
|
|
@@ -10862,7 +10878,7 @@ var Tr = {
|
|
|
10862
10878
|
className: `${i}__status`,
|
|
10863
10879
|
style: { pointerEvents: "none" }
|
|
10864
10880
|
}, d));
|
|
10865
|
-
},
|
|
10881
|
+
}, ja = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10866
10882
|
clearButton: "Clear input text",
|
|
10867
10883
|
inputInstructions: "Type to search options"
|
|
10868
10884
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10874,7 +10890,7 @@ var Tr = {
|
|
|
10874
10890
|
id: n,
|
|
10875
10891
|
label: i,
|
|
10876
10892
|
value: r ?? i,
|
|
10877
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10893
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Aa, { option: t }),
|
|
10878
10894
|
siteData: t
|
|
10879
10895
|
};
|
|
10880
10896
|
});
|
|
@@ -10882,7 +10898,7 @@ var Tr = {
|
|
|
10882
10898
|
className: Z([_, t ?? ""]),
|
|
10883
10899
|
id: r,
|
|
10884
10900
|
...p
|
|
10885
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
10901
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(Br, {
|
|
10886
10902
|
hasClearButton: !0,
|
|
10887
10903
|
hasSearchShortcut: !0,
|
|
10888
10904
|
className: `${_}__combobox`,
|
|
@@ -10903,7 +10919,7 @@ var Tr = {
|
|
|
10903
10919
|
};
|
|
10904
10920
|
//#endregion
|
|
10905
10921
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10906
|
-
function
|
|
10922
|
+
function Ma(e, t, n = null, r = 0, i = []) {
|
|
10907
10923
|
return e.reduce((e, a, o) => {
|
|
10908
10924
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10909
10925
|
return e.push({
|
|
@@ -10915,10 +10931,10 @@ function Aa(e, t, n = null, r = 0, i = []) {
|
|
|
10915
10931
|
index: o,
|
|
10916
10932
|
isExpanded: c,
|
|
10917
10933
|
parentId: n
|
|
10918
|
-
}), s && c && a.children && e.push(...
|
|
10934
|
+
}), s && c && a.children && e.push(...Ma(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10919
10935
|
}, []);
|
|
10920
10936
|
}
|
|
10921
|
-
function
|
|
10937
|
+
function Na(e) {
|
|
10922
10938
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10923
10939
|
for (let i of e) {
|
|
10924
10940
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10931,28 +10947,28 @@ function ja(e) {
|
|
|
10931
10947
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10932
10948
|
}
|
|
10933
10949
|
}
|
|
10934
|
-
return
|
|
10950
|
+
return Pa(r);
|
|
10935
10951
|
}
|
|
10936
|
-
function
|
|
10952
|
+
function Pa(e) {
|
|
10937
10953
|
return e.map((e) => {
|
|
10938
10954
|
if (e.children?.length) return {
|
|
10939
10955
|
...e,
|
|
10940
|
-
children:
|
|
10956
|
+
children: Pa(e.children)
|
|
10941
10957
|
};
|
|
10942
10958
|
let { children: t, ...n } = e;
|
|
10943
10959
|
return n;
|
|
10944
10960
|
});
|
|
10945
10961
|
}
|
|
10946
|
-
function
|
|
10962
|
+
function Fa(e, t) {
|
|
10947
10963
|
for (let n of e) {
|
|
10948
10964
|
if (n.id === t) return n;
|
|
10949
10965
|
if (n.children) {
|
|
10950
|
-
let e =
|
|
10966
|
+
let e = Fa(n.children, t);
|
|
10951
10967
|
if (e) return e;
|
|
10952
10968
|
}
|
|
10953
10969
|
}
|
|
10954
10970
|
}
|
|
10955
|
-
function
|
|
10971
|
+
function Ia(e, t, n, r, i, a, o) {
|
|
10956
10972
|
let s = e.findIndex((e) => e.id === n);
|
|
10957
10973
|
if (s === -1) return 0;
|
|
10958
10974
|
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;
|
|
@@ -10960,7 +10976,7 @@ function Pa(e, t, n, r, i, a, o) {
|
|
|
10960
10976
|
}
|
|
10961
10977
|
//#endregion
|
|
10962
10978
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
10963
|
-
var
|
|
10979
|
+
var La = ({ children: t, className: n, columns: r, ...i }) => {
|
|
10964
10980
|
if (!r && !t) return null;
|
|
10965
10981
|
let a = r ? {
|
|
10966
10982
|
display: "grid",
|
|
@@ -10981,13 +10997,13 @@ var Fa = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
10981
10997
|
};
|
|
10982
10998
|
//#endregion
|
|
10983
10999
|
//#region src/components/SortableList/useSortableTree.ts
|
|
10984
|
-
function
|
|
11000
|
+
function Ra({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
10985
11001
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
10986
11002
|
t && !d.current && (u.current = {
|
|
10987
11003
|
items: i ? n : a,
|
|
10988
11004
|
expandedIds: c
|
|
10989
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
10990
|
-
let f = i ? n : a, g = p(() =>
|
|
11005
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ba("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11006
|
+
let f = i ? n : a, g = p(() => Ma(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
10991
11007
|
l((t) => {
|
|
10992
11008
|
let n = new Set(t);
|
|
10993
11009
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11005,7 +11021,7 @@ function Ia({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11005
11021
|
}, []),
|
|
11006
11022
|
flatNodes: g,
|
|
11007
11023
|
handleReorder: s((e) => {
|
|
11008
|
-
let t =
|
|
11024
|
+
let t = Na(e);
|
|
11009
11025
|
i || o(t), r?.(t);
|
|
11010
11026
|
}, [i, r]),
|
|
11011
11027
|
resetToSnapshot: s(() => {
|
|
@@ -11017,24 +11033,24 @@ function Ia({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11017
11033
|
toggleExpand: v
|
|
11018
11034
|
};
|
|
11019
11035
|
}
|
|
11020
|
-
var
|
|
11021
|
-
function
|
|
11022
|
-
|
|
11036
|
+
var za = /* @__PURE__ */ new Set();
|
|
11037
|
+
function Ba(e) {
|
|
11038
|
+
za.has(e) || (za.add(e), console.warn(e));
|
|
11023
11039
|
}
|
|
11024
11040
|
//#endregion
|
|
11025
11041
|
//#region src/components/SortableList/SortableList.tsx
|
|
11026
|
-
var
|
|
11042
|
+
var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = 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) {
|
|
11027
11043
|
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), ee = s((e, t) => {
|
|
11028
11044
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11029
11045
|
e.preventDefault();
|
|
11030
11046
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11031
11047
|
return B.current = i, z(i), {
|
|
11032
|
-
x: t.currentCoordinates.x + a *
|
|
11048
|
+
x: t.currentCoordinates.x + a * Va,
|
|
11033
11049
|
y: t.currentCoordinates.y
|
|
11034
11050
|
};
|
|
11035
11051
|
}
|
|
11036
11052
|
return Le(e, t);
|
|
11037
|
-
}, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } =
|
|
11053
|
+
}, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } = Ra({
|
|
11038
11054
|
defaultItems: a,
|
|
11039
11055
|
isDragEnabled: W,
|
|
11040
11056
|
items: g,
|
|
@@ -11061,9 +11077,9 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11061
11077
|
X,
|
|
11062
11078
|
J,
|
|
11063
11079
|
j
|
|
11064
|
-
]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ?
|
|
11080
|
+
]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ? Fa(G, String(T)) ?? null : null, [T, G]), de = p(() => {
|
|
11065
11081
|
let e = le?.depth ?? 0;
|
|
11066
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11082
|
+
return !T || !j || O || _ === 0 ? e : Ia(K, String(T), String(j), V * Va, Va, _);
|
|
11067
11083
|
}, [
|
|
11068
11084
|
T,
|
|
11069
11085
|
le,
|
|
@@ -11075,7 +11091,7 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11075
11091
|
]), fe = p(() => {
|
|
11076
11092
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
11077
11093
|
let e = K.findIndex((e) => e.id === T);
|
|
11078
|
-
return e === -1 ? null :
|
|
11094
|
+
return e === -1 ? null : Wa(K, e, de);
|
|
11079
11095
|
}, [
|
|
11080
11096
|
T,
|
|
11081
11097
|
K,
|
|
@@ -11121,19 +11137,19 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11121
11137
|
}, [K, J]), ge = s((e) => {
|
|
11122
11138
|
let t = e.delta.x;
|
|
11123
11139
|
if (P.current = t, A.current || _ === 0) return;
|
|
11124
|
-
let n = Math.floor(t /
|
|
11125
|
-
(n > r || n < r && t < r *
|
|
11140
|
+
let n = Math.floor(t / Va), r = U.current;
|
|
11141
|
+
(n > r || n < r && t < r * Va - Va * .4) && (U.current = n, H(n));
|
|
11126
11142
|
}, [_]), _e = s((e) => {
|
|
11127
11143
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11128
11144
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (te(L.current), L.current = null);
|
|
11129
|
-
let o = K.findIndex((e) => e.id === t.id), s = r ? i *
|
|
11145
|
+
let o = K.findIndex((e) => e.id === t.id), s = r ? i * Va : a * Va, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
11130
11146
|
if (r && i > 0 && c && o > 0 && (l = K[o - 1].id), !l || t.id === l) {
|
|
11131
11147
|
if (o === -1) return;
|
|
11132
11148
|
let e = K[o];
|
|
11133
11149
|
if (!e) return;
|
|
11134
|
-
let n =
|
|
11150
|
+
let n = Ia(K, String(t.id), String(t.id), s, Va, _);
|
|
11135
11151
|
if (n === e.depth) return;
|
|
11136
|
-
let r = [...K], [i] = r.splice(o, 1), a =
|
|
11152
|
+
let r = [...K], [i] = r.splice(o, 1), a = Wa(r, o, n);
|
|
11137
11153
|
if (a && Y.has(a)) return;
|
|
11138
11154
|
let c = {
|
|
11139
11155
|
...i,
|
|
@@ -11155,9 +11171,9 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11155
11171
|
let e = K[u];
|
|
11156
11172
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11157
11173
|
} else {
|
|
11158
|
-
g =
|
|
11174
|
+
g = Ia(d, String(t.id), String(l), s, Va, _, p.depth);
|
|
11159
11175
|
let e = d[h];
|
|
11160
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11176
|
+
v = e && e.depth === g - 1 ? String(l) : Wa(d, h, g);
|
|
11161
11177
|
}
|
|
11162
11178
|
if (v && Y.has(v)) return;
|
|
11163
11179
|
let y = {
|
|
@@ -11180,24 +11196,24 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11180
11196
|
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 && (te(L.current), L.current = null);
|
|
11181
11197
|
}, [te]), ye = p(() => ({
|
|
11182
11198
|
onDragStart({ active: e }) {
|
|
11183
|
-
let t = K.find((t) => t.id === e.id), n =
|
|
11199
|
+
let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
|
|
11184
11200
|
return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? K.indexOf(t) + 1 : "?"} of ${K.length} at depth ${t?.depth ?? 0}.`;
|
|
11185
11201
|
},
|
|
11186
11202
|
onDragOver({ active: e, over: t }) {
|
|
11187
11203
|
if (!t) return;
|
|
11188
11204
|
let n = K.findIndex((e) => e.id === t.id);
|
|
11189
11205
|
if (n === -1) return;
|
|
11190
|
-
let r =
|
|
11206
|
+
let r = Fa(G, String(e.id)), i = r ? c(r) : String(e.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
|
|
11191
11207
|
return `Moving ${i}. Target position: ${n + 1} of ${K.length} at depth ${a}.`;
|
|
11192
11208
|
},
|
|
11193
11209
|
onDragEnd({ active: e, over: t }) {
|
|
11194
|
-
let n =
|
|
11210
|
+
let n = Fa(G, String(e.id)), r = n ? c(n) : String(e.id);
|
|
11195
11211
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11196
|
-
let i = K.findIndex((e) => e.id === t.id), a =
|
|
11212
|
+
let i = K.findIndex((e) => e.id === t.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
|
|
11197
11213
|
return `${r} dropped at position ${i + 1} of ${K.length} at depth ${a}.`;
|
|
11198
11214
|
},
|
|
11199
11215
|
onDragCancel({ active: e }) {
|
|
11200
|
-
let t = K.find((t) => t.id === e.id), n =
|
|
11216
|
+
let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
|
|
11201
11217
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? K.indexOf(t) + 1 : "?"} of ${K.length}.`;
|
|
11202
11218
|
}
|
|
11203
11219
|
}), [
|
|
@@ -11205,14 +11221,14 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11205
11221
|
K,
|
|
11206
11222
|
c,
|
|
11207
11223
|
_
|
|
11208
|
-
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type ===
|
|
11224
|
+
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === La ? e.cloneElement(t, be) : t);
|
|
11209
11225
|
return /* @__PURE__ */ e.createElement(Oe, {
|
|
11210
11226
|
accessibility: {
|
|
11211
11227
|
announcements: ye,
|
|
11212
11228
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11213
11229
|
},
|
|
11214
11230
|
collisionDetection: me,
|
|
11215
|
-
measuring:
|
|
11231
|
+
measuring: Ha,
|
|
11216
11232
|
onDragCancel: ve,
|
|
11217
11233
|
onDragEnd: _e,
|
|
11218
11234
|
onDragMove: ge,
|
|
@@ -11287,14 +11303,14 @@ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = a(function({ chil
|
|
|
11287
11303
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
11288
11304
|
})()) : null));
|
|
11289
11305
|
});
|
|
11290
|
-
function
|
|
11306
|
+
function Wa(e, t, n) {
|
|
11291
11307
|
if (n === 0) return null;
|
|
11292
11308
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11293
11309
|
return null;
|
|
11294
11310
|
}
|
|
11295
11311
|
//#endregion
|
|
11296
11312
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11297
|
-
var
|
|
11313
|
+
var Ga = ({ 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 }) => {
|
|
11298
11314
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
|
|
11299
11315
|
attributes: {
|
|
11300
11316
|
role: "listitem",
|
|
@@ -11349,11 +11365,11 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11349
11365
|
key: t.id,
|
|
11350
11366
|
className: `${w}__cell`
|
|
11351
11367
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11352
|
-
},
|
|
11368
|
+
}, Ka = [
|
|
11353
11369
|
"default",
|
|
11354
11370
|
"working",
|
|
11355
11371
|
"checked"
|
|
11356
|
-
],
|
|
11372
|
+
], qa = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11357
11373
|
let l = {
|
|
11358
11374
|
checkForUpdates: "Check for updates",
|
|
11359
11375
|
checking: "Checking...",
|
|
@@ -11400,7 +11416,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11400
11416
|
triggerIconColor: "default",
|
|
11401
11417
|
triggerIconSize: "s"
|
|
11402
11418
|
}), t === "left" && g));
|
|
11403
|
-
},
|
|
11419
|
+
}, Ja = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11404
11420
|
let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
|
|
11405
11421
|
className: `${s}__spinner`,
|
|
11406
11422
|
size: "m"
|
|
@@ -11417,7 +11433,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11417
11433
|
]),
|
|
11418
11434
|
...a
|
|
11419
11435
|
}, r ? d : l);
|
|
11420
|
-
},
|
|
11436
|
+
}, Ya = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11421
11437
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11422
11438
|
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`;
|
|
11423
11439
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11435,7 +11451,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11435
11451
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11436
11452
|
...a
|
|
11437
11453
|
}, l);
|
|
11438
|
-
},
|
|
11454
|
+
}, Xa = ({ className: t, steps: n, translatableLabels: r = {
|
|
11439
11455
|
step: "Step",
|
|
11440
11456
|
completed: "completed",
|
|
11441
11457
|
hasError: "has an error",
|
|
@@ -11499,7 +11515,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11499
11515
|
key: t.id,
|
|
11500
11516
|
className: `${o}__step`,
|
|
11501
11517
|
id: `${t.id}--mobile`
|
|
11502
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11518
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ta, {
|
|
11503
11519
|
innerLabel: n,
|
|
11504
11520
|
label: "Step progress",
|
|
11505
11521
|
percentage: i,
|
|
@@ -11524,7 +11540,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11524
11540
|
"data-steps": d,
|
|
11525
11541
|
...i
|
|
11526
11542
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11527
|
-
},
|
|
11543
|
+
}, Za = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11528
11544
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11529
11545
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11530
11546
|
className: Z([...p]),
|
|
@@ -11550,14 +11566,14 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11550
11566
|
size: "s",
|
|
11551
11567
|
variant: "highlight"
|
|
11552
11568
|
})))));
|
|
11553
|
-
},
|
|
11569
|
+
}, Qa = ({ className: t, labelStrings: n = {
|
|
11554
11570
|
step: "Step",
|
|
11555
11571
|
completed: "completed",
|
|
11556
11572
|
hasError: "has an error"
|
|
11557
11573
|
}, steps: r, ...i }) => {
|
|
11558
11574
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11559
11575
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11560
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11576
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Za, {
|
|
11561
11577
|
key: `s${i}`,
|
|
11562
11578
|
_isFirstStep: c,
|
|
11563
11579
|
"aria-current": a ? "step" : null,
|
|
@@ -11578,7 +11594,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11578
11594
|
className: Z([a, t ?? ""]),
|
|
11579
11595
|
...i
|
|
11580
11596
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11581
|
-
},
|
|
11597
|
+
}, $a = ({ 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: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: ee, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: te, sortKey: K, sortOrder: ne, totalItemCount: re, ...ie }) => {
|
|
11582
11598
|
let q = "pds-table", ae = u(), oe = u(), J = m(null), Y = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = W.length > 0 || X && (re ?? 0) > 0, [ue, de] = h({
|
|
11583
11599
|
key: a ?? "",
|
|
11584
11600
|
order: a === void 0 ? "asc" : o
|
|
@@ -11699,7 +11715,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11699
11715
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), je(t, i));
|
|
11700
11716
|
} : void 0,
|
|
11701
11717
|
tabIndex: a ? 0 : void 0
|
|
11702
|
-
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11718
|
+
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
|
|
11703
11719
|
checked: Ee.has(i),
|
|
11704
11720
|
disabled: !s,
|
|
11705
11721
|
id: `${oe}-row-${i}`,
|
|
@@ -11721,7 +11737,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11721
11737
|
"aria-busy": E,
|
|
11722
11738
|
className: Z([q, t]),
|
|
11723
11739
|
...ie
|
|
11724
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11740
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
|
|
11725
11741
|
checked: Ue,
|
|
11726
11742
|
id: oe,
|
|
11727
11743
|
indeterminate: We,
|
|
@@ -11757,7 +11773,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11757
11773
|
showLabel: !1,
|
|
11758
11774
|
size: "s",
|
|
11759
11775
|
value: String(be)
|
|
11760
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11776
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(ca, {
|
|
11761
11777
|
currentPage: X ? i ?? 1 : fe,
|
|
11762
11778
|
itemsPerPage: be,
|
|
11763
11779
|
labelStrings: B,
|
|
@@ -11798,8 +11814,8 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11798
11814
|
size: "s",
|
|
11799
11815
|
variant: "standard"
|
|
11800
11816
|
}))))));
|
|
11801
|
-
return V ? /* @__PURE__ */ e.createElement(
|
|
11802
|
-
},
|
|
11817
|
+
return V ? /* @__PURE__ */ e.createElement(da, { padding: "none" }, Ze) : Ze;
|
|
11818
|
+
}, eo = [
|
|
11803
11819
|
" ",
|
|
11804
11820
|
"/",
|
|
11805
11821
|
".",
|
|
@@ -11817,7 +11833,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11817
11833
|
"=",
|
|
11818
11834
|
"|",
|
|
11819
11835
|
"~"
|
|
11820
|
-
],
|
|
11836
|
+
], to = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), no = (e) => {
|
|
11821
11837
|
let t = [];
|
|
11822
11838
|
return e.forEach((e) => {
|
|
11823
11839
|
let { id: n, innerText: r } = e;
|
|
@@ -11830,18 +11846,18 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11830
11846
|
title: r
|
|
11831
11847
|
});
|
|
11832
11848
|
}), t;
|
|
11833
|
-
},
|
|
11849
|
+
}, ro = (e, t, n) => {
|
|
11834
11850
|
let [r, i] = h([]);
|
|
11835
11851
|
return l(() => {
|
|
11836
11852
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11837
11853
|
let e = Array.from(document.querySelectorAll(r));
|
|
11838
11854
|
e.forEach((e) => {
|
|
11839
|
-
|
|
11840
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11855
|
+
eo.forEach((t) => {
|
|
11856
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(to(t), "g"), "-"));
|
|
11841
11857
|
});
|
|
11842
11858
|
}), e.forEach((e, t) => {
|
|
11843
11859
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11844
|
-
}), i(
|
|
11860
|
+
}), i(no(e));
|
|
11845
11861
|
};
|
|
11846
11862
|
a();
|
|
11847
11863
|
let o = document.getElementById(e);
|
|
@@ -11857,7 +11873,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11857
11873
|
t,
|
|
11858
11874
|
n
|
|
11859
11875
|
]), { nestedHeadings: r };
|
|
11860
|
-
},
|
|
11876
|
+
}, io = (e, t) => {
|
|
11861
11877
|
let [n, r] = h(void 0), i = m({});
|
|
11862
11878
|
return l(() => {
|
|
11863
11879
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11876,7 +11892,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11876
11892
|
o.disconnect(), r(void 0);
|
|
11877
11893
|
};
|
|
11878
11894
|
}, [e, t]), n;
|
|
11879
|
-
},
|
|
11895
|
+
}, ao = ({ 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", {
|
|
11880
11896
|
key: r.id,
|
|
11881
11897
|
className: `${n}__list-item`
|
|
11882
11898
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11892,8 +11908,8 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11892
11908
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11893
11909
|
href: `#${r.id}`,
|
|
11894
11910
|
onClick: (e) => i(e, r.id)
|
|
11895
|
-
}, r.title))))))),
|
|
11896
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11911
|
+
}, r.title))))))), oo = ({ 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 }) => {
|
|
11912
|
+
let d = "pds-toc", { nestedHeadings: f } = ro(c, o, u()), p = io(c, o), m = (e) => {
|
|
11897
11913
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11898
11914
|
}, h = (e) => {
|
|
11899
11915
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11911,13 +11927,13 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11911
11927
|
baseClass: d,
|
|
11912
11928
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11913
11929
|
level: i
|
|
11914
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11930
|
+
}, a), /* @__PURE__ */ e.createElement(ao, {
|
|
11915
11931
|
activeID: p,
|
|
11916
11932
|
baseClass: d,
|
|
11917
11933
|
headings: f,
|
|
11918
11934
|
onLinkClick: g
|
|
11919
11935
|
}));
|
|
11920
|
-
},
|
|
11936
|
+
}, so = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11921
11937
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11922
11938
|
l(() => {
|
|
11923
11939
|
a !== void 0 && d(a);
|
|
@@ -12031,7 +12047,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12031
12047
|
className: `${c}__panel-content`,
|
|
12032
12048
|
hidden: o !== u
|
|
12033
12049
|
}, r)))));
|
|
12034
|
-
},
|
|
12050
|
+
}, co = [
|
|
12035
12051
|
"orange",
|
|
12036
12052
|
"stone",
|
|
12037
12053
|
"gold",
|
|
@@ -12046,7 +12062,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12046
12062
|
"rose",
|
|
12047
12063
|
"red",
|
|
12048
12064
|
"silver"
|
|
12049
|
-
],
|
|
12065
|
+
], lo = [
|
|
12050
12066
|
"orange-solid",
|
|
12051
12067
|
"teal-solid",
|
|
12052
12068
|
"indigo-solid",
|
|
@@ -12057,8 +12073,8 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12057
12073
|
"critical-solid",
|
|
12058
12074
|
"info-solid",
|
|
12059
12075
|
"discovery-solid"
|
|
12060
|
-
],
|
|
12061
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
12076
|
+
], uo = (e) => co[parseInt(_(e), 16) % co.length], fo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, po = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
12077
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${uo(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
12062
12078
|
p((e) => !e);
|
|
12063
12079
|
}, b, x, S;
|
|
12064
12080
|
if (r && !n && o(r)) {
|
|
@@ -12080,7 +12096,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12080
12096
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12081
12097
|
className: `${m}__label`,
|
|
12082
12098
|
title: l
|
|
12083
|
-
}, u > 0 ?
|
|
12099
|
+
}, u > 0 ? fo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12084
12100
|
"aria-label": `${a}: ${l}`,
|
|
12085
12101
|
className: `${m}__remove`,
|
|
12086
12102
|
onClick: () => {
|
|
@@ -12092,7 +12108,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12092
12108
|
iconName: "xmark",
|
|
12093
12109
|
size: "m"
|
|
12094
12110
|
})) : null);
|
|
12095
|
-
},
|
|
12111
|
+
}, mo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12096
12112
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Xe(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
12097
12113
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12098
12114
|
className: Z([
|
|
@@ -12103,7 +12119,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12103
12119
|
]),
|
|
12104
12120
|
...a
|
|
12105
12121
|
}, /* @__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)));
|
|
12106
|
-
},
|
|
12122
|
+
}, ho = () => {
|
|
12107
12123
|
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");
|
|
12108
12124
|
return l(() => {
|
|
12109
12125
|
if (!e) return;
|
|
@@ -12114,7 +12130,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12114
12130
|
window.removeEventListener("resize", n);
|
|
12115
12131
|
};
|
|
12116
12132
|
}, []), n;
|
|
12117
|
-
},
|
|
12133
|
+
}, go = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
12118
12134
|
let [j, M] = h(u || !1);
|
|
12119
12135
|
l(() => {
|
|
12120
12136
|
M(u || !1);
|
|
@@ -12136,7 +12152,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12136
12152
|
return;
|
|
12137
12153
|
}
|
|
12138
12154
|
M(!j);
|
|
12139
|
-
}, U =
|
|
12155
|
+
}, U = ho();
|
|
12140
12156
|
l(() => {
|
|
12141
12157
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12142
12158
|
}, [U]);
|
|
@@ -12228,10 +12244,10 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12228
12244
|
n ?? ""
|
|
12229
12245
|
]),
|
|
12230
12246
|
...A
|
|
12231
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12247
|
+
}, /* @__PURE__ */ e.createElement(li, {
|
|
12232
12248
|
destination: I,
|
|
12233
12249
|
text: F.skipToContent
|
|
12234
|
-
}), K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(
|
|
12250
|
+
}), K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ta, {
|
|
12235
12251
|
...a,
|
|
12236
12252
|
isOpen: c,
|
|
12237
12253
|
placement: "left",
|
|
@@ -12239,7 +12255,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12239
12255
|
!e && c && b && b();
|
|
12240
12256
|
}
|
|
12241
12257
|
}, r));
|
|
12242
|
-
},
|
|
12258
|
+
}, _o = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12243
12259
|
let c = "pds-docs-layout", l = {
|
|
12244
12260
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12245
12261
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12257,7 +12273,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12257
12273
|
},
|
|
12258
12274
|
...s
|
|
12259
12275
|
}, 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));
|
|
12260
|
-
},
|
|
12276
|
+
}, vo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12261
12277
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
|
|
12262
12278
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12263
12279
|
className: Z([u, n ?? ""]),
|
|
@@ -12271,8 +12287,8 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12271
12287
|
},
|
|
12272
12288
|
...l
|
|
12273
12289
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12274
|
-
},
|
|
12275
|
-
let o = Xe(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(
|
|
12290
|
+
}, yo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12291
|
+
let o = Xe(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Si, {
|
|
12276
12292
|
className: Z([
|
|
12277
12293
|
l,
|
|
12278
12294
|
u,
|
|
@@ -12281,8 +12297,8 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12281
12297
|
width: "wide",
|
|
12282
12298
|
...a
|
|
12283
12299
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12284
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12285
|
-
},
|
|
12300
|
+
return i ? /* @__PURE__ */ e.createElement(da, null, d) : d;
|
|
12301
|
+
}, bo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12286
12302
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Xe(t), u = [
|
|
12287
12303
|
l["first-item"],
|
|
12288
12304
|
l["second-item"],
|
|
@@ -12300,7 +12316,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12300
12316
|
key: n,
|
|
12301
12317
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12302
12318
|
}, t)));
|
|
12303
|
-
},
|
|
12319
|
+
}, xo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12304
12320
|
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;
|
|
12305
12321
|
switch (i) {
|
|
12306
12322
|
case "equal":
|
|
@@ -12321,7 +12337,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12321
12337
|
]),
|
|
12322
12338
|
...o
|
|
12323
12339
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12324
|
-
},
|
|
12340
|
+
}, So = ({ 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 }) => {
|
|
12325
12341
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12326
12342
|
"--pds-flex-align-content": t,
|
|
12327
12343
|
"--pds-flex-align-items": n,
|
|
@@ -12347,7 +12363,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12347
12363
|
},
|
|
12348
12364
|
...g
|
|
12349
12365
|
}, r);
|
|
12350
|
-
},
|
|
12366
|
+
}, Co = (e) => {
|
|
12351
12367
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12352
12368
|
return l(() => {
|
|
12353
12369
|
if (!t) return;
|
|
@@ -12356,20 +12372,20 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12356
12372
|
};
|
|
12357
12373
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12358
12374
|
}, [e]), n;
|
|
12359
|
-
},
|
|
12375
|
+
}, wo = [
|
|
12360
12376
|
"light",
|
|
12361
12377
|
"dark",
|
|
12362
12378
|
"system"
|
|
12363
|
-
],
|
|
12379
|
+
], To = (e) => typeof e == "string" && wo.includes(e), Eo = r(null), Do = {
|
|
12364
12380
|
resolvedTheme: "light",
|
|
12365
12381
|
setTheme: () => {},
|
|
12366
12382
|
theme: "light"
|
|
12367
|
-
},
|
|
12368
|
-
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y =
|
|
12383
|
+
}, Oo = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, ko = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
|
|
12384
|
+
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = Co("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
|
|
12369
12385
|
l(() => {
|
|
12370
12386
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12371
12387
|
let e = window.localStorage.getItem(c);
|
|
12372
|
-
|
|
12388
|
+
To(e) && m(e);
|
|
12373
12389
|
} catch {}
|
|
12374
12390
|
}, []), l(() => {
|
|
12375
12391
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12389,20 +12405,20 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12389
12405
|
]),
|
|
12390
12406
|
theme: v
|
|
12391
12407
|
};
|
|
12392
|
-
return /* @__PURE__ */ e.createElement(
|
|
12408
|
+
return /* @__PURE__ */ e.createElement(Eo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Oo({
|
|
12393
12409
|
defaultTheme: n,
|
|
12394
12410
|
storageKey: c
|
|
12395
12411
|
}) } }), t);
|
|
12396
|
-
},
|
|
12412
|
+
}, Ao = () => c(Eo) ?? Do, jo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12397
12413
|
l(() => {
|
|
12398
12414
|
let e = document.documentElement, t = () => {
|
|
12399
12415
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12400
12416
|
};
|
|
12401
12417
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12402
12418
|
}, [r]);
|
|
12403
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12419
|
+
let a = n ? /* @__PURE__ */ e.createElement(ko, i, t) : t;
|
|
12404
12420
|
return /* @__PURE__ */ e.createElement(It, null, a);
|
|
12405
|
-
},
|
|
12421
|
+
}, Mo = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12406
12422
|
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}`;
|
|
12407
12423
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12408
12424
|
className: Z([
|
|
@@ -12416,7 +12432,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12416
12432
|
]),
|
|
12417
12433
|
...c
|
|
12418
12434
|
}, n);
|
|
12419
|
-
},
|
|
12435
|
+
}, No = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12420
12436
|
let f = "pds-grid-item", p = [
|
|
12421
12437
|
l ? `${f}--sm-${l}` : null,
|
|
12422
12438
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12435,7 +12451,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12435
12451
|
]),
|
|
12436
12452
|
...d
|
|
12437
12453
|
}, t);
|
|
12438
|
-
},
|
|
12454
|
+
}, Po = (e, t, n) => {
|
|
12439
12455
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: c = !1 } = n ?? {}, [u, d] = h(!1), f = s((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === c, [
|
|
12440
12456
|
r,
|
|
12441
12457
|
i,
|
|
@@ -12459,7 +12475,7 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12459
12475
|
m,
|
|
12460
12476
|
a
|
|
12461
12477
|
]), u;
|
|
12462
|
-
},
|
|
12478
|
+
}, Fo = () => {
|
|
12463
12479
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12464
12480
|
return l(() => {
|
|
12465
12481
|
if (!e) return;
|
|
@@ -12473,6 +12489,6 @@ var Ua = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12473
12489
|
}, []), t;
|
|
12474
12490
|
};
|
|
12475
12491
|
//#endregion
|
|
12476
|
-
export { Jn as ActionCard,
|
|
12492
|
+
export { Jn as ActionCard, go as AppLayout, rt as Avatar, it as Badge, Bi as Banner, _r as BarChart, on as BranchDiff, di as Breadcrumb, un as Button, dn as ButtonLink, bi as ButtonNav, si as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Lr as Checkbox, Rr as CheckboxFieldset, zr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Dr as CodeBlock, Br as Combobox, Hr as ComboboxMultiselect, Zn as CompactEmptyState, kr as ComparisonList, Si as Container, Kr as Datepicker, _o as DocsLayout, ta as Drawer, bn as Dropdown, xi as DropdownMenu, la as ExpansionPanel, ua as ExpansionPanelGroup, Nr as FileDiff, qr as FileUpload, kn as FilterButton, So as FlexContainer, na as FullScreenOverlay, jo as GlobalWrapper, Mo as Grid, No as GridItem, jr as HorizontalEmptyState, Q as Icon, pn as IconButton, Ir as IdentityBlock, Hi as InlineMessage, Jr as InputGroup, yr as LineChart, ci as LinkNewWindow, Gi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, ra as Modal, Ci as Navbar, oa as Pagination, sa as PaginationChapter, ca as PaginationCompact, da as Panel, fa as PanelList, pa as PanelRow, ma as PanelStack, va as PantheonLogo, Fr as PaymentIcon, ui as Picture, xr as PieChart, Hn as PlatformIcon, xa as Popover, Ca as ProgressBar, Ta as ProgressRing, Cr as ProportionBar, Yr as RadioGroup, Oa as ResultCount, Wn as SSOButton, Wi as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, wi as SideNav, Ei as SideNavGlobal, Ti as SideNavGlobalItem, vo as SidebarLayout, ka as SiteFooter, Oi as SiteMenu, Aa as SiteOptionDisplay, ja as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, li as Skiplink, Ua as SortableList, La as SortableListHeader, Ga as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, qa as StatusChecker, Ja as StatusIndicator, jn as StatusTypeLabels, Ya as StepList, Xa as Stepper, yo as StepperLayout, Xr as Switch, Ai as TabMenu, $a as Table, oo as TableOfContents, so as Tabs, po as Tag, Qr as TagsInput, an as Tally, ti as TextInput, $r as Textarea, Eo as ThemeContext, ko as ThemeContextProvider, Pi as ThemeSwitcher, bo as ThreeItemLayout, oi as TimeInput, Qi as Toast, $i as ToastType, Yi as Toaster, qi as ToasterContext, zt as Tooltip, Mi as TreeNav, xo as TwoItemLayout, Fi as UserMenu, mo as UtilityBar, Gn as UtilityButton, Mr as VerticalEmptyState, Qa as VerticalStepper, Ar as VideoEmbed, Ii as WorkspaceSelector, Wr as getPresetDateRange, Oo as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Ka as statusCheckerStates, co as tagColors, lo as tagSolidColors, ho as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Po as useKeyPress, Rt as useKeyboardShortcut, Co as useMediaQuery, Ao as useTheme, ea as useToast, Fo as useWindowWidth };
|
|
12477
12493
|
|
|
12478
12494
|
//# sourceMappingURL=index.js.map
|