@pantheon-systems/pds-toolkit-react 2.0.0-alpha.51 → 2.0.0-alpha.52
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 +20 -8
- package/dist/components/StatusChecker/StatusChecker.d.ts +2 -1
- package/dist/components/cards/ActionCard/ActionCard.d.ts +2 -2
- package/dist/components/cards/Card/Card.d.ts +2 -2
- package/dist/components/cards/CardSelect/CardSelect.d.ts +6 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-action-card.css +1 -1
- package/dist/css/component-css/pds-card-select.css +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/pds-components.css +3 -3
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +70 -65
- package/dist/index.js.map +1 -1
- package/dist/libs/types/layout-types.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4099,42 +4099,43 @@ var gn = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
|
|
|
4099
4099
|
]),
|
|
4100
4100
|
...o
|
|
4101
4101
|
}, f && /* @__PURE__ */ e.createElement("div", { className: `${s}__image` }, f[0]), p && /* @__PURE__ */ e.createElement("div", { className: `${s}__main` }, p), m && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, m));
|
|
4102
|
-
}, Ln = ({ className: t, defaultValue: n, id: r, imageVariant: i = "bleed", label: a, labelDisplay: o = "left", layout: s = "auto", onChange: c, options: l,
|
|
4103
|
-
let
|
|
4104
|
-
o === "center" && (
|
|
4105
|
-
let [
|
|
4106
|
-
|
|
4107
|
-
},
|
|
4108
|
-
return s === "twoAcross" ?
|
|
4102
|
+
}, Ln = ({ className: t, defaultValue: n, id: r, imageVariant: i = "bleed", label: a, labelDisplay: o = "left", layout: s = "auto", onChange: c, options: l, padding: u = "standard", showIndicator: d = !0, size: f = "m", ...p }) => {
|
|
4103
|
+
let m = "pds-card-select", g = f === "m" ? null : `${m}--${f}`, _ = i === "bleed" ? null : `${m}--image-${i}`, v = d ? null : `${m}--no-indicator`, y = u === "standard" ? null : `${m}--pad-${u}`, b = `${m}__legend`;
|
|
4104
|
+
o === "center" && (b = `${m}__legend ${m}__legend--center`), o === "hidden" && (b = `${m}__legend visually-hidden`);
|
|
4105
|
+
let [x, S] = h(n), C = (e) => {
|
|
4106
|
+
S(e.currentTarget.value), c && c(e.currentTarget.value);
|
|
4107
|
+
}, w = l.length, T = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", E = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4", D = "";
|
|
4108
|
+
return s === "twoAcross" ? D = T : s === "threeAcross" ? D = E : s === "auto" && (D = w === 1 ? "pds-grid-item" : w % 3 == 0 ? E : w % 2 == 0 ? T : E), /* @__PURE__ */ e.createElement("fieldset", {
|
|
4109
4109
|
className: Z([
|
|
4110
|
-
p,
|
|
4111
4110
|
m,
|
|
4112
4111
|
g,
|
|
4113
4112
|
_,
|
|
4113
|
+
v,
|
|
4114
|
+
y,
|
|
4114
4115
|
t
|
|
4115
4116
|
]),
|
|
4116
4117
|
id: r,
|
|
4117
|
-
...
|
|
4118
|
-
}, /* @__PURE__ */ e.createElement("legend", { className:
|
|
4119
|
-
let i = t.id ? t.id : `${r}-option-${n}`, a =
|
|
4118
|
+
...p
|
|
4119
|
+
}, /* @__PURE__ */ e.createElement("legend", { className: b }, a), /* @__PURE__ */ e.createElement("div", { className: `${m}__options pds-grid pds-grid--gap-m` }, l.map((t, n) => {
|
|
4120
|
+
let i = t.id ? t.id : `${r}-option-${n}`, a = x === t.value, s = Re(e.isValidElement(t.children) && t.children.type === e.Fragment ? t.children.props.children : t.children), c = s.image, l = s.__unslotted || s.main;
|
|
4120
4121
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4121
4122
|
key: `${r}-option-${n}`,
|
|
4122
|
-
className: Z([`${
|
|
4123
|
+
className: Z([`${m}__option`, D])
|
|
4123
4124
|
}, /* @__PURE__ */ e.createElement("input", {
|
|
4124
4125
|
defaultChecked: a,
|
|
4125
4126
|
id: i,
|
|
4126
4127
|
name: r,
|
|
4127
|
-
onClick:
|
|
4128
|
+
onClick: C,
|
|
4128
4129
|
type: "radio",
|
|
4129
4130
|
value: t.value
|
|
4130
4131
|
}), /* @__PURE__ */ e.createElement("label", {
|
|
4131
|
-
className: Z([`${
|
|
4132
|
+
className: Z([`${m}__option-label`, a ? `${m}__option-label--selected` : null]),
|
|
4132
4133
|
htmlFor: i
|
|
4133
|
-
}, c && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4134
|
-
className: Z([`${
|
|
4134
|
+
}, c && /* @__PURE__ */ e.createElement("div", { className: `${m}__option-image` }, c[0]), /* @__PURE__ */ e.createElement("div", { className: `${m}__option-content` }, d && /* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-indicator` }, /* @__PURE__ */ e.createElement(Q, {
|
|
4135
|
+
className: Z([`${m}__option-icon`, a ? `${m}__option-icon--selected` : null]),
|
|
4135
4136
|
iconName: a ? "circleCheck" : "circle",
|
|
4136
4137
|
size: "l"
|
|
4137
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4138
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__option-body` }, /* @__PURE__ */ e.createElement("span", { className: Z([`${m}__option-label-text`, o === "hidden" ? "visually-hidden" : null]) }, t.label), l && /* @__PURE__ */ e.createElement("div", { className: `${m}__option-main` }, l)))));
|
|
4138
4139
|
})));
|
|
4139
4140
|
}, Rn = ({ className: t, heading: n, headingLevel: r = "span", iconName: i, linkContent: a, message: o, ...s }) => {
|
|
4140
4141
|
let c = "pds-compact-empty-state";
|
|
@@ -11170,7 +11171,11 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11170
11171
|
key: t.id,
|
|
11171
11172
|
className: `${w}__cell`
|
|
11172
11173
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11173
|
-
}, wa =
|
|
11174
|
+
}, wa = [
|
|
11175
|
+
"default",
|
|
11176
|
+
"working",
|
|
11177
|
+
"checked"
|
|
11178
|
+
], Ta = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11174
11179
|
let l = {
|
|
11175
11180
|
checkForUpdates: "Check for updates",
|
|
11176
11181
|
checking: "Checking...",
|
|
@@ -11217,7 +11222,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11217
11222
|
triggerIconColor: "default",
|
|
11218
11223
|
triggerIconSize: "s"
|
|
11219
11224
|
}), t === "left" && g));
|
|
11220
|
-
},
|
|
11225
|
+
}, Ea = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11221
11226
|
let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Wt, {
|
|
11222
11227
|
className: `${s}__spinner`,
|
|
11223
11228
|
size: "m"
|
|
@@ -11234,7 +11239,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11234
11239
|
]),
|
|
11235
11240
|
...a
|
|
11236
11241
|
}, r ? d : l);
|
|
11237
|
-
},
|
|
11242
|
+
}, Da = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11238
11243
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11239
11244
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
11240
11245
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11252,7 +11257,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11252
11257
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11253
11258
|
...a
|
|
11254
11259
|
}, l);
|
|
11255
|
-
},
|
|
11260
|
+
}, Oa = ({ className: t, steps: n, translatableLabels: r = {
|
|
11256
11261
|
step: "Step",
|
|
11257
11262
|
completed: "completed",
|
|
11258
11263
|
hasError: "has an error",
|
|
@@ -11341,7 +11346,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11341
11346
|
"data-steps": d,
|
|
11342
11347
|
...i
|
|
11343
11348
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11344
|
-
},
|
|
11349
|
+
}, ka = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11345
11350
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11346
11351
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11347
11352
|
className: Z([...p]),
|
|
@@ -11367,14 +11372,14 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11367
11372
|
size: "s",
|
|
11368
11373
|
variant: "highlight"
|
|
11369
11374
|
})))));
|
|
11370
|
-
},
|
|
11375
|
+
}, Aa = ({ className: t, labelStrings: n = {
|
|
11371
11376
|
step: "Step",
|
|
11372
11377
|
completed: "completed",
|
|
11373
11378
|
hasError: "has an error"
|
|
11374
11379
|
}, steps: r, ...i }) => {
|
|
11375
11380
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11376
11381
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11377
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11382
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ka, {
|
|
11378
11383
|
key: `s${i}`,
|
|
11379
11384
|
_isFirstStep: c,
|
|
11380
11385
|
"aria-current": a ? "step" : null,
|
|
@@ -11395,7 +11400,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11395
11400
|
className: Z([a, t ?? ""]),
|
|
11396
11401
|
...i
|
|
11397
11402
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11398
|
-
},
|
|
11403
|
+
}, ja = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: m = "No results found.", emptyStateMessage: g, footer: _, getPageSizeLabel: v = (e) => `Show ${e} rows per page`, getRowClassName: y, getRowId: b, getRowSelectDisabledReason: x, getSelectRowLabel: S = (e, t) => `Select row ${t}`, getSortLabel: C = (e) => `Sort by ${e}`, inspectedRowId: w, isLoading: T = !1, isRowSelectable: E = () => !0, itemsPerPage: D, loadingRowCount: O = 5, nextDetailPanelRowLabel: k = "Next row", onDetailPanelNext: A, onDetailPanelPrev: j, onPageChange: M, onPageSizeChange: N, onRowInspect: P, onRowSelectionChange: F, onSort: I, pageSizeOptions: L, pageSizeSelectLabel: R = "Rows per page", paginationLabels: z, panel: B, prevDetailPanelRowLabel: V = "Previous row", renderDetailPanel: H, renderDetailPanelFooter: U, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: K, sortKey: q, sortOrder: J, totalItemCount: ee, ...te }) => {
|
|
11399
11404
|
let ne = "pds-table", re = u(), ie = u(), ae = I !== void 0, Y = M !== void 0, oe = N !== void 0, se = Y || D !== void 0 || L !== void 0, [X, ce] = h({
|
|
11400
11405
|
key: a ?? "",
|
|
11401
11406
|
order: a === void 0 ? "asc" : o
|
|
@@ -11592,7 +11597,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11592
11597
|
variant: "standard"
|
|
11593
11598
|
}))))));
|
|
11594
11599
|
return B ? /* @__PURE__ */ e.createElement(qi, { padding: "none" }, qe) : qe;
|
|
11595
|
-
},
|
|
11600
|
+
}, Ma = [
|
|
11596
11601
|
" ",
|
|
11597
11602
|
"/",
|
|
11598
11603
|
".",
|
|
@@ -11610,7 +11615,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11610
11615
|
"=",
|
|
11611
11616
|
"|",
|
|
11612
11617
|
"~"
|
|
11613
|
-
],
|
|
11618
|
+
], Na = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Pa = (e) => {
|
|
11614
11619
|
let t = [];
|
|
11615
11620
|
return e.forEach((e) => {
|
|
11616
11621
|
let { id: n, innerText: r } = e;
|
|
@@ -11623,18 +11628,18 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11623
11628
|
title: r
|
|
11624
11629
|
});
|
|
11625
11630
|
}), t;
|
|
11626
|
-
},
|
|
11631
|
+
}, Fa = (e, t, n) => {
|
|
11627
11632
|
let [r, i] = h([]);
|
|
11628
11633
|
return l(() => {
|
|
11629
11634
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11630
11635
|
let e = Array.from(document.querySelectorAll(r));
|
|
11631
11636
|
e.forEach((e) => {
|
|
11632
|
-
|
|
11633
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11637
|
+
Ma.forEach((t) => {
|
|
11638
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(Na(t), "g"), "-"));
|
|
11634
11639
|
});
|
|
11635
11640
|
}), e.forEach((e, t) => {
|
|
11636
11641
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11637
|
-
}), i(
|
|
11642
|
+
}), i(Pa(e));
|
|
11638
11643
|
};
|
|
11639
11644
|
a();
|
|
11640
11645
|
let o = document.getElementById(e);
|
|
@@ -11650,7 +11655,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11650
11655
|
t,
|
|
11651
11656
|
n
|
|
11652
11657
|
]), { nestedHeadings: r };
|
|
11653
|
-
},
|
|
11658
|
+
}, Ia = (e, t) => {
|
|
11654
11659
|
let [n, r] = h(void 0), i = m({});
|
|
11655
11660
|
return l(() => {
|
|
11656
11661
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11669,7 +11674,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11669
11674
|
o.disconnect(), r(void 0);
|
|
11670
11675
|
};
|
|
11671
11676
|
}, [e, t]), n;
|
|
11672
|
-
},
|
|
11677
|
+
}, La = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
11673
11678
|
key: r.id,
|
|
11674
11679
|
className: `${n}__list-item`
|
|
11675
11680
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11685,8 +11690,8 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11685
11690
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11686
11691
|
href: `#${r.id}`,
|
|
11687
11692
|
onClick: (e) => i(e, r.id)
|
|
11688
|
-
}, r.title))))))),
|
|
11689
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11693
|
+
}, r.title))))))), Ra = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
11694
|
+
let d = "pds-toc", { nestedHeadings: f } = Fa(c, o, u()), p = Ia(c, o), m = (e) => {
|
|
11690
11695
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11691
11696
|
}, h = (e) => {
|
|
11692
11697
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11704,13 +11709,13 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11704
11709
|
baseClass: d,
|
|
11705
11710
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11706
11711
|
level: i
|
|
11707
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11712
|
+
}, a), /* @__PURE__ */ e.createElement(La, {
|
|
11708
11713
|
activeID: p,
|
|
11709
11714
|
baseClass: d,
|
|
11710
11715
|
headings: f,
|
|
11711
11716
|
onLinkClick: g
|
|
11712
11717
|
}));
|
|
11713
|
-
},
|
|
11718
|
+
}, za = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11714
11719
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11715
11720
|
l(() => {
|
|
11716
11721
|
a !== void 0 && d(a);
|
|
@@ -11821,7 +11826,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11821
11826
|
className: `${c}__panel-content`,
|
|
11822
11827
|
hidden: o !== u
|
|
11823
11828
|
}, r)))));
|
|
11824
|
-
},
|
|
11829
|
+
}, Ba = [
|
|
11825
11830
|
"orange",
|
|
11826
11831
|
"stone",
|
|
11827
11832
|
"gold",
|
|
@@ -11836,7 +11841,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11836
11841
|
"rose",
|
|
11837
11842
|
"red",
|
|
11838
11843
|
"silver"
|
|
11839
|
-
],
|
|
11844
|
+
], Va = [
|
|
11840
11845
|
"orange-solid",
|
|
11841
11846
|
"teal-solid",
|
|
11842
11847
|
"indigo-solid",
|
|
@@ -11847,8 +11852,8 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11847
11852
|
"critical-solid",
|
|
11848
11853
|
"info-solid",
|
|
11849
11854
|
"discovery-solid"
|
|
11850
|
-
],
|
|
11851
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
11855
|
+
], Ha = (e) => Ba[parseInt(_(e), 16) % Ba.length], Ua = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Wa = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
11856
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${Ha(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
11852
11857
|
p((e) => !e);
|
|
11853
11858
|
}, b, x, S;
|
|
11854
11859
|
if (r && !n && o(r)) {
|
|
@@ -11870,7 +11875,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11870
11875
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
11871
11876
|
className: `${m}__label`,
|
|
11872
11877
|
title: l
|
|
11873
|
-
}, u > 0 ?
|
|
11878
|
+
}, u > 0 ? Ua(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
11874
11879
|
"aria-label": `${a}: ${l}`,
|
|
11875
11880
|
className: `${m}__remove`,
|
|
11876
11881
|
onClick: () => {
|
|
@@ -11882,7 +11887,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11882
11887
|
iconName: "xmark",
|
|
11883
11888
|
size: "m"
|
|
11884
11889
|
})) : null);
|
|
11885
|
-
},
|
|
11890
|
+
}, Ga = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
11886
11891
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Re(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
11887
11892
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11888
11893
|
className: Z([
|
|
@@ -11893,7 +11898,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11893
11898
|
]),
|
|
11894
11899
|
...a
|
|
11895
11900
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
11896
|
-
},
|
|
11901
|
+
}, Ka = () => {
|
|
11897
11902
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = h(e ? t(window.innerWidth) : "lg");
|
|
11898
11903
|
return l(() => {
|
|
11899
11904
|
if (!e) return;
|
|
@@ -11904,7 +11909,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11904
11909
|
window.removeEventListener("resize", n);
|
|
11905
11910
|
};
|
|
11906
11911
|
}, []), n;
|
|
11907
|
-
},
|
|
11912
|
+
}, qa = ({ 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 }) => {
|
|
11908
11913
|
let [M, N] = h(d || !1);
|
|
11909
11914
|
l(() => {
|
|
11910
11915
|
N(d || !1);
|
|
@@ -11926,7 +11931,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11926
11931
|
return;
|
|
11927
11932
|
}
|
|
11928
11933
|
N(!M);
|
|
11929
|
-
}, W =
|
|
11934
|
+
}, W = Ka();
|
|
11930
11935
|
l(() => {
|
|
11931
11936
|
W === "sm" && !M ? (H.current = !0, S ? S() : N(!0)) : W !== "sm" && H.current && (H.current = !1, S ? S() : N(!1));
|
|
11932
11937
|
}, [W]);
|
|
@@ -12046,7 +12051,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12046
12051
|
!e && u && x && x();
|
|
12047
12052
|
}
|
|
12048
12053
|
}, r));
|
|
12049
|
-
},
|
|
12054
|
+
}, Ja = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12050
12055
|
let c = "pds-docs-layout", l = {
|
|
12051
12056
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12052
12057
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12064,7 +12069,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12064
12069
|
},
|
|
12065
12070
|
...s
|
|
12066
12071
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
12067
|
-
},
|
|
12072
|
+
}, Ya = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12068
12073
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Re(t);
|
|
12069
12074
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12070
12075
|
className: Z([u, n ?? ""]),
|
|
@@ -12078,7 +12083,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12078
12083
|
},
|
|
12079
12084
|
...l
|
|
12080
12085
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12081
|
-
},
|
|
12086
|
+
}, Xa = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12082
12087
|
let o = Re(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(ii, {
|
|
12083
12088
|
className: Z([
|
|
12084
12089
|
l,
|
|
@@ -12089,7 +12094,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12089
12094
|
...a
|
|
12090
12095
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12091
12096
|
return i ? /* @__PURE__ */ e.createElement(qi, null, d) : d;
|
|
12092
|
-
},
|
|
12097
|
+
}, Za = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12093
12098
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Re(t), u = [
|
|
12094
12099
|
l["first-item"],
|
|
12095
12100
|
l["second-item"],
|
|
@@ -12107,7 +12112,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12107
12112
|
key: n,
|
|
12108
12113
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12109
12114
|
}, t)));
|
|
12110
|
-
},
|
|
12115
|
+
}, Qa = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12111
12116
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
12112
12117
|
switch (i) {
|
|
12113
12118
|
case "equal":
|
|
@@ -12128,7 +12133,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12128
12133
|
]),
|
|
12129
12134
|
...o
|
|
12130
12135
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12131
|
-
},
|
|
12136
|
+
}, $a = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
|
|
12132
12137
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12133
12138
|
"--pds-flex-align-content": t,
|
|
12134
12139
|
"--pds-flex-align-items": n,
|
|
@@ -12154,7 +12159,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12154
12159
|
},
|
|
12155
12160
|
...g
|
|
12156
12161
|
}, r);
|
|
12157
|
-
},
|
|
12162
|
+
}, eo = (e) => {
|
|
12158
12163
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12159
12164
|
return l(() => {
|
|
12160
12165
|
if (!t) return;
|
|
@@ -12163,20 +12168,20 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12163
12168
|
};
|
|
12164
12169
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12165
12170
|
}, [e]), n;
|
|
12166
|
-
},
|
|
12171
|
+
}, to = [
|
|
12167
12172
|
"light",
|
|
12168
12173
|
"dark",
|
|
12169
12174
|
"system"
|
|
12170
|
-
],
|
|
12175
|
+
], no = (e) => typeof e == "string" && to.includes(e), ro = r(null), io = {
|
|
12171
12176
|
resolvedTheme: "light",
|
|
12172
12177
|
setTheme: () => {},
|
|
12173
12178
|
theme: "light"
|
|
12174
|
-
},
|
|
12175
|
-
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y =
|
|
12179
|
+
}, ao = ({ 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){}})();`, oo = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
|
|
12180
|
+
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = eo("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
|
|
12176
12181
|
l(() => {
|
|
12177
12182
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12178
12183
|
let e = window.localStorage.getItem(c);
|
|
12179
|
-
|
|
12184
|
+
no(e) && m(e);
|
|
12180
12185
|
} catch {}
|
|
12181
12186
|
}, []), l(() => {
|
|
12182
12187
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12196,20 +12201,20 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12196
12201
|
]),
|
|
12197
12202
|
theme: v
|
|
12198
12203
|
};
|
|
12199
|
-
return /* @__PURE__ */ e.createElement(
|
|
12204
|
+
return /* @__PURE__ */ e.createElement(ro.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ao({
|
|
12200
12205
|
defaultTheme: n,
|
|
12201
12206
|
storageKey: c
|
|
12202
12207
|
}) } }), t);
|
|
12203
|
-
},
|
|
12208
|
+
}, so = () => c(ro) ?? io, co = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12204
12209
|
l(() => {
|
|
12205
12210
|
let e = document.documentElement, t = () => {
|
|
12206
12211
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12207
12212
|
};
|
|
12208
12213
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12209
12214
|
}, [r]);
|
|
12210
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12215
|
+
let a = n ? /* @__PURE__ */ e.createElement(oo, i, t) : t;
|
|
12211
12216
|
return /* @__PURE__ */ e.createElement(bt, null, a);
|
|
12212
|
-
},
|
|
12217
|
+
}, lo = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12213
12218
|
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}`;
|
|
12214
12219
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12215
12220
|
className: Z([
|
|
@@ -12223,7 +12228,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12223
12228
|
]),
|
|
12224
12229
|
...c
|
|
12225
12230
|
}, n);
|
|
12226
|
-
},
|
|
12231
|
+
}, uo = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12227
12232
|
let f = "pds-grid-item", p = [
|
|
12228
12233
|
l ? `${f}--sm-${l}` : null,
|
|
12229
12234
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12242,7 +12247,7 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12242
12247
|
]),
|
|
12243
12248
|
...d
|
|
12244
12249
|
}, t);
|
|
12245
|
-
},
|
|
12250
|
+
}, fo = () => {
|
|
12246
12251
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12247
12252
|
return l(() => {
|
|
12248
12253
|
if (!e) return;
|
|
@@ -12256,6 +12261,6 @@ var Ca = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12256
12261
|
}, []), t;
|
|
12257
12262
|
};
|
|
12258
12263
|
//#endregion
|
|
12259
|
-
export { Fn as ActionCard,
|
|
12264
|
+
export { Fn as ActionCard, qa as AppLayout, Ge as Avatar, Ke as Badge, Si as Banner, ar as BarChart, qt as BranchDiff, qr as Breadcrumb, Zt as Button, Qt as ButtonLink, ni as ButtonNav, Ur as CTALink, Pn as Callout, In as Card, Ln as CardSelect, wr as Checkbox, Tr as CheckboxFieldset, Er as CheckboxGroup, tn as ClipboardButton, nn as CloseButton, mr as CodeBlock, Dr as Combobox, kr as ComboboxMultiselect, Rn as CompactEmptyState, gr as ComparisonList, ii as Container, Nr as Datepicker, Ja as DocsLayout, Li as Drawer, cn as Dropdown, ri as DropdownMenu, Gi as ExpansionPanel, Ki as ExpansionPanelGroup, br as FileDiff, Pr as FileUpload, gn as FilterButton, $a as FlexContainer, Ri as FullScreenOverlay, co as GlobalWrapper, lo as Grid, uo as GridItem, vr as HorizontalEmptyState, Q as Icon, en as IconButton, Cr as IdentityBlock, wi as InlineMessage, Fr as InputGroup, sr as LineChart, Wr as LinkNewWindow, Di as MIN_AUTO_CLOSE_DURATION, Tn as MenuButton, zi as Modal, ai as Navbar, Hi as Pagination, Ui as PaginationCompact, Wi as PaginationMini, qi as Panel, Ji as PanelList, Yi as PanelRow, $i as PantheonLogo, Sr as PaymentIcon, Kr as Picture, lr as PieChart, kn as PlatformIcon, na as Popover, ia as ProgressBar, oa as ProgressRing, dr as ProportionBar, Ir as RadioGroup, jn as SSOButton, Ei as SectionMessage, En as SegmentedButton, Vn as Select, Bn as SelectOptionGroup, oi as SideNav, ci as SideNavGlobal, si as SideNavGlobalItem, Ya as SidebarLayout, sa as SiteFooter, ui as SiteMenu, ca as SiteOptionDisplay, la as SiteSearch, wn as SiteTypeIcon, Cn as SiteTypeLabel, tr as Skeleton, Gr as Skiplink, xa as SortableList, ha as SortableListHeader, Ca as SortableRow, Wt as Spinner, Dn as SplitButton, Gt as StatusBadge, Ta as StatusChecker, Ea as StatusIndicator, vn as StatusTypeLabels, Da as StepList, Oa as Stepper, Xa as StepperLayout, Lr as Switch, fi as TabMenu, ja as Table, Ra as TableOfContents, za as Tabs, Wa as Tag, zr as TagsInput, Kt as Tally, Hr as TextInput, Br as Textarea, ro as ThemeContext, oo as ThemeContextProvider, gi as ThemeSwitcher, Za as ThreeItemLayout, Pi as Toast, Fi as ToastType, ji as Toaster, ki as ToasterContext, Dt as Tooltip, mi as TreeNav, Qa as TwoItemLayout, _i as UserMenu, Ga as UtilityBar, Mn as UtilityButton, yr as VerticalEmptyState, Aa as VerticalStepper, _r as VideoEmbed, vi as WorkspaceSelector, jr as getPresetDateRange, ao as getThemeInitScript, He as iconList, bn as isHeadingItemType, xn as isLinkItemType, Sn as isNodeItemType, yn as isSeparatorItemType, wa as statusCheckerStates, Ba as tagColors, Va as tagSolidColors, Ka as useBreakpoint, $t as useClipboard, an as useDropdown, Tt as useIsMobile, Et as useKeyPress, eo as useMediaQuery, so as useTheme, Ii as useToast, fo as useWindowWidth };
|
|
12260
12265
|
|
|
12261
12266
|
//# sourceMappingURL=index.js.map
|