@pantheon-systems/pds-toolkit-react 2.0.0-alpha.60 → 2.0.0-alpha.62
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/buttons/SSOButton/SSOButton.d.ts +9 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
- package/dist/css/component-css/pds-index.css +6 -5
- package/dist/css/component-css/pds-panel.css +2 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-utility-button.css +2 -2
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +22 -16
- package/dist/css/design-tokens/variables.global.css +1 -2
- package/dist/css/design-tokens/variables.light.css +13 -7
- package/dist/css/pds-components.css +6 -5
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +408 -398
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3978,23 +3978,30 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3978
3978
|
d: "M17 10.5V15H21.5C22.0312 15 22.5 15.4688 22.5 16C22.5 16.5625 22.0312 17 21.5 17H17V21.5C17 22.0625 16.5312 22.5 16 22.5C15.4375 22.5 15 22.0625 15 21.5V17H10.5C9.9375 17 9.5 16.5625 9.5 16C9.5 15.4688 9.9375 15 10.5 15H15V10.5C15 9.96875 15.4375 9.5 16 9.5C16.5312 9.5 17 9.96875 17 10.5Z",
|
|
3979
3979
|
fill: "var(--pds-color-foreground-reverse)"
|
|
3980
3980
|
}))
|
|
3981
|
-
}, Wn = ({ buttonType: t = "button", className: n = "", disabled: r = !1,
|
|
3982
|
-
let
|
|
3983
|
-
className: `${
|
|
3984
|
-
platformType:
|
|
3985
|
-
size:
|
|
3986
|
-
})
|
|
3987
|
-
return /* @__PURE__ */ e.createElement("button", {
|
|
3981
|
+
}, Wn = ({ buttonType: t = "button", className: n = "", disabled: r = !1, isWorking: i = !1, label: a, onClick: o, platform: s, size: c = "m", tooltipText: l, ...u }) => {
|
|
3982
|
+
let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(Hn, {
|
|
3983
|
+
className: `${d}__icon`,
|
|
3984
|
+
platformType: s,
|
|
3985
|
+
size: p
|
|
3986
|
+
}), g = /* @__PURE__ */ e.createElement("button", {
|
|
3988
3987
|
className: Z([
|
|
3989
|
-
|
|
3990
|
-
|
|
3988
|
+
d,
|
|
3989
|
+
f,
|
|
3991
3990
|
n
|
|
3992
3991
|
]),
|
|
3993
|
-
disabled: r,
|
|
3994
|
-
onClick:
|
|
3992
|
+
disabled: r || i,
|
|
3993
|
+
onClick: o,
|
|
3995
3994
|
type: t,
|
|
3996
|
-
...
|
|
3997
|
-
},
|
|
3995
|
+
...u
|
|
3996
|
+
}, h, a, i && /* @__PURE__ */ e.createElement(nn, {
|
|
3997
|
+
className: `${d}__working-indicator`,
|
|
3998
|
+
color: "currentColor",
|
|
3999
|
+
size: m
|
|
4000
|
+
}));
|
|
4001
|
+
return (r || i) && l ? /* @__PURE__ */ e.createElement(zt, {
|
|
4002
|
+
content: l,
|
|
4003
|
+
customTrigger: g
|
|
4004
|
+
}) : /* @__PURE__ */ e.createElement(e.Fragment, null, g);
|
|
3998
4005
|
}, Gn = ({ buttonProps: t, className: r, disabled: i = !1, hasBorder: a = !1, iconName: s, iconPosition: c = "before", isCritical: l = !1, isLoading: u, isMonospace: d = !1, isWorking: f, label: p, linkContent: m, onClick: h, tooltipText: g, ..._ }) => {
|
|
3999
4006
|
let v = "pds-utility-button", y = u ? "pds-pulse" : null, b = (t) => s && !f ? /* @__PURE__ */ e.createElement(Q, {
|
|
4000
4007
|
key: t,
|
|
@@ -4096,7 +4103,10 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4096
4103
|
]),
|
|
4097
4104
|
...l
|
|
4098
4105
|
}, y, /* @__PURE__ */ e.createElement("div", { className: `${u}__inner` }, h && /* @__PURE__ */ e.createElement("div", { className: `${u}__image` }, h[0]), g && /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${u}__footer` }, _)));
|
|
4099
|
-
}, Yn = (
|
|
4106
|
+
}, Yn = (t) => Array.isArray(t) && t.some((t) => {
|
|
4107
|
+
let n = e.isValidElement(t) ? t.props.children : void 0;
|
|
4108
|
+
return Array.isArray(n) ? n.some(Boolean) : !!n;
|
|
4109
|
+
}), Xn = ({ background: t = "default", children: n, className: r, imageVariant: i = "bleed", padding: a = "standard", ...o }) => {
|
|
4100
4110
|
let s = "pds-card", c = t === "default" ? null : `${s}--${t}`, l = i === "bleed" ? null : `${s}--image-${i}`, u = a === "standard" ? null : `${s}--pad-${a}`, d = Xe(n), f = d.image, p = d.__unslotted || d.main, m = d.footer;
|
|
4101
4111
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4102
4112
|
className: Z([
|
|
@@ -4107,8 +4117,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4107
4117
|
r ?? ""
|
|
4108
4118
|
]),
|
|
4109
4119
|
...o
|
|
4110
|
-
}, f && /* @__PURE__ */ e.createElement("div", { className: `${s}__image` }, f[0]), p && /* @__PURE__ */ e.createElement("div", { className: `${s}__main` }, p), m && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, m));
|
|
4111
|
-
},
|
|
4120
|
+
}, f && /* @__PURE__ */ e.createElement("div", { className: `${s}__image` }, f[0]), p && /* @__PURE__ */ e.createElement("div", { className: `${s}__main` }, p), Yn(m) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, m));
|
|
4121
|
+
}, Zn = ({ background: t = "default", className: n, defaultValue: r, id: i, imageVariant: a = "bleed", label: o, labelDisplay: s = "left", layout: c = "auto", onChange: l, options: u, padding: d = "standard", showCardLabels: f = !0, showIndicator: p = !0, size: m = "m", ...g }) => {
|
|
4112
4122
|
let _ = "pds-card-select", v = t === "default" ? null : `${_}--${t}`, y = m === "m" ? null : `${_}--${m}`, b = a === "bleed" ? null : `${_}--image-${a}`, x = f ? null : `${_}--no-card-labels`, S = p ? null : `${_}--no-indicator`, C = d === "standard" ? null : `${_}--pad-${d}`, w = `${_}__legend`;
|
|
4113
4123
|
s === "center" && (w = `${_}__legend ${_}__legend--center`), s === "hidden" && (w = `${_}__legend visually-hidden`);
|
|
4114
4124
|
let [T, E] = h(r), D = (e) => {
|
|
@@ -4148,7 +4158,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4148
4158
|
size: "l"
|
|
4149
4159
|
})), /* @__PURE__ */ e.createElement("div", { className: `${_}__option-body` }, /* @__PURE__ */ e.createElement("span", { className: Z([`${_}__option-label-text`, f ? null : "visually-hidden"]) }, t.label), c && /* @__PURE__ */ e.createElement("div", { className: `${_}__option-main` }, c)))));
|
|
4150
4160
|
})));
|
|
4151
|
-
},
|
|
4161
|
+
}, Qn = ({ className: t, heading: n, headingLevel: r = "span", iconName: i, linkContent: a, message: o, ...s }) => {
|
|
4152
4162
|
let c = "pds-compact-empty-state";
|
|
4153
4163
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4154
4164
|
className: Z([c, t ?? ""]),
|
|
@@ -4161,7 +4171,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4161
4171
|
baseClass: c,
|
|
4162
4172
|
level: r
|
|
4163
4173
|
}, n), o && /* @__PURE__ */ e.createElement("p", { className: `${c}__message` }, o)), a && /* @__PURE__ */ e.createElement("div", { className: `${c}__link` }, a));
|
|
4164
|
-
},
|
|
4174
|
+
}, $n = ({ children: t, label: n }) => {
|
|
4165
4175
|
let r = "pds-select";
|
|
4166
4176
|
return /* @__PURE__ */ e.createElement("li", {
|
|
4167
4177
|
className: `${r}__group`,
|
|
@@ -4170,7 +4180,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4170
4180
|
className: `${r}__group-options`,
|
|
4171
4181
|
role: "group"
|
|
4172
4182
|
}, t));
|
|
4173
|
-
},
|
|
4183
|
+
}, er = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: u = {
|
|
4174
4184
|
selectOptionText: "Select an option...",
|
|
4175
4185
|
triggerButton: "Toggle dropdown menu"
|
|
4176
4186
|
}, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, value: w, ...T }) => {
|
|
@@ -4227,7 +4237,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4227
4237
|
})
|
|
4228
4238
|
}, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
|
|
4229
4239
|
});
|
|
4230
|
-
return /* @__PURE__ */ e.createElement(
|
|
4240
|
+
return /* @__PURE__ */ e.createElement($n, {
|
|
4231
4241
|
key: t.groupLabel,
|
|
4232
4242
|
label: t.groupLabel
|
|
4233
4243
|
}, r);
|
|
@@ -4315,17 +4325,17 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4315
4325
|
validationMessageHasDecorators: !1,
|
|
4316
4326
|
validationStatus: C
|
|
4317
4327
|
}));
|
|
4318
|
-
},
|
|
4328
|
+
}, tr = {
|
|
4319
4329
|
"sequential-blue": 2,
|
|
4320
4330
|
"sequential-gray": 2
|
|
4321
|
-
}, tr = (e, t) => {
|
|
4322
|
-
let n = er[e];
|
|
4323
|
-
return n ? t.slice(n) : t;
|
|
4324
4331
|
}, nr = (e, t) => {
|
|
4332
|
+
let n = tr[e];
|
|
4333
|
+
return n ? t.slice(n) : t;
|
|
4334
|
+
}, rr = (e, t) => {
|
|
4325
4335
|
if (t === void 0) return;
|
|
4326
|
-
let n =
|
|
4336
|
+
let n = tr[e];
|
|
4327
4337
|
return n ? Math.max(t, n + 1) - n : t;
|
|
4328
|
-
},
|
|
4338
|
+
}, ir = {
|
|
4329
4339
|
categorical: [
|
|
4330
4340
|
"--pds-color-datavis-categorical-1",
|
|
4331
4341
|
"--pds-color-datavis-categorical-2",
|
|
@@ -4378,7 +4388,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4378
4388
|
"--pds-color-datavis-status-discovery",
|
|
4379
4389
|
"--pds-color-datavis-status-neutral"
|
|
4380
4390
|
]
|
|
4381
|
-
},
|
|
4391
|
+
}, ar = {
|
|
4382
4392
|
categorical: [
|
|
4383
4393
|
"#006dcc",
|
|
4384
4394
|
"#c95a3d",
|
|
@@ -4431,34 +4441,34 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4431
4441
|
"#7952a8",
|
|
4432
4442
|
"#717273"
|
|
4433
4443
|
]
|
|
4434
|
-
},
|
|
4435
|
-
let n =
|
|
4444
|
+
}, or = (e, t, n, r) => n || (r === void 0 ? t[e % t.length] : t[(r - 1) % t.length]), sr = (e, t) => {
|
|
4445
|
+
let n = ar[t];
|
|
4436
4446
|
if (!e) return n;
|
|
4437
4447
|
let r = getComputedStyle(e);
|
|
4438
|
-
return
|
|
4439
|
-
},
|
|
4440
|
-
let [n, r] = h(
|
|
4448
|
+
return ir[t].map((e, t) => r.getPropertyValue(e).trim() || n[t]);
|
|
4449
|
+
}, cr = (e, t = "categorical") => {
|
|
4450
|
+
let [n, r] = h(ar[t]);
|
|
4441
4451
|
return l(() => {
|
|
4442
4452
|
if (!e.current) return;
|
|
4443
|
-
r(
|
|
4453
|
+
r(sr(e.current, t));
|
|
4444
4454
|
let n = new MutationObserver(() => {
|
|
4445
|
-
e.current && r(
|
|
4455
|
+
e.current && r(sr(e.current, t));
|
|
4446
4456
|
});
|
|
4447
4457
|
return n.observe(document.documentElement, {
|
|
4448
4458
|
attributeFilter: ["data-theme"],
|
|
4449
4459
|
attributes: !0
|
|
4450
4460
|
}), () => n.disconnect();
|
|
4451
4461
|
}, [e, t]), n;
|
|
4452
|
-
},
|
|
4462
|
+
}, lr = {
|
|
4453
4463
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4454
4464
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4455
4465
|
fontSize: "var(--pds-typography-size-xs)"
|
|
4456
|
-
},
|
|
4466
|
+
}, ur = {
|
|
4457
4467
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4458
4468
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4459
4469
|
fontSize: "var(--pds-typography-size-xs)",
|
|
4460
4470
|
fontWeight: "var(--pds-typography-fw-semibold)"
|
|
4461
|
-
},
|
|
4471
|
+
}, dr = ({ data: t, description: n, series: r, valueFormatter: i }) => {
|
|
4462
4472
|
let a = (e) => typeof e == "number" && i ? i(e) : typeof e == "number" ? e.toLocaleString() : String(e);
|
|
4463
4473
|
return /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, /* @__PURE__ */ e.createElement("table", {
|
|
4464
4474
|
"aria-label": n,
|
|
@@ -4467,7 +4477,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4467
4477
|
key: t.dataKey,
|
|
4468
4478
|
scope: "col"
|
|
4469
4479
|
}, t.label)))), /* @__PURE__ */ e.createElement("tbody", null, t.map((t, n) => /* @__PURE__ */ e.createElement("tr", { key: `${t.label}-${n}` }, /* @__PURE__ */ e.createElement("td", null, t.label), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: n.dataKey }, a(t[n.dataKey]))))))));
|
|
4470
|
-
},
|
|
4480
|
+
}, fr = ({ ariaHidden: t, data: n = [], series: r, seriesColors: i, tableHeader: a = "Total", valueFormatter: o = (e) => e.toLocaleString(), variant: s = "inline" }) => {
|
|
4471
4481
|
let c = "pds-chart-legend", l = (e, t, n) => t || (n === void 0 ? i[e % i.length] : i[(n - 1) % i.length]);
|
|
4472
4482
|
if (s === "table") {
|
|
4473
4483
|
let i = r.map((e) => n.reduce((t, n) => {
|
|
@@ -4492,12 +4502,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4492
4502
|
className: `${c}__swatch`,
|
|
4493
4503
|
style: { backgroundColor: l(n, t.color, t.paletteIndex) }
|
|
4494
4504
|
}), t.label)));
|
|
4495
|
-
},
|
|
4505
|
+
}, pr = (e) => typeof e == "number" ? `${e}rem` : typeof e == "string" && e.endsWith("%") ? e : `${wt[`SPACING_${e.toUpperCase()}`]}rem`, mr = ({ className: t, colorType: n = "regular", isAnimated: r = !0, shape: i = "rounded", size: a, textIsJustified: o, textLineCount: s = 1, textSize: c = "m", ...l }) => {
|
|
4496
4506
|
let u = "pds-skeleton", d = `${u}--${i}`, f = r ? `pds-pulse pds-pulse--${n}` : `${u}--${n}`, p = [
|
|
4497
4507
|
"text-block",
|
|
4498
4508
|
"code-block",
|
|
4499
4509
|
"code-block-prefix"
|
|
4500
|
-
], m = a?.height ?
|
|
4510
|
+
], m = a?.height ? pr(a.height) : "1rem", h = a?.width ? pr(a.width) : "100%", g = {
|
|
4501
4511
|
height: m,
|
|
4502
4512
|
width: h
|
|
4503
4513
|
};
|
|
@@ -4569,13 +4579,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4569
4579
|
}
|
|
4570
4580
|
}))));
|
|
4571
4581
|
return p.includes(i) ? w : _;
|
|
4572
|
-
},
|
|
4582
|
+
}, hr = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--table" }, /* @__PURE__ */ e.createElement(mr, {
|
|
4573
4583
|
shape: "rounded",
|
|
4574
4584
|
size: {
|
|
4575
4585
|
height: 4,
|
|
4576
4586
|
width: "100%"
|
|
4577
4587
|
}
|
|
4578
|
-
})),
|
|
4588
|
+
})), gr = ({ borderRadius: t, height: n, legendAlignment: r = "center", legendVariant: i = "inline", showLegend: a = !0 }) => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton" }, /* @__PURE__ */ e.createElement("div", {
|
|
4579
4589
|
className: "pds-chart__skeleton-area",
|
|
4580
4590
|
style: { height: n }
|
|
4581
4591
|
}, t ? /* @__PURE__ */ e.createElement("div", { style: {
|
|
@@ -4583,41 +4593,41 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4583
4593
|
height: "100%",
|
|
4584
4594
|
overflow: "hidden",
|
|
4585
4595
|
width: "100%"
|
|
4586
|
-
} }, /* @__PURE__ */ e.createElement(
|
|
4596
|
+
} }, /* @__PURE__ */ e.createElement(mr, {
|
|
4587
4597
|
shape: "rectangular",
|
|
4588
4598
|
size: {
|
|
4589
4599
|
height: "100%",
|
|
4590
4600
|
width: "100%"
|
|
4591
4601
|
}
|
|
4592
|
-
})) : /* @__PURE__ */ e.createElement(
|
|
4602
|
+
})) : /* @__PURE__ */ e.createElement(mr, {
|
|
4593
4603
|
shape: "rounded",
|
|
4594
4604
|
size: {
|
|
4595
4605
|
height: "100%",
|
|
4596
4606
|
width: "100%"
|
|
4597
4607
|
}
|
|
4598
|
-
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(
|
|
4608
|
+
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(hr, null) : /* @__PURE__ */ e.createElement("div", { className: `pds-chart__skeleton-legend pds-chart__skeleton-legend--inline${r === "left" ? "-left" : ""}` }, /* @__PURE__ */ e.createElement(mr, {
|
|
4599
4609
|
shape: "rounded",
|
|
4600
4610
|
size: {
|
|
4601
4611
|
height: .75,
|
|
4602
4612
|
width: 5
|
|
4603
4613
|
}
|
|
4604
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4614
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
4605
4615
|
shape: "rounded",
|
|
4606
4616
|
size: {
|
|
4607
4617
|
height: .75,
|
|
4608
4618
|
width: 5
|
|
4609
4619
|
}
|
|
4610
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4620
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
4611
4621
|
shape: "rounded",
|
|
4612
4622
|
size: {
|
|
4613
4623
|
height: .75,
|
|
4614
4624
|
width: 5
|
|
4615
4625
|
}
|
|
4616
|
-
})))),
|
|
4626
|
+
})))), _r = (e) => {
|
|
4617
4627
|
let t = Math.abs(e);
|
|
4618
4628
|
return t >= 1e9 ? `${(e / 1e9).toFixed(1).replace(/\.0$/, "")}B` : t >= 1e6 ? `${(e / 1e6).toFixed(1).replace(/\.0$/, "")}M` : t >= 1e3 ? `${(e / 1e3).toFixed(1).replace(/\.0$/, "")}K` : String(e);
|
|
4619
|
-
},
|
|
4620
|
-
let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: W = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: ee = "Loading chart data" } = d, q = m(null), ne =
|
|
4629
|
+
}, vr = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: c = !1, isThumbnail: u = !1, labelStrings: d = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: g, selectedTimePeriod: _, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: S, showTooltip: E, timePeriodOptions: O, tooltipContent: k, variant: A = "stacked", xAxisLabel: M, xAxisTickInterval: N, yAxisDomain: P, yAxisFormatter: F = _r, yAxisLabel: I, yAxisTickInterval: L, ...z }) => {
|
|
4630
|
+
let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: W = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: ee = "Loading chart data" } = d, q = m(null), ne = nr(a, cr(q, a)), Y = n ?? (u ? 60 : 360), oe = r ?? (u ? 60 : void 0), X = x ?? !u, se = b ?? !u, ce = S ?? !u, le = E ?? !u, ue = y ?? !0, [de, fe] = h(null), pe = m(de);
|
|
4621
4631
|
de && (pe.current = de);
|
|
4622
4632
|
let me = m({ getBoundingClientRect: () => ({
|
|
4623
4633
|
bottom: 0,
|
|
@@ -4675,7 +4685,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4675
4685
|
]),
|
|
4676
4686
|
style: { maxWidth: oe },
|
|
4677
4687
|
...z
|
|
4678
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4688
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
4679
4689
|
height: Y,
|
|
4680
4690
|
legendVariant: p,
|
|
4681
4691
|
showLegend: ce
|
|
@@ -4692,7 +4702,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4692
4702
|
maxWidth: oe
|
|
4693
4703
|
},
|
|
4694
4704
|
...z
|
|
4695
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4705
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
4696
4706
|
heading: W,
|
|
4697
4707
|
message: G
|
|
4698
4708
|
}));
|
|
@@ -4750,7 +4760,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4750
4760
|
className: Z([xe, i ?? ""]),
|
|
4751
4761
|
style: oe ? { maxWidth: oe } : void 0,
|
|
4752
4762
|
...z
|
|
4753
|
-
}, !u && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(
|
|
4763
|
+
}, !u && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(er, {
|
|
4754
4764
|
autoWidth: !0,
|
|
4755
4765
|
id: `${xe}-time-period`,
|
|
4756
4766
|
label: "Time period",
|
|
@@ -4803,13 +4813,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4803
4813
|
hide: !se,
|
|
4804
4814
|
interval: N,
|
|
4805
4815
|
label: M && se ? {
|
|
4806
|
-
...
|
|
4816
|
+
...ur,
|
|
4807
4817
|
offset: -15,
|
|
4808
4818
|
position: "insideBottom",
|
|
4809
4819
|
value: M
|
|
4810
4820
|
} : void 0,
|
|
4811
4821
|
padding: Te ? void 0 : "no-gap",
|
|
4812
|
-
tick: se ?
|
|
4822
|
+
tick: se ? lr : !1,
|
|
4813
4823
|
tickFormatter: Te ? F : void 0,
|
|
4814
4824
|
tickLine: !1,
|
|
4815
4825
|
tickMargin: 10,
|
|
@@ -4821,14 +4831,14 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4821
4831
|
hide: !se,
|
|
4822
4832
|
interval: L,
|
|
4823
4833
|
label: I && se ? {
|
|
4824
|
-
...
|
|
4834
|
+
...ur,
|
|
4825
4835
|
angle: -90,
|
|
4826
4836
|
dx: -44,
|
|
4827
4837
|
position: "center",
|
|
4828
4838
|
value: I
|
|
4829
4839
|
} : void 0,
|
|
4830
4840
|
padding: Te ? "no-gap" : void 0,
|
|
4831
|
-
tick: se ?
|
|
4841
|
+
tick: se ? lr : !1,
|
|
4832
4842
|
tickFormatter: Te ? void 0 : F,
|
|
4833
4843
|
tickLine: !1,
|
|
4834
4844
|
tickMargin: 6,
|
|
@@ -4847,12 +4857,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4847
4857
|
}), v.map((t, n) => /* @__PURE__ */ e.createElement(V, {
|
|
4848
4858
|
key: t.dataKey,
|
|
4849
4859
|
dataKey: t.dataKey,
|
|
4850
|
-
fill:
|
|
4860
|
+
fill: or(n, ne, t.color, rr(a, t.paletteIndex)),
|
|
4851
4861
|
name: t.label,
|
|
4852
4862
|
onMouseEnter: k ? void 0 : (e) => {
|
|
4853
4863
|
let r = e.payload;
|
|
4854
4864
|
le && r && fe({
|
|
4855
|
-
color:
|
|
4865
|
+
color: or(n, ne, t.color, rr(a, t.paletteIndex)),
|
|
4856
4866
|
label: String(r.label ?? ""),
|
|
4857
4867
|
name: t.label,
|
|
4858
4868
|
value: Number(r[t.dataKey] ?? 0)
|
|
@@ -4875,7 +4885,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4875
4885
|
}, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, pe.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
|
|
4876
4886
|
className: "recharts-tooltip-item__color",
|
|
4877
4887
|
style: { backgroundColor: pe.current.color }
|
|
4878
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, pe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(pe.current.value)))), ce && /* @__PURE__ */ e.createElement(
|
|
4888
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, pe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(pe.current.value)))), ce && /* @__PURE__ */ e.createElement(fr, {
|
|
4879
4889
|
ariaHidden: p === "table" && ue,
|
|
4880
4890
|
data: o,
|
|
4881
4891
|
series: v,
|
|
@@ -4883,19 +4893,19 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4883
4893
|
tableHeader: K,
|
|
4884
4894
|
valueFormatter: F,
|
|
4885
4895
|
variant: p
|
|
4886
|
-
}), ue && /* @__PURE__ */ e.createElement(
|
|
4896
|
+
}), ue && /* @__PURE__ */ e.createElement(dr, {
|
|
4887
4897
|
data: o,
|
|
4888
4898
|
description: B,
|
|
4889
4899
|
series: v,
|
|
4890
4900
|
valueFormatter: F
|
|
4891
4901
|
}));
|
|
4892
|
-
},
|
|
4902
|
+
}, yr = (e) => {
|
|
4893
4903
|
switch (e) {
|
|
4894
4904
|
case "dashed": return "8 4";
|
|
4895
4905
|
default: return;
|
|
4896
4906
|
}
|
|
4897
|
-
},
|
|
4898
|
-
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R =
|
|
4907
|
+
}, br = ({ annotations: t, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: l = {}, legendVariant: u = "inline", lineStyle: d = "smooth", onTimePeriodChange: f, referenceLines: p, selectedTimePeriod: h, series: g = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = _r, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
|
|
4908
|
+
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R = nr(a, cr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, W = x ?? !c, ee = S ?? !c, q = y ?? !c, te = _ ?? !0, Y = "pds-line-chart";
|
|
4899
4909
|
return s ? /* @__PURE__ */ e.createElement("div", {
|
|
4900
4910
|
ref: L,
|
|
4901
4911
|
"aria-busy": "true",
|
|
@@ -4907,7 +4917,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4907
4917
|
]),
|
|
4908
4918
|
style: { maxWidth: B },
|
|
4909
4919
|
...j
|
|
4910
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4920
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
4911
4921
|
height: z,
|
|
4912
4922
|
legendVariant: u,
|
|
4913
4923
|
showLegend: W
|
|
@@ -4923,7 +4933,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4923
4933
|
maxWidth: B
|
|
4924
4934
|
},
|
|
4925
4935
|
...j
|
|
4926
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4936
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
4927
4937
|
heading: N,
|
|
4928
4938
|
message: P
|
|
4929
4939
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -4931,7 +4941,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4931
4941
|
className: Z([Y, i ?? ""]),
|
|
4932
4942
|
style: B ? { maxWidth: B } : void 0,
|
|
4933
4943
|
...j
|
|
4934
|
-
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__header` }, /* @__PURE__ */ e.createElement(
|
|
4944
|
+
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__header` }, /* @__PURE__ */ e.createElement(er, {
|
|
4935
4945
|
autoWidth: !0,
|
|
4936
4946
|
id: `${Y}-time-period`,
|
|
4937
4947
|
label: "Time period",
|
|
@@ -4977,12 +4987,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4977
4987
|
hide: !H,
|
|
4978
4988
|
interval: E,
|
|
4979
4989
|
label: T && H ? {
|
|
4980
|
-
...
|
|
4990
|
+
...ur,
|
|
4981
4991
|
offset: -15,
|
|
4982
4992
|
position: "insideBottom",
|
|
4983
4993
|
value: T
|
|
4984
4994
|
} : void 0,
|
|
4985
|
-
tick: H ?
|
|
4995
|
+
tick: H ? lr : !1,
|
|
4986
4996
|
tickLine: !1,
|
|
4987
4997
|
tickMargin: 10
|
|
4988
4998
|
}), /* @__PURE__ */ e.createElement(ae, {
|
|
@@ -4991,13 +5001,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4991
5001
|
hide: !H,
|
|
4992
5002
|
interval: A,
|
|
4993
5003
|
label: k && H ? {
|
|
4994
|
-
...
|
|
5004
|
+
...ur,
|
|
4995
5005
|
angle: -90,
|
|
4996
5006
|
dx: -44,
|
|
4997
5007
|
position: "center",
|
|
4998
5008
|
value: k
|
|
4999
5009
|
} : void 0,
|
|
5000
|
-
tick: H ?
|
|
5010
|
+
tick: H ? lr : !1,
|
|
5001
5011
|
tickFormatter: O,
|
|
5002
5012
|
tickLine: !1,
|
|
5003
5013
|
tickMargin: 6
|
|
@@ -5024,13 +5034,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5024
5034
|
activeDot: q ? { r: 6 } : !1,
|
|
5025
5035
|
dataKey: t.dataKey,
|
|
5026
5036
|
dot: q ? {
|
|
5027
|
-
fill:
|
|
5037
|
+
fill: or(n, R, t.color, rr(a, t.paletteIndex)),
|
|
5028
5038
|
r: 4,
|
|
5029
5039
|
strokeWidth: 0
|
|
5030
5040
|
} : !1,
|
|
5031
5041
|
name: t.label,
|
|
5032
|
-
stroke:
|
|
5033
|
-
strokeDasharray:
|
|
5042
|
+
stroke: or(n, R, t.color, rr(a, t.paletteIndex)),
|
|
5043
|
+
strokeDasharray: yr(t.strokeStyle),
|
|
5034
5044
|
strokeWidth: 2,
|
|
5035
5045
|
type: d === "straight" ? "linear" : "monotone"
|
|
5036
5046
|
})), !c && p?.map((t, n) => {
|
|
@@ -5050,7 +5060,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5050
5060
|
}, t.label.toUpperCase());
|
|
5051
5061
|
},
|
|
5052
5062
|
stroke: r,
|
|
5053
|
-
strokeDasharray:
|
|
5063
|
+
strokeDasharray: yr(t.strokeStyle ?? "dashed"),
|
|
5054
5064
|
y: t.value
|
|
5055
5065
|
});
|
|
5056
5066
|
}), !c && t?.map((t, n) => {
|
|
@@ -5070,10 +5080,10 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5070
5080
|
}, t.text.toUpperCase());
|
|
5071
5081
|
},
|
|
5072
5082
|
stroke: r,
|
|
5073
|
-
strokeDasharray:
|
|
5083
|
+
strokeDasharray: yr(t.strokeStyle ?? "dashed"),
|
|
5074
5084
|
x: t.atLabel
|
|
5075
5085
|
});
|
|
5076
|
-
})))), W && /* @__PURE__ */ e.createElement(
|
|
5086
|
+
})))), W && /* @__PURE__ */ e.createElement(fr, {
|
|
5077
5087
|
ariaHidden: u === "table" && te,
|
|
5078
5088
|
data: o,
|
|
5079
5089
|
series: g,
|
|
@@ -5081,14 +5091,14 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5081
5091
|
tableHeader: F,
|
|
5082
5092
|
valueFormatter: O,
|
|
5083
5093
|
variant: u
|
|
5084
|
-
}), te && /* @__PURE__ */ e.createElement(
|
|
5094
|
+
}), te && /* @__PURE__ */ e.createElement(dr, {
|
|
5085
5095
|
data: o,
|
|
5086
5096
|
description: M,
|
|
5087
5097
|
series: g,
|
|
5088
5098
|
valueFormatter: O
|
|
5089
5099
|
}));
|
|
5090
|
-
},
|
|
5091
|
-
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = m(null), S =
|
|
5100
|
+
}, xr = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, Sr = ({ chartHeight: t, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: c = {}, legendVariant: l = "inline", showAccessibleTable: u = !0, showLegend: d, showTooltip: f, valueFormatter: p = xr, variant: h = "pie", ...g }) => {
|
|
5101
|
+
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = m(null), S = nr(i, cr(x, i)), C = "pds-pie-chart", w = t ?? (s ? 80 : 300), T = n ?? (s ? 80 : void 0), E = d ?? !s, D = f ?? !s, O = a.reduce((e, t) => e + t.value, 0), k = (e, t) => or(e, S, t.color, rr(i, t.paletteIndex));
|
|
5092
5102
|
if (o) {
|
|
5093
5103
|
let t = `${Math.round(w * .8)}px`;
|
|
5094
5104
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5105,25 +5115,25 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5105
5115
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__skeleton` }, /* @__PURE__ */ e.createElement("div", {
|
|
5106
5116
|
className: `${C}__skeleton-chart`,
|
|
5107
5117
|
style: { height: w }
|
|
5108
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5118
|
+
}, /* @__PURE__ */ e.createElement(mr, {
|
|
5109
5119
|
shape: "circular",
|
|
5110
5120
|
style: {
|
|
5111
5121
|
height: t,
|
|
5112
5122
|
width: t
|
|
5113
5123
|
}
|
|
5114
|
-
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(
|
|
5124
|
+
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(mr, {
|
|
5115
5125
|
shape: "rounded",
|
|
5116
5126
|
size: {
|
|
5117
5127
|
height: .75,
|
|
5118
5128
|
width: 5
|
|
5119
5129
|
}
|
|
5120
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5130
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
5121
5131
|
shape: "rounded",
|
|
5122
5132
|
size: {
|
|
5123
5133
|
height: .75,
|
|
5124
5134
|
width: 5
|
|
5125
5135
|
}
|
|
5126
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5136
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
5127
5137
|
shape: "rounded",
|
|
5128
5138
|
size: {
|
|
5129
5139
|
height: .75,
|
|
@@ -5143,7 +5153,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5143
5153
|
maxWidth: T
|
|
5144
5154
|
},
|
|
5145
5155
|
...g
|
|
5146
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5156
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
5147
5157
|
heading: v,
|
|
5148
5158
|
message: y
|
|
5149
5159
|
}));
|
|
@@ -5217,8 +5227,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5217
5227
|
let n = O > 0 ? Math.round(t.value / O * 100) : 0;
|
|
5218
5228
|
return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
|
|
5219
5229
|
})))));
|
|
5220
|
-
},
|
|
5221
|
-
let { accessibleTableDescription: y = "Proportion bar data", emptyStateHeading: b = "No data available", emptyStateMessage: x, loadingLabel: S = "Loading chart data" } = u, E = m(null), O =
|
|
5230
|
+
}, Cr = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, wr = ({ barHeight: t = 16, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: c = !1, labelStrings: u = {}, legendAlignment: d = "left", showAccessibleTable: f = !0, showLegend: p, showTooltip: g, valueFormatter: _ = Cr, ...v }) => {
|
|
5231
|
+
let { accessibleTableDescription: y = "Proportion bar data", emptyStateHeading: b = "No data available", emptyStateMessage: x, loadingLabel: S = "Loading chart data" } = u, E = m(null), O = nr(i, cr(E, i)), k = "pds-proportion-bar", A = n ?? (c ? 200 : void 0), M = p ?? !c, N = g ?? !c, P = a.reduce((e, t) => e + t.value, 0), F = (e, t) => or(e, O, t.color, rr(i, t.paletteIndex)), [I, L] = h(null), z = m(I);
|
|
5222
5232
|
I && (z.current = I);
|
|
5223
5233
|
let B = m({ getBoundingClientRect: () => ({
|
|
5224
5234
|
bottom: 0,
|
|
@@ -5273,7 +5283,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5273
5283
|
]),
|
|
5274
5284
|
style: A ? { maxWidth: A } : void 0,
|
|
5275
5285
|
...v
|
|
5276
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5286
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
5277
5287
|
borderRadius: "var(--pds-border-radius-bar)",
|
|
5278
5288
|
height: t,
|
|
5279
5289
|
legendAlignment: d,
|
|
@@ -5286,7 +5296,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5286
5296
|
r ?? ""
|
|
5287
5297
|
]),
|
|
5288
5298
|
...v
|
|
5289
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5299
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
5290
5300
|
heading: b,
|
|
5291
5301
|
message: x
|
|
5292
5302
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5345,7 +5355,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5345
5355
|
let n = P > 0 ? Math.round(t.value / P * 100) : 0;
|
|
5346
5356
|
return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
|
|
5347
5357
|
})))));
|
|
5348
|
-
},
|
|
5358
|
+
}, Tr = /* @__PURE__ */ Ye((/* @__PURE__ */ qe(((e, t) => {
|
|
5349
5359
|
var n = function(e) {
|
|
5350
5360
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5351
5361
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -5638,8 +5648,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5638
5648
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5639
5649
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5640
5650
|
})))(), 1);
|
|
5641
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
5642
|
-
var
|
|
5651
|
+
typeof globalThis < "u" && (globalThis.Prism = Tr.default);
|
|
5652
|
+
var Er = Tr.default;
|
|
5643
5653
|
//#endregion
|
|
5644
5654
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5645
5655
|
Prism.languages.markup = {
|
|
@@ -6309,7 +6319,7 @@ Prism.languages.markup = {
|
|
|
6309
6319
|
})(Prism);
|
|
6310
6320
|
//#endregion
|
|
6311
6321
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6312
|
-
var
|
|
6322
|
+
var Dr = {
|
|
6313
6323
|
plain: {
|
|
6314
6324
|
color: "var(--pds-color-code-block-foreground)",
|
|
6315
6325
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6385,10 +6395,10 @@ var Er = {
|
|
|
6385
6395
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6386
6396
|
}
|
|
6387
6397
|
]
|
|
6388
|
-
},
|
|
6398
|
+
}, Or = ({ 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 }) => {
|
|
6389
6399
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6390
6400
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6391
|
-
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(
|
|
6401
|
+
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(mr, {
|
|
6392
6402
|
className: `${g}__skeleton`,
|
|
6393
6403
|
colorType: "bold",
|
|
6394
6404
|
shape: a || o ? "code-block-prefix" : "code-block",
|
|
@@ -6437,8 +6447,8 @@ var Er = {
|
|
|
6437
6447
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Y, {
|
|
6438
6448
|
code: n,
|
|
6439
6449
|
language: l || "",
|
|
6440
|
-
prism:
|
|
6441
|
-
theme:
|
|
6450
|
+
prism: Er,
|
|
6451
|
+
theme: Dr
|
|
6442
6452
|
}, /* @__PURE__ */ e.createElement(Y.Code, {
|
|
6443
6453
|
className: `${g}__code`,
|
|
6444
6454
|
tabIndex: 0
|
|
@@ -6447,11 +6457,11 @@ var Er = {
|
|
|
6447
6457
|
clipboardText: n,
|
|
6448
6458
|
variant: "reverse"
|
|
6449
6459
|
}))));
|
|
6450
|
-
},
|
|
6460
|
+
}, kr = {
|
|
6451
6461
|
addon: "circlePlus",
|
|
6452
6462
|
included: "circleCheck",
|
|
6453
6463
|
notIncluded: "xmark"
|
|
6454
|
-
},
|
|
6464
|
+
}, Ar = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6455
6465
|
addon: "Add-on",
|
|
6456
6466
|
included: "Included",
|
|
6457
6467
|
notIncluded: "Not included"
|
|
@@ -6470,10 +6480,10 @@ var Er = {
|
|
|
6470
6480
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6471
6481
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6472
6482
|
className: `${u}__item-icon`,
|
|
6473
|
-
iconName:
|
|
6483
|
+
iconName: kr[t.type],
|
|
6474
6484
|
size: s
|
|
6475
6485
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6476
|
-
},
|
|
6486
|
+
}, jr = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6477
6487
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6478
6488
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6479
6489
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6504,7 +6514,7 @@ var Er = {
|
|
|
6504
6514
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6505
6515
|
...a
|
|
6506
6516
|
}, l);
|
|
6507
|
-
},
|
|
6517
|
+
}, Mr = ({ 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 }) => {
|
|
6508
6518
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6509
6519
|
marginInlineStart: c,
|
|
6510
6520
|
width: l
|
|
@@ -6530,11 +6540,11 @@ var Er = {
|
|
|
6530
6540
|
alt: "",
|
|
6531
6541
|
className: `${m}__image`,
|
|
6532
6542
|
src: s
|
|
6533
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6543
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(jr, {
|
|
6534
6544
|
platform: f.platform,
|
|
6535
6545
|
videoId: f.videoId
|
|
6536
6546
|
})));
|
|
6537
|
-
},
|
|
6547
|
+
}, Nr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6538
6548
|
let u = "pds-vertical-empty-state";
|
|
6539
6549
|
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", {
|
|
6540
6550
|
className: Z([u, t ?? ""]),
|
|
@@ -6549,7 +6559,7 @@ var Er = {
|
|
|
6549
6559
|
baseClass: u,
|
|
6550
6560
|
level: i
|
|
6551
6561
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6552
|
-
},
|
|
6562
|
+
}, Pr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6553
6563
|
linesChanged: "lines changed",
|
|
6554
6564
|
additions: "additions",
|
|
6555
6565
|
deletions: "deletions"
|
|
@@ -6581,7 +6591,7 @@ var Er = {
|
|
|
6581
6591
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6582
6592
|
preferredPlacement: "top"
|
|
6583
6593
|
}))));
|
|
6584
|
-
},
|
|
6594
|
+
}, Fr = {
|
|
6585
6595
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6586
6596
|
fill: "none",
|
|
6587
6597
|
height: "42",
|
|
@@ -6799,7 +6809,7 @@ var Er = {
|
|
|
6799
6809
|
height: "42",
|
|
6800
6810
|
width: "70"
|
|
6801
6811
|
}))))
|
|
6802
|
-
},
|
|
6812
|
+
}, Ir = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6803
6813
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6804
6814
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6805
6815
|
className: Z([
|
|
@@ -6808,8 +6818,8 @@ var Er = {
|
|
|
6808
6818
|
t ?? ""
|
|
6809
6819
|
]),
|
|
6810
6820
|
...i
|
|
6811
|
-
},
|
|
6812
|
-
},
|
|
6821
|
+
}, Fr[n]);
|
|
6822
|
+
}, Lr = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...c }) => {
|
|
6813
6823
|
let u = "pds-identity-block", d = r ? `${u}--collapsed` : null, f = i ? `${u}--single-line` : null, p = t ? {
|
|
6814
6824
|
...t,
|
|
6815
6825
|
size: i ? "s" : "m"
|
|
@@ -6848,7 +6858,7 @@ var Er = {
|
|
|
6848
6858
|
className: `${u}__secondary-text`,
|
|
6849
6859
|
title: x ? o : void 0
|
|
6850
6860
|
}, o)));
|
|
6851
|
-
},
|
|
6861
|
+
}, Rr = 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) => {
|
|
6852
6862
|
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) => {
|
|
6853
6863
|
F || L(e.target.checked), g && g(e);
|
|
6854
6864
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = s(() => {
|
|
@@ -6920,7 +6930,7 @@ var Er = {
|
|
|
6920
6930
|
message: P,
|
|
6921
6931
|
validationStatus: S
|
|
6922
6932
|
}));
|
|
6923
|
-
}),
|
|
6933
|
+
}), zr = ({ 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 }) => {
|
|
6924
6934
|
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;
|
|
6925
6935
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6926
6936
|
className: Z([
|
|
@@ -6953,7 +6963,7 @@ var Er = {
|
|
|
6953
6963
|
message: S,
|
|
6954
6964
|
validationStatus: m
|
|
6955
6965
|
}));
|
|
6956
|
-
},
|
|
6966
|
+
}, Br = ({ 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 }) => {
|
|
6957
6967
|
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;
|
|
6958
6968
|
f.map((e) => {
|
|
6959
6969
|
e.id || (e.id = e.value);
|
|
@@ -7002,7 +7012,7 @@ var Er = {
|
|
|
7002
7012
|
required: p,
|
|
7003
7013
|
showLabel: g,
|
|
7004
7014
|
tooltipText: _
|
|
7005
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(
|
|
7015
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(Rr, {
|
|
7006
7016
|
key: t.id,
|
|
7007
7017
|
checked: t.checked,
|
|
7008
7018
|
className: `${S}__checkbox`,
|
|
@@ -7020,7 +7030,7 @@ var Er = {
|
|
|
7020
7030
|
message: D,
|
|
7021
7031
|
validationStatus: y
|
|
7022
7032
|
}));
|
|
7023
|
-
},
|
|
7033
|
+
}, Vr = 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: _ = {
|
|
7024
7034
|
clearButton: "Clear input text",
|
|
7025
7035
|
inputInstructions: "Type to search options",
|
|
7026
7036
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7213,13 +7223,13 @@ var Er = {
|
|
|
7213
7223
|
validationMessageHasDecorators: !1,
|
|
7214
7224
|
validationStatus: B
|
|
7215
7225
|
}));
|
|
7216
|
-
}),
|
|
7226
|
+
}), Hr = (e, t, n) => {
|
|
7217
7227
|
let r = n.toLowerCase();
|
|
7218
7228
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7219
7229
|
...e,
|
|
7220
7230
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7221
7231
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7222
|
-
},
|
|
7232
|
+
}, Ur = ({ aiSuggestions: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, isLoading: s = !1, label: c = "Lorem ipsum dolor sit:", labelStrings: l = {
|
|
7223
7233
|
aiBadgeLabel: "Suggested",
|
|
7224
7234
|
aiPanelButton: "Show AI suggestions",
|
|
7225
7235
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7227,7 +7237,7 @@ var Er = {
|
|
|
7227
7237
|
inputInstructions: "Type to search options",
|
|
7228
7238
|
triggerButton: "Toggle dropdown menu"
|
|
7229
7239
|
}, 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 }) => {
|
|
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), W = p(() =>
|
|
7240
|
+
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), W = p(() => Hr(g, R, I), [
|
|
7231
7241
|
g,
|
|
7232
7242
|
R,
|
|
7233
7243
|
I
|
|
@@ -7486,7 +7496,7 @@ var Er = {
|
|
|
7486
7496
|
iconName: "xmark",
|
|
7487
7497
|
size: "m"
|
|
7488
7498
|
})))));
|
|
7489
|
-
},
|
|
7499
|
+
}, Wr = (e, t) => e ? se(e, "PP", { locale: t }) : "", Gr = (e) => {
|
|
7490
7500
|
if (e.custom) return e.custom();
|
|
7491
7501
|
let t = /* @__PURE__ */ new Date();
|
|
7492
7502
|
if (t.setHours(0, 0, 0, 0), e.days !== void 0) {
|
|
@@ -7539,7 +7549,7 @@ var Er = {
|
|
|
7539
7549
|
to: t
|
|
7540
7550
|
};
|
|
7541
7551
|
}
|
|
7542
|
-
},
|
|
7552
|
+
}, Kr = {
|
|
7543
7553
|
clearButton: "Clear",
|
|
7544
7554
|
doneButton: "Done",
|
|
7545
7555
|
noDateSelected: "No date selected",
|
|
@@ -7550,9 +7560,9 @@ var Er = {
|
|
|
7550
7560
|
selectedDateRange: "Selected date range: ",
|
|
7551
7561
|
to: " to ",
|
|
7552
7562
|
todayButton: "Today"
|
|
7553
|
-
},
|
|
7563
|
+
}, qr = ({ 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 }) => {
|
|
7554
7564
|
let E = {
|
|
7555
|
-
...
|
|
7565
|
+
...Kr,
|
|
7556
7566
|
...v
|
|
7557
7567
|
}, [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: W, refs: G } = j({
|
|
7558
7568
|
open: A,
|
|
@@ -7593,18 +7603,18 @@ var Er = {
|
|
|
7593
7603
|
}, oe = () => {
|
|
7594
7604
|
if (r) {
|
|
7595
7605
|
let t = O;
|
|
7596
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7606
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Wr(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${R}__separator` }, " – "), Wr(t.to, s)) : Wr(t.from, s) : p || "";
|
|
7597
7607
|
} else {
|
|
7598
7608
|
let e = O;
|
|
7599
|
-
return e ?
|
|
7609
|
+
return e ? Wr(e, s) : p || "";
|
|
7600
7610
|
}
|
|
7601
7611
|
}, X = () => r ? !O?.from : !O, le = () => {
|
|
7602
7612
|
if (r) {
|
|
7603
7613
|
let e = O;
|
|
7604
|
-
return e?.from ? e.to ? `${E.selectedDateRange}${
|
|
7614
|
+
return e?.from ? e.to ? `${E.selectedDateRange}${Wr(e.from, s)}${E.to}${Wr(e.to, s)}` : `${E.selectedStartDate}${Wr(e.from, s)}${E.pleaseSelectEndDate}` : E.noDateRangeSelected || "";
|
|
7605
7615
|
} else {
|
|
7606
7616
|
let e = O;
|
|
7607
|
-
return e ? `${E.selectedDate}${
|
|
7617
|
+
return e ? `${E.selectedDate}${Wr(e, s)}` : E.noDateSelected || "";
|
|
7608
7618
|
}
|
|
7609
7619
|
}, ue = (e) => {
|
|
7610
7620
|
G.floating.current && !G.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
|
|
@@ -7706,7 +7716,7 @@ var Er = {
|
|
|
7706
7716
|
type: "button",
|
|
7707
7717
|
variant: "highlight"
|
|
7708
7718
|
})))));
|
|
7709
|
-
},
|
|
7719
|
+
}, Jr = a(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: u = {
|
|
7710
7720
|
chooseFile: "Choose file",
|
|
7711
7721
|
clearButton: "Clear selected file"
|
|
7712
7722
|
}, 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) => {
|
|
@@ -7790,7 +7800,7 @@ var Er = {
|
|
|
7790
7800
|
validationMessageHasDecorators: !1,
|
|
7791
7801
|
validationStatus: S
|
|
7792
7802
|
}));
|
|
7793
|
-
}),
|
|
7803
|
+
}), Yr = ({ children: t, className: n, ...r }) => {
|
|
7794
7804
|
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;
|
|
7795
7805
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7796
7806
|
className: Z([
|
|
@@ -7807,7 +7817,7 @@ var Er = {
|
|
|
7807
7817
|
validationMessageHasDecorators: !1,
|
|
7808
7818
|
validationStatus: l
|
|
7809
7819
|
}));
|
|
7810
|
-
},
|
|
7820
|
+
}, Xr = ({ 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 }) => {
|
|
7811
7821
|
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) => {
|
|
7812
7822
|
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
7813
7823
|
}, M = (e) => {
|
|
@@ -7857,7 +7867,7 @@ var Er = {
|
|
|
7857
7867
|
message: A,
|
|
7858
7868
|
validationStatus: y
|
|
7859
7869
|
}));
|
|
7860
|
-
},
|
|
7870
|
+
}, Zr = 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) => {
|
|
7861
7871
|
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) => {
|
|
7862
7872
|
D || k(e.target.checked), d && d(e);
|
|
7863
7873
|
}, M = g ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -7912,7 +7922,7 @@ var Er = {
|
|
|
7912
7922
|
required: p,
|
|
7913
7923
|
showLabel: m
|
|
7914
7924
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
7915
|
-
}),
|
|
7925
|
+
}), Qr = ({ 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 }) => {
|
|
7916
7926
|
let y = m(null), b = "pds-tags-input__tag";
|
|
7917
7927
|
l(() => {
|
|
7918
7928
|
r === i && y.current && y.current.focus();
|
|
@@ -7979,7 +7989,7 @@ var Er = {
|
|
|
7979
7989
|
iconName: "xmark",
|
|
7980
7990
|
size: "s"
|
|
7981
7991
|
})));
|
|
7982
|
-
},
|
|
7992
|
+
}, $r = 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 = {
|
|
7983
7993
|
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.",
|
|
7984
7994
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
7985
7995
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8065,7 +8075,7 @@ var Er = {
|
|
|
8065
8075
|
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", {
|
|
8066
8076
|
key: t.id,
|
|
8067
8077
|
role: "listitem"
|
|
8068
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8078
|
+
}, /* @__PURE__ */ e.createElement(Qr, {
|
|
8069
8079
|
disabled: r,
|
|
8070
8080
|
dropTargetDirection: i,
|
|
8071
8081
|
focusedIndex: B,
|
|
@@ -8109,7 +8119,7 @@ var Er = {
|
|
|
8109
8119
|
validationMessageHasDecorators: !1,
|
|
8110
8120
|
validationStatus: x
|
|
8111
8121
|
}));
|
|
8112
|
-
}),
|
|
8122
|
+
}), ei = 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 = {
|
|
8113
8123
|
clearButton: "Clear input text",
|
|
8114
8124
|
counterOverLimit: "Character limit exceeded by",
|
|
8115
8125
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8173,7 +8183,7 @@ var Er = {
|
|
|
8173
8183
|
message: L,
|
|
8174
8184
|
validationStatus: w
|
|
8175
8185
|
}));
|
|
8176
|
-
}),
|
|
8186
|
+
}), ti = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), ni = 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 = {
|
|
8177
8187
|
clearButton: "Clear input text",
|
|
8178
8188
|
counterOverLimit: "Character limit exceeded by",
|
|
8179
8189
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8239,7 +8249,7 @@ var Er = {
|
|
|
8239
8249
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8240
8250
|
"aria-live": "polite",
|
|
8241
8251
|
className: "visually-hidden"
|
|
8242
|
-
}, `${D.visibilityStatus} ${J ? "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(
|
|
8252
|
+
}, `${D.visibilityStatus} ${J ? "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(ti, null), /* @__PURE__ */ e.createElement("input", {
|
|
8243
8253
|
ref: N,
|
|
8244
8254
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8245
8255
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8286,12 +8296,12 @@ var Er = {
|
|
|
8286
8296
|
validationMessageHasDecorators: !1,
|
|
8287
8297
|
validationStatus: A
|
|
8288
8298
|
}));
|
|
8289
|
-
}),
|
|
8299
|
+
}), ri = (e) => String(e).padStart(2, "0"), ii = (e) => {
|
|
8290
8300
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
8291
8301
|
if (!t) return null;
|
|
8292
8302
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
8293
8303
|
return n > 23 || r > 59 ? null : new ue(n, r);
|
|
8294
|
-
},
|
|
8304
|
+
}, ai = (e) => e ? `${ri(e.hour)}:${ri(e.minute)}` : void 0, oi = ({ baseClass: t, segment: n, state: r }) => {
|
|
8295
8305
|
let i = m(null), { segmentProps: a } = ge(n, r, i), { focusProps: o, isFocusVisible: s } = _e(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
8296
8306
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8297
8307
|
...he(a, o),
|
|
@@ -8302,7 +8312,7 @@ var Er = {
|
|
|
8302
8312
|
s ? `${t}__segment--focus-visible` : null
|
|
8303
8313
|
])
|
|
8304
8314
|
}, c);
|
|
8305
|
-
},
|
|
8315
|
+
}, si = ({ 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 }) => {
|
|
8306
8316
|
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({
|
|
8307
8317
|
granularity: "minute",
|
|
8308
8318
|
hourCycle: a,
|
|
@@ -8310,14 +8320,14 @@ var Er = {
|
|
|
8310
8320
|
locale: P,
|
|
8311
8321
|
onBlur: d,
|
|
8312
8322
|
onChange: (e) => {
|
|
8313
|
-
let t =
|
|
8323
|
+
let t = ai(e);
|
|
8314
8324
|
t && (N || I(t), f && f(t));
|
|
8315
8325
|
},
|
|
8316
8326
|
onFocusChange: (e) => {
|
|
8317
8327
|
e && g && g();
|
|
8318
8328
|
},
|
|
8319
8329
|
shouldForceLeadingZeros: !0,
|
|
8320
|
-
value: p(() =>
|
|
8330
|
+
value: p(() => ii(L), [L])
|
|
8321
8331
|
}), z = m(null), { fieldProps: B } = ye({
|
|
8322
8332
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
8323
8333
|
"aria-labelledby": `${o}-label`,
|
|
@@ -8328,7 +8338,7 @@ var Er = {
|
|
|
8328
8338
|
if (V.current = b, !b || !e || b === e) return;
|
|
8329
8339
|
let n = R.value;
|
|
8330
8340
|
if (!n) return;
|
|
8331
|
-
let r = fe(pe(de(t ?? me(e), n), e), b), i =
|
|
8341
|
+
let r = fe(pe(de(t ?? me(e), n), e), b), i = ai(new ue(r.hour, r.minute));
|
|
8332
8342
|
i && (N || I(i), f && f(i));
|
|
8333
8343
|
}, [b]);
|
|
8334
8344
|
let H = p(() => {
|
|
@@ -8378,7 +8388,7 @@ var Er = {
|
|
|
8378
8388
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
8379
8389
|
key: n,
|
|
8380
8390
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
8381
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
8391
|
+
}, t.text) : /* @__PURE__ */ e.createElement(oi, {
|
|
8382
8392
|
key: n,
|
|
8383
8393
|
baseClass: E,
|
|
8384
8394
|
segment: t,
|
|
@@ -8390,7 +8400,7 @@ var Er = {
|
|
|
8390
8400
|
validationMessageHasDecorators: !1,
|
|
8391
8401
|
validationStatus: C
|
|
8392
8402
|
}));
|
|
8393
|
-
},
|
|
8403
|
+
}, ci = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8394
8404
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8395
8405
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8396
8406
|
className: Z([
|
|
@@ -8404,7 +8414,7 @@ var Er = {
|
|
|
8404
8414
|
iconName: "arrowRight",
|
|
8405
8415
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8406
8416
|
}));
|
|
8407
|
-
},
|
|
8417
|
+
}, li = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8408
8418
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8409
8419
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8410
8420
|
"aria-hidden": "true",
|
|
@@ -8431,11 +8441,11 @@ var Er = {
|
|
|
8431
8441
|
className: `${c}__icon`,
|
|
8432
8442
|
iconName: "externalLink"
|
|
8433
8443
|
}));
|
|
8434
|
-
},
|
|
8444
|
+
}, ui = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8435
8445
|
className: Z(["pds-skiplink", t]),
|
|
8436
8446
|
href: `#${n}`,
|
|
8437
8447
|
...i
|
|
8438
|
-
}, r),
|
|
8448
|
+
}, r), di = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8439
8449
|
let c = "pds-picture";
|
|
8440
8450
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8441
8451
|
srcSet: a,
|
|
@@ -8448,7 +8458,7 @@ var Er = {
|
|
|
8448
8458
|
width: o,
|
|
8449
8459
|
...s
|
|
8450
8460
|
}));
|
|
8451
|
-
},
|
|
8461
|
+
}, fi = ({ ariaLabel: t = "Breadcrumb", className: r, crumbs: i, ...a }) => {
|
|
8452
8462
|
let s = "pds-breadcrumb", c = i.length, l = i.map((t, r) => {
|
|
8453
8463
|
if (r < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8454
8464
|
key: r,
|
|
@@ -8467,36 +8477,36 @@ var Er = {
|
|
|
8467
8477
|
className: Z([s, r]),
|
|
8468
8478
|
...a
|
|
8469
8479
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${s}__crumbs` }, l));
|
|
8470
|
-
},
|
|
8480
|
+
}, pi = (e) => {
|
|
8471
8481
|
if (!e) return null;
|
|
8472
8482
|
for (let t = 0; t < e.length; t++) {
|
|
8473
|
-
if (
|
|
8483
|
+
if (hi(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8474
8484
|
if (e[t].links) {
|
|
8475
|
-
let n =
|
|
8485
|
+
let n = pi(e[t].links);
|
|
8476
8486
|
if (n) return n;
|
|
8477
8487
|
}
|
|
8478
8488
|
}
|
|
8479
8489
|
return null;
|
|
8480
|
-
},
|
|
8481
|
-
if (
|
|
8490
|
+
}, mi = (e) => typeof e == "string" ? e : e.props.children, hi = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), gi = (e) => {
|
|
8491
|
+
if (hi(e)) return !0;
|
|
8482
8492
|
if (e.links) {
|
|
8483
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8493
|
+
for (let t = 0; t < e.links.length; t++) if (gi(e.links[t])) return !0;
|
|
8484
8494
|
}
|
|
8485
8495
|
return !1;
|
|
8486
|
-
},
|
|
8496
|
+
}, _i = (e) => e.map((e) => `${hi(e)}${e.links ? `[${_i(e.links)}]` : ""}`).join("|"), vi = (e) => {
|
|
8487
8497
|
if (o(e)) {
|
|
8488
8498
|
let t = e.type;
|
|
8489
8499
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8490
8500
|
}
|
|
8491
8501
|
return !1;
|
|
8492
|
-
},
|
|
8502
|
+
}, yi = (e, t) => {
|
|
8493
8503
|
let r = null;
|
|
8494
8504
|
if (typeof e == "string" && t) {
|
|
8495
8505
|
let i = t ? t[0].linkContent : null;
|
|
8496
8506
|
o(i) && (r = n(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8497
8507
|
} else r = e;
|
|
8498
8508
|
return r;
|
|
8499
|
-
},
|
|
8509
|
+
}, bi = (t, r, i, a) => {
|
|
8500
8510
|
let s = null;
|
|
8501
8511
|
if (typeof r == "string") {
|
|
8502
8512
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8521,7 +8531,7 @@ var Er = {
|
|
|
8521
8531
|
iconName: a,
|
|
8522
8532
|
size: "m"
|
|
8523
8533
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
|
|
8524
|
-
},
|
|
8534
|
+
}, xi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8525
8535
|
let o = m(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8526
8536
|
l(() => {
|
|
8527
8537
|
let e = (e) => {
|
|
@@ -8540,11 +8550,11 @@ var Er = {
|
|
|
8540
8550
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8541
8551
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(u, {
|
|
8542
8552
|
key: n,
|
|
8543
|
-
isActive:
|
|
8553
|
+
isActive: gi(t),
|
|
8544
8554
|
linkContent: t.linkContent
|
|
8545
8555
|
}))) : null, f = [];
|
|
8546
8556
|
i.map((e) => {
|
|
8547
|
-
e.linkContent && (
|
|
8557
|
+
e.linkContent && (gi(e) ? f.unshift({
|
|
8548
8558
|
linkContent: e.linkContent,
|
|
8549
8559
|
isLink: !0
|
|
8550
8560
|
}) : f.push({
|
|
@@ -8568,8 +8578,8 @@ var Er = {
|
|
|
8568
8578
|
]),
|
|
8569
8579
|
...a
|
|
8570
8580
|
}, d, p);
|
|
8571
|
-
},
|
|
8572
|
-
let s = "pds-dropdown-menu", c =
|
|
8581
|
+
}, Si = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8582
|
+
let s = "pds-dropdown-menu", c = pi(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({
|
|
8573
8583
|
enableShift: !1,
|
|
8574
8584
|
enableTypeahead: !0,
|
|
8575
8585
|
role: "menu"
|
|
@@ -8578,7 +8588,7 @@ var Er = {
|
|
|
8578
8588
|
}, C = (e) => {
|
|
8579
8589
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8580
8590
|
}, w = ({ item: e, level: t }) => {
|
|
8581
|
-
let r =
|
|
8591
|
+
let r = yi(e.linkContent, e.links);
|
|
8582
8592
|
return {
|
|
8583
8593
|
...e,
|
|
8584
8594
|
level: t,
|
|
@@ -8669,7 +8679,7 @@ var Er = {
|
|
|
8669
8679
|
tabIndex: d === n ? 0 : -1,
|
|
8670
8680
|
...m({ onKeyDown: C })
|
|
8671
8681
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8672
|
-
},
|
|
8682
|
+
}, Ci = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8673
8683
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8674
8684
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8675
8685
|
className: Z([
|
|
@@ -8679,7 +8689,7 @@ var Er = {
|
|
|
8679
8689
|
]),
|
|
8680
8690
|
...i
|
|
8681
8691
|
}, t);
|
|
8682
|
-
},
|
|
8692
|
+
}, wi = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8683
8693
|
closeMobileNav: "Close navigation area",
|
|
8684
8694
|
openMobileNav: "Open navigation area"
|
|
8685
8695
|
}, ...c }) => {
|
|
@@ -8735,7 +8745,7 @@ var Er = {
|
|
|
8735
8745
|
n ?? ""
|
|
8736
8746
|
]),
|
|
8737
8747
|
...c
|
|
8738
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8748
|
+
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(Ci, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner-mobile` }, C, k && A))), /* @__PURE__ */ e.createElement(xe, {
|
|
8739
8749
|
active: u,
|
|
8740
8750
|
focusTrapOptions: {
|
|
8741
8751
|
clickOutsideDeactivates: !0,
|
|
@@ -8745,11 +8755,11 @@ var Er = {
|
|
|
8745
8755
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8746
8756
|
className: Z([`${g}__mobile`, u ? `${g}__mobile--open` : null]),
|
|
8747
8757
|
inert: u ? void 0 : ""
|
|
8748
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8758
|
+
}, /* @__PURE__ */ e.createElement(Ci, null, /* @__PURE__ */ e.createElement("button", {
|
|
8749
8759
|
className: "visually-hidden",
|
|
8750
8760
|
onClick: b,
|
|
8751
8761
|
type: "button"
|
|
8752
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8762
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ci, {
|
|
8753
8763
|
className: `${g}__inner`,
|
|
8754
8764
|
style: o ? { paddingInline: o } : void 0,
|
|
8755
8765
|
width: i
|
|
@@ -8757,14 +8767,14 @@ var Er = {
|
|
|
8757
8767
|
"aria-hidden": "true",
|
|
8758
8768
|
className: `${g}__separator`
|
|
8759
8769
|
}), 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)));
|
|
8760
|
-
},
|
|
8770
|
+
}, Ti = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8761
8771
|
submenu: "submenu",
|
|
8762
8772
|
toggle: "Toggle"
|
|
8763
8773
|
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8764
8774
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8765
8775
|
l(() => {
|
|
8766
8776
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8767
|
-
}, [
|
|
8777
|
+
}, [_i(c)]);
|
|
8768
8778
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8769
8779
|
v((n) => {
|
|
8770
8780
|
let r = t in n ? n[t] : e;
|
|
@@ -8774,7 +8784,7 @@ var Er = {
|
|
|
8774
8784
|
};
|
|
8775
8785
|
});
|
|
8776
8786
|
}, x = (t, r) => {
|
|
8777
|
-
let { linkContent: i, links: a } = t, c =
|
|
8787
|
+
let { linkContent: i, links: a } = t, c = gi(t), l = vi(i), u = y(c, r);
|
|
8778
8788
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8779
8789
|
key: r,
|
|
8780
8790
|
className: Z([
|
|
@@ -8787,7 +8797,7 @@ var Er = {
|
|
|
8787
8797
|
`${f}__row`,
|
|
8788
8798
|
`${f}__row--expandable`,
|
|
8789
8799
|
`${m}-wrapper`
|
|
8790
|
-
]) },
|
|
8800
|
+
]) }, yi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8791
8801
|
"aria-expanded": u,
|
|
8792
8802
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8793
8803
|
onClick: () => b(c, r),
|
|
@@ -8795,7 +8805,7 @@ var Er = {
|
|
|
8795
8805
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8796
8806
|
iconName: "angleDown",
|
|
8797
8807
|
size: "m"
|
|
8798
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8808
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${mi(i)} ${s.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8799
8809
|
g,
|
|
8800
8810
|
`${g}--second-level`,
|
|
8801
8811
|
u ? `${g}--expanded` : null
|
|
@@ -8804,9 +8814,9 @@ var Er = {
|
|
|
8804
8814
|
className: Z([
|
|
8805
8815
|
m,
|
|
8806
8816
|
`${m}--second-level`,
|
|
8807
|
-
|
|
8817
|
+
gi(t) ? `${m}--active` : null
|
|
8808
8818
|
])
|
|
8809
|
-
},
|
|
8819
|
+
}, yi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8810
8820
|
"aria-expanded": u,
|
|
8811
8821
|
className: Z([
|
|
8812
8822
|
`${f}__row`,
|
|
@@ -8820,7 +8830,7 @@ var Er = {
|
|
|
8820
8830
|
}, 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, {
|
|
8821
8831
|
iconName: "angleDown",
|
|
8822
8832
|
size: "m"
|
|
8823
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8833
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${mi(i)} ${s.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8824
8834
|
g,
|
|
8825
8835
|
`${g}--second-level`,
|
|
8826
8836
|
u ? `${g}--expanded` : null
|
|
@@ -8829,10 +8839,10 @@ var Er = {
|
|
|
8829
8839
|
className: Z([
|
|
8830
8840
|
m,
|
|
8831
8841
|
`${m}--second-level`,
|
|
8832
|
-
|
|
8842
|
+
gi(t) ? `${m}--active` : null
|
|
8833
8843
|
])
|
|
8834
|
-
},
|
|
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(
|
|
8844
|
+
}, yi(t.linkContent, t.links))))) : i);
|
|
8845
|
+
}, 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(Si, {
|
|
8836
8846
|
className: `${f}__mobile`,
|
|
8837
8847
|
headingText: a,
|
|
8838
8848
|
menuItems: c,
|
|
@@ -8847,8 +8857,8 @@ var Er = {
|
|
|
8847
8857
|
]),
|
|
8848
8858
|
...d
|
|
8849
8859
|
}, S, i && C);
|
|
8850
|
-
},
|
|
8851
|
-
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8860
|
+
}, Ei = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: u }) => {
|
|
8861
|
+
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, bi(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8852
8862
|
p,
|
|
8853
8863
|
`${p}--${n}`,
|
|
8854
8864
|
r ? `${p}--expanded` : null
|
|
@@ -8857,7 +8867,7 @@ var Er = {
|
|
|
8857
8867
|
className: Z([
|
|
8858
8868
|
f,
|
|
8859
8869
|
`${f}--${n}`,
|
|
8860
|
-
|
|
8870
|
+
gi(t) ? `${f}--active` : null
|
|
8861
8871
|
])
|
|
8862
8872
|
}, t.linkContent))), [v, y] = h(!1), b = m(v), S = m(!1), { context: O, floatingStyles: k, refs: M } = j({
|
|
8863
8873
|
placement: "right-start",
|
|
@@ -8911,7 +8921,7 @@ var Er = {
|
|
|
8911
8921
|
...I(),
|
|
8912
8922
|
onClick: z,
|
|
8913
8923
|
onKeyDown: R
|
|
8914
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8924
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, bi(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
8915
8925
|
"aria-expanded": r,
|
|
8916
8926
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
8917
8927
|
onClick: u,
|
|
@@ -8919,13 +8929,13 @@ var Er = {
|
|
|
8919
8929
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8920
8930
|
iconName: "angleDown",
|
|
8921
8931
|
size: "m"
|
|
8922
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
8932
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${mi(o)} ${a.submenu}`))), !i && _(s, "second-level"), i && v && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
8923
8933
|
ref: M.setFloating,
|
|
8924
8934
|
className: `${d}__flyout`,
|
|
8925
8935
|
style: k,
|
|
8926
8936
|
...P()
|
|
8927
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
8928
|
-
content:
|
|
8937
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` }, mi(o)), _(s, "second-level-flyout")))) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(zt, {
|
|
8938
|
+
content: mi(o),
|
|
8929
8939
|
customTrigger: g,
|
|
8930
8940
|
offsetValue: {
|
|
8931
8941
|
mainAxis: 8,
|
|
@@ -8933,14 +8943,14 @@ var Er = {
|
|
|
8933
8943
|
},
|
|
8934
8944
|
preferredPlacement: "right"
|
|
8935
8945
|
}) : g));
|
|
8936
|
-
},
|
|
8946
|
+
}, Di = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8937
8947
|
submenu: "submenu",
|
|
8938
8948
|
toggle: "Toggle"
|
|
8939
8949
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8940
8950
|
let c = "pds-side-nav-global", u = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = h({});
|
|
8941
8951
|
l(() => {
|
|
8942
8952
|
f((e) => Object.keys(e).length ? {} : e);
|
|
8943
|
-
}, [
|
|
8953
|
+
}, [_i(a)]);
|
|
8944
8954
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
8945
8955
|
f((n) => {
|
|
8946
8956
|
let r = t in n ? n[t] : e;
|
|
@@ -8961,8 +8971,8 @@ var Er = {
|
|
|
8961
8971
|
className: `${c}__section-label`,
|
|
8962
8972
|
role: "presentation"
|
|
8963
8973
|
}, t.label);
|
|
8964
|
-
let a =
|
|
8965
|
-
return /* @__PURE__ */ e.createElement(
|
|
8974
|
+
let a = gi(t);
|
|
8975
|
+
return /* @__PURE__ */ e.createElement(Ei, {
|
|
8966
8976
|
key: n,
|
|
8967
8977
|
icon: t.icon,
|
|
8968
8978
|
isActive: a,
|
|
@@ -8984,7 +8994,7 @@ var Er = {
|
|
|
8984
8994
|
]),
|
|
8985
8995
|
...s
|
|
8986
8996
|
}, g);
|
|
8987
|
-
},
|
|
8997
|
+
}, Oi = ({ items: t, label: n }) => {
|
|
8988
8998
|
let r = m(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = _n({
|
|
8989
8999
|
offsetValue: 8,
|
|
8990
9000
|
openOnHover: !Nt()
|
|
@@ -9021,7 +9031,7 @@ var Er = {
|
|
|
9021
9031
|
key: n,
|
|
9022
9032
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9023
9033
|
}, !t.isSeparator && t.linkContent)))));
|
|
9024
|
-
},
|
|
9034
|
+
}, ki = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9025
9035
|
let [a, o] = h(null), [s, c] = h(-1), [d, f] = h(null), [p, g] = h({
|
|
9026
9036
|
container: null,
|
|
9027
9037
|
containerChildren: []
|
|
@@ -9068,7 +9078,7 @@ var Er = {
|
|
|
9068
9078
|
},
|
|
9069
9079
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9070
9080
|
id: i
|
|
9071
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9081
|
+
}, /* @__PURE__ */ e.createElement(Oi, {
|
|
9072
9082
|
items: t.links,
|
|
9073
9083
|
label: t.label
|
|
9074
9084
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9087,14 +9097,14 @@ var Er = {
|
|
|
9087
9097
|
},
|
|
9088
9098
|
...i
|
|
9089
9099
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9090
|
-
},
|
|
9100
|
+
}, Ai = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9091
9101
|
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({
|
|
9092
9102
|
offsetValue: 8,
|
|
9093
9103
|
placement: "bottom-start",
|
|
9094
9104
|
role: "listbox"
|
|
9095
9105
|
}), A = (e) => {
|
|
9096
9106
|
e.preventDefault(), e.key === "Enter" && E.current[v].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && f && document.getElementById("links-filter").focus();
|
|
9097
|
-
}, j = (e, t) =>
|
|
9107
|
+
}, j = (e, t) => mi(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9098
9108
|
let t = e.target.value;
|
|
9099
9109
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9100
9110
|
};
|
|
@@ -9105,11 +9115,11 @@ var Er = {
|
|
|
9105
9115
|
d(""), c(i);
|
|
9106
9116
|
}, P = {
|
|
9107
9117
|
minWidth: "13rem",
|
|
9108
|
-
width: `${
|
|
9118
|
+
width: `${mi(i.reduce((e, t) => mi(e.linkContent).length > mi(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9109
9119
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9110
9120
|
className: `${p}__active-icon`,
|
|
9111
9121
|
iconName: "check"
|
|
9112
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9122
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9113
9123
|
hasClearButton: !0,
|
|
9114
9124
|
autoComplete: "off",
|
|
9115
9125
|
id: "links-filter",
|
|
@@ -9152,9 +9162,9 @@ var Er = {
|
|
|
9152
9162
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9153
9163
|
} })
|
|
9154
9164
|
}, /* @__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)))));
|
|
9155
|
-
},
|
|
9165
|
+
}, ji = ({ ariaLabel: t, className: r, menuItems: i, ...a }) => {
|
|
9156
9166
|
let s = "pds-tab-menu", c = ({ dropdownSettings: t, icon: r, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9157
|
-
let u = `${s}__item`, d =
|
|
9167
|
+
let u = `${s}__item`, d = pi(c);
|
|
9158
9168
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, r) => {
|
|
9159
9169
|
let i = null;
|
|
9160
9170
|
return o(t) && (i = r ? n(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9165,7 +9175,7 @@ var Er = {
|
|
|
9165
9175
|
iconName: r,
|
|
9166
9176
|
size: "m"
|
|
9167
9177
|
}), t.props.children)] })) : t), i;
|
|
9168
|
-
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(
|
|
9178
|
+
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(Ai, {
|
|
9169
9179
|
buttonLabel: t?.buttonLabel,
|
|
9170
9180
|
filterLabel: t?.filterLabel,
|
|
9171
9181
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9177,7 +9187,7 @@ var Er = {
|
|
|
9177
9187
|
key: n,
|
|
9178
9188
|
dropdownSettings: t.dropdownSettings,
|
|
9179
9189
|
icon: t.icon,
|
|
9180
|
-
isActive:
|
|
9190
|
+
isActive: gi(t),
|
|
9181
9191
|
linkContent: t.linkContent,
|
|
9182
9192
|
links: t.links,
|
|
9183
9193
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9187,11 +9197,11 @@ var Er = {
|
|
|
9187
9197
|
className: Z([s, r ?? ""]),
|
|
9188
9198
|
...a
|
|
9189
9199
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, l));
|
|
9190
|
-
},
|
|
9200
|
+
}, Mi = {
|
|
9191
9201
|
2: "second",
|
|
9192
9202
|
3: "third",
|
|
9193
9203
|
4: "fourth"
|
|
9194
|
-
},
|
|
9204
|
+
}, Ni = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9195
9205
|
submenu: "submenu",
|
|
9196
9206
|
toggle: "Toggle"
|
|
9197
9207
|
}, menuItems: a, ...o }) => {
|
|
@@ -9311,7 +9321,7 @@ var Er = {
|
|
|
9311
9321
|
display: "none"
|
|
9312
9322
|
}), b();
|
|
9313
9323
|
}, j = (t, n, r) => {
|
|
9314
|
-
let a =
|
|
9324
|
+
let a = Mi[t], o = `${u}--${a}-level`, l = `${c}--${a}-level`, d = t + 1, f = gi(n);
|
|
9315
9325
|
if (_.current && n.path) {
|
|
9316
9326
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9317
9327
|
if (e) {
|
|
@@ -9328,7 +9338,7 @@ var Er = {
|
|
|
9328
9338
|
iconName: "angleDown",
|
|
9329
9339
|
size: "s",
|
|
9330
9340
|
verticalAlign: "-0.0625rem"
|
|
9331
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9341
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${mi(n.linkContent)} ${i.submenu}`)), yi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9332
9342
|
className: Z([
|
|
9333
9343
|
u,
|
|
9334
9344
|
o,
|
|
@@ -9336,7 +9346,7 @@ var Er = {
|
|
|
9336
9346
|
]),
|
|
9337
9347
|
role: "group"
|
|
9338
9348
|
}, n.links.map((t, n) => {
|
|
9339
|
-
let r =
|
|
9349
|
+
let r = gi(t);
|
|
9340
9350
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9341
9351
|
key: `${n}-${a}`,
|
|
9342
9352
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9348,10 +9358,10 @@ var Er = {
|
|
|
9348
9358
|
]),
|
|
9349
9359
|
"data-item-path": t.path || "",
|
|
9350
9360
|
role: "treeitem"
|
|
9351
|
-
}, t.links && d in
|
|
9361
|
+
}, t.links && d in Mi ? j(d, t, t.links) : t.linkContent);
|
|
9352
9362
|
})));
|
|
9353
9363
|
}, M = (t, n) => {
|
|
9354
|
-
let { linkContent: r, links: i } = t, a =
|
|
9364
|
+
let { linkContent: r, links: i } = t, a = gi(t);
|
|
9355
9365
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9356
9366
|
key: n,
|
|
9357
9367
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9380,11 +9390,11 @@ var Er = {
|
|
|
9380
9390
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9381
9391
|
role: "tree"
|
|
9382
9392
|
}, a.map((e, t) => M(e, t))));
|
|
9383
|
-
},
|
|
9393
|
+
}, Pi = {
|
|
9384
9394
|
light: "sunBright",
|
|
9385
9395
|
dark: "moon",
|
|
9386
9396
|
system: "circleHalfStroke"
|
|
9387
|
-
},
|
|
9397
|
+
}, Fi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9388
9398
|
light: "Light",
|
|
9389
9399
|
dark: "Dark",
|
|
9390
9400
|
system: "System"
|
|
@@ -9396,7 +9406,7 @@ var Er = {
|
|
|
9396
9406
|
];
|
|
9397
9407
|
if (s === "toggle") {
|
|
9398
9408
|
let s = d.map((e) => ({
|
|
9399
|
-
iconName:
|
|
9409
|
+
iconName: Pi[e],
|
|
9400
9410
|
label: r[e],
|
|
9401
9411
|
value: e
|
|
9402
9412
|
}));
|
|
@@ -9415,7 +9425,7 @@ var Er = {
|
|
|
9415
9425
|
}
|
|
9416
9426
|
let f = d.map((e) => ({
|
|
9417
9427
|
callback: () => i?.(e),
|
|
9418
|
-
iconName:
|
|
9428
|
+
iconName: Pi[e],
|
|
9419
9429
|
iconSize: "m",
|
|
9420
9430
|
label: r[e]
|
|
9421
9431
|
}));
|
|
@@ -9427,7 +9437,7 @@ var Er = {
|
|
|
9427
9437
|
customTrigger: /* @__PURE__ */ e.createElement(Rn, {
|
|
9428
9438
|
iconOnly: !0,
|
|
9429
9439
|
"aria-label": u,
|
|
9430
|
-
iconName:
|
|
9440
|
+
iconName: Pi[o],
|
|
9431
9441
|
id: n,
|
|
9432
9442
|
label: "",
|
|
9433
9443
|
menuItems: f,
|
|
@@ -9436,7 +9446,7 @@ var Er = {
|
|
|
9436
9446
|
offsetValue: 0,
|
|
9437
9447
|
preferredPlacement: "top"
|
|
9438
9448
|
}));
|
|
9439
|
-
},
|
|
9449
|
+
}, Ii = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: d, ...f }) => {
|
|
9440
9450
|
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({
|
|
9441
9451
|
placement: "bottom-end",
|
|
9442
9452
|
open: _,
|
|
@@ -9481,7 +9491,7 @@ var Er = {
|
|
|
9481
9491
|
}, /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, c)), ne = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9482
9492
|
className: `${E}__theme-row`,
|
|
9483
9493
|
role: "presentation"
|
|
9484
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9494
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(Fi, {
|
|
9485
9495
|
id: `${S}-theme`,
|
|
9486
9496
|
labelStrings: s,
|
|
9487
9497
|
onChange: i,
|
|
@@ -9560,7 +9570,7 @@ var Er = {
|
|
|
9560
9570
|
className: O,
|
|
9561
9571
|
role: "menu"
|
|
9562
9572
|
}, te, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ne, ae)))));
|
|
9563
|
-
},
|
|
9573
|
+
}, Li = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
9564
9574
|
let [d, g] = h(""), [_, v] = h(""), y = m(null), b = l.length >= s, S = "pds-workspace-selector", C = `${S}__menu`, w = b ? `${C}--scroll` : null, { activeIndex: T, floatingStyles: E, getFloatingProps: D, getItemProps: O, getReferenceProps: k, isMounted: A, listRef: j, refs: M, setIsOpen: N, transitionStyles: P } = _n({
|
|
9565
9575
|
enableTypeahead: !b,
|
|
9566
9576
|
role: "menu"
|
|
@@ -9663,7 +9673,7 @@ var Er = {
|
|
|
9663
9673
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9664
9674
|
className: Z([S, n]),
|
|
9665
9675
|
...u
|
|
9666
|
-
}, /* @__PURE__ */ e.createElement(An, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9676
|
+
}, /* @__PURE__ */ e.createElement(An, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9667
9677
|
hasClearButton: !0,
|
|
9668
9678
|
id: "workspace-filter-mobile",
|
|
9669
9679
|
label: i,
|
|
@@ -9700,7 +9710,7 @@ var Er = {
|
|
|
9700
9710
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9701
9711
|
},
|
|
9702
9712
|
...D()
|
|
9703
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9713
|
+
}, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9704
9714
|
hasClearButton: !0,
|
|
9705
9715
|
id: "workspace-filter",
|
|
9706
9716
|
label: i,
|
|
@@ -9716,12 +9726,12 @@ var Er = {
|
|
|
9716
9726
|
className: `pds-dropdown__heading ${S}__item-heading`,
|
|
9717
9727
|
role: "presentation"
|
|
9718
9728
|
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9719
|
-
},
|
|
9729
|
+
}, Ri = {
|
|
9720
9730
|
info: "circleInfo",
|
|
9721
9731
|
warning: "triangleExclamation",
|
|
9722
9732
|
critical: "diamondExclamation",
|
|
9723
9733
|
discovery: "bullhorn"
|
|
9724
|
-
},
|
|
9734
|
+
}, zi = 200, Bi = 50, Vi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9725
9735
|
...jn,
|
|
9726
9736
|
neutral: "Notice"
|
|
9727
9737
|
}, ...c }) => {
|
|
@@ -9740,21 +9750,21 @@ var Er = {
|
|
|
9740
9750
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9741
9751
|
m(d[0].id), setTimeout(() => {
|
|
9742
9752
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9743
|
-
},
|
|
9753
|
+
}, zi);
|
|
9744
9754
|
}, k = () => {
|
|
9745
9755
|
y({
|
|
9746
9756
|
[d[0].id]: 502,
|
|
9747
9757
|
[d[b - 1].id]: 501
|
|
9748
9758
|
}), setTimeout(() => {
|
|
9749
9759
|
m(d[0].id);
|
|
9750
|
-
},
|
|
9760
|
+
}, Bi), setTimeout(() => {
|
|
9751
9761
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9752
|
-
},
|
|
9762
|
+
}, zi);
|
|
9753
9763
|
}, A = (t, n) => {
|
|
9754
9764
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: l, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, y = (e) => {
|
|
9755
9765
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9756
9766
|
l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9757
|
-
},
|
|
9767
|
+
}, zi);
|
|
9758
9768
|
}, b = v[a] ?? E(n);
|
|
9759
9769
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9760
9770
|
key: a,
|
|
@@ -9769,7 +9779,7 @@ var Er = {
|
|
|
9769
9779
|
style: { zIndex: b }
|
|
9770
9780
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9771
9781
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9772
|
-
iconName: d === "neutral" ? r :
|
|
9782
|
+
iconName: d === "neutral" ? r : Ri[d],
|
|
9773
9783
|
size: u ? "l" : "m"
|
|
9774
9784
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9775
9785
|
className: `${x}__dismiss-button`,
|
|
@@ -9800,12 +9810,12 @@ var Er = {
|
|
|
9800
9810
|
onClick: O,
|
|
9801
9811
|
size: "m"
|
|
9802
9812
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
9803
|
-
},
|
|
9813
|
+
}, Hi = {
|
|
9804
9814
|
info: "circleInfo",
|
|
9805
9815
|
warning: "triangleExclamation",
|
|
9806
9816
|
success: "circleCheck",
|
|
9807
9817
|
critical: "diamondExclamation"
|
|
9808
|
-
},
|
|
9818
|
+
}, Ui = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
9809
9819
|
...jn,
|
|
9810
9820
|
working: "Working"
|
|
9811
9821
|
}, ...o }) => {
|
|
@@ -9826,16 +9836,16 @@ var Er = {
|
|
|
9826
9836
|
role: l,
|
|
9827
9837
|
...o
|
|
9828
9838
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9829
|
-
iconName: `${i}` in
|
|
9839
|
+
iconName: `${i}` in Hi ? Hi[i] : Hi.info,
|
|
9830
9840
|
size: "m"
|
|
9831
9841
|
})), /* @__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)));
|
|
9832
|
-
},
|
|
9842
|
+
}, Wi = {
|
|
9833
9843
|
info: "circleInfo",
|
|
9834
9844
|
warning: "triangleExclamation",
|
|
9835
9845
|
success: "circleCheck",
|
|
9836
9846
|
critical: "diamondExclamation",
|
|
9837
9847
|
discovery: "squareQuestion"
|
|
9838
|
-
},
|
|
9848
|
+
}, Gi = ({ 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 }) => {
|
|
9839
9849
|
let h = r === "marketing", g = m(null), _ = m(void 0), v = "pds-section-message", y = {
|
|
9840
9850
|
error: `${v}--error`,
|
|
9841
9851
|
success: `${v}--success`,
|
|
@@ -9872,7 +9882,7 @@ var Er = {
|
|
|
9872
9882
|
role: S,
|
|
9873
9883
|
...p
|
|
9874
9884
|
}, /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9875
|
-
iconName: `${d}` in
|
|
9885
|
+
iconName: `${d}` in Wi ? Wi[d] : Wi.info,
|
|
9876
9886
|
size: h ? "xl" : "l"
|
|
9877
9887
|
})), /* @__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, {
|
|
9878
9888
|
...n,
|
|
@@ -9885,10 +9895,10 @@ var Er = {
|
|
|
9885
9895
|
onClick: D,
|
|
9886
9896
|
size: h ? "l" : "m"
|
|
9887
9897
|
})));
|
|
9888
|
-
},
|
|
9898
|
+
}, Ki = 3e4, qi = {
|
|
9889
9899
|
pause: "Pause notification",
|
|
9890
9900
|
resume: "Resume notification"
|
|
9891
|
-
},
|
|
9901
|
+
}, Ji = r({ labelStrings: qi }), Yi = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(hn, {
|
|
9892
9902
|
ariaLabel: t || "Close",
|
|
9893
9903
|
className: "pds-toast__close-button",
|
|
9894
9904
|
onClick: (e) => {
|
|
@@ -9896,13 +9906,13 @@ var Er = {
|
|
|
9896
9906
|
},
|
|
9897
9907
|
size: "s",
|
|
9898
9908
|
tabIndex: 0
|
|
9899
|
-
}),
|
|
9909
|
+
}), Xi = ({ className: t, labelStrings: n = qi, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9900
9910
|
let a = Z(["pds-toaster", t]);
|
|
9901
|
-
return /* @__PURE__ */ e.createElement(
|
|
9911
|
+
return /* @__PURE__ */ e.createElement(Ji.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(Ce, {
|
|
9902
9912
|
newestOnTop: !0,
|
|
9903
9913
|
autoClose: !1,
|
|
9904
9914
|
className: a,
|
|
9905
|
-
closeButton:
|
|
9915
|
+
closeButton: Yi,
|
|
9906
9916
|
draggable: !1,
|
|
9907
9917
|
icon: !1,
|
|
9908
9918
|
limit: r,
|
|
@@ -9912,25 +9922,25 @@ var Er = {
|
|
|
9912
9922
|
role: "status",
|
|
9913
9923
|
transition: Se
|
|
9914
9924
|
}));
|
|
9915
|
-
},
|
|
9925
|
+
}, Zi = {
|
|
9916
9926
|
info: "circleInfo",
|
|
9917
9927
|
success: "circleCheck",
|
|
9918
9928
|
warning: "triangleExclamation",
|
|
9919
9929
|
critical: "diamondExclamation"
|
|
9920
|
-
},
|
|
9930
|
+
}, Qi = {
|
|
9921
9931
|
info: "Information",
|
|
9922
9932
|
success: "Success",
|
|
9923
9933
|
warning: "Warning",
|
|
9924
9934
|
critical: "Critical",
|
|
9925
9935
|
working: "Working..."
|
|
9926
|
-
},
|
|
9936
|
+
}, $i = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Qi }) => {
|
|
9927
9937
|
let l = "pds-toast", u = {
|
|
9928
9938
|
critical: `${l}--critical`,
|
|
9929
9939
|
info: `${l}--info`,
|
|
9930
9940
|
success: `${l}--success`,
|
|
9931
9941
|
warning: `${l}--warning`,
|
|
9932
9942
|
working: `${l}--working`
|
|
9933
|
-
}, d = `${s[o]} `, { labelStrings: f } = c(
|
|
9943
|
+
}, d = `${s[o]} `, { labelStrings: f } = c(Ji), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
9934
9944
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9935
9945
|
className: Z([
|
|
9936
9946
|
l,
|
|
@@ -9940,7 +9950,7 @@ var Er = {
|
|
|
9940
9950
|
id: i
|
|
9941
9951
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9942
9952
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9943
|
-
iconName:
|
|
9953
|
+
iconName: Zi[o],
|
|
9944
9954
|
size: "l"
|
|
9945
9955
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9946
9956
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -9955,11 +9965,11 @@ var Er = {
|
|
|
9955
9965
|
iconName: p ? "play" : "pause",
|
|
9956
9966
|
size: "m"
|
|
9957
9967
|
})));
|
|
9958
|
-
},
|
|
9968
|
+
}, ea = /* @__PURE__ */ function(e) {
|
|
9959
9969
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9960
|
-
}({}),
|
|
9970
|
+
}({}), ta = () => [
|
|
9961
9971
|
(t, n, r = {}) => {
|
|
9962
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
9972
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(Ki, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement($i, {
|
|
9963
9973
|
autoCloseDuration: a || void 0,
|
|
9964
9974
|
toastId: i,
|
|
9965
9975
|
type: t
|
|
@@ -9984,7 +9994,7 @@ var Er = {
|
|
|
9984
9994
|
enter: "pds-toast--bounceInPlace",
|
|
9985
9995
|
exit: "pds-toast--slideOut"
|
|
9986
9996
|
})
|
|
9987
|
-
],
|
|
9997
|
+
], na = ({ 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, ..._ }) => {
|
|
9988
9998
|
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();
|
|
9989
9999
|
l(() => {
|
|
9990
10000
|
c ? E(!0) : O(!1);
|
|
@@ -10049,7 +10059,7 @@ var Er = {
|
|
|
10049
10059
|
onClick: M,
|
|
10050
10060
|
size: "m"
|
|
10051
10061
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10052
|
-
},
|
|
10062
|
+
}, ra = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
|
|
10053
10063
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = Lt();
|
|
10054
10064
|
l(() => {
|
|
10055
10065
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10114,7 +10124,7 @@ var Er = {
|
|
|
10114
10124
|
}),
|
|
10115
10125
|
zIndex: 9999
|
|
10116
10126
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10117
|
-
},
|
|
10127
|
+
}, ia = ({ 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 }) => {
|
|
10118
10128
|
let m = Xe(n), g = m.__unslotted, _ = m.footer, v = "pds-modal", x = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10119
10129
|
maxHeight: a,
|
|
10120
10130
|
paddingInlineEnd: "1rem",
|
|
@@ -10190,27 +10200,27 @@ var Er = {
|
|
|
10190
10200
|
className: `${v}__content`,
|
|
10191
10201
|
style: S
|
|
10192
10202
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10193
|
-
},
|
|
10203
|
+
}, aa = (e, t) => {
|
|
10194
10204
|
let n = t - e + 1;
|
|
10195
10205
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10196
|
-
},
|
|
10206
|
+
}, oa = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
10197
10207
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10198
|
-
if (a >= i) return
|
|
10208
|
+
if (a >= i) return aa(1, i);
|
|
10199
10209
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10200
10210
|
if (!l && u) return [
|
|
10201
|
-
...
|
|
10211
|
+
...aa(1, 3 + 2 * e),
|
|
10202
10212
|
"...",
|
|
10203
10213
|
i
|
|
10204
10214
|
];
|
|
10205
10215
|
if (l && !u) return [
|
|
10206
10216
|
1,
|
|
10207
10217
|
"...",
|
|
10208
|
-
...
|
|
10218
|
+
...aa(i - (3 + 2 * e) + 1, i)
|
|
10209
10219
|
];
|
|
10210
10220
|
if (l && u) return [
|
|
10211
10221
|
1,
|
|
10212
10222
|
"...",
|
|
10213
|
-
...
|
|
10223
|
+
...aa(s, c),
|
|
10214
10224
|
"...",
|
|
10215
10225
|
o
|
|
10216
10226
|
];
|
|
@@ -10219,11 +10229,11 @@ var Er = {
|
|
|
10219
10229
|
n,
|
|
10220
10230
|
e,
|
|
10221
10231
|
t
|
|
10222
|
-
]),
|
|
10232
|
+
]), sa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10223
10233
|
previous: "Go to previous page",
|
|
10224
10234
|
next: "Go to next page"
|
|
10225
10235
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10226
|
-
let f =
|
|
10236
|
+
let f = oa({
|
|
10227
10237
|
currentPage: r,
|
|
10228
10238
|
totalItemCount: u,
|
|
10229
10239
|
bufferCount: t,
|
|
@@ -10277,7 +10287,7 @@ var Er = {
|
|
|
10277
10287
|
size: "m"
|
|
10278
10288
|
}))
|
|
10279
10289
|
}))));
|
|
10280
|
-
},
|
|
10290
|
+
}, ca = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10281
10291
|
next: "Next",
|
|
10282
10292
|
previous: "Previous"
|
|
10283
10293
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10306,7 +10316,7 @@ var Er = {
|
|
|
10306
10316
|
iconName: "angleRight",
|
|
10307
10317
|
size: "m"
|
|
10308
10318
|
}))));
|
|
10309
|
-
},
|
|
10319
|
+
}, la = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10310
10320
|
next: "Go to next page",
|
|
10311
10321
|
of: "of",
|
|
10312
10322
|
page: "Page",
|
|
@@ -10342,7 +10352,7 @@ var Er = {
|
|
|
10342
10352
|
className: "visually-hidden",
|
|
10343
10353
|
id: "pagination-compact",
|
|
10344
10354
|
level: r
|
|
10345
|
-
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10355
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ni, {
|
|
10346
10356
|
className: C ? `${b}__page-input--error` : void 0,
|
|
10347
10357
|
id: m,
|
|
10348
10358
|
inputProps: {
|
|
@@ -10361,7 +10371,7 @@ var Er = {
|
|
|
10361
10371
|
}), C && /* @__PURE__ */ e.createElement("span", {
|
|
10362
10372
|
className: "visually-hidden",
|
|
10363
10373
|
role: "alert"
|
|
10364
|
-
}, C)) : /* @__PURE__ */ e.createElement(
|
|
10374
|
+
}, C)) : /* @__PURE__ */ e.createElement(er, {
|
|
10365
10375
|
autoWidth: !0,
|
|
10366
10376
|
id: m,
|
|
10367
10377
|
label: o.pageSelect,
|
|
@@ -10410,7 +10420,7 @@ var Er = {
|
|
|
10410
10420
|
size: "m"
|
|
10411
10421
|
}))
|
|
10412
10422
|
})));
|
|
10413
|
-
},
|
|
10423
|
+
}, ua = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10414
10424
|
let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
|
|
10415
10425
|
return l(() => {
|
|
10416
10426
|
let e = v.current;
|
|
@@ -10434,7 +10444,7 @@ var Er = {
|
|
|
10434
10444
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10435
10445
|
iconName: "angleDown"
|
|
10436
10446
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10437
|
-
},
|
|
10447
|
+
}, da = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10438
10448
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10439
10449
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10440
10450
|
className: Z([
|
|
@@ -10444,7 +10454,7 @@ var Er = {
|
|
|
10444
10454
|
]),
|
|
10445
10455
|
...i
|
|
10446
10456
|
}, t);
|
|
10447
|
-
},
|
|
10457
|
+
}, fa = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10448
10458
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10449
10459
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10450
10460
|
className: Z([
|
|
@@ -10454,7 +10464,7 @@ var Er = {
|
|
|
10454
10464
|
]),
|
|
10455
10465
|
...a
|
|
10456
10466
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10457
|
-
},
|
|
10467
|
+
}, pa = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10458
10468
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10459
10469
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10460
10470
|
className: Z([
|
|
@@ -10466,7 +10476,7 @@ var Er = {
|
|
|
10466
10476
|
]),
|
|
10467
10477
|
...o
|
|
10468
10478
|
}, n);
|
|
10469
|
-
},
|
|
10479
|
+
}, ma = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10470
10480
|
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 = () => {
|
|
10471
10481
|
c((e) => !e);
|
|
10472
10482
|
};
|
|
@@ -10497,10 +10507,10 @@ var Er = {
|
|
|
10497
10507
|
opacity: "0"
|
|
10498
10508
|
}
|
|
10499
10509
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10500
|
-
},
|
|
10510
|
+
}, ha = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10501
10511
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10502
10512
|
...r
|
|
10503
|
-
}, t),
|
|
10513
|
+
}, t), ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10504
10514
|
"aria-label": "Pantheon",
|
|
10505
10515
|
fill: "none",
|
|
10506
10516
|
focusable: "false",
|
|
@@ -10562,7 +10572,7 @@ var Er = {
|
|
|
10562
10572
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10563
10573
|
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",
|
|
10564
10574
|
fill: "var(--pds-color-foreground-default)"
|
|
10565
|
-
})),
|
|
10575
|
+
})), _a = /* @__PURE__ */ e.createElement("svg", {
|
|
10566
10576
|
"aria-label": "Pantheon",
|
|
10567
10577
|
fill: "none",
|
|
10568
10578
|
focusable: "false",
|
|
@@ -10597,7 +10607,7 @@ var Er = {
|
|
|
10597
10607
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10598
10608
|
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",
|
|
10599
10609
|
fill: "var(--pds-color-foreground-default)"
|
|
10600
|
-
})),
|
|
10610
|
+
})), va = /* @__PURE__ */ e.createElement("svg", {
|
|
10601
10611
|
"aria-label": "Pantheon",
|
|
10602
10612
|
fill: "none",
|
|
10603
10613
|
focusable: "false",
|
|
@@ -10632,17 +10642,17 @@ var Er = {
|
|
|
10632
10642
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10633
10643
|
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",
|
|
10634
10644
|
fill: "var(--pds-color-foreground-default)"
|
|
10635
|
-
})),
|
|
10645
|
+
})), ya = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10636
10646
|
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;
|
|
10637
10647
|
switch (r) {
|
|
10638
10648
|
case "full":
|
|
10639
|
-
f =
|
|
10649
|
+
f = ga;
|
|
10640
10650
|
break;
|
|
10641
10651
|
case "icon":
|
|
10642
|
-
f =
|
|
10652
|
+
f = _a;
|
|
10643
10653
|
break;
|
|
10644
10654
|
case "wordmark":
|
|
10645
|
-
f =
|
|
10655
|
+
f = va;
|
|
10646
10656
|
break;
|
|
10647
10657
|
}
|
|
10648
10658
|
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, {
|
|
@@ -10659,7 +10669,7 @@ var Er = {
|
|
|
10659
10669
|
]),
|
|
10660
10670
|
...s
|
|
10661
10671
|
}, i ? h : f);
|
|
10662
|
-
},
|
|
10672
|
+
}, ba = 8, xa = 14, Sa = ({ 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 }) => {
|
|
10663
10673
|
let [O, M] = h(d);
|
|
10664
10674
|
l(() => {
|
|
10665
10675
|
M(d);
|
|
@@ -10686,12 +10696,12 @@ var Er = {
|
|
|
10686
10696
|
k(V),
|
|
10687
10697
|
A(V),
|
|
10688
10698
|
L(V)
|
|
10689
|
-
]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q +
|
|
10699
|
+
]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q + xa / 2, re = te + ba, { isMounted: J } = R(V, {
|
|
10690
10700
|
initial: { transform: "scale(0)" },
|
|
10691
10701
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10692
|
-
top: `${ne}px calc(100% + ${
|
|
10702
|
+
top: `${ne}px calc(100% + ${ba}px)`,
|
|
10693
10703
|
bottom: `${ne}px -8px`,
|
|
10694
|
-
left: `calc(100% + ${
|
|
10704
|
+
left: `calc(100% + ${ba}px) ${re}px`,
|
|
10695
10705
|
right: `-8px ${re}px`
|
|
10696
10706
|
}[e] })
|
|
10697
10707
|
});
|
|
@@ -10723,23 +10733,23 @@ var Er = {
|
|
|
10723
10733
|
className: `${P}__arrow`,
|
|
10724
10734
|
context: V,
|
|
10725
10735
|
fill: "var(--pds-color-surface-default)",
|
|
10726
|
-
height:
|
|
10736
|
+
height: ba,
|
|
10727
10737
|
stroke: "var(--pds-color-popover-border)",
|
|
10728
10738
|
strokeWidth: 1,
|
|
10729
10739
|
tipRadius: 0,
|
|
10730
|
-
width:
|
|
10740
|
+
width: xa
|
|
10731
10741
|
}), /* @__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, {
|
|
10732
10742
|
ariaLabel: r,
|
|
10733
10743
|
onClick: G,
|
|
10734
10744
|
size: "s"
|
|
10735
10745
|
})))))));
|
|
10736
|
-
},
|
|
10746
|
+
}, Ca = {
|
|
10737
10747
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10738
10748
|
info: "--pds-color-status-info-fill",
|
|
10739
10749
|
success: "--pds-color-status-success-fill",
|
|
10740
10750
|
warning: "--pds-color-status-warning-fill",
|
|
10741
10751
|
critical: "--pds-color-status-critical-fill"
|
|
10742
|
-
},
|
|
10752
|
+
}, wa = ({ className: t, colorBreakpoints: n = [{
|
|
10743
10753
|
colorType: "info",
|
|
10744
10754
|
percentage: 0
|
|
10745
10755
|
}, {
|
|
@@ -10760,7 +10770,7 @@ var Er = {
|
|
|
10760
10770
|
id: m
|
|
10761
10771
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10762
10772
|
className: `${h}__percentage`,
|
|
10763
|
-
style: { color: `hsl(from var(${
|
|
10773
|
+
style: { color: `hsl(from var(${Ca[y]}) h s calc(l - 7))` }
|
|
10764
10774
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10765
10775
|
"aria-labelledby": m,
|
|
10766
10776
|
"aria-valuenow": v,
|
|
@@ -10770,16 +10780,16 @@ var Er = {
|
|
|
10770
10780
|
className: `${h}__bar`,
|
|
10771
10781
|
style: {
|
|
10772
10782
|
width: `${v}%`,
|
|
10773
|
-
backgroundColor: `var(${
|
|
10783
|
+
backgroundColor: `var(${Ca[y]})`
|
|
10774
10784
|
}
|
|
10775
10785
|
}))), S && b);
|
|
10776
|
-
},
|
|
10786
|
+
}, Ta = {
|
|
10777
10787
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10778
10788
|
info: "--pds-color-status-info-fill",
|
|
10779
10789
|
success: "--pds-color-status-success-fill",
|
|
10780
10790
|
warning: "--pds-color-status-warning-fill",
|
|
10781
10791
|
critical: "--pds-color-status-critical-fill"
|
|
10782
|
-
},
|
|
10792
|
+
}, Ea = ({ className: t, colorBreakpoints: n = [{
|
|
10783
10793
|
colorType: "info",
|
|
10784
10794
|
percentage: 0
|
|
10785
10795
|
}, {
|
|
@@ -10828,7 +10838,7 @@ var Er = {
|
|
|
10828
10838
|
strokeDasharray: x,
|
|
10829
10839
|
strokeDashoffset: S,
|
|
10830
10840
|
strokeWidth: y,
|
|
10831
|
-
style: { stroke: `var(${
|
|
10841
|
+
style: { stroke: `var(${Ta[C]})` },
|
|
10832
10842
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10833
10843
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10834
10844
|
alignmentBaseline: "middle",
|
|
@@ -10838,29 +10848,29 @@ var Er = {
|
|
|
10838
10848
|
x: "50%",
|
|
10839
10849
|
y: "51%"
|
|
10840
10850
|
}, w))));
|
|
10841
|
-
},
|
|
10851
|
+
}, Da = {
|
|
10842
10852
|
of: "of",
|
|
10843
10853
|
showing: "Showing",
|
|
10844
10854
|
unitPlural: "results",
|
|
10845
10855
|
unitSingular: "result"
|
|
10846
|
-
},
|
|
10856
|
+
}, Oa = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, ka = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
10847
10857
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
10848
|
-
...
|
|
10858
|
+
...Da,
|
|
10849
10859
|
...i
|
|
10850
|
-
}, p = n !== void 0, m =
|
|
10860
|
+
}, p = n !== void 0, m = Oa(r, f, d, a);
|
|
10851
10861
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10852
10862
|
"aria-live": "polite",
|
|
10853
10863
|
className: Z([s, t ?? ""]),
|
|
10854
10864
|
...o
|
|
10855
10865
|
}, /* @__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}`));
|
|
10856
|
-
},
|
|
10866
|
+
}, Aa = {
|
|
10857
10867
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
10858
10868
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
10859
10869
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
10860
10870
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
10861
10871
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
10862
10872
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
10863
|
-
},
|
|
10873
|
+
}, ja = (e) => typeof e == "string", Ma = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10864
10874
|
"privacy",
|
|
10865
10875
|
"dataSubjectRequest",
|
|
10866
10876
|
"cookiePolicy",
|
|
@@ -10877,8 +10887,8 @@ var Er = {
|
|
|
10877
10887
|
r ?? ""
|
|
10878
10888
|
]),
|
|
10879
10889
|
...c
|
|
10880
|
-
}, /* @__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."), o.map((t, n) =>
|
|
10881
|
-
},
|
|
10890
|
+
}, /* @__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."), o.map((t, n) => ja(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, Aa[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
10891
|
+
}, Na = ({ className: t, option: n, ...r }) => {
|
|
10882
10892
|
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;
|
|
10883
10893
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10884
10894
|
let d = /* @__PURE__ */ e.createElement(rn, {
|
|
@@ -10901,7 +10911,7 @@ var Er = {
|
|
|
10901
10911
|
className: `${i}__status`,
|
|
10902
10912
|
style: { pointerEvents: "none" }
|
|
10903
10913
|
}, d));
|
|
10904
|
-
},
|
|
10914
|
+
}, Pa = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10905
10915
|
clearButton: "Clear input text",
|
|
10906
10916
|
inputInstructions: "Type to search options"
|
|
10907
10917
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10913,7 +10923,7 @@ var Er = {
|
|
|
10913
10923
|
id: n,
|
|
10914
10924
|
label: i,
|
|
10915
10925
|
value: r ?? i,
|
|
10916
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10926
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Na, { option: t }),
|
|
10917
10927
|
siteData: t
|
|
10918
10928
|
};
|
|
10919
10929
|
});
|
|
@@ -10921,7 +10931,7 @@ var Er = {
|
|
|
10921
10931
|
className: Z([_, t ?? ""]),
|
|
10922
10932
|
id: r,
|
|
10923
10933
|
...p
|
|
10924
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
10934
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(Vr, {
|
|
10925
10935
|
hasClearButton: !0,
|
|
10926
10936
|
hasSearchShortcut: !0,
|
|
10927
10937
|
className: `${_}__combobox`,
|
|
@@ -10942,7 +10952,7 @@ var Er = {
|
|
|
10942
10952
|
};
|
|
10943
10953
|
//#endregion
|
|
10944
10954
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10945
|
-
function
|
|
10955
|
+
function Fa(e, t, n = null, r = 0, i = []) {
|
|
10946
10956
|
return e.reduce((e, a, o) => {
|
|
10947
10957
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10948
10958
|
return e.push({
|
|
@@ -10954,10 +10964,10 @@ function Pa(e, t, n = null, r = 0, i = []) {
|
|
|
10954
10964
|
index: o,
|
|
10955
10965
|
isExpanded: c,
|
|
10956
10966
|
parentId: n
|
|
10957
|
-
}), s && c && a.children && e.push(...
|
|
10967
|
+
}), s && c && a.children && e.push(...Fa(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10958
10968
|
}, []);
|
|
10959
10969
|
}
|
|
10960
|
-
function
|
|
10970
|
+
function Ia(e) {
|
|
10961
10971
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10962
10972
|
for (let i of e) {
|
|
10963
10973
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10970,28 +10980,28 @@ function Fa(e) {
|
|
|
10970
10980
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10971
10981
|
}
|
|
10972
10982
|
}
|
|
10973
|
-
return
|
|
10983
|
+
return La(r);
|
|
10974
10984
|
}
|
|
10975
|
-
function
|
|
10985
|
+
function La(e) {
|
|
10976
10986
|
return e.map((e) => {
|
|
10977
10987
|
if (e.children?.length) return {
|
|
10978
10988
|
...e,
|
|
10979
|
-
children:
|
|
10989
|
+
children: La(e.children)
|
|
10980
10990
|
};
|
|
10981
10991
|
let { children: t, ...n } = e;
|
|
10982
10992
|
return n;
|
|
10983
10993
|
});
|
|
10984
10994
|
}
|
|
10985
|
-
function
|
|
10995
|
+
function Ra(e, t) {
|
|
10986
10996
|
for (let n of e) {
|
|
10987
10997
|
if (n.id === t) return n;
|
|
10988
10998
|
if (n.children) {
|
|
10989
|
-
let e =
|
|
10999
|
+
let e = Ra(n.children, t);
|
|
10990
11000
|
if (e) return e;
|
|
10991
11001
|
}
|
|
10992
11002
|
}
|
|
10993
11003
|
}
|
|
10994
|
-
function
|
|
11004
|
+
function za(e, t, n, r, i, a, o) {
|
|
10995
11005
|
let s = e.findIndex((e) => e.id === n);
|
|
10996
11006
|
if (s === -1) return 0;
|
|
10997
11007
|
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;
|
|
@@ -10999,7 +11009,7 @@ function Ra(e, t, n, r, i, a, o) {
|
|
|
10999
11009
|
}
|
|
11000
11010
|
//#endregion
|
|
11001
11011
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11002
|
-
var
|
|
11012
|
+
var Ba = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11003
11013
|
if (!r && !t) return null;
|
|
11004
11014
|
let a = r ? {
|
|
11005
11015
|
display: "grid",
|
|
@@ -11020,13 +11030,13 @@ var za = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11020
11030
|
};
|
|
11021
11031
|
//#endregion
|
|
11022
11032
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11023
|
-
function
|
|
11033
|
+
function Va({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11024
11034
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
11025
11035
|
t && !d.current && (u.current = {
|
|
11026
11036
|
items: i ? n : a,
|
|
11027
11037
|
expandedIds: c
|
|
11028
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
11029
|
-
let f = i ? n : a, g = p(() =>
|
|
11038
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ua("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11039
|
+
let f = i ? n : a, g = p(() => Fa(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
11030
11040
|
l((t) => {
|
|
11031
11041
|
let n = new Set(t);
|
|
11032
11042
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11044,7 +11054,7 @@ function Ba({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11044
11054
|
}, []),
|
|
11045
11055
|
flatNodes: g,
|
|
11046
11056
|
handleReorder: s((e) => {
|
|
11047
|
-
let t =
|
|
11057
|
+
let t = Ia(e);
|
|
11048
11058
|
i || o(t), r?.(t);
|
|
11049
11059
|
}, [i, r]),
|
|
11050
11060
|
resetToSnapshot: s(() => {
|
|
@@ -11056,24 +11066,24 @@ function Ba({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11056
11066
|
toggleExpand: v
|
|
11057
11067
|
};
|
|
11058
11068
|
}
|
|
11059
|
-
var
|
|
11060
|
-
function
|
|
11061
|
-
|
|
11069
|
+
var Ha = /* @__PURE__ */ new Set();
|
|
11070
|
+
function Ua(e) {
|
|
11071
|
+
Ha.has(e) || (Ha.add(e), console.warn(e));
|
|
11062
11072
|
}
|
|
11063
11073
|
//#endregion
|
|
11064
11074
|
//#region src/components/SortableList/SortableList.tsx
|
|
11065
|
-
var
|
|
11075
|
+
var Wa = 24, Ga = { droppable: { strategy: je.Always } }, Ka = 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) {
|
|
11066
11076
|
let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), W = s((e, t) => {
|
|
11067
11077
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11068
11078
|
e.preventDefault();
|
|
11069
11079
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11070
11080
|
return B.current = i, z(i), {
|
|
11071
|
-
x: t.currentCoordinates.x + a *
|
|
11081
|
+
x: t.currentCoordinates.x + a * Wa,
|
|
11072
11082
|
y: t.currentCoordinates.y
|
|
11073
11083
|
};
|
|
11074
11084
|
}
|
|
11075
11085
|
return Le(e, t);
|
|
11076
|
-
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: ee, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } =
|
|
11086
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: ee, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } = Va({
|
|
11077
11087
|
defaultItems: a,
|
|
11078
11088
|
isDragEnabled: G,
|
|
11079
11089
|
items: g,
|
|
@@ -11100,9 +11110,9 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11100
11110
|
X,
|
|
11101
11111
|
Y,
|
|
11102
11112
|
j
|
|
11103
|
-
]).size > 0, le = p(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = p(() => T ?
|
|
11113
|
+
]).size > 0, le = p(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = p(() => T ? Ra(K, String(T)) ?? null : null, [T, K]), de = p(() => {
|
|
11104
11114
|
let e = le?.depth ?? 0;
|
|
11105
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11115
|
+
return !T || !j || O || _ === 0 ? e : za(q, String(T), String(j), V * Wa, Wa, _);
|
|
11106
11116
|
}, [
|
|
11107
11117
|
T,
|
|
11108
11118
|
le,
|
|
@@ -11114,7 +11124,7 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11114
11124
|
]), fe = p(() => {
|
|
11115
11125
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
11116
11126
|
let e = q.findIndex((e) => e.id === T);
|
|
11117
|
-
return e === -1 ? null :
|
|
11127
|
+
return e === -1 ? null : qa(q, e, de);
|
|
11118
11128
|
}, [
|
|
11119
11129
|
T,
|
|
11120
11130
|
q,
|
|
@@ -11160,19 +11170,19 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11160
11170
|
}, [q, Y]), ge = s((e) => {
|
|
11161
11171
|
let t = e.delta.x;
|
|
11162
11172
|
if (P.current = t, A.current || _ === 0) return;
|
|
11163
|
-
let n = Math.floor(t /
|
|
11164
|
-
(n > r || n < r && t < r *
|
|
11173
|
+
let n = Math.floor(t / Wa), r = U.current;
|
|
11174
|
+
(n > r || n < r && t < r * Wa - Wa * .4) && (U.current = n, H(n));
|
|
11165
11175
|
}, [_]), _e = s((e) => {
|
|
11166
11176
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11167
11177
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (ee(L.current), L.current = null);
|
|
11168
|
-
let o = q.findIndex((e) => e.id === t.id), s = r ? i *
|
|
11178
|
+
let o = q.findIndex((e) => e.id === t.id), s = r ? i * Wa : a * Wa, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
11169
11179
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
11170
11180
|
if (o === -1) return;
|
|
11171
11181
|
let e = q[o];
|
|
11172
11182
|
if (!e) return;
|
|
11173
|
-
let n =
|
|
11183
|
+
let n = za(q, String(t.id), String(t.id), s, Wa, _);
|
|
11174
11184
|
if (n === e.depth) return;
|
|
11175
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
11185
|
+
let r = [...q], [i] = r.splice(o, 1), a = qa(r, o, n);
|
|
11176
11186
|
if (a && oe.has(a)) return;
|
|
11177
11187
|
let c = {
|
|
11178
11188
|
...i,
|
|
@@ -11194,9 +11204,9 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11194
11204
|
let e = q[u];
|
|
11195
11205
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11196
11206
|
} else {
|
|
11197
|
-
g =
|
|
11207
|
+
g = za(d, String(t.id), String(l), s, Wa, _, p.depth);
|
|
11198
11208
|
let e = d[h];
|
|
11199
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11209
|
+
v = e && e.depth === g - 1 ? String(l) : qa(d, h, g);
|
|
11200
11210
|
}
|
|
11201
11211
|
if (v && oe.has(v)) return;
|
|
11202
11212
|
let y = {
|
|
@@ -11219,24 +11229,24 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11219
11229
|
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 && (ee(L.current), L.current = null);
|
|
11220
11230
|
}, [ee]), ye = p(() => ({
|
|
11221
11231
|
onDragStart({ active: e }) {
|
|
11222
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
11232
|
+
let t = q.find((t) => t.id === e.id), n = Ra(K, String(e.id));
|
|
11223
11233
|
return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
|
|
11224
11234
|
},
|
|
11225
11235
|
onDragOver({ active: e, over: t }) {
|
|
11226
11236
|
if (!t) return;
|
|
11227
11237
|
let n = q.findIndex((e) => e.id === t.id);
|
|
11228
11238
|
if (n === -1) return;
|
|
11229
|
-
let r =
|
|
11239
|
+
let r = Ra(K, String(e.id)), i = r ? c(r) : String(e.id), a = za(q, String(e.id), String(t.id), P.current, Wa, _);
|
|
11230
11240
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
11231
11241
|
},
|
|
11232
11242
|
onDragEnd({ active: e, over: t }) {
|
|
11233
|
-
let n =
|
|
11243
|
+
let n = Ra(K, String(e.id)), r = n ? c(n) : String(e.id);
|
|
11234
11244
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11235
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
11245
|
+
let i = q.findIndex((e) => e.id === t.id), a = za(q, String(e.id), String(t.id), P.current, Wa, _);
|
|
11236
11246
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
11237
11247
|
},
|
|
11238
11248
|
onDragCancel({ active: e }) {
|
|
11239
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
11249
|
+
let t = q.find((t) => t.id === e.id), n = Ra(K, String(e.id));
|
|
11240
11250
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
11241
11251
|
}
|
|
11242
11252
|
}), [
|
|
@@ -11244,14 +11254,14 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11244
11254
|
q,
|
|
11245
11255
|
c,
|
|
11246
11256
|
_
|
|
11247
|
-
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type ===
|
|
11257
|
+
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === Ba ? e.cloneElement(t, be) : t);
|
|
11248
11258
|
return /* @__PURE__ */ e.createElement(Oe, {
|
|
11249
11259
|
accessibility: {
|
|
11250
11260
|
announcements: ye,
|
|
11251
11261
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11252
11262
|
},
|
|
11253
11263
|
collisionDetection: me,
|
|
11254
|
-
measuring:
|
|
11264
|
+
measuring: Ga,
|
|
11255
11265
|
onDragCancel: ve,
|
|
11256
11266
|
onDragEnd: _e,
|
|
11257
11267
|
onDragMove: ge,
|
|
@@ -11326,14 +11336,14 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11326
11336
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
11327
11337
|
})()) : null));
|
|
11328
11338
|
});
|
|
11329
|
-
function
|
|
11339
|
+
function qa(e, t, n) {
|
|
11330
11340
|
if (n === 0) return null;
|
|
11331
11341
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11332
11342
|
return null;
|
|
11333
11343
|
}
|
|
11334
11344
|
//#endregion
|
|
11335
11345
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11336
|
-
var
|
|
11346
|
+
var Ja = ({ 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 }) => {
|
|
11337
11347
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
|
|
11338
11348
|
attributes: {
|
|
11339
11349
|
role: "listitem",
|
|
@@ -11388,11 +11398,11 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11388
11398
|
key: t.id,
|
|
11389
11399
|
className: `${w}__cell`
|
|
11390
11400
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11391
|
-
},
|
|
11401
|
+
}, Ya = [
|
|
11392
11402
|
"default",
|
|
11393
11403
|
"working",
|
|
11394
11404
|
"checked"
|
|
11395
|
-
],
|
|
11405
|
+
], Xa = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11396
11406
|
let l = {
|
|
11397
11407
|
checkForUpdates: "Check for updates",
|
|
11398
11408
|
checking: "Checking...",
|
|
@@ -11439,7 +11449,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11439
11449
|
triggerIconColor: "default",
|
|
11440
11450
|
triggerIconSize: "s"
|
|
11441
11451
|
}), t === "left" && g));
|
|
11442
|
-
},
|
|
11452
|
+
}, Za = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11443
11453
|
let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
|
|
11444
11454
|
className: `${s}__spinner`,
|
|
11445
11455
|
size: "m"
|
|
@@ -11456,7 +11466,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11456
11466
|
]),
|
|
11457
11467
|
...a
|
|
11458
11468
|
}, r ? d : l);
|
|
11459
|
-
},
|
|
11469
|
+
}, Qa = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11460
11470
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11461
11471
|
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`;
|
|
11462
11472
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11474,7 +11484,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11474
11484
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11475
11485
|
...a
|
|
11476
11486
|
}, l);
|
|
11477
|
-
},
|
|
11487
|
+
}, $a = ({ className: t, steps: n, translatableLabels: r = {
|
|
11478
11488
|
step: "Step",
|
|
11479
11489
|
completed: "completed",
|
|
11480
11490
|
hasError: "has an error",
|
|
@@ -11538,7 +11548,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11538
11548
|
key: t.id,
|
|
11539
11549
|
className: `${o}__step`,
|
|
11540
11550
|
id: `${t.id}--mobile`
|
|
11541
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11551
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ea, {
|
|
11542
11552
|
innerLabel: n,
|
|
11543
11553
|
label: "Step progress",
|
|
11544
11554
|
percentage: i,
|
|
@@ -11563,7 +11573,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11563
11573
|
"data-steps": d,
|
|
11564
11574
|
...i
|
|
11565
11575
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11566
|
-
},
|
|
11576
|
+
}, eo = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11567
11577
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11568
11578
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11569
11579
|
className: Z([...p]),
|
|
@@ -11589,14 +11599,14 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11589
11599
|
size: "s",
|
|
11590
11600
|
variant: "highlight"
|
|
11591
11601
|
})))));
|
|
11592
|
-
},
|
|
11602
|
+
}, to = ({ className: t, labelStrings: n = {
|
|
11593
11603
|
step: "Step",
|
|
11594
11604
|
completed: "completed",
|
|
11595
11605
|
hasError: "has an error"
|
|
11596
11606
|
}, steps: r, ...i }) => {
|
|
11597
11607
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11598
11608
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11599
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11609
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(eo, {
|
|
11600
11610
|
key: `s${i}`,
|
|
11601
11611
|
_isFirstStep: c,
|
|
11602
11612
|
"aria-current": a ? "step" : null,
|
|
@@ -11617,7 +11627,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11617
11627
|
className: Z([a, t ?? ""]),
|
|
11618
11628
|
...i
|
|
11619
11629
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11620
|
-
},
|
|
11630
|
+
}, no = ({ 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: W, rowData: G, selectAllLabel: K = "Select all rows", selectedRows: ee, sortKey: q, sortOrder: te, totalItemCount: ne, ...re }) => {
|
|
11621
11631
|
let J = "pds-table", ie = u(), ae = u(), Y = m(null), oe = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = G.length > 0 || X && (ne ?? 0) > 0, [ue, de] = h({
|
|
11622
11632
|
key: a ?? "",
|
|
11623
11633
|
order: a === void 0 ? "asc" : o
|
|
@@ -11707,19 +11717,19 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11707
11717
|
}, Ke = () => {
|
|
11708
11718
|
let e = new Set(Ee);
|
|
11709
11719
|
Ue || We ? He.forEach((t) => e.delete(t)) : He.forEach((t) => e.add(t)), Ce || Te(e), I?.(Array.from(e));
|
|
11710
|
-
}, qe = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11720
|
+
}, qe = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(mr, {
|
|
11711
11721
|
shape: "rounded",
|
|
11712
11722
|
size: {
|
|
11713
11723
|
height: 1,
|
|
11714
11724
|
width: 1
|
|
11715
11725
|
}
|
|
11716
|
-
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(
|
|
11726
|
+
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(mr, {
|
|
11717
11727
|
shape: "rounded",
|
|
11718
11728
|
size: { height: 1 }
|
|
11719
11729
|
})))), Je = () => /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
11720
11730
|
className: "pds-table__empty-cell",
|
|
11721
11731
|
colSpan: r.length + +!!Se
|
|
11722
|
-
}, f ?? /* @__PURE__ */ e.createElement(
|
|
11732
|
+
}, f ?? /* @__PURE__ */ e.createElement(Qn, {
|
|
11723
11733
|
heading: g,
|
|
11724
11734
|
iconName: "emptySet",
|
|
11725
11735
|
message: _
|
|
@@ -11738,7 +11748,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11738
11748
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), je(t, i));
|
|
11739
11749
|
} : void 0,
|
|
11740
11750
|
tabIndex: a ? 0 : void 0
|
|
11741
|
-
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11751
|
+
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Rr, {
|
|
11742
11752
|
checked: Ee.has(i),
|
|
11743
11753
|
disabled: !s,
|
|
11744
11754
|
id: `${ae}-row-${i}`,
|
|
@@ -11760,7 +11770,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11760
11770
|
"aria-busy": E,
|
|
11761
11771
|
className: Z([J, t]),
|
|
11762
11772
|
...re
|
|
11763
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11773
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Rr, {
|
|
11764
11774
|
checked: Ue,
|
|
11765
11775
|
id: ae,
|
|
11766
11776
|
indeterminate: We,
|
|
@@ -11784,7 +11794,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11784
11794
|
})), /* @__PURE__ */ e.createElement("span", { className: Z([`${J}__sort-button-bottom`, Ve(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
|
|
11785
11795
|
iconName: "caretDown",
|
|
11786
11796
|
size: "m"
|
|
11787
|
-
})))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, E ? Array.from({ length: k }, (e, t) => qe(t)) : Re.length === 0 ? Je() : Re.map((e, t) => Ye(e, t))))), ce && !E && le && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, R && R.length > 0 && /* @__PURE__ */ e.createElement(
|
|
11797
|
+
})))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, E ? Array.from({ length: k }, (e, t) => qe(t)) : Re.length === 0 ? Je() : Re.map((e, t) => Ye(e, t))))), ce && !E && le && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, R && R.length > 0 && /* @__PURE__ */ e.createElement(er, {
|
|
11788
11798
|
autoWidth: !0,
|
|
11789
11799
|
id: ie,
|
|
11790
11800
|
label: z,
|
|
@@ -11796,7 +11806,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11796
11806
|
showLabel: !1,
|
|
11797
11807
|
size: "s",
|
|
11798
11808
|
value: String(be)
|
|
11799
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11809
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(la, {
|
|
11800
11810
|
currentPage: X ? i ?? 1 : fe,
|
|
11801
11811
|
itemsPerPage: be,
|
|
11802
11812
|
labelStrings: B,
|
|
@@ -11837,8 +11847,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11837
11847
|
size: "s",
|
|
11838
11848
|
variant: "standard"
|
|
11839
11849
|
}))))));
|
|
11840
|
-
return V ? /* @__PURE__ */ e.createElement(
|
|
11841
|
-
},
|
|
11850
|
+
return V ? /* @__PURE__ */ e.createElement(fa, { padding: "none" }, Ze) : Ze;
|
|
11851
|
+
}, ro = [
|
|
11842
11852
|
" ",
|
|
11843
11853
|
"/",
|
|
11844
11854
|
".",
|
|
@@ -11856,7 +11866,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11856
11866
|
"=",
|
|
11857
11867
|
"|",
|
|
11858
11868
|
"~"
|
|
11859
|
-
],
|
|
11869
|
+
], io = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ao = (e) => {
|
|
11860
11870
|
let t = [];
|
|
11861
11871
|
return e.forEach((e) => {
|
|
11862
11872
|
let { id: n, innerText: r } = e;
|
|
@@ -11869,18 +11879,18 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11869
11879
|
title: r
|
|
11870
11880
|
});
|
|
11871
11881
|
}), t;
|
|
11872
|
-
},
|
|
11882
|
+
}, oo = (e, t, n) => {
|
|
11873
11883
|
let [r, i] = h([]);
|
|
11874
11884
|
return l(() => {
|
|
11875
11885
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11876
11886
|
let e = Array.from(document.querySelectorAll(r));
|
|
11877
11887
|
e.forEach((e) => {
|
|
11878
|
-
|
|
11879
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11888
|
+
ro.forEach((t) => {
|
|
11889
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(io(t), "g"), "-"));
|
|
11880
11890
|
});
|
|
11881
11891
|
}), e.forEach((e, t) => {
|
|
11882
11892
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11883
|
-
}), i(
|
|
11893
|
+
}), i(ao(e));
|
|
11884
11894
|
};
|
|
11885
11895
|
a();
|
|
11886
11896
|
let o = document.getElementById(e);
|
|
@@ -11896,7 +11906,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11896
11906
|
t,
|
|
11897
11907
|
n
|
|
11898
11908
|
]), { nestedHeadings: r };
|
|
11899
|
-
},
|
|
11909
|
+
}, so = (e, t) => {
|
|
11900
11910
|
let [n, r] = h(void 0), i = m({});
|
|
11901
11911
|
return l(() => {
|
|
11902
11912
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11915,7 +11925,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11915
11925
|
o.disconnect(), r(void 0);
|
|
11916
11926
|
};
|
|
11917
11927
|
}, [e, t]), n;
|
|
11918
|
-
},
|
|
11928
|
+
}, co = ({ 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", {
|
|
11919
11929
|
key: r.id,
|
|
11920
11930
|
className: `${n}__list-item`
|
|
11921
11931
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11931,8 +11941,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11931
11941
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11932
11942
|
href: `#${r.id}`,
|
|
11933
11943
|
onClick: (e) => i(e, r.id)
|
|
11934
|
-
}, r.title))))))),
|
|
11935
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11944
|
+
}, r.title))))))), lo = ({ 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 }) => {
|
|
11945
|
+
let d = "pds-toc", { nestedHeadings: f } = oo(c, o, u()), p = so(c, o), m = (e) => {
|
|
11936
11946
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11937
11947
|
}, h = (e) => {
|
|
11938
11948
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11950,13 +11960,13 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11950
11960
|
baseClass: d,
|
|
11951
11961
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11952
11962
|
level: i
|
|
11953
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11963
|
+
}, a), /* @__PURE__ */ e.createElement(co, {
|
|
11954
11964
|
activeID: p,
|
|
11955
11965
|
baseClass: d,
|
|
11956
11966
|
headings: f,
|
|
11957
11967
|
onLinkClick: g
|
|
11958
11968
|
}));
|
|
11959
|
-
},
|
|
11969
|
+
}, uo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11960
11970
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11961
11971
|
l(() => {
|
|
11962
11972
|
a !== void 0 && d(a);
|
|
@@ -12070,7 +12080,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12070
12080
|
className: `${c}__panel-content`,
|
|
12071
12081
|
hidden: o !== u
|
|
12072
12082
|
}, r)))));
|
|
12073
|
-
},
|
|
12083
|
+
}, fo = [
|
|
12074
12084
|
"orange",
|
|
12075
12085
|
"stone",
|
|
12076
12086
|
"gold",
|
|
@@ -12084,7 +12094,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12084
12094
|
"magenta",
|
|
12085
12095
|
"rose",
|
|
12086
12096
|
"red"
|
|
12087
|
-
],
|
|
12097
|
+
], po = [
|
|
12088
12098
|
"orange-solid",
|
|
12089
12099
|
"teal-solid",
|
|
12090
12100
|
"indigo-solid",
|
|
@@ -12094,14 +12104,14 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12094
12104
|
"lime-solid",
|
|
12095
12105
|
"sky-solid",
|
|
12096
12106
|
"slate-solid"
|
|
12097
|
-
],
|
|
12107
|
+
], mo = [
|
|
12098
12108
|
"success-solid",
|
|
12099
12109
|
"warning-solid",
|
|
12100
12110
|
"critical-solid",
|
|
12101
12111
|
"info-solid",
|
|
12102
12112
|
"discovery-solid"
|
|
12103
|
-
],
|
|
12104
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
12113
|
+
], ho = [...po, ...mo], go = [...fo, ...po], _o = (e) => go[parseInt(_(e), 16) % go.length], vo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, yo = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
12114
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${_o(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
12105
12115
|
p((e) => !e);
|
|
12106
12116
|
}, b, x, S;
|
|
12107
12117
|
if (r && !n && o(r)) {
|
|
@@ -12123,7 +12133,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12123
12133
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12124
12134
|
className: `${m}__label`,
|
|
12125
12135
|
title: l
|
|
12126
|
-
}, u > 0 ?
|
|
12136
|
+
}, u > 0 ? vo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12127
12137
|
"aria-label": `${a}: ${l}`,
|
|
12128
12138
|
className: `${m}__remove`,
|
|
12129
12139
|
onClick: () => {
|
|
@@ -12135,7 +12145,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12135
12145
|
iconName: "xmark",
|
|
12136
12146
|
size: "m"
|
|
12137
12147
|
})) : null);
|
|
12138
|
-
},
|
|
12148
|
+
}, bo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12139
12149
|
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;
|
|
12140
12150
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12141
12151
|
className: Z([
|
|
@@ -12146,7 +12156,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12146
12156
|
]),
|
|
12147
12157
|
...a
|
|
12148
12158
|
}, /* @__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)));
|
|
12149
|
-
},
|
|
12159
|
+
}, xo = () => {
|
|
12150
12160
|
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");
|
|
12151
12161
|
return l(() => {
|
|
12152
12162
|
if (!e) return;
|
|
@@ -12157,7 +12167,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12157
12167
|
window.removeEventListener("resize", n);
|
|
12158
12168
|
};
|
|
12159
12169
|
}, []), n;
|
|
12160
|
-
},
|
|
12170
|
+
}, So = ({ 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 }) => {
|
|
12161
12171
|
let [j, M] = h(u || !1);
|
|
12162
12172
|
l(() => {
|
|
12163
12173
|
M(u || !1);
|
|
@@ -12179,7 +12189,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12179
12189
|
return;
|
|
12180
12190
|
}
|
|
12181
12191
|
M(!j);
|
|
12182
|
-
}, U =
|
|
12192
|
+
}, U = xo();
|
|
12183
12193
|
l(() => {
|
|
12184
12194
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12185
12195
|
}, [U]);
|
|
@@ -12271,10 +12281,10 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12271
12281
|
n ?? ""
|
|
12272
12282
|
]),
|
|
12273
12283
|
...A
|
|
12274
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12284
|
+
}, /* @__PURE__ */ e.createElement(ui, {
|
|
12275
12285
|
destination: I,
|
|
12276
12286
|
text: F.skipToContent
|
|
12277
|
-
}), q ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, q), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(
|
|
12287
|
+
}), q ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, q), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(na, {
|
|
12278
12288
|
...a,
|
|
12279
12289
|
isOpen: c,
|
|
12280
12290
|
placement: "left",
|
|
@@ -12282,7 +12292,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12282
12292
|
!e && c && b && b();
|
|
12283
12293
|
}
|
|
12284
12294
|
}, r));
|
|
12285
|
-
},
|
|
12295
|
+
}, Co = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12286
12296
|
let c = "pds-docs-layout", l = {
|
|
12287
12297
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12288
12298
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12300,7 +12310,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12300
12310
|
},
|
|
12301
12311
|
...s
|
|
12302
12312
|
}, 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));
|
|
12303
|
-
},
|
|
12313
|
+
}, wo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12304
12314
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
|
|
12305
12315
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12306
12316
|
className: Z([u, n ?? ""]),
|
|
@@ -12314,8 +12324,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12314
12324
|
},
|
|
12315
12325
|
...l
|
|
12316
12326
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12317
|
-
},
|
|
12318
|
-
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(
|
|
12327
|
+
}, To = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12328
|
+
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(Ci, {
|
|
12319
12329
|
className: Z([
|
|
12320
12330
|
l,
|
|
12321
12331
|
u,
|
|
@@ -12324,8 +12334,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12324
12334
|
width: "wide",
|
|
12325
12335
|
...a
|
|
12326
12336
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12327
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12328
|
-
},
|
|
12337
|
+
return i ? /* @__PURE__ */ e.createElement(fa, null, d) : d;
|
|
12338
|
+
}, Eo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12329
12339
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Xe(t), u = [
|
|
12330
12340
|
l["first-item"],
|
|
12331
12341
|
l["second-item"],
|
|
@@ -12343,7 +12353,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12343
12353
|
key: n,
|
|
12344
12354
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12345
12355
|
}, t)));
|
|
12346
|
-
},
|
|
12356
|
+
}, Do = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12347
12357
|
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;
|
|
12348
12358
|
switch (i) {
|
|
12349
12359
|
case "equal":
|
|
@@ -12364,7 +12374,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12364
12374
|
]),
|
|
12365
12375
|
...o
|
|
12366
12376
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12367
|
-
},
|
|
12377
|
+
}, Oo = ({ 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 }) => {
|
|
12368
12378
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12369
12379
|
"--pds-flex-align-content": t,
|
|
12370
12380
|
"--pds-flex-align-items": n,
|
|
@@ -12390,7 +12400,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12390
12400
|
},
|
|
12391
12401
|
...g
|
|
12392
12402
|
}, r);
|
|
12393
|
-
},
|
|
12403
|
+
}, ko = (e) => {
|
|
12394
12404
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12395
12405
|
return l(() => {
|
|
12396
12406
|
if (!t) return;
|
|
@@ -12399,20 +12409,20 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12399
12409
|
};
|
|
12400
12410
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12401
12411
|
}, [e]), n;
|
|
12402
|
-
},
|
|
12412
|
+
}, Ao = [
|
|
12403
12413
|
"light",
|
|
12404
12414
|
"dark",
|
|
12405
12415
|
"system"
|
|
12406
|
-
],
|
|
12416
|
+
], jo = (e) => typeof e == "string" && Ao.includes(e), Mo = r(null), No = {
|
|
12407
12417
|
resolvedTheme: "light",
|
|
12408
12418
|
setTheme: () => {},
|
|
12409
12419
|
theme: "light"
|
|
12410
|
-
},
|
|
12411
|
-
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y =
|
|
12420
|
+
}, Po = ({ 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){}})();`, Fo = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
|
|
12421
|
+
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = ko("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
|
|
12412
12422
|
l(() => {
|
|
12413
12423
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12414
12424
|
let e = window.localStorage.getItem(c);
|
|
12415
|
-
|
|
12425
|
+
jo(e) && m(e);
|
|
12416
12426
|
} catch {}
|
|
12417
12427
|
}, []), l(() => {
|
|
12418
12428
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12432,20 +12442,20 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12432
12442
|
]),
|
|
12433
12443
|
theme: v
|
|
12434
12444
|
};
|
|
12435
|
-
return /* @__PURE__ */ e.createElement(
|
|
12445
|
+
return /* @__PURE__ */ e.createElement(Mo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Po({
|
|
12436
12446
|
defaultTheme: n,
|
|
12437
12447
|
storageKey: c
|
|
12438
12448
|
}) } }), t);
|
|
12439
|
-
},
|
|
12449
|
+
}, Io = () => c(Mo) ?? No, Lo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12440
12450
|
l(() => {
|
|
12441
12451
|
let e = document.documentElement, t = () => {
|
|
12442
12452
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12443
12453
|
};
|
|
12444
12454
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12445
12455
|
}, [r]);
|
|
12446
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12456
|
+
let a = n ? /* @__PURE__ */ e.createElement(Fo, i, t) : t;
|
|
12447
12457
|
return /* @__PURE__ */ e.createElement(It, null, a);
|
|
12448
|
-
},
|
|
12458
|
+
}, Ro = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12449
12459
|
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}`;
|
|
12450
12460
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12451
12461
|
className: Z([
|
|
@@ -12459,7 +12469,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12459
12469
|
]),
|
|
12460
12470
|
...c
|
|
12461
12471
|
}, n);
|
|
12462
|
-
},
|
|
12472
|
+
}, zo = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12463
12473
|
let f = "pds-grid-item", p = [
|
|
12464
12474
|
l ? `${f}--sm-${l}` : null,
|
|
12465
12475
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12478,7 +12488,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12478
12488
|
]),
|
|
12479
12489
|
...d
|
|
12480
12490
|
}, t);
|
|
12481
|
-
},
|
|
12491
|
+
}, Bo = (e, t, n) => {
|
|
12482
12492
|
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, [
|
|
12483
12493
|
r,
|
|
12484
12494
|
i,
|
|
@@ -12502,7 +12512,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12502
12512
|
m,
|
|
12503
12513
|
a
|
|
12504
12514
|
]), u;
|
|
12505
|
-
},
|
|
12515
|
+
}, Vo = () => {
|
|
12506
12516
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12507
12517
|
return l(() => {
|
|
12508
12518
|
if (!e) return;
|
|
@@ -12516,6 +12526,6 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12516
12526
|
}, []), t;
|
|
12517
12527
|
};
|
|
12518
12528
|
//#endregion
|
|
12519
|
-
export { Jn as ActionCard,
|
|
12529
|
+
export { Jn as ActionCard, So as AppLayout, rt as Avatar, it as Badge, Vi as Banner, vr as BarChart, on as BranchDiff, fi as Breadcrumb, un as Button, dn as ButtonLink, xi as ButtonNav, ci as CTALink, qn as Callout, Xn as Card, Zn as CardSelect, Rr as Checkbox, zr as CheckboxFieldset, Br as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Or as CodeBlock, Vr as Combobox, Ur as ComboboxMultiselect, Qn as CompactEmptyState, Ar as ComparisonList, Ci as Container, qr as Datepicker, Co as DocsLayout, na as Drawer, bn as Dropdown, Si as DropdownMenu, ua as ExpansionPanel, da as ExpansionPanelGroup, Pr as FileDiff, Jr as FileUpload, kn as FilterButton, Oo as FlexContainer, ra as FullScreenOverlay, Lo as GlobalWrapper, Ro as Grid, zo as GridItem, Mr as HorizontalEmptyState, Q as Icon, pn as IconButton, Lr as IdentityBlock, Ui as InlineMessage, Yr as InputGroup, br as LineChart, li as LinkNewWindow, Ki as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, ia as Modal, wi as Navbar, sa as Pagination, ca as PaginationChapter, la as PaginationCompact, fa as Panel, pa as PanelList, ma as PanelRow, ha as PanelStack, ya as PantheonLogo, Ir as PaymentIcon, di as Picture, Sr as PieChart, Hn as PlatformIcon, Sa as Popover, wa as ProgressBar, Ea as ProgressRing, wr as ProportionBar, Xr as RadioGroup, ka as ResultCount, Wn as SSOButton, Gi as SectionMessage, zn as SegmentedButton, er as Select, $n as SelectOptionGroup, Ti as SideNav, Di as SideNavGlobal, Ei as SideNavGlobalItem, wo as SidebarLayout, Ma as SiteFooter, ki as SiteMenu, Na as SiteOptionDisplay, Pa as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, mr as Skeleton, ui as Skiplink, Ka as SortableList, Ba as SortableListHeader, Ja as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, Xa as StatusChecker, Za as StatusIndicator, jn as StatusTypeLabels, Qa as StepList, $a as Stepper, To as StepperLayout, Zr as Switch, ji as TabMenu, no as Table, lo as TableOfContents, uo as Tabs, yo as Tag, $r as TagsInput, an as Tally, ni as TextInput, ei as Textarea, Mo as ThemeContext, Fo as ThemeContextProvider, Fi as ThemeSwitcher, Eo as ThreeItemLayout, si as TimeInput, $i as Toast, ea as ToastType, Xi as Toaster, Ji as ToasterContext, zt as Tooltip, Ni as TreeNav, Do as TwoItemLayout, Ii as UserMenu, bo as UtilityBar, Gn as UtilityButton, Nr as VerticalEmptyState, to as VerticalStepper, jr as VideoEmbed, Li as WorkspaceSelector, Gr as getPresetDateRange, Po as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Ya as statusCheckerStates, fo as tagColors, ho as tagSolidColors, po as tagSolidHueColors, mo as tagSolidStatusColors, xo as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Bo as useKeyPress, Rt as useKeyboardShortcut, ko as useMediaQuery, Io as useTheme, ta as useToast, Vo as useWindowWidth };
|
|
12520
12530
|
|
|
12521
12531
|
//# sourceMappingURL=index.js.map
|