@pantheon-systems/pds-toolkit-react 2.0.0-alpha.71 → 2.0.0-alpha.72

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/index.d.ts CHANGED
@@ -97,6 +97,7 @@ export * from './components/SortableList/SortableList';
97
97
  export * from './components/SortableList/SortableListHeader';
98
98
  export * from './components/SortableList/SortableRow';
99
99
  export * from './components/SortableList/types';
100
+ export * from './components/StatPanel/StatPanel';
100
101
  export * from './components/StatusChecker/StatusChecker';
101
102
  export * from './components/StatusIndicator/StatusIndicator';
102
103
  export * from './components/steppers/StepList/StepList';
@@ -113,6 +114,7 @@ export * from './libs/components/SiteOptionDisplay/SiteOptionDisplay';
113
114
  export * from './layouts/AppLayout/AppLayout';
114
115
  export * from './layouts/DocsLayout/DocsLayout';
115
116
  export * from './layouts/SidebarLayout/SidebarLayout';
117
+ export * from './layouts/StatPanelGroup/StatPanelGroup';
116
118
  export * from './layouts/StepperLayout/StepperLayout';
117
119
  export * from './layouts/ThreeItemLayout/ThreeItemLayout';
118
120
  export * from './layouts/TwoItemLayout/TwoItemLayout';
package/dist/index.js CHANGED
@@ -11605,11 +11605,40 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11605
11605
  key: t.id,
11606
11606
  className: `${w}__cell`
11607
11607
  }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
11608
- }, xo = [
11608
+ }, xo = ({ actionCallback: t, actionIcon: n, actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", stat: c, title: l, ...u }) => {
11609
+ let f = "pds-stat-panel", p = s === "neutral" ? null : `${f}--${s}`, m = d(), h = n && r && t;
11610
+ return /* @__PURE__ */ e.createElement("div", {
11611
+ "aria-labelledby": m,
11612
+ className: Z([
11613
+ f,
11614
+ p,
11615
+ i ?? ""
11616
+ ]),
11617
+ role: "group",
11618
+ ...u
11619
+ }, /* @__PURE__ */ e.createElement("div", { className: Z([`${f}__header`, h ? `${f}__header--has-action` : null]) }, /* @__PURE__ */ e.createElement("span", {
11620
+ className: `${f}__title`,
11621
+ id: m
11622
+ }, l), h && /* @__PURE__ */ e.createElement(An, {
11623
+ ariaLabel: r,
11624
+ className: `${f}__action`,
11625
+ iconName: n,
11626
+ onClick: t,
11627
+ size: "s"
11628
+ })), /* @__PURE__ */ e.createElement("div", { className: `${f}__body` }, o === "spinner" ? /* @__PURE__ */ e.createElement(bn, {
11629
+ isInline: !0,
11630
+ className: `${f}__icon ${f}__icon--spinner`,
11631
+ size: "xl"
11632
+ }) : /* @__PURE__ */ e.createElement(Q, {
11633
+ className: `${f}__icon`,
11634
+ iconName: o,
11635
+ size: "l"
11636
+ }), /* @__PURE__ */ e.createElement("span", { className: `${f}__stat` }, c)), a && /* @__PURE__ */ e.createElement("p", { className: `${f}__description` }, a));
11637
+ }, So = [
11609
11638
  "default",
11610
11639
  "working",
11611
11640
  "checked"
11612
- ], So = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11641
+ ], Co = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11613
11642
  let l = {
11614
11643
  checkForUpdates: "Check for updates",
11615
11644
  checking: "Checking...",
@@ -11656,7 +11685,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11656
11685
  triggerIconColor: "default",
11657
11686
  triggerIconSize: "s"
11658
11687
  }), t === "left" && g));
11659
- }, Co = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11688
+ }, wo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11660
11689
  let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
11661
11690
  className: `${o}__spinner`,
11662
11691
  size: "m"
@@ -11673,7 +11702,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11673
11702
  ]),
11674
11703
  ...a
11675
11704
  }, r ? d : l);
11676
- }, wo = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11705
+ }, To = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11677
11706
  let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
11678
11707
  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`;
11679
11708
  return /* @__PURE__ */ e.createElement("li", {
@@ -11691,7 +11720,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11691
11720
  style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
11692
11721
  ...a
11693
11722
  }, l);
11694
- }, To = ({ className: t, steps: n, translatableLabels: r = {
11723
+ }, Eo = ({ className: t, steps: n, translatableLabels: r = {
11695
11724
  step: "Step",
11696
11725
  completed: "completed",
11697
11726
  hasError: "has an error",
@@ -11780,7 +11809,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11780
11809
  "data-steps": d,
11781
11810
  ...i
11782
11811
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, m)));
11783
- }, Eo = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11812
+ }, Do = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11784
11813
  let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
11785
11814
  return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
11786
11815
  className: Z([...p]),
@@ -11806,14 +11835,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11806
11835
  size: "s",
11807
11836
  variant: "highlight"
11808
11837
  })))));
11809
- }, Do = ({ className: t, labelStrings: n = {
11838
+ }, Oo = ({ className: t, labelStrings: n = {
11810
11839
  step: "Step",
11811
11840
  completed: "completed",
11812
11841
  hasError: "has an error"
11813
11842
  }, steps: r, ...i }) => {
11814
11843
  let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
11815
11844
  let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
11816
- return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Eo, {
11845
+ return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Do, {
11817
11846
  key: `s${i}`,
11818
11847
  _isFirstStep: c,
11819
11848
  "aria-current": a ? "step" : null,
@@ -11834,7 +11863,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11834
11863
  className: Z([a, t ?? ""]),
11835
11864
  ...i
11836
11865
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11837
- }, Oo = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
11866
+ }, ko = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
11838
11867
  let ae = "pds-table", oe = d(), Y = d(), se = h(null), X = z !== void 0, ce = F !== void 0, le = I !== void 0, ue = ce || O !== void 0 || B !== void 0, de = q.length > 0 || ce && (re ?? 0) > 0, [fe, pe] = g({
11839
11868
  key: a ?? "",
11840
11869
  order: a === void 0 ? "asc" : o
@@ -12059,7 +12088,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12059
12088
  variant: "standard"
12060
12089
  }))))));
12061
12090
  return U ? /* @__PURE__ */ e.createElement(La, { padding: "none" }, et) : et;
12062
- }, ko = [
12091
+ }, Ao = [
12063
12092
  " ",
12064
12093
  "/",
12065
12094
  ".",
@@ -12077,7 +12106,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12077
12106
  "=",
12078
12107
  "|",
12079
12108
  "~"
12080
- ], Ao = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jo = (e) => {
12109
+ ], jo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Mo = (e) => {
12081
12110
  let t = [];
12082
12111
  return e.forEach((e) => {
12083
12112
  let { id: n, innerText: r } = e;
@@ -12090,18 +12119,18 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12090
12119
  title: r
12091
12120
  });
12092
12121
  }), t;
12093
- }, Mo = (e, t, n) => {
12122
+ }, No = (e, t, n) => {
12094
12123
  let [r, i] = g([]);
12095
12124
  return u(() => {
12096
12125
  let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
12097
12126
  let e = Array.from(document.querySelectorAll(r));
12098
12127
  e.forEach((e) => {
12099
- ko.forEach((t) => {
12100
- e.id.includes(t) && (e.id = e.id.replace(new RegExp(Ao(t), "g"), "-"));
12128
+ Ao.forEach((t) => {
12129
+ e.id.includes(t) && (e.id = e.id.replace(new RegExp(jo(t), "g"), "-"));
12101
12130
  });
12102
12131
  }), e.forEach((e, t) => {
12103
12132
  e.id || (e.id = `${n}-item-${t}`);
12104
- }), i(jo(e));
12133
+ }), i(Mo(e));
12105
12134
  };
12106
12135
  a();
12107
12136
  let o = document.getElementById(e);
@@ -12117,7 +12146,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12117
12146
  t,
12118
12147
  n
12119
12148
  ]), { nestedHeadings: r };
12120
- }, No = (e, t) => {
12149
+ }, Po = (e, t) => {
12121
12150
  let [n, r] = g(void 0), i = h({});
12122
12151
  return u(() => {
12123
12152
  let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
@@ -12136,7 +12165,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12136
12165
  o.disconnect(), r(void 0);
12137
12166
  };
12138
12167
  }, [e, t]), n;
12139
- }, Po = ({ 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", {
12168
+ }, Fo = ({ 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", {
12140
12169
  key: r.id,
12141
12170
  className: `${n}__list-item`
12142
12171
  }, /* @__PURE__ */ e.createElement("a", {
@@ -12152,8 +12181,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12152
12181
  className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
12153
12182
  href: `#${r.id}`,
12154
12183
  onClick: (e) => i(e, r.id)
12155
- }, r.title))))))), Fo = ({ 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 }) => {
12156
- let u = "pds-toc", { nestedHeadings: f } = Mo(c, o, d()), p = No(c, o), m = (e) => {
12184
+ }, r.title))))))), Io = ({ 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 }) => {
12185
+ let u = "pds-toc", { nestedHeadings: f } = No(c, o, d()), p = Po(c, o), m = (e) => {
12157
12186
  typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
12158
12187
  }, h = (e) => {
12159
12188
  document.querySelector(`#${e}`)?.scrollIntoView({
@@ -12171,13 +12200,13 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12171
12200
  baseClass: u,
12172
12201
  className: `${s ? "" : "visually-hidden"}`,
12173
12202
  level: i
12174
- }, a), /* @__PURE__ */ e.createElement(Po, {
12203
+ }, a), /* @__PURE__ */ e.createElement(Fo, {
12175
12204
  activeID: p,
12176
12205
  baseClass: u,
12177
12206
  headings: f,
12178
12207
  onLinkClick: g
12179
12208
  }));
12180
- }, Io = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
12209
+ }, Lo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
12181
12210
  let c = "pds-tabs", [l, d] = g(a ?? r);
12182
12211
  u(() => {
12183
12212
  a !== void 0 && d(a);
@@ -12291,7 +12320,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12291
12320
  className: `${c}__panel-content`,
12292
12321
  hidden: o !== l
12293
12322
  }, r)))));
12294
- }, Lo = [
12323
+ }, Ro = [
12295
12324
  "orange",
12296
12325
  "stone",
12297
12326
  "gold",
@@ -12305,7 +12334,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12305
12334
  "magenta",
12306
12335
  "rose",
12307
12336
  "red"
12308
- ], Ro = [
12337
+ ], zo = [
12309
12338
  "orange-solid",
12310
12339
  "teal-solid",
12311
12340
  "indigo-solid",
@@ -12315,14 +12344,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12315
12344
  "lime-solid",
12316
12345
  "sky-solid",
12317
12346
  "slate-solid"
12318
- ], zo = [
12347
+ ], Bo = [
12319
12348
  "success-solid",
12320
12349
  "warning-solid",
12321
12350
  "critical-solid",
12322
12351
  "info-solid",
12323
12352
  "discovery-solid"
12324
- ], Bo = [...Ro, ...zo], Vo = [...Lo, ...Ro], Ho = (e) => Vo[parseInt(v(e), 16) % Vo.length], Uo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Wo = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
12325
- let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Ho(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
12353
+ ], Vo = [...zo, ...Bo], Ho = [...Ro, ...zo], Uo = (e) => Ho[parseInt(v(e), 16) % Ho.length], Wo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Go = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
12354
+ let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Uo(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
12326
12355
  p((e) => !e);
12327
12356
  }, b, x, S;
12328
12357
  if (r && !n && s(r)) {
@@ -12344,7 +12373,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12344
12373
  }, /* @__PURE__ */ e.createElement("span", {
12345
12374
  className: `${m}__label`,
12346
12375
  title: l
12347
- }, u > 0 ? Uo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12376
+ }, u > 0 ? Wo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12348
12377
  "aria-label": `${a}: ${l}`,
12349
12378
  className: `${m}__remove`,
12350
12379
  onClick: () => {
@@ -12356,7 +12385,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12356
12385
  iconName: "xmark",
12357
12386
  size: "m"
12358
12387
  })) : null);
12359
- }, Go = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12388
+ }, Ko = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12360
12389
  let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = ft(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
12361
12390
  return /* @__PURE__ */ e.createElement("div", {
12362
12391
  className: Z([
@@ -12367,7 +12396,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12367
12396
  ]),
12368
12397
  ...a
12369
12398
  }, /* @__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)));
12370
- }, Ko = () => {
12399
+ }, qo = () => {
12371
12400
  let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = g(e ? t(window.innerWidth) : "lg");
12372
12401
  return u(() => {
12373
12402
  if (!e) return;
@@ -12378,7 +12407,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12378
12407
  window.removeEventListener("resize", n);
12379
12408
  };
12380
12409
  }, []), n;
12381
- }, qo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12410
+ }, Jo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12382
12411
  let [j, M] = g(l || !1);
12383
12412
  u(() => {
12384
12413
  M(l || !1);
@@ -12400,7 +12429,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12400
12429
  return;
12401
12430
  }
12402
12431
  M(!j);
12403
- }, U = Ko();
12432
+ }, U = qo();
12404
12433
  u(() => {
12405
12434
  U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
12406
12435
  }, [U]);
@@ -12503,7 +12532,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12503
12532
  !e && c && b && b();
12504
12533
  }
12505
12534
  }, r));
12506
- }, Jo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12535
+ }, Yo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12507
12536
  let c = "pds-docs-layout", l = {
12508
12537
  "--docs-sidebar-max-width": `${i}rem`,
12509
12538
  "--docs-sidebar-min-width": `${a}rem`,
@@ -12521,7 +12550,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12521
12550
  },
12522
12551
  ...s
12523
12552
  }, 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));
12524
- }, Yo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12553
+ }, Xo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12525
12554
  let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
12526
12555
  return /* @__PURE__ */ e.createElement("div", {
12527
12556
  className: Z([u, n ?? ""]),
@@ -12535,7 +12564,26 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12535
12564
  },
12536
12565
  ...l
12537
12566
  }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
12538
- }, Xo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12567
+ }, Zo = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
12568
+ let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
12569
+ "--max-columns": i,
12570
+ ...a
12571
+ };
12572
+ return /* @__PURE__ */ e.createElement("div", { className: `${s}-container` }, /* @__PURE__ */ e.createElement("div", {
12573
+ className: Z([
12574
+ s,
12575
+ c,
12576
+ r ?? ""
12577
+ ]),
12578
+ role: "list",
12579
+ style: l,
12580
+ ...o
12581
+ }, t.map(n, (t, n) => /* @__PURE__ */ e.createElement("div", {
12582
+ key: n,
12583
+ className: `${s}__item`,
12584
+ role: "listitem"
12585
+ }, t))));
12586
+ }, Qo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12539
12587
  let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Ji, {
12540
12588
  className: Z([
12541
12589
  l,
@@ -12546,7 +12594,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12546
12594
  ...a
12547
12595
  }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
12548
12596
  return i ? /* @__PURE__ */ e.createElement(La, null, d) : d;
12549
- }, Zo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12597
+ }, $o = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12550
12598
  let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = ft(t), u = [
12551
12599
  l["first-item"],
12552
12600
  l["second-item"],
@@ -12564,7 +12612,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12564
12612
  key: n,
12565
12613
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
12566
12614
  }, t)));
12567
- }, Qo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12615
+ }, es = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12568
12616
  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;
12569
12617
  switch (i) {
12570
12618
  case "equal":
@@ -12585,7 +12633,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12585
12633
  ]),
12586
12634
  ...o
12587
12635
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
12588
- }, $o = ({ 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 }) => {
12636
+ }, ts = ({ 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 }) => {
12589
12637
  let _ = "pds-flex", v = `${_}-container`, y = {
12590
12638
  "--pds-flex-align-content": t,
12591
12639
  "--pds-flex-align-items": n,
@@ -12611,7 +12659,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12611
12659
  },
12612
12660
  ...g
12613
12661
  }, r);
12614
- }, es = (e) => {
12662
+ }, ns = (e) => {
12615
12663
  let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
12616
12664
  return u(() => {
12617
12665
  if (!t) return;
@@ -12620,20 +12668,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12620
12668
  };
12621
12669
  return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
12622
12670
  }, [e]), n;
12623
- }, ts = [
12671
+ }, rs = [
12624
12672
  "light",
12625
12673
  "dark",
12626
12674
  "system"
12627
- ], ns = (e) => typeof e == "string" && ts.includes(e), rs = i(null), is = {
12675
+ ], is = (e) => typeof e == "string" && rs.includes(e), as = i(null), os = {
12628
12676
  resolvedTheme: "light",
12629
12677
  setTheme: () => {},
12630
12678
  theme: "light"
12631
- }, as = ({ 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){}})();`, os = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
12632
- let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = es("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
12679
+ }, ss = ({ 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){}})();`, cs = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
12680
+ let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = ns("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
12633
12681
  u(() => {
12634
12682
  if (_(!0), !(d || !o || typeof window > "u")) try {
12635
12683
  let e = window.localStorage.getItem(s);
12636
- ns(e) && m(e);
12684
+ is(e) && m(e);
12637
12685
  } catch {}
12638
12686
  }, []), u(() => {
12639
12687
  typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
@@ -12653,20 +12701,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12653
12701
  ]),
12654
12702
  theme: v
12655
12703
  };
12656
- return /* @__PURE__ */ e.createElement(rs.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: as({
12704
+ return /* @__PURE__ */ e.createElement(as.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ss({
12657
12705
  defaultTheme: n,
12658
12706
  storageKey: s
12659
12707
  }) } }), t);
12660
- }, ss = () => l(rs) ?? is, cs = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12708
+ }, ls = () => l(as) ?? os, us = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12661
12709
  u(() => {
12662
12710
  let e = document.documentElement, t = () => {
12663
12711
  window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
12664
12712
  };
12665
12713
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12666
12714
  }, [r]);
12667
- let a = n ? /* @__PURE__ */ e.createElement(os, i, t) : t;
12715
+ let a = n ? /* @__PURE__ */ e.createElement(cs, i, t) : t;
12668
12716
  return /* @__PURE__ */ e.createElement($t, null, a);
12669
- }, ls = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12717
+ }, ds = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12670
12718
  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}`;
12671
12719
  return /* @__PURE__ */ e.createElement("div", {
12672
12720
  className: Z([
@@ -12680,7 +12728,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12680
12728
  ]),
12681
12729
  ...c
12682
12730
  }, n);
12683
- }, us = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12731
+ }, fs = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12684
12732
  let f = "pds-grid-item", p = [
12685
12733
  l ? `${f}--sm-${l}` : null,
12686
12734
  c ? `${f}--md-${c}` : null,
@@ -12699,7 +12747,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12699
12747
  ]),
12700
12748
  ...d
12701
12749
  }, t);
12702
- }, ds = (e, t, n) => {
12750
+ }, ps = (e, t, n) => {
12703
12751
  let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [l, d] = g(!1), f = c((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
12704
12752
  r,
12705
12753
  i,
@@ -12723,7 +12771,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12723
12771
  m,
12724
12772
  a
12725
12773
  ]), l;
12726
- }, fs = () => {
12774
+ }, ms = () => {
12727
12775
  let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
12728
12776
  return u(() => {
12729
12777
  if (!e) return;
@@ -12737,6 +12785,6 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12737
12785
  }, []), t;
12738
12786
  };
12739
12787
  //#endregion
12740
- export { ur as ActionCard, qo as AppLayout, bt as Avatar, xt as Badge, fa as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Jo as DocsLayout, Da as Drawer, Ln as Dropdown, Ki as DropdownMenu, Fa as ExpansionPanel, Ia as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, $o as FlexContainer, Oa as FullScreenOverlay, cs as GlobalWrapper, ls as Grid, us as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ma as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, _a as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ka as Modal, Yi as Navbar, Ma as Pagination, Na as PaginationChapter, Pa as PaginationCompact, La as Panel, Ra as PanelList, za as PanelRow, Ba as PanelStack, Wa as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, qa as Popover, Ya as ProgressBar, Za as ProgressRing, zr as ProportionBar, Ei as RadioGroup, eo as ResultCount, or as SSOButton, ga as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, Xi as SideNav, Qi as SideNavGlobal, Zi as SideNavGlobalItem, Yo as SidebarLayout, ro as SiteFooter, ea as SiteMenu, io as SiteOptionDisplay, ao as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, vo as SortableList, fo as SortableListHeader, bo as SortableRow, bn as Spinner, rr as SplitButton, xn as StatusBadge, So as StatusChecker, Co as StatusIndicator, Jn as StatusTypeLabels, wo as StepList, To as Stepper, Xo as StepperLayout, Di as Switch, na as TabMenu, Oo as Table, Fo as TableOfContents, Io as Tabs, Wo as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, rs as ThemeContext, os as ThemeContextProvider, oa as ThemeSwitcher, Zo as ThreeItemLayout, li as Timepicker, wa as Toast, Ta as ToastType, xa as Toaster, ya as ToasterContext, nn as Tooltip, ia as TreeNav, Qo as TwoItemLayout, sa as UserMenu, Go as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Do as VerticalStepper, Kr as VideoEmbed, ca as WorkspaceSelector, yi as getPresetDateRange, as as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, xo as statusCheckerStates, Lo as tagColors, Bo as tagSolidColors, Ro as tagSolidHueColors, zo as tagSolidStatusColors, Ko as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, ds as useKeyPress, tn as useKeyboardShortcut, es as useMediaQuery, ss as useTheme, Ea as useToast, fs as useWindowWidth };
12788
+ export { ur as ActionCard, Jo as AppLayout, bt as Avatar, xt as Badge, fa as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Yo as DocsLayout, Da as Drawer, Ln as Dropdown, Ki as DropdownMenu, Fa as ExpansionPanel, Ia as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, ts as FlexContainer, Oa as FullScreenOverlay, us as GlobalWrapper, ds as Grid, fs as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ma as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, _a as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ka as Modal, Yi as Navbar, Ma as Pagination, Na as PaginationChapter, Pa as PaginationCompact, La as Panel, Ra as PanelList, za as PanelRow, Ba as PanelStack, Wa as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, qa as Popover, Ya as ProgressBar, Za as ProgressRing, zr as ProportionBar, Ei as RadioGroup, eo as ResultCount, or as SSOButton, ga as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, Xi as SideNav, Qi as SideNavGlobal, Zi as SideNavGlobalItem, Xo as SidebarLayout, ro as SiteFooter, ea as SiteMenu, io as SiteOptionDisplay, ao as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, vo as SortableList, fo as SortableListHeader, bo as SortableRow, bn as Spinner, rr as SplitButton, xo as StatPanel, Zo as StatPanelGroup, xn as StatusBadge, Co as StatusChecker, wo as StatusIndicator, Jn as StatusTypeLabels, To as StepList, Eo as Stepper, Qo as StepperLayout, Di as Switch, na as TabMenu, ko as Table, Io as TableOfContents, Lo as Tabs, Go as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, as as ThemeContext, cs as ThemeContextProvider, oa as ThemeSwitcher, $o as ThreeItemLayout, li as Timepicker, wa as Toast, Ta as ToastType, xa as Toaster, ya as ToasterContext, nn as Tooltip, ia as TreeNav, es as TwoItemLayout, sa as UserMenu, Ko as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Oo as VerticalStepper, Kr as VideoEmbed, ca as WorkspaceSelector, yi as getPresetDateRange, ss as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, So as statusCheckerStates, Ro as tagColors, Vo as tagSolidColors, zo as tagSolidHueColors, Bo as tagSolidStatusColors, qo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, ps as useKeyPress, tn as useKeyboardShortcut, ns as useMediaQuery, ls as useTheme, Ea as useToast, ms as useWindowWidth };
12741
12789
 
12742
12790
  //# sourceMappingURL=index.js.map