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