@pantheon-systems/pds-toolkit-react 2.0.0-alpha.7 → 2.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/buttons/CloseButton/CloseButton.d.ts +2 -2
- package/dist/components/cards/Card/Card.d.ts +1 -1
- package/dist/components/notifications/Toaster/Toaster.d.ts +2 -2
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-index.css +2 -2
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/pds-components.css +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +281 -261
- package/dist/index.js.map +1 -1
- package/package.json +15 -11
- package/tailwind/README.md +211 -0
- package/tailwind/TESTING.md +457 -0
- package/tailwind/v3/preset.cjs +238 -0
- package/tailwind/v4/theme.css +211 -0
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import D1 from "hash-sum";
|
|
|
3
3
|
import { useFloating as r1, autoUpdate as o1, offset as k1, flip as m1, shift as P1, useHover as x1, useFocus as N1, useDismiss as S1, useRole as I1, useInteractions as j1, FloatingPortal as T1, useId as B1 } from "@floating-ui/react";
|
|
4
4
|
import { ToastContainer as A1, Slide as O1, cssTransition as H1, toast as e1 } from "react-toastify";
|
|
5
5
|
import { useMeasure as R1 } from "@reactuses/core";
|
|
6
|
-
import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13),
|
|
6
|
+
import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13), P2 = (t) => {
|
|
7
7
|
const l = {}, c = [];
|
|
8
8
|
return i1.forEach(t, (a) => {
|
|
9
9
|
if (h2(a)) {
|
|
@@ -12,7 +12,7 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
12
12
|
} else
|
|
13
13
|
c.push(a);
|
|
14
14
|
}), c.length > 0 && (l.__unslotted = c), l;
|
|
15
|
-
},
|
|
15
|
+
}, v = (t) => t.join(" ").trim().replace(/\s+/g, " "), F1 = (t) => t ? t.startsWith("data:") ? /^data:image\/(png|jpeg|jpg|gif|bmp|webp);base64,[A-Za-z0-9+/]+=*$/.test(t) : !0 : !1, t1 = {
|
|
16
16
|
boltPantheon: {
|
|
17
17
|
height: 512,
|
|
18
18
|
svgPathData: "M183.215 0L254.271 277.176H204.614L302 512L46.228 187.779H135.272L0 0.434418L144.526 0.459972L145.968 0H183.215Z",
|
|
@@ -1741,7 +1741,7 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1741
1741
|
"svg",
|
|
1742
1742
|
{
|
|
1743
1743
|
"aria-hidden": "true",
|
|
1744
|
-
className:
|
|
1744
|
+
className: v([o, t ?? ""]),
|
|
1745
1745
|
fill: "none",
|
|
1746
1746
|
focusable: "false",
|
|
1747
1747
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -1804,7 +1804,7 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1804
1804
|
onLoad: () => g(!1),
|
|
1805
1805
|
src: `${a}`
|
|
1806
1806
|
}
|
|
1807
|
-
) : /* @__PURE__ */ e.createElement("span", { style: p }, c && /* @__PURE__ */ e.createElement(O, { className: `${o}__user-icon`, iconName: "user" })),
|
|
1807
|
+
) : /* @__PURE__ */ e.createElement("span", { style: p }, c && /* @__PURE__ */ e.createElement(O, { className: `${o}__user-icon`, iconName: "user" })), w = /* @__PURE__ */ e.createElement("span", { className: `${o}__content` }, u), C = n && h2(n) ? _2(
|
|
1808
1808
|
n,
|
|
1809
1809
|
Object.assign({}, n.props, {
|
|
1810
1810
|
className: `${o}__content ${o}__content--link`,
|
|
@@ -1815,10 +1815,10 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1815
1815
|
return /* @__PURE__ */ e.createElement(
|
|
1816
1816
|
"div",
|
|
1817
1817
|
{
|
|
1818
|
-
className:
|
|
1818
|
+
className: v([o, m, d, l]),
|
|
1819
1819
|
...r
|
|
1820
1820
|
},
|
|
1821
|
-
n ? C :
|
|
1821
|
+
n ? C : w
|
|
1822
1822
|
);
|
|
1823
1823
|
}, O4 = ({
|
|
1824
1824
|
className: t,
|
|
@@ -1831,7 +1831,7 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1831
1831
|
return /* @__PURE__ */ e.createElement(
|
|
1832
1832
|
"span",
|
|
1833
1833
|
{
|
|
1834
|
-
className:
|
|
1834
|
+
className: v([
|
|
1835
1835
|
s,
|
|
1836
1836
|
i,
|
|
1837
1837
|
r,
|
|
@@ -1854,10 +1854,10 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1854
1854
|
return /* @__PURE__ */ e.createElement(
|
|
1855
1855
|
"div",
|
|
1856
1856
|
{
|
|
1857
|
-
className:
|
|
1857
|
+
className: v([r, o, t ?? ""]),
|
|
1858
1858
|
...i
|
|
1859
1859
|
},
|
|
1860
|
-
c === !0 && /* @__PURE__ */ e.createElement("span", { className:
|
|
1860
|
+
c === !0 && /* @__PURE__ */ e.createElement("span", { className: v([m, d]) }, s && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n, " ", s)),
|
|
1861
1861
|
/* @__PURE__ */ e.createElement("span", { className: `${r}__label` }, a)
|
|
1862
1862
|
);
|
|
1863
1863
|
}, d1 = ({
|
|
@@ -1878,7 +1878,7 @@ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13
|
|
|
1878
1878
|
return /* @__PURE__ */ e.createElement(
|
|
1879
1879
|
"div",
|
|
1880
1880
|
{
|
|
1881
|
-
className:
|
|
1881
|
+
className: v([
|
|
1882
1882
|
i,
|
|
1883
1883
|
r,
|
|
1884
1884
|
o,
|
|
@@ -1969,10 +1969,10 @@ const Y2 = (t) => {
|
|
|
1969
1969
|
zIndex: m = s4,
|
|
1970
1970
|
...d
|
|
1971
1971
|
}) => {
|
|
1972
|
-
const [L, g] = V(!1), f = typeof c, p = "pds-tooltip", u =
|
|
1972
|
+
const [L, g] = V(!1), f = typeof c, p = "pds-tooltip", u = v([
|
|
1973
1973
|
`${p}__trigger-custom`,
|
|
1974
1974
|
f === "string" ? `${p}__trigger-text` : null
|
|
1975
|
-
]),
|
|
1975
|
+
]), w = v([
|
|
1976
1976
|
`${p}__trigger`,
|
|
1977
1977
|
`${p}__trigger--${r}`
|
|
1978
1978
|
]), { context: C, floatingStyles: z, refs: b } = r1({
|
|
@@ -1985,13 +1985,13 @@ const Y2 = (t) => {
|
|
|
1985
1985
|
restMs: 300,
|
|
1986
1986
|
delay: { open: 100, close: 0 },
|
|
1987
1987
|
move: !1
|
|
1988
|
-
}), P = N1(C), k = S1(C), y = I1(C, { role: "tooltip" }), { getFloatingProps:
|
|
1988
|
+
}), P = N1(C), k = S1(C), y = I1(C, { role: "tooltip" }), { getFloatingProps: M, getReferenceProps: S } = j1([
|
|
1989
1989
|
D,
|
|
1990
1990
|
P,
|
|
1991
1991
|
k,
|
|
1992
1992
|
y
|
|
1993
1993
|
]);
|
|
1994
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1994
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([p, t ?? ""]), ...d }, c ? /* @__PURE__ */ e.createElement(
|
|
1995
1995
|
"span",
|
|
1996
1996
|
{
|
|
1997
1997
|
ref: b.setReference,
|
|
@@ -2004,7 +2004,7 @@ const Y2 = (t) => {
|
|
|
2004
2004
|
{
|
|
2005
2005
|
ref: b.setReference,
|
|
2006
2006
|
"aria-label": s,
|
|
2007
|
-
className:
|
|
2007
|
+
className: w,
|
|
2008
2008
|
type: "button",
|
|
2009
2009
|
...S()
|
|
2010
2010
|
},
|
|
@@ -2029,7 +2029,7 @@ const Y2 = (t) => {
|
|
|
2029
2029
|
pointerEvents: L ? "auto" : "none",
|
|
2030
2030
|
transition: "var(--pds-animation-transition-reveal)"
|
|
2031
2031
|
},
|
|
2032
|
-
...
|
|
2032
|
+
...M()
|
|
2033
2033
|
},
|
|
2034
2034
|
l
|
|
2035
2035
|
)));
|
|
@@ -2058,7 +2058,7 @@ const Y2 = (t) => {
|
|
|
2058
2058
|
showLabel: r = !0,
|
|
2059
2059
|
tooltipText: o = null
|
|
2060
2060
|
}) => {
|
|
2061
|
-
const m =
|
|
2061
|
+
const m = v([
|
|
2062
2062
|
"pds-input-label",
|
|
2063
2063
|
r ? null : "visually-hidden",
|
|
2064
2064
|
t ?? ""
|
|
@@ -2077,7 +2077,7 @@ const Y2 = (t) => {
|
|
|
2077
2077
|
return /* @__PURE__ */ e.createElement(
|
|
2078
2078
|
"div",
|
|
2079
2079
|
{
|
|
2080
|
-
className:
|
|
2080
|
+
className: v([r, o, t ?? ""]),
|
|
2081
2081
|
id: l ? `${a}__message-hidden` : `${a}__message`,
|
|
2082
2082
|
role: i === "error" ? "alert" : null
|
|
2083
2083
|
},
|
|
@@ -2091,7 +2091,7 @@ const Y2 = (t) => {
|
|
|
2091
2091
|
filter: "barsFilter"
|
|
2092
2092
|
}, L1 = ({ variant: t }) => {
|
|
2093
2093
|
const l = "pds-input-prefix";
|
|
2094
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2094
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([l, `${l}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
2095
2095
|
O,
|
|
2096
2096
|
{
|
|
2097
2097
|
className: `${l}__icon`,
|
|
@@ -2134,7 +2134,7 @@ const Y2 = (t) => {
|
|
|
2134
2134
|
return /* @__PURE__ */ e.createElement(
|
|
2135
2135
|
"div",
|
|
2136
2136
|
{
|
|
2137
|
-
className:
|
|
2137
|
+
className: v([i, r]),
|
|
2138
2138
|
id: `${l}__counter`
|
|
2139
2139
|
},
|
|
2140
2140
|
t,
|
|
@@ -2151,7 +2151,7 @@ k2(
|
|
|
2151
2151
|
{
|
|
2152
2152
|
ref: n,
|
|
2153
2153
|
"aria-selected": c,
|
|
2154
|
-
className:
|
|
2154
|
+
className: v([i, r, l ?? ""]),
|
|
2155
2155
|
id: s,
|
|
2156
2156
|
role: "option",
|
|
2157
2157
|
...a
|
|
@@ -2190,7 +2190,7 @@ const d4 = {
|
|
|
2190
2190
|
"4xl": K2,
|
|
2191
2191
|
"5xl": u1,
|
|
2192
2192
|
"6xl": h1
|
|
2193
|
-
},
|
|
2193
|
+
}, x2 = ({
|
|
2194
2194
|
className: t = "",
|
|
2195
2195
|
colorType: l = "full-color",
|
|
2196
2196
|
isInline: c = !1,
|
|
@@ -2210,7 +2210,7 @@ const d4 = {
|
|
|
2210
2210
|
"span",
|
|
2211
2211
|
{
|
|
2212
2212
|
"aria-hidden": "true",
|
|
2213
|
-
className:
|
|
2213
|
+
className: v([r, o, m, t]),
|
|
2214
2214
|
role: "status",
|
|
2215
2215
|
style: p,
|
|
2216
2216
|
...i
|
|
@@ -2236,24 +2236,24 @@ const d4 = {
|
|
|
2236
2236
|
tooltipText: f,
|
|
2237
2237
|
variant: p = "primary",
|
|
2238
2238
|
...u
|
|
2239
|
-
},
|
|
2239
|
+
}, w) => {
|
|
2240
2240
|
const C = "pds-button", z = `${C}--${g}`, b = `${C}--${p}`, D = i ? `${C}--full-width` : null, P = r ? `${C}--loading` : null, k = r ? "pds-pulse" : null;
|
|
2241
|
-
let y,
|
|
2241
|
+
let y, M;
|
|
2242
2242
|
switch (g) {
|
|
2243
2243
|
case "xs":
|
|
2244
|
-
y = "s",
|
|
2244
|
+
y = "s", M = "s";
|
|
2245
2245
|
break;
|
|
2246
2246
|
case "s":
|
|
2247
|
-
y = "m",
|
|
2247
|
+
y = "m", M = "m";
|
|
2248
2248
|
break;
|
|
2249
2249
|
case "m":
|
|
2250
|
-
y = "m",
|
|
2250
|
+
y = "m", M = "m";
|
|
2251
2251
|
break;
|
|
2252
2252
|
case "l":
|
|
2253
|
-
y = "m",
|
|
2253
|
+
y = "m", M = "l";
|
|
2254
2254
|
break;
|
|
2255
2255
|
case "xl":
|
|
2256
|
-
y = "l",
|
|
2256
|
+
y = "l", M = "l";
|
|
2257
2257
|
break;
|
|
2258
2258
|
}
|
|
2259
2259
|
let S = "monochromatic";
|
|
@@ -2272,9 +2272,9 @@ const d4 = {
|
|
|
2272
2272
|
const W = /* @__PURE__ */ e.createElement(
|
|
2273
2273
|
"button",
|
|
2274
2274
|
{
|
|
2275
|
-
ref:
|
|
2275
|
+
ref: w,
|
|
2276
2276
|
"aria-label": t,
|
|
2277
|
-
className:
|
|
2277
|
+
className: v([
|
|
2278
2278
|
C,
|
|
2279
2279
|
z,
|
|
2280
2280
|
b,
|
|
@@ -2289,11 +2289,11 @@ const d4 = {
|
|
|
2289
2289
|
...u
|
|
2290
2290
|
},
|
|
2291
2291
|
m && !r && /* @__PURE__ */ e.createElement(
|
|
2292
|
-
|
|
2292
|
+
x2,
|
|
2293
2293
|
{
|
|
2294
2294
|
className: `${C}__working-indicator`,
|
|
2295
2295
|
colorType: S,
|
|
2296
|
-
size:
|
|
2296
|
+
size: M
|
|
2297
2297
|
}
|
|
2298
2298
|
),
|
|
2299
2299
|
_
|
|
@@ -2311,7 +2311,7 @@ const d4 = {
|
|
|
2311
2311
|
variant: r = "primary",
|
|
2312
2312
|
...o
|
|
2313
2313
|
}) => {
|
|
2314
|
-
const m = "pds-button-link", d = "pds-button", L = `${d}--${s}`, g = `${d}--${r}`, f =
|
|
2314
|
+
const m = "pds-button-link", d = "pds-button", L = `${d}--${s}`, g = `${d}--${r}`, f = v([
|
|
2315
2315
|
d,
|
|
2316
2316
|
L,
|
|
2317
2317
|
g
|
|
@@ -2337,7 +2337,7 @@ const d4 = {
|
|
|
2337
2337
|
u = "m";
|
|
2338
2338
|
break;
|
|
2339
2339
|
}
|
|
2340
|
-
const
|
|
2340
|
+
const w = /* @__PURE__ */ e.createElement(
|
|
2341
2341
|
O,
|
|
2342
2342
|
{
|
|
2343
2343
|
key: a,
|
|
@@ -2347,7 +2347,7 @@ const d4 = {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
);
|
|
2349
2349
|
let C = [p];
|
|
2350
|
-
c === "icon-start" && a ? C = [
|
|
2350
|
+
c === "icon-start" && a ? C = [w, p] : c === "icon-end" && a && (C = [p, w]);
|
|
2351
2351
|
const z = h2(n) ? _2(
|
|
2352
2352
|
n,
|
|
2353
2353
|
Object.assign({}, n.props, {
|
|
@@ -2359,13 +2359,13 @@ const d4 = {
|
|
|
2359
2359
|
B2,
|
|
2360
2360
|
{
|
|
2361
2361
|
disabled: !0,
|
|
2362
|
-
className:
|
|
2362
|
+
className: v([m, t ?? ""]),
|
|
2363
2363
|
label: C,
|
|
2364
2364
|
size: s,
|
|
2365
2365
|
tooltipText: i ?? null,
|
|
2366
2366
|
variant: r
|
|
2367
2367
|
}
|
|
2368
|
-
) : /* @__PURE__ */ e.createElement("span", { className:
|
|
2368
|
+
) : /* @__PURE__ */ e.createElement("span", { className: v([m, t ?? ""]), ...o }, z);
|
|
2369
2369
|
}, p4 = (t, l) => {
|
|
2370
2370
|
const [c, a] = V(!1), n = l?.duration;
|
|
2371
2371
|
return l2(() => {
|
|
@@ -2382,7 +2382,7 @@ const d4 = {
|
|
|
2382
2382
|
} catch {
|
|
2383
2383
|
}
|
|
2384
2384
|
}];
|
|
2385
|
-
},
|
|
2385
|
+
}, j2 = k2(
|
|
2386
2386
|
({
|
|
2387
2387
|
ariaLabel: t,
|
|
2388
2388
|
buttonType: l = "button",
|
|
@@ -2401,16 +2401,16 @@ const d4 = {
|
|
|
2401
2401
|
hide: `${g}--hide`,
|
|
2402
2402
|
scaleIn: `${g}--scaleIn`
|
|
2403
2403
|
};
|
|
2404
|
-
let
|
|
2404
|
+
let w, C;
|
|
2405
2405
|
switch (o) {
|
|
2406
2406
|
case "s":
|
|
2407
|
-
C = "m",
|
|
2407
|
+
C = "m", w = 8;
|
|
2408
2408
|
break;
|
|
2409
2409
|
case "m":
|
|
2410
|
-
C = "l",
|
|
2410
|
+
C = "l", w = 11;
|
|
2411
2411
|
break;
|
|
2412
2412
|
default:
|
|
2413
|
-
C = "m",
|
|
2413
|
+
C = "m", w = 8;
|
|
2414
2414
|
break;
|
|
2415
2415
|
}
|
|
2416
2416
|
const z = s !== null, b = J(null), D = J(null), P = () => {
|
|
@@ -2420,8 +2420,8 @@ const d4 = {
|
|
|
2420
2420
|
u.hide
|
|
2421
2421
|
), b.current.classList.add(u.scaleIn), D.current.classList.remove(u.scaleIn), D.current.classList.add(u.hide);
|
|
2422
2422
|
}, 2e3);
|
|
2423
|
-
}, k = (
|
|
2424
|
-
z && P(), r && r(
|
|
2423
|
+
}, k = (M) => {
|
|
2424
|
+
z && P(), r && r(M);
|
|
2425
2425
|
}, y = z ? /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { ref: b, className: `${g}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2426
2426
|
O,
|
|
2427
2427
|
{
|
|
@@ -2456,7 +2456,7 @@ const d4 = {
|
|
|
2456
2456
|
{
|
|
2457
2457
|
ref: L,
|
|
2458
2458
|
"aria-label": t,
|
|
2459
|
-
className:
|
|
2459
|
+
className: v([
|
|
2460
2460
|
g,
|
|
2461
2461
|
f,
|
|
2462
2462
|
p,
|
|
@@ -2474,7 +2474,7 @@ const d4 = {
|
|
|
2474
2474
|
className: `${g}__tooltip`,
|
|
2475
2475
|
content: t,
|
|
2476
2476
|
customTrigger: y,
|
|
2477
|
-
offsetValue:
|
|
2477
|
+
offsetValue: w
|
|
2478
2478
|
}
|
|
2479
2479
|
) : y
|
|
2480
2480
|
);
|
|
@@ -2489,11 +2489,11 @@ const d4 = {
|
|
|
2489
2489
|
}) => {
|
|
2490
2490
|
const i = "pds-clipboard-button", [r, o] = p4(c);
|
|
2491
2491
|
return /* @__PURE__ */ e.createElement(
|
|
2492
|
-
|
|
2492
|
+
j2,
|
|
2493
2493
|
{
|
|
2494
2494
|
ariaLabel: t,
|
|
2495
2495
|
buttonType: "button",
|
|
2496
|
-
className:
|
|
2496
|
+
className: v([i, l ?? ""]),
|
|
2497
2497
|
disabled: a,
|
|
2498
2498
|
icon2Name: "check",
|
|
2499
2499
|
iconName: "copy",
|
|
@@ -2515,7 +2515,7 @@ const d4 = {
|
|
|
2515
2515
|
"button",
|
|
2516
2516
|
{
|
|
2517
2517
|
"aria-label": t,
|
|
2518
|
-
className:
|
|
2518
|
+
className: v([s, i, l ?? ""]),
|
|
2519
2519
|
onClick: c,
|
|
2520
2520
|
type: "button",
|
|
2521
2521
|
...n
|
|
@@ -2550,7 +2550,7 @@ const d4 = {
|
|
|
2550
2550
|
wordpress: "wordpress",
|
|
2551
2551
|
gatsby: "bolt",
|
|
2552
2552
|
nextjs: "bolt"
|
|
2553
|
-
},
|
|
2553
|
+
}, M1 = () => {
|
|
2554
2554
|
const t = typeof window < "u", [l, c] = V(
|
|
2555
2555
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
2556
2556
|
);
|
|
@@ -2564,18 +2564,18 @@ const d4 = {
|
|
|
2564
2564
|
window.removeEventListener("resize", a);
|
|
2565
2565
|
};
|
|
2566
2566
|
}, []), l;
|
|
2567
|
-
},
|
|
2567
|
+
}, N2 = n1(null), L4 = ({
|
|
2568
2568
|
children: t,
|
|
2569
2569
|
mobileMenuMaxWidth: l = 640
|
|
2570
2570
|
}) => {
|
|
2571
|
-
const c =
|
|
2571
|
+
const c = M1(), a = c <= l, n = {
|
|
2572
2572
|
isMobile: a,
|
|
2573
2573
|
mobileMenuMaxWidth: l,
|
|
2574
2574
|
windowWidth: c
|
|
2575
2575
|
};
|
|
2576
2576
|
return l2(() => {
|
|
2577
2577
|
a ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
2578
|
-
}, [a]), /* @__PURE__ */ e.createElement(
|
|
2578
|
+
}, [a]), /* @__PURE__ */ e.createElement(N2.Provider, { value: n }, t);
|
|
2579
2579
|
}, C4 = ({
|
|
2580
2580
|
className: t,
|
|
2581
2581
|
disabled: l,
|
|
@@ -2594,24 +2594,24 @@ const d4 = {
|
|
|
2594
2594
|
withinNavbar: p,
|
|
2595
2595
|
...u
|
|
2596
2596
|
}) => {
|
|
2597
|
-
const { placement:
|
|
2597
|
+
const { placement: w, refs: C, strategy: z, x: b, y: D } = r1({
|
|
2598
2598
|
placement: "bottom-start",
|
|
2599
2599
|
middleware: [m1()],
|
|
2600
2600
|
whileElementsMounted: o1
|
|
2601
2601
|
});
|
|
2602
2602
|
let P = !1;
|
|
2603
|
-
const k = D2(
|
|
2603
|
+
const k = D2(N2);
|
|
2604
2604
|
k && (P = k.isMobile);
|
|
2605
|
-
const y = f === "navbar" && P,
|
|
2605
|
+
const y = f === "navbar" && P, M = "pds-menu-button", S = y ? `${M}--isMobile` : null, I = p ? `${M}--navbar` : null, N = n, [_] = V(`menu-button-${n}`), W = C.floating, Y = J(null), [R, i2] = V(!1), [K, n2] = V(!1), [Z, r2] = V(""), [Q, o2] = V(0), s2 = J([]), T = J([]), A = J([]);
|
|
2606
2606
|
_1(() => {
|
|
2607
2607
|
window.addEventListener("mousedown", L2, !0);
|
|
2608
2608
|
const h = W.current;
|
|
2609
|
-
return h && (h.dataset.fuiPlacement =
|
|
2609
|
+
return h && (h.dataset.fuiPlacement = w), K && (setTimeout(() => {
|
|
2610
2610
|
h.focus();
|
|
2611
2611
|
}, 0), n2(!1)), () => {
|
|
2612
2612
|
window.removeEventListener("mousedown", L2, !0);
|
|
2613
2613
|
};
|
|
2614
|
-
}, [R,
|
|
2614
|
+
}, [R, w]);
|
|
2615
2615
|
const q = (h, j) => {
|
|
2616
2616
|
r2(h), o2(j);
|
|
2617
2617
|
}, U = () => {
|
|
@@ -2643,11 +2643,11 @@ const d4 = {
|
|
|
2643
2643
|
}, f2 = () => {
|
|
2644
2644
|
const h = T.current[Q];
|
|
2645
2645
|
u2(h);
|
|
2646
|
-
},
|
|
2646
|
+
}, S2 = (h) => {
|
|
2647
2647
|
R ? e2() : U(), m && m(), h.stopPropagation(), h.preventDefault();
|
|
2648
2648
|
}, A2 = (h) => {
|
|
2649
2649
|
u2(h.currentTarget.id), y || e2();
|
|
2650
|
-
},
|
|
2650
|
+
}, I2 = (h) => {
|
|
2651
2651
|
const j = h.key;
|
|
2652
2652
|
let E = !1;
|
|
2653
2653
|
switch (j) {
|
|
@@ -2777,7 +2777,7 @@ const d4 = {
|
|
|
2777
2777
|
"li",
|
|
2778
2778
|
{
|
|
2779
2779
|
key: H,
|
|
2780
|
-
className: `${
|
|
2780
|
+
className: `${M}__listbox-heading`,
|
|
2781
2781
|
id: H || null,
|
|
2782
2782
|
role: "presentation"
|
|
2783
2783
|
},
|
|
@@ -2789,7 +2789,7 @@ const d4 = {
|
|
|
2789
2789
|
T.current.push(B), A.current.push(h);
|
|
2790
2790
|
let g2 = !1;
|
|
2791
2791
|
Z !== "" && !h.disabled && (g2 = Z === B);
|
|
2792
|
-
const c2 = "isCritical" in h && h.isCritical,
|
|
2792
|
+
const c2 = "isCritical" in h && h.isCritical, w2 = "criticalLabel" in h ? h.criticalLabel : void 0;
|
|
2793
2793
|
let a2 = [];
|
|
2794
2794
|
if ("label" in h && h.label && (a2 = [h.label]), Z2(h) && h.linkContent && (a2 = [h.linkContent.props.children]), h.iconName) {
|
|
2795
2795
|
const d2 = /* @__PURE__ */ e.createElement(
|
|
@@ -2802,20 +2802,20 @@ const d4 = {
|
|
|
2802
2802
|
);
|
|
2803
2803
|
a2.unshift(d2);
|
|
2804
2804
|
}
|
|
2805
|
-
c2 &&
|
|
2806
|
-
/* @__PURE__ */ e.createElement("span", { key: `critical-${N}`, className: "visually-hidden" },
|
|
2805
|
+
c2 && w2 && a2.unshift(
|
|
2806
|
+
/* @__PURE__ */ e.createElement("span", { key: `critical-${N}`, className: "visually-hidden" }, w2)
|
|
2807
2807
|
);
|
|
2808
2808
|
let p2;
|
|
2809
|
-
h.description && (p2 = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
2809
|
+
h.description && (p2 = /* @__PURE__ */ e.createElement("span", { className: `${M}__item-description` }, h.description));
|
|
2810
2810
|
let b2;
|
|
2811
2811
|
if (Z2(h) && h.linkContent) {
|
|
2812
2812
|
const d2 = h.linkContent, H2 = d2.type;
|
|
2813
|
-
b2 = /* @__PURE__ */ e.createElement(H2, { tabIndex: -1, ...d2.props }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
2813
|
+
b2 = /* @__PURE__ */ e.createElement(H2, { tabIndex: -1, ...d2.props }, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` }, a2), p2);
|
|
2814
2814
|
} else
|
|
2815
|
-
b2 = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
2816
|
-
const O2 =
|
|
2817
|
-
g2 ? `${
|
|
2818
|
-
c2 ? `${
|
|
2815
|
+
b2 = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${M}__item-label` }, a2), p2);
|
|
2816
|
+
const O2 = v([
|
|
2817
|
+
g2 ? `${M}__item-focused` : null,
|
|
2818
|
+
c2 ? `${M}__item-critical` : null
|
|
2819
2819
|
]);
|
|
2820
2820
|
return /* @__PURE__ */ e.createElement(
|
|
2821
2821
|
"li",
|
|
@@ -2844,8 +2844,8 @@ const d4 = {
|
|
|
2844
2844
|
const j = h, E = h.filter(
|
|
2845
2845
|
F2 || V2
|
|
2846
2846
|
), H = E.length > 0;
|
|
2847
|
-
let $ = [`${
|
|
2848
|
-
if (p && $.push(`${
|
|
2847
|
+
let $ = [`${M}__listbox`];
|
|
2848
|
+
if (p && $.push(`${M}__listbox--navbar`), o === "end" && $.push(`${M}__listbox--end`), c === "icon-only" && $.push(`${M}__listbox--icon-only`), $ = v($), H) {
|
|
2849
2849
|
const G = v2(h, E);
|
|
2850
2850
|
G.forEach(() => {
|
|
2851
2851
|
s2.current.push(V1());
|
|
@@ -2874,9 +2874,9 @@ const d4 = {
|
|
|
2874
2874
|
},
|
|
2875
2875
|
tabIndex: -1
|
|
2876
2876
|
},
|
|
2877
|
-
G.map((c2,
|
|
2878
|
-
x = s2.current[
|
|
2879
|
-
const a2 = "isHeading" in c2[0] && c2[0].isHeading, p2 = a2 ? `${N}-group-${x}-heading` : "", b2 = `${N}-group-${x}`, O2 = a2 ? null : `${g} ${
|
|
2877
|
+
G.map((c2, w2) => {
|
|
2878
|
+
x = s2.current[w2];
|
|
2879
|
+
const a2 = "isHeading" in c2[0] && c2[0].isHeading, p2 = a2 ? `${N}-group-${x}-heading` : "", b2 = `${N}-group-${x}`, O2 = a2 ? null : `${g} ${w2 + 1}`;
|
|
2880
2880
|
return /* @__PURE__ */ e.createElement(
|
|
2881
2881
|
"ul",
|
|
2882
2882
|
{
|
|
@@ -2927,15 +2927,15 @@ const d4 = {
|
|
|
2927
2927
|
"aria-controls": _,
|
|
2928
2928
|
"aria-expanded": R,
|
|
2929
2929
|
"aria-haspopup": "true",
|
|
2930
|
-
className: `${
|
|
2930
|
+
className: `${M}__trigger`,
|
|
2931
2931
|
disabled: l,
|
|
2932
2932
|
displayType: c,
|
|
2933
2933
|
iconName: "angleDown",
|
|
2934
2934
|
id: N,
|
|
2935
2935
|
isSplitButton: s,
|
|
2936
2936
|
label: i,
|
|
2937
|
-
onClick:
|
|
2938
|
-
onKeyDown:
|
|
2937
|
+
onClick: S2,
|
|
2938
|
+
onKeyDown: I2,
|
|
2939
2939
|
size: d,
|
|
2940
2940
|
type: "button",
|
|
2941
2941
|
variant: f
|
|
@@ -2943,36 +2943,36 @@ const d4 = {
|
|
|
2943
2943
|
)), c === "icon-only") {
|
|
2944
2944
|
const h = Y2(i);
|
|
2945
2945
|
t2 = /* @__PURE__ */ e.createElement(
|
|
2946
|
-
|
|
2946
|
+
j2,
|
|
2947
2947
|
{
|
|
2948
2948
|
ref: C.setReference,
|
|
2949
2949
|
"aria-controls": _,
|
|
2950
2950
|
"aria-expanded": R,
|
|
2951
2951
|
"aria-haspopup": "true",
|
|
2952
2952
|
ariaLabel: h,
|
|
2953
|
-
className: `${
|
|
2953
|
+
className: `${M}__trigger ${M}__trigger--icon-only`,
|
|
2954
2954
|
disabled: l,
|
|
2955
2955
|
hasTooltip: !1,
|
|
2956
2956
|
iconName: a,
|
|
2957
2957
|
id: N,
|
|
2958
|
-
onClick:
|
|
2959
|
-
onKeyDown:
|
|
2958
|
+
onClick: S2,
|
|
2959
|
+
onKeyDown: I2,
|
|
2960
2960
|
size: d,
|
|
2961
2961
|
type: "button",
|
|
2962
2962
|
variant: "standard"
|
|
2963
2963
|
}
|
|
2964
2964
|
);
|
|
2965
2965
|
}
|
|
2966
|
-
const
|
|
2966
|
+
const M2 = (h) => {
|
|
2967
2967
|
const j = h.target;
|
|
2968
|
-
j.classList.toggle(`${
|
|
2968
|
+
j.classList.toggle(`${M}__toggle--expanded`), j.setAttribute(
|
|
2969
2969
|
"aria-expanded",
|
|
2970
2970
|
j.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
2971
|
-
), j.nextElementSibling.classList.toggle(`${
|
|
2972
|
-
},
|
|
2971
|
+
), j.nextElementSibling.classList.toggle(`${M}__mobile-menu--expanded`);
|
|
2972
|
+
}, w1 = () => /* @__PURE__ */ e.createElement("ul", { className: `${M}__mobile-menu`, role: "menu" }, r.map((h, j) => C2(h, j)));
|
|
2973
2973
|
let J2;
|
|
2974
|
-
const b1 = c === "icon-end" ? "pds-button pds-button--navbar" : null, E1 =
|
|
2975
|
-
`${
|
|
2974
|
+
const b1 = c === "icon-end" ? "pds-button pds-button--navbar" : null, E1 = v([
|
|
2975
|
+
`${M}__toggle`,
|
|
2976
2976
|
b1
|
|
2977
2977
|
]);
|
|
2978
2978
|
y && (J2 = /* @__PURE__ */ e.createElement(
|
|
@@ -2982,26 +2982,26 @@ const d4 = {
|
|
|
2982
2982
|
className: E1,
|
|
2983
2983
|
disabled: l,
|
|
2984
2984
|
id: N,
|
|
2985
|
-
onClick:
|
|
2985
|
+
onClick: M2,
|
|
2986
2986
|
type: "button"
|
|
2987
2987
|
},
|
|
2988
|
-
c === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
2988
|
+
c === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${M}__icon-label` }, /* @__PURE__ */ e.createElement(O, { iconName: a }), " ", i) : i,
|
|
2989
2989
|
/* @__PURE__ */ e.createElement(
|
|
2990
2990
|
O,
|
|
2991
2991
|
{
|
|
2992
|
-
className: `${
|
|
2992
|
+
className: `${M}__toggle-icon ${M}__toggle-icon--${c}`,
|
|
2993
2993
|
iconName: "angleDown",
|
|
2994
2994
|
iconSize: "m"
|
|
2995
2995
|
}
|
|
2996
2996
|
)
|
|
2997
2997
|
));
|
|
2998
|
-
const y1 = J2, $1 = R ? `${
|
|
2998
|
+
const y1 = J2, $1 = R ? `${M}--expanded` : null;
|
|
2999
2999
|
return /* @__PURE__ */ e.createElement(
|
|
3000
3000
|
"span",
|
|
3001
3001
|
{
|
|
3002
3002
|
ref: Y,
|
|
3003
|
-
className:
|
|
3004
|
-
|
|
3003
|
+
className: v([
|
|
3004
|
+
M,
|
|
3005
3005
|
I,
|
|
3006
3006
|
S,
|
|
3007
3007
|
$1,
|
|
@@ -3010,7 +3010,7 @@ const d4 = {
|
|
|
3010
3010
|
"data-testid": L,
|
|
3011
3011
|
...u
|
|
3012
3012
|
},
|
|
3013
|
-
y ? /* @__PURE__ */ e.createElement(e.Fragment, null, y1, /* @__PURE__ */ e.createElement(
|
|
3013
|
+
y ? /* @__PURE__ */ e.createElement(e.Fragment, null, y1, /* @__PURE__ */ e.createElement(w1, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, t2, F(r))
|
|
3014
3014
|
);
|
|
3015
3015
|
}, F4 = ({
|
|
3016
3016
|
className: t,
|
|
@@ -3024,7 +3024,7 @@ const d4 = {
|
|
|
3024
3024
|
value: o,
|
|
3025
3025
|
...m
|
|
3026
3026
|
}) => {
|
|
3027
|
-
const d = "pds-segmented-button", L = c ? "pds-is-disabled" : null, g = `${d}--${r}`, f = r === "s" ? "s" : "m", p = typeof o < "u", u = typeof l < "u", [
|
|
3027
|
+
const d = "pds-segmented-button", L = c ? "pds-is-disabled" : null, g = `${d}--${r}`, f = r === "s" ? "s" : "m", p = typeof o < "u", u = typeof l < "u", [w, C] = V(
|
|
3028
3028
|
u ? l : ""
|
|
3029
3029
|
), z = (b) => {
|
|
3030
3030
|
C(b.target.value), s && s(b.target.value);
|
|
@@ -3033,7 +3033,7 @@ const d4 = {
|
|
|
3033
3033
|
return /* @__PURE__ */ e.createElement(
|
|
3034
3034
|
"fieldset",
|
|
3035
3035
|
{
|
|
3036
|
-
className:
|
|
3036
|
+
className: v([
|
|
3037
3037
|
d,
|
|
3038
3038
|
g,
|
|
3039
3039
|
L,
|
|
@@ -3043,12 +3043,12 @@ const d4 = {
|
|
|
3043
3043
|
},
|
|
3044
3044
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, n),
|
|
3045
3045
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, i.map((b, D) => {
|
|
3046
|
-
const P = p ? o === b.value :
|
|
3046
|
+
const P = p ? o === b.value : w === b.value, k = `${d}__option`, y = P ? `${k}--checked` : null;
|
|
3047
3047
|
return /* @__PURE__ */ e.createElement(
|
|
3048
3048
|
"div",
|
|
3049
3049
|
{
|
|
3050
3050
|
key: `${a}-option-${D}`,
|
|
3051
|
-
className:
|
|
3051
|
+
className: v([k, y])
|
|
3052
3052
|
},
|
|
3053
3053
|
/* @__PURE__ */ e.createElement(
|
|
3054
3054
|
"input",
|
|
@@ -3125,7 +3125,7 @@ const d4 = {
|
|
|
3125
3125
|
)), /* @__PURE__ */ e.createElement(
|
|
3126
3126
|
"span",
|
|
3127
3127
|
{
|
|
3128
|
-
className:
|
|
3128
|
+
className: v([o, m, l]),
|
|
3129
3129
|
id: a,
|
|
3130
3130
|
...r
|
|
3131
3131
|
},
|
|
@@ -3147,7 +3147,7 @@ const d4 = {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
)
|
|
3149
3149
|
);
|
|
3150
|
-
},
|
|
3150
|
+
}, M4 = {
|
|
3151
3151
|
drupal: "Drupal",
|
|
3152
3152
|
drupal7: "Drupal 7",
|
|
3153
3153
|
"front-end-sites": "Next.js and Gatsby",
|
|
@@ -3162,7 +3162,7 @@ const d4 = {
|
|
|
3162
3162
|
splunk: "Splunk",
|
|
3163
3163
|
"sumo-logic": "Sumo Logic",
|
|
3164
3164
|
wordpress: "WordPress"
|
|
3165
|
-
},
|
|
3165
|
+
}, w4 = ({
|
|
3166
3166
|
className: t,
|
|
3167
3167
|
iconSize: l = "2xl",
|
|
3168
3168
|
platformType: c,
|
|
@@ -3189,7 +3189,7 @@ const d4 = {
|
|
|
3189
3189
|
r = /* @__PURE__ */ e.createElement(
|
|
3190
3190
|
"span",
|
|
3191
3191
|
{
|
|
3192
|
-
"aria-label":
|
|
3192
|
+
"aria-label": M4[c],
|
|
3193
3193
|
className: `${n}__group`,
|
|
3194
3194
|
role: "img"
|
|
3195
3195
|
},
|
|
@@ -3201,7 +3201,7 @@ const d4 = {
|
|
|
3201
3201
|
return /* @__PURE__ */ e.createElement(
|
|
3202
3202
|
"div",
|
|
3203
3203
|
{
|
|
3204
|
-
className:
|
|
3204
|
+
className: v([n, s, i, t]),
|
|
3205
3205
|
...a
|
|
3206
3206
|
},
|
|
3207
3207
|
r
|
|
@@ -3511,7 +3511,7 @@ const d4 = {
|
|
|
3511
3511
|
...r
|
|
3512
3512
|
}) => {
|
|
3513
3513
|
const o = "pds-sso-button", m = `${o}--${i}`, d = i === "m" ? "l" : "2xl", L = /* @__PURE__ */ e.createElement(
|
|
3514
|
-
|
|
3514
|
+
w4,
|
|
3515
3515
|
{
|
|
3516
3516
|
className: `${o}__icon`,
|
|
3517
3517
|
iconSize: d,
|
|
@@ -3521,7 +3521,7 @@ const d4 = {
|
|
|
3521
3521
|
return /* @__PURE__ */ e.createElement(
|
|
3522
3522
|
"button",
|
|
3523
3523
|
{
|
|
3524
|
-
className:
|
|
3524
|
+
className: v([o, m, l]),
|
|
3525
3525
|
disabled: c,
|
|
3526
3526
|
onClick: n,
|
|
3527
3527
|
type: t,
|
|
@@ -3547,20 +3547,20 @@ const d4 = {
|
|
|
3547
3547
|
tooltipText: f,
|
|
3548
3548
|
...p
|
|
3549
3549
|
}) => {
|
|
3550
|
-
const u = "pds-utility-button",
|
|
3551
|
-
|
|
3550
|
+
const u = "pds-utility-button", w = r ? "pds-pulse" : null, C = (M) => n && !m ? /* @__PURE__ */ e.createElement(O, { key: M, className: `${u}__icon`, iconName: n }) : null, z = () => m ? /* @__PURE__ */ e.createElement(
|
|
3551
|
+
x2,
|
|
3552
3552
|
{
|
|
3553
3553
|
key: "spinner",
|
|
3554
3554
|
className: `${u}__spinner`,
|
|
3555
3555
|
colorType: "monochromatic",
|
|
3556
3556
|
size: "s"
|
|
3557
3557
|
}
|
|
3558
|
-
) : null, b = (
|
|
3558
|
+
) : null, b = (M) => {
|
|
3559
3559
|
const S = [];
|
|
3560
3560
|
return s === "before" && S.push(C("icon-before")), S.push(z()), S.push(
|
|
3561
|
-
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${u}__label` },
|
|
3561
|
+
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${u}__label` }, M)
|
|
3562
3562
|
), s === "after" && S.push(C("icon-after")), S.filter(Boolean);
|
|
3563
|
-
}, D = L && h2(L) ? L.props.children : d, P =
|
|
3563
|
+
}, D = L && h2(L) ? L.props.children : d, P = v([
|
|
3564
3564
|
u,
|
|
3565
3565
|
a ? `${u}--border` : null,
|
|
3566
3566
|
i ? `${u}--critical` : null,
|
|
@@ -3569,26 +3569,26 @@ const d4 = {
|
|
|
3569
3569
|
m ? `${u}--working` : null,
|
|
3570
3570
|
o ? `${u}--monospace` : null,
|
|
3571
3571
|
l ?? ""
|
|
3572
|
-
]), k = (
|
|
3572
|
+
]), k = (M) => f ? /* @__PURE__ */ e.createElement(T2, { content: f, customTrigger: M }) : M;
|
|
3573
3573
|
if (L && !c) {
|
|
3574
|
-
const
|
|
3574
|
+
const M = h2(L) ? _2(
|
|
3575
3575
|
L,
|
|
3576
3576
|
Object.assign({}, L.props, {
|
|
3577
|
-
className:
|
|
3577
|
+
className: v([
|
|
3578
3578
|
`${u}__button`,
|
|
3579
|
-
|
|
3579
|
+
w,
|
|
3580
3580
|
L.props.className ?? ""
|
|
3581
3581
|
]),
|
|
3582
3582
|
children: b(D)
|
|
3583
3583
|
})
|
|
3584
3584
|
) : null;
|
|
3585
|
-
return /* @__PURE__ */ e.createElement("div", { className: P, ...p }, k(
|
|
3585
|
+
return /* @__PURE__ */ e.createElement("div", { className: P, ...p }, k(M));
|
|
3586
3586
|
}
|
|
3587
3587
|
const y = /* @__PURE__ */ e.createElement(
|
|
3588
3588
|
"button",
|
|
3589
3589
|
{
|
|
3590
3590
|
"aria-disabled": c || r || m,
|
|
3591
|
-
className:
|
|
3591
|
+
className: v([`${u}__button`, w]),
|
|
3592
3592
|
onClick: c ? void 0 : g,
|
|
3593
3593
|
type: "button",
|
|
3594
3594
|
...t
|
|
@@ -3596,7 +3596,29 @@ const d4 = {
|
|
|
3596
3596
|
b(D)
|
|
3597
3597
|
);
|
|
3598
3598
|
return /* @__PURE__ */ e.createElement("div", { className: P, ...p }, k(y));
|
|
3599
|
-
}, G4 =
|
|
3599
|
+
}, G4 = ({
|
|
3600
|
+
background: t = "default",
|
|
3601
|
+
children: l,
|
|
3602
|
+
className: c,
|
|
3603
|
+
padding: a = "standard",
|
|
3604
|
+
...n
|
|
3605
|
+
}) => {
|
|
3606
|
+
const s = "pds-card", i = t !== "default" ? `${s}--${t}` : null, r = a !== "standard" ? `${s}--pad-${a}` : null, o = P2(l), m = o.image, d = o.__unslotted || o.main;
|
|
3607
|
+
return /* @__PURE__ */ e.createElement(
|
|
3608
|
+
"div",
|
|
3609
|
+
{
|
|
3610
|
+
className: v([
|
|
3611
|
+
s,
|
|
3612
|
+
i,
|
|
3613
|
+
r,
|
|
3614
|
+
c ?? ""
|
|
3615
|
+
]),
|
|
3616
|
+
...n
|
|
3617
|
+
},
|
|
3618
|
+
m && /* @__PURE__ */ e.createElement("div", { className: `${s}__image` }, m[0]),
|
|
3619
|
+
d && /* @__PURE__ */ e.createElement("div", { className: `${s}__main` }, d)
|
|
3620
|
+
);
|
|
3621
|
+
}, W4 = k2(
|
|
3600
3622
|
({
|
|
3601
3623
|
className: t,
|
|
3602
3624
|
counterMaxLength: l,
|
|
@@ -3614,7 +3636,7 @@ const d4 = {
|
|
|
3614
3636
|
readonly: f = !1,
|
|
3615
3637
|
required: p = !1,
|
|
3616
3638
|
rows: u = 5,
|
|
3617
|
-
showLabel:
|
|
3639
|
+
showLabel: w,
|
|
3618
3640
|
size: C = "s",
|
|
3619
3641
|
textareaProps: z,
|
|
3620
3642
|
tooltipText: b = null,
|
|
@@ -3629,7 +3651,7 @@ const d4 = {
|
|
|
3629
3651
|
validationMessage: P,
|
|
3630
3652
|
validationStatus: k,
|
|
3631
3653
|
value: y,
|
|
3632
|
-
...
|
|
3654
|
+
...M
|
|
3633
3655
|
}, S) => {
|
|
3634
3656
|
const I = p1(s), N = "pds-textarea", _ = i ? "pds-is-resizable" : null, W = a ? X.disabled : null, Y = p && !a ? X.required : null, R = k === "error" ? X.error : null, i2 = k === "success" ? X.success : null, K = C !== "s" ? `${N}--${C}` : null, n2 = f ? X.readonly : null, Z = P || o, r2 = y != null && d !== void 0, Q = typeof c < "u", [o2, s2] = V(
|
|
3635
3657
|
Q ? c : ""
|
|
@@ -3641,7 +3663,7 @@ const d4 = {
|
|
|
3641
3663
|
return /* @__PURE__ */ e.createElement(
|
|
3642
3664
|
"div",
|
|
3643
3665
|
{
|
|
3644
|
-
className:
|
|
3666
|
+
className: v([
|
|
3645
3667
|
X.base,
|
|
3646
3668
|
N,
|
|
3647
3669
|
K,
|
|
@@ -3653,7 +3675,7 @@ const d4 = {
|
|
|
3653
3675
|
t ?? ""
|
|
3654
3676
|
]),
|
|
3655
3677
|
style: s ? I : null,
|
|
3656
|
-
...
|
|
3678
|
+
...M
|
|
3657
3679
|
},
|
|
3658
3680
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
3659
3681
|
z1,
|
|
@@ -3663,7 +3685,7 @@ const d4 = {
|
|
|
3663
3685
|
id: n,
|
|
3664
3686
|
label: r,
|
|
3665
3687
|
required: p,
|
|
3666
|
-
showLabel:
|
|
3688
|
+
showLabel: w,
|
|
3667
3689
|
tooltipText: b
|
|
3668
3690
|
}
|
|
3669
3691
|
), l && /* @__PURE__ */ e.createElement(
|
|
@@ -3681,7 +3703,7 @@ const d4 = {
|
|
|
3681
3703
|
ref: S,
|
|
3682
3704
|
"aria-describedby": Z ? `${n}__message` : null,
|
|
3683
3705
|
"aria-invalid": k === "error",
|
|
3684
|
-
className:
|
|
3706
|
+
className: v([`${N}--textarea`, _]),
|
|
3685
3707
|
disabled: a,
|
|
3686
3708
|
id: n,
|
|
3687
3709
|
name: n,
|
|
@@ -3708,7 +3730,7 @@ const d4 = {
|
|
|
3708
3730
|
)
|
|
3709
3731
|
);
|
|
3710
3732
|
}
|
|
3711
|
-
), b4 = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"),
|
|
3733
|
+
), b4 = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), U4 = k2(
|
|
3712
3734
|
({
|
|
3713
3735
|
autoComplete: t,
|
|
3714
3736
|
className: l,
|
|
@@ -3726,7 +3748,7 @@ const d4 = {
|
|
|
3726
3748
|
onBlur: f,
|
|
3727
3749
|
onChange: p,
|
|
3728
3750
|
onClear: u,
|
|
3729
|
-
onFocus:
|
|
3751
|
+
onFocus: w,
|
|
3730
3752
|
placeholder: C,
|
|
3731
3753
|
readonly: z = !1,
|
|
3732
3754
|
required: b = !1,
|
|
@@ -3734,7 +3756,7 @@ const d4 = {
|
|
|
3734
3756
|
showLabel: P = !0,
|
|
3735
3757
|
showVisibilityToggle: k = !1,
|
|
3736
3758
|
size: y = "s",
|
|
3737
|
-
tooltipText:
|
|
3759
|
+
tooltipText: M = null,
|
|
3738
3760
|
translationStrings: S = {
|
|
3739
3761
|
clearButton: "Clear input text",
|
|
3740
3762
|
counterOverLimit: "Character limit exceeded by",
|
|
@@ -3754,30 +3776,30 @@ const d4 = {
|
|
|
3754
3776
|
I === "search" && (A = "search"), I === "search" && D === "filter" && (A = "filter"), _ === "error" && (A = "error"), _ === "success" && (A = "success");
|
|
3755
3777
|
const q = N || g, U = typeof W < "u", e2 = typeof a < "u", [z2, u2] = V(
|
|
3756
3778
|
e2 ? a : ""
|
|
3757
|
-
), f2 = W || z2,
|
|
3779
|
+
), f2 = W || z2, S2 = (F) => {
|
|
3758
3780
|
if (k && m2 && L2(!1), r && I === "url") {
|
|
3759
|
-
const t2 = l1(F.target.value),
|
|
3781
|
+
const t2 = l1(F.target.value), M2 = {
|
|
3760
3782
|
...F,
|
|
3761
3783
|
target: {
|
|
3762
3784
|
...F.target,
|
|
3763
3785
|
value: t2
|
|
3764
3786
|
}
|
|
3765
3787
|
};
|
|
3766
|
-
f && f(
|
|
3788
|
+
f && f(M2);
|
|
3767
3789
|
} else f && f(F);
|
|
3768
3790
|
}, A2 = (F) => {
|
|
3769
3791
|
if (r && I === "url") {
|
|
3770
|
-
const t2 = l1(F.target.value),
|
|
3792
|
+
const t2 = l1(F.target.value), M2 = {
|
|
3771
3793
|
...F,
|
|
3772
3794
|
target: {
|
|
3773
3795
|
...F.target,
|
|
3774
3796
|
value: t2
|
|
3775
3797
|
}
|
|
3776
3798
|
};
|
|
3777
|
-
U || u2(t2), p && p(
|
|
3799
|
+
U || u2(t2), p && p(M2);
|
|
3778
3800
|
} else
|
|
3779
3801
|
U || u2(F.target.value), p && p(F);
|
|
3780
|
-
},
|
|
3802
|
+
}, I2 = () => {
|
|
3781
3803
|
U || u2(""), u && u();
|
|
3782
3804
|
const F = document.getElementById(o);
|
|
3783
3805
|
F && F.focus();
|
|
@@ -3790,7 +3812,7 @@ const d4 = {
|
|
|
3790
3812
|
return k && I === "password" && (m2 ? v2 = "text" : v2 = "password"), /* @__PURE__ */ e.createElement(
|
|
3791
3813
|
"div",
|
|
3792
3814
|
{
|
|
3793
|
-
className:
|
|
3815
|
+
className: v([
|
|
3794
3816
|
X.base,
|
|
3795
3817
|
K,
|
|
3796
3818
|
s2,
|
|
@@ -3813,7 +3835,7 @@ const d4 = {
|
|
|
3813
3835
|
label: L,
|
|
3814
3836
|
required: b,
|
|
3815
3837
|
showLabel: P,
|
|
3816
|
-
tooltipText:
|
|
3838
|
+
tooltipText: M
|
|
3817
3839
|
}
|
|
3818
3840
|
),
|
|
3819
3841
|
k && I === "password" && /* @__PURE__ */ e.createElement("div", { "aria-live": "polite", className: "visually-hidden" }, `${S.visibilityStatus} ${m2 ? "visible" : "hidden"}.`),
|
|
@@ -3835,9 +3857,9 @@ const d4 = {
|
|
|
3835
3857
|
disabled: n,
|
|
3836
3858
|
id: o,
|
|
3837
3859
|
name: o,
|
|
3838
|
-
onBlur:
|
|
3860
|
+
onBlur: S2,
|
|
3839
3861
|
onChange: A2,
|
|
3840
|
-
onFocus:
|
|
3862
|
+
onFocus: w,
|
|
3841
3863
|
placeholder: C,
|
|
3842
3864
|
readOnly: z,
|
|
3843
3865
|
required: b,
|
|
@@ -3850,7 +3872,7 @@ const d4 = {
|
|
|
3850
3872
|
o4,
|
|
3851
3873
|
{
|
|
3852
3874
|
clearLabel: S.clearButton,
|
|
3853
|
-
handleClearInput:
|
|
3875
|
+
handleClearInput: I2,
|
|
3854
3876
|
id: o
|
|
3855
3877
|
}
|
|
3856
3878
|
),
|
|
@@ -3906,7 +3928,7 @@ const d4 = {
|
|
|
3906
3928
|
return !0;
|
|
3907
3929
|
}
|
|
3908
3930
|
return !1;
|
|
3909
|
-
},
|
|
3931
|
+
}, K4 = ({
|
|
3910
3932
|
ariaLabel: t,
|
|
3911
3933
|
className: l,
|
|
3912
3934
|
menuItems: c,
|
|
@@ -3914,11 +3936,11 @@ const d4 = {
|
|
|
3914
3936
|
...n
|
|
3915
3937
|
}) => {
|
|
3916
3938
|
let s = !1;
|
|
3917
|
-
const i = D2(
|
|
3939
|
+
const i = D2(N2);
|
|
3918
3940
|
i && (s = i.isMobile);
|
|
3919
3941
|
const r = J(null), o = "pds-button-nav", m = s ? `${o}--isMobile` : null, d = `${o}--${a}`;
|
|
3920
3942
|
l2(() => {
|
|
3921
|
-
const u = (
|
|
3943
|
+
const u = (w) => {
|
|
3922
3944
|
if (s) return;
|
|
3923
3945
|
const C = r.current;
|
|
3924
3946
|
if (!C) return;
|
|
@@ -3928,12 +3950,12 @@ const d4 = {
|
|
|
3928
3950
|
if (z.length === 0) return;
|
|
3929
3951
|
const b = document.activeElement, D = z.indexOf(b);
|
|
3930
3952
|
if (D !== -1) {
|
|
3931
|
-
if (
|
|
3932
|
-
|
|
3953
|
+
if (w.key === "ArrowRight") {
|
|
3954
|
+
w.preventDefault();
|
|
3933
3955
|
const P = (D + 1) % z.length;
|
|
3934
3956
|
z[P].focus();
|
|
3935
|
-
} else if (
|
|
3936
|
-
|
|
3957
|
+
} else if (w.key === "ArrowLeft") {
|
|
3958
|
+
w.preventDefault();
|
|
3937
3959
|
const P = (D - 1 + z.length) % z.length;
|
|
3938
3960
|
z[P].focus();
|
|
3939
3961
|
}
|
|
@@ -3943,22 +3965,22 @@ const d4 = {
|
|
|
3943
3965
|
document.removeEventListener("keydown", u);
|
|
3944
3966
|
};
|
|
3945
3967
|
}, [s]);
|
|
3946
|
-
const L = ({ isActive: u, linkContent:
|
|
3968
|
+
const L = ({ isActive: u, linkContent: w }) => {
|
|
3947
3969
|
const C = `${o}__item`;
|
|
3948
3970
|
return /* @__PURE__ */ e.createElement(
|
|
3949
3971
|
"li",
|
|
3950
3972
|
{
|
|
3951
|
-
className:
|
|
3973
|
+
className: v([
|
|
3952
3974
|
C,
|
|
3953
3975
|
u ? `${C}--active` : null
|
|
3954
3976
|
])
|
|
3955
3977
|
},
|
|
3956
|
-
|
|
3978
|
+
w
|
|
3957
3979
|
);
|
|
3958
|
-
}, g = c.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, c.map((u,
|
|
3980
|
+
}, g = c.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, c.map((u, w) => /* @__PURE__ */ e.createElement(
|
|
3959
3981
|
L,
|
|
3960
3982
|
{
|
|
3961
|
-
key:
|
|
3983
|
+
key: w,
|
|
3962
3984
|
isActive: X2(u),
|
|
3963
3985
|
linkContent: u.linkContent
|
|
3964
3986
|
}
|
|
@@ -3986,7 +4008,7 @@ const d4 = {
|
|
|
3986
4008
|
{
|
|
3987
4009
|
ref: r,
|
|
3988
4010
|
"aria-label": t,
|
|
3989
|
-
className:
|
|
4011
|
+
className: v([
|
|
3990
4012
|
o,
|
|
3991
4013
|
d,
|
|
3992
4014
|
m,
|
|
@@ -4001,7 +4023,7 @@ const d4 = {
|
|
|
4001
4023
|
warning: "triangleExclamation",
|
|
4002
4024
|
critical: "diamondExclamation",
|
|
4003
4025
|
discovery: "bullhorn"
|
|
4004
|
-
}, G2 = 200, $4 = 50,
|
|
4026
|
+
}, G2 = 200, $4 = 50, X4 = ({
|
|
4005
4027
|
banners: t,
|
|
4006
4028
|
className: l,
|
|
4007
4029
|
dataContext: c = "product",
|
|
@@ -4011,7 +4033,7 @@ const d4 = {
|
|
|
4011
4033
|
typeLabels: i = { ...Q2, neutral: "Notice" },
|
|
4012
4034
|
...r
|
|
4013
4035
|
}) => {
|
|
4014
|
-
const o = c === "marketing", [m, d] = V(t), [L, g] = V(null), [f, p] = V(null), [u,
|
|
4036
|
+
const o = c === "marketing", [m, d] = V(t), [L, g] = V(null), [f, p] = V(null), [u, w] = V({});
|
|
4015
4037
|
l2(() => {
|
|
4016
4038
|
d(t);
|
|
4017
4039
|
}, [t]);
|
|
@@ -4024,7 +4046,7 @@ const d4 = {
|
|
|
4024
4046
|
info: `${z}--info`,
|
|
4025
4047
|
neutral: `${z}--neutral`,
|
|
4026
4048
|
warning: `${z}--warning`
|
|
4027
|
-
}, P = m[0].type, k = P ? `${z}-group--${P}` : null, y = (_) => R2 - _,
|
|
4049
|
+
}, P = m[0].type, k = P ? `${z}-group--${P}` : null, y = (_) => R2 - _, M = (_) => _ === 0 ? 0 : -1, S = () => {
|
|
4028
4050
|
g(m[0].id), setTimeout(() => {
|
|
4029
4051
|
d((_) => [
|
|
4030
4052
|
..._.slice(1),
|
|
@@ -4032,7 +4054,7 @@ const d4 = {
|
|
|
4032
4054
|
]), g(null);
|
|
4033
4055
|
}, G2);
|
|
4034
4056
|
}, I = () => {
|
|
4035
|
-
|
|
4057
|
+
w({
|
|
4036
4058
|
[m[0].id]: R2 + 2,
|
|
4037
4059
|
[m[C - 1].id]: R2 + 1
|
|
4038
4060
|
}), setTimeout(() => {
|
|
@@ -4041,7 +4063,7 @@ const d4 = {
|
|
|
4041
4063
|
d((_) => [
|
|
4042
4064
|
_[_.length - 1],
|
|
4043
4065
|
..._.slice(0, _.length - 1)
|
|
4044
|
-
]), g(null),
|
|
4066
|
+
]), g(null), w({});
|
|
4045
4067
|
}, G2);
|
|
4046
4068
|
}, N = (_, W) => {
|
|
4047
4069
|
const { iconName: Y, id: R, isDismissible: i2, message: K, onDismiss: n2, type: Z } = _, r2 = Z === "critical" ? "alert" : "status", Q = `${i[Z]}: `, o2 = (T) => {
|
|
@@ -4055,7 +4077,7 @@ const d4 = {
|
|
|
4055
4077
|
"div",
|
|
4056
4078
|
{
|
|
4057
4079
|
key: R,
|
|
4058
|
-
className:
|
|
4080
|
+
className: v([
|
|
4059
4081
|
z,
|
|
4060
4082
|
D[Z],
|
|
4061
4083
|
L === R ? `${z}--fading` : null,
|
|
@@ -4078,7 +4100,7 @@ const d4 = {
|
|
|
4078
4100
|
{
|
|
4079
4101
|
className: `${z}__dismiss-button`,
|
|
4080
4102
|
onClick: o2,
|
|
4081
|
-
tabIndex:
|
|
4103
|
+
tabIndex: M(W),
|
|
4082
4104
|
type: "button"
|
|
4083
4105
|
},
|
|
4084
4106
|
a
|
|
@@ -4088,7 +4110,7 @@ const d4 = {
|
|
|
4088
4110
|
return /* @__PURE__ */ e.createElement(
|
|
4089
4111
|
"div",
|
|
4090
4112
|
{
|
|
4091
|
-
className:
|
|
4113
|
+
className: v([
|
|
4092
4114
|
`${z}-group`,
|
|
4093
4115
|
k,
|
|
4094
4116
|
b,
|
|
@@ -4098,7 +4120,7 @@ const d4 = {
|
|
|
4098
4120
|
...r
|
|
4099
4121
|
},
|
|
4100
4122
|
C > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${z}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
4101
|
-
|
|
4123
|
+
j2,
|
|
4102
4124
|
{
|
|
4103
4125
|
ariaLabel: s,
|
|
4104
4126
|
className: `${z}__nav-button ${z}__nav-button--prev`,
|
|
@@ -4107,7 +4129,7 @@ const d4 = {
|
|
|
4107
4129
|
size: "m"
|
|
4108
4130
|
}
|
|
4109
4131
|
), /* @__PURE__ */ e.createElement(
|
|
4110
|
-
|
|
4132
|
+
j2,
|
|
4111
4133
|
{
|
|
4112
4134
|
ariaLabel: n,
|
|
4113
4135
|
className: `${z}__nav-button ${z}__nav-button--next`,
|
|
@@ -4122,7 +4144,7 @@ const d4 = {
|
|
|
4122
4144
|
warning: "triangleExclamation",
|
|
4123
4145
|
success: "circleCheck",
|
|
4124
4146
|
critical: "diamondExclamation"
|
|
4125
|
-
},
|
|
4147
|
+
}, Y4 = ({
|
|
4126
4148
|
className: t,
|
|
4127
4149
|
message: l,
|
|
4128
4150
|
title: c,
|
|
@@ -4144,11 +4166,11 @@ const d4 = {
|
|
|
4144
4166
|
return /* @__PURE__ */ e.createElement(
|
|
4145
4167
|
"div",
|
|
4146
4168
|
{
|
|
4147
|
-
className:
|
|
4169
|
+
className: v([i, r[a], t ?? ""]),
|
|
4148
4170
|
role: o,
|
|
4149
4171
|
...s
|
|
4150
4172
|
},
|
|
4151
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon-${a}` }, a === "working" ? /* @__PURE__ */ e.createElement(
|
|
4173
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon-${a}` }, a === "working" ? /* @__PURE__ */ e.createElement(x2, { colorType: "monochromatic", size: "m" }) : /* @__PURE__ */ e.createElement(
|
|
4152
4174
|
O,
|
|
4153
4175
|
{
|
|
4154
4176
|
iconName: `${a}` in W2 ? W2[a] : W2.info,
|
|
@@ -4163,7 +4185,7 @@ const d4 = {
|
|
|
4163
4185
|
success: "circleCheck",
|
|
4164
4186
|
critical: "diamondExclamation",
|
|
4165
4187
|
discovery: "squareQuestion"
|
|
4166
|
-
},
|
|
4188
|
+
}, Q4 = ({
|
|
4167
4189
|
className: t,
|
|
4168
4190
|
ctaButton: l,
|
|
4169
4191
|
dataContext: c = "product",
|
|
@@ -4186,12 +4208,12 @@ const d4 = {
|
|
|
4186
4208
|
discovery: `${p}--discovery`,
|
|
4187
4209
|
dismissing: `${p}--dismissing`,
|
|
4188
4210
|
dismissed: `${p}--dismissed`
|
|
4189
|
-
},
|
|
4211
|
+
}, w = s ? `${p}--hasDismiss` : null, C = o ? `${p}--hasTitle` : null, z = m === "critical" ? "alert" : "status", b = `${d[m]}: `, D = typeof i == "string" ? /* @__PURE__ */ e.createElement("p", null, i) : i, P = () => {
|
|
4190
4212
|
f.current.addEventListener("animationend", k, {
|
|
4191
4213
|
once: !0
|
|
4192
4214
|
});
|
|
4193
|
-
}, k = (
|
|
4194
|
-
r(
|
|
4215
|
+
}, k = (M) => {
|
|
4216
|
+
r(M, n);
|
|
4195
4217
|
}, y = () => {
|
|
4196
4218
|
P(), f.current.classList.toggle(u.dismissing), setTimeout(() => {
|
|
4197
4219
|
f.current.classList.toggle(u.dismissing), f.current.classList.toggle(u.dismissed);
|
|
@@ -4201,10 +4223,10 @@ const d4 = {
|
|
|
4201
4223
|
"div",
|
|
4202
4224
|
{
|
|
4203
4225
|
ref: f,
|
|
4204
|
-
className:
|
|
4226
|
+
className: v([
|
|
4205
4227
|
p,
|
|
4206
4228
|
u[m],
|
|
4207
|
-
|
|
4229
|
+
w,
|
|
4208
4230
|
C,
|
|
4209
4231
|
t ?? ""
|
|
4210
4232
|
]),
|
|
@@ -4266,10 +4288,10 @@ const d4 = {
|
|
|
4266
4288
|
return /* @__PURE__ */ e.createElement(
|
|
4267
4289
|
"div",
|
|
4268
4290
|
{
|
|
4269
|
-
className:
|
|
4291
|
+
className: v([s, i[a], l]),
|
|
4270
4292
|
id: c
|
|
4271
4293
|
},
|
|
4272
|
-
/* @__PURE__ */ e.createElement("div", { className: `${s}__icon-container` }, a === "working" ? /* @__PURE__ */ e.createElement(
|
|
4294
|
+
/* @__PURE__ */ e.createElement("div", { className: `${s}__icon-container` }, a === "working" ? /* @__PURE__ */ e.createElement(x2, { colorType: "monochromatic-reverse", size: "l" }) : /* @__PURE__ */ e.createElement(
|
|
4273
4295
|
O,
|
|
4274
4296
|
{
|
|
4275
4297
|
className: `${s}__icon ${s}__icon--${a}`,
|
|
@@ -4287,16 +4309,19 @@ const d4 = {
|
|
|
4287
4309
|
{
|
|
4288
4310
|
ariaLabel: t || "Close",
|
|
4289
4311
|
className: "pds-toaster__close-button",
|
|
4290
|
-
onClick: () =>
|
|
4291
|
-
|
|
4312
|
+
onClick: (c) => {
|
|
4313
|
+
c.stopPropagation(), l(c);
|
|
4314
|
+
},
|
|
4315
|
+
size: "l",
|
|
4316
|
+
tabIndex: 0
|
|
4292
4317
|
}
|
|
4293
|
-
),
|
|
4294
|
-
autoCloseDuration: t =
|
|
4318
|
+
), J4 = ({
|
|
4319
|
+
autoCloseDuration: t = !1,
|
|
4295
4320
|
className: l,
|
|
4296
4321
|
limit: c = 5,
|
|
4297
4322
|
position: a = "bottom-right"
|
|
4298
4323
|
}) => {
|
|
4299
|
-
const s =
|
|
4324
|
+
const s = v(["pds-toaster", l]);
|
|
4300
4325
|
return /* @__PURE__ */ e.createElement(
|
|
4301
4326
|
A1,
|
|
4302
4327
|
{
|
|
@@ -4314,7 +4339,7 @@ const d4 = {
|
|
|
4314
4339
|
);
|
|
4315
4340
|
};
|
|
4316
4341
|
var x4 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Info = "info", t.Success = "success", t.Warning = "warning", t.Working = "working", t))(x4 || {});
|
|
4317
|
-
const
|
|
4342
|
+
const e0 = () => {
|
|
4318
4343
|
const t = (c, a, n = {}) => {
|
|
4319
4344
|
const s = /* @__PURE__ */ e.createElement(k4, { type: c }, a);
|
|
4320
4345
|
let i = {
|
|
@@ -4322,14 +4347,9 @@ const J4 = () => {
|
|
|
4322
4347
|
};
|
|
4323
4348
|
return c === "critical" && (i = {
|
|
4324
4349
|
...i,
|
|
4325
|
-
autoClose: !1,
|
|
4326
4350
|
role: "alert"
|
|
4327
|
-
}), c === "warning" && (i = {
|
|
4328
|
-
...i,
|
|
4329
|
-
autoClose: !1
|
|
4330
4351
|
}), c === "working" && (i = {
|
|
4331
4352
|
...i,
|
|
4332
|
-
autoClose: !1,
|
|
4333
4353
|
closeButton: !1,
|
|
4334
4354
|
closeOnClick: !1
|
|
4335
4355
|
}), e1(s, i);
|
|
@@ -4339,38 +4359,38 @@ const J4 = () => {
|
|
|
4339
4359
|
exit: "pds-toast--slideOut"
|
|
4340
4360
|
});
|
|
4341
4361
|
return [t, e1, l];
|
|
4342
|
-
},
|
|
4362
|
+
}, t0 = ({
|
|
4343
4363
|
children: t,
|
|
4344
4364
|
className: l,
|
|
4345
4365
|
expandButtonAriaLabel: c,
|
|
4346
4366
|
isExpandable: a = !1,
|
|
4347
4367
|
...n
|
|
4348
4368
|
}) => {
|
|
4349
|
-
const s = "pds-panel-row", [i, r] = V(!1), o = J(null), m = J(null), d =
|
|
4350
|
-
const u = m.current,
|
|
4351
|
-
if (!u || !
|
|
4369
|
+
const s = "pds-panel-row", [i, r] = V(!1), o = J(null), m = J(null), d = P2(t), L = d["items-left"], g = d["items-right"], f = d["items-below"], p = () => {
|
|
4370
|
+
const u = m.current, w = o.current;
|
|
4371
|
+
if (!u || !w) return;
|
|
4352
4372
|
const C = !i;
|
|
4353
4373
|
r(C), C ? (Object.assign(u.style, {
|
|
4354
4374
|
display: "block",
|
|
4355
4375
|
height: "auto",
|
|
4356
4376
|
opacity: "1"
|
|
4357
|
-
}),
|
|
4377
|
+
}), w.classList.add("is-expanded")) : (Object.assign(u.style, {
|
|
4358
4378
|
height: "0",
|
|
4359
4379
|
opacity: "0",
|
|
4360
4380
|
display: "none"
|
|
4361
|
-
}),
|
|
4381
|
+
}), w.classList.remove("is-expanded"));
|
|
4362
4382
|
};
|
|
4363
4383
|
return /* @__PURE__ */ e.createElement(
|
|
4364
4384
|
"li",
|
|
4365
4385
|
{
|
|
4366
|
-
className:
|
|
4386
|
+
className: v([s, l ?? ""]),
|
|
4367
4387
|
...n,
|
|
4368
4388
|
ref: o
|
|
4369
4389
|
},
|
|
4370
4390
|
/* @__PURE__ */ e.createElement(
|
|
4371
4391
|
"div",
|
|
4372
4392
|
{
|
|
4373
|
-
className:
|
|
4393
|
+
className: v([
|
|
4374
4394
|
`${s}__main`,
|
|
4375
4395
|
a ? "is-expandable" : ""
|
|
4376
4396
|
])
|
|
@@ -4404,7 +4424,7 @@ const J4 = () => {
|
|
|
4404
4424
|
/* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, f)
|
|
4405
4425
|
)
|
|
4406
4426
|
);
|
|
4407
|
-
},
|
|
4427
|
+
}, s0 = ({
|
|
4408
4428
|
alt: t = "",
|
|
4409
4429
|
className: l,
|
|
4410
4430
|
height: c,
|
|
@@ -4414,7 +4434,7 @@ const J4 = () => {
|
|
|
4414
4434
|
...i
|
|
4415
4435
|
}) => {
|
|
4416
4436
|
const r = "pds-picture";
|
|
4417
|
-
return /* @__PURE__ */ e.createElement("picture", { className:
|
|
4437
|
+
return /* @__PURE__ */ e.createElement("picture", { className: v([r, l ?? ""]) }, /* @__PURE__ */ e.createElement("source", { srcSet: n, type: "image/webp" }), /* @__PURE__ */ e.createElement(
|
|
4418
4438
|
"img",
|
|
4419
4439
|
{
|
|
4420
4440
|
alt: t,
|
|
@@ -4425,7 +4445,7 @@ const J4 = () => {
|
|
|
4425
4445
|
...i
|
|
4426
4446
|
}
|
|
4427
4447
|
));
|
|
4428
|
-
},
|
|
4448
|
+
}, c0 = ({
|
|
4429
4449
|
className: t,
|
|
4430
4450
|
destination: l = "main",
|
|
4431
4451
|
text: c = "Skip to main content",
|
|
@@ -4433,12 +4453,12 @@ const J4 = () => {
|
|
|
4433
4453
|
}) => /* @__PURE__ */ e.createElement(
|
|
4434
4454
|
"a",
|
|
4435
4455
|
{
|
|
4436
|
-
className:
|
|
4456
|
+
className: v(["pds-skiplink", t]),
|
|
4437
4457
|
href: `#${l}`,
|
|
4438
4458
|
...a
|
|
4439
4459
|
},
|
|
4440
4460
|
c
|
|
4441
|
-
),
|
|
4461
|
+
), a0 = ({
|
|
4442
4462
|
className: t,
|
|
4443
4463
|
label: l = null,
|
|
4444
4464
|
size: c = "s",
|
|
@@ -4449,7 +4469,7 @@ const J4 = () => {
|
|
|
4449
4469
|
return /* @__PURE__ */ e.createElement(
|
|
4450
4470
|
"div",
|
|
4451
4471
|
{
|
|
4452
|
-
className:
|
|
4472
|
+
className: v([
|
|
4453
4473
|
s,
|
|
4454
4474
|
i,
|
|
4455
4475
|
r,
|
|
@@ -4458,7 +4478,7 @@ const J4 = () => {
|
|
|
4458
4478
|
...n
|
|
4459
4479
|
},
|
|
4460
4480
|
a === "working" ? /* @__PURE__ */ e.createElement(
|
|
4461
|
-
|
|
4481
|
+
x2,
|
|
4462
4482
|
{
|
|
4463
4483
|
className: `${s}__spinner`,
|
|
4464
4484
|
colorType: "monochromatic",
|
|
@@ -4467,7 +4487,7 @@ const J4 = () => {
|
|
|
4467
4487
|
) : /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${s}__icon`, role: "img" }),
|
|
4468
4488
|
l && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, l)
|
|
4469
4489
|
);
|
|
4470
|
-
},
|
|
4490
|
+
}, l0 = ({
|
|
4471
4491
|
className: t,
|
|
4472
4492
|
platform: l,
|
|
4473
4493
|
videoId: c,
|
|
@@ -4506,13 +4526,12 @@ const J4 = () => {
|
|
|
4506
4526
|
case "wistia":
|
|
4507
4527
|
m = i;
|
|
4508
4528
|
break;
|
|
4509
|
-
case "youtube":
|
|
4510
4529
|
default:
|
|
4511
4530
|
m = o;
|
|
4512
4531
|
break;
|
|
4513
4532
|
}
|
|
4514
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4515
|
-
},
|
|
4533
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([s, t ?? ""]), ...n }, m);
|
|
4534
|
+
}, i0 = ({
|
|
4516
4535
|
className: t,
|
|
4517
4536
|
option: l,
|
|
4518
4537
|
...c
|
|
@@ -4532,7 +4551,7 @@ const J4 = () => {
|
|
|
4532
4551
|
"div",
|
|
4533
4552
|
{
|
|
4534
4553
|
ref: s,
|
|
4535
|
-
className:
|
|
4554
|
+
className: v([a, t ?? ""]),
|
|
4536
4555
|
title: l.name,
|
|
4537
4556
|
...c
|
|
4538
4557
|
},
|
|
@@ -4546,7 +4565,7 @@ const J4 = () => {
|
|
|
4546
4565
|
)),
|
|
4547
4566
|
/* @__PURE__ */ e.createElement("div", { className: `${a}__status`, style: { pointerEvents: "none" } }, d)
|
|
4548
4567
|
);
|
|
4549
|
-
},
|
|
4568
|
+
}, n0 = ({
|
|
4550
4569
|
children: t,
|
|
4551
4570
|
className: l,
|
|
4552
4571
|
width: c = "standard",
|
|
@@ -4556,12 +4575,12 @@ const J4 = () => {
|
|
|
4556
4575
|
return /* @__PURE__ */ e.createElement(
|
|
4557
4576
|
"div",
|
|
4558
4577
|
{
|
|
4559
|
-
className:
|
|
4578
|
+
className: v([n, s, l ?? ""]),
|
|
4560
4579
|
...a
|
|
4561
4580
|
},
|
|
4562
4581
|
t
|
|
4563
4582
|
);
|
|
4564
|
-
},
|
|
4583
|
+
}, r0 = ({
|
|
4565
4584
|
children: t,
|
|
4566
4585
|
className: l,
|
|
4567
4586
|
sidebarMinWidth: c = 14.5,
|
|
@@ -4569,16 +4588,16 @@ const J4 = () => {
|
|
|
4569
4588
|
...n
|
|
4570
4589
|
}) => {
|
|
4571
4590
|
let s = !1;
|
|
4572
|
-
const i = D2(
|
|
4591
|
+
const i = D2(N2);
|
|
4573
4592
|
i && (s = i.isMobile);
|
|
4574
4593
|
const r = "pds-docs-layout", o = s ? `${r}--isMobile` : null, m = {
|
|
4575
4594
|
width: a,
|
|
4576
4595
|
minWidth: `${c}rem`
|
|
4577
|
-
}, d =
|
|
4596
|
+
}, d = P2(t), L = d.__unslotted || d.content, g = d.sidebar, f = /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar` }, g), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, L)), p = /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar`, style: m }, /* @__PURE__ */ e.createElement("div", { className: `${r}__sidebar-inner` }, g)), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, L));
|
|
4578
4597
|
return /* @__PURE__ */ e.createElement(
|
|
4579
4598
|
"div",
|
|
4580
4599
|
{
|
|
4581
|
-
className:
|
|
4600
|
+
className: v([
|
|
4582
4601
|
r,
|
|
4583
4602
|
o,
|
|
4584
4603
|
"pds-container pds-container--x-wide",
|
|
@@ -4588,7 +4607,7 @@ const J4 = () => {
|
|
|
4588
4607
|
},
|
|
4589
4608
|
s ? f : p
|
|
4590
4609
|
);
|
|
4591
|
-
},
|
|
4610
|
+
}, o0 = ({
|
|
4592
4611
|
alignContent: t = "flex-start",
|
|
4593
4612
|
alignItems: l = "stretch",
|
|
4594
4613
|
children: c,
|
|
@@ -4605,31 +4624,31 @@ const J4 = () => {
|
|
|
4605
4624
|
mobileJustifyContent: f,
|
|
4606
4625
|
...p
|
|
4607
4626
|
}) => {
|
|
4608
|
-
let
|
|
4609
|
-
const C = D2(
|
|
4610
|
-
C && (
|
|
4611
|
-
const z = "pds-flex", b = `${z}-container`, D =
|
|
4627
|
+
let w = M1() <= 640;
|
|
4628
|
+
const C = D2(N2);
|
|
4629
|
+
C && (w = C.isMobile);
|
|
4630
|
+
const z = "pds-flex", b = `${z}-container`, D = w ? `${b}--mobile` : null;
|
|
4612
4631
|
let P = null;
|
|
4613
|
-
|
|
4632
|
+
w ? P = `${z}-direction--${d}` : n !== "row" && (P = `${z}-direction--${n}`);
|
|
4614
4633
|
let k = null;
|
|
4615
|
-
|
|
4634
|
+
w ? L ? L !== "nowrap" && (k = `${z}-wrap--${L}`) : s !== "nowrap" && (k = `${z}-wrap--${s}`) : s !== "nowrap" && (k = `${z}-wrap--${s}`);
|
|
4616
4635
|
let y = null;
|
|
4617
|
-
|
|
4618
|
-
let
|
|
4619
|
-
|
|
4636
|
+
w ? f ? f !== "flex-start" && (y = `${z}-justify--${f}`) : r !== "flex-start" && (y = `${z}-justify--${r}`) : r !== "flex-start" && (y = `${z}-justify--${r}`);
|
|
4637
|
+
let M = null;
|
|
4638
|
+
w ? m ? m !== "stretch" && (M = `${z}-align-items--${m}`) : l !== "stretch" && (M = `${z}-align-items--${l}`) : l !== "stretch" && (M = `${z}-align-items--${l}`);
|
|
4620
4639
|
let S = null;
|
|
4621
|
-
|
|
4640
|
+
w ? o ? o !== "flex-start" && (S = `${z}-align-content--${o}`) : t !== "flex-start" && (S = `${z}-align-content--${t}`) : t !== "flex-start" && (S = `${z}-align-content--${t}`);
|
|
4622
4641
|
let I = null;
|
|
4623
|
-
return
|
|
4642
|
+
return w ? g ? g !== "none" && (I = `${z}-gap--${g}`) : i !== "none" && (I = `${z}-gap--${i}`) : i !== "none" && (I = `${z}-gap--${i}`), /* @__PURE__ */ e.createElement(
|
|
4624
4643
|
"div",
|
|
4625
4644
|
{
|
|
4626
|
-
className:
|
|
4645
|
+
className: v([
|
|
4627
4646
|
b,
|
|
4628
4647
|
D,
|
|
4629
4648
|
P,
|
|
4630
4649
|
k,
|
|
4631
4650
|
y,
|
|
4632
|
-
|
|
4651
|
+
M,
|
|
4633
4652
|
S,
|
|
4634
4653
|
I,
|
|
4635
4654
|
a ?? ""
|
|
@@ -4638,17 +4657,17 @@ const J4 = () => {
|
|
|
4638
4657
|
},
|
|
4639
4658
|
c
|
|
4640
4659
|
);
|
|
4641
|
-
},
|
|
4660
|
+
}, m0 = ({
|
|
4642
4661
|
children: t,
|
|
4643
4662
|
mobileMenuMaxWidth: l = 640
|
|
4644
|
-
}) => /* @__PURE__ */ e.createElement(L4, { mobileMenuMaxWidth: l }, /* @__PURE__ */ e.createElement(c4, null, t)),
|
|
4663
|
+
}) => /* @__PURE__ */ e.createElement(L4, { mobileMenuMaxWidth: l }, /* @__PURE__ */ e.createElement(c4, null, t)), d0 = ({
|
|
4645
4664
|
children: t,
|
|
4646
4665
|
className: l,
|
|
4647
4666
|
gridGap: c = "standard",
|
|
4648
4667
|
verticalAlign: a = "start",
|
|
4649
4668
|
...n
|
|
4650
4669
|
}) => {
|
|
4651
|
-
const s = "pds-three-item-layout", i = c === "standard" ? "pds-grid" : `pds-grid pds-grid--${c}`, r = `${s}--${a}`, o =
|
|
4670
|
+
const s = "pds-three-item-layout", i = c === "standard" ? "pds-grid" : `pds-grid pds-grid--${c}`, r = `${s}--${a}`, o = P2(t), m = [
|
|
4652
4671
|
o["first-item"],
|
|
4653
4672
|
o["second-item"],
|
|
4654
4673
|
o["third-item"]
|
|
@@ -4656,7 +4675,7 @@ const J4 = () => {
|
|
|
4656
4675
|
return /* @__PURE__ */ e.createElement(
|
|
4657
4676
|
"div",
|
|
4658
4677
|
{
|
|
4659
|
-
className:
|
|
4678
|
+
className: v([
|
|
4660
4679
|
s,
|
|
4661
4680
|
i,
|
|
4662
4681
|
r,
|
|
@@ -4673,7 +4692,7 @@ const J4 = () => {
|
|
|
4673
4692
|
d
|
|
4674
4693
|
))
|
|
4675
4694
|
);
|
|
4676
|
-
},
|
|
4695
|
+
}, h0 = ({
|
|
4677
4696
|
children: t,
|
|
4678
4697
|
className: l,
|
|
4679
4698
|
gridGap: c = "standard",
|
|
@@ -4693,11 +4712,11 @@ const J4 = () => {
|
|
|
4693
4712
|
case "one-third-end":
|
|
4694
4713
|
f = g.concat(L), p = g.concat(d);
|
|
4695
4714
|
}
|
|
4696
|
-
const u =
|
|
4715
|
+
const u = P2(t), w = u["first-item"], C = u["second-item"];
|
|
4697
4716
|
return /* @__PURE__ */ e.createElement(
|
|
4698
4717
|
"div",
|
|
4699
4718
|
{
|
|
4700
|
-
className:
|
|
4719
|
+
className: v([
|
|
4701
4720
|
i,
|
|
4702
4721
|
r,
|
|
4703
4722
|
o,
|
|
@@ -4705,10 +4724,10 @@ const J4 = () => {
|
|
|
4705
4724
|
]),
|
|
4706
4725
|
...s
|
|
4707
4726
|
},
|
|
4708
|
-
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() },
|
|
4727
|
+
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, w),
|
|
4709
4728
|
/* @__PURE__ */ e.createElement("div", { className: p.join(" ").trim() }, C)
|
|
4710
4729
|
);
|
|
4711
|
-
},
|
|
4730
|
+
}, u0 = () => {
|
|
4712
4731
|
const t = typeof window < "u", l = (n) => n >= K1 ? "xl" : n >= U1 ? "lg" : n >= W1 ? "md" : "sm", [c, a] = V(
|
|
4713
4732
|
t ? l(window.innerWidth) : "lg"
|
|
4714
4733
|
);
|
|
@@ -4721,7 +4740,7 @@ const J4 = () => {
|
|
|
4721
4740
|
window.removeEventListener("resize", n);
|
|
4722
4741
|
};
|
|
4723
4742
|
}, []), c;
|
|
4724
|
-
},
|
|
4743
|
+
}, g0 = (t) => {
|
|
4725
4744
|
const l = typeof window < "u", c = (s) => l ? window.matchMedia(s).matches : !1, [a, n] = V(c(t));
|
|
4726
4745
|
return l2(() => {
|
|
4727
4746
|
if (!l) return;
|
|
@@ -4734,58 +4753,59 @@ const J4 = () => {
|
|
|
4734
4753
|
export {
|
|
4735
4754
|
A4 as Avatar,
|
|
4736
4755
|
O4 as Badge,
|
|
4737
|
-
|
|
4756
|
+
X4 as Banner,
|
|
4738
4757
|
B2 as Button,
|
|
4739
4758
|
g4 as ButtonLink,
|
|
4740
|
-
|
|
4759
|
+
K4 as ButtonNav,
|
|
4760
|
+
G4 as Card,
|
|
4741
4761
|
H4 as ClipboardButton,
|
|
4742
4762
|
v1 as CloseButton,
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4763
|
+
n0 as Container,
|
|
4764
|
+
r0 as DocsLayout,
|
|
4765
|
+
o0 as FlexContainer,
|
|
4766
|
+
m0 as GlobalWrapper,
|
|
4747
4767
|
O as Icon,
|
|
4748
|
-
|
|
4749
|
-
|
|
4768
|
+
j2 as IconButton,
|
|
4769
|
+
Y4 as InlineMessage,
|
|
4750
4770
|
C4 as MenuButton,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4771
|
+
t0 as PanelRow,
|
|
4772
|
+
s0 as Picture,
|
|
4773
|
+
N2 as ResponsiveContext,
|
|
4754
4774
|
L4 as ResponsiveContextProvider,
|
|
4755
4775
|
Z4 as SSOButton,
|
|
4756
|
-
|
|
4776
|
+
Q4 as SectionMessage,
|
|
4757
4777
|
F4 as SegmentedButton,
|
|
4758
|
-
|
|
4778
|
+
i0 as SiteOptionDisplay,
|
|
4759
4779
|
R4 as SitePlanLevelLabel,
|
|
4760
4780
|
f4 as SiteTypeIcon,
|
|
4761
4781
|
V4 as SiteTypeLabel,
|
|
4762
|
-
|
|
4763
|
-
|
|
4782
|
+
c0 as Skiplink,
|
|
4783
|
+
x2 as Spinner,
|
|
4764
4784
|
v4 as SplitButton,
|
|
4765
4785
|
G1 as StatusBadge,
|
|
4766
|
-
|
|
4786
|
+
a0 as StatusIndicator,
|
|
4767
4787
|
Q2 as StatusTypeLabels,
|
|
4768
4788
|
d1 as Tally,
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4789
|
+
U4 as TextInput,
|
|
4790
|
+
W4 as Textarea,
|
|
4791
|
+
d0 as ThreeItemLayout,
|
|
4772
4792
|
k4 as Toast,
|
|
4773
4793
|
x4 as ToastType,
|
|
4774
|
-
|
|
4794
|
+
J4 as Toaster,
|
|
4775
4795
|
T2 as Tooltip,
|
|
4776
|
-
|
|
4796
|
+
h0 as TwoItemLayout,
|
|
4777
4797
|
q4 as UtilityButton,
|
|
4778
|
-
|
|
4798
|
+
l0 as VideoEmbed,
|
|
4779
4799
|
B4 as iconList,
|
|
4780
4800
|
F2 as isHeadingItemType,
|
|
4781
4801
|
Z2 as isLinkItemType,
|
|
4782
4802
|
z4 as isNodeItemType,
|
|
4783
4803
|
V2 as isSeparatorItemType,
|
|
4784
|
-
|
|
4804
|
+
u0 as useBreakpoint,
|
|
4785
4805
|
p4 as useClipboard,
|
|
4786
4806
|
l4 as useKeyPress,
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4807
|
+
g0 as useMediaQuery,
|
|
4808
|
+
e0 as useToast,
|
|
4809
|
+
M1 as useWindowWidth
|
|
4790
4810
|
};
|
|
4791
4811
|
//# sourceMappingURL=index.js.map
|