@pantheon-systems/pds-toolkit-react 2.0.0-alpha.4 → 2.0.0-alpha.6
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/Avatar/Avatar.d.ts +1 -1
- package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/dist/components/badges/Badge/Badge.d.ts +28 -0
- package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
- package/dist/components/cards/PricingCard/PricingCard.d.ts +6 -1
- package/dist/components/footer/SiteFooter/SiteFooter.d.ts +5 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -2
- package/dist/components/inputs/Select/Select.d.ts +5 -1
- package/dist/components/inputs/Select/select-sample-data.d.ts +1 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts +4 -0
- package/dist/components/inputs/Textarea/Textarea.d.ts +4 -0
- package/dist/components/inputs/input-utilities.d.ts +3 -3
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +6 -7
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-badge.css +1 -0
- package/dist/css/component-css/pds-button.css +2 -2
- package/dist/css/component-css/pds-dashboard-nav.css +1 -1
- package/dist/css/component-css/pds-file-upload.css +1 -1
- package/dist/css/component-css/pds-icon-button.css +4 -4
- package/dist/css/component-css/pds-icon.css +1 -1
- package/dist/css/component-css/pds-index.css +13 -37
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-pricing-card.css +1 -1
- package/dist/css/component-css/pds-select.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-skiplink.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/component-css/pds-status-indicator.css +1 -1
- package/dist/css/component-css/pds-text-input.css +1 -1
- package/dist/css/component-css/pds-textarea.css +1 -1
- package/dist/css/component-css/pds-tooltip.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +120 -22
- package/dist/css/design-tokens/variables.global.css +4 -3
- package/dist/css/design-tokens/variables.light.css +98 -22
- package/dist/css/design-tokens/variables.typography.css +2 -0
- package/dist/css/pds-components.css +13 -37
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1827 -1564
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +1 -1
- package/dist/libs/types/custom-types.d.ts +0 -1
- package/dist/svg/locationCrosshairs.svg +3 -0
- package/package.json +2 -2
- package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
- package/dist/css/component-css/pds-indicator-badge.css +0 -25
package/dist/index.js
CHANGED
|
@@ -1,55 +1,18 @@
|
|
|
1
|
-
import e, { Children as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import e, { Children as i1, isValidElement as h2, useState as H, cloneElement as _2, useCallback as $2, useEffect as l2, createContext as n1, useContext as D2, forwardRef as P2, useRef as J, useLayoutEffect as _1 } from "react";
|
|
2
|
+
import D1 from "hash-sum";
|
|
3
|
+
import { useFloating as r1, autoUpdate as o1, offset as P1, flip as m1, shift as k1, 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
|
+
import { ToastContainer as A1, Slide as O1, cssTransition as H1, toast as e1 } from "react-toastify";
|
|
5
|
+
import { useMeasure as R1 } from "@reactuses/core";
|
|
6
|
+
import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13), j2 = (t) => {
|
|
7
|
+
const l = {}, a = [];
|
|
8
|
+
return i1.forEach(t, (c) => {
|
|
9
|
+
if (h2(c)) {
|
|
10
|
+
const i = c.props.slot;
|
|
11
|
+
i ? l[i] ? l[i].push(c) : l[i] = [c] : a.push(c);
|
|
11
12
|
} else
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
-
},
|
|
15
|
-
className: t,
|
|
16
|
-
label: a,
|
|
17
|
-
size: l = "s",
|
|
18
|
-
type: s = "neutral",
|
|
19
|
-
typeLabels: r = {
|
|
20
|
-
info: "Information",
|
|
21
|
-
success: "Success",
|
|
22
|
-
warning: "Warning",
|
|
23
|
-
critical: "Critical",
|
|
24
|
-
neutral: ""
|
|
25
|
-
},
|
|
26
|
-
...c
|
|
27
|
-
}) => {
|
|
28
|
-
const n = "pds-tally", i = `${n}--${s}`, m = `${n}--${l}`, h = `${r[s]}: `;
|
|
29
|
-
return /* @__PURE__ */ e.createElement(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: b([
|
|
33
|
-
n,
|
|
34
|
-
i,
|
|
35
|
-
m,
|
|
36
|
-
t ?? ""
|
|
37
|
-
]),
|
|
38
|
-
...c
|
|
39
|
-
},
|
|
40
|
-
/* @__PURE__ */ e.createElement("div", { className: `${n}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), a)
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
d1.displayName = "Tally";
|
|
44
|
-
const W2 = (t) => {
|
|
45
|
-
if (typeof t == "string" || typeof t == "number")
|
|
46
|
-
return String(t);
|
|
47
|
-
if (z2(t)) {
|
|
48
|
-
const a = t.props;
|
|
49
|
-
return l1.toArray(a.children).map(W2).join("");
|
|
50
|
-
}
|
|
51
|
-
return "";
|
|
52
|
-
}, A1 = 768, R1 = 1280, B1 = 1440, O1 = "5rem", H1 = "4rem", V1 = "3rem", m1 = "2.5rem", h1 = "2rem", g1 = "1.5rem", X2 = "1.25rem", Y2 = "1rem", D2 = "0.75rem", u2 = "0.625rem", O2 = 500, F1 = 700, t1 = {
|
|
13
|
+
a.push(c);
|
|
14
|
+
}), a.length > 0 && (l.__unslotted = a), l;
|
|
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 = {
|
|
53
16
|
boltPantheon: {
|
|
54
17
|
height: 512,
|
|
55
18
|
svgPathData: "M183.215 0L254.271 277.176H204.614L302 512L46.228 187.779H135.272L0 0.434418L144.526 0.459972L145.968 0H183.215Z",
|
|
@@ -1001,6 +964,13 @@ const W2 = (t) => {
|
|
|
1001
964
|
svgPathData: "M139.7 69.8c7.6-10.9 5-25.8-5.9-33.4s-25.8-5-33.4 5.9L60.7 98.8 41 79C31.6 69.7 16.4 69.7 7 79S-2.3 103.6 7 113l40 40c5 5 12 7.6 19.1 6.9s13.5-4.3 17.6-10.1l56-80zm0 160c7.6-10.9 5-25.8-5.9-33.4s-25.8-5-33.4 5.9L60.7 258.8 41 239c-9.4-9.4-24.6-9.4-33.9 0S-2.3 263.6 7 273l40 40c5 5 12 7.6 19.1 6.9s13.5-4.3 17.6-10.1l56-80zM192 96c0 13.3 10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L216 72c-13.3 0-24 10.7-24 24zm0 160c0 13.3 10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-272 0c-13.3 0-24 10.7-24 24zM160 416c0 13.3 10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0c-13.3 0-24 10.7-24 24zm-64 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z",
|
|
1002
965
|
width: 512
|
|
1003
966
|
},
|
|
967
|
+
locationCrosshairs: {
|
|
968
|
+
aliases: ["location", "gps", "target", "crosshair"],
|
|
969
|
+
categories: ["navigation"],
|
|
970
|
+
height: 512,
|
|
971
|
+
svgPathData: "M288-16c13.3 0 24 10.7 24 24l0 25.3C416.5 44.4 499.6 127.5 510.7 232l25.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-25.3 0C499.6 384.5 416.5 467.6 312 478.7l0 25.3c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-25.3C159.5 467.6 76.4 384.5 65.3 280L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l25.3 0C76.4 127.5 159.5 44.4 264 33.3L264 8c0-13.3 10.7-24 24-24zM464 256a176 176 0 1 0 -352 0 176 176 0 1 0 352 0zm-112 0a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm-176 0a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z",
|
|
972
|
+
width: 576
|
|
973
|
+
},
|
|
1004
974
|
lock: {
|
|
1005
975
|
aliases: ["locked", "password", "secure", "private"],
|
|
1006
976
|
categories: ["actions", "security", "status"],
|
|
@@ -1547,7 +1517,7 @@ const W2 = (t) => {
|
|
|
1547
1517
|
svgPathData: "M549.7 124.1C543.5 100.4 524.9 81.8 501.4 75.5 458.9 64 288.1 64 288.1 64S117.3 64 74.7 75.5C51.2 81.8 32.7 100.4 26.4 124.1 15 167 15 256.4 15 256.4s0 89.4 11.4 132.3c6.3 23.6 24.8 41.5 48.3 47.8 42.6 11.5 213.4 11.5 213.4 11.5s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232.2 337.6l0-162.4 142.7 81.2-142.7 81.2z",
|
|
1548
1518
|
width: 576
|
|
1549
1519
|
}
|
|
1550
|
-
},
|
|
1520
|
+
}, B4 = [
|
|
1551
1521
|
"angleDown",
|
|
1552
1522
|
"angleLeft",
|
|
1553
1523
|
"angleRight",
|
|
@@ -1671,6 +1641,7 @@ const W2 = (t) => {
|
|
|
1671
1641
|
"linkSimple",
|
|
1672
1642
|
"linkSimpleSlash",
|
|
1673
1643
|
"listCheck",
|
|
1644
|
+
"locationCrosshairs",
|
|
1674
1645
|
"lock",
|
|
1675
1646
|
"lockOpen",
|
|
1676
1647
|
"magnifyingGlass",
|
|
@@ -1749,529 +1720,710 @@ const W2 = (t) => {
|
|
|
1749
1720
|
"xmarkLarge",
|
|
1750
1721
|
"xTwitter",
|
|
1751
1722
|
"youtube"
|
|
1752
|
-
],
|
|
1753
|
-
"2xl": h1,
|
|
1754
|
-
"3xl": m1,
|
|
1755
|
-
l: X2,
|
|
1756
|
-
m: Y2,
|
|
1757
|
-
s: D2,
|
|
1758
|
-
xl: g1,
|
|
1759
|
-
xs: u2
|
|
1760
|
-
}, V = ({
|
|
1723
|
+
], A = ({
|
|
1761
1724
|
className: t,
|
|
1762
|
-
display:
|
|
1763
|
-
iconName:
|
|
1764
|
-
iconSize:
|
|
1765
|
-
style:
|
|
1766
|
-
verticalAlign:
|
|
1725
|
+
display: l = "inline-block",
|
|
1726
|
+
iconName: a,
|
|
1727
|
+
iconSize: c = "l",
|
|
1728
|
+
style: i,
|
|
1729
|
+
verticalAlign: s = "middle",
|
|
1767
1730
|
...n
|
|
1768
1731
|
}) => {
|
|
1769
|
-
const
|
|
1732
|
+
const r = "pds-icon", o = `${r} ${r}--${c} ${r}--${a}`, m = Z1[a], h = `0 0 ${m.width} ${m.height}`, z = a in t1 ? t1[a] : null;
|
|
1770
1733
|
let d;
|
|
1771
|
-
if (
|
|
1772
|
-
d =
|
|
1734
|
+
if (z?.type === "complex")
|
|
1735
|
+
d = z.render();
|
|
1773
1736
|
else {
|
|
1774
|
-
const
|
|
1775
|
-
d = Array.isArray(
|
|
1737
|
+
const f = z?.type === "path" ? z.svgPathData : m.svgPathData;
|
|
1738
|
+
d = Array.isArray(f) ? f.map((C, g) => /* @__PURE__ */ e.createElement("path", { key: g, d: C, fill: "currentColor" })) : /* @__PURE__ */ e.createElement("path", { d: f, fill: "currentColor" });
|
|
1776
1739
|
}
|
|
1777
1740
|
return /* @__PURE__ */ e.createElement(
|
|
1778
1741
|
"svg",
|
|
1779
1742
|
{
|
|
1780
1743
|
"aria-hidden": "true",
|
|
1781
|
-
className:
|
|
1744
|
+
className: v([o, t ?? ""]),
|
|
1782
1745
|
fill: "none",
|
|
1783
1746
|
focusable: "false",
|
|
1784
|
-
height: q1[s],
|
|
1785
1747
|
preserveAspectRatio: "xMidYMid meet",
|
|
1786
1748
|
role: "img",
|
|
1787
1749
|
style: {
|
|
1788
|
-
display:
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
verticalAlign: c,
|
|
1792
|
-
...r
|
|
1750
|
+
display: l,
|
|
1751
|
+
verticalAlign: s,
|
|
1752
|
+
...i
|
|
1793
1753
|
},
|
|
1794
|
-
viewBox:
|
|
1754
|
+
viewBox: h,
|
|
1795
1755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1796
1756
|
...n
|
|
1797
1757
|
},
|
|
1798
1758
|
d
|
|
1799
1759
|
);
|
|
1800
|
-
},
|
|
1760
|
+
}, s1 = [
|
|
1761
|
+
"dawn",
|
|
1762
|
+
"dragonfruit",
|
|
1763
|
+
"dusk",
|
|
1764
|
+
"earth",
|
|
1765
|
+
"fall",
|
|
1766
|
+
"grape",
|
|
1767
|
+
"midnight",
|
|
1768
|
+
"moon",
|
|
1769
|
+
"plum",
|
|
1770
|
+
"spring",
|
|
1771
|
+
"summer",
|
|
1772
|
+
"sun",
|
|
1773
|
+
"sundown",
|
|
1774
|
+
"sunrise",
|
|
1775
|
+
"twilight",
|
|
1776
|
+
"winter"
|
|
1777
|
+
], q1 = (t) => {
|
|
1778
|
+
const l = parseInt(D1(t), 16);
|
|
1779
|
+
return s1[l % s1.length];
|
|
1780
|
+
}, A4 = ({
|
|
1781
|
+
ariaLabel: t,
|
|
1782
|
+
className: l,
|
|
1783
|
+
hasUserFallback: a = !1,
|
|
1784
|
+
imageSrc: c,
|
|
1785
|
+
linkContent: i,
|
|
1786
|
+
size: s = "s",
|
|
1787
|
+
uniqueId: n,
|
|
1788
|
+
...r
|
|
1789
|
+
}) => {
|
|
1790
|
+
const o = "pds-avatar", m = `${o}--${s}`, h = c ? `${o}--image` : null, [z, d] = H(void 0), C = {
|
|
1791
|
+
backgroundImage: n ? `var(--pds-gradient-avatar-${q1(n)})` : null,
|
|
1792
|
+
borderRadius: "100%",
|
|
1793
|
+
height: "100%",
|
|
1794
|
+
width: "100%",
|
|
1795
|
+
display: "flex",
|
|
1796
|
+
alignItems: "center",
|
|
1797
|
+
justifyContent: "center"
|
|
1798
|
+
}, g = F1(c) && !z ? /* @__PURE__ */ e.createElement(
|
|
1799
|
+
"img",
|
|
1800
|
+
{
|
|
1801
|
+
alt: "",
|
|
1802
|
+
className: `${o}__image`,
|
|
1803
|
+
onError: () => d(!0),
|
|
1804
|
+
onLoad: () => d(!1),
|
|
1805
|
+
src: `${c}`
|
|
1806
|
+
}
|
|
1807
|
+
) : /* @__PURE__ */ e.createElement("span", { style: C }, a && /* @__PURE__ */ e.createElement(A, { className: `${o}__user-icon`, iconName: "user" })), p = /* @__PURE__ */ e.createElement("span", { className: `${o}__content` }, g), L = i && h2(i) ? _2(
|
|
1808
|
+
i,
|
|
1809
|
+
Object.assign({}, i.props, {
|
|
1810
|
+
className: `${o}__content ${o}__content--link`,
|
|
1811
|
+
"aria-label": t
|
|
1812
|
+
}),
|
|
1813
|
+
g
|
|
1814
|
+
) : null;
|
|
1815
|
+
return /* @__PURE__ */ e.createElement(
|
|
1816
|
+
"div",
|
|
1817
|
+
{
|
|
1818
|
+
className: v([o, m, h, l]),
|
|
1819
|
+
...r
|
|
1820
|
+
},
|
|
1821
|
+
i ? L : p
|
|
1822
|
+
);
|
|
1823
|
+
}, O4 = ({
|
|
1824
|
+
className: t,
|
|
1825
|
+
color: l = "gaia",
|
|
1826
|
+
label: a,
|
|
1827
|
+
size: c = "m",
|
|
1828
|
+
...i
|
|
1829
|
+
}) => {
|
|
1830
|
+
const s = "pds-badge", n = `${s}--${l}`, r = c !== "m" ? `${s}--${c}` : null;
|
|
1831
|
+
return /* @__PURE__ */ e.createElement(
|
|
1832
|
+
"span",
|
|
1833
|
+
{
|
|
1834
|
+
className: v([
|
|
1835
|
+
s,
|
|
1836
|
+
n,
|
|
1837
|
+
r,
|
|
1838
|
+
t ?? ""
|
|
1839
|
+
]),
|
|
1840
|
+
...i
|
|
1841
|
+
},
|
|
1842
|
+
/* @__PURE__ */ e.createElement("span", { className: `${s}__label` }, a)
|
|
1843
|
+
);
|
|
1844
|
+
}, G1 = ({
|
|
1845
|
+
className: t,
|
|
1846
|
+
color: l = "transparent",
|
|
1847
|
+
hasStatusIndicator: a = !1,
|
|
1848
|
+
label: c,
|
|
1849
|
+
statusIndicatorText: i = "Status indicator: ",
|
|
1850
|
+
statusType: s,
|
|
1851
|
+
...n
|
|
1852
|
+
}) => {
|
|
1853
|
+
const r = "pds-status-badge", o = `${r}--${l}`, m = `${r}__status`, h = s ? `${m}--${s}` : null;
|
|
1854
|
+
return /* @__PURE__ */ e.createElement(
|
|
1855
|
+
"div",
|
|
1856
|
+
{
|
|
1857
|
+
className: v([r, o, t ?? ""]),
|
|
1858
|
+
...n
|
|
1859
|
+
},
|
|
1860
|
+
a === !0 && /* @__PURE__ */ e.createElement("span", { className: v([m, h]) }, s && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, i, " ", s)),
|
|
1861
|
+
/* @__PURE__ */ e.createElement("span", { className: `${r}__label` }, c)
|
|
1862
|
+
);
|
|
1863
|
+
}, d1 = ({
|
|
1864
|
+
className: t,
|
|
1865
|
+
label: l,
|
|
1866
|
+
size: a = "s",
|
|
1867
|
+
type: c = "neutral",
|
|
1868
|
+
typeLabels: i = {
|
|
1869
|
+
info: "Information",
|
|
1870
|
+
success: "Success",
|
|
1871
|
+
warning: "Warning",
|
|
1872
|
+
critical: "Critical",
|
|
1873
|
+
neutral: ""
|
|
1874
|
+
},
|
|
1875
|
+
...s
|
|
1876
|
+
}) => {
|
|
1877
|
+
const n = "pds-tally", r = `${n}--${c}`, o = `${n}--${a}`, m = `${i[c]}: `;
|
|
1878
|
+
return /* @__PURE__ */ e.createElement(
|
|
1879
|
+
"div",
|
|
1880
|
+
{
|
|
1881
|
+
className: v([
|
|
1882
|
+
n,
|
|
1883
|
+
r,
|
|
1884
|
+
o,
|
|
1885
|
+
t ?? ""
|
|
1886
|
+
]),
|
|
1887
|
+
...s
|
|
1888
|
+
},
|
|
1889
|
+
/* @__PURE__ */ e.createElement("div", { className: `${n}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), l)
|
|
1890
|
+
);
|
|
1891
|
+
};
|
|
1892
|
+
d1.displayName = "Tally";
|
|
1893
|
+
const Y2 = (t) => {
|
|
1894
|
+
if (typeof t == "string" || typeof t == "number")
|
|
1895
|
+
return String(t);
|
|
1896
|
+
if (h2(t)) {
|
|
1897
|
+
const l = t.props;
|
|
1898
|
+
return i1.toArray(l.children).map(Y2).join("");
|
|
1899
|
+
}
|
|
1900
|
+
return "";
|
|
1901
|
+
}, W1 = 768, U1 = 1280, K1 = 1440, X1 = "5rem", Y1 = "4rem", Q1 = "3rem", J1 = "2.5rem", e4 = "2rem", t4 = "1.5rem", h1 = "1.25rem", u1 = "1rem", K2 = "0.75rem", E2 = "0.625rem", R2 = 500, s4 = 700, y2 = "0.75rem", c1 = "0.875rem", a1 = "1rem", g1 = n1(null), c4 = ({
|
|
1801
1902
|
children: t
|
|
1802
1903
|
}) => {
|
|
1803
|
-
const [
|
|
1804
|
-
|
|
1805
|
-
}, []),
|
|
1806
|
-
|
|
1807
|
-
}, []),
|
|
1808
|
-
|
|
1809
|
-
if (!
|
|
1904
|
+
const [l, a] = H(0), c = $2(() => {
|
|
1905
|
+
a((r) => r + 1);
|
|
1906
|
+
}, []), i = $2(() => {
|
|
1907
|
+
a((r) => Math.max(0, r - 1));
|
|
1908
|
+
}, []), s = l > 0;
|
|
1909
|
+
l2(() => {
|
|
1910
|
+
if (!s)
|
|
1810
1911
|
return;
|
|
1811
|
-
const
|
|
1812
|
-
["/"].includes(
|
|
1912
|
+
const r = (o) => {
|
|
1913
|
+
["/"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation());
|
|
1813
1914
|
};
|
|
1814
|
-
return document.addEventListener("keydown",
|
|
1815
|
-
document.removeEventListener("keydown",
|
|
1915
|
+
return document.addEventListener("keydown", r, { capture: !0 }), () => {
|
|
1916
|
+
document.removeEventListener("keydown", r, { capture: !0 });
|
|
1816
1917
|
};
|
|
1817
|
-
}, [
|
|
1918
|
+
}, [s]);
|
|
1818
1919
|
const n = {
|
|
1819
|
-
closeOverlay:
|
|
1820
|
-
hasOpenOverlay:
|
|
1821
|
-
openOverlay:
|
|
1920
|
+
closeOverlay: i,
|
|
1921
|
+
hasOpenOverlay: s,
|
|
1922
|
+
openOverlay: c
|
|
1822
1923
|
};
|
|
1823
|
-
return /* @__PURE__ */ e.createElement(
|
|
1824
|
-
},
|
|
1924
|
+
return /* @__PURE__ */ e.createElement(g1.Provider, { value: n }, t);
|
|
1925
|
+
}, a4 = () => {
|
|
1926
|
+
const t = D2(g1);
|
|
1927
|
+
if (!t)
|
|
1928
|
+
throw new Error(
|
|
1929
|
+
"useOverlayContext must be used within OverlayContextProvider"
|
|
1930
|
+
);
|
|
1931
|
+
return t;
|
|
1932
|
+
}, l4 = (t, l, a) => {
|
|
1825
1933
|
const {
|
|
1826
|
-
altKey:
|
|
1827
|
-
ctrlKey:
|
|
1828
|
-
enabled:
|
|
1934
|
+
altKey: c = !1,
|
|
1935
|
+
ctrlKey: i = !1,
|
|
1936
|
+
enabled: s = !0,
|
|
1829
1937
|
metaKey: n = !1,
|
|
1830
|
-
shiftKey:
|
|
1831
|
-
} =
|
|
1832
|
-
(
|
|
1833
|
-
[
|
|
1834
|
-
),
|
|
1835
|
-
(
|
|
1836
|
-
|
|
1938
|
+
shiftKey: r = !1
|
|
1939
|
+
} = a ?? {}, [o, m] = H(!1), h = $2(
|
|
1940
|
+
(f) => f.altKey === c && f.ctrlKey === i && f.metaKey === n && f.shiftKey === r,
|
|
1941
|
+
[c, i, n, r]
|
|
1942
|
+
), z = $2(
|
|
1943
|
+
(f) => {
|
|
1944
|
+
f.key === t && h(f) && (m(!0), l && l(f));
|
|
1837
1945
|
},
|
|
1838
|
-
[t,
|
|
1839
|
-
), d =
|
|
1840
|
-
(
|
|
1841
|
-
|
|
1946
|
+
[t, l, h]
|
|
1947
|
+
), d = $2(
|
|
1948
|
+
(f) => {
|
|
1949
|
+
f.key === t && h(f) && m(!1);
|
|
1842
1950
|
},
|
|
1843
|
-
[t,
|
|
1951
|
+
[t, h]
|
|
1844
1952
|
);
|
|
1845
|
-
return
|
|
1846
|
-
if (
|
|
1847
|
-
return window.addEventListener("keydown",
|
|
1848
|
-
window.removeEventListener("keydown",
|
|
1953
|
+
return l2(() => {
|
|
1954
|
+
if (s)
|
|
1955
|
+
return window.addEventListener("keydown", z), window.addEventListener("keyup", d), () => {
|
|
1956
|
+
window.removeEventListener("keydown", z), window.removeEventListener("keyup", d);
|
|
1849
1957
|
};
|
|
1850
|
-
}, [
|
|
1851
|
-
},
|
|
1958
|
+
}, [z, d, s]), o;
|
|
1959
|
+
}, T2 = ({
|
|
1852
1960
|
className: t,
|
|
1853
|
-
content:
|
|
1854
|
-
customTrigger:
|
|
1855
|
-
offsetValue:
|
|
1856
|
-
preferredPlacement:
|
|
1857
|
-
triggerAccessibleText:
|
|
1961
|
+
content: l,
|
|
1962
|
+
customTrigger: a = null,
|
|
1963
|
+
offsetValue: c = 6,
|
|
1964
|
+
preferredPlacement: i = "top",
|
|
1965
|
+
triggerAccessibleText: s = "Show more information",
|
|
1858
1966
|
triggerIcon: n = "circleInfo",
|
|
1859
|
-
triggerIconColor:
|
|
1860
|
-
triggerIconSize:
|
|
1861
|
-
zIndex:
|
|
1862
|
-
...
|
|
1967
|
+
triggerIconColor: r = "default",
|
|
1968
|
+
triggerIconSize: o = "m",
|
|
1969
|
+
zIndex: m = s4,
|
|
1970
|
+
...h
|
|
1863
1971
|
}) => {
|
|
1864
|
-
const [
|
|
1865
|
-
`${
|
|
1866
|
-
|
|
1867
|
-
]),
|
|
1868
|
-
`${
|
|
1869
|
-
`${
|
|
1870
|
-
]), { context: L, floatingStyles:
|
|
1871
|
-
placement:
|
|
1872
|
-
open:
|
|
1972
|
+
const [z, d] = H(!1), f = typeof a, C = "pds-tooltip", g = v([
|
|
1973
|
+
`${C}__trigger-custom`,
|
|
1974
|
+
f === "string" ? `${C}__trigger-text` : null
|
|
1975
|
+
]), p = v([
|
|
1976
|
+
`${C}__trigger`,
|
|
1977
|
+
`${C}__trigger--${r}`
|
|
1978
|
+
]), { context: L, floatingStyles: b, refs: M } = r1({
|
|
1979
|
+
placement: i,
|
|
1980
|
+
open: z,
|
|
1873
1981
|
onOpenChange: d,
|
|
1874
|
-
middleware: [
|
|
1875
|
-
whileElementsMounted:
|
|
1876
|
-
}),
|
|
1982
|
+
middleware: [P1(c), m1(), k1()],
|
|
1983
|
+
whileElementsMounted: o1
|
|
1984
|
+
}), D = x1(L, {
|
|
1877
1985
|
restMs: 300,
|
|
1878
1986
|
delay: { open: 100, close: 0 },
|
|
1879
1987
|
move: !1
|
|
1880
|
-
}),
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1988
|
+
}), N = N1(L), P = S1(L), _ = I1(L, { role: "tooltip" }), { getFloatingProps: w, getReferenceProps: S } = j1([
|
|
1989
|
+
D,
|
|
1990
|
+
N,
|
|
1991
|
+
P,
|
|
1992
|
+
_
|
|
1885
1993
|
]);
|
|
1886
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1994
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([C, t ?? ""]), ...h }, a ? /* @__PURE__ */ e.createElement(
|
|
1887
1995
|
"span",
|
|
1888
1996
|
{
|
|
1889
|
-
ref:
|
|
1890
|
-
className:
|
|
1891
|
-
...
|
|
1997
|
+
ref: M.setReference,
|
|
1998
|
+
className: g,
|
|
1999
|
+
...S()
|
|
1892
2000
|
},
|
|
1893
|
-
|
|
2001
|
+
a
|
|
1894
2002
|
) : /* @__PURE__ */ e.createElement(
|
|
1895
2003
|
"button",
|
|
1896
2004
|
{
|
|
1897
|
-
ref:
|
|
1898
|
-
"aria-label":
|
|
1899
|
-
className:
|
|
2005
|
+
ref: M.setReference,
|
|
2006
|
+
"aria-label": s,
|
|
2007
|
+
className: p,
|
|
1900
2008
|
type: "button",
|
|
1901
|
-
...
|
|
2009
|
+
...S()
|
|
1902
2010
|
},
|
|
1903
2011
|
/* @__PURE__ */ e.createElement(
|
|
1904
|
-
|
|
2012
|
+
A,
|
|
1905
2013
|
{
|
|
1906
|
-
className: `${
|
|
2014
|
+
className: `${C}__icon`,
|
|
1907
2015
|
iconName: n,
|
|
1908
|
-
iconSize:
|
|
2016
|
+
iconSize: o
|
|
1909
2017
|
}
|
|
1910
2018
|
)
|
|
1911
|
-
), /* @__PURE__ */ e.createElement(
|
|
2019
|
+
), /* @__PURE__ */ e.createElement(T1, null, /* @__PURE__ */ e.createElement(
|
|
1912
2020
|
"div",
|
|
1913
2021
|
{
|
|
1914
|
-
ref:
|
|
1915
|
-
"aria-hidden": !
|
|
1916
|
-
className: `${
|
|
2022
|
+
ref: M.setFloating,
|
|
2023
|
+
"aria-hidden": !z,
|
|
2024
|
+
className: `${C}__container`,
|
|
1917
2025
|
style: {
|
|
1918
|
-
...
|
|
1919
|
-
zIndex:
|
|
1920
|
-
opacity:
|
|
1921
|
-
pointerEvents:
|
|
2026
|
+
...b,
|
|
2027
|
+
zIndex: m,
|
|
2028
|
+
opacity: z ? 1 : 0,
|
|
2029
|
+
pointerEvents: z ? "auto" : "none",
|
|
1922
2030
|
transition: "var(--pds-animation-transition-reveal)"
|
|
1923
2031
|
},
|
|
1924
|
-
...
|
|
2032
|
+
...w()
|
|
1925
2033
|
},
|
|
1926
|
-
|
|
2034
|
+
l
|
|
1927
2035
|
)));
|
|
1928
|
-
},
|
|
2036
|
+
}, X = {
|
|
1929
2037
|
base: "pds-input",
|
|
1930
2038
|
disabled: "pds-is-disabled",
|
|
1931
2039
|
required: "pds-is-required",
|
|
1932
2040
|
error: "pds-has-error",
|
|
1933
|
-
success: "pds-has-success"
|
|
1934
|
-
|
|
1935
|
-
|
|
2041
|
+
success: "pds-has-success",
|
|
2042
|
+
readonly: "pds-is-readonly"
|
|
2043
|
+
}, p1 = (t) => t ? { maxWidth: `${t / 16}rem` } : null, l1 = (t) => t.replace(/^(https?:\/\/)/, ""), i4 = () => /* @__PURE__ */ e.createElement("span", { className: "pds-input-label__required" }, /* @__PURE__ */ e.createElement(
|
|
2044
|
+
A,
|
|
1936
2045
|
{
|
|
1937
2046
|
className: "pds-input-label__required-icon",
|
|
1938
2047
|
iconName: "asterisk",
|
|
1939
2048
|
iconSize: "s"
|
|
1940
2049
|
}
|
|
1941
|
-
)),
|
|
2050
|
+
)), z1 = ({
|
|
1942
2051
|
className: t,
|
|
1943
|
-
disabled:
|
|
1944
|
-
id:
|
|
1945
|
-
isLegend:
|
|
1946
|
-
isPseudoLabel:
|
|
1947
|
-
label:
|
|
2052
|
+
disabled: l,
|
|
2053
|
+
id: a,
|
|
2054
|
+
isLegend: c,
|
|
2055
|
+
isPseudoLabel: i,
|
|
2056
|
+
label: s,
|
|
1948
2057
|
required: n,
|
|
1949
|
-
showLabel:
|
|
1950
|
-
tooltipText:
|
|
2058
|
+
showLabel: r = !0,
|
|
2059
|
+
tooltipText: o = null
|
|
1951
2060
|
}) => {
|
|
1952
|
-
const
|
|
2061
|
+
const m = v([
|
|
1953
2062
|
"pds-input-label",
|
|
1954
|
-
|
|
2063
|
+
r ? null : "visually-hidden",
|
|
1955
2064
|
t ?? ""
|
|
1956
|
-
]),
|
|
1957
|
-
return
|
|
1958
|
-
},
|
|
2065
|
+
]), h = /* @__PURE__ */ e.createElement(e.Fragment, null, s, n && !l && /* @__PURE__ */ e.createElement(i4, null), o && /* @__PURE__ */ e.createElement(T2, { content: o }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(A, { iconName: "circleInfo", iconSize: "s" }))));
|
|
2066
|
+
return c ? /* @__PURE__ */ e.createElement("legend", { className: m, id: `${a}-legend` }, h) : i ? /* @__PURE__ */ e.createElement("span", { className: m, id: `${a}-field-label` }, h) : /* @__PURE__ */ e.createElement("label", { className: m, htmlFor: a, id: `${a}-label` }, h);
|
|
2067
|
+
}, f1 = ({
|
|
1959
2068
|
className: t,
|
|
1960
|
-
forInputGroup:
|
|
1961
|
-
hasValidationMessage:
|
|
1962
|
-
id:
|
|
1963
|
-
message:
|
|
1964
|
-
validationMessageHasDecorators:
|
|
2069
|
+
forInputGroup: l = !1,
|
|
2070
|
+
hasValidationMessage: a,
|
|
2071
|
+
id: c,
|
|
2072
|
+
message: i,
|
|
2073
|
+
validationMessageHasDecorators: s,
|
|
1965
2074
|
validationStatus: n
|
|
1966
2075
|
}) => {
|
|
1967
|
-
const
|
|
2076
|
+
const r = "pds-input-message", o = n && a ? `${r}--${n}` : null;
|
|
1968
2077
|
return /* @__PURE__ */ e.createElement(
|
|
1969
2078
|
"div",
|
|
1970
2079
|
{
|
|
1971
|
-
className:
|
|
1972
|
-
id:
|
|
2080
|
+
className: v([r, o, t ?? ""]),
|
|
2081
|
+
id: l ? `${c}__message-hidden` : `${c}__message`,
|
|
1973
2082
|
role: n === "error" ? "alert" : null
|
|
1974
2083
|
},
|
|
1975
|
-
|
|
1976
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2084
|
+
s && n && /* @__PURE__ */ e.createElement(L1, { variant: n }),
|
|
2085
|
+
/* @__PURE__ */ e.createElement("div", { className: `${r}__text` }, i)
|
|
1977
2086
|
);
|
|
1978
|
-
},
|
|
2087
|
+
}, n4 = {
|
|
1979
2088
|
search: "magnifyingGlass",
|
|
1980
2089
|
error: "triangleExclamation",
|
|
1981
2090
|
success: "check",
|
|
1982
2091
|
filter: "barsFilter"
|
|
1983
|
-
},
|
|
1984
|
-
const
|
|
1985
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1986
|
-
|
|
2092
|
+
}, L1 = ({ variant: t }) => {
|
|
2093
|
+
const l = "pds-input-prefix";
|
|
2094
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([l, `${l}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
2095
|
+
A,
|
|
1987
2096
|
{
|
|
1988
|
-
className: `${
|
|
1989
|
-
iconName:
|
|
2097
|
+
className: `${l}__icon`,
|
|
2098
|
+
iconName: n4[t],
|
|
1990
2099
|
iconSize: "m"
|
|
1991
2100
|
}
|
|
1992
2101
|
));
|
|
1993
|
-
},
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2102
|
+
}, r4 = ({
|
|
2103
|
+
inputId: t,
|
|
2104
|
+
shortcutLabel: l
|
|
2105
|
+
}) => {
|
|
2106
|
+
const { hasOpenOverlay: a } = a4();
|
|
2107
|
+
return l4("/", (i) => {
|
|
2108
|
+
const s = document.getElementById(t);
|
|
2109
|
+
s && s.focus(), i.preventDefault();
|
|
2110
|
+
}, {
|
|
2111
|
+
enabled: !a
|
|
2112
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, l), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward", iconSize: "s" }));
|
|
2113
|
+
}, o4 = ({
|
|
2114
|
+
clearLabel: t,
|
|
2115
|
+
handleClearInput: l,
|
|
2116
|
+
id: a
|
|
2117
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
2118
|
+
"button",
|
|
2119
|
+
{
|
|
2120
|
+
"aria-controls": a,
|
|
2121
|
+
className: "pds-input-clear-button",
|
|
2122
|
+
onClick: l,
|
|
2123
|
+
title: t,
|
|
2124
|
+
type: "button"
|
|
2125
|
+
},
|
|
2126
|
+
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "m" })
|
|
2127
|
+
), C1 = ({
|
|
2128
|
+
currentLength: t,
|
|
2129
|
+
id: l,
|
|
2130
|
+
maxLength: a,
|
|
2131
|
+
overLimitMessage: c = "Character limit exceeded by"
|
|
2132
|
+
}) => {
|
|
2133
|
+
const i = t > a, s = t - a, n = "pds-input-character-counter", r = i ? `${n}--overLimit` : null;
|
|
2134
|
+
return /* @__PURE__ */ e.createElement(
|
|
2135
|
+
"div",
|
|
2136
|
+
{
|
|
2137
|
+
className: v([n, r]),
|
|
2138
|
+
id: `${l}__counter`
|
|
2139
|
+
},
|
|
2140
|
+
t,
|
|
2141
|
+
"/",
|
|
2142
|
+
a,
|
|
2143
|
+
/* @__PURE__ */ e.createElement("span", { "aria-live": "polite", className: "visually-hidden" }, i && `${c} ${s}`)
|
|
2144
|
+
);
|
|
2145
|
+
}, m4 = ({ label: t, ...l }) => /* @__PURE__ */ e.createElement("span", { className: "visually-hidden", ...l }, t);
|
|
2146
|
+
P2(
|
|
2147
|
+
({ children: t, className: l, isActive: a, ...c }, i) => {
|
|
2148
|
+
const s = B1(), n = "pds-input__select-option", r = a ? `${n}--active` : null;
|
|
1997
2149
|
return /* @__PURE__ */ e.createElement(
|
|
1998
2150
|
"li",
|
|
1999
2151
|
{
|
|
2000
|
-
ref:
|
|
2001
|
-
"aria-selected":
|
|
2002
|
-
className:
|
|
2003
|
-
id:
|
|
2152
|
+
ref: i,
|
|
2153
|
+
"aria-selected": a,
|
|
2154
|
+
className: v([n, r, l ?? ""]),
|
|
2155
|
+
id: s,
|
|
2004
2156
|
role: "option",
|
|
2005
|
-
...
|
|
2157
|
+
...c
|
|
2006
2158
|
},
|
|
2007
2159
|
t
|
|
2008
2160
|
);
|
|
2009
2161
|
}
|
|
2010
2162
|
);
|
|
2011
|
-
const
|
|
2012
|
-
s:
|
|
2013
|
-
m:
|
|
2014
|
-
l:
|
|
2015
|
-
xl:
|
|
2016
|
-
"2xl":
|
|
2017
|
-
"3xl":
|
|
2018
|
-
"4xl":
|
|
2019
|
-
"5xl":
|
|
2020
|
-
"6xl":
|
|
2021
|
-
},
|
|
2022
|
-
s:
|
|
2023
|
-
m:
|
|
2024
|
-
l:
|
|
2025
|
-
xl:
|
|
2026
|
-
"2xl":
|
|
2027
|
-
"3xl":
|
|
2028
|
-
"4xl":
|
|
2029
|
-
"5xl":
|
|
2030
|
-
"6xl":
|
|
2031
|
-
},
|
|
2032
|
-
s:
|
|
2033
|
-
m:
|
|
2034
|
-
l:
|
|
2035
|
-
xl:
|
|
2036
|
-
"2xl":
|
|
2037
|
-
"3xl":
|
|
2038
|
-
"4xl":
|
|
2039
|
-
"5xl":
|
|
2040
|
-
"6xl":
|
|
2041
|
-
},
|
|
2163
|
+
const d4 = {
|
|
2164
|
+
s: K2,
|
|
2165
|
+
m: u1,
|
|
2166
|
+
l: h1,
|
|
2167
|
+
xl: t4,
|
|
2168
|
+
"2xl": e4,
|
|
2169
|
+
"3xl": J1,
|
|
2170
|
+
"4xl": Q1,
|
|
2171
|
+
"5xl": Y1,
|
|
2172
|
+
"6xl": X1
|
|
2173
|
+
}, h4 = {
|
|
2174
|
+
s: y2,
|
|
2175
|
+
m: y2,
|
|
2176
|
+
l: y2,
|
|
2177
|
+
xl: y2,
|
|
2178
|
+
"2xl": y2,
|
|
2179
|
+
"3xl": c1,
|
|
2180
|
+
"4xl": c1,
|
|
2181
|
+
"5xl": a1,
|
|
2182
|
+
"6xl": a1
|
|
2183
|
+
}, u4 = {
|
|
2184
|
+
s: E2,
|
|
2185
|
+
m: E2,
|
|
2186
|
+
l: E2,
|
|
2187
|
+
xl: E2,
|
|
2188
|
+
"2xl": E2,
|
|
2189
|
+
"3xl": K2,
|
|
2190
|
+
"4xl": K2,
|
|
2191
|
+
"5xl": u1,
|
|
2192
|
+
"6xl": h1
|
|
2193
|
+
}, k2 = ({
|
|
2042
2194
|
className: t = "",
|
|
2043
|
-
colorType:
|
|
2044
|
-
isInline:
|
|
2045
|
-
label:
|
|
2046
|
-
showLabel:
|
|
2047
|
-
size:
|
|
2195
|
+
colorType: l = "full-color",
|
|
2196
|
+
isInline: a = !1,
|
|
2197
|
+
label: c = "Loading",
|
|
2198
|
+
showLabel: i = !1,
|
|
2199
|
+
size: s = "3xl",
|
|
2048
2200
|
...n
|
|
2049
2201
|
}) => {
|
|
2050
|
-
const
|
|
2051
|
-
"--spinner-size":
|
|
2052
|
-
"--spinner-line": `${
|
|
2053
|
-
},
|
|
2054
|
-
fontSize:
|
|
2202
|
+
const r = "pds-spinner", o = l !== "full-color" ? `${r}--${l}` : null, m = a ? `${r}--inline` : null, h = d4[s], z = h4[s], d = u4[s], f = Math.ceil(parseFloat(h) * 16 * 0.13), C = {
|
|
2203
|
+
"--spinner-size": h,
|
|
2204
|
+
"--spinner-line": `${f}px`
|
|
2205
|
+
}, g = {
|
|
2206
|
+
fontSize: z,
|
|
2055
2207
|
marginBlockStart: d
|
|
2056
2208
|
};
|
|
2057
2209
|
return /* @__PURE__ */ e.createElement(
|
|
2058
2210
|
"span",
|
|
2059
2211
|
{
|
|
2060
2212
|
"aria-hidden": "true",
|
|
2061
|
-
className:
|
|
2213
|
+
className: v([r, o, m, t]),
|
|
2062
2214
|
role: "status",
|
|
2063
|
-
style:
|
|
2215
|
+
style: C,
|
|
2064
2216
|
...n
|
|
2065
2217
|
},
|
|
2066
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2067
|
-
|
|
2218
|
+
/* @__PURE__ */ e.createElement("span", { className: `${r}__icon` }),
|
|
2219
|
+
i && !a ? /* @__PURE__ */ e.createElement("span", { className: `${r}__label`, style: g }, c) : /* @__PURE__ */ e.createElement(m4, { label: c })
|
|
2068
2220
|
);
|
|
2069
|
-
},
|
|
2221
|
+
}, B2 = P2(
|
|
2070
2222
|
({
|
|
2071
2223
|
ariaLabel: t,
|
|
2072
|
-
buttonType:
|
|
2073
|
-
className:
|
|
2074
|
-
disabled:
|
|
2075
|
-
displayType:
|
|
2076
|
-
iconName:
|
|
2224
|
+
buttonType: l = "button",
|
|
2225
|
+
className: a = "",
|
|
2226
|
+
disabled: c = !1,
|
|
2227
|
+
displayType: i = "label-only",
|
|
2228
|
+
iconName: s,
|
|
2077
2229
|
isFullWidth: n = !1,
|
|
2078
|
-
isLoading:
|
|
2079
|
-
isSplitButton:
|
|
2080
|
-
isWorking:
|
|
2081
|
-
label:
|
|
2082
|
-
onClick:
|
|
2230
|
+
isLoading: r = !1,
|
|
2231
|
+
isSplitButton: o = !1,
|
|
2232
|
+
isWorking: m = !1,
|
|
2233
|
+
label: h,
|
|
2234
|
+
onClick: z,
|
|
2083
2235
|
size: d = "s",
|
|
2084
|
-
tooltipText:
|
|
2085
|
-
variant:
|
|
2086
|
-
...
|
|
2087
|
-
},
|
|
2088
|
-
const L = "pds-button",
|
|
2089
|
-
let
|
|
2236
|
+
tooltipText: f,
|
|
2237
|
+
variant: C = "primary",
|
|
2238
|
+
...g
|
|
2239
|
+
}, p) => {
|
|
2240
|
+
const L = "pds-button", b = `${L}--${d}`, M = `${L}--${C}`, D = n ? `${L}--full-width` : null, N = r ? `${L}--loading` : null, P = r ? "pds-pulse" : null;
|
|
2241
|
+
let _, w;
|
|
2090
2242
|
switch (d) {
|
|
2091
2243
|
case "xs":
|
|
2092
|
-
|
|
2244
|
+
_ = "s", w = "s";
|
|
2093
2245
|
break;
|
|
2094
2246
|
case "s":
|
|
2095
|
-
|
|
2247
|
+
_ = "m", w = "m";
|
|
2096
2248
|
break;
|
|
2097
2249
|
case "m":
|
|
2098
|
-
|
|
2250
|
+
_ = "m", w = "m";
|
|
2099
2251
|
break;
|
|
2100
2252
|
case "l":
|
|
2101
|
-
|
|
2253
|
+
_ = "m", w = "l";
|
|
2102
2254
|
break;
|
|
2103
2255
|
case "xl":
|
|
2104
|
-
|
|
2256
|
+
_ = "l", w = "l";
|
|
2105
2257
|
break;
|
|
2106
2258
|
}
|
|
2107
|
-
let
|
|
2108
|
-
["primary"].includes(
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2259
|
+
let S = "monochromatic";
|
|
2260
|
+
["primary"].includes(C) && (S = "monochromatic-reverse");
|
|
2261
|
+
const k = /* @__PURE__ */ e.createElement(
|
|
2262
|
+
A,
|
|
2111
2263
|
{
|
|
2112
2264
|
key: "icon",
|
|
2113
2265
|
className: `${L}__icon`,
|
|
2114
|
-
iconName:
|
|
2115
|
-
iconSize:
|
|
2266
|
+
iconName: s,
|
|
2267
|
+
iconSize: _
|
|
2116
2268
|
}
|
|
2117
2269
|
);
|
|
2118
|
-
let
|
|
2119
|
-
|
|
2120
|
-
const
|
|
2270
|
+
let R = [h];
|
|
2271
|
+
i == "icon-start" && s && R.unshift(k), i == "icon-end" && s && R.push(k), o && (R = [k], t = Y2(h));
|
|
2272
|
+
const F = /* @__PURE__ */ e.createElement(
|
|
2121
2273
|
"button",
|
|
2122
2274
|
{
|
|
2123
|
-
ref:
|
|
2275
|
+
ref: p,
|
|
2124
2276
|
"aria-label": t,
|
|
2125
|
-
className:
|
|
2277
|
+
className: v([
|
|
2126
2278
|
L,
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2279
|
+
b,
|
|
2280
|
+
M,
|
|
2281
|
+
D,
|
|
2282
|
+
N,
|
|
2283
|
+
P,
|
|
2284
|
+
a
|
|
2133
2285
|
]),
|
|
2134
|
-
disabled:
|
|
2135
|
-
onClick:
|
|
2136
|
-
type:
|
|
2137
|
-
...
|
|
2286
|
+
disabled: c || r || m,
|
|
2287
|
+
onClick: z,
|
|
2288
|
+
type: l,
|
|
2289
|
+
...g
|
|
2138
2290
|
},
|
|
2139
|
-
|
|
2140
|
-
|
|
2291
|
+
m && !r && /* @__PURE__ */ e.createElement(
|
|
2292
|
+
k2,
|
|
2141
2293
|
{
|
|
2142
2294
|
className: `${L}__working-indicator`,
|
|
2143
|
-
colorType:
|
|
2144
|
-
size:
|
|
2295
|
+
colorType: S,
|
|
2296
|
+
size: w
|
|
2145
2297
|
}
|
|
2146
2298
|
),
|
|
2147
|
-
|
|
2299
|
+
R
|
|
2148
2300
|
);
|
|
2149
|
-
return (
|
|
2301
|
+
return (c || r || m) && f ? /* @__PURE__ */ e.createElement(T2, { content: f, customTrigger: F }) : /* @__PURE__ */ e.createElement(e.Fragment, null, F);
|
|
2150
2302
|
}
|
|
2151
|
-
),
|
|
2303
|
+
), g4 = ({
|
|
2152
2304
|
className: t,
|
|
2153
|
-
disabled:
|
|
2154
|
-
displayType:
|
|
2155
|
-
iconName:
|
|
2156
|
-
linkContent:
|
|
2157
|
-
size:
|
|
2305
|
+
disabled: l = !1,
|
|
2306
|
+
displayType: a = "label-only",
|
|
2307
|
+
iconName: c,
|
|
2308
|
+
linkContent: i,
|
|
2309
|
+
size: s = "s",
|
|
2158
2310
|
tooltipText: n,
|
|
2159
|
-
variant:
|
|
2160
|
-
...
|
|
2311
|
+
variant: r = "primary",
|
|
2312
|
+
...o
|
|
2161
2313
|
}) => {
|
|
2162
|
-
const
|
|
2163
|
-
|
|
2164
|
-
|
|
2314
|
+
const m = "pds-button-link", h = "pds-button", z = `${h}--${s}`, d = `${h}--${r}`, f = v([
|
|
2315
|
+
h,
|
|
2316
|
+
z,
|
|
2165
2317
|
d
|
|
2166
|
-
]),
|
|
2167
|
-
let
|
|
2168
|
-
switch (
|
|
2318
|
+
]), C = h2(i) ? i.props.children : null;
|
|
2319
|
+
let g;
|
|
2320
|
+
switch (s) {
|
|
2169
2321
|
case "xs":
|
|
2170
|
-
|
|
2322
|
+
g = "s";
|
|
2171
2323
|
break;
|
|
2172
2324
|
case "s":
|
|
2173
|
-
|
|
2325
|
+
g = "m";
|
|
2174
2326
|
break;
|
|
2175
2327
|
case "m":
|
|
2176
|
-
|
|
2328
|
+
g = "m";
|
|
2177
2329
|
break;
|
|
2178
2330
|
case "l":
|
|
2179
|
-
|
|
2331
|
+
g = "m";
|
|
2180
2332
|
break;
|
|
2181
2333
|
case "xl":
|
|
2182
|
-
|
|
2334
|
+
g = "l";
|
|
2183
2335
|
break;
|
|
2184
2336
|
default:
|
|
2185
|
-
|
|
2337
|
+
g = "m";
|
|
2186
2338
|
break;
|
|
2187
2339
|
}
|
|
2188
|
-
const
|
|
2189
|
-
|
|
2340
|
+
const p = /* @__PURE__ */ e.createElement(
|
|
2341
|
+
A,
|
|
2190
2342
|
{
|
|
2191
|
-
key:
|
|
2192
|
-
className: `${
|
|
2193
|
-
iconName:
|
|
2194
|
-
iconSize:
|
|
2343
|
+
key: c,
|
|
2344
|
+
className: `${m}__icon`,
|
|
2345
|
+
iconName: c,
|
|
2346
|
+
iconSize: g
|
|
2195
2347
|
}
|
|
2196
2348
|
);
|
|
2197
|
-
let L = [
|
|
2198
|
-
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2201
|
-
Object.assign({},
|
|
2202
|
-
className:
|
|
2349
|
+
let L = [C];
|
|
2350
|
+
a === "icon-start" && c ? L = [p, C] : a === "icon-end" && c && (L = [C, p]);
|
|
2351
|
+
const b = h2(i) ? _2(
|
|
2352
|
+
i,
|
|
2353
|
+
Object.assign({}, i.props, {
|
|
2354
|
+
className: f,
|
|
2203
2355
|
children: L
|
|
2204
2356
|
})
|
|
2205
2357
|
) : null;
|
|
2206
|
-
return
|
|
2207
|
-
|
|
2358
|
+
return l ? /* @__PURE__ */ e.createElement(
|
|
2359
|
+
B2,
|
|
2208
2360
|
{
|
|
2209
2361
|
disabled: !0,
|
|
2210
|
-
className:
|
|
2362
|
+
className: v([m, t ?? ""]),
|
|
2211
2363
|
label: L,
|
|
2212
|
-
size:
|
|
2364
|
+
size: s,
|
|
2213
2365
|
tooltipText: n ?? null,
|
|
2214
|
-
variant:
|
|
2366
|
+
variant: r
|
|
2215
2367
|
}
|
|
2216
|
-
) : /* @__PURE__ */ e.createElement("span", { className:
|
|
2217
|
-
},
|
|
2218
|
-
const [
|
|
2219
|
-
return
|
|
2368
|
+
) : /* @__PURE__ */ e.createElement("span", { className: v([m, t ?? ""]), ...o }, b);
|
|
2369
|
+
}, p4 = (t, l) => {
|
|
2370
|
+
const [a, c] = H(!1), i = l?.duration;
|
|
2371
|
+
return l2(() => {
|
|
2220
2372
|
let n;
|
|
2221
|
-
return
|
|
2222
|
-
|
|
2223
|
-
},
|
|
2373
|
+
return a && i && (n = setTimeout(() => {
|
|
2374
|
+
c(!1);
|
|
2375
|
+
}, i)), () => {
|
|
2224
2376
|
n && clearTimeout(n);
|
|
2225
2377
|
};
|
|
2226
|
-
}, [
|
|
2378
|
+
}, [a, i]), [a, async () => {
|
|
2227
2379
|
if (navigator.clipboard)
|
|
2228
2380
|
try {
|
|
2229
|
-
await navigator.clipboard.writeText(t),
|
|
2381
|
+
await navigator.clipboard.writeText(t), c(!0);
|
|
2230
2382
|
} catch {
|
|
2231
2383
|
}
|
|
2232
2384
|
}];
|
|
2233
|
-
},
|
|
2385
|
+
}, I2 = P2(
|
|
2234
2386
|
({
|
|
2235
2387
|
ariaLabel: t,
|
|
2236
|
-
buttonType:
|
|
2237
|
-
className:
|
|
2238
|
-
disabled:
|
|
2239
|
-
hasTooltip:
|
|
2240
|
-
icon2Name:
|
|
2388
|
+
buttonType: l = "button",
|
|
2389
|
+
className: a,
|
|
2390
|
+
disabled: c = !1,
|
|
2391
|
+
hasTooltip: i = !0,
|
|
2392
|
+
icon2Name: s = null,
|
|
2241
2393
|
iconName: n,
|
|
2242
|
-
onClick:
|
|
2243
|
-
size:
|
|
2244
|
-
variant:
|
|
2245
|
-
...
|
|
2246
|
-
},
|
|
2247
|
-
const d = "pds-icon-button",
|
|
2394
|
+
onClick: r,
|
|
2395
|
+
size: o = "s",
|
|
2396
|
+
variant: m = "standard",
|
|
2397
|
+
...h
|
|
2398
|
+
}, z) => {
|
|
2399
|
+
const d = "pds-icon-button", f = o !== "s" ? `${d}--${o}` : null, C = m !== "standard" ? `${d}--${m}` : null, g = {
|
|
2248
2400
|
fadeOut: `${d}--fadeOut`,
|
|
2249
2401
|
hide: `${d}--hide`,
|
|
2250
2402
|
scaleIn: `${d}--scaleIn`
|
|
2251
2403
|
};
|
|
2252
|
-
let
|
|
2253
|
-
switch (
|
|
2404
|
+
let p, L;
|
|
2405
|
+
switch (o) {
|
|
2254
2406
|
case "s":
|
|
2255
|
-
L = "m",
|
|
2407
|
+
L = "m", p = 8;
|
|
2256
2408
|
break;
|
|
2257
2409
|
case "m":
|
|
2258
|
-
L = "l",
|
|
2410
|
+
L = "l", p = 11;
|
|
2259
2411
|
break;
|
|
2260
2412
|
default:
|
|
2261
|
-
L = "m",
|
|
2413
|
+
L = "m", p = 8;
|
|
2262
2414
|
break;
|
|
2263
2415
|
}
|
|
2264
|
-
const
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
),
|
|
2416
|
+
const b = s !== null, M = J(null), D = J(null), N = () => {
|
|
2417
|
+
M.current.classList.add(g.fadeOut), M.current.classList.add(g.hide), D.current.classList.remove(g.hide), D.current.classList.add(g.scaleIn), setTimeout(() => {
|
|
2418
|
+
M.current.classList.remove(
|
|
2419
|
+
g.fadeOut,
|
|
2420
|
+
g.hide
|
|
2421
|
+
), M.current.classList.add(g.scaleIn), D.current.classList.remove(g.scaleIn), D.current.classList.add(g.hide);
|
|
2270
2422
|
}, 2e3);
|
|
2271
|
-
},
|
|
2272
|
-
|
|
2273
|
-
},
|
|
2274
|
-
|
|
2423
|
+
}, P = (w) => {
|
|
2424
|
+
b && N(), r && r(w);
|
|
2425
|
+
}, _ = b ? /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { ref: M, className: `${d}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2426
|
+
A,
|
|
2275
2427
|
{
|
|
2276
2428
|
className: `${d}__icon`,
|
|
2277
2429
|
iconName: n,
|
|
@@ -2280,19 +2432,19 @@ const t4 = {
|
|
|
2280
2432
|
)), /* @__PURE__ */ e.createElement(
|
|
2281
2433
|
"div",
|
|
2282
2434
|
{
|
|
2283
|
-
ref:
|
|
2284
|
-
className: `${d}__icon-wrapper ${
|
|
2435
|
+
ref: D,
|
|
2436
|
+
className: `${d}__icon-wrapper ${g.hide}`
|
|
2285
2437
|
},
|
|
2286
2438
|
/* @__PURE__ */ e.createElement(
|
|
2287
|
-
|
|
2439
|
+
A,
|
|
2288
2440
|
{
|
|
2289
2441
|
className: `${d}__icon`,
|
|
2290
|
-
iconName:
|
|
2442
|
+
iconName: s,
|
|
2291
2443
|
iconSize: L
|
|
2292
2444
|
}
|
|
2293
2445
|
)
|
|
2294
2446
|
)) : /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement(
|
|
2295
|
-
|
|
2447
|
+
A,
|
|
2296
2448
|
{
|
|
2297
2449
|
className: `${d}__icon`,
|
|
2298
2450
|
iconName: n,
|
|
@@ -2302,73 +2454,73 @@ const t4 = {
|
|
|
2302
2454
|
return /* @__PURE__ */ e.createElement(
|
|
2303
2455
|
"button",
|
|
2304
2456
|
{
|
|
2305
|
-
ref:
|
|
2457
|
+
ref: z,
|
|
2306
2458
|
"aria-label": t,
|
|
2307
|
-
className:
|
|
2459
|
+
className: v([
|
|
2308
2460
|
d,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2461
|
+
f,
|
|
2462
|
+
C,
|
|
2463
|
+
a
|
|
2312
2464
|
]),
|
|
2313
|
-
disabled:
|
|
2314
|
-
onClick:
|
|
2315
|
-
title:
|
|
2316
|
-
type:
|
|
2317
|
-
...
|
|
2465
|
+
disabled: c,
|
|
2466
|
+
onClick: P,
|
|
2467
|
+
title: i && !c ? null : t,
|
|
2468
|
+
type: l,
|
|
2469
|
+
...h
|
|
2318
2470
|
},
|
|
2319
|
-
|
|
2320
|
-
|
|
2471
|
+
i && !c ? /* @__PURE__ */ e.createElement(
|
|
2472
|
+
T2,
|
|
2321
2473
|
{
|
|
2322
2474
|
className: `${d}__tooltip`,
|
|
2323
2475
|
content: t,
|
|
2324
|
-
customTrigger:
|
|
2325
|
-
offsetValue:
|
|
2476
|
+
customTrigger: _,
|
|
2477
|
+
offsetValue: p
|
|
2326
2478
|
}
|
|
2327
|
-
) :
|
|
2479
|
+
) : _
|
|
2328
2480
|
);
|
|
2329
2481
|
}
|
|
2330
|
-
),
|
|
2482
|
+
), H4 = ({
|
|
2331
2483
|
ariaLabel: t = "Copy to clipboard",
|
|
2332
|
-
className:
|
|
2333
|
-
clipboardText:
|
|
2334
|
-
disabled:
|
|
2335
|
-
variant:
|
|
2336
|
-
...
|
|
2484
|
+
className: l,
|
|
2485
|
+
clipboardText: a = "",
|
|
2486
|
+
disabled: c,
|
|
2487
|
+
variant: i = "standard",
|
|
2488
|
+
...s
|
|
2337
2489
|
}) => {
|
|
2338
|
-
const n = "pds-clipboard-button", [
|
|
2490
|
+
const n = "pds-clipboard-button", [r, o] = p4(a);
|
|
2339
2491
|
return /* @__PURE__ */ e.createElement(
|
|
2340
|
-
|
|
2492
|
+
I2,
|
|
2341
2493
|
{
|
|
2342
2494
|
ariaLabel: t,
|
|
2343
2495
|
buttonType: "button",
|
|
2344
|
-
className:
|
|
2345
|
-
disabled:
|
|
2496
|
+
className: v([n, l ?? ""]),
|
|
2497
|
+
disabled: c,
|
|
2346
2498
|
icon2Name: "check",
|
|
2347
2499
|
iconName: "copy",
|
|
2348
|
-
onClick:
|
|
2500
|
+
onClick: o,
|
|
2349
2501
|
size: "m",
|
|
2350
|
-
variant:
|
|
2351
|
-
...
|
|
2502
|
+
variant: i,
|
|
2503
|
+
...s
|
|
2352
2504
|
}
|
|
2353
2505
|
);
|
|
2354
|
-
},
|
|
2506
|
+
}, v1 = ({
|
|
2355
2507
|
ariaLabel: t = "Close",
|
|
2356
|
-
className:
|
|
2357
|
-
onClick:
|
|
2358
|
-
size:
|
|
2359
|
-
...
|
|
2508
|
+
className: l,
|
|
2509
|
+
onClick: a,
|
|
2510
|
+
size: c = "l",
|
|
2511
|
+
...i
|
|
2360
2512
|
}) => {
|
|
2361
|
-
const
|
|
2513
|
+
const s = "pds-close-button", n = `${s}--${c}`;
|
|
2362
2514
|
return /* @__PURE__ */ e.createElement(
|
|
2363
2515
|
"button",
|
|
2364
2516
|
{
|
|
2365
2517
|
"aria-label": t,
|
|
2366
|
-
className:
|
|
2367
|
-
onClick:
|
|
2518
|
+
className: v([s, n, l ?? ""]),
|
|
2519
|
+
onClick: a,
|
|
2368
2520
|
type: "button",
|
|
2369
|
-
...
|
|
2521
|
+
...i
|
|
2370
2522
|
},
|
|
2371
|
-
/* @__PURE__ */ e.createElement(
|
|
2523
|
+
/* @__PURE__ */ e.createElement(A, { className: `${s}__icon`, iconName: "xmarkLarge" })
|
|
2372
2524
|
);
|
|
2373
2525
|
}, Q2 = {
|
|
2374
2526
|
info: "Information",
|
|
@@ -2376,7 +2528,7 @@ const t4 = {
|
|
|
2376
2528
|
warning: "Warning",
|
|
2377
2529
|
critical: "Critical",
|
|
2378
2530
|
discovery: "Discovery"
|
|
2379
|
-
},
|
|
2531
|
+
}, V2 = (t) => "isSeparator" in t && t.isSeparator, F2 = (t) => "isHeading" in t && t.isHeading, Z2 = (t) => "isLink" in t && t.isLink, z4 = (t) => "isNode" in t && t.isNode, R4 = {
|
|
2380
2532
|
sandbox: "Sandbox",
|
|
2381
2533
|
basic: "Basic",
|
|
2382
2534
|
"performance-small": "Performance Small",
|
|
@@ -2388,114 +2540,114 @@ const t4 = {
|
|
|
2388
2540
|
pro: "Professional",
|
|
2389
2541
|
business: "Business",
|
|
2390
2542
|
"flagship-performance": "Flagship Performance"
|
|
2391
|
-
},
|
|
2543
|
+
}, V4 = {
|
|
2392
2544
|
drupal: "Drupal",
|
|
2393
2545
|
wordpress: "WordPress",
|
|
2394
2546
|
gatsby: "Gatsby",
|
|
2395
2547
|
nextjs: "Next.js"
|
|
2396
|
-
},
|
|
2548
|
+
}, f4 = {
|
|
2397
2549
|
drupal: "drupal",
|
|
2398
2550
|
wordpress: "wordpress",
|
|
2399
2551
|
gatsby: "bolt",
|
|
2400
2552
|
nextjs: "bolt"
|
|
2401
|
-
},
|
|
2402
|
-
const t = typeof window < "u", [
|
|
2553
|
+
}, w1 = () => {
|
|
2554
|
+
const t = typeof window < "u", [l, a] = H(
|
|
2403
2555
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
2404
2556
|
);
|
|
2405
|
-
return
|
|
2557
|
+
return l2(() => {
|
|
2406
2558
|
if (!t) return;
|
|
2407
|
-
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2559
|
+
a(window.innerWidth);
|
|
2560
|
+
const c = () => {
|
|
2561
|
+
a(window.innerWidth);
|
|
2410
2562
|
};
|
|
2411
|
-
return window.addEventListener("resize",
|
|
2412
|
-
window.removeEventListener("resize",
|
|
2563
|
+
return window.addEventListener("resize", c), () => {
|
|
2564
|
+
window.removeEventListener("resize", c);
|
|
2413
2565
|
};
|
|
2414
|
-
}, []),
|
|
2415
|
-
},
|
|
2566
|
+
}, []), l;
|
|
2567
|
+
}, x2 = n1(null), L4 = ({
|
|
2416
2568
|
children: t,
|
|
2417
|
-
mobileMenuMaxWidth:
|
|
2569
|
+
mobileMenuMaxWidth: l = 640
|
|
2418
2570
|
}) => {
|
|
2419
|
-
const
|
|
2420
|
-
isMobile:
|
|
2421
|
-
mobileMenuMaxWidth:
|
|
2422
|
-
windowWidth:
|
|
2571
|
+
const a = w1(), c = a <= l, i = {
|
|
2572
|
+
isMobile: c,
|
|
2573
|
+
mobileMenuMaxWidth: l,
|
|
2574
|
+
windowWidth: a
|
|
2423
2575
|
};
|
|
2424
|
-
return
|
|
2425
|
-
|
|
2426
|
-
}, [
|
|
2427
|
-
},
|
|
2576
|
+
return l2(() => {
|
|
2577
|
+
c ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
2578
|
+
}, [c]), /* @__PURE__ */ e.createElement(x2.Provider, { value: i }, t);
|
|
2579
|
+
}, C4 = ({
|
|
2428
2580
|
className: t,
|
|
2429
|
-
disabled:
|
|
2430
|
-
displayType:
|
|
2431
|
-
iconName:
|
|
2432
|
-
id:
|
|
2433
|
-
isSplitButton:
|
|
2581
|
+
disabled: l,
|
|
2582
|
+
displayType: a = "icon-end",
|
|
2583
|
+
iconName: c = "ellipsisVertical",
|
|
2584
|
+
id: i,
|
|
2585
|
+
isSplitButton: s = !1,
|
|
2434
2586
|
label: n,
|
|
2435
|
-
menuItems:
|
|
2436
|
-
menuPosition:
|
|
2437
|
-
onClick:
|
|
2438
|
-
size:
|
|
2439
|
-
testId:
|
|
2587
|
+
menuItems: r,
|
|
2588
|
+
menuPosition: o = "start",
|
|
2589
|
+
onClick: m,
|
|
2590
|
+
size: h = "s",
|
|
2591
|
+
testId: z,
|
|
2440
2592
|
undefinedLabel: d = "Unlabeled group",
|
|
2441
|
-
variant:
|
|
2442
|
-
withinNavbar:
|
|
2443
|
-
...
|
|
2593
|
+
variant: f = "primary",
|
|
2594
|
+
withinNavbar: C,
|
|
2595
|
+
...g
|
|
2444
2596
|
}) => {
|
|
2445
|
-
const { placement:
|
|
2597
|
+
const { placement: p, refs: L, strategy: b, x: M, y: D } = r1({
|
|
2446
2598
|
placement: "bottom-start",
|
|
2447
|
-
middleware: [
|
|
2448
|
-
whileElementsMounted:
|
|
2599
|
+
middleware: [m1()],
|
|
2600
|
+
whileElementsMounted: o1
|
|
2449
2601
|
});
|
|
2450
|
-
let
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2455
|
-
window.addEventListener("mousedown",
|
|
2456
|
-
const u =
|
|
2457
|
-
return u && (u.dataset.fuiPlacement =
|
|
2602
|
+
let N = !1;
|
|
2603
|
+
const P = D2(x2);
|
|
2604
|
+
P && (N = P.isMobile);
|
|
2605
|
+
const _ = f === "navbar" && N, w = "pds-menu-button", S = _ ? `${w}--isMobile` : null, y = C ? `${w}--navbar` : null, k = i, [R] = H(`menu-button-${i}`), F = L.floating, Y = J(null), [q, i2] = H(!1), [Z, n2] = H(!1), [U, r2] = H(""), [Q, o2] = H(0), s2 = J([]), T = J([]), B = J([]);
|
|
2606
|
+
_1(() => {
|
|
2607
|
+
window.addEventListener("mousedown", L2, !0);
|
|
2608
|
+
const u = F.current;
|
|
2609
|
+
return u && (u.dataset.fuiPlacement = p), Z && (setTimeout(() => {
|
|
2458
2610
|
u.focus();
|
|
2459
|
-
}, 0),
|
|
2460
|
-
window.removeEventListener("mousedown",
|
|
2611
|
+
}, 0), n2(!1)), () => {
|
|
2612
|
+
window.removeEventListener("mousedown", L2, !0);
|
|
2461
2613
|
};
|
|
2462
|
-
}, [
|
|
2463
|
-
const
|
|
2464
|
-
|
|
2465
|
-
},
|
|
2466
|
-
|
|
2467
|
-
},
|
|
2468
|
-
|
|
2469
|
-
`#${
|
|
2614
|
+
}, [q, p]);
|
|
2615
|
+
const W = (u, I) => {
|
|
2616
|
+
r2(u), o2(I);
|
|
2617
|
+
}, K = () => {
|
|
2618
|
+
i2(!0), n2(!0);
|
|
2619
|
+
}, e2 = () => {
|
|
2620
|
+
i2(!1), W(void 0, -1), Y.current?.querySelector(
|
|
2621
|
+
`#${k}`
|
|
2470
2622
|
)?.focus();
|
|
2471
|
-
},
|
|
2623
|
+
}, z2 = (u) => {
|
|
2472
2624
|
u = u.toLowerCase();
|
|
2473
2625
|
let I = !1;
|
|
2474
|
-
for (let E =
|
|
2475
|
-
if (
|
|
2476
|
-
|
|
2626
|
+
for (let E = Q + 1; E < B.current.length; E++)
|
|
2627
|
+
if (B.current[E].label.toLowerCase().startsWith(u)) {
|
|
2628
|
+
W(T.current[E], E), I = !0;
|
|
2477
2629
|
break;
|
|
2478
2630
|
}
|
|
2479
2631
|
if (I === !1) {
|
|
2480
|
-
for (let E = 0; E <
|
|
2481
|
-
if (
|
|
2482
|
-
|
|
2632
|
+
for (let E = 0; E < Q; E++)
|
|
2633
|
+
if (B.current[E].label.toLowerCase().startsWith(u)) {
|
|
2634
|
+
W(T.current[E], E);
|
|
2483
2635
|
break;
|
|
2484
2636
|
}
|
|
2485
2637
|
}
|
|
2486
|
-
},
|
|
2487
|
-
const I =
|
|
2488
|
-
E.callback && !E.disabled && E.callback(E), E.linkContent && !E.disabled &&
|
|
2638
|
+
}, u2 = (u) => {
|
|
2639
|
+
const I = T.current.indexOf(u), E = B.current[I];
|
|
2640
|
+
E.callback && !E.disabled && E.callback(E), E.linkContent && !E.disabled && Y.current?.querySelector(
|
|
2489
2641
|
`#${u} a`
|
|
2490
2642
|
)?.click();
|
|
2491
|
-
},
|
|
2492
|
-
const u =
|
|
2493
|
-
|
|
2494
|
-
},
|
|
2495
|
-
|
|
2496
|
-
},
|
|
2497
|
-
|
|
2498
|
-
},
|
|
2643
|
+
}, f2 = () => {
|
|
2644
|
+
const u = T.current[Q];
|
|
2645
|
+
u2(u);
|
|
2646
|
+
}, N2 = (u) => {
|
|
2647
|
+
q ? e2() : K(), m && m(), u.stopPropagation(), u.preventDefault();
|
|
2648
|
+
}, A2 = (u) => {
|
|
2649
|
+
u2(u.currentTarget.id), _ || e2();
|
|
2650
|
+
}, S2 = (u) => {
|
|
2499
2651
|
const I = u.key;
|
|
2500
2652
|
let E = !1;
|
|
2501
2653
|
switch (I) {
|
|
@@ -2504,538 +2656,564 @@ const t4 = {
|
|
|
2504
2656
|
case "Enter":
|
|
2505
2657
|
case "ArrowDown":
|
|
2506
2658
|
case "Down": {
|
|
2507
|
-
|
|
2508
|
-
let
|
|
2509
|
-
for (let
|
|
2510
|
-
if (!
|
|
2511
|
-
|
|
2659
|
+
K();
|
|
2660
|
+
let O = 0;
|
|
2661
|
+
for (let $ = 0; $ < B.current.length; $++)
|
|
2662
|
+
if (!B.current[$]?.disabled) {
|
|
2663
|
+
O = $;
|
|
2512
2664
|
break;
|
|
2513
2665
|
}
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
), E = !0,
|
|
2666
|
+
W(
|
|
2667
|
+
T.current[O],
|
|
2668
|
+
O
|
|
2669
|
+
), E = !0, m && m();
|
|
2518
2670
|
break;
|
|
2519
2671
|
}
|
|
2520
2672
|
// close menu
|
|
2521
2673
|
case "Esc":
|
|
2522
2674
|
case "Escape":
|
|
2523
|
-
|
|
2675
|
+
e2(), E = !0;
|
|
2524
2676
|
break;
|
|
2525
2677
|
// open menu and focus on last menu item
|
|
2526
2678
|
case "Up":
|
|
2527
2679
|
case "ArrowUp": {
|
|
2528
|
-
|
|
2529
|
-
let
|
|
2530
|
-
for (let
|
|
2531
|
-
if (!
|
|
2532
|
-
|
|
2680
|
+
K();
|
|
2681
|
+
let O = T.current.length - 1;
|
|
2682
|
+
for (let $ = T.current.length - 1; $ >= 0; $--)
|
|
2683
|
+
if (!B.current[$]?.disabled) {
|
|
2684
|
+
O = $;
|
|
2533
2685
|
break;
|
|
2534
2686
|
}
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2687
|
+
W(
|
|
2688
|
+
T.current[O],
|
|
2689
|
+
O
|
|
2538
2690
|
), E = !0;
|
|
2539
2691
|
break;
|
|
2540
2692
|
}
|
|
2541
2693
|
}
|
|
2542
2694
|
E && (u.stopPropagation(), u.preventDefault());
|
|
2543
|
-
},
|
|
2695
|
+
}, m2 = (u) => {
|
|
2544
2696
|
const I = u.key;
|
|
2545
|
-
let E = !1,
|
|
2546
|
-
function G(
|
|
2547
|
-
return
|
|
2697
|
+
let E = !1, O = "", $ = 0;
|
|
2698
|
+
function G(x) {
|
|
2699
|
+
return x.length === 1 && x.match(/\S/);
|
|
2548
2700
|
}
|
|
2549
2701
|
if (!(u.ctrlKey || u.altKey || u.metaKey)) {
|
|
2550
2702
|
if (u.shiftKey)
|
|
2551
|
-
G(I) && (
|
|
2703
|
+
G(I) && (z2(I), E = !0), u.key === "Tab" && (e2(), E = !0);
|
|
2552
2704
|
else
|
|
2553
2705
|
switch (I) {
|
|
2554
2706
|
case " ":
|
|
2555
2707
|
case "Enter":
|
|
2556
|
-
|
|
2708
|
+
e2(), f2(), E = !0;
|
|
2557
2709
|
break;
|
|
2558
2710
|
case "Esc":
|
|
2559
2711
|
case "Escape":
|
|
2560
|
-
|
|
2712
|
+
e2(), E = !0;
|
|
2561
2713
|
break;
|
|
2562
2714
|
case "Up":
|
|
2563
2715
|
case "ArrowUp": {
|
|
2564
|
-
let
|
|
2565
|
-
const j =
|
|
2566
|
-
for (
|
|
2567
|
-
|
|
2568
|
-
|
|
2716
|
+
let x = 0;
|
|
2717
|
+
const j = T.current.length;
|
|
2718
|
+
for ($ = Q - 1; x < j && ($ < 0 && ($ = T.current.length - 1), !!B.current[$]?.disabled); )
|
|
2719
|
+
$--, x++;
|
|
2720
|
+
O = T.current[$], W(O, $), E = !0;
|
|
2569
2721
|
break;
|
|
2570
2722
|
}
|
|
2571
2723
|
case "ArrowDown":
|
|
2572
2724
|
case "Down": {
|
|
2573
|
-
let
|
|
2574
|
-
const j =
|
|
2575
|
-
for (
|
|
2576
|
-
|
|
2577
|
-
|
|
2725
|
+
let x = 0;
|
|
2726
|
+
const j = T.current.length;
|
|
2727
|
+
for ($ = Q + 1; x < j && ($ > T.current.length - 1 && ($ = 0), !!B.current[$]?.disabled); )
|
|
2728
|
+
$++, x++;
|
|
2729
|
+
O = T.current[$], W(O, $), E = !0;
|
|
2578
2730
|
break;
|
|
2579
2731
|
}
|
|
2580
2732
|
case "Home":
|
|
2581
2733
|
case "PageUp": {
|
|
2582
|
-
let
|
|
2583
|
-
for (let j = 0; j <
|
|
2584
|
-
if (!
|
|
2585
|
-
|
|
2734
|
+
let x = 0;
|
|
2735
|
+
for (let j = 0; j < B.current.length; j++)
|
|
2736
|
+
if (!B.current[j]?.disabled) {
|
|
2737
|
+
x = j;
|
|
2586
2738
|
break;
|
|
2587
2739
|
}
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2740
|
+
W(
|
|
2741
|
+
T.current[x],
|
|
2742
|
+
x
|
|
2591
2743
|
), E = !0;
|
|
2592
2744
|
break;
|
|
2593
2745
|
}
|
|
2594
2746
|
case "End":
|
|
2595
2747
|
case "PageDown": {
|
|
2596
|
-
let
|
|
2597
|
-
for (let j =
|
|
2598
|
-
if (!
|
|
2599
|
-
|
|
2748
|
+
let x = T.current.length - 1;
|
|
2749
|
+
for (let j = T.current.length - 1; j >= 0; j--)
|
|
2750
|
+
if (!B.current[j]?.disabled) {
|
|
2751
|
+
x = j;
|
|
2600
2752
|
break;
|
|
2601
2753
|
}
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2754
|
+
W(
|
|
2755
|
+
T.current[x],
|
|
2756
|
+
x
|
|
2605
2757
|
), E = !0;
|
|
2606
2758
|
break;
|
|
2607
2759
|
}
|
|
2608
2760
|
case "Tab":
|
|
2609
|
-
|
|
2761
|
+
e2();
|
|
2610
2762
|
break;
|
|
2611
2763
|
default:
|
|
2612
|
-
G(I) && (
|
|
2764
|
+
G(I) && (z2(I), E = !0);
|
|
2613
2765
|
break;
|
|
2614
2766
|
}
|
|
2615
2767
|
E && (u.stopPropagation(), u.preventDefault());
|
|
2616
2768
|
}
|
|
2617
|
-
},
|
|
2618
|
-
|
|
2619
|
-
},
|
|
2620
|
-
const G = E ? `-group-${E}` : "",
|
|
2621
|
-
if (H2(u))
|
|
2622
|
-
return /* @__PURE__ */ e.createElement("li", { key: j, role: "separator" });
|
|
2769
|
+
}, L2 = (u) => {
|
|
2770
|
+
Y.current && !Y.current.contains(u.target) && q && e2();
|
|
2771
|
+
}, C2 = (u, I, E = "", O = "", ...$) => {
|
|
2772
|
+
const G = E ? `-group-${E}` : "", x = k + G + "-item-" + (I + 1), j = "id" in u && u.id ? u.id : x;
|
|
2623
2773
|
if (V2(u))
|
|
2774
|
+
return /* @__PURE__ */ e.createElement("li", { key: j, role: "separator" });
|
|
2775
|
+
if (F2(u))
|
|
2624
2776
|
return /* @__PURE__ */ e.createElement(
|
|
2625
2777
|
"li",
|
|
2626
2778
|
{
|
|
2627
|
-
key:
|
|
2628
|
-
className: `${
|
|
2629
|
-
id:
|
|
2779
|
+
key: O,
|
|
2780
|
+
className: `${w}__listbox-heading`,
|
|
2781
|
+
id: O || null,
|
|
2630
2782
|
role: "presentation"
|
|
2631
2783
|
},
|
|
2632
2784
|
u.label
|
|
2633
2785
|
);
|
|
2634
|
-
if (
|
|
2786
|
+
if (z4(u))
|
|
2635
2787
|
return /* @__PURE__ */ e.createElement("li", { key: j, role: "presentation" }, u.nodeContent);
|
|
2636
|
-
if (
|
|
2637
|
-
|
|
2638
|
-
let
|
|
2639
|
-
|
|
2640
|
-
const
|
|
2641
|
-
let
|
|
2642
|
-
if ("label" in u && u.label && (
|
|
2643
|
-
const
|
|
2644
|
-
|
|
2788
|
+
if (Z2(u) || "label" in u && u.label) {
|
|
2789
|
+
T.current.push(j), B.current.push(u);
|
|
2790
|
+
let g2 = !1;
|
|
2791
|
+
U !== "" && !u.disabled && (g2 = U === j);
|
|
2792
|
+
const c2 = "isCritical" in u && u.isCritical, M2 = "criticalLabel" in u ? u.criticalLabel : void 0;
|
|
2793
|
+
let a2 = [];
|
|
2794
|
+
if ("label" in u && u.label && (a2 = [u.label]), Z2(u) && u.linkContent && (a2 = [u.linkContent.props.children]), u.iconName) {
|
|
2795
|
+
const d2 = /* @__PURE__ */ e.createElement(
|
|
2796
|
+
A,
|
|
2645
2797
|
{
|
|
2646
|
-
key: `icon-${
|
|
2798
|
+
key: `icon-${k}`,
|
|
2647
2799
|
iconName: u.iconName,
|
|
2648
2800
|
iconSize: "m"
|
|
2649
2801
|
}
|
|
2650
2802
|
);
|
|
2651
|
-
|
|
2803
|
+
a2.unshift(d2);
|
|
2652
2804
|
}
|
|
2653
|
-
|
|
2654
|
-
/* @__PURE__ */ e.createElement("span", { key: `critical-${
|
|
2805
|
+
c2 && M2 && a2.unshift(
|
|
2806
|
+
/* @__PURE__ */ e.createElement("span", { key: `critical-${k}`, className: "visually-hidden" }, M2)
|
|
2655
2807
|
);
|
|
2656
|
-
let
|
|
2657
|
-
u.description && (
|
|
2658
|
-
let
|
|
2659
|
-
if (
|
|
2660
|
-
const
|
|
2661
|
-
|
|
2808
|
+
let p2;
|
|
2809
|
+
u.description && (p2 = /* @__PURE__ */ e.createElement("span", { className: `${w}__item-description` }, u.description));
|
|
2810
|
+
let b2;
|
|
2811
|
+
if (Z2(u) && u.linkContent) {
|
|
2812
|
+
const d2 = u.linkContent, H2 = d2.type;
|
|
2813
|
+
b2 = /* @__PURE__ */ e.createElement(H2, { tabIndex: -1, ...d2.props }, /* @__PURE__ */ e.createElement("span", { className: `${w}__item-label` }, a2), p2);
|
|
2662
2814
|
} else
|
|
2663
|
-
|
|
2664
|
-
const
|
|
2665
|
-
|
|
2666
|
-
|
|
2815
|
+
b2 = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${w}__item-label` }, a2), p2);
|
|
2816
|
+
const O2 = v([
|
|
2817
|
+
g2 ? `${w}__item-focused` : null,
|
|
2818
|
+
c2 ? `${w}__item-critical` : null
|
|
2667
2819
|
]);
|
|
2668
2820
|
return /* @__PURE__ */ e.createElement(
|
|
2669
2821
|
"li",
|
|
2670
2822
|
{
|
|
2671
2823
|
key: j,
|
|
2672
2824
|
"aria-disabled": u.disabled ? !0 : null,
|
|
2673
|
-
className:
|
|
2825
|
+
className: O2,
|
|
2674
2826
|
"data-testid": u.testId,
|
|
2675
2827
|
id: j,
|
|
2676
|
-
onClick:
|
|
2828
|
+
onClick: A2,
|
|
2677
2829
|
role: "menuitem",
|
|
2678
2830
|
tabIndex: -1,
|
|
2679
|
-
|
|
2831
|
+
...$
|
|
2680
2832
|
},
|
|
2681
|
-
|
|
2833
|
+
b2
|
|
2682
2834
|
);
|
|
2683
2835
|
}
|
|
2684
|
-
},
|
|
2685
|
-
const E = [],
|
|
2686
|
-
let
|
|
2687
|
-
return u.map((
|
|
2688
|
-
|
|
2689
|
-
}), E.filter((
|
|
2690
|
-
},
|
|
2691
|
-
|
|
2836
|
+
}, v2 = (u, I) => {
|
|
2837
|
+
const E = [], O = [...I];
|
|
2838
|
+
let $ = O.shift(), G = [];
|
|
2839
|
+
return u.map((x, j) => {
|
|
2840
|
+
x !== $ ? (G.push(x), j + 1 === u.length && E.push(G)) : (E.push(G), G = [], G.push(x), $ = O.shift());
|
|
2841
|
+
}), E.filter((x) => x.length > 0);
|
|
2842
|
+
}, V = (u) => {
|
|
2843
|
+
T.current = [], B.current = [];
|
|
2692
2844
|
const I = u, E = u.filter(
|
|
2693
|
-
|
|
2694
|
-
),
|
|
2695
|
-
let
|
|
2696
|
-
if (
|
|
2697
|
-
const G =
|
|
2845
|
+
F2 || V2
|
|
2846
|
+
), O = E.length > 0;
|
|
2847
|
+
let $ = [`${w}__listbox`];
|
|
2848
|
+
if (C && $.push(`${w}__listbox--navbar`), o === "end" && $.push(`${w}__listbox--end`), a === "icon-only" && $.push(`${w}__listbox--icon-only`), $ = v($), O) {
|
|
2849
|
+
const G = v2(u, E);
|
|
2698
2850
|
G.forEach(() => {
|
|
2699
|
-
|
|
2851
|
+
s2.current.push(V1());
|
|
2700
2852
|
});
|
|
2701
|
-
let
|
|
2853
|
+
let x = s2.current[0];
|
|
2702
2854
|
const j = G[0].findIndex(
|
|
2703
|
-
(
|
|
2704
|
-
),
|
|
2855
|
+
(c2) => !V2(c2) && !F2(c2)
|
|
2856
|
+
), g2 = `${k}-group-${x}-item-${j + 1}`;
|
|
2705
2857
|
return /* @__PURE__ */ e.createElement(
|
|
2706
2858
|
"div",
|
|
2707
2859
|
{
|
|
2708
2860
|
ref: L.setFloating,
|
|
2709
|
-
"aria-activedescendant":
|
|
2710
|
-
"aria-labelledby":
|
|
2711
|
-
className:
|
|
2712
|
-
id:
|
|
2713
|
-
onKeyDown:
|
|
2861
|
+
"aria-activedescendant": U !== "" ? U : g2,
|
|
2862
|
+
"aria-labelledby": k,
|
|
2863
|
+
className: $.toString(),
|
|
2864
|
+
id: R,
|
|
2865
|
+
onKeyDown: m2,
|
|
2714
2866
|
role: "menu",
|
|
2715
2867
|
style: {
|
|
2716
|
-
visibility:
|
|
2717
|
-
opacity:
|
|
2868
|
+
visibility: q ? "visible" : "hidden",
|
|
2869
|
+
opacity: q ? "1" : "0",
|
|
2718
2870
|
transition: "var(--pds-animation-transition-reveal)",
|
|
2719
|
-
position:
|
|
2720
|
-
transform: `translate(${Math.round(
|
|
2871
|
+
position: b,
|
|
2872
|
+
transform: `translate(${Math.round(M)}px,${Math.round(D)}px)`,
|
|
2721
2873
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2722
2874
|
},
|
|
2723
2875
|
tabIndex: -1
|
|
2724
2876
|
},
|
|
2725
|
-
G.map((
|
|
2726
|
-
|
|
2727
|
-
const
|
|
2877
|
+
G.map((c2, M2) => {
|
|
2878
|
+
x = s2.current[M2];
|
|
2879
|
+
const a2 = "isHeading" in c2[0] && c2[0].isHeading, p2 = a2 ? `${k}-group-${x}-heading` : "", b2 = `${k}-group-${x}`, O2 = a2 ? null : `${d} ${M2 + 1}`;
|
|
2728
2880
|
return /* @__PURE__ */ e.createElement(
|
|
2729
2881
|
"ul",
|
|
2730
2882
|
{
|
|
2731
|
-
key:
|
|
2732
|
-
"aria-label":
|
|
2733
|
-
"aria-labelledby":
|
|
2883
|
+
key: b2,
|
|
2884
|
+
"aria-label": O2,
|
|
2885
|
+
"aria-labelledby": p2,
|
|
2734
2886
|
role: "group"
|
|
2735
2887
|
},
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2888
|
+
c2.map((d2, H2) => C2(
|
|
2889
|
+
d2,
|
|
2890
|
+
H2,
|
|
2891
|
+
x,
|
|
2892
|
+
p2
|
|
2741
2893
|
))
|
|
2742
2894
|
);
|
|
2743
2895
|
})
|
|
2744
2896
|
);
|
|
2745
2897
|
} else {
|
|
2746
|
-
const G = `${
|
|
2898
|
+
const G = `${k}-item-1`;
|
|
2747
2899
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2748
2900
|
"ul",
|
|
2749
2901
|
{
|
|
2750
2902
|
ref: L.setFloating,
|
|
2751
|
-
"aria-activedescendant":
|
|
2752
|
-
"aria-labelledby":
|
|
2753
|
-
className:
|
|
2754
|
-
id:
|
|
2755
|
-
onKeyDown:
|
|
2903
|
+
"aria-activedescendant": U !== "" ? U : G,
|
|
2904
|
+
"aria-labelledby": k,
|
|
2905
|
+
className: $.toString(),
|
|
2906
|
+
id: R,
|
|
2907
|
+
onKeyDown: m2,
|
|
2756
2908
|
role: "menu",
|
|
2757
2909
|
style: {
|
|
2758
|
-
visibility:
|
|
2759
|
-
opacity:
|
|
2910
|
+
visibility: q ? "visible" : "hidden",
|
|
2911
|
+
opacity: q ? "1" : "0",
|
|
2760
2912
|
transition: "var(--pds-animation-transition-reveal)",
|
|
2761
|
-
position:
|
|
2762
|
-
transform: `translate(${Math.round(
|
|
2913
|
+
position: b,
|
|
2914
|
+
transform: `translate(${Math.round(M)}px,${Math.round(D)}px)`
|
|
2763
2915
|
},
|
|
2764
2916
|
tabIndex: -1
|
|
2765
2917
|
},
|
|
2766
|
-
I.map((
|
|
2918
|
+
I.map((x, j) => C2(x, j))
|
|
2767
2919
|
));
|
|
2768
2920
|
}
|
|
2769
2921
|
};
|
|
2770
|
-
let
|
|
2771
|
-
if (
|
|
2772
|
-
|
|
2922
|
+
let t2;
|
|
2923
|
+
if (a === "icon-end" && (t2 = /* @__PURE__ */ e.createElement(
|
|
2924
|
+
B2,
|
|
2773
2925
|
{
|
|
2774
2926
|
ref: L.setReference,
|
|
2775
|
-
"aria-controls":
|
|
2776
|
-
"aria-expanded":
|
|
2927
|
+
"aria-controls": R,
|
|
2928
|
+
"aria-expanded": q,
|
|
2777
2929
|
"aria-haspopup": "true",
|
|
2778
|
-
className: `${
|
|
2779
|
-
disabled:
|
|
2780
|
-
displayType:
|
|
2930
|
+
className: `${w}__trigger`,
|
|
2931
|
+
disabled: l,
|
|
2932
|
+
displayType: a,
|
|
2781
2933
|
iconName: "angleDown",
|
|
2782
|
-
id:
|
|
2783
|
-
isSplitButton:
|
|
2934
|
+
id: k,
|
|
2935
|
+
isSplitButton: s,
|
|
2784
2936
|
label: n,
|
|
2785
|
-
onClick:
|
|
2786
|
-
onKeyDown:
|
|
2787
|
-
size:
|
|
2937
|
+
onClick: N2,
|
|
2938
|
+
onKeyDown: S2,
|
|
2939
|
+
size: h,
|
|
2788
2940
|
type: "button",
|
|
2789
|
-
variant:
|
|
2941
|
+
variant: f
|
|
2790
2942
|
}
|
|
2791
|
-
)),
|
|
2792
|
-
const u =
|
|
2793
|
-
|
|
2794
|
-
|
|
2943
|
+
)), a === "icon-only") {
|
|
2944
|
+
const u = Y2(n);
|
|
2945
|
+
t2 = /* @__PURE__ */ e.createElement(
|
|
2946
|
+
I2,
|
|
2795
2947
|
{
|
|
2796
2948
|
ref: L.setReference,
|
|
2797
|
-
"aria-controls":
|
|
2798
|
-
"aria-expanded":
|
|
2949
|
+
"aria-controls": R,
|
|
2950
|
+
"aria-expanded": q,
|
|
2799
2951
|
"aria-haspopup": "true",
|
|
2800
2952
|
ariaLabel: u,
|
|
2801
|
-
className: `${
|
|
2802
|
-
disabled:
|
|
2953
|
+
className: `${w}__trigger ${w}__trigger--icon-only`,
|
|
2954
|
+
disabled: l,
|
|
2803
2955
|
hasTooltip: !1,
|
|
2804
|
-
iconName:
|
|
2805
|
-
id:
|
|
2806
|
-
onClick:
|
|
2807
|
-
onKeyDown:
|
|
2808
|
-
size:
|
|
2956
|
+
iconName: c,
|
|
2957
|
+
id: k,
|
|
2958
|
+
onClick: N2,
|
|
2959
|
+
onKeyDown: S2,
|
|
2960
|
+
size: h,
|
|
2809
2961
|
type: "button",
|
|
2810
2962
|
variant: "standard"
|
|
2811
2963
|
}
|
|
2812
2964
|
);
|
|
2813
2965
|
}
|
|
2814
|
-
const
|
|
2966
|
+
const w2 = (u) => {
|
|
2815
2967
|
const I = u.target;
|
|
2816
|
-
I.classList.toggle(`${
|
|
2968
|
+
I.classList.toggle(`${w}__toggle--expanded`), I.setAttribute(
|
|
2817
2969
|
"aria-expanded",
|
|
2818
2970
|
I.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
2819
|
-
), I.nextElementSibling.classList.toggle(`${
|
|
2820
|
-
},
|
|
2971
|
+
), I.nextElementSibling.classList.toggle(`${w}__mobile-menu--expanded`);
|
|
2972
|
+
}, M1 = () => /* @__PURE__ */ e.createElement("ul", { className: `${w}__mobile-menu`, role: "menu" }, r.map((u, I) => C2(u, I)));
|
|
2821
2973
|
let J2;
|
|
2822
|
-
const
|
|
2823
|
-
`${
|
|
2824
|
-
|
|
2974
|
+
const b1 = a === "icon-end" ? "pds-button pds-button--navbar" : null, E1 = v([
|
|
2975
|
+
`${w}__toggle`,
|
|
2976
|
+
b1
|
|
2825
2977
|
]);
|
|
2826
|
-
|
|
2978
|
+
_ && (J2 = /* @__PURE__ */ e.createElement(
|
|
2827
2979
|
"button",
|
|
2828
2980
|
{
|
|
2829
2981
|
"aria-expanded": !1,
|
|
2830
|
-
className:
|
|
2831
|
-
disabled:
|
|
2832
|
-
id:
|
|
2833
|
-
onClick:
|
|
2982
|
+
className: E1,
|
|
2983
|
+
disabled: l,
|
|
2984
|
+
id: k,
|
|
2985
|
+
onClick: w2,
|
|
2834
2986
|
type: "button"
|
|
2835
2987
|
},
|
|
2836
|
-
|
|
2988
|
+
a === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${w}__icon-label` }, /* @__PURE__ */ e.createElement(A, { iconName: c }), " ", n) : n,
|
|
2837
2989
|
/* @__PURE__ */ e.createElement(
|
|
2838
|
-
|
|
2990
|
+
A,
|
|
2839
2991
|
{
|
|
2840
|
-
className: `${
|
|
2992
|
+
className: `${w}__toggle-icon ${w}__toggle-icon--${a}`,
|
|
2841
2993
|
iconName: "angleDown",
|
|
2842
2994
|
iconSize: "m"
|
|
2843
2995
|
}
|
|
2844
2996
|
)
|
|
2845
2997
|
));
|
|
2846
|
-
const
|
|
2998
|
+
const y1 = J2, $1 = q ? `${w}--expanded` : null;
|
|
2847
2999
|
return /* @__PURE__ */ e.createElement(
|
|
2848
3000
|
"span",
|
|
2849
3001
|
{
|
|
2850
|
-
ref:
|
|
2851
|
-
className:
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
3002
|
+
ref: Y,
|
|
3003
|
+
className: v([
|
|
3004
|
+
w,
|
|
3005
|
+
y,
|
|
3006
|
+
S,
|
|
3007
|
+
$1,
|
|
2856
3008
|
t
|
|
2857
3009
|
]),
|
|
2858
|
-
"data-testid":
|
|
2859
|
-
...
|
|
3010
|
+
"data-testid": z,
|
|
3011
|
+
...g
|
|
2860
3012
|
},
|
|
2861
|
-
|
|
3013
|
+
_ ? /* @__PURE__ */ e.createElement(e.Fragment, null, y1, /* @__PURE__ */ e.createElement(M1, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, t2, V(r))
|
|
2862
3014
|
);
|
|
2863
|
-
},
|
|
3015
|
+
}, F4 = ({
|
|
2864
3016
|
className: t,
|
|
2865
|
-
defaultValue:
|
|
2866
|
-
disabled:
|
|
2867
|
-
id:
|
|
2868
|
-
label:
|
|
2869
|
-
onChange:
|
|
3017
|
+
defaultValue: l,
|
|
3018
|
+
disabled: a = !1,
|
|
3019
|
+
id: c,
|
|
3020
|
+
label: i,
|
|
3021
|
+
onChange: s,
|
|
2870
3022
|
options: n,
|
|
2871
|
-
size:
|
|
2872
|
-
value:
|
|
2873
|
-
...
|
|
3023
|
+
size: r = "s",
|
|
3024
|
+
value: o,
|
|
3025
|
+
...m
|
|
2874
3026
|
}) => {
|
|
2875
|
-
const
|
|
2876
|
-
|
|
2877
|
-
),
|
|
2878
|
-
L(
|
|
3027
|
+
const h = "pds-segmented-button", z = a ? "pds-is-disabled" : null, d = `${h}--${r}`, f = r === "s" ? "s" : "m", C = typeof o < "u", g = typeof l < "u", [p, L] = H(
|
|
3028
|
+
g ? l : ""
|
|
3029
|
+
), b = (M) => {
|
|
3030
|
+
L(M.target.value), s && s(M.target.value);
|
|
2879
3031
|
};
|
|
2880
3032
|
if (n.length >= 2 && n.length <= 6)
|
|
2881
3033
|
return /* @__PURE__ */ e.createElement(
|
|
2882
3034
|
"fieldset",
|
|
2883
3035
|
{
|
|
2884
|
-
className:
|
|
2885
|
-
|
|
3036
|
+
className: v([
|
|
3037
|
+
h,
|
|
2886
3038
|
d,
|
|
2887
|
-
|
|
3039
|
+
z,
|
|
2888
3040
|
t ?? ""
|
|
2889
3041
|
]),
|
|
2890
|
-
...
|
|
3042
|
+
...m
|
|
2891
3043
|
},
|
|
2892
|
-
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" },
|
|
2893
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2894
|
-
const
|
|
3044
|
+
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, i),
|
|
3045
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, n.map((M, D) => {
|
|
3046
|
+
const N = C ? o === M.value : p === M.value, P = `${h}__option`, _ = N ? `${P}--checked` : null;
|
|
2895
3047
|
return /* @__PURE__ */ e.createElement(
|
|
2896
3048
|
"div",
|
|
2897
3049
|
{
|
|
2898
|
-
key: `${
|
|
2899
|
-
className:
|
|
3050
|
+
key: `${c}-option-${D}`,
|
|
3051
|
+
className: v([P, _])
|
|
2900
3052
|
},
|
|
2901
3053
|
/* @__PURE__ */ e.createElement(
|
|
2902
3054
|
"input",
|
|
2903
3055
|
{
|
|
2904
|
-
checked:
|
|
3056
|
+
checked: N,
|
|
2905
3057
|
className: "visually-hidden",
|
|
2906
|
-
disabled:
|
|
2907
|
-
id:
|
|
2908
|
-
name:
|
|
2909
|
-
onChange:
|
|
3058
|
+
disabled: a || M.disabled,
|
|
3059
|
+
id: M.id ? M.id : `${c}-option-${D}`,
|
|
3060
|
+
name: c,
|
|
3061
|
+
onChange: b,
|
|
2910
3062
|
type: "radio",
|
|
2911
|
-
value:
|
|
3063
|
+
value: M.value
|
|
2912
3064
|
}
|
|
2913
3065
|
),
|
|
2914
3066
|
/* @__PURE__ */ e.createElement(
|
|
2915
3067
|
"label",
|
|
2916
3068
|
{
|
|
2917
|
-
htmlFor:
|
|
2918
|
-
title:
|
|
3069
|
+
htmlFor: M.id ? M.id : `${c}-option-${D}`,
|
|
3070
|
+
title: M.label
|
|
2919
3071
|
},
|
|
2920
|
-
|
|
2921
|
-
|
|
3072
|
+
M.iconName && /* @__PURE__ */ e.createElement(
|
|
3073
|
+
A,
|
|
2922
3074
|
{
|
|
2923
|
-
className: `${
|
|
2924
|
-
iconName:
|
|
2925
|
-
iconSize:
|
|
3075
|
+
className: `${h}__icon`,
|
|
3076
|
+
iconName: M.iconName,
|
|
3077
|
+
iconSize: f
|
|
2926
3078
|
}
|
|
2927
3079
|
),
|
|
2928
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2929
|
-
|
|
3080
|
+
/* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, M.label),
|
|
3081
|
+
M.tally && /* @__PURE__ */ e.createElement(
|
|
2930
3082
|
d1,
|
|
2931
3083
|
{
|
|
2932
|
-
className: `${
|
|
2933
|
-
label:
|
|
2934
|
-
type:
|
|
3084
|
+
className: `${h}__tally`,
|
|
3085
|
+
label: M.tally.label,
|
|
3086
|
+
type: M.tally.type
|
|
2935
3087
|
}
|
|
2936
3088
|
)
|
|
2937
3089
|
)
|
|
2938
3090
|
);
|
|
2939
3091
|
}))
|
|
2940
3092
|
);
|
|
2941
|
-
},
|
|
3093
|
+
}, v4 = ({
|
|
2942
3094
|
actionItems: t,
|
|
2943
|
-
className:
|
|
2944
|
-
disabled:
|
|
2945
|
-
id:
|
|
2946
|
-
moreActionsLabel:
|
|
2947
|
-
size:
|
|
3095
|
+
className: l,
|
|
3096
|
+
disabled: a,
|
|
3097
|
+
id: c,
|
|
3098
|
+
moreActionsLabel: i = "More actions",
|
|
3099
|
+
size: s = "s",
|
|
2948
3100
|
variant: n = "primary",
|
|
2949
|
-
...
|
|
3101
|
+
...r
|
|
2950
3102
|
}) => {
|
|
2951
|
-
const
|
|
3103
|
+
const o = "pds-split-button", m = `${o}--${n}`, h = t[0], z = t.slice(1);
|
|
2952
3104
|
let d = null;
|
|
2953
|
-
return "isLink" in
|
|
2954
|
-
|
|
3105
|
+
return "isLink" in h && h.isLink === !0 ? d = /* @__PURE__ */ e.createElement(
|
|
3106
|
+
g4,
|
|
2955
3107
|
{
|
|
2956
|
-
className: `${
|
|
2957
|
-
disabled:
|
|
3108
|
+
className: `${o}__primary-action`,
|
|
3109
|
+
disabled: a,
|
|
2958
3110
|
displayType: "label-only",
|
|
2959
|
-
linkContent:
|
|
2960
|
-
size:
|
|
3111
|
+
linkContent: h.linkContent,
|
|
3112
|
+
size: s,
|
|
2961
3113
|
variant: n
|
|
2962
3114
|
}
|
|
2963
|
-
) : "label" in
|
|
2964
|
-
|
|
3115
|
+
) : "label" in h && (d = /* @__PURE__ */ e.createElement(
|
|
3116
|
+
B2,
|
|
2965
3117
|
{
|
|
2966
|
-
className: `${
|
|
2967
|
-
disabled:
|
|
2968
|
-
label:
|
|
2969
|
-
onClick: () =>
|
|
2970
|
-
size:
|
|
3118
|
+
className: `${o}__primary-action`,
|
|
3119
|
+
disabled: a,
|
|
3120
|
+
label: h.label,
|
|
3121
|
+
onClick: () => h.callback(),
|
|
3122
|
+
size: s,
|
|
2971
3123
|
variant: n
|
|
2972
3124
|
}
|
|
2973
3125
|
)), /* @__PURE__ */ e.createElement(
|
|
2974
3126
|
"span",
|
|
2975
3127
|
{
|
|
2976
|
-
className:
|
|
2977
|
-
id:
|
|
2978
|
-
...
|
|
3128
|
+
className: v([o, m, l]),
|
|
3129
|
+
id: c,
|
|
3130
|
+
...r
|
|
2979
3131
|
},
|
|
2980
3132
|
d,
|
|
2981
3133
|
/* @__PURE__ */ e.createElement(
|
|
2982
|
-
|
|
3134
|
+
C4,
|
|
2983
3135
|
{
|
|
2984
3136
|
isSplitButton: !0,
|
|
2985
|
-
className: `${
|
|
2986
|
-
disabled:
|
|
3137
|
+
className: `${o}__menu-button`,
|
|
3138
|
+
disabled: a,
|
|
2987
3139
|
displayType: "icon-end",
|
|
2988
|
-
id: `${
|
|
2989
|
-
label:
|
|
2990
|
-
menuItems:
|
|
2991
|
-
size:
|
|
3140
|
+
id: `${c}-menu`,
|
|
3141
|
+
label: i,
|
|
3142
|
+
menuItems: z,
|
|
3143
|
+
size: s,
|
|
2992
3144
|
testId: null,
|
|
2993
3145
|
variant: n,
|
|
2994
3146
|
withinNavbar: !1
|
|
2995
3147
|
}
|
|
2996
3148
|
)
|
|
2997
3149
|
);
|
|
2998
|
-
},
|
|
3150
|
+
}, w4 = {
|
|
3151
|
+
drupal: "Drupal",
|
|
3152
|
+
drupal7: "Drupal 7",
|
|
3153
|
+
"front-end-sites": "Next.js and Gatsby",
|
|
3154
|
+
gatsby: "Gatsby",
|
|
3155
|
+
"gatsby-wp": "Gatsby and WordPress",
|
|
3156
|
+
google: "Google",
|
|
3157
|
+
"import-custom": "Add custom",
|
|
3158
|
+
microsoft: "Microsoft",
|
|
3159
|
+
next: "Next.js",
|
|
3160
|
+
"next-drupal": "Next.js and Drupal",
|
|
3161
|
+
"next-wp": "Next.js and WordPress",
|
|
3162
|
+
splunk: "Splunk",
|
|
3163
|
+
"sumo-logic": "Sumo Logic",
|
|
3164
|
+
wordpress: "WordPress"
|
|
3165
|
+
}, M4 = ({
|
|
2999
3166
|
className: t,
|
|
3000
|
-
iconSize:
|
|
3001
|
-
platformType:
|
|
3002
|
-
...
|
|
3167
|
+
iconSize: l = "2xl",
|
|
3168
|
+
platformType: a,
|
|
3169
|
+
...c
|
|
3003
3170
|
}) => {
|
|
3004
|
-
const
|
|
3005
|
-
let
|
|
3006
|
-
if (["front-end-sites", "gatsby-wp", "next-drupal", "next-wp"].includes(
|
|
3007
|
-
let
|
|
3008
|
-
switch (
|
|
3171
|
+
const i = "pds-platform-icon", s = `pds-platform-icon--${a}`, n = `pds-platform-icon--${l}`;
|
|
3172
|
+
let r;
|
|
3173
|
+
if (["front-end-sites", "gatsby-wp", "next-drupal", "next-wp"].includes(a)) {
|
|
3174
|
+
let m = [];
|
|
3175
|
+
switch (a) {
|
|
3009
3176
|
case "front-end-sites":
|
|
3010
|
-
|
|
3177
|
+
m = ["next", "gatsby"];
|
|
3011
3178
|
break;
|
|
3012
3179
|
case "next-drupal":
|
|
3013
|
-
|
|
3180
|
+
m = ["next", "drupal"];
|
|
3014
3181
|
break;
|
|
3015
3182
|
case "gatsby-wp":
|
|
3016
|
-
|
|
3183
|
+
m = ["gatsby", "wordpress"];
|
|
3017
3184
|
break;
|
|
3018
3185
|
case "next-wp":
|
|
3019
|
-
|
|
3186
|
+
m = ["next", "wordpress"];
|
|
3020
3187
|
break;
|
|
3021
3188
|
}
|
|
3022
|
-
|
|
3189
|
+
r = /* @__PURE__ */ e.createElement(
|
|
3190
|
+
"span",
|
|
3191
|
+
{
|
|
3192
|
+
"aria-label": w4[a],
|
|
3193
|
+
className: `${i}__group`,
|
|
3194
|
+
role: "img"
|
|
3195
|
+
},
|
|
3196
|
+
_2(q2[m[0]], { "aria-hidden": "true" }),
|
|
3197
|
+
_2(q2[m[1]], { "aria-hidden": "true" })
|
|
3198
|
+
);
|
|
3023
3199
|
} else
|
|
3024
|
-
|
|
3200
|
+
r = q2[a];
|
|
3025
3201
|
return /* @__PURE__ */ e.createElement(
|
|
3026
3202
|
"div",
|
|
3027
3203
|
{
|
|
3028
|
-
className:
|
|
3029
|
-
...
|
|
3204
|
+
className: v([i, s, n, t]),
|
|
3205
|
+
...c
|
|
3030
3206
|
},
|
|
3031
|
-
|
|
3207
|
+
r
|
|
3032
3208
|
);
|
|
3033
|
-
},
|
|
3209
|
+
}, q2 = {
|
|
3034
3210
|
drupal: /* @__PURE__ */ e.createElement(
|
|
3035
3211
|
"svg",
|
|
3036
3212
|
{
|
|
3213
|
+
"aria-label": "Drupal",
|
|
3037
3214
|
fill: "none",
|
|
3038
3215
|
height: "32",
|
|
3216
|
+
role: "img",
|
|
3039
3217
|
viewBox: "0 0 32 32",
|
|
3040
3218
|
width: "32",
|
|
3041
3219
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3060,8 +3238,10 @@ const t4 = {
|
|
|
3060
3238
|
drupal7: /* @__PURE__ */ e.createElement(
|
|
3061
3239
|
"svg",
|
|
3062
3240
|
{
|
|
3241
|
+
"aria-label": "Drupal 7",
|
|
3063
3242
|
fill: "none",
|
|
3064
3243
|
height: "32",
|
|
3244
|
+
role: "img",
|
|
3065
3245
|
viewBox: "0 0 32 32",
|
|
3066
3246
|
width: "32",
|
|
3067
3247
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3086,8 +3266,10 @@ const t4 = {
|
|
|
3086
3266
|
wordpress: /* @__PURE__ */ e.createElement(
|
|
3087
3267
|
"svg",
|
|
3088
3268
|
{
|
|
3269
|
+
"aria-label": "WordPress",
|
|
3089
3270
|
fill: "none",
|
|
3090
3271
|
height: "32",
|
|
3272
|
+
role: "img",
|
|
3091
3273
|
viewBox: "0 0 32 32",
|
|
3092
3274
|
width: "32",
|
|
3093
3275
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3111,8 +3293,10 @@ const t4 = {
|
|
|
3111
3293
|
gatsby: /* @__PURE__ */ e.createElement(
|
|
3112
3294
|
"svg",
|
|
3113
3295
|
{
|
|
3296
|
+
"aria-label": "Gatsby",
|
|
3114
3297
|
fill: "none",
|
|
3115
3298
|
height: "32",
|
|
3299
|
+
role: "img",
|
|
3116
3300
|
viewBox: "0 0 32 32",
|
|
3117
3301
|
width: "32",
|
|
3118
3302
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3141,8 +3325,10 @@ const t4 = {
|
|
|
3141
3325
|
google: /* @__PURE__ */ e.createElement(
|
|
3142
3326
|
"svg",
|
|
3143
3327
|
{
|
|
3328
|
+
"aria-label": "Google",
|
|
3144
3329
|
fill: "none",
|
|
3145
3330
|
height: "30",
|
|
3331
|
+
role: "img",
|
|
3146
3332
|
viewBox: "0 0 30 30",
|
|
3147
3333
|
width: "30",
|
|
3148
3334
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3179,8 +3365,10 @@ const t4 = {
|
|
|
3179
3365
|
microsoft: /* @__PURE__ */ e.createElement(
|
|
3180
3366
|
"svg",
|
|
3181
3367
|
{
|
|
3368
|
+
"aria-label": "Microsoft",
|
|
3182
3369
|
fill: "none",
|
|
3183
3370
|
height: "30",
|
|
3371
|
+
role: "img",
|
|
3184
3372
|
viewBox: "0 0 30 30",
|
|
3185
3373
|
width: "30",
|
|
3186
3374
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3191,8 +3379,10 @@ const t4 = {
|
|
|
3191
3379
|
next: /* @__PURE__ */ e.createElement(
|
|
3192
3380
|
"svg",
|
|
3193
3381
|
{
|
|
3382
|
+
"aria-label": "Next.js",
|
|
3194
3383
|
fill: "none",
|
|
3195
3384
|
height: "32",
|
|
3385
|
+
role: "img",
|
|
3196
3386
|
viewBox: "0 0 180 180",
|
|
3197
3387
|
width: "32",
|
|
3198
3388
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3255,8 +3445,10 @@ const t4 = {
|
|
|
3255
3445
|
splunk: /* @__PURE__ */ e.createElement(
|
|
3256
3446
|
"svg",
|
|
3257
3447
|
{
|
|
3448
|
+
"aria-label": "Splunk",
|
|
3258
3449
|
fill: "none",
|
|
3259
3450
|
height: "32",
|
|
3451
|
+
role: "img",
|
|
3260
3452
|
viewBox: "0 0 32 32",
|
|
3261
3453
|
width: "32",
|
|
3262
3454
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3272,8 +3464,10 @@ const t4 = {
|
|
|
3272
3464
|
"sumo-logic": /* @__PURE__ */ e.createElement(
|
|
3273
3465
|
"svg",
|
|
3274
3466
|
{
|
|
3467
|
+
"aria-label": "Sumo Logic",
|
|
3275
3468
|
fill: "none",
|
|
3276
3469
|
height: "32",
|
|
3470
|
+
role: "img",
|
|
3277
3471
|
viewBox: "0 0 32 32",
|
|
3278
3472
|
width: "32",
|
|
3279
3473
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3289,8 +3483,10 @@ const t4 = {
|
|
|
3289
3483
|
"import-custom": /* @__PURE__ */ e.createElement(
|
|
3290
3484
|
"svg",
|
|
3291
3485
|
{
|
|
3486
|
+
"aria-label": "Add custom",
|
|
3292
3487
|
fill: "none",
|
|
3293
3488
|
height: "32",
|
|
3489
|
+
role: "img",
|
|
3294
3490
|
viewBox: "0 0 32 32",
|
|
3295
3491
|
width: "32",
|
|
3296
3492
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3304,644 +3500,681 @@ const t4 = {
|
|
|
3304
3500
|
}
|
|
3305
3501
|
)
|
|
3306
3502
|
)
|
|
3307
|
-
},
|
|
3503
|
+
}, Z4 = ({
|
|
3308
3504
|
buttonType: t = "button",
|
|
3309
|
-
className:
|
|
3310
|
-
disabled:
|
|
3311
|
-
label:
|
|
3312
|
-
onClick:
|
|
3313
|
-
platform:
|
|
3505
|
+
className: l = "",
|
|
3506
|
+
disabled: a = !1,
|
|
3507
|
+
label: c,
|
|
3508
|
+
onClick: i,
|
|
3509
|
+
platform: s,
|
|
3314
3510
|
size: n = "m",
|
|
3315
|
-
...
|
|
3511
|
+
...r
|
|
3316
3512
|
}) => {
|
|
3317
|
-
const
|
|
3318
|
-
|
|
3513
|
+
const o = "pds-sso-button", m = `${o}--${n}`, h = n === "m" ? "l" : "2xl", z = /* @__PURE__ */ e.createElement(
|
|
3514
|
+
M4,
|
|
3319
3515
|
{
|
|
3320
|
-
className: `${
|
|
3321
|
-
iconSize:
|
|
3322
|
-
platformType:
|
|
3516
|
+
className: `${o}__icon`,
|
|
3517
|
+
iconSize: h,
|
|
3518
|
+
platformType: s
|
|
3323
3519
|
}
|
|
3324
3520
|
);
|
|
3325
3521
|
return /* @__PURE__ */ e.createElement(
|
|
3326
3522
|
"button",
|
|
3327
3523
|
{
|
|
3328
|
-
className:
|
|
3329
|
-
disabled:
|
|
3330
|
-
onClick:
|
|
3524
|
+
className: v([o, m, l]),
|
|
3525
|
+
disabled: a,
|
|
3526
|
+
onClick: i,
|
|
3331
3527
|
type: t,
|
|
3332
|
-
...
|
|
3528
|
+
...r
|
|
3333
3529
|
},
|
|
3334
|
-
|
|
3335
|
-
|
|
3530
|
+
z,
|
|
3531
|
+
c
|
|
3336
3532
|
);
|
|
3337
|
-
},
|
|
3533
|
+
}, q4 = ({
|
|
3338
3534
|
buttonProps: t,
|
|
3339
|
-
className:
|
|
3340
|
-
disabled:
|
|
3341
|
-
hasBorder:
|
|
3342
|
-
iconName:
|
|
3343
|
-
iconPosition:
|
|
3535
|
+
className: l,
|
|
3536
|
+
disabled: a = !1,
|
|
3537
|
+
hasBorder: c = !1,
|
|
3538
|
+
iconName: i,
|
|
3539
|
+
iconPosition: s = "before",
|
|
3344
3540
|
isCritical: n = !1,
|
|
3345
|
-
isLoading:
|
|
3346
|
-
isMonospace:
|
|
3347
|
-
isWorking:
|
|
3348
|
-
label:
|
|
3349
|
-
linkContent:
|
|
3541
|
+
isLoading: r,
|
|
3542
|
+
isMonospace: o = !1,
|
|
3543
|
+
isWorking: m,
|
|
3544
|
+
label: h,
|
|
3545
|
+
linkContent: z,
|
|
3350
3546
|
onClick: d,
|
|
3351
|
-
tooltipText:
|
|
3352
|
-
...
|
|
3547
|
+
tooltipText: f,
|
|
3548
|
+
...C
|
|
3353
3549
|
}) => {
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3550
|
+
const g = "pds-utility-button", p = r ? "pds-pulse" : null, L = (w) => i && !m ? /* @__PURE__ */ e.createElement(A, { key: w, className: `${g}__icon`, iconName: i }) : null, b = () => m ? /* @__PURE__ */ e.createElement(
|
|
3551
|
+
k2,
|
|
3356
3552
|
{
|
|
3357
3553
|
key: "spinner",
|
|
3358
|
-
className: `${
|
|
3554
|
+
className: `${g}__spinner`,
|
|
3359
3555
|
colorType: "monochromatic",
|
|
3360
3556
|
size: "s"
|
|
3361
3557
|
}
|
|
3362
|
-
) : null,
|
|
3363
|
-
const
|
|
3364
|
-
return
|
|
3365
|
-
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${
|
|
3366
|
-
),
|
|
3367
|
-
},
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
n ? `${
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
]),
|
|
3377
|
-
if (
|
|
3378
|
-
const
|
|
3379
|
-
|
|
3380
|
-
Object.assign({},
|
|
3381
|
-
className:
|
|
3382
|
-
`${
|
|
3383
|
-
|
|
3384
|
-
|
|
3558
|
+
) : null, M = (w) => {
|
|
3559
|
+
const S = [];
|
|
3560
|
+
return s === "before" && S.push(L("icon-before")), S.push(b()), S.push(
|
|
3561
|
+
/* @__PURE__ */ e.createElement("span", { key: "label", className: `${g}__label` }, w)
|
|
3562
|
+
), s === "after" && S.push(L("icon-after")), S.filter(Boolean);
|
|
3563
|
+
}, D = z && h2(z) ? z.props.children : h, N = v([
|
|
3564
|
+
g,
|
|
3565
|
+
c ? `${g}--border` : null,
|
|
3566
|
+
n ? `${g}--critical` : null,
|
|
3567
|
+
a ? `${g}--disabled` : null,
|
|
3568
|
+
r ? `${g}--loading` : null,
|
|
3569
|
+
m ? `${g}--working` : null,
|
|
3570
|
+
o ? `${g}--monospace` : null,
|
|
3571
|
+
l ?? ""
|
|
3572
|
+
]), P = (w) => f ? /* @__PURE__ */ e.createElement(T2, { content: f, customTrigger: w }) : w;
|
|
3573
|
+
if (z && !a) {
|
|
3574
|
+
const w = h2(z) ? _2(
|
|
3575
|
+
z,
|
|
3576
|
+
Object.assign({}, z.props, {
|
|
3577
|
+
className: v([
|
|
3578
|
+
`${g}__button`,
|
|
3579
|
+
p,
|
|
3580
|
+
z.props.className ?? ""
|
|
3385
3581
|
]),
|
|
3386
|
-
children:
|
|
3582
|
+
children: M(D)
|
|
3387
3583
|
})
|
|
3388
3584
|
) : null;
|
|
3389
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3585
|
+
return /* @__PURE__ */ e.createElement("div", { className: N, ...C }, P(w));
|
|
3390
3586
|
}
|
|
3391
|
-
const
|
|
3587
|
+
const _ = /* @__PURE__ */ e.createElement(
|
|
3392
3588
|
"button",
|
|
3393
3589
|
{
|
|
3394
|
-
"aria-disabled":
|
|
3395
|
-
className:
|
|
3396
|
-
onClick:
|
|
3590
|
+
"aria-disabled": a || r || m,
|
|
3591
|
+
className: v([`${g}__button`, p]),
|
|
3592
|
+
onClick: a ? void 0 : d,
|
|
3397
3593
|
type: "button",
|
|
3398
3594
|
...t
|
|
3399
3595
|
},
|
|
3400
|
-
|
|
3596
|
+
M(D)
|
|
3401
3597
|
);
|
|
3402
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3403
|
-
},
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
}, y = (C) => {
|
|
3433
|
-
if (!c || !o.current) return;
|
|
3434
|
-
C.preventDefault(), C.dataTransfer.dropEffect = "move";
|
|
3435
|
-
const U = o.current.getBoundingClientRect(), A = C.clientX, K = U.left + U.width / 2, F = A < K ? "before" : "after";
|
|
3436
|
-
i(d.id, F);
|
|
3437
|
-
}, w = (C) => {
|
|
3438
|
-
if (!t) {
|
|
3439
|
-
if (c) {
|
|
3440
|
-
if ((C.key === "ArrowLeft" || C.key === "ArrowUp") && C.shiftKey && s > 0) {
|
|
3441
|
-
C.preventDefault(), h(s, s - 1), f(s - 1);
|
|
3442
|
-
return;
|
|
3443
|
-
} else if ((C.key === "ArrowRight" || C.key === "ArrowDown") && C.shiftKey && s < g - 1) {
|
|
3444
|
-
C.preventDefault(), h(s, s + 1), f(s + 1);
|
|
3445
|
-
return;
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
C.key === "Delete" ? (C.preventDefault(), p(d.id), s > 0 && f(s - 1)) : C.key === "ArrowLeft" && !C.shiftKey && s > 0 ? (C.preventDefault(), f(s - 1)) : C.key === "ArrowRight" && !C.shiftKey && s < g - 1 && (C.preventDefault(), f(s + 1));
|
|
3449
|
-
}
|
|
3450
|
-
}, _ = String(s + 1), k = String(g), S = c ? M.tagAriaLabel : M.tagAriaLabelSimple, x = `${d.value}, ${S.replace("{index}", _).replace("{total}", k)}`, v = r ? `${z}--dragging` : null, T = t ? p2.disabled : null, N = a ? `${z}--drop-target-${a}` : null;
|
|
3451
|
-
return /* @__PURE__ */ e.createElement(
|
|
3452
|
-
"div",
|
|
3453
|
-
{
|
|
3454
|
-
ref: o,
|
|
3455
|
-
"aria-label": x,
|
|
3456
|
-
className: b([
|
|
3457
|
-
z,
|
|
3458
|
-
v,
|
|
3459
|
-
T,
|
|
3460
|
-
N
|
|
3461
|
-
]),
|
|
3462
|
-
draggable: c && !t,
|
|
3463
|
-
onDragEnd: c ? n : void 0,
|
|
3464
|
-
onDragOver: c ? y : void 0,
|
|
3465
|
-
onDragStart: c ? L : void 0,
|
|
3466
|
-
onKeyDown: w,
|
|
3467
|
-
role: "button",
|
|
3468
|
-
tabIndex: t ? -1 : 0
|
|
3598
|
+
return /* @__PURE__ */ e.createElement("div", { className: N, ...C }, P(_));
|
|
3599
|
+
}, G4 = P2(
|
|
3600
|
+
({
|
|
3601
|
+
className: t,
|
|
3602
|
+
counterMaxLength: l,
|
|
3603
|
+
defaultValue: a,
|
|
3604
|
+
disabled: c = !1,
|
|
3605
|
+
id: i,
|
|
3606
|
+
inputWidth: s,
|
|
3607
|
+
isResizable: n = !0,
|
|
3608
|
+
label: r,
|
|
3609
|
+
message: o,
|
|
3610
|
+
onBlur: m,
|
|
3611
|
+
onChange: h,
|
|
3612
|
+
onFocus: z,
|
|
3613
|
+
placeholder: d,
|
|
3614
|
+
readonly: f = !1,
|
|
3615
|
+
required: C = !1,
|
|
3616
|
+
rows: g = 5,
|
|
3617
|
+
showLabel: p,
|
|
3618
|
+
size: L = "s",
|
|
3619
|
+
textareaProps: b,
|
|
3620
|
+
tooltipText: M = null,
|
|
3621
|
+
translationStrings: D = {
|
|
3622
|
+
clearButton: "Clear input text",
|
|
3623
|
+
counterOverLimit: "Character limit exceeded by",
|
|
3624
|
+
searchShortcut: "Press / to focus the search field",
|
|
3625
|
+
visibilityStatus: "The value of the input is",
|
|
3626
|
+
visibilityToggleHide: "Hide input value",
|
|
3627
|
+
visibilityToggleShow: "Show input value"
|
|
3469
3628
|
},
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3629
|
+
validationMessage: N,
|
|
3630
|
+
validationStatus: P,
|
|
3631
|
+
value: _,
|
|
3632
|
+
...w
|
|
3633
|
+
}, S) => {
|
|
3634
|
+
const y = p1(s), k = "pds-textarea", R = n ? "pds-is-resizable" : null, F = c ? X.disabled : null, Y = C && !c ? X.required : null, q = P === "error" ? X.error : null, i2 = P === "success" ? X.success : null, Z = L !== "s" ? `${k}--${L}` : null, n2 = f ? X.readonly : null, U = N || o, r2 = _ != null && h !== void 0, Q = typeof a < "u", [o2, s2] = H(
|
|
3635
|
+
Q ? a : ""
|
|
3636
|
+
), T = _ || o2, B = (K) => {
|
|
3637
|
+
r2 || s2(K.target.value), h && h(K);
|
|
3638
|
+
}, W = (K) => {
|
|
3639
|
+
m && m(K);
|
|
3640
|
+
};
|
|
3641
|
+
return /* @__PURE__ */ e.createElement(
|
|
3642
|
+
"div",
|
|
3474
3643
|
{
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3644
|
+
className: v([
|
|
3645
|
+
X.base,
|
|
3646
|
+
k,
|
|
3647
|
+
Z,
|
|
3648
|
+
F,
|
|
3649
|
+
Y,
|
|
3650
|
+
q,
|
|
3651
|
+
i2,
|
|
3652
|
+
n2,
|
|
3653
|
+
t ?? ""
|
|
3654
|
+
]),
|
|
3655
|
+
style: s ? y : null,
|
|
3656
|
+
...w
|
|
3483
3657
|
},
|
|
3484
|
-
/* @__PURE__ */ e.createElement(
|
|
3485
|
-
|
|
3658
|
+
/* @__PURE__ */ e.createElement("div", { className: `${k}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
3659
|
+
z1,
|
|
3486
3660
|
{
|
|
3487
|
-
className: `${
|
|
3488
|
-
|
|
3489
|
-
|
|
3661
|
+
className: `${k}__inputlabel`,
|
|
3662
|
+
disabled: c,
|
|
3663
|
+
id: i,
|
|
3664
|
+
label: r,
|
|
3665
|
+
required: C,
|
|
3666
|
+
showLabel: p,
|
|
3667
|
+
tooltipText: M
|
|
3668
|
+
}
|
|
3669
|
+
), l && /* @__PURE__ */ e.createElement(
|
|
3670
|
+
C1,
|
|
3671
|
+
{
|
|
3672
|
+
currentLength: T.length,
|
|
3673
|
+
id: i,
|
|
3674
|
+
maxLength: l,
|
|
3675
|
+
overLimitMessage: D.counterOverLimit
|
|
3676
|
+
}
|
|
3677
|
+
)),
|
|
3678
|
+
/* @__PURE__ */ e.createElement("div", { className: `${k}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
3679
|
+
"textarea",
|
|
3680
|
+
{
|
|
3681
|
+
ref: S,
|
|
3682
|
+
"aria-describedby": U ? `${i}__message` : null,
|
|
3683
|
+
"aria-invalid": P === "error",
|
|
3684
|
+
className: v([`${k}--textarea`, R]),
|
|
3685
|
+
disabled: c,
|
|
3686
|
+
id: i,
|
|
3687
|
+
name: i,
|
|
3688
|
+
onBlur: W,
|
|
3689
|
+
onChange: B,
|
|
3690
|
+
onFocus: z,
|
|
3691
|
+
placeholder: d,
|
|
3692
|
+
readOnly: f,
|
|
3693
|
+
required: C,
|
|
3694
|
+
rows: g,
|
|
3695
|
+
value: r2 ? _ : o2,
|
|
3696
|
+
...b
|
|
3697
|
+
}
|
|
3698
|
+
)),
|
|
3699
|
+
U && /* @__PURE__ */ e.createElement(
|
|
3700
|
+
f1,
|
|
3701
|
+
{
|
|
3702
|
+
validationMessageHasDecorators: !0,
|
|
3703
|
+
hasValidationMessage: !!N,
|
|
3704
|
+
id: i,
|
|
3705
|
+
message: U,
|
|
3706
|
+
validationStatus: P
|
|
3490
3707
|
}
|
|
3491
3708
|
)
|
|
3492
|
-
)
|
|
3493
|
-
|
|
3494
|
-
},
|
|
3709
|
+
);
|
|
3710
|
+
}
|
|
3711
|
+
), b4 = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), W4 = P2(
|
|
3495
3712
|
({
|
|
3496
|
-
|
|
3497
|
-
className:
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3713
|
+
autoComplete: t,
|
|
3714
|
+
className: l,
|
|
3715
|
+
counterMaxLength: a,
|
|
3716
|
+
defaultValue: c,
|
|
3717
|
+
disabled: i = !1,
|
|
3718
|
+
hasClearButton: s = !1,
|
|
3719
|
+
hasSearchShortcut: n = !1,
|
|
3720
|
+
hasUrlPrefix: r = !1,
|
|
3721
|
+
id: o,
|
|
3722
|
+
inputProps: m,
|
|
3723
|
+
inputWidth: h,
|
|
3724
|
+
label: z,
|
|
3725
|
+
message: d,
|
|
3726
|
+
onBlur: f,
|
|
3727
|
+
onChange: C,
|
|
3728
|
+
onClear: g,
|
|
3729
|
+
onFocus: p,
|
|
3730
|
+
placeholder: L,
|
|
3731
|
+
readonly: b = !1,
|
|
3732
|
+
required: M = !1,
|
|
3733
|
+
searchIcon: D = "search",
|
|
3734
|
+
showLabel: N = !0,
|
|
3735
|
+
showVisibilityToggle: P = !1,
|
|
3736
|
+
size: _ = "s",
|
|
3737
|
+
tooltipText: w = null,
|
|
3738
|
+
translationStrings: S = {
|
|
3739
|
+
clearButton: "Clear input text",
|
|
3740
|
+
counterOverLimit: "Character limit exceeded by",
|
|
3741
|
+
searchShortcut: "Press / to focus the search field",
|
|
3742
|
+
visibilityStatus: "The value of the input is",
|
|
3743
|
+
visibilityToggleHide: "Hide input value",
|
|
3744
|
+
visibilityToggleShow: "Show input value"
|
|
3517
3745
|
},
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
},
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
const R = g[g.length - 1];
|
|
3561
|
-
X(g.slice(0, -1)), Z(`${R.value} removed`);
|
|
3562
|
-
} else $.key === "ArrowLeft" && !C && g.length > 0 && ($.preventDefault(), d2(g.length - 1));
|
|
3746
|
+
type: y = "text",
|
|
3747
|
+
validationMessage: k,
|
|
3748
|
+
validationStatus: R,
|
|
3749
|
+
value: F,
|
|
3750
|
+
...Y
|
|
3751
|
+
}, q) => {
|
|
3752
|
+
const i2 = p1(h), Z = "pds-text-input", n2 = i ? X.disabled : null, U = M && !i ? X.required : null, r2 = R === "error" ? X.error : null, Q = R === "success" ? X.success : null, o2 = b ? X.readonly : null, s2 = _ !== "s" ? `${Z}--${_}` : null, T = r && y === "url" ? `${Z}--has-url-prefix` : null;
|
|
3753
|
+
let B = null;
|
|
3754
|
+
y === "search" && (B = "search"), y === "search" && D === "filter" && (B = "filter"), R === "error" && (B = "error"), R === "success" && (B = "success");
|
|
3755
|
+
const W = k || d, K = typeof F < "u", e2 = typeof c < "u", [z2, u2] = H(
|
|
3756
|
+
e2 ? c : ""
|
|
3757
|
+
), f2 = F || z2, N2 = (V) => {
|
|
3758
|
+
if (P && m2 && L2(!1), r && y === "url") {
|
|
3759
|
+
const t2 = l1(V.target.value), w2 = {
|
|
3760
|
+
...V,
|
|
3761
|
+
target: {
|
|
3762
|
+
...V.target,
|
|
3763
|
+
value: t2
|
|
3764
|
+
}
|
|
3765
|
+
};
|
|
3766
|
+
f && f(w2);
|
|
3767
|
+
} else f && f(V);
|
|
3768
|
+
}, A2 = (V) => {
|
|
3769
|
+
if (r && y === "url") {
|
|
3770
|
+
const t2 = l1(V.target.value), w2 = {
|
|
3771
|
+
...V,
|
|
3772
|
+
target: {
|
|
3773
|
+
...V.target,
|
|
3774
|
+
value: t2
|
|
3775
|
+
}
|
|
3776
|
+
};
|
|
3777
|
+
K || u2(t2), C && C(w2);
|
|
3778
|
+
} else
|
|
3779
|
+
K || u2(V.target.value), C && C(V);
|
|
3780
|
+
}, S2 = () => {
|
|
3781
|
+
K || u2(""), g && g();
|
|
3782
|
+
const V = document.getElementById(o);
|
|
3783
|
+
V && V.focus();
|
|
3784
|
+
}, [m2, L2] = H(!1), C2 = () => {
|
|
3785
|
+
L2((t2) => !t2);
|
|
3786
|
+
const V = document.getElementById(o);
|
|
3787
|
+
V && V.focus();
|
|
3563
3788
|
};
|
|
3564
|
-
|
|
3789
|
+
let v2 = y;
|
|
3790
|
+
return P && y === "password" && (m2 ? v2 = "text" : v2 = "password"), /* @__PURE__ */ e.createElement(
|
|
3565
3791
|
"div",
|
|
3566
3792
|
{
|
|
3567
|
-
className:
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3793
|
+
className: v([
|
|
3794
|
+
X.base,
|
|
3795
|
+
Z,
|
|
3796
|
+
s2,
|
|
3797
|
+
n2,
|
|
3798
|
+
U,
|
|
3799
|
+
r2,
|
|
3800
|
+
Q,
|
|
3801
|
+
o2,
|
|
3573
3802
|
T,
|
|
3574
|
-
|
|
3803
|
+
l ?? ""
|
|
3575
3804
|
]),
|
|
3576
|
-
style:
|
|
3577
|
-
...
|
|
3805
|
+
style: h ? i2 : null,
|
|
3806
|
+
...Y
|
|
3578
3807
|
},
|
|
3579
3808
|
/* @__PURE__ */ e.createElement(
|
|
3580
|
-
|
|
3809
|
+
z1,
|
|
3581
3810
|
{
|
|
3582
|
-
disabled:
|
|
3583
|
-
id:
|
|
3584
|
-
label:
|
|
3585
|
-
required:
|
|
3586
|
-
showLabel:
|
|
3587
|
-
tooltipText:
|
|
3811
|
+
disabled: i,
|
|
3812
|
+
id: o,
|
|
3813
|
+
label: z,
|
|
3814
|
+
required: M,
|
|
3815
|
+
showLabel: N,
|
|
3816
|
+
tooltipText: w
|
|
3588
3817
|
}
|
|
3589
3818
|
),
|
|
3590
|
-
/* @__PURE__ */ e.createElement("div", { "aria-
|
|
3819
|
+
P && y === "password" && /* @__PURE__ */ e.createElement("div", { "aria-live": "polite", className: "visually-hidden" }, `${S.visibilityStatus} ${m2 ? "visible" : "hidden"}.`),
|
|
3591
3820
|
/* @__PURE__ */ e.createElement(
|
|
3592
3821
|
"div",
|
|
3593
3822
|
{
|
|
3594
|
-
|
|
3595
|
-
className: `${k}__input-wrapper`,
|
|
3596
|
-
role: "group",
|
|
3597
|
-
style: { minHeight: `${r}px` }
|
|
3823
|
+
className: `${Z}__input-wrapper ${r && y === "url" ? `${Z}__input-wrapper--has-prefix` : ""}`
|
|
3598
3824
|
},
|
|
3599
|
-
|
|
3600
|
-
|
|
3825
|
+
B && /* @__PURE__ */ e.createElement(L1, { variant: B }),
|
|
3826
|
+
r && y === "url" && /* @__PURE__ */ e.createElement(b4, null),
|
|
3827
|
+
/* @__PURE__ */ e.createElement(
|
|
3828
|
+
"input",
|
|
3829
|
+
{
|
|
3830
|
+
ref: q,
|
|
3831
|
+
"aria-describedby": W ? `${o}__message` : null,
|
|
3832
|
+
"aria-invalid": R === "error" ? !0 : null,
|
|
3833
|
+
autoComplete: y === "password" ? "off" : t,
|
|
3834
|
+
className: `${Z}__input ${r && y === "url" ? `${Z}__input--has-prefix` : ""}`,
|
|
3835
|
+
disabled: i,
|
|
3836
|
+
id: o,
|
|
3837
|
+
name: o,
|
|
3838
|
+
onBlur: N2,
|
|
3839
|
+
onChange: A2,
|
|
3840
|
+
onFocus: p,
|
|
3841
|
+
placeholder: L,
|
|
3842
|
+
readOnly: b,
|
|
3843
|
+
required: M,
|
|
3844
|
+
type: v2,
|
|
3845
|
+
value: K ? F : z2,
|
|
3846
|
+
...m
|
|
3847
|
+
}
|
|
3848
|
+
),
|
|
3849
|
+
s && f2 && /* @__PURE__ */ e.createElement(
|
|
3850
|
+
o4,
|
|
3851
|
+
{
|
|
3852
|
+
clearLabel: S.clearButton,
|
|
3853
|
+
handleClearInput: S2,
|
|
3854
|
+
id: o
|
|
3855
|
+
}
|
|
3856
|
+
),
|
|
3857
|
+
P && y === "password" && /* @__PURE__ */ e.createElement(
|
|
3858
|
+
"button",
|
|
3601
3859
|
{
|
|
3602
|
-
"aria-
|
|
3603
|
-
className: `${
|
|
3604
|
-
|
|
3605
|
-
|
|
3860
|
+
"aria-controls": o,
|
|
3861
|
+
className: `${Z}__visibility-toggle`,
|
|
3862
|
+
onClick: C2,
|
|
3863
|
+
onMouseDown: (V) => V.preventDefault(),
|
|
3864
|
+
title: m2 ? S.visibilityToggleHide : S.visibilityToggleShow,
|
|
3865
|
+
type: "button"
|
|
3606
3866
|
},
|
|
3607
|
-
|
|
3608
|
-
let q = null;
|
|
3609
|
-
return A && A !== $.id && (F === $.id && W === "before" ? q = "before" : F === $.id && W === "after" && R === g.length - 1 ? q = "after" : R > 0 && F === g[R - 1].id && W === "after" && (q = "before")), /* @__PURE__ */ e.createElement("div", { key: $.id, role: "listitem" }, /* @__PURE__ */ e.createElement(
|
|
3610
|
-
h4,
|
|
3611
|
-
{
|
|
3612
|
-
disabled: l,
|
|
3613
|
-
dropTargetDirection: q,
|
|
3614
|
-
focusedIndex: J,
|
|
3615
|
-
index: R,
|
|
3616
|
-
isDragging: A === $.id,
|
|
3617
|
-
isSortable: n,
|
|
3618
|
-
onDragEnd: s2,
|
|
3619
|
-
onDragOver: y2,
|
|
3620
|
-
onDragStart: f2,
|
|
3621
|
-
onKeyboardMove: j2,
|
|
3622
|
-
onRemove: $2,
|
|
3623
|
-
setFocusedIndex: d2,
|
|
3624
|
-
tag: $,
|
|
3625
|
-
totalTags: g.length,
|
|
3626
|
-
translationStrings: o
|
|
3627
|
-
}
|
|
3628
|
-
));
|
|
3629
|
-
})
|
|
3867
|
+
/* @__PURE__ */ e.createElement(A, { iconName: m2 ? "eyeSlash" : "eye", iconSize: "m" })
|
|
3630
3868
|
),
|
|
3631
|
-
/* @__PURE__ */ e.createElement(
|
|
3632
|
-
|
|
3869
|
+
n && y === "search" && !f2 && /* @__PURE__ */ e.createElement(
|
|
3870
|
+
r4,
|
|
3633
3871
|
{
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
},
|
|
3637
|
-
"aria-describedby": `${s}__instructions`,
|
|
3638
|
-
"aria-invalid": L === "error" ? !0 : null,
|
|
3639
|
-
className: `${k}__input`,
|
|
3640
|
-
disabled: l,
|
|
3641
|
-
id: s,
|
|
3642
|
-
name: s,
|
|
3643
|
-
onChange: ($) => U($.target.value),
|
|
3644
|
-
onKeyDown: T2,
|
|
3645
|
-
placeholder: H,
|
|
3646
|
-
required: f,
|
|
3647
|
-
type: "text",
|
|
3648
|
-
value: C
|
|
3872
|
+
inputId: o,
|
|
3873
|
+
shortcutLabel: S.searchShortcut
|
|
3649
3874
|
}
|
|
3650
3875
|
),
|
|
3651
|
-
/* @__PURE__ */ e.createElement(
|
|
3876
|
+
a && y !== "password" && /* @__PURE__ */ e.createElement(
|
|
3877
|
+
C1,
|
|
3878
|
+
{
|
|
3879
|
+
currentLength: f2.length,
|
|
3880
|
+
id: o,
|
|
3881
|
+
maxLength: a,
|
|
3882
|
+
overLimitMessage: S.counterOverLimit
|
|
3883
|
+
}
|
|
3884
|
+
)
|
|
3652
3885
|
),
|
|
3653
|
-
|
|
3654
|
-
|
|
3886
|
+
W && /* @__PURE__ */ e.createElement(
|
|
3887
|
+
f1,
|
|
3655
3888
|
{
|
|
3656
|
-
hasValidationMessage: !!
|
|
3657
|
-
id:
|
|
3658
|
-
message:
|
|
3889
|
+
hasValidationMessage: !!k,
|
|
3890
|
+
id: o,
|
|
3891
|
+
message: W,
|
|
3659
3892
|
validationMessageHasDecorators: !1,
|
|
3660
|
-
validationStatus:
|
|
3893
|
+
validationStatus: R
|
|
3661
3894
|
}
|
|
3662
3895
|
)
|
|
3663
3896
|
);
|
|
3664
3897
|
}
|
|
3665
|
-
),
|
|
3898
|
+
), E4 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes(
|
|
3666
3899
|
"pds-isActive"
|
|
3667
|
-
)) : !1,
|
|
3668
|
-
if (
|
|
3900
|
+
)) : !1, X2 = (t) => {
|
|
3901
|
+
if (E4(t))
|
|
3669
3902
|
return !0;
|
|
3670
3903
|
if (t.links) {
|
|
3671
|
-
for (let
|
|
3672
|
-
if (
|
|
3904
|
+
for (let l = 0; l < t.links.length; l++)
|
|
3905
|
+
if (X2(t.links[l]))
|
|
3673
3906
|
return !0;
|
|
3674
3907
|
}
|
|
3675
3908
|
return !1;
|
|
3676
|
-
},
|
|
3909
|
+
}, U4 = ({
|
|
3677
3910
|
ariaLabel: t,
|
|
3678
|
-
className:
|
|
3679
|
-
menuItems:
|
|
3680
|
-
size:
|
|
3681
|
-
...
|
|
3911
|
+
className: l,
|
|
3912
|
+
menuItems: a,
|
|
3913
|
+
size: c = "s",
|
|
3914
|
+
...i
|
|
3682
3915
|
}) => {
|
|
3683
|
-
let
|
|
3684
|
-
const n =
|
|
3685
|
-
n && (
|
|
3686
|
-
const
|
|
3687
|
-
|
|
3688
|
-
const
|
|
3689
|
-
if (
|
|
3690
|
-
const L =
|
|
3916
|
+
let s = !1;
|
|
3917
|
+
const n = D2(x2);
|
|
3918
|
+
n && (s = n.isMobile);
|
|
3919
|
+
const r = J(null), o = "pds-button-nav", m = s ? `${o}--isMobile` : null, h = `${o}--${c}`;
|
|
3920
|
+
l2(() => {
|
|
3921
|
+
const g = (p) => {
|
|
3922
|
+
if (s) return;
|
|
3923
|
+
const L = r.current;
|
|
3691
3924
|
if (!L) return;
|
|
3692
|
-
const
|
|
3925
|
+
const b = Array.from(
|
|
3693
3926
|
L.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
|
|
3694
3927
|
);
|
|
3695
|
-
if (
|
|
3696
|
-
const
|
|
3697
|
-
if (
|
|
3698
|
-
if (
|
|
3699
|
-
|
|
3700
|
-
const
|
|
3701
|
-
|
|
3702
|
-
} else if (
|
|
3703
|
-
|
|
3704
|
-
const
|
|
3705
|
-
|
|
3928
|
+
if (b.length === 0) return;
|
|
3929
|
+
const M = document.activeElement, D = b.indexOf(M);
|
|
3930
|
+
if (D !== -1) {
|
|
3931
|
+
if (p.key === "ArrowRight") {
|
|
3932
|
+
p.preventDefault();
|
|
3933
|
+
const N = (D + 1) % b.length;
|
|
3934
|
+
b[N].focus();
|
|
3935
|
+
} else if (p.key === "ArrowLeft") {
|
|
3936
|
+
p.preventDefault();
|
|
3937
|
+
const N = (D - 1 + b.length) % b.length;
|
|
3938
|
+
b[N].focus();
|
|
3706
3939
|
}
|
|
3707
3940
|
}
|
|
3708
3941
|
};
|
|
3709
|
-
return document.addEventListener("keydown",
|
|
3710
|
-
document.removeEventListener("keydown",
|
|
3942
|
+
return document.addEventListener("keydown", g), () => {
|
|
3943
|
+
document.removeEventListener("keydown", g);
|
|
3711
3944
|
};
|
|
3712
|
-
}, [
|
|
3713
|
-
const
|
|
3714
|
-
const L = `${
|
|
3945
|
+
}, [s]);
|
|
3946
|
+
const z = ({ isActive: g, linkContent: p }) => {
|
|
3947
|
+
const L = `${o}__item`;
|
|
3715
3948
|
return /* @__PURE__ */ e.createElement(
|
|
3716
3949
|
"li",
|
|
3717
3950
|
{
|
|
3718
|
-
className:
|
|
3951
|
+
className: v([
|
|
3719
3952
|
L,
|
|
3720
|
-
|
|
3953
|
+
g ? `${L}--active` : null
|
|
3721
3954
|
])
|
|
3722
3955
|
},
|
|
3723
|
-
|
|
3956
|
+
p
|
|
3724
3957
|
);
|
|
3725
|
-
}, d =
|
|
3726
|
-
|
|
3958
|
+
}, d = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, a.map((g, p) => /* @__PURE__ */ e.createElement(
|
|
3959
|
+
z,
|
|
3727
3960
|
{
|
|
3728
|
-
key:
|
|
3729
|
-
isActive:
|
|
3730
|
-
linkContent:
|
|
3961
|
+
key: p,
|
|
3962
|
+
isActive: X2(g),
|
|
3963
|
+
linkContent: g.linkContent
|
|
3731
3964
|
}
|
|
3732
|
-
))) : null,
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
linkContent:
|
|
3965
|
+
))) : null, f = [];
|
|
3966
|
+
a.map((g) => {
|
|
3967
|
+
g.linkContent && (X2(g) ? f.unshift({
|
|
3968
|
+
linkContent: g.linkContent,
|
|
3736
3969
|
isLink: !0
|
|
3737
|
-
}) :
|
|
3738
|
-
linkContent:
|
|
3970
|
+
}) : f.push({
|
|
3971
|
+
linkContent: g.linkContent,
|
|
3739
3972
|
isLink: !0
|
|
3740
3973
|
}));
|
|
3741
3974
|
});
|
|
3742
|
-
const
|
|
3743
|
-
|
|
3975
|
+
const C = f.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
3976
|
+
v4,
|
|
3744
3977
|
{
|
|
3745
|
-
actionItems:
|
|
3978
|
+
actionItems: f,
|
|
3746
3979
|
id: "mobile-nav-split-button",
|
|
3747
|
-
size:
|
|
3980
|
+
size: c,
|
|
3748
3981
|
variant: "secondary"
|
|
3749
3982
|
}
|
|
3750
3983
|
) : null;
|
|
3751
3984
|
return /* @__PURE__ */ e.createElement(
|
|
3752
3985
|
"nav",
|
|
3753
3986
|
{
|
|
3754
|
-
ref:
|
|
3987
|
+
ref: r,
|
|
3755
3988
|
"aria-label": t,
|
|
3756
|
-
className:
|
|
3757
|
-
|
|
3758
|
-
p,
|
|
3989
|
+
className: v([
|
|
3990
|
+
o,
|
|
3759
3991
|
h,
|
|
3760
|
-
|
|
3992
|
+
m,
|
|
3993
|
+
l ?? ""
|
|
3761
3994
|
]),
|
|
3762
|
-
...
|
|
3995
|
+
...i
|
|
3763
3996
|
},
|
|
3764
|
-
|
|
3997
|
+
s ? C : d
|
|
3765
3998
|
);
|
|
3766
|
-
},
|
|
3999
|
+
}, y4 = {
|
|
3767
4000
|
info: "circleInfo",
|
|
3768
4001
|
warning: "triangleExclamation",
|
|
3769
4002
|
critical: "diamondExclamation",
|
|
3770
4003
|
discovery: "bullhorn"
|
|
3771
|
-
},
|
|
4004
|
+
}, G2 = 200, $4 = 50, K4 = ({
|
|
3772
4005
|
banners: t,
|
|
3773
|
-
className:
|
|
3774
|
-
dismissLabel:
|
|
3775
|
-
labelNext:
|
|
3776
|
-
labelPrevious:
|
|
3777
|
-
typeLabels:
|
|
4006
|
+
className: l,
|
|
4007
|
+
dismissLabel: a = "Dismiss",
|
|
4008
|
+
labelNext: c = "Go to next message",
|
|
4009
|
+
labelPrevious: i = "Go to previous message",
|
|
4010
|
+
typeLabels: s = { ...Q2, neutral: "Notice" },
|
|
3778
4011
|
...n
|
|
3779
4012
|
}) => {
|
|
3780
|
-
const [
|
|
3781
|
-
|
|
3782
|
-
|
|
4013
|
+
const [r, o] = H(t), [m, h] = H(null), [z, d] = H(null), [f, C] = H({});
|
|
4014
|
+
l2(() => {
|
|
4015
|
+
o(t);
|
|
3783
4016
|
}, [t]);
|
|
3784
|
-
const
|
|
3785
|
-
if (
|
|
4017
|
+
const g = r.length;
|
|
4018
|
+
if (g === 0)
|
|
3786
4019
|
return null;
|
|
3787
|
-
const
|
|
3788
|
-
critical: `${
|
|
3789
|
-
discovery: `${
|
|
3790
|
-
info: `${
|
|
3791
|
-
neutral: `${
|
|
3792
|
-
warning: `${
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
...
|
|
3797
|
-
|
|
3798
|
-
]),
|
|
3799
|
-
},
|
|
3800
|
-
},
|
|
3801
|
-
|
|
3802
|
-
[
|
|
3803
|
-
[
|
|
4020
|
+
const p = "pds-banner", L = g > 1 ? `${p}-group--multiple` : null, b = {
|
|
4021
|
+
critical: `${p}--critical`,
|
|
4022
|
+
discovery: `${p}--discovery`,
|
|
4023
|
+
info: `${p}--info`,
|
|
4024
|
+
neutral: `${p}--neutral`,
|
|
4025
|
+
warning: `${p}--warning`
|
|
4026
|
+
}, M = r[0].type, D = M ? `${p}-group--${M}` : null, N = (y) => R2 - y, P = (y) => y === 0 ? 0 : -1, _ = () => {
|
|
4027
|
+
h(r[0].id), setTimeout(() => {
|
|
4028
|
+
o((y) => [
|
|
4029
|
+
...y.slice(1),
|
|
4030
|
+
y[0]
|
|
4031
|
+
]), h(null);
|
|
4032
|
+
}, G2);
|
|
4033
|
+
}, w = () => {
|
|
4034
|
+
C({
|
|
4035
|
+
[r[0].id]: R2 + 2,
|
|
4036
|
+
[r[g - 1].id]: R2 + 1
|
|
3804
4037
|
}), setTimeout(() => {
|
|
3805
|
-
|
|
3806
|
-
},
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
...
|
|
3810
|
-
]),
|
|
3811
|
-
},
|
|
3812
|
-
},
|
|
3813
|
-
const { iconName:
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
(
|
|
4038
|
+
h(r[0].id);
|
|
4039
|
+
}, $4), setTimeout(() => {
|
|
4040
|
+
o((y) => [
|
|
4041
|
+
y[y.length - 1],
|
|
4042
|
+
...y.slice(0, y.length - 1)
|
|
4043
|
+
]), h(null), C({});
|
|
4044
|
+
}, G2);
|
|
4045
|
+
}, S = (y, k) => {
|
|
4046
|
+
const { iconName: R, id: F, isDismissible: Y, message: q, onDismiss: i2, type: Z } = y, n2 = Z === "critical" ? "alert" : "status", U = `${s[Z]}: `, r2 = (o2) => {
|
|
4047
|
+
o2.preventDefault(), d(F), setTimeout(() => {
|
|
4048
|
+
i2?.(), d(null), o((s2) => s2.filter(
|
|
4049
|
+
(B) => B.id !== F
|
|
3817
4050
|
));
|
|
3818
|
-
},
|
|
3819
|
-
},
|
|
4051
|
+
}, G2);
|
|
4052
|
+
}, Q = f[F] ?? N(k);
|
|
3820
4053
|
return /* @__PURE__ */ e.createElement(
|
|
3821
4054
|
"div",
|
|
3822
4055
|
{
|
|
3823
|
-
key:
|
|
3824
|
-
className:
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
4056
|
+
key: F,
|
|
4057
|
+
className: v([
|
|
4058
|
+
p,
|
|
4059
|
+
b[Z],
|
|
4060
|
+
m === F ? `${p}--fading` : null,
|
|
4061
|
+
z === F ? `${p}--dismissing` : null
|
|
3829
4062
|
]),
|
|
3830
|
-
id:
|
|
3831
|
-
role:
|
|
3832
|
-
style: { zIndex:
|
|
4063
|
+
id: F,
|
|
4064
|
+
role: n2,
|
|
4065
|
+
style: { zIndex: Q }
|
|
3833
4066
|
},
|
|
3834
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3835
|
-
|
|
4067
|
+
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
4068
|
+
A,
|
|
3836
4069
|
{
|
|
3837
|
-
className: `${
|
|
3838
|
-
iconName:
|
|
4070
|
+
className: `${p}__icon ${p}__icon--${y.type}`,
|
|
4071
|
+
iconName: Z === "neutral" ? R : y4[Z],
|
|
3839
4072
|
iconSize: "m"
|
|
3840
4073
|
}
|
|
3841
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3842
|
-
|
|
4074
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, U, " "), q)),
|
|
4075
|
+
Y && /* @__PURE__ */ e.createElement(
|
|
3843
4076
|
"button",
|
|
3844
4077
|
{
|
|
3845
|
-
className: `${
|
|
3846
|
-
onClick:
|
|
3847
|
-
tabIndex:
|
|
4078
|
+
className: `${p}__dismiss-button`,
|
|
4079
|
+
onClick: r2,
|
|
4080
|
+
tabIndex: P(k),
|
|
3848
4081
|
type: "button"
|
|
3849
4082
|
},
|
|
3850
|
-
|
|
4083
|
+
a
|
|
3851
4084
|
)
|
|
3852
4085
|
);
|
|
3853
4086
|
};
|
|
3854
4087
|
return /* @__PURE__ */ e.createElement(
|
|
3855
4088
|
"div",
|
|
3856
4089
|
{
|
|
3857
|
-
className:
|
|
3858
|
-
`${
|
|
3859
|
-
|
|
4090
|
+
className: v([
|
|
4091
|
+
`${p}-group`,
|
|
4092
|
+
D,
|
|
3860
4093
|
L,
|
|
3861
|
-
|
|
4094
|
+
l ?? ""
|
|
3862
4095
|
]),
|
|
3863
4096
|
...n
|
|
3864
4097
|
},
|
|
3865
|
-
|
|
3866
|
-
|
|
4098
|
+
g > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${p}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
4099
|
+
I2,
|
|
3867
4100
|
{
|
|
3868
|
-
ariaLabel:
|
|
3869
|
-
className: `${
|
|
4101
|
+
ariaLabel: i,
|
|
4102
|
+
className: `${p}__nav-button ${p}__nav-button--prev`,
|
|
3870
4103
|
iconName: "angleLeft",
|
|
3871
|
-
onClick:
|
|
4104
|
+
onClick: w,
|
|
3872
4105
|
size: "m"
|
|
3873
4106
|
}
|
|
3874
4107
|
), /* @__PURE__ */ e.createElement(
|
|
3875
|
-
|
|
4108
|
+
I2,
|
|
3876
4109
|
{
|
|
3877
|
-
ariaLabel:
|
|
3878
|
-
className: `${
|
|
4110
|
+
ariaLabel: c,
|
|
4111
|
+
className: `${p}__nav-button ${p}__nav-button--next`,
|
|
3879
4112
|
iconName: "angleRight",
|
|
3880
|
-
onClick:
|
|
4113
|
+
onClick: _,
|
|
3881
4114
|
size: "m"
|
|
3882
4115
|
}
|
|
3883
|
-
),
|
|
4116
|
+
), r.map((y, k) => S(y, k))) : S(r[0], 0)
|
|
3884
4117
|
);
|
|
3885
|
-
},
|
|
4118
|
+
}, W2 = {
|
|
3886
4119
|
info: "circleInfo",
|
|
3887
4120
|
warning: "triangleExclamation",
|
|
3888
4121
|
success: "circleCheck",
|
|
3889
4122
|
critical: "diamondExclamation"
|
|
3890
|
-
},
|
|
4123
|
+
}, X4 = ({
|
|
3891
4124
|
className: t,
|
|
3892
|
-
message:
|
|
3893
|
-
title:
|
|
3894
|
-
type:
|
|
3895
|
-
typeLabels:
|
|
4125
|
+
message: l,
|
|
4126
|
+
title: a,
|
|
4127
|
+
type: c,
|
|
4128
|
+
typeLabels: i = {
|
|
3896
4129
|
...Q2,
|
|
3897
4130
|
working: "Working"
|
|
3898
4131
|
},
|
|
3899
|
-
...
|
|
4132
|
+
...s
|
|
3900
4133
|
}) => {
|
|
3901
|
-
const n = "pds-inline-message",
|
|
4134
|
+
const n = "pds-inline-message", r = {
|
|
3902
4135
|
error: `${n}--error`,
|
|
3903
4136
|
success: `${n}--success`,
|
|
3904
4137
|
warning: `${n}--warning`,
|
|
3905
4138
|
info: `${n}--info`,
|
|
3906
4139
|
critical: `${n}--critical`,
|
|
3907
4140
|
working: `${n}--working`
|
|
3908
|
-
},
|
|
4141
|
+
}, o = c === "critical" ? "alert" : "status", m = `${i[c]}: `, h = typeof l == "string" ? /* @__PURE__ */ e.createElement("p", null, l) : l;
|
|
3909
4142
|
return /* @__PURE__ */ e.createElement(
|
|
3910
4143
|
"div",
|
|
3911
4144
|
{
|
|
3912
|
-
className:
|
|
3913
|
-
role:
|
|
3914
|
-
...
|
|
4145
|
+
className: v([n, r[c], t ?? ""]),
|
|
4146
|
+
role: o,
|
|
4147
|
+
...s
|
|
3915
4148
|
},
|
|
3916
|
-
/* @__PURE__ */ e.createElement("div", { className: `${n}__icon ${n}__icon-${
|
|
3917
|
-
|
|
4149
|
+
/* @__PURE__ */ e.createElement("div", { className: `${n}__icon ${n}__icon-${c}` }, c === "working" ? /* @__PURE__ */ e.createElement(k2, { colorType: "monochromatic", size: "m" }) : /* @__PURE__ */ e.createElement(
|
|
4150
|
+
A,
|
|
3918
4151
|
{
|
|
3919
|
-
iconName: `${
|
|
4152
|
+
iconName: `${c}` in W2 ? W2[c] : W2.info,
|
|
3920
4153
|
iconSize: "m"
|
|
3921
4154
|
}
|
|
3922
4155
|
)),
|
|
3923
|
-
/* @__PURE__ */ e.createElement("div", { className: `${n}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
4156
|
+
/* @__PURE__ */ e.createElement("div", { className: `${n}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement("div", { className: `${n}__title` }, a), /* @__PURE__ */ e.createElement("div", { className: `${n}__message` }, h))
|
|
3924
4157
|
);
|
|
3925
|
-
},
|
|
4158
|
+
}, U2 = {
|
|
3926
4159
|
info: "circleInfo",
|
|
3927
4160
|
warning: "triangleExclamation",
|
|
3928
4161
|
success: "circleCheck",
|
|
3929
4162
|
critical: "diamondExclamation",
|
|
3930
4163
|
discovery: "squareQuestion"
|
|
3931
|
-
},
|
|
4164
|
+
}, Y4 = ({
|
|
3932
4165
|
className: t,
|
|
3933
|
-
ctaButton:
|
|
3934
|
-
dismissLabel:
|
|
3935
|
-
id:
|
|
3936
|
-
isDismissible:
|
|
3937
|
-
message:
|
|
4166
|
+
ctaButton: l,
|
|
4167
|
+
dismissLabel: a = "Dismiss",
|
|
4168
|
+
id: c,
|
|
4169
|
+
isDismissible: i,
|
|
4170
|
+
message: s,
|
|
3938
4171
|
onDismiss: n,
|
|
3939
|
-
title:
|
|
3940
|
-
type:
|
|
3941
|
-
typeLabels:
|
|
3942
|
-
...
|
|
4172
|
+
title: r,
|
|
4173
|
+
type: o = "info",
|
|
4174
|
+
typeLabels: m = Q2,
|
|
4175
|
+
...h
|
|
3943
4176
|
}) => {
|
|
3944
|
-
const
|
|
4177
|
+
const z = J(null), d = "pds-section-message", f = {
|
|
3945
4178
|
error: `${d}--error`,
|
|
3946
4179
|
success: `${d}--success`,
|
|
3947
4180
|
warning: `${d}--warning`,
|
|
@@ -3950,575 +4183,605 @@ const t4 = {
|
|
|
3950
4183
|
discovery: `${d}--discovery`,
|
|
3951
4184
|
dismissing: `${d}--dismissing`,
|
|
3952
4185
|
dismissed: `${d}--dismissed`
|
|
3953
|
-
},
|
|
3954
|
-
|
|
4186
|
+
}, C = i ? `${d}--hasDismiss` : null, g = r ? `${d}--hasTitle` : null, p = o === "critical" ? "alert" : "status", L = `${m[o]}: `, b = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s, M = () => {
|
|
4187
|
+
z.current.addEventListener("animationend", D, {
|
|
3955
4188
|
once: !0
|
|
3956
4189
|
});
|
|
3957
|
-
},
|
|
3958
|
-
n(
|
|
3959
|
-
},
|
|
3960
|
-
|
|
3961
|
-
|
|
4190
|
+
}, D = (P) => {
|
|
4191
|
+
n(P, c);
|
|
4192
|
+
}, N = () => {
|
|
4193
|
+
M(), z.current.classList.toggle(f.dismissing), setTimeout(() => {
|
|
4194
|
+
z.current.classList.toggle(f.dismissing), z.current.classList.toggle(f.dismissed);
|
|
3962
4195
|
}, 400);
|
|
3963
4196
|
};
|
|
3964
4197
|
return /* @__PURE__ */ e.createElement(
|
|
3965
4198
|
"div",
|
|
3966
4199
|
{
|
|
3967
|
-
ref:
|
|
3968
|
-
className:
|
|
4200
|
+
ref: z,
|
|
4201
|
+
className: v([
|
|
3969
4202
|
d,
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
4203
|
+
f[o],
|
|
4204
|
+
C,
|
|
4205
|
+
g,
|
|
3973
4206
|
t ?? ""
|
|
3974
4207
|
]),
|
|
3975
|
-
id:
|
|
3976
|
-
role:
|
|
3977
|
-
...
|
|
4208
|
+
id: c,
|
|
4209
|
+
role: p,
|
|
4210
|
+
...h
|
|
3978
4211
|
},
|
|
3979
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon-${
|
|
3980
|
-
|
|
4212
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon-${o}` }, /* @__PURE__ */ e.createElement(
|
|
4213
|
+
A,
|
|
3981
4214
|
{
|
|
3982
|
-
iconName: `${
|
|
4215
|
+
iconName: `${o}` in U2 ? U2[o] : U2.info,
|
|
3983
4216
|
iconSize: "m"
|
|
3984
4217
|
}
|
|
3985
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, L),
|
|
3986
|
-
(
|
|
3987
|
-
|
|
4218
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, L), r && /* @__PURE__ */ e.createElement("div", { className: `${d}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${d}__message` }, b))),
|
|
4219
|
+
(l || i) && /* @__PURE__ */ e.createElement("div", { className: `${d}__actions` }, l && /* @__PURE__ */ e.createElement(
|
|
4220
|
+
B2,
|
|
3988
4221
|
{
|
|
3989
|
-
...
|
|
4222
|
+
...l,
|
|
3990
4223
|
className: `${d}__cta`,
|
|
3991
4224
|
size: "s",
|
|
3992
4225
|
variant: "secondary"
|
|
3993
4226
|
}
|
|
3994
|
-
),
|
|
3995
|
-
|
|
4227
|
+
), i && /* @__PURE__ */ e.createElement(
|
|
4228
|
+
v1,
|
|
3996
4229
|
{
|
|
3997
|
-
ariaLabel:
|
|
4230
|
+
ariaLabel: a,
|
|
3998
4231
|
className: `${d}__dismiss`,
|
|
3999
|
-
onClick:
|
|
4232
|
+
onClick: N,
|
|
4000
4233
|
size: "l"
|
|
4001
4234
|
}
|
|
4002
4235
|
))
|
|
4003
4236
|
);
|
|
4004
|
-
},
|
|
4237
|
+
}, _4 = {
|
|
4005
4238
|
info: "circleInfo",
|
|
4006
4239
|
success: "circleCheck",
|
|
4007
4240
|
warning: "triangleExclamation",
|
|
4008
4241
|
critical: "diamondExclamation"
|
|
4009
|
-
},
|
|
4242
|
+
}, D4 = {
|
|
4010
4243
|
info: "Information",
|
|
4011
4244
|
success: "Success",
|
|
4012
4245
|
warning: "Warning",
|
|
4013
4246
|
critical: "Critical",
|
|
4014
4247
|
working: "Working..."
|
|
4015
|
-
},
|
|
4248
|
+
}, P4 = ({
|
|
4016
4249
|
children: t,
|
|
4017
|
-
className:
|
|
4018
|
-
id:
|
|
4019
|
-
type:
|
|
4020
|
-
typeLabels:
|
|
4250
|
+
className: l,
|
|
4251
|
+
id: a,
|
|
4252
|
+
type: c = "info",
|
|
4253
|
+
typeLabels: i = D4
|
|
4021
4254
|
}) => {
|
|
4022
|
-
const
|
|
4023
|
-
critical: `${
|
|
4024
|
-
info: `${
|
|
4025
|
-
success: `${
|
|
4026
|
-
warning: `${
|
|
4027
|
-
working: `${
|
|
4028
|
-
},
|
|
4255
|
+
const s = "pds-toast", n = {
|
|
4256
|
+
critical: `${s}--critical`,
|
|
4257
|
+
info: `${s}--info`,
|
|
4258
|
+
success: `${s}--success`,
|
|
4259
|
+
warning: `${s}--warning`,
|
|
4260
|
+
working: `${s}--working`
|
|
4261
|
+
}, r = `${i[c]} `;
|
|
4029
4262
|
return /* @__PURE__ */ e.createElement(
|
|
4030
4263
|
"div",
|
|
4031
4264
|
{
|
|
4032
|
-
className:
|
|
4033
|
-
id:
|
|
4265
|
+
className: v([s, n[c], l]),
|
|
4266
|
+
id: a
|
|
4034
4267
|
},
|
|
4035
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4036
|
-
|
|
4268
|
+
/* @__PURE__ */ e.createElement("div", { className: `${s}__icon-container` }, c === "working" ? /* @__PURE__ */ e.createElement(k2, { colorType: "monochromatic-reverse", size: "l" }) : /* @__PURE__ */ e.createElement(
|
|
4269
|
+
A,
|
|
4037
4270
|
{
|
|
4038
|
-
className: `${
|
|
4039
|
-
iconName:
|
|
4271
|
+
className: `${s}__icon ${s}__icon--${c}`,
|
|
4272
|
+
iconName: _4[c],
|
|
4040
4273
|
iconSize: "m"
|
|
4041
4274
|
}
|
|
4042
4275
|
)),
|
|
4043
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4276
|
+
/* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r), t)
|
|
4044
4277
|
);
|
|
4045
|
-
},
|
|
4278
|
+
}, k4 = ({
|
|
4046
4279
|
ariaLabel: t,
|
|
4047
|
-
closeToast:
|
|
4280
|
+
closeToast: l
|
|
4048
4281
|
}) => /* @__PURE__ */ e.createElement(
|
|
4049
|
-
|
|
4282
|
+
v1,
|
|
4050
4283
|
{
|
|
4051
4284
|
ariaLabel: t || "Close",
|
|
4052
4285
|
className: "pds-toaster__close-button",
|
|
4053
|
-
onClick: () =>
|
|
4286
|
+
onClick: () => l(null),
|
|
4054
4287
|
size: "l"
|
|
4055
4288
|
}
|
|
4056
|
-
),
|
|
4289
|
+
), Q4 = ({
|
|
4057
4290
|
autoCloseDuration: t = 5e3,
|
|
4058
|
-
className:
|
|
4059
|
-
limit:
|
|
4060
|
-
position:
|
|
4291
|
+
className: l,
|
|
4292
|
+
limit: a = 5,
|
|
4293
|
+
position: c = "bottom-right"
|
|
4061
4294
|
}) => {
|
|
4062
|
-
const
|
|
4295
|
+
const s = v(["pds-toaster", l]);
|
|
4063
4296
|
return /* @__PURE__ */ e.createElement(
|
|
4064
|
-
|
|
4297
|
+
A1,
|
|
4065
4298
|
{
|
|
4066
4299
|
newestOnTop: !0,
|
|
4067
4300
|
autoClose: t,
|
|
4068
|
-
className:
|
|
4069
|
-
closeButton:
|
|
4301
|
+
className: s,
|
|
4302
|
+
closeButton: k4,
|
|
4070
4303
|
draggable: !1,
|
|
4071
4304
|
icon: !1,
|
|
4072
|
-
limit:
|
|
4073
|
-
position:
|
|
4305
|
+
limit: a,
|
|
4306
|
+
position: c,
|
|
4074
4307
|
role: "status",
|
|
4075
|
-
transition:
|
|
4308
|
+
transition: O1
|
|
4076
4309
|
}
|
|
4077
4310
|
);
|
|
4078
4311
|
};
|
|
4079
|
-
var
|
|
4080
|
-
const
|
|
4081
|
-
const t = (
|
|
4082
|
-
const
|
|
4312
|
+
var x4 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Info = "info", t.Success = "success", t.Warning = "warning", t.Working = "working", t))(x4 || {});
|
|
4313
|
+
const J4 = () => {
|
|
4314
|
+
const t = (a, c, i = {}) => {
|
|
4315
|
+
const s = /* @__PURE__ */ e.createElement(P4, { type: a }, c);
|
|
4083
4316
|
let n = {
|
|
4084
|
-
...
|
|
4317
|
+
...i
|
|
4085
4318
|
};
|
|
4086
|
-
return
|
|
4319
|
+
return a === "critical" && (n = {
|
|
4087
4320
|
...n,
|
|
4088
4321
|
autoClose: !1,
|
|
4089
4322
|
role: "alert"
|
|
4090
|
-
}),
|
|
4323
|
+
}), a === "warning" && (n = {
|
|
4091
4324
|
...n,
|
|
4092
4325
|
autoClose: !1
|
|
4093
|
-
}),
|
|
4326
|
+
}), a === "working" && (n = {
|
|
4094
4327
|
...n,
|
|
4095
4328
|
autoClose: !1,
|
|
4096
4329
|
closeButton: !1,
|
|
4097
4330
|
closeOnClick: !1
|
|
4098
|
-
}), e1(
|
|
4099
|
-
},
|
|
4331
|
+
}), e1(s, n);
|
|
4332
|
+
}, l = H1({
|
|
4100
4333
|
collapse: !1,
|
|
4101
4334
|
enter: "pds-toast--bounceInPlace",
|
|
4102
4335
|
exit: "pds-toast--slideOut"
|
|
4103
4336
|
});
|
|
4104
|
-
return [t, e1,
|
|
4105
|
-
},
|
|
4337
|
+
return [t, e1, l];
|
|
4338
|
+
}, e0 = ({
|
|
4106
4339
|
children: t,
|
|
4107
|
-
className:
|
|
4108
|
-
expandButtonAriaLabel:
|
|
4109
|
-
isExpandable:
|
|
4110
|
-
...
|
|
4340
|
+
className: l,
|
|
4341
|
+
expandButtonAriaLabel: a,
|
|
4342
|
+
isExpandable: c = !1,
|
|
4343
|
+
...i
|
|
4111
4344
|
}) => {
|
|
4112
|
-
const
|
|
4113
|
-
const
|
|
4114
|
-
if (!
|
|
4345
|
+
const s = "pds-panel-row", [n, r] = H(!1), o = J(null), m = J(null), h = j2(t), z = h["items-left"], d = h["items-right"], f = h["items-below"], C = () => {
|
|
4346
|
+
const g = m.current, p = o.current;
|
|
4347
|
+
if (!g || !p) return;
|
|
4115
4348
|
const L = !n;
|
|
4116
|
-
|
|
4349
|
+
r(L), L ? (Object.assign(g.style, {
|
|
4117
4350
|
display: "block",
|
|
4118
4351
|
height: "auto",
|
|
4119
4352
|
opacity: "1"
|
|
4120
|
-
}),
|
|
4353
|
+
}), p.classList.add("is-expanded")) : (Object.assign(g.style, {
|
|
4121
4354
|
height: "0",
|
|
4122
4355
|
opacity: "0",
|
|
4123
4356
|
display: "none"
|
|
4124
|
-
}),
|
|
4357
|
+
}), p.classList.remove("is-expanded"));
|
|
4125
4358
|
};
|
|
4126
4359
|
return /* @__PURE__ */ e.createElement(
|
|
4127
4360
|
"li",
|
|
4128
4361
|
{
|
|
4129
|
-
className:
|
|
4130
|
-
...
|
|
4131
|
-
ref:
|
|
4362
|
+
className: v([s, l ?? ""]),
|
|
4363
|
+
...i,
|
|
4364
|
+
ref: o
|
|
4132
4365
|
},
|
|
4133
4366
|
/* @__PURE__ */ e.createElement(
|
|
4134
4367
|
"div",
|
|
4135
4368
|
{
|
|
4136
|
-
className:
|
|
4137
|
-
`${
|
|
4138
|
-
|
|
4369
|
+
className: v([
|
|
4370
|
+
`${s}__main`,
|
|
4371
|
+
c ? "is-expandable" : ""
|
|
4139
4372
|
])
|
|
4140
4373
|
},
|
|
4141
|
-
|
|
4142
|
-
d && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4143
|
-
|
|
4374
|
+
z && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--left` }, z),
|
|
4375
|
+
d && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--right` }, d),
|
|
4376
|
+
c && /* @__PURE__ */ e.createElement(
|
|
4144
4377
|
"button",
|
|
4145
4378
|
{
|
|
4146
4379
|
"aria-expanded": n,
|
|
4147
|
-
"aria-label":
|
|
4148
|
-
className: `${
|
|
4149
|
-
onClick:
|
|
4380
|
+
"aria-label": a,
|
|
4381
|
+
className: `${s}__expand-button`,
|
|
4382
|
+
onClick: C
|
|
4150
4383
|
},
|
|
4151
4384
|
/* @__PURE__ */ e.createElement(
|
|
4152
|
-
|
|
4385
|
+
A,
|
|
4153
4386
|
{
|
|
4154
|
-
className: `${
|
|
4387
|
+
className: `${s}__expand-icon ${n ? "rotated" : ""}`,
|
|
4155
4388
|
iconName: "angleDown"
|
|
4156
4389
|
}
|
|
4157
4390
|
)
|
|
4158
4391
|
)
|
|
4159
4392
|
),
|
|
4160
|
-
|
|
4393
|
+
c && f && /* @__PURE__ */ e.createElement(
|
|
4161
4394
|
"div",
|
|
4162
4395
|
{
|
|
4163
|
-
ref:
|
|
4164
|
-
className: `${
|
|
4396
|
+
ref: m,
|
|
4397
|
+
className: `${s}__items ${s}__items--below`,
|
|
4165
4398
|
style: { display: "none", height: "0", opacity: "0" }
|
|
4166
4399
|
},
|
|
4167
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4400
|
+
/* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, f)
|
|
4168
4401
|
)
|
|
4169
4402
|
);
|
|
4170
|
-
},
|
|
4403
|
+
}, t0 = ({
|
|
4171
4404
|
alt: t = "",
|
|
4172
|
-
className:
|
|
4173
|
-
height:
|
|
4174
|
-
srcFallback:
|
|
4175
|
-
srcWebp:
|
|
4176
|
-
width:
|
|
4405
|
+
className: l,
|
|
4406
|
+
height: a,
|
|
4407
|
+
srcFallback: c,
|
|
4408
|
+
srcWebp: i,
|
|
4409
|
+
width: s,
|
|
4177
4410
|
...n
|
|
4178
4411
|
}) => {
|
|
4179
|
-
const
|
|
4180
|
-
return /* @__PURE__ */ e.createElement("picture", { className:
|
|
4412
|
+
const r = "pds-picture";
|
|
4413
|
+
return /* @__PURE__ */ e.createElement("picture", { className: v([r, l ?? ""]) }, /* @__PURE__ */ e.createElement("source", { srcSet: i, type: "image/webp" }), /* @__PURE__ */ e.createElement(
|
|
4181
4414
|
"img",
|
|
4182
4415
|
{
|
|
4183
4416
|
alt: t,
|
|
4184
|
-
className: `${
|
|
4185
|
-
height:
|
|
4186
|
-
src:
|
|
4187
|
-
width:
|
|
4417
|
+
className: `${r}__img`,
|
|
4418
|
+
height: a,
|
|
4419
|
+
src: c,
|
|
4420
|
+
width: s,
|
|
4188
4421
|
...n
|
|
4189
4422
|
}
|
|
4190
4423
|
));
|
|
4191
|
-
},
|
|
4424
|
+
}, s0 = ({
|
|
4192
4425
|
className: t,
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4426
|
+
destination: l = "main",
|
|
4427
|
+
text: a = "Skip to main content",
|
|
4428
|
+
...c
|
|
4429
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
4430
|
+
"a",
|
|
4431
|
+
{
|
|
4432
|
+
className: v(["pds-skiplink", t]),
|
|
4433
|
+
href: `#${l}`,
|
|
4434
|
+
...c
|
|
4435
|
+
},
|
|
4436
|
+
a
|
|
4437
|
+
), c0 = ({
|
|
4438
|
+
className: t,
|
|
4439
|
+
label: l = null,
|
|
4440
|
+
size: a = "s",
|
|
4441
|
+
type: c = "neutral",
|
|
4442
|
+
...i
|
|
4443
|
+
}) => {
|
|
4444
|
+
const s = "pds-status-indicator", n = `${s}--${c}`, r = a !== "s" ? `${s}--${a}` : null;
|
|
4445
|
+
return /* @__PURE__ */ e.createElement(
|
|
4446
|
+
"div",
|
|
4447
|
+
{
|
|
4448
|
+
className: v([
|
|
4449
|
+
s,
|
|
4450
|
+
n,
|
|
4451
|
+
r,
|
|
4452
|
+
t ?? ""
|
|
4453
|
+
]),
|
|
4454
|
+
...i
|
|
4455
|
+
},
|
|
4456
|
+
c === "working" ? /* @__PURE__ */ e.createElement(
|
|
4457
|
+
k2,
|
|
4458
|
+
{
|
|
4459
|
+
className: `${s}__spinner`,
|
|
4460
|
+
colorType: "monochromatic",
|
|
4461
|
+
size: "m"
|
|
4462
|
+
}
|
|
4463
|
+
) : /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${s}__icon`, role: "img" }),
|
|
4464
|
+
l && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, l)
|
|
4465
|
+
);
|
|
4466
|
+
}, a0 = ({
|
|
4467
|
+
className: t,
|
|
4468
|
+
platform: l,
|
|
4469
|
+
videoId: a,
|
|
4470
|
+
videoTitle: c,
|
|
4471
|
+
...i
|
|
4197
4472
|
}) => {
|
|
4198
|
-
const
|
|
4473
|
+
const s = "pds-video-embed", n = /* @__PURE__ */ e.createElement(
|
|
4199
4474
|
"iframe",
|
|
4200
4475
|
{
|
|
4201
4476
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
4202
|
-
src: `https://fast.wistia.net/embed/iframe/${
|
|
4203
|
-
title: `Wistia video player${
|
|
4477
|
+
src: `https://fast.wistia.net/embed/iframe/${a}`,
|
|
4478
|
+
title: `Wistia video player${c ? `: ${c}` : ""}`
|
|
4204
4479
|
}
|
|
4205
|
-
),
|
|
4480
|
+
), r = /* @__PURE__ */ e.createElement(
|
|
4206
4481
|
"iframe",
|
|
4207
4482
|
{
|
|
4208
4483
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
4209
|
-
src: `https://player.vimeo.com/video/${
|
|
4210
|
-
title: `Vimeo video player${
|
|
4484
|
+
src: `https://player.vimeo.com/video/${a}`,
|
|
4485
|
+
title: `Vimeo video player${c ? `: ${c}` : ""}`
|
|
4211
4486
|
}
|
|
4212
|
-
),
|
|
4487
|
+
), o = /* @__PURE__ */ e.createElement(
|
|
4213
4488
|
"iframe",
|
|
4214
4489
|
{
|
|
4215
4490
|
allowFullScreen: !0,
|
|
4216
4491
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
4217
4492
|
referrerPolicy: "strict-origin-when-cross-origin",
|
|
4218
|
-
src: `https://www.youtube.com/embed/${
|
|
4219
|
-
title: `YouTube video player${
|
|
4493
|
+
src: `https://www.youtube.com/embed/${a}`,
|
|
4494
|
+
title: `YouTube video player${c ? `: ${c}` : ""}`
|
|
4220
4495
|
}
|
|
4221
4496
|
);
|
|
4222
|
-
let
|
|
4223
|
-
switch (
|
|
4497
|
+
let m;
|
|
4498
|
+
switch (l) {
|
|
4224
4499
|
case "vimeo":
|
|
4225
|
-
|
|
4500
|
+
m = r;
|
|
4226
4501
|
break;
|
|
4227
4502
|
case "wistia":
|
|
4228
|
-
|
|
4503
|
+
m = n;
|
|
4229
4504
|
break;
|
|
4230
4505
|
case "youtube":
|
|
4231
4506
|
default:
|
|
4232
|
-
|
|
4507
|
+
m = o;
|
|
4233
4508
|
break;
|
|
4234
4509
|
}
|
|
4235
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4236
|
-
},
|
|
4510
|
+
return /* @__PURE__ */ e.createElement("div", { className: v([s, t ?? ""]), ...i }, m);
|
|
4511
|
+
}, l0 = ({
|
|
4237
4512
|
className: t,
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
label: s,
|
|
4241
|
-
statusIndicatorText: r = "Status indicator: ",
|
|
4242
|
-
statusType: c,
|
|
4243
|
-
...n
|
|
4513
|
+
option: l,
|
|
4514
|
+
...a
|
|
4244
4515
|
}) => {
|
|
4245
|
-
const
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
...n
|
|
4251
|
-
},
|
|
4252
|
-
l === !0 && /* @__PURE__ */ e.createElement("span", { className: b([h, p]) }, c && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r, " ", c)),
|
|
4253
|
-
/* @__PURE__ */ e.createElement("span", { className: `${i}__label` }, s)
|
|
4254
|
-
);
|
|
4255
|
-
}, Z4 = ({
|
|
4256
|
-
className: t,
|
|
4257
|
-
option: a,
|
|
4258
|
-
...l
|
|
4259
|
-
}) => {
|
|
4260
|
-
const s = "pds-site-option-display", r = a.type ? i4[a.type] : "bolt", c = Q(null), [n] = j1(c), i = n.width / 16 - 7.5;
|
|
4261
|
-
let m, h;
|
|
4262
|
-
a.status === "active" && (m = "Active", h = "success"), a.status === "frozen" && (m = "Frozen", h = "frozen"), a.status === "restricted" && (m = "Restricted", h = "critical");
|
|
4263
|
-
const p = /* @__PURE__ */ e.createElement(
|
|
4264
|
-
w4,
|
|
4516
|
+
const c = "pds-site-option-display", i = l.type ? f4[l.type] : "bolt", s = J(null), [n] = R1(s), r = n.width / 16 - 7.5;
|
|
4517
|
+
let o, m;
|
|
4518
|
+
l.status === "active" && (o = "Active", m = "success"), l.status === "frozen" && (o = "Frozen", m = "frozen"), l.status === "restricted" && (o = "Restricted", m = "critical");
|
|
4519
|
+
const h = /* @__PURE__ */ e.createElement(
|
|
4520
|
+
G1,
|
|
4265
4521
|
{
|
|
4266
4522
|
hasStatusIndicator: !0,
|
|
4267
|
-
label:
|
|
4268
|
-
statusType:
|
|
4523
|
+
label: o,
|
|
4524
|
+
statusType: m
|
|
4269
4525
|
}
|
|
4270
4526
|
);
|
|
4271
4527
|
return /* @__PURE__ */ e.createElement(
|
|
4272
4528
|
"div",
|
|
4273
4529
|
{
|
|
4274
|
-
ref:
|
|
4275
|
-
className:
|
|
4276
|
-
title:
|
|
4277
|
-
...
|
|
4530
|
+
ref: s,
|
|
4531
|
+
className: v([c, t ?? ""]),
|
|
4532
|
+
title: l.name,
|
|
4533
|
+
...a
|
|
4278
4534
|
},
|
|
4279
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4535
|
+
/* @__PURE__ */ e.createElement("div", { className: `${c}__inner`, style: { pointerEvents: "none" } }, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon` }, /* @__PURE__ */ e.createElement(A, { iconName: i })), /* @__PURE__ */ e.createElement(
|
|
4280
4536
|
"div",
|
|
4281
4537
|
{
|
|
4282
|
-
className: `${
|
|
4283
|
-
style: { maxWidth: `${
|
|
4538
|
+
className: `${c}__label`,
|
|
4539
|
+
style: { maxWidth: `${r}rem` }
|
|
4284
4540
|
},
|
|
4285
|
-
|
|
4541
|
+
l.name
|
|
4286
4542
|
)),
|
|
4287
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4543
|
+
/* @__PURE__ */ e.createElement("div", { className: `${c}__status`, style: { pointerEvents: "none" } }, h)
|
|
4288
4544
|
);
|
|
4289
|
-
},
|
|
4545
|
+
}, i0 = ({
|
|
4290
4546
|
children: t,
|
|
4291
|
-
className:
|
|
4292
|
-
width:
|
|
4293
|
-
...
|
|
4547
|
+
className: l,
|
|
4548
|
+
width: a = "standard",
|
|
4549
|
+
...c
|
|
4294
4550
|
}) => {
|
|
4295
|
-
const
|
|
4551
|
+
const i = "pds-container", s = a !== "standard" ? `${i}--${a}` : null;
|
|
4296
4552
|
return /* @__PURE__ */ e.createElement(
|
|
4297
4553
|
"div",
|
|
4298
4554
|
{
|
|
4299
|
-
className:
|
|
4300
|
-
...
|
|
4555
|
+
className: v([i, s, l ?? ""]),
|
|
4556
|
+
...c
|
|
4301
4557
|
},
|
|
4302
4558
|
t
|
|
4303
4559
|
);
|
|
4304
|
-
},
|
|
4560
|
+
}, n0 = ({
|
|
4305
4561
|
children: t,
|
|
4306
|
-
className:
|
|
4307
|
-
sidebarMinWidth:
|
|
4308
|
-
sidebarWidth:
|
|
4309
|
-
...
|
|
4562
|
+
className: l,
|
|
4563
|
+
sidebarMinWidth: a = 14.5,
|
|
4564
|
+
sidebarWidth: c = "18%",
|
|
4565
|
+
...i
|
|
4310
4566
|
}) => {
|
|
4311
|
-
let
|
|
4312
|
-
const n =
|
|
4313
|
-
n && (
|
|
4314
|
-
const
|
|
4315
|
-
width:
|
|
4316
|
-
minWidth: `${
|
|
4317
|
-
},
|
|
4567
|
+
let s = !1;
|
|
4568
|
+
const n = D2(x2);
|
|
4569
|
+
n && (s = n.isMobile);
|
|
4570
|
+
const r = "pds-docs-layout", o = s ? `${r}--isMobile` : null, m = {
|
|
4571
|
+
width: c,
|
|
4572
|
+
minWidth: `${a}rem`
|
|
4573
|
+
}, h = j2(t), z = h.__unslotted || h.content, d = h.sidebar, f = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar` }, d), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, z)), C = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar`, style: m }, /* @__PURE__ */ e.createElement("div", { className: `${r}__sidebar-inner` }, d)), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, z));
|
|
4318
4574
|
return /* @__PURE__ */ e.createElement(
|
|
4319
4575
|
"div",
|
|
4320
4576
|
{
|
|
4321
|
-
className:
|
|
4322
|
-
|
|
4323
|
-
|
|
4577
|
+
className: v([
|
|
4578
|
+
r,
|
|
4579
|
+
o,
|
|
4324
4580
|
"pds-container pds-container--x-wide",
|
|
4325
|
-
|
|
4581
|
+
l ?? ""
|
|
4326
4582
|
]),
|
|
4327
|
-
...
|
|
4583
|
+
...i
|
|
4328
4584
|
},
|
|
4329
|
-
|
|
4585
|
+
s ? f : C
|
|
4330
4586
|
);
|
|
4331
|
-
},
|
|
4587
|
+
}, r0 = ({
|
|
4332
4588
|
alignContent: t = "flex-start",
|
|
4333
|
-
alignItems:
|
|
4334
|
-
children:
|
|
4335
|
-
className:
|
|
4336
|
-
flexDirection:
|
|
4337
|
-
flexWrap:
|
|
4589
|
+
alignItems: l = "stretch",
|
|
4590
|
+
children: a,
|
|
4591
|
+
className: c,
|
|
4592
|
+
flexDirection: i = "row",
|
|
4593
|
+
flexWrap: s = "nowrap",
|
|
4338
4594
|
gap: n = "standard",
|
|
4339
|
-
justifyContent:
|
|
4340
|
-
mobileAlignContent:
|
|
4341
|
-
mobileAlignItems:
|
|
4342
|
-
mobileFlexDirection:
|
|
4343
|
-
mobileFlexWrap:
|
|
4595
|
+
justifyContent: r = "flex-start",
|
|
4596
|
+
mobileAlignContent: o,
|
|
4597
|
+
mobileAlignItems: m,
|
|
4598
|
+
mobileFlexDirection: h = "column",
|
|
4599
|
+
mobileFlexWrap: z,
|
|
4344
4600
|
mobileGap: d,
|
|
4345
|
-
mobileJustifyContent:
|
|
4346
|
-
...
|
|
4601
|
+
mobileJustifyContent: f,
|
|
4602
|
+
...C
|
|
4347
4603
|
}) => {
|
|
4348
|
-
let
|
|
4349
|
-
const L =
|
|
4350
|
-
L && (
|
|
4351
|
-
const
|
|
4352
|
-
let k = null;
|
|
4353
|
-
z ? k = `${y}-direction--${p}` : r !== "row" && (k = `${y}-direction--${r}`);
|
|
4354
|
-
let S = null;
|
|
4355
|
-
z ? f ? f !== "nowrap" && (S = `${y}-wrap--${f}`) : c !== "nowrap" && (S = `${y}-wrap--${c}`) : c !== "nowrap" && (S = `${y}-wrap--${c}`);
|
|
4356
|
-
let x = null;
|
|
4357
|
-
z ? g ? g !== "flex-start" && (x = `${y}-justify--${g}`) : i !== "flex-start" && (x = `${y}-justify--${i}`) : i !== "flex-start" && (x = `${y}-justify--${i}`);
|
|
4358
|
-
let v = null;
|
|
4359
|
-
z ? h ? h !== "stretch" && (v = `${y}-align-items--${h}`) : a !== "stretch" && (v = `${y}-align-items--${a}`) : a !== "stretch" && (v = `${y}-align-items--${a}`);
|
|
4360
|
-
let T = null;
|
|
4361
|
-
z ? m ? m !== "flex-start" && (T = `${y}-align-content--${m}`) : t !== "flex-start" && (T = `${y}-align-content--${t}`) : t !== "flex-start" && (T = `${y}-align-content--${t}`);
|
|
4604
|
+
let p = w1() <= 640;
|
|
4605
|
+
const L = D2(x2);
|
|
4606
|
+
L && (p = L.isMobile);
|
|
4607
|
+
const b = "pds-flex", M = `${b}-container`, D = p ? `${M}--mobile` : null;
|
|
4362
4608
|
let N = null;
|
|
4363
|
-
|
|
4609
|
+
p ? N = `${b}-direction--${h}` : i !== "row" && (N = `${b}-direction--${i}`);
|
|
4610
|
+
let P = null;
|
|
4611
|
+
p ? z ? z !== "nowrap" && (P = `${b}-wrap--${z}`) : s !== "nowrap" && (P = `${b}-wrap--${s}`) : s !== "nowrap" && (P = `${b}-wrap--${s}`);
|
|
4612
|
+
let _ = null;
|
|
4613
|
+
p ? f ? f !== "flex-start" && (_ = `${b}-justify--${f}`) : r !== "flex-start" && (_ = `${b}-justify--${r}`) : r !== "flex-start" && (_ = `${b}-justify--${r}`);
|
|
4614
|
+
let w = null;
|
|
4615
|
+
p ? m ? m !== "stretch" && (w = `${b}-align-items--${m}`) : l !== "stretch" && (w = `${b}-align-items--${l}`) : l !== "stretch" && (w = `${b}-align-items--${l}`);
|
|
4616
|
+
let S = null;
|
|
4617
|
+
p ? o ? o !== "flex-start" && (S = `${b}-align-content--${o}`) : t !== "flex-start" && (S = `${b}-align-content--${t}`) : t !== "flex-start" && (S = `${b}-align-content--${t}`);
|
|
4618
|
+
let y = null;
|
|
4619
|
+
return p ? d ? d !== "none" && (y = `${b}-gap--${d}`) : n !== "none" && (y = `${b}-gap--${n}`) : n !== "none" && (y = `${b}-gap--${n}`), /* @__PURE__ */ e.createElement(
|
|
4364
4620
|
"div",
|
|
4365
4621
|
{
|
|
4366
|
-
className:
|
|
4367
|
-
|
|
4622
|
+
className: v([
|
|
4623
|
+
M,
|
|
4624
|
+
D,
|
|
4625
|
+
N,
|
|
4626
|
+
P,
|
|
4368
4627
|
_,
|
|
4369
|
-
|
|
4628
|
+
w,
|
|
4370
4629
|
S,
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
T,
|
|
4374
|
-
N,
|
|
4375
|
-
s ?? ""
|
|
4630
|
+
y,
|
|
4631
|
+
c ?? ""
|
|
4376
4632
|
]),
|
|
4377
|
-
...
|
|
4633
|
+
...C
|
|
4378
4634
|
},
|
|
4379
|
-
|
|
4635
|
+
a
|
|
4380
4636
|
);
|
|
4381
|
-
},
|
|
4637
|
+
}, o0 = ({
|
|
4382
4638
|
children: t,
|
|
4383
|
-
mobileMenuMaxWidth:
|
|
4384
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
4639
|
+
mobileMenuMaxWidth: l = 640
|
|
4640
|
+
}) => /* @__PURE__ */ e.createElement(L4, { mobileMenuMaxWidth: l }, /* @__PURE__ */ e.createElement(c4, null, t)), m0 = ({
|
|
4385
4641
|
children: t,
|
|
4386
|
-
className:
|
|
4387
|
-
gridGap:
|
|
4388
|
-
verticalAlign:
|
|
4389
|
-
...
|
|
4642
|
+
className: l,
|
|
4643
|
+
gridGap: a = "standard",
|
|
4644
|
+
verticalAlign: c = "start",
|
|
4645
|
+
...i
|
|
4390
4646
|
}) => {
|
|
4391
|
-
const
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4647
|
+
const s = "pds-three-item-layout", n = a === "standard" ? "pds-grid" : `pds-grid pds-grid--${a}`, r = `${s}--${c}`, o = j2(t), m = [
|
|
4648
|
+
o["first-item"],
|
|
4649
|
+
o["second-item"],
|
|
4650
|
+
o["third-item"]
|
|
4395
4651
|
];
|
|
4396
4652
|
return /* @__PURE__ */ e.createElement(
|
|
4397
4653
|
"div",
|
|
4398
4654
|
{
|
|
4399
|
-
className:
|
|
4400
|
-
|
|
4655
|
+
className: v([
|
|
4656
|
+
s,
|
|
4401
4657
|
n,
|
|
4402
|
-
|
|
4403
|
-
|
|
4658
|
+
r,
|
|
4659
|
+
l
|
|
4404
4660
|
]),
|
|
4405
|
-
...
|
|
4661
|
+
...i
|
|
4406
4662
|
},
|
|
4407
|
-
|
|
4663
|
+
m.map((h, z) => /* @__PURE__ */ e.createElement(
|
|
4408
4664
|
"div",
|
|
4409
4665
|
{
|
|
4410
|
-
key:
|
|
4666
|
+
key: z,
|
|
4411
4667
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
4412
4668
|
},
|
|
4413
|
-
|
|
4669
|
+
h
|
|
4414
4670
|
))
|
|
4415
4671
|
);
|
|
4416
|
-
},
|
|
4672
|
+
}, d0 = ({
|
|
4417
4673
|
children: t,
|
|
4418
|
-
className:
|
|
4419
|
-
gridGap:
|
|
4420
|
-
layoutVariant:
|
|
4421
|
-
verticalAlign:
|
|
4422
|
-
...
|
|
4674
|
+
className: l,
|
|
4675
|
+
gridGap: a = "standard",
|
|
4676
|
+
layoutVariant: c = "equal",
|
|
4677
|
+
verticalAlign: i = "start",
|
|
4678
|
+
...s
|
|
4423
4679
|
}) => {
|
|
4424
|
-
const n = "pds-two-item-layout",
|
|
4425
|
-
let
|
|
4426
|
-
switch (
|
|
4680
|
+
const n = "pds-two-item-layout", r = a === "standard" ? "pds-grid" : `pds-grid pds-grid--${a}`, o = `${n}--${i}`, m = ["pds-grid-item--md-6"], h = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], z = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], d = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
4681
|
+
let f, C;
|
|
4682
|
+
switch (c) {
|
|
4427
4683
|
case "equal":
|
|
4428
|
-
|
|
4684
|
+
f = d.concat(m), C = d.concat(m);
|
|
4429
4685
|
break;
|
|
4430
4686
|
case "one-third-start":
|
|
4431
|
-
|
|
4687
|
+
f = d.concat(h), C = d.concat(z);
|
|
4432
4688
|
break;
|
|
4433
4689
|
case "one-third-end":
|
|
4434
|
-
|
|
4690
|
+
f = d.concat(z), C = d.concat(h);
|
|
4435
4691
|
}
|
|
4436
|
-
const
|
|
4692
|
+
const g = j2(t), p = g["first-item"], L = g["second-item"];
|
|
4437
4693
|
return /* @__PURE__ */ e.createElement(
|
|
4438
4694
|
"div",
|
|
4439
4695
|
{
|
|
4440
|
-
className:
|
|
4696
|
+
className: v([
|
|
4441
4697
|
n,
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4698
|
+
r,
|
|
4699
|
+
o,
|
|
4700
|
+
l
|
|
4445
4701
|
]),
|
|
4446
|
-
...
|
|
4702
|
+
...s
|
|
4447
4703
|
},
|
|
4448
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4449
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4704
|
+
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, p),
|
|
4705
|
+
/* @__PURE__ */ e.createElement("div", { className: C.join(" ").trim() }, L)
|
|
4450
4706
|
);
|
|
4451
|
-
},
|
|
4452
|
-
const t = typeof window < "u",
|
|
4453
|
-
t ?
|
|
4707
|
+
}, h0 = () => {
|
|
4708
|
+
const t = typeof window < "u", l = (i) => i >= K1 ? "xl" : i >= U1 ? "lg" : i >= W1 ? "md" : "sm", [a, c] = H(
|
|
4709
|
+
t ? l(window.innerWidth) : "lg"
|
|
4454
4710
|
);
|
|
4455
|
-
return
|
|
4711
|
+
return l2(() => {
|
|
4456
4712
|
if (!t) return;
|
|
4457
|
-
const
|
|
4458
|
-
|
|
4713
|
+
const i = () => {
|
|
4714
|
+
c(l(window.innerWidth));
|
|
4459
4715
|
};
|
|
4460
|
-
return
|
|
4461
|
-
window.removeEventListener("resize",
|
|
4716
|
+
return i(), window.addEventListener("resize", i), () => {
|
|
4717
|
+
window.removeEventListener("resize", i);
|
|
4462
4718
|
};
|
|
4463
|
-
}, []),
|
|
4464
|
-
},
|
|
4465
|
-
const
|
|
4466
|
-
return
|
|
4467
|
-
if (!
|
|
4468
|
-
const
|
|
4469
|
-
|
|
4719
|
+
}, []), a;
|
|
4720
|
+
}, u0 = (t) => {
|
|
4721
|
+
const l = typeof window < "u", a = (s) => l ? window.matchMedia(s).matches : !1, [c, i] = H(a(t));
|
|
4722
|
+
return l2(() => {
|
|
4723
|
+
if (!l) return;
|
|
4724
|
+
const s = window.matchMedia(t), n = () => {
|
|
4725
|
+
i(s.matches);
|
|
4470
4726
|
};
|
|
4471
|
-
return
|
|
4472
|
-
}, [t]),
|
|
4727
|
+
return i(s.matches), s.addEventListener ? (s.addEventListener("change", n), () => s.removeEventListener("change", n)) : (s.addListener(n), () => s.removeListener(n));
|
|
4728
|
+
}, [t]), c;
|
|
4473
4729
|
};
|
|
4474
4730
|
export {
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4731
|
+
A4 as Avatar,
|
|
4732
|
+
O4 as Badge,
|
|
4733
|
+
K4 as Banner,
|
|
4734
|
+
B2 as Button,
|
|
4735
|
+
g4 as ButtonLink,
|
|
4736
|
+
U4 as ButtonNav,
|
|
4737
|
+
H4 as ClipboardButton,
|
|
4738
|
+
v1 as CloseButton,
|
|
4739
|
+
i0 as Container,
|
|
4740
|
+
n0 as DocsLayout,
|
|
4741
|
+
r0 as FlexContainer,
|
|
4742
|
+
o0 as GlobalWrapper,
|
|
4743
|
+
A as Icon,
|
|
4744
|
+
I2 as IconButton,
|
|
4745
|
+
X4 as InlineMessage,
|
|
4746
|
+
C4 as MenuButton,
|
|
4747
|
+
e0 as PanelRow,
|
|
4748
|
+
t0 as Picture,
|
|
4749
|
+
x2 as ResponsiveContext,
|
|
4750
|
+
L4 as ResponsiveContextProvider,
|
|
4751
|
+
Z4 as SSOButton,
|
|
4752
|
+
Y4 as SectionMessage,
|
|
4753
|
+
F4 as SegmentedButton,
|
|
4754
|
+
l0 as SiteOptionDisplay,
|
|
4755
|
+
R4 as SitePlanLevelLabel,
|
|
4756
|
+
f4 as SiteTypeIcon,
|
|
4757
|
+
V4 as SiteTypeLabel,
|
|
4758
|
+
s0 as Skiplink,
|
|
4759
|
+
k2 as Spinner,
|
|
4760
|
+
v4 as SplitButton,
|
|
4761
|
+
G1 as StatusBadge,
|
|
4762
|
+
c0 as StatusIndicator,
|
|
4502
4763
|
Q2 as StatusTypeLabels,
|
|
4503
|
-
I4 as TagsInput,
|
|
4504
4764
|
d1 as Tally,
|
|
4505
|
-
W4 as
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4765
|
+
W4 as TextInput,
|
|
4766
|
+
G4 as Textarea,
|
|
4767
|
+
m0 as ThreeItemLayout,
|
|
4768
|
+
P4 as Toast,
|
|
4769
|
+
x4 as ToastType,
|
|
4770
|
+
Q4 as Toaster,
|
|
4771
|
+
T2 as Tooltip,
|
|
4772
|
+
d0 as TwoItemLayout,
|
|
4773
|
+
q4 as UtilityButton,
|
|
4774
|
+
a0 as VideoEmbed,
|
|
4775
|
+
B4 as iconList,
|
|
4776
|
+
F2 as isHeadingItemType,
|
|
4777
|
+
Z2 as isLinkItemType,
|
|
4778
|
+
z4 as isNodeItemType,
|
|
4779
|
+
V2 as isSeparatorItemType,
|
|
4780
|
+
h0 as useBreakpoint,
|
|
4781
|
+
p4 as useClipboard,
|
|
4782
|
+
l4 as useKeyPress,
|
|
4783
|
+
u0 as useMediaQuery,
|
|
4784
|
+
J4 as useToast,
|
|
4785
|
+
w1 as useWindowWidth
|
|
4523
4786
|
};
|
|
4524
4787
|
//# sourceMappingURL=index.js.map
|