@pantheon-systems/pds-toolkit-react 2.0.0-alpha.60 → 2.0.0-alpha.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-index.css +2 -2
- package/dist/css/component-css/pds-utility-button.css +2 -2
- package/dist/css/design-tokens/variables.dark.css +6 -0
- package/dist/css/design-tokens/variables.global.css +1 -2
- package/dist/css/design-tokens/variables.light.css +8 -2
- package/dist/css/pds-components.css +2 -2
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +388 -385
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4096,7 +4096,10 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4096
4096
|
]),
|
|
4097
4097
|
...l
|
|
4098
4098
|
}, 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 = (
|
|
4099
|
+
}, Yn = (t) => Array.isArray(t) && t.some((t) => {
|
|
4100
|
+
let n = e.isValidElement(t) ? t.props.children : void 0;
|
|
4101
|
+
return Array.isArray(n) ? n.some(Boolean) : !!n;
|
|
4102
|
+
}), Xn = ({ background: t = "default", children: n, className: r, imageVariant: i = "bleed", padding: a = "standard", ...o }) => {
|
|
4100
4103
|
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
4104
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4102
4105
|
className: Z([
|
|
@@ -4107,8 +4110,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4107
4110
|
r ?? ""
|
|
4108
4111
|
]),
|
|
4109
4112
|
...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
|
-
},
|
|
4113
|
+
}, 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));
|
|
4114
|
+
}, 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
4115
|
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
4116
|
s === "center" && (w = `${_}__legend ${_}__legend--center`), s === "hidden" && (w = `${_}__legend visually-hidden`);
|
|
4114
4117
|
let [T, E] = h(r), D = (e) => {
|
|
@@ -4148,7 +4151,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4148
4151
|
size: "l"
|
|
4149
4152
|
})), /* @__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
4153
|
})));
|
|
4151
|
-
},
|
|
4154
|
+
}, Qn = ({ className: t, heading: n, headingLevel: r = "span", iconName: i, linkContent: a, message: o, ...s }) => {
|
|
4152
4155
|
let c = "pds-compact-empty-state";
|
|
4153
4156
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4154
4157
|
className: Z([c, t ?? ""]),
|
|
@@ -4161,7 +4164,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4161
4164
|
baseClass: c,
|
|
4162
4165
|
level: r
|
|
4163
4166
|
}, n), o && /* @__PURE__ */ e.createElement("p", { className: `${c}__message` }, o)), a && /* @__PURE__ */ e.createElement("div", { className: `${c}__link` }, a));
|
|
4164
|
-
},
|
|
4167
|
+
}, $n = ({ children: t, label: n }) => {
|
|
4165
4168
|
let r = "pds-select";
|
|
4166
4169
|
return /* @__PURE__ */ e.createElement("li", {
|
|
4167
4170
|
className: `${r}__group`,
|
|
@@ -4170,7 +4173,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4170
4173
|
className: `${r}__group-options`,
|
|
4171
4174
|
role: "group"
|
|
4172
4175
|
}, t));
|
|
4173
|
-
},
|
|
4176
|
+
}, er = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: u = {
|
|
4174
4177
|
selectOptionText: "Select an option...",
|
|
4175
4178
|
triggerButton: "Toggle dropdown menu"
|
|
4176
4179
|
}, 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 +4230,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4227
4230
|
})
|
|
4228
4231
|
}, /* @__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
4232
|
});
|
|
4230
|
-
return /* @__PURE__ */ e.createElement(
|
|
4233
|
+
return /* @__PURE__ */ e.createElement($n, {
|
|
4231
4234
|
key: t.groupLabel,
|
|
4232
4235
|
label: t.groupLabel
|
|
4233
4236
|
}, r);
|
|
@@ -4315,17 +4318,17 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4315
4318
|
validationMessageHasDecorators: !1,
|
|
4316
4319
|
validationStatus: C
|
|
4317
4320
|
}));
|
|
4318
|
-
},
|
|
4321
|
+
}, tr = {
|
|
4319
4322
|
"sequential-blue": 2,
|
|
4320
4323
|
"sequential-gray": 2
|
|
4321
|
-
}, tr = (e, t) => {
|
|
4322
|
-
let n = er[e];
|
|
4323
|
-
return n ? t.slice(n) : t;
|
|
4324
4324
|
}, nr = (e, t) => {
|
|
4325
|
+
let n = tr[e];
|
|
4326
|
+
return n ? t.slice(n) : t;
|
|
4327
|
+
}, rr = (e, t) => {
|
|
4325
4328
|
if (t === void 0) return;
|
|
4326
|
-
let n =
|
|
4329
|
+
let n = tr[e];
|
|
4327
4330
|
return n ? Math.max(t, n + 1) - n : t;
|
|
4328
|
-
},
|
|
4331
|
+
}, ir = {
|
|
4329
4332
|
categorical: [
|
|
4330
4333
|
"--pds-color-datavis-categorical-1",
|
|
4331
4334
|
"--pds-color-datavis-categorical-2",
|
|
@@ -4378,7 +4381,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4378
4381
|
"--pds-color-datavis-status-discovery",
|
|
4379
4382
|
"--pds-color-datavis-status-neutral"
|
|
4380
4383
|
]
|
|
4381
|
-
},
|
|
4384
|
+
}, ar = {
|
|
4382
4385
|
categorical: [
|
|
4383
4386
|
"#006dcc",
|
|
4384
4387
|
"#c95a3d",
|
|
@@ -4431,34 +4434,34 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4431
4434
|
"#7952a8",
|
|
4432
4435
|
"#717273"
|
|
4433
4436
|
]
|
|
4434
|
-
},
|
|
4435
|
-
let n =
|
|
4437
|
+
}, or = (e, t, n, r) => n || (r === void 0 ? t[e % t.length] : t[(r - 1) % t.length]), sr = (e, t) => {
|
|
4438
|
+
let n = ar[t];
|
|
4436
4439
|
if (!e) return n;
|
|
4437
4440
|
let r = getComputedStyle(e);
|
|
4438
|
-
return
|
|
4439
|
-
},
|
|
4440
|
-
let [n, r] = h(
|
|
4441
|
+
return ir[t].map((e, t) => r.getPropertyValue(e).trim() || n[t]);
|
|
4442
|
+
}, cr = (e, t = "categorical") => {
|
|
4443
|
+
let [n, r] = h(ar[t]);
|
|
4441
4444
|
return l(() => {
|
|
4442
4445
|
if (!e.current) return;
|
|
4443
|
-
r(
|
|
4446
|
+
r(sr(e.current, t));
|
|
4444
4447
|
let n = new MutationObserver(() => {
|
|
4445
|
-
e.current && r(
|
|
4448
|
+
e.current && r(sr(e.current, t));
|
|
4446
4449
|
});
|
|
4447
4450
|
return n.observe(document.documentElement, {
|
|
4448
4451
|
attributeFilter: ["data-theme"],
|
|
4449
4452
|
attributes: !0
|
|
4450
4453
|
}), () => n.disconnect();
|
|
4451
4454
|
}, [e, t]), n;
|
|
4452
|
-
},
|
|
4455
|
+
}, lr = {
|
|
4453
4456
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4454
4457
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4455
4458
|
fontSize: "var(--pds-typography-size-xs)"
|
|
4456
|
-
},
|
|
4459
|
+
}, ur = {
|
|
4457
4460
|
fill: "var(--pds-color-foreground-default-secondary)",
|
|
4458
4461
|
fontFamily: "var(--pds-typography-ff-default)",
|
|
4459
4462
|
fontSize: "var(--pds-typography-size-xs)",
|
|
4460
4463
|
fontWeight: "var(--pds-typography-fw-semibold)"
|
|
4461
|
-
},
|
|
4464
|
+
}, dr = ({ data: t, description: n, series: r, valueFormatter: i }) => {
|
|
4462
4465
|
let a = (e) => typeof e == "number" && i ? i(e) : typeof e == "number" ? e.toLocaleString() : String(e);
|
|
4463
4466
|
return /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, /* @__PURE__ */ e.createElement("table", {
|
|
4464
4467
|
"aria-label": n,
|
|
@@ -4467,7 +4470,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4467
4470
|
key: t.dataKey,
|
|
4468
4471
|
scope: "col"
|
|
4469
4472
|
}, 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
|
-
},
|
|
4473
|
+
}, fr = ({ ariaHidden: t, data: n = [], series: r, seriesColors: i, tableHeader: a = "Total", valueFormatter: o = (e) => e.toLocaleString(), variant: s = "inline" }) => {
|
|
4471
4474
|
let c = "pds-chart-legend", l = (e, t, n) => t || (n === void 0 ? i[e % i.length] : i[(n - 1) % i.length]);
|
|
4472
4475
|
if (s === "table") {
|
|
4473
4476
|
let i = r.map((e) => n.reduce((t, n) => {
|
|
@@ -4492,12 +4495,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4492
4495
|
className: `${c}__swatch`,
|
|
4493
4496
|
style: { backgroundColor: l(n, t.color, t.paletteIndex) }
|
|
4494
4497
|
}), t.label)));
|
|
4495
|
-
},
|
|
4498
|
+
}, 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
4499
|
let u = "pds-skeleton", d = `${u}--${i}`, f = r ? `pds-pulse pds-pulse--${n}` : `${u}--${n}`, p = [
|
|
4497
4500
|
"text-block",
|
|
4498
4501
|
"code-block",
|
|
4499
4502
|
"code-block-prefix"
|
|
4500
|
-
], m = a?.height ?
|
|
4503
|
+
], m = a?.height ? pr(a.height) : "1rem", h = a?.width ? pr(a.width) : "100%", g = {
|
|
4501
4504
|
height: m,
|
|
4502
4505
|
width: h
|
|
4503
4506
|
};
|
|
@@ -4569,13 +4572,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4569
4572
|
}
|
|
4570
4573
|
}))));
|
|
4571
4574
|
return p.includes(i) ? w : _;
|
|
4572
|
-
},
|
|
4575
|
+
}, hr = () => /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--table" }, /* @__PURE__ */ e.createElement(mr, {
|
|
4573
4576
|
shape: "rounded",
|
|
4574
4577
|
size: {
|
|
4575
4578
|
height: 4,
|
|
4576
4579
|
width: "100%"
|
|
4577
4580
|
}
|
|
4578
|
-
})),
|
|
4581
|
+
})), 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
4582
|
className: "pds-chart__skeleton-area",
|
|
4580
4583
|
style: { height: n }
|
|
4581
4584
|
}, t ? /* @__PURE__ */ e.createElement("div", { style: {
|
|
@@ -4583,41 +4586,41 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4583
4586
|
height: "100%",
|
|
4584
4587
|
overflow: "hidden",
|
|
4585
4588
|
width: "100%"
|
|
4586
|
-
} }, /* @__PURE__ */ e.createElement(
|
|
4589
|
+
} }, /* @__PURE__ */ e.createElement(mr, {
|
|
4587
4590
|
shape: "rectangular",
|
|
4588
4591
|
size: {
|
|
4589
4592
|
height: "100%",
|
|
4590
4593
|
width: "100%"
|
|
4591
4594
|
}
|
|
4592
|
-
})) : /* @__PURE__ */ e.createElement(
|
|
4595
|
+
})) : /* @__PURE__ */ e.createElement(mr, {
|
|
4593
4596
|
shape: "rounded",
|
|
4594
4597
|
size: {
|
|
4595
4598
|
height: "100%",
|
|
4596
4599
|
width: "100%"
|
|
4597
4600
|
}
|
|
4598
|
-
})), a && (i === "table" ? /* @__PURE__ */ e.createElement(
|
|
4601
|
+
})), 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
4602
|
shape: "rounded",
|
|
4600
4603
|
size: {
|
|
4601
4604
|
height: .75,
|
|
4602
4605
|
width: 5
|
|
4603
4606
|
}
|
|
4604
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4607
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
4605
4608
|
shape: "rounded",
|
|
4606
4609
|
size: {
|
|
4607
4610
|
height: .75,
|
|
4608
4611
|
width: 5
|
|
4609
4612
|
}
|
|
4610
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4613
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
4611
4614
|
shape: "rounded",
|
|
4612
4615
|
size: {
|
|
4613
4616
|
height: .75,
|
|
4614
4617
|
width: 5
|
|
4615
4618
|
}
|
|
4616
|
-
})))),
|
|
4619
|
+
})))), _r = (e) => {
|
|
4617
4620
|
let t = Math.abs(e);
|
|
4618
4621
|
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 =
|
|
4622
|
+
}, 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 }) => {
|
|
4623
|
+
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
4624
|
de && (pe.current = de);
|
|
4622
4625
|
let me = m({ getBoundingClientRect: () => ({
|
|
4623
4626
|
bottom: 0,
|
|
@@ -4675,7 +4678,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4675
4678
|
]),
|
|
4676
4679
|
style: { maxWidth: oe },
|
|
4677
4680
|
...z
|
|
4678
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4681
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
4679
4682
|
height: Y,
|
|
4680
4683
|
legendVariant: p,
|
|
4681
4684
|
showLegend: ce
|
|
@@ -4692,7 +4695,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4692
4695
|
maxWidth: oe
|
|
4693
4696
|
},
|
|
4694
4697
|
...z
|
|
4695
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4698
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
4696
4699
|
heading: W,
|
|
4697
4700
|
message: G
|
|
4698
4701
|
}));
|
|
@@ -4750,7 +4753,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4750
4753
|
className: Z([xe, i ?? ""]),
|
|
4751
4754
|
style: oe ? { maxWidth: oe } : void 0,
|
|
4752
4755
|
...z
|
|
4753
|
-
}, !u && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(
|
|
4756
|
+
}, !u && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(er, {
|
|
4754
4757
|
autoWidth: !0,
|
|
4755
4758
|
id: `${xe}-time-period`,
|
|
4756
4759
|
label: "Time period",
|
|
@@ -4803,13 +4806,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4803
4806
|
hide: !se,
|
|
4804
4807
|
interval: N,
|
|
4805
4808
|
label: M && se ? {
|
|
4806
|
-
...
|
|
4809
|
+
...ur,
|
|
4807
4810
|
offset: -15,
|
|
4808
4811
|
position: "insideBottom",
|
|
4809
4812
|
value: M
|
|
4810
4813
|
} : void 0,
|
|
4811
4814
|
padding: Te ? void 0 : "no-gap",
|
|
4812
|
-
tick: se ?
|
|
4815
|
+
tick: se ? lr : !1,
|
|
4813
4816
|
tickFormatter: Te ? F : void 0,
|
|
4814
4817
|
tickLine: !1,
|
|
4815
4818
|
tickMargin: 10,
|
|
@@ -4821,14 +4824,14 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4821
4824
|
hide: !se,
|
|
4822
4825
|
interval: L,
|
|
4823
4826
|
label: I && se ? {
|
|
4824
|
-
...
|
|
4827
|
+
...ur,
|
|
4825
4828
|
angle: -90,
|
|
4826
4829
|
dx: -44,
|
|
4827
4830
|
position: "center",
|
|
4828
4831
|
value: I
|
|
4829
4832
|
} : void 0,
|
|
4830
4833
|
padding: Te ? "no-gap" : void 0,
|
|
4831
|
-
tick: se ?
|
|
4834
|
+
tick: se ? lr : !1,
|
|
4832
4835
|
tickFormatter: Te ? void 0 : F,
|
|
4833
4836
|
tickLine: !1,
|
|
4834
4837
|
tickMargin: 6,
|
|
@@ -4847,12 +4850,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4847
4850
|
}), v.map((t, n) => /* @__PURE__ */ e.createElement(V, {
|
|
4848
4851
|
key: t.dataKey,
|
|
4849
4852
|
dataKey: t.dataKey,
|
|
4850
|
-
fill:
|
|
4853
|
+
fill: or(n, ne, t.color, rr(a, t.paletteIndex)),
|
|
4851
4854
|
name: t.label,
|
|
4852
4855
|
onMouseEnter: k ? void 0 : (e) => {
|
|
4853
4856
|
let r = e.payload;
|
|
4854
4857
|
le && r && fe({
|
|
4855
|
-
color:
|
|
4858
|
+
color: or(n, ne, t.color, rr(a, t.paletteIndex)),
|
|
4856
4859
|
label: String(r.label ?? ""),
|
|
4857
4860
|
name: t.label,
|
|
4858
4861
|
value: Number(r[t.dataKey] ?? 0)
|
|
@@ -4875,7 +4878,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4875
4878
|
}, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, pe.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
|
|
4876
4879
|
className: "recharts-tooltip-item__color",
|
|
4877
4880
|
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(
|
|
4881
|
+
}), /* @__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
4882
|
ariaHidden: p === "table" && ue,
|
|
4880
4883
|
data: o,
|
|
4881
4884
|
series: v,
|
|
@@ -4883,19 +4886,19 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4883
4886
|
tableHeader: K,
|
|
4884
4887
|
valueFormatter: F,
|
|
4885
4888
|
variant: p
|
|
4886
|
-
}), ue && /* @__PURE__ */ e.createElement(
|
|
4889
|
+
}), ue && /* @__PURE__ */ e.createElement(dr, {
|
|
4887
4890
|
data: o,
|
|
4888
4891
|
description: B,
|
|
4889
4892
|
series: v,
|
|
4890
4893
|
valueFormatter: F
|
|
4891
4894
|
}));
|
|
4892
|
-
},
|
|
4895
|
+
}, yr = (e) => {
|
|
4893
4896
|
switch (e) {
|
|
4894
4897
|
case "dashed": return "8 4";
|
|
4895
4898
|
default: return;
|
|
4896
4899
|
}
|
|
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 =
|
|
4900
|
+
}, 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 }) => {
|
|
4901
|
+
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
4902
|
return s ? /* @__PURE__ */ e.createElement("div", {
|
|
4900
4903
|
ref: L,
|
|
4901
4904
|
"aria-busy": "true",
|
|
@@ -4907,7 +4910,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4907
4910
|
]),
|
|
4908
4911
|
style: { maxWidth: B },
|
|
4909
4912
|
...j
|
|
4910
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4913
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
4911
4914
|
height: z,
|
|
4912
4915
|
legendVariant: u,
|
|
4913
4916
|
showLegend: W
|
|
@@ -4923,7 +4926,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4923
4926
|
maxWidth: B
|
|
4924
4927
|
},
|
|
4925
4928
|
...j
|
|
4926
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4929
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
4927
4930
|
heading: N,
|
|
4928
4931
|
message: P
|
|
4929
4932
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -4931,7 +4934,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4931
4934
|
className: Z([Y, i ?? ""]),
|
|
4932
4935
|
style: B ? { maxWidth: B } : void 0,
|
|
4933
4936
|
...j
|
|
4934
|
-
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__header` }, /* @__PURE__ */ e.createElement(
|
|
4937
|
+
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__header` }, /* @__PURE__ */ e.createElement(er, {
|
|
4935
4938
|
autoWidth: !0,
|
|
4936
4939
|
id: `${Y}-time-period`,
|
|
4937
4940
|
label: "Time period",
|
|
@@ -4977,12 +4980,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4977
4980
|
hide: !H,
|
|
4978
4981
|
interval: E,
|
|
4979
4982
|
label: T && H ? {
|
|
4980
|
-
...
|
|
4983
|
+
...ur,
|
|
4981
4984
|
offset: -15,
|
|
4982
4985
|
position: "insideBottom",
|
|
4983
4986
|
value: T
|
|
4984
4987
|
} : void 0,
|
|
4985
|
-
tick: H ?
|
|
4988
|
+
tick: H ? lr : !1,
|
|
4986
4989
|
tickLine: !1,
|
|
4987
4990
|
tickMargin: 10
|
|
4988
4991
|
}), /* @__PURE__ */ e.createElement(ae, {
|
|
@@ -4991,13 +4994,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4991
4994
|
hide: !H,
|
|
4992
4995
|
interval: A,
|
|
4993
4996
|
label: k && H ? {
|
|
4994
|
-
...
|
|
4997
|
+
...ur,
|
|
4995
4998
|
angle: -90,
|
|
4996
4999
|
dx: -44,
|
|
4997
5000
|
position: "center",
|
|
4998
5001
|
value: k
|
|
4999
5002
|
} : void 0,
|
|
5000
|
-
tick: H ?
|
|
5003
|
+
tick: H ? lr : !1,
|
|
5001
5004
|
tickFormatter: O,
|
|
5002
5005
|
tickLine: !1,
|
|
5003
5006
|
tickMargin: 6
|
|
@@ -5024,13 +5027,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5024
5027
|
activeDot: q ? { r: 6 } : !1,
|
|
5025
5028
|
dataKey: t.dataKey,
|
|
5026
5029
|
dot: q ? {
|
|
5027
|
-
fill:
|
|
5030
|
+
fill: or(n, R, t.color, rr(a, t.paletteIndex)),
|
|
5028
5031
|
r: 4,
|
|
5029
5032
|
strokeWidth: 0
|
|
5030
5033
|
} : !1,
|
|
5031
5034
|
name: t.label,
|
|
5032
|
-
stroke:
|
|
5033
|
-
strokeDasharray:
|
|
5035
|
+
stroke: or(n, R, t.color, rr(a, t.paletteIndex)),
|
|
5036
|
+
strokeDasharray: yr(t.strokeStyle),
|
|
5034
5037
|
strokeWidth: 2,
|
|
5035
5038
|
type: d === "straight" ? "linear" : "monotone"
|
|
5036
5039
|
})), !c && p?.map((t, n) => {
|
|
@@ -5050,7 +5053,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5050
5053
|
}, t.label.toUpperCase());
|
|
5051
5054
|
},
|
|
5052
5055
|
stroke: r,
|
|
5053
|
-
strokeDasharray:
|
|
5056
|
+
strokeDasharray: yr(t.strokeStyle ?? "dashed"),
|
|
5054
5057
|
y: t.value
|
|
5055
5058
|
});
|
|
5056
5059
|
}), !c && t?.map((t, n) => {
|
|
@@ -5070,10 +5073,10 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5070
5073
|
}, t.text.toUpperCase());
|
|
5071
5074
|
},
|
|
5072
5075
|
stroke: r,
|
|
5073
|
-
strokeDasharray:
|
|
5076
|
+
strokeDasharray: yr(t.strokeStyle ?? "dashed"),
|
|
5074
5077
|
x: t.atLabel
|
|
5075
5078
|
});
|
|
5076
|
-
})))), W && /* @__PURE__ */ e.createElement(
|
|
5079
|
+
})))), W && /* @__PURE__ */ e.createElement(fr, {
|
|
5077
5080
|
ariaHidden: u === "table" && te,
|
|
5078
5081
|
data: o,
|
|
5079
5082
|
series: g,
|
|
@@ -5081,14 +5084,14 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5081
5084
|
tableHeader: F,
|
|
5082
5085
|
valueFormatter: O,
|
|
5083
5086
|
variant: u
|
|
5084
|
-
}), te && /* @__PURE__ */ e.createElement(
|
|
5087
|
+
}), te && /* @__PURE__ */ e.createElement(dr, {
|
|
5085
5088
|
data: o,
|
|
5086
5089
|
description: M,
|
|
5087
5090
|
series: g,
|
|
5088
5091
|
valueFormatter: O
|
|
5089
5092
|
}));
|
|
5090
|
-
},
|
|
5091
|
-
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = m(null), S =
|
|
5093
|
+
}, 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 }) => {
|
|
5094
|
+
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
5095
|
if (o) {
|
|
5093
5096
|
let t = `${Math.round(w * .8)}px`;
|
|
5094
5097
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5105,25 +5108,25 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5105
5108
|
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__skeleton` }, /* @__PURE__ */ e.createElement("div", {
|
|
5106
5109
|
className: `${C}__skeleton-chart`,
|
|
5107
5110
|
style: { height: w }
|
|
5108
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5111
|
+
}, /* @__PURE__ */ e.createElement(mr, {
|
|
5109
5112
|
shape: "circular",
|
|
5110
5113
|
style: {
|
|
5111
5114
|
height: t,
|
|
5112
5115
|
width: t
|
|
5113
5116
|
}
|
|
5114
|
-
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(
|
|
5117
|
+
})), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(mr, {
|
|
5115
5118
|
shape: "rounded",
|
|
5116
5119
|
size: {
|
|
5117
5120
|
height: .75,
|
|
5118
5121
|
width: 5
|
|
5119
5122
|
}
|
|
5120
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5123
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
5121
5124
|
shape: "rounded",
|
|
5122
5125
|
size: {
|
|
5123
5126
|
height: .75,
|
|
5124
5127
|
width: 5
|
|
5125
5128
|
}
|
|
5126
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5129
|
+
}), /* @__PURE__ */ e.createElement(mr, {
|
|
5127
5130
|
shape: "rounded",
|
|
5128
5131
|
size: {
|
|
5129
5132
|
height: .75,
|
|
@@ -5143,7 +5146,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5143
5146
|
maxWidth: T
|
|
5144
5147
|
},
|
|
5145
5148
|
...g
|
|
5146
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5149
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
5147
5150
|
heading: v,
|
|
5148
5151
|
message: y
|
|
5149
5152
|
}));
|
|
@@ -5217,8 +5220,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5217
5220
|
let n = O > 0 ? Math.round(t.value / O * 100) : 0;
|
|
5218
5221
|
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
5222
|
})))));
|
|
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 =
|
|
5223
|
+
}, 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 }) => {
|
|
5224
|
+
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
5225
|
I && (z.current = I);
|
|
5223
5226
|
let B = m({ getBoundingClientRect: () => ({
|
|
5224
5227
|
bottom: 0,
|
|
@@ -5273,7 +5276,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5273
5276
|
]),
|
|
5274
5277
|
style: A ? { maxWidth: A } : void 0,
|
|
5275
5278
|
...v
|
|
5276
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5279
|
+
}, /* @__PURE__ */ e.createElement(gr, {
|
|
5277
5280
|
borderRadius: "var(--pds-border-radius-bar)",
|
|
5278
5281
|
height: t,
|
|
5279
5282
|
legendAlignment: d,
|
|
@@ -5286,7 +5289,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5286
5289
|
r ?? ""
|
|
5287
5290
|
]),
|
|
5288
5291
|
...v
|
|
5289
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5292
|
+
}, /* @__PURE__ */ e.createElement(Qn, {
|
|
5290
5293
|
heading: b,
|
|
5291
5294
|
message: x
|
|
5292
5295
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
@@ -5345,7 +5348,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5345
5348
|
let n = P > 0 ? Math.round(t.value / P * 100) : 0;
|
|
5346
5349
|
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
5350
|
})))));
|
|
5348
|
-
},
|
|
5351
|
+
}, Tr = /* @__PURE__ */ Ye((/* @__PURE__ */ qe(((e, t) => {
|
|
5349
5352
|
var n = function(e) {
|
|
5350
5353
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
5351
5354
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -5638,8 +5641,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5638
5641
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5639
5642
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5640
5643
|
})))(), 1);
|
|
5641
|
-
typeof globalThis < "u" && (globalThis.Prism =
|
|
5642
|
-
var
|
|
5644
|
+
typeof globalThis < "u" && (globalThis.Prism = Tr.default);
|
|
5645
|
+
var Er = Tr.default;
|
|
5643
5646
|
//#endregion
|
|
5644
5647
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5645
5648
|
Prism.languages.markup = {
|
|
@@ -6309,7 +6312,7 @@ Prism.languages.markup = {
|
|
|
6309
6312
|
})(Prism);
|
|
6310
6313
|
//#endregion
|
|
6311
6314
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6312
|
-
var
|
|
6315
|
+
var Dr = {
|
|
6313
6316
|
plain: {
|
|
6314
6317
|
color: "var(--pds-color-code-block-foreground)",
|
|
6315
6318
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6385,10 +6388,10 @@ var Er = {
|
|
|
6385
6388
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6386
6389
|
}
|
|
6387
6390
|
]
|
|
6388
|
-
},
|
|
6391
|
+
}, 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
6392
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6390
6393
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6391
|
-
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(
|
|
6394
|
+
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(mr, {
|
|
6392
6395
|
className: `${g}__skeleton`,
|
|
6393
6396
|
colorType: "bold",
|
|
6394
6397
|
shape: a || o ? "code-block-prefix" : "code-block",
|
|
@@ -6437,8 +6440,8 @@ var Er = {
|
|
|
6437
6440
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Y, {
|
|
6438
6441
|
code: n,
|
|
6439
6442
|
language: l || "",
|
|
6440
|
-
prism:
|
|
6441
|
-
theme:
|
|
6443
|
+
prism: Er,
|
|
6444
|
+
theme: Dr
|
|
6442
6445
|
}, /* @__PURE__ */ e.createElement(Y.Code, {
|
|
6443
6446
|
className: `${g}__code`,
|
|
6444
6447
|
tabIndex: 0
|
|
@@ -6447,11 +6450,11 @@ var Er = {
|
|
|
6447
6450
|
clipboardText: n,
|
|
6448
6451
|
variant: "reverse"
|
|
6449
6452
|
}))));
|
|
6450
|
-
},
|
|
6453
|
+
}, kr = {
|
|
6451
6454
|
addon: "circlePlus",
|
|
6452
6455
|
included: "circleCheck",
|
|
6453
6456
|
notIncluded: "xmark"
|
|
6454
|
-
},
|
|
6457
|
+
}, Ar = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6455
6458
|
addon: "Add-on",
|
|
6456
6459
|
included: "Included",
|
|
6457
6460
|
notIncluded: "Not included"
|
|
@@ -6470,10 +6473,10 @@ var Er = {
|
|
|
6470
6473
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6471
6474
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6472
6475
|
className: `${u}__item-icon`,
|
|
6473
|
-
iconName:
|
|
6476
|
+
iconName: kr[t.type],
|
|
6474
6477
|
size: s
|
|
6475
6478
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6476
|
-
},
|
|
6479
|
+
}, jr = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6477
6480
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6478
6481
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6479
6482
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6504,7 +6507,7 @@ var Er = {
|
|
|
6504
6507
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6505
6508
|
...a
|
|
6506
6509
|
}, l);
|
|
6507
|
-
},
|
|
6510
|
+
}, 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
6511
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6509
6512
|
marginInlineStart: c,
|
|
6510
6513
|
width: l
|
|
@@ -6530,11 +6533,11 @@ var Er = {
|
|
|
6530
6533
|
alt: "",
|
|
6531
6534
|
className: `${m}__image`,
|
|
6532
6535
|
src: s
|
|
6533
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6536
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(jr, {
|
|
6534
6537
|
platform: f.platform,
|
|
6535
6538
|
videoId: f.videoId
|
|
6536
6539
|
})));
|
|
6537
|
-
},
|
|
6540
|
+
}, Nr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6538
6541
|
let u = "pds-vertical-empty-state";
|
|
6539
6542
|
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
6543
|
className: Z([u, t ?? ""]),
|
|
@@ -6549,7 +6552,7 @@ var Er = {
|
|
|
6549
6552
|
baseClass: u,
|
|
6550
6553
|
level: i
|
|
6551
6554
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6552
|
-
},
|
|
6555
|
+
}, Pr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6553
6556
|
linesChanged: "lines changed",
|
|
6554
6557
|
additions: "additions",
|
|
6555
6558
|
deletions: "deletions"
|
|
@@ -6581,7 +6584,7 @@ var Er = {
|
|
|
6581
6584
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6582
6585
|
preferredPlacement: "top"
|
|
6583
6586
|
}))));
|
|
6584
|
-
},
|
|
6587
|
+
}, Fr = {
|
|
6585
6588
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6586
6589
|
fill: "none",
|
|
6587
6590
|
height: "42",
|
|
@@ -6799,7 +6802,7 @@ var Er = {
|
|
|
6799
6802
|
height: "42",
|
|
6800
6803
|
width: "70"
|
|
6801
6804
|
}))))
|
|
6802
|
-
},
|
|
6805
|
+
}, Ir = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6803
6806
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6804
6807
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6805
6808
|
className: Z([
|
|
@@ -6808,8 +6811,8 @@ var Er = {
|
|
|
6808
6811
|
t ?? ""
|
|
6809
6812
|
]),
|
|
6810
6813
|
...i
|
|
6811
|
-
},
|
|
6812
|
-
},
|
|
6814
|
+
}, Fr[n]);
|
|
6815
|
+
}, Lr = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...c }) => {
|
|
6813
6816
|
let u = "pds-identity-block", d = r ? `${u}--collapsed` : null, f = i ? `${u}--single-line` : null, p = t ? {
|
|
6814
6817
|
...t,
|
|
6815
6818
|
size: i ? "s" : "m"
|
|
@@ -6848,7 +6851,7 @@ var Er = {
|
|
|
6848
6851
|
className: `${u}__secondary-text`,
|
|
6849
6852
|
title: x ? o : void 0
|
|
6850
6853
|
}, o)));
|
|
6851
|
-
},
|
|
6854
|
+
}, 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
6855
|
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
6856
|
F || L(e.target.checked), g && g(e);
|
|
6854
6857
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = s(() => {
|
|
@@ -6920,7 +6923,7 @@ var Er = {
|
|
|
6920
6923
|
message: P,
|
|
6921
6924
|
validationStatus: S
|
|
6922
6925
|
}));
|
|
6923
|
-
}),
|
|
6926
|
+
}), 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
6927
|
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
6928
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6926
6929
|
className: Z([
|
|
@@ -6953,7 +6956,7 @@ var Er = {
|
|
|
6953
6956
|
message: S,
|
|
6954
6957
|
validationStatus: m
|
|
6955
6958
|
}));
|
|
6956
|
-
},
|
|
6959
|
+
}, 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
6960
|
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
6961
|
f.map((e) => {
|
|
6959
6962
|
e.id || (e.id = e.value);
|
|
@@ -7002,7 +7005,7 @@ var Er = {
|
|
|
7002
7005
|
required: p,
|
|
7003
7006
|
showLabel: g,
|
|
7004
7007
|
tooltipText: _
|
|
7005
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(
|
|
7008
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(Rr, {
|
|
7006
7009
|
key: t.id,
|
|
7007
7010
|
checked: t.checked,
|
|
7008
7011
|
className: `${S}__checkbox`,
|
|
@@ -7020,7 +7023,7 @@ var Er = {
|
|
|
7020
7023
|
message: D,
|
|
7021
7024
|
validationStatus: y
|
|
7022
7025
|
}));
|
|
7023
|
-
},
|
|
7026
|
+
}, 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
7027
|
clearButton: "Clear input text",
|
|
7025
7028
|
inputInstructions: "Type to search options",
|
|
7026
7029
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7213,13 +7216,13 @@ var Er = {
|
|
|
7213
7216
|
validationMessageHasDecorators: !1,
|
|
7214
7217
|
validationStatus: B
|
|
7215
7218
|
}));
|
|
7216
|
-
}),
|
|
7219
|
+
}), Hr = (e, t, n) => {
|
|
7217
7220
|
let r = n.toLowerCase();
|
|
7218
7221
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7219
7222
|
...e,
|
|
7220
7223
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7221
7224
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7222
|
-
},
|
|
7225
|
+
}, 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
7226
|
aiBadgeLabel: "Suggested",
|
|
7224
7227
|
aiPanelButton: "Show AI suggestions",
|
|
7225
7228
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7227,7 +7230,7 @@ var Er = {
|
|
|
7227
7230
|
inputInstructions: "Type to search options",
|
|
7228
7231
|
triggerButton: "Toggle dropdown menu"
|
|
7229
7232
|
}, 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(() =>
|
|
7233
|
+
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
7234
|
g,
|
|
7232
7235
|
R,
|
|
7233
7236
|
I
|
|
@@ -7486,7 +7489,7 @@ var Er = {
|
|
|
7486
7489
|
iconName: "xmark",
|
|
7487
7490
|
size: "m"
|
|
7488
7491
|
})))));
|
|
7489
|
-
},
|
|
7492
|
+
}, Wr = (e, t) => e ? se(e, "PP", { locale: t }) : "", Gr = (e) => {
|
|
7490
7493
|
if (e.custom) return e.custom();
|
|
7491
7494
|
let t = /* @__PURE__ */ new Date();
|
|
7492
7495
|
if (t.setHours(0, 0, 0, 0), e.days !== void 0) {
|
|
@@ -7539,7 +7542,7 @@ var Er = {
|
|
|
7539
7542
|
to: t
|
|
7540
7543
|
};
|
|
7541
7544
|
}
|
|
7542
|
-
},
|
|
7545
|
+
}, Kr = {
|
|
7543
7546
|
clearButton: "Clear",
|
|
7544
7547
|
doneButton: "Done",
|
|
7545
7548
|
noDateSelected: "No date selected",
|
|
@@ -7550,9 +7553,9 @@ var Er = {
|
|
|
7550
7553
|
selectedDateRange: "Selected date range: ",
|
|
7551
7554
|
to: " to ",
|
|
7552
7555
|
todayButton: "Today"
|
|
7553
|
-
},
|
|
7556
|
+
}, 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
7557
|
let E = {
|
|
7555
|
-
...
|
|
7558
|
+
...Kr,
|
|
7556
7559
|
...v
|
|
7557
7560
|
}, [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
7561
|
open: A,
|
|
@@ -7593,18 +7596,18 @@ var Er = {
|
|
|
7593
7596
|
}, oe = () => {
|
|
7594
7597
|
if (r) {
|
|
7595
7598
|
let t = O;
|
|
7596
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7599
|
+
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
7600
|
} else {
|
|
7598
7601
|
let e = O;
|
|
7599
|
-
return e ?
|
|
7602
|
+
return e ? Wr(e, s) : p || "";
|
|
7600
7603
|
}
|
|
7601
7604
|
}, X = () => r ? !O?.from : !O, le = () => {
|
|
7602
7605
|
if (r) {
|
|
7603
7606
|
let e = O;
|
|
7604
|
-
return e?.from ? e.to ? `${E.selectedDateRange}${
|
|
7607
|
+
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
7608
|
} else {
|
|
7606
7609
|
let e = O;
|
|
7607
|
-
return e ? `${E.selectedDate}${
|
|
7610
|
+
return e ? `${E.selectedDate}${Wr(e, s)}` : E.noDateSelected || "";
|
|
7608
7611
|
}
|
|
7609
7612
|
}, ue = (e) => {
|
|
7610
7613
|
G.floating.current && !G.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
|
|
@@ -7706,7 +7709,7 @@ var Er = {
|
|
|
7706
7709
|
type: "button",
|
|
7707
7710
|
variant: "highlight"
|
|
7708
7711
|
})))));
|
|
7709
|
-
},
|
|
7712
|
+
}, Jr = a(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: u = {
|
|
7710
7713
|
chooseFile: "Choose file",
|
|
7711
7714
|
clearButton: "Clear selected file"
|
|
7712
7715
|
}, 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 +7793,7 @@ var Er = {
|
|
|
7790
7793
|
validationMessageHasDecorators: !1,
|
|
7791
7794
|
validationStatus: S
|
|
7792
7795
|
}));
|
|
7793
|
-
}),
|
|
7796
|
+
}), Yr = ({ children: t, className: n, ...r }) => {
|
|
7794
7797
|
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
7798
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7796
7799
|
className: Z([
|
|
@@ -7807,7 +7810,7 @@ var Er = {
|
|
|
7807
7810
|
validationMessageHasDecorators: !1,
|
|
7808
7811
|
validationStatus: l
|
|
7809
7812
|
}));
|
|
7810
|
-
},
|
|
7813
|
+
}, 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
7814
|
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
7815
|
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
7813
7816
|
}, M = (e) => {
|
|
@@ -7857,7 +7860,7 @@ var Er = {
|
|
|
7857
7860
|
message: A,
|
|
7858
7861
|
validationStatus: y
|
|
7859
7862
|
}));
|
|
7860
|
-
},
|
|
7863
|
+
}, 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
7864
|
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
7865
|
D || k(e.target.checked), d && d(e);
|
|
7863
7866
|
}, M = g ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -7912,7 +7915,7 @@ var Er = {
|
|
|
7912
7915
|
required: p,
|
|
7913
7916
|
showLabel: m
|
|
7914
7917
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
7915
|
-
}),
|
|
7918
|
+
}), 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
7919
|
let y = m(null), b = "pds-tags-input__tag";
|
|
7917
7920
|
l(() => {
|
|
7918
7921
|
r === i && y.current && y.current.focus();
|
|
@@ -7979,7 +7982,7 @@ var Er = {
|
|
|
7979
7982
|
iconName: "xmark",
|
|
7980
7983
|
size: "s"
|
|
7981
7984
|
})));
|
|
7982
|
-
},
|
|
7985
|
+
}, $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
7986
|
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
7987
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
7985
7988
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8065,7 +8068,7 @@ var Er = {
|
|
|
8065
8068
|
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
8069
|
key: t.id,
|
|
8067
8070
|
role: "listitem"
|
|
8068
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8071
|
+
}, /* @__PURE__ */ e.createElement(Qr, {
|
|
8069
8072
|
disabled: r,
|
|
8070
8073
|
dropTargetDirection: i,
|
|
8071
8074
|
focusedIndex: B,
|
|
@@ -8109,7 +8112,7 @@ var Er = {
|
|
|
8109
8112
|
validationMessageHasDecorators: !1,
|
|
8110
8113
|
validationStatus: x
|
|
8111
8114
|
}));
|
|
8112
|
-
}),
|
|
8115
|
+
}), 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
8116
|
clearButton: "Clear input text",
|
|
8114
8117
|
counterOverLimit: "Character limit exceeded by",
|
|
8115
8118
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8173,7 +8176,7 @@ var Er = {
|
|
|
8173
8176
|
message: L,
|
|
8174
8177
|
validationStatus: w
|
|
8175
8178
|
}));
|
|
8176
|
-
}),
|
|
8179
|
+
}), 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
8180
|
clearButton: "Clear input text",
|
|
8178
8181
|
counterOverLimit: "Character limit exceeded by",
|
|
8179
8182
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8239,7 +8242,7 @@ var Er = {
|
|
|
8239
8242
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8240
8243
|
"aria-live": "polite",
|
|
8241
8244
|
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(
|
|
8245
|
+
}, `${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
8246
|
ref: N,
|
|
8244
8247
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8245
8248
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8286,12 +8289,12 @@ var Er = {
|
|
|
8286
8289
|
validationMessageHasDecorators: !1,
|
|
8287
8290
|
validationStatus: A
|
|
8288
8291
|
}));
|
|
8289
|
-
}),
|
|
8292
|
+
}), ri = (e) => String(e).padStart(2, "0"), ii = (e) => {
|
|
8290
8293
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
8291
8294
|
if (!t) return null;
|
|
8292
8295
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
8293
8296
|
return n > 23 || r > 59 ? null : new ue(n, r);
|
|
8294
|
-
},
|
|
8297
|
+
}, ai = (e) => e ? `${ri(e.hour)}:${ri(e.minute)}` : void 0, oi = ({ baseClass: t, segment: n, state: r }) => {
|
|
8295
8298
|
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
8299
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8297
8300
|
...he(a, o),
|
|
@@ -8302,7 +8305,7 @@ var Er = {
|
|
|
8302
8305
|
s ? `${t}__segment--focus-visible` : null
|
|
8303
8306
|
])
|
|
8304
8307
|
}, c);
|
|
8305
|
-
},
|
|
8308
|
+
}, 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
8309
|
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
8310
|
granularity: "minute",
|
|
8308
8311
|
hourCycle: a,
|
|
@@ -8310,14 +8313,14 @@ var Er = {
|
|
|
8310
8313
|
locale: P,
|
|
8311
8314
|
onBlur: d,
|
|
8312
8315
|
onChange: (e) => {
|
|
8313
|
-
let t =
|
|
8316
|
+
let t = ai(e);
|
|
8314
8317
|
t && (N || I(t), f && f(t));
|
|
8315
8318
|
},
|
|
8316
8319
|
onFocusChange: (e) => {
|
|
8317
8320
|
e && g && g();
|
|
8318
8321
|
},
|
|
8319
8322
|
shouldForceLeadingZeros: !0,
|
|
8320
|
-
value: p(() =>
|
|
8323
|
+
value: p(() => ii(L), [L])
|
|
8321
8324
|
}), z = m(null), { fieldProps: B } = ye({
|
|
8322
8325
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
8323
8326
|
"aria-labelledby": `${o}-label`,
|
|
@@ -8328,7 +8331,7 @@ var Er = {
|
|
|
8328
8331
|
if (V.current = b, !b || !e || b === e) return;
|
|
8329
8332
|
let n = R.value;
|
|
8330
8333
|
if (!n) return;
|
|
8331
|
-
let r = fe(pe(de(t ?? me(e), n), e), b), i =
|
|
8334
|
+
let r = fe(pe(de(t ?? me(e), n), e), b), i = ai(new ue(r.hour, r.minute));
|
|
8332
8335
|
i && (N || I(i), f && f(i));
|
|
8333
8336
|
}, [b]);
|
|
8334
8337
|
let H = p(() => {
|
|
@@ -8378,7 +8381,7 @@ var Er = {
|
|
|
8378
8381
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
8379
8382
|
key: n,
|
|
8380
8383
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
8381
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
8384
|
+
}, t.text) : /* @__PURE__ */ e.createElement(oi, {
|
|
8382
8385
|
key: n,
|
|
8383
8386
|
baseClass: E,
|
|
8384
8387
|
segment: t,
|
|
@@ -8390,7 +8393,7 @@ var Er = {
|
|
|
8390
8393
|
validationMessageHasDecorators: !1,
|
|
8391
8394
|
validationStatus: C
|
|
8392
8395
|
}));
|
|
8393
|
-
},
|
|
8396
|
+
}, ci = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8394
8397
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8395
8398
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8396
8399
|
className: Z([
|
|
@@ -8404,7 +8407,7 @@ var Er = {
|
|
|
8404
8407
|
iconName: "arrowRight",
|
|
8405
8408
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8406
8409
|
}));
|
|
8407
|
-
},
|
|
8410
|
+
}, li = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8408
8411
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8409
8412
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8410
8413
|
"aria-hidden": "true",
|
|
@@ -8431,11 +8434,11 @@ var Er = {
|
|
|
8431
8434
|
className: `${c}__icon`,
|
|
8432
8435
|
iconName: "externalLink"
|
|
8433
8436
|
}));
|
|
8434
|
-
},
|
|
8437
|
+
}, ui = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8435
8438
|
className: Z(["pds-skiplink", t]),
|
|
8436
8439
|
href: `#${n}`,
|
|
8437
8440
|
...i
|
|
8438
|
-
}, r),
|
|
8441
|
+
}, r), di = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8439
8442
|
let c = "pds-picture";
|
|
8440
8443
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8441
8444
|
srcSet: a,
|
|
@@ -8448,7 +8451,7 @@ var Er = {
|
|
|
8448
8451
|
width: o,
|
|
8449
8452
|
...s
|
|
8450
8453
|
}));
|
|
8451
|
-
},
|
|
8454
|
+
}, fi = ({ ariaLabel: t = "Breadcrumb", className: r, crumbs: i, ...a }) => {
|
|
8452
8455
|
let s = "pds-breadcrumb", c = i.length, l = i.map((t, r) => {
|
|
8453
8456
|
if (r < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8454
8457
|
key: r,
|
|
@@ -8467,36 +8470,36 @@ var Er = {
|
|
|
8467
8470
|
className: Z([s, r]),
|
|
8468
8471
|
...a
|
|
8469
8472
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${s}__crumbs` }, l));
|
|
8470
|
-
},
|
|
8473
|
+
}, pi = (e) => {
|
|
8471
8474
|
if (!e) return null;
|
|
8472
8475
|
for (let t = 0; t < e.length; t++) {
|
|
8473
|
-
if (
|
|
8476
|
+
if (hi(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8474
8477
|
if (e[t].links) {
|
|
8475
|
-
let n =
|
|
8478
|
+
let n = pi(e[t].links);
|
|
8476
8479
|
if (n) return n;
|
|
8477
8480
|
}
|
|
8478
8481
|
}
|
|
8479
8482
|
return null;
|
|
8480
|
-
},
|
|
8481
|
-
if (
|
|
8483
|
+
}, 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) => {
|
|
8484
|
+
if (hi(e)) return !0;
|
|
8482
8485
|
if (e.links) {
|
|
8483
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8486
|
+
for (let t = 0; t < e.links.length; t++) if (gi(e.links[t])) return !0;
|
|
8484
8487
|
}
|
|
8485
8488
|
return !1;
|
|
8486
|
-
},
|
|
8489
|
+
}, _i = (e) => e.map((e) => `${hi(e)}${e.links ? `[${_i(e.links)}]` : ""}`).join("|"), vi = (e) => {
|
|
8487
8490
|
if (o(e)) {
|
|
8488
8491
|
let t = e.type;
|
|
8489
8492
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8490
8493
|
}
|
|
8491
8494
|
return !1;
|
|
8492
|
-
},
|
|
8495
|
+
}, yi = (e, t) => {
|
|
8493
8496
|
let r = null;
|
|
8494
8497
|
if (typeof e == "string" && t) {
|
|
8495
8498
|
let i = t ? t[0].linkContent : null;
|
|
8496
8499
|
o(i) && (r = n(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8497
8500
|
} else r = e;
|
|
8498
8501
|
return r;
|
|
8499
|
-
},
|
|
8502
|
+
}, bi = (t, r, i, a) => {
|
|
8500
8503
|
let s = null;
|
|
8501
8504
|
if (typeof r == "string") {
|
|
8502
8505
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8521,7 +8524,7 @@ var Er = {
|
|
|
8521
8524
|
iconName: a,
|
|
8522
8525
|
size: "m"
|
|
8523
8526
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
|
|
8524
|
-
},
|
|
8527
|
+
}, xi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8525
8528
|
let o = m(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8526
8529
|
l(() => {
|
|
8527
8530
|
let e = (e) => {
|
|
@@ -8540,11 +8543,11 @@ var Er = {
|
|
|
8540
8543
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8541
8544
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(u, {
|
|
8542
8545
|
key: n,
|
|
8543
|
-
isActive:
|
|
8546
|
+
isActive: gi(t),
|
|
8544
8547
|
linkContent: t.linkContent
|
|
8545
8548
|
}))) : null, f = [];
|
|
8546
8549
|
i.map((e) => {
|
|
8547
|
-
e.linkContent && (
|
|
8550
|
+
e.linkContent && (gi(e) ? f.unshift({
|
|
8548
8551
|
linkContent: e.linkContent,
|
|
8549
8552
|
isLink: !0
|
|
8550
8553
|
}) : f.push({
|
|
@@ -8568,8 +8571,8 @@ var Er = {
|
|
|
8568
8571
|
]),
|
|
8569
8572
|
...a
|
|
8570
8573
|
}, d, p);
|
|
8571
|
-
},
|
|
8572
|
-
let s = "pds-dropdown-menu", c =
|
|
8574
|
+
}, Si = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8575
|
+
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
8576
|
enableShift: !1,
|
|
8574
8577
|
enableTypeahead: !0,
|
|
8575
8578
|
role: "menu"
|
|
@@ -8578,7 +8581,7 @@ var Er = {
|
|
|
8578
8581
|
}, C = (e) => {
|
|
8579
8582
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8580
8583
|
}, w = ({ item: e, level: t }) => {
|
|
8581
|
-
let r =
|
|
8584
|
+
let r = yi(e.linkContent, e.links);
|
|
8582
8585
|
return {
|
|
8583
8586
|
...e,
|
|
8584
8587
|
level: t,
|
|
@@ -8669,7 +8672,7 @@ var Er = {
|
|
|
8669
8672
|
tabIndex: d === n ? 0 : -1,
|
|
8670
8673
|
...m({ onKeyDown: C })
|
|
8671
8674
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8672
|
-
},
|
|
8675
|
+
}, Ci = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8673
8676
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8674
8677
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8675
8678
|
className: Z([
|
|
@@ -8679,7 +8682,7 @@ var Er = {
|
|
|
8679
8682
|
]),
|
|
8680
8683
|
...i
|
|
8681
8684
|
}, t);
|
|
8682
|
-
},
|
|
8685
|
+
}, wi = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8683
8686
|
closeMobileNav: "Close navigation area",
|
|
8684
8687
|
openMobileNav: "Open navigation area"
|
|
8685
8688
|
}, ...c }) => {
|
|
@@ -8735,7 +8738,7 @@ var Er = {
|
|
|
8735
8738
|
n ?? ""
|
|
8736
8739
|
]),
|
|
8737
8740
|
...c
|
|
8738
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8741
|
+
}, 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
8742
|
active: u,
|
|
8740
8743
|
focusTrapOptions: {
|
|
8741
8744
|
clickOutsideDeactivates: !0,
|
|
@@ -8745,11 +8748,11 @@ var Er = {
|
|
|
8745
8748
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8746
8749
|
className: Z([`${g}__mobile`, u ? `${g}__mobile--open` : null]),
|
|
8747
8750
|
inert: u ? void 0 : ""
|
|
8748
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8751
|
+
}, /* @__PURE__ */ e.createElement(Ci, null, /* @__PURE__ */ e.createElement("button", {
|
|
8749
8752
|
className: "visually-hidden",
|
|
8750
8753
|
onClick: b,
|
|
8751
8754
|
type: "button"
|
|
8752
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8755
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ci, {
|
|
8753
8756
|
className: `${g}__inner`,
|
|
8754
8757
|
style: o ? { paddingInline: o } : void 0,
|
|
8755
8758
|
width: i
|
|
@@ -8757,14 +8760,14 @@ var Er = {
|
|
|
8757
8760
|
"aria-hidden": "true",
|
|
8758
8761
|
className: `${g}__separator`
|
|
8759
8762
|
}), 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
|
-
},
|
|
8763
|
+
}, Ti = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8761
8764
|
submenu: "submenu",
|
|
8762
8765
|
toggle: "Toggle"
|
|
8763
8766
|
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8764
8767
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8765
8768
|
l(() => {
|
|
8766
8769
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8767
|
-
}, [
|
|
8770
|
+
}, [_i(c)]);
|
|
8768
8771
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8769
8772
|
v((n) => {
|
|
8770
8773
|
let r = t in n ? n[t] : e;
|
|
@@ -8774,7 +8777,7 @@ var Er = {
|
|
|
8774
8777
|
};
|
|
8775
8778
|
});
|
|
8776
8779
|
}, x = (t, r) => {
|
|
8777
|
-
let { linkContent: i, links: a } = t, c =
|
|
8780
|
+
let { linkContent: i, links: a } = t, c = gi(t), l = vi(i), u = y(c, r);
|
|
8778
8781
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8779
8782
|
key: r,
|
|
8780
8783
|
className: Z([
|
|
@@ -8787,7 +8790,7 @@ var Er = {
|
|
|
8787
8790
|
`${f}__row`,
|
|
8788
8791
|
`${f}__row--expandable`,
|
|
8789
8792
|
`${m}-wrapper`
|
|
8790
|
-
]) },
|
|
8793
|
+
]) }, yi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8791
8794
|
"aria-expanded": u,
|
|
8792
8795
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8793
8796
|
onClick: () => b(c, r),
|
|
@@ -8795,7 +8798,7 @@ var Er = {
|
|
|
8795
8798
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8796
8799
|
iconName: "angleDown",
|
|
8797
8800
|
size: "m"
|
|
8798
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8801
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${mi(i)} ${s.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8799
8802
|
g,
|
|
8800
8803
|
`${g}--second-level`,
|
|
8801
8804
|
u ? `${g}--expanded` : null
|
|
@@ -8804,9 +8807,9 @@ var Er = {
|
|
|
8804
8807
|
className: Z([
|
|
8805
8808
|
m,
|
|
8806
8809
|
`${m}--second-level`,
|
|
8807
|
-
|
|
8810
|
+
gi(t) ? `${m}--active` : null
|
|
8808
8811
|
])
|
|
8809
|
-
},
|
|
8812
|
+
}, yi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8810
8813
|
"aria-expanded": u,
|
|
8811
8814
|
className: Z([
|
|
8812
8815
|
`${f}__row`,
|
|
@@ -8820,7 +8823,7 @@ var Er = {
|
|
|
8820
8823
|
}, 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
8824
|
iconName: "angleDown",
|
|
8822
8825
|
size: "m"
|
|
8823
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8826
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${mi(i)} ${s.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8824
8827
|
g,
|
|
8825
8828
|
`${g}--second-level`,
|
|
8826
8829
|
u ? `${g}--expanded` : null
|
|
@@ -8829,10 +8832,10 @@ var Er = {
|
|
|
8829
8832
|
className: Z([
|
|
8830
8833
|
m,
|
|
8831
8834
|
`${m}--second-level`,
|
|
8832
|
-
|
|
8835
|
+
gi(t) ? `${m}--active` : null
|
|
8833
8836
|
])
|
|
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(
|
|
8837
|
+
}, yi(t.linkContent, t.links))))) : i);
|
|
8838
|
+
}, 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
8839
|
className: `${f}__mobile`,
|
|
8837
8840
|
headingText: a,
|
|
8838
8841
|
menuItems: c,
|
|
@@ -8847,8 +8850,8 @@ var Er = {
|
|
|
8847
8850
|
]),
|
|
8848
8851
|
...d
|
|
8849
8852
|
}, 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` },
|
|
8853
|
+
}, Ei = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: u }) => {
|
|
8854
|
+
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
8855
|
p,
|
|
8853
8856
|
`${p}--${n}`,
|
|
8854
8857
|
r ? `${p}--expanded` : null
|
|
@@ -8857,7 +8860,7 @@ var Er = {
|
|
|
8857
8860
|
className: Z([
|
|
8858
8861
|
f,
|
|
8859
8862
|
`${f}--${n}`,
|
|
8860
|
-
|
|
8863
|
+
gi(t) ? `${f}--active` : null
|
|
8861
8864
|
])
|
|
8862
8865
|
}, t.linkContent))), [v, y] = h(!1), b = m(v), S = m(!1), { context: O, floatingStyles: k, refs: M } = j({
|
|
8863
8866
|
placement: "right-start",
|
|
@@ -8911,7 +8914,7 @@ var Er = {
|
|
|
8911
8914
|
...I(),
|
|
8912
8915
|
onClick: z,
|
|
8913
8916
|
onKeyDown: R
|
|
8914
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8917
|
+
}, 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
8918
|
"aria-expanded": r,
|
|
8916
8919
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
8917
8920
|
onClick: u,
|
|
@@ -8919,13 +8922,13 @@ var Er = {
|
|
|
8919
8922
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8920
8923
|
iconName: "angleDown",
|
|
8921
8924
|
size: "m"
|
|
8922
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
8925
|
+
}), /* @__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
8926
|
ref: M.setFloating,
|
|
8924
8927
|
className: `${d}__flyout`,
|
|
8925
8928
|
style: k,
|
|
8926
8929
|
...P()
|
|
8927
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
8928
|
-
content:
|
|
8930
|
+
}, /* @__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, {
|
|
8931
|
+
content: mi(o),
|
|
8929
8932
|
customTrigger: g,
|
|
8930
8933
|
offsetValue: {
|
|
8931
8934
|
mainAxis: 8,
|
|
@@ -8933,14 +8936,14 @@ var Er = {
|
|
|
8933
8936
|
},
|
|
8934
8937
|
preferredPlacement: "right"
|
|
8935
8938
|
}) : g));
|
|
8936
|
-
},
|
|
8939
|
+
}, Di = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8937
8940
|
submenu: "submenu",
|
|
8938
8941
|
toggle: "Toggle"
|
|
8939
8942
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8940
8943
|
let c = "pds-side-nav-global", u = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = h({});
|
|
8941
8944
|
l(() => {
|
|
8942
8945
|
f((e) => Object.keys(e).length ? {} : e);
|
|
8943
|
-
}, [
|
|
8946
|
+
}, [_i(a)]);
|
|
8944
8947
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
8945
8948
|
f((n) => {
|
|
8946
8949
|
let r = t in n ? n[t] : e;
|
|
@@ -8961,8 +8964,8 @@ var Er = {
|
|
|
8961
8964
|
className: `${c}__section-label`,
|
|
8962
8965
|
role: "presentation"
|
|
8963
8966
|
}, t.label);
|
|
8964
|
-
let a =
|
|
8965
|
-
return /* @__PURE__ */ e.createElement(
|
|
8967
|
+
let a = gi(t);
|
|
8968
|
+
return /* @__PURE__ */ e.createElement(Ei, {
|
|
8966
8969
|
key: n,
|
|
8967
8970
|
icon: t.icon,
|
|
8968
8971
|
isActive: a,
|
|
@@ -8984,7 +8987,7 @@ var Er = {
|
|
|
8984
8987
|
]),
|
|
8985
8988
|
...s
|
|
8986
8989
|
}, g);
|
|
8987
|
-
},
|
|
8990
|
+
}, Oi = ({ items: t, label: n }) => {
|
|
8988
8991
|
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
8992
|
offsetValue: 8,
|
|
8990
8993
|
openOnHover: !Nt()
|
|
@@ -9021,7 +9024,7 @@ var Er = {
|
|
|
9021
9024
|
key: n,
|
|
9022
9025
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9023
9026
|
}, !t.isSeparator && t.linkContent)))));
|
|
9024
|
-
},
|
|
9027
|
+
}, ki = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9025
9028
|
let [a, o] = h(null), [s, c] = h(-1), [d, f] = h(null), [p, g] = h({
|
|
9026
9029
|
container: null,
|
|
9027
9030
|
containerChildren: []
|
|
@@ -9068,7 +9071,7 @@ var Er = {
|
|
|
9068
9071
|
},
|
|
9069
9072
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9070
9073
|
id: i
|
|
9071
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9074
|
+
}, /* @__PURE__ */ e.createElement(Oi, {
|
|
9072
9075
|
items: t.links,
|
|
9073
9076
|
label: t.label
|
|
9074
9077
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9087,14 +9090,14 @@ var Er = {
|
|
|
9087
9090
|
},
|
|
9088
9091
|
...i
|
|
9089
9092
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9090
|
-
},
|
|
9093
|
+
}, Ai = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9091
9094
|
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
9095
|
offsetValue: 8,
|
|
9093
9096
|
placement: "bottom-start",
|
|
9094
9097
|
role: "listbox"
|
|
9095
9098
|
}), A = (e) => {
|
|
9096
9099
|
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) =>
|
|
9100
|
+
}, j = (e, t) => mi(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9098
9101
|
let t = e.target.value;
|
|
9099
9102
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9100
9103
|
};
|
|
@@ -9105,11 +9108,11 @@ var Er = {
|
|
|
9105
9108
|
d(""), c(i);
|
|
9106
9109
|
}, P = {
|
|
9107
9110
|
minWidth: "13rem",
|
|
9108
|
-
width: `${
|
|
9111
|
+
width: `${mi(i.reduce((e, t) => mi(e.linkContent).length > mi(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9109
9112
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9110
9113
|
className: `${p}__active-icon`,
|
|
9111
9114
|
iconName: "check"
|
|
9112
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9115
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9113
9116
|
hasClearButton: !0,
|
|
9114
9117
|
autoComplete: "off",
|
|
9115
9118
|
id: "links-filter",
|
|
@@ -9152,9 +9155,9 @@ var Er = {
|
|
|
9152
9155
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9153
9156
|
} })
|
|
9154
9157
|
}, /* @__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
|
-
},
|
|
9158
|
+
}, ji = ({ ariaLabel: t, className: r, menuItems: i, ...a }) => {
|
|
9156
9159
|
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 =
|
|
9160
|
+
let u = `${s}__item`, d = pi(c);
|
|
9158
9161
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, r) => {
|
|
9159
9162
|
let i = null;
|
|
9160
9163
|
return o(t) && (i = r ? n(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9165,7 +9168,7 @@ var Er = {
|
|
|
9165
9168
|
iconName: r,
|
|
9166
9169
|
size: "m"
|
|
9167
9170
|
}), t.props.children)] })) : t), i;
|
|
9168
|
-
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(
|
|
9171
|
+
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(Ai, {
|
|
9169
9172
|
buttonLabel: t?.buttonLabel,
|
|
9170
9173
|
filterLabel: t?.filterLabel,
|
|
9171
9174
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9177,7 +9180,7 @@ var Er = {
|
|
|
9177
9180
|
key: n,
|
|
9178
9181
|
dropdownSettings: t.dropdownSettings,
|
|
9179
9182
|
icon: t.icon,
|
|
9180
|
-
isActive:
|
|
9183
|
+
isActive: gi(t),
|
|
9181
9184
|
linkContent: t.linkContent,
|
|
9182
9185
|
links: t.links,
|
|
9183
9186
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9187,11 +9190,11 @@ var Er = {
|
|
|
9187
9190
|
className: Z([s, r ?? ""]),
|
|
9188
9191
|
...a
|
|
9189
9192
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, l));
|
|
9190
|
-
},
|
|
9193
|
+
}, Mi = {
|
|
9191
9194
|
2: "second",
|
|
9192
9195
|
3: "third",
|
|
9193
9196
|
4: "fourth"
|
|
9194
|
-
},
|
|
9197
|
+
}, Ni = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9195
9198
|
submenu: "submenu",
|
|
9196
9199
|
toggle: "Toggle"
|
|
9197
9200
|
}, menuItems: a, ...o }) => {
|
|
@@ -9311,7 +9314,7 @@ var Er = {
|
|
|
9311
9314
|
display: "none"
|
|
9312
9315
|
}), b();
|
|
9313
9316
|
}, j = (t, n, r) => {
|
|
9314
|
-
let a =
|
|
9317
|
+
let a = Mi[t], o = `${u}--${a}-level`, l = `${c}--${a}-level`, d = t + 1, f = gi(n);
|
|
9315
9318
|
if (_.current && n.path) {
|
|
9316
9319
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9317
9320
|
if (e) {
|
|
@@ -9328,7 +9331,7 @@ var Er = {
|
|
|
9328
9331
|
iconName: "angleDown",
|
|
9329
9332
|
size: "s",
|
|
9330
9333
|
verticalAlign: "-0.0625rem"
|
|
9331
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9334
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${mi(n.linkContent)} ${i.submenu}`)), yi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9332
9335
|
className: Z([
|
|
9333
9336
|
u,
|
|
9334
9337
|
o,
|
|
@@ -9336,7 +9339,7 @@ var Er = {
|
|
|
9336
9339
|
]),
|
|
9337
9340
|
role: "group"
|
|
9338
9341
|
}, n.links.map((t, n) => {
|
|
9339
|
-
let r =
|
|
9342
|
+
let r = gi(t);
|
|
9340
9343
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9341
9344
|
key: `${n}-${a}`,
|
|
9342
9345
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9348,10 +9351,10 @@ var Er = {
|
|
|
9348
9351
|
]),
|
|
9349
9352
|
"data-item-path": t.path || "",
|
|
9350
9353
|
role: "treeitem"
|
|
9351
|
-
}, t.links && d in
|
|
9354
|
+
}, t.links && d in Mi ? j(d, t, t.links) : t.linkContent);
|
|
9352
9355
|
})));
|
|
9353
9356
|
}, M = (t, n) => {
|
|
9354
|
-
let { linkContent: r, links: i } = t, a =
|
|
9357
|
+
let { linkContent: r, links: i } = t, a = gi(t);
|
|
9355
9358
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9356
9359
|
key: n,
|
|
9357
9360
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9380,11 +9383,11 @@ var Er = {
|
|
|
9380
9383
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9381
9384
|
role: "tree"
|
|
9382
9385
|
}, a.map((e, t) => M(e, t))));
|
|
9383
|
-
},
|
|
9386
|
+
}, Pi = {
|
|
9384
9387
|
light: "sunBright",
|
|
9385
9388
|
dark: "moon",
|
|
9386
9389
|
system: "circleHalfStroke"
|
|
9387
|
-
},
|
|
9390
|
+
}, Fi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9388
9391
|
light: "Light",
|
|
9389
9392
|
dark: "Dark",
|
|
9390
9393
|
system: "System"
|
|
@@ -9396,7 +9399,7 @@ var Er = {
|
|
|
9396
9399
|
];
|
|
9397
9400
|
if (s === "toggle") {
|
|
9398
9401
|
let s = d.map((e) => ({
|
|
9399
|
-
iconName:
|
|
9402
|
+
iconName: Pi[e],
|
|
9400
9403
|
label: r[e],
|
|
9401
9404
|
value: e
|
|
9402
9405
|
}));
|
|
@@ -9415,7 +9418,7 @@ var Er = {
|
|
|
9415
9418
|
}
|
|
9416
9419
|
let f = d.map((e) => ({
|
|
9417
9420
|
callback: () => i?.(e),
|
|
9418
|
-
iconName:
|
|
9421
|
+
iconName: Pi[e],
|
|
9419
9422
|
iconSize: "m",
|
|
9420
9423
|
label: r[e]
|
|
9421
9424
|
}));
|
|
@@ -9427,7 +9430,7 @@ var Er = {
|
|
|
9427
9430
|
customTrigger: /* @__PURE__ */ e.createElement(Rn, {
|
|
9428
9431
|
iconOnly: !0,
|
|
9429
9432
|
"aria-label": u,
|
|
9430
|
-
iconName:
|
|
9433
|
+
iconName: Pi[o],
|
|
9431
9434
|
id: n,
|
|
9432
9435
|
label: "",
|
|
9433
9436
|
menuItems: f,
|
|
@@ -9436,7 +9439,7 @@ var Er = {
|
|
|
9436
9439
|
offsetValue: 0,
|
|
9437
9440
|
preferredPlacement: "top"
|
|
9438
9441
|
}));
|
|
9439
|
-
},
|
|
9442
|
+
}, 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
9443
|
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
9444
|
placement: "bottom-end",
|
|
9442
9445
|
open: _,
|
|
@@ -9481,7 +9484,7 @@ var Er = {
|
|
|
9481
9484
|
}, /* @__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
9485
|
className: `${E}__theme-row`,
|
|
9483
9486
|
role: "presentation"
|
|
9484
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9487
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(Fi, {
|
|
9485
9488
|
id: `${S}-theme`,
|
|
9486
9489
|
labelStrings: s,
|
|
9487
9490
|
onChange: i,
|
|
@@ -9560,7 +9563,7 @@ var Er = {
|
|
|
9560
9563
|
className: O,
|
|
9561
9564
|
role: "menu"
|
|
9562
9565
|
}, te, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ne, ae)))));
|
|
9563
|
-
},
|
|
9566
|
+
}, 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
9567
|
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
9568
|
enableTypeahead: !b,
|
|
9566
9569
|
role: "menu"
|
|
@@ -9663,7 +9666,7 @@ var Er = {
|
|
|
9663
9666
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9664
9667
|
className: Z([S, n]),
|
|
9665
9668
|
...u
|
|
9666
|
-
}, /* @__PURE__ */ e.createElement(An, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9669
|
+
}, /* @__PURE__ */ e.createElement(An, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9667
9670
|
hasClearButton: !0,
|
|
9668
9671
|
id: "workspace-filter-mobile",
|
|
9669
9672
|
label: i,
|
|
@@ -9700,7 +9703,7 @@ var Er = {
|
|
|
9700
9703
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9701
9704
|
},
|
|
9702
9705
|
...D()
|
|
9703
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9706
|
+
}, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ni, {
|
|
9704
9707
|
hasClearButton: !0,
|
|
9705
9708
|
id: "workspace-filter",
|
|
9706
9709
|
label: i,
|
|
@@ -9716,12 +9719,12 @@ var Er = {
|
|
|
9716
9719
|
className: `pds-dropdown__heading ${S}__item-heading`,
|
|
9717
9720
|
role: "presentation"
|
|
9718
9721
|
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9719
|
-
},
|
|
9722
|
+
}, Ri = {
|
|
9720
9723
|
info: "circleInfo",
|
|
9721
9724
|
warning: "triangleExclamation",
|
|
9722
9725
|
critical: "diamondExclamation",
|
|
9723
9726
|
discovery: "bullhorn"
|
|
9724
|
-
},
|
|
9727
|
+
}, 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
9728
|
...jn,
|
|
9726
9729
|
neutral: "Notice"
|
|
9727
9730
|
}, ...c }) => {
|
|
@@ -9740,21 +9743,21 @@ var Er = {
|
|
|
9740
9743
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9741
9744
|
m(d[0].id), setTimeout(() => {
|
|
9742
9745
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9743
|
-
},
|
|
9746
|
+
}, zi);
|
|
9744
9747
|
}, k = () => {
|
|
9745
9748
|
y({
|
|
9746
9749
|
[d[0].id]: 502,
|
|
9747
9750
|
[d[b - 1].id]: 501
|
|
9748
9751
|
}), setTimeout(() => {
|
|
9749
9752
|
m(d[0].id);
|
|
9750
|
-
},
|
|
9753
|
+
}, Bi), setTimeout(() => {
|
|
9751
9754
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9752
|
-
},
|
|
9755
|
+
}, zi);
|
|
9753
9756
|
}, A = (t, n) => {
|
|
9754
9757
|
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
9758
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9756
9759
|
l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9757
|
-
},
|
|
9760
|
+
}, zi);
|
|
9758
9761
|
}, b = v[a] ?? E(n);
|
|
9759
9762
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9760
9763
|
key: a,
|
|
@@ -9769,7 +9772,7 @@ var Er = {
|
|
|
9769
9772
|
style: { zIndex: b }
|
|
9770
9773
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9771
9774
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9772
|
-
iconName: d === "neutral" ? r :
|
|
9775
|
+
iconName: d === "neutral" ? r : Ri[d],
|
|
9773
9776
|
size: u ? "l" : "m"
|
|
9774
9777
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9775
9778
|
className: `${x}__dismiss-button`,
|
|
@@ -9800,12 +9803,12 @@ var Er = {
|
|
|
9800
9803
|
onClick: O,
|
|
9801
9804
|
size: "m"
|
|
9802
9805
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
9803
|
-
},
|
|
9806
|
+
}, Hi = {
|
|
9804
9807
|
info: "circleInfo",
|
|
9805
9808
|
warning: "triangleExclamation",
|
|
9806
9809
|
success: "circleCheck",
|
|
9807
9810
|
critical: "diamondExclamation"
|
|
9808
|
-
},
|
|
9811
|
+
}, Ui = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
9809
9812
|
...jn,
|
|
9810
9813
|
working: "Working"
|
|
9811
9814
|
}, ...o }) => {
|
|
@@ -9826,16 +9829,16 @@ var Er = {
|
|
|
9826
9829
|
role: l,
|
|
9827
9830
|
...o
|
|
9828
9831
|
}, /* @__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
|
|
9832
|
+
iconName: `${i}` in Hi ? Hi[i] : Hi.info,
|
|
9830
9833
|
size: "m"
|
|
9831
9834
|
})), /* @__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
|
-
},
|
|
9835
|
+
}, Wi = {
|
|
9833
9836
|
info: "circleInfo",
|
|
9834
9837
|
warning: "triangleExclamation",
|
|
9835
9838
|
success: "circleCheck",
|
|
9836
9839
|
critical: "diamondExclamation",
|
|
9837
9840
|
discovery: "squareQuestion"
|
|
9838
|
-
},
|
|
9841
|
+
}, 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
9842
|
let h = r === "marketing", g = m(null), _ = m(void 0), v = "pds-section-message", y = {
|
|
9840
9843
|
error: `${v}--error`,
|
|
9841
9844
|
success: `${v}--success`,
|
|
@@ -9872,7 +9875,7 @@ var Er = {
|
|
|
9872
9875
|
role: S,
|
|
9873
9876
|
...p
|
|
9874
9877
|
}, /* @__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
|
|
9878
|
+
iconName: `${d}` in Wi ? Wi[d] : Wi.info,
|
|
9876
9879
|
size: h ? "xl" : "l"
|
|
9877
9880
|
})), /* @__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
9881
|
...n,
|
|
@@ -9885,10 +9888,10 @@ var Er = {
|
|
|
9885
9888
|
onClick: D,
|
|
9886
9889
|
size: h ? "l" : "m"
|
|
9887
9890
|
})));
|
|
9888
|
-
},
|
|
9891
|
+
}, Ki = 3e4, qi = {
|
|
9889
9892
|
pause: "Pause notification",
|
|
9890
9893
|
resume: "Resume notification"
|
|
9891
|
-
},
|
|
9894
|
+
}, Ji = r({ labelStrings: qi }), Yi = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(hn, {
|
|
9892
9895
|
ariaLabel: t || "Close",
|
|
9893
9896
|
className: "pds-toast__close-button",
|
|
9894
9897
|
onClick: (e) => {
|
|
@@ -9896,13 +9899,13 @@ var Er = {
|
|
|
9896
9899
|
},
|
|
9897
9900
|
size: "s",
|
|
9898
9901
|
tabIndex: 0
|
|
9899
|
-
}),
|
|
9902
|
+
}), Xi = ({ className: t, labelStrings: n = qi, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9900
9903
|
let a = Z(["pds-toaster", t]);
|
|
9901
|
-
return /* @__PURE__ */ e.createElement(
|
|
9904
|
+
return /* @__PURE__ */ e.createElement(Ji.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(Ce, {
|
|
9902
9905
|
newestOnTop: !0,
|
|
9903
9906
|
autoClose: !1,
|
|
9904
9907
|
className: a,
|
|
9905
|
-
closeButton:
|
|
9908
|
+
closeButton: Yi,
|
|
9906
9909
|
draggable: !1,
|
|
9907
9910
|
icon: !1,
|
|
9908
9911
|
limit: r,
|
|
@@ -9912,25 +9915,25 @@ var Er = {
|
|
|
9912
9915
|
role: "status",
|
|
9913
9916
|
transition: Se
|
|
9914
9917
|
}));
|
|
9915
|
-
},
|
|
9918
|
+
}, Zi = {
|
|
9916
9919
|
info: "circleInfo",
|
|
9917
9920
|
success: "circleCheck",
|
|
9918
9921
|
warning: "triangleExclamation",
|
|
9919
9922
|
critical: "diamondExclamation"
|
|
9920
|
-
},
|
|
9923
|
+
}, Qi = {
|
|
9921
9924
|
info: "Information",
|
|
9922
9925
|
success: "Success",
|
|
9923
9926
|
warning: "Warning",
|
|
9924
9927
|
critical: "Critical",
|
|
9925
9928
|
working: "Working..."
|
|
9926
|
-
},
|
|
9929
|
+
}, $i = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Qi }) => {
|
|
9927
9930
|
let l = "pds-toast", u = {
|
|
9928
9931
|
critical: `${l}--critical`,
|
|
9929
9932
|
info: `${l}--info`,
|
|
9930
9933
|
success: `${l}--success`,
|
|
9931
9934
|
warning: `${l}--warning`,
|
|
9932
9935
|
working: `${l}--working`
|
|
9933
|
-
}, d = `${s[o]} `, { labelStrings: f } = c(
|
|
9936
|
+
}, d = `${s[o]} `, { labelStrings: f } = c(Ji), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
9934
9937
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9935
9938
|
className: Z([
|
|
9936
9939
|
l,
|
|
@@ -9940,7 +9943,7 @@ var Er = {
|
|
|
9940
9943
|
id: i
|
|
9941
9944
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9942
9945
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9943
|
-
iconName:
|
|
9946
|
+
iconName: Zi[o],
|
|
9944
9947
|
size: "l"
|
|
9945
9948
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9946
9949
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -9955,11 +9958,11 @@ var Er = {
|
|
|
9955
9958
|
iconName: p ? "play" : "pause",
|
|
9956
9959
|
size: "m"
|
|
9957
9960
|
})));
|
|
9958
|
-
},
|
|
9961
|
+
}, ea = /* @__PURE__ */ function(e) {
|
|
9959
9962
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9960
|
-
}({}),
|
|
9963
|
+
}({}), ta = () => [
|
|
9961
9964
|
(t, n, r = {}) => {
|
|
9962
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
9965
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(Ki, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement($i, {
|
|
9963
9966
|
autoCloseDuration: a || void 0,
|
|
9964
9967
|
toastId: i,
|
|
9965
9968
|
type: t
|
|
@@ -9984,7 +9987,7 @@ var Er = {
|
|
|
9984
9987
|
enter: "pds-toast--bounceInPlace",
|
|
9985
9988
|
exit: "pds-toast--slideOut"
|
|
9986
9989
|
})
|
|
9987
|
-
],
|
|
9990
|
+
], 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
9991
|
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
9992
|
l(() => {
|
|
9990
9993
|
c ? E(!0) : O(!1);
|
|
@@ -10049,7 +10052,7 @@ var Er = {
|
|
|
10049
10052
|
onClick: M,
|
|
10050
10053
|
size: "m"
|
|
10051
10054
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10052
|
-
},
|
|
10055
|
+
}, 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
10056
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = Lt();
|
|
10054
10057
|
l(() => {
|
|
10055
10058
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10114,7 +10117,7 @@ var Er = {
|
|
|
10114
10117
|
}),
|
|
10115
10118
|
zIndex: 9999
|
|
10116
10119
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10117
|
-
},
|
|
10120
|
+
}, 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
10121
|
let m = Xe(n), g = m.__unslotted, _ = m.footer, v = "pds-modal", x = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10119
10122
|
maxHeight: a,
|
|
10120
10123
|
paddingInlineEnd: "1rem",
|
|
@@ -10190,27 +10193,27 @@ var Er = {
|
|
|
10190
10193
|
className: `${v}__content`,
|
|
10191
10194
|
style: S
|
|
10192
10195
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10193
|
-
},
|
|
10196
|
+
}, aa = (e, t) => {
|
|
10194
10197
|
let n = t - e + 1;
|
|
10195
10198
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10196
|
-
},
|
|
10199
|
+
}, oa = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
10197
10200
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10198
|
-
if (a >= i) return
|
|
10201
|
+
if (a >= i) return aa(1, i);
|
|
10199
10202
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10200
10203
|
if (!l && u) return [
|
|
10201
|
-
...
|
|
10204
|
+
...aa(1, 3 + 2 * e),
|
|
10202
10205
|
"...",
|
|
10203
10206
|
i
|
|
10204
10207
|
];
|
|
10205
10208
|
if (l && !u) return [
|
|
10206
10209
|
1,
|
|
10207
10210
|
"...",
|
|
10208
|
-
...
|
|
10211
|
+
...aa(i - (3 + 2 * e) + 1, i)
|
|
10209
10212
|
];
|
|
10210
10213
|
if (l && u) return [
|
|
10211
10214
|
1,
|
|
10212
10215
|
"...",
|
|
10213
|
-
...
|
|
10216
|
+
...aa(s, c),
|
|
10214
10217
|
"...",
|
|
10215
10218
|
o
|
|
10216
10219
|
];
|
|
@@ -10219,11 +10222,11 @@ var Er = {
|
|
|
10219
10222
|
n,
|
|
10220
10223
|
e,
|
|
10221
10224
|
t
|
|
10222
|
-
]),
|
|
10225
|
+
]), sa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10223
10226
|
previous: "Go to previous page",
|
|
10224
10227
|
next: "Go to next page"
|
|
10225
10228
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10226
|
-
let f =
|
|
10229
|
+
let f = oa({
|
|
10227
10230
|
currentPage: r,
|
|
10228
10231
|
totalItemCount: u,
|
|
10229
10232
|
bufferCount: t,
|
|
@@ -10277,7 +10280,7 @@ var Er = {
|
|
|
10277
10280
|
size: "m"
|
|
10278
10281
|
}))
|
|
10279
10282
|
}))));
|
|
10280
|
-
},
|
|
10283
|
+
}, ca = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10281
10284
|
next: "Next",
|
|
10282
10285
|
previous: "Previous"
|
|
10283
10286
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10306,7 +10309,7 @@ var Er = {
|
|
|
10306
10309
|
iconName: "angleRight",
|
|
10307
10310
|
size: "m"
|
|
10308
10311
|
}))));
|
|
10309
|
-
},
|
|
10312
|
+
}, la = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10310
10313
|
next: "Go to next page",
|
|
10311
10314
|
of: "of",
|
|
10312
10315
|
page: "Page",
|
|
@@ -10342,7 +10345,7 @@ var Er = {
|
|
|
10342
10345
|
className: "visually-hidden",
|
|
10343
10346
|
id: "pagination-compact",
|
|
10344
10347
|
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(
|
|
10348
|
+
}, 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
10349
|
className: C ? `${b}__page-input--error` : void 0,
|
|
10347
10350
|
id: m,
|
|
10348
10351
|
inputProps: {
|
|
@@ -10361,7 +10364,7 @@ var Er = {
|
|
|
10361
10364
|
}), C && /* @__PURE__ */ e.createElement("span", {
|
|
10362
10365
|
className: "visually-hidden",
|
|
10363
10366
|
role: "alert"
|
|
10364
|
-
}, C)) : /* @__PURE__ */ e.createElement(
|
|
10367
|
+
}, C)) : /* @__PURE__ */ e.createElement(er, {
|
|
10365
10368
|
autoWidth: !0,
|
|
10366
10369
|
id: m,
|
|
10367
10370
|
label: o.pageSelect,
|
|
@@ -10410,7 +10413,7 @@ var Er = {
|
|
|
10410
10413
|
size: "m"
|
|
10411
10414
|
}))
|
|
10412
10415
|
})));
|
|
10413
|
-
},
|
|
10416
|
+
}, ua = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10414
10417
|
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
10418
|
return l(() => {
|
|
10416
10419
|
let e = v.current;
|
|
@@ -10434,7 +10437,7 @@ var Er = {
|
|
|
10434
10437
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10435
10438
|
iconName: "angleDown"
|
|
10436
10439
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10437
|
-
},
|
|
10440
|
+
}, da = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10438
10441
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10439
10442
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10440
10443
|
className: Z([
|
|
@@ -10444,7 +10447,7 @@ var Er = {
|
|
|
10444
10447
|
]),
|
|
10445
10448
|
...i
|
|
10446
10449
|
}, t);
|
|
10447
|
-
},
|
|
10450
|
+
}, fa = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10448
10451
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10449
10452
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10450
10453
|
className: Z([
|
|
@@ -10454,7 +10457,7 @@ var Er = {
|
|
|
10454
10457
|
]),
|
|
10455
10458
|
...a
|
|
10456
10459
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10457
|
-
},
|
|
10460
|
+
}, pa = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10458
10461
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10459
10462
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10460
10463
|
className: Z([
|
|
@@ -10466,7 +10469,7 @@ var Er = {
|
|
|
10466
10469
|
]),
|
|
10467
10470
|
...o
|
|
10468
10471
|
}, n);
|
|
10469
|
-
},
|
|
10472
|
+
}, ma = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10470
10473
|
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
10474
|
c((e) => !e);
|
|
10472
10475
|
};
|
|
@@ -10497,10 +10500,10 @@ var Er = {
|
|
|
10497
10500
|
opacity: "0"
|
|
10498
10501
|
}
|
|
10499
10502
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10500
|
-
},
|
|
10503
|
+
}, ha = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10501
10504
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10502
10505
|
...r
|
|
10503
|
-
}, t),
|
|
10506
|
+
}, t), ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10504
10507
|
"aria-label": "Pantheon",
|
|
10505
10508
|
fill: "none",
|
|
10506
10509
|
focusable: "false",
|
|
@@ -10562,7 +10565,7 @@ var Er = {
|
|
|
10562
10565
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10563
10566
|
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
10567
|
fill: "var(--pds-color-foreground-default)"
|
|
10565
|
-
})),
|
|
10568
|
+
})), _a = /* @__PURE__ */ e.createElement("svg", {
|
|
10566
10569
|
"aria-label": "Pantheon",
|
|
10567
10570
|
fill: "none",
|
|
10568
10571
|
focusable: "false",
|
|
@@ -10597,7 +10600,7 @@ var Er = {
|
|
|
10597
10600
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10598
10601
|
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
10602
|
fill: "var(--pds-color-foreground-default)"
|
|
10600
|
-
})),
|
|
10603
|
+
})), va = /* @__PURE__ */ e.createElement("svg", {
|
|
10601
10604
|
"aria-label": "Pantheon",
|
|
10602
10605
|
fill: "none",
|
|
10603
10606
|
focusable: "false",
|
|
@@ -10632,17 +10635,17 @@ var Er = {
|
|
|
10632
10635
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10633
10636
|
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
10637
|
fill: "var(--pds-color-foreground-default)"
|
|
10635
|
-
})),
|
|
10638
|
+
})), ya = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10636
10639
|
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
10640
|
switch (r) {
|
|
10638
10641
|
case "full":
|
|
10639
|
-
f =
|
|
10642
|
+
f = ga;
|
|
10640
10643
|
break;
|
|
10641
10644
|
case "icon":
|
|
10642
|
-
f =
|
|
10645
|
+
f = _a;
|
|
10643
10646
|
break;
|
|
10644
10647
|
case "wordmark":
|
|
10645
|
-
f =
|
|
10648
|
+
f = va;
|
|
10646
10649
|
break;
|
|
10647
10650
|
}
|
|
10648
10651
|
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 +10662,7 @@ var Er = {
|
|
|
10659
10662
|
]),
|
|
10660
10663
|
...s
|
|
10661
10664
|
}, i ? h : f);
|
|
10662
|
-
},
|
|
10665
|
+
}, 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
10666
|
let [O, M] = h(d);
|
|
10664
10667
|
l(() => {
|
|
10665
10668
|
M(d);
|
|
@@ -10686,12 +10689,12 @@ var Er = {
|
|
|
10686
10689
|
k(V),
|
|
10687
10690
|
A(V),
|
|
10688
10691
|
L(V)
|
|
10689
|
-
]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q +
|
|
10692
|
+
]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q + xa / 2, re = te + ba, { isMounted: J } = R(V, {
|
|
10690
10693
|
initial: { transform: "scale(0)" },
|
|
10691
10694
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10692
|
-
top: `${ne}px calc(100% + ${
|
|
10695
|
+
top: `${ne}px calc(100% + ${ba}px)`,
|
|
10693
10696
|
bottom: `${ne}px -8px`,
|
|
10694
|
-
left: `calc(100% + ${
|
|
10697
|
+
left: `calc(100% + ${ba}px) ${re}px`,
|
|
10695
10698
|
right: `-8px ${re}px`
|
|
10696
10699
|
}[e] })
|
|
10697
10700
|
});
|
|
@@ -10723,23 +10726,23 @@ var Er = {
|
|
|
10723
10726
|
className: `${P}__arrow`,
|
|
10724
10727
|
context: V,
|
|
10725
10728
|
fill: "var(--pds-color-surface-default)",
|
|
10726
|
-
height:
|
|
10729
|
+
height: ba,
|
|
10727
10730
|
stroke: "var(--pds-color-popover-border)",
|
|
10728
10731
|
strokeWidth: 1,
|
|
10729
10732
|
tipRadius: 0,
|
|
10730
|
-
width:
|
|
10733
|
+
width: xa
|
|
10731
10734
|
}), /* @__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
10735
|
ariaLabel: r,
|
|
10733
10736
|
onClick: G,
|
|
10734
10737
|
size: "s"
|
|
10735
10738
|
})))))));
|
|
10736
|
-
},
|
|
10739
|
+
}, Ca = {
|
|
10737
10740
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10738
10741
|
info: "--pds-color-status-info-fill",
|
|
10739
10742
|
success: "--pds-color-status-success-fill",
|
|
10740
10743
|
warning: "--pds-color-status-warning-fill",
|
|
10741
10744
|
critical: "--pds-color-status-critical-fill"
|
|
10742
|
-
},
|
|
10745
|
+
}, wa = ({ className: t, colorBreakpoints: n = [{
|
|
10743
10746
|
colorType: "info",
|
|
10744
10747
|
percentage: 0
|
|
10745
10748
|
}, {
|
|
@@ -10760,7 +10763,7 @@ var Er = {
|
|
|
10760
10763
|
id: m
|
|
10761
10764
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10762
10765
|
className: `${h}__percentage`,
|
|
10763
|
-
style: { color: `hsl(from var(${
|
|
10766
|
+
style: { color: `hsl(from var(${Ca[y]}) h s calc(l - 7))` }
|
|
10764
10767
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10765
10768
|
"aria-labelledby": m,
|
|
10766
10769
|
"aria-valuenow": v,
|
|
@@ -10770,16 +10773,16 @@ var Er = {
|
|
|
10770
10773
|
className: `${h}__bar`,
|
|
10771
10774
|
style: {
|
|
10772
10775
|
width: `${v}%`,
|
|
10773
|
-
backgroundColor: `var(${
|
|
10776
|
+
backgroundColor: `var(${Ca[y]})`
|
|
10774
10777
|
}
|
|
10775
10778
|
}))), S && b);
|
|
10776
|
-
},
|
|
10779
|
+
}, Ta = {
|
|
10777
10780
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10778
10781
|
info: "--pds-color-status-info-fill",
|
|
10779
10782
|
success: "--pds-color-status-success-fill",
|
|
10780
10783
|
warning: "--pds-color-status-warning-fill",
|
|
10781
10784
|
critical: "--pds-color-status-critical-fill"
|
|
10782
|
-
},
|
|
10785
|
+
}, Ea = ({ className: t, colorBreakpoints: n = [{
|
|
10783
10786
|
colorType: "info",
|
|
10784
10787
|
percentage: 0
|
|
10785
10788
|
}, {
|
|
@@ -10828,7 +10831,7 @@ var Er = {
|
|
|
10828
10831
|
strokeDasharray: x,
|
|
10829
10832
|
strokeDashoffset: S,
|
|
10830
10833
|
strokeWidth: y,
|
|
10831
|
-
style: { stroke: `var(${
|
|
10834
|
+
style: { stroke: `var(${Ta[C]})` },
|
|
10832
10835
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10833
10836
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10834
10837
|
alignmentBaseline: "middle",
|
|
@@ -10838,29 +10841,29 @@ var Er = {
|
|
|
10838
10841
|
x: "50%",
|
|
10839
10842
|
y: "51%"
|
|
10840
10843
|
}, w))));
|
|
10841
|
-
},
|
|
10844
|
+
}, Da = {
|
|
10842
10845
|
of: "of",
|
|
10843
10846
|
showing: "Showing",
|
|
10844
10847
|
unitPlural: "results",
|
|
10845
10848
|
unitSingular: "result"
|
|
10846
|
-
},
|
|
10849
|
+
}, 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
10850
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
10848
|
-
...
|
|
10851
|
+
...Da,
|
|
10849
10852
|
...i
|
|
10850
|
-
}, p = n !== void 0, m =
|
|
10853
|
+
}, p = n !== void 0, m = Oa(r, f, d, a);
|
|
10851
10854
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10852
10855
|
"aria-live": "polite",
|
|
10853
10856
|
className: Z([s, t ?? ""]),
|
|
10854
10857
|
...o
|
|
10855
10858
|
}, /* @__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
|
-
},
|
|
10859
|
+
}, Aa = {
|
|
10857
10860
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
10858
10861
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
10859
10862
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
10860
10863
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
10861
10864
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
10862
10865
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
10863
|
-
},
|
|
10866
|
+
}, ja = (e) => typeof e == "string", Ma = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10864
10867
|
"privacy",
|
|
10865
10868
|
"dataSubjectRequest",
|
|
10866
10869
|
"cookiePolicy",
|
|
@@ -10877,8 +10880,8 @@ var Er = {
|
|
|
10877
10880
|
r ?? ""
|
|
10878
10881
|
]),
|
|
10879
10882
|
...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
|
-
},
|
|
10883
|
+
}, /* @__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)))));
|
|
10884
|
+
}, Na = ({ className: t, option: n, ...r }) => {
|
|
10882
10885
|
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
10886
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10884
10887
|
let d = /* @__PURE__ */ e.createElement(rn, {
|
|
@@ -10901,7 +10904,7 @@ var Er = {
|
|
|
10901
10904
|
className: `${i}__status`,
|
|
10902
10905
|
style: { pointerEvents: "none" }
|
|
10903
10906
|
}, d));
|
|
10904
|
-
},
|
|
10907
|
+
}, Pa = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10905
10908
|
clearButton: "Clear input text",
|
|
10906
10909
|
inputInstructions: "Type to search options"
|
|
10907
10910
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10913,7 +10916,7 @@ var Er = {
|
|
|
10913
10916
|
id: n,
|
|
10914
10917
|
label: i,
|
|
10915
10918
|
value: r ?? i,
|
|
10916
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10919
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Na, { option: t }),
|
|
10917
10920
|
siteData: t
|
|
10918
10921
|
};
|
|
10919
10922
|
});
|
|
@@ -10921,7 +10924,7 @@ var Er = {
|
|
|
10921
10924
|
className: Z([_, t ?? ""]),
|
|
10922
10925
|
id: r,
|
|
10923
10926
|
...p
|
|
10924
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
10927
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(Vr, {
|
|
10925
10928
|
hasClearButton: !0,
|
|
10926
10929
|
hasSearchShortcut: !0,
|
|
10927
10930
|
className: `${_}__combobox`,
|
|
@@ -10942,7 +10945,7 @@ var Er = {
|
|
|
10942
10945
|
};
|
|
10943
10946
|
//#endregion
|
|
10944
10947
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10945
|
-
function
|
|
10948
|
+
function Fa(e, t, n = null, r = 0, i = []) {
|
|
10946
10949
|
return e.reduce((e, a, o) => {
|
|
10947
10950
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10948
10951
|
return e.push({
|
|
@@ -10954,10 +10957,10 @@ function Pa(e, t, n = null, r = 0, i = []) {
|
|
|
10954
10957
|
index: o,
|
|
10955
10958
|
isExpanded: c,
|
|
10956
10959
|
parentId: n
|
|
10957
|
-
}), s && c && a.children && e.push(...
|
|
10960
|
+
}), s && c && a.children && e.push(...Fa(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10958
10961
|
}, []);
|
|
10959
10962
|
}
|
|
10960
|
-
function
|
|
10963
|
+
function Ia(e) {
|
|
10961
10964
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10962
10965
|
for (let i of e) {
|
|
10963
10966
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10970,28 +10973,28 @@ function Fa(e) {
|
|
|
10970
10973
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10971
10974
|
}
|
|
10972
10975
|
}
|
|
10973
|
-
return
|
|
10976
|
+
return La(r);
|
|
10974
10977
|
}
|
|
10975
|
-
function
|
|
10978
|
+
function La(e) {
|
|
10976
10979
|
return e.map((e) => {
|
|
10977
10980
|
if (e.children?.length) return {
|
|
10978
10981
|
...e,
|
|
10979
|
-
children:
|
|
10982
|
+
children: La(e.children)
|
|
10980
10983
|
};
|
|
10981
10984
|
let { children: t, ...n } = e;
|
|
10982
10985
|
return n;
|
|
10983
10986
|
});
|
|
10984
10987
|
}
|
|
10985
|
-
function
|
|
10988
|
+
function Ra(e, t) {
|
|
10986
10989
|
for (let n of e) {
|
|
10987
10990
|
if (n.id === t) return n;
|
|
10988
10991
|
if (n.children) {
|
|
10989
|
-
let e =
|
|
10992
|
+
let e = Ra(n.children, t);
|
|
10990
10993
|
if (e) return e;
|
|
10991
10994
|
}
|
|
10992
10995
|
}
|
|
10993
10996
|
}
|
|
10994
|
-
function
|
|
10997
|
+
function za(e, t, n, r, i, a, o) {
|
|
10995
10998
|
let s = e.findIndex((e) => e.id === n);
|
|
10996
10999
|
if (s === -1) return 0;
|
|
10997
11000
|
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 +11002,7 @@ function Ra(e, t, n, r, i, a, o) {
|
|
|
10999
11002
|
}
|
|
11000
11003
|
//#endregion
|
|
11001
11004
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11002
|
-
var
|
|
11005
|
+
var Ba = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11003
11006
|
if (!r && !t) return null;
|
|
11004
11007
|
let a = r ? {
|
|
11005
11008
|
display: "grid",
|
|
@@ -11020,13 +11023,13 @@ var za = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11020
11023
|
};
|
|
11021
11024
|
//#endregion
|
|
11022
11025
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11023
|
-
function
|
|
11026
|
+
function Va({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11024
11027
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
11025
11028
|
t && !d.current && (u.current = {
|
|
11026
11029
|
items: i ? n : a,
|
|
11027
11030
|
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(() =>
|
|
11031
|
+
}), 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.");
|
|
11032
|
+
let f = i ? n : a, g = p(() => Fa(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
11030
11033
|
l((t) => {
|
|
11031
11034
|
let n = new Set(t);
|
|
11032
11035
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11044,7 +11047,7 @@ function Ba({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11044
11047
|
}, []),
|
|
11045
11048
|
flatNodes: g,
|
|
11046
11049
|
handleReorder: s((e) => {
|
|
11047
|
-
let t =
|
|
11050
|
+
let t = Ia(e);
|
|
11048
11051
|
i || o(t), r?.(t);
|
|
11049
11052
|
}, [i, r]),
|
|
11050
11053
|
resetToSnapshot: s(() => {
|
|
@@ -11056,24 +11059,24 @@ function Ba({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11056
11059
|
toggleExpand: v
|
|
11057
11060
|
};
|
|
11058
11061
|
}
|
|
11059
|
-
var
|
|
11060
|
-
function
|
|
11061
|
-
|
|
11062
|
+
var Ha = /* @__PURE__ */ new Set();
|
|
11063
|
+
function Ua(e) {
|
|
11064
|
+
Ha.has(e) || (Ha.add(e), console.warn(e));
|
|
11062
11065
|
}
|
|
11063
11066
|
//#endregion
|
|
11064
11067
|
//#region src/components/SortableList/SortableList.tsx
|
|
11065
|
-
var
|
|
11068
|
+
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
11069
|
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
11070
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11068
11071
|
e.preventDefault();
|
|
11069
11072
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11070
11073
|
return B.current = i, z(i), {
|
|
11071
|
-
x: t.currentCoordinates.x + a *
|
|
11074
|
+
x: t.currentCoordinates.x + a * Wa,
|
|
11072
11075
|
y: t.currentCoordinates.y
|
|
11073
11076
|
};
|
|
11074
11077
|
}
|
|
11075
11078
|
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 } =
|
|
11079
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: ee, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } = Va({
|
|
11077
11080
|
defaultItems: a,
|
|
11078
11081
|
isDragEnabled: G,
|
|
11079
11082
|
items: g,
|
|
@@ -11100,9 +11103,9 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11100
11103
|
X,
|
|
11101
11104
|
Y,
|
|
11102
11105
|
j
|
|
11103
|
-
]).size > 0, le = p(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = p(() => T ?
|
|
11106
|
+
]).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
11107
|
let e = le?.depth ?? 0;
|
|
11105
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11108
|
+
return !T || !j || O || _ === 0 ? e : za(q, String(T), String(j), V * Wa, Wa, _);
|
|
11106
11109
|
}, [
|
|
11107
11110
|
T,
|
|
11108
11111
|
le,
|
|
@@ -11114,7 +11117,7 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11114
11117
|
]), fe = p(() => {
|
|
11115
11118
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
11116
11119
|
let e = q.findIndex((e) => e.id === T);
|
|
11117
|
-
return e === -1 ? null :
|
|
11120
|
+
return e === -1 ? null : qa(q, e, de);
|
|
11118
11121
|
}, [
|
|
11119
11122
|
T,
|
|
11120
11123
|
q,
|
|
@@ -11160,19 +11163,19 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11160
11163
|
}, [q, Y]), ge = s((e) => {
|
|
11161
11164
|
let t = e.delta.x;
|
|
11162
11165
|
if (P.current = t, A.current || _ === 0) return;
|
|
11163
|
-
let n = Math.floor(t /
|
|
11164
|
-
(n > r || n < r && t < r *
|
|
11166
|
+
let n = Math.floor(t / Wa), r = U.current;
|
|
11167
|
+
(n > r || n < r && t < r * Wa - Wa * .4) && (U.current = n, H(n));
|
|
11165
11168
|
}, [_]), _e = s((e) => {
|
|
11166
11169
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11167
11170
|
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 *
|
|
11171
|
+
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
11172
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
11170
11173
|
if (o === -1) return;
|
|
11171
11174
|
let e = q[o];
|
|
11172
11175
|
if (!e) return;
|
|
11173
|
-
let n =
|
|
11176
|
+
let n = za(q, String(t.id), String(t.id), s, Wa, _);
|
|
11174
11177
|
if (n === e.depth) return;
|
|
11175
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
11178
|
+
let r = [...q], [i] = r.splice(o, 1), a = qa(r, o, n);
|
|
11176
11179
|
if (a && oe.has(a)) return;
|
|
11177
11180
|
let c = {
|
|
11178
11181
|
...i,
|
|
@@ -11194,9 +11197,9 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11194
11197
|
let e = q[u];
|
|
11195
11198
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11196
11199
|
} else {
|
|
11197
|
-
g =
|
|
11200
|
+
g = za(d, String(t.id), String(l), s, Wa, _, p.depth);
|
|
11198
11201
|
let e = d[h];
|
|
11199
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11202
|
+
v = e && e.depth === g - 1 ? String(l) : qa(d, h, g);
|
|
11200
11203
|
}
|
|
11201
11204
|
if (v && oe.has(v)) return;
|
|
11202
11205
|
let y = {
|
|
@@ -11219,24 +11222,24 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11219
11222
|
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
11223
|
}, [ee]), ye = p(() => ({
|
|
11221
11224
|
onDragStart({ active: e }) {
|
|
11222
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
11225
|
+
let t = q.find((t) => t.id === e.id), n = Ra(K, String(e.id));
|
|
11223
11226
|
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
11227
|
},
|
|
11225
11228
|
onDragOver({ active: e, over: t }) {
|
|
11226
11229
|
if (!t) return;
|
|
11227
11230
|
let n = q.findIndex((e) => e.id === t.id);
|
|
11228
11231
|
if (n === -1) return;
|
|
11229
|
-
let r =
|
|
11232
|
+
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
11233
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
11231
11234
|
},
|
|
11232
11235
|
onDragEnd({ active: e, over: t }) {
|
|
11233
|
-
let n =
|
|
11236
|
+
let n = Ra(K, String(e.id)), r = n ? c(n) : String(e.id);
|
|
11234
11237
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11235
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
11238
|
+
let i = q.findIndex((e) => e.id === t.id), a = za(q, String(e.id), String(t.id), P.current, Wa, _);
|
|
11236
11239
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
11237
11240
|
},
|
|
11238
11241
|
onDragCancel({ active: e }) {
|
|
11239
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
11242
|
+
let t = q.find((t) => t.id === e.id), n = Ra(K, String(e.id));
|
|
11240
11243
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
11241
11244
|
}
|
|
11242
11245
|
}), [
|
|
@@ -11244,14 +11247,14 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11244
11247
|
q,
|
|
11245
11248
|
c,
|
|
11246
11249
|
_
|
|
11247
|
-
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type ===
|
|
11250
|
+
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === Ba ? e.cloneElement(t, be) : t);
|
|
11248
11251
|
return /* @__PURE__ */ e.createElement(Oe, {
|
|
11249
11252
|
accessibility: {
|
|
11250
11253
|
announcements: ye,
|
|
11251
11254
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11252
11255
|
},
|
|
11253
11256
|
collisionDetection: me,
|
|
11254
|
-
measuring:
|
|
11257
|
+
measuring: Ga,
|
|
11255
11258
|
onDragCancel: ve,
|
|
11256
11259
|
onDragEnd: _e,
|
|
11257
11260
|
onDragMove: ge,
|
|
@@ -11326,14 +11329,14 @@ var Ua = 24, Wa = { droppable: { strategy: je.Always } }, Ga = a(function({ chil
|
|
|
11326
11329
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
11327
11330
|
})()) : null));
|
|
11328
11331
|
});
|
|
11329
|
-
function
|
|
11332
|
+
function qa(e, t, n) {
|
|
11330
11333
|
if (n === 0) return null;
|
|
11331
11334
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11332
11335
|
return null;
|
|
11333
11336
|
}
|
|
11334
11337
|
//#endregion
|
|
11335
11338
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11336
|
-
var
|
|
11339
|
+
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
11340
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
|
|
11338
11341
|
attributes: {
|
|
11339
11342
|
role: "listitem",
|
|
@@ -11388,11 +11391,11 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11388
11391
|
key: t.id,
|
|
11389
11392
|
className: `${w}__cell`
|
|
11390
11393
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11391
|
-
},
|
|
11394
|
+
}, Ya = [
|
|
11392
11395
|
"default",
|
|
11393
11396
|
"working",
|
|
11394
11397
|
"checked"
|
|
11395
|
-
],
|
|
11398
|
+
], Xa = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11396
11399
|
let l = {
|
|
11397
11400
|
checkForUpdates: "Check for updates",
|
|
11398
11401
|
checking: "Checking...",
|
|
@@ -11439,7 +11442,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11439
11442
|
triggerIconColor: "default",
|
|
11440
11443
|
triggerIconSize: "s"
|
|
11441
11444
|
}), t === "left" && g));
|
|
11442
|
-
},
|
|
11445
|
+
}, Za = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11443
11446
|
let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
|
|
11444
11447
|
className: `${s}__spinner`,
|
|
11445
11448
|
size: "m"
|
|
@@ -11456,7 +11459,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11456
11459
|
]),
|
|
11457
11460
|
...a
|
|
11458
11461
|
}, r ? d : l);
|
|
11459
|
-
},
|
|
11462
|
+
}, Qa = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11460
11463
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11461
11464
|
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
11465
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11474,7 +11477,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11474
11477
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11475
11478
|
...a
|
|
11476
11479
|
}, l);
|
|
11477
|
-
},
|
|
11480
|
+
}, $a = ({ className: t, steps: n, translatableLabels: r = {
|
|
11478
11481
|
step: "Step",
|
|
11479
11482
|
completed: "completed",
|
|
11480
11483
|
hasError: "has an error",
|
|
@@ -11538,7 +11541,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11538
11541
|
key: t.id,
|
|
11539
11542
|
className: `${o}__step`,
|
|
11540
11543
|
id: `${t.id}--mobile`
|
|
11541
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11544
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ea, {
|
|
11542
11545
|
innerLabel: n,
|
|
11543
11546
|
label: "Step progress",
|
|
11544
11547
|
percentage: i,
|
|
@@ -11563,7 +11566,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11563
11566
|
"data-steps": d,
|
|
11564
11567
|
...i
|
|
11565
11568
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11566
|
-
},
|
|
11569
|
+
}, eo = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11567
11570
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11568
11571
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11569
11572
|
className: Z([...p]),
|
|
@@ -11589,14 +11592,14 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11589
11592
|
size: "s",
|
|
11590
11593
|
variant: "highlight"
|
|
11591
11594
|
})))));
|
|
11592
|
-
},
|
|
11595
|
+
}, to = ({ className: t, labelStrings: n = {
|
|
11593
11596
|
step: "Step",
|
|
11594
11597
|
completed: "completed",
|
|
11595
11598
|
hasError: "has an error"
|
|
11596
11599
|
}, steps: r, ...i }) => {
|
|
11597
11600
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11598
11601
|
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(
|
|
11602
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(eo, {
|
|
11600
11603
|
key: `s${i}`,
|
|
11601
11604
|
_isFirstStep: c,
|
|
11602
11605
|
"aria-current": a ? "step" : null,
|
|
@@ -11617,7 +11620,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11617
11620
|
className: Z([a, t ?? ""]),
|
|
11618
11621
|
...i
|
|
11619
11622
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11620
|
-
},
|
|
11623
|
+
}, 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
11624
|
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
11625
|
key: a ?? "",
|
|
11623
11626
|
order: a === void 0 ? "asc" : o
|
|
@@ -11707,19 +11710,19 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11707
11710
|
}, Ke = () => {
|
|
11708
11711
|
let e = new Set(Ee);
|
|
11709
11712
|
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(
|
|
11713
|
+
}, qe = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(mr, {
|
|
11711
11714
|
shape: "rounded",
|
|
11712
11715
|
size: {
|
|
11713
11716
|
height: 1,
|
|
11714
11717
|
width: 1
|
|
11715
11718
|
}
|
|
11716
|
-
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(
|
|
11719
|
+
})), r.map((n) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${t}-${n.id}` }, /* @__PURE__ */ e.createElement(mr, {
|
|
11717
11720
|
shape: "rounded",
|
|
11718
11721
|
size: { height: 1 }
|
|
11719
11722
|
})))), Je = () => /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
11720
11723
|
className: "pds-table__empty-cell",
|
|
11721
11724
|
colSpan: r.length + +!!Se
|
|
11722
|
-
}, f ?? /* @__PURE__ */ e.createElement(
|
|
11725
|
+
}, f ?? /* @__PURE__ */ e.createElement(Qn, {
|
|
11723
11726
|
heading: g,
|
|
11724
11727
|
iconName: "emptySet",
|
|
11725
11728
|
message: _
|
|
@@ -11738,7 +11741,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11738
11741
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), je(t, i));
|
|
11739
11742
|
} : void 0,
|
|
11740
11743
|
tabIndex: a ? 0 : void 0
|
|
11741
|
-
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11744
|
+
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Rr, {
|
|
11742
11745
|
checked: Ee.has(i),
|
|
11743
11746
|
disabled: !s,
|
|
11744
11747
|
id: `${ae}-row-${i}`,
|
|
@@ -11760,7 +11763,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11760
11763
|
"aria-busy": E,
|
|
11761
11764
|
className: Z([J, t]),
|
|
11762
11765
|
...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(
|
|
11766
|
+
}, /* @__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
11767
|
checked: Ue,
|
|
11765
11768
|
id: ae,
|
|
11766
11769
|
indeterminate: We,
|
|
@@ -11784,7 +11787,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11784
11787
|
})), /* @__PURE__ */ e.createElement("span", { className: Z([`${J}__sort-button-bottom`, Ve(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
|
|
11785
11788
|
iconName: "caretDown",
|
|
11786
11789
|
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(
|
|
11790
|
+
})))) : /* @__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
11791
|
autoWidth: !0,
|
|
11789
11792
|
id: ie,
|
|
11790
11793
|
label: z,
|
|
@@ -11796,7 +11799,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11796
11799
|
showLabel: !1,
|
|
11797
11800
|
size: "s",
|
|
11798
11801
|
value: String(be)
|
|
11799
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11802
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(la, {
|
|
11800
11803
|
currentPage: X ? i ?? 1 : fe,
|
|
11801
11804
|
itemsPerPage: be,
|
|
11802
11805
|
labelStrings: B,
|
|
@@ -11837,8 +11840,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11837
11840
|
size: "s",
|
|
11838
11841
|
variant: "standard"
|
|
11839
11842
|
}))))));
|
|
11840
|
-
return V ? /* @__PURE__ */ e.createElement(
|
|
11841
|
-
},
|
|
11843
|
+
return V ? /* @__PURE__ */ e.createElement(fa, { padding: "none" }, Ze) : Ze;
|
|
11844
|
+
}, ro = [
|
|
11842
11845
|
" ",
|
|
11843
11846
|
"/",
|
|
11844
11847
|
".",
|
|
@@ -11856,7 +11859,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11856
11859
|
"=",
|
|
11857
11860
|
"|",
|
|
11858
11861
|
"~"
|
|
11859
|
-
],
|
|
11862
|
+
], io = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ao = (e) => {
|
|
11860
11863
|
let t = [];
|
|
11861
11864
|
return e.forEach((e) => {
|
|
11862
11865
|
let { id: n, innerText: r } = e;
|
|
@@ -11869,18 +11872,18 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11869
11872
|
title: r
|
|
11870
11873
|
});
|
|
11871
11874
|
}), t;
|
|
11872
|
-
},
|
|
11875
|
+
}, oo = (e, t, n) => {
|
|
11873
11876
|
let [r, i] = h([]);
|
|
11874
11877
|
return l(() => {
|
|
11875
11878
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11876
11879
|
let e = Array.from(document.querySelectorAll(r));
|
|
11877
11880
|
e.forEach((e) => {
|
|
11878
|
-
|
|
11879
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11881
|
+
ro.forEach((t) => {
|
|
11882
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(io(t), "g"), "-"));
|
|
11880
11883
|
});
|
|
11881
11884
|
}), e.forEach((e, t) => {
|
|
11882
11885
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11883
|
-
}), i(
|
|
11886
|
+
}), i(ao(e));
|
|
11884
11887
|
};
|
|
11885
11888
|
a();
|
|
11886
11889
|
let o = document.getElementById(e);
|
|
@@ -11896,7 +11899,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11896
11899
|
t,
|
|
11897
11900
|
n
|
|
11898
11901
|
]), { nestedHeadings: r };
|
|
11899
|
-
},
|
|
11902
|
+
}, so = (e, t) => {
|
|
11900
11903
|
let [n, r] = h(void 0), i = m({});
|
|
11901
11904
|
return l(() => {
|
|
11902
11905
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11915,7 +11918,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11915
11918
|
o.disconnect(), r(void 0);
|
|
11916
11919
|
};
|
|
11917
11920
|
}, [e, t]), n;
|
|
11918
|
-
},
|
|
11921
|
+
}, 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
11922
|
key: r.id,
|
|
11920
11923
|
className: `${n}__list-item`
|
|
11921
11924
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11931,8 +11934,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11931
11934
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11932
11935
|
href: `#${r.id}`,
|
|
11933
11936
|
onClick: (e) => i(e, r.id)
|
|
11934
|
-
}, r.title))))))),
|
|
11935
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11937
|
+
}, 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 }) => {
|
|
11938
|
+
let d = "pds-toc", { nestedHeadings: f } = oo(c, o, u()), p = so(c, o), m = (e) => {
|
|
11936
11939
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11937
11940
|
}, h = (e) => {
|
|
11938
11941
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11950,13 +11953,13 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11950
11953
|
baseClass: d,
|
|
11951
11954
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11952
11955
|
level: i
|
|
11953
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11956
|
+
}, a), /* @__PURE__ */ e.createElement(co, {
|
|
11954
11957
|
activeID: p,
|
|
11955
11958
|
baseClass: d,
|
|
11956
11959
|
headings: f,
|
|
11957
11960
|
onLinkClick: g
|
|
11958
11961
|
}));
|
|
11959
|
-
},
|
|
11962
|
+
}, uo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11960
11963
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11961
11964
|
l(() => {
|
|
11962
11965
|
a !== void 0 && d(a);
|
|
@@ -12070,7 +12073,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12070
12073
|
className: `${c}__panel-content`,
|
|
12071
12074
|
hidden: o !== u
|
|
12072
12075
|
}, r)))));
|
|
12073
|
-
},
|
|
12076
|
+
}, fo = [
|
|
12074
12077
|
"orange",
|
|
12075
12078
|
"stone",
|
|
12076
12079
|
"gold",
|
|
@@ -12084,7 +12087,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12084
12087
|
"magenta",
|
|
12085
12088
|
"rose",
|
|
12086
12089
|
"red"
|
|
12087
|
-
],
|
|
12090
|
+
], po = [
|
|
12088
12091
|
"orange-solid",
|
|
12089
12092
|
"teal-solid",
|
|
12090
12093
|
"indigo-solid",
|
|
@@ -12094,14 +12097,14 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12094
12097
|
"lime-solid",
|
|
12095
12098
|
"sky-solid",
|
|
12096
12099
|
"slate-solid"
|
|
12097
|
-
],
|
|
12100
|
+
], mo = [
|
|
12098
12101
|
"success-solid",
|
|
12099
12102
|
"warning-solid",
|
|
12100
12103
|
"critical-solid",
|
|
12101
12104
|
"info-solid",
|
|
12102
12105
|
"discovery-solid"
|
|
12103
|
-
],
|
|
12104
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
12106
|
+
], 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 }) => {
|
|
12107
|
+
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
12108
|
p((e) => !e);
|
|
12106
12109
|
}, b, x, S;
|
|
12107
12110
|
if (r && !n && o(r)) {
|
|
@@ -12123,7 +12126,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12123
12126
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12124
12127
|
className: `${m}__label`,
|
|
12125
12128
|
title: l
|
|
12126
|
-
}, u > 0 ?
|
|
12129
|
+
}, u > 0 ? vo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12127
12130
|
"aria-label": `${a}: ${l}`,
|
|
12128
12131
|
className: `${m}__remove`,
|
|
12129
12132
|
onClick: () => {
|
|
@@ -12135,7 +12138,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12135
12138
|
iconName: "xmark",
|
|
12136
12139
|
size: "m"
|
|
12137
12140
|
})) : null);
|
|
12138
|
-
},
|
|
12141
|
+
}, bo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12139
12142
|
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
12143
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12141
12144
|
className: Z([
|
|
@@ -12146,7 +12149,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12146
12149
|
]),
|
|
12147
12150
|
...a
|
|
12148
12151
|
}, /* @__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
|
-
},
|
|
12152
|
+
}, xo = () => {
|
|
12150
12153
|
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
12154
|
return l(() => {
|
|
12152
12155
|
if (!e) return;
|
|
@@ -12157,7 +12160,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12157
12160
|
window.removeEventListener("resize", n);
|
|
12158
12161
|
};
|
|
12159
12162
|
}, []), n;
|
|
12160
|
-
},
|
|
12163
|
+
}, 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
12164
|
let [j, M] = h(u || !1);
|
|
12162
12165
|
l(() => {
|
|
12163
12166
|
M(u || !1);
|
|
@@ -12179,7 +12182,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12179
12182
|
return;
|
|
12180
12183
|
}
|
|
12181
12184
|
M(!j);
|
|
12182
|
-
}, U =
|
|
12185
|
+
}, U = xo();
|
|
12183
12186
|
l(() => {
|
|
12184
12187
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12185
12188
|
}, [U]);
|
|
@@ -12271,10 +12274,10 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12271
12274
|
n ?? ""
|
|
12272
12275
|
]),
|
|
12273
12276
|
...A
|
|
12274
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12277
|
+
}, /* @__PURE__ */ e.createElement(ui, {
|
|
12275
12278
|
destination: I,
|
|
12276
12279
|
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(
|
|
12280
|
+
}), 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
12281
|
...a,
|
|
12279
12282
|
isOpen: c,
|
|
12280
12283
|
placement: "left",
|
|
@@ -12282,7 +12285,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12282
12285
|
!e && c && b && b();
|
|
12283
12286
|
}
|
|
12284
12287
|
}, r));
|
|
12285
|
-
},
|
|
12288
|
+
}, Co = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12286
12289
|
let c = "pds-docs-layout", l = {
|
|
12287
12290
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12288
12291
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12300,7 +12303,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12300
12303
|
},
|
|
12301
12304
|
...s
|
|
12302
12305
|
}, 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
|
-
},
|
|
12306
|
+
}, 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
12307
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
|
|
12305
12308
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12306
12309
|
className: Z([u, n ?? ""]),
|
|
@@ -12314,8 +12317,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12314
12317
|
},
|
|
12315
12318
|
...l
|
|
12316
12319
|
}, /* @__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(
|
|
12320
|
+
}, To = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12321
|
+
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
12322
|
className: Z([
|
|
12320
12323
|
l,
|
|
12321
12324
|
u,
|
|
@@ -12324,8 +12327,8 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12324
12327
|
width: "wide",
|
|
12325
12328
|
...a
|
|
12326
12329
|
}, 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
|
-
},
|
|
12330
|
+
return i ? /* @__PURE__ */ e.createElement(fa, null, d) : d;
|
|
12331
|
+
}, Eo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12329
12332
|
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
12333
|
l["first-item"],
|
|
12331
12334
|
l["second-item"],
|
|
@@ -12343,7 +12346,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12343
12346
|
key: n,
|
|
12344
12347
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12345
12348
|
}, t)));
|
|
12346
|
-
},
|
|
12349
|
+
}, Do = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12347
12350
|
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
12351
|
switch (i) {
|
|
12349
12352
|
case "equal":
|
|
@@ -12364,7 +12367,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12364
12367
|
]),
|
|
12365
12368
|
...o
|
|
12366
12369
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12367
|
-
},
|
|
12370
|
+
}, 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
12371
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12369
12372
|
"--pds-flex-align-content": t,
|
|
12370
12373
|
"--pds-flex-align-items": n,
|
|
@@ -12390,7 +12393,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12390
12393
|
},
|
|
12391
12394
|
...g
|
|
12392
12395
|
}, r);
|
|
12393
|
-
},
|
|
12396
|
+
}, ko = (e) => {
|
|
12394
12397
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12395
12398
|
return l(() => {
|
|
12396
12399
|
if (!t) return;
|
|
@@ -12399,20 +12402,20 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12399
12402
|
};
|
|
12400
12403
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12401
12404
|
}, [e]), n;
|
|
12402
|
-
},
|
|
12405
|
+
}, Ao = [
|
|
12403
12406
|
"light",
|
|
12404
12407
|
"dark",
|
|
12405
12408
|
"system"
|
|
12406
|
-
],
|
|
12409
|
+
], jo = (e) => typeof e == "string" && Ao.includes(e), Mo = r(null), No = {
|
|
12407
12410
|
resolvedTheme: "light",
|
|
12408
12411
|
setTheme: () => {},
|
|
12409
12412
|
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 =
|
|
12413
|
+
}, 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 }) => {
|
|
12414
|
+
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
12415
|
l(() => {
|
|
12413
12416
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12414
12417
|
let e = window.localStorage.getItem(c);
|
|
12415
|
-
|
|
12418
|
+
jo(e) && m(e);
|
|
12416
12419
|
} catch {}
|
|
12417
12420
|
}, []), l(() => {
|
|
12418
12421
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12432,20 +12435,20 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12432
12435
|
]),
|
|
12433
12436
|
theme: v
|
|
12434
12437
|
};
|
|
12435
|
-
return /* @__PURE__ */ e.createElement(
|
|
12438
|
+
return /* @__PURE__ */ e.createElement(Mo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Po({
|
|
12436
12439
|
defaultTheme: n,
|
|
12437
12440
|
storageKey: c
|
|
12438
12441
|
}) } }), t);
|
|
12439
|
-
},
|
|
12442
|
+
}, Io = () => c(Mo) ?? No, Lo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12440
12443
|
l(() => {
|
|
12441
12444
|
let e = document.documentElement, t = () => {
|
|
12442
12445
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12443
12446
|
};
|
|
12444
12447
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12445
12448
|
}, [r]);
|
|
12446
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12449
|
+
let a = n ? /* @__PURE__ */ e.createElement(Fo, i, t) : t;
|
|
12447
12450
|
return /* @__PURE__ */ e.createElement(It, null, a);
|
|
12448
|
-
},
|
|
12451
|
+
}, Ro = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12449
12452
|
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
12453
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12451
12454
|
className: Z([
|
|
@@ -12459,7 +12462,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12459
12462
|
]),
|
|
12460
12463
|
...c
|
|
12461
12464
|
}, n);
|
|
12462
|
-
},
|
|
12465
|
+
}, zo = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12463
12466
|
let f = "pds-grid-item", p = [
|
|
12464
12467
|
l ? `${f}--sm-${l}` : null,
|
|
12465
12468
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12478,7 +12481,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12478
12481
|
]),
|
|
12479
12482
|
...d
|
|
12480
12483
|
}, t);
|
|
12481
|
-
},
|
|
12484
|
+
}, Bo = (e, t, n) => {
|
|
12482
12485
|
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
12486
|
r,
|
|
12484
12487
|
i,
|
|
@@ -12502,7 +12505,7 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12502
12505
|
m,
|
|
12503
12506
|
a
|
|
12504
12507
|
]), u;
|
|
12505
|
-
},
|
|
12508
|
+
}, Vo = () => {
|
|
12506
12509
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12507
12510
|
return l(() => {
|
|
12508
12511
|
if (!e) return;
|
|
@@ -12516,6 +12519,6 @@ var qa = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12516
12519
|
}, []), t;
|
|
12517
12520
|
};
|
|
12518
12521
|
//#endregion
|
|
12519
|
-
export { Jn as ActionCard,
|
|
12522
|
+
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
12523
|
|
|
12521
12524
|
//# sourceMappingURL=index.js.map
|