@pantheon-systems/pds-toolkit-react 1.0.0-dev.155 → 1.0.0-dev.156
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/inputs/Select/Select.d.ts +1 -0
- package/_dist/css/component-css/pds-index.css +1 -1
- package/_dist/css/component-css/pds-input-group.css +1 -1
- package/_dist/css/pds-components.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +797 -781
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -19,16 +19,16 @@ var S = (s, n) => {
|
|
|
19
19
|
n.indexOf(c) < 0 && Gt.call(s, c) && (a[c] = s[c]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
import e, { useState as R, useRef as ee, createContext as ht, useContext as Ne, forwardRef as
|
|
22
|
+
import e, { useState as R, useRef as ee, createContext as ht, useContext as Ne, forwardRef as Ue, cloneElement as Ds, useEffect as se, useLayoutEffect as As, useCallback as cs, isValidElement as qs } from "react";
|
|
23
23
|
import t from "prop-types";
|
|
24
24
|
import rs from "hash-sum";
|
|
25
|
-
import { useFloating as Ve, offset as is, flip as os, shift as ds, autoUpdate as
|
|
26
|
-
import { NavLink as us, MemoryRouter as
|
|
27
|
-
import { useHotkeys as
|
|
25
|
+
import { useFloating as Ve, offset as is, flip as os, shift as ds, autoUpdate as Re, useHover as Ot, useFocus as Ps, useDismiss as Se, useRole as Ie, useInteractions as Te, useId as js, useListNavigation as ct, useTransitionStyles as Ge, useClick as nt, safePolygon as Bs, FloatingOverlay as Fs, FloatingFocusManager as ms, arrow as Ws, FloatingArrow as Zs } from "@floating-ui/react";
|
|
26
|
+
import { NavLink as us, MemoryRouter as Us } from "react-router-dom";
|
|
27
|
+
import { useHotkeys as Gs } from "react-hotkeys-hook";
|
|
28
28
|
import { useMeasure as ft } from "@reactuses/core";
|
|
29
|
-
import { useFloating as
|
|
30
|
-
import
|
|
31
|
-
import { ToastContainer as
|
|
29
|
+
import { useFloating as Ks, flip as Ys } from "@floating-ui/react-dom";
|
|
30
|
+
import Xs from "focus-trap-react";
|
|
31
|
+
import { ToastContainer as Qs, Slide as Js, cssTransition as en, toast as Kt } from "react-toastify";
|
|
32
32
|
let Yt = [
|
|
33
33
|
"g01",
|
|
34
34
|
"g02",
|
|
@@ -43,10 +43,10 @@ let Yt = [
|
|
|
43
43
|
"g11",
|
|
44
44
|
"g12"
|
|
45
45
|
];
|
|
46
|
-
const
|
|
46
|
+
const tn = (s) => {
|
|
47
47
|
const n = parseInt(rs(s), 16);
|
|
48
48
|
return Yt[n % Yt.length];
|
|
49
|
-
},
|
|
49
|
+
}, tt = (l) => {
|
|
50
50
|
var o = l, {
|
|
51
51
|
size: s = "md",
|
|
52
52
|
imageSrc: n,
|
|
@@ -61,7 +61,7 @@ const sn = (s) => {
|
|
|
61
61
|
"className"
|
|
62
62
|
]);
|
|
63
63
|
const u = "pds-avatar", m = `${u}--${s}`, _ = n ? `${u}--image` : null, d = {
|
|
64
|
-
backgroundImage: c ? `var(--pds-color-gradient-avatar-${
|
|
64
|
+
backgroundImage: c ? `var(--pds-color-gradient-avatar-${tn(c)})` : null,
|
|
65
65
|
borderRadius: "100%",
|
|
66
66
|
height: "100%",
|
|
67
67
|
width: "100%"
|
|
@@ -83,7 +83,7 @@ const sn = (s) => {
|
|
|
83
83
|
)
|
|
84
84
|
);
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
tt.propTypes = {
|
|
87
87
|
/**
|
|
88
88
|
* Avatar size.
|
|
89
89
|
*/
|
|
@@ -105,7 +105,7 @@ et.propTypes = {
|
|
|
105
105
|
*/
|
|
106
106
|
className: t.string
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const sn = (r) => {
|
|
109
109
|
var i = r, {
|
|
110
110
|
darkBackground: s,
|
|
111
111
|
listItems: n,
|
|
@@ -152,7 +152,7 @@ const nn = (r) => {
|
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
};
|
|
155
|
-
|
|
155
|
+
sn.propTypes = {
|
|
156
156
|
/**
|
|
157
157
|
* Boolean to set for dark background
|
|
158
158
|
*/
|
|
@@ -175,7 +175,7 @@ nn.propTypes = {
|
|
|
175
175
|
*/
|
|
176
176
|
className: t.string
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const yt = 300, nn = 400, A = (r) => {
|
|
179
179
|
var i = r, {
|
|
180
180
|
iconName: s,
|
|
181
181
|
iconSize: n = "md",
|
|
@@ -185,7 +185,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
185
185
|
"iconSize",
|
|
186
186
|
"className"
|
|
187
187
|
]);
|
|
188
|
-
const l = `pds-icon pds-icon--${n} pds-icon--${s}`, o = `0 0 ${
|
|
188
|
+
const l = `pds-icon pds-icon--${n} pds-icon--${s}`, o = `0 0 ${Rt[s].width} 512`, u = {
|
|
189
189
|
sm: "0.8rem",
|
|
190
190
|
md: "1rem",
|
|
191
191
|
lg: "1.2rem",
|
|
@@ -207,9 +207,9 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
207
207
|
focusable: "false",
|
|
208
208
|
className: [l, a != null ? a : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
209
209
|
}, c),
|
|
210
|
-
/* @__PURE__ */ e.createElement("path", { d:
|
|
210
|
+
/* @__PURE__ */ e.createElement("path", { d: Rt[s].path, fill: "currentColor" })
|
|
211
211
|
);
|
|
212
|
-
},
|
|
212
|
+
}, Rt = {
|
|
213
213
|
angleDown: {
|
|
214
214
|
path: "M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z",
|
|
215
215
|
width: "440"
|
|
@@ -802,7 +802,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
802
802
|
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",
|
|
803
803
|
width: "576"
|
|
804
804
|
}
|
|
805
|
-
}, Xt = Object.keys(
|
|
805
|
+
}, Xt = Object.keys(Rt), Qt = 8, Dt = (u) => {
|
|
806
806
|
var m = u, {
|
|
807
807
|
content: s,
|
|
808
808
|
customTrigger: n = !1,
|
|
@@ -823,7 +823,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
823
823
|
const [_, g] = R(!1), d = typeof n, v = "pds-tooltip", h = [
|
|
824
824
|
`${v}__trigger-custom`,
|
|
825
825
|
d === "string" ? `${v}__trigger-text` : ""
|
|
826
|
-
].join(" ").trim().replace(/\s+/g, " "), $ = n ? c : 0, { refs: f, floatingStyles:
|
|
826
|
+
].join(" ").trim().replace(/\s+/g, " "), $ = n ? c : 0, { refs: f, floatingStyles: E, context: p } = Ve({
|
|
827
827
|
placement: "top",
|
|
828
828
|
open: _,
|
|
829
829
|
onOpenChange: g,
|
|
@@ -832,17 +832,17 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
832
832
|
os({ padding: 5 }),
|
|
833
833
|
ds({ padding: 5 })
|
|
834
834
|
],
|
|
835
|
-
whileElementsMounted:
|
|
836
|
-
}), b =
|
|
835
|
+
whileElementsMounted: Re
|
|
836
|
+
}), b = Ot(p, {
|
|
837
837
|
restMs: 300,
|
|
838
838
|
delay: { open: 500, close: 0 },
|
|
839
839
|
move: !1
|
|
840
|
-
}),
|
|
840
|
+
}), C = Ps(p), y = Se(p), w = Ie(p, { role: "tooltip" }), { getReferenceProps: z, getFloatingProps: x } = Te([
|
|
841
841
|
b,
|
|
842
|
-
|
|
842
|
+
C,
|
|
843
843
|
y,
|
|
844
844
|
w
|
|
845
|
-
]), L =
|
|
845
|
+
]), L = nn, V = ve(N({}, E), {
|
|
846
846
|
zIndex: a || L
|
|
847
847
|
});
|
|
848
848
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -913,23 +913,23 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
913
913
|
hide: `${v}--hide`,
|
|
914
914
|
scaleIn: `${v}--scaleIn`
|
|
915
915
|
};
|
|
916
|
-
let
|
|
916
|
+
let E;
|
|
917
917
|
switch (o) {
|
|
918
918
|
case "sm":
|
|
919
|
-
|
|
919
|
+
E = "md";
|
|
920
920
|
break;
|
|
921
921
|
case "md":
|
|
922
|
-
|
|
922
|
+
E = "md";
|
|
923
923
|
break;
|
|
924
924
|
case "lg":
|
|
925
|
-
|
|
925
|
+
E = "xl";
|
|
926
926
|
}
|
|
927
|
-
const p = i !== null, b = ee(null),
|
|
928
|
-
b.current.classList.add(f.fadeOut), b.current.classList.add(f.hide),
|
|
927
|
+
const p = i !== null, b = ee(null), C = ee(null), y = () => {
|
|
928
|
+
b.current.classList.add(f.fadeOut), b.current.classList.add(f.hide), C.current.classList.remove(f.hide), C.current.classList.add(f.scaleIn), setTimeout(() => {
|
|
929
929
|
b.current.classList.remove(
|
|
930
930
|
f.fadeOut,
|
|
931
931
|
f.hide
|
|
932
|
-
), b.current.classList.add(f.scaleIn),
|
|
932
|
+
), b.current.classList.add(f.scaleIn), C.current.classList.remove(f.scaleIn), C.current.classList.add(f.hide);
|
|
933
933
|
}, 2e3);
|
|
934
934
|
}, w = () => {
|
|
935
935
|
p && y(), l && l();
|
|
@@ -937,20 +937,20 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
937
937
|
A,
|
|
938
938
|
{
|
|
939
939
|
iconName: r,
|
|
940
|
-
iconSize:
|
|
940
|
+
iconSize: E,
|
|
941
941
|
className: `${v}__icon`
|
|
942
942
|
}
|
|
943
943
|
)), /* @__PURE__ */ e.createElement(
|
|
944
944
|
"div",
|
|
945
945
|
{
|
|
946
|
-
ref:
|
|
946
|
+
ref: C,
|
|
947
947
|
className: `${v}__icon-wrapper ${f.hide}`
|
|
948
948
|
},
|
|
949
949
|
/* @__PURE__ */ e.createElement(
|
|
950
950
|
A,
|
|
951
951
|
{
|
|
952
952
|
iconName: i,
|
|
953
|
-
iconSize:
|
|
953
|
+
iconSize: E,
|
|
954
954
|
className: `${v}__icon`
|
|
955
955
|
}
|
|
956
956
|
)
|
|
@@ -958,7 +958,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
958
958
|
A,
|
|
959
959
|
{
|
|
960
960
|
iconName: r,
|
|
961
|
-
iconSize:
|
|
961
|
+
iconSize: E,
|
|
962
962
|
className: `${v}__icon`
|
|
963
963
|
}
|
|
964
964
|
));
|
|
@@ -973,7 +973,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
973
973
|
title: c && !a ? null : s
|
|
974
974
|
}, _),
|
|
975
975
|
c && !a ? /* @__PURE__ */ e.createElement(
|
|
976
|
-
|
|
976
|
+
Dt,
|
|
977
977
|
{
|
|
978
978
|
content: s,
|
|
979
979
|
className: `${v}__tooltip`,
|
|
@@ -982,11 +982,11 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
982
982
|
}
|
|
983
983
|
) : z
|
|
984
984
|
);
|
|
985
|
-
},
|
|
985
|
+
}, Nt = {
|
|
986
986
|
info: "circleInfo",
|
|
987
987
|
warning: "triangleExclamation",
|
|
988
988
|
critical: "diamondExclamation"
|
|
989
|
-
},
|
|
989
|
+
}, an = (o) => {
|
|
990
990
|
var u = o, {
|
|
991
991
|
banners: s,
|
|
992
992
|
dismissLabel: n = "Dismiss",
|
|
@@ -1013,7 +1013,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1013
1013
|
info: `${d}--info`,
|
|
1014
1014
|
warning: `${d}--warning`,
|
|
1015
1015
|
critical: `${d}--critical`
|
|
1016
|
-
}, $ = (w) => w === 0 ? 0 : -1, f = (w) => w === 0 ? "visible" : "hidden",
|
|
1016
|
+
}, $ = (w) => w === 0 ? 0 : -1, f = (w) => w === 0 ? "visible" : "hidden", E = m.map((w, z) => {
|
|
1017
1017
|
const L = ["critical", "warning"].includes(w.type) ? "alert" : "status", V = `${r[w.type]}: `, H = (I) => {
|
|
1018
1018
|
I.preventDefault();
|
|
1019
1019
|
const k = I.target.closest(`.${d}`).id, M = m.findIndex(
|
|
@@ -1031,13 +1031,13 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1031
1031
|
className: [d, h[w.type]].join(" ").trim().replace(/\s+/g, " "),
|
|
1032
1032
|
role: L,
|
|
1033
1033
|
style: {
|
|
1034
|
-
zIndex:
|
|
1034
|
+
zIndex: yt - z
|
|
1035
1035
|
}
|
|
1036
1036
|
},
|
|
1037
1037
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement(
|
|
1038
1038
|
A,
|
|
1039
1039
|
{
|
|
1040
|
-
iconName: `${w.type}` in
|
|
1040
|
+
iconName: `${w.type}` in Nt ? Nt[w.type] : Nt.info,
|
|
1041
1041
|
className: `${d}__icon ${d}__icon--${w.type}`
|
|
1042
1042
|
}
|
|
1043
1043
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -1071,7 +1071,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1071
1071
|
document.getElementById(m[g - 1].id).classList.remove(`${d}--fading`);
|
|
1072
1072
|
}, 500);
|
|
1073
1073
|
}, b = () => {
|
|
1074
|
-
document.getElementById(m[0].id).style.zIndex =
|
|
1074
|
+
document.getElementById(m[0].id).style.zIndex = yt + 2, document.getElementById(m[g - 1].id).style.zIndex = yt + 1, document.getElementById(m[0].id).classList.add(`${d}--fading`), setTimeout(() => {
|
|
1075
1075
|
_((w) => {
|
|
1076
1076
|
const z = [...w], x = z.pop();
|
|
1077
1077
|
return z.unshift(x), z;
|
|
@@ -1079,7 +1079,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1079
1079
|
}, 300), setTimeout(() => {
|
|
1080
1080
|
document.getElementById(m[1].id).classList.remove(`${d}--fading`);
|
|
1081
1081
|
}, 500);
|
|
1082
|
-
},
|
|
1082
|
+
}, C = g > 0 ? m[0].type : null, y = C ? `${d}--${C}` : null;
|
|
1083
1083
|
return /* @__PURE__ */ e.createElement(
|
|
1084
1084
|
"div",
|
|
1085
1085
|
N({
|
|
@@ -1101,7 +1101,7 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1101
1101
|
ariaLabel: c,
|
|
1102
1102
|
hasTooltip: !1
|
|
1103
1103
|
}
|
|
1104
|
-
),
|
|
1104
|
+
), E, /* @__PURE__ */ e.createElement(
|
|
1105
1105
|
pt,
|
|
1106
1106
|
{
|
|
1107
1107
|
iconName: "angleRight",
|
|
@@ -1111,10 +1111,10 @@ const $t = 300, an = 400, A = (r) => {
|
|
|
1111
1111
|
ariaLabel: a,
|
|
1112
1112
|
hasTooltip: !1
|
|
1113
1113
|
}
|
|
1114
|
-
)) :
|
|
1114
|
+
)) : E[0]
|
|
1115
1115
|
);
|
|
1116
1116
|
};
|
|
1117
|
-
|
|
1117
|
+
an.propTypes = {
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Array of banners.
|
|
1120
1120
|
*/
|
|
@@ -1152,7 +1152,7 @@ ln.propTypes = {
|
|
|
1152
1152
|
*/
|
|
1153
1153
|
className: t.string
|
|
1154
1154
|
};
|
|
1155
|
-
const
|
|
1155
|
+
const ln = {
|
|
1156
1156
|
crumbs: [],
|
|
1157
1157
|
deferredCrumbIds: [],
|
|
1158
1158
|
register: () => {
|
|
@@ -1163,23 +1163,23 @@ const cn = {
|
|
|
1163
1163
|
},
|
|
1164
1164
|
resolveCrumb: () => {
|
|
1165
1165
|
}
|
|
1166
|
-
}, ps = ht(
|
|
1166
|
+
}, ps = ht(ln), Be = ({ crumb: s, lastCrumb: n, classes: a }) => {
|
|
1167
1167
|
const c = s.label.length > 16 ? `${s.label.slice(0, 16)}...` : null;
|
|
1168
|
-
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(
|
|
1168
|
+
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(Dt, { content: s.label, triggerText: c }) : s.label) : /* @__PURE__ */ e.createElement(us, { end: !0, to: s.uri }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(Dt, { content: s.label, triggerText: c }) : s.label));
|
|
1169
1169
|
};
|
|
1170
|
-
|
|
1170
|
+
Be.propTypes = {
|
|
1171
1171
|
crumb: t.object,
|
|
1172
1172
|
lastCrumb: t.bool,
|
|
1173
1173
|
classes: t.string
|
|
1174
1174
|
};
|
|
1175
|
-
const
|
|
1175
|
+
const cn = (s) => /* @__PURE__ */ e.createElement(us, { className: "pds-breadcrumbs__mobileCrumbs", end: !0, to: s.uri }, /* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" }), s.label), rn = (s, n) => s.uri.split("/").length - n.uri.split("/").length, gs = (a) => {
|
|
1176
1176
|
var c = a, { ariaLabel: s } = c, n = S(c, ["ariaLabel"]);
|
|
1177
|
-
const [r, i] = R(!0), { crumbs: l, deferredCrumbIds: o } = Ne(ps), u = [...l].sort(
|
|
1177
|
+
const [r, i] = R(!0), { crumbs: l, deferredCrumbIds: o } = Ne(ps), u = [...l].sort(rn), m = () => {
|
|
1178
1178
|
i(!1);
|
|
1179
1179
|
}, _ = u.map(
|
|
1180
|
-
($, f) => f === u.length - 1 ? /* @__PURE__ */ e.createElement(
|
|
1180
|
+
($, f) => f === u.length - 1 ? /* @__PURE__ */ e.createElement(Be, { crumb: $, lastCrumb: !0, key: f }) : /* @__PURE__ */ e.createElement(Be, { crumb: $, key: f })
|
|
1181
1181
|
), g = u.map(
|
|
1182
|
-
($, f) => f === u.length - 1 ? /* @__PURE__ */ e.createElement(
|
|
1182
|
+
($, f) => f === u.length - 1 ? /* @__PURE__ */ e.createElement(Be, { crumb: $, key: `breadcrumb-${f}`, lastCrumb: !0 }) : f == 2 ? /* @__PURE__ */ e.createElement(e.Fragment, null, " ", /* @__PURE__ */ e.createElement("li", { className: r ? "" : "pds-breadcrumbs__hidden" }, /* @__PURE__ */ e.createElement(
|
|
1183
1183
|
"button",
|
|
1184
1184
|
{
|
|
1185
1185
|
key: `breadcrumb-button-${f}`,
|
|
@@ -1188,30 +1188,30 @@ const rn = (s) => /* @__PURE__ */ e.createElement(us, { className: "pds-breadcru
|
|
|
1188
1188
|
},
|
|
1189
1189
|
"..."
|
|
1190
1190
|
)), /* @__PURE__ */ e.createElement(
|
|
1191
|
-
|
|
1191
|
+
Be,
|
|
1192
1192
|
{
|
|
1193
1193
|
crumb: $,
|
|
1194
1194
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
1195
1195
|
key: `breadcrumb-${f}`
|
|
1196
1196
|
}
|
|
1197
1197
|
)) : f > 2 && f < u.length - 2 ? /* @__PURE__ */ e.createElement(
|
|
1198
|
-
|
|
1198
|
+
Be,
|
|
1199
1199
|
{
|
|
1200
1200
|
crumb: $,
|
|
1201
1201
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
1202
1202
|
key: `breadcrumb-${f}`
|
|
1203
1203
|
}
|
|
1204
|
-
) : /* @__PURE__ */ e.createElement(
|
|
1205
|
-
), d = u.length >= 6 ? g : _, v = u[u.length - 2], h =
|
|
1204
|
+
) : /* @__PURE__ */ e.createElement(Be, { crumb: $, key: `breadcrumb-${f}` })
|
|
1205
|
+
), d = u.length >= 6 ? g : _, v = u[u.length - 2], h = cn(v);
|
|
1206
1206
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": s, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", N({ className: "pds-breadcrumbs__item" }, n), d), h);
|
|
1207
1207
|
};
|
|
1208
1208
|
gs.propTypes = {
|
|
1209
1209
|
ariaLabel: t.string.isRequired,
|
|
1210
1210
|
crumbs: t.array
|
|
1211
1211
|
};
|
|
1212
|
-
const
|
|
1212
|
+
const on = (c) => {
|
|
1213
1213
|
var r = c, { ariaLabel: s, crumbs: n } = r, a = S(r, ["ariaLabel", "crumbs"]);
|
|
1214
|
-
return /* @__PURE__ */ e.createElement(
|
|
1214
|
+
return /* @__PURE__ */ e.createElement(Us, null, /* @__PURE__ */ e.createElement(
|
|
1215
1215
|
ps.Provider,
|
|
1216
1216
|
{
|
|
1217
1217
|
value: {
|
|
@@ -1222,14 +1222,14 @@ const dn = (c) => {
|
|
|
1222
1222
|
/* @__PURE__ */ e.createElement(gs, N({ crumbs: n, ariaLabel: s }, a))
|
|
1223
1223
|
));
|
|
1224
1224
|
};
|
|
1225
|
-
|
|
1225
|
+
on.propTypes = {
|
|
1226
1226
|
ariaLabel: t.string.isRequired,
|
|
1227
1227
|
crumbs: t.arrayOf([
|
|
1228
1228
|
{ label: t.string },
|
|
1229
1229
|
{ uri: t.string }
|
|
1230
1230
|
])
|
|
1231
1231
|
};
|
|
1232
|
-
const
|
|
1232
|
+
const dn = [
|
|
1233
1233
|
"angleDown",
|
|
1234
1234
|
"angleLeft",
|
|
1235
1235
|
"angleRight",
|
|
@@ -1378,13 +1378,13 @@ const mn = [
|
|
|
1378
1378
|
"xmarkLarge",
|
|
1379
1379
|
"xTwitter",
|
|
1380
1380
|
"youtube"
|
|
1381
|
-
],
|
|
1381
|
+
], rt = t.oneOf(dn), bt = t.oneOf([
|
|
1382
1382
|
"narrow",
|
|
1383
1383
|
"standard",
|
|
1384
1384
|
"wide",
|
|
1385
1385
|
"x-wide",
|
|
1386
1386
|
"full"
|
|
1387
|
-
]),
|
|
1387
|
+
]), mn = t.exact({
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Label for a menu item
|
|
1390
1390
|
*/
|
|
@@ -1405,7 +1405,7 @@ const mn = [
|
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1407
1407
|
*/
|
|
1408
|
-
iconName:
|
|
1408
|
+
iconName: rt,
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Is the item a link?
|
|
1411
1411
|
*/
|
|
@@ -1434,7 +1434,7 @@ const mn = [
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1436
1436
|
*/
|
|
1437
|
-
iconName:
|
|
1437
|
+
iconName: rt,
|
|
1438
1438
|
/**
|
|
1439
1439
|
* Optional ID value for this item.
|
|
1440
1440
|
*/
|
|
@@ -1447,7 +1447,7 @@ const mn = [
|
|
|
1447
1447
|
* Optional `data-testid` value for this item.
|
|
1448
1448
|
*/
|
|
1449
1449
|
testId: t.string
|
|
1450
|
-
}),
|
|
1450
|
+
}), un = t.exact({
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Is the item a node?
|
|
1453
1453
|
*/
|
|
@@ -1456,7 +1456,7 @@ const mn = [
|
|
|
1456
1456
|
* The content of the node.
|
|
1457
1457
|
*/
|
|
1458
1458
|
nodeContent: t.node
|
|
1459
|
-
}),
|
|
1459
|
+
}), pn = t.exact({
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Is the item a separator?
|
|
1462
1462
|
*/
|
|
@@ -1466,14 +1466,14 @@ const mn = [
|
|
|
1466
1466
|
for (n = n || [], a = 0; a < s.childNodes.length; a++)
|
|
1467
1467
|
n.push(s.childNodes[a]), bs(s.childNodes[a], n);
|
|
1468
1468
|
return n;
|
|
1469
|
-
},
|
|
1469
|
+
}, Oe = (s) => s.join(" ").trim().replace(/\s+/g, " "), he = {
|
|
1470
1470
|
base: "pds-input",
|
|
1471
1471
|
disabled: "pds-is-disabled",
|
|
1472
1472
|
required: "pds-is-required",
|
|
1473
1473
|
error: "pds-has-error",
|
|
1474
1474
|
success: "pds-has-success",
|
|
1475
1475
|
readonly: "pds-is-readonly"
|
|
1476
|
-
},
|
|
1476
|
+
}, At = () => /* @__PURE__ */ e.createElement(
|
|
1477
1477
|
A,
|
|
1478
1478
|
{
|
|
1479
1479
|
iconName: "asterisk",
|
|
@@ -1489,13 +1489,13 @@ const mn = [
|
|
|
1489
1489
|
isLegend: i,
|
|
1490
1490
|
className: l
|
|
1491
1491
|
}) => {
|
|
1492
|
-
const o =
|
|
1492
|
+
const o = Oe([
|
|
1493
1493
|
"pds-input-label",
|
|
1494
1494
|
a ? null : "visually-hidden",
|
|
1495
1495
|
l != null ? l : ""
|
|
1496
1496
|
]);
|
|
1497
|
-
return i ? /* @__PURE__ */ e.createElement("legend", { className: o, id: `${s}-legend` }, n, c && !r && /* @__PURE__ */ e.createElement(
|
|
1498
|
-
},
|
|
1497
|
+
return i ? /* @__PURE__ */ e.createElement("legend", { className: o, id: `${s}-legend` }, n, c && !r && /* @__PURE__ */ e.createElement(At, null)) : /* @__PURE__ */ e.createElement("label", { htmlFor: s, className: o }, n, c && !r && /* @__PURE__ */ e.createElement(At, null));
|
|
1498
|
+
}, at = ({
|
|
1499
1499
|
id: s,
|
|
1500
1500
|
message: n,
|
|
1501
1501
|
hasValidationMessage: a,
|
|
@@ -1507,14 +1507,14 @@ const mn = [
|
|
|
1507
1507
|
return /* @__PURE__ */ e.createElement(
|
|
1508
1508
|
"div",
|
|
1509
1509
|
{
|
|
1510
|
-
className:
|
|
1510
|
+
className: Oe([l, o, i != null ? i : ""]),
|
|
1511
1511
|
id: `${s}__message`,
|
|
1512
1512
|
role: r === "error" ? "alert" : null
|
|
1513
1513
|
},
|
|
1514
1514
|
c && r && /* @__PURE__ */ e.createElement(_s, { variant: r }),
|
|
1515
1515
|
n
|
|
1516
1516
|
);
|
|
1517
|
-
},
|
|
1517
|
+
}, gn = {
|
|
1518
1518
|
search: "magnifyingGlass",
|
|
1519
1519
|
error: "triangleExclamation",
|
|
1520
1520
|
success: "check"
|
|
@@ -1528,19 +1528,19 @@ const mn = [
|
|
|
1528
1528
|
/* @__PURE__ */ e.createElement(
|
|
1529
1529
|
A,
|
|
1530
1530
|
{
|
|
1531
|
-
iconName:
|
|
1531
|
+
iconName: gn[s],
|
|
1532
1532
|
iconSize: "md",
|
|
1533
1533
|
className: `${n}__icon`
|
|
1534
1534
|
}
|
|
1535
1535
|
)
|
|
1536
1536
|
);
|
|
1537
|
-
},
|
|
1537
|
+
}, hn = ({
|
|
1538
1538
|
inputId: s,
|
|
1539
1539
|
shortcutLabel: n
|
|
1540
|
-
}) => (
|
|
1540
|
+
}) => (Gs("/", (c) => {
|
|
1541
1541
|
const r = document.getElementById(s);
|
|
1542
1542
|
r && r.focus(), c.preventDefault();
|
|
1543
|
-
}), /* @__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" }))),
|
|
1543
|
+
}), /* @__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" }))), fn = ({
|
|
1544
1544
|
id: s,
|
|
1545
1545
|
clearLabel: n,
|
|
1546
1546
|
handleClearInput: a
|
|
@@ -1554,7 +1554,7 @@ const mn = [
|
|
|
1554
1554
|
onClick: a
|
|
1555
1555
|
},
|
|
1556
1556
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "md" })
|
|
1557
|
-
),
|
|
1557
|
+
), bn = ({
|
|
1558
1558
|
id: s,
|
|
1559
1559
|
currentLength: n,
|
|
1560
1560
|
maxLength: a,
|
|
@@ -1565,14 +1565,14 @@ const mn = [
|
|
|
1565
1565
|
"div",
|
|
1566
1566
|
{
|
|
1567
1567
|
id: `${s}__counter`,
|
|
1568
|
-
className:
|
|
1568
|
+
className: Oe([l, o])
|
|
1569
1569
|
},
|
|
1570
1570
|
n,
|
|
1571
1571
|
"/",
|
|
1572
1572
|
a,
|
|
1573
1573
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden", "aria-live": "polite" }, r && `${c} ${i}`)
|
|
1574
1574
|
);
|
|
1575
|
-
},
|
|
1575
|
+
}, qt = (a) => {
|
|
1576
1576
|
var c = a, { label: s } = c, n = S(c, ["label"]);
|
|
1577
1577
|
return /* @__PURE__ */ e.createElement("span", N({ className: "visually-hidden" }, n), s);
|
|
1578
1578
|
}, vs = (s) => s ? { width: `${s / 16}rem` } : null, vt = (o) => {
|
|
@@ -1599,9 +1599,9 @@ const mn = [
|
|
|
1599
1599
|
role: "status"
|
|
1600
1600
|
}, l),
|
|
1601
1601
|
/* @__PURE__ */ e.createElement("span", { className: `${m}__icon` }),
|
|
1602
|
-
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, a) : /* @__PURE__ */ e.createElement(
|
|
1602
|
+
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, a) : /* @__PURE__ */ e.createElement(qt, { label: a })
|
|
1603
1603
|
);
|
|
1604
|
-
},
|
|
1604
|
+
}, Fe = Ue(
|
|
1605
1605
|
(h, v) => {
|
|
1606
1606
|
var $ = h, {
|
|
1607
1607
|
ariaLabel: s,
|
|
@@ -1630,7 +1630,7 @@ const mn = [
|
|
|
1630
1630
|
"variant",
|
|
1631
1631
|
"className"
|
|
1632
1632
|
]);
|
|
1633
|
-
const f = "pds-button",
|
|
1633
|
+
const f = "pds-button", E = m !== "md" ? `${f}--${m}` : null, p = _ !== "primary" ? `${f}--${_}` : null;
|
|
1634
1634
|
let b;
|
|
1635
1635
|
switch (m) {
|
|
1636
1636
|
case "sm":
|
|
@@ -1642,7 +1642,7 @@ const mn = [
|
|
|
1642
1642
|
case "lg":
|
|
1643
1643
|
b = "lg";
|
|
1644
1644
|
}
|
|
1645
|
-
const
|
|
1645
|
+
const C = /* @__PURE__ */ e.createElement(
|
|
1646
1646
|
A,
|
|
1647
1647
|
{
|
|
1648
1648
|
key: "icon",
|
|
@@ -1652,11 +1652,11 @@ const mn = [
|
|
|
1652
1652
|
}
|
|
1653
1653
|
);
|
|
1654
1654
|
let y = [o];
|
|
1655
|
-
return c == "icon-start" && r && y.unshift(
|
|
1655
|
+
return c == "icon-start" && r && y.unshift(C), c == "icon-end" && r && y.push(C), l && (y = [C], s = o), /* @__PURE__ */ e.createElement(
|
|
1656
1656
|
"button",
|
|
1657
1657
|
ve(N({}, d), {
|
|
1658
1658
|
type: n,
|
|
1659
|
-
className: [f,
|
|
1659
|
+
className: [f, E, p, g].join(" ").trim().replace(/\s+/g, " "),
|
|
1660
1660
|
disabled: a || i,
|
|
1661
1661
|
"aria-label": s,
|
|
1662
1662
|
onClick: u,
|
|
@@ -1667,7 +1667,8 @@ const mn = [
|
|
|
1667
1667
|
);
|
|
1668
1668
|
}
|
|
1669
1669
|
);
|
|
1670
|
-
|
|
1670
|
+
Fe.displayName = "Button";
|
|
1671
|
+
Fe.propTypes = {
|
|
1671
1672
|
/**
|
|
1672
1673
|
* Aria-label attribute.
|
|
1673
1674
|
*/
|
|
@@ -1687,7 +1688,7 @@ tt.propTypes = {
|
|
|
1687
1688
|
/**
|
|
1688
1689
|
* Which icon to render
|
|
1689
1690
|
*/
|
|
1690
|
-
iconName:
|
|
1691
|
+
iconName: rt,
|
|
1691
1692
|
/**
|
|
1692
1693
|
* Is the button in a loading state?
|
|
1693
1694
|
*/
|
|
@@ -1726,7 +1727,7 @@ tt.propTypes = {
|
|
|
1726
1727
|
*/
|
|
1727
1728
|
className: t.string
|
|
1728
1729
|
};
|
|
1729
|
-
const
|
|
1730
|
+
const We = (u) => {
|
|
1730
1731
|
var m = u, {
|
|
1731
1732
|
disabled: s = !1,
|
|
1732
1733
|
displayType: n = "label-only",
|
|
@@ -1745,39 +1746,39 @@ const Fe = (u) => {
|
|
|
1745
1746
|
"className"
|
|
1746
1747
|
]);
|
|
1747
1748
|
const _ = xe(), g = "pds-button-link", d = "pds-button", v = c.props.className, h = r !== "md" ? `${d}--${r}` : null, $ = i !== "primary" ? `${d}--${i}` : null, f = [d, v, $, h].join(" ").trim().replace(/\s+/g, " ");
|
|
1748
|
-
let
|
|
1749
|
+
let E;
|
|
1749
1750
|
switch (r) {
|
|
1750
1751
|
case "sm":
|
|
1751
|
-
|
|
1752
|
+
E = "sm";
|
|
1752
1753
|
break;
|
|
1753
1754
|
case "md":
|
|
1754
|
-
|
|
1755
|
+
E = "md";
|
|
1755
1756
|
break;
|
|
1756
1757
|
case "lg":
|
|
1757
|
-
|
|
1758
|
+
E = "lg";
|
|
1758
1759
|
}
|
|
1759
1760
|
const p = /* @__PURE__ */ e.createElement(
|
|
1760
1761
|
A,
|
|
1761
1762
|
{
|
|
1762
1763
|
iconName: a,
|
|
1763
|
-
iconSize:
|
|
1764
|
+
iconSize: E,
|
|
1764
1765
|
className: `${d}__icon`,
|
|
1765
1766
|
key: `icon-${_}`
|
|
1766
1767
|
}
|
|
1767
1768
|
);
|
|
1768
|
-
let
|
|
1769
|
-
n == "icon-start" && a &&
|
|
1769
|
+
let C = [c.props.children];
|
|
1770
|
+
n == "icon-start" && a && C.unshift(p), n == "icon-end" && a && C.push(p);
|
|
1770
1771
|
const y = Ds(c, {
|
|
1771
1772
|
className: f,
|
|
1772
|
-
children:
|
|
1773
|
+
children: C
|
|
1773
1774
|
});
|
|
1774
1775
|
return s ? /* @__PURE__ */ e.createElement(
|
|
1775
|
-
|
|
1776
|
+
Fe,
|
|
1776
1777
|
N({
|
|
1777
1778
|
disabled: !0,
|
|
1778
1779
|
onClick: () => {
|
|
1779
1780
|
},
|
|
1780
|
-
label:
|
|
1781
|
+
label: C,
|
|
1781
1782
|
variant: i,
|
|
1782
1783
|
size: r,
|
|
1783
1784
|
className: [g, l].join(" ").trim().replace(/\s+/g, " ")
|
|
@@ -1790,7 +1791,7 @@ const Fe = (u) => {
|
|
|
1790
1791
|
y
|
|
1791
1792
|
);
|
|
1792
1793
|
};
|
|
1793
|
-
|
|
1794
|
+
We.propTypes = {
|
|
1794
1795
|
/**
|
|
1795
1796
|
* Is the link disabled?
|
|
1796
1797
|
*/
|
|
@@ -1802,7 +1803,7 @@ Fe.propTypes = {
|
|
|
1802
1803
|
/**
|
|
1803
1804
|
* Which icon to render
|
|
1804
1805
|
*/
|
|
1805
|
-
iconName:
|
|
1806
|
+
iconName: rt,
|
|
1806
1807
|
/**
|
|
1807
1808
|
* A link element using the router of your choice.
|
|
1808
1809
|
*/
|
|
@@ -1827,7 +1828,7 @@ Fe.propTypes = {
|
|
|
1827
1828
|
*/
|
|
1828
1829
|
className: t.string
|
|
1829
1830
|
};
|
|
1830
|
-
const
|
|
1831
|
+
const _n = (_) => {
|
|
1831
1832
|
var g = _, {
|
|
1832
1833
|
bodyText: s,
|
|
1833
1834
|
headingLevel: n = "h2",
|
|
@@ -1856,30 +1857,30 @@ const vn = (_) => {
|
|
|
1856
1857
|
"aria-hidden": "true"
|
|
1857
1858
|
}, l.props),
|
|
1858
1859
|
/* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })
|
|
1859
|
-
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null,
|
|
1860
|
+
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null, E = /* @__PURE__ */ e.createElement("div", { className: `${d}__text-elements` }, i && /* @__PURE__ */ e.createElement(
|
|
1860
1861
|
"div",
|
|
1861
1862
|
{
|
|
1862
1863
|
className: `${d}__kicker pds-overline-text pds-overline-text--sm`
|
|
1863
1864
|
},
|
|
1864
1865
|
i
|
|
1865
|
-
), a && /* @__PURE__ */ e.createElement(h, { className: `${d}__heading` }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, s)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${d}__links pds-button-group` }, /* @__PURE__ */ e.createElement(
|
|
1866
|
+
), a && /* @__PURE__ */ e.createElement(h, { className: `${d}__heading` }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, s)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${d}__links pds-button-group` }, /* @__PURE__ */ e.createElement(We, { linkContent: l, variant: "primary" }), o && /* @__PURE__ */ e.createElement(We, { linkContent: o, variant: "secondary" })));
|
|
1866
1867
|
return r && l ? /* @__PURE__ */ e.createElement(
|
|
1867
1868
|
$,
|
|
1868
1869
|
N({
|
|
1869
1870
|
className: [d, v, u].join(" ").trim().replace(/\s+/g, " ")
|
|
1870
1871
|
}, l.props),
|
|
1871
1872
|
f,
|
|
1872
|
-
|
|
1873
|
+
E
|
|
1873
1874
|
) : /* @__PURE__ */ e.createElement(
|
|
1874
1875
|
"div",
|
|
1875
1876
|
N({
|
|
1876
1877
|
className: [d, v, u].join(" ").trim().replace(/\s+/g, " ")
|
|
1877
1878
|
}, m),
|
|
1878
1879
|
f,
|
|
1879
|
-
|
|
1880
|
+
E
|
|
1880
1881
|
);
|
|
1881
1882
|
};
|
|
1882
|
-
|
|
1883
|
+
_n.propTypes = {
|
|
1883
1884
|
/**
|
|
1884
1885
|
* Short description or summary. Can be string or JSX.
|
|
1885
1886
|
*/
|
|
@@ -1920,7 +1921,7 @@ vn.propTypes = {
|
|
|
1920
1921
|
*/
|
|
1921
1922
|
className: t.string
|
|
1922
1923
|
};
|
|
1923
|
-
const
|
|
1924
|
+
const vn = (m) => {
|
|
1924
1925
|
var _ = m, {
|
|
1925
1926
|
id: s,
|
|
1926
1927
|
initialSelection: n,
|
|
@@ -1943,18 +1944,18 @@ const En = (m) => {
|
|
|
1943
1944
|
const g = "pds-card-select-group";
|
|
1944
1945
|
let d = `${g}__legend`;
|
|
1945
1946
|
c === "center" && (d = `${g}__legend ${g}__legend--center`), c === "hidden" && (d = `${g}__legend visually-hidden`);
|
|
1946
|
-
const [v, h] = R(n), $ = (
|
|
1947
|
-
h(
|
|
1948
|
-
}, f = l.length,
|
|
1947
|
+
const [v, h] = R(n), $ = (C) => {
|
|
1948
|
+
h(C.target.value), i && i(C.target.value);
|
|
1949
|
+
}, f = l.length, E = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", p = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
1949
1950
|
let b = "";
|
|
1950
|
-
return r === "twoAcross" ? b =
|
|
1951
|
+
return r === "twoAcross" ? b = E : r === "threeAcross" ? b = p : r === "auto" && (f % 3 === 0 ? b = p : f % 2 === 0 ? b = E : b = p), /* @__PURE__ */ e.createElement(
|
|
1951
1952
|
"fieldset",
|
|
1952
1953
|
N({
|
|
1953
1954
|
className: [g, o].join(" ").trim().replace(/\s+/g, " "),
|
|
1954
1955
|
id: s
|
|
1955
1956
|
}, u),
|
|
1956
1957
|
/* @__PURE__ */ e.createElement("legend", { className: d }, a),
|
|
1957
|
-
/* @__PURE__ */ e.createElement("div", { className: `${g}__options pds-grid pds-grid--narrow` }, l.map((
|
|
1958
|
+
/* @__PURE__ */ e.createElement("div", { className: `${g}__options pds-grid pds-grid--narrow` }, l.map((C, y) => /* @__PURE__ */ e.createElement(
|
|
1958
1959
|
"div",
|
|
1959
1960
|
{
|
|
1960
1961
|
className: [`${g}__option`, b].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -1966,31 +1967,31 @@ const En = (m) => {
|
|
|
1966
1967
|
type: "radio",
|
|
1967
1968
|
id: `${s}-option-${y}`,
|
|
1968
1969
|
name: s,
|
|
1969
|
-
value:
|
|
1970
|
+
value: C.value,
|
|
1970
1971
|
onClick: $,
|
|
1971
|
-
defaultChecked: v ===
|
|
1972
|
+
defaultChecked: v === C.value
|
|
1972
1973
|
}
|
|
1973
1974
|
),
|
|
1974
1975
|
/* @__PURE__ */ e.createElement(
|
|
1975
1976
|
"label",
|
|
1976
1977
|
{
|
|
1977
1978
|
htmlFor: `${s}-option-${y}`,
|
|
1978
|
-
className: v ===
|
|
1979
|
+
className: v === C.value ? `${g}__option-label ${g}__option-label--selected` : `${g}__option-label`
|
|
1979
1980
|
},
|
|
1980
1981
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
1981
1982
|
A,
|
|
1982
1983
|
{
|
|
1983
|
-
iconName: v ===
|
|
1984
|
+
iconName: v === C.value ? "circleCheck" : "circle",
|
|
1984
1985
|
iconSize: "xl",
|
|
1985
|
-
className: v ===
|
|
1986
|
+
className: v === C.value ? `${g}__option-icon ${g}__option-icon--selected` : `${g}__option-icon`
|
|
1986
1987
|
}
|
|
1987
1988
|
)),
|
|
1988
|
-
/* @__PURE__ */ e.createElement("div", { className: `${g}__option-label-text` },
|
|
1989
|
+
/* @__PURE__ */ e.createElement("div", { className: `${g}__option-label-text` }, C.label, C.description && /* @__PURE__ */ e.createElement("div", { className: `${g}__option-description` }, C.description))
|
|
1989
1990
|
)
|
|
1990
1991
|
)))
|
|
1991
1992
|
);
|
|
1992
1993
|
};
|
|
1993
|
-
|
|
1994
|
+
vn.propTypes = {
|
|
1994
1995
|
/**
|
|
1995
1996
|
* Unique ID for the card select group
|
|
1996
1997
|
*/
|
|
@@ -2086,14 +2087,14 @@ const st = ({ type: s }) => {
|
|
|
2086
2087
|
st.propTypes = {
|
|
2087
2088
|
type: t.oneOf(["search", "error", "success"]).isRequired
|
|
2088
2089
|
};
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2090
|
+
const Pt = ({ 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" }));
|
|
2091
|
+
Pt.propTypes = {
|
|
2091
2092
|
label: t.string.isRequired
|
|
2092
2093
|
};
|
|
2093
|
-
const
|
|
2094
|
+
const jt = Ue(
|
|
2094
2095
|
(i, r) => {
|
|
2095
2096
|
var l = i, { children: s, active: n, className: a } = l, c = S(l, ["children", "active", "className"]);
|
|
2096
|
-
const o =
|
|
2097
|
+
const o = js(), u = "pds-input__option", m = n ? `${u}--active` : null;
|
|
2097
2098
|
return /* @__PURE__ */ e.createElement(
|
|
2098
2099
|
"li",
|
|
2099
2100
|
N({
|
|
@@ -2107,14 +2108,14 @@ const Pt = Ze(
|
|
|
2107
2108
|
);
|
|
2108
2109
|
}
|
|
2109
2110
|
);
|
|
2110
|
-
|
|
2111
|
+
jt.propTypes = {
|
|
2111
2112
|
children: t.node.isRequired,
|
|
2112
2113
|
active: t.bool,
|
|
2113
2114
|
className: t.string
|
|
2114
2115
|
};
|
|
2115
|
-
const
|
|
2116
|
-
(
|
|
2117
|
-
var p =
|
|
2116
|
+
const De = Ue(
|
|
2117
|
+
(E, f) => {
|
|
2118
|
+
var p = E, {
|
|
2118
2119
|
children: s,
|
|
2119
2120
|
decorator: n,
|
|
2120
2121
|
disabled: a = !1,
|
|
@@ -2147,7 +2148,7 @@ const Re = Ze(
|
|
|
2147
2148
|
"validationState",
|
|
2148
2149
|
"className"
|
|
2149
2150
|
]);
|
|
2150
|
-
const b = "pds-input-wrapper",
|
|
2151
|
+
const b = "pds-input-wrapper", C = `${b}--${r}`, y = "pds-input-label", w = `pds-input-field__message pds-input-field__message--${m}`, z = v === "error" ? "pds-has-error" : null, x = v === "success" ? "pds-has-success" : null, L = a ? "pds-is-disabled" : null, V = _ ? "pds-is-readonly" : null, H = g && !a ? "pds-is-required" : null, I = i ? `${i / 16}rem` : null, k = i ? { width: I } : null, M = l ? "fieldset" : "div", D = g && !a ? /* @__PURE__ */ e.createElement(
|
|
2151
2152
|
A,
|
|
2152
2153
|
{
|
|
2153
2154
|
iconName: "asterisk",
|
|
@@ -2169,7 +2170,7 @@ const Re = Ze(
|
|
|
2169
2170
|
N({
|
|
2170
2171
|
className: [
|
|
2171
2172
|
b,
|
|
2172
|
-
|
|
2173
|
+
C,
|
|
2173
2174
|
L,
|
|
2174
2175
|
V,
|
|
2175
2176
|
H,
|
|
@@ -2204,7 +2205,7 @@ const Re = Ze(
|
|
|
2204
2205
|
);
|
|
2205
2206
|
}
|
|
2206
2207
|
);
|
|
2207
|
-
|
|
2208
|
+
De.propTypes = {
|
|
2208
2209
|
/**
|
|
2209
2210
|
* Children. The input field component.
|
|
2210
2211
|
*/
|
|
@@ -2266,7 +2267,7 @@ Re.propTypes = {
|
|
|
2266
2267
|
*/
|
|
2267
2268
|
className: t.string
|
|
2268
2269
|
};
|
|
2269
|
-
const Es =
|
|
2270
|
+
const Es = Ue(
|
|
2270
2271
|
(x, z) => {
|
|
2271
2272
|
var L = x, {
|
|
2272
2273
|
disabled: s = !1,
|
|
@@ -2291,10 +2292,10 @@ const Es = Ze(
|
|
|
2291
2292
|
onFocus: h,
|
|
2292
2293
|
onOptionSelect: $,
|
|
2293
2294
|
options: f,
|
|
2294
|
-
placeholder:
|
|
2295
|
+
placeholder: E,
|
|
2295
2296
|
required: p = !1,
|
|
2296
2297
|
showLabel: b = !0,
|
|
2297
|
-
validationFunction:
|
|
2298
|
+
validationFunction: C,
|
|
2298
2299
|
className: y
|
|
2299
2300
|
} = L, w = S(L, [
|
|
2300
2301
|
"disabled",
|
|
@@ -2328,15 +2329,15 @@ const Es = Ze(
|
|
|
2328
2329
|
), [O, q] = R([]), [F, Z] = R(""), [B, T] = R(null), j = ee([]), U = "pds-combobox", { context: G, refs: ce } = Ve({
|
|
2329
2330
|
open: H,
|
|
2330
2331
|
onOpenChange: I,
|
|
2331
|
-
whileElementsMounted:
|
|
2332
|
-
}), ne = Ie(G, { role: "listbox" }), te = Se(G), me =
|
|
2332
|
+
whileElementsMounted: Re
|
|
2333
|
+
}), ne = Ie(G, { role: "listbox" }), te = Se(G), me = ct(G, {
|
|
2333
2334
|
listRef: j,
|
|
2334
2335
|
activeIndex: k,
|
|
2335
2336
|
onNavigate: M,
|
|
2336
2337
|
virtual: !0,
|
|
2337
2338
|
loop: !0,
|
|
2338
2339
|
allowEscape: !0
|
|
2339
|
-
}), { getReferenceProps: ue, getFloatingProps: J, getItemProps: fe } = Te([ne, te, me]), { isMounted: _e, styles: re } =
|
|
2340
|
+
}), { getReferenceProps: ue, getFloatingProps: J, getItemProps: fe } = Te([ne, te, me]), { isMounted: _e, styles: re } = Ge(G, {
|
|
2340
2341
|
duration: {
|
|
2341
2342
|
open: 300,
|
|
2342
2343
|
close: 150
|
|
@@ -2364,7 +2365,7 @@ const Es = Ze(
|
|
|
2364
2365
|
const Y = () => {
|
|
2365
2366
|
Z(""), T(null);
|
|
2366
2367
|
}, pe = (ie) => {
|
|
2367
|
-
const oe =
|
|
2368
|
+
const oe = C(ie) || {};
|
|
2368
2369
|
Y(), oe.error && T("error"), oe.success && T("success"), Z(oe.message);
|
|
2369
2370
|
}, ye = (ie) => {
|
|
2370
2371
|
let oe = ie.target.value;
|
|
@@ -2373,32 +2374,32 @@ const Es = Ze(
|
|
|
2373
2374
|
h && h();
|
|
2374
2375
|
}, ae = (ie) => {
|
|
2375
2376
|
const oe = O[ie];
|
|
2376
|
-
W(oe.label), M(null), I(!1), $ && $(oe),
|
|
2377
|
+
W(oe.label), M(null), I(!1), $ && $(oe), C && pe(oe);
|
|
2377
2378
|
}, He = () => {
|
|
2378
2379
|
var ie;
|
|
2379
2380
|
Y(), W(""), I(!0), (ie = ce.domReference.current) == null || ie.focus();
|
|
2380
2381
|
}, we = () => {
|
|
2381
2382
|
I(!H);
|
|
2382
2383
|
}, Le = (ie) => ie.map((ke) => {
|
|
2383
|
-
const { label:
|
|
2384
|
+
const { label: qe, optionDisplay: Pe, value: ot, searchIndex: dt } = ke, P = ot || qe, le = [qe, ot];
|
|
2384
2385
|
return dt && le.push(...dt), {
|
|
2385
|
-
label:
|
|
2386
|
+
label: qe,
|
|
2386
2387
|
value: P,
|
|
2387
2388
|
searchIndex: le,
|
|
2388
|
-
optionDisplay:
|
|
2389
|
+
optionDisplay: Pe
|
|
2389
2390
|
};
|
|
2390
2391
|
});
|
|
2391
2392
|
se(() => {
|
|
2392
2393
|
const ie = Le(f).filter((oe) => {
|
|
2393
2394
|
const ke = oe.searchIndex.map(
|
|
2394
|
-
(
|
|
2395
|
-
),
|
|
2396
|
-
return ke.some((
|
|
2395
|
+
(Pe) => Pe.toLowerCase()
|
|
2396
|
+
), qe = D.toLowerCase();
|
|
2397
|
+
return ke.some((Pe) => Pe.includes(qe));
|
|
2397
2398
|
});
|
|
2398
2399
|
q(ie);
|
|
2399
2400
|
}, [D, u, f]);
|
|
2400
2401
|
const be = O.map((ie, oe) => /* @__PURE__ */ e.createElement(
|
|
2401
|
-
|
|
2402
|
+
jt,
|
|
2402
2403
|
ve(N({
|
|
2403
2404
|
key: ie
|
|
2404
2405
|
}, fe({
|
|
@@ -2415,9 +2416,9 @@ const Es = Ze(
|
|
|
2415
2416
|
active: k === oe
|
|
2416
2417
|
}),
|
|
2417
2418
|
ie.optionDisplay || ie.label
|
|
2418
|
-
)),
|
|
2419
|
+
)), Ke = F || d, $t = o ? `${o / 16}rem` : null, Ye = o ? { width: $t } : null;
|
|
2419
2420
|
return /* @__PURE__ */ e.createElement(
|
|
2420
|
-
|
|
2421
|
+
De,
|
|
2421
2422
|
N({
|
|
2422
2423
|
className: y,
|
|
2423
2424
|
decorator: c ? "search" : null,
|
|
@@ -2426,7 +2427,7 @@ const Es = Ze(
|
|
|
2426
2427
|
inputFieldType: "combobox",
|
|
2427
2428
|
inputWidth: o,
|
|
2428
2429
|
label: m,
|
|
2429
|
-
message:
|
|
2430
|
+
message: Ke,
|
|
2430
2431
|
required: p,
|
|
2431
2432
|
showLabel: b,
|
|
2432
2433
|
validationState: B
|
|
@@ -2438,11 +2439,11 @@ const Es = Ze(
|
|
|
2438
2439
|
className: [U].join(" ").trim().replace(/\s+/g, " "),
|
|
2439
2440
|
id: i,
|
|
2440
2441
|
name: i,
|
|
2441
|
-
style:
|
|
2442
|
+
style: Ye,
|
|
2442
2443
|
"aria-disabled": s ? !0 : null,
|
|
2443
2444
|
"aria-required": p ? !0 : null,
|
|
2444
2445
|
"aria-invalid": B === "error" ? !0 : null,
|
|
2445
|
-
"aria-describedby":
|
|
2446
|
+
"aria-describedby": Ke ? `${i}__message` : null
|
|
2446
2447
|
},
|
|
2447
2448
|
/* @__PURE__ */ e.createElement(
|
|
2448
2449
|
"input",
|
|
@@ -2452,7 +2453,7 @@ const Es = Ze(
|
|
|
2452
2453
|
"aria-autocomplete": "list",
|
|
2453
2454
|
"aria-label": _.inputInstructions,
|
|
2454
2455
|
disabled: s,
|
|
2455
|
-
placeholder:
|
|
2456
|
+
placeholder: E,
|
|
2456
2457
|
value: D,
|
|
2457
2458
|
onChange: ye,
|
|
2458
2459
|
onFocus: Q,
|
|
@@ -2469,7 +2470,7 @@ const Es = Ze(
|
|
|
2469
2470
|
handleClearInput: He
|
|
2470
2471
|
}
|
|
2471
2472
|
),
|
|
2472
|
-
!D && r && /* @__PURE__ */ e.createElement(
|
|
2473
|
+
!D && r && /* @__PURE__ */ e.createElement(Pt, { label: _.searchShortcut }),
|
|
2473
2474
|
a && /* @__PURE__ */ e.createElement(
|
|
2474
2475
|
"button",
|
|
2475
2476
|
ve(N({
|
|
@@ -2627,7 +2628,7 @@ Es.propTypes = {
|
|
|
2627
2628
|
*/
|
|
2628
2629
|
className: t.string
|
|
2629
2630
|
};
|
|
2630
|
-
const
|
|
2631
|
+
const En = (m) => {
|
|
2631
2632
|
var _ = m, {
|
|
2632
2633
|
backgroundColor: s = "default",
|
|
2633
2634
|
containerWidth: n = "standard",
|
|
@@ -2685,7 +2686,7 @@ const Cn = (m) => {
|
|
|
2685
2686
|
))
|
|
2686
2687
|
);
|
|
2687
2688
|
};
|
|
2688
|
-
|
|
2689
|
+
En.propTypes = {
|
|
2689
2690
|
/**
|
|
2690
2691
|
* Background color of slice
|
|
2691
2692
|
*/
|
|
@@ -2727,7 +2728,7 @@ Cn.propTypes = {
|
|
|
2727
2728
|
*/
|
|
2728
2729
|
className: t.string
|
|
2729
2730
|
};
|
|
2730
|
-
const
|
|
2731
|
+
const Ae = ht(null), Cn = ({
|
|
2731
2732
|
children: s,
|
|
2732
2733
|
mobileMenuMaxWidth: n = 640
|
|
2733
2734
|
}) => {
|
|
@@ -2742,8 +2743,8 @@ const De = ht(null), $n = ({
|
|
|
2742
2743
|
mobileMenuMaxWidth: n,
|
|
2743
2744
|
windowWidth: a
|
|
2744
2745
|
};
|
|
2745
|
-
return /* @__PURE__ */ e.createElement(
|
|
2746
|
-
},
|
|
2746
|
+
return /* @__PURE__ */ e.createElement(Ae.Provider, { value: l }, s);
|
|
2747
|
+
}, $n = (r) => {
|
|
2747
2748
|
var i = r, {
|
|
2748
2749
|
destination: s = "main",
|
|
2749
2750
|
text: n = "Skip to main content",
|
|
@@ -2761,7 +2762,7 @@ const De = ht(null), $n = ({
|
|
|
2761
2762
|
}, c),
|
|
2762
2763
|
n
|
|
2763
2764
|
);
|
|
2764
|
-
},
|
|
2765
|
+
}, Bt = ht(null), B1 = (m) => {
|
|
2765
2766
|
var _ = m, {
|
|
2766
2767
|
children: s,
|
|
2767
2768
|
hasSidebarToggle: n = !0,
|
|
@@ -2783,10 +2784,10 @@ const De = ht(null), $n = ({
|
|
|
2783
2784
|
]);
|
|
2784
2785
|
const [g, d] = R(
|
|
2785
2786
|
a
|
|
2786
|
-
), { isMobile: v } = Ne(
|
|
2787
|
+
), { isMobile: v } = Ne(Ae), h = ee(), [$] = ft(h), E = {
|
|
2787
2788
|
navbarWidth: $.width,
|
|
2788
2789
|
isSidebarExpanded: g
|
|
2789
|
-
}, p = "pds-dashboard", b = v ? `${p}--isMobile` : `${p}--notMobile`,
|
|
2790
|
+
}, p = "pds-dashboard", b = v ? `${p}--isMobile` : `${p}--notMobile`, C = v ? null : g ? `${p}--sidebarExpanded` : `${p}--sidebarCollapsed`, y = g ? `${r}rem` : `${c}rem`, w = {
|
|
2790
2791
|
width: y,
|
|
2791
2792
|
transition: "width 200ms ease-in-out"
|
|
2792
2793
|
}, z = v ? {} : {
|
|
@@ -2811,13 +2812,13 @@ const De = ht(null), $n = ({
|
|
|
2811
2812
|
},
|
|
2812
2813
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" })
|
|
2813
2814
|
), /* @__PURE__ */ e.createElement("div", { className: `${p}__sidebar-inner` }, H));
|
|
2814
|
-
return /* @__PURE__ */ e.createElement(
|
|
2815
|
+
return /* @__PURE__ */ e.createElement(Bt.Provider, { value: E }, /* @__PURE__ */ e.createElement($n, { text: l, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
2815
2816
|
"div",
|
|
2816
2817
|
N({
|
|
2817
2818
|
className: [
|
|
2818
2819
|
p,
|
|
2819
2820
|
b,
|
|
2820
|
-
|
|
2821
|
+
C,
|
|
2821
2822
|
"pds-typography--product",
|
|
2822
2823
|
o != null ? o : ""
|
|
2823
2824
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
@@ -2858,7 +2859,7 @@ const De = ht(null), $n = ({
|
|
|
2858
2859
|
}
|
|
2859
2860
|
}
|
|
2860
2861
|
return null;
|
|
2861
|
-
}, h = v(n), $ = h ? h.props.children : a, f = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${o}__active-icon` }),
|
|
2862
|
+
}, h = v(n), $ = h ? h.props.children : a, f = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${o}__active-icon` }), E = (O) => {
|
|
2862
2863
|
O.key === "Enter" && L.current[_].querySelector("a").click();
|
|
2863
2864
|
}, p = (O) => {
|
|
2864
2865
|
O.target.nodeName === "A" && m(!1);
|
|
@@ -2904,12 +2905,12 @@ const De = ht(null), $n = ({
|
|
|
2904
2905
|
});
|
|
2905
2906
|
});
|
|
2906
2907
|
}), q;
|
|
2907
|
-
}, { refs:
|
|
2908
|
+
}, { refs: C, context: y, floatingStyles: w } = Ve({
|
|
2908
2909
|
placement: "bottom-start",
|
|
2909
2910
|
open: u,
|
|
2910
2911
|
onOpenChange: m,
|
|
2911
|
-
whileElementsMounted:
|
|
2912
|
-
}), { isMounted: z, styles: x } =
|
|
2912
|
+
whileElementsMounted: Re
|
|
2913
|
+
}), { isMounted: z, styles: x } = Ge(y, {
|
|
2913
2914
|
duration: {
|
|
2914
2915
|
open: 300,
|
|
2915
2916
|
close: 300
|
|
@@ -2923,7 +2924,7 @@ const De = ht(null), $n = ({
|
|
|
2923
2924
|
close: {
|
|
2924
2925
|
opacity: 0
|
|
2925
2926
|
}
|
|
2926
|
-
}), L = ee([]), V =
|
|
2927
|
+
}), L = ee([]), V = ct(y, {
|
|
2927
2928
|
listRef: L,
|
|
2928
2929
|
activeIndex: _,
|
|
2929
2930
|
onNavigate: g,
|
|
@@ -2943,7 +2944,7 @@ const De = ht(null), $n = ({
|
|
|
2943
2944
|
"button",
|
|
2944
2945
|
N({
|
|
2945
2946
|
className: `${o}__trigger`,
|
|
2946
|
-
ref:
|
|
2947
|
+
ref: C.setReference
|
|
2947
2948
|
}, M()),
|
|
2948
2949
|
/* @__PURE__ */ e.createElement("span", { className: `${o}__active-label` }, $),
|
|
2949
2950
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${o}__trigger-icon` })
|
|
@@ -2952,7 +2953,7 @@ const De = ht(null), $n = ({
|
|
|
2952
2953
|
"ul",
|
|
2953
2954
|
N({
|
|
2954
2955
|
className: `${o}__dropdown ${o}__menu ${o}__menu--top-level`,
|
|
2955
|
-
ref:
|
|
2956
|
+
ref: C.setFloating,
|
|
2956
2957
|
style: ve(N({}, x), {
|
|
2957
2958
|
floatingStyles: w,
|
|
2958
2959
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
@@ -2962,7 +2963,7 @@ const De = ht(null), $n = ({
|
|
|
2962
2963
|
"li",
|
|
2963
2964
|
N({
|
|
2964
2965
|
key: q,
|
|
2965
|
-
onKeyDown:
|
|
2966
|
+
onKeyDown: E,
|
|
2966
2967
|
className: `${o}__item ${o}__item--${O.level} ${O.isActive === !0 ? `${o}__item--active` : ""}`,
|
|
2967
2968
|
tabIndex: _ === q ? 0 : -1,
|
|
2968
2969
|
ref: (F) => {
|
|
@@ -2993,7 +2994,7 @@ Et.propTypes = {
|
|
|
2993
2994
|
*/
|
|
2994
2995
|
className: t.string
|
|
2995
2996
|
};
|
|
2996
|
-
const
|
|
2997
|
+
const Ft = (l) => {
|
|
2997
2998
|
var o = l, {
|
|
2998
2999
|
colorType: s = "default",
|
|
2999
3000
|
displayType: n = "full",
|
|
@@ -3330,7 +3331,7 @@ const Bt = (l) => {
|
|
|
3330
3331
|
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" }, $))
|
|
3331
3332
|
);
|
|
3332
3333
|
};
|
|
3333
|
-
|
|
3334
|
+
Ft.propTypes = {
|
|
3334
3335
|
/**
|
|
3335
3336
|
* Color Type
|
|
3336
3337
|
*/
|
|
@@ -3358,7 +3359,7 @@ Bt.propTypes = {
|
|
|
3358
3359
|
*/
|
|
3359
3360
|
className: t.string
|
|
3360
3361
|
};
|
|
3361
|
-
const
|
|
3362
|
+
const yn = (l) => {
|
|
3362
3363
|
var o = l, {
|
|
3363
3364
|
ariaLabel: s = "Main navigation",
|
|
3364
3365
|
labels: n = {
|
|
@@ -3376,9 +3377,9 @@ const Nn = (l) => {
|
|
|
3376
3377
|
"className"
|
|
3377
3378
|
]);
|
|
3378
3379
|
let u = !1;
|
|
3379
|
-
const m = Ne(
|
|
3380
|
+
const m = Ne(Ae);
|
|
3380
3381
|
m && (u = m.isMobile);
|
|
3381
|
-
const _ = Ne(
|
|
3382
|
+
const _ = Ne(Bt);
|
|
3382
3383
|
let g = !0;
|
|
3383
3384
|
_ && (g = _.isSidebarExpanded);
|
|
3384
3385
|
const d = "pds-dashboard-nav", v = g ? `${d}--expanded` : `${d}--collapsed`, h = (p) => {
|
|
@@ -3394,20 +3395,20 @@ const Nn = (l) => {
|
|
|
3394
3395
|
if (b.props.className && b.props.className.includes("pds-isActive"))
|
|
3395
3396
|
return !0;
|
|
3396
3397
|
if (p.links) {
|
|
3397
|
-
for (let
|
|
3398
|
-
if ($(p.links[
|
|
3398
|
+
for (let C = 0; C < p.links.length; C++)
|
|
3399
|
+
if ($(p.links[C]))
|
|
3399
3400
|
return !0;
|
|
3400
3401
|
}
|
|
3401
3402
|
return !1;
|
|
3402
3403
|
};
|
|
3403
3404
|
a = a.map((p) => {
|
|
3404
|
-
const b = p.linkContent.type,
|
|
3405
|
+
const b = p.linkContent.type, C = p.linkContent.props.href ? "href" : "to", y = C === "href" ? p.linkContent.props.href : p.linkContent.props.to, w = p.linkContent.props.children, z = p.linkContent.props.className;
|
|
3405
3406
|
return ve(N({}, p), {
|
|
3406
3407
|
linkContent: /* @__PURE__ */ e.createElement(
|
|
3407
3408
|
b,
|
|
3408
3409
|
{
|
|
3409
|
-
href:
|
|
3410
|
-
to:
|
|
3410
|
+
href: C === "href" ? y : null,
|
|
3411
|
+
to: C === "to" ? y : null,
|
|
3411
3412
|
className: `${d}__link ${z}`
|
|
3412
3413
|
},
|
|
3413
3414
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__link-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: p.icon })),
|
|
@@ -3422,7 +3423,7 @@ const Nn = (l) => {
|
|
|
3422
3423
|
menuItems: a,
|
|
3423
3424
|
selectTextFallback: c
|
|
3424
3425
|
}
|
|
3425
|
-
),
|
|
3426
|
+
), E = /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu ${d}__menu--top-level` }, a.map((p, b) => /* @__PURE__ */ e.createElement(
|
|
3426
3427
|
"li",
|
|
3427
3428
|
{
|
|
3428
3429
|
key: b,
|
|
@@ -3442,13 +3443,13 @@ const Nn = (l) => {
|
|
|
3442
3443
|
{
|
|
3443
3444
|
className: `${d}__menu ${d}__menu--second-level ${$(p) ? `${d}__menu--expanded` : ""}`
|
|
3444
3445
|
},
|
|
3445
|
-
p.links.map((
|
|
3446
|
+
p.links.map((C, y) => /* @__PURE__ */ e.createElement(
|
|
3446
3447
|
"li",
|
|
3447
3448
|
{
|
|
3448
3449
|
key: y,
|
|
3449
|
-
className: `${d}__item ${d}__item--second-level ${$(
|
|
3450
|
+
className: `${d}__item ${d}__item--second-level ${$(C) ? `${d}__item--active` : ""}`
|
|
3450
3451
|
},
|
|
3451
|
-
|
|
3452
|
+
C.linkContent
|
|
3452
3453
|
))
|
|
3453
3454
|
)) : p.linkContent
|
|
3454
3455
|
)));
|
|
@@ -3459,16 +3460,16 @@ const Nn = (l) => {
|
|
|
3459
3460
|
className: [d, v, r].join(" ").trim().replace(/\s+/g, " ")
|
|
3460
3461
|
}, i),
|
|
3461
3462
|
!u && /* @__PURE__ */ e.createElement(
|
|
3462
|
-
|
|
3463
|
+
Ft,
|
|
3463
3464
|
{
|
|
3464
3465
|
className: `${d}__logo`,
|
|
3465
3466
|
displayType: g ? "full" : "icon"
|
|
3466
3467
|
}
|
|
3467
3468
|
),
|
|
3468
|
-
u ? f :
|
|
3469
|
+
u ? f : E
|
|
3469
3470
|
);
|
|
3470
3471
|
};
|
|
3471
|
-
|
|
3472
|
+
yn.propTypes = {
|
|
3472
3473
|
/**
|
|
3473
3474
|
* Aria label for the navigation.
|
|
3474
3475
|
*/
|
|
@@ -3493,7 +3494,7 @@ Nn.propTypes = {
|
|
|
3493
3494
|
*/
|
|
3494
3495
|
className: t.string
|
|
3495
3496
|
};
|
|
3496
|
-
const
|
|
3497
|
+
const Wt = (o) => {
|
|
3497
3498
|
var u = o, {
|
|
3498
3499
|
color: s = "transparent",
|
|
3499
3500
|
hasStatusIndicator: n = !1,
|
|
@@ -3555,7 +3556,7 @@ const Ft = (o) => {
|
|
|
3555
3556
|
style: { pointerEvents: "none" }
|
|
3556
3557
|
},
|
|
3557
3558
|
/* @__PURE__ */ e.createElement(
|
|
3558
|
-
|
|
3559
|
+
Wt,
|
|
3559
3560
|
{
|
|
3560
3561
|
color: "neutral",
|
|
3561
3562
|
hasStatusIndicator: !0,
|
|
@@ -3567,7 +3568,7 @@ const Ft = (o) => {
|
|
|
3567
3568
|
);
|
|
3568
3569
|
};
|
|
3569
3570
|
Cs.propTypes = { option: t.object };
|
|
3570
|
-
const
|
|
3571
|
+
const Nn = (h) => {
|
|
3571
3572
|
var $ = h, {
|
|
3572
3573
|
disabled: s = !1,
|
|
3573
3574
|
id: n,
|
|
@@ -3601,12 +3602,12 @@ const wn = (h) => {
|
|
|
3601
3602
|
"startingRightPosition",
|
|
3602
3603
|
"className"
|
|
3603
3604
|
]);
|
|
3604
|
-
const [f,
|
|
3605
|
+
const [f, E] = R(!1), [p, b] = R(null), C = ee(null);
|
|
3605
3606
|
let y = !1;
|
|
3606
|
-
const w = Ne(
|
|
3607
|
+
const w = Ne(Ae);
|
|
3607
3608
|
w && (y = w.isMobile);
|
|
3608
3609
|
let z = null;
|
|
3609
|
-
const x = Ne(
|
|
3610
|
+
const x = Ne(Bt);
|
|
3610
3611
|
x && (z = x.navbarWidth);
|
|
3611
3612
|
const L = 2.25, V = 22, H = z > 900 ? V : z / 16 - g - L * 0.675;
|
|
3612
3613
|
let I = L;
|
|
@@ -3615,19 +3616,19 @@ const wn = (h) => {
|
|
|
3615
3616
|
right: `${g}rem`,
|
|
3616
3617
|
width: `${I}rem`
|
|
3617
3618
|
}, M = "pds-dashboard-search", D = y ? `${M}--isMobile` : null, W = () => {
|
|
3618
|
-
|
|
3619
|
-
|
|
3619
|
+
E(!0), setTimeout(() => {
|
|
3620
|
+
C.current.querySelector("input").focus();
|
|
3620
3621
|
}, 500);
|
|
3621
3622
|
}, O = () => {
|
|
3622
3623
|
setTimeout(() => {
|
|
3623
|
-
|
|
3624
|
+
E(!1);
|
|
3624
3625
|
}, 150);
|
|
3625
3626
|
}, q = (j) => {
|
|
3626
3627
|
b(j.value), u && u(j);
|
|
3627
3628
|
};
|
|
3628
3629
|
se(() => {
|
|
3629
3630
|
if (f) {
|
|
3630
|
-
const j =
|
|
3631
|
+
const j = C.current.querySelector("input");
|
|
3631
3632
|
return j.addEventListener("blur", O), () => {
|
|
3632
3633
|
j.removeEventListener("blur", O);
|
|
3633
3634
|
};
|
|
@@ -3643,7 +3644,7 @@ const wn = (h) => {
|
|
|
3643
3644
|
}), Z = /* @__PURE__ */ e.createElement(
|
|
3644
3645
|
Es,
|
|
3645
3646
|
{
|
|
3646
|
-
ref:
|
|
3647
|
+
ref: C,
|
|
3647
3648
|
disabled: s,
|
|
3648
3649
|
hasClearButton: !1,
|
|
3649
3650
|
id: `${n}-combobox`,
|
|
@@ -3695,7 +3696,7 @@ const wn = (h) => {
|
|
|
3695
3696
|
y ? T : B
|
|
3696
3697
|
);
|
|
3697
3698
|
};
|
|
3698
|
-
|
|
3699
|
+
Nn.propTypes = {
|
|
3699
3700
|
/**
|
|
3700
3701
|
* Is the field disabled?
|
|
3701
3702
|
*/
|
|
@@ -3782,7 +3783,7 @@ wn.propTypes = {
|
|
|
3782
3783
|
*/
|
|
3783
3784
|
className: t.string
|
|
3784
3785
|
};
|
|
3785
|
-
const
|
|
3786
|
+
const wn = (l) => {
|
|
3786
3787
|
var o = l, {
|
|
3787
3788
|
children: s,
|
|
3788
3789
|
id: n,
|
|
@@ -3805,7 +3806,7 @@ const kn = (l) => {
|
|
|
3805
3806
|
/* @__PURE__ */ e.createElement("details", { key: c, id: u, open: a }, /* @__PURE__ */ e.createElement("summary", null, /* @__PURE__ */ e.createElement("span", null, c), /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${m}__icon` })), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, s))
|
|
3806
3807
|
);
|
|
3807
3808
|
};
|
|
3808
|
-
|
|
3809
|
+
wn.propTypes = {
|
|
3809
3810
|
/**
|
|
3810
3811
|
* The content of the expansion panel.
|
|
3811
3812
|
*/
|
|
@@ -3827,7 +3828,7 @@ kn.propTypes = {
|
|
|
3827
3828
|
*/
|
|
3828
3829
|
className: t.string
|
|
3829
3830
|
};
|
|
3830
|
-
const
|
|
3831
|
+
const kn = (r) => {
|
|
3831
3832
|
var i = r, {
|
|
3832
3833
|
children: s,
|
|
3833
3834
|
displayType: n = "standard",
|
|
@@ -3846,7 +3847,7 @@ const Hn = (r) => {
|
|
|
3846
3847
|
s
|
|
3847
3848
|
);
|
|
3848
3849
|
};
|
|
3849
|
-
|
|
3850
|
+
kn.propTypes = {
|
|
3850
3851
|
/**
|
|
3851
3852
|
* The content of the expansion panel group. This should be a series of ExpansionPanel components.
|
|
3852
3853
|
*/
|
|
@@ -3860,7 +3861,7 @@ Hn.propTypes = {
|
|
|
3860
3861
|
*/
|
|
3861
3862
|
className: t.string
|
|
3862
3863
|
};
|
|
3863
|
-
const
|
|
3864
|
+
const Hn = ($) => {
|
|
3864
3865
|
var f = $, {
|
|
3865
3866
|
accept: s,
|
|
3866
3867
|
chooseFileLabel: n = "Choose file",
|
|
@@ -3892,15 +3893,15 @@ const Ln = ($) => {
|
|
|
3892
3893
|
"validationFunction",
|
|
3893
3894
|
"className"
|
|
3894
3895
|
]);
|
|
3895
|
-
const [
|
|
3896
|
+
const [E, p] = R(!1), [b, C] = R(), [y, w] = R(null), z = "pds-file-upload", x = E ? `${z}--has-value` : null;
|
|
3896
3897
|
let L = null;
|
|
3897
3898
|
y === "error" && (L = "error"), y === "success" && (L = "success");
|
|
3898
3899
|
const V = () => {
|
|
3899
|
-
|
|
3900
|
+
C(""), w(null);
|
|
3900
3901
|
}, H = (M) => {
|
|
3901
3902
|
if (d) {
|
|
3902
3903
|
const D = d(M.target.files) || {};
|
|
3903
|
-
V(), D.error && w("error"), D.success && w("success"),
|
|
3904
|
+
V(), D.error && w("error"), D.success && w("success"), C(D.message);
|
|
3904
3905
|
}
|
|
3905
3906
|
m && m(M.target.files), M.target.files.length > 0 ? p(!0) : p(!1);
|
|
3906
3907
|
}, I = () => {
|
|
@@ -3908,7 +3909,7 @@ const Ln = ($) => {
|
|
|
3908
3909
|
M.value = "", p(!1), V();
|
|
3909
3910
|
}, k = b || o;
|
|
3910
3911
|
return /* @__PURE__ */ e.createElement(
|
|
3911
|
-
|
|
3912
|
+
De,
|
|
3912
3913
|
N({
|
|
3913
3914
|
className: v,
|
|
3914
3915
|
decorator: L,
|
|
@@ -3926,7 +3927,7 @@ const Ln = ($) => {
|
|
|
3926
3927
|
"label",
|
|
3927
3928
|
{
|
|
3928
3929
|
htmlFor: i,
|
|
3929
|
-
className:
|
|
3930
|
+
className: E ? "visually-hidden" : `${z}__label`
|
|
3930
3931
|
},
|
|
3931
3932
|
/* @__PURE__ */ e.createElement(A, { iconName: "paperclip", iconSize: "sm" }),
|
|
3932
3933
|
n
|
|
@@ -3944,7 +3945,7 @@ const Ln = ($) => {
|
|
|
3944
3945
|
onChange: H
|
|
3945
3946
|
}
|
|
3946
3947
|
),
|
|
3947
|
-
|
|
3948
|
+
E && /* @__PURE__ */ e.createElement(
|
|
3948
3949
|
pt,
|
|
3949
3950
|
{
|
|
3950
3951
|
ariaLabel: a,
|
|
@@ -3956,7 +3957,7 @@ const Ln = ($) => {
|
|
|
3956
3957
|
)
|
|
3957
3958
|
);
|
|
3958
3959
|
};
|
|
3959
|
-
|
|
3960
|
+
Hn.propTypes = {
|
|
3960
3961
|
/**
|
|
3961
3962
|
* File types the input should accept. Leave null for all file types.
|
|
3962
3963
|
*/
|
|
@@ -4047,7 +4048,7 @@ $s.propTypes = {
|
|
|
4047
4048
|
*/
|
|
4048
4049
|
className: t.string
|
|
4049
4050
|
};
|
|
4050
|
-
const
|
|
4051
|
+
const Ln = (i) => {
|
|
4051
4052
|
var l = i, {
|
|
4052
4053
|
headingLevel: s,
|
|
4053
4054
|
headingText: n,
|
|
@@ -4076,7 +4077,7 @@ const zn = (i) => {
|
|
|
4076
4077
|
/* @__PURE__ */ e.createElement("ul", { className: `${o}__list`, role: "list" }, a.map((u, m) => /* @__PURE__ */ e.createElement("li", { key: m, className: `${o}__item` }, u)))
|
|
4077
4078
|
);
|
|
4078
4079
|
};
|
|
4079
|
-
|
|
4080
|
+
Ln.propTypes = {
|
|
4080
4081
|
/**
|
|
4081
4082
|
* Heading level
|
|
4082
4083
|
*/
|
|
@@ -4094,7 +4095,7 @@ zn.propTypes = {
|
|
|
4094
4095
|
*/
|
|
4095
4096
|
className: t.string
|
|
4096
4097
|
};
|
|
4097
|
-
const
|
|
4098
|
+
const zn = (r) => {
|
|
4098
4099
|
var i = r, { children: s, level: n, className: a } = i, c = S(i, ["children", "level", "className"]);
|
|
4099
4100
|
const l = "pds-heading", o = `${n}`;
|
|
4100
4101
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4105,7 +4106,7 @@ const Mn = (r) => {
|
|
|
4105
4106
|
s
|
|
4106
4107
|
);
|
|
4107
4108
|
};
|
|
4108
|
-
|
|
4109
|
+
zn.propTypes = {
|
|
4109
4110
|
/**
|
|
4110
4111
|
* Heading content
|
|
4111
4112
|
*/
|
|
@@ -4119,7 +4120,7 @@ Mn.propTypes = {
|
|
|
4119
4120
|
*/
|
|
4120
4121
|
className: t.string
|
|
4121
4122
|
};
|
|
4122
|
-
const
|
|
4123
|
+
const Mn = new Intl.NumberFormat().formatToParts(100000089e-2), wt = Mn.find((s) => s.type === "decimal").value, kt = 16, Jt = 10, xn = (h) => {
|
|
4123
4124
|
var $ = h, {
|
|
4124
4125
|
disabled: s = !1,
|
|
4125
4126
|
formatting: n,
|
|
@@ -4149,16 +4150,16 @@ const xn = new Intl.NumberFormat().formatToParts(100000089e-2), Nt = xn.find((s)
|
|
|
4149
4150
|
"validationFunction",
|
|
4150
4151
|
"className"
|
|
4151
4152
|
]);
|
|
4152
|
-
const f = "pds-input-formatted",
|
|
4153
|
+
const f = "pds-input-formatted", E = n ? `${f}--${n}` : null, p = ee([
|
|
4153
4154
|
"pds-input-field",
|
|
4154
4155
|
f,
|
|
4155
|
-
|
|
4156
|
+
E,
|
|
4156
4157
|
d
|
|
4157
|
-
]), [b,
|
|
4158
|
+
]), [b, C] = R(""), [y, w] = R(null), [z, x] = R(null), L = ee(null), V = ee(null), H = ee("");
|
|
4158
4159
|
se(() => {
|
|
4159
|
-
switch (r &&
|
|
4160
|
+
switch (r && C(Z(r)), H.numExtra = "", n) {
|
|
4160
4161
|
case "credit-card":
|
|
4161
|
-
H.numExtra = 3, H.current =
|
|
4162
|
+
H.numExtra = 3, H.current = kt;
|
|
4162
4163
|
break;
|
|
4163
4164
|
case "phone":
|
|
4164
4165
|
H.numExtra = 4, H.current = Jt;
|
|
@@ -4181,7 +4182,7 @@ const xn = new Intl.NumberFormat().formatToParts(100000089e-2), Nt = xn.find((s)
|
|
|
4181
4182
|
rawValue: V.current
|
|
4182
4183
|
});
|
|
4183
4184
|
}, W = (T) => {
|
|
4184
|
-
|
|
4185
|
+
C(Z(T.target.value)), M(), D(T.target.value);
|
|
4185
4186
|
}, O = () => {
|
|
4186
4187
|
x("error"), p.current.push(Ce.error);
|
|
4187
4188
|
}, q = (T) => {
|
|
@@ -4196,18 +4197,18 @@ const xn = new Intl.NumberFormat().formatToParts(100000089e-2), Nt = xn.find((s)
|
|
|
4196
4197
|
)) : (n === "credit-card" || n === "phone") && (x("success"), p.current.push(Ce.success));
|
|
4197
4198
|
D(T.target.value);
|
|
4198
4199
|
}, F = () => {
|
|
4199
|
-
M(),
|
|
4200
|
+
M(), C(""), V.current = "", L.current.focus(), D("");
|
|
4200
4201
|
}, Z = (T) => {
|
|
4201
4202
|
if (T) {
|
|
4202
4203
|
if (n === "credit-card") {
|
|
4203
4204
|
const j = ("" + T).replace(/\D/g, "");
|
|
4204
4205
|
if (V.current = j, j) {
|
|
4205
4206
|
if (new RegExp("^34|37", "g").test(j)) {
|
|
4206
|
-
H.numExtra = 2, H.current =
|
|
4207
|
+
H.numExtra = 2, H.current = kt - 1;
|
|
4207
4208
|
const ne = {};
|
|
4208
4209
|
return ne.first = j.substring(0, 4), ne.middle = j.substring(4, 10), ne.middle.length > 0 && (ne.middle = ` ${ne.middle}`), ne.last = j.substring(10), ne.last.length > 0 && (ne.last = ` ${ne.last}`), `${ne.first}${ne.middle}${ne.last}`;
|
|
4209
4210
|
}
|
|
4210
|
-
H.numExtra = 3, H.current =
|
|
4211
|
+
H.numExtra = 3, H.current = kt;
|
|
4211
4212
|
const G = new RegExp(".{1,4}", "g");
|
|
4212
4213
|
return j.match(G).join(" ");
|
|
4213
4214
|
}
|
|
@@ -4225,12 +4226,12 @@ const xn = new Intl.NumberFormat().formatToParts(100000089e-2), Nt = xn.find((s)
|
|
|
4225
4226
|
return j;
|
|
4226
4227
|
}
|
|
4227
4228
|
if (n === "number-localized") {
|
|
4228
|
-
const j = new RegExp(`[^0-9${
|
|
4229
|
+
const j = new RegExp(`[^0-9${wt}]`, "g"), U = ("" + T).replace(j, "");
|
|
4229
4230
|
V.current = U;
|
|
4230
4231
|
const G = new Intl.NumberFormat(void 0, {
|
|
4231
4232
|
maximumFractionDigits: 20
|
|
4232
4233
|
}).format(U);
|
|
4233
|
-
return U.endsWith(
|
|
4234
|
+
return U.endsWith(wt) ? G + wt : G;
|
|
4234
4235
|
}
|
|
4235
4236
|
}
|
|
4236
4237
|
return T;
|
|
@@ -4273,7 +4274,7 @@ const xn = new Intl.NumberFormat().formatToParts(100000089e-2), Nt = xn.find((s)
|
|
|
4273
4274
|
y || l
|
|
4274
4275
|
));
|
|
4275
4276
|
};
|
|
4276
|
-
|
|
4277
|
+
xn.propTypes = {
|
|
4277
4278
|
/**
|
|
4278
4279
|
* Is the field disabled?
|
|
4279
4280
|
*/
|
|
@@ -4347,7 +4348,7 @@ Vn.propTypes = {
|
|
|
4347
4348
|
*/
|
|
4348
4349
|
className: t.string
|
|
4349
4350
|
};
|
|
4350
|
-
const
|
|
4351
|
+
const Vn = (v) => {
|
|
4351
4352
|
var h = v, {
|
|
4352
4353
|
counterFunction: s = () => {
|
|
4353
4354
|
},
|
|
@@ -4376,9 +4377,9 @@ const Sn = (v) => {
|
|
|
4376
4377
|
"validationFunction",
|
|
4377
4378
|
"className"
|
|
4378
4379
|
]);
|
|
4379
|
-
const $ = "pds-input-obscured", f = ee(["pds-input-field", $, g]), [
|
|
4380
|
+
const $ = "pds-input-obscured", f = ee(["pds-input-field", $, g]), [E, p] = R(r), [b, C] = R(s("")), [y, w] = R(), [z, x] = R(null), [L, V] = R(!1), H = ee(null), I = ee(null);
|
|
4380
4381
|
se(() => {
|
|
4381
|
-
r && s &&
|
|
4382
|
+
r && s && C(s(r));
|
|
4382
4383
|
}, []);
|
|
4383
4384
|
const k = () => {
|
|
4384
4385
|
f.current = f.current.filter(
|
|
@@ -4391,15 +4392,15 @@ const Sn = (v) => {
|
|
|
4391
4392
|
}, D = () => {
|
|
4392
4393
|
M(), w(""), x(null);
|
|
4393
4394
|
}, W = (T) => {
|
|
4394
|
-
p(T.target.value), D(), s &&
|
|
4395
|
+
p(T.target.value), D(), s && C(s(T.target.value)), o && o(T.target.value);
|
|
4395
4396
|
}, O = (T) => {
|
|
4396
4397
|
if (V(!1), _) {
|
|
4397
4398
|
const j = _(T.target.value) || {};
|
|
4398
4399
|
D(), j.error && (x("error"), f.current.push(Ce.error)), j.success && (x("success"), f.current.push(Ce.success)), w(j.message);
|
|
4399
4400
|
}
|
|
4400
|
-
o && o(
|
|
4401
|
+
o && o(E);
|
|
4401
4402
|
}, q = () => {
|
|
4402
|
-
D(), p(""), I.current.value = null, I.current.focus(), s &&
|
|
4403
|
+
D(), p(""), I.current.value = null, I.current.focus(), s && C(s("")), o && o("");
|
|
4403
4404
|
}, F = () => {
|
|
4404
4405
|
V((T) => !T);
|
|
4405
4406
|
}, Z = (T) => {
|
|
@@ -4433,7 +4434,7 @@ const Sn = (v) => {
|
|
|
4433
4434
|
name: c,
|
|
4434
4435
|
required: u,
|
|
4435
4436
|
disabled: n,
|
|
4436
|
-
value:
|
|
4437
|
+
value: E,
|
|
4437
4438
|
onChange: W,
|
|
4438
4439
|
onBlur: O,
|
|
4439
4440
|
ref: I,
|
|
@@ -4441,7 +4442,7 @@ const Sn = (v) => {
|
|
|
4441
4442
|
"aria-describedby": l || y ? `${c}__message` : null,
|
|
4442
4443
|
autoComplete: "off"
|
|
4443
4444
|
}
|
|
4444
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b),
|
|
4445
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b), E && a && /* @__PURE__ */ e.createElement(
|
|
4445
4446
|
it,
|
|
4446
4447
|
{
|
|
4447
4448
|
id: c,
|
|
@@ -4471,7 +4472,7 @@ const Sn = (v) => {
|
|
|
4471
4472
|
)
|
|
4472
4473
|
);
|
|
4473
4474
|
};
|
|
4474
|
-
|
|
4475
|
+
Vn.propTypes = {
|
|
4475
4476
|
/**
|
|
4476
4477
|
* If a counter is desired provide a function that accepts the input's value and will return a string to display.
|
|
4477
4478
|
* <br />
|
|
@@ -4542,7 +4543,7 @@ Sn.propTypes = {
|
|
|
4542
4543
|
*/
|
|
4543
4544
|
className: t.string
|
|
4544
4545
|
};
|
|
4545
|
-
const
|
|
4546
|
+
const Ht = 16, es = 10, Sn = (L) => {
|
|
4546
4547
|
var V = L, {
|
|
4547
4548
|
autoComplete: s = "on",
|
|
4548
4549
|
counterFunction: n = () => {
|
|
@@ -4568,10 +4569,10 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4568
4569
|
readonly: h = !1,
|
|
4569
4570
|
required: $ = !1,
|
|
4570
4571
|
showLabel: f = !0,
|
|
4571
|
-
specialFormatting:
|
|
4572
|
+
specialFormatting: E,
|
|
4572
4573
|
specialFormattingValidation: p = !1,
|
|
4573
4574
|
toggleVisibility: b = !1,
|
|
4574
|
-
type:
|
|
4575
|
+
type: C = "text",
|
|
4575
4576
|
validationFunction: y,
|
|
4576
4577
|
validationMessages: w = {
|
|
4577
4578
|
creditCardError: "Please enter a valid credit card number.",
|
|
@@ -4604,12 +4605,12 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4604
4605
|
"validationMessages",
|
|
4605
4606
|
"className"
|
|
4606
4607
|
]);
|
|
4607
|
-
const [H, I] = R(l), [k, M] = R(n("")), [D, W] = R(), [O, q] = R(null), [F, Z] = R(!1), B = ee(null), T = ee(null), j = ee(null), U = ee(null), G = "pds-input-text", ce =
|
|
4608
|
+
const [H, I] = R(l), [k, M] = R(n("")), [D, W] = R(), [O, q] = R(null), [F, Z] = R(!1), B = ee(null), T = ee(null), j = ee(null), U = ee(null), G = "pds-input-text", ce = E ? `${G}--${E}` : null;
|
|
4608
4609
|
let ne = null;
|
|
4609
|
-
|
|
4610
|
-
switch (l && I(me(l)), U.numExtra = "",
|
|
4610
|
+
C === "search" && (ne = "search"), O === "error" && (ne = "error"), O === "success" && (ne = "success"), E && p && se(() => {
|
|
4611
|
+
switch (l && I(me(l)), U.numExtra = "", E) {
|
|
4611
4612
|
case "credit-card":
|
|
4612
|
-
U.numExtra = 3, U.current =
|
|
4613
|
+
U.numExtra = 3, U.current = Ht;
|
|
4613
4614
|
break;
|
|
4614
4615
|
case "phone":
|
|
4615
4616
|
U.numExtra = 4, U.current = es;
|
|
@@ -4617,24 +4618,24 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4617
4618
|
}
|
|
4618
4619
|
}, []);
|
|
4619
4620
|
let te = null;
|
|
4620
|
-
(
|
|
4621
|
+
(E === "credit-card" || E === "phone") && U.current && (te = U.current + U.numExtra);
|
|
4621
4622
|
const me = (Q) => {
|
|
4622
4623
|
if (Q) {
|
|
4623
|
-
if (
|
|
4624
|
+
if (E === "credit-card") {
|
|
4624
4625
|
const ae = ("" + Q).replace(/\D/g, "");
|
|
4625
4626
|
if (j.current = ae, ae) {
|
|
4626
4627
|
if (new RegExp("^34|37", "g").test(ae)) {
|
|
4627
|
-
U.numExtra = 2, U.current =
|
|
4628
|
+
U.numExtra = 2, U.current = Ht - 1;
|
|
4628
4629
|
const be = {};
|
|
4629
4630
|
return be.first = ae.substring(0, 4), be.middle = ae.substring(4, 10), be.middle.length > 0 && (be.middle = ` ${be.middle}`), be.last = ae.substring(10), be.last.length > 0 && (be.last = ` ${be.last}`), `${be.first}${be.middle}${be.last}`;
|
|
4630
4631
|
}
|
|
4631
|
-
U.numExtra = 3, U.current =
|
|
4632
|
+
U.numExtra = 3, U.current = Ht;
|
|
4632
4633
|
const we = new RegExp(".{1,4}", "g");
|
|
4633
4634
|
return ae.match(we).join(" ");
|
|
4634
4635
|
}
|
|
4635
4636
|
return ae;
|
|
4636
4637
|
}
|
|
4637
|
-
if (
|
|
4638
|
+
if (E === "phone") {
|
|
4638
4639
|
const ae = ("" + Q).replace(/\D/g, "");
|
|
4639
4640
|
if (j.current = ae, ae) {
|
|
4640
4641
|
U.numExtra = 4, U.current = es;
|
|
@@ -4656,15 +4657,15 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4656
4657
|
}, J = (Q) => {
|
|
4657
4658
|
d && d(Q.target);
|
|
4658
4659
|
}, fe = (Q) => {
|
|
4659
|
-
|
|
4660
|
+
E ? g && g({ formattedValue: Q, rawValue: j.current }) : g && g(Q);
|
|
4660
4661
|
}, _e = (Q) => {
|
|
4661
|
-
I(
|
|
4662
|
+
I(E ? me(Q.target.value) : Q.target.value), ue(), n && M(n(E ? j.current : Q.target.value)), fe(Q.target.value);
|
|
4662
4663
|
}, re = (Q) => {
|
|
4663
4664
|
if (b && Z(!1), y) {
|
|
4664
4665
|
const ae = y(Q.target.value) || {};
|
|
4665
4666
|
ue(), ae.error && q("error"), ae.success && q("success"), W(ae.message);
|
|
4666
4667
|
}
|
|
4667
|
-
|
|
4668
|
+
E && p && !y && (B.current.checkValidity() === !1 || Q.target.value.length < te ? (q("error"), E === "credit-card" && W(w.creditCardError), E === "phone" && W(w.phoneError)) : q("success")), fe(Q.target.value);
|
|
4668
4669
|
}, K = (Q) => {
|
|
4669
4670
|
var ae;
|
|
4670
4671
|
(!((ae = T.current) != null && ae.contains(Q.relatedTarget)) || !Q.relatedTarget) && Z(!1);
|
|
@@ -4672,7 +4673,7 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4672
4673
|
ue(), I(""), j.current = "", B.current.focus(), n && M(n("")), fe("");
|
|
4673
4674
|
};
|
|
4674
4675
|
se(() => {
|
|
4675
|
-
if (
|
|
4676
|
+
if (C === "search" && r) {
|
|
4676
4677
|
const Q = (ae) => {
|
|
4677
4678
|
ae.key === "/" && (/^(?:input|textarea|select|button)$/i.test(ae.target.tagName) || (ae.preventDefault(), document.getElementById(i).focus()));
|
|
4678
4679
|
};
|
|
@@ -4684,10 +4685,10 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4684
4685
|
const pe = () => {
|
|
4685
4686
|
Z((Q) => !Q);
|
|
4686
4687
|
};
|
|
4687
|
-
b &&
|
|
4688
|
+
b && C === "password" && (F ? x.type = "text" : x.type = "password"), E === "phone" && (x.type = "tel");
|
|
4688
4689
|
const ye = D || _;
|
|
4689
4690
|
return /* @__PURE__ */ e.createElement(
|
|
4690
|
-
|
|
4691
|
+
De,
|
|
4691
4692
|
N({
|
|
4692
4693
|
className: z,
|
|
4693
4694
|
decorator: ne,
|
|
@@ -4704,12 +4705,12 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4704
4705
|
showLabel: f,
|
|
4705
4706
|
validationState: O
|
|
4706
4707
|
}, x),
|
|
4707
|
-
b &&
|
|
4708
|
+
b && C === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${m.visibilityStatus} ${F ? "visible" : "hidden"}.`),
|
|
4708
4709
|
/* @__PURE__ */ e.createElement(
|
|
4709
4710
|
"input",
|
|
4710
4711
|
{
|
|
4711
4712
|
className: [G, ce].join(" ").trim().replace(/\s+/g, " "),
|
|
4712
|
-
type:
|
|
4713
|
+
type: C,
|
|
4713
4714
|
id: i,
|
|
4714
4715
|
name: i,
|
|
4715
4716
|
placeholder: v,
|
|
@@ -4723,7 +4724,7 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4723
4724
|
ref: B,
|
|
4724
4725
|
"aria-invalid": O === "error",
|
|
4725
4726
|
"aria-describedby": ye ? `${i}__message` : null,
|
|
4726
|
-
autoComplete:
|
|
4727
|
+
autoComplete: C === "password" ? "off" : s,
|
|
4727
4728
|
maxLength: te,
|
|
4728
4729
|
minLength: te
|
|
4729
4730
|
}
|
|
@@ -4737,7 +4738,7 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4737
4738
|
handleClearInput: Y
|
|
4738
4739
|
}
|
|
4739
4740
|
),
|
|
4740
|
-
b &&
|
|
4741
|
+
b && C === "password" && /* @__PURE__ */ e.createElement(
|
|
4741
4742
|
"button",
|
|
4742
4743
|
{
|
|
4743
4744
|
type: "button",
|
|
@@ -4749,10 +4750,10 @@ const kt = 16, es = 10, In = (L) => {
|
|
|
4749
4750
|
},
|
|
4750
4751
|
/* @__PURE__ */ e.createElement(A, { iconName: F ? "eyeSlash" : "eye" })
|
|
4751
4752
|
),
|
|
4752
|
-
!H && r &&
|
|
4753
|
+
!H && r && C === "search" && /* @__PURE__ */ e.createElement(Pt, { label: m.searchShortcut })
|
|
4753
4754
|
);
|
|
4754
4755
|
};
|
|
4755
|
-
|
|
4756
|
+
Sn.propTypes = {
|
|
4756
4757
|
/**
|
|
4757
4758
|
* 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.
|
|
4758
4759
|
*
|
|
@@ -4888,7 +4889,7 @@ In.propTypes = {
|
|
|
4888
4889
|
*/
|
|
4889
4890
|
className: t.string
|
|
4890
4891
|
};
|
|
4891
|
-
const
|
|
4892
|
+
const In = (i) => {
|
|
4892
4893
|
var l = i, {
|
|
4893
4894
|
linkItems: s,
|
|
4894
4895
|
headingLevel: n = "h3",
|
|
@@ -4910,7 +4911,7 @@ const Tn = (i) => {
|
|
|
4910
4911
|
s && /* @__PURE__ */ e.createElement("ul", { className: `${o}__list`, role: "list" }, s.map((m, _) => /* @__PURE__ */ e.createElement("li", { key: _, className: "pds-cta-links-card__item" }, m)))
|
|
4911
4912
|
);
|
|
4912
4913
|
};
|
|
4913
|
-
|
|
4914
|
+
In.propTypes = {
|
|
4914
4915
|
/**
|
|
4915
4916
|
* Heading level
|
|
4916
4917
|
*/
|
|
@@ -4928,8 +4929,8 @@ Tn.propTypes = {
|
|
|
4928
4929
|
*/
|
|
4929
4930
|
className: t.string
|
|
4930
4931
|
};
|
|
4931
|
-
const
|
|
4932
|
-
var
|
|
4932
|
+
const Lt = (s) => s.isSeparator, zt = (s) => s.isHeading, Mt = (s) => s.isLink, Tn = (s) => s.isNode, ys = (f) => {
|
|
4933
|
+
var E = f, {
|
|
4933
4934
|
avatarImageSrc: s,
|
|
4934
4935
|
disabled: n,
|
|
4935
4936
|
displayType: a = "icon-end",
|
|
@@ -4945,7 +4946,7 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
4945
4946
|
variant: d = "primary",
|
|
4946
4947
|
withinNavbar: v,
|
|
4947
4948
|
className: h
|
|
4948
|
-
} =
|
|
4949
|
+
} = E, $ = S(E, [
|
|
4949
4950
|
"avatarImageSrc",
|
|
4950
4951
|
"disabled",
|
|
4951
4952
|
"displayType",
|
|
@@ -4965,18 +4966,18 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
4965
4966
|
const {
|
|
4966
4967
|
x: p,
|
|
4967
4968
|
y: b,
|
|
4968
|
-
reference:
|
|
4969
|
+
reference: C,
|
|
4969
4970
|
floating: y,
|
|
4970
4971
|
strategy: w,
|
|
4971
4972
|
update: z,
|
|
4972
4973
|
placement: x,
|
|
4973
4974
|
refs: L
|
|
4974
|
-
} =
|
|
4975
|
+
} = Ks({
|
|
4975
4976
|
placement: "bottom-start",
|
|
4976
|
-
middleware: [
|
|
4977
|
+
middleware: [Ys()]
|
|
4977
4978
|
});
|
|
4978
4979
|
let V = !1;
|
|
4979
|
-
const H = Ne(
|
|
4980
|
+
const H = Ne(Ae);
|
|
4980
4981
|
H && (V = H.isMobile);
|
|
4981
4982
|
const I = v && V, k = "pds-menu-button", M = I ? `${k}--isMobile` : null, D = v ? `${k}--navbar` : null, W = xe(), [O] = R(`menu-button-${W}`), [q] = R(`menu-listbox-${W}`), F = r || O, Z = L.floating, B = ee(null), [T, j] = R(!1), [U, G] = R(!1), [ce, ne] = R(""), [te, me] = R(0), ue = ee([]), J = ee([]), fe = ee([]);
|
|
4982
4983
|
As(() => {
|
|
@@ -5092,9 +5093,9 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5092
5093
|
B.current && !B.current.contains(P.target) && T && K();
|
|
5093
5094
|
}, be = (P, le, X = "", ge = "", ...de) => {
|
|
5094
5095
|
const $e = X ? `-group-${X}` : "", Ee = F + $e + "-item-" + (le + 1), Me = P.id ? P.id : Ee;
|
|
5095
|
-
if (Ht(P))
|
|
5096
|
-
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Me });
|
|
5097
5096
|
if (Lt(P))
|
|
5097
|
+
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Me });
|
|
5098
|
+
if (zt(P))
|
|
5098
5099
|
return /* @__PURE__ */ e.createElement(
|
|
5099
5100
|
"li",
|
|
5100
5101
|
{
|
|
@@ -5105,25 +5106,25 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5105
5106
|
},
|
|
5106
5107
|
P.label
|
|
5107
5108
|
);
|
|
5108
|
-
if (
|
|
5109
|
+
if (Tn(P))
|
|
5109
5110
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Me }, P.nodeContent);
|
|
5110
|
-
if (
|
|
5111
|
+
if (Mt(P) || P.label) {
|
|
5111
5112
|
J.current.push(Me), fe.current.push(P);
|
|
5112
5113
|
let mt = !1;
|
|
5113
5114
|
ce !== "" && !P.disabled && (mt = ce === Me);
|
|
5114
5115
|
let ze;
|
|
5115
|
-
if (P.label && (ze = [P.label]),
|
|
5116
|
-
const
|
|
5117
|
-
ze.unshift(
|
|
5116
|
+
if (P.label && (ze = [P.label]), Mt(P) && (ze = [P.linkContent.props.children]), P.iconName) {
|
|
5117
|
+
const Je = /* @__PURE__ */ e.createElement(A, { key: `icon-${W}`, iconName: P.iconName, iconSize: "md" });
|
|
5118
|
+
ze.unshift(Je);
|
|
5118
5119
|
}
|
|
5119
|
-
let Ye;
|
|
5120
|
-
P.description && (Ye = /* @__PURE__ */ e.createElement("span", { className: `${k}__item-description` }, P.description));
|
|
5121
5120
|
let Xe;
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5121
|
+
P.description && (Xe = /* @__PURE__ */ e.createElement("span", { className: `${k}__item-description` }, P.description));
|
|
5122
|
+
let Qe;
|
|
5123
|
+
if (Mt(P)) {
|
|
5124
|
+
const Je = P.linkContent.type;
|
|
5125
|
+
Qe = /* @__PURE__ */ e.createElement(Je, N({ tabIndex: -1 }, P.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${k}__item-label` }, ze), Xe);
|
|
5125
5126
|
} else
|
|
5126
|
-
|
|
5127
|
+
Qe = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${k}__item-label` }, ze), Xe);
|
|
5127
5128
|
return /* @__PURE__ */ e.createElement(
|
|
5128
5129
|
"li",
|
|
5129
5130
|
N({
|
|
@@ -5136,29 +5137,29 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5136
5137
|
onClick: ae,
|
|
5137
5138
|
"aria-disabled": P.disabled ? !0 : null
|
|
5138
5139
|
}, de),
|
|
5139
|
-
|
|
5140
|
+
Qe
|
|
5140
5141
|
);
|
|
5141
5142
|
}
|
|
5142
|
-
},
|
|
5143
|
+
}, Ke = (P, le) => {
|
|
5143
5144
|
const X = [];
|
|
5144
5145
|
let ge = le.shift(), de = [];
|
|
5145
5146
|
return P.map(($e, Ee) => {
|
|
5146
5147
|
$e !== ge ? (de.push($e), Ee + 1 === P.length && X.push(de)) : (X.push(de), de = [], de.push($e), ge = le.shift());
|
|
5147
5148
|
}), X.filter(($e) => $e.length > 0);
|
|
5148
|
-
},
|
|
5149
|
+
}, $t = (P) => {
|
|
5149
5150
|
J.current = [], fe.current = [];
|
|
5150
5151
|
const le = P, X = P.filter(
|
|
5151
|
-
|
|
5152
|
+
zt || Lt
|
|
5152
5153
|
), ge = X.length > 0;
|
|
5153
5154
|
let de = [`${k}__listbox`];
|
|
5154
5155
|
if (v && de.push(`${k}__listbox--navbar`), (a === "avatar" || a === "avatar-with-text") && de.push(`${k}__listbox--avatar`), u === "end" && de.push(`${k}__listbox--end`), a === "icon-only" && de.push(`${k}__listbox--icon-only`), de = de.join(" ").trim().replace(/\s+/g, " "), ge) {
|
|
5155
|
-
const $e =
|
|
5156
|
+
const $e = Ke(P, X);
|
|
5156
5157
|
$e.forEach(() => {
|
|
5157
5158
|
ue.current.push(xe());
|
|
5158
5159
|
});
|
|
5159
5160
|
let Ee = ue.current[0];
|
|
5160
5161
|
const Me = $e[0].findIndex(
|
|
5161
|
-
(ze) => !
|
|
5162
|
+
(ze) => !Lt(ze) && !zt(ze)
|
|
5162
5163
|
), mt = `${F}-group-${Ee}-item-${Me + 1}`;
|
|
5163
5164
|
return /* @__PURE__ */ e.createElement(
|
|
5164
5165
|
"div",
|
|
@@ -5180,14 +5181,14 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5180
5181
|
onKeyDown: we,
|
|
5181
5182
|
ref: y
|
|
5182
5183
|
},
|
|
5183
|
-
$e.map((ze,
|
|
5184
|
-
Ee = ue.current[
|
|
5185
|
-
const
|
|
5184
|
+
$e.map((ze, Xe) => {
|
|
5185
|
+
Ee = ue.current[Xe];
|
|
5186
|
+
const Qe = ze[0].isHeading, Je = Qe ? `${F}-group-${Ee}-heading` : "", xs = `${F}-group-${Ee}`, Vs = Qe ? null : `${g} ${Xe + 1}`;
|
|
5186
5187
|
return /* @__PURE__ */ e.createElement(
|
|
5187
5188
|
"ul",
|
|
5188
5189
|
{
|
|
5189
5190
|
role: "group",
|
|
5190
|
-
"aria-labelledby":
|
|
5191
|
+
"aria-labelledby": Je,
|
|
5191
5192
|
"aria-label": Vs,
|
|
5192
5193
|
key: xs
|
|
5193
5194
|
},
|
|
@@ -5195,7 +5196,7 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5195
5196
|
Ss,
|
|
5196
5197
|
Is,
|
|
5197
5198
|
Ee,
|
|
5198
|
-
|
|
5199
|
+
Je
|
|
5199
5200
|
))
|
|
5200
5201
|
);
|
|
5201
5202
|
})
|
|
@@ -5225,9 +5226,9 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5225
5226
|
));
|
|
5226
5227
|
}
|
|
5227
5228
|
};
|
|
5228
|
-
let
|
|
5229
|
-
a === "icon-end" && (
|
|
5230
|
-
|
|
5229
|
+
let Ye;
|
|
5230
|
+
a === "icon-end" && (Ye = /* @__PURE__ */ e.createElement(
|
|
5231
|
+
Fe,
|
|
5231
5232
|
{
|
|
5232
5233
|
id: F,
|
|
5233
5234
|
isSplitButton: i,
|
|
@@ -5244,9 +5245,9 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5244
5245
|
"aria-expanded": T,
|
|
5245
5246
|
onClick: Q,
|
|
5246
5247
|
onKeyDown: He,
|
|
5247
|
-
ref:
|
|
5248
|
+
ref: C
|
|
5248
5249
|
}
|
|
5249
|
-
)), a === "icon-only" && (
|
|
5250
|
+
)), a === "icon-only" && (Ye = /* @__PURE__ */ e.createElement(
|
|
5250
5251
|
pt,
|
|
5251
5252
|
{
|
|
5252
5253
|
id: F,
|
|
@@ -5262,10 +5263,10 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5262
5263
|
"aria-expanded": T,
|
|
5263
5264
|
onClick: Q,
|
|
5264
5265
|
onKeyDown: He,
|
|
5265
|
-
ref:
|
|
5266
|
+
ref: C,
|
|
5266
5267
|
hasTooltip: !1
|
|
5267
5268
|
}
|
|
5268
|
-
)), (a === "avatar" || a === "avatar-with-text") && (
|
|
5269
|
+
)), (a === "avatar" || a === "avatar-with-text") && (Ye = /* @__PURE__ */ e.createElement(
|
|
5269
5270
|
"button",
|
|
5270
5271
|
{
|
|
5271
5272
|
id: F,
|
|
@@ -5278,9 +5279,9 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5278
5279
|
"aria-expanded": T,
|
|
5279
5280
|
onClick: Q,
|
|
5280
5281
|
onKeyDown: He,
|
|
5281
|
-
ref:
|
|
5282
|
+
ref: C
|
|
5282
5283
|
},
|
|
5283
|
-
/* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
5284
|
+
/* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(tt, { size: "sm", imageSrc: s }), a === "avatar-with-text" && l),
|
|
5284
5285
|
/* @__PURE__ */ e.createElement(
|
|
5285
5286
|
A,
|
|
5286
5287
|
{
|
|
@@ -5298,18 +5299,18 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5298
5299
|
), le.nextElementSibling.classList.toggle(`${k}__mobile-menu--expanded`);
|
|
5299
5300
|
}, oe = () => /* @__PURE__ */ e.createElement("ul", { className: `${k}__mobile-menu`, role: "menu" }, o.map((P, le) => be(P, le)));
|
|
5300
5301
|
let ke;
|
|
5301
|
-
const
|
|
5302
|
+
const qe = a === "icon-end" ? "pds-button pds-button--navbar" : null, Pe = [`${k}__toggle`, qe].join(" ").trim().replace(/\s+/g, " ");
|
|
5302
5303
|
I && (ke = /* @__PURE__ */ e.createElement(
|
|
5303
5304
|
"button",
|
|
5304
5305
|
{
|
|
5305
5306
|
id: F,
|
|
5306
5307
|
type: "button",
|
|
5307
5308
|
disabled: n,
|
|
5308
|
-
className:
|
|
5309
|
+
className: Pe,
|
|
5309
5310
|
"aria-expanded": !1,
|
|
5310
5311
|
onClick: ie
|
|
5311
5312
|
},
|
|
5312
|
-
a === "avatar" || a === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
5313
|
+
a === "avatar" || a === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(tt, { size: "sm", imageSrc: s }), l) : a === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${k}__icon-label` }, /* @__PURE__ */ e.createElement(A, { iconName: c }), " ", l) : l,
|
|
5313
5314
|
/* @__PURE__ */ e.createElement(
|
|
5314
5315
|
A,
|
|
5315
5316
|
{
|
|
@@ -5327,7 +5328,7 @@ const Ht = (s) => s.isSeparator, Lt = (s) => s.isHeading, zt = (s) => s.isLink,
|
|
|
5327
5328
|
"data-testid": _,
|
|
5328
5329
|
ref: B
|
|
5329
5330
|
}, $),
|
|
5330
|
-
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, ot, /* @__PURE__ */ e.createElement(oe, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
5331
|
+
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, ot, /* @__PURE__ */ e.createElement(oe, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Ye, $t(o))
|
|
5331
5332
|
);
|
|
5332
5333
|
};
|
|
5333
5334
|
ys.propTypes = {
|
|
@@ -5351,7 +5352,7 @@ ys.propTypes = {
|
|
|
5351
5352
|
/**
|
|
5352
5353
|
* Icon name for icon-only buttons.
|
|
5353
5354
|
*/
|
|
5354
|
-
iconName:
|
|
5355
|
+
iconName: rt,
|
|
5355
5356
|
/**
|
|
5356
5357
|
* Optional ID value for this component.
|
|
5357
5358
|
*/
|
|
@@ -5369,11 +5370,11 @@ ys.propTypes = {
|
|
|
5369
5370
|
*/
|
|
5370
5371
|
menuItems: t.arrayOf(
|
|
5371
5372
|
t.oneOfType([
|
|
5372
|
-
|
|
5373
|
+
mn,
|
|
5373
5374
|
hs,
|
|
5374
5375
|
fs,
|
|
5375
|
-
|
|
5376
|
-
|
|
5376
|
+
un,
|
|
5377
|
+
pn
|
|
5377
5378
|
])
|
|
5378
5379
|
),
|
|
5379
5380
|
/**
|
|
@@ -5405,7 +5406,7 @@ ys.propTypes = {
|
|
|
5405
5406
|
*/
|
|
5406
5407
|
className: t.string
|
|
5407
5408
|
};
|
|
5408
|
-
const
|
|
5409
|
+
const et = (r) => {
|
|
5409
5410
|
var i = r, {
|
|
5410
5411
|
children: s,
|
|
5411
5412
|
width: n = "standard",
|
|
@@ -5424,7 +5425,7 @@ const Je = (r) => {
|
|
|
5424
5425
|
s
|
|
5425
5426
|
);
|
|
5426
5427
|
};
|
|
5427
|
-
|
|
5428
|
+
et.propTypes = {
|
|
5428
5429
|
/**
|
|
5429
5430
|
* Container content.
|
|
5430
5431
|
*/
|
|
@@ -5438,7 +5439,7 @@ Je.propTypes = {
|
|
|
5438
5439
|
*/
|
|
5439
5440
|
className: t.string
|
|
5440
5441
|
};
|
|
5441
|
-
const
|
|
5442
|
+
const On = (d) => {
|
|
5442
5443
|
var v = d, {
|
|
5443
5444
|
children: s,
|
|
5444
5445
|
colorType: n = "default",
|
|
@@ -5466,9 +5467,9 @@ const Rn = (d) => {
|
|
|
5466
5467
|
]);
|
|
5467
5468
|
const [h, $] = R(!1);
|
|
5468
5469
|
let f = !1;
|
|
5469
|
-
const
|
|
5470
|
-
|
|
5471
|
-
const p = "pds-navbar", b = c ? `${p}--noBorder` : "",
|
|
5470
|
+
const E = Ne(Ae);
|
|
5471
|
+
E && (f = E.isMobile);
|
|
5472
|
+
const p = "pds-navbar", b = c ? `${p}--noBorder` : "", C = n !== "default" ? `${p}--${n}` : "", y = f ? `${p}--isMobile` : `${p}--notMobile`;
|
|
5472
5473
|
se(() => (window.addEventListener("keyup", w), () => {
|
|
5473
5474
|
window.removeEventListener("keyup", w);
|
|
5474
5475
|
}), []);
|
|
@@ -5530,7 +5531,7 @@ const Rn = (d) => {
|
|
|
5530
5531
|
let M = "default";
|
|
5531
5532
|
(n === "reverse" || n === "reverse-transparent") && (M = "reverse");
|
|
5532
5533
|
const D = () => i === "custom" ? /* @__PURE__ */ e.createElement(e.Fragment, null, k) : /* @__PURE__ */ e.createElement(
|
|
5533
|
-
|
|
5534
|
+
Ft,
|
|
5534
5535
|
{
|
|
5535
5536
|
colorType: M,
|
|
5536
5537
|
displayType: i,
|
|
@@ -5554,26 +5555,26 @@ const Rn = (d) => {
|
|
|
5554
5555
|
className: h ? `${p}__mobile ${p}__mobile--open` : `${p}__mobile ${p}__mobile--closed`,
|
|
5555
5556
|
ref: x
|
|
5556
5557
|
},
|
|
5557
|
-
/* @__PURE__ */ e.createElement(
|
|
5558
|
+
/* @__PURE__ */ e.createElement(et, null, H, I)
|
|
5558
5559
|
), q = /* @__PURE__ */ e.createElement(
|
|
5559
|
-
|
|
5560
|
+
Xs,
|
|
5560
5561
|
{
|
|
5561
5562
|
focusTrapOptions: {
|
|
5562
5563
|
clickOutsideDeactivates: !0,
|
|
5563
5564
|
initialFocus: !1
|
|
5564
5565
|
}
|
|
5565
5566
|
},
|
|
5566
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
5567
|
-
), F = /* @__PURE__ */ e.createElement(
|
|
5567
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(et, { className: `${p}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${p}__inner-mobile` }, /* @__PURE__ */ e.createElement(D, null), s && W)), /* @__PURE__ */ e.createElement(et, null, s && O))
|
|
5568
|
+
), F = /* @__PURE__ */ e.createElement(et, { width: a, className: `${p}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${p}__logo` }, /* @__PURE__ */ e.createElement(D, null)), /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, H ? /* @__PURE__ */ e.createElement("div", { className: `${p}__items-left` }, H) : /* @__PURE__ */ e.createElement("span", null), I && /* @__PURE__ */ e.createElement("div", { className: `${p}__items-right` }, I)));
|
|
5568
5569
|
return /* @__PURE__ */ e.createElement(
|
|
5569
5570
|
"header",
|
|
5570
5571
|
N({
|
|
5571
|
-
className: [p,
|
|
5572
|
+
className: [p, C, b, y, _].join(" ").trim().replace(/\s+/g, " ")
|
|
5572
5573
|
}, g),
|
|
5573
5574
|
f ? q : F
|
|
5574
5575
|
);
|
|
5575
5576
|
};
|
|
5576
|
-
|
|
5577
|
+
On.propTypes = {
|
|
5577
5578
|
/**
|
|
5578
5579
|
* Color scheme.
|
|
5579
5580
|
*/
|
|
@@ -5638,20 +5639,20 @@ const Ns = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5638
5639
|
placement: "bottom-start",
|
|
5639
5640
|
open: c,
|
|
5640
5641
|
onOpenChange: r,
|
|
5641
|
-
whileElementsMounted:
|
|
5642
|
+
whileElementsMounted: Re
|
|
5642
5643
|
}), d = nt(g, { event: "mousedown" }), v = Se(g), h = Ie(g, { role: "menu" });
|
|
5643
5644
|
let $;
|
|
5644
|
-
u ? $ =
|
|
5645
|
+
u ? $ = Ot(g, {
|
|
5645
5646
|
enabled: !1
|
|
5646
|
-
}) : $ =
|
|
5647
|
-
handleClose:
|
|
5647
|
+
}) : $ = Ot(g, {
|
|
5648
|
+
handleClose: Bs({
|
|
5648
5649
|
requireIntent: !1,
|
|
5649
5650
|
buffer: 10,
|
|
5650
5651
|
blockPointerEvents: !0,
|
|
5651
5652
|
enabled: !0
|
|
5652
5653
|
})
|
|
5653
5654
|
});
|
|
5654
|
-
const { getReferenceProps: f, getFloatingProps:
|
|
5655
|
+
const { getReferenceProps: f, getFloatingProps: E } = Te([
|
|
5655
5656
|
v,
|
|
5656
5657
|
h,
|
|
5657
5658
|
d,
|
|
@@ -5670,11 +5671,11 @@ const Ns = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5670
5671
|
N({
|
|
5671
5672
|
className: `${m}__dropdown`,
|
|
5672
5673
|
ref: _.setFloating
|
|
5673
|
-
},
|
|
5674
|
-
s.map((b,
|
|
5674
|
+
}, E()),
|
|
5675
|
+
s.map((b, C) => /* @__PURE__ */ e.createElement(
|
|
5675
5676
|
"li",
|
|
5676
5677
|
{
|
|
5677
|
-
key:
|
|
5678
|
+
key: C,
|
|
5678
5679
|
role: b.isSeparator ? "separator" : "menuitem",
|
|
5679
5680
|
className: `${m}__item ${b.isSeparator ? `${m}__dropdown--separator` : `${m}__item--second-level`} ${p(b) ? `${m}__item--active` : null}`
|
|
5680
5681
|
},
|
|
@@ -5687,7 +5688,7 @@ Ns.propTypes = {
|
|
|
5687
5688
|
label: t.string,
|
|
5688
5689
|
mobileMenuMaxWidth: t.number
|
|
5689
5690
|
};
|
|
5690
|
-
const
|
|
5691
|
+
const Rn = (l) => {
|
|
5691
5692
|
var o = l, {
|
|
5692
5693
|
ariaLabel: s = "Main Navigation",
|
|
5693
5694
|
colorType: n = "default",
|
|
@@ -5701,7 +5702,7 @@ const Dn = (l) => {
|
|
|
5701
5702
|
"mobileMenuMaxWidth",
|
|
5702
5703
|
"className"
|
|
5703
5704
|
]);
|
|
5704
|
-
const [u, m] = R(1025), [_, g] = R(null), [d, v] = R(-1), [h, $] = R(null), [f,
|
|
5705
|
+
const [u, m] = R(1025), [_, g] = R(null), [d, v] = R(-1), [h, $] = R(null), [f, E] = R({
|
|
5705
5706
|
containerChildren: []
|
|
5706
5707
|
});
|
|
5707
5708
|
se(() => (m(window.innerWidth), window.addEventListener("resize", p), () => {
|
|
@@ -5721,7 +5722,7 @@ const Dn = (l) => {
|
|
|
5721
5722
|
focusVisible: !0
|
|
5722
5723
|
}));
|
|
5723
5724
|
}, [d]);
|
|
5724
|
-
const
|
|
5725
|
+
const C = "pds-nav-menu", y = n !== "default" ? `${C}--${n}` : "", w = b ? `${C}--isMobile` : `${C}--notMobile`, z = ee([]), x = (H) => {
|
|
5725
5726
|
const I = z.current.length - 1, q = {
|
|
5726
5727
|
ArrowRight: () => {
|
|
5727
5728
|
g(-1), v(d === -1 ? 1 : d === I ? 0 : d + 1);
|
|
@@ -5733,7 +5734,7 @@ const Dn = (l) => {
|
|
|
5733
5734
|
var B, T, j, U;
|
|
5734
5735
|
$("down");
|
|
5735
5736
|
let F = H.target.parentNode.children[1], Z = ((T = (B = H.target) == null ? void 0 : B.parentNode.children[1]) == null ? void 0 : T.children) || ((U = (j = H.target) == null ? void 0 : j.parentNode.parentNode.children[1]) == null ? void 0 : U.children);
|
|
5736
|
-
f.container != F && F != null &&
|
|
5737
|
+
f.container != F && F != null && E({
|
|
5737
5738
|
container: F,
|
|
5738
5739
|
containerChildren: [...Z]
|
|
5739
5740
|
}), _ === null || _ == f.containerChildren.length - 1 ? g(0) : g(parseInt(_) + 1);
|
|
@@ -5763,7 +5764,7 @@ const Dn = (l) => {
|
|
|
5763
5764
|
key: `${I}-dropdown`,
|
|
5764
5765
|
id: M,
|
|
5765
5766
|
ref: (D) => z.current[I] = D,
|
|
5766
|
-
className: `${
|
|
5767
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-children ${L(H) === !0 ? `${C}__item--active` : ""}`
|
|
5767
5768
|
},
|
|
5768
5769
|
/* @__PURE__ */ e.createElement(
|
|
5769
5770
|
Ns,
|
|
@@ -5781,7 +5782,7 @@ const Dn = (l) => {
|
|
|
5781
5782
|
key: I,
|
|
5782
5783
|
id: M,
|
|
5783
5784
|
ref: (D) => z.current[I] = D,
|
|
5784
|
-
className: `${
|
|
5785
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-link ${L(H) === !0 ? `${C}__item--active` : ""}`
|
|
5785
5786
|
},
|
|
5786
5787
|
H.linkContent
|
|
5787
5788
|
)
|
|
@@ -5789,16 +5790,16 @@ const Dn = (l) => {
|
|
|
5789
5790
|
}), /* @__PURE__ */ e.createElement(
|
|
5790
5791
|
"nav",
|
|
5791
5792
|
N({
|
|
5792
|
-
className: [
|
|
5793
|
+
className: [C, y, w, r].join(" ").trim().replace(/\s+/g, " "),
|
|
5793
5794
|
"aria-label": s,
|
|
5794
5795
|
onKeyDown: (H) => {
|
|
5795
5796
|
x(H);
|
|
5796
5797
|
}
|
|
5797
5798
|
}, i),
|
|
5798
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
5799
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${C}__menu` }, V)
|
|
5799
5800
|
);
|
|
5800
5801
|
};
|
|
5801
|
-
|
|
5802
|
+
Rn.propTypes = {
|
|
5802
5803
|
/**
|
|
5803
5804
|
* Aria label for `nav` element.
|
|
5804
5805
|
*/
|
|
@@ -5860,9 +5861,9 @@ const gt = (i) => {
|
|
|
5860
5861
|
m = ["next", "wordpress"];
|
|
5861
5862
|
break;
|
|
5862
5863
|
}
|
|
5863
|
-
o = /* @__PURE__ */ e.createElement("span", { className: `${i}__group` },
|
|
5864
|
+
o = /* @__PURE__ */ e.createElement("span", { className: `${i}__group` }, xt[m[0]], xt[m[1]]);
|
|
5864
5865
|
} else
|
|
5865
|
-
o =
|
|
5866
|
+
o = xt[s];
|
|
5866
5867
|
return /* @__PURE__ */ e.createElement(
|
|
5867
5868
|
"div",
|
|
5868
5869
|
N({
|
|
@@ -5892,7 +5893,7 @@ ws.propTypes = {
|
|
|
5892
5893
|
*/
|
|
5893
5894
|
className: t.string
|
|
5894
5895
|
};
|
|
5895
|
-
const
|
|
5896
|
+
const xt = {
|
|
5896
5897
|
drupal: /* @__PURE__ */ e.createElement(
|
|
5897
5898
|
"svg",
|
|
5898
5899
|
{
|
|
@@ -6141,7 +6142,7 @@ const Mt = {
|
|
|
6141
6142
|
label: "Early Access",
|
|
6142
6143
|
color: "success"
|
|
6143
6144
|
}
|
|
6144
|
-
},
|
|
6145
|
+
}, Dn = (m) => {
|
|
6145
6146
|
var _ = m, {
|
|
6146
6147
|
badge: s,
|
|
6147
6148
|
icon: n,
|
|
@@ -6206,7 +6207,7 @@ const Mt = {
|
|
|
6206
6207
|
}))
|
|
6207
6208
|
);
|
|
6208
6209
|
};
|
|
6209
|
-
|
|
6210
|
+
Dn.propTypes = {
|
|
6210
6211
|
/**
|
|
6211
6212
|
* Optional indicator badge type. Choose from only early-access at this time.
|
|
6212
6213
|
*/
|
|
@@ -6249,7 +6250,7 @@ An.propTypes = {
|
|
|
6249
6250
|
*/
|
|
6250
6251
|
className: t.string
|
|
6251
6252
|
};
|
|
6252
|
-
const
|
|
6253
|
+
const lt = ht({}), An = (s) => {
|
|
6253
6254
|
if (typeof window == "undefined")
|
|
6254
6255
|
return 0;
|
|
6255
6256
|
const n = window.location.href.split("/"), c = `/${n[n.length - 1]}`.split("");
|
|
@@ -6269,9 +6270,9 @@ const at = ht({}), qn = (s) => {
|
|
|
6269
6270
|
buttonCallback: r = null,
|
|
6270
6271
|
children: i
|
|
6271
6272
|
}) => {
|
|
6272
|
-
const [l, o] = R(() =>
|
|
6273
|
+
const [l, o] = R(() => An(s)), [u, m] = R([]), _ = s.length, [g, d] = R("");
|
|
6273
6274
|
return /* @__PURE__ */ e.createElement(
|
|
6274
|
-
|
|
6275
|
+
lt.Provider,
|
|
6275
6276
|
{
|
|
6276
6277
|
value: {
|
|
6277
6278
|
currentKey: l,
|
|
@@ -6299,7 +6300,7 @@ ks.propTypes = {
|
|
|
6299
6300
|
pages: t.arrayOf(t.shape({ link: t.string })).isRequired,
|
|
6300
6301
|
headingId: t.string
|
|
6301
6302
|
};
|
|
6302
|
-
const
|
|
6303
|
+
const Ct = (h) => {
|
|
6303
6304
|
var $ = h, {
|
|
6304
6305
|
disabled: s = !1,
|
|
6305
6306
|
id: n,
|
|
@@ -6329,11 +6330,11 @@ const Wt = (h) => {
|
|
|
6329
6330
|
"validationFunction",
|
|
6330
6331
|
"className"
|
|
6331
6332
|
]);
|
|
6332
|
-
const [f,
|
|
6333
|
+
const [f, E] = R(!1), [p, b] = R(null), [C, y] = R(a), [w, z] = R(), [x, L] = R(null), V = ee([]), H = "pds-select", { context: I, refs: k } = Ve({
|
|
6333
6334
|
open: f,
|
|
6334
|
-
onOpenChange:
|
|
6335
|
-
whileElementsMounted:
|
|
6336
|
-
}), M = Ie(I, { role: "listbox" }), D = Se(I), W =
|
|
6335
|
+
onOpenChange: E,
|
|
6336
|
+
whileElementsMounted: Re
|
|
6337
|
+
}), M = Ie(I, { role: "listbox" }), D = Se(I), W = ct(I, {
|
|
6337
6338
|
listRef: V,
|
|
6338
6339
|
activeIndex: p,
|
|
6339
6340
|
onNavigate: b,
|
|
@@ -6341,7 +6342,7 @@ const Wt = (h) => {
|
|
|
6341
6342
|
openOnArrowKeyDown: !0
|
|
6342
6343
|
}), { getReferenceProps: O, getFloatingProps: q, getItemProps: F } = Te(
|
|
6343
6344
|
[D, M, W]
|
|
6344
|
-
), { isMounted: Z, styles: B } =
|
|
6345
|
+
), { isMounted: Z, styles: B } = Ge(I, {
|
|
6345
6346
|
duration: {
|
|
6346
6347
|
open: 300,
|
|
6347
6348
|
close: 150
|
|
@@ -6371,9 +6372,9 @@ const Wt = (h) => {
|
|
|
6371
6372
|
G(), K.error && L("error"), K.success && L("success"), z(K.message);
|
|
6372
6373
|
}, ne = (re) => {
|
|
6373
6374
|
const K = U[re];
|
|
6374
|
-
y(K.value), b(null),
|
|
6375
|
+
y(K.value), b(null), E(!1), l && l(K), g && ce(K);
|
|
6375
6376
|
}, te = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${H}__trigger-icon` }), me = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${H}__checked-icon` }), ue = U.map((re, K) => /* @__PURE__ */ e.createElement(
|
|
6376
|
-
|
|
6377
|
+
jt,
|
|
6377
6378
|
ve(N({
|
|
6378
6379
|
key: re
|
|
6379
6380
|
}, F({
|
|
@@ -6393,10 +6394,10 @@ const Wt = (h) => {
|
|
|
6393
6394
|
active: p === K
|
|
6394
6395
|
}),
|
|
6395
6396
|
re.label,
|
|
6396
|
-
|
|
6397
|
+
C === re.value && me
|
|
6397
6398
|
)), J = w || i, fe = c ? `${c / 16}rem` : null, _e = c ? { width: fe } : null;
|
|
6398
6399
|
return /* @__PURE__ */ e.createElement(
|
|
6399
|
-
|
|
6400
|
+
De,
|
|
6400
6401
|
N({
|
|
6401
6402
|
className: d,
|
|
6402
6403
|
disabled: s,
|
|
@@ -6426,13 +6427,13 @@ const Wt = (h) => {
|
|
|
6426
6427
|
}, O({
|
|
6427
6428
|
"aria-autocomplete": "list",
|
|
6428
6429
|
disabled: s,
|
|
6429
|
-
onClick: () => s ? null :
|
|
6430
|
+
onClick: () => s ? null : E(!f),
|
|
6430
6431
|
onChange: ne,
|
|
6431
6432
|
onKeyDown: (re) => {
|
|
6432
|
-
(re.key === "Enter" || re.key === " ") &&
|
|
6433
|
+
(re.key === "Enter" || re.key === " ") && E(!0);
|
|
6433
6434
|
}
|
|
6434
6435
|
})),
|
|
6435
|
-
/* @__PURE__ */ e.createElement("span", null, T(
|
|
6436
|
+
/* @__PURE__ */ e.createElement("span", null, T(C) || m),
|
|
6436
6437
|
te
|
|
6437
6438
|
),
|
|
6438
6439
|
Z && /* @__PURE__ */ e.createElement(
|
|
@@ -6449,7 +6450,8 @@ const Wt = (h) => {
|
|
|
6449
6450
|
)
|
|
6450
6451
|
);
|
|
6451
6452
|
};
|
|
6452
|
-
|
|
6453
|
+
Ct.displayName = "Select";
|
|
6454
|
+
Ct.propTypes = {
|
|
6453
6455
|
/**
|
|
6454
6456
|
* Is the field disabled?
|
|
6455
6457
|
*/
|
|
@@ -6531,7 +6533,7 @@ Wt.propTypes = {
|
|
|
6531
6533
|
*/
|
|
6532
6534
|
className: t.string
|
|
6533
6535
|
};
|
|
6534
|
-
const
|
|
6536
|
+
const qn = {
|
|
6535
6537
|
left: {
|
|
6536
6538
|
title: "Go to previous page",
|
|
6537
6539
|
rel: "prev",
|
|
@@ -6546,14 +6548,14 @@ const Pn = {
|
|
|
6546
6548
|
icon: "arrowRight",
|
|
6547
6549
|
keyModifier: (s) => s + 1
|
|
6548
6550
|
}
|
|
6549
|
-
},
|
|
6551
|
+
}, Ze = (c) => {
|
|
6550
6552
|
var r = c, { arrowText: s = null, direction: n } = r, a = S(r, ["arrowText", "direction"]);
|
|
6551
|
-
const { buttonCallback: i, currentKey: l, setCurrentKey: o, setDirection: u, pages: m } = Ne(
|
|
6552
|
-
(f,
|
|
6553
|
-
i && (f.preventDefault(), i(
|
|
6553
|
+
const { buttonCallback: i, currentKey: l, setCurrentKey: o, setDirection: u, pages: m } = Ne(lt), _ = cs(
|
|
6554
|
+
(f, E) => {
|
|
6555
|
+
i && (f.preventDefault(), i(E));
|
|
6554
6556
|
},
|
|
6555
6557
|
[i, l]
|
|
6556
|
-
), { title: g, rel: d, srText: v, icon: h, keyModifier: $ } =
|
|
6558
|
+
), { title: g, rel: d, srText: v, icon: h, keyModifier: $ } = qn[n];
|
|
6557
6559
|
return /* @__PURE__ */ e.createElement(
|
|
6558
6560
|
"li",
|
|
6559
6561
|
N({
|
|
@@ -6576,11 +6578,11 @@ const Pn = {
|
|
|
6576
6578
|
)
|
|
6577
6579
|
);
|
|
6578
6580
|
};
|
|
6579
|
-
|
|
6581
|
+
Ze.propTypes = {
|
|
6580
6582
|
arrowText: t.string,
|
|
6581
6583
|
direction: t.oneOf(["right", "left"])
|
|
6582
6584
|
};
|
|
6583
|
-
const
|
|
6585
|
+
const Pn = (n) => {
|
|
6584
6586
|
var s = S(n, []);
|
|
6585
6587
|
const {
|
|
6586
6588
|
buttonCallback: a,
|
|
@@ -6589,7 +6591,7 @@ const jn = (n) => {
|
|
|
6589
6591
|
headingId: i,
|
|
6590
6592
|
itemLength: l,
|
|
6591
6593
|
pages: o
|
|
6592
|
-
} = Ne(
|
|
6594
|
+
} = Ne(lt), u = [];
|
|
6593
6595
|
return o.forEach((m, _) => {
|
|
6594
6596
|
let g = { label: `Page ${_ + 1}`, value: `${_ + 1}` };
|
|
6595
6597
|
u.push(g);
|
|
@@ -6601,8 +6603,8 @@ const jn = (n) => {
|
|
|
6601
6603
|
"aria-labelledby": i
|
|
6602
6604
|
}, s),
|
|
6603
6605
|
/* @__PURE__ */ e.createElement("div", { id: i, className: "visually-hidden" }, "Pagination"),
|
|
6604
|
-
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, c > 0 ? /* @__PURE__ */ e.createElement(
|
|
6605
|
-
|
|
6606
|
+
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, c > 0 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
6607
|
+
Ct,
|
|
6606
6608
|
{
|
|
6607
6609
|
label: "Page select dropdown",
|
|
6608
6610
|
selectOptions: u,
|
|
@@ -6611,10 +6613,10 @@ const jn = (n) => {
|
|
|
6611
6613
|
console.log(m), r(parseInt(m - 1)), a(parseInt(m - 1));
|
|
6612
6614
|
}
|
|
6613
6615
|
}
|
|
6614
|
-
)), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `of ${l}`), c < l - 1 ? /* @__PURE__ */ e.createElement(
|
|
6616
|
+
)), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `of ${l}`), c < l - 1 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Next", direction: "right" }) : null)
|
|
6615
6617
|
);
|
|
6616
6618
|
};
|
|
6617
|
-
function
|
|
6619
|
+
function jn(s, n, a, c, r, i) {
|
|
6618
6620
|
if (c > 3) {
|
|
6619
6621
|
let l = [];
|
|
6620
6622
|
const o = n.find((u) => u.key == c);
|
|
@@ -6724,7 +6726,7 @@ const Hs = (c) => {
|
|
|
6724
6726
|
setCurrentKey: o,
|
|
6725
6727
|
render: u = null,
|
|
6726
6728
|
paginationItemClickHandler: m
|
|
6727
|
-
} = Ne(
|
|
6729
|
+
} = Ne(lt);
|
|
6728
6730
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, n.key || n.key === 0 ? /* @__PURE__ */ e.createElement(
|
|
6729
6731
|
"span",
|
|
6730
6732
|
N({
|
|
@@ -6751,7 +6753,7 @@ Hs.propTypes = {
|
|
|
6751
6753
|
page: t.oneOfType([t.object, t.string]).isRequired,
|
|
6752
6754
|
render: t.func
|
|
6753
6755
|
};
|
|
6754
|
-
const
|
|
6756
|
+
const Bn = (n) => {
|
|
6755
6757
|
var s = S(n, []);
|
|
6756
6758
|
const {
|
|
6757
6759
|
buttonCallback: a,
|
|
@@ -6763,14 +6765,14 @@ const Fn = (n) => {
|
|
|
6763
6765
|
itemLength: u,
|
|
6764
6766
|
pageDirection: m,
|
|
6765
6767
|
pages: _
|
|
6766
|
-
} = Ne(
|
|
6768
|
+
} = Ne(lt), g = cs(
|
|
6767
6769
|
(v, h) => {
|
|
6768
6770
|
a && (v.preventDefault(), a(h));
|
|
6769
6771
|
},
|
|
6770
6772
|
[a, c]
|
|
6771
6773
|
), [d] = R(_);
|
|
6772
6774
|
return se(() => {
|
|
6773
|
-
|
|
6775
|
+
jn(
|
|
6774
6776
|
_,
|
|
6775
6777
|
i,
|
|
6776
6778
|
l,
|
|
@@ -6795,7 +6797,7 @@ const Fn = (n) => {
|
|
|
6795
6797
|
}
|
|
6796
6798
|
},
|
|
6797
6799
|
"First"
|
|
6798
|
-
)), /* @__PURE__ */ e.createElement(
|
|
6800
|
+
)), /* @__PURE__ */ e.createElement(Ze, { direction: "left" })) : null, i.map((v, h) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${h}` }, /* @__PURE__ */ e.createElement(Hs, N({ index: h, page: v }, s)))), c < u - 1 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ze, { direction: "right" }), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__item pds-pager__item--last" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Last Page"), /* @__PURE__ */ e.createElement(
|
|
6799
6801
|
"a",
|
|
6800
6802
|
{
|
|
6801
6803
|
href: d[d.length - 1].link,
|
|
@@ -6806,9 +6808,9 @@ const Fn = (n) => {
|
|
|
6806
6808
|
"Last"
|
|
6807
6809
|
))) : null)
|
|
6808
6810
|
));
|
|
6809
|
-
},
|
|
6811
|
+
}, Fn = (n) => {
|
|
6810
6812
|
var s = S(n, []);
|
|
6811
|
-
const { currentKey: a, headingId: c, itemLength: r } = Ne(
|
|
6813
|
+
const { currentKey: a, headingId: c, itemLength: r } = Ne(lt);
|
|
6812
6814
|
return /* @__PURE__ */ e.createElement(
|
|
6813
6815
|
"nav",
|
|
6814
6816
|
N({
|
|
@@ -6817,18 +6819,18 @@ const Fn = (n) => {
|
|
|
6817
6819
|
"aria-labelledby": c
|
|
6818
6820
|
}, s),
|
|
6819
6821
|
/* @__PURE__ */ e.createElement("div", { id: c, className: "visually-hidden" }, "Pagination"),
|
|
6820
|
-
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, a > 0 ? /* @__PURE__ */ e.createElement(
|
|
6822
|
+
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, a > 0 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `${a + 1} of ${r}`), a < r - 1 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Next", direction: "right" }) : null)
|
|
6821
6823
|
);
|
|
6822
|
-
},
|
|
6824
|
+
}, Wn = (s, n, ...a) => {
|
|
6823
6825
|
switch (s) {
|
|
6824
6826
|
case "basic":
|
|
6825
|
-
return /* @__PURE__ */ e.createElement(
|
|
6827
|
+
return /* @__PURE__ */ e.createElement(Bn, N({}, a));
|
|
6826
6828
|
case "mini":
|
|
6827
|
-
return /* @__PURE__ */ e.createElement(
|
|
6829
|
+
return /* @__PURE__ */ e.createElement(Fn, N({ location: n }, a));
|
|
6828
6830
|
case "advanced":
|
|
6829
|
-
return /* @__PURE__ */ e.createElement(
|
|
6831
|
+
return /* @__PURE__ */ e.createElement(Pn, N({}, a));
|
|
6830
6832
|
}
|
|
6831
|
-
},
|
|
6833
|
+
}, Zn = (o) => {
|
|
6832
6834
|
var u = o, {
|
|
6833
6835
|
buttonCallback: s = null,
|
|
6834
6836
|
headingId: n = "pager-heading",
|
|
@@ -6853,10 +6855,10 @@ const Fn = (n) => {
|
|
|
6853
6855
|
buttonCallback: s,
|
|
6854
6856
|
headingId: n
|
|
6855
6857
|
}, l),
|
|
6856
|
-
|
|
6858
|
+
Wn(i)
|
|
6857
6859
|
);
|
|
6858
6860
|
};
|
|
6859
|
-
|
|
6861
|
+
Zn.propTypes = {
|
|
6860
6862
|
/**
|
|
6861
6863
|
* Optional function for the navigation buttons
|
|
6862
6864
|
*/
|
|
@@ -6886,7 +6888,7 @@ Un.propTypes = {
|
|
|
6886
6888
|
*/
|
|
6887
6889
|
className: t.string
|
|
6888
6890
|
};
|
|
6889
|
-
const
|
|
6891
|
+
const Un = {
|
|
6890
6892
|
included: "circleCheck",
|
|
6891
6893
|
notIncluded: "xmark",
|
|
6892
6894
|
addon: "circlePlusOutline"
|
|
@@ -6923,13 +6925,13 @@ const Gn = {
|
|
|
6923
6925
|
key: g,
|
|
6924
6926
|
className: `${m}__list-item ${m}__list-item--${_.type}`
|
|
6925
6927
|
},
|
|
6926
|
-
/* @__PURE__ */ e.createElement(A, { iconName:
|
|
6928
|
+
/* @__PURE__ */ e.createElement(A, { iconName: Un[_.type], iconSize: "md" }),
|
|
6927
6929
|
c && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[_.type], ":", " "),
|
|
6928
6930
|
_.text
|
|
6929
6931
|
))),
|
|
6930
6932
|
a && /* @__PURE__ */ e.createElement("div", { className: `${m}__more-link` }, a)
|
|
6931
6933
|
);
|
|
6932
|
-
},
|
|
6934
|
+
}, Gn = (d) => {
|
|
6933
6935
|
var v = d, {
|
|
6934
6936
|
actionPrimary: s,
|
|
6935
6937
|
actionSecondary: n,
|
|
@@ -6958,7 +6960,7 @@ const Gn = {
|
|
|
6958
6960
|
"statusBadgeType",
|
|
6959
6961
|
"className"
|
|
6960
6962
|
]);
|
|
6961
|
-
const h = "pds-pricing-card", $ = `${h}-container`, f = a ? `${$}--with-list` : null,
|
|
6963
|
+
const h = "pds-pricing-card", $ = `${h}-container`, f = a ? `${$}--with-list` : null, E = m ? `${h}--${m}` : null, p = (M) => M.toLowerCase().replace(/\s/g, "-"), b = l && l.length > 1, [C, y] = R(
|
|
6962
6964
|
p(l[0].label)
|
|
6963
6965
|
), [w, z] = R(
|
|
6964
6966
|
s.label
|
|
@@ -6981,7 +6983,7 @@ const Gn = {
|
|
|
6981
6983
|
renderTypeLabels: !1
|
|
6982
6984
|
}
|
|
6983
6985
|
)), b && (x = l.map((M) => {
|
|
6984
|
-
const W =
|
|
6986
|
+
const W = C === p(M.label) ? null : `${h}__pricing-data--hide`;
|
|
6985
6987
|
return /* @__PURE__ */ e.createElement(
|
|
6986
6988
|
"div",
|
|
6987
6989
|
{
|
|
@@ -7001,7 +7003,7 @@ const Gn = {
|
|
|
7001
7003
|
), M.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${h}__savings-details` }, M.savingsDetails))
|
|
7002
7004
|
);
|
|
7003
7005
|
}), L = l.map((M) => {
|
|
7004
|
-
const W =
|
|
7006
|
+
const W = C === p(M.label) ? null : `${h}__list--hide`;
|
|
7005
7007
|
return /* @__PURE__ */ e.createElement(
|
|
7006
7008
|
ss,
|
|
7007
7009
|
{
|
|
@@ -7021,7 +7023,7 @@ const Gn = {
|
|
|
7021
7023
|
};
|
|
7022
7024
|
let H = null;
|
|
7023
7025
|
b && (H = /* @__PURE__ */ e.createElement(
|
|
7024
|
-
|
|
7026
|
+
Ct,
|
|
7025
7027
|
{
|
|
7026
7028
|
id: "plan-select",
|
|
7027
7029
|
className: `${h}__select`,
|
|
@@ -7039,7 +7041,7 @@ const Gn = {
|
|
|
7039
7041
|
));
|
|
7040
7042
|
let I = null;
|
|
7041
7043
|
s && (s.type === "button" && (I = /* @__PURE__ */ e.createElement(
|
|
7042
|
-
|
|
7044
|
+
Fe,
|
|
7043
7045
|
{
|
|
7044
7046
|
variant: s.variant,
|
|
7045
7047
|
label: w,
|
|
@@ -7047,7 +7049,7 @@ const Gn = {
|
|
|
7047
7049
|
disabled: s.disabled
|
|
7048
7050
|
}
|
|
7049
7051
|
)), s.type === "link" && (I = /* @__PURE__ */ e.createElement(
|
|
7050
|
-
|
|
7052
|
+
We,
|
|
7051
7053
|
{
|
|
7052
7054
|
variant: s.variant,
|
|
7053
7055
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: s.linkUrl, target: s.linkTarget }, s.label)
|
|
@@ -7055,14 +7057,14 @@ const Gn = {
|
|
|
7055
7057
|
)));
|
|
7056
7058
|
let k = null;
|
|
7057
7059
|
return n && (n.type === "button" && (k = /* @__PURE__ */ e.createElement(
|
|
7058
|
-
|
|
7060
|
+
Fe,
|
|
7059
7061
|
{
|
|
7060
7062
|
variant: "secondary",
|
|
7061
7063
|
label: n.label,
|
|
7062
7064
|
onClick: n.buttonAction
|
|
7063
7065
|
}
|
|
7064
7066
|
)), n.type === "link" && (k = /* @__PURE__ */ e.createElement(
|
|
7065
|
-
|
|
7067
|
+
We,
|
|
7066
7068
|
{
|
|
7067
7069
|
variant: "secondary",
|
|
7068
7070
|
linkContent: /* @__PURE__ */ e.createElement(
|
|
@@ -7082,10 +7084,10 @@ const Gn = {
|
|
|
7082
7084
|
/* @__PURE__ */ e.createElement(
|
|
7083
7085
|
"div",
|
|
7084
7086
|
{
|
|
7085
|
-
className: [h,
|
|
7087
|
+
className: [h, E].join(" ").trim().replace(/\s+/g, " ")
|
|
7086
7088
|
},
|
|
7087
7089
|
m && /* @__PURE__ */ e.createElement(
|
|
7088
|
-
|
|
7090
|
+
Wt,
|
|
7089
7091
|
{
|
|
7090
7092
|
className: `${h}__status-badge`,
|
|
7091
7093
|
type: m,
|
|
@@ -7099,7 +7101,7 @@ const Gn = {
|
|
|
7099
7101
|
a && L
|
|
7100
7102
|
);
|
|
7101
7103
|
};
|
|
7102
|
-
|
|
7104
|
+
Gn.propTypes = {
|
|
7103
7105
|
/**
|
|
7104
7106
|
* Primary card action
|
|
7105
7107
|
*/
|
|
@@ -7189,7 +7191,7 @@ const ns = {
|
|
|
7189
7191
|
success: "--pds-color-semantic-success-foreground",
|
|
7190
7192
|
warning: "--pds-color-semantic-warning-foreground",
|
|
7191
7193
|
critical: "--pds-color-semantic-critical-foreground"
|
|
7192
|
-
},
|
|
7194
|
+
}, Kn = (g) => {
|
|
7193
7195
|
var d = g, {
|
|
7194
7196
|
colorBreakpoints: s = [
|
|
7195
7197
|
{ colorType: "info", percentage: 0 },
|
|
@@ -7216,20 +7218,20 @@ const ns = {
|
|
|
7216
7218
|
"size",
|
|
7217
7219
|
"className"
|
|
7218
7220
|
]);
|
|
7219
|
-
const v = n || xe(), h = "pds-progress-bar", $ = l ? `${h}__label` : "visually-hidden", f = `${h}__track ${h}__track--${u}`,
|
|
7221
|
+
const v = n || xe(), h = "pds-progress-bar", $ = l ? `${h}__label` : "visually-hidden", f = `${h}__track ${h}__track--${u}`, E = i > 100 ? 100 : i;
|
|
7220
7222
|
let p;
|
|
7221
7223
|
s.forEach((w) => {
|
|
7222
7224
|
i >= w.percentage && (p = w.colorType);
|
|
7223
7225
|
});
|
|
7224
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: `${h}__message` }, c),
|
|
7226
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: `${h}__message` }, c), C = c && r === "above", y = c && r === "below";
|
|
7225
7227
|
return /* @__PURE__ */ e.createElement(
|
|
7226
7228
|
"div",
|
|
7227
7229
|
N({
|
|
7228
7230
|
className: [h, m].join(" ").trim().replace(/\s+/g, " "),
|
|
7229
|
-
style: { "--bar-percentage": `${
|
|
7231
|
+
style: { "--bar-percentage": `${E}%` }
|
|
7230
7232
|
}, _),
|
|
7231
7233
|
/* @__PURE__ */ e.createElement("div", { id: v, className: $ }, a),
|
|
7232
|
-
(
|
|
7234
|
+
(C || o) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, C && b, o && /* @__PURE__ */ e.createElement(
|
|
7233
7235
|
"div",
|
|
7234
7236
|
{
|
|
7235
7237
|
className: `${h}__percentage`,
|
|
@@ -7245,7 +7247,7 @@ const ns = {
|
|
|
7245
7247
|
{
|
|
7246
7248
|
role: "progressbar",
|
|
7247
7249
|
"aria-labelledby": v,
|
|
7248
|
-
"aria-valuenow":
|
|
7250
|
+
"aria-valuenow": E,
|
|
7249
7251
|
className: f
|
|
7250
7252
|
},
|
|
7251
7253
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7253,7 +7255,7 @@ const ns = {
|
|
|
7253
7255
|
{
|
|
7254
7256
|
className: `${h}__bar`,
|
|
7255
7257
|
style: {
|
|
7256
|
-
width: `${
|
|
7258
|
+
width: `${E}%`,
|
|
7257
7259
|
backgroundColor: `var(${ns[p]})`
|
|
7258
7260
|
}
|
|
7259
7261
|
}
|
|
@@ -7262,7 +7264,7 @@ const ns = {
|
|
|
7262
7264
|
y && b
|
|
7263
7265
|
);
|
|
7264
7266
|
};
|
|
7265
|
-
|
|
7267
|
+
Kn.propTypes = {
|
|
7266
7268
|
/**
|
|
7267
7269
|
* Array of color breakpoints. Each breakpoint should have a `colorType` and `percentage` value.
|
|
7268
7270
|
*/
|
|
@@ -7315,7 +7317,7 @@ Yn.propTypes = {
|
|
|
7315
7317
|
*/
|
|
7316
7318
|
className: t.string
|
|
7317
7319
|
};
|
|
7318
|
-
const
|
|
7320
|
+
const Yn = 3.815, Xn = 4.678, Qn = 5.96, Ls = (m) => {
|
|
7319
7321
|
var _ = m, {
|
|
7320
7322
|
id: s,
|
|
7321
7323
|
innerLabel: n,
|
|
@@ -7336,9 +7338,9 @@ const Xn = 3.815, Qn = 4.678, Jn = 5.96, Ls = (m) => {
|
|
|
7336
7338
|
"className"
|
|
7337
7339
|
]);
|
|
7338
7340
|
const g = s || xe(), d = "pds-progress-ring", v = r ? `${d}__label` : "visually-hidden", h = `${d}__loading-text ${d}__loading-text--${l}`, $ = (z) => z * 16;
|
|
7339
|
-
let f = $(
|
|
7340
|
-
l === "sm" && (f = $(
|
|
7341
|
-
const p = f / 2 -
|
|
7341
|
+
let f = $(Xn), E = 7;
|
|
7342
|
+
l === "sm" && (f = $(Yn), E = E / 1.25), l === "lg" && (f = $(Qn), E = E * 1.25);
|
|
7343
|
+
const p = f / 2 - E / 2, b = `${p / 100}rem`, C = 2 * Math.PI * p, y = C - C * c / 100;
|
|
7342
7344
|
let w;
|
|
7343
7345
|
return n ? w = n : i ? w = `${c}%` : w = "", /* @__PURE__ */ e.createElement(
|
|
7344
7346
|
"div",
|
|
@@ -7346,7 +7348,7 @@ const Xn = 3.815, Qn = 4.678, Jn = 5.96, Ls = (m) => {
|
|
|
7346
7348
|
className: [d, o].join(" ").trim().replace(/\s+/g, " "),
|
|
7347
7349
|
style: {
|
|
7348
7350
|
"--ring-stroke-dashoffset": y,
|
|
7349
|
-
"--ring-stroke-dasharray":
|
|
7351
|
+
"--ring-stroke-dasharray": C
|
|
7350
7352
|
}
|
|
7351
7353
|
}, u),
|
|
7352
7354
|
/* @__PURE__ */ e.createElement("div", { id: g, className: v }, a),
|
|
@@ -7372,7 +7374,7 @@ const Xn = 3.815, Qn = 4.678, Jn = 5.96, Ls = (m) => {
|
|
|
7372
7374
|
cx: f / 2,
|
|
7373
7375
|
cy: f / 2,
|
|
7374
7376
|
r: p,
|
|
7375
|
-
strokeWidth:
|
|
7377
|
+
strokeWidth: E
|
|
7376
7378
|
}
|
|
7377
7379
|
),
|
|
7378
7380
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7382,8 +7384,8 @@ const Xn = 3.815, Qn = 4.678, Jn = 5.96, Ls = (m) => {
|
|
|
7382
7384
|
cx: f / 2,
|
|
7383
7385
|
cy: f / 2,
|
|
7384
7386
|
r: p,
|
|
7385
|
-
strokeWidth:
|
|
7386
|
-
strokeDasharray:
|
|
7387
|
+
strokeWidth: E,
|
|
7388
|
+
strokeDasharray: C,
|
|
7387
7389
|
strokeDashoffset: y,
|
|
7388
7390
|
transform: `rotate(-90 ${f / 2} ${f / 2})`
|
|
7389
7391
|
}
|
|
@@ -7438,7 +7440,7 @@ Ls.propTypes = {
|
|
|
7438
7440
|
*/
|
|
7439
7441
|
className: t.string
|
|
7440
7442
|
};
|
|
7441
|
-
const
|
|
7443
|
+
const Jn = (g) => {
|
|
7442
7444
|
var d = g, {
|
|
7443
7445
|
disabled: s = !1,
|
|
7444
7446
|
id: n,
|
|
@@ -7462,11 +7464,11 @@ const e1 = (g) => {
|
|
|
7462
7464
|
"required",
|
|
7463
7465
|
"className"
|
|
7464
7466
|
]);
|
|
7465
|
-
const v = "pds-radio-group", [h, $] = R(a), f = (
|
|
7466
|
-
$(
|
|
7467
|
+
const v = "pds-radio-group", [h, $] = R(a), f = (E) => {
|
|
7468
|
+
$(E.target.value), l && l(E.target.value);
|
|
7467
7469
|
};
|
|
7468
7470
|
return /* @__PURE__ */ e.createElement(
|
|
7469
|
-
|
|
7471
|
+
De,
|
|
7470
7472
|
N({
|
|
7471
7473
|
className: m,
|
|
7472
7474
|
disabled: s,
|
|
@@ -7478,7 +7480,7 @@ const e1 = (g) => {
|
|
|
7478
7480
|
message: i,
|
|
7479
7481
|
required: u
|
|
7480
7482
|
}, _),
|
|
7481
|
-
/* @__PURE__ */ e.createElement("div", { className: [v].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${v}__options` }, o.map((
|
|
7483
|
+
/* @__PURE__ */ e.createElement("div", { className: [v].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${v}__options` }, o.map((E, p) => /* @__PURE__ */ e.createElement(
|
|
7482
7484
|
"div",
|
|
7483
7485
|
{
|
|
7484
7486
|
className: `${v}__option`,
|
|
@@ -7490,18 +7492,18 @@ const e1 = (g) => {
|
|
|
7490
7492
|
type: "radio",
|
|
7491
7493
|
id: `${n}-option-${p}`,
|
|
7492
7494
|
name: n,
|
|
7493
|
-
value:
|
|
7495
|
+
value: E.value,
|
|
7494
7496
|
required: u,
|
|
7495
|
-
disabled: s ||
|
|
7497
|
+
disabled: s || E.disabled,
|
|
7496
7498
|
onClick: f,
|
|
7497
|
-
defaultChecked: h ===
|
|
7499
|
+
defaultChecked: h === E.value
|
|
7498
7500
|
}
|
|
7499
7501
|
),
|
|
7500
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${p}` },
|
|
7502
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${p}` }, E.label)
|
|
7501
7503
|
))))
|
|
7502
7504
|
);
|
|
7503
7505
|
};
|
|
7504
|
-
|
|
7506
|
+
Jn.propTypes = {
|
|
7505
7507
|
/**
|
|
7506
7508
|
* Is the radio group field disabled?
|
|
7507
7509
|
*/
|
|
@@ -7563,7 +7565,7 @@ e1.propTypes = {
|
|
|
7563
7565
|
*/
|
|
7564
7566
|
className: t.string
|
|
7565
7567
|
};
|
|
7566
|
-
const
|
|
7568
|
+
const e1 = (u) => {
|
|
7567
7569
|
var m = u, {
|
|
7568
7570
|
ariaLabel: s = "Secondary navigation",
|
|
7569
7571
|
headingText: n,
|
|
@@ -7591,16 +7593,16 @@ const t1 = (u) => {
|
|
|
7591
7593
|
const d = () => {
|
|
7592
7594
|
g(window.innerWidth);
|
|
7593
7595
|
}, v = _ <= r, h = "pds-side-nav", $ = (b) => {
|
|
7594
|
-
const
|
|
7595
|
-
|
|
7596
|
+
const C = b.target;
|
|
7597
|
+
C.classList.toggle(`${h}__toggle--expanded`), C.setAttribute(
|
|
7596
7598
|
"aria-expanded",
|
|
7597
|
-
|
|
7598
|
-
),
|
|
7599
|
+
C.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7600
|
+
), C.parentElement.nextElementSibling.classList.toggle(`${h}__menu--expanded`), C.parentElement.classList.toggle(`${h}__item-inner--expanded`);
|
|
7599
7601
|
}, f = (b) => {
|
|
7600
7602
|
if (b.isActive)
|
|
7601
7603
|
return !0;
|
|
7602
|
-
const
|
|
7603
|
-
if (
|
|
7604
|
+
const C = b.linkContent;
|
|
7605
|
+
if (C.props.className && C.props.className.includes("pds-isActive"))
|
|
7604
7606
|
return !0;
|
|
7605
7607
|
if (b.links) {
|
|
7606
7608
|
for (let y = 0; y < b.links.length; y++)
|
|
@@ -7608,17 +7610,17 @@ const t1 = (u) => {
|
|
|
7608
7610
|
return !0;
|
|
7609
7611
|
}
|
|
7610
7612
|
return !1;
|
|
7611
|
-
},
|
|
7613
|
+
}, E = /* @__PURE__ */ e.createElement(
|
|
7612
7614
|
Et,
|
|
7613
7615
|
{
|
|
7614
7616
|
menuItems: c,
|
|
7615
7617
|
headingText: n,
|
|
7616
7618
|
selectTextFallback: i
|
|
7617
7619
|
}
|
|
7618
|
-
), p = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${h}__heading` }, n), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, c.map((b,
|
|
7620
|
+
), p = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${h}__heading` }, n), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, c.map((b, C) => /* @__PURE__ */ e.createElement(
|
|
7619
7621
|
"li",
|
|
7620
7622
|
{
|
|
7621
|
-
key:
|
|
7623
|
+
key: C,
|
|
7622
7624
|
className: `${h}__item ${h}__item--top-level ${b.links ? `${h}__item--has-children` : `${h}__item--has-link`} ${f(b) ? `${h}__item--active` : ""}`
|
|
7623
7625
|
},
|
|
7624
7626
|
b.links ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${h}__item-inner` }, b.label ? "" : b.linkContent, /* @__PURE__ */ e.createElement(
|
|
@@ -7652,10 +7654,10 @@ const t1 = (u) => {
|
|
|
7652
7654
|
"aria-label": s,
|
|
7653
7655
|
className: [h, l].join(" ").trim().replace(/\s+/g, " ")
|
|
7654
7656
|
}, o),
|
|
7655
|
-
v ?
|
|
7657
|
+
v ? E : p
|
|
7656
7658
|
);
|
|
7657
7659
|
};
|
|
7658
|
-
|
|
7660
|
+
e1.propTypes = {
|
|
7659
7661
|
/**
|
|
7660
7662
|
* Aria label for the navigation.
|
|
7661
7663
|
*/
|
|
@@ -7688,7 +7690,7 @@ t1.propTypes = {
|
|
|
7688
7690
|
*/
|
|
7689
7691
|
className: t.string
|
|
7690
7692
|
};
|
|
7691
|
-
const
|
|
7693
|
+
const t1 = (u) => {
|
|
7692
7694
|
var m = u, {
|
|
7693
7695
|
ariaLabel: s = "Secondary navigation",
|
|
7694
7696
|
headingText: n,
|
|
@@ -7716,18 +7718,18 @@ const s1 = (u) => {
|
|
|
7716
7718
|
const d = () => {
|
|
7717
7719
|
g(window.innerWidth);
|
|
7718
7720
|
}, v = _ <= r, h = "pds-side-nav-compact", $ = (b) => {
|
|
7719
|
-
const
|
|
7720
|
-
|
|
7721
|
+
const C = b.target;
|
|
7722
|
+
C.classList.toggle(`${h}__toggle--expanded`), C.setAttribute(
|
|
7721
7723
|
"aria-expanded",
|
|
7722
|
-
|
|
7724
|
+
C.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7723
7725
|
);
|
|
7724
|
-
const y =
|
|
7726
|
+
const y = C.nextElementSibling.nextElementSibling;
|
|
7725
7727
|
console.log(y), y.classList.toggle(`${h}__menu--expanded`);
|
|
7726
7728
|
}, f = (b) => {
|
|
7727
7729
|
if (b.isActive)
|
|
7728
7730
|
return !0;
|
|
7729
|
-
const
|
|
7730
|
-
if (
|
|
7731
|
+
const C = b.linkContent;
|
|
7732
|
+
if (C.props.className && C.props.className.includes("pds-isActive"))
|
|
7731
7733
|
return !0;
|
|
7732
7734
|
if (b.links) {
|
|
7733
7735
|
for (let y = 0; y < b.links.length; y++)
|
|
@@ -7735,17 +7737,17 @@ const s1 = (u) => {
|
|
|
7735
7737
|
return !0;
|
|
7736
7738
|
}
|
|
7737
7739
|
return !1;
|
|
7738
|
-
},
|
|
7740
|
+
}, E = /* @__PURE__ */ e.createElement(
|
|
7739
7741
|
Et,
|
|
7740
7742
|
{
|
|
7741
7743
|
menuItems: c,
|
|
7742
7744
|
headingText: n,
|
|
7743
7745
|
selectTextFallback: i
|
|
7744
7746
|
}
|
|
7745
|
-
), p = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${h}__heading` }, n), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, c.map((b,
|
|
7747
|
+
), p = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${h}__heading` }, n), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, c.map((b, C) => /* @__PURE__ */ e.createElement(
|
|
7746
7748
|
"li",
|
|
7747
7749
|
{
|
|
7748
|
-
key:
|
|
7750
|
+
key: C,
|
|
7749
7751
|
className: `${h}__item ${h}__item--top-level ${b.links ? `${h}__item--has-children` : ""} ${f(b) ? `${h}__item--active` : ""}`
|
|
7750
7752
|
},
|
|
7751
7753
|
b.links ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -7808,10 +7810,10 @@ const s1 = (u) => {
|
|
|
7808
7810
|
"aria-label": s,
|
|
7809
7811
|
className: [h, l].join(" ").trim().replace(/\s+/g, " ")
|
|
7810
7812
|
}, o),
|
|
7811
|
-
v ?
|
|
7813
|
+
v ? E : p
|
|
7812
7814
|
);
|
|
7813
7815
|
};
|
|
7814
|
-
|
|
7816
|
+
t1.propTypes = {
|
|
7815
7817
|
/**
|
|
7816
7818
|
* Aria label for the navigation.
|
|
7817
7819
|
*/
|
|
@@ -7844,7 +7846,7 @@ s1.propTypes = {
|
|
|
7844
7846
|
*/
|
|
7845
7847
|
className: t.string
|
|
7846
7848
|
};
|
|
7847
|
-
const
|
|
7849
|
+
const s1 = (m) => {
|
|
7848
7850
|
var _ = m, {
|
|
7849
7851
|
headingLevel: s = "h3",
|
|
7850
7852
|
gotoText: n = "Go to",
|
|
@@ -7868,7 +7870,7 @@ const n1 = (m) => {
|
|
|
7868
7870
|
let v = "";
|
|
7869
7871
|
l === "Active" && (v = "success"), l === "Frozen" && (v = "frozen");
|
|
7870
7872
|
const h = /* @__PURE__ */ e.createElement(
|
|
7871
|
-
|
|
7873
|
+
Wt,
|
|
7872
7874
|
{
|
|
7873
7875
|
label: l,
|
|
7874
7876
|
statusType: v,
|
|
@@ -7885,7 +7887,7 @@ const n1 = (m) => {
|
|
|
7885
7887
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__heading` }, /* @__PURE__ */ e.createElement(d, { className: `${g}__site-name pds-ts-l`, title: r }, r), h), /* @__PURE__ */ e.createElement("div", { className: `${g}__plan` }, i))
|
|
7886
7888
|
);
|
|
7887
7889
|
};
|
|
7888
|
-
|
|
7890
|
+
s1.propTypes = {
|
|
7889
7891
|
/**
|
|
7890
7892
|
* Heading level or `span`.
|
|
7891
7893
|
*/
|
|
@@ -7919,7 +7921,7 @@ n1.propTypes = {
|
|
|
7919
7921
|
*/
|
|
7920
7922
|
className: t.string
|
|
7921
7923
|
};
|
|
7922
|
-
const
|
|
7924
|
+
const n1 = (i) => {
|
|
7923
7925
|
var l = i, {
|
|
7924
7926
|
containerWidth: s = "standard",
|
|
7925
7927
|
children: n,
|
|
@@ -7947,7 +7949,7 @@ const a1 = (i) => {
|
|
|
7947
7949
|
/* @__PURE__ */ e.createElement("div", { className: u }, n && /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${o}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__copyright` }, "© ", m, " Pantheon Systems, Inc."), _ && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), g && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), d && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), $ && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
7948
7950
|
);
|
|
7949
7951
|
};
|
|
7950
|
-
|
|
7952
|
+
n1.propTypes = {
|
|
7951
7953
|
/**
|
|
7952
7954
|
* PDS container width.
|
|
7953
7955
|
*/
|
|
@@ -7974,7 +7976,7 @@ a1.propTypes = {
|
|
|
7974
7976
|
*/
|
|
7975
7977
|
className: t.string
|
|
7976
7978
|
};
|
|
7977
|
-
const
|
|
7979
|
+
const a1 = (c) => {
|
|
7978
7980
|
var r = c, {
|
|
7979
7981
|
linkItems: s = ["facebook", "x", "linkedin", "youtube", "instagram"],
|
|
7980
7982
|
className: n
|
|
@@ -7991,16 +7993,16 @@ const l1 = (c) => {
|
|
|
7991
7993
|
s.map((l, o) => /* @__PURE__ */ e.createElement("li", { key: o, className: `${i}__item` }, /* @__PURE__ */ e.createElement(
|
|
7992
7994
|
"a",
|
|
7993
7995
|
{
|
|
7994
|
-
href:
|
|
7996
|
+
href: Vt[l].url,
|
|
7995
7997
|
rel: "noreferrer",
|
|
7996
7998
|
target: "_blank",
|
|
7997
|
-
"aria-label":
|
|
7999
|
+
"aria-label": Vt[l].label
|
|
7998
8000
|
},
|
|
7999
|
-
/* @__PURE__ */ e.createElement(A, { iconName:
|
|
8001
|
+
/* @__PURE__ */ e.createElement(A, { iconName: Vt[l].icon, iconSize: "xl" })
|
|
8000
8002
|
)))
|
|
8001
8003
|
);
|
|
8002
8004
|
};
|
|
8003
|
-
|
|
8005
|
+
a1.propTypes = {
|
|
8004
8006
|
/**
|
|
8005
8007
|
* Array of social media links
|
|
8006
8008
|
*/
|
|
@@ -8010,7 +8012,7 @@ l1.propTypes = {
|
|
|
8010
8012
|
*/
|
|
8011
8013
|
className: t.string
|
|
8012
8014
|
};
|
|
8013
|
-
const
|
|
8015
|
+
const Vt = {
|
|
8014
8016
|
facebook: {
|
|
8015
8017
|
icon: "facebook",
|
|
8016
8018
|
url: "https://www.facebook.com/getpantheon",
|
|
@@ -8041,7 +8043,7 @@ const xt = {
|
|
|
8041
8043
|
url: "https://www.youtube.com/user/GetPantheon",
|
|
8042
8044
|
label: "Pantheon on YouTube"
|
|
8043
8045
|
}
|
|
8044
|
-
},
|
|
8046
|
+
}, l1 = (o) => {
|
|
8045
8047
|
var u = o, {
|
|
8046
8048
|
actionItems: s,
|
|
8047
8049
|
disabled: n,
|
|
@@ -8060,7 +8062,7 @@ const xt = {
|
|
|
8060
8062
|
const m = "pds-split-button", _ = `${m}--${r}`, g = s[0], d = s.slice(1);
|
|
8061
8063
|
let v = null;
|
|
8062
8064
|
return g.isLink === !0 ? v = /* @__PURE__ */ e.createElement(
|
|
8063
|
-
|
|
8065
|
+
We,
|
|
8064
8066
|
{
|
|
8065
8067
|
className: `${m}__primary-action`,
|
|
8066
8068
|
size: c,
|
|
@@ -8070,7 +8072,7 @@ const xt = {
|
|
|
8070
8072
|
linkContent: g.linkContent
|
|
8071
8073
|
}
|
|
8072
8074
|
) : v = /* @__PURE__ */ e.createElement(
|
|
8073
|
-
|
|
8075
|
+
Fe,
|
|
8074
8076
|
{
|
|
8075
8077
|
className: `${m}__primary-action`,
|
|
8076
8078
|
label: g.label,
|
|
@@ -8100,7 +8102,7 @@ const xt = {
|
|
|
8100
8102
|
)
|
|
8101
8103
|
);
|
|
8102
8104
|
};
|
|
8103
|
-
|
|
8105
|
+
l1.propTypes = {
|
|
8104
8106
|
/**
|
|
8105
8107
|
* Array of menu items
|
|
8106
8108
|
*/
|
|
@@ -8128,7 +8130,7 @@ c1.propTypes = {
|
|
|
8128
8130
|
*/
|
|
8129
8131
|
className: t.string
|
|
8130
8132
|
};
|
|
8131
|
-
const
|
|
8133
|
+
const c1 = (c) => {
|
|
8132
8134
|
var r = c, { listItems: s, className: n } = r, a = S(r, ["listItems", "className"]);
|
|
8133
8135
|
const i = "pds-tile-list", l = "pds-tile-list--stats", o = ({ item: u }) => {
|
|
8134
8136
|
const { imageSrc: m, stat: _, description: g } = u;
|
|
@@ -8142,7 +8144,7 @@ const r1 = (c) => {
|
|
|
8142
8144
|
s.map((u, m) => /* @__PURE__ */ e.createElement(o, { key: m, item: u }))
|
|
8143
8145
|
);
|
|
8144
8146
|
};
|
|
8145
|
-
|
|
8147
|
+
c1.propTypes = {
|
|
8146
8148
|
/**
|
|
8147
8149
|
* Array of list Items
|
|
8148
8150
|
*/
|
|
@@ -8167,7 +8169,7 @@ r1.propTypes = {
|
|
|
8167
8169
|
*/
|
|
8168
8170
|
className: t.string
|
|
8169
8171
|
};
|
|
8170
|
-
const
|
|
8172
|
+
const r1 = (r) => {
|
|
8171
8173
|
var i = r, {
|
|
8172
8174
|
steps: s,
|
|
8173
8175
|
translatableLabels: n = {
|
|
@@ -8182,8 +8184,8 @@ const i1 = (r) => {
|
|
|
8182
8184
|
"translatableLabels",
|
|
8183
8185
|
"className"
|
|
8184
8186
|
]);
|
|
8185
|
-
const l = "pds-stepper", o = "pds-stepper-mobile", u = ee(), [m] = ft(u), _ = m.width, g = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, d = -40, v = 2, h = 5, $ = s.length, f = s.findLastIndex((b) => b.isCurrent),
|
|
8186
|
-
const y =
|
|
8187
|
+
const l = "pds-stepper", o = "pds-stepper-mobile", u = ee(), [m] = ft(u), _ = m.width, g = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, d = -40, v = 2, h = 5, $ = s.length, f = s.findLastIndex((b) => b.isCurrent), E = s.map((b, C) => {
|
|
8188
|
+
const y = C + 1, w = C === f, z = C < f, x = b.hasError && w, V = (_ - $ * g) / ($ + ($ - 2)), H = g + V * 2, I = g + V, k = V + d * -1, M = C === 0, D = C === $ - 1;
|
|
8187
8189
|
let W = H;
|
|
8188
8190
|
(M || D) && (W = I);
|
|
8189
8191
|
const O = `${l}__step`, q = [O];
|
|
@@ -8244,8 +8246,8 @@ const i1 = (r) => {
|
|
|
8244
8246
|
}
|
|
8245
8247
|
)
|
|
8246
8248
|
);
|
|
8247
|
-
}), p = s.map((b,
|
|
8248
|
-
const y =
|
|
8249
|
+
}), p = s.map((b, C) => {
|
|
8250
|
+
const y = C + 1, w = C === f, z = C === $ - 1, x = b.hasError && w, L = s[f + 1] ? s[f + 1].label : null;
|
|
8249
8251
|
if (w) {
|
|
8250
8252
|
const V = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), y, " of ", $), H = y / $ * 100, I = x ? {
|
|
8251
8253
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
@@ -8287,7 +8289,7 @@ const i1 = (r) => {
|
|
|
8287
8289
|
className: [l, a].join(" ").trim().replace(/\s+/g, " "),
|
|
8288
8290
|
"data-steps": $
|
|
8289
8291
|
}, c),
|
|
8290
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: u },
|
|
8292
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: u }, E)
|
|
8291
8293
|
), /* @__PURE__ */ e.createElement(
|
|
8292
8294
|
"div",
|
|
8293
8295
|
N({
|
|
@@ -8297,7 +8299,7 @@ const i1 = (r) => {
|
|
|
8297
8299
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)
|
|
8298
8300
|
));
|
|
8299
8301
|
};
|
|
8300
|
-
|
|
8302
|
+
r1.propTypes = {
|
|
8301
8303
|
/**
|
|
8302
8304
|
* An array of step objects
|
|
8303
8305
|
*/
|
|
@@ -8339,25 +8341,25 @@ i1.propTypes = {
|
|
|
8339
8341
|
*/
|
|
8340
8342
|
className: t.string
|
|
8341
8343
|
};
|
|
8342
|
-
const
|
|
8344
|
+
const i1 = (r) => {
|
|
8343
8345
|
var i = r, { headers: s, rowData: n, className: a } = i, c = S(i, ["headers", "rowData", "className"]);
|
|
8344
8346
|
const [l] = R(s), [o, u] = R(n), [m, _] = R({ order: "asc", key: "" }), g = (f) => {
|
|
8345
|
-
u(o.sort((
|
|
8347
|
+
u(o.sort((E, p) => E[f].localeCompare(p[f]))), _({ order: "desc", key: f });
|
|
8346
8348
|
}, d = (f) => {
|
|
8347
|
-
u(o.sort((
|
|
8348
|
-
}, v = (f,
|
|
8349
|
-
_(ve(N({}, m), { key:
|
|
8350
|
-
}, h = (f,
|
|
8349
|
+
u(o.sort((E, p) => p[f].localeCompare(E[f]))), _({ order: "asc", key: f });
|
|
8350
|
+
}, v = (f, E) => {
|
|
8351
|
+
_(ve(N({}, m), { key: E })), m.order === "asc" ? g(E) : d(E);
|
|
8352
|
+
}, h = (f, E) => /* @__PURE__ */ e.createElement("tr", { id: E, key: `table-row-${E}` }, f.map((p, b) => /* @__PURE__ */ e.createElement("td", { key: `${E}-cell-${b}` }, /* @__PURE__ */ e.createElement("span", null, p)))), $ = "pds-table";
|
|
8351
8353
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8352
8354
|
"table",
|
|
8353
8355
|
N({
|
|
8354
8356
|
className: [$, a].join(" ").trim().replace(/\s+/g, " ")
|
|
8355
8357
|
}, c),
|
|
8356
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((f,
|
|
8358
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((f, E) => /* @__PURE__ */ e.createElement("th", { key: `header-${E}` }, f.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${$}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8357
8359
|
"span",
|
|
8358
8360
|
{
|
|
8359
8361
|
className: `${$}__sort-header`,
|
|
8360
|
-
onClick: (p) => v(p,
|
|
8362
|
+
onClick: (p) => v(p, E)
|
|
8361
8363
|
},
|
|
8362
8364
|
f.title
|
|
8363
8365
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -8365,27 +8367,27 @@ const o1 = (r) => {
|
|
|
8365
8367
|
{
|
|
8366
8368
|
className: `${$}__sort-button`,
|
|
8367
8369
|
title: `Sort by ${f.title}`,
|
|
8368
|
-
onClick: (p) => v(p,
|
|
8370
|
+
onClick: (p) => v(p, E)
|
|
8369
8371
|
},
|
|
8370
8372
|
/* @__PURE__ */ e.createElement(
|
|
8371
8373
|
"span",
|
|
8372
8374
|
{
|
|
8373
|
-
className: `${$}__sort-button-top ${
|
|
8375
|
+
className: `${$}__sort-button-top ${E != m.key && m.key !== "" ? "pds-table__sort-innactive" : m.key == E ? m.order : "asc"}`
|
|
8374
8376
|
},
|
|
8375
8377
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretUp", iconSize: "sm" })
|
|
8376
8378
|
),
|
|
8377
8379
|
/* @__PURE__ */ e.createElement(
|
|
8378
8380
|
"span",
|
|
8379
8381
|
{
|
|
8380
|
-
className: `${$}__sort-button-bottom ${m.key ==
|
|
8382
|
+
className: `${$}__sort-button-bottom ${m.key == E ? m.order : "asc"}`
|
|
8381
8383
|
},
|
|
8382
8384
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "sm" })
|
|
8383
8385
|
)
|
|
8384
8386
|
)) : /* @__PURE__ */ e.createElement("span", null, f.title))))),
|
|
8385
|
-
/* @__PURE__ */ e.createElement("tbody", null, o.map((f,
|
|
8387
|
+
/* @__PURE__ */ e.createElement("tbody", null, o.map((f, E) => h(f, E)))
|
|
8386
8388
|
));
|
|
8387
8389
|
};
|
|
8388
|
-
|
|
8390
|
+
i1.propTypes = {
|
|
8389
8391
|
headers: t.arrayOf(t.object),
|
|
8390
8392
|
rowData: t.arrayOf(t.node),
|
|
8391
8393
|
/**
|
|
@@ -8393,7 +8395,7 @@ o1.propTypes = {
|
|
|
8393
8395
|
*/
|
|
8394
8396
|
className: t.string
|
|
8395
8397
|
};
|
|
8396
|
-
const
|
|
8398
|
+
const o1 = (m) => {
|
|
8397
8399
|
var _ = m, {
|
|
8398
8400
|
appendIds: s = !1,
|
|
8399
8401
|
ariaLabel: n = "Table of contents",
|
|
@@ -8457,7 +8459,7 @@ const d1 = (m) => {
|
|
|
8457
8459
|
title: I
|
|
8458
8460
|
});
|
|
8459
8461
|
}), V;
|
|
8460
|
-
}, { nestedHeadings:
|
|
8462
|
+
}, { nestedHeadings: E } = $(), [p, b] = R();
|
|
8461
8463
|
((L) => {
|
|
8462
8464
|
const V = ee({});
|
|
8463
8465
|
se(() => {
|
|
@@ -8536,10 +8538,10 @@ const d1 = (m) => {
|
|
|
8536
8538
|
},
|
|
8537
8539
|
c
|
|
8538
8540
|
),
|
|
8539
|
-
/* @__PURE__ */ e.createElement(x, { headings:
|
|
8541
|
+
/* @__PURE__ */ e.createElement(x, { headings: E, activeID: p })
|
|
8540
8542
|
);
|
|
8541
8543
|
};
|
|
8542
|
-
|
|
8544
|
+
o1.propTypes = {
|
|
8543
8545
|
/**
|
|
8544
8546
|
* Whether to append the id to the URL when a link is clicked.
|
|
8545
8547
|
*/
|
|
@@ -8573,7 +8575,7 @@ d1.propTypes = {
|
|
|
8573
8575
|
*/
|
|
8574
8576
|
className: t.string
|
|
8575
8577
|
};
|
|
8576
|
-
const
|
|
8578
|
+
const F1 = (u) => {
|
|
8577
8579
|
var m = u, {
|
|
8578
8580
|
onActiveTabChange: s = () => {
|
|
8579
8581
|
},
|
|
@@ -8599,8 +8601,8 @@ const W1 = (u) => {
|
|
|
8599
8601
|
const h = (p) => {
|
|
8600
8602
|
const b = p.currentTarget.getAttribute("data-tabnumber");
|
|
8601
8603
|
if (b) {
|
|
8602
|
-
const
|
|
8603
|
-
v(
|
|
8604
|
+
const C = parseInt(b, 10);
|
|
8605
|
+
v(C);
|
|
8604
8606
|
}
|
|
8605
8607
|
}, $ = ee([]);
|
|
8606
8608
|
se(() => {
|
|
@@ -8616,11 +8618,11 @@ const W1 = (u) => {
|
|
|
8616
8618
|
}
|
|
8617
8619
|
}, [d]);
|
|
8618
8620
|
const f = (p, b) => {
|
|
8619
|
-
const
|
|
8620
|
-
let y = $.current[b === "next" ?
|
|
8621
|
+
const C = d;
|
|
8622
|
+
let y = $.current[b === "next" ? C + 1 < $.current.length ? C + 1 : 0 : C - 1 >= 0 ? C - 1 : $.current.length - 1];
|
|
8621
8623
|
y || (y = b == "next" ? $.current[p + 1] == null ? $.current[0] : $.current[p + 1] : $.current[p - 1]), y.focus();
|
|
8622
|
-
},
|
|
8623
|
-
const b = $.current.length,
|
|
8624
|
+
}, E = (p) => {
|
|
8625
|
+
const b = $.current.length, C = () => {
|
|
8624
8626
|
f((d + 1) % b, "next"), v(d + 1);
|
|
8625
8627
|
}, y = () => {
|
|
8626
8628
|
f((d - 1 + b) % b, "prev"), v(d - 1);
|
|
@@ -8631,7 +8633,7 @@ const W1 = (u) => {
|
|
|
8631
8633
|
}, x = () => {
|
|
8632
8634
|
$.current[d].focus();
|
|
8633
8635
|
}, V = {
|
|
8634
|
-
ArrowRight:
|
|
8636
|
+
ArrowRight: C,
|
|
8635
8637
|
ArrowLeft: y,
|
|
8636
8638
|
Home: w,
|
|
8637
8639
|
End: z,
|
|
@@ -8653,16 +8655,16 @@ const W1 = (u) => {
|
|
|
8653
8655
|
"aria-label": n,
|
|
8654
8656
|
"aria-orientation": "horizontal"
|
|
8655
8657
|
},
|
|
8656
|
-
i.map(({ disabled: p, icon: b, tabId:
|
|
8658
|
+
i.map(({ disabled: p, icon: b, tabId: C, tabLabel: y }, w) => /* @__PURE__ */ e.createElement(
|
|
8657
8659
|
"button",
|
|
8658
8660
|
{
|
|
8659
8661
|
className: `${_}__tab`,
|
|
8660
8662
|
"aria-selected": w == d,
|
|
8661
8663
|
"data-tabnumber": w,
|
|
8662
8664
|
role: "tab",
|
|
8663
|
-
id:
|
|
8665
|
+
id: C,
|
|
8664
8666
|
onKeyDown: (z) => {
|
|
8665
|
-
z.preventDefault(),
|
|
8667
|
+
z.preventDefault(), E(z);
|
|
8666
8668
|
},
|
|
8667
8669
|
key: y,
|
|
8668
8670
|
ref: (z) => p ? null : $.current[w] = z,
|
|
@@ -8674,7 +8676,7 @@ const W1 = (u) => {
|
|
|
8674
8676
|
/* @__PURE__ */ e.createElement("div", { key: b, className: `${_}__tab-text` }, b ? /* @__PURE__ */ e.createElement(A, { iconName: b, iconSize: r }) : null, " ", y)
|
|
8675
8677
|
))
|
|
8676
8678
|
),
|
|
8677
|
-
i.map(({ tabLabel: p, icon: b, disabled:
|
|
8679
|
+
i.map(({ tabLabel: p, icon: b, disabled: C, panelContent: y }, w) => /* @__PURE__ */ e.createElement(
|
|
8678
8680
|
"div",
|
|
8679
8681
|
N({
|
|
8680
8682
|
className: `${_}__panel`,
|
|
@@ -8691,11 +8693,11 @@ const W1 = (u) => {
|
|
|
8691
8693
|
role: "tab",
|
|
8692
8694
|
"data-tabnumber": w,
|
|
8693
8695
|
key: p,
|
|
8694
|
-
onKeyDown:
|
|
8695
|
-
"aria-disabled": !!
|
|
8696
|
+
onKeyDown: E,
|
|
8697
|
+
"aria-disabled": !!C,
|
|
8696
8698
|
"aria-controls": `tabpanel_${w}`,
|
|
8697
8699
|
tabIndex: d === w ? 1 : -1,
|
|
8698
|
-
onClick:
|
|
8700
|
+
onClick: C ? null : h
|
|
8699
8701
|
},
|
|
8700
8702
|
/* @__PURE__ */ e.createElement("div", { key: b, className: `${_}__tab-text` }, b ? /* @__PURE__ */ e.createElement(A, { iconSize: "md", iconName: b }) : null, " ", p),
|
|
8701
8703
|
w == d ? /* @__PURE__ */ e.createElement(
|
|
@@ -8724,8 +8726,8 @@ const W1 = (u) => {
|
|
|
8724
8726
|
)
|
|
8725
8727
|
))
|
|
8726
8728
|
));
|
|
8727
|
-
},
|
|
8728
|
-
var
|
|
8729
|
+
}, d1 = (f) => {
|
|
8730
|
+
var E = f, {
|
|
8729
8731
|
counterFunction: s = () => {
|
|
8730
8732
|
},
|
|
8731
8733
|
disabled: n = !1,
|
|
@@ -8742,7 +8744,7 @@ const W1 = (u) => {
|
|
|
8742
8744
|
rows: d = 5,
|
|
8743
8745
|
validationFunction: v,
|
|
8744
8746
|
className: h
|
|
8745
|
-
} =
|
|
8747
|
+
} = E, $ = S(E, [
|
|
8746
8748
|
"counterFunction",
|
|
8747
8749
|
"disabled",
|
|
8748
8750
|
"id",
|
|
@@ -8759,7 +8761,7 @@ const W1 = (u) => {
|
|
|
8759
8761
|
"validationFunction",
|
|
8760
8762
|
"className"
|
|
8761
8763
|
]);
|
|
8762
|
-
const [p, b] = R(c), [
|
|
8764
|
+
const [p, b] = R(c), [C, y] = R(s("")), [w, z] = R(), [x, L] = R(null), V = ee(null), H = "pds-textarea", I = i ? "pds-is-resizable" : null;
|
|
8763
8765
|
se(() => {
|
|
8764
8766
|
c && s && y(s(c));
|
|
8765
8767
|
}, []);
|
|
@@ -8775,7 +8777,7 @@ const W1 = (u) => {
|
|
|
8775
8777
|
u && u(p);
|
|
8776
8778
|
}, W = w || o;
|
|
8777
8779
|
return /* @__PURE__ */ e.createElement(
|
|
8778
|
-
|
|
8780
|
+
De,
|
|
8779
8781
|
N({
|
|
8780
8782
|
className: h,
|
|
8781
8783
|
disabled: n,
|
|
@@ -8788,7 +8790,7 @@ const W1 = (u) => {
|
|
|
8788
8790
|
required: g,
|
|
8789
8791
|
validationState: x
|
|
8790
8792
|
}, $),
|
|
8791
|
-
|
|
8793
|
+
C && /* @__PURE__ */ e.createElement("div", { className: `pds-input__counter ${H}__counter` }, C),
|
|
8792
8794
|
/* @__PURE__ */ e.createElement(
|
|
8793
8795
|
"textarea",
|
|
8794
8796
|
{
|
|
@@ -8810,7 +8812,7 @@ const W1 = (u) => {
|
|
|
8810
8812
|
)
|
|
8811
8813
|
);
|
|
8812
8814
|
};
|
|
8813
|
-
|
|
8815
|
+
d1.propTypes = {
|
|
8814
8816
|
/**
|
|
8815
8817
|
* If a counter is desired provide a function that accepts the input's value and will return a string.
|
|
8816
8818
|
*/
|
|
@@ -8889,7 +8891,7 @@ m1.propTypes = {
|
|
|
8889
8891
|
*/
|
|
8890
8892
|
className: t.string
|
|
8891
8893
|
};
|
|
8892
|
-
const
|
|
8894
|
+
const m1 = (r) => {
|
|
8893
8895
|
var i = r, {
|
|
8894
8896
|
linkContent: s,
|
|
8895
8897
|
size: n = "md",
|
|
@@ -8943,7 +8945,7 @@ const u1 = (r) => {
|
|
|
8943
8945
|
a && /* @__PURE__ */ e.createElement(d, { className: `${_}__heading pds-ts-xl` }, a),
|
|
8944
8946
|
i && /* @__PURE__ */ e.createElement("div", { className: `${_}__summary` }, /* @__PURE__ */ e.createElement("p", null, i)),
|
|
8945
8947
|
r && (s == "border" || s == "clean") && /* @__PURE__ */ e.createElement(
|
|
8946
|
-
|
|
8948
|
+
m1,
|
|
8947
8949
|
{
|
|
8948
8950
|
linkContent: r,
|
|
8949
8951
|
size: "sm",
|
|
@@ -8982,7 +8984,7 @@ zs.propTypes = {
|
|
|
8982
8984
|
*/
|
|
8983
8985
|
className: t.string
|
|
8984
8986
|
};
|
|
8985
|
-
const
|
|
8987
|
+
const u1 = (i) => {
|
|
8986
8988
|
var l = i, {
|
|
8987
8989
|
displayType: s = "border",
|
|
8988
8990
|
headingLevel: n = "h2",
|
|
@@ -9015,7 +9017,7 @@ const p1 = (i) => {
|
|
|
9015
9017
|
))
|
|
9016
9018
|
);
|
|
9017
9019
|
};
|
|
9018
|
-
|
|
9020
|
+
u1.propTypes = {
|
|
9019
9021
|
/**
|
|
9020
9022
|
* Visual display type
|
|
9021
9023
|
*/
|
|
@@ -9056,7 +9058,7 @@ p1.propTypes = {
|
|
|
9056
9058
|
*/
|
|
9057
9059
|
className: t.string
|
|
9058
9060
|
};
|
|
9059
|
-
const
|
|
9061
|
+
const St = {
|
|
9060
9062
|
info: "circleInfo",
|
|
9061
9063
|
success: "check",
|
|
9062
9064
|
warning: "triangleExclamation",
|
|
@@ -9093,7 +9095,7 @@ const Vt = {
|
|
|
9093
9095
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon-container` }, a === "working" ? /* @__PURE__ */ e.createElement(vt, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
9094
9096
|
A,
|
|
9095
9097
|
{
|
|
9096
|
-
iconName: `${a}` in
|
|
9098
|
+
iconName: `${a}` in St ? St[a] : St.info,
|
|
9097
9099
|
className: `${i}__icon ${i}__icon--${a}`
|
|
9098
9100
|
}
|
|
9099
9101
|
)),
|
|
@@ -9128,7 +9130,7 @@ Ms.propTypes = {
|
|
|
9128
9130
|
*/
|
|
9129
9131
|
className: t.string
|
|
9130
9132
|
};
|
|
9131
|
-
const
|
|
9133
|
+
const p1 = ({
|
|
9132
9134
|
autoCloseDuration: s = 5e3,
|
|
9133
9135
|
limit: n = 5,
|
|
9134
9136
|
position: a = "bottom-right",
|
|
@@ -9136,7 +9138,7 @@ const g1 = ({
|
|
|
9136
9138
|
}) => {
|
|
9137
9139
|
const i = ["pds-toaster", c].join(" ").trim().replace(/\s+/g, " ");
|
|
9138
9140
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9139
|
-
|
|
9141
|
+
Qs,
|
|
9140
9142
|
{
|
|
9141
9143
|
className: i,
|
|
9142
9144
|
autoClose: s,
|
|
@@ -9146,11 +9148,11 @@ const g1 = ({
|
|
|
9146
9148
|
newestOnTop: !0,
|
|
9147
9149
|
position: a,
|
|
9148
9150
|
role: "status",
|
|
9149
|
-
transition:
|
|
9151
|
+
transition: Js
|
|
9150
9152
|
}
|
|
9151
9153
|
));
|
|
9152
9154
|
};
|
|
9153
|
-
|
|
9155
|
+
p1.propTypes = {
|
|
9154
9156
|
/**
|
|
9155
9157
|
* Duration in milliseconds before the toast will auto-close.
|
|
9156
9158
|
*/
|
|
@@ -9168,7 +9170,7 @@ g1.propTypes = {
|
|
|
9168
9170
|
*/
|
|
9169
9171
|
className: t.string
|
|
9170
9172
|
};
|
|
9171
|
-
const
|
|
9173
|
+
const g1 = (o) => {
|
|
9172
9174
|
var u = o, {
|
|
9173
9175
|
disabled: s = !1,
|
|
9174
9176
|
id: n,
|
|
@@ -9197,18 +9199,18 @@ const h1 = (o) => {
|
|
|
9197
9199
|
id: n
|
|
9198
9200
|
}, l),
|
|
9199
9201
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
9200
|
-
/* @__PURE__ */ e.createElement("div", { className: `${m}__options` }, i.map((f,
|
|
9202
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__options` }, i.map((f, E) => /* @__PURE__ */ e.createElement(
|
|
9201
9203
|
"div",
|
|
9202
9204
|
{
|
|
9203
9205
|
className: `${m}__option`,
|
|
9204
|
-
key: `${n}-option-${
|
|
9206
|
+
key: `${n}-option-${E}`
|
|
9205
9207
|
},
|
|
9206
9208
|
/* @__PURE__ */ e.createElement(
|
|
9207
9209
|
"input",
|
|
9208
9210
|
{
|
|
9209
9211
|
className: "visually-hidden",
|
|
9210
9212
|
type: "radio",
|
|
9211
|
-
id: `${n}-option-${
|
|
9213
|
+
id: `${n}-option-${E}`,
|
|
9212
9214
|
name: n,
|
|
9213
9215
|
value: f.value,
|
|
9214
9216
|
disabled: s,
|
|
@@ -9216,7 +9218,7 @@ const h1 = (o) => {
|
|
|
9216
9218
|
defaultChecked: d === f.value
|
|
9217
9219
|
}
|
|
9218
9220
|
),
|
|
9219
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
9221
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${E}` }, f.iconName && /* @__PURE__ */ e.createElement(
|
|
9220
9222
|
A,
|
|
9221
9223
|
{
|
|
9222
9224
|
iconName: f.iconName,
|
|
@@ -9227,7 +9229,7 @@ const h1 = (o) => {
|
|
|
9227
9229
|
)))
|
|
9228
9230
|
);
|
|
9229
9231
|
};
|
|
9230
|
-
|
|
9232
|
+
g1.propTypes = {
|
|
9231
9233
|
/**
|
|
9232
9234
|
* Is the ToggleButton disabled?
|
|
9233
9235
|
*/
|
|
@@ -9273,7 +9275,7 @@ h1.propTypes = {
|
|
|
9273
9275
|
*/
|
|
9274
9276
|
className: t.string
|
|
9275
9277
|
};
|
|
9276
|
-
const
|
|
9278
|
+
const h1 = (v) => {
|
|
9277
9279
|
var h = v, {
|
|
9278
9280
|
disabled: s = !1,
|
|
9279
9281
|
id: n,
|
|
@@ -9301,11 +9303,11 @@ const f1 = (v) => {
|
|
|
9301
9303
|
"statusOffLabel",
|
|
9302
9304
|
"className"
|
|
9303
9305
|
]);
|
|
9304
|
-
const $ = "pds-toggle-switch", [f,
|
|
9305
|
-
|
|
9306
|
+
const $ = "pds-toggle-switch", [f, E] = R(!1), p = (y) => {
|
|
9307
|
+
E(!f), i && i(y.target);
|
|
9306
9308
|
};
|
|
9307
|
-
let b = f === !0 ? m : _,
|
|
9308
|
-
return u ?
|
|
9309
|
+
let b = f === !0 ? m : _, C;
|
|
9310
|
+
return u ? C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
9309
9311
|
"span",
|
|
9310
9312
|
{
|
|
9311
9313
|
className: "pds-toggle__label pds-toggle__label--on",
|
|
@@ -9319,7 +9321,7 @@ const f1 = (v) => {
|
|
|
9319
9321
|
"aria-hidden": "true"
|
|
9320
9322
|
},
|
|
9321
9323
|
_
|
|
9322
|
-
)) :
|
|
9324
|
+
)) : C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
9323
9325
|
A,
|
|
9324
9326
|
{
|
|
9325
9327
|
iconName: "check",
|
|
@@ -9334,7 +9336,7 @@ const f1 = (v) => {
|
|
|
9334
9336
|
className: `${$}__off-icon`
|
|
9335
9337
|
}
|
|
9336
9338
|
)), /* @__PURE__ */ e.createElement(
|
|
9337
|
-
|
|
9339
|
+
De,
|
|
9338
9340
|
N({
|
|
9339
9341
|
className: g,
|
|
9340
9342
|
disabled: s,
|
|
@@ -9357,11 +9359,11 @@ const f1 = (v) => {
|
|
|
9357
9359
|
"aria-checked": f,
|
|
9358
9360
|
onClick: p
|
|
9359
9361
|
},
|
|
9360
|
-
|
|
9362
|
+
C
|
|
9361
9363
|
))
|
|
9362
9364
|
);
|
|
9363
9365
|
};
|
|
9364
|
-
|
|
9366
|
+
h1.propTypes = {
|
|
9365
9367
|
/**
|
|
9366
9368
|
* Is the switch disabled?
|
|
9367
9369
|
*/
|
|
@@ -9411,7 +9413,7 @@ f1.propTypes = {
|
|
|
9411
9413
|
*/
|
|
9412
9414
|
className: t.string
|
|
9413
9415
|
};
|
|
9414
|
-
const
|
|
9416
|
+
const f1 = (u) => {
|
|
9415
9417
|
var m = u, {
|
|
9416
9418
|
ariaLabel: s = "User menu",
|
|
9417
9419
|
menuItems: n,
|
|
@@ -9431,13 +9433,13 @@ const b1 = (u) => {
|
|
|
9431
9433
|
]);
|
|
9432
9434
|
const [_, g] = R(null), [d, v] = R(!1), h = ee([]), $ = ee([]);
|
|
9433
9435
|
let f = !1;
|
|
9434
|
-
const
|
|
9435
|
-
|
|
9436
|
-
const p = i && f, b = "pds-user-menu",
|
|
9436
|
+
const E = Ne(Ae);
|
|
9437
|
+
E && (f = E.isMobile);
|
|
9438
|
+
const p = i && f, b = "pds-user-menu", C = p ? `${b}--isMobile` : null, y = `${b}__menu`, { refs: w, floatingStyles: z, context: x } = Ve({
|
|
9437
9439
|
open: d,
|
|
9438
9440
|
onOpenChange: v,
|
|
9439
|
-
whileElementsMounted:
|
|
9440
|
-
}), L = nt(x, { event: "mousedown" }), V = Se(x), H = Ie(x, { role: "menu" }), I = ee([]), k =
|
|
9441
|
+
whileElementsMounted: Re
|
|
9442
|
+
}), L = nt(x, { event: "mousedown" }), V = Se(x), H = Ie(x, { role: "menu" }), I = ee([]), k = ct(x, {
|
|
9441
9443
|
listRef: I,
|
|
9442
9444
|
activeIndex: _,
|
|
9443
9445
|
onNavigate: g,
|
|
@@ -9447,7 +9449,7 @@ const b1 = (u) => {
|
|
|
9447
9449
|
focusItemOnHover: !0
|
|
9448
9450
|
}), { getReferenceProps: M, getFloatingProps: D, getItemProps: W } = Te(
|
|
9449
9451
|
[V, H, L, k]
|
|
9450
|
-
), { isMounted: O, styles: q } =
|
|
9452
|
+
), { isMounted: O, styles: q } = Ge(x, {
|
|
9451
9453
|
duration: {
|
|
9452
9454
|
open: 300,
|
|
9453
9455
|
close: 150
|
|
@@ -9472,7 +9474,7 @@ const b1 = (u) => {
|
|
|
9472
9474
|
}, Z = (te) => {
|
|
9473
9475
|
F(te.currentTarget.id);
|
|
9474
9476
|
}, B = /* @__PURE__ */ e.createElement(
|
|
9475
|
-
|
|
9477
|
+
tt,
|
|
9476
9478
|
{
|
|
9477
9479
|
size: "sm",
|
|
9478
9480
|
imageSrc: c,
|
|
@@ -9559,12 +9561,12 @@ const b1 = (u) => {
|
|
|
9559
9561
|
return /* @__PURE__ */ e.createElement(
|
|
9560
9562
|
"span",
|
|
9561
9563
|
N({
|
|
9562
|
-
className: [b,
|
|
9564
|
+
className: [b, C, l].join(" ").trim().replace(/\s+/g, " ")
|
|
9563
9565
|
}, o),
|
|
9564
9566
|
p ? ne : G
|
|
9565
9567
|
);
|
|
9566
9568
|
};
|
|
9567
|
-
|
|
9569
|
+
f1.propTypes = {
|
|
9568
9570
|
/**
|
|
9569
9571
|
* Aria label for the user menu.
|
|
9570
9572
|
*/
|
|
@@ -9617,7 +9619,7 @@ b1.propTypes = {
|
|
|
9617
9619
|
*/
|
|
9618
9620
|
className: t.string
|
|
9619
9621
|
};
|
|
9620
|
-
const
|
|
9622
|
+
const W1 = () => {
|
|
9621
9623
|
const s = (a, c, r = {}) => {
|
|
9622
9624
|
const i = /* @__PURE__ */ e.createElement(Ms, { type: a }, c);
|
|
9623
9625
|
let l = N({}, r);
|
|
@@ -9629,13 +9631,13 @@ const Z1 = () => {
|
|
|
9629
9631
|
closeButton: !1,
|
|
9630
9632
|
closeOnClick: !1
|
|
9631
9633
|
})), Kt(i, l);
|
|
9632
|
-
}, n =
|
|
9634
|
+
}, n = en({
|
|
9633
9635
|
collapse: !1,
|
|
9634
9636
|
enter: "pds-toast--bounceInPlace",
|
|
9635
9637
|
exit: "pds-toast--slideOut"
|
|
9636
9638
|
});
|
|
9637
9639
|
return [s, Kt, n];
|
|
9638
|
-
},
|
|
9640
|
+
}, b1 = Ue(
|
|
9639
9641
|
(I, H) => {
|
|
9640
9642
|
var k = I, {
|
|
9641
9643
|
autoComplete: s,
|
|
@@ -9655,10 +9657,10 @@ const Z1 = () => {
|
|
|
9655
9657
|
onFocus: h,
|
|
9656
9658
|
placeholder: $,
|
|
9657
9659
|
readonly: f = !1,
|
|
9658
|
-
required:
|
|
9660
|
+
required: E = !1,
|
|
9659
9661
|
showLabel: p = !0,
|
|
9660
9662
|
showVisibilityToggle: b = !1,
|
|
9661
|
-
translationStrings:
|
|
9663
|
+
translationStrings: C = {
|
|
9662
9664
|
clearButton: "Clear input text",
|
|
9663
9665
|
counterOverLimit: "Character limit exceeded by",
|
|
9664
9666
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -9699,7 +9701,7 @@ const Z1 = () => {
|
|
|
9699
9701
|
"value",
|
|
9700
9702
|
"className"
|
|
9701
9703
|
]);
|
|
9702
|
-
const M = vs(u), D = "pds-text-input", W = c ? he.disabled : null, O =
|
|
9704
|
+
const M = vs(u), D = "pds-text-input", W = c ? he.disabled : null, O = E && !c ? he.required : null, q = z === "error" ? he.error : null, F = z === "success" ? he.success : null, Z = f ? he.readonly : null;
|
|
9703
9705
|
let B = null;
|
|
9704
9706
|
y === "search" && (B = "search"), z === "error" && (B = "error"), z === "success" && (B = "success");
|
|
9705
9707
|
const T = w || _, j = typeof x != "undefined", U = typeof a != "undefined", [G, ce] = R(
|
|
@@ -9721,7 +9723,7 @@ const Z1 = () => {
|
|
|
9721
9723
|
return b && y === "password" && (J ? re = "text" : re = "password"), /* @__PURE__ */ e.createElement(
|
|
9722
9724
|
"div",
|
|
9723
9725
|
N({
|
|
9724
|
-
className:
|
|
9726
|
+
className: Oe([
|
|
9725
9727
|
he.base,
|
|
9726
9728
|
D,
|
|
9727
9729
|
W,
|
|
@@ -9739,11 +9741,11 @@ const Z1 = () => {
|
|
|
9739
9741
|
id: l,
|
|
9740
9742
|
label: m,
|
|
9741
9743
|
showLabel: p,
|
|
9742
|
-
required:
|
|
9744
|
+
required: E,
|
|
9743
9745
|
disabled: c
|
|
9744
9746
|
}
|
|
9745
9747
|
),
|
|
9746
|
-
b && y === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${
|
|
9748
|
+
b && y === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${C.visibilityStatus} ${J ? "visible" : "hidden"}.`),
|
|
9747
9749
|
/* @__PURE__ */ e.createElement("div", { className: `${D}__input-wrapper` }, B && /* @__PURE__ */ e.createElement(_s, { variant: B }), /* @__PURE__ */ e.createElement(
|
|
9748
9750
|
"input",
|
|
9749
9751
|
N({
|
|
@@ -9756,7 +9758,7 @@ const Z1 = () => {
|
|
|
9756
9758
|
placeholder: $,
|
|
9757
9759
|
readOnly: f,
|
|
9758
9760
|
disabled: c,
|
|
9759
|
-
required:
|
|
9761
|
+
required: E,
|
|
9760
9762
|
autoComplete: y === "password" ? "off" : s,
|
|
9761
9763
|
onBlur: te,
|
|
9762
9764
|
onChange: me,
|
|
@@ -9765,10 +9767,10 @@ const Z1 = () => {
|
|
|
9765
9767
|
"aria-describedby": T ? `${l}__message` : null
|
|
9766
9768
|
}, o)
|
|
9767
9769
|
), r && ne && /* @__PURE__ */ e.createElement(
|
|
9768
|
-
|
|
9770
|
+
fn,
|
|
9769
9771
|
{
|
|
9770
9772
|
id: l,
|
|
9771
|
-
clearLabel:
|
|
9773
|
+
clearLabel: C.clearButton,
|
|
9772
9774
|
handleClearInput: ue
|
|
9773
9775
|
}
|
|
9774
9776
|
), b && y === "password" && /* @__PURE__ */ e.createElement(
|
|
@@ -9776,29 +9778,29 @@ const Z1 = () => {
|
|
|
9776
9778
|
{
|
|
9777
9779
|
type: "button",
|
|
9778
9780
|
className: `${D}__visibility-toggle`,
|
|
9779
|
-
title: J ?
|
|
9781
|
+
title: J ? C.visibilityToggleHide : C.visibilityToggleShow,
|
|
9780
9782
|
"aria-controls": l,
|
|
9781
9783
|
onClick: _e,
|
|
9782
9784
|
onMouseDown: (K) => K.preventDefault()
|
|
9783
9785
|
},
|
|
9784
9786
|
/* @__PURE__ */ e.createElement(A, { iconName: J ? "eyeSlash" : "eye", iconSize: "md" })
|
|
9785
9787
|
), i && y === "search" && !ne && /* @__PURE__ */ e.createElement(
|
|
9786
|
-
|
|
9788
|
+
hn,
|
|
9787
9789
|
{
|
|
9788
9790
|
inputId: l,
|
|
9789
|
-
shortcutLabel:
|
|
9791
|
+
shortcutLabel: C.searchShortcut
|
|
9790
9792
|
}
|
|
9791
9793
|
), n && y !== "password" && /* @__PURE__ */ e.createElement(
|
|
9792
|
-
|
|
9794
|
+
bn,
|
|
9793
9795
|
{
|
|
9794
9796
|
id: l,
|
|
9795
9797
|
currentLength: ne.length,
|
|
9796
9798
|
maxLength: n,
|
|
9797
|
-
overLimitMessage:
|
|
9799
|
+
overLimitMessage: C.counterOverLimit
|
|
9798
9800
|
}
|
|
9799
9801
|
)),
|
|
9800
9802
|
T && /* @__PURE__ */ e.createElement(
|
|
9801
|
-
|
|
9803
|
+
at,
|
|
9802
9804
|
{
|
|
9803
9805
|
id: l,
|
|
9804
9806
|
message: T,
|
|
@@ -9809,12 +9811,12 @@ const Z1 = () => {
|
|
|
9809
9811
|
)
|
|
9810
9812
|
);
|
|
9811
9813
|
}
|
|
9812
|
-
),
|
|
9814
|
+
), _1 = {
|
|
9813
9815
|
silver: "Silver",
|
|
9814
9816
|
gold: "Gold",
|
|
9815
9817
|
platinum: "Platinum",
|
|
9816
9818
|
diamond: "Diamond"
|
|
9817
|
-
},
|
|
9819
|
+
}, v1 = (g) => {
|
|
9818
9820
|
var d = g, {
|
|
9819
9821
|
ariaLabel: s = "Workspace selector menu",
|
|
9820
9822
|
createWorkspaceLink: n,
|
|
@@ -9838,15 +9840,15 @@ const Z1 = () => {
|
|
|
9838
9840
|
"workspaceList",
|
|
9839
9841
|
"className"
|
|
9840
9842
|
]);
|
|
9841
|
-
const [v, h] = R(!1), [$, f] = R(null), [
|
|
9843
|
+
const [v, h] = R(!1), [$, f] = R(null), [E, p] = R(u), b = ee([]), C = ee(null), y = u.length >= i;
|
|
9842
9844
|
let w = !1;
|
|
9843
|
-
const z = Ne(
|
|
9845
|
+
const z = Ne(Ae);
|
|
9844
9846
|
z && (w = z.isMobile);
|
|
9845
9847
|
const x = o && w, L = "pds-workspace-selector", V = x ? `${L}--isMobile` : null, H = `${L}__menu`, I = y ? `${H}--scroll` : null, { refs: k, floatingStyles: M, context: D } = Ve({
|
|
9846
9848
|
open: v,
|
|
9847
9849
|
onOpenChange: h,
|
|
9848
|
-
whileElementsMounted:
|
|
9849
|
-
}), W = nt(D, { event: "mousedown" }), O = Se(D), q = Ie(D, { role: "menu" }), F =
|
|
9850
|
+
whileElementsMounted: Re
|
|
9851
|
+
}), W = nt(D, { event: "mousedown" }), O = Se(D), q = Ie(D, { role: "menu" }), F = ct(D, {
|
|
9850
9852
|
listRef: b,
|
|
9851
9853
|
activeIndex: $,
|
|
9852
9854
|
onNavigate: f,
|
|
@@ -9856,7 +9858,7 @@ const Z1 = () => {
|
|
|
9856
9858
|
focusItemOnOpen: !1
|
|
9857
9859
|
}), { getReferenceProps: Z, getFloatingProps: B, getItemProps: T } = Te(
|
|
9858
9860
|
[O, q, W, F]
|
|
9859
|
-
), { isMounted: j, styles: U } =
|
|
9861
|
+
), { isMounted: j, styles: U } = Ge(D, {
|
|
9860
9862
|
duration: {
|
|
9861
9863
|
open: 300,
|
|
9862
9864
|
close: 150
|
|
@@ -9884,9 +9886,9 @@ const Z1 = () => {
|
|
|
9884
9886
|
p(Y);
|
|
9885
9887
|
}, [u]);
|
|
9886
9888
|
const ne = (Y) => {
|
|
9887
|
-
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? y ? document.getElementById("workspace-filter").focus() : h(!1) : n ?
|
|
9889
|
+
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? y ? document.getElementById("workspace-filter").focus() : h(!1) : n ? C.current.querySelector("a").focus() : h(!1));
|
|
9888
9890
|
}, te = /* @__PURE__ */ e.createElement("div", { className: `${L}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9889
|
-
|
|
9891
|
+
tt,
|
|
9890
9892
|
{
|
|
9891
9893
|
size: "sm",
|
|
9892
9894
|
uniqueId: G.workspaceId,
|
|
@@ -9898,7 +9900,7 @@ const Z1 = () => {
|
|
|
9898
9900
|
{
|
|
9899
9901
|
size: "sm",
|
|
9900
9902
|
color: G.planTier,
|
|
9901
|
-
label:
|
|
9903
|
+
label: _1[G.planTier]
|
|
9902
9904
|
}
|
|
9903
9905
|
)), me = /* @__PURE__ */ e.createElement(
|
|
9904
9906
|
A,
|
|
@@ -9908,7 +9910,7 @@ const Z1 = () => {
|
|
|
9908
9910
|
className: `${L}__trigger-icon`
|
|
9909
9911
|
}
|
|
9910
9912
|
), ue = y && /* @__PURE__ */ e.createElement("div", { className: `${L}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9911
|
-
|
|
9913
|
+
b1,
|
|
9912
9914
|
{
|
|
9913
9915
|
hasClearButton: !0,
|
|
9914
9916
|
onClear: () => p(u),
|
|
@@ -9919,10 +9921,10 @@ const Z1 = () => {
|
|
|
9919
9921
|
showLabel: !1,
|
|
9920
9922
|
type: "search"
|
|
9921
9923
|
}
|
|
9922
|
-
)), J =
|
|
9924
|
+
)), J = E.map(
|
|
9923
9925
|
(Y, pe) => {
|
|
9924
|
-
const ye = `${L}__item`, Q = Y.isActive ? `${ye}--active` : null, ae = Y.isUnprivileged ? `${ye}--unprivileged` : null, He = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${L}__active-icon` }), we = Y.workspaceId, Le = Y.workspaceLink.type, be = Y.isUnprivileged ? null : (
|
|
9925
|
-
b.current[pe] =
|
|
9926
|
+
const ye = `${L}__item`, Q = Y.isActive ? `${ye}--active` : null, ae = Y.isUnprivileged ? `${ye}--unprivileged` : null, He = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${L}__active-icon` }), we = Y.workspaceId, Le = Y.workspaceLink.type, be = Y.isUnprivileged ? null : (Ke) => {
|
|
9927
|
+
b.current[pe] = Ke;
|
|
9926
9928
|
};
|
|
9927
9929
|
return /* @__PURE__ */ e.createElement(
|
|
9928
9930
|
"li",
|
|
@@ -9945,7 +9947,7 @@ const Z1 = () => {
|
|
|
9945
9947
|
onClick: () => h(!1)
|
|
9946
9948
|
}),
|
|
9947
9949
|
/* @__PURE__ */ e.createElement("div", { className: `${L}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
9948
|
-
|
|
9950
|
+
tt,
|
|
9949
9951
|
{
|
|
9950
9952
|
size: "sm",
|
|
9951
9953
|
uniqueId: Y.workspaceId,
|
|
@@ -9957,8 +9959,8 @@ const Z1 = () => {
|
|
|
9957
9959
|
)
|
|
9958
9960
|
);
|
|
9959
9961
|
}
|
|
9960
|
-
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${L}__create-link`, ref:
|
|
9961
|
-
|
|
9962
|
+
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${L}__create-link`, ref: C }, /* @__PURE__ */ e.createElement(
|
|
9963
|
+
We,
|
|
9962
9964
|
{
|
|
9963
9965
|
displayType: "icon-end",
|
|
9964
9966
|
iconName: "plus",
|
|
@@ -10028,7 +10030,7 @@ const Z1 = () => {
|
|
|
10028
10030
|
x ? K : _e
|
|
10029
10031
|
);
|
|
10030
10032
|
};
|
|
10031
|
-
|
|
10033
|
+
v1.propTypes = {
|
|
10032
10034
|
/**
|
|
10033
10035
|
* Aria label for the workspace selector menu.
|
|
10034
10036
|
*/
|
|
@@ -10101,7 +10103,7 @@ E1.propTypes = {
|
|
|
10101
10103
|
*/
|
|
10102
10104
|
className: t.string
|
|
10103
10105
|
};
|
|
10104
|
-
const
|
|
10106
|
+
const Z1 = (i) => {
|
|
10105
10107
|
var l = i, {
|
|
10106
10108
|
label: s,
|
|
10107
10109
|
type: n = "neutral",
|
|
@@ -10129,7 +10131,7 @@ const U1 = (i) => {
|
|
|
10129
10131
|
}),
|
|
10130
10132
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), s)
|
|
10131
10133
|
);
|
|
10132
|
-
},
|
|
10134
|
+
}, U1 = (u) => {
|
|
10133
10135
|
var m = u, {
|
|
10134
10136
|
disabled: s = !1,
|
|
10135
10137
|
id: n,
|
|
@@ -10147,11 +10149,11 @@ const U1 = (i) => {
|
|
|
10147
10149
|
"options",
|
|
10148
10150
|
"className"
|
|
10149
10151
|
]);
|
|
10150
|
-
const _ = "pds-segmented-button", g = "pds-is-disabled", d = ee([_]), [v, h] = R(a), $ = (
|
|
10151
|
-
h(
|
|
10152
|
+
const _ = "pds-segmented-button", g = "pds-is-disabled", d = ee([_]), [v, h] = R(a), $ = (E) => {
|
|
10153
|
+
h(E.target.value), r && r(E.target.value);
|
|
10152
10154
|
};
|
|
10153
10155
|
if ((() => {
|
|
10154
|
-
d.current = d.current.filter((
|
|
10156
|
+
d.current = d.current.filter((E) => E !== g);
|
|
10155
10157
|
})(), s && d.current.push(g), i.length >= 2 && i.length <= 6)
|
|
10156
10158
|
return /* @__PURE__ */ e.createElement(
|
|
10157
10159
|
"fieldset",
|
|
@@ -10159,7 +10161,7 @@ const U1 = (i) => {
|
|
|
10159
10161
|
className: [_, l != null ? l : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
10160
10162
|
}, o),
|
|
10161
10163
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
10162
|
-
/* @__PURE__ */ e.createElement("div", { className: `${_}__options` }, i.map((
|
|
10164
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__options` }, i.map((E, p) => /* @__PURE__ */ e.createElement(
|
|
10163
10165
|
"div",
|
|
10164
10166
|
{
|
|
10165
10167
|
className: `${_}__option`,
|
|
@@ -10172,23 +10174,23 @@ const U1 = (i) => {
|
|
|
10172
10174
|
type: "radio",
|
|
10173
10175
|
id: `${n}-option-${p}`,
|
|
10174
10176
|
name: n,
|
|
10175
|
-
value:
|
|
10177
|
+
value: E.value,
|
|
10176
10178
|
disabled: s,
|
|
10177
10179
|
onClick: $,
|
|
10178
|
-
defaultChecked: v ===
|
|
10180
|
+
defaultChecked: v === E.value
|
|
10179
10181
|
}
|
|
10180
10182
|
),
|
|
10181
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${p}` },
|
|
10183
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${p}` }, E.iconName && /* @__PURE__ */ e.createElement(
|
|
10182
10184
|
A,
|
|
10183
10185
|
{
|
|
10184
|
-
iconName:
|
|
10186
|
+
iconName: E.iconName,
|
|
10185
10187
|
iconSize: "sm",
|
|
10186
10188
|
className: `${_}__icon`
|
|
10187
10189
|
}
|
|
10188
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${_}__label-text` },
|
|
10190
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${_}__label-text` }, E.label))
|
|
10189
10191
|
)))
|
|
10190
10192
|
);
|
|
10191
|
-
},
|
|
10193
|
+
}, E1 = {
|
|
10192
10194
|
info: "Info",
|
|
10193
10195
|
warning: "Warning",
|
|
10194
10196
|
success: "Success",
|
|
@@ -10196,7 +10198,7 @@ const U1 = (i) => {
|
|
|
10196
10198
|
discovery: "Discovery",
|
|
10197
10199
|
code: "Code",
|
|
10198
10200
|
earlyAccess: "Early access"
|
|
10199
|
-
},
|
|
10201
|
+
}, G1 = (i) => {
|
|
10200
10202
|
var l = i, {
|
|
10201
10203
|
children: s,
|
|
10202
10204
|
title: n,
|
|
@@ -10216,7 +10218,7 @@ const U1 = (i) => {
|
|
|
10216
10218
|
discovery: "squareQuestion",
|
|
10217
10219
|
code: "squareTerminal",
|
|
10218
10220
|
earlyAccess: "leaf"
|
|
10219
|
-
}, _ = `${
|
|
10221
|
+
}, _ = `${E1[a]}: `;
|
|
10220
10222
|
return /* @__PURE__ */ e.createElement(
|
|
10221
10223
|
"div",
|
|
10222
10224
|
N({
|
|
@@ -10230,8 +10232,8 @@ const U1 = (i) => {
|
|
|
10230
10232
|
}
|
|
10231
10233
|
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, _), n && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, n), s && /* @__PURE__ */ e.createElement("div", { className: `${o}__main-content` }, s)))
|
|
10232
10234
|
);
|
|
10233
|
-
},
|
|
10234
|
-
(y,
|
|
10235
|
+
}, C1 = Ue(
|
|
10236
|
+
(y, C) => {
|
|
10235
10237
|
var w = y, {
|
|
10236
10238
|
checked: s,
|
|
10237
10239
|
defaultChecked: n,
|
|
@@ -10250,7 +10252,7 @@ const U1 = (i) => {
|
|
|
10250
10252
|
required: h,
|
|
10251
10253
|
validationMessage: $,
|
|
10252
10254
|
validationStatus: f,
|
|
10253
|
-
value:
|
|
10255
|
+
value: E,
|
|
10254
10256
|
className: p
|
|
10255
10257
|
} = w, b = S(w, [
|
|
10256
10258
|
"checked",
|
|
@@ -10314,13 +10316,13 @@ const U1 = (i) => {
|
|
|
10314
10316
|
/* @__PURE__ */ e.createElement("div", { className: `${x}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10315
10317
|
"input",
|
|
10316
10318
|
N(ve(N({
|
|
10317
|
-
ref:
|
|
10319
|
+
ref: C,
|
|
10318
10320
|
id: c,
|
|
10319
10321
|
name: m,
|
|
10320
10322
|
type: "checkbox",
|
|
10321
10323
|
checked: D ? s : O,
|
|
10322
10324
|
"aria-checked": r ? "mixed" : F ? "true" : "false"
|
|
10323
|
-
},
|
|
10325
|
+
}, E ? { value: E } : {}), {
|
|
10324
10326
|
disabled: a,
|
|
10325
10327
|
required: h,
|
|
10326
10328
|
onBlur: g,
|
|
@@ -10335,9 +10337,9 @@ const U1 = (i) => {
|
|
|
10335
10337
|
className: [B, T, j].join(" ").trim().replace(/\s+/g, " ")
|
|
10336
10338
|
},
|
|
10337
10339
|
/* @__PURE__ */ e.createElement(U, null)
|
|
10338
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${x}__label-text` }, o, " ", h && !a && /* @__PURE__ */ e.createElement(
|
|
10340
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${x}__label-text` }, o, " ", h && !a && /* @__PURE__ */ e.createElement(At, null)))),
|
|
10339
10341
|
M && /* @__PURE__ */ e.createElement(
|
|
10340
|
-
|
|
10342
|
+
at,
|
|
10341
10343
|
{
|
|
10342
10344
|
id: c,
|
|
10343
10345
|
message: M,
|
|
@@ -10348,7 +10350,7 @@ const U1 = (i) => {
|
|
|
10348
10350
|
)
|
|
10349
10351
|
);
|
|
10350
10352
|
}
|
|
10351
|
-
),
|
|
10353
|
+
), K1 = (v) => {
|
|
10352
10354
|
var h = v, {
|
|
10353
10355
|
children: s,
|
|
10354
10356
|
disabled: n = !1,
|
|
@@ -10376,16 +10378,16 @@ const U1 = (i) => {
|
|
|
10376
10378
|
"validationStatus",
|
|
10377
10379
|
"className"
|
|
10378
10380
|
]);
|
|
10379
|
-
const $ = r ? { width: `${r / 16}rem` } : null, f = "pds-checkbox-group",
|
|
10381
|
+
const $ = r ? { width: `${r / 16}rem` } : null, f = "pds-checkbox-group", E = n ? he.disabled : null, p = o && !n ? he.required : null, b = _ === "error" ? he.error : null, C = _ === "success" ? he.success : null, y = m || l;
|
|
10380
10382
|
return /* @__PURE__ */ e.createElement(
|
|
10381
10383
|
"div",
|
|
10382
10384
|
N({
|
|
10383
10385
|
className: [
|
|
10384
10386
|
f,
|
|
10385
|
-
|
|
10387
|
+
E,
|
|
10386
10388
|
p,
|
|
10387
10389
|
b,
|
|
10388
|
-
|
|
10390
|
+
C,
|
|
10389
10391
|
g != null ? g : ""
|
|
10390
10392
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
10391
10393
|
style: r ? $ : null
|
|
@@ -10402,7 +10404,7 @@ const U1 = (i) => {
|
|
|
10402
10404
|
}
|
|
10403
10405
|
), /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, s)),
|
|
10404
10406
|
y && /* @__PURE__ */ e.createElement(
|
|
10405
|
-
|
|
10407
|
+
at,
|
|
10406
10408
|
{
|
|
10407
10409
|
id: c,
|
|
10408
10410
|
message: y,
|
|
@@ -10412,7 +10414,7 @@ const U1 = (i) => {
|
|
|
10412
10414
|
}
|
|
10413
10415
|
)
|
|
10414
10416
|
);
|
|
10415
|
-
},
|
|
10417
|
+
}, Y1 = ($) => {
|
|
10416
10418
|
var f = $, {
|
|
10417
10419
|
disabled: s = !1,
|
|
10418
10420
|
fieldsetProps: n,
|
|
@@ -10444,7 +10446,7 @@ const U1 = (i) => {
|
|
|
10444
10446
|
"validationStatus",
|
|
10445
10447
|
"className"
|
|
10446
10448
|
]);
|
|
10447
|
-
const
|
|
10449
|
+
const E = c ? { width: `${c / 16}rem` } : null, p = "pds-checkbox-group", b = s ? he.disabled : null, C = m && !s ? he.required : null, y = d === "error" ? he.error : null, w = d === "success" ? he.success : null, z = g || i;
|
|
10448
10450
|
u.map((k) => {
|
|
10449
10451
|
k.id || (k.id = k.value);
|
|
10450
10452
|
});
|
|
@@ -10470,12 +10472,12 @@ const U1 = (i) => {
|
|
|
10470
10472
|
className: [
|
|
10471
10473
|
p,
|
|
10472
10474
|
b,
|
|
10473
|
-
|
|
10475
|
+
C,
|
|
10474
10476
|
y,
|
|
10475
10477
|
w,
|
|
10476
10478
|
v != null ? v : ""
|
|
10477
10479
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
10478
|
-
style: c ?
|
|
10480
|
+
style: c ? E : null
|
|
10479
10481
|
}, h),
|
|
10480
10482
|
/* @__PURE__ */ e.createElement("fieldset", N({ className: `${p}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
10481
10483
|
_t,
|
|
@@ -10488,7 +10490,7 @@ const U1 = (i) => {
|
|
|
10488
10490
|
showLabel: _
|
|
10489
10491
|
}
|
|
10490
10492
|
), /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, u.map((k) => /* @__PURE__ */ e.createElement(
|
|
10491
|
-
|
|
10493
|
+
C1,
|
|
10492
10494
|
{
|
|
10493
10495
|
key: k.id,
|
|
10494
10496
|
checked: k.checked,
|
|
@@ -10503,7 +10505,7 @@ const U1 = (i) => {
|
|
|
10503
10505
|
}
|
|
10504
10506
|
)))),
|
|
10505
10507
|
z && /* @__PURE__ */ e.createElement(
|
|
10506
|
-
|
|
10508
|
+
at,
|
|
10507
10509
|
{
|
|
10508
10510
|
id: a,
|
|
10509
10511
|
message: z,
|
|
@@ -10513,7 +10515,7 @@ const U1 = (i) => {
|
|
|
10513
10515
|
}
|
|
10514
10516
|
)
|
|
10515
10517
|
);
|
|
10516
|
-
},
|
|
10518
|
+
}, X1 = (c) => {
|
|
10517
10519
|
var r = c, {
|
|
10518
10520
|
children: s,
|
|
10519
10521
|
className: n
|
|
@@ -10521,14 +10523,28 @@ const U1 = (i) => {
|
|
|
10521
10523
|
"children",
|
|
10522
10524
|
"className"
|
|
10523
10525
|
]);
|
|
10526
|
+
var $, f, E, p;
|
|
10527
|
+
const i = "pds-input-group", l = [], o = ["TextInput", "Select"], u = ["Button", "IconButton"];
|
|
10528
|
+
o.includes(s[0].type.displayName) && l.push(s[0]), u.includes(s[1].type.displayName) && l.push(s[1]);
|
|
10529
|
+
const m = ($ = s[0].props.id) != null ? $ : null, _ = (f = s[0].props.message) != null ? f : null, g = (E = s[0].props.validationMessage) != null ? E : null, d = (p = s[0].props.validationStatus) != null ? p : null, v = g || _, h = v ? `${i}--has-message` : null;
|
|
10524
10530
|
return /* @__PURE__ */ e.createElement(
|
|
10525
10531
|
"div",
|
|
10526
10532
|
N({
|
|
10527
|
-
className: [
|
|
10533
|
+
className: Oe([i, h, n != null ? n : ""])
|
|
10528
10534
|
}, a),
|
|
10529
|
-
|
|
10535
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__inner` }, l),
|
|
10536
|
+
v && /* @__PURE__ */ e.createElement(
|
|
10537
|
+
at,
|
|
10538
|
+
{
|
|
10539
|
+
id: m,
|
|
10540
|
+
message: v,
|
|
10541
|
+
hasValidationMessage: !!g,
|
|
10542
|
+
validationMessageHasDecorators: !1,
|
|
10543
|
+
validationStatus: d
|
|
10544
|
+
}
|
|
10545
|
+
)
|
|
10530
10546
|
);
|
|
10531
|
-
},
|
|
10547
|
+
}, $1 = ({ toggleStatusLabel: s, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(qt, { label: s }), /* @__PURE__ */ e.createElement(
|
|
10532
10548
|
"label",
|
|
10533
10549
|
{
|
|
10534
10550
|
htmlFor: n,
|
|
@@ -10536,7 +10552,7 @@ const U1 = (i) => {
|
|
|
10536
10552
|
"aria-hidden": "true"
|
|
10537
10553
|
},
|
|
10538
10554
|
s
|
|
10539
|
-
)),
|
|
10555
|
+
)), y1 = ({ toggleStatusLabel: s }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(qt, { label: s }), /* @__PURE__ */ e.createElement(
|
|
10540
10556
|
"span",
|
|
10541
10557
|
{
|
|
10542
10558
|
className: "pds-switch__input-decor",
|
|
@@ -10552,8 +10568,8 @@ const U1 = (i) => {
|
|
|
10552
10568
|
"aria-hidden": "true"
|
|
10553
10569
|
},
|
|
10554
10570
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "sm" })
|
|
10555
|
-
)),
|
|
10556
|
-
(p,
|
|
10571
|
+
)), Q1 = Ue(
|
|
10572
|
+
(p, E) => {
|
|
10557
10573
|
var b = p, {
|
|
10558
10574
|
checked: s,
|
|
10559
10575
|
defaultChecked: n,
|
|
@@ -10589,12 +10605,12 @@ const U1 = (i) => {
|
|
|
10589
10605
|
"showStatusLabel",
|
|
10590
10606
|
"className"
|
|
10591
10607
|
]);
|
|
10592
|
-
const
|
|
10608
|
+
const C = vs(i), y = "pds-switch", w = a ? he.disabled : null, z = d && !a ? he.required : null, x = typeof s != "undefined", L = o == "below", V = o == "right", H = !x && n ? n : !1, [I, k] = R(H), M = s || I ? g : m, D = (B) => {
|
|
10593
10609
|
x || k(B.target.checked), _ && _(B);
|
|
10594
10610
|
}, W = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
10595
10611
|
"input",
|
|
10596
10612
|
N({
|
|
10597
|
-
ref:
|
|
10613
|
+
ref: E,
|
|
10598
10614
|
id: c,
|
|
10599
10615
|
name: c,
|
|
10600
10616
|
type: "checkbox",
|
|
@@ -10606,7 +10622,7 @@ const U1 = (i) => {
|
|
|
10606
10622
|
checked: s !== void 0 ? s : I,
|
|
10607
10623
|
"aria-describedby": u ? `${c}__message` : null
|
|
10608
10624
|
}, r)
|
|
10609
|
-
), !h && /* @__PURE__ */ e.createElement(
|
|
10625
|
+
), !h && /* @__PURE__ */ e.createElement(y1, { toggleStatusLabel: M }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), h && /* @__PURE__ */ e.createElement($1, { toggleStatusLabel: M, id: c })), O = /* @__PURE__ */ e.createElement(
|
|
10610
10626
|
_t,
|
|
10611
10627
|
{
|
|
10612
10628
|
id: c,
|
|
@@ -10614,13 +10630,13 @@ const U1 = (i) => {
|
|
|
10614
10630
|
showLabel: v,
|
|
10615
10631
|
required: d,
|
|
10616
10632
|
disabled: a,
|
|
10617
|
-
className:
|
|
10633
|
+
className: Oe([
|
|
10618
10634
|
"pds-input-label--disable-click",
|
|
10619
10635
|
u ? "" : "pds-input-label--switch-top-message"
|
|
10620
10636
|
])
|
|
10621
10637
|
}
|
|
10622
10638
|
), q = u && /* @__PURE__ */ e.createElement(
|
|
10623
|
-
|
|
10639
|
+
at,
|
|
10624
10640
|
{
|
|
10625
10641
|
id: c,
|
|
10626
10642
|
message: u,
|
|
@@ -10633,7 +10649,7 @@ const U1 = (i) => {
|
|
|
10633
10649
|
return L ? F = /* @__PURE__ */ e.createElement(e.Fragment, null, O, q, W) : V && (Z = "pds-switch--placement-right", F = u ? /* @__PURE__ */ e.createElement(e.Fragment, null, O, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, q, /* @__PURE__ */ e.createElement("div", null, W))) : /* @__PURE__ */ e.createElement(
|
|
10634
10650
|
"div",
|
|
10635
10651
|
{
|
|
10636
|
-
className:
|
|
10652
|
+
className: Oe([
|
|
10637
10653
|
"pds-switch__label-switch-right",
|
|
10638
10654
|
"pds-switch__label-switch-right--label-only"
|
|
10639
10655
|
])
|
|
@@ -10643,7 +10659,7 @@ const U1 = (i) => {
|
|
|
10643
10659
|
)), /* @__PURE__ */ e.createElement(
|
|
10644
10660
|
"div",
|
|
10645
10661
|
N({
|
|
10646
|
-
className:
|
|
10662
|
+
className: Oe([
|
|
10647
10663
|
he.base,
|
|
10648
10664
|
y,
|
|
10649
10665
|
w,
|
|
@@ -10651,12 +10667,12 @@ const U1 = (i) => {
|
|
|
10651
10667
|
Z,
|
|
10652
10668
|
$
|
|
10653
10669
|
]),
|
|
10654
|
-
style: i ?
|
|
10670
|
+
style: i ? C : null
|
|
10655
10671
|
}, f),
|
|
10656
10672
|
F
|
|
10657
10673
|
);
|
|
10658
10674
|
}
|
|
10659
|
-
),
|
|
10675
|
+
), J1 = (m) => {
|
|
10660
10676
|
var _ = m, {
|
|
10661
10677
|
ariaLabel: s,
|
|
10662
10678
|
children: n,
|
|
@@ -10683,12 +10699,12 @@ const U1 = (i) => {
|
|
|
10683
10699
|
}, [c]), se(() => {
|
|
10684
10700
|
r(v);
|
|
10685
10701
|
}, [v]);
|
|
10686
|
-
const { refs: $, context: f, floatingStyles:
|
|
10702
|
+
const { refs: $, context: f, floatingStyles: E } = Ve({
|
|
10687
10703
|
open: v,
|
|
10688
10704
|
onOpenChange: h
|
|
10689
10705
|
}), p = nt(f), b = Se(f, {
|
|
10690
10706
|
outsidePressEvent: "mousedown"
|
|
10691
|
-
}),
|
|
10707
|
+
}), C = Ie(f), { getFloatingProps: y } = Te([p, b, C]), { isMounted: w, styles: z } = Ge(f, {
|
|
10692
10708
|
duration: {
|
|
10693
10709
|
open: 300,
|
|
10694
10710
|
close: 300
|
|
@@ -10707,10 +10723,10 @@ const U1 = (i) => {
|
|
|
10707
10723
|
}
|
|
10708
10724
|
});
|
|
10709
10725
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, w && /* @__PURE__ */ e.createElement(
|
|
10710
|
-
|
|
10726
|
+
Fs,
|
|
10711
10727
|
{
|
|
10712
10728
|
lockScroll: !0,
|
|
10713
|
-
style: ve(N({},
|
|
10729
|
+
style: ve(N({}, E), {
|
|
10714
10730
|
background: "var(--pds-color-overlay)",
|
|
10715
10731
|
transition: "var(--pds-animation-reveal-transition)",
|
|
10716
10732
|
zIndex: "var(--pds-z-index-modal)"
|
|
@@ -10723,7 +10739,7 @@ const U1 = (i) => {
|
|
|
10723
10739
|
"aria-label": s || l
|
|
10724
10740
|
}, y()), {
|
|
10725
10741
|
className: [g, d, o].join(" ").trim().replace(/\s+/g, " "),
|
|
10726
|
-
style: ve(N(N({},
|
|
10742
|
+
style: ve(N(N({}, E), z), {
|
|
10727
10743
|
position: "relative"
|
|
10728
10744
|
})
|
|
10729
10745
|
}), u),
|
|
@@ -10741,12 +10757,12 @@ const U1 = (i) => {
|
|
|
10741
10757
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, n)
|
|
10742
10758
|
))
|
|
10743
10759
|
));
|
|
10744
|
-
},
|
|
10760
|
+
}, It = {
|
|
10745
10761
|
info: "circleInfo",
|
|
10746
10762
|
warning: "triangleExclamation",
|
|
10747
10763
|
success: "circleCheck",
|
|
10748
10764
|
critical: "diamondExclamation"
|
|
10749
|
-
},
|
|
10765
|
+
}, ea = (l) => {
|
|
10750
10766
|
var o = l, {
|
|
10751
10767
|
title: s,
|
|
10752
10768
|
secondaryText: n,
|
|
@@ -10783,18 +10799,18 @@ const U1 = (i) => {
|
|
|
10783
10799
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${u}__icon ${u}__icon-${a}` }, a === "working" ? /* @__PURE__ */ e.createElement(vt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
10784
10800
|
A,
|
|
10785
10801
|
{
|
|
10786
|
-
iconName: `${a}` in
|
|
10802
|
+
iconName: `${a}` in It ? It[a] : It.info,
|
|
10787
10803
|
iconSize: "md"
|
|
10788
10804
|
}
|
|
10789
10805
|
)), /* @__PURE__ */ e.createElement("div", { className: `${u}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, v), s && /* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, s), /* @__PURE__ */ e.createElement("div", { className: `${u}__secondaryText` }, n)))
|
|
10790
10806
|
);
|
|
10791
|
-
},
|
|
10807
|
+
}, Tt = {
|
|
10792
10808
|
info: "circleInfo",
|
|
10793
10809
|
warning: "triangleExclamation",
|
|
10794
10810
|
success: "circleCheck",
|
|
10795
10811
|
critical: "diamondExclamation",
|
|
10796
10812
|
discovery: "squareQuestion"
|
|
10797
|
-
},
|
|
10813
|
+
}, ta = (_) => {
|
|
10798
10814
|
var g = _, {
|
|
10799
10815
|
dismissLabel: s = "Dismiss",
|
|
10800
10816
|
id: n,
|
|
@@ -10831,11 +10847,11 @@ const U1 = (i) => {
|
|
|
10831
10847
|
discovery: `${v}--discovery`,
|
|
10832
10848
|
dismissing: `${v}--dismissing`,
|
|
10833
10849
|
dismissed: `${v}--dismissed`
|
|
10834
|
-
}, $ = i ? `${v}--hasTitle` : null,
|
|
10835
|
-
d.current.addEventListener("animationend",
|
|
10850
|
+
}, $ = i ? `${v}--hasTitle` : null, E = ["critical", "warning"].includes(l) ? "alert" : "status", p = `${o[l]}: `, b = () => {
|
|
10851
|
+
d.current.addEventListener("animationend", C, {
|
|
10836
10852
|
once: !0
|
|
10837
10853
|
});
|
|
10838
|
-
},
|
|
10854
|
+
}, C = (w) => {
|
|
10839
10855
|
c(w, n);
|
|
10840
10856
|
}, y = () => {
|
|
10841
10857
|
b(), d.current.classList.toggle(h.dismissing), setTimeout(() => {
|
|
@@ -10848,12 +10864,12 @@ const U1 = (i) => {
|
|
|
10848
10864
|
className: [v, h[l], $, u != null ? u : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
10849
10865
|
id: n,
|
|
10850
10866
|
ref: d,
|
|
10851
|
-
role:
|
|
10867
|
+
role: E
|
|
10852
10868
|
}, m),
|
|
10853
10869
|
/* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
10854
10870
|
A,
|
|
10855
10871
|
{
|
|
10856
|
-
iconName: `${l}` in
|
|
10872
|
+
iconName: `${l}` in Tt ? Tt[l] : Tt.info,
|
|
10857
10873
|
iconSize: "md"
|
|
10858
10874
|
}
|
|
10859
10875
|
)), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, i), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, r))),
|
|
@@ -10868,7 +10884,7 @@ const U1 = (i) => {
|
|
|
10868
10884
|
/* @__PURE__ */ e.createElement(A, { iconSize: "md", iconName: "xmark" })
|
|
10869
10885
|
)
|
|
10870
10886
|
);
|
|
10871
|
-
},
|
|
10887
|
+
}, sa = (l) => {
|
|
10872
10888
|
var o = l, {
|
|
10873
10889
|
children: s,
|
|
10874
10890
|
hasStatusIndicator: n = !1,
|
|
@@ -10891,7 +10907,7 @@ const U1 = (i) => {
|
|
|
10891
10907
|
n && a && /* @__PURE__ */ e.createElement("span", { className: m }),
|
|
10892
10908
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, s)
|
|
10893
10909
|
);
|
|
10894
|
-
},
|
|
10910
|
+
}, je = 8, as = 14, N1 = 6, na = (v) => {
|
|
10895
10911
|
var h = v, {
|
|
10896
10912
|
content: s,
|
|
10897
10913
|
customTrigger: n = !1,
|
|
@@ -10928,38 +10944,38 @@ const U1 = (i) => {
|
|
|
10928
10944
|
}, [m]), se(() => {
|
|
10929
10945
|
_($);
|
|
10930
10946
|
}, [$]);
|
|
10931
|
-
const
|
|
10947
|
+
const E = typeof n, p = "pds-popover", b = [
|
|
10932
10948
|
`${p}__trigger-custom`,
|
|
10933
|
-
|
|
10934
|
-
].join(" ").trim().replace(/\s+/g, " "),
|
|
10949
|
+
E === "string" ? `${p}__trigger-text` : ""
|
|
10950
|
+
].join(" ").trim().replace(/\s+/g, " "), C = n ? c : 0, y = ee(null), { refs: w, floatingStyles: z, context: x, middlewareData: L } = Ve({
|
|
10935
10951
|
placement: i,
|
|
10936
10952
|
open: $,
|
|
10937
10953
|
onOpenChange(G) {
|
|
10938
10954
|
f(G), G || r();
|
|
10939
10955
|
},
|
|
10940
10956
|
middleware: [
|
|
10941
|
-
is(
|
|
10957
|
+
is(je + N1 + C),
|
|
10942
10958
|
os({ padding: 8 }),
|
|
10943
10959
|
ds({ padding: 8 }),
|
|
10944
|
-
|
|
10960
|
+
Ws({ element: y })
|
|
10945
10961
|
],
|
|
10946
|
-
whileElementsMounted:
|
|
10962
|
+
whileElementsMounted: Re
|
|
10947
10963
|
}), V = () => {
|
|
10948
10964
|
f(!1), r && r();
|
|
10949
10965
|
}, H = nt(x), I = Se(x), k = Ie(x), { getReferenceProps: M, getFloatingProps: D } = Te([
|
|
10950
10966
|
H,
|
|
10951
10967
|
I,
|
|
10952
10968
|
k
|
|
10953
|
-
]), W = (T = (B = L.arrow) == null ? void 0 : B.x) != null ? T : 0, O = (U = (j = L.arrow) == null ? void 0 : j.y) != null ? U : 0, q = W + as / 2, F = O +
|
|
10969
|
+
]), W = (T = (B = L.arrow) == null ? void 0 : B.x) != null ? T : 0, O = (U = (j = L.arrow) == null ? void 0 : j.y) != null ? U : 0, q = W + as / 2, F = O + je, { isMounted: Z } = Ge(x, {
|
|
10954
10970
|
initial: {
|
|
10955
10971
|
transform: "scale(0)"
|
|
10956
10972
|
},
|
|
10957
10973
|
common: ({ side: G }) => ({
|
|
10958
10974
|
transformOrigin: {
|
|
10959
|
-
top: `${q}px calc(100% + ${
|
|
10960
|
-
bottom: `${q}px ${-
|
|
10961
|
-
left: `calc(100% + ${
|
|
10962
|
-
right: `${-
|
|
10975
|
+
top: `${q}px calc(100% + ${je}px)`,
|
|
10976
|
+
bottom: `${q}px ${-je}px`,
|
|
10977
|
+
left: `calc(100% + ${je}px) ${F}px`,
|
|
10978
|
+
right: `${-je}px ${F}px`
|
|
10963
10979
|
}[G]
|
|
10964
10980
|
})
|
|
10965
10981
|
});
|
|
@@ -10991,11 +11007,11 @@ const U1 = (i) => {
|
|
|
10991
11007
|
style: z
|
|
10992
11008
|
}, D()),
|
|
10993
11009
|
/* @__PURE__ */ e.createElement(
|
|
10994
|
-
|
|
11010
|
+
Zs,
|
|
10995
11011
|
{
|
|
10996
11012
|
ref: y,
|
|
10997
11013
|
context: x,
|
|
10998
|
-
height:
|
|
11014
|
+
height: je,
|
|
10999
11015
|
width: as,
|
|
11000
11016
|
tipRadius: 0,
|
|
11001
11017
|
fill: "var(--pds-color-background-default)",
|
|
@@ -11007,7 +11023,7 @@ const U1 = (i) => {
|
|
|
11007
11023
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, l), s && /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, s), a && /* @__PURE__ */ e.createElement("button", { onClick: V, className: `${p}__close` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"), /* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "lg" })))
|
|
11008
11024
|
))
|
|
11009
11025
|
);
|
|
11010
|
-
},
|
|
11026
|
+
}, aa = (l) => {
|
|
11011
11027
|
var o = l, {
|
|
11012
11028
|
attribution: s,
|
|
11013
11029
|
image: n,
|
|
@@ -11036,7 +11052,7 @@ const U1 = (i) => {
|
|
|
11036
11052
|
c
|
|
11037
11053
|
), /* @__PURE__ */ e.createElement("div", { className: `${u}__attribution` }, /* @__PURE__ */ e.createElement("span", { className: `${u}__name` }, s.name), s.title && /* @__PURE__ */ e.createElement("span", { className: `${u}__title` }, ", ", s.title), s.org && /* @__PURE__ */ e.createElement("span", { className: `${u}__org` }, ", ", s.org))), /* @__PURE__ */ e.createElement("div", { className: `${u}__icon ${u}__icon--after` }, /* @__PURE__ */ e.createElement(A, { iconName: "quotesRight", iconSize: "4xl" })))
|
|
11038
11054
|
);
|
|
11039
|
-
},
|
|
11055
|
+
}, la = (r) => {
|
|
11040
11056
|
var i = r, {
|
|
11041
11057
|
label: s = null,
|
|
11042
11058
|
type: n = "neutral",
|
|
@@ -11085,10 +11101,10 @@ let ls = [
|
|
|
11085
11101
|
"color-19",
|
|
11086
11102
|
"color-20"
|
|
11087
11103
|
];
|
|
11088
|
-
const
|
|
11104
|
+
const w1 = (s) => {
|
|
11089
11105
|
const n = parseInt(rs(s), 16);
|
|
11090
11106
|
return ls[n % ls.length];
|
|
11091
|
-
},
|
|
11107
|
+
}, k1 = (s, n) => s.length > n ? s.slice(0, n) + " ..." : s, ca = (u) => {
|
|
11092
11108
|
var m = u, {
|
|
11093
11109
|
linkContent: s,
|
|
11094
11110
|
isRemovable: n,
|
|
@@ -11106,18 +11122,18 @@ const k1 = (s) => {
|
|
|
11106
11122
|
"tagLabel",
|
|
11107
11123
|
"className"
|
|
11108
11124
|
]);
|
|
11109
|
-
const [_, g] = R(!0), d = "pds-tag", v = r ? `${d}--${r}` : `${d}--${
|
|
11125
|
+
const [_, g] = R(!0), d = "pds-tag", v = r ? `${d}--${r}` : `${d}--${w1(i)}`, h = _ ? null : "pds-tag--hide", $ = () => {
|
|
11110
11126
|
g((b) => !b);
|
|
11111
11127
|
};
|
|
11112
|
-
let f,
|
|
11113
|
-
return s && !n &&
|
|
11128
|
+
let f, E, p;
|
|
11129
|
+
return s && !n && qs(s) ? (f = s.type, E = s.props.href ? "href" : "to", p = E === "href" ? s.props.href : s.props.to) : (f = "span", E = null, p = null), /* @__PURE__ */ e.createElement(
|
|
11114
11130
|
f,
|
|
11115
11131
|
N({
|
|
11116
|
-
href:
|
|
11117
|
-
to:
|
|
11132
|
+
href: E === "href" ? p : null,
|
|
11133
|
+
to: E === "to" ? p : null,
|
|
11118
11134
|
className: [d, v, h, l].join(" ").trim().replace(/\s+/g, " ")
|
|
11119
11135
|
}, o),
|
|
11120
|
-
/* @__PURE__ */ e.createElement("span", { className: `${d}__label`, title: i },
|
|
11136
|
+
/* @__PURE__ */ e.createElement("span", { className: `${d}__label`, title: i }, k1(i, 20)),
|
|
11121
11137
|
n ? /* @__PURE__ */ e.createElement(
|
|
11122
11138
|
"button",
|
|
11123
11139
|
{
|
|
@@ -11138,7 +11154,7 @@ const k1 = (s) => {
|
|
|
11138
11154
|
)
|
|
11139
11155
|
) : null
|
|
11140
11156
|
);
|
|
11141
|
-
},
|
|
11157
|
+
}, H1 = (_) => {
|
|
11142
11158
|
var g = _, {
|
|
11143
11159
|
alignContent: s,
|
|
11144
11160
|
alignItems: n,
|
|
@@ -11160,7 +11176,7 @@ const k1 = (s) => {
|
|
|
11160
11176
|
"children",
|
|
11161
11177
|
"className"
|
|
11162
11178
|
]);
|
|
11163
|
-
const d = "pds-flex", v = l ? `${d}-gap--${l}` : null, h = a ? `${d}-direction--${a}` : null, $ = c ? `${d}--${c}` : null, f = r ? `${d}-justify--${r}` : null,
|
|
11179
|
+
const d = "pds-flex", v = l ? `${d}-gap--${l}` : null, h = a ? `${d}-direction--${a}` : null, $ = c ? `${d}--${c}` : null, f = r ? `${d}-justify--${r}` : null, E = n ? `${d}-align-items--${n}` : null, p = s ? `${d}-align-content--${s}` : null, b = i && i !== "same" ? `${d}-mobile--${i}` : null;
|
|
11164
11180
|
return /* @__PURE__ */ e.createElement(
|
|
11165
11181
|
"div",
|
|
11166
11182
|
N({
|
|
@@ -11170,7 +11186,7 @@ const k1 = (s) => {
|
|
|
11170
11186
|
h,
|
|
11171
11187
|
$,
|
|
11172
11188
|
f,
|
|
11173
|
-
|
|
11189
|
+
E,
|
|
11174
11190
|
p,
|
|
11175
11191
|
b,
|
|
11176
11192
|
u
|
|
@@ -11179,7 +11195,7 @@ const k1 = (s) => {
|
|
|
11179
11195
|
o
|
|
11180
11196
|
);
|
|
11181
11197
|
};
|
|
11182
|
-
|
|
11198
|
+
H1.propTypes = {
|
|
11183
11199
|
/**
|
|
11184
11200
|
* Align content
|
|
11185
11201
|
*/
|
|
@@ -11228,10 +11244,10 @@ L1.propTypes = {
|
|
|
11228
11244
|
*/
|
|
11229
11245
|
className: t.string
|
|
11230
11246
|
};
|
|
11231
|
-
const
|
|
11247
|
+
const ra = ({
|
|
11232
11248
|
children: s,
|
|
11233
11249
|
mobileMenuMaxWidth: n = 640
|
|
11234
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
11250
|
+
}) => /* @__PURE__ */ e.createElement(Cn, { mobileMenuMaxWidth: n }, s), L1 = (o) => {
|
|
11235
11251
|
var u = o, {
|
|
11236
11252
|
children: s,
|
|
11237
11253
|
gridGap: n = "standard",
|
|
@@ -11258,8 +11274,8 @@ const i2 = ({
|
|
|
11258
11274
|
const z = w.props.slot;
|
|
11259
11275
|
z && ($[z] ? $[z].push(w) : $[z] = [w]);
|
|
11260
11276
|
});
|
|
11261
|
-
let f = "pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10",
|
|
11262
|
-
r === "narrow" && (f = "pds-grid-item--md-9 pds-grid-item--lg-10",
|
|
11277
|
+
let f = "pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", E = "pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
11278
|
+
r === "narrow" && (f = "pds-grid-item--md-9 pds-grid-item--lg-10", E = "pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (f = "pds-grid-item--md-7 pds-grid-item--lg-8", E = "pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
11263
11279
|
const p = /* @__PURE__ */ e.createElement(
|
|
11264
11280
|
"div",
|
|
11265
11281
|
{
|
|
@@ -11271,12 +11287,12 @@ const i2 = ({
|
|
|
11271
11287
|
"div",
|
|
11272
11288
|
{
|
|
11273
11289
|
key: "2",
|
|
11274
|
-
className: `${g}__side pds-grid-item pds-grid-item--sm-4 ${
|
|
11290
|
+
className: `${g}__side pds-grid-item pds-grid-item--sm-4 ${E}`
|
|
11275
11291
|
},
|
|
11276
11292
|
$.sidebar
|
|
11277
|
-
),
|
|
11293
|
+
), C = m < 641;
|
|
11278
11294
|
let y = [];
|
|
11279
|
-
return a === "left" && c === "before" && (y = [b, p]), a === "left" && c === "after" && (y =
|
|
11295
|
+
return a === "left" && c === "before" && (y = [b, p]), a === "left" && c === "after" && (y = C ? [p, b] : [b, p]), a === "right" && c === "before" && (y = C ? [b, p] : [p, b]), a === "right" && c === "after" && (y = [p, b]), /* @__PURE__ */ e.createElement(
|
|
11280
11296
|
"div",
|
|
11281
11297
|
N({
|
|
11282
11298
|
className: [g, d, v, i].join(" ").trim().replace(/\s+/g, " ")
|
|
@@ -11284,7 +11300,7 @@ const i2 = ({
|
|
|
11284
11300
|
y
|
|
11285
11301
|
);
|
|
11286
11302
|
};
|
|
11287
|
-
|
|
11303
|
+
L1.propTypes = {
|
|
11288
11304
|
/**
|
|
11289
11305
|
* Layout content.
|
|
11290
11306
|
*/
|
|
@@ -11310,7 +11326,7 @@ z1.propTypes = {
|
|
|
11310
11326
|
*/
|
|
11311
11327
|
className: t.string
|
|
11312
11328
|
};
|
|
11313
|
-
const
|
|
11329
|
+
const z1 = (c) => {
|
|
11314
11330
|
var r = c, { children: s, className: n } = r, a = S(r, ["children", "className"]);
|
|
11315
11331
|
const i = {};
|
|
11316
11332
|
e.Children.forEach(s, (d) => {
|
|
@@ -11324,7 +11340,7 @@ const M1 = (c) => {
|
|
|
11324
11340
|
);
|
|
11325
11341
|
const g = "pds-stepper-layout";
|
|
11326
11342
|
return /* @__PURE__ */ e.createElement(
|
|
11327
|
-
|
|
11343
|
+
et,
|
|
11328
11344
|
N({
|
|
11329
11345
|
className: [g, n].join(" ").trim().replace(/\s+/g, " ")
|
|
11330
11346
|
}, a),
|
|
@@ -11339,7 +11355,7 @@ const M1 = (c) => {
|
|
|
11339
11355
|
o && /* @__PURE__ */ e.createElement("div", { className: `${g}__form-container` }, o)
|
|
11340
11356
|
);
|
|
11341
11357
|
};
|
|
11342
|
-
|
|
11358
|
+
z1.propTypes = {
|
|
11343
11359
|
/**
|
|
11344
11360
|
* Layout content.
|
|
11345
11361
|
*/
|
|
@@ -11349,7 +11365,7 @@ M1.propTypes = {
|
|
|
11349
11365
|
*/
|
|
11350
11366
|
className: t.string
|
|
11351
11367
|
};
|
|
11352
|
-
const
|
|
11368
|
+
const M1 = (r) => {
|
|
11353
11369
|
var i = r, {
|
|
11354
11370
|
children: s,
|
|
11355
11371
|
gridGap: n = "standard",
|
|
@@ -11384,7 +11400,7 @@ const x1 = (r) => {
|
|
|
11384
11400
|
))
|
|
11385
11401
|
);
|
|
11386
11402
|
};
|
|
11387
|
-
|
|
11403
|
+
M1.propTypes = {
|
|
11388
11404
|
/**
|
|
11389
11405
|
* Item content.
|
|
11390
11406
|
*/
|
|
@@ -11398,7 +11414,7 @@ x1.propTypes = {
|
|
|
11398
11414
|
*/
|
|
11399
11415
|
className: t.string
|
|
11400
11416
|
};
|
|
11401
|
-
const
|
|
11417
|
+
const x1 = (i) => {
|
|
11402
11418
|
var l = i, {
|
|
11403
11419
|
children: s,
|
|
11404
11420
|
gridGap: n = "standard",
|
|
@@ -11427,17 +11443,17 @@ const V1 = (i) => {
|
|
|
11427
11443
|
const b = p.props.slot;
|
|
11428
11444
|
b && ($[b] ? $[b].push(p) : $[b] = [p]);
|
|
11429
11445
|
});
|
|
11430
|
-
const f = $["first-item"],
|
|
11446
|
+
const f = $["first-item"], E = $["second-item"];
|
|
11431
11447
|
return /* @__PURE__ */ e.createElement(
|
|
11432
11448
|
"div",
|
|
11433
11449
|
N({
|
|
11434
11450
|
className: [o, u, c].join(" ").trim().replace(/\s+/g, " ")
|
|
11435
11451
|
}, r),
|
|
11436
11452
|
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() }, f),
|
|
11437
|
-
/* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() },
|
|
11453
|
+
/* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, E)
|
|
11438
11454
|
);
|
|
11439
11455
|
};
|
|
11440
|
-
|
|
11456
|
+
x1.propTypes = {
|
|
11441
11457
|
/**
|
|
11442
11458
|
* Item content.
|
|
11443
11459
|
*/
|
|
@@ -11456,100 +11472,100 @@ V1.propTypes = {
|
|
|
11456
11472
|
className: t.string
|
|
11457
11473
|
};
|
|
11458
11474
|
export {
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11475
|
+
tt as Avatar,
|
|
11476
|
+
sn as AvatarTileList,
|
|
11477
|
+
an as Banner,
|
|
11478
|
+
on as Breadcrumbs,
|
|
11479
|
+
Fe as Button,
|
|
11480
|
+
We as ButtonLink,
|
|
11481
|
+
m1 as CTALink,
|
|
11482
|
+
En as CTASlice,
|
|
11483
|
+
G1 as Callout,
|
|
11484
|
+
_n as Card,
|
|
11485
|
+
vn as CardSelectGroup,
|
|
11486
|
+
C1 as Checkbox,
|
|
11487
|
+
K1 as CheckboxFieldset,
|
|
11488
|
+
Y1 as CheckboxGroup,
|
|
11473
11489
|
Es as Combobox,
|
|
11474
11490
|
ss as ComparisonList,
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11491
|
+
et as Container,
|
|
11492
|
+
Bt as DashboardContext,
|
|
11493
|
+
B1 as DashboardLayout,
|
|
11494
|
+
yn as DashboardNav,
|
|
11495
|
+
Nn as DashboardSearch,
|
|
11480
11496
|
Et as DropdownMenu,
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11497
|
+
wn as ExpansionPanel,
|
|
11498
|
+
kn as ExpansionPanelGroup,
|
|
11499
|
+
Hn as FileUpload,
|
|
11500
|
+
H1 as FlexContainer,
|
|
11485
11501
|
$s as FooterHeading,
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11502
|
+
Ln as FooterLinks,
|
|
11503
|
+
ra as GlobalWrapper,
|
|
11504
|
+
zn as Heading,
|
|
11489
11505
|
A as Icon,
|
|
11490
11506
|
pt as IconButton,
|
|
11491
11507
|
gt as IndicatorBadge,
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11508
|
+
ea as InlineMessage,
|
|
11509
|
+
xn as InputFormatted,
|
|
11510
|
+
X1 as InputGroup,
|
|
11511
|
+
Vn as InputObscured,
|
|
11512
|
+
Sn as InputText,
|
|
11513
|
+
De as InputWrapper,
|
|
11514
|
+
In as LinksCard,
|
|
11499
11515
|
ys as MenuButton,
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11516
|
+
J1 as Modal,
|
|
11517
|
+
Rn as NavMenu,
|
|
11518
|
+
On as Navbar,
|
|
11519
|
+
Dn as NewSiteCard,
|
|
11520
|
+
Zn as Pager,
|
|
11521
|
+
sa as Panel,
|
|
11522
|
+
Ft as PantheonLogo,
|
|
11507
11523
|
ws as PlatformIcon,
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11524
|
+
na as Popover,
|
|
11525
|
+
Gn as PricingCard,
|
|
11526
|
+
Kn as ProgressBar,
|
|
11511
11527
|
Ls as ProgressRing,
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11528
|
+
aa as PullQuote,
|
|
11529
|
+
Jn as RadioGroup,
|
|
11530
|
+
Ae as ResponsiveContext,
|
|
11531
|
+
ta as SectionMessage,
|
|
11532
|
+
U1 as SegmentedButton,
|
|
11533
|
+
Ct as Select,
|
|
11534
|
+
e1 as SideNav,
|
|
11535
|
+
t1 as SideNavCompact,
|
|
11536
|
+
L1 as SidebarLayout,
|
|
11537
|
+
s1 as SiteCard,
|
|
11538
|
+
n1 as SiteFooter,
|
|
11539
|
+
$n as Skiplink,
|
|
11540
|
+
a1 as SocialLinks,
|
|
11525
11541
|
vt as Spinner,
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11542
|
+
l1 as SplitButton,
|
|
11543
|
+
c1 as StatsTileList,
|
|
11544
|
+
Wt as StatusBadge,
|
|
11545
|
+
la as StatusIndicator,
|
|
11546
|
+
r1 as Stepper,
|
|
11547
|
+
z1 as StepperLayout,
|
|
11548
|
+
Q1 as Switch,
|
|
11549
|
+
i1 as Table,
|
|
11550
|
+
o1 as TableOfContents,
|
|
11551
|
+
F1 as Tabs,
|
|
11552
|
+
ca as Tag,
|
|
11553
|
+
Z1 as Tally,
|
|
11554
|
+
b1 as TextInput,
|
|
11555
|
+
d1 as Textarea,
|
|
11556
|
+
M1 as ThreeItemLayout,
|
|
11541
11557
|
zs as Tile,
|
|
11542
|
-
|
|
11558
|
+
u1 as TileGrid,
|
|
11543
11559
|
Ms as Toast,
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11560
|
+
p1 as Toaster,
|
|
11561
|
+
g1 as ToggleButton,
|
|
11562
|
+
h1 as ToggleSwitch,
|
|
11563
|
+
Dt as Tooltip,
|
|
11564
|
+
x1 as TwoItemLayout,
|
|
11565
|
+
f1 as UserMenu,
|
|
11566
|
+
v1 as WorkspaceSelector,
|
|
11551
11567
|
Xt as iconList,
|
|
11552
11568
|
ls as tagColors,
|
|
11553
|
-
|
|
11569
|
+
W1 as useToast
|
|
11554
11570
|
};
|
|
11555
11571
|
//# sourceMappingURL=index.js.map
|