@pantheon-systems/pds-toolkit-react 2.0.0-alpha.44 → 2.0.0-alpha.45
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/codemods/v1-to-v2/mappings.json +17 -0
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +1 -5
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-menu-button.css +1 -1
- package/dist/css/component-css/pds-split-button.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/layout-css/pds-app-layout.css +3 -6
- package/dist/css/layout-css/pds-index.css +3 -6
- package/dist/css/pds-components.css +3 -3
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +3 -6
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +150 -100
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +1 -0
- package/dist/layouts/AppLayout/AppLayout.d.ts +13 -1
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +15 -1
- package/dist/utilities/context-providers/ThemeContext/ThemeContext.d.ts +113 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from './libs/types/custom-types';
|
|
|
120
120
|
export * from './libs/types/input-types';
|
|
121
121
|
export * from './libs/types/layout-types';
|
|
122
122
|
export * from './libs/types/navigation-types';
|
|
123
|
+
export * from './utilities/context-providers/ThemeContext/ThemeContext';
|
|
123
124
|
export * from './utilities/grid/Grid';
|
|
124
125
|
export * from './utilities/grid/GridItem';
|
|
125
126
|
export * from './utilities/hooks/useBreakpoint/useBreakpoint';
|
package/dist/index.js
CHANGED
|
@@ -3328,12 +3328,13 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3328
3328
|
wordpress: "wordpress",
|
|
3329
3329
|
gatsby: "boltSolid",
|
|
3330
3330
|
nextjs: "boltSolid"
|
|
3331
|
-
}, yn = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a, isSplitButton: o = !1, label: s, menuItems: c,
|
|
3332
|
-
let { activeIndex:
|
|
3331
|
+
}, yn = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a, isSplitButton: o = !1, label: s, menuItems: c, onClick: l, size: u = "s", statusDot: d, tally: f, testId: p, undefinedLabel: m = "Unlabeled group", variant: g = "primary", ..._ }) => {
|
|
3332
|
+
let { activeIndex: v, floatingStyles: y, getFloatingProps: x, getItemProps: S, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setIsOpen: O, transitionStyles: k } = Qt({
|
|
3333
3333
|
enableClick: !n,
|
|
3334
3334
|
enableShift: !1,
|
|
3335
3335
|
enableTypeahead: !0,
|
|
3336
|
-
|
|
3336
|
+
offsetValue: 8,
|
|
3337
|
+
placement: "bottom-start",
|
|
3337
3338
|
role: "menu"
|
|
3338
3339
|
}), A = "pds-menu-button", j = a, [M] = h(`menu-button-${a}`), N = [], P = [];
|
|
3339
3340
|
((e) => {
|
|
@@ -3344,7 +3345,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3344
3345
|
let F = (e) => {
|
|
3345
3346
|
"disabled" in e && e.disabled || ("callback" in e && e.callback && e.callback(e), O(!1));
|
|
3346
3347
|
}, I = () => {
|
|
3347
|
-
|
|
3348
|
+
l && l();
|
|
3348
3349
|
}, L = (t, n, r = "", i = "") => {
|
|
3349
3350
|
let a = j + (r ? `-group-${r}` : "") + "-item-" + (n + 1), o = "id" in t && t.id ? t.id : a;
|
|
3350
3351
|
if (pn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -3363,7 +3364,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3363
3364
|
role: "presentation"
|
|
3364
3365
|
}, t.nodeContent);
|
|
3365
3366
|
if (hn(t) || "label" in t && t.label) {
|
|
3366
|
-
let n = P.indexOf(t), r =
|
|
3367
|
+
let n = P.indexOf(t), r = v === n, i = "isCritical" in t && t.isCritical, a = "criticalLabel" in t ? t.criticalLabel : void 0, s = [];
|
|
3367
3368
|
if ("label" in t && t.label && s.push(t.label), hn(t) && t.linkContent) {
|
|
3368
3369
|
let e = t.linkContent;
|
|
3369
3370
|
s.push(e.props.children);
|
|
@@ -3464,7 +3465,6 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3464
3465
|
let n = t.filter(mn || pn), r = n.length > 0, a = Z([
|
|
3465
3466
|
"pds-dropdown__panel",
|
|
3466
3467
|
`${A}__listbox`,
|
|
3467
|
-
l === "end" ? `${A}__listbox--end` : null,
|
|
3468
3468
|
i ? `${A}__listbox--icon-only` : null
|
|
3469
3469
|
]), o = 0;
|
|
3470
3470
|
if (r) {
|
|
@@ -3478,13 +3478,13 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3478
3478
|
id: M,
|
|
3479
3479
|
role: "menu",
|
|
3480
3480
|
style: {
|
|
3481
|
-
...
|
|
3481
|
+
...y,
|
|
3482
3482
|
...k,
|
|
3483
3483
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3484
3484
|
},
|
|
3485
3485
|
...x()
|
|
3486
3486
|
}, r.map((t, n) => {
|
|
3487
|
-
let r = N[n], i = "isHeading" in t[0] && t[0].isHeading, a = i ? `${j}-group-${r}-heading` : "", s = `${j}-group-${r}`, c = i ? null : `${
|
|
3487
|
+
let r = N[n], i = "isHeading" in t[0] && t[0].isHeading, a = i ? `${j}-group-${r}-heading` : "", s = `${j}-group-${r}`, c = i ? null : `${m} ${n + 1}`;
|
|
3488
3488
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
3489
3489
|
key: s,
|
|
3490
3490
|
"aria-label": c,
|
|
@@ -3502,7 +3502,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3502
3502
|
id: M,
|
|
3503
3503
|
role: "menu",
|
|
3504
3504
|
style: {
|
|
3505
|
-
...
|
|
3505
|
+
...y,
|
|
3506
3506
|
...k,
|
|
3507
3507
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3508
3508
|
},
|
|
@@ -3516,16 +3516,16 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3516
3516
|
return e.forEach((t, o) => {
|
|
3517
3517
|
t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
|
|
3518
3518
|
}), n.filter((e) => e.length > 0);
|
|
3519
|
-
}, V, H =
|
|
3519
|
+
}, V, H = u === "m" ? "s" : "xs", U = f ? /* @__PURE__ */ e.createElement(e.Fragment, null, s, /* @__PURE__ */ e.createElement(Bt, {
|
|
3520
3520
|
className: "pds-button__tally",
|
|
3521
|
-
label:
|
|
3521
|
+
label: f.label,
|
|
3522
3522
|
size: H,
|
|
3523
|
-
type:
|
|
3524
|
-
})) : s, ee =
|
|
3523
|
+
type: f.type
|
|
3524
|
+
})) : s, ee = f ? /* @__PURE__ */ e.createElement("span", { className: `${A}__accordion-label` }, s, /* @__PURE__ */ e.createElement(Bt, {
|
|
3525
3525
|
className: `${A}__tally`,
|
|
3526
|
-
label:
|
|
3526
|
+
label: f.label,
|
|
3527
3527
|
size: "s",
|
|
3528
|
-
type:
|
|
3528
|
+
type: f.type
|
|
3529
3529
|
})) : s;
|
|
3530
3530
|
if (i || (V = /* @__PURE__ */ e.createElement(Gt, {
|
|
3531
3531
|
ref: D.setReference,
|
|
@@ -3539,10 +3539,10 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3539
3539
|
id: j,
|
|
3540
3540
|
isSplitButton: o,
|
|
3541
3541
|
label: U,
|
|
3542
|
-
size:
|
|
3543
|
-
statusDot:
|
|
3542
|
+
size: u,
|
|
3543
|
+
statusDot: d,
|
|
3544
3544
|
type: "button",
|
|
3545
|
-
variant:
|
|
3545
|
+
variant: g,
|
|
3546
3546
|
...C({ onClick: I })
|
|
3547
3547
|
})), i) {
|
|
3548
3548
|
let t = Wt(s);
|
|
@@ -3557,7 +3557,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3557
3557
|
hasTooltip: !1,
|
|
3558
3558
|
iconName: r,
|
|
3559
3559
|
id: j,
|
|
3560
|
-
size:
|
|
3560
|
+
size: u,
|
|
3561
3561
|
type: "button",
|
|
3562
3562
|
variant: "standard",
|
|
3563
3563
|
...C({ onClick: I })
|
|
@@ -3570,15 +3570,15 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
3570
3570
|
G,
|
|
3571
3571
|
t
|
|
3572
3572
|
]),
|
|
3573
|
-
"data-testid":
|
|
3574
|
-
...
|
|
3573
|
+
"data-testid": p,
|
|
3574
|
+
..._
|
|
3575
3575
|
}, /* @__PURE__ */ e.createElement(dn, {
|
|
3576
3576
|
disabled: n,
|
|
3577
3577
|
label: W
|
|
3578
3578
|
}, /* @__PURE__ */ e.createElement("ul", {
|
|
3579
3579
|
className: `${A}__mobile-menu`,
|
|
3580
3580
|
role: "menu"
|
|
3581
|
-
}, c.map((e, t) => R(e, t)))), V, w && z(c));
|
|
3581
|
+
}, c.map((e, t) => R(e, t)))), V, w && /* @__PURE__ */ e.createElement(b, null, z(c)));
|
|
3582
3582
|
}, bn = ({ border: t = !1, className: n, defaultValue: r, disabled: i = !1, iconOnly: a = !1, id: o, label: s, onChange: c, options: l, size: u = "m", value: d, ...f }) => {
|
|
3583
3583
|
let p = "pds-segmented-button", m = u === "m" ? null : `${p}--${u}`, g = t ? `${p}--bordered` : null, _ = a ? `${p}--icon-only` : null;
|
|
3584
3584
|
a && process.env.NODE_ENV !== "production" && l.some((e) => !e.iconName) && console.warn("[SegmentedButton] `iconOnly` mode requires every option to have an `iconName`. Options without one will render an empty segment.");
|
|
@@ -11839,33 +11839,33 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11839
11839
|
window.removeEventListener("resize", n);
|
|
11840
11840
|
};
|
|
11841
11841
|
}, []), n;
|
|
11842
|
-
}, Ba = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g, mainBackground: _, mainContentElement: v = "main", mainContentMaxWidth: y = 1600, mainContentProps: b, onDrawerToggle: x, onSidebarToggle: S, scrollableContent: C, sidebarBackground: w, sidebarCollapsedWidth: T = 4, sidebarExpandedWidth: E = "15%", sidebarExpandedWidthMax: D = 18, sidebarExpandedWidthMin: O = 14.75, sidebarProps: k,
|
|
11843
|
-
let [
|
|
11842
|
+
}, Ba = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g, mainBackground: _, mainContentElement: v = "main", mainContentMaxWidth: y = 1600, mainContentProps: b, onDrawerToggle: x, onSidebarToggle: S, scrollableContent: C, sidebarBackground: w, sidebarCollapsedWidth: T = 4, sidebarExpandedWidth: E = "15%", sidebarExpandedWidthMax: D = 18, sidebarExpandedWidthMin: O = 14.75, sidebarProps: k, topOffset: A, ...j }) => {
|
|
11843
|
+
let [M, N] = h(d || !1);
|
|
11844
11844
|
l(() => {
|
|
11845
|
-
|
|
11845
|
+
N(d || !1);
|
|
11846
11846
|
}, [d]);
|
|
11847
|
-
let
|
|
11847
|
+
let P = "pds-app-layout", F = C ? `${P}--scrollable` : null, I = {
|
|
11848
11848
|
collapseSidebar: "Press [ to collapse sidebar",
|
|
11849
11849
|
drawerToggle: "Open account menu",
|
|
11850
11850
|
expandSidebar: "Press ] to expand sidebar",
|
|
11851
11851
|
skipToContent: "Skip to main content",
|
|
11852
11852
|
...g
|
|
11853
|
-
},
|
|
11853
|
+
}, L = b?.id ?? "app-layout-main", R = y == null ? void 0 : typeof y == "number" ? `${y}px` : y, z = A == null ? void 0 : typeof A == "number" ? `${A}px` : A, B = M ? `${T}rem` : `${E}`, V = {
|
|
11854
11854
|
backgroundColor: w || void 0,
|
|
11855
|
-
maxWidth:
|
|
11856
|
-
minWidth:
|
|
11857
|
-
width:
|
|
11858
|
-
},
|
|
11859
|
-
if (
|
|
11855
|
+
maxWidth: M ? void 0 : `${D}rem`,
|
|
11856
|
+
minWidth: M ? `${T}rem` : `${O}rem`,
|
|
11857
|
+
width: B
|
|
11858
|
+
}, H = m(!1), U = () => {
|
|
11859
|
+
if (H.current = !1, S) {
|
|
11860
11860
|
S();
|
|
11861
11861
|
return;
|
|
11862
11862
|
}
|
|
11863
|
-
|
|
11864
|
-
},
|
|
11863
|
+
N(!M);
|
|
11864
|
+
}, ee = za();
|
|
11865
11865
|
l(() => {
|
|
11866
|
-
|
|
11867
|
-
}, [
|
|
11868
|
-
let
|
|
11866
|
+
ee === "sm" && !M ? (H.current = !0, S ? S() : N(!0)) : ee !== "sm" && H.current && (H.current = !1, S ? S() : N(!1));
|
|
11867
|
+
}, [ee]);
|
|
11868
|
+
let W = s(() => {
|
|
11869
11869
|
let e = document.activeElement;
|
|
11870
11870
|
if (!e) return !1;
|
|
11871
11871
|
let t = e.tagName.toLowerCase();
|
|
@@ -11882,66 +11882,75 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11882
11882
|
].includes(t);
|
|
11883
11883
|
}
|
|
11884
11884
|
return e.isContentEditable;
|
|
11885
|
-
}, []),
|
|
11885
|
+
}, []), G = p && c;
|
|
11886
11886
|
bt("[", (e) => {
|
|
11887
|
-
|
|
11888
|
-
}, { enabled:
|
|
11889
|
-
|
|
11890
|
-
}, { enabled:
|
|
11891
|
-
let
|
|
11887
|
+
W() || (e.preventDefault(), M || U());
|
|
11888
|
+
}, { enabled: G }), bt("]", (e) => {
|
|
11889
|
+
W() || (e.preventDefault(), M && U());
|
|
11890
|
+
}, { enabled: G });
|
|
11891
|
+
let K = m(null);
|
|
11892
11892
|
f(() => {
|
|
11893
|
-
let e =
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11893
|
+
let e = K.current;
|
|
11894
|
+
if (!e) return;
|
|
11895
|
+
if (z != null) {
|
|
11896
|
+
e.style.setProperty("--pds-app-layout-top-offset", z);
|
|
11897
|
+
return;
|
|
11898
|
+
}
|
|
11899
|
+
let t = () => {
|
|
11900
|
+
let t = Math.max(0, Math.round(e.getBoundingClientRect().top + window.scrollY));
|
|
11901
|
+
e.style.setProperty("--pds-app-layout-top-offset", `${t}px`);
|
|
11897
11902
|
};
|
|
11898
|
-
|
|
11899
|
-
let
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
+
t();
|
|
11904
|
+
let n = e.parentElement, r = new ResizeObserver(t);
|
|
11905
|
+
r.observe(document.body);
|
|
11906
|
+
let i;
|
|
11907
|
+
return n && (r.observe(n), i = new MutationObserver(t), i.observe(n, { childList: !0 })), window.addEventListener("resize", t), () => {
|
|
11908
|
+
r.disconnect(), i?.disconnect(), window.removeEventListener("resize", t);
|
|
11909
|
+
};
|
|
11910
|
+
}, [z]);
|
|
11911
|
+
let q = Ie(t), te = q.__unslotted, ne = q.header, re = q.footer, ie = q.sidebar, ae = q.identity, J = q["content-top"], Y = q.navigation, oe = q["content-bottom"], X = ae || J || Y || oe, se = X ? /* @__PURE__ */ e.createElement(e.Fragment, null, (ae || o) && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-identity` }, ae, o && !M && /* @__PURE__ */ e.createElement(Jt, {
|
|
11903
11912
|
hasBorder: !0,
|
|
11904
|
-
ariaLabel:
|
|
11905
|
-
className: `${
|
|
11913
|
+
ariaLabel: I.drawerToggle,
|
|
11914
|
+
className: `${P}__drawer-toggle`,
|
|
11906
11915
|
iconName: "sidebar",
|
|
11907
11916
|
onClick: x,
|
|
11908
11917
|
size: "s"
|
|
11909
|
-
})),
|
|
11918
|
+
})), J && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-content-top` }, J), Y && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-navigation` }, Y), oe && /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-content-bottom` }, oe)) : ie, ce = i(v, {
|
|
11910
11919
|
...b,
|
|
11911
|
-
className: Z([`${
|
|
11912
|
-
id:
|
|
11920
|
+
className: Z([`${P}__main`, b?.className]),
|
|
11921
|
+
id: L,
|
|
11913
11922
|
tabIndex: b?.tabIndex ?? -1,
|
|
11914
11923
|
style: {
|
|
11915
11924
|
...b?.style,
|
|
11916
11925
|
backgroundColor: _ || void 0
|
|
11917
11926
|
}
|
|
11918
11927
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
11919
|
-
className: `${
|
|
11920
|
-
style: { maxWidth:
|
|
11921
|
-
},
|
|
11922
|
-
className: `${
|
|
11928
|
+
className: `${P}__main-inner`,
|
|
11929
|
+
style: { maxWidth: R }
|
|
11930
|
+
}, te)), le = /* @__PURE__ */ e.createElement("div", {
|
|
11931
|
+
className: `${P}__content-column`,
|
|
11923
11932
|
style: { backgroundColor: _ || void 0 }
|
|
11924
|
-
},
|
|
11925
|
-
className: `${
|
|
11926
|
-
style: { maxWidth:
|
|
11927
|
-
},
|
|
11933
|
+
}, ce, re && /* @__PURE__ */ e.createElement("div", { className: `${P}__footer` }, /* @__PURE__ */ e.createElement("div", {
|
|
11934
|
+
className: `${P}__footer-inner`,
|
|
11935
|
+
style: { maxWidth: R }
|
|
11936
|
+
}, re))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ie || X) && /* @__PURE__ */ e.createElement("div", {
|
|
11928
11937
|
...k,
|
|
11929
11938
|
className: Z([
|
|
11930
|
-
`${
|
|
11931
|
-
|
|
11939
|
+
`${P}__sidebar`,
|
|
11940
|
+
M ? `${P}__sidebar--collapsed` : null,
|
|
11932
11941
|
k?.className
|
|
11933
11942
|
]),
|
|
11934
|
-
style:
|
|
11943
|
+
style: V
|
|
11935
11944
|
}, c && /* @__PURE__ */ e.createElement(xt, {
|
|
11936
|
-
className: `${
|
|
11937
|
-
content:
|
|
11945
|
+
className: `${P}__sidebar-toggle-tooltip`,
|
|
11946
|
+
content: M ? I.expandSidebar : I.collapseSidebar,
|
|
11938
11947
|
customTrigger: /* @__PURE__ */ e.createElement("button", {
|
|
11939
|
-
"aria-expanded": !
|
|
11940
|
-
"aria-label":
|
|
11941
|
-
className: `${
|
|
11942
|
-
onClick:
|
|
11948
|
+
"aria-expanded": !M,
|
|
11949
|
+
"aria-label": M ? I.expandSidebar : I.collapseSidebar,
|
|
11950
|
+
className: `${P}__sidebar-toggle-button`,
|
|
11951
|
+
onClick: U,
|
|
11943
11952
|
type: "button"
|
|
11944
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
11953
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${P}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(Q, {
|
|
11945
11954
|
iconName: "angleLeft",
|
|
11946
11955
|
size: "s",
|
|
11947
11956
|
verticalAlign: "-1px"
|
|
@@ -11951,20 +11960,20 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11951
11960
|
crossAxis: -96
|
|
11952
11961
|
},
|
|
11953
11962
|
preferredPlacement: "right-end"
|
|
11954
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
11963
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${P}__sidebar-inner` }, se)), le);
|
|
11955
11964
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
11956
|
-
ref:
|
|
11965
|
+
ref: K,
|
|
11957
11966
|
className: Z([
|
|
11958
|
-
N,
|
|
11959
11967
|
P,
|
|
11960
|
-
|
|
11968
|
+
F,
|
|
11969
|
+
ne ? `${P}--has-header` : null,
|
|
11961
11970
|
n ?? ""
|
|
11962
11971
|
]),
|
|
11963
|
-
...
|
|
11972
|
+
...j
|
|
11964
11973
|
}, /* @__PURE__ */ e.createElement(zr, {
|
|
11965
|
-
destination:
|
|
11966
|
-
text:
|
|
11967
|
-
}),
|
|
11974
|
+
destination: L,
|
|
11975
|
+
text: I.skipToContent
|
|
11976
|
+
}), ne ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${P}__header` }, ne), /* @__PURE__ */ e.createElement("div", { className: `${P}__body` }, ue)) : ue), o && /* @__PURE__ */ e.createElement(ji, {
|
|
11968
11977
|
...a,
|
|
11969
11978
|
isOpen: u,
|
|
11970
11979
|
placement: "left",
|
|
@@ -12080,12 +12089,62 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12080
12089
|
},
|
|
12081
12090
|
...g
|
|
12082
12091
|
}, r);
|
|
12083
|
-
}, qa = (
|
|
12084
|
-
let
|
|
12085
|
-
|
|
12092
|
+
}, qa = (e) => {
|
|
12093
|
+
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12094
|
+
return l(() => {
|
|
12095
|
+
if (!t) return;
|
|
12096
|
+
let n = window.matchMedia(e), i = () => {
|
|
12097
|
+
r(n.matches);
|
|
12098
|
+
};
|
|
12099
|
+
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12100
|
+
}, [e]), n;
|
|
12101
|
+
}, Ja = [
|
|
12102
|
+
"light",
|
|
12103
|
+
"dark",
|
|
12104
|
+
"system"
|
|
12105
|
+
], Ya = (e) => typeof e == "string" && Ja.includes(e), Xa = r(null), Za = {
|
|
12106
|
+
resolvedTheme: "light",
|
|
12107
|
+
setTheme: () => {},
|
|
12108
|
+
theme: "light"
|
|
12109
|
+
}, Qa = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, $a = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
|
|
12110
|
+
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = qa("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
|
|
12111
|
+
l(() => {
|
|
12112
|
+
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12113
|
+
let e = window.localStorage.getItem(c);
|
|
12114
|
+
Ya(e) && m(e);
|
|
12115
|
+
} catch {}
|
|
12116
|
+
}, []), l(() => {
|
|
12117
|
+
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
12118
|
+
}, [i, b]);
|
|
12119
|
+
let x = {
|
|
12120
|
+
resolvedTheme: b,
|
|
12121
|
+
setTheme: s((e) => {
|
|
12122
|
+
if (!d && (m(e), o && typeof window < "u")) try {
|
|
12123
|
+
window.localStorage.setItem(c, e);
|
|
12124
|
+
} catch {}
|
|
12125
|
+
a?.(e);
|
|
12126
|
+
}, [
|
|
12127
|
+
d,
|
|
12128
|
+
a,
|
|
12129
|
+
o,
|
|
12130
|
+
c
|
|
12131
|
+
]),
|
|
12132
|
+
theme: v
|
|
12086
12133
|
};
|
|
12087
|
-
return
|
|
12088
|
-
|
|
12134
|
+
return /* @__PURE__ */ e.createElement(Xa.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Qa({
|
|
12135
|
+
defaultTheme: n,
|
|
12136
|
+
storageKey: c
|
|
12137
|
+
}) } }), t);
|
|
12138
|
+
}, eo = () => c(Xa) ?? Za, to = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12139
|
+
l(() => {
|
|
12140
|
+
let e = document.documentElement, t = () => {
|
|
12141
|
+
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12142
|
+
};
|
|
12143
|
+
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12144
|
+
}, [r]);
|
|
12145
|
+
let a = n ? /* @__PURE__ */ e.createElement($a, i, t) : t;
|
|
12146
|
+
return /* @__PURE__ */ e.createElement(vt, null, a);
|
|
12147
|
+
}, no = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12089
12148
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
12090
12149
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12091
12150
|
className: Z([
|
|
@@ -12099,7 +12158,7 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12099
12158
|
]),
|
|
12100
12159
|
...c
|
|
12101
12160
|
}, n);
|
|
12102
|
-
},
|
|
12161
|
+
}, ro = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12103
12162
|
let f = "pds-grid-item", p = [
|
|
12104
12163
|
l ? `${f}--sm-${l}` : null,
|
|
12105
12164
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12118,16 +12177,7 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12118
12177
|
]),
|
|
12119
12178
|
...d
|
|
12120
12179
|
}, t);
|
|
12121
|
-
},
|
|
12122
|
-
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12123
|
-
return l(() => {
|
|
12124
|
-
if (!t) return;
|
|
12125
|
-
let n = window.matchMedia(e), i = () => {
|
|
12126
|
-
r(n.matches);
|
|
12127
|
-
};
|
|
12128
|
-
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12129
|
-
}, [e]), n;
|
|
12130
|
-
}, Za = () => {
|
|
12180
|
+
}, io = () => {
|
|
12131
12181
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12132
12182
|
return l(() => {
|
|
12133
12183
|
if (!e) return;
|
|
@@ -12141,6 +12191,6 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12141
12191
|
}, []), t;
|
|
12142
12192
|
};
|
|
12143
12193
|
//#endregion
|
|
12144
|
-
export { kn as ActionCard, Ba as AppLayout, Ue as Avatar, We as Badge, gi as Banner, $n as BarChart, Vt as BranchDiff, Vr as Breadcrumb, Gt as Button, Kt as ButtonLink, Xr as ButtonNav, Lr as CTALink, On as Callout, An as Card, jn as CardSelect, vr as Checkbox, yr as CheckboxFieldset, br as CheckboxGroup, Yt as ClipboardButton, Xt as CloseButton, cr as CodeBlock, xr as Combobox, Cr as ComboboxMultiselect, Mn as CompactEmptyState, ur as ComparisonList, Qr as Container, Dr as Datepicker, Va as DocsLayout, ji as Drawer, tn as Dropdown, Zr as DropdownMenu, zi as ExpansionPanel, Bi as ExpansionPanelGroup, mr as FileDiff, Or as FileUpload, un as FilterButton, Ka as FlexContainer, Mi as FullScreenOverlay,
|
|
12194
|
+
export { kn as ActionCard, Ba as AppLayout, Ue as Avatar, We as Badge, gi as Banner, $n as BarChart, Vt as BranchDiff, Vr as Breadcrumb, Gt as Button, Kt as ButtonLink, Xr as ButtonNav, Lr as CTALink, On as Callout, An as Card, jn as CardSelect, vr as Checkbox, yr as CheckboxFieldset, br as CheckboxGroup, Yt as ClipboardButton, Xt as CloseButton, cr as CodeBlock, xr as Combobox, Cr as ComboboxMultiselect, Mn as CompactEmptyState, ur as ComparisonList, Qr as Container, Dr as Datepicker, Va as DocsLayout, ji as Drawer, tn as Dropdown, Zr as DropdownMenu, zi as ExpansionPanel, Bi as ExpansionPanelGroup, mr as FileDiff, Or as FileUpload, un as FilterButton, Ka as FlexContainer, Mi as FullScreenOverlay, to as GlobalWrapper, no as Grid, ro as GridItem, fr as HorizontalEmptyState, Q as Icon, Jt as IconButton, _r as IdentityBlock, vi as InlineMessage, kr as InputGroup, tr as LineChart, Rr as LinkNewWindow, xi as MIN_AUTO_CLOSE_DURATION, yn as MenuButton, Ni as Modal, $r as Navbar, Ii as Pagination, Li as PaginationCompact, Ri as PaginationMini, Vi as Panel, Hi as PanelList, Ui as PanelRow, qi as PantheonLogo, gr as PaymentIcon, Br as Picture, rr as PieChart, Cn as PlatformIcon, Xi as Popover, Qi as ProgressBar, ea as ProgressRing, ar as ProportionBar, Ar as RadioGroup, Tn as SSOButton, bi as SectionMessage, bn as SegmentedButton, Fn as Select, Pn as SelectOptionGroup, ei as SideNav, ni as SideNavGlobal, ti as SideNavGlobalItem, Ha as SidebarLayout, ta as SiteFooter, ii as SiteMenu, na as SiteOptionDisplay, ra as SiteSearch, vn as SiteTypeIcon, _n as SiteTypeLabel, Yn as Skeleton, zr as Skiplink, ha as SortableList, la as SortableListHeader, _a as SortableRow, Rt as Spinner, xn as SplitButton, zt as StatusBadge, va as StatusChecker, ya as StatusIndicator, fn as StatusTypeLabels, ba as StepList, xa as Stepper, Ua as StepperLayout, jr as Switch, oi as TabMenu, wa as Table, ja as TableOfContents, Ma as Tabs, La as Tag, Nr as TagsInput, Bt as Tally, Ir as TextInput, Pr as Textarea, Xa as ThemeContext, $a as ThemeContextProvider, ui as ThemeSwitcher, Wa as ThreeItemLayout, Oi as Toast, ki as ToastType, Ti as Toaster, Ci as ToasterContext, xt as Tooltip, ci as TreeNav, Ga as TwoItemLayout, di as UserMenu, Ra as UtilityBar, En as UtilityButton, pr as VerticalEmptyState, Ca as VerticalStepper, dr as VideoEmbed, fi as WorkspaceSelector, Tr as getPresetDateRange, Qa as getThemeInitScript, Be as iconList, mn as isHeadingItemType, hn as isLinkItemType, gn as isNodeItemType, pn as isSeparatorItemType, Na as tagColors, Pa as tagSolidColors, za as useBreakpoint, qt as useClipboard, Qt as useDropdown, bt as useKeyPress, qa as useMediaQuery, eo as useTheme, Ai as useToast, io as useWindowWidth };
|
|
12145
12195
|
|
|
12146
12196
|
//# sourceMappingURL=index.js.map
|