@pantheon-systems/pds-toolkit-react 2.0.0-alpha.40 → 2.0.0-alpha.41

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.js CHANGED
@@ -3575,53 +3575,61 @@ var ln = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
3575
3575
  className: `${A}__mobile-menu`,
3576
3576
  role: "menu"
3577
3577
  }, c.map((e, t) => R(e, t)))), V, w && z(c));
3578
- }, yn = ({ className: t, defaultValue: n, disabled: r = !1, id: i, label: a, onChange: o, options: s, size: c = "s", value: l, ...u }) => {
3579
- let d = "pds-segmented-button", f = c === "s" ? null : `${d}--${c}`, p = l !== void 0, [m, g] = h(n === void 0 ? "" : n), _ = (e) => {
3580
- g(e.target.value), o?.(e.target.value);
3578
+ }, yn = ({ 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 }) => {
3579
+ let p = "pds-segmented-button", m = u === "m" ? null : `${p}--${u}`, g = t ? `${p}--bordered` : null, _ = a ? `${p}--icon-only` : null;
3580
+ 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.");
3581
+ let v = d !== void 0, [y, b] = h(r === void 0 ? "" : r), x = (e) => {
3582
+ b(e.target.value), c?.(e.target.value);
3581
3583
  };
3582
- return s.length < 2 || s.length > 6 ? null : /* @__PURE__ */ e.createElement("fieldset", {
3584
+ return l.length < 2 || l.length > 6 ? null : /* @__PURE__ */ e.createElement("fieldset", {
3583
3585
  className: Z([
3584
- d,
3585
- f,
3586
- t ?? ""
3586
+ p,
3587
+ m,
3588
+ g,
3589
+ _,
3590
+ n ?? ""
3587
3591
  ]),
3588
- ...u
3589
- }, /* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, a), /* @__PURE__ */ e.createElement("div", { className: `${d}__track` }, s.map((t, n) => {
3590
- let a = p ? l === t.value : m === t.value, o = r || !!t.disabled, s = t.id ?? `${i}-option-${n}`;
3592
+ ...f
3593
+ }, /* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement("div", { className: `${p}__track` }, l.map((t, n) => {
3594
+ let r = v ? d === t.value : y === t.value, s = i || !!t.disabled, c = t.id ?? `${o}-option-${n}`, l = a && !s, u = /* @__PURE__ */ e.createElement(e.Fragment, null, t.isLoading && /* @__PURE__ */ e.createElement(Lt, {
3595
+ isInline: !0,
3596
+ className: `${p}__spinner`,
3597
+ color: "currentColor",
3598
+ size: "m"
3599
+ }), t.iconName && !t.isLoading && /* @__PURE__ */ e.createElement(Q, {
3600
+ className: `${p}__icon`,
3601
+ iconName: t.iconName
3602
+ }), /* @__PURE__ */ e.createElement("span", { className: Z([`${p}__label-text`, a ? "visually-hidden" : null]) }, t.label), t.tally && /* @__PURE__ */ e.createElement(zt, {
3603
+ className: `${p}__tally`,
3604
+ label: t.tally.label,
3605
+ size: "s",
3606
+ type: t.tally.type
3607
+ }));
3591
3608
  return /* @__PURE__ */ e.createElement("div", {
3592
- key: s,
3609
+ key: c,
3593
3610
  className: Z([
3594
- `${d}__option`,
3595
- a ? `${d}__option--checked` : null,
3596
- o ? `${d}__option--disabled` : null
3611
+ `${p}__option`,
3612
+ r ? `${p}__option--checked` : null,
3613
+ s ? `${p}__option--disabled` : null
3597
3614
  ])
3598
3615
  }, /* @__PURE__ */ e.createElement("input", {
3599
- checked: a,
3616
+ checked: r,
3600
3617
  className: "visually-hidden",
3601
- disabled: o,
3602
- id: s,
3603
- name: i,
3604
- onChange: _,
3618
+ disabled: s,
3619
+ id: c,
3620
+ name: o,
3621
+ onChange: x,
3605
3622
  type: "radio",
3606
3623
  value: t.value
3607
3624
  }), /* @__PURE__ */ e.createElement("label", {
3608
- htmlFor: s,
3609
- title: t.label
3610
- }, t.isLoading && /* @__PURE__ */ e.createElement(Lt, {
3611
- isInline: !0,
3612
- className: `${d}__spinner`,
3613
- color: "currentColor",
3614
- size: "m"
3615
- }), t.iconName && !t.isLoading && /* @__PURE__ */ e.createElement(Q, {
3616
- className: `${d}__icon`,
3617
- iconName: t.iconName,
3618
- size: "s"
3619
- }), /* @__PURE__ */ e.createElement("span", { className: `${d}__label-text` }, t.label), t.tally && /* @__PURE__ */ e.createElement(zt, {
3620
- className: `${d}__tally`,
3621
- label: t.tally.label,
3622
- size: "s",
3623
- type: t.tally.type
3624
- })));
3625
+ htmlFor: c,
3626
+ title: l ? void 0 : t.label
3627
+ }, l ? /* @__PURE__ */ e.createElement(bt, {
3628
+ className: `${p}__tooltip`,
3629
+ content: t.label,
3630
+ customTrigger: u,
3631
+ offsetValue: 8
3632
+ }) : u));
3625
3633
  })));
3626
3634
  }, bn = ({ actionItems: t, className: n, disabled: r, id: i, moreActionsLabel: a = "More actions", size: o = "s", variant: s = "primary", ...c }) => {
3627
3635
  let l = "pds-split-button", u = `${l}--${s}`, d = t[0], f = t.slice(1), p = null;
@@ -8313,12 +8321,12 @@ var or = {
8313
8321
  iconName: a,
8314
8322
  size: "m"
8315
8323
  })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
8316
- }, Yr = ({ ariaLabel: t, className: n, menuItems: r, ...i }) => {
8317
- let a = m(null), o = "pds-button-nav";
8324
+ }, Yr = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
8325
+ let o = m(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
8318
8326
  l(() => {
8319
8327
  let e = (e) => {
8320
8328
  if (document.documentElement.hasAttribute("data-pds-mobile")) return;
8321
- let t = a.current;
8329
+ let t = o.current;
8322
8330
  if (!t) return;
8323
8331
  let n = Array.from(t.querySelectorAll("a, button, [tabindex]:not([tabindex=\"-1\"])"));
8324
8332
  if (n.length === 0) return;
@@ -8327,35 +8335,39 @@ var or = {
8327
8335
  };
8328
8336
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
8329
8337
  }, []);
8330
- let s = ({ isActive: t, linkContent: n }) => {
8331
- let r = `${o}__item`;
8338
+ let u = ({ isActive: t, linkContent: n }) => {
8339
+ let r = `${s}__item`;
8332
8340
  return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
8333
- }, c = r.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, r.map((t, n) => /* @__PURE__ */ e.createElement(s, {
8341
+ }, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(u, {
8334
8342
  key: n,
8335
8343
  isActive: Wr(t),
8336
8344
  linkContent: t.linkContent
8337
- }))) : null, u = [];
8338
- r.map((e) => {
8339
- e.linkContent && (Wr(e) ? u.unshift({
8345
+ }))) : null, f = [];
8346
+ i.map((e) => {
8347
+ e.linkContent && (Wr(e) ? f.unshift({
8340
8348
  linkContent: e.linkContent,
8341
8349
  isLink: !0
8342
- }) : u.push({
8350
+ }) : f.push({
8343
8351
  linkContent: e.linkContent,
8344
8352
  isLink: !0
8345
8353
  }));
8346
8354
  });
8347
- let d = u.length > 0 ? /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile` }, /* @__PURE__ */ e.createElement(bn, {
8348
- actionItems: u,
8355
+ let p = f.length > 0 ? /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile` }, /* @__PURE__ */ e.createElement(bn, {
8356
+ actionItems: f,
8349
8357
  id: "mobile-nav-split-button",
8350
8358
  size: "s",
8351
8359
  variant: "secondary"
8352
8360
  })) : null;
8353
8361
  return /* @__PURE__ */ e.createElement("nav", {
8354
- ref: a,
8362
+ ref: o,
8355
8363
  "aria-label": t,
8356
- className: Z([o, n ?? ""]),
8357
- ...i
8358
- }, c, d);
8364
+ className: Z([
8365
+ s,
8366
+ c,
8367
+ r ?? ""
8368
+ ]),
8369
+ ...a
8370
+ }, d, p);
8359
8371
  }, Xr = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
8360
8372
  let s = "pds-dropdown-menu", c = Vr(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(Mn, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Zt({
8361
8373
  enableShift: !1,
@@ -8806,76 +8818,72 @@ var or = {
8806
8818
  key: n,
8807
8819
  className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${_(t) ? " pds-dropdown__item--active" : ""}`}`
8808
8820
  }, !t.isSeparator && t.linkContent))));
8809
- }, ri = ({ ariaLabel: t = "Main Navigation", className: n, colorType: r = "default", menuItems: i, ...a }) => {
8810
- let [o, s] = h(null), [c, d] = h(-1), [f, p] = h(null), [g, _] = h({
8821
+ }, ri = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
8822
+ let [a, o] = h(null), [s, c] = h(-1), [d, f] = h(null), [p, g] = h({
8811
8823
  container: null,
8812
8824
  containerChildren: []
8813
8825
  });
8814
8826
  l(() => {
8815
- g.containerChildren[o] && (g.containerChildren[o].classList.contains("pds-dropdown__separator") && f == "down" ? s(o + 1) : g.containerChildren[o].classList.contains("pds-dropdown__separator") && f == "up" ? s(o - 1) : g.containerChildren[o].children[0].focus());
8816
- }, [o]), l(() => {
8817
- c != -1 && (x.current[c].children[0].blur(), x.current[c].children[0].focus({ focusVisible: !0 }));
8818
- }, [c]);
8819
- let v = u(), y = "pds-nav-menu", b = r === "default" ? "" : `${y}--${r}`, x = m([]), S = (e) => {
8820
- let t = x.current.length - 1, n = {
8827
+ p.containerChildren[a] && (p.containerChildren[a].classList.contains("pds-dropdown__separator") && d == "down" ? o(a + 1) : p.containerChildren[a].classList.contains("pds-dropdown__separator") && d == "up" ? o(a - 1) : p.containerChildren[a].children[0].focus());
8828
+ }, [a]), l(() => {
8829
+ s != -1 && (y.current[s].children[0].blur(), y.current[s].children[0].focus({ focusVisible: !0 }));
8830
+ }, [s]);
8831
+ let _ = u(), v = "pds-nav-menu", y = m([]), b = (e) => {
8832
+ let t = y.current.length - 1, n = {
8821
8833
  ArrowRight: () => {
8822
- s(-1), d(c === -1 ? 1 : c === t ? 0 : c + 1);
8834
+ o(-1), c(s === -1 ? 1 : s === t ? 0 : s + 1);
8823
8835
  },
8824
8836
  ArrowLeft: () => {
8825
- s(-1), d(c === 0 ? t : c - 1);
8837
+ o(-1), c(s === 0 ? t : s - 1);
8826
8838
  },
8827
8839
  ArrowDown: () => {
8828
- p("down");
8840
+ f("down");
8829
8841
  let t = e.target.parentNode.children[1], n = e.target?.parentNode.children[1]?.children || e.target?.parentNode.parentNode.children[1]?.children;
8830
- g.container != t && t != null && _({
8842
+ p.container != t && t != null && g({
8831
8843
  container: t,
8832
8844
  containerChildren: [...n]
8833
- }), o === null || o == g.containerChildren.length - 1 ? s(0) : s(parseInt(o) + 1);
8845
+ }), a === null || a == p.containerChildren.length - 1 ? o(0) : o(parseInt(a) + 1);
8834
8846
  },
8835
8847
  ArrowUp: () => {
8836
- p("up"), s(o === 0 ? g.containerChildren.length - 1 : parseInt(o) - 1);
8848
+ f("up"), o(a === 0 ? p.containerChildren.length - 1 : parseInt(a) - 1);
8837
8849
  }
8838
8850
  }[e.code];
8839
8851
  n && n();
8840
- }, C = (e) => {
8852
+ }, x = (e) => {
8841
8853
  if (e.isActive || e.linkContent && e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")) return !0;
8842
8854
  if (e.links) {
8843
- for (let t = 0; t < e.links.length; t++) if (C(e.links[t])) return !0;
8855
+ for (let t = 0; t < e.links.length; t++) if (x(e.links[t])) return !0;
8844
8856
  }
8845
8857
  return !1;
8846
- }, w = [];
8847
- return i.map((t, n) => {
8848
- let r = `${v}-item-${n}`, i = t.id ? t.id : r;
8849
- t.links ? w.push(/* @__PURE__ */ e.createElement("li", {
8858
+ }, S = [];
8859
+ return r.map((t, n) => {
8860
+ let r = `${_}-item-${n}`, i = t.id ? t.id : r;
8861
+ t.links ? S.push(/* @__PURE__ */ e.createElement("li", {
8850
8862
  key: `${n}-dropdown`,
8851
8863
  ref: (e) => {
8852
- x.current[n] = e;
8864
+ y.current[n] = e;
8853
8865
  },
8854
- className: `${y}__item ${y}__item--top-level ${y}__item--has-children ${C(t) === !0 ? `${y}__item--active` : ""}`,
8866
+ className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
8855
8867
  id: i
8856
8868
  }, /* @__PURE__ */ e.createElement(ni, {
8857
8869
  items: t.links,
8858
8870
  label: t.label
8859
- }))) : w.push(/* @__PURE__ */ e.createElement("li", {
8871
+ }))) : S.push(/* @__PURE__ */ e.createElement("li", {
8860
8872
  key: n,
8861
8873
  ref: (e) => {
8862
- x.current[n] = e;
8874
+ y.current[n] = e;
8863
8875
  },
8864
- className: `${y}__item ${y}__item--top-level ${y}__item--has-link ${C(t) === !0 ? `${y}__item--active` : ""}`,
8876
+ className: `${v}__item ${v}__item--top-level ${v}__item--has-link ${x(t) === !0 ? `${v}__item--active` : ""}`,
8865
8877
  id: i
8866
8878
  }, t.linkContent));
8867
8879
  }), /* @__PURE__ */ e.createElement("nav", {
8868
8880
  "aria-label": t,
8869
- className: Z([
8870
- y,
8871
- b,
8872
- n
8873
- ]),
8881
+ className: Z([v, n]),
8874
8882
  onKeyDown: (e) => {
8875
- S(e);
8883
+ b(e);
8876
8884
  },
8877
- ...a
8878
- }, /* @__PURE__ */ e.createElement("ul", { className: `${y}__menu` }, w));
8885
+ ...i
8886
+ }, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
8879
8887
  }, ii = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
8880
8888
  let [s, c] = h(i), [u, d] = h(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, g = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: S, isMounted: C, isOpen: w, listRef: T, refs: E, setActiveIndex: D, transitionStyles: O } = Zt({
8881
8889
  offsetValue: 8,
@@ -9169,31 +9177,87 @@ var or = {
9169
9177
  className: `${s}__menu ${s}__menu--top-level`,
9170
9178
  role: "tree"
9171
9179
  }, a.map((e, t) => M(e, t))));
9172
- }, ci = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], userEmail: i, userImageSrc: a, userName: o, ...s }) => {
9173
- let [c, l] = h(null), [d, f] = h(!1), p = m([]), g = m([]), _ = u(), v = "pds-user-menu", y = `${v}__menu`, { context: b, floatingStyles: x, refs: T } = A({
9180
+ }, ci = {
9181
+ light: "sunBright",
9182
+ dark: "moon",
9183
+ system: "circleHalfStroke"
9184
+ }, li = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
9185
+ light: "Light",
9186
+ dark: "Dark",
9187
+ system: "System"
9188
+ }, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
9189
+ let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
9190
+ "light",
9191
+ "dark",
9192
+ "system"
9193
+ ];
9194
+ if (s === "toggle") {
9195
+ let s = d.map((e) => ({
9196
+ iconName: ci[e],
9197
+ label: r[e],
9198
+ value: e
9199
+ }));
9200
+ return /* @__PURE__ */ e.createElement("div", {
9201
+ className: Z([l, t]),
9202
+ ...c
9203
+ }, /* @__PURE__ */ e.createElement(yn, {
9204
+ iconOnly: !0,
9205
+ id: n,
9206
+ label: u,
9207
+ onChange: (e) => i?.(e),
9208
+ options: s,
9209
+ size: a,
9210
+ value: o
9211
+ }));
9212
+ }
9213
+ let f = d.map((e) => ({
9214
+ callback: () => i?.(e),
9215
+ iconName: ci[e],
9216
+ iconSize: "m",
9217
+ label: r[e]
9218
+ }));
9219
+ return /* @__PURE__ */ e.createElement("div", {
9220
+ className: Z([l, t]),
9221
+ ...c
9222
+ }, /* @__PURE__ */ e.createElement(bt, {
9223
+ content: u,
9224
+ customTrigger: /* @__PURE__ */ e.createElement(vn, {
9225
+ iconOnly: !0,
9226
+ "aria-label": u,
9227
+ iconName: ci[o],
9228
+ id: n,
9229
+ label: "",
9230
+ menuItems: f,
9231
+ size: "m"
9232
+ }),
9233
+ offsetValue: 0,
9234
+ preferredPlacement: "top"
9235
+ }));
9236
+ }, ui = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: d, ...f }) => {
9237
+ let [p, g] = h(null), [_, v] = h(!1), y = m([]), b = m([]), x = u(), T = "pds-user-menu", D = `${T}__menu`, { context: j, floatingStyles: M, refs: N } = A({
9174
9238
  placement: "bottom-end",
9175
- open: d,
9176
- onOpenChange: f,
9239
+ open: _,
9240
+ onOpenChange: v,
9177
9241
  middleware: [
9178
9242
  w(12),
9179
9243
  C(),
9180
9244
  E()
9181
9245
  ],
9182
9246
  whileElementsMounted: S
9183
- }), D = O(b, { event: "mousedown" }), j = k(b), M = I(b, { role: "menu" }), N = m([]), { getFloatingProps: R, getItemProps: z, getReferenceProps: B } = P([
9184
- j,
9185
- M,
9186
- D,
9187
- F(b, {
9188
- listRef: N,
9189
- activeIndex: c,
9190
- onNavigate: l,
9247
+ }), R = O(j, { event: "mousedown" }), z = k(j), B = I(j, { role: "menu" }), V = m([]), { getFloatingProps: H, getItemProps: U, getReferenceProps: W } = P([
9248
+ z,
9249
+ B,
9250
+ R,
9251
+ F(j, {
9252
+ listRef: V,
9253
+ activeIndex: p,
9254
+ onNavigate: g,
9191
9255
  loop: !0,
9192
9256
  openOnArrowKeyDown: !0,
9193
9257
  focusItemOnOpen: !1,
9194
9258
  focusItemOnHover: !0
9195
9259
  })
9196
- ]), { isMounted: V, styles: H } = L(b, {
9260
+ ]), { isMounted: G, styles: K } = L(j, {
9197
9261
  duration: {
9198
9262
  open: 300,
9199
9263
  close: 150
@@ -9201,47 +9265,57 @@ var or = {
9201
9265
  initial: { opacity: 0 },
9202
9266
  open: { opacity: 1 },
9203
9267
  close: { opacity: 0 }
9204
- }), U = /* @__PURE__ */ e.createElement(Ue, {
9268
+ }), q = /* @__PURE__ */ e.createElement(Ue, {
9205
9269
  hasUserFallback: !0,
9206
- className: `${v}__avatar`,
9207
- imageSrc: a,
9270
+ className: `${T}__avatar`,
9271
+ imageSrc: l,
9208
9272
  size: "s",
9209
- uniqueId: i
9210
- }), W = /* @__PURE__ */ e.createElement("li", {
9211
- className: `${v}__user-details`,
9273
+ uniqueId: c
9274
+ }), J = /* @__PURE__ */ e.createElement("li", {
9275
+ className: `${T}__user-details`,
9212
9276
  role: "presentation"
9213
- }, /* @__PURE__ */ e.createElement("div", { className: `${v}__user-name` }, o), /* @__PURE__ */ e.createElement("div", { className: `${v}__user-email` }, i));
9277
+ }, /* @__PURE__ */ e.createElement("div", { className: `${T}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${T}__user-email` }, c)), ee = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
9278
+ className: `${T}__theme-row`,
9279
+ role: "presentation"
9280
+ }, /* @__PURE__ */ e.createElement("span", { className: `${T}__theme-label` }, o), /* @__PURE__ */ e.createElement(li, {
9281
+ id: `${x}-theme`,
9282
+ labelStrings: s,
9283
+ onChange: i,
9284
+ size: "s",
9285
+ theme: a,
9286
+ variant: "toggle"
9287
+ })) : null;
9214
9288
  r.forEach((e, t) => {
9215
- let n = e.id ? e.id : `${_}-item-${t}`;
9216
- p.current.push(n), g.current.push(e);
9289
+ let n = e.id ? e.id : `${x}-item-${t}`;
9290
+ y.current.push(n), b.current.push(e);
9217
9291
  });
9218
- let G = (e) => {
9219
- let t = p.current.indexOf(e), n = g.current[t];
9220
- n.linkContent && !n.disabled && (N.current[t].querySelector("a").click(), f(!1)), n.callback && !n.disabled && (n.callback(), f(!1));
9221
- }, K = (e) => {
9222
- e.preventDefault(), e.key === "Enter" && G(e.currentTarget.id);
9223
- }, q = (e) => {
9224
- G(e.currentTarget.id);
9225
- }, J = r.map((t, n) => {
9226
- let r = p.current[n], i = `${v}__item`, a = t.disabled ? `${i}--disabled` : null;
9292
+ let te = (e) => {
9293
+ let t = y.current.indexOf(e), n = b.current[t];
9294
+ n.linkContent && !n.disabled && (V.current[t].querySelector("a").click(), v(!1)), n.callback && !n.disabled && (n.callback(), v(!1));
9295
+ }, ne = (e) => {
9296
+ e.preventDefault(), e.key === "Enter" && te(e.currentTarget.id);
9297
+ }, re = (e) => {
9298
+ te(e.currentTarget.id);
9299
+ }, ie = r.map((t, n) => {
9300
+ let r = y.current[n], i = `${T}__item`, a = t.disabled ? `${i}--disabled` : null;
9227
9301
  return /* @__PURE__ */ e.createElement("li", {
9228
9302
  key: r,
9229
9303
  ref: (e) => {
9230
- N.current[n] = e;
9304
+ V.current[n] = e;
9231
9305
  },
9232
9306
  className: Z([i, a]),
9233
9307
  id: r,
9234
- onKeyDown: K,
9308
+ onKeyDown: ne,
9235
9309
  role: "menuitem",
9236
- tabIndex: c === n ? 0 : -1,
9237
- ...z({ onClick: (e) => q(e) })
9238
- }, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9239
- className: `${v}__icon`,
9310
+ tabIndex: p === n ? 0 : -1,
9311
+ ...U({ onClick: (e) => re(e) })
9312
+ }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9313
+ className: `${T}__icon`,
9240
9314
  iconName: t.iconName,
9241
- size: "s"
9242
- }), t.linkContent ? t.linkContent : t.label);
9243
- }), ee = r.map((t, n) => {
9244
- let r = p.current[n], i = `${v}__item`, a = t.disabled ? `${i}--disabled` : null;
9315
+ size: "m"
9316
+ }));
9317
+ }), ae = r.map((t, n) => {
9318
+ let r = y.current[n], i = `${T}__item`, a = t.disabled ? `${i}--disabled` : null;
9245
9319
  return /* @__PURE__ */ e.createElement("li", {
9246
9320
  key: r,
9247
9321
  className: Z([i, a]),
@@ -9250,37 +9324,37 @@ var or = {
9250
9324
  t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
9251
9325
  },
9252
9326
  role: "menuitem"
9253
- }, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9254
- className: `${v}__icon`,
9327
+ }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9328
+ className: `${T}__icon`,
9255
9329
  iconName: t.iconName,
9256
- size: "s"
9257
- }), t.linkContent ? t.linkContent : t.label);
9258
- }), te = /* @__PURE__ */ e.createElement("span", { className: `${v}__toggle-left` }, U, o ?? i);
9330
+ size: "m"
9331
+ }));
9332
+ }), Y = /* @__PURE__ */ e.createElement("span", { className: `${T}__toggle-left` }, q, d ?? c);
9259
9333
  return /* @__PURE__ */ e.createElement("span", {
9260
- className: Z([v, n ?? ""]),
9261
- ...s
9262
- }, /* @__PURE__ */ e.createElement(un, { label: te }, /* @__PURE__ */ e.createElement("ul", {
9263
- className: Z([y, `${y}--mobile`]),
9334
+ className: Z([T, n ?? ""]),
9335
+ ...f
9336
+ }, /* @__PURE__ */ e.createElement(un, { label: Y }, /* @__PURE__ */ e.createElement("ul", {
9337
+ className: Z([D, `${D}--mobile`]),
9264
9338
  role: "menu"
9265
- }, W, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ee)), /* @__PURE__ */ e.createElement("button", {
9266
- ref: T.setReference,
9339
+ }, J, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ee, ae)), /* @__PURE__ */ e.createElement("button", {
9340
+ ref: N.setReference,
9267
9341
  "aria-label": t,
9268
- className: `${v}__trigger`,
9342
+ className: `${T}__trigger`,
9269
9343
  type: "button",
9270
- ...B()
9271
- }, U), V && /* @__PURE__ */ e.createElement("div", {
9272
- ref: T.setFloating,
9273
- className: `${v}__dropdown`,
9344
+ ...W()
9345
+ }, q), G && /* @__PURE__ */ e.createElement("div", {
9346
+ ref: N.setFloating,
9347
+ className: `${T}__dropdown`,
9274
9348
  style: {
9275
- ...x,
9349
+ ...M,
9276
9350
  zIndex: "var(--pds-z-index-dropdown)"
9277
9351
  },
9278
- ...R()
9279
- }, /* @__PURE__ */ e.createElement("div", { style: { ...H } }, /* @__PURE__ */ e.createElement("ul", {
9280
- className: y,
9352
+ ...H()
9353
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...K } }, /* @__PURE__ */ e.createElement("ul", {
9354
+ className: D,
9281
9355
  role: "menu"
9282
- }, W, /* @__PURE__ */ e.createElement("li", { role: "separator" }), J))));
9283
- }, li = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
9356
+ }, J, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ee, ie))));
9357
+ }, di = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
9284
9358
  let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", x = `${b}__menu`, S = y ? `${x}--scroll` : null, { activeIndex: C, floatingStyles: w, getFloatingProps: T, getItemProps: E, getReferenceProps: D, isMounted: O, listRef: k, refs: A, setIsOpen: j, transitionStyles: M } = Zt({
9285
9359
  enableTypeahead: !y,
9286
9360
  role: "menu"
@@ -9420,12 +9494,12 @@ var or = {
9420
9494
  className: `pds-dropdown__heading ${b}__item-heading`,
9421
9495
  role: "presentation"
9422
9496
  }, o), R.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : R), B));
9423
- }, ui = {
9497
+ }, fi = {
9424
9498
  info: "circleInfo",
9425
9499
  warning: "triangleExclamation",
9426
9500
  critical: "diamondExclamation",
9427
9501
  discovery: "bullhorn"
9428
- }, di = 200, fi = 50, pi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
9502
+ }, pi = 200, mi = 50, hi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
9429
9503
  ...dn,
9430
9504
  neutral: "Notice"
9431
9505
  }, ...c }) => {
@@ -9444,21 +9518,21 @@ var or = {
9444
9518
  }, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
9445
9519
  m(d[0].id), setTimeout(() => {
9446
9520
  f((e) => [...e.slice(1), e[0]]), m(null);
9447
- }, di);
9521
+ }, pi);
9448
9522
  }, k = () => {
9449
9523
  y({
9450
9524
  [d[0].id]: 502,
9451
9525
  [d[b - 1].id]: 501
9452
9526
  }), setTimeout(() => {
9453
9527
  m(d[0].id);
9454
- }, fi), setTimeout(() => {
9528
+ }, mi), setTimeout(() => {
9455
9529
  f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
9456
- }, di);
9530
+ }, pi);
9457
9531
  }, A = (t, n) => {
9458
9532
  let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: l, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, y = (e) => {
9459
9533
  e.preventDefault(), _(a), setTimeout(() => {
9460
9534
  l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
9461
- }, di);
9535
+ }, pi);
9462
9536
  }, b = v[a] ?? E(n);
9463
9537
  return /* @__PURE__ */ e.createElement("div", {
9464
9538
  key: a,
@@ -9473,7 +9547,7 @@ var or = {
9473
9547
  style: { zIndex: b }
9474
9548
  }, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
9475
9549
  className: `${x}__icon ${x}__icon--${t.type}`,
9476
- iconName: d === "neutral" ? r : ui[d],
9550
+ iconName: d === "neutral" ? r : fi[d],
9477
9551
  size: u ? "l" : "m"
9478
9552
  }), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
9479
9553
  className: `${x}__dismiss-button`,
@@ -9504,12 +9578,12 @@ var or = {
9504
9578
  onClick: O,
9505
9579
  size: "m"
9506
9580
  }), d.map((e, t) => A(e, t))) : A(d[0], 0));
9507
- }, mi = {
9581
+ }, gi = {
9508
9582
  info: "circleInfo",
9509
9583
  warning: "triangleExclamation",
9510
9584
  success: "circleCheck",
9511
9585
  critical: "diamondExclamation"
9512
- }, hi = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
9586
+ }, _i = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
9513
9587
  ...dn,
9514
9588
  working: "Working"
9515
9589
  }, ...o }) => {
@@ -9530,16 +9604,16 @@ var or = {
9530
9604
  role: l,
9531
9605
  ...o
9532
9606
  }, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(Lt, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
9533
- iconName: `${i}` in mi ? mi[i] : mi.info,
9607
+ iconName: `${i}` in gi ? gi[i] : gi.info,
9534
9608
  size: "m"
9535
9609
  })), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
9536
- }, gi = {
9610
+ }, vi = {
9537
9611
  info: "circleInfo",
9538
9612
  warning: "triangleExclamation",
9539
9613
  success: "circleCheck",
9540
9614
  critical: "diamondExclamation",
9541
9615
  discovery: "squareQuestion"
9542
- }, _i = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: u = "info", typeLabels: d = dn, ...f }) => {
9616
+ }, yi = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: u = "info", typeLabels: d = dn, ...f }) => {
9543
9617
  let p = r === "marketing", h = m(null), g = "pds-section-message", _ = {
9544
9618
  error: `${g}--error`,
9545
9619
  success: `${g}--success`,
@@ -9572,7 +9646,7 @@ var or = {
9572
9646
  role: b,
9573
9647
  ...f
9574
9648
  }, /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${u}` }, /* @__PURE__ */ e.createElement(Q, {
9575
- iconName: `${u}` in gi ? gi[u] : gi.info,
9649
+ iconName: `${u}` in vi ? vi[u] : vi.info,
9576
9650
  size: p ? "xl" : "l"
9577
9651
  })), /* @__PURE__ */ e.createElement("div", { className: `${g}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, x), l && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${g}__message` }, S))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${g}__actions` }, n && /* @__PURE__ */ e.createElement(Wt, {
9578
9652
  ...n,
@@ -9585,10 +9659,10 @@ var or = {
9585
9659
  onClick: T,
9586
9660
  size: p ? "l" : "m"
9587
9661
  })));
9588
- }, vi = 3e4, yi = {
9662
+ }, bi = 3e4, xi = {
9589
9663
  pause: "Pause notification",
9590
9664
  resume: "Resume notification"
9591
- }, bi = r({ labelStrings: yi }), xi = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Yt, {
9665
+ }, Si = r({ labelStrings: xi }), Ci = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Yt, {
9592
9666
  ariaLabel: t || "Close",
9593
9667
  className: "pds-toast__close-button",
9594
9668
  onClick: (e) => {
@@ -9596,13 +9670,13 @@ var or = {
9596
9670
  },
9597
9671
  size: "s",
9598
9672
  tabIndex: 0
9599
- }), Si = ({ className: t, labelStrings: n = yi, limit: r = 5, position: i = "bottom-right" }) => {
9673
+ }), wi = ({ className: t, labelStrings: n = xi, limit: r = 5, position: i = "bottom-right" }) => {
9600
9674
  let a = Z(["pds-toaster", t]);
9601
- return /* @__PURE__ */ e.createElement(bi.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(le, {
9675
+ return /* @__PURE__ */ e.createElement(Si.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(le, {
9602
9676
  newestOnTop: !0,
9603
9677
  autoClose: !1,
9604
9678
  className: a,
9605
- closeButton: xi,
9679
+ closeButton: Ci,
9606
9680
  draggable: !1,
9607
9681
  icon: !1,
9608
9682
  limit: r,
@@ -9612,25 +9686,25 @@ var or = {
9612
9686
  role: "status",
9613
9687
  transition: ce
9614
9688
  }));
9615
- }, Ci = {
9689
+ }, Ti = {
9616
9690
  info: "circleInfo",
9617
9691
  success: "circleCheck",
9618
9692
  warning: "triangleExclamation",
9619
9693
  critical: "diamondExclamation"
9620
- }, wi = {
9694
+ }, Ei = {
9621
9695
  info: "Information",
9622
9696
  success: "Success",
9623
9697
  warning: "Warning",
9624
9698
  critical: "Critical",
9625
9699
  working: "Working..."
9626
- }, Ti = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = wi }) => {
9700
+ }, Di = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ei }) => {
9627
9701
  let l = "pds-toast", u = {
9628
9702
  critical: `${l}--critical`,
9629
9703
  info: `${l}--info`,
9630
9704
  success: `${l}--success`,
9631
9705
  warning: `${l}--warning`,
9632
9706
  working: `${l}--working`
9633
- }, d = `${s[o]} `, { labelStrings: f } = c(bi), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
9707
+ }, d = `${s[o]} `, { labelStrings: f } = c(Si), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
9634
9708
  return /* @__PURE__ */ e.createElement("div", {
9635
9709
  className: Z([
9636
9710
  l,
@@ -9640,7 +9714,7 @@ var or = {
9640
9714
  id: i
9641
9715
  }, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Lt, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
9642
9716
  className: `${l}__icon ${l}__icon--${o}`,
9643
- iconName: Ci[o],
9717
+ iconName: Ti[o],
9644
9718
  size: "l"
9645
9719
  })), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
9646
9720
  "aria-label": p ? f.resume : f.pause,
@@ -9655,11 +9729,11 @@ var or = {
9655
9729
  iconName: p ? "play" : "pause",
9656
9730
  size: "m"
9657
9731
  })));
9658
- }, Ei = /* @__PURE__ */ function(e) {
9732
+ }, Oi = /* @__PURE__ */ function(e) {
9659
9733
  return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
9660
- }({}), Di = () => [
9734
+ }({}), ki = () => [
9661
9735
  (t, n, r = {}) => {
9662
- let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(vi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Ti, {
9736
+ let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(bi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Di, {
9663
9737
  autoCloseDuration: a || void 0,
9664
9738
  toastId: i,
9665
9739
  type: t
@@ -9684,7 +9758,7 @@ var or = {
9684
9758
  enter: "pds-toast--bounceInPlace",
9685
9759
  exit: "pds-toast--slideOut"
9686
9760
  })
9687
- ], Oi = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: c = !1, placement: u = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: g, ..._ }) => {
9761
+ ], Ai = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: c = !1, placement: u = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: g, ..._ }) => {
9688
9762
  let v = Ie(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = g ? null : `${x}--${f}`, C = `${x}--${u}`, w = g ? { width: g } : void 0, [T, E] = h(c), [D, O] = h(!1), k = m(null), { closeOverlay: A, openOverlay: j } = vt();
9689
9763
  l(() => {
9690
9764
  c ? E(!0) : O(!1);
@@ -9749,7 +9823,7 @@ var or = {
9749
9823
  onClick: M,
9750
9824
  size: "m"
9751
9825
  })), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
9752
- }, ki = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
9826
+ }, ji = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
9753
9827
  let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = vt();
9754
9828
  l(() => {
9755
9829
  if (!(!h || !m) && c) return h(), () => m();
@@ -9814,7 +9888,7 @@ var or = {
9814
9888
  }),
9815
9889
  zIndex: 9999
9816
9890
  }), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
9817
- }, Ai = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: u = () => {}, size: d = "m", title: f, ...p }) => {
9891
+ }, Mi = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: u = () => {}, size: d = "m", title: f, ...p }) => {
9818
9892
  let m = Ie(n), g = m.__unslotted, _ = m.footer, b = "pds-modal", x = d === "m" ? null : `${b}--${d}`, S = a ? {
9819
9893
  maxHeight: a,
9820
9894
  paddingInlineEnd: "1rem",
@@ -9890,27 +9964,27 @@ var or = {
9890
9964
  className: `${b}__content`,
9891
9965
  style: S
9892
9966
  }, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${b}__footer` }, _)))));
9893
- }, ji = (e, t) => {
9967
+ }, Ni = (e, t) => {
9894
9968
  let n = t - e + 1;
9895
9969
  return Array.from({ length: n }, (t, n) => n + e);
9896
- }, Mi = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
9970
+ }, Pi = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
9897
9971
  let i = Math.ceil(r / n), a = e + 5, o = i;
9898
- if (a >= i) return ji(1, i);
9972
+ if (a >= i) return Ni(1, i);
9899
9973
  let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
9900
9974
  if (!l && u) return [
9901
- ...ji(1, 3 + 2 * e),
9975
+ ...Ni(1, 3 + 2 * e),
9902
9976
  "...",
9903
9977
  i
9904
9978
  ];
9905
9979
  if (l && !u) return [
9906
9980
  1,
9907
9981
  "...",
9908
- ...ji(i - (3 + 2 * e) + 1, i)
9982
+ ...Ni(i - (3 + 2 * e) + 1, i)
9909
9983
  ];
9910
9984
  if (l && u) return [
9911
9985
  1,
9912
9986
  "...",
9913
- ...ji(s, c),
9987
+ ...Ni(s, c),
9914
9988
  "...",
9915
9989
  o
9916
9990
  ];
@@ -9919,11 +9993,11 @@ var or = {
9919
9993
  n,
9920
9994
  e,
9921
9995
  t
9922
- ]), Ni = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
9996
+ ]), Fi = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
9923
9997
  previous: "Go to previous page",
9924
9998
  next: "Go to next page"
9925
9999
  }, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
9926
- let f = Mi({
10000
+ let f = Pi({
9927
10001
  currentPage: r,
9928
10002
  totalItemCount: u,
9929
10003
  bufferCount: t,
@@ -9977,7 +10051,7 @@ var or = {
9977
10051
  size: "m"
9978
10052
  }))
9979
10053
  }))));
9980
- }, Pi = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10054
+ }, Ii = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
9981
10055
  next: "Go to next page",
9982
10056
  of: "of",
9983
10057
  pageSelect: "Go to page",
@@ -10030,7 +10104,7 @@ var or = {
10030
10104
  size: "m"
10031
10105
  }))
10032
10106
  })));
10033
- }, Fi = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10107
+ }, Li = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10034
10108
  next: "Next",
10035
10109
  previous: "Previous"
10036
10110
  }, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
@@ -10059,7 +10133,7 @@ var or = {
10059
10133
  iconName: "angleRight",
10060
10134
  size: "m"
10061
10135
  }))));
10062
- }, Ii = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10136
+ }, Ri = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10063
10137
  let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
10064
10138
  return l(() => {
10065
10139
  let e = v.current;
@@ -10083,7 +10157,7 @@ var or = {
10083
10157
  className: `${g}__icon ${c ? "rotated" : ""}`,
10084
10158
  iconName: "angleDown"
10085
10159
  })), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
10086
- }, Li = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
10160
+ }, zi = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
10087
10161
  let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
10088
10162
  return /* @__PURE__ */ e.createElement("div", {
10089
10163
  className: Z([
@@ -10093,7 +10167,7 @@ var or = {
10093
10167
  ]),
10094
10168
  ...i
10095
10169
  }, t);
10096
- }, Ri = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
10170
+ }, Bi = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
10097
10171
  let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
10098
10172
  return /* @__PURE__ */ e.createElement("div", {
10099
10173
  className: Z([
@@ -10103,7 +10177,7 @@ var or = {
10103
10177
  ]),
10104
10178
  ...a
10105
10179
  }, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
10106
- }, zi = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
10180
+ }, Vi = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
10107
10181
  let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
10108
10182
  return /* @__PURE__ */ e.createElement("ul", {
10109
10183
  className: Z([
@@ -10115,7 +10189,7 @@ var or = {
10115
10189
  ]),
10116
10190
  ...o
10117
10191
  }, n);
10118
- }, Bi = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
10192
+ }, Hi = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
10119
10193
  let o = "pds-panel-row", [s, c] = h(!1), l = Ie(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
10120
10194
  c((e) => !e);
10121
10195
  };
@@ -10146,7 +10220,7 @@ var or = {
10146
10220
  opacity: "0"
10147
10221
  }
10148
10222
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
10149
- }, Vi = /* @__PURE__ */ e.createElement("svg", {
10223
+ }, Ui = /* @__PURE__ */ e.createElement("svg", {
10150
10224
  "aria-label": "Pantheon",
10151
10225
  fill: "none",
10152
10226
  focusable: "false",
@@ -10209,7 +10283,7 @@ var or = {
10209
10283
  }), /* @__PURE__ */ e.createElement("path", {
10210
10284
  d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
10211
10285
  fill: "var(--pds-color-foreground-default)"
10212
- })), Hi = /* @__PURE__ */ e.createElement("svg", {
10286
+ })), Wi = /* @__PURE__ */ e.createElement("svg", {
10213
10287
  "aria-label": "Pantheon",
10214
10288
  fill: "none",
10215
10289
  focusable: "false",
@@ -10245,7 +10319,7 @@ var or = {
10245
10319
  }), /* @__PURE__ */ e.createElement("path", {
10246
10320
  d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
10247
10321
  fill: "var(--pds-color-foreground-default)"
10248
- })), Ui = /* @__PURE__ */ e.createElement("svg", {
10322
+ })), Gi = /* @__PURE__ */ e.createElement("svg", {
10249
10323
  "aria-label": "Pantheon",
10250
10324
  fill: "none",
10251
10325
  focusable: "false",
@@ -10281,17 +10355,17 @@ var or = {
10281
10355
  }), /* @__PURE__ */ e.createElement("path", {
10282
10356
  d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
10283
10357
  fill: "var(--pds-color-foreground-default)"
10284
- })), Wi = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
10358
+ })), Ki = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
10285
10359
  let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
10286
10360
  switch (r) {
10287
10361
  case "full":
10288
- f = Vi;
10362
+ f = Ui;
10289
10363
  break;
10290
10364
  case "icon":
10291
- f = Hi;
10365
+ f = Wi;
10292
10366
  break;
10293
10367
  case "wordmark":
10294
- f = Ui;
10368
+ f = Gi;
10295
10369
  break;
10296
10370
  }
10297
10371
  let p = o(i) && typeof i.props.children == "string" ? i.props.children : "", m = o(i) ? i.type : null, h = o(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
@@ -10308,7 +10382,7 @@ var or = {
10308
10382
  ]),
10309
10383
  ...s
10310
10384
  }, i ? h : f);
10311
- }, Gi = 8, Ki = 14, qi = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: u = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: g = "Show more information", triggerIcon: y = "circleInfo", triggerIconSize: T = "m", ...D }) => {
10385
+ }, qi = 8, Ji = 14, Yi = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: u = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: g = "Show more information", triggerIcon: y = "circleInfo", triggerIconSize: T = "m", ...D }) => {
10312
10386
  let [j, M] = h(d);
10313
10387
  l(() => {
10314
10388
  M(d);
@@ -10334,12 +10408,12 @@ var or = {
10334
10408
  O(V),
10335
10409
  k(V),
10336
10410
  I(V)
10337
- ]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ki / 2, ne = ee + Gi, { isMounted: re } = L(V, {
10411
+ ]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ji / 2, ne = ee + qi, { isMounted: re } = L(V, {
10338
10412
  initial: { transform: "scale(0)" },
10339
10413
  common: ({ side: e }) => ({ transformOrigin: {
10340
- top: `${te}px calc(100% + ${Gi}px)`,
10414
+ top: `${te}px calc(100% + ${qi}px)`,
10341
10415
  bottom: `${te}px -8px`,
10342
- left: `calc(100% + ${Gi}px) ${ne}px`,
10416
+ left: `calc(100% + ${qi}px) ${ne}px`,
10343
10417
  right: `-8px ${ne}px`
10344
10418
  }[e] })
10345
10419
  });
@@ -10371,23 +10445,23 @@ var or = {
10371
10445
  className: `${F}__arrow`,
10372
10446
  context: V,
10373
10447
  fill: "var(--pds-color-surface-default)",
10374
- height: Gi,
10448
+ height: qi,
10375
10449
  stroke: "var(--pds-color-popover-border)",
10376
10450
  strokeWidth: 1,
10377
10451
  tipRadius: 0,
10378
- width: Ki
10452
+ width: Ji
10379
10453
  }), /* @__PURE__ */ e.createElement("div", { className: `${F}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${F}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${F}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${F}__close-wrapper` }, /* @__PURE__ */ e.createElement(Yt, {
10380
10454
  ariaLabel: r,
10381
10455
  onClick: G,
10382
10456
  size: "s"
10383
10457
  })))))));
10384
- }, Ji = {
10458
+ }, Xi = {
10385
10459
  neutral: "--pds-color-status-neutral-indicator",
10386
10460
  info: "--pds-color-status-info-fill",
10387
10461
  success: "--pds-color-status-success-fill",
10388
10462
  warning: "--pds-color-status-warning-fill",
10389
10463
  critical: "--pds-color-status-critical-fill"
10390
- }, Yi = ({ className: t, colorBreakpoints: n = [{
10464
+ }, Zi = ({ className: t, colorBreakpoints: n = [{
10391
10465
  colorType: "info",
10392
10466
  percentage: 0
10393
10467
  }, {
@@ -10408,7 +10482,7 @@ var or = {
10408
10482
  id: m
10409
10483
  }, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
10410
10484
  className: `${h}__percentage`,
10411
- style: { color: `hsl(from var(${Ji[y]}) h s calc(l - 7))` }
10485
+ style: { color: `hsl(from var(${Xi[y]}) h s calc(l - 7))` }
10412
10486
  }, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
10413
10487
  "aria-labelledby": m,
10414
10488
  "aria-valuenow": v,
@@ -10418,16 +10492,16 @@ var or = {
10418
10492
  className: `${h}__bar`,
10419
10493
  style: {
10420
10494
  width: `${v}%`,
10421
- backgroundColor: `var(${Ji[y]})`
10495
+ backgroundColor: `var(${Xi[y]})`
10422
10496
  }
10423
10497
  }))), S && b);
10424
- }, Xi = {
10498
+ }, Qi = {
10425
10499
  neutral: "--pds-color-status-neutral-indicator",
10426
10500
  info: "--pds-color-status-info-fill",
10427
10501
  success: "--pds-color-status-success-fill",
10428
10502
  warning: "--pds-color-status-warning-fill",
10429
10503
  critical: "--pds-color-status-critical-fill"
10430
- }, Zi = ({ className: t, colorBreakpoints: n = [{
10504
+ }, $i = ({ className: t, colorBreakpoints: n = [{
10431
10505
  colorType: "info",
10432
10506
  percentage: 0
10433
10507
  }, {
@@ -10476,7 +10550,7 @@ var or = {
10476
10550
  strokeDasharray: x,
10477
10551
  strokeDashoffset: S,
10478
10552
  strokeWidth: y,
10479
- style: { stroke: `var(${Xi[C]})` },
10553
+ style: { stroke: `var(${Qi[C]})` },
10480
10554
  transform: `rotate(-90 ${v / 2} ${v / 2})`
10481
10555
  }), /* @__PURE__ */ e.createElement("text", {
10482
10556
  alignmentBaseline: "middle",
@@ -10486,7 +10560,7 @@ var or = {
10486
10560
  x: "50%",
10487
10561
  y: "51%"
10488
10562
  }, w))));
10489
- }, Qi = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
10563
+ }, ea = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
10490
10564
  "privacy",
10491
10565
  "dataSubjectRequest",
10492
10566
  "cookiePolicy",
@@ -10504,7 +10578,7 @@ var or = {
10504
10578
  ]),
10505
10579
  ...c
10506
10580
  }, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), h && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), g && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), v && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), y && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
10507
- }, $i = ({ className: t, option: n, ...r }) => {
10581
+ }, ta = ({ className: t, option: n, ...r }) => {
10508
10582
  let i = "pds-site-option-display", a = n.type ? _n[n.type] : "boltSolid", o = m(null), [s] = pe(o), c = s.width / 16 - 7.5, l, u;
10509
10583
  n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
10510
10584
  let d = /* @__PURE__ */ e.createElement(Rt, {
@@ -10527,7 +10601,7 @@ var or = {
10527
10601
  className: `${i}__status`,
10528
10602
  style: { pointerEvents: "none" }
10529
10603
  }, d));
10530
- }, ea = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
10604
+ }, na = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
10531
10605
  clearButton: "Clear input text",
10532
10606
  inputInstructions: "Type to search options"
10533
10607
  }, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
@@ -10539,7 +10613,7 @@ var or = {
10539
10613
  id: n,
10540
10614
  label: i,
10541
10615
  value: r ?? i,
10542
- optionDisplay: /* @__PURE__ */ e.createElement($i, { option: t }),
10616
+ optionDisplay: /* @__PURE__ */ e.createElement(ta, { option: t }),
10543
10617
  siteData: t
10544
10618
  };
10545
10619
  });
@@ -10568,7 +10642,7 @@ var or = {
10568
10642
  };
10569
10643
  //#endregion
10570
10644
  //#region src/components/SortableList/sortable-utils.ts
10571
- function ta(e, t, n = null, r = 0, i = []) {
10645
+ function ra(e, t, n = null, r = 0, i = []) {
10572
10646
  return e.reduce((e, a, o) => {
10573
10647
  let s = !!a.children?.length, c = t.has(a.id);
10574
10648
  return e.push({
@@ -10580,10 +10654,10 @@ function ta(e, t, n = null, r = 0, i = []) {
10580
10654
  index: o,
10581
10655
  isExpanded: c,
10582
10656
  parentId: n
10583
- }), s && c && a.children && e.push(...ta(a.children, t, a.id, r + 1, [...i, a.id])), e;
10657
+ }), s && c && a.children && e.push(...ra(a.children, t, a.id, r + 1, [...i, a.id])), e;
10584
10658
  }, []);
10585
10659
  }
10586
- function na(e) {
10660
+ function ia(e) {
10587
10661
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
10588
10662
  for (let i of e) {
10589
10663
  let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
@@ -10596,28 +10670,28 @@ function na(e) {
10596
10670
  e && (e.children || (e.children = []), e.children.push(o));
10597
10671
  }
10598
10672
  }
10599
- return ra(r);
10673
+ return aa(r);
10600
10674
  }
10601
- function ra(e) {
10675
+ function aa(e) {
10602
10676
  return e.map((e) => {
10603
10677
  if (e.children?.length) return {
10604
10678
  ...e,
10605
- children: ra(e.children)
10679
+ children: aa(e.children)
10606
10680
  };
10607
10681
  let { children: t, ...n } = e;
10608
10682
  return n;
10609
10683
  });
10610
10684
  }
10611
- function ia(e, t) {
10685
+ function oa(e, t) {
10612
10686
  for (let n of e) {
10613
10687
  if (n.id === t) return n;
10614
10688
  if (n.children) {
10615
- let e = ia(n.children, t);
10689
+ let e = oa(n.children, t);
10616
10690
  if (e) return e;
10617
10691
  }
10618
10692
  }
10619
10693
  }
10620
- function aa(e, t, n, r, i, a, o) {
10694
+ function sa(e, t, n, r, i, a, o) {
10621
10695
  let s = e.findIndex((e) => e.id === n);
10622
10696
  if (s === -1) return 0;
10623
10697
  let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
@@ -10625,7 +10699,7 @@ function aa(e, t, n, r, i, a, o) {
10625
10699
  }
10626
10700
  //#endregion
10627
10701
  //#region src/components/SortableList/SortableListHeader.tsx
10628
- var oa = ({ children: t, className: n, columns: r, ...i }) => {
10702
+ var ca = ({ children: t, className: n, columns: r, ...i }) => {
10629
10703
  if (!r && !t) return null;
10630
10704
  let a = r ? {
10631
10705
  display: "grid",
@@ -10646,13 +10720,13 @@ var oa = ({ children: t, className: n, columns: r, ...i }) => {
10646
10720
  };
10647
10721
  //#endregion
10648
10722
  //#region src/components/SortableList/useSortableTree.ts
10649
- function sa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10723
+ function la({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10650
10724
  let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
10651
10725
  t && !d.current && (u.current = {
10652
10726
  items: i ? n : a,
10653
10727
  expandedIds: c
10654
- }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && la("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
10655
- let f = i ? n : a, g = p(() => ta(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
10728
+ }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && da("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
10729
+ let f = i ? n : a, g = p(() => ra(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
10656
10730
  l((t) => {
10657
10731
  let n = new Set(t);
10658
10732
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -10670,7 +10744,7 @@ function sa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10670
10744
  }, []),
10671
10745
  flatNodes: g,
10672
10746
  handleReorder: s((e) => {
10673
- let t = na(e);
10747
+ let t = ia(e);
10674
10748
  i || o(t), r?.(t);
10675
10749
  }, [i, r]),
10676
10750
  resetToSnapshot: s(() => {
@@ -10682,24 +10756,24 @@ function sa({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10682
10756
  toggleExpand: v
10683
10757
  };
10684
10758
  }
10685
- var ca = /* @__PURE__ */ new Set();
10686
- function la(e) {
10687
- ca.has(e) || (ca.add(e), console.warn(e));
10759
+ var ua = /* @__PURE__ */ new Set();
10760
+ function da(e) {
10761
+ ua.has(e) || (ua.add(e), console.warn(e));
10688
10762
  }
10689
10763
  //#endregion
10690
10764
  //#region src/components/SortableList/SortableList.tsx
10691
- var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: c = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: f = () => !1, items: g, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
10765
+ var fa = 24, pa = { droppable: { strategy: _e.Always } }, ma = a(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: c = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: f = () => !1, items: g, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
10692
10766
  let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), W = s((e, t) => {
10693
10767
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
10694
10768
  e.preventDefault();
10695
10769
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
10696
10770
  return B.current = i, z(i), {
10697
- x: t.currentCoordinates.x + a * ua,
10771
+ x: t.currentCoordinates.x + a * fa,
10698
10772
  y: t.currentCoordinates.y
10699
10773
  };
10700
10774
  }
10701
10775
  return Ce(e, t);
10702
- }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = sa({
10776
+ }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = la({
10703
10777
  defaultItems: a,
10704
10778
  isDragEnabled: G,
10705
10779
  items: g,
@@ -10726,9 +10800,9 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10726
10800
  X,
10727
10801
  Y,
10728
10802
  j
10729
- ]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ? ia(K, String(T)) ?? null : null, [T, K]), de = p(() => {
10803
+ ]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ? oa(K, String(T)) ?? null : null, [T, K]), de = p(() => {
10730
10804
  let e = le?.depth ?? 0;
10731
- return !T || !j || O || _ === 0 ? e : aa(J, String(T), String(j), V * ua, ua, _);
10805
+ return !T || !j || O || _ === 0 ? e : sa(J, String(T), String(j), V * fa, fa, _);
10732
10806
  }, [
10733
10807
  T,
10734
10808
  le,
@@ -10740,7 +10814,7 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10740
10814
  ]), fe = p(() => {
10741
10815
  if (!T || O || de === 0 || j && X(j)) return null;
10742
10816
  let e = J.findIndex((e) => e.id === T);
10743
- return e === -1 ? null : pa(J, e, de);
10817
+ return e === -1 ? null : ha(J, e, de);
10744
10818
  }, [
10745
10819
  T,
10746
10820
  J,
@@ -10786,19 +10860,19 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10786
10860
  }, [J, Y]), Ee = s((e) => {
10787
10861
  let t = e.delta.x;
10788
10862
  if (P.current = t, A.current || _ === 0) return;
10789
- let n = Math.floor(t / ua), r = U.current;
10790
- (n > r || n < r && t < r * ua - ua * .4) && (U.current = n, H(n));
10863
+ let n = Math.floor(t / fa), r = U.current;
10864
+ (n > r || n < r && t < r * fa - fa * .4) && (U.current = n, H(n));
10791
10865
  }, [_]), De = s((e) => {
10792
10866
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
10793
10867
  E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
10794
- let o = J.findIndex((e) => e.id === t.id), s = r ? i * ua : a * ua, c = !n || t.id === n.id, l = n?.id ?? null;
10868
+ let o = J.findIndex((e) => e.id === t.id), s = r ? i * fa : a * fa, c = !n || t.id === n.id, l = n?.id ?? null;
10795
10869
  if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
10796
10870
  if (o === -1) return;
10797
10871
  let e = J[o];
10798
10872
  if (!e) return;
10799
- let n = aa(J, String(t.id), String(t.id), s, ua, _);
10873
+ let n = sa(J, String(t.id), String(t.id), s, fa, _);
10800
10874
  if (n === e.depth) return;
10801
- let r = [...J], [i] = r.splice(o, 1), a = pa(r, o, n);
10875
+ let r = [...J], [i] = r.splice(o, 1), a = ha(r, o, n);
10802
10876
  if (a && oe.has(a)) return;
10803
10877
  let c = {
10804
10878
  ...i,
@@ -10820,9 +10894,9 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10820
10894
  let e = J[u];
10821
10895
  g = Math.min(e.depth + 1, _), v = String(l);
10822
10896
  } else {
10823
- g = aa(d, String(t.id), String(l), s, ua, _, p.depth);
10897
+ g = sa(d, String(t.id), String(l), s, fa, _, p.depth);
10824
10898
  let e = d[h];
10825
- v = e && e.depth === g - 1 ? String(l) : pa(d, h, g);
10899
+ v = e && e.depth === g - 1 ? String(l) : ha(d, h, g);
10826
10900
  }
10827
10901
  if (v && oe.has(v)) return;
10828
10902
  let y = {
@@ -10845,24 +10919,24 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10845
10919
  E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
10846
10920
  }, [q]), ke = p(() => ({
10847
10921
  onDragStart({ active: e }) {
10848
- let t = J.find((t) => t.id === e.id), n = ia(K, String(e.id));
10922
+ let t = J.find((t) => t.id === e.id), n = oa(K, String(e.id));
10849
10923
  return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
10850
10924
  },
10851
10925
  onDragOver({ active: e, over: t }) {
10852
10926
  if (!t) return;
10853
10927
  let n = J.findIndex((e) => e.id === t.id);
10854
10928
  if (n === -1) return;
10855
- let r = ia(K, String(e.id)), i = r ? c(r) : String(e.id), a = aa(J, String(e.id), String(t.id), P.current, ua, _);
10929
+ let r = oa(K, String(e.id)), i = r ? c(r) : String(e.id), a = sa(J, String(e.id), String(t.id), P.current, fa, _);
10856
10930
  return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
10857
10931
  },
10858
10932
  onDragEnd({ active: e, over: t }) {
10859
- let n = ia(K, String(e.id)), r = n ? c(n) : String(e.id);
10933
+ let n = oa(K, String(e.id)), r = n ? c(n) : String(e.id);
10860
10934
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
10861
- let i = J.findIndex((e) => e.id === t.id), a = aa(J, String(e.id), String(t.id), P.current, ua, _);
10935
+ let i = J.findIndex((e) => e.id === t.id), a = sa(J, String(e.id), String(t.id), P.current, fa, _);
10862
10936
  return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
10863
10937
  },
10864
10938
  onDragCancel({ active: e }) {
10865
- let t = J.find((t) => t.id === e.id), n = ia(K, String(e.id));
10939
+ let t = J.find((t) => t.id === e.id), n = oa(K, String(e.id));
10866
10940
  return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
10867
10941
  }
10868
10942
  }), [
@@ -10870,14 +10944,14 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10870
10944
  J,
10871
10945
  c,
10872
10946
  _
10873
- ]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type === oa ? e.cloneElement(t, Ae) : t);
10947
+ ]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type === ca ? e.cloneElement(t, Ae) : t);
10874
10948
  return /* @__PURE__ */ e.createElement(me, {
10875
10949
  accessibility: {
10876
10950
  announcements: ke,
10877
10951
  ...x ? { screenReaderInstructions: { draggable: x } } : {}
10878
10952
  },
10879
10953
  collisionDetection: _e,
10880
- measuring: da,
10954
+ measuring: pa,
10881
10955
  onDragCancel: Oe,
10882
10956
  onDragEnd: De,
10883
10957
  onDragMove: Ee,
@@ -10952,14 +11026,14 @@ var ua = 24, da = { droppable: { strategy: _e.Always } }, fa = a(function({ chil
10952
11026
  return o(a) ? e.cloneElement(a, s) : a;
10953
11027
  })()) : null));
10954
11028
  });
10955
- function pa(e, t, n) {
11029
+ function ha(e, t, n) {
10956
11030
  if (n === 0) return null;
10957
11031
  for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
10958
11032
  return null;
10959
11033
  }
10960
11034
  //#endregion
10961
11035
  //#region src/components/SortableList/SortableRow.tsx
10962
- var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
11036
+ var ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
10963
11037
  let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = we({
10964
11038
  attributes: {
10965
11039
  role: "listitem",
@@ -11014,7 +11088,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11014
11088
  key: t.id,
11015
11089
  className: `${w}__cell`
11016
11090
  }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
11017
- }, ha = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11091
+ }, _a = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11018
11092
  let l = {
11019
11093
  checkForUpdates: "Check for updates",
11020
11094
  checking: "Checking...",
@@ -11061,25 +11135,24 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11061
11135
  triggerIconColor: "default",
11062
11136
  triggerIconSize: "s"
11063
11137
  }), t === "left" && g));
11064
- }, ga = ({ className: t, label: n = null, size: r = "s", type: i = "neutral", ...a }) => {
11065
- let o = "pds-status-indicator", s = `${o}--${i}`, c = r === "s" ? null : `${o}--${r}`;
11138
+ }, va = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11139
+ let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Lt, {
11140
+ className: `${s}__spinner`,
11141
+ size: "m"
11142
+ }) : /* @__PURE__ */ e.createElement("span", {
11143
+ "aria-hidden": "true",
11144
+ className: `${s}__icon`,
11145
+ role: "img"
11146
+ }), n && /* @__PURE__ */ e.createElement("span", { className: `${s}__label` }, n)), u = o(r) ? r.type : null, d = o(r) && u ? /* @__PURE__ */ e.createElement(u, Object.assign({}, r.props, { children: l })) : r;
11066
11147
  return /* @__PURE__ */ e.createElement("div", {
11067
11148
  className: Z([
11068
- o,
11069
11149
  s,
11070
11150
  c,
11071
11151
  t ?? ""
11072
11152
  ]),
11073
11153
  ...a
11074
- }, i === "working" ? /* @__PURE__ */ e.createElement(Lt, {
11075
- className: `${o}__spinner`,
11076
- size: "m"
11077
- }) : /* @__PURE__ */ e.createElement("span", {
11078
- "aria-hidden": "true",
11079
- className: `${o}__icon`,
11080
- role: "img"
11081
- }), n && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, n));
11082
- }, _a = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11154
+ }, r ? d : l);
11155
+ }, ya = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11083
11156
  let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
11084
11157
  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`;
11085
11158
  return /* @__PURE__ */ e.createElement("li", {
@@ -11097,7 +11170,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11097
11170
  style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
11098
11171
  ...a
11099
11172
  }, l);
11100
- }, va = ({ className: t, steps: n, translatableLabels: r = {
11173
+ }, ba = ({ className: t, steps: n, translatableLabels: r = {
11101
11174
  step: "Step",
11102
11175
  completed: "completed",
11103
11176
  hasError: "has an error",
@@ -11161,7 +11234,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11161
11234
  key: t.id,
11162
11235
  className: `${o}__step`,
11163
11236
  id: `${t.id}--mobile`
11164
- }, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Zi, {
11237
+ }, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement($i, {
11165
11238
  innerLabel: n,
11166
11239
  label: "Step progress",
11167
11240
  percentage: i,
@@ -11186,7 +11259,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11186
11259
  "data-steps": d,
11187
11260
  ...i
11188
11261
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
11189
- }, ya = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11262
+ }, xa = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11190
11263
  let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
11191
11264
  return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
11192
11265
  className: Z([...p]),
@@ -11212,14 +11285,14 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11212
11285
  size: "s",
11213
11286
  variant: "highlight"
11214
11287
  })))));
11215
- }, ba = ({ className: t, labelStrings: n = {
11288
+ }, Sa = ({ className: t, labelStrings: n = {
11216
11289
  step: "Step",
11217
11290
  completed: "completed",
11218
11291
  hasError: "has an error"
11219
11292
  }, steps: r, ...i }) => {
11220
11293
  let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
11221
11294
  let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
11222
- return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ya, {
11295
+ return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(xa, {
11223
11296
  key: `s${i}`,
11224
11297
  _isFirstStep: c,
11225
11298
  "aria-current": a ? "step" : null,
@@ -11240,7 +11313,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11240
11313
  className: Z([a, t ?? ""]),
11241
11314
  ...i
11242
11315
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11243
- }, xa = ({ 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, getSelectRowLabel: x = (e, t) => `Select row ${t}`, getSortLabel: S = (e) => `Sort by ${e}`, inspectedRowId: C, isLoading: w = !1, itemsPerPage: T, loadingRowCount: E = 5, nextDetailPanelRowLabel: D = "Next row", onDetailPanelNext: O, onDetailPanelPrev: k, onPageChange: A, onPageSizeChange: j, onRowInspect: M, onRowSelectionChange: N, onSort: P, pageSizeOptions: F, panel: I, prevDetailPanelRowLabel: L = "Previous row", renderDetailPanel: R, renderDetailPanelFooter: z, rowData: B, selectAllLabel: V = "Select all rows", selectedRows: H, sortKey: U, sortOrder: W, totalItemCount: G, ...K }) => {
11316
+ }, Ca = ({ 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, getSelectRowLabel: x = (e, t) => `Select row ${t}`, getSortLabel: S = (e) => `Sort by ${e}`, inspectedRowId: C, isLoading: w = !1, itemsPerPage: T, loadingRowCount: E = 5, nextDetailPanelRowLabel: D = "Next row", onDetailPanelNext: O, onDetailPanelPrev: k, onPageChange: A, onPageSizeChange: j, onRowInspect: M, onRowSelectionChange: N, onSort: P, pageSizeOptions: F, panel: I, prevDetailPanelRowLabel: L = "Previous row", renderDetailPanel: R, renderDetailPanelFooter: z, rowData: B, selectAllLabel: V = "Select all rows", selectedRows: H, sortKey: U, sortOrder: W, totalItemCount: G, ...K }) => {
11244
11317
  let q = "pds-table", J = u(), ee = u(), te = P !== void 0, ne = A !== void 0, re = j !== void 0, ie = ne || T !== void 0 || F !== void 0, [ae, Y] = h({
11245
11318
  key: a ?? "",
11246
11319
  order: a === void 0 ? "asc" : o
@@ -11390,7 +11463,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11390
11463
  showLabel: !1,
11391
11464
  size: "s",
11392
11465
  value: String(pe)
11393
- }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Pi, {
11466
+ }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Ii, {
11394
11467
  currentPage: ne ? i ?? 1 : oe,
11395
11468
  itemsPerPage: pe,
11396
11469
  onPageChange: ne ? A : X,
@@ -11430,8 +11503,8 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11430
11503
  size: "s",
11431
11504
  variant: "standard"
11432
11505
  }))))));
11433
- return I ? /* @__PURE__ */ e.createElement(Ri, { padding: "none" }, Ue) : Ue;
11434
- }, Sa = [
11506
+ return I ? /* @__PURE__ */ e.createElement(Bi, { padding: "none" }, Ue) : Ue;
11507
+ }, wa = [
11435
11508
  " ",
11436
11509
  "/",
11437
11510
  ".",
@@ -11449,7 +11522,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11449
11522
  "=",
11450
11523
  "|",
11451
11524
  "~"
11452
- ], Ca = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), wa = (e) => {
11525
+ ], Ta = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ea = (e) => {
11453
11526
  let t = [];
11454
11527
  return e.forEach((e) => {
11455
11528
  let { id: n, innerText: r } = e;
@@ -11462,18 +11535,18 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11462
11535
  title: r
11463
11536
  });
11464
11537
  }), t;
11465
- }, Ta = (e, t, n) => {
11538
+ }, Da = (e, t, n) => {
11466
11539
  let [r, i] = h([]);
11467
11540
  return l(() => {
11468
11541
  let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
11469
11542
  let e = Array.from(document.querySelectorAll(r));
11470
11543
  e.forEach((e) => {
11471
- Sa.forEach((t) => {
11472
- e.id.includes(t) && (e.id = e.id.replace(new RegExp(Ca(t), "g"), "-"));
11544
+ wa.forEach((t) => {
11545
+ e.id.includes(t) && (e.id = e.id.replace(new RegExp(Ta(t), "g"), "-"));
11473
11546
  });
11474
11547
  }), e.forEach((e, t) => {
11475
11548
  e.id || (e.id = `${n}-item-${t}`);
11476
- }), i(wa(e));
11549
+ }), i(Ea(e));
11477
11550
  };
11478
11551
  a();
11479
11552
  let o = document.getElementById(e);
@@ -11489,7 +11562,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11489
11562
  t,
11490
11563
  n
11491
11564
  ]), { nestedHeadings: r };
11492
- }, Ea = (e, t) => {
11565
+ }, Oa = (e, t) => {
11493
11566
  let [n, r] = h(void 0), i = m({});
11494
11567
  return l(() => {
11495
11568
  let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
@@ -11508,7 +11581,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11508
11581
  o.disconnect(), r(void 0);
11509
11582
  };
11510
11583
  }, [e, t]), n;
11511
- }, Da = ({ 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", {
11584
+ }, ka = ({ 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", {
11512
11585
  key: r.id,
11513
11586
  className: `${n}__list-item`
11514
11587
  }, /* @__PURE__ */ e.createElement("a", {
@@ -11524,8 +11597,8 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11524
11597
  className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
11525
11598
  href: `#${r.id}`,
11526
11599
  onClick: (e) => i(e, r.id)
11527
- }, r.title))))))), Oa = ({ 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 }) => {
11528
- let d = "pds-toc", { nestedHeadings: f } = Ta(c, o, u()), p = Ea(c, o), m = (e) => {
11600
+ }, r.title))))))), Aa = ({ 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 }) => {
11601
+ let d = "pds-toc", { nestedHeadings: f } = Da(c, o, u()), p = Oa(c, o), m = (e) => {
11529
11602
  typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
11530
11603
  }, h = (e) => {
11531
11604
  document.querySelector(`#${e}`)?.scrollIntoView({
@@ -11543,13 +11616,13 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11543
11616
  baseClass: d,
11544
11617
  className: `${s ? "" : "visually-hidden"}`,
11545
11618
  level: i
11546
- }, a), /* @__PURE__ */ e.createElement(Da, {
11619
+ }, a), /* @__PURE__ */ e.createElement(ka, {
11547
11620
  activeID: p,
11548
11621
  baseClass: d,
11549
11622
  headings: f,
11550
11623
  onLinkClick: g
11551
11624
  }));
11552
- }, ka = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
11625
+ }, ja = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
11553
11626
  let c = "pds-tabs", [u, d] = h(a ?? r);
11554
11627
  l(() => {
11555
11628
  a !== void 0 && d(a);
@@ -11660,7 +11733,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11660
11733
  className: `${c}__panel-content`,
11661
11734
  hidden: o !== u
11662
11735
  }, r)))));
11663
- }, Aa = [
11736
+ }, Ma = [
11664
11737
  "orange",
11665
11738
  "stone",
11666
11739
  "gold",
@@ -11675,7 +11748,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11675
11748
  "rose",
11676
11749
  "red",
11677
11750
  "silver"
11678
- ], ja = [
11751
+ ], Na = [
11679
11752
  "orange-solid",
11680
11753
  "teal-solid",
11681
11754
  "indigo-solid",
@@ -11686,8 +11759,8 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11686
11759
  "critical-solid",
11687
11760
  "info-solid",
11688
11761
  "discovery-solid"
11689
- ], Ma = (e) => Aa[parseInt(g(e), 16) % Aa.length], Na = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Pa = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
11690
- let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${Ma(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
11762
+ ], Pa = (e) => Ma[parseInt(g(e), 16) % Ma.length], Fa = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Ia = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
11763
+ let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${Pa(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
11691
11764
  p((e) => !e);
11692
11765
  }, b, x, S;
11693
11766
  if (r && !n && o(r)) {
@@ -11709,7 +11782,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11709
11782
  }, /* @__PURE__ */ e.createElement("span", {
11710
11783
  className: `${m}__label`,
11711
11784
  title: l
11712
- }, u > 0 ? Na(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
11785
+ }, u > 0 ? Fa(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
11713
11786
  "aria-label": `${a}: ${l}`,
11714
11787
  className: `${m}__remove`,
11715
11788
  onClick: () => {
@@ -11721,42 +11794,6 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11721
11794
  iconName: "xmark",
11722
11795
  size: "m"
11723
11796
  })) : null);
11724
- }, Fa = {
11725
- light: "sunBright",
11726
- dark: "moon",
11727
- system: "desktop"
11728
- }, Ia = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
11729
- light: "Light",
11730
- dark: "Dark",
11731
- system: "System"
11732
- }, onChange: i, theme: a = "light", ...o }) => {
11733
- let s = r.tooltip ?? "Change theme", c = [
11734
- "light",
11735
- "dark",
11736
- "system"
11737
- ].map((e) => ({
11738
- callback: () => i?.(e),
11739
- iconName: Fa[e],
11740
- iconSize: "m",
11741
- label: r[e]
11742
- }));
11743
- return /* @__PURE__ */ e.createElement("div", {
11744
- className: Z(["pds-theme-switcher", t]),
11745
- ...o
11746
- }, /* @__PURE__ */ e.createElement(bt, {
11747
- content: s,
11748
- customTrigger: /* @__PURE__ */ e.createElement(vn, {
11749
- iconOnly: !0,
11750
- "aria-label": s,
11751
- iconName: Fa[a],
11752
- id: n,
11753
- label: "",
11754
- menuItems: c,
11755
- size: "m"
11756
- }),
11757
- offsetValue: 0,
11758
- preferredPlacement: "top"
11759
- }));
11760
11797
  }, La = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
11761
11798
  let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Ie(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
11762
11799
  return /* @__PURE__ */ e.createElement("div", {
@@ -11897,7 +11934,7 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11897
11934
  n ?? ""
11898
11935
  ]),
11899
11936
  ...A
11900
- }, K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(Oi, {
11937
+ }, K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(Ai, {
11901
11938
  ...a,
11902
11939
  isOpen: u,
11903
11940
  placement: "left",
@@ -12074,6 +12111,6 @@ var ma = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12074
12111
  }, []), t;
12075
12112
  };
12076
12113
  //#endregion
12077
- export { On as ActionCard, za as AppLayout, Ue as Avatar, We as Badge, pi as Banner, Qn as BarChart, Bt as BranchDiff, Br as Breadcrumb, Wt as Button, Gt as ButtonLink, Yr as ButtonNav, Ir as CTALink, Dn as Callout, kn as Card, An as CardSelect, _r as Checkbox, vr as CheckboxFieldset, yr as CheckboxGroup, Jt as ClipboardButton, Yt as CloseButton, sr as CodeBlock, br as Combobox, Sr as ComboboxMultiselect, jn as CompactEmptyState, lr as ComparisonList, Zr as Container, Er as Datepicker, Ba as DocsLayout, Oi as Drawer, en as Dropdown, Xr as DropdownMenu, Ii as ExpansionPanel, Li as ExpansionPanelGroup, pr as FileDiff, Dr as FileUpload, ln as FilterButton, Ga as FlexContainer, ki as FullScreenOverlay, Ka as GlobalWrapper, qa as Grid, Ja as GridItem, dr as HorizontalEmptyState, Q as Icon, qt as IconButton, gr as IdentityBlock, hi as InlineMessage, Or as InputGroup, er as LineChart, Lr as LinkNewWindow, vi as MIN_AUTO_CLOSE_DURATION, vn as MenuButton, Ai as Modal, Qr as Navbar, Ni as Pagination, Pi as PaginationCompact, Fi as PaginationMini, Ri as Panel, zi as PanelList, Bi as PanelRow, Wi as PantheonLogo, hr as PaymentIcon, zr as Picture, nr as PieChart, Sn as PlatformIcon, qi as Popover, Yi as ProgressBar, Zi as ProgressRing, ir as ProportionBar, kr as RadioGroup, wn as SSOButton, _i as SectionMessage, yn as SegmentedButton, Pn as Select, Nn as SelectOptionGroup, $r as SideNav, ti as SideNavGlobal, ei as SideNavGlobalItem, Va as SidebarLayout, Qi as SiteFooter, ri as SiteMenu, $i as SiteOptionDisplay, ea as SiteSearch, _n as SiteTypeIcon, gn as SiteTypeLabel, Jn as Skeleton, Rr as Skiplink, fa as SortableList, oa as SortableListHeader, ma as SortableRow, Lt as Spinner, bn as SplitButton, Rt as StatusBadge, ha as StatusChecker, ga as StatusIndicator, dn as StatusTypeLabels, _a as StepList, va as Stepper, Ha as StepperLayout, Ar as Switch, ai as TabMenu, xa as Table, Oa as TableOfContents, ka as Tabs, Pa as Tag, Mr as TagsInput, zt as Tally, Fr as TextInput, Nr as Textarea, Ia as ThemeSwitcher, Ua as ThreeItemLayout, Ti as Toast, Ei as ToastType, Si as Toaster, bi as ToasterContext, bt as Tooltip, si as TreeNav, Wa as TwoItemLayout, ci as UserMenu, La as UtilityBar, Tn as UtilityButton, fr as VerticalEmptyState, ba as VerticalStepper, ur as VideoEmbed, li as WorkspaceSelector, wr as getPresetDateRange, Be as iconList, pn as isHeadingItemType, mn as isLinkItemType, hn as isNodeItemType, fn as isSeparatorItemType, Aa as tagColors, ja as tagSolidColors, Ra as useBreakpoint, Kt as useClipboard, Zt as useDropdown, yt as useKeyPress, Ya as useMediaQuery, Di as useToast, Xa as useWindowWidth };
12114
+ export { On as ActionCard, za as AppLayout, Ue as Avatar, We as Badge, hi as Banner, Qn as BarChart, Bt as BranchDiff, Br as Breadcrumb, Wt as Button, Gt as ButtonLink, Yr as ButtonNav, Ir as CTALink, Dn as Callout, kn as Card, An as CardSelect, _r as Checkbox, vr as CheckboxFieldset, yr as CheckboxGroup, Jt as ClipboardButton, Yt as CloseButton, sr as CodeBlock, br as Combobox, Sr as ComboboxMultiselect, jn as CompactEmptyState, lr as ComparisonList, Zr as Container, Er as Datepicker, Ba as DocsLayout, Ai as Drawer, en as Dropdown, Xr as DropdownMenu, Ri as ExpansionPanel, zi as ExpansionPanelGroup, pr as FileDiff, Dr as FileUpload, ln as FilterButton, Ga as FlexContainer, ji as FullScreenOverlay, Ka as GlobalWrapper, qa as Grid, Ja as GridItem, dr as HorizontalEmptyState, Q as Icon, qt as IconButton, gr as IdentityBlock, _i as InlineMessage, Or as InputGroup, er as LineChart, Lr as LinkNewWindow, bi as MIN_AUTO_CLOSE_DURATION, vn as MenuButton, Mi as Modal, Qr as Navbar, Fi as Pagination, Ii as PaginationCompact, Li as PaginationMini, Bi as Panel, Vi as PanelList, Hi as PanelRow, Ki as PantheonLogo, hr as PaymentIcon, zr as Picture, nr as PieChart, Sn as PlatformIcon, Yi as Popover, Zi as ProgressBar, $i as ProgressRing, ir as ProportionBar, kr as RadioGroup, wn as SSOButton, yi as SectionMessage, yn as SegmentedButton, Pn as Select, Nn as SelectOptionGroup, $r as SideNav, ti as SideNavGlobal, ei as SideNavGlobalItem, Va as SidebarLayout, ea as SiteFooter, ri as SiteMenu, ta as SiteOptionDisplay, na as SiteSearch, _n as SiteTypeIcon, gn as SiteTypeLabel, Jn as Skeleton, Rr as Skiplink, ma as SortableList, ca as SortableListHeader, ga as SortableRow, Lt as Spinner, bn as SplitButton, Rt as StatusBadge, _a as StatusChecker, va as StatusIndicator, dn as StatusTypeLabels, ya as StepList, ba as Stepper, Ha as StepperLayout, Ar as Switch, ai as TabMenu, Ca as Table, Aa as TableOfContents, ja as Tabs, Ia as Tag, Mr as TagsInput, zt as Tally, Fr as TextInput, Nr as Textarea, li as ThemeSwitcher, Ua as ThreeItemLayout, Di as Toast, Oi as ToastType, wi as Toaster, Si as ToasterContext, bt as Tooltip, si as TreeNav, Wa as TwoItemLayout, ui as UserMenu, La as UtilityBar, Tn as UtilityButton, fr as VerticalEmptyState, Sa as VerticalStepper, ur as VideoEmbed, di as WorkspaceSelector, wr as getPresetDateRange, Be as iconList, pn as isHeadingItemType, mn as isLinkItemType, hn as isNodeItemType, fn as isSeparatorItemType, Ma as tagColors, Na as tagSolidColors, Ra as useBreakpoint, Kt as useClipboard, Zt as useDropdown, yt as useKeyPress, Ya as useMediaQuery, ki as useToast, Xa as useWindowWidth };
12078
12115
 
12079
12116
  //# sourceMappingURL=index.js.map