@pantheon-systems/pds-toolkit-react 1.0.0-dev.159 → 1.0.0-dev.160
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/Icon/Icon.d.ts +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +92 -92
- package/_dist/index.js +302 -302
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -1,88 +1,35 @@
|
|
|
1
1
|
import './index.css';var Bs = Object.defineProperty, Fs = Object.defineProperties;
|
|
2
2
|
var Ws = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ht = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ts = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var es = (s, n, a) => n in s ? Bs(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a, w = (s, n) => {
|
|
6
6
|
for (var a in n || (n = {}))
|
|
7
|
-
|
|
7
|
+
ts.call(n, a) && es(s, a, n[a]);
|
|
8
8
|
if (ht)
|
|
9
9
|
for (var a of ht(n))
|
|
10
|
-
|
|
10
|
+
ss.call(n, a) && es(s, a, n[a]);
|
|
11
11
|
return s;
|
|
12
12
|
}, Ee = (s, n) => Fs(s, Ws(n));
|
|
13
13
|
var T = (s, n) => {
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var c in s)
|
|
16
|
-
|
|
16
|
+
ts.call(s, c) && n.indexOf(c) < 0 && (a[c] = s[c]);
|
|
17
17
|
if (s != null && ht)
|
|
18
18
|
for (var c of ht(s))
|
|
19
|
-
n.indexOf(c) < 0 &&
|
|
19
|
+
n.indexOf(c) < 0 && ss.call(s, c) && (a[c] = s[c]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
import e, {
|
|
23
|
-
import gs from "hash-sum";
|
|
22
|
+
import e, { createContext as Ct, useState as R, useContext as ke, forwardRef as Ke, cloneElement as ft, useRef as ee, useEffect as ae, isValidElement as jt, useLayoutEffect as Zs, useCallback as Bt } from "react";
|
|
24
23
|
import t from "prop-types";
|
|
25
|
-
import { NavLink as
|
|
26
|
-
import { useFloating as Se, offset as
|
|
24
|
+
import { NavLink as gs, MemoryRouter as Us } from "react-router-dom";
|
|
25
|
+
import { useFloating as Se, offset as Ft, flip as Wt, shift as Zt, autoUpdate as De, useHover as bt, useFocus as hs, useDismiss as Ie, useRole as Te, useInteractions as Oe, useId as Gs, useListNavigation as it, useTransitionStyles as Ye, useClick as lt, safePolygon as fs, FloatingOverlay as Ks, FloatingFocusManager as bs, arrow as Ys, FloatingArrow as Xs } from "@floating-ui/react";
|
|
27
26
|
import { useHotkeys as Qs } from "react-hotkeys-hook";
|
|
28
27
|
import { useMeasure as $t } from "@reactuses/core";
|
|
29
28
|
import { useFloating as Js, flip as e1 } from "@floating-ui/react-dom";
|
|
29
|
+
import vs from "hash-sum";
|
|
30
30
|
import t1 from "focus-trap-react";
|
|
31
|
-
import { ToastContainer as s1, Slide as n1, cssTransition as a1, toast as
|
|
32
|
-
|
|
33
|
-
"g01",
|
|
34
|
-
"g02",
|
|
35
|
-
"g03",
|
|
36
|
-
"g04",
|
|
37
|
-
"g05",
|
|
38
|
-
"g06",
|
|
39
|
-
"g07",
|
|
40
|
-
"g08",
|
|
41
|
-
"g09",
|
|
42
|
-
"g10",
|
|
43
|
-
"g11",
|
|
44
|
-
"g12"
|
|
45
|
-
];
|
|
46
|
-
const l1 = (s) => {
|
|
47
|
-
const n = parseInt(gs(s), 16);
|
|
48
|
-
return ns[n % ns.length];
|
|
49
|
-
}, ot = (l) => {
|
|
50
|
-
var i = l, {
|
|
51
|
-
size: s = "md",
|
|
52
|
-
imageSrc: n,
|
|
53
|
-
linkContent: a,
|
|
54
|
-
uniqueId: c,
|
|
55
|
-
className: r
|
|
56
|
-
} = i, o = T(i, [
|
|
57
|
-
"size",
|
|
58
|
-
"imageSrc",
|
|
59
|
-
"linkContent",
|
|
60
|
-
"uniqueId",
|
|
61
|
-
"className"
|
|
62
|
-
]);
|
|
63
|
-
const m = "pds-avatar", p = `${m}--${s}`, g = n ? `${m}--image` : null, u = {
|
|
64
|
-
backgroundImage: c ? `var(--pds-color-gradient-avatar-${l1(c)})` : null,
|
|
65
|
-
borderRadius: "100%",
|
|
66
|
-
height: "100%",
|
|
67
|
-
width: "100%"
|
|
68
|
-
};
|
|
69
|
-
let b, E, $;
|
|
70
|
-
return jt(a) ? (b = a.type, E = a.props.href ? "href" : "to", $ = E === "href" ? a.props.href : a.props.to) : (b = "div", E = null, $ = null), /* @__PURE__ */ e.createElement("div", { className: [m, p].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement(
|
|
71
|
-
b,
|
|
72
|
-
w({
|
|
73
|
-
href: E === "href" ? $ : null,
|
|
74
|
-
to: E === "to" ? $ : null,
|
|
75
|
-
className: [m + "__inner", p, g, r].join(" ").trim().replace(/\s+/g, " ")
|
|
76
|
-
}, o),
|
|
77
|
-
n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${m}__image`, alt: "" }) : /* @__PURE__ */ e.createElement(
|
|
78
|
-
"span",
|
|
79
|
-
{
|
|
80
|
-
style: u,
|
|
81
|
-
className: !c && s === "sm" ? `${m}__user-fallback` : null
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
));
|
|
85
|
-
}, c1 = (r) => {
|
|
31
|
+
import { ToastContainer as s1, Slide as n1, cssTransition as a1, toast as ns } from "react-toastify";
|
|
32
|
+
const l1 = (r) => {
|
|
86
33
|
var o = r, {
|
|
87
34
|
darkBackground: s,
|
|
88
35
|
listItems: n,
|
|
@@ -129,7 +76,7 @@ const l1 = (s) => {
|
|
|
129
76
|
})
|
|
130
77
|
);
|
|
131
78
|
};
|
|
132
|
-
|
|
79
|
+
l1.propTypes = {
|
|
133
80
|
/**
|
|
134
81
|
* Boolean to set for dark background
|
|
135
82
|
*/
|
|
@@ -152,7 +99,7 @@ c1.propTypes = {
|
|
|
152
99
|
*/
|
|
153
100
|
className: t.string
|
|
154
101
|
};
|
|
155
|
-
const
|
|
102
|
+
const c1 = {
|
|
156
103
|
crumbs: [],
|
|
157
104
|
deferredCrumbIds: [],
|
|
158
105
|
register: () => {
|
|
@@ -163,7 +110,7 @@ const r1 = {
|
|
|
163
110
|
},
|
|
164
111
|
resolveCrumb: () => {
|
|
165
112
|
}
|
|
166
|
-
}, Es = Ct(
|
|
113
|
+
}, Es = Ct(c1), A = (r) => {
|
|
167
114
|
var o = r, {
|
|
168
115
|
iconName: s,
|
|
169
116
|
iconSize: n = "md",
|
|
@@ -790,7 +737,7 @@ const r1 = {
|
|
|
790
737
|
path: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z",
|
|
791
738
|
width: "576"
|
|
792
739
|
}
|
|
793
|
-
}, as = Object.keys(qt), zt = 300,
|
|
740
|
+
}, as = Object.keys(qt), zt = 300, r1 = 400, ls = 8, vt = (p) => {
|
|
794
741
|
var g = p, {
|
|
795
742
|
content: s,
|
|
796
743
|
customTrigger: n = !1,
|
|
@@ -818,21 +765,21 @@ const r1 = {
|
|
|
818
765
|
open: d,
|
|
819
766
|
onOpenChange: u,
|
|
820
767
|
middleware: [
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
768
|
+
Ft(h),
|
|
769
|
+
Wt({ padding: 5 }),
|
|
770
|
+
Zt({ padding: 5 })
|
|
824
771
|
],
|
|
825
772
|
whileElementsMounted: De
|
|
826
773
|
}), v = bt(C, {
|
|
827
774
|
restMs: 300,
|
|
828
775
|
delay: { open: 500, close: 0 },
|
|
829
776
|
move: !1
|
|
830
|
-
}), y =
|
|
777
|
+
}), y = hs(C), L = Ie(C), k = Te(C, { role: "tooltip" }), { getReferenceProps: x, getFloatingProps: N } = Oe([
|
|
831
778
|
v,
|
|
832
779
|
y,
|
|
833
780
|
L,
|
|
834
781
|
k
|
|
835
|
-
]), M =
|
|
782
|
+
]), M = r1, z = Ee(w({}, f), {
|
|
836
783
|
zIndex: a || M
|
|
837
784
|
});
|
|
838
785
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -875,16 +822,16 @@ const r1 = {
|
|
|
875
822
|
);
|
|
876
823
|
}, Fe = ({ crumb: s, lastCrumb: n, classes: a }) => {
|
|
877
824
|
const c = s.label.length > 16 ? `${s.label.slice(0, 16)}...` : null;
|
|
878
|
-
return /* @__PURE__ */ e.createElement("li", { className: `${a || ""}`, key: `key-${s.label}` }, n ? /* @__PURE__ */ e.createElement("a", { className: "pds-breadcrumbs__disabled" }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(vt, { content: s.label, triggerText: c }) : s.label) : /* @__PURE__ */ e.createElement(
|
|
825
|
+
return /* @__PURE__ */ e.createElement("li", { className: `${a || ""}`, key: `key-${s.label}` }, n ? /* @__PURE__ */ e.createElement("a", { className: "pds-breadcrumbs__disabled" }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(vt, { content: s.label, triggerText: c }) : s.label) : /* @__PURE__ */ e.createElement(gs, { end: !0, to: s.uri }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(vt, { content: s.label, triggerText: c }) : s.label));
|
|
879
826
|
};
|
|
880
827
|
Fe.propTypes = {
|
|
881
828
|
crumb: t.object,
|
|
882
829
|
lastCrumb: t.bool,
|
|
883
830
|
classes: t.string
|
|
884
831
|
};
|
|
885
|
-
const
|
|
832
|
+
const o1 = (s) => /* @__PURE__ */ e.createElement(gs, { className: "pds-breadcrumbs__mobileCrumbs", end: !0, to: s.uri }, /* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" }), s.label), i1 = (s, n) => s.uri.split("/").length - n.uri.split("/").length, _s = (a) => {
|
|
886
833
|
var c = a, { ariaLabel: s } = c, n = T(c, ["ariaLabel"]);
|
|
887
|
-
const [r, o] = R(!0), { crumbs: l, deferredCrumbIds: i } = ke(Es), m = [...l].sort(
|
|
834
|
+
const [r, o] = R(!0), { crumbs: l, deferredCrumbIds: i } = ke(Es), m = [...l].sort(i1), p = () => {
|
|
888
835
|
o(!1);
|
|
889
836
|
}, g = m.map(
|
|
890
837
|
($, h) => h === m.length - 1 ? /* @__PURE__ */ e.createElement(Fe, { crumb: $, lastCrumb: !0, key: h }) : /* @__PURE__ */ e.createElement(Fe, { crumb: $, key: h })
|
|
@@ -912,14 +859,14 @@ const i1 = (s) => /* @__PURE__ */ e.createElement(hs, { className: "pds-breadcru
|
|
|
912
859
|
key: `breadcrumb-${h}`
|
|
913
860
|
}
|
|
914
861
|
) : /* @__PURE__ */ e.createElement(Fe, { crumb: $, key: `breadcrumb-${h}` })
|
|
915
|
-
), u = m.length >= 6 ? d : g, b = m[m.length - 2], E =
|
|
862
|
+
), u = m.length >= 6 ? d : g, b = m[m.length - 2], E = o1(b);
|
|
916
863
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": s, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", w({ className: "pds-breadcrumbs__item" }, n), u), E);
|
|
917
864
|
};
|
|
918
865
|
_s.propTypes = {
|
|
919
866
|
ariaLabel: t.string.isRequired,
|
|
920
867
|
crumbs: t.array
|
|
921
868
|
};
|
|
922
|
-
const
|
|
869
|
+
const d1 = (c) => {
|
|
923
870
|
var r = c, { ariaLabel: s, crumbs: n } = r, a = T(r, ["ariaLabel", "crumbs"]);
|
|
924
871
|
return /* @__PURE__ */ e.createElement(Us, null, /* @__PURE__ */ e.createElement(
|
|
925
872
|
Es.Provider,
|
|
@@ -932,14 +879,14 @@ const m1 = (c) => {
|
|
|
932
879
|
/* @__PURE__ */ e.createElement(_s, w({ crumbs: n, ariaLabel: s }, a))
|
|
933
880
|
));
|
|
934
881
|
};
|
|
935
|
-
|
|
882
|
+
d1.propTypes = {
|
|
936
883
|
ariaLabel: t.string.isRequired,
|
|
937
884
|
crumbs: t.arrayOf([
|
|
938
885
|
{ label: t.string },
|
|
939
886
|
{ uri: t.string }
|
|
940
887
|
])
|
|
941
888
|
};
|
|
942
|
-
const
|
|
889
|
+
const m1 = [
|
|
943
890
|
"angleDown",
|
|
944
891
|
"angleLeft",
|
|
945
892
|
"angleRight",
|
|
@@ -1088,13 +1035,13 @@ const u1 = [
|
|
|
1088
1035
|
"xmarkLarge",
|
|
1089
1036
|
"xTwitter",
|
|
1090
1037
|
"youtube"
|
|
1091
|
-
], dt = t.oneOf(
|
|
1038
|
+
], dt = t.oneOf(m1), yt = t.oneOf([
|
|
1092
1039
|
"narrow",
|
|
1093
1040
|
"standard",
|
|
1094
1041
|
"wide",
|
|
1095
1042
|
"x-wide",
|
|
1096
1043
|
"full"
|
|
1097
|
-
]),
|
|
1044
|
+
]), u1 = t.exact({
|
|
1098
1045
|
/**
|
|
1099
1046
|
* Label for a menu item
|
|
1100
1047
|
*/
|
|
@@ -1157,7 +1104,7 @@ const u1 = [
|
|
|
1157
1104
|
* Optional `data-testid` value for this item.
|
|
1158
1105
|
*/
|
|
1159
1106
|
testId: t.string
|
|
1160
|
-
}),
|
|
1107
|
+
}), p1 = t.exact({
|
|
1161
1108
|
/**
|
|
1162
1109
|
* Is the item a node?
|
|
1163
1110
|
*/
|
|
@@ -1166,7 +1113,7 @@ const u1 = [
|
|
|
1166
1113
|
* The content of the node.
|
|
1167
1114
|
*/
|
|
1168
1115
|
nodeContent: t.node
|
|
1169
|
-
}),
|
|
1116
|
+
}), g1 = t.exact({
|
|
1170
1117
|
/**
|
|
1171
1118
|
* Is the item a separator?
|
|
1172
1119
|
*/
|
|
@@ -1224,7 +1171,7 @@ const u1 = [
|
|
|
1224
1171
|
c && r && /* @__PURE__ */ e.createElement(ws, { variant: r }),
|
|
1225
1172
|
n
|
|
1226
1173
|
);
|
|
1227
|
-
},
|
|
1174
|
+
}, h1 = {
|
|
1228
1175
|
search: "magnifyingGlass",
|
|
1229
1176
|
error: "triangleExclamation",
|
|
1230
1177
|
success: "check"
|
|
@@ -1238,19 +1185,19 @@ const u1 = [
|
|
|
1238
1185
|
/* @__PURE__ */ e.createElement(
|
|
1239
1186
|
A,
|
|
1240
1187
|
{
|
|
1241
|
-
iconName:
|
|
1188
|
+
iconName: h1[s],
|
|
1242
1189
|
iconSize: "md",
|
|
1243
1190
|
className: `${n}__icon`
|
|
1244
1191
|
}
|
|
1245
1192
|
)
|
|
1246
1193
|
);
|
|
1247
|
-
},
|
|
1194
|
+
}, f1 = ({
|
|
1248
1195
|
inputId: s,
|
|
1249
1196
|
shortcutLabel: n
|
|
1250
1197
|
}) => (Qs("/", (c) => {
|
|
1251
1198
|
const r = document.getElementById(s);
|
|
1252
1199
|
r && r.focus(), c.preventDefault();
|
|
1253
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward", iconSize: "md" }))),
|
|
1200
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward", iconSize: "md" }))), b1 = ({
|
|
1254
1201
|
id: s,
|
|
1255
1202
|
clearLabel: n,
|
|
1256
1203
|
handleClearInput: a
|
|
@@ -1264,7 +1211,7 @@ const u1 = [
|
|
|
1264
1211
|
onClick: a
|
|
1265
1212
|
},
|
|
1266
1213
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "md" })
|
|
1267
|
-
),
|
|
1214
|
+
), v1 = ({
|
|
1268
1215
|
id: s,
|
|
1269
1216
|
currentLength: n,
|
|
1270
1217
|
maxLength: a,
|
|
@@ -1282,7 +1229,7 @@ const u1 = [
|
|
|
1282
1229
|
a,
|
|
1283
1230
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden", "aria-live": "polite" }, r && `${c} ${o}`)
|
|
1284
1231
|
);
|
|
1285
|
-
},
|
|
1232
|
+
}, Ut = (a) => {
|
|
1286
1233
|
var c = a, { label: s } = c, n = T(c, ["label"]);
|
|
1287
1234
|
return /* @__PURE__ */ e.createElement("span", w({ className: "visually-hidden" }, n), s);
|
|
1288
1235
|
}, Ns = (s) => s ? { width: `${s / 16}rem` } : null, Nt = (i) => {
|
|
@@ -1309,7 +1256,7 @@ const u1 = [
|
|
|
1309
1256
|
role: "status"
|
|
1310
1257
|
}, l),
|
|
1311
1258
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__icon` }),
|
|
1312
|
-
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, a) : /* @__PURE__ */ e.createElement(
|
|
1259
|
+
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, a) : /* @__PURE__ */ e.createElement(Ut, { label: a })
|
|
1313
1260
|
);
|
|
1314
1261
|
}, Ze = Ke(
|
|
1315
1262
|
(E, b) => {
|
|
@@ -1538,7 +1485,7 @@ Ue.propTypes = {
|
|
|
1538
1485
|
*/
|
|
1539
1486
|
className: t.string
|
|
1540
1487
|
};
|
|
1541
|
-
const
|
|
1488
|
+
const E1 = (g) => {
|
|
1542
1489
|
var d = g, {
|
|
1543
1490
|
bodyText: s,
|
|
1544
1491
|
headingLevel: n = "h2",
|
|
@@ -1590,7 +1537,7 @@ const _1 = (g) => {
|
|
|
1590
1537
|
_
|
|
1591
1538
|
);
|
|
1592
1539
|
};
|
|
1593
|
-
|
|
1540
|
+
E1.propTypes = {
|
|
1594
1541
|
/**
|
|
1595
1542
|
* Short description or summary. Can be string or JSX.
|
|
1596
1543
|
*/
|
|
@@ -1631,7 +1578,7 @@ _1.propTypes = {
|
|
|
1631
1578
|
*/
|
|
1632
1579
|
className: t.string
|
|
1633
1580
|
};
|
|
1634
|
-
const
|
|
1581
|
+
const _1 = (p) => {
|
|
1635
1582
|
var g = p, {
|
|
1636
1583
|
id: s,
|
|
1637
1584
|
initialSelection: n,
|
|
@@ -1701,7 +1648,7 @@ const C1 = (p) => {
|
|
|
1701
1648
|
)))
|
|
1702
1649
|
);
|
|
1703
1650
|
};
|
|
1704
|
-
|
|
1651
|
+
_1.propTypes = {
|
|
1705
1652
|
/**
|
|
1706
1653
|
* Unique ID for the card select group
|
|
1707
1654
|
*/
|
|
@@ -1797,11 +1744,11 @@ const at = ({ type: s }) => {
|
|
|
1797
1744
|
at.propTypes = {
|
|
1798
1745
|
type: t.oneOf(["search", "error", "success"]).isRequired
|
|
1799
1746
|
};
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1747
|
+
const Gt = ({ label: s }) => /* @__PURE__ */ e.createElement("div", { className: "pds-input__search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward" }));
|
|
1748
|
+
Gt.propTypes = {
|
|
1802
1749
|
label: t.string.isRequired
|
|
1803
1750
|
};
|
|
1804
|
-
const
|
|
1751
|
+
const Kt = Ke(
|
|
1805
1752
|
(o, r) => {
|
|
1806
1753
|
var l = o, { children: s, active: n, className: a } = l, c = T(l, ["children", "active", "className"]);
|
|
1807
1754
|
const i = Gs(), m = "pds-input__option", p = n ? `${m}--active` : null;
|
|
@@ -1818,7 +1765,7 @@ const Gt = Ke(
|
|
|
1818
1765
|
);
|
|
1819
1766
|
}
|
|
1820
1767
|
);
|
|
1821
|
-
|
|
1768
|
+
Kt.propTypes = {
|
|
1822
1769
|
children: t.node.isRequired,
|
|
1823
1770
|
active: t.bool,
|
|
1824
1771
|
className: t.string
|
|
@@ -2036,7 +1983,7 @@ const ks = Ke(
|
|
|
2036
1983
|
return de ? de.label : "";
|
|
2037
1984
|
}, [z, I] = R(!1), [H, V] = R(null), [S, D] = R(
|
|
2038
1985
|
l ? M(l) : ""
|
|
2039
|
-
), [q, B] = R([]), [
|
|
1986
|
+
), [q, B] = R([]), [Z, W] = R(""), [F, O] = R(null), P = ee([]), U = "pds-combobox", { context: G, refs: te } = Se({
|
|
2040
1987
|
open: z,
|
|
2041
1988
|
onOpenChange: I,
|
|
2042
1989
|
whileElementsMounted: De
|
|
@@ -2072,10 +2019,10 @@ const ks = Ke(
|
|
|
2072
2019
|
};
|
|
2073
2020
|
}, []);
|
|
2074
2021
|
const Y = () => {
|
|
2075
|
-
|
|
2022
|
+
W(""), O(null);
|
|
2076
2023
|
}, ge = (ie) => {
|
|
2077
2024
|
const de = v(ie) || {};
|
|
2078
|
-
Y(), de.error && O("error"), de.success && O("success"),
|
|
2025
|
+
Y(), de.error && O("error"), de.success && O("success"), W(de.message);
|
|
2079
2026
|
}, Ne = (ie) => {
|
|
2080
2027
|
let de = ie.target.value;
|
|
2081
2028
|
de.length > 0 && (de = de.trimStart()), D(de), de ? (V(null), I(!0)) : I(!1);
|
|
@@ -2108,7 +2055,7 @@ const ks = Ke(
|
|
|
2108
2055
|
B(ie);
|
|
2109
2056
|
}, [S, m, h]);
|
|
2110
2057
|
const ve = q.map((ie, de) => /* @__PURE__ */ e.createElement(
|
|
2111
|
-
|
|
2058
|
+
Kt,
|
|
2112
2059
|
Ee(w({
|
|
2113
2060
|
key: ie
|
|
2114
2061
|
}, be({
|
|
@@ -2125,7 +2072,7 @@ const ks = Ke(
|
|
|
2125
2072
|
active: H === de
|
|
2126
2073
|
}),
|
|
2127
2074
|
ie.optionDisplay || ie.label
|
|
2128
|
-
)), Xe =
|
|
2075
|
+
)), Xe = Z || u, Ht = i ? `${i / 16}rem` : null, Qe = i ? { width: Ht } : null;
|
|
2129
2076
|
return /* @__PURE__ */ e.createElement(
|
|
2130
2077
|
Ae,
|
|
2131
2078
|
w({
|
|
@@ -2179,7 +2126,7 @@ const ks = Ke(
|
|
|
2179
2126
|
handleClearInput: Le
|
|
2180
2127
|
}
|
|
2181
2128
|
),
|
|
2182
|
-
!S && r && /* @__PURE__ */ e.createElement(
|
|
2129
|
+
!S && r && /* @__PURE__ */ e.createElement(Gt, { label: g.searchShortcut }),
|
|
2183
2130
|
a && /* @__PURE__ */ e.createElement(
|
|
2184
2131
|
"button",
|
|
2185
2132
|
Ee(w({
|
|
@@ -2337,7 +2284,7 @@ ks.propTypes = {
|
|
|
2337
2284
|
*/
|
|
2338
2285
|
className: t.string
|
|
2339
2286
|
};
|
|
2340
|
-
const
|
|
2287
|
+
const C1 = (p) => {
|
|
2341
2288
|
var g = p, {
|
|
2342
2289
|
backgroundColor: s = "default",
|
|
2343
2290
|
containerWidth: n = "standard",
|
|
@@ -2395,7 +2342,7 @@ const $1 = (p) => {
|
|
|
2395
2342
|
))
|
|
2396
2343
|
);
|
|
2397
2344
|
};
|
|
2398
|
-
|
|
2345
|
+
C1.propTypes = {
|
|
2399
2346
|
/**
|
|
2400
2347
|
* Background color of slice
|
|
2401
2348
|
*/
|
|
@@ -2437,7 +2384,7 @@ $1.propTypes = {
|
|
|
2437
2384
|
*/
|
|
2438
2385
|
className: t.string
|
|
2439
2386
|
};
|
|
2440
|
-
const qe = Ct(null),
|
|
2387
|
+
const qe = Ct(null), $1 = ({
|
|
2441
2388
|
children: s,
|
|
2442
2389
|
mobileMenuMaxWidth: n = 640
|
|
2443
2390
|
}) => {
|
|
@@ -2453,7 +2400,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2453
2400
|
windowWidth: a
|
|
2454
2401
|
};
|
|
2455
2402
|
return /* @__PURE__ */ e.createElement(qe.Provider, { value: l }, s);
|
|
2456
|
-
},
|
|
2403
|
+
}, y1 = (r) => {
|
|
2457
2404
|
var o = r, {
|
|
2458
2405
|
destination: s = "main",
|
|
2459
2406
|
text: n = "Skip to main content",
|
|
@@ -2471,7 +2418,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2471
2418
|
}, c),
|
|
2472
2419
|
n
|
|
2473
2420
|
);
|
|
2474
|
-
},
|
|
2421
|
+
}, Yt = Ct(null), Fn = (p) => {
|
|
2475
2422
|
var g = p, {
|
|
2476
2423
|
children: s,
|
|
2477
2424
|
hasSidebarToggle: n = !0,
|
|
@@ -2521,7 +2468,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2521
2468
|
},
|
|
2522
2469
|
/* @__PURE__ */ e.createElement("span", { className: `${f}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" }))
|
|
2523
2470
|
), /* @__PURE__ */ e.createElement("div", { className: `${f}__sidebar-inner` }, z));
|
|
2524
|
-
return /* @__PURE__ */ e.createElement(
|
|
2471
|
+
return /* @__PURE__ */ e.createElement(Yt.Provider, { value: _ }, /* @__PURE__ */ e.createElement(y1, { text: l, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
2525
2472
|
"div",
|
|
2526
2473
|
w({
|
|
2527
2474
|
className: [
|
|
@@ -2545,7 +2492,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2545
2492
|
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${f}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__main-inner` }, I), H && /* @__PURE__ */ e.createElement("footer", { className: `${f}__footer` }, H))
|
|
2546
2493
|
)
|
|
2547
2494
|
));
|
|
2548
|
-
},
|
|
2495
|
+
}, Xt = (i) => {
|
|
2549
2496
|
var m = i, {
|
|
2550
2497
|
color: s = "transparent",
|
|
2551
2498
|
hasStatusIndicator: n = !1,
|
|
@@ -2607,7 +2554,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2607
2554
|
style: { pointerEvents: "none" }
|
|
2608
2555
|
},
|
|
2609
2556
|
/* @__PURE__ */ e.createElement(
|
|
2610
|
-
|
|
2557
|
+
Xt,
|
|
2611
2558
|
{
|
|
2612
2559
|
color: "neutral",
|
|
2613
2560
|
hasStatusIndicator: !0,
|
|
@@ -2619,7 +2566,7 @@ const qe = Ct(null), y1 = ({
|
|
|
2619
2566
|
);
|
|
2620
2567
|
};
|
|
2621
2568
|
Hs.propTypes = { option: t.object };
|
|
2622
|
-
const
|
|
2569
|
+
const w1 = (E) => {
|
|
2623
2570
|
var $ = E, {
|
|
2624
2571
|
disabled: s = !1,
|
|
2625
2572
|
id: n,
|
|
@@ -2658,7 +2605,7 @@ const N1 = (E) => {
|
|
|
2658
2605
|
const L = ke(qe);
|
|
2659
2606
|
L && (y = L.isMobile);
|
|
2660
2607
|
let k = null;
|
|
2661
|
-
const x = ke(
|
|
2608
|
+
const x = ke(Yt);
|
|
2662
2609
|
x && (k = x.navbarWidth);
|
|
2663
2610
|
const N = 2.25, M = 22, z = k > 900 ? M : k / 16 - d - N * 0.675;
|
|
2664
2611
|
let I = N;
|
|
@@ -2685,14 +2632,14 @@ const N1 = (E) => {
|
|
|
2685
2632
|
};
|
|
2686
2633
|
}
|
|
2687
2634
|
}, [h]);
|
|
2688
|
-
const
|
|
2635
|
+
const Z = g.map((P) => {
|
|
2689
2636
|
const { id: U, name: G } = P;
|
|
2690
2637
|
return {
|
|
2691
2638
|
label: G,
|
|
2692
2639
|
value: U,
|
|
2693
2640
|
optionDisplay: /* @__PURE__ */ e.createElement(Hs, { option: P })
|
|
2694
2641
|
};
|
|
2695
|
-
}),
|
|
2642
|
+
}), W = /* @__PURE__ */ e.createElement(
|
|
2696
2643
|
ks,
|
|
2697
2644
|
{
|
|
2698
2645
|
ref: v,
|
|
@@ -2708,7 +2655,7 @@ const N1 = (E) => {
|
|
|
2708
2655
|
onFocus: i,
|
|
2709
2656
|
onOptionSelect: B,
|
|
2710
2657
|
placeholder: p,
|
|
2711
|
-
options:
|
|
2658
|
+
options: Z,
|
|
2712
2659
|
showLabel: !1,
|
|
2713
2660
|
className: `${V}__combobox`
|
|
2714
2661
|
}
|
|
@@ -2717,7 +2664,7 @@ const N1 = (E) => {
|
|
|
2717
2664
|
{
|
|
2718
2665
|
style: h ? { visibility: "visible" } : { visibility: "hidden" }
|
|
2719
2666
|
},
|
|
2720
|
-
|
|
2667
|
+
W
|
|
2721
2668
|
), /* @__PURE__ */ e.createElement(
|
|
2722
2669
|
"button",
|
|
2723
2670
|
{
|
|
@@ -2733,7 +2680,7 @@ const N1 = (E) => {
|
|
|
2733
2680
|
className: `${V}__search-toggle-icon`
|
|
2734
2681
|
}
|
|
2735
2682
|
)
|
|
2736
|
-
)), O = /* @__PURE__ */ e.createElement("div", { className: `${V}--mobile-inner` },
|
|
2683
|
+
)), O = /* @__PURE__ */ e.createElement("div", { className: `${V}--mobile-inner` }, W);
|
|
2737
2684
|
return /* @__PURE__ */ e.createElement(
|
|
2738
2685
|
"div",
|
|
2739
2686
|
w({
|
|
@@ -2747,7 +2694,7 @@ const N1 = (E) => {
|
|
|
2747
2694
|
y ? O : F
|
|
2748
2695
|
);
|
|
2749
2696
|
};
|
|
2750
|
-
|
|
2697
|
+
w1.propTypes = {
|
|
2751
2698
|
/**
|
|
2752
2699
|
* Is the field disabled?
|
|
2753
2700
|
*/
|
|
@@ -2834,7 +2781,7 @@ N1.propTypes = {
|
|
|
2834
2781
|
*/
|
|
2835
2782
|
className: t.string
|
|
2836
2783
|
};
|
|
2837
|
-
const
|
|
2784
|
+
const N1 = (l) => {
|
|
2838
2785
|
var i = l, {
|
|
2839
2786
|
children: s,
|
|
2840
2787
|
id: n,
|
|
@@ -2857,7 +2804,7 @@ const k1 = (l) => {
|
|
|
2857
2804
|
/* @__PURE__ */ e.createElement("details", { key: c, id: m, open: a }, /* @__PURE__ */ e.createElement("summary", null, /* @__PURE__ */ e.createElement("span", null, c), /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${p}__icon` })), /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, s))
|
|
2858
2805
|
);
|
|
2859
2806
|
};
|
|
2860
|
-
|
|
2807
|
+
N1.propTypes = {
|
|
2861
2808
|
/**
|
|
2862
2809
|
* The content of the expansion panel.
|
|
2863
2810
|
*/
|
|
@@ -2879,7 +2826,7 @@ k1.propTypes = {
|
|
|
2879
2826
|
*/
|
|
2880
2827
|
className: t.string
|
|
2881
2828
|
};
|
|
2882
|
-
const
|
|
2829
|
+
const k1 = (r) => {
|
|
2883
2830
|
var o = r, {
|
|
2884
2831
|
children: s,
|
|
2885
2832
|
displayType: n = "standard",
|
|
@@ -2898,7 +2845,7 @@ const H1 = (r) => {
|
|
|
2898
2845
|
s
|
|
2899
2846
|
);
|
|
2900
2847
|
};
|
|
2901
|
-
|
|
2848
|
+
k1.propTypes = {
|
|
2902
2849
|
/**
|
|
2903
2850
|
* The content of the expansion panel group. This should be a series of ExpansionPanel components.
|
|
2904
2851
|
*/
|
|
@@ -3011,7 +2958,7 @@ const Et = (d) => {
|
|
|
3011
2958
|
}
|
|
3012
2959
|
) : k
|
|
3013
2960
|
);
|
|
3014
|
-
},
|
|
2961
|
+
}, H1 = ($) => {
|
|
3015
2962
|
var h = $, {
|
|
3016
2963
|
accept: s,
|
|
3017
2964
|
chooseFileLabel: n = "Choose file",
|
|
@@ -3107,7 +3054,7 @@ const Et = (d) => {
|
|
|
3107
3054
|
)
|
|
3108
3055
|
);
|
|
3109
3056
|
};
|
|
3110
|
-
|
|
3057
|
+
H1.propTypes = {
|
|
3111
3058
|
/**
|
|
3112
3059
|
* File types the input should accept. Leave null for all file types.
|
|
3113
3060
|
*/
|
|
@@ -3198,7 +3145,7 @@ zs.propTypes = {
|
|
|
3198
3145
|
*/
|
|
3199
3146
|
className: t.string
|
|
3200
3147
|
};
|
|
3201
|
-
const
|
|
3148
|
+
const z1 = (o) => {
|
|
3202
3149
|
var l = o, {
|
|
3203
3150
|
headingLevel: s,
|
|
3204
3151
|
headingText: n,
|
|
@@ -3227,7 +3174,7 @@ const L1 = (o) => {
|
|
|
3227
3174
|
/* @__PURE__ */ e.createElement("ul", { className: `${i}__list`, role: "list" }, a.map((m, p) => /* @__PURE__ */ e.createElement("li", { key: p, className: `${i}__item` }, m)))
|
|
3228
3175
|
);
|
|
3229
3176
|
};
|
|
3230
|
-
|
|
3177
|
+
z1.propTypes = {
|
|
3231
3178
|
/**
|
|
3232
3179
|
* Heading level
|
|
3233
3180
|
*/
|
|
@@ -3245,7 +3192,7 @@ L1.propTypes = {
|
|
|
3245
3192
|
*/
|
|
3246
3193
|
className: t.string
|
|
3247
3194
|
};
|
|
3248
|
-
const
|
|
3195
|
+
const L1 = (r) => {
|
|
3249
3196
|
var o = r, { children: s, level: n, className: a } = o, c = T(o, ["children", "level", "className"]);
|
|
3250
3197
|
const l = "pds-heading", i = `${n}`;
|
|
3251
3198
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -3256,7 +3203,7 @@ const M1 = (r) => {
|
|
|
3256
3203
|
s
|
|
3257
3204
|
);
|
|
3258
3205
|
};
|
|
3259
|
-
|
|
3206
|
+
L1.propTypes = {
|
|
3260
3207
|
/**
|
|
3261
3208
|
* Heading content
|
|
3262
3209
|
*/
|
|
@@ -3270,7 +3217,7 @@ M1.propTypes = {
|
|
|
3270
3217
|
*/
|
|
3271
3218
|
className: t.string
|
|
3272
3219
|
};
|
|
3273
|
-
const
|
|
3220
|
+
const M1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = M1.find((s) => s.type === "decimal").value, Mt = 16, cs = 10, x1 = (E) => {
|
|
3274
3221
|
var $ = E, {
|
|
3275
3222
|
disabled: s = !1,
|
|
3276
3223
|
formatting: n,
|
|
@@ -3307,7 +3254,7 @@ const x1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = x1.find((s)
|
|
|
3307
3254
|
u
|
|
3308
3255
|
]), [C, v] = R(""), [y, L] = R(null), [k, x] = R(null), N = ee(null), M = ee(null), z = ee("");
|
|
3309
3256
|
ae(() => {
|
|
3310
|
-
switch (r && v(
|
|
3257
|
+
switch (r && v(W(r)), z.numExtra = "", n) {
|
|
3311
3258
|
case "credit-card":
|
|
3312
3259
|
z.numExtra = 3, z.current = Mt;
|
|
3313
3260
|
break;
|
|
@@ -3332,7 +3279,7 @@ const x1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = x1.find((s)
|
|
|
3332
3279
|
rawValue: M.current
|
|
3333
3280
|
});
|
|
3334
3281
|
}, D = (O) => {
|
|
3335
|
-
v(
|
|
3282
|
+
v(W(O.target.value)), V(), S(O.target.value);
|
|
3336
3283
|
}, q = () => {
|
|
3337
3284
|
x("error"), f.current.push(ye.error);
|
|
3338
3285
|
}, B = (O) => {
|
|
@@ -3346,9 +3293,9 @@ const x1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = x1.find((s)
|
|
|
3346
3293
|
`Phone number must have at least ${z.current} digits.`
|
|
3347
3294
|
)) : (n === "credit-card" || n === "phone") && (x("success"), f.current.push(ye.success));
|
|
3348
3295
|
S(O.target.value);
|
|
3349
|
-
},
|
|
3296
|
+
}, Z = () => {
|
|
3350
3297
|
V(), v(""), M.current = "", N.current.focus(), S("");
|
|
3351
|
-
},
|
|
3298
|
+
}, W = (O) => {
|
|
3352
3299
|
if (O) {
|
|
3353
3300
|
if (n === "credit-card") {
|
|
3354
3301
|
const P = ("" + O).replace(/\D/g, "");
|
|
@@ -3412,7 +3359,7 @@ const x1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = x1.find((s)
|
|
|
3412
3359
|
{
|
|
3413
3360
|
id: c,
|
|
3414
3361
|
label: o,
|
|
3415
|
-
handleClearInput:
|
|
3362
|
+
handleClearInput: Z
|
|
3416
3363
|
}
|
|
3417
3364
|
))), (l || y) && /* @__PURE__ */ e.createElement(
|
|
3418
3365
|
"div",
|
|
@@ -3424,7 +3371,7 @@ const x1 = new Intl.NumberFormat().formatToParts(100000089e-2), Lt = x1.find((s)
|
|
|
3424
3371
|
y || l
|
|
3425
3372
|
));
|
|
3426
3373
|
};
|
|
3427
|
-
|
|
3374
|
+
x1.propTypes = {
|
|
3428
3375
|
/**
|
|
3429
3376
|
* Is the field disabled?
|
|
3430
3377
|
*/
|
|
@@ -3498,7 +3445,7 @@ V1.propTypes = {
|
|
|
3498
3445
|
*/
|
|
3499
3446
|
className: t.string
|
|
3500
3447
|
};
|
|
3501
|
-
const
|
|
3448
|
+
const V1 = (b) => {
|
|
3502
3449
|
var E = b, {
|
|
3503
3450
|
counterFunction: s = () => {
|
|
3504
3451
|
},
|
|
@@ -3551,9 +3498,9 @@ const S1 = (b) => {
|
|
|
3551
3498
|
i && i(_);
|
|
3552
3499
|
}, B = () => {
|
|
3553
3500
|
S(), f(""), I.current.value = null, I.current.focus(), s && v(s("")), i && i("");
|
|
3554
|
-
},
|
|
3501
|
+
}, Z = () => {
|
|
3555
3502
|
M((O) => !O);
|
|
3556
|
-
},
|
|
3503
|
+
}, W = (O) => {
|
|
3557
3504
|
var P;
|
|
3558
3505
|
(!((P = z.current) != null && P.contains(O.relatedTarget)) || !O.relatedTarget) && M(!1);
|
|
3559
3506
|
};
|
|
@@ -3564,7 +3511,7 @@ const S1 = (b) => {
|
|
|
3564
3511
|
w({
|
|
3565
3512
|
className: h.current.join(" ").trim(),
|
|
3566
3513
|
ref: z,
|
|
3567
|
-
onBlur:
|
|
3514
|
+
onBlur: W
|
|
3568
3515
|
}, u),
|
|
3569
3516
|
/* @__PURE__ */ e.createElement("span", { className: p ? null : "visually-hidden" }, /* @__PURE__ */ e.createElement("label", { className: "pds-input-label", htmlFor: c }, o)),
|
|
3570
3517
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3606,7 +3553,7 @@ const S1 = (b) => {
|
|
|
3606
3553
|
className: `pds-input-field__accessory ${$}__toggle`,
|
|
3607
3554
|
title: `${N ? "Hide" : "Show"} content of ${o} input`,
|
|
3608
3555
|
"aria-controls": c,
|
|
3609
|
-
onClick:
|
|
3556
|
+
onClick: Z,
|
|
3610
3557
|
onMouseDown: (O) => O.preventDefault()
|
|
3611
3558
|
},
|
|
3612
3559
|
N ? /* @__PURE__ */ e.createElement(A, { iconName: "eyeSlash" }) : /* @__PURE__ */ e.createElement(A, { iconName: "eye" })
|
|
@@ -3622,7 +3569,7 @@ const S1 = (b) => {
|
|
|
3622
3569
|
)
|
|
3623
3570
|
);
|
|
3624
3571
|
};
|
|
3625
|
-
|
|
3572
|
+
V1.propTypes = {
|
|
3626
3573
|
/**
|
|
3627
3574
|
* If a counter is desired provide a function that accepts the input's value and will return a string to display.
|
|
3628
3575
|
* <br />
|
|
@@ -3693,7 +3640,7 @@ S1.propTypes = {
|
|
|
3693
3640
|
*/
|
|
3694
3641
|
className: t.string
|
|
3695
3642
|
};
|
|
3696
|
-
const xt = 16, rs = 10,
|
|
3643
|
+
const xt = 16, rs = 10, S1 = (N) => {
|
|
3697
3644
|
var M = N, {
|
|
3698
3645
|
autoComplete: s = "on",
|
|
3699
3646
|
counterFunction: n = () => {
|
|
@@ -3755,7 +3702,7 @@ const xt = 16, rs = 10, I1 = (N) => {
|
|
|
3755
3702
|
"validationMessages",
|
|
3756
3703
|
"className"
|
|
3757
3704
|
]);
|
|
3758
|
-
const [z, I] = R(l), [H, V] = R(n("")), [S, D] = R(), [q, B] = R(null), [
|
|
3705
|
+
const [z, I] = R(l), [H, V] = R(n("")), [S, D] = R(), [q, B] = R(null), [Z, W] = R(!1), F = ee(null), O = ee(null), P = ee(null), U = ee(null), G = "pds-input-text", te = _ ? `${G}--${_}` : null;
|
|
3759
3706
|
let se = null;
|
|
3760
3707
|
v === "search" && (se = "search"), q === "error" && (se = "error"), q === "success" && (se = "success"), _ && f && ae(() => {
|
|
3761
3708
|
switch (l && I(ue(l)), U.numExtra = "", _) {
|
|
@@ -3811,14 +3758,14 @@ const xt = 16, rs = 10, I1 = (N) => {
|
|
|
3811
3758
|
}, Ce = (Q) => {
|
|
3812
3759
|
I(_ ? ue(Q.target.value) : Q.target.value), pe(), n && V(n(_ ? P.current : Q.target.value)), be(Q.target.value);
|
|
3813
3760
|
}, oe = (Q) => {
|
|
3814
|
-
if (C &&
|
|
3761
|
+
if (C && W(!1), y) {
|
|
3815
3762
|
const le = y(Q.target.value) || {};
|
|
3816
3763
|
pe(), le.error && B("error"), le.success && B("success"), D(le.message);
|
|
3817
3764
|
}
|
|
3818
3765
|
_ && f && !y && (F.current.checkValidity() === !1 || Q.target.value.length < ne ? (B("error"), _ === "credit-card" && D(L.creditCardError), _ === "phone" && D(L.phoneError)) : B("success")), be(Q.target.value);
|
|
3819
3766
|
}, K = (Q) => {
|
|
3820
3767
|
var le;
|
|
3821
|
-
(!((le = O.current) != null && le.contains(Q.relatedTarget)) || !Q.relatedTarget) &&
|
|
3768
|
+
(!((le = O.current) != null && le.contains(Q.relatedTarget)) || !Q.relatedTarget) && W(!1);
|
|
3822
3769
|
}, Y = () => {
|
|
3823
3770
|
pe(), I(""), P.current = "", F.current.focus(), n && V(n("")), be("");
|
|
3824
3771
|
};
|
|
@@ -3833,9 +3780,9 @@ const xt = 16, rs = 10, I1 = (N) => {
|
|
|
3833
3780
|
}
|
|
3834
3781
|
}, []);
|
|
3835
3782
|
const ge = () => {
|
|
3836
|
-
|
|
3783
|
+
W((Q) => !Q);
|
|
3837
3784
|
};
|
|
3838
|
-
C && v === "password" && (
|
|
3785
|
+
C && v === "password" && (Z ? x.type = "text" : x.type = "password"), _ === "phone" && (x.type = "tel");
|
|
3839
3786
|
const Ne = S || g;
|
|
3840
3787
|
return /* @__PURE__ */ e.createElement(
|
|
3841
3788
|
Ae,
|
|
@@ -3855,7 +3802,7 @@ const xt = 16, rs = 10, I1 = (N) => {
|
|
|
3855
3802
|
showLabel: h,
|
|
3856
3803
|
validationState: q
|
|
3857
3804
|
}, x),
|
|
3858
|
-
C && v === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${p.visibilityStatus} ${
|
|
3805
|
+
C && v === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${p.visibilityStatus} ${Z ? "visible" : "hidden"}.`),
|
|
3859
3806
|
/* @__PURE__ */ e.createElement(
|
|
3860
3807
|
"input",
|
|
3861
3808
|
{
|
|
@@ -3893,17 +3840,17 @@ const xt = 16, rs = 10, I1 = (N) => {
|
|
|
3893
3840
|
{
|
|
3894
3841
|
type: "button",
|
|
3895
3842
|
className: "pds-input__visibility-toggle",
|
|
3896
|
-
title:
|
|
3843
|
+
title: Z ? p.visibilityToggleHide : p.visibilityToggleShow,
|
|
3897
3844
|
"aria-controls": o,
|
|
3898
3845
|
onClick: ge,
|
|
3899
3846
|
onMouseDown: (Q) => Q.preventDefault()
|
|
3900
3847
|
},
|
|
3901
|
-
/* @__PURE__ */ e.createElement(A, { iconName:
|
|
3848
|
+
/* @__PURE__ */ e.createElement(A, { iconName: Z ? "eyeSlash" : "eye" })
|
|
3902
3849
|
),
|
|
3903
|
-
!z && r && v === "search" && /* @__PURE__ */ e.createElement(
|
|
3850
|
+
!z && r && v === "search" && /* @__PURE__ */ e.createElement(Gt, { label: p.searchShortcut })
|
|
3904
3851
|
);
|
|
3905
3852
|
};
|
|
3906
|
-
|
|
3853
|
+
S1.propTypes = {
|
|
3907
3854
|
/**
|
|
3908
3855
|
* Auto complete attribute for the input field. The attribute value is either the keyword `off` or `on`, or an ordered list of space-separated tokens. Password fields are automatically off.
|
|
3909
3856
|
*
|
|
@@ -4039,7 +3986,7 @@ I1.propTypes = {
|
|
|
4039
3986
|
*/
|
|
4040
3987
|
className: t.string
|
|
4041
3988
|
};
|
|
4042
|
-
const
|
|
3989
|
+
const I1 = (o) => {
|
|
4043
3990
|
var l = o, {
|
|
4044
3991
|
linkItems: s,
|
|
4045
3992
|
headingLevel: n = "h3",
|
|
@@ -4061,7 +4008,7 @@ const T1 = (o) => {
|
|
|
4061
4008
|
s && /* @__PURE__ */ e.createElement("ul", { className: `${i}__list`, role: "list" }, s.map((p, g) => /* @__PURE__ */ e.createElement("li", { key: g, className: "pds-cta-links-card__item" }, p)))
|
|
4062
4009
|
);
|
|
4063
4010
|
};
|
|
4064
|
-
|
|
4011
|
+
I1.propTypes = {
|
|
4065
4012
|
/**
|
|
4066
4013
|
* Heading level
|
|
4067
4014
|
*/
|
|
@@ -4079,7 +4026,60 @@ T1.propTypes = {
|
|
|
4079
4026
|
*/
|
|
4080
4027
|
className: t.string
|
|
4081
4028
|
};
|
|
4082
|
-
|
|
4029
|
+
let os = [
|
|
4030
|
+
"g01",
|
|
4031
|
+
"g02",
|
|
4032
|
+
"g03",
|
|
4033
|
+
"g04",
|
|
4034
|
+
"g05",
|
|
4035
|
+
"g06",
|
|
4036
|
+
"g07",
|
|
4037
|
+
"g08",
|
|
4038
|
+
"g09",
|
|
4039
|
+
"g10",
|
|
4040
|
+
"g11",
|
|
4041
|
+
"g12"
|
|
4042
|
+
];
|
|
4043
|
+
const T1 = (s) => {
|
|
4044
|
+
const n = parseInt(vs(s), 16);
|
|
4045
|
+
return os[n % os.length];
|
|
4046
|
+
}, ot = (l) => {
|
|
4047
|
+
var i = l, {
|
|
4048
|
+
size: s = "md",
|
|
4049
|
+
imageSrc: n,
|
|
4050
|
+
linkContent: a,
|
|
4051
|
+
uniqueId: c,
|
|
4052
|
+
className: r
|
|
4053
|
+
} = i, o = T(i, [
|
|
4054
|
+
"size",
|
|
4055
|
+
"imageSrc",
|
|
4056
|
+
"linkContent",
|
|
4057
|
+
"uniqueId",
|
|
4058
|
+
"className"
|
|
4059
|
+
]);
|
|
4060
|
+
const m = "pds-avatar", p = `${m}--${s}`, g = n ? `${m}--image` : null, u = {
|
|
4061
|
+
backgroundImage: c ? `var(--pds-color-gradient-avatar-${T1(c)})` : null,
|
|
4062
|
+
borderRadius: "100%",
|
|
4063
|
+
height: "100%",
|
|
4064
|
+
width: "100%"
|
|
4065
|
+
};
|
|
4066
|
+
let b, E, $;
|
|
4067
|
+
return jt(a) ? (b = a.type, E = a.props.href ? "href" : "to", $ = E === "href" ? a.props.href : a.props.to) : (b = "div", E = null, $ = null), /* @__PURE__ */ e.createElement("div", { className: [m, p].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement(
|
|
4068
|
+
b,
|
|
4069
|
+
w({
|
|
4070
|
+
href: E === "href" ? $ : null,
|
|
4071
|
+
to: E === "to" ? $ : null,
|
|
4072
|
+
className: [m + "__inner", p, g, r].join(" ").trim().replace(/\s+/g, " ")
|
|
4073
|
+
}, o),
|
|
4074
|
+
n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${m}__image`, alt: "" }) : /* @__PURE__ */ e.createElement(
|
|
4075
|
+
"span",
|
|
4076
|
+
{
|
|
4077
|
+
style: u,
|
|
4078
|
+
className: !c && s === "sm" ? `${m}__user-fallback` : null
|
|
4079
|
+
}
|
|
4080
|
+
)
|
|
4081
|
+
));
|
|
4082
|
+
}, Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink, O1 = (s) => s.isNode, Ls = (h) => {
|
|
4083
4083
|
var _ = h, {
|
|
4084
4084
|
avatarImageSrc: s,
|
|
4085
4085
|
disabled: n,
|
|
@@ -4129,10 +4129,10 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4129
4129
|
let M = !1;
|
|
4130
4130
|
const z = ke(qe);
|
|
4131
4131
|
z && (M = z.isMobile);
|
|
4132
|
-
const I = b && M, H = "pds-menu-button", V = I ? `${H}--isMobile` : null, S = b ? `${H}--navbar` : null, D = Re(), [q] = R(`menu-button-${D}`), [B] = R(`menu-listbox-${D}`),
|
|
4132
|
+
const I = b && M, H = "pds-menu-button", V = I ? `${H}--isMobile` : null, S = b ? `${H}--navbar` : null, D = Re(), [q] = R(`menu-button-${D}`), [B] = R(`menu-listbox-${D}`), Z = r || q, W = N.floating, F = ee(null), [O, P] = R(!1), [U, G] = R(!1), [te, se] = R(""), [ne, ue] = R(0), pe = ee([]), J = ee([]), be = ee([]);
|
|
4133
4133
|
Zs(() => {
|
|
4134
4134
|
window.addEventListener("mousedown", Me, !0), k();
|
|
4135
|
-
const j =
|
|
4135
|
+
const j = W.current;
|
|
4136
4136
|
return j && (j.dataset.fuiPlacement = x), U && (setTimeout(() => {
|
|
4137
4137
|
j.focus();
|
|
4138
4138
|
}, 0), G(!1)), () => {
|
|
@@ -4144,7 +4144,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4144
4144
|
}, oe = () => {
|
|
4145
4145
|
P(!0), G(!0);
|
|
4146
4146
|
}, K = () => {
|
|
4147
|
-
P(!1), Ce(void 0, -1), F.current.querySelector(`#${
|
|
4147
|
+
P(!1), Ce(void 0, -1), F.current.querySelector(`#${Z}`).focus();
|
|
4148
4148
|
}, Y = (j) => {
|
|
4149
4149
|
j = j.toLowerCase();
|
|
4150
4150
|
let ce = !1;
|
|
@@ -4242,7 +4242,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4242
4242
|
}, Me = (j) => {
|
|
4243
4243
|
F.current && !F.current.contains(j.target) && O && K();
|
|
4244
4244
|
}, ve = (j, ce, X = "", he = "", ...me) => {
|
|
4245
|
-
const we = X ? `-group-${X}` : "", $e =
|
|
4245
|
+
const we = X ? `-group-${X}` : "", $e = Z + we + "-item-" + (ce + 1), Ve = j.id ? j.id : $e;
|
|
4246
4246
|
if (Vt(j))
|
|
4247
4247
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Ve });
|
|
4248
4248
|
if (St(j))
|
|
@@ -4310,7 +4310,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4310
4310
|
let $e = pe.current[0];
|
|
4311
4311
|
const Ve = we[0].findIndex(
|
|
4312
4312
|
(xe) => !Vt(xe) && !St(xe)
|
|
4313
|
-
), gt = `${
|
|
4313
|
+
), gt = `${Z}-group-${$e}-item-${Ve + 1}`;
|
|
4314
4314
|
return /* @__PURE__ */ e.createElement(
|
|
4315
4315
|
"div",
|
|
4316
4316
|
{
|
|
@@ -4318,7 +4318,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4318
4318
|
id: B,
|
|
4319
4319
|
role: "menu",
|
|
4320
4320
|
tabIndex: -1,
|
|
4321
|
-
"aria-labelledby":
|
|
4321
|
+
"aria-labelledby": Z,
|
|
4322
4322
|
"aria-activedescendant": te !== "" ? te : gt,
|
|
4323
4323
|
style: {
|
|
4324
4324
|
visibility: O ? "visible" : "hidden",
|
|
@@ -4333,7 +4333,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4333
4333
|
},
|
|
4334
4334
|
we.map((xe, Je) => {
|
|
4335
4335
|
$e = pe.current[Je];
|
|
4336
|
-
const et = xe[0].isHeading, tt = et ? `${
|
|
4336
|
+
const et = xe[0].isHeading, tt = et ? `${Z}-group-${$e}-heading` : "", As = `${Z}-group-${$e}`, qs = et ? null : `${d} ${Je + 1}`;
|
|
4337
4337
|
return /* @__PURE__ */ e.createElement(
|
|
4338
4338
|
"ul",
|
|
4339
4339
|
{
|
|
@@ -4352,7 +4352,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4352
4352
|
})
|
|
4353
4353
|
);
|
|
4354
4354
|
} else {
|
|
4355
|
-
const we = `${
|
|
4355
|
+
const we = `${Z}-item-1`;
|
|
4356
4356
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4357
4357
|
"ul",
|
|
4358
4358
|
{
|
|
@@ -4360,7 +4360,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4360
4360
|
id: B,
|
|
4361
4361
|
role: "menu",
|
|
4362
4362
|
tabIndex: -1,
|
|
4363
|
-
"aria-labelledby":
|
|
4363
|
+
"aria-labelledby": Z,
|
|
4364
4364
|
"aria-activedescendant": te !== "" ? te : we,
|
|
4365
4365
|
style: {
|
|
4366
4366
|
visibility: O ? "visible" : "hidden",
|
|
@@ -4380,7 +4380,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4380
4380
|
a === "icon-end" && (Qe = /* @__PURE__ */ e.createElement(
|
|
4381
4381
|
Ze,
|
|
4382
4382
|
{
|
|
4383
|
-
id:
|
|
4383
|
+
id: Z,
|
|
4384
4384
|
isSplitButton: o,
|
|
4385
4385
|
label: l,
|
|
4386
4386
|
size: p,
|
|
@@ -4400,7 +4400,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4400
4400
|
)), a === "icon-only" && (Qe = /* @__PURE__ */ e.createElement(
|
|
4401
4401
|
Et,
|
|
4402
4402
|
{
|
|
4403
|
-
id:
|
|
4403
|
+
id: Z,
|
|
4404
4404
|
ariaLabel: l,
|
|
4405
4405
|
size: p,
|
|
4406
4406
|
variant: "standard",
|
|
@@ -4419,7 +4419,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4419
4419
|
)), (a === "avatar" || a === "avatar-with-text") && (Qe = /* @__PURE__ */ e.createElement(
|
|
4420
4420
|
"button",
|
|
4421
4421
|
{
|
|
4422
|
-
id:
|
|
4422
|
+
id: Z,
|
|
4423
4423
|
type: "button",
|
|
4424
4424
|
disabled: n,
|
|
4425
4425
|
className: `${H}__trigger ${H}__trigger--avatar`,
|
|
@@ -4453,7 +4453,7 @@ const Vt = (s) => s.isSeparator, St = (s) => s.isHeading, It = (s) => s.isLink,
|
|
|
4453
4453
|
I && (ze = /* @__PURE__ */ e.createElement(
|
|
4454
4454
|
"button",
|
|
4455
4455
|
{
|
|
4456
|
-
id:
|
|
4456
|
+
id: Z,
|
|
4457
4457
|
type: "button",
|
|
4458
4458
|
disabled: n,
|
|
4459
4459
|
className: je,
|
|
@@ -4520,11 +4520,11 @@ Ls.propTypes = {
|
|
|
4520
4520
|
*/
|
|
4521
4521
|
menuItems: t.arrayOf(
|
|
4522
4522
|
t.oneOfType([
|
|
4523
|
-
|
|
4523
|
+
u1,
|
|
4524
4524
|
Cs,
|
|
4525
4525
|
$s,
|
|
4526
|
-
|
|
4527
|
-
|
|
4526
|
+
p1,
|
|
4527
|
+
g1
|
|
4528
4528
|
])
|
|
4529
4529
|
),
|
|
4530
4530
|
/**
|
|
@@ -4589,7 +4589,7 @@ st.propTypes = {
|
|
|
4589
4589
|
*/
|
|
4590
4590
|
className: t.string
|
|
4591
4591
|
};
|
|
4592
|
-
const
|
|
4592
|
+
const Qt = (l) => {
|
|
4593
4593
|
var i = l, {
|
|
4594
4594
|
colorType: s = "default",
|
|
4595
4595
|
displayType: n = "full",
|
|
@@ -4926,7 +4926,7 @@ const Xt = (l) => {
|
|
|
4926
4926
|
n === "sub-brand" && /* @__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" }, $))
|
|
4927
4927
|
);
|
|
4928
4928
|
};
|
|
4929
|
-
|
|
4929
|
+
Qt.propTypes = {
|
|
4930
4930
|
/**
|
|
4931
4931
|
* Color Type
|
|
4932
4932
|
*/
|
|
@@ -4988,36 +4988,36 @@ const R1 = (u) => {
|
|
|
4988
4988
|
ae(() => (window.addEventListener("keyup", L), () => {
|
|
4989
4989
|
window.removeEventListener("keyup", L);
|
|
4990
4990
|
}), []);
|
|
4991
|
-
const L = (
|
|
4992
|
-
var F =
|
|
4991
|
+
const L = (W) => {
|
|
4992
|
+
var F = W.key, O = !1;
|
|
4993
4993
|
switch (F) {
|
|
4994
4994
|
case "Esc":
|
|
4995
4995
|
case "Escape":
|
|
4996
4996
|
$(!1), O = !0;
|
|
4997
4997
|
break;
|
|
4998
4998
|
}
|
|
4999
|
-
O && (
|
|
4999
|
+
O && (W.stopPropagation(), W.preventDefault());
|
|
5000
5000
|
}, k = () => $(!E), x = e.createRef();
|
|
5001
5001
|
ae(() => {
|
|
5002
5002
|
if (h && s) {
|
|
5003
|
-
const
|
|
5003
|
+
const W = ys(
|
|
5004
5004
|
document.querySelector(".pds-navbar__mobile")
|
|
5005
5005
|
), F = ["a", "button", "input", "select", "textarea"];
|
|
5006
|
-
E ?
|
|
5006
|
+
E ? W.forEach((O) => {
|
|
5007
5007
|
F.includes(O.nodeName.toLowerCase()) && (O.tabIndex = 0);
|
|
5008
|
-
}) :
|
|
5008
|
+
}) : W.forEach((O) => {
|
|
5009
5009
|
F.includes(O.nodeName.toLowerCase()) && (O.tabIndex = -1);
|
|
5010
5010
|
});
|
|
5011
5011
|
}
|
|
5012
5012
|
}, [E]);
|
|
5013
|
-
const N = (
|
|
5014
|
-
|
|
5013
|
+
const N = (W) => {
|
|
5014
|
+
W.target.nodeName === "A" && $(!1);
|
|
5015
5015
|
};
|
|
5016
5016
|
ae(() => {
|
|
5017
5017
|
if (E) {
|
|
5018
|
-
const
|
|
5019
|
-
return
|
|
5020
|
-
|
|
5018
|
+
const W = document.querySelector(".pds-navbar__bar-mobile"), F = document.querySelector(".pds-navbar__mobile");
|
|
5019
|
+
return W.addEventListener("click", N), F.addEventListener("click", N), () => {
|
|
5020
|
+
W.removeEventListener("click", N), F.removeEventListener("click", N);
|
|
5021
5021
|
};
|
|
5022
5022
|
}
|
|
5023
5023
|
}, [E]), ae(() => {
|
|
@@ -5026,9 +5026,9 @@ const R1 = (u) => {
|
|
|
5026
5026
|
E ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
5027
5027
|
}, [E]);
|
|
5028
5028
|
const M = {};
|
|
5029
|
-
e.Children.forEach(s, (
|
|
5030
|
-
const F =
|
|
5031
|
-
F && (M[F] ? M[F].push(
|
|
5029
|
+
e.Children.forEach(s, (W) => {
|
|
5030
|
+
const F = W.props.slot;
|
|
5031
|
+
F && (M[F] ? M[F].push(W) : M[F] = [W]);
|
|
5032
5032
|
});
|
|
5033
5033
|
const z = M["items-left"], I = M["items-right"];
|
|
5034
5034
|
let H = /* @__PURE__ */ e.createElement(
|
|
@@ -5040,13 +5040,13 @@ const R1 = (u) => {
|
|
|
5040
5040
|
}
|
|
5041
5041
|
);
|
|
5042
5042
|
if (i) {
|
|
5043
|
-
const
|
|
5044
|
-
H = /* @__PURE__ */ e.createElement(
|
|
5043
|
+
const W = i.type;
|
|
5044
|
+
H = /* @__PURE__ */ e.createElement(W, w({ "aria-label": l }, i.props), H);
|
|
5045
5045
|
}
|
|
5046
5046
|
let V = "default";
|
|
5047
5047
|
(n === "reverse" || n === "reverse-transparent") && (V = "reverse");
|
|
5048
5048
|
const S = () => o === "custom" ? /* @__PURE__ */ e.createElement(e.Fragment, null, H) : /* @__PURE__ */ e.createElement(
|
|
5049
|
-
|
|
5049
|
+
Qt,
|
|
5050
5050
|
{
|
|
5051
5051
|
colorType: V,
|
|
5052
5052
|
displayType: o,
|
|
@@ -5080,13 +5080,13 @@ const R1 = (u) => {
|
|
|
5080
5080
|
}
|
|
5081
5081
|
},
|
|
5082
5082
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(st, { className: `${f}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__inner-mobile` }, /* @__PURE__ */ e.createElement(S, null), s && D)), /* @__PURE__ */ e.createElement(st, null, s && q))
|
|
5083
|
-
),
|
|
5083
|
+
), Z = /* @__PURE__ */ e.createElement(st, { width: a, className: `${f}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${f}__logo` }, /* @__PURE__ */ e.createElement(S, null)), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, z ? /* @__PURE__ */ e.createElement("div", { className: `${f}__items-left` }, z) : /* @__PURE__ */ e.createElement("span", null), I && /* @__PURE__ */ e.createElement("div", { className: `${f}__items-right` }, I)));
|
|
5084
5084
|
return /* @__PURE__ */ e.createElement(
|
|
5085
5085
|
"header",
|
|
5086
5086
|
w({
|
|
5087
5087
|
className: [f, v, C, y, g].join(" ").trim().replace(/\s+/g, " ")
|
|
5088
5088
|
}, d),
|
|
5089
|
-
h ? B :
|
|
5089
|
+
h ? B : Z
|
|
5090
5090
|
);
|
|
5091
5091
|
};
|
|
5092
5092
|
R1.propTypes = {
|
|
@@ -5160,7 +5160,7 @@ const Ms = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5160
5160
|
m ? $ = bt(d, {
|
|
5161
5161
|
enabled: !1
|
|
5162
5162
|
}) : $ = bt(d, {
|
|
5163
|
-
handleClose:
|
|
5163
|
+
handleClose: fs({
|
|
5164
5164
|
requireIntent: !1,
|
|
5165
5165
|
buffer: 10,
|
|
5166
5166
|
blockPointerEvents: !0,
|
|
@@ -5248,10 +5248,10 @@ const D1 = (l) => {
|
|
|
5248
5248
|
ArrowDown: () => {
|
|
5249
5249
|
var F, O, P, U;
|
|
5250
5250
|
$("down");
|
|
5251
|
-
let
|
|
5252
|
-
h.container !=
|
|
5253
|
-
container:
|
|
5254
|
-
containerChildren: [...
|
|
5251
|
+
let Z = z.target.parentNode.children[1], W = ((O = (F = z.target) == null ? void 0 : F.parentNode.children[1]) == null ? void 0 : O.children) || ((U = (P = z.target) == null ? void 0 : P.parentNode.parentNode.children[1]) == null ? void 0 : U.children);
|
|
5252
|
+
h.container != Z && Z != null && _({
|
|
5253
|
+
container: Z,
|
|
5254
|
+
containerChildren: [...W]
|
|
5255
5255
|
}), g === null || g == h.containerChildren.length - 1 ? d(0) : d(parseInt(g) + 1);
|
|
5256
5256
|
},
|
|
5257
5257
|
ArrowUp: () => {
|
|
@@ -5652,7 +5652,7 @@ const Tt = {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
)
|
|
5654
5654
|
)
|
|
5655
|
-
},
|
|
5655
|
+
}, is = {
|
|
5656
5656
|
"early-access": {
|
|
5657
5657
|
label: "Early Access",
|
|
5658
5658
|
color: "success"
|
|
@@ -5693,9 +5693,9 @@ const Tt = {
|
|
|
5693
5693
|
s && /* @__PURE__ */ e.createElement(
|
|
5694
5694
|
_t,
|
|
5695
5695
|
{
|
|
5696
|
-
label:
|
|
5696
|
+
label: is[s].label,
|
|
5697
5697
|
size: "sm",
|
|
5698
|
-
color:
|
|
5698
|
+
color: is[s].color,
|
|
5699
5699
|
className: `${d}__badge`
|
|
5700
5700
|
}
|
|
5701
5701
|
),
|
|
@@ -5855,9 +5855,9 @@ const kt = (E) => {
|
|
|
5855
5855
|
onNavigate: C,
|
|
5856
5856
|
loop: !0,
|
|
5857
5857
|
openOnArrowKeyDown: !0
|
|
5858
|
-
}), { getReferenceProps: q, getFloatingProps: B, getItemProps:
|
|
5858
|
+
}), { getReferenceProps: q, getFloatingProps: B, getItemProps: Z } = Oe(
|
|
5859
5859
|
[S, V, D]
|
|
5860
|
-
), { isMounted:
|
|
5860
|
+
), { isMounted: W, styles: F } = Ye(I, {
|
|
5861
5861
|
duration: {
|
|
5862
5862
|
open: 300,
|
|
5863
5863
|
close: 150
|
|
@@ -5889,10 +5889,10 @@ const kt = (E) => {
|
|
|
5889
5889
|
const K = U[oe];
|
|
5890
5890
|
y(K.value), C(null), _(!1), l && l(K), d && te(K);
|
|
5891
5891
|
}, ne = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${z}__trigger-icon` }), ue = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${z}__checked-icon` }), pe = U.map((oe, K) => /* @__PURE__ */ e.createElement(
|
|
5892
|
-
|
|
5892
|
+
Kt,
|
|
5893
5893
|
Ee(w({
|
|
5894
5894
|
key: oe
|
|
5895
|
-
},
|
|
5895
|
+
}, Z({
|
|
5896
5896
|
key: oe.value,
|
|
5897
5897
|
ref(Y) {
|
|
5898
5898
|
M.current[K] = Y;
|
|
@@ -5951,7 +5951,7 @@ const kt = (E) => {
|
|
|
5951
5951
|
/* @__PURE__ */ e.createElement("span", null, O(v) || p),
|
|
5952
5952
|
ne
|
|
5953
5953
|
),
|
|
5954
|
-
|
|
5954
|
+
W && /* @__PURE__ */ e.createElement(
|
|
5955
5955
|
"div",
|
|
5956
5956
|
w({
|
|
5957
5957
|
ref: H.setFloating,
|
|
@@ -6065,7 +6065,7 @@ const P1 = {
|
|
|
6065
6065
|
}
|
|
6066
6066
|
}, Ge = (c) => {
|
|
6067
6067
|
var r = c, { arrowText: s = null, direction: n } = r, a = T(r, ["arrowText", "direction"]);
|
|
6068
|
-
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: m, pages: p } = ke(rt), g =
|
|
6068
|
+
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: m, pages: p } = ke(rt), g = Bt(
|
|
6069
6069
|
(h, _) => {
|
|
6070
6070
|
o && (h.preventDefault(), o(_));
|
|
6071
6071
|
},
|
|
@@ -6280,7 +6280,7 @@ const F1 = (n) => {
|
|
|
6280
6280
|
itemLength: m,
|
|
6281
6281
|
pageDirection: p,
|
|
6282
6282
|
pages: g
|
|
6283
|
-
} = ke(rt), d =
|
|
6283
|
+
} = ke(rt), d = Bt(
|
|
6284
6284
|
(b, E) => {
|
|
6285
6285
|
a && (b.preventDefault(), a(E));
|
|
6286
6286
|
},
|
|
@@ -6407,7 +6407,7 @@ const G1 = {
|
|
|
6407
6407
|
included: "circleCheck",
|
|
6408
6408
|
notIncluded: "xmark",
|
|
6409
6409
|
addon: "circlePlusOutline"
|
|
6410
|
-
},
|
|
6410
|
+
}, ds = (i) => {
|
|
6411
6411
|
var m = i, {
|
|
6412
6412
|
listItems: s,
|
|
6413
6413
|
listLabel: n,
|
|
@@ -6490,7 +6490,7 @@ const G1 = {
|
|
|
6490
6490
|
label: l[0].savingsBadgeLabel
|
|
6491
6491
|
}
|
|
6492
6492
|
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__savings-details` }, l[0].savingsDetails))), N = /* @__PURE__ */ e.createElement(
|
|
6493
|
-
|
|
6493
|
+
ds,
|
|
6494
6494
|
{
|
|
6495
6495
|
className: `${E}__list`,
|
|
6496
6496
|
listLabel: l[0].listLabel,
|
|
@@ -6520,7 +6520,7 @@ const G1 = {
|
|
|
6520
6520
|
}), N = l.map((V) => {
|
|
6521
6521
|
const D = v === f(V.label) ? null : `${E}__list--hide`;
|
|
6522
6522
|
return /* @__PURE__ */ e.createElement(
|
|
6523
|
-
|
|
6523
|
+
ds,
|
|
6524
6524
|
{
|
|
6525
6525
|
className: [`${E}__list`, D].join(" ").trim().replace(/\s+/g, " "),
|
|
6526
6526
|
listLabel: V.listLabel,
|
|
@@ -6602,7 +6602,7 @@ const G1 = {
|
|
|
6602
6602
|
className: [E, _].join(" ").trim().replace(/\s+/g, " ")
|
|
6603
6603
|
},
|
|
6604
6604
|
p && /* @__PURE__ */ e.createElement(
|
|
6605
|
-
|
|
6605
|
+
Xt,
|
|
6606
6606
|
{
|
|
6607
6607
|
className: `${E}__status-badge`,
|
|
6608
6608
|
type: p,
|
|
@@ -6700,7 +6700,7 @@ K1.propTypes = {
|
|
|
6700
6700
|
*/
|
|
6701
6701
|
containerClassName: t.string
|
|
6702
6702
|
};
|
|
6703
|
-
const
|
|
6703
|
+
const ms = {
|
|
6704
6704
|
neutral: "--pds-color-semantic-neutral-utility",
|
|
6705
6705
|
info: "--pds-color-semantic-info-foreground",
|
|
6706
6706
|
success: "--pds-color-semantic-success-foreground",
|
|
@@ -6751,7 +6751,7 @@ const ds = {
|
|
|
6751
6751
|
{
|
|
6752
6752
|
className: `${E}__percentage`,
|
|
6753
6753
|
style: {
|
|
6754
|
-
color: `hsl(from var(${
|
|
6754
|
+
color: `hsl(from var(${ms[f]}) h s calc(l - 7))`
|
|
6755
6755
|
}
|
|
6756
6756
|
},
|
|
6757
6757
|
o,
|
|
@@ -6771,7 +6771,7 @@ const ds = {
|
|
|
6771
6771
|
className: `${E}__bar`,
|
|
6772
6772
|
style: {
|
|
6773
6773
|
width: `${_}%`,
|
|
6774
|
-
backgroundColor: `var(${
|
|
6774
|
+
backgroundColor: `var(${ms[f]})`
|
|
6775
6775
|
}
|
|
6776
6776
|
}
|
|
6777
6777
|
)
|
|
@@ -7104,7 +7104,7 @@ const tn = (p) => {
|
|
|
7104
7104
|
let b = "";
|
|
7105
7105
|
l === "Active" && (b = "success"), l === "Frozen" && (b = "frozen");
|
|
7106
7106
|
const E = /* @__PURE__ */ e.createElement(
|
|
7107
|
-
|
|
7107
|
+
Xt,
|
|
7108
7108
|
{
|
|
7109
7109
|
label: l,
|
|
7110
7110
|
statusType: b,
|
|
@@ -7424,9 +7424,9 @@ const cn = (r) => {
|
|
|
7424
7424
|
(V || S) && (D = I);
|
|
7425
7425
|
const q = `${l}__step`, B = [q];
|
|
7426
7426
|
L && B.push(`${q}--current`), k && B.push(`${q}--complete`), x && B.push(`${q}--error`);
|
|
7427
|
-
let
|
|
7428
|
-
k && (
|
|
7429
|
-
const
|
|
7427
|
+
let Z = `${n.step} ${y}`;
|
|
7428
|
+
k && (Z = `${n.step} ${y}, ${n.completed}`), x && (Z = `${n.step} ${y}, ${n.hasError}`);
|
|
7429
|
+
const W = k ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
7430
7430
|
A,
|
|
7431
7431
|
{
|
|
7432
7432
|
iconName: "check",
|
|
@@ -7434,7 +7434,7 @@ const cn = (r) => {
|
|
|
7434
7434
|
className: `${l}__step-complete-icon`
|
|
7435
7435
|
}
|
|
7436
7436
|
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }), F = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-label` }, C.label);
|
|
7437
|
-
let O = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-content` }, F,
|
|
7437
|
+
let O = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-content` }, F, W);
|
|
7438
7438
|
if (k && C.callback) {
|
|
7439
7439
|
const P = (U) => {
|
|
7440
7440
|
C.callback(C), U.preventDefault();
|
|
@@ -7446,7 +7446,7 @@ const cn = (r) => {
|
|
|
7446
7446
|
onClick: P
|
|
7447
7447
|
},
|
|
7448
7448
|
F,
|
|
7449
|
-
|
|
7449
|
+
W
|
|
7450
7450
|
);
|
|
7451
7451
|
}
|
|
7452
7452
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7454,7 +7454,7 @@ const cn = (r) => {
|
|
|
7454
7454
|
{
|
|
7455
7455
|
key: C.id,
|
|
7456
7456
|
id: C.id,
|
|
7457
|
-
"aria-label":
|
|
7457
|
+
"aria-label": Z,
|
|
7458
7458
|
"aria-posinset": y,
|
|
7459
7459
|
"aria-setsize": $,
|
|
7460
7460
|
"aria-current": L ? "step" : null,
|
|
@@ -7709,7 +7709,7 @@ const on = (p) => {
|
|
|
7709
7709
|
N(S[0].target.id);
|
|
7710
7710
|
else if (S.length > 1) {
|
|
7711
7711
|
const q = S.sort(
|
|
7712
|
-
(B,
|
|
7712
|
+
(B, Z) => D(B.target.id) > D(Z.target.id)
|
|
7713
7713
|
);
|
|
7714
7714
|
N(q[0].target.id);
|
|
7715
7715
|
}
|
|
@@ -8702,11 +8702,11 @@ const fn = (m) => {
|
|
|
8702
8702
|
const ue = ne.id ? ne.id : Re();
|
|
8703
8703
|
E.current.push(ue), $.current.push(ne);
|
|
8704
8704
|
});
|
|
8705
|
-
const
|
|
8705
|
+
const Z = (ne) => {
|
|
8706
8706
|
const ue = E.current.indexOf(ne), pe = $.current[ue];
|
|
8707
8707
|
pe.callback && !pe.disabled && (pe.callback(pe), b(!1));
|
|
8708
|
-
},
|
|
8709
|
-
|
|
8708
|
+
}, W = (ne) => {
|
|
8709
|
+
Z(ne.currentTarget.id);
|
|
8710
8710
|
}, F = /* @__PURE__ */ e.createElement(
|
|
8711
8711
|
ot,
|
|
8712
8712
|
{
|
|
@@ -8736,7 +8736,7 @@ const fn = (m) => {
|
|
|
8736
8736
|
ref: (J) => {
|
|
8737
8737
|
I.current[ue] = J;
|
|
8738
8738
|
}
|
|
8739
|
-
}, D({ onClick: (J) =>
|
|
8739
|
+
}, D({ onClick: (J) => W(J) })),
|
|
8740
8740
|
ne.iconName && /* @__PURE__ */ e.createElement(
|
|
8741
8741
|
A,
|
|
8742
8742
|
{
|
|
@@ -8864,13 +8864,13 @@ const Zn = () => {
|
|
|
8864
8864
|
autoClose: !1,
|
|
8865
8865
|
closeButton: !1,
|
|
8866
8866
|
closeOnClick: !1
|
|
8867
|
-
})),
|
|
8867
|
+
})), ns(o, l);
|
|
8868
8868
|
}, n = a1({
|
|
8869
8869
|
collapse: !1,
|
|
8870
8870
|
enter: "pds-toast--bounceInPlace",
|
|
8871
8871
|
exit: "pds-toast--slideOut"
|
|
8872
8872
|
});
|
|
8873
|
-
return [s,
|
|
8873
|
+
return [s, ns, n];
|
|
8874
8874
|
}, bn = Ke(
|
|
8875
8875
|
(I, z) => {
|
|
8876
8876
|
var H = I, {
|
|
@@ -8935,7 +8935,7 @@ const Zn = () => {
|
|
|
8935
8935
|
"value",
|
|
8936
8936
|
"className"
|
|
8937
8937
|
]);
|
|
8938
|
-
const V = Ns(m), S = "pds-text-input", D = c ? fe.disabled : null, q = _ && !c ? fe.required : null, B = k === "error" ? fe.error : null,
|
|
8938
|
+
const V = Ns(m), S = "pds-text-input", D = c ? fe.disabled : null, q = _ && !c ? fe.required : null, B = k === "error" ? fe.error : null, Z = k === "success" ? fe.success : null, W = h ? fe.readonly : null;
|
|
8939
8939
|
let F = null;
|
|
8940
8940
|
y === "search" && (F = "search"), k === "error" && (F = "error"), k === "success" && (F = "success");
|
|
8941
8941
|
const O = L || g, P = typeof x != "undefined", U = typeof a != "undefined", [G, te] = R(
|
|
@@ -8963,8 +8963,8 @@ const Zn = () => {
|
|
|
8963
8963
|
D,
|
|
8964
8964
|
q,
|
|
8965
8965
|
B,
|
|
8966
|
-
W,
|
|
8967
8966
|
Z,
|
|
8967
|
+
W,
|
|
8968
8968
|
N != null ? N : ""
|
|
8969
8969
|
]),
|
|
8970
8970
|
style: m ? V : null
|
|
@@ -9001,7 +9001,7 @@ const Zn = () => {
|
|
|
9001
9001
|
"aria-describedby": O ? `${l}__message` : null
|
|
9002
9002
|
}, i)
|
|
9003
9003
|
), r && se && /* @__PURE__ */ e.createElement(
|
|
9004
|
-
|
|
9004
|
+
b1,
|
|
9005
9005
|
{
|
|
9006
9006
|
id: l,
|
|
9007
9007
|
clearLabel: v.clearButton,
|
|
@@ -9019,13 +9019,13 @@ const Zn = () => {
|
|
|
9019
9019
|
},
|
|
9020
9020
|
/* @__PURE__ */ e.createElement(A, { iconName: J ? "eyeSlash" : "eye", iconSize: "md" })
|
|
9021
9021
|
), o && y === "search" && !se && /* @__PURE__ */ e.createElement(
|
|
9022
|
-
|
|
9022
|
+
f1,
|
|
9023
9023
|
{
|
|
9024
9024
|
inputId: l,
|
|
9025
9025
|
shortcutLabel: v.searchShortcut
|
|
9026
9026
|
}
|
|
9027
9027
|
), n && y !== "password" && /* @__PURE__ */ e.createElement(
|
|
9028
|
-
|
|
9028
|
+
v1,
|
|
9029
9029
|
{
|
|
9030
9030
|
id: l,
|
|
9031
9031
|
currentLength: se.length,
|
|
@@ -9082,7 +9082,7 @@ const Zn = () => {
|
|
|
9082
9082
|
open: b,
|
|
9083
9083
|
onOpenChange: E,
|
|
9084
9084
|
whileElementsMounted: De
|
|
9085
|
-
}), D = lt(S, { event: "mousedown" }), q = Ie(S), B = Te(S, { role: "menu" }),
|
|
9085
|
+
}), D = lt(S, { event: "mousedown" }), q = Ie(S), B = Te(S, { role: "menu" }), Z = it(S, {
|
|
9086
9086
|
listRef: C,
|
|
9087
9087
|
activeIndex: $,
|
|
9088
9088
|
onNavigate: h,
|
|
@@ -9090,8 +9090,8 @@ const Zn = () => {
|
|
|
9090
9090
|
openOnArrowKeyDown: !0,
|
|
9091
9091
|
focusItemOnHover: !0,
|
|
9092
9092
|
focusItemOnOpen: !1
|
|
9093
|
-
}), { getReferenceProps:
|
|
9094
|
-
[q, B, D,
|
|
9093
|
+
}), { getReferenceProps: W, getFloatingProps: F, getItemProps: O } = Oe(
|
|
9094
|
+
[q, B, D, Z]
|
|
9095
9095
|
), { isMounted: P, styles: U } = Ye(S, {
|
|
9096
9096
|
duration: {
|
|
9097
9097
|
open: 300,
|
|
@@ -9209,7 +9209,7 @@ const Zn = () => {
|
|
|
9209
9209
|
className: `${N}__trigger`,
|
|
9210
9210
|
"aria-label": s,
|
|
9211
9211
|
ref: H.setReference
|
|
9212
|
-
},
|
|
9212
|
+
}, W()),
|
|
9213
9213
|
ne,
|
|
9214
9214
|
ue
|
|
9215
9215
|
), P && /* @__PURE__ */ e.createElement(
|
|
@@ -9511,11 +9511,11 @@ const Un = (o) => {
|
|
|
9511
9511
|
"value",
|
|
9512
9512
|
"className"
|
|
9513
9513
|
]);
|
|
9514
|
-
const x = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", M = a ? fe.disabled : null, z = E && !a ? fe.required : null, I = _ === "error" ? fe.error : null, H = _ === "success" ? fe.success : null, V = g > 0 ? `${N}--indent-${g}` : null, S = h || m, D = typeof s != "undefined", q = typeof n != "undefined", [B,
|
|
9514
|
+
const x = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", M = a ? fe.disabled : null, z = E && !a ? fe.required : null, I = _ === "error" ? fe.error : null, H = _ === "success" ? fe.success : null, V = g > 0 ? `${N}--indent-${g}` : null, S = h || m, D = typeof s != "undefined", q = typeof n != "undefined", [B, Z] = R(
|
|
9515
9515
|
q ? n : !1
|
|
9516
|
-
),
|
|
9517
|
-
D ||
|
|
9518
|
-
}, O = `${N}__box`, P = r ? null :
|
|
9516
|
+
), W = s || B, F = (te) => {
|
|
9517
|
+
D || Z(te.target.checked), u && u(te);
|
|
9518
|
+
}, O = `${N}__box`, P = r ? null : W ? `${O}--checked` : null, U = r ? `${O}--indeterminate` : null, G = Bt(() => {
|
|
9519
9519
|
if (r)
|
|
9520
9520
|
return /* @__PURE__ */ e.createElement(
|
|
9521
9521
|
A,
|
|
@@ -9525,7 +9525,7 @@ const Un = (o) => {
|
|
|
9525
9525
|
className: `${N}__icon ${N}__icon--indeterminate`
|
|
9526
9526
|
}
|
|
9527
9527
|
);
|
|
9528
|
-
if (
|
|
9528
|
+
if (W)
|
|
9529
9529
|
return /* @__PURE__ */ e.createElement(
|
|
9530
9530
|
A,
|
|
9531
9531
|
{
|
|
@@ -9534,7 +9534,7 @@ const Un = (o) => {
|
|
|
9534
9534
|
className: `${N}__icon ${N}__icon--checked`
|
|
9535
9535
|
}
|
|
9536
9536
|
);
|
|
9537
|
-
};
|
|
9537
|
+
}, [r, W]);
|
|
9538
9538
|
return /* @__PURE__ */ e.createElement(
|
|
9539
9539
|
"div",
|
|
9540
9540
|
w({
|
|
@@ -9557,7 +9557,7 @@ const Un = (o) => {
|
|
|
9557
9557
|
name: p,
|
|
9558
9558
|
type: "checkbox",
|
|
9559
9559
|
checked: D ? s : B,
|
|
9560
|
-
"aria-checked": r ? "mixed" :
|
|
9560
|
+
"aria-checked": r ? "mixed" : W ? "true" : "false"
|
|
9561
9561
|
}, f ? { value: f } : {}), {
|
|
9562
9562
|
disabled: a,
|
|
9563
9563
|
required: E,
|
|
@@ -9795,7 +9795,7 @@ const Un = (o) => {
|
|
|
9795
9795
|
}
|
|
9796
9796
|
)
|
|
9797
9797
|
);
|
|
9798
|
-
}, $n = ({ toggleStatusLabel: s, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9798
|
+
}, $n = ({ toggleStatusLabel: s, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ut, { label: s }), /* @__PURE__ */ e.createElement(
|
|
9799
9799
|
"label",
|
|
9800
9800
|
{
|
|
9801
9801
|
htmlFor: n,
|
|
@@ -9803,7 +9803,7 @@ const Un = (o) => {
|
|
|
9803
9803
|
"aria-hidden": "true"
|
|
9804
9804
|
},
|
|
9805
9805
|
s
|
|
9806
|
-
)), yn = ({ toggleStatusLabel: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9806
|
+
)), yn = ({ toggleStatusLabel: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ut, { label: s }), /* @__PURE__ */ e.createElement(
|
|
9807
9807
|
"span",
|
|
9808
9808
|
{
|
|
9809
9809
|
className: "pds-switch__input-decor",
|
|
@@ -9896,8 +9896,8 @@ const Un = (o) => {
|
|
|
9896
9896
|
className: "pds-input-message--switch"
|
|
9897
9897
|
}
|
|
9898
9898
|
);
|
|
9899
|
-
let
|
|
9900
|
-
return N ?
|
|
9899
|
+
let Z, W;
|
|
9900
|
+
return N ? Z = /* @__PURE__ */ e.createElement(e.Fragment, null, q, B, D) : M && (W = "pds-switch--placement-right", Z = m ? /* @__PURE__ */ e.createElement(e.Fragment, null, q, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, B, /* @__PURE__ */ e.createElement("div", null, D))) : /* @__PURE__ */ e.createElement(
|
|
9901
9901
|
"div",
|
|
9902
9902
|
{
|
|
9903
9903
|
className: re([
|
|
@@ -9915,12 +9915,12 @@ const Un = (o) => {
|
|
|
9915
9915
|
y,
|
|
9916
9916
|
L,
|
|
9917
9917
|
k,
|
|
9918
|
-
|
|
9918
|
+
W,
|
|
9919
9919
|
$
|
|
9920
9920
|
]),
|
|
9921
9921
|
style: o ? v : null
|
|
9922
9922
|
}, h),
|
|
9923
|
-
|
|
9923
|
+
Z
|
|
9924
9924
|
);
|
|
9925
9925
|
}
|
|
9926
9926
|
), e2 = (p) => {
|
|
@@ -9983,7 +9983,7 @@ const Un = (o) => {
|
|
|
9983
9983
|
zIndex: "var(--pds-z-index-modal)"
|
|
9984
9984
|
})
|
|
9985
9985
|
},
|
|
9986
|
-
/* @__PURE__ */ e.createElement(
|
|
9986
|
+
/* @__PURE__ */ e.createElement(bs, { context: h }, /* @__PURE__ */ e.createElement(
|
|
9987
9987
|
"div",
|
|
9988
9988
|
w(Ee(w({
|
|
9989
9989
|
ref: $.setFloating,
|
|
@@ -10039,7 +10039,7 @@ const Un = (o) => {
|
|
|
10039
10039
|
} else
|
|
10040
10040
|
a = s;
|
|
10041
10041
|
return a;
|
|
10042
|
-
},
|
|
10042
|
+
}, Jt = (o) => {
|
|
10043
10043
|
var l = o, {
|
|
10044
10044
|
headingText: s,
|
|
10045
10045
|
menuItems: n,
|
|
@@ -10087,9 +10087,9 @@ const Un = (o) => {
|
|
|
10087
10087
|
const D = [];
|
|
10088
10088
|
return S.forEach((q) => {
|
|
10089
10089
|
q.links ? (D.push(_({ item: q, level: "top-level" })), q.links.forEach((B) => {
|
|
10090
|
-
B.links ? (D.push(_({ item: B, level: "second-level" })), B.links.forEach((
|
|
10090
|
+
B.links ? (D.push(_({ item: B, level: "second-level" })), B.links.forEach((Z) => {
|
|
10091
10091
|
D.push(
|
|
10092
|
-
_({ item:
|
|
10092
|
+
_({ item: Z, level: "third-level" })
|
|
10093
10093
|
);
|
|
10094
10094
|
})) : D.push(_({ item: B, level: "second-level" }));
|
|
10095
10095
|
})) : D.push(_({ item: q, level: "top-level" }));
|
|
@@ -10182,7 +10182,7 @@ const Un = (o) => {
|
|
|
10182
10182
|
let m = !1;
|
|
10183
10183
|
const p = ke(qe);
|
|
10184
10184
|
p && (m = p.isMobile);
|
|
10185
|
-
const g = ke(
|
|
10185
|
+
const g = ke(Yt);
|
|
10186
10186
|
let d = !0;
|
|
10187
10187
|
g && (d = g.isSidebarExpanded);
|
|
10188
10188
|
const u = "pds-dashboard-nav", b = d ? `${u}--expanded` : `${u}--collapsed`, E = (v) => {
|
|
@@ -10239,15 +10239,15 @@ const Un = (o) => {
|
|
|
10239
10239
|
placement: "right-start",
|
|
10240
10240
|
open: H,
|
|
10241
10241
|
onOpenChange: V,
|
|
10242
|
-
middleware: [
|
|
10242
|
+
middleware: [Ft(12), Wt(), Zt()],
|
|
10243
10243
|
whileElementsMounted: De
|
|
10244
10244
|
}), B = bt(q, {
|
|
10245
10245
|
move: !1,
|
|
10246
|
-
handleClose:
|
|
10247
|
-
}),
|
|
10246
|
+
handleClose: fs()
|
|
10247
|
+
}), Z = hs(q), W = Ie(q), F = Te(q, { role: "menu" }), { getReferenceProps: O, getFloatingProps: P } = Oe([
|
|
10248
10248
|
B,
|
|
10249
|
-
W,
|
|
10250
10249
|
Z,
|
|
10250
|
+
W,
|
|
10251
10251
|
F
|
|
10252
10252
|
]);
|
|
10253
10253
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -10304,7 +10304,7 @@ const Un = (o) => {
|
|
|
10304
10304
|
v.icon
|
|
10305
10305
|
)
|
|
10306
10306
|
})), C = /* @__PURE__ */ e.createElement(
|
|
10307
|
-
|
|
10307
|
+
Jt,
|
|
10308
10308
|
{
|
|
10309
10309
|
menuItems: f,
|
|
10310
10310
|
selectTextFallback: c
|
|
@@ -10317,7 +10317,7 @@ const Un = (o) => {
|
|
|
10317
10317
|
className: [u, b, r].join(" ").trim().replace(/\s+/g, " ")
|
|
10318
10318
|
}, o),
|
|
10319
10319
|
!m && /* @__PURE__ */ e.createElement(
|
|
10320
|
-
|
|
10320
|
+
Qt,
|
|
10321
10321
|
{
|
|
10322
10322
|
className: `${u}__logo`,
|
|
10323
10323
|
displayType: d ? "full" : "icon",
|
|
@@ -10417,7 +10417,7 @@ const Un = (o) => {
|
|
|
10417
10417
|
)
|
|
10418
10418
|
);
|
|
10419
10419
|
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((v, y) => _(v, y)))), C = /* @__PURE__ */ e.createElement(
|
|
10420
|
-
|
|
10420
|
+
Jt,
|
|
10421
10421
|
{
|
|
10422
10422
|
headingText: a,
|
|
10423
10423
|
menuItems: r,
|
|
@@ -10561,7 +10561,7 @@ const Un = (o) => {
|
|
|
10561
10561
|
)
|
|
10562
10562
|
);
|
|
10563
10563
|
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${d}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, r.map((v, y) => _(v, y)))), C = /* @__PURE__ */ e.createElement(
|
|
10564
|
-
|
|
10564
|
+
Jt,
|
|
10565
10565
|
{
|
|
10566
10566
|
headingText: a,
|
|
10567
10567
|
menuItems: r,
|
|
@@ -10639,7 +10639,7 @@ const Un = (o) => {
|
|
|
10639
10639
|
return;
|
|
10640
10640
|
}
|
|
10641
10641
|
g(
|
|
10642
|
-
(
|
|
10642
|
+
(Z) => Z.filter((W) => W.id !== N)
|
|
10643
10643
|
), I && k.onDismiss();
|
|
10644
10644
|
}, 200);
|
|
10645
10645
|
};
|
|
@@ -10853,7 +10853,7 @@ const Un = (o) => {
|
|
|
10853
10853
|
n && a && /* @__PURE__ */ e.createElement("span", { className: p }),
|
|
10854
10854
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, s)
|
|
10855
10855
|
);
|
|
10856
|
-
}, Be = 8,
|
|
10856
|
+
}, Be = 8, us = 14, Nn = 6, o2 = (b) => {
|
|
10857
10857
|
var E = b, {
|
|
10858
10858
|
content: s,
|
|
10859
10859
|
customTrigger: n = !1,
|
|
@@ -10900,9 +10900,9 @@ const Un = (o) => {
|
|
|
10900
10900
|
h(G), G || r();
|
|
10901
10901
|
},
|
|
10902
10902
|
middleware: [
|
|
10903
|
-
|
|
10904
|
-
Ft({ padding: 8 }),
|
|
10903
|
+
Ft(Be + Nn + v),
|
|
10905
10904
|
Wt({ padding: 8 }),
|
|
10905
|
+
Zt({ padding: 8 }),
|
|
10906
10906
|
Ys({ element: y })
|
|
10907
10907
|
],
|
|
10908
10908
|
whileElementsMounted: De
|
|
@@ -10912,7 +10912,7 @@ const Un = (o) => {
|
|
|
10912
10912
|
z,
|
|
10913
10913
|
I,
|
|
10914
10914
|
H
|
|
10915
|
-
]), D = (O = (F = N.arrow) == null ? void 0 : F.x) != null ? O : 0, q = (U = (P = N.arrow) == null ? void 0 : P.y) != null ? U : 0, B = D +
|
|
10915
|
+
]), D = (O = (F = N.arrow) == null ? void 0 : F.x) != null ? O : 0, q = (U = (P = N.arrow) == null ? void 0 : P.y) != null ? U : 0, B = D + us / 2, Z = q + Be, { isMounted: W } = Ye(x, {
|
|
10916
10916
|
initial: {
|
|
10917
10917
|
transform: "scale(0)"
|
|
10918
10918
|
},
|
|
@@ -10920,8 +10920,8 @@ const Un = (o) => {
|
|
|
10920
10920
|
transformOrigin: {
|
|
10921
10921
|
top: `${B}px calc(100% + ${Be}px)`,
|
|
10922
10922
|
bottom: `${B}px ${-Be}px`,
|
|
10923
|
-
left: `calc(100% + ${Be}px) ${
|
|
10924
|
-
right: `${-Be}px ${
|
|
10923
|
+
left: `calc(100% + ${Be}px) ${Z}px`,
|
|
10924
|
+
right: `${-Be}px ${Z}px`
|
|
10925
10925
|
}[G]
|
|
10926
10926
|
})
|
|
10927
10927
|
});
|
|
@@ -10945,7 +10945,7 @@ const Un = (o) => {
|
|
|
10945
10945
|
}
|
|
10946
10946
|
))
|
|
10947
10947
|
),
|
|
10948
|
-
|
|
10948
|
+
W && /* @__PURE__ */ e.createElement(bs, { context: x, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
10949
10949
|
"div",
|
|
10950
10950
|
w({
|
|
10951
10951
|
className: `${f}__container`,
|
|
@@ -10958,7 +10958,7 @@ const Un = (o) => {
|
|
|
10958
10958
|
ref: y,
|
|
10959
10959
|
context: x,
|
|
10960
10960
|
height: Be,
|
|
10961
|
-
width:
|
|
10961
|
+
width: us,
|
|
10962
10962
|
tipRadius: 0,
|
|
10963
10963
|
fill: "var(--pds-color-background-default)",
|
|
10964
10964
|
stroke: "var(--pds-color-border-default)",
|
|
@@ -11025,7 +11025,7 @@ const Un = (o) => {
|
|
|
11025
11025
|
s && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, s)
|
|
11026
11026
|
);
|
|
11027
11027
|
};
|
|
11028
|
-
let
|
|
11028
|
+
let ps = [
|
|
11029
11029
|
"color-1",
|
|
11030
11030
|
"color-2",
|
|
11031
11031
|
"color-3",
|
|
@@ -11048,8 +11048,8 @@ let us = [
|
|
|
11048
11048
|
"color-20"
|
|
11049
11049
|
];
|
|
11050
11050
|
const kn = (s) => {
|
|
11051
|
-
const n = parseInt(
|
|
11052
|
-
return
|
|
11051
|
+
const n = parseInt(vs(s), 16);
|
|
11052
|
+
return ps[n % ps.length];
|
|
11053
11053
|
}, Hn = (s, n) => s.length > n ? s.slice(0, n) + " ..." : s, m2 = (m) => {
|
|
11054
11054
|
var p = m, {
|
|
11055
11055
|
linkContent: s,
|
|
@@ -11417,48 +11417,48 @@ Vn.propTypes = {
|
|
|
11417
11417
|
const u2 = ({
|
|
11418
11418
|
children: s,
|
|
11419
11419
|
mobileMenuMaxWidth: n = 640
|
|
11420
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
11420
|
+
}) => /* @__PURE__ */ e.createElement($1, { mobileMenuMaxWidth: n }, s);
|
|
11421
11421
|
export {
|
|
11422
11422
|
ot as Avatar,
|
|
11423
|
-
|
|
11423
|
+
l1 as AvatarTileList,
|
|
11424
11424
|
a2 as Banner,
|
|
11425
|
-
|
|
11425
|
+
d1 as Breadcrumbs,
|
|
11426
11426
|
Ze as Button,
|
|
11427
11427
|
Ue as ButtonLink,
|
|
11428
11428
|
mn as CTALink,
|
|
11429
|
-
|
|
11429
|
+
C1 as CTASlice,
|
|
11430
11430
|
Kn as Callout,
|
|
11431
|
-
|
|
11432
|
-
|
|
11431
|
+
E1 as Card,
|
|
11432
|
+
_1 as CardSelectGroup,
|
|
11433
11433
|
Cn as Checkbox,
|
|
11434
11434
|
Yn as CheckboxFieldset,
|
|
11435
11435
|
Xn as CheckboxGroup,
|
|
11436
11436
|
ks as Combobox,
|
|
11437
|
-
|
|
11437
|
+
ds as ComparisonList,
|
|
11438
11438
|
st as Container,
|
|
11439
|
-
|
|
11439
|
+
Yt as DashboardContext,
|
|
11440
11440
|
Fn as DashboardLayout,
|
|
11441
11441
|
t2 as DashboardNav,
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11442
|
+
w1 as DashboardSearch,
|
|
11443
|
+
Jt as DropdownMenu,
|
|
11444
|
+
N1 as ExpansionPanel,
|
|
11445
|
+
k1 as ExpansionPanelGroup,
|
|
11446
|
+
H1 as FileUpload,
|
|
11447
11447
|
zn as FlexContainer,
|
|
11448
11448
|
zs as FooterHeading,
|
|
11449
|
-
|
|
11449
|
+
z1 as FooterLinks,
|
|
11450
11450
|
u2 as GlobalWrapper,
|
|
11451
|
-
|
|
11451
|
+
L1 as Heading,
|
|
11452
11452
|
A as Icon,
|
|
11453
11453
|
Et as IconButton,
|
|
11454
11454
|
_t as IndicatorBadge,
|
|
11455
11455
|
l2 as InlineMessage,
|
|
11456
|
-
|
|
11456
|
+
x1 as InputFormatted,
|
|
11457
11457
|
Qn as InputGroup,
|
|
11458
|
-
|
|
11459
|
-
|
|
11458
|
+
V1 as InputObscured,
|
|
11459
|
+
S1 as InputText,
|
|
11460
11460
|
Ae as InputWrapper,
|
|
11461
|
-
|
|
11461
|
+
I1 as LinksCard,
|
|
11462
11462
|
Ls as MenuButton,
|
|
11463
11463
|
e2 as Modal,
|
|
11464
11464
|
D1 as NavMenu,
|
|
@@ -11466,7 +11466,7 @@ export {
|
|
|
11466
11466
|
A1 as NewSiteCard,
|
|
11467
11467
|
U1 as Pager,
|
|
11468
11468
|
r2 as Panel,
|
|
11469
|
-
|
|
11469
|
+
Qt as PantheonLogo,
|
|
11470
11470
|
xs as PlatformIcon,
|
|
11471
11471
|
o2 as Popover,
|
|
11472
11472
|
K1 as PricingCard,
|
|
@@ -11483,12 +11483,12 @@ export {
|
|
|
11483
11483
|
Ln as SidebarLayout,
|
|
11484
11484
|
tn as SiteCard,
|
|
11485
11485
|
sn as SiteFooter,
|
|
11486
|
-
|
|
11486
|
+
y1 as Skiplink,
|
|
11487
11487
|
nn as SocialLinks,
|
|
11488
11488
|
Nt as Spinner,
|
|
11489
11489
|
an as SplitButton,
|
|
11490
11490
|
ln as StatsTileList,
|
|
11491
|
-
|
|
11491
|
+
Xt as StatusBadge,
|
|
11492
11492
|
d2 as StatusIndicator,
|
|
11493
11493
|
cn as Stepper,
|
|
11494
11494
|
Mn as StepperLayout,
|
|
@@ -11512,7 +11512,7 @@ export {
|
|
|
11512
11512
|
fn as UserMenu,
|
|
11513
11513
|
En as WorkspaceSelector,
|
|
11514
11514
|
as as iconList,
|
|
11515
|
-
|
|
11515
|
+
ps as tagColors,
|
|
11516
11516
|
Zn as useToast
|
|
11517
11517
|
};
|
|
11518
11518
|
//# sourceMappingURL=index.js.map
|