@pantheon-systems/pds-toolkit-react 2.0.0-alpha.23 → 2.0.0-alpha.24
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/Table/Table.d.ts +6 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +343 -339
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{Skiplink → links/Skiplink}/Skiplink.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e, { Children as E1, isValidElement as
|
|
1
|
+
import e, { Children as E1, isValidElement as we, useState as q, cloneElement as Ne, createElement as $1, useContext as K2, useCallback as ye, useEffect as ae, createContext as Y2, forwardRef as Te, useRef as de, useMemo as Me, useId as O2 } from "react";
|
|
2
2
|
import w1 from "hash-sum";
|
|
3
3
|
import { useFloating as ke, autoUpdate as Ie, offset as xe, flip as Re, shift as s2, useHover as U2, useFocus as r4, useDismiss as Oe, useRole as l2, useInteractions as Ze, FloatingPortal as L1, useId as o4, useClick as u2, safePolygon as y1, useListNavigation as z1, useTypeahead as i4, useTransitionStyles as Ke, size as v2, FloatingOverlay as d4, FloatingFocusManager as N1, arrow as m4, FloatingArrow as u4 } from "@floating-ui/react";
|
|
4
4
|
import { ResponsiveContainer as M1, BarChart as p4, CartesianGrid as k1, XAxis as x1, YAxis as D1, Tooltip as P1, Bar as h4, LineChart as g4, Line as f4, ReferenceLine as n1 } from "recharts";
|
|
@@ -11,7 +11,7 @@ import { ToastContainer as v4, Slide as _4, toast as Z2, cssTransition as b4 } f
|
|
|
11
11
|
import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13), Fe = (a) => {
|
|
12
12
|
const l = {}, t = [];
|
|
13
13
|
return E1.forEach(a, (c) => {
|
|
14
|
-
if (
|
|
14
|
+
if (we(c)) {
|
|
15
15
|
const n = c.props.slot;
|
|
16
16
|
n ? l[n] ? l[n].push(c) : l[n] = [c] : t.push(c);
|
|
17
17
|
} else
|
|
@@ -1834,7 +1834,7 @@ import './index.css';const Ye = () => Math.random().toString(32).substring(2, 13
|
|
|
1834
1834
|
onLoad: () => p(!1),
|
|
1835
1835
|
src: `${c}`
|
|
1836
1836
|
}
|
|
1837
|
-
) : /* @__PURE__ */ e.createElement("span", { style: b }, t && /* @__PURE__ */ e.createElement(F, { className: `${i}__user-icon`, iconName: "user" })), E = /* @__PURE__ */ e.createElement("span", { className: `${i}__content` }, v), g = n &&
|
|
1837
|
+
) : /* @__PURE__ */ e.createElement("span", { style: b }, t && /* @__PURE__ */ e.createElement(F, { className: `${i}__user-icon`, iconName: "user" })), E = /* @__PURE__ */ e.createElement("span", { className: `${i}__content` }, v), g = n && we(n) ? Ne(
|
|
1838
1838
|
n,
|
|
1839
1839
|
Object.assign({}, n.props, {
|
|
1840
1840
|
className: `${i}__content ${i}__content--link`,
|
|
@@ -1944,7 +1944,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
1944
1944
|
SPACING_7XL: S1,
|
|
1945
1945
|
SPACING_8XL: D4,
|
|
1946
1946
|
SPACING_9XL: x4
|
|
1947
|
-
},
|
|
1947
|
+
}, Le = ({
|
|
1948
1948
|
className: a,
|
|
1949
1949
|
content: l,
|
|
1950
1950
|
customTrigger: t = null,
|
|
@@ -2049,7 +2049,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2049
2049
|
...d
|
|
2050
2050
|
},
|
|
2051
2051
|
/* @__PURE__ */ e.createElement(
|
|
2052
|
-
|
|
2052
|
+
Le,
|
|
2053
2053
|
{
|
|
2054
2054
|
content: g,
|
|
2055
2055
|
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -2106,7 +2106,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2106
2106
|
}, N2 = (a) => {
|
|
2107
2107
|
if (typeof a == "string" || typeof a == "number")
|
|
2108
2108
|
return String(a);
|
|
2109
|
-
if (
|
|
2109
|
+
if (we(a)) {
|
|
2110
2110
|
const l = a.props;
|
|
2111
2111
|
return E1.toArray(l.children).map(N2).join("");
|
|
2112
2112
|
}
|
|
@@ -2212,7 +2212,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2212
2212
|
"pds-input-label",
|
|
2213
2213
|
r ? null : "visually-hidden",
|
|
2214
2214
|
a ?? ""
|
|
2215
|
-
]), m = /* @__PURE__ */ e.createElement(e.Fragment, null, s, o && !l && /* @__PURE__ */ e.createElement(O1, null), d && /* @__PURE__ */ e.createElement(
|
|
2215
|
+
]), m = /* @__PURE__ */ e.createElement(e.Fragment, null, s, o && !l && /* @__PURE__ */ e.createElement(O1, null), d && /* @__PURE__ */ e.createElement(Le, { content: d }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(F, { iconName: "circleInfo", size: "s" }))));
|
|
2216
2216
|
return c ? /* @__PURE__ */ e.createElement("legend", { className: i, id: `${t}-legend` }, m) : n ? /* @__PURE__ */ e.createElement("span", { className: i, id: `${t}-field-label` }, m) : /* @__PURE__ */ e.createElement("label", { className: i, htmlFor: t, id: `${t}-label` }, m);
|
|
2217
2217
|
}, De = ({
|
|
2218
2218
|
className: a,
|
|
@@ -2450,7 +2450,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2450
2450
|
),
|
|
2451
2451
|
D
|
|
2452
2452
|
);
|
|
2453
|
-
return (c || r || i) && u ? /* @__PURE__ */ e.createElement(
|
|
2453
|
+
return (c || r || i) && u ? /* @__PURE__ */ e.createElement(Le, { content: u, customTrigger: H }) : /* @__PURE__ */ e.createElement(e.Fragment, null, H);
|
|
2454
2454
|
}
|
|
2455
2455
|
), tt = ({
|
|
2456
2456
|
className: a,
|
|
@@ -2467,7 +2467,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2467
2467
|
m,
|
|
2468
2468
|
h,
|
|
2469
2469
|
C
|
|
2470
|
-
]), p =
|
|
2470
|
+
]), p = we(n) ? n.props.children : null;
|
|
2471
2471
|
let f;
|
|
2472
2472
|
switch (s) {
|
|
2473
2473
|
case "xs":
|
|
@@ -2500,7 +2500,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2500
2500
|
);
|
|
2501
2501
|
let v = [p];
|
|
2502
2502
|
t === "icon-start" && c ? v = [b, p] : t === "icon-end" && c && (v = [p, b]);
|
|
2503
|
-
const E =
|
|
2503
|
+
const E = we(n) ? Ne(
|
|
2504
2504
|
n,
|
|
2505
2505
|
Object.assign({}, n.props, {
|
|
2506
2506
|
className: u,
|
|
@@ -2623,7 +2623,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2623
2623
|
...h
|
|
2624
2624
|
},
|
|
2625
2625
|
s && !c ? /* @__PURE__ */ e.createElement(
|
|
2626
|
-
|
|
2626
|
+
Le,
|
|
2627
2627
|
{
|
|
2628
2628
|
className: `${u}__tooltip`,
|
|
2629
2629
|
content: a,
|
|
@@ -2676,7 +2676,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2676
2676
|
/* @__PURE__ */ e.createElement(F, { className: `${s}__icon`, iconName: "xmarkLarge" })
|
|
2677
2677
|
);
|
|
2678
2678
|
return /* @__PURE__ */ e.createElement(
|
|
2679
|
-
|
|
2679
|
+
Le,
|
|
2680
2680
|
{
|
|
2681
2681
|
disableFocusTrigger: !0,
|
|
2682
2682
|
content: a,
|
|
@@ -2912,12 +2912,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2912
2912
|
if (o2(y))
|
|
2913
2913
|
return /* @__PURE__ */ e.createElement("li", { key: ee, role: "presentation" }, y.nodeContent);
|
|
2914
2914
|
if (Ve(y) || "label" in y && y.label) {
|
|
2915
|
-
const oe = O.indexOf(y), Q = f === oe, me = "isCritical" in y && y.isCritical, pe = "criticalLabel" in y ? y.criticalLabel : void 0,
|
|
2916
|
-
if ("label" in y && y.label &&
|
|
2915
|
+
const oe = O.indexOf(y), Q = f === oe, me = "isCritical" in y && y.isCritical, pe = "criticalLabel" in y ? y.criticalLabel : void 0, Ce = [];
|
|
2916
|
+
if ("label" in y && y.label && Ce.push(y.label), Ve(y) && y.linkContent) {
|
|
2917
2917
|
const ie = y.linkContent;
|
|
2918
|
-
|
|
2918
|
+
Ce.push(ie.props.children);
|
|
2919
2919
|
}
|
|
2920
|
-
y.iconName &&
|
|
2920
|
+
y.iconName && Ce.unshift(
|
|
2921
2921
|
/* @__PURE__ */ e.createElement(
|
|
2922
2922
|
F,
|
|
2923
2923
|
{
|
|
@@ -2926,10 +2926,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2926
2926
|
size: y.iconSize ?? "s"
|
|
2927
2927
|
}
|
|
2928
2928
|
)
|
|
2929
|
-
), me && pe &&
|
|
2929
|
+
), me && pe && Ce.unshift(
|
|
2930
2930
|
/* @__PURE__ */ e.createElement("span", { key: `critical-${L}`, className: "visually-hidden" }, pe)
|
|
2931
2931
|
);
|
|
2932
|
-
const
|
|
2932
|
+
const ve = y.description ? /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-description" }, y.description) : null;
|
|
2933
2933
|
let ge;
|
|
2934
2934
|
if (Ve(y) && y.linkContent) {
|
|
2935
2935
|
const ie = y.linkContent, he = ie.type;
|
|
@@ -2940,10 +2940,10 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
2940
2940
|
...ie.props,
|
|
2941
2941
|
onClick: () => k(!1)
|
|
2942
2942
|
},
|
|
2943
|
-
/* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` },
|
|
2943
|
+
/* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` }, Ce), ve)
|
|
2944
2944
|
);
|
|
2945
2945
|
} else
|
|
2946
|
-
ge = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` },
|
|
2946
|
+
ge = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` }, Ce), ve);
|
|
2947
2947
|
const se = $([
|
|
2948
2948
|
"pds-dropdown__item",
|
|
2949
2949
|
Q ? "pds-dropdown__item--focused" : null,
|
|
@@ -3072,12 +3072,12 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3072
3072
|
...v()
|
|
3073
3073
|
},
|
|
3074
3074
|
A.map((ee, oe) => {
|
|
3075
|
-
const Q = H[oe], me = "isHeading" in ee[0] && ee[0].isHeading, pe = me ? `${L}-group-${Q}-heading` : "",
|
|
3075
|
+
const Q = H[oe], me = "isHeading" in ee[0] && ee[0].isHeading, pe = me ? `${L}-group-${Q}-heading` : "", Ce = `${L}-group-${Q}`, ve = me ? null : `${C} ${oe + 1}`;
|
|
3076
3076
|
return /* @__PURE__ */ e.createElement(
|
|
3077
3077
|
"ul",
|
|
3078
3078
|
{
|
|
3079
|
-
key:
|
|
3080
|
-
"aria-label":
|
|
3079
|
+
key: Ce,
|
|
3080
|
+
"aria-label": ve,
|
|
3081
3081
|
"aria-labelledby": pe || void 0,
|
|
3082
3082
|
role: "group"
|
|
3083
3083
|
},
|
|
@@ -3726,7 +3726,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3726
3726
|
return s === "before" && P.push(v("icon-before")), P.push(E()), P.push(
|
|
3727
3727
|
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${f}__label` }, k)
|
|
3728
3728
|
), s === "after" && P.push(v("icon-after")), P.filter(Boolean);
|
|
3729
|
-
}, _ = h &&
|
|
3729
|
+
}, _ = h && we(h) ? h.props.children : m, N = $([
|
|
3730
3730
|
f,
|
|
3731
3731
|
c ? `${f}--border` : null,
|
|
3732
3732
|
o ? `${f}--critical` : null,
|
|
@@ -3735,9 +3735,9 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3735
3735
|
i ? `${f}--working` : null,
|
|
3736
3736
|
d ? `${f}--monospace` : null,
|
|
3737
3737
|
l ?? ""
|
|
3738
|
-
]), z = (k) => u ? /* @__PURE__ */ e.createElement(
|
|
3738
|
+
]), z = (k) => u ? /* @__PURE__ */ e.createElement(Le, { content: u, customTrigger: k }) : k;
|
|
3739
3739
|
if (h && !t) {
|
|
3740
|
-
const k =
|
|
3740
|
+
const k = we(h) ? Ne(
|
|
3741
3741
|
h,
|
|
3742
3742
|
Object.assign({}, h.props, {
|
|
3743
3743
|
className: $([
|
|
@@ -3944,7 +3944,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3944
3944
|
const z = Be(o), w = "pds-select", k = a ? `${w}--auto-width` : null, P = b !== "s" ? `${w}--${b}` : null, M = c ? te.disabled : null, L = p && !c ? te.required : null, D = g === "error" ? te.error : null, H = g === "success" ? te.success : null;
|
|
3945
3945
|
let O = null;
|
|
3946
3946
|
g === "error" && (O = "error"), g === "success" && (O = "success");
|
|
3947
|
-
const S = E || i, Y = typeof _ < "u", j = typeof t < "u", B = ((ue) => ue.reduce((_e,
|
|
3947
|
+
const S = E || i, Y = typeof _ < "u", j = typeof t < "u", B = ((ue) => ue.reduce((_e, T) => m1(T) ? [..._e, ...T.options] : [..._e, T], []))(u), I = (ue) => B.findIndex((_e) => _e.value === ue), V = Y && I(_) >= 0 ? I(_) : null, x = j ? I(t) : null, G = V || x, [W, y] = q(
|
|
3948
3948
|
G ?? null
|
|
3949
3949
|
), {
|
|
3950
3950
|
activeIndex: X,
|
|
@@ -3963,7 +3963,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3963
3963
|
role: "listbox",
|
|
3964
3964
|
selectedIndex: W,
|
|
3965
3965
|
variant: "input"
|
|
3966
|
-
}),
|
|
3966
|
+
}), Ce = W !== null ? B[W]?.label : void 0, ve = W !== null ? B[W]?.icon : void 0, ge = W !== null ? B[W]?.value : void 0, se = (ue) => {
|
|
3967
3967
|
const _e = B[ue];
|
|
3968
3968
|
Y || (y(ue), me(!1)), C && C(_e);
|
|
3969
3969
|
};
|
|
@@ -3979,9 +3979,9 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3979
3979
|
h && h(ge);
|
|
3980
3980
|
}, Se = () => {
|
|
3981
3981
|
Q.reference.current.focus();
|
|
3982
|
-
},
|
|
3983
|
-
const
|
|
3984
|
-
return
|
|
3982
|
+
}, ce = (ue, _e) => {
|
|
3983
|
+
const T = ue === "google" || ue === "microsoft", J = b === "l" ? "l" : "m";
|
|
3984
|
+
return T ? /* @__PURE__ */ e.createElement(
|
|
3985
3985
|
q1,
|
|
3986
3986
|
{
|
|
3987
3987
|
className: _e,
|
|
@@ -3998,56 +3998,56 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
3998
3998
|
);
|
|
3999
3999
|
}, be = (ue) => {
|
|
4000
4000
|
let _e = 0;
|
|
4001
|
-
return ue.map((
|
|
4002
|
-
if (m1(
|
|
4003
|
-
const
|
|
4004
|
-
const
|
|
4001
|
+
return ue.map((T) => {
|
|
4002
|
+
if (m1(T)) {
|
|
4003
|
+
const fe = T.options.map((R) => {
|
|
4004
|
+
const le = _e++;
|
|
4005
4005
|
return /* @__PURE__ */ e.createElement(
|
|
4006
4006
|
$2,
|
|
4007
4007
|
{
|
|
4008
|
-
key:
|
|
4009
|
-
ref: (
|
|
4010
|
-
oe.current[
|
|
4008
|
+
key: le,
|
|
4009
|
+
ref: (Ee) => {
|
|
4010
|
+
oe.current[le] = Ee;
|
|
4011
4011
|
},
|
|
4012
|
-
"aria-disabled":
|
|
4013
|
-
"aria-selected":
|
|
4014
|
-
tabIndex:
|
|
4015
|
-
...!
|
|
4012
|
+
"aria-disabled": R?.disabled,
|
|
4013
|
+
"aria-selected": le === W && le === X,
|
|
4014
|
+
tabIndex: le === X ? 0 : -1,
|
|
4015
|
+
...!R?.disabled && U({
|
|
4016
4016
|
onClick() {
|
|
4017
|
-
se(
|
|
4017
|
+
se(le);
|
|
4018
4018
|
},
|
|
4019
|
-
onKeyDown(
|
|
4020
|
-
|
|
4019
|
+
onKeyDown(Ee) {
|
|
4020
|
+
Ee.key === "Enter" && (Ee.preventDefault(), se(le), Q.reference.current.focus()), Ee.key === "Escape" && (Ee.preventDefault(), Q.reference.current.focus());
|
|
4021
4021
|
}
|
|
4022
4022
|
})
|
|
4023
4023
|
},
|
|
4024
|
-
/* @__PURE__ */ e.createElement("span", { className: `${w}__option-label` },
|
|
4025
|
-
W ===
|
|
4024
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__option-label` }, R.icon && ce(R.icon, `${w}__option-icon`), R.label),
|
|
4025
|
+
W === le && /* @__PURE__ */ e.createElement(m2, null)
|
|
4026
4026
|
);
|
|
4027
4027
|
});
|
|
4028
|
-
return /* @__PURE__ */ e.createElement(rt, { key:
|
|
4028
|
+
return /* @__PURE__ */ e.createElement(rt, { key: T.groupLabel, label: T.groupLabel }, fe);
|
|
4029
4029
|
}
|
|
4030
4030
|
const J = _e++;
|
|
4031
4031
|
return /* @__PURE__ */ e.createElement(
|
|
4032
4032
|
$2,
|
|
4033
4033
|
{
|
|
4034
4034
|
key: J,
|
|
4035
|
-
ref: (
|
|
4036
|
-
oe.current[J] =
|
|
4035
|
+
ref: (fe) => {
|
|
4036
|
+
oe.current[J] = fe;
|
|
4037
4037
|
},
|
|
4038
|
-
"aria-disabled":
|
|
4038
|
+
"aria-disabled": T?.disabled,
|
|
4039
4039
|
"aria-selected": J === W && J === X,
|
|
4040
4040
|
tabIndex: J === X ? 0 : -1,
|
|
4041
|
-
...!
|
|
4041
|
+
...!T?.disabled && U({
|
|
4042
4042
|
onClick() {
|
|
4043
4043
|
se(J);
|
|
4044
4044
|
},
|
|
4045
|
-
onKeyDown(
|
|
4046
|
-
|
|
4045
|
+
onKeyDown(fe) {
|
|
4046
|
+
fe.key === "Enter" && (fe.preventDefault(), se(J), Q.reference.current.focus()), fe.key === "Escape" && (fe.preventDefault(), Q.reference.current.focus());
|
|
4047
4047
|
}
|
|
4048
4048
|
})
|
|
4049
4049
|
},
|
|
4050
|
-
/* @__PURE__ */ e.createElement("span", { className: `${w}__option-label` },
|
|
4050
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__option-label` }, T.icon && ce(T.icon, `${w}__option-icon`), T.label),
|
|
4051
4051
|
W === J && /* @__PURE__ */ e.createElement(m2, null)
|
|
4052
4052
|
);
|
|
4053
4053
|
});
|
|
@@ -4069,7 +4069,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4069
4069
|
style: o ? z : null,
|
|
4070
4070
|
...N
|
|
4071
4071
|
},
|
|
4072
|
-
a && !o && /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${w}__sizer` }, B.map((ue) => /* @__PURE__ */ e.createElement("span", { key: ue.value, className: `${w}__input-wrapper` }, g !== void 0 && /* @__PURE__ */ e.createElement(We, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${w}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${w}__option-text` }, ue.icon &&
|
|
4072
|
+
a && !o && /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${w}__sizer` }, B.map((ue) => /* @__PURE__ */ e.createElement("span", { key: ue.value, className: `${w}__input-wrapper` }, g !== void 0 && /* @__PURE__ */ e.createElement(We, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${w}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${w}__option-text` }, ue.icon && ce(ue.icon, `${w}__icon`), ue.label), /* @__PURE__ */ e.createElement(
|
|
4073
4073
|
F,
|
|
4074
4074
|
{
|
|
4075
4075
|
className: `${w}__trigger-icon`,
|
|
@@ -4103,7 +4103,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4103
4103
|
})
|
|
4104
4104
|
},
|
|
4105
4105
|
O && /* @__PURE__ */ e.createElement(We, { variant: O }),
|
|
4106
|
-
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${w}__option-text` }, (
|
|
4106
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${w}__option-text` }, (ve || !Ce && n) && ce(ve || n, `${w}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${w}__option-label-text` }, Ce ?? d.selectOptionText)), /* @__PURE__ */ e.createElement(F, { className: `${w}__trigger-icon`, iconName: "angleDown" }))
|
|
4107
4107
|
),
|
|
4108
4108
|
ee && /* @__PURE__ */ e.createElement(
|
|
4109
4109
|
"div",
|
|
@@ -4499,24 +4499,24 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4499
4499
|
open: !!K,
|
|
4500
4500
|
placement: "top",
|
|
4501
4501
|
whileElementsMounted: Ie
|
|
4502
|
-
}), { isMounted: pe, styles:
|
|
4502
|
+
}), { isMounted: pe, styles: Ce } = Ke(ee, {
|
|
4503
4503
|
duration: { close: 150, open: 150 },
|
|
4504
4504
|
initial: { opacity: 0 }
|
|
4505
4505
|
});
|
|
4506
4506
|
ae(() => {
|
|
4507
4507
|
Q.setReference(A.current);
|
|
4508
4508
|
}, [Q]);
|
|
4509
|
-
const
|
|
4510
|
-
(
|
|
4509
|
+
const ve = "pds-bar-chart", ge = N === "stacked" ? "stack" : void 0, se = ye(
|
|
4510
|
+
(ce) => {
|
|
4511
4511
|
A.current.getBoundingClientRect = () => ({
|
|
4512
|
-
bottom:
|
|
4512
|
+
bottom: ce.clientY,
|
|
4513
4513
|
height: 0,
|
|
4514
|
-
left:
|
|
4515
|
-
right:
|
|
4516
|
-
top:
|
|
4514
|
+
left: ce.clientX,
|
|
4515
|
+
right: ce.clientX,
|
|
4516
|
+
top: ce.clientY,
|
|
4517
4517
|
width: 0,
|
|
4518
|
-
x:
|
|
4519
|
-
y:
|
|
4518
|
+
x: ce.clientX,
|
|
4519
|
+
y: ce.clientY
|
|
4520
4520
|
}), me();
|
|
4521
4521
|
},
|
|
4522
4522
|
[me]
|
|
@@ -4531,8 +4531,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4531
4531
|
"aria-busy": "true",
|
|
4532
4532
|
"aria-label": j,
|
|
4533
4533
|
className: $([
|
|
4534
|
-
|
|
4535
|
-
`${
|
|
4534
|
+
ve,
|
|
4535
|
+
`${ve}--loading`,
|
|
4536
4536
|
c ?? ""
|
|
4537
4537
|
]),
|
|
4538
4538
|
style: { maxWidth: V },
|
|
@@ -4553,8 +4553,8 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4553
4553
|
{
|
|
4554
4554
|
ref: Z,
|
|
4555
4555
|
className: $([
|
|
4556
|
-
|
|
4557
|
-
`${
|
|
4556
|
+
ve,
|
|
4557
|
+
`${ve}--empty`,
|
|
4558
4558
|
c ?? ""
|
|
4559
4559
|
]),
|
|
4560
4560
|
style: { height: I, maxWidth: V },
|
|
@@ -4568,25 +4568,25 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4568
4568
|
}
|
|
4569
4569
|
)
|
|
4570
4570
|
);
|
|
4571
|
-
const he = i === "vertical", Se = (
|
|
4571
|
+
const he = i === "vertical", Se = (ce) => N === "grouped" || N === "stacked" && ce === u.length - 1 ? he ? [0, a, a, 0] : [a, a, 0, 0] : 0;
|
|
4572
4572
|
return /* @__PURE__ */ e.createElement(
|
|
4573
4573
|
"div",
|
|
4574
4574
|
{
|
|
4575
4575
|
ref: Z,
|
|
4576
|
-
className: $([
|
|
4576
|
+
className: $([ve, c ?? ""]),
|
|
4577
4577
|
style: V ? { maxWidth: V } : void 0,
|
|
4578
4578
|
...D
|
|
4579
4579
|
},
|
|
4580
|
-
!r && g && g.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4580
|
+
!r && g && g.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${ve}__header` }, /* @__PURE__ */ e.createElement(
|
|
4581
4581
|
x2,
|
|
4582
4582
|
{
|
|
4583
4583
|
autoWidth: !0,
|
|
4584
|
-
id: `${
|
|
4584
|
+
id: `${ve}-time-period`,
|
|
4585
4585
|
label: "Time period",
|
|
4586
|
-
onOptionSelect: (
|
|
4587
|
-
options: g.map((
|
|
4588
|
-
label:
|
|
4589
|
-
value:
|
|
4586
|
+
onOptionSelect: (ce) => h?.(ce.value),
|
|
4587
|
+
options: g.map((ce) => ({
|
|
4588
|
+
label: ce.label,
|
|
4589
|
+
value: ce.value
|
|
4590
4590
|
})),
|
|
4591
4591
|
showLabel: !1,
|
|
4592
4592
|
value: C
|
|
@@ -4666,42 +4666,42 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4666
4666
|
y && _ && /* @__PURE__ */ e.createElement(
|
|
4667
4667
|
P1,
|
|
4668
4668
|
{
|
|
4669
|
-
content: (
|
|
4670
|
-
entries:
|
|
4669
|
+
content: (ce) => !ce.active || !ce.payload?.length ? null : _({
|
|
4670
|
+
entries: ce.payload.map((be) => ({
|
|
4671
4671
|
color: String(be.color ?? ""),
|
|
4672
4672
|
dataKey: String(be.dataKey ?? ""),
|
|
4673
4673
|
name: String(be.name ?? ""),
|
|
4674
4674
|
value: Number(be.value ?? 0)
|
|
4675
4675
|
})),
|
|
4676
|
-
label: String(
|
|
4676
|
+
label: String(ce.label ?? "")
|
|
4677
4677
|
}),
|
|
4678
4678
|
cursor: !1
|
|
4679
4679
|
}
|
|
4680
4680
|
),
|
|
4681
|
-
u.map((
|
|
4681
|
+
u.map((ce, be) => /* @__PURE__ */ e.createElement(
|
|
4682
4682
|
h4,
|
|
4683
4683
|
{
|
|
4684
|
-
key:
|
|
4685
|
-
dataKey:
|
|
4684
|
+
key: ce.dataKey,
|
|
4685
|
+
dataKey: ce.dataKey,
|
|
4686
4686
|
fill: L2(
|
|
4687
4687
|
be,
|
|
4688
4688
|
B,
|
|
4689
|
-
|
|
4690
|
-
w2(n,
|
|
4689
|
+
ce.color,
|
|
4690
|
+
w2(n, ce.paletteIndex)
|
|
4691
4691
|
),
|
|
4692
|
-
name:
|
|
4692
|
+
name: ce.label,
|
|
4693
4693
|
onMouseEnter: _ ? void 0 : (ue) => {
|
|
4694
4694
|
const _e = ue;
|
|
4695
4695
|
y && _e && ne({
|
|
4696
4696
|
color: L2(
|
|
4697
4697
|
be,
|
|
4698
4698
|
B,
|
|
4699
|
-
|
|
4700
|
-
w2(n,
|
|
4699
|
+
ce.color,
|
|
4700
|
+
w2(n, ce.paletteIndex)
|
|
4701
4701
|
),
|
|
4702
4702
|
label: String(_e.label ?? ""),
|
|
4703
|
-
name:
|
|
4704
|
-
value: Number(_e[
|
|
4703
|
+
name: ce.label,
|
|
4704
|
+
value: Number(_e[ce.dataKey] ?? 0)
|
|
4705
4705
|
});
|
|
4706
4706
|
},
|
|
4707
4707
|
onMouseLeave: _ ? void 0 : () => ne(null),
|
|
@@ -4719,7 +4719,7 @@ const z4 = 768, N4 = 1280, M4 = 1440, k4 = "7rem", x4 = "10rem", D4 = "8rem", S1
|
|
|
4719
4719
|
role: "tooltip",
|
|
4720
4720
|
style: {
|
|
4721
4721
|
...oe,
|
|
4722
|
-
...
|
|
4722
|
+
...Ce,
|
|
4723
4723
|
pointerEvents: "none",
|
|
4724
4724
|
zIndex: "var(--pds-z-index-notifications)"
|
|
4725
4725
|
}
|
|
@@ -5519,7 +5519,7 @@ const bt = ({
|
|
|
5519
5519
|
...s
|
|
5520
5520
|
},
|
|
5521
5521
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__total-changes` }, /* @__PURE__ */ e.createElement(
|
|
5522
|
-
|
|
5522
|
+
Le,
|
|
5523
5523
|
{
|
|
5524
5524
|
className: `${o}__tooltip`,
|
|
5525
5525
|
content: `${r} ${n.linesChanged}`,
|
|
@@ -5534,7 +5534,7 @@ const bt = ({
|
|
|
5534
5534
|
style: { width: `${d}%` }
|
|
5535
5535
|
},
|
|
5536
5536
|
/* @__PURE__ */ e.createElement(
|
|
5537
|
-
|
|
5537
|
+
Le,
|
|
5538
5538
|
{
|
|
5539
5539
|
className: `${o}__tooltip`,
|
|
5540
5540
|
content: `${c} ${n.deletions}`,
|
|
@@ -5549,7 +5549,7 @@ const bt = ({
|
|
|
5549
5549
|
style: { width: `${i}%` }
|
|
5550
5550
|
},
|
|
5551
5551
|
/* @__PURE__ */ e.createElement(
|
|
5552
|
-
|
|
5552
|
+
Le,
|
|
5553
5553
|
{
|
|
5554
5554
|
className: `${o}__tooltip`,
|
|
5555
5555
|
content: `${a} ${n.additions}`,
|
|
@@ -5942,7 +5942,7 @@ const bt = ({
|
|
|
5942
5942
|
...o
|
|
5943
5943
|
},
|
|
5944
5944
|
_ && (t && g ? /* @__PURE__ */ e.createElement(
|
|
5945
|
-
|
|
5945
|
+
Le,
|
|
5946
5946
|
{
|
|
5947
5947
|
content: g,
|
|
5948
5948
|
customTrigger: _,
|
|
@@ -6281,8 +6281,8 @@ const bt = ({
|
|
|
6281
6281
|
let G = null;
|
|
6282
6282
|
s && (G = "search"), D === "error" && (G = "error"), D === "success" && (G = "success");
|
|
6283
6283
|
const W = L || u, y = typeof H < "u", X = typeof l < "u", K = (re) => {
|
|
6284
|
-
const
|
|
6285
|
-
return
|
|
6284
|
+
const $e = _.find((Pe) => Pe.value === re);
|
|
6285
|
+
return $e ? $e.label : "";
|
|
6286
6286
|
}, [ne, U] = q(X ? l : void 0), [A, ee] = q(
|
|
6287
6287
|
y ? H ?? "" : X ? K(l) : ""
|
|
6288
6288
|
);
|
|
@@ -6290,10 +6290,10 @@ const bt = ({
|
|
|
6290
6290
|
y && ee(H ?? "");
|
|
6291
6291
|
}, [y, H]);
|
|
6292
6292
|
const oe = de(null), Q = (re) => re.map(
|
|
6293
|
-
({ label:
|
|
6294
|
-
const n4 = Xe ||
|
|
6293
|
+
({ label: $e, optionDisplay: Pe, searchIndex: D2, value: Xe, ...c4 }) => {
|
|
6294
|
+
const n4 = Xe || $e, c1 = [$e, Xe];
|
|
6295
6295
|
return D2 && c1.push(...D2), {
|
|
6296
|
-
label:
|
|
6296
|
+
label: $e,
|
|
6297
6297
|
value: n4,
|
|
6298
6298
|
searchIndex: c1,
|
|
6299
6299
|
optionDisplay: Pe,
|
|
@@ -6303,12 +6303,12 @@ const bt = ({
|
|
|
6303
6303
|
), me = Me(() => {
|
|
6304
6304
|
const re = Q(_);
|
|
6305
6305
|
if (!A && !k) return [];
|
|
6306
|
-
const
|
|
6307
|
-
return re.filter((Pe) => (Pe.searchIndex?.map((Xe) => Xe.toLowerCase()) ?? []).some((Xe) => Xe.includes(
|
|
6306
|
+
const $e = (A ?? "").toLowerCase();
|
|
6307
|
+
return re.filter((Pe) => (Pe.searchIndex?.map((Xe) => Xe.toLowerCase()) ?? []).some((Xe) => Xe.includes($e)));
|
|
6308
6308
|
}, [_, A, k, i]), {
|
|
6309
6309
|
getInputProps: pe,
|
|
6310
|
-
getItemProps:
|
|
6311
|
-
getMenuProps:
|
|
6310
|
+
getItemProps: Ce,
|
|
6311
|
+
getMenuProps: ve,
|
|
6312
6312
|
highlightedIndex: ge,
|
|
6313
6313
|
isOpen: se,
|
|
6314
6314
|
openMenu: ie,
|
|
@@ -6323,8 +6323,8 @@ const bt = ({
|
|
|
6323
6323
|
onSelectedItemChange: ({ selectedItem: re }) => {
|
|
6324
6324
|
re && (y || ee(re.label), U(re.value), g?.(re));
|
|
6325
6325
|
},
|
|
6326
|
-
stateReducer: (re, { changes:
|
|
6327
|
-
}), { context: Se, floatingStyles:
|
|
6326
|
+
stateReducer: (re, { changes: $e, type: Pe }) => Pe === ze.stateChangeTypes.InputBlur ? { ...$e, inputValue: re.inputValue } : $e.isOpen && !re.inputValue && !k && Pe === ze.stateChangeTypes.InputClick ? { ...$e, isOpen: !1 } : $e
|
|
6327
|
+
}), { context: Se, floatingStyles: ce, refs: be } = ke({
|
|
6328
6328
|
open: se,
|
|
6329
6329
|
whileElementsMounted: Ie,
|
|
6330
6330
|
placement: "bottom-start",
|
|
@@ -6332,8 +6332,8 @@ const bt = ({
|
|
|
6332
6332
|
middleware: [
|
|
6333
6333
|
xe(({ placement: re }) => re.startsWith("top") ? 16 : 0),
|
|
6334
6334
|
v2({
|
|
6335
|
-
apply({ availableHeight: re, elements:
|
|
6336
|
-
Object.assign(
|
|
6335
|
+
apply({ availableHeight: re, elements: $e, rects: Pe }) {
|
|
6336
|
+
Object.assign($e.floating.style, {
|
|
6337
6337
|
minHeight: "var(--pds-spacing-3xl)",
|
|
6338
6338
|
maxHeight: `${re}px`,
|
|
6339
6339
|
width: `${Pe.reference.width}px`
|
|
@@ -6351,25 +6351,25 @@ const bt = ({
|
|
|
6351
6351
|
open: { opacity: 1 },
|
|
6352
6352
|
close: { opacity: 0 }
|
|
6353
6353
|
}
|
|
6354
|
-
),
|
|
6354
|
+
), T = ye(
|
|
6355
6355
|
(re) => {
|
|
6356
6356
|
be.setReference(re), typeof S == "function" ? S(re) : S && "current" in S && (S.current = re);
|
|
6357
6357
|
},
|
|
6358
6358
|
[S, be]
|
|
6359
6359
|
), J = () => {
|
|
6360
6360
|
se ? he() : ie();
|
|
6361
|
-
},
|
|
6361
|
+
}, fe = () => {
|
|
6362
6362
|
y || ee(""), U(void 0), he(), oe.current?.focus(), k && ie(), v?.();
|
|
6363
|
-
},
|
|
6363
|
+
}, R = (re) => {
|
|
6364
6364
|
f?.(ne);
|
|
6365
|
-
},
|
|
6365
|
+
}, le = (re) => {
|
|
6366
6366
|
k && ie(), E?.(ne);
|
|
6367
|
-
},
|
|
6367
|
+
}, Ee = () => me.map((re, $e) => /* @__PURE__ */ e.createElement(
|
|
6368
6368
|
$2,
|
|
6369
6369
|
{
|
|
6370
6370
|
key: re.value,
|
|
6371
|
-
className: ge ===
|
|
6372
|
-
...
|
|
6371
|
+
className: ge === $e ? "pds-dropdown__item--focused" : "",
|
|
6372
|
+
...Ce({ item: re, index: $e })
|
|
6373
6373
|
},
|
|
6374
6374
|
/* @__PURE__ */ e.createElement("span", { className: `${j}__option-label` }, re.optionDisplay || re.label)
|
|
6375
6375
|
));
|
|
@@ -6403,7 +6403,7 @@ const bt = ({
|
|
|
6403
6403
|
/* @__PURE__ */ e.createElement(
|
|
6404
6404
|
"span",
|
|
6405
6405
|
{
|
|
6406
|
-
ref:
|
|
6406
|
+
ref: T,
|
|
6407
6407
|
"aria-describedby": W ? `${r}__message` : null,
|
|
6408
6408
|
"aria-disabled": t ? !0 : null,
|
|
6409
6409
|
"aria-invalid": D === "error" ? !0 : null,
|
|
@@ -6423,11 +6423,11 @@ const bt = ({
|
|
|
6423
6423
|
"aria-label": h.inputInstructions,
|
|
6424
6424
|
disabled: t,
|
|
6425
6425
|
placeholder: N,
|
|
6426
|
-
onBlur:
|
|
6426
|
+
onBlur: R,
|
|
6427
6427
|
onChange: (re) => {
|
|
6428
6428
|
b?.(re);
|
|
6429
6429
|
},
|
|
6430
|
-
onFocus:
|
|
6430
|
+
onFocus: le
|
|
6431
6431
|
})
|
|
6432
6432
|
}
|
|
6433
6433
|
),
|
|
@@ -6435,7 +6435,7 @@ const bt = ({
|
|
|
6435
6435
|
t1,
|
|
6436
6436
|
{
|
|
6437
6437
|
clearLabel: h.clearButton,
|
|
6438
|
-
handleClearInput:
|
|
6438
|
+
handleClearInput: fe,
|
|
6439
6439
|
id: `input-${r}`
|
|
6440
6440
|
}
|
|
6441
6441
|
),
|
|
@@ -6472,12 +6472,12 @@ const bt = ({
|
|
|
6472
6472
|
ref: be.setFloating,
|
|
6473
6473
|
className: `pds-dropdown__panel ${j}__dropdown`,
|
|
6474
6474
|
style: {
|
|
6475
|
-
...
|
|
6475
|
+
...ce,
|
|
6476
6476
|
..._e,
|
|
6477
6477
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6478
6478
|
}
|
|
6479
6479
|
},
|
|
6480
|
-
i ? /* @__PURE__ */ e.createElement("div", { className: `${j}__loading` }, C) : me.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${j}__options`, ...
|
|
6480
|
+
i ? /* @__PURE__ */ e.createElement("div", { className: `${j}__loading` }, C) : me.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${j}__options`, ...ve() }, Ee()) : /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, p)
|
|
6481
6481
|
),
|
|
6482
6482
|
W && /* @__PURE__ */ e.createElement(
|
|
6483
6483
|
De,
|
|
@@ -6535,25 +6535,25 @@ const bt = ({
|
|
|
6535
6535
|
() => wt(C, L, P),
|
|
6536
6536
|
[C, L, P]
|
|
6537
6537
|
), Z = Me(
|
|
6538
|
-
() => a?.items?.map((
|
|
6539
|
-
...
|
|
6538
|
+
() => a?.items?.map((R) => ({
|
|
6539
|
+
...R,
|
|
6540
6540
|
isAlreadySelected: L.some(
|
|
6541
|
-
(
|
|
6541
|
+
(le) => le.id === R.id
|
|
6542
6542
|
)
|
|
6543
6543
|
})) || [],
|
|
6544
6544
|
[a?.items, L]
|
|
6545
|
-
), B = (
|
|
6546
|
-
D(
|
|
6545
|
+
), B = (R) => {
|
|
6546
|
+
D(R), h?.(R);
|
|
6547
6547
|
}, { getDropdownProps: I, getSelectedItemProps: V, removeSelectedItem: x } = r2({
|
|
6548
6548
|
selectedItems: L,
|
|
6549
|
-
onStateChange: ({ selectedItems:
|
|
6549
|
+
onStateChange: ({ selectedItems: R, type: le }) => {
|
|
6550
6550
|
if (!t)
|
|
6551
|
-
switch (
|
|
6551
|
+
switch (le) {
|
|
6552
6552
|
case r2.stateChangeTypes.SelectedItemKeyDownBackspace:
|
|
6553
6553
|
case r2.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
6554
6554
|
case r2.stateChangeTypes.DropdownKeyDownBackspace:
|
|
6555
6555
|
case r2.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
6556
|
-
B(
|
|
6556
|
+
B(R || []);
|
|
6557
6557
|
break;
|
|
6558
6558
|
}
|
|
6559
6559
|
}
|
|
@@ -6569,28 +6569,28 @@ const bt = ({
|
|
|
6569
6569
|
selectedItem: ee
|
|
6570
6570
|
} = ze({
|
|
6571
6571
|
items: j,
|
|
6572
|
-
itemToString: (
|
|
6572
|
+
itemToString: (R) => R ? R.label : "",
|
|
6573
6573
|
selectedItem: null,
|
|
6574
6574
|
inputValue: P,
|
|
6575
6575
|
isOpen: t ? !1 : void 0,
|
|
6576
|
-
stateReducer: (
|
|
6577
|
-
if (t) return
|
|
6578
|
-
switch (
|
|
6576
|
+
stateReducer: (R, { changes: le, type: Ee }) => {
|
|
6577
|
+
if (t) return R;
|
|
6578
|
+
switch (Ee) {
|
|
6579
6579
|
case ze.stateChangeTypes.InputKeyDownEnter:
|
|
6580
6580
|
case ze.stateChangeTypes.ItemClick:
|
|
6581
6581
|
return {
|
|
6582
|
-
...
|
|
6582
|
+
...le,
|
|
6583
6583
|
isOpen: !0,
|
|
6584
|
-
highlightedIndex:
|
|
6584
|
+
highlightedIndex: R.highlightedIndex
|
|
6585
6585
|
};
|
|
6586
6586
|
default:
|
|
6587
|
-
return
|
|
6587
|
+
return le;
|
|
6588
6588
|
}
|
|
6589
6589
|
},
|
|
6590
6590
|
onStateChange: ({
|
|
6591
|
-
inputValue:
|
|
6592
|
-
isOpen:
|
|
6593
|
-
selectedItem:
|
|
6591
|
+
inputValue: R,
|
|
6592
|
+
isOpen: le,
|
|
6593
|
+
selectedItem: Ee,
|
|
6594
6594
|
type: re
|
|
6595
6595
|
}) => {
|
|
6596
6596
|
if (!t)
|
|
@@ -6598,16 +6598,16 @@ const bt = ({
|
|
|
6598
6598
|
case ze.stateChangeTypes.InputKeyDownEnter:
|
|
6599
6599
|
case ze.stateChangeTypes.ItemClick:
|
|
6600
6600
|
case ze.stateChangeTypes.InputBlur:
|
|
6601
|
-
|
|
6602
|
-
L.filter((
|
|
6603
|
-
) : B([...L,
|
|
6601
|
+
Ee && (Ee.isAlreadySelected ? B(
|
|
6602
|
+
L.filter(($e) => $e.id !== Ee.id)
|
|
6603
|
+
) : B([...L, Ee]), M(""), O(null));
|
|
6604
6604
|
break;
|
|
6605
6605
|
case ze.stateChangeTypes.InputChange:
|
|
6606
|
-
M(
|
|
6606
|
+
M(R || ""), O(null);
|
|
6607
6607
|
break;
|
|
6608
6608
|
case ze.stateChangeTypes.ToggleButtonClick:
|
|
6609
6609
|
case ze.stateChangeTypes.FunctionOpenMenu:
|
|
6610
|
-
|
|
6610
|
+
le && Y(!1);
|
|
6611
6611
|
break;
|
|
6612
6612
|
}
|
|
6613
6613
|
}
|
|
@@ -6617,11 +6617,11 @@ const bt = ({
|
|
|
6617
6617
|
placement: "bottom-start",
|
|
6618
6618
|
strategy: "absolute",
|
|
6619
6619
|
middleware: [
|
|
6620
|
-
xe(({ placement:
|
|
6620
|
+
xe(({ placement: R }) => R.startsWith("top") ? 16 : 0),
|
|
6621
6621
|
v2({
|
|
6622
|
-
apply({ availableHeight:
|
|
6623
|
-
Object.assign(
|
|
6624
|
-
maxHeight: `${
|
|
6622
|
+
apply({ availableHeight: R, elements: le }) {
|
|
6623
|
+
Object.assign(le.floating.style, {
|
|
6624
|
+
maxHeight: `${R}px`
|
|
6625
6625
|
});
|
|
6626
6626
|
},
|
|
6627
6627
|
padding: {
|
|
@@ -6638,7 +6638,7 @@ const bt = ({
|
|
|
6638
6638
|
}), {
|
|
6639
6639
|
context: me,
|
|
6640
6640
|
floatingStyles: pe,
|
|
6641
|
-
refs:
|
|
6641
|
+
refs: Ce
|
|
6642
6642
|
} = ke({
|
|
6643
6643
|
open: S,
|
|
6644
6644
|
onOpenChange: Y,
|
|
@@ -6646,11 +6646,11 @@ const bt = ({
|
|
|
6646
6646
|
placement: "bottom-start",
|
|
6647
6647
|
strategy: "absolute",
|
|
6648
6648
|
middleware: [
|
|
6649
|
-
xe(({ placement:
|
|
6649
|
+
xe(({ placement: R }) => R.startsWith("top") ? 16 : 4),
|
|
6650
6650
|
v2({
|
|
6651
|
-
apply({ elements:
|
|
6652
|
-
Object.assign(
|
|
6653
|
-
width: `${
|
|
6651
|
+
apply({ elements: R, rects: le }) {
|
|
6652
|
+
Object.assign(R.floating.style, {
|
|
6653
|
+
width: `${le.reference.width}px`
|
|
6654
6654
|
});
|
|
6655
6655
|
}
|
|
6656
6656
|
}),
|
|
@@ -6658,40 +6658,40 @@ const bt = ({
|
|
|
6658
6658
|
padding: 24
|
|
6659
6659
|
})
|
|
6660
6660
|
]
|
|
6661
|
-
}),
|
|
6662
|
-
|
|
6663
|
-
]), se = (
|
|
6664
|
-
if (
|
|
6665
|
-
const
|
|
6666
|
-
Y(
|
|
6667
|
-
}, ie = (
|
|
6668
|
-
t || (
|
|
6669
|
-
L.filter((
|
|
6670
|
-
) : B([...L,
|
|
6661
|
+
}), ve = Oe(me), { getFloatingProps: ge } = Ze([
|
|
6662
|
+
ve
|
|
6663
|
+
]), se = (R) => {
|
|
6664
|
+
if (R.stopPropagation(), t) return;
|
|
6665
|
+
const le = !S;
|
|
6666
|
+
Y(le), le && U && G();
|
|
6667
|
+
}, ie = (R) => {
|
|
6668
|
+
t || (R.isAlreadySelected ? B(
|
|
6669
|
+
L.filter((le) => le.id !== R.id)
|
|
6670
|
+
) : B([...L, R]));
|
|
6671
6671
|
}, he = () => {
|
|
6672
6672
|
Y(!1), a?.onClose?.();
|
|
6673
6673
|
}, Se = () => {
|
|
6674
6674
|
a?.onRefresh?.();
|
|
6675
|
-
},
|
|
6675
|
+
}, ce = () => {
|
|
6676
6676
|
if (H === null)
|
|
6677
6677
|
O(L.length - 1);
|
|
6678
6678
|
else {
|
|
6679
|
-
const
|
|
6680
|
-
|
|
6679
|
+
const R = [...L];
|
|
6680
|
+
R.splice(H, 1), B(R), O(null);
|
|
6681
6681
|
}
|
|
6682
6682
|
}, be = de(!1), ue = () => {
|
|
6683
6683
|
t || (be.current ? G() : A());
|
|
6684
|
-
}, _e = (
|
|
6685
|
-
be.current = U, !t &&
|
|
6686
|
-
},
|
|
6687
|
-
|
|
6684
|
+
}, _e = (R) => {
|
|
6685
|
+
be.current = U, !t && R.currentTarget.setAttribute("data-focus-method", "mouse");
|
|
6686
|
+
}, T = (R) => {
|
|
6687
|
+
R.currentTarget.setAttribute("data-focus-method", "keyboard"), !t && ((R.key === "Backspace" || R.key === "Delete") && !P && L.length > 0 && (R.preventDefault(), ce()), R.key === "Enter" && H !== null && (R.preventDefault(), ce()), !U && (R.key === "Enter" || R.key === "ArrowDown") && (R.preventDefault(), A()));
|
|
6688
6688
|
}, J = W({
|
|
6689
6689
|
...I({
|
|
6690
6690
|
preventKeyAction: U
|
|
6691
6691
|
}),
|
|
6692
6692
|
disabled: t,
|
|
6693
|
-
onKeyDown:
|
|
6694
|
-
}),
|
|
6693
|
+
onKeyDown: T
|
|
6694
|
+
}), fe = L.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-item` }, L.length - 1) : L.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-item` }, L.length - 1)) : L.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-item` }, L.length - 1)) : "";
|
|
6695
6695
|
return /* @__PURE__ */ e.createElement(
|
|
6696
6696
|
"div",
|
|
6697
6697
|
{
|
|
@@ -6720,38 +6720,38 @@ const bt = ({
|
|
|
6720
6720
|
/* @__PURE__ */ e.createElement(
|
|
6721
6721
|
"div",
|
|
6722
6722
|
{
|
|
6723
|
-
ref: (
|
|
6724
|
-
Q.setReference(
|
|
6723
|
+
ref: (R) => {
|
|
6724
|
+
Q.setReference(R), Ce.setReference(R);
|
|
6725
6725
|
},
|
|
6726
6726
|
"aria-disabled": t ? !0 : null,
|
|
6727
6727
|
"aria-required": p ? !0 : null,
|
|
6728
6728
|
className: `${_}__input-wrapper`,
|
|
6729
6729
|
onClick: ue,
|
|
6730
|
-
onKeyDown:
|
|
6730
|
+
onKeyDown: T,
|
|
6731
6731
|
onMouseDown: _e,
|
|
6732
6732
|
tabIndex: 0
|
|
6733
6733
|
},
|
|
6734
|
-
L.length > 1 && !f && /* @__PURE__ */ e.createElement("div", { className: `${_}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-wrapper` },
|
|
6735
|
-
L.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${_}__items-wrapper` }, L.map((
|
|
6734
|
+
L.length > 1 && !f && /* @__PURE__ */ e.createElement("div", { className: `${_}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__counter-wrapper` }, fe)),
|
|
6735
|
+
L.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${_}__items-wrapper` }, L.map((R, le) => /* @__PURE__ */ e.createElement(
|
|
6736
6736
|
"span",
|
|
6737
6737
|
{
|
|
6738
|
-
key: `selected-item-${
|
|
6738
|
+
key: `selected-item-${le}`,
|
|
6739
6739
|
className: `
|
|
6740
6740
|
${_}__selected-item
|
|
6741
|
-
${
|
|
6741
|
+
${le === H ? `${_}__selected-item--marked-for-deletion` : ""}
|
|
6742
6742
|
`,
|
|
6743
6743
|
...V({
|
|
6744
|
-
selectedItem:
|
|
6745
|
-
index:
|
|
6744
|
+
selectedItem: R,
|
|
6745
|
+
index: le
|
|
6746
6746
|
})
|
|
6747
6747
|
},
|
|
6748
|
-
/* @__PURE__ */ e.createElement("span", { className: `${_}__selected-item-text` },
|
|
6748
|
+
/* @__PURE__ */ e.createElement("span", { className: `${_}__selected-item-text` }, R.label),
|
|
6749
6749
|
/* @__PURE__ */ e.createElement(
|
|
6750
6750
|
"span",
|
|
6751
6751
|
{
|
|
6752
6752
|
className: `${_}__selected-item-remove`,
|
|
6753
|
-
onClick: (
|
|
6754
|
-
|
|
6753
|
+
onClick: (Ee) => {
|
|
6754
|
+
Ee.stopPropagation(), x(R);
|
|
6755
6755
|
}
|
|
6756
6756
|
},
|
|
6757
6757
|
/* @__PURE__ */ e.createElement(F, { iconName: "xmark", size: "xs" })
|
|
@@ -6785,7 +6785,7 @@ const bt = ({
|
|
|
6785
6785
|
disabled: t,
|
|
6786
6786
|
type: "button",
|
|
6787
6787
|
...K({
|
|
6788
|
-
onClick: (
|
|
6788
|
+
onClick: (R) => R.stopPropagation()
|
|
6789
6789
|
})
|
|
6790
6790
|
},
|
|
6791
6791
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6816,28 +6816,28 @@ const bt = ({
|
|
|
6816
6816
|
className: `${_}__dropdown-input`,
|
|
6817
6817
|
placeholder: u,
|
|
6818
6818
|
...J,
|
|
6819
|
-
onClick: (
|
|
6820
|
-
|
|
6819
|
+
onClick: (R) => {
|
|
6820
|
+
R.stopPropagation();
|
|
6821
6821
|
}
|
|
6822
6822
|
}
|
|
6823
6823
|
)),
|
|
6824
|
-
o ? /* @__PURE__ */ e.createElement("div", { className: `${_}__loading` }, i) : j.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${_}__dropdown-list`, ...X() }, j.map((
|
|
6824
|
+
o ? /* @__PURE__ */ e.createElement("div", { className: `${_}__loading` }, i) : j.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${_}__dropdown-list`, ...X() }, j.map((R, le) => /* @__PURE__ */ e.createElement(
|
|
6825
6825
|
$2,
|
|
6826
6826
|
{
|
|
6827
|
-
key: `${
|
|
6827
|
+
key: `${R.id}-${le}`,
|
|
6828
6828
|
className: `${_}__dropdown-item
|
|
6829
|
-
${ne ===
|
|
6830
|
-
${ee ===
|
|
6831
|
-
${
|
|
6832
|
-
...y({ item:
|
|
6829
|
+
${ne === le ? "pds-dropdown__item--focused" : ""}
|
|
6830
|
+
${ee === R ? `${_}__dropdown-item--selected` : ""}
|
|
6831
|
+
${R.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
|
|
6832
|
+
...y({ item: R, index: le })
|
|
6833
6833
|
},
|
|
6834
|
-
/* @__PURE__ */ e.createElement("span", { className: `${_}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__dropdown-item-text` },
|
|
6834
|
+
/* @__PURE__ */ e.createElement("span", { className: `${_}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__dropdown-item-text` }, R.label, R.badge === "ai" && /* @__PURE__ */ e.createElement("span", { className: `${_}__dropdown-item-badge` }, /* @__PURE__ */ e.createElement(F, { iconName: "sparkles", size: "s" }), /* @__PURE__ */ e.createElement("span", null, d.aiBadgeLabel))), R.isAlreadySelected && /* @__PURE__ */ e.createElement(m2, null))
|
|
6835
6835
|
))) : /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, m)
|
|
6836
6836
|
),
|
|
6837
6837
|
S && a && /* @__PURE__ */ e.createElement(
|
|
6838
6838
|
"div",
|
|
6839
6839
|
{
|
|
6840
|
-
ref:
|
|
6840
|
+
ref: Ce.setFloating,
|
|
6841
6841
|
className: `${_}__aux-panel`,
|
|
6842
6842
|
style: {
|
|
6843
6843
|
...pe,
|
|
@@ -6852,18 +6852,18 @@ const bt = ({
|
|
|
6852
6852
|
iconName: "sparkles",
|
|
6853
6853
|
size: "m"
|
|
6854
6854
|
}
|
|
6855
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${_}__aux-panel-items` }, Z.map((
|
|
6855
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${_}__aux-panel-items` }, Z.map((R) => /* @__PURE__ */ e.createElement(
|
|
6856
6856
|
"button",
|
|
6857
6857
|
{
|
|
6858
|
-
key:
|
|
6858
|
+
key: R.id,
|
|
6859
6859
|
className: $([
|
|
6860
6860
|
`${_}__aux-panel-item`,
|
|
6861
|
-
|
|
6861
|
+
R.isAlreadySelected ? `${_}__aux-panel-item--selected` : ""
|
|
6862
6862
|
]),
|
|
6863
|
-
onClick: () => ie(
|
|
6863
|
+
onClick: () => ie(R),
|
|
6864
6864
|
type: "button"
|
|
6865
6865
|
},
|
|
6866
|
-
|
|
6866
|
+
R.label
|
|
6867
6867
|
)))),
|
|
6868
6868
|
/* @__PURE__ */ e.createElement("div", { className: `${_}__aux-panel-header` }, /* @__PURE__ */ e.createElement(
|
|
6869
6869
|
"button",
|
|
@@ -7385,7 +7385,7 @@ const bt = ({
|
|
|
7385
7385
|
const X = L || C, K = typeof H < "u", ne = typeof c < "u", [U, A] = q(
|
|
7386
7386
|
ne ? c : ""
|
|
7387
7387
|
), ee = H || U, oe = (se) => {
|
|
7388
|
-
if (z && pe &&
|
|
7388
|
+
if (z && pe && Ce(!1), r && M === "url") {
|
|
7389
7389
|
const ie = d1(se.target.value), he = {
|
|
7390
7390
|
...se,
|
|
7391
7391
|
target: {
|
|
@@ -7411,8 +7411,8 @@ const bt = ({
|
|
|
7411
7411
|
K || A(""), f && f();
|
|
7412
7412
|
const se = document.getElementById(d);
|
|
7413
7413
|
se && se.focus();
|
|
7414
|
-
}, [pe,
|
|
7415
|
-
|
|
7414
|
+
}, [pe, Ce] = q(!1), ve = () => {
|
|
7415
|
+
Ce((ie) => !ie);
|
|
7416
7416
|
const se = document.getElementById(d);
|
|
7417
7417
|
se && se.focus();
|
|
7418
7418
|
};
|
|
@@ -7489,7 +7489,7 @@ const bt = ({
|
|
|
7489
7489
|
{
|
|
7490
7490
|
"aria-controls": d,
|
|
7491
7491
|
className: `${j}__visibility-toggle`,
|
|
7492
|
-
onClick:
|
|
7492
|
+
onClick: ve,
|
|
7493
7493
|
onMouseDown: (se) => se.preventDefault(),
|
|
7494
7494
|
title: pe ? P.visibilityToggleHide : P.visibilityToggleShow,
|
|
7495
7495
|
type: "button"
|
|
@@ -7585,6 +7585,19 @@ const bt = ({
|
|
|
7585
7585
|
/* @__PURE__ */ e.createElement(F, { className: `${r}__icon`, iconName: "externalLink" })
|
|
7586
7586
|
);
|
|
7587
7587
|
}, V0 = ({
|
|
7588
|
+
className: a,
|
|
7589
|
+
destination: l = "main",
|
|
7590
|
+
text: t = "Skip to main content",
|
|
7591
|
+
...c
|
|
7592
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
7593
|
+
"a",
|
|
7594
|
+
{
|
|
7595
|
+
className: $(["pds-skiplink", a]),
|
|
7596
|
+
href: `#${l}`,
|
|
7597
|
+
...c
|
|
7598
|
+
},
|
|
7599
|
+
t
|
|
7600
|
+
), R0 = ({
|
|
7588
7601
|
alt: a = "",
|
|
7589
7602
|
className: l,
|
|
7590
7603
|
height: t,
|
|
@@ -7605,7 +7618,7 @@ const bt = ({
|
|
|
7605
7618
|
...o
|
|
7606
7619
|
}
|
|
7607
7620
|
));
|
|
7608
|
-
},
|
|
7621
|
+
}, T0 = ({
|
|
7609
7622
|
ariaLabel: a,
|
|
7610
7623
|
children: l,
|
|
7611
7624
|
className: t,
|
|
@@ -7697,7 +7710,7 @@ const bt = ({
|
|
|
7697
7710
|
p && /* @__PURE__ */ e.createElement("div", { className: `${f}__footer` }, p)
|
|
7698
7711
|
))
|
|
7699
7712
|
));
|
|
7700
|
-
},
|
|
7713
|
+
}, F0 = ({
|
|
7701
7714
|
ariaLabel: a = "Breadcrumb",
|
|
7702
7715
|
className: l,
|
|
7703
7716
|
crumbs: t,
|
|
@@ -7707,7 +7720,7 @@ const bt = ({
|
|
|
7707
7720
|
if (d < s - 1)
|
|
7708
7721
|
return /* @__PURE__ */ e.createElement("li", { key: d, className: `${n}__crumb` }, r);
|
|
7709
7722
|
{
|
|
7710
|
-
const i =
|
|
7723
|
+
const i = we(r) ? Ne(r, {
|
|
7711
7724
|
"aria-current": "page"
|
|
7712
7725
|
}) : null;
|
|
7713
7726
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7757,7 +7770,7 @@ const bt = ({
|
|
|
7757
7770
|
let t = null;
|
|
7758
7771
|
if (typeof a == "string" && l) {
|
|
7759
7772
|
const c = l ? l[0].linkContent : null;
|
|
7760
|
-
|
|
7773
|
+
we(c) && (t = Ne(c, {
|
|
7761
7774
|
...typeof a == "string" ? { children: a } : {}
|
|
7762
7775
|
}));
|
|
7763
7776
|
} else
|
|
@@ -7773,13 +7786,13 @@ const bt = ({
|
|
|
7773
7786
|
];
|
|
7774
7787
|
if (t) {
|
|
7775
7788
|
const o = t[0].linkContent;
|
|
7776
|
-
|
|
7789
|
+
we(o) && (n = Ne(o, {
|
|
7777
7790
|
...typeof l == "string" ? { children: s } : {}
|
|
7778
7791
|
}));
|
|
7779
7792
|
} else
|
|
7780
7793
|
n = null;
|
|
7781
7794
|
}
|
|
7782
|
-
return
|
|
7795
|
+
return we(l) && (c ? n = Ne(
|
|
7783
7796
|
l,
|
|
7784
7797
|
Object.assign({}, l.props, {
|
|
7785
7798
|
children: [
|
|
@@ -7787,7 +7800,7 @@ const bt = ({
|
|
|
7787
7800
|
]
|
|
7788
7801
|
})
|
|
7789
7802
|
) : n = l), n;
|
|
7790
|
-
},
|
|
7803
|
+
}, A0 = ({
|
|
7791
7804
|
ariaLabel: a,
|
|
7792
7805
|
className: l,
|
|
7793
7806
|
menuItems: t,
|
|
@@ -7899,7 +7912,7 @@ const bt = ({
|
|
|
7899
7912
|
)),
|
|
7900
7913
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__status`, style: { pointerEvents: "none" } }, m)
|
|
7901
7914
|
);
|
|
7902
|
-
},
|
|
7915
|
+
}, O0 = ({
|
|
7903
7916
|
className: a,
|
|
7904
7917
|
disabled: l = !1,
|
|
7905
7918
|
horizontalOffset: t = 0,
|
|
@@ -7959,7 +7972,7 @@ const bt = ({
|
|
|
7959
7972
|
}
|
|
7960
7973
|
))
|
|
7961
7974
|
);
|
|
7962
|
-
},
|
|
7975
|
+
}, Z0 = ({
|
|
7963
7976
|
className: a,
|
|
7964
7977
|
headingText: l,
|
|
7965
7978
|
menuItems: t,
|
|
@@ -8394,7 +8407,7 @@ const bt = ({
|
|
|
8394
8407
|
case "sub-brand-small":
|
|
8395
8408
|
i = R2;
|
|
8396
8409
|
}
|
|
8397
|
-
const m =
|
|
8410
|
+
const m = we(c) && typeof c.props.children == "string" ? c.props.children : "", h = we(c) ? c.type : null, C = we(c) && h ? /* @__PURE__ */ e.createElement(
|
|
8398
8411
|
h,
|
|
8399
8412
|
{
|
|
8400
8413
|
...Object.assign({}, c.props, {
|
|
@@ -8417,7 +8430,7 @@ const bt = ({
|
|
|
8417
8430
|
c ? C : i,
|
|
8418
8431
|
n && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, n))
|
|
8419
8432
|
);
|
|
8420
|
-
},
|
|
8433
|
+
}, B0 = ({
|
|
8421
8434
|
children: a,
|
|
8422
8435
|
className: l,
|
|
8423
8436
|
colorType: t = "default",
|
|
@@ -8467,7 +8480,7 @@ const bt = ({
|
|
|
8467
8480
|
const z = Fe(a), w = z["items-left"], k = z["items-right"];
|
|
8468
8481
|
let P = "default";
|
|
8469
8482
|
(t === "reverse" || t === "reverse-transparent") && (P = "reverse");
|
|
8470
|
-
const M =
|
|
8483
|
+
const M = we(r) ? r.props.children : null, L = we(r) && M ? Ne(
|
|
8471
8484
|
r,
|
|
8472
8485
|
Object.assign({}, r.props, {
|
|
8473
8486
|
children: /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: d }),
|
|
@@ -8633,7 +8646,7 @@ const bt = ({
|
|
|
8633
8646
|
/* @__PURE__ */ e.createElement("div", { className: `${r}__flyout-heading` }, qe(n)),
|
|
8634
8647
|
h(s, "second-level-flyout")
|
|
8635
8648
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, t ? /* @__PURE__ */ e.createElement(
|
|
8636
|
-
|
|
8649
|
+
Le,
|
|
8637
8650
|
{
|
|
8638
8651
|
content: qe(n),
|
|
8639
8652
|
customTrigger: m,
|
|
@@ -8645,7 +8658,7 @@ const bt = ({
|
|
|
8645
8658
|
}
|
|
8646
8659
|
) : m)
|
|
8647
8660
|
);
|
|
8648
|
-
},
|
|
8661
|
+
}, j0 = ({
|
|
8649
8662
|
ariaLabel: a,
|
|
8650
8663
|
className: l,
|
|
8651
8664
|
isSidebarCollapsed: t,
|
|
@@ -8753,7 +8766,7 @@ const bt = ({
|
|
|
8753
8766
|
!f.isSeparator && f.linkContent
|
|
8754
8767
|
))
|
|
8755
8768
|
));
|
|
8756
|
-
},
|
|
8769
|
+
}, q0 = ({
|
|
8757
8770
|
ariaLabel: a = "Main Navigation",
|
|
8758
8771
|
className: l,
|
|
8759
8772
|
colorType: t = "default",
|
|
@@ -8953,7 +8966,7 @@ const bt = ({
|
|
|
8953
8966
|
},
|
|
8954
8967
|
/* @__PURE__ */ e.createElement("div", { style: { ...P } }, Z, /* @__PURE__ */ e.createElement("ul", { className: $([C, u]) }, B.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${h}__no-results` }, s) : B))
|
|
8955
8968
|
));
|
|
8956
|
-
},
|
|
8969
|
+
}, G0 = ({
|
|
8957
8970
|
ariaLabel: a,
|
|
8958
8971
|
className: l,
|
|
8959
8972
|
menuItems: t,
|
|
@@ -8970,7 +8983,7 @@ const bt = ({
|
|
|
8970
8983
|
}) => {
|
|
8971
8984
|
const f = `${s}__item`, b = l1(u), v = (E, g) => {
|
|
8972
8985
|
let _ = null;
|
|
8973
|
-
return
|
|
8986
|
+
return we(E) && (g ? _ = Ne(
|
|
8974
8987
|
E,
|
|
8975
8988
|
Object.assign({}, E.props, {
|
|
8976
8989
|
children: [
|
|
@@ -9032,7 +9045,7 @@ const bt = ({
|
|
|
9032
9045
|
},
|
|
9033
9046
|
/* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, d)
|
|
9034
9047
|
);
|
|
9035
|
-
},
|
|
9048
|
+
}, W0 = ({
|
|
9036
9049
|
ariaLabel: a = "User menu",
|
|
9037
9050
|
className: l,
|
|
9038
9051
|
menuItems: t = [],
|
|
@@ -9174,7 +9187,7 @@ const bt = ({
|
|
|
9174
9187
|
standard: { label: "Standard", color: "gaia" },
|
|
9175
9188
|
premium: { label: "Premium", color: "gaia" },
|
|
9176
9189
|
priority: { label: "Priority", color: "gaia" }
|
|
9177
|
-
},
|
|
9190
|
+
}, K0 = ({
|
|
9178
9191
|
ariaLabel: a = "Workspace selector menu",
|
|
9179
9192
|
className: l,
|
|
9180
9193
|
createWorkspaceLink: t,
|
|
@@ -9407,7 +9420,7 @@ const bt = ({
|
|
|
9407
9420
|
warning: "triangleExclamation",
|
|
9408
9421
|
critical: "diamondExclamation",
|
|
9409
9422
|
discovery: "bullhorn"
|
|
9410
|
-
}, T2 = 200, Ht = 50,
|
|
9423
|
+
}, T2 = 200, Ht = 50, Y0 = ({
|
|
9411
9424
|
banners: a,
|
|
9412
9425
|
className: l,
|
|
9413
9426
|
dataContext: t = "product",
|
|
@@ -9528,7 +9541,7 @@ const bt = ({
|
|
|
9528
9541
|
warning: "triangleExclamation",
|
|
9529
9542
|
success: "circleCheck",
|
|
9530
9543
|
critical: "diamondExclamation"
|
|
9531
|
-
},
|
|
9544
|
+
}, U0 = ({
|
|
9532
9545
|
className: a,
|
|
9533
9546
|
message: l,
|
|
9534
9547
|
title: t,
|
|
@@ -9589,7 +9602,7 @@ const bt = ({
|
|
|
9589
9602
|
},
|
|
9590
9603
|
/* @__PURE__ */ e.createElement(F, { "aria-hidden": "true", iconName: d, size: i })
|
|
9591
9604
|
);
|
|
9592
|
-
},
|
|
9605
|
+
}, X0 = ({
|
|
9593
9606
|
ariaLabel: a = "Notifications",
|
|
9594
9607
|
autoCloseOnClick: l = !0,
|
|
9595
9608
|
className: t,
|
|
@@ -9705,7 +9718,7 @@ const bt = ({
|
|
|
9705
9718
|
success: "circleCheck",
|
|
9706
9719
|
critical: "diamondExclamation",
|
|
9707
9720
|
discovery: "squareQuestion"
|
|
9708
|
-
},
|
|
9721
|
+
}, Q0 = ({
|
|
9709
9722
|
className: a,
|
|
9710
9723
|
ctaButton: l,
|
|
9711
9724
|
dataContext: t = "product",
|
|
@@ -9796,7 +9809,7 @@ const bt = ({
|
|
|
9796
9809
|
size: "l",
|
|
9797
9810
|
tabIndex: 0
|
|
9798
9811
|
}
|
|
9799
|
-
),
|
|
9812
|
+
), J0 = ({
|
|
9800
9813
|
className: a,
|
|
9801
9814
|
labelStrings: l = s4,
|
|
9802
9815
|
limit: t = 5,
|
|
@@ -9878,7 +9891,7 @@ const bt = ({
|
|
|
9878
9891
|
);
|
|
9879
9892
|
};
|
|
9880
9893
|
var Zt = /* @__PURE__ */ ((a) => (a.Critical = "critical", a.Info = "info", a.Success = "success", a.Warning = "warning", a.Working = "working", a))(Zt || {});
|
|
9881
|
-
const
|
|
9894
|
+
const ea = () => {
|
|
9882
9895
|
const a = (t, c, n = {}) => {
|
|
9883
9896
|
const s = n.toastId ?? Ye(), o = typeof n.autoClose == "number" ? Math.max(Rt, n.autoClose) : !1, r = /* @__PURE__ */ e.createElement(
|
|
9884
9897
|
Ot,
|
|
@@ -9946,7 +9959,7 @@ const J0 = () => {
|
|
|
9946
9959
|
d
|
|
9947
9960
|
];
|
|
9948
9961
|
}
|
|
9949
|
-
}, [c, t, a, l]),
|
|
9962
|
+
}, [c, t, a, l]), ta = ({
|
|
9950
9963
|
bufferCount: a = 1,
|
|
9951
9964
|
className: l,
|
|
9952
9965
|
currentPage: t,
|
|
@@ -9994,7 +10007,7 @@ const J0 = () => {
|
|
|
9994
10007
|
n
|
|
9995
10008
|
),
|
|
9996
10009
|
/* @__PURE__ */ e.createElement("ul", { className: `${f}__list` }, t !== 1 && /* @__PURE__ */ e.createElement("li", { className: $([b, `${b}--prev`]) }, /* @__PURE__ */ e.createElement(
|
|
9997
|
-
|
|
10010
|
+
Le,
|
|
9998
10011
|
{
|
|
9999
10012
|
content: o.previous,
|
|
10000
10013
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -10033,7 +10046,7 @@ const J0 = () => {
|
|
|
10033
10046
|
E
|
|
10034
10047
|
)
|
|
10035
10048
|
)), t !== C && /* @__PURE__ */ e.createElement("li", { className: $([b, `${b}--next`]) }, /* @__PURE__ */ e.createElement(
|
|
10036
|
-
|
|
10049
|
+
Le,
|
|
10037
10050
|
{
|
|
10038
10051
|
content: o.next,
|
|
10039
10052
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -10106,7 +10119,7 @@ const J0 = () => {
|
|
|
10106
10119
|
),
|
|
10107
10120
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__count` }, s.of, " ", m),
|
|
10108
10121
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__nav` }, /* @__PURE__ */ e.createElement(
|
|
10109
|
-
|
|
10122
|
+
Le,
|
|
10110
10123
|
{
|
|
10111
10124
|
content: s.previous,
|
|
10112
10125
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -10125,7 +10138,7 @@ const J0 = () => {
|
|
|
10125
10138
|
)
|
|
10126
10139
|
}
|
|
10127
10140
|
), /* @__PURE__ */ e.createElement(
|
|
10128
|
-
|
|
10141
|
+
Le,
|
|
10129
10142
|
{
|
|
10130
10143
|
content: s.next,
|
|
10131
10144
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -10145,7 +10158,7 @@ const J0 = () => {
|
|
|
10145
10158
|
}
|
|
10146
10159
|
))
|
|
10147
10160
|
);
|
|
10148
|
-
},
|
|
10161
|
+
}, aa = ({
|
|
10149
10162
|
className: a,
|
|
10150
10163
|
currentPage: l,
|
|
10151
10164
|
headingLevel: t = "h2",
|
|
@@ -10209,7 +10222,7 @@ const J0 = () => {
|
|
|
10209
10222
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__nav` }, /* @__PURE__ */ e.createElement("span", null, o), /* @__PURE__ */ e.createElement(F, { iconName: "angleRight", size: "m" }))
|
|
10210
10223
|
)
|
|
10211
10224
|
);
|
|
10212
|
-
},
|
|
10225
|
+
}, sa = ({
|
|
10213
10226
|
children: a,
|
|
10214
10227
|
className: l,
|
|
10215
10228
|
id: t,
|
|
@@ -10242,7 +10255,7 @@ const J0 = () => {
|
|
|
10242
10255
|
}
|
|
10243
10256
|
)), /* @__PURE__ */ e.createElement("div", { className: `${h}__content` }, a))
|
|
10244
10257
|
);
|
|
10245
|
-
},
|
|
10258
|
+
}, la = ({
|
|
10246
10259
|
children: a,
|
|
10247
10260
|
className: l,
|
|
10248
10261
|
displayType: t = "standard",
|
|
@@ -10257,7 +10270,7 @@ const J0 = () => {
|
|
|
10257
10270
|
},
|
|
10258
10271
|
a
|
|
10259
10272
|
);
|
|
10260
|
-
},
|
|
10273
|
+
}, ca = ({
|
|
10261
10274
|
children: a,
|
|
10262
10275
|
className: l,
|
|
10263
10276
|
padding: t = "standard",
|
|
@@ -10273,7 +10286,7 @@ const J0 = () => {
|
|
|
10273
10286
|
},
|
|
10274
10287
|
/* @__PURE__ */ e.createElement("div", { className: $([r, d]) }, a)
|
|
10275
10288
|
);
|
|
10276
|
-
},
|
|
10289
|
+
}, na = ({
|
|
10277
10290
|
background: a = "default",
|
|
10278
10291
|
children: l,
|
|
10279
10292
|
className: t,
|
|
@@ -10296,7 +10309,7 @@ const J0 = () => {
|
|
|
10296
10309
|
},
|
|
10297
10310
|
l
|
|
10298
10311
|
);
|
|
10299
|
-
},
|
|
10312
|
+
}, ra = ({
|
|
10300
10313
|
children: a,
|
|
10301
10314
|
className: l,
|
|
10302
10315
|
expandButtonAriaLabel: t,
|
|
@@ -10361,7 +10374,7 @@ const J0 = () => {
|
|
|
10361
10374
|
/* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, u)
|
|
10362
10375
|
)
|
|
10363
10376
|
);
|
|
10364
|
-
}, je = 8, C1 = 14, qt = 6,
|
|
10377
|
+
}, je = 8, C1 = 14, qt = 6, oa = ({
|
|
10365
10378
|
className: a,
|
|
10366
10379
|
classNameContainer: l,
|
|
10367
10380
|
closeButtonLabel: t = "Close",
|
|
@@ -10488,7 +10501,7 @@ const J0 = () => {
|
|
|
10488
10501
|
success: "--pds-color-status-success-foreground",
|
|
10489
10502
|
warning: "--pds-color-status-warning-foreground",
|
|
10490
10503
|
critical: "--pds-color-status-critical-foreground"
|
|
10491
|
-
},
|
|
10504
|
+
}, ia = ({
|
|
10492
10505
|
className: a,
|
|
10493
10506
|
colorBreakpoints: l = [
|
|
10494
10507
|
{ colorType: "info", percentage: 0 },
|
|
@@ -10638,20 +10651,7 @@ const J0 = () => {
|
|
|
10638
10651
|
)
|
|
10639
10652
|
)
|
|
10640
10653
|
);
|
|
10641
|
-
},
|
|
10642
|
-
className: a,
|
|
10643
|
-
destination: l = "main",
|
|
10644
|
-
text: t = "Skip to main content",
|
|
10645
|
-
...c
|
|
10646
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
10647
|
-
"a",
|
|
10648
|
-
{
|
|
10649
|
-
className: $(["pds-skiplink", a]),
|
|
10650
|
-
href: `#${l}`,
|
|
10651
|
-
...c
|
|
10652
|
-
},
|
|
10653
|
-
t
|
|
10654
|
-
), da = ({
|
|
10654
|
+
}, da = ({
|
|
10655
10655
|
alignment: a = "left",
|
|
10656
10656
|
className: l,
|
|
10657
10657
|
componentWidth: t,
|
|
@@ -10717,7 +10717,7 @@ const J0 = () => {
|
|
|
10717
10717
|
},
|
|
10718
10718
|
a === "right" && f,
|
|
10719
10719
|
/* @__PURE__ */ e.createElement(
|
|
10720
|
-
|
|
10720
|
+
Le,
|
|
10721
10721
|
{
|
|
10722
10722
|
content: d.tooltipContent || d.ariaLabel,
|
|
10723
10723
|
customTrigger: p,
|
|
@@ -10985,8 +10985,8 @@ const J0 = () => {
|
|
|
10985
10985
|
order: c !== void 0 ? n : "asc"
|
|
10986
10986
|
}), [I, V] = q(1), [x, G] = q(
|
|
10987
10987
|
u ?? g?.[0] ?? 10
|
|
10988
|
-
), W = S ? u ?? 10 : x, y = (
|
|
10989
|
-
Y ? b(
|
|
10988
|
+
), W = S ? u ?? 10 : x, y = (T) => {
|
|
10989
|
+
Y ? b(T) : G(T), S || V(1);
|
|
10990
10990
|
};
|
|
10991
10991
|
ae(() => {
|
|
10992
10992
|
S || V(1);
|
|
@@ -10998,19 +10998,23 @@ const J0 = () => {
|
|
|
10998
10998
|
const X = v !== void 0, K = z !== void 0, [ne, U] = q(
|
|
10999
10999
|
/* @__PURE__ */ new Set()
|
|
11000
11000
|
), A = K ? new Set(z) : ne, ee = Me(
|
|
11001
|
-
() => new Map(_.map((
|
|
11001
|
+
() => new Map(_.map((T, J) => [T, J])),
|
|
11002
11002
|
[_]
|
|
11003
|
-
), oe = (
|
|
11003
|
+
), oe = (T, J) => i ? i(T) : String(ee.get(T) ?? J), Q = O ? w ?? "" : Z.key, me = O ? k ?? "asc" : Z.order, pe = Me(() => {
|
|
11004
11004
|
if (C) return [];
|
|
11005
|
-
let
|
|
11006
|
-
if (!O && Z.key !== ""
|
|
11007
|
-
const
|
|
11008
|
-
|
|
11009
|
-
|
|
11005
|
+
let T = _;
|
|
11006
|
+
if (!O && Z.key !== "") {
|
|
11007
|
+
const fe = l.find((R) => R.id === Z.key)?.sortKey ?? Z.key;
|
|
11008
|
+
T = [...T].sort((R, le) => {
|
|
11009
|
+
const Ee = String(R[fe]).localeCompare(String(le[fe]));
|
|
11010
|
+
return Z.order === "asc" ? Ee : -Ee;
|
|
11011
|
+
});
|
|
11012
|
+
}
|
|
11013
|
+
if (!S && j && W) {
|
|
11010
11014
|
const J = (I - 1) * W;
|
|
11011
|
-
|
|
11015
|
+
T = T.slice(J, J + W);
|
|
11012
11016
|
}
|
|
11013
|
-
return
|
|
11017
|
+
return T;
|
|
11014
11018
|
}, [
|
|
11015
11019
|
_,
|
|
11016
11020
|
Z,
|
|
@@ -11020,21 +11024,21 @@ const J0 = () => {
|
|
|
11020
11024
|
I,
|
|
11021
11025
|
W,
|
|
11022
11026
|
C
|
|
11023
|
-
]),
|
|
11024
|
-
O ? E(
|
|
11025
|
-
key:
|
|
11026
|
-
order: J.key ===
|
|
11027
|
+
]), Ce = (T) => {
|
|
11028
|
+
O ? E(T, w === T && k === "asc" ? "desc" : "asc") : B((J) => ({
|
|
11029
|
+
key: T,
|
|
11030
|
+
order: J.key === T && J.order === "asc" ? "desc" : "asc"
|
|
11027
11031
|
}));
|
|
11028
|
-
},
|
|
11029
|
-
const
|
|
11030
|
-
return J === "top" &&
|
|
11031
|
-
}, se = pe.map((
|
|
11032
|
+
}, ve = (T) => Q !== T ? "none" : me === "asc" ? "ascending" : "descending", ge = (T, J) => {
|
|
11033
|
+
const fe = Q === T, R = Q !== "" && !fe, le = `${L}__sort-button-${J}`;
|
|
11034
|
+
return J === "top" && R ? `${le}--inactive` : fe && me === "desc" ? `${le}--desc` : "";
|
|
11035
|
+
}, se = pe.map((T, J) => oe(T, J)), ie = se.length > 0 && se.every((T) => A.has(T)), he = !ie && se.some((T) => A.has(T)), Se = (T) => {
|
|
11032
11036
|
const J = new Set(A);
|
|
11033
|
-
J.has(
|
|
11034
|
-
},
|
|
11035
|
-
const
|
|
11036
|
-
ie || he ? se.forEach((J) =>
|
|
11037
|
-
}, be = (
|
|
11037
|
+
J.has(T) ? J.delete(T) : J.add(T), K || U(J), v?.(Array.from(J));
|
|
11038
|
+
}, ce = () => {
|
|
11039
|
+
const T = new Set(A);
|
|
11040
|
+
ie || he ? se.forEach((J) => T.delete(J)) : se.forEach((J) => T.add(J)), K || U(T), v?.(Array.from(T));
|
|
11041
|
+
}, be = (T) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${T}` }, X && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 1, width: 1 } })), l.map((J) => /* @__PURE__ */ e.createElement("td", { key: `skeleton-${T}-${J.id}` }, /* @__PURE__ */ e.createElement(Ge, { shape: "rounded", size: { height: 1 } })))), ue = () => /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement(
|
|
11038
11042
|
"td",
|
|
11039
11043
|
{
|
|
11040
11044
|
className: "pds-table__empty-cell",
|
|
@@ -11048,18 +11052,18 @@ const J0 = () => {
|
|
|
11048
11052
|
message: r
|
|
11049
11053
|
}
|
|
11050
11054
|
)
|
|
11051
|
-
)), _e = (
|
|
11052
|
-
const
|
|
11053
|
-
return /* @__PURE__ */ e.createElement("tr", { key: `row-${
|
|
11055
|
+
)), _e = (T, J) => {
|
|
11056
|
+
const fe = oe(T, J);
|
|
11057
|
+
return /* @__PURE__ */ e.createElement("tr", { key: `row-${fe}` }, X && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11054
11058
|
G2,
|
|
11055
11059
|
{
|
|
11056
|
-
checked: A.has(
|
|
11057
|
-
id: `${H}-row-${
|
|
11058
|
-
label: m(
|
|
11059
|
-
onChange: () => Se(
|
|
11060
|
+
checked: A.has(fe),
|
|
11061
|
+
id: `${H}-row-${fe}`,
|
|
11062
|
+
label: m(T, J + 1),
|
|
11063
|
+
onChange: () => Se(fe),
|
|
11060
11064
|
showLabel: !1
|
|
11061
11065
|
}
|
|
11062
|
-
)), l.map((
|
|
11066
|
+
)), l.map((R) => /* @__PURE__ */ e.createElement("td", { key: `${fe}-${R.id}` }, T[R.id])));
|
|
11063
11067
|
};
|
|
11064
11068
|
return /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
11065
11069
|
"table",
|
|
@@ -11075,24 +11079,24 @@ const J0 = () => {
|
|
|
11075
11079
|
id: H,
|
|
11076
11080
|
indeterminate: he,
|
|
11077
11081
|
label: N,
|
|
11078
|
-
onChange:
|
|
11082
|
+
onChange: ce,
|
|
11079
11083
|
showLabel: !1
|
|
11080
11084
|
}
|
|
11081
|
-
)), l.map((
|
|
11085
|
+
)), l.map((T) => /* @__PURE__ */ e.createElement(
|
|
11082
11086
|
"th",
|
|
11083
11087
|
{
|
|
11084
|
-
key:
|
|
11085
|
-
"aria-sort":
|
|
11088
|
+
key: T.id,
|
|
11089
|
+
"aria-sort": T.sortable ? ve(T.id) : void 0
|
|
11086
11090
|
},
|
|
11087
|
-
|
|
11091
|
+
T.sortable ? /* @__PURE__ */ e.createElement(
|
|
11088
11092
|
"button",
|
|
11089
11093
|
{
|
|
11090
|
-
"aria-label": h(N2(
|
|
11094
|
+
"aria-label": h(N2(T.header)),
|
|
11091
11095
|
className: `${L}__sort-button`,
|
|
11092
|
-
onClick: () =>
|
|
11096
|
+
onClick: () => Ce(T.id),
|
|
11093
11097
|
type: "button"
|
|
11094
11098
|
},
|
|
11095
|
-
|
|
11099
|
+
T.header,
|
|
11096
11100
|
/* @__PURE__ */ e.createElement(
|
|
11097
11101
|
"span",
|
|
11098
11102
|
{
|
|
@@ -11104,7 +11108,7 @@ const J0 = () => {
|
|
|
11104
11108
|
{
|
|
11105
11109
|
className: $([
|
|
11106
11110
|
`${L}__sort-button-top`,
|
|
11107
|
-
ge(
|
|
11111
|
+
ge(T.id, "top")
|
|
11108
11112
|
])
|
|
11109
11113
|
},
|
|
11110
11114
|
/* @__PURE__ */ e.createElement(F, { iconName: "caretUp", size: "m" })
|
|
@@ -11114,28 +11118,28 @@ const J0 = () => {
|
|
|
11114
11118
|
{
|
|
11115
11119
|
className: $([
|
|
11116
11120
|
`${L}__sort-button-bottom`,
|
|
11117
|
-
ge(
|
|
11121
|
+
ge(T.id, "bottom")
|
|
11118
11122
|
])
|
|
11119
11123
|
},
|
|
11120
11124
|
/* @__PURE__ */ e.createElement(F, { iconName: "caretDown", size: "m" })
|
|
11121
11125
|
)
|
|
11122
11126
|
)
|
|
11123
|
-
) : /* @__PURE__ */ e.createElement("span", null,
|
|
11127
|
+
) : /* @__PURE__ */ e.createElement("span", null, T.header)
|
|
11124
11128
|
)))),
|
|
11125
11129
|
/* @__PURE__ */ e.createElement("tbody", null, C ? Array.from(
|
|
11126
11130
|
{ length: p },
|
|
11127
|
-
(
|
|
11128
|
-
) : pe.length === 0 ? ue() : pe.map((
|
|
11131
|
+
(T, J) => be(J)
|
|
11132
|
+
) : pe.length === 0 ? ue() : pe.map((T, J) => _e(T, J)))
|
|
11129
11133
|
), j && !C && (S || _.length > 0) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, g && g.length > 0 && /* @__PURE__ */ e.createElement(
|
|
11130
11134
|
x2,
|
|
11131
11135
|
{
|
|
11132
11136
|
autoWidth: !0,
|
|
11133
11137
|
id: D,
|
|
11134
11138
|
label: "Rows per page",
|
|
11135
|
-
onOptionSelect: (
|
|
11136
|
-
options: g.map((
|
|
11137
|
-
label: d(
|
|
11138
|
-
value: String(
|
|
11139
|
+
onOptionSelect: (T) => y(Number(T.value)),
|
|
11140
|
+
options: g.map((T) => ({
|
|
11141
|
+
label: d(T),
|
|
11142
|
+
value: String(T)
|
|
11139
11143
|
})),
|
|
11140
11144
|
showLabel: !1,
|
|
11141
11145
|
size: "s",
|
|
@@ -11357,7 +11361,7 @@ const J0 = () => {
|
|
|
11357
11361
|
m((g) => !g);
|
|
11358
11362
|
};
|
|
11359
11363
|
let b, v, E;
|
|
11360
|
-
if (t && !l &&
|
|
11364
|
+
if (t && !l && we(t)) {
|
|
11361
11365
|
b = t.type;
|
|
11362
11366
|
const g = t.props;
|
|
11363
11367
|
v = g.href ? "href" : "to", E = v === "href" ? g.href : g.to;
|
|
@@ -11417,7 +11421,7 @@ const J0 = () => {
|
|
|
11417
11421
|
label: t[i]
|
|
11418
11422
|
}));
|
|
11419
11423
|
return /* @__PURE__ */ e.createElement("div", { className: $([o, a]), ...s }, /* @__PURE__ */ e.createElement(
|
|
11420
|
-
|
|
11424
|
+
Le,
|
|
11421
11425
|
{
|
|
11422
11426
|
content: r,
|
|
11423
11427
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -11561,7 +11565,7 @@ const J0 = () => {
|
|
|
11561
11565
|
style: D
|
|
11562
11566
|
},
|
|
11563
11567
|
s && /* @__PURE__ */ e.createElement(
|
|
11564
|
-
|
|
11568
|
+
Le,
|
|
11565
11569
|
{
|
|
11566
11570
|
className: `${P}__sidebar-toggle-tooltip`,
|
|
11567
11571
|
content: w ? i.expandSidebar : i.collapseSidebar,
|
|
@@ -11804,13 +11808,13 @@ export {
|
|
|
11804
11808
|
va as AppLayout,
|
|
11805
11809
|
_2 as Avatar,
|
|
11806
11810
|
L4 as Badge,
|
|
11807
|
-
|
|
11811
|
+
Y0 as Banner,
|
|
11808
11812
|
v0 as BarChart,
|
|
11809
11813
|
o0 as BranchDiff,
|
|
11810
|
-
|
|
11814
|
+
F0 as Breadcrumb,
|
|
11811
11815
|
Ae as Button,
|
|
11812
11816
|
tt as ButtonLink,
|
|
11813
|
-
|
|
11817
|
+
A0 as ButtonNav,
|
|
11814
11818
|
H0 as CTALink,
|
|
11815
11819
|
g0 as Callout,
|
|
11816
11820
|
f0 as Card,
|
|
@@ -11825,13 +11829,13 @@ export {
|
|
|
11825
11829
|
a1 as CompactEmptyState,
|
|
11826
11830
|
b0 as ComparisonList,
|
|
11827
11831
|
V2 as Container,
|
|
11828
|
-
|
|
11832
|
+
O0 as DashboardSearch,
|
|
11829
11833
|
_a as DocsLayout,
|
|
11830
11834
|
ut as Drawer,
|
|
11831
11835
|
n2 as Dropdown,
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11836
|
+
Z0 as DropdownMenu,
|
|
11837
|
+
sa as ExpansionPanel,
|
|
11838
|
+
la as ExpansionPanelGroup,
|
|
11835
11839
|
w0 as FileDiff,
|
|
11836
11840
|
k0 as FileUpload,
|
|
11837
11841
|
wa as FlexContainer,
|
|
@@ -11840,45 +11844,45 @@ export {
|
|
|
11840
11844
|
F as Icon,
|
|
11841
11845
|
d2 as IconButton,
|
|
11842
11846
|
y0 as IdentityBlock,
|
|
11843
|
-
|
|
11847
|
+
U0 as InlineMessage,
|
|
11844
11848
|
x0 as InputGroup,
|
|
11845
11849
|
_0 as LineChart,
|
|
11846
11850
|
S0 as LinkNewWindow,
|
|
11847
11851
|
Rt as MIN_AUTO_CLOSE_DURATION,
|
|
11848
11852
|
j1 as MenuButton,
|
|
11849
|
-
|
|
11850
|
-
|
|
11853
|
+
T0 as Modal,
|
|
11854
|
+
B0 as Navbar,
|
|
11851
11855
|
Vt as NotificationHubIcon,
|
|
11852
|
-
|
|
11853
|
-
|
|
11856
|
+
X0 as NotificationsPopover,
|
|
11857
|
+
ta as Pagination,
|
|
11854
11858
|
jt as PaginationCompact,
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
+
aa as PaginationMini,
|
|
11860
|
+
ca as Panel,
|
|
11861
|
+
na as PanelList,
|
|
11862
|
+
ra as PanelRow,
|
|
11859
11863
|
kt as PantheonLogo,
|
|
11860
11864
|
L0 as PaymentIcon,
|
|
11861
|
-
|
|
11865
|
+
R0 as Picture,
|
|
11862
11866
|
q1 as PlatformIcon,
|
|
11863
|
-
|
|
11864
|
-
|
|
11867
|
+
oa as Popover,
|
|
11868
|
+
ia as ProgressBar,
|
|
11865
11869
|
Gt as ProgressRing,
|
|
11866
11870
|
D0 as RadioGroup,
|
|
11867
11871
|
p0 as SSOButton,
|
|
11868
|
-
|
|
11872
|
+
Q0 as SectionMessage,
|
|
11869
11873
|
u0 as SegmentedButton,
|
|
11870
11874
|
x2 as Select,
|
|
11871
11875
|
rt as SelectOptionGroup,
|
|
11872
|
-
|
|
11876
|
+
j0 as SideNavGlobal,
|
|
11873
11877
|
xt as SideNavGlobalItem,
|
|
11874
11878
|
ba as SidebarLayout,
|
|
11875
|
-
|
|
11879
|
+
q0 as SiteMenu,
|
|
11876
11880
|
zt as SiteOptionDisplay,
|
|
11877
11881
|
d0 as SitePlanLevelLabel,
|
|
11878
11882
|
st as SiteTypeIcon,
|
|
11879
11883
|
m0 as SiteTypeLabel,
|
|
11880
11884
|
Ge as Skeleton,
|
|
11881
|
-
|
|
11885
|
+
V0 as Skiplink,
|
|
11882
11886
|
p2 as Spinner,
|
|
11883
11887
|
ct as SplitButton,
|
|
11884
11888
|
y4 as StatusBadge,
|
|
@@ -11887,7 +11891,7 @@ export {
|
|
|
11887
11891
|
k2 as StatusTypeLabels,
|
|
11888
11892
|
ua as Stepper,
|
|
11889
11893
|
P0 as Switch,
|
|
11890
|
-
|
|
11894
|
+
G0 as TabMenu,
|
|
11891
11895
|
ha as Table,
|
|
11892
11896
|
ga as Tabs,
|
|
11893
11897
|
fa as Tag,
|
|
@@ -11898,16 +11902,16 @@ export {
|
|
|
11898
11902
|
Ea as ThreeItemLayout,
|
|
11899
11903
|
Ot as Toast,
|
|
11900
11904
|
Zt as ToastType,
|
|
11901
|
-
|
|
11905
|
+
J0 as Toaster,
|
|
11902
11906
|
l4 as ToasterContext,
|
|
11903
|
-
|
|
11907
|
+
Le as Tooltip,
|
|
11904
11908
|
$a as TwoItemLayout,
|
|
11905
|
-
|
|
11909
|
+
W0 as UserMenu,
|
|
11906
11910
|
h0 as UtilityButton,
|
|
11907
11911
|
$0 as VerticalEmptyState,
|
|
11908
11912
|
pa as VerticalStepper,
|
|
11909
11913
|
bt as VideoEmbed,
|
|
11910
|
-
|
|
11914
|
+
K0 as WorkspaceSelector,
|
|
11911
11915
|
r0 as iconList,
|
|
11912
11916
|
Je as isHeadingItemType,
|
|
11913
11917
|
Ve as isLinkItemType,
|
|
@@ -11919,7 +11923,7 @@ export {
|
|
|
11919
11923
|
Ue as useDropdown,
|
|
11920
11924
|
q2 as useKeyPress,
|
|
11921
11925
|
ya as useMediaQuery,
|
|
11922
|
-
|
|
11926
|
+
ea as useToast,
|
|
11923
11927
|
za as useWindowWidth
|
|
11924
11928
|
};
|
|
11925
11929
|
//# sourceMappingURL=index.js.map
|