@pantheon-systems/pds-toolkit-react 2.0.0-alpha.56 → 2.0.0-alpha.57

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.
Files changed (35) hide show
  1. package/codemods/v1-to-v2/mappings.json +1 -1
  2. package/dist/components/ResultCount/ResultCount.d.ts +53 -0
  3. package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
  4. package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -1
  5. package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +9 -1
  6. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +9 -1
  7. package/dist/components/inputs/Select/Select.d.ts +5 -1
  8. package/dist/components/inputs/input-utilities.d.ts +10 -1
  9. package/dist/components/pagination/{PaginationMini/PaginationMini.d.ts → PaginationChapter/PaginationChapter.d.ts} +5 -5
  10. package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +14 -1
  11. package/dist/css/component-css/pds-checkbox-group.css +1 -1
  12. package/dist/css/component-css/pds-combobox-multiselect.css +1 -1
  13. package/dist/css/component-css/pds-combobox.css +1 -1
  14. package/dist/css/component-css/pds-dropdown.css +1 -1
  15. package/dist/css/component-css/pds-index.css +12 -10
  16. package/dist/css/component-css/pds-input-utilities.css +1 -1
  17. package/dist/css/component-css/pds-pagination-chapter.css +3 -0
  18. package/dist/css/component-css/pds-pagination-compact.css +1 -1
  19. package/dist/css/component-css/pds-pagination.css +1 -1
  20. package/dist/css/component-css/pds-result-count.css +1 -0
  21. package/dist/css/component-css/pds-select.css +1 -1
  22. package/dist/css/component-css/pds-table.css +4 -2
  23. package/dist/css/component-css/pds-tag.css +1 -1
  24. package/dist/css/component-css/pds-tags-input.css +1 -1
  25. package/dist/css/design-tokens/variables.dark.css +4 -8
  26. package/dist/css/design-tokens/variables.light.css +3 -7
  27. package/dist/css/pds-components.css +12 -10
  28. package/dist/css/pds-core.css +1 -1
  29. package/dist/index.css +1 -1
  30. package/dist/index.d.ts +2 -1
  31. package/dist/index.js +343 -273
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.source.d.ts +2 -1
  34. package/package.json +2 -2
  35. package/dist/css/component-css/pds-pagination-mini.css +0 -3
package/dist/index.js CHANGED
@@ -2516,27 +2516,28 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
2516
2516
  className: "pds-input-label__required-icon",
2517
2517
  iconName: "asterisk",
2518
2518
  size: "s"
2519
- })), Ut = ({ className: t, disabled: n, id: r, isLegend: i, isPseudoLabel: a, label: o, required: s, showLabel: c = !0, tooltipText: l = null }) => {
2520
- let u = Z([
2519
+ })), Ut = ({ className: t, disabled: n, id: r, isLegend: i, isPseudoLabel: a, label: o, labelVariant: s = "default", required: c, showLabel: l = !0, tooltipText: u = null }) => {
2520
+ let d = Z([
2521
2521
  "pds-input-label",
2522
- c ? null : "visually-hidden",
2522
+ s === "heading" ? "pds-input-label--heading" : null,
2523
+ l ? null : "visually-hidden",
2523
2524
  t ?? ""
2524
- ]), d = /* @__PURE__ */ e.createElement(e.Fragment, null, o, s && !n && /* @__PURE__ */ e.createElement(Ht, null), l && /* @__PURE__ */ e.createElement(zt, {
2525
- content: l,
2525
+ ]), f = /* @__PURE__ */ e.createElement(e.Fragment, null, o, c && !n && /* @__PURE__ */ e.createElement(Ht, null), u && /* @__PURE__ */ e.createElement(zt, {
2526
+ content: u,
2526
2527
  triggerIcon: "circleInfoSolid",
2527
2528
  triggerIconSize: "s"
2528
2529
  }));
2529
2530
  return i ? /* @__PURE__ */ e.createElement("legend", {
2530
- className: u,
2531
+ className: d,
2531
2532
  id: `${r}-legend`
2532
- }, d) : a ? /* @__PURE__ */ e.createElement("span", {
2533
- className: u,
2533
+ }, f) : a ? /* @__PURE__ */ e.createElement("span", {
2534
+ className: d,
2534
2535
  id: `${r}-field-label`
2535
- }, d) : /* @__PURE__ */ e.createElement("label", {
2536
- className: u,
2536
+ }, f) : /* @__PURE__ */ e.createElement("label", {
2537
+ className: d,
2537
2538
  htmlFor: r,
2538
2539
  id: `${r}-label`
2539
- }, d);
2540
+ }, f);
2540
2541
  }, Wt = ({ className: t, forInputGroup: n = !1, hasValidationMessage: r, id: i, message: a, validationMessageHasDecorators: o, validationStatus: s }) => {
2541
2542
  let c = "pds-input-message", l = s && r ? `${c}--${s}` : null;
2542
2543
  return /* @__PURE__ */ e.createElement("div", {
@@ -4163,29 +4164,29 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4163
4164
  }, $n = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: u = {
4164
4165
  selectOptionText: "Select an option...",
4165
4166
  triggerButton: "Toggle dropdown menu"
4166
- }, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0, size: y = "s", tooltipText: b = null, validationMessage: x, validationStatus: S, value: C, ...w }) => {
4167
- let T = Bt(s), E = "pds-select", D = t ? `${E}--auto-width` : null, O = y === "s" ? null : `${E}--${y}`, k = i ? $.disabled : null, A = _ && !i ? $.required : null, j = S === "error" ? $.error : null, M = S === "success" ? $.success : null, N = null;
4168
- S === "error" && (N = "error"), S === "success" && (N = "success");
4169
- let P = x || d, F = C !== void 0, I = r !== void 0, L = ((e) => e.reduce((e, t) => Zt(t) ? [...e, ...t.options] : [...e, t], []))(g), R = (e) => L.findIndex((t) => t.value === e), z = F && R(C) >= 0 ? R(C) : null, B = I ? R(r) : null, [V, H] = h((z || B) ?? null), { activeIndex: U, floatingStyles: ee, getFloatingProps: W, getItemProps: G, getReferenceProps: te, isMounted: K, listRef: ne, refs: re, setIsOpen: ie, transitionStyles: q } = _n({
4167
+ }, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, value: w, ...T }) => {
4168
+ let E = Bt(s), D = "pds-select", O = t ? `${D}--auto-width` : null, k = b === "s" ? null : `${D}--${b}`, A = i ? $.disabled : null, j = _ && !i ? $.required : null, M = C === "error" ? $.error : null, N = C === "success" ? $.success : null, P = null;
4169
+ C === "error" && (P = "error"), C === "success" && (P = "success");
4170
+ let F = S || d, I = w !== void 0, L = r !== void 0, R = ((e) => e.reduce((e, t) => Zt(t) ? [...e, ...t.options] : [...e, t], []))(g), z = (e) => R.findIndex((t) => t.value === e), B = I && z(w) >= 0 ? z(w) : null, V = L ? z(r) : null, [H, U] = h((B || V) ?? null), { activeIndex: ee, floatingStyles: W, getFloatingProps: G, getItemProps: te, getReferenceProps: K, isMounted: ne, listRef: re, refs: ie, setIsOpen: q, transitionStyles: ae } = _n({
4170
4171
  enableClick: !i,
4171
4172
  enableTypeahead: !0,
4172
4173
  role: "listbox",
4173
- selectedIndex: V,
4174
+ selectedIndex: H,
4174
4175
  variant: "input"
4175
- }), ae = V === null ? void 0 : L[V]?.label, oe = V === null ? void 0 : L[V]?.icon, J = V === null ? void 0 : L[V]?.value, Y = (e) => {
4176
- let t = L[e];
4177
- F || (H(e), ie(!1)), m && m(t);
4176
+ }), oe = H === null ? void 0 : R[H]?.label, J = H === null ? void 0 : R[H]?.icon, Y = H === null ? void 0 : R[H]?.value, X = (e) => {
4177
+ let t = R[e];
4178
+ I || (U(e), q(!1)), m && m(t);
4178
4179
  };
4179
4180
  l(() => {
4180
- F && (H(R(C)), ie(!1));
4181
- }, [C]);
4182
- let X = () => {
4183
- f && f(J);
4184
- }, se = () => {
4185
- p && p(J);
4181
+ I && (U(z(w)), q(!1));
4182
+ }, [w]);
4183
+ let se = () => {
4184
+ f && f(Y);
4186
4185
  }, ce = () => {
4187
- re.reference.current.focus();
4188
- }, le = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(Hn, {
4186
+ p && p(Y);
4187
+ }, le = () => {
4188
+ ie.reference.current.focus();
4189
+ }, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(Hn, {
4189
4190
  className: n,
4190
4191
  platformType: t,
4191
4192
  size: "m"
@@ -4193,7 +4194,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4193
4194
  className: n,
4194
4195
  iconName: t,
4195
4196
  size: "m"
4196
- }), ue = (t) => {
4197
+ }), de = (t) => {
4197
4198
  let n = 0;
4198
4199
  return t.map((t) => {
4199
4200
  if (Zt(t)) {
@@ -4202,20 +4203,20 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4202
4203
  return /* @__PURE__ */ e.createElement(Qt, {
4203
4204
  key: r,
4204
4205
  ref: (e) => {
4205
- ne.current[r] = e;
4206
+ re.current[r] = e;
4206
4207
  },
4207
4208
  "aria-disabled": t?.disabled,
4208
- "aria-selected": r === V && r === U,
4209
- tabIndex: r === U ? 0 : -1,
4210
- ...!t?.disabled && G({
4209
+ "aria-selected": r === H && r === ee,
4210
+ tabIndex: r === ee ? 0 : -1,
4211
+ ...!t?.disabled && te({
4211
4212
  onClick() {
4212
- Y(r);
4213
+ X(r);
4213
4214
  },
4214
4215
  onKeyDown(e) {
4215
- e.key === "Enter" && (e.preventDefault(), Y(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
4216
+ e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4216
4217
  }
4217
4218
  })
4218
- }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label` }, t.icon && le(t.icon, `${E}__option-icon`), t.label), V === r && /* @__PURE__ */ e.createElement(On, null));
4219
+ }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
4219
4220
  });
4220
4221
  return /* @__PURE__ */ e.createElement(Qn, {
4221
4222
  key: t.groupLabel,
@@ -4226,44 +4227,44 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4226
4227
  return /* @__PURE__ */ e.createElement(Qt, {
4227
4228
  key: r,
4228
4229
  ref: (e) => {
4229
- ne.current[r] = e;
4230
+ re.current[r] = e;
4230
4231
  },
4231
4232
  "aria-disabled": t?.disabled,
4232
- "aria-selected": r === V && r === U,
4233
- tabIndex: r === U ? 0 : -1,
4234
- ...!t?.disabled && G({
4233
+ "aria-selected": r === H && r === ee,
4234
+ tabIndex: r === ee ? 0 : -1,
4235
+ ...!t?.disabled && te({
4235
4236
  onClick() {
4236
- Y(r);
4237
+ X(r);
4237
4238
  },
4238
4239
  onKeyDown(e) {
4239
- e.key === "Enter" && (e.preventDefault(), Y(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
4240
+ e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4240
4241
  }
4241
4242
  })
4242
- }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label` }, t.icon && le(t.icon, `${E}__option-icon`), t.label), V === r && /* @__PURE__ */ e.createElement(On, null));
4243
+ }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
4243
4244
  });
4244
4245
  };
4245
4246
  return /* @__PURE__ */ e.createElement("div", {
4246
4247
  className: Z([
4247
4248
  $.base,
4248
- E,
4249
4249
  D,
4250
4250
  O,
4251
4251
  k,
4252
4252
  A,
4253
4253
  j,
4254
4254
  M,
4255
+ N,
4255
4256
  n ?? ""
4256
4257
  ]),
4257
- style: s ? T : null,
4258
- ...w
4258
+ style: s ? E : null,
4259
+ ...T
4259
4260
  }, t && !s && /* @__PURE__ */ e.createElement("div", {
4260
4261
  "aria-hidden": "true",
4261
- className: `${E}__sizer`
4262
- }, L.map((t) => /* @__PURE__ */ e.createElement("span", {
4262
+ className: `${D}__sizer`
4263
+ }, R.map((t) => /* @__PURE__ */ e.createElement("span", {
4263
4264
  key: t.value,
4264
- className: `${E}__input-wrapper`
4265
- }, S !== void 0 && /* @__PURE__ */ e.createElement(Kt, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${E}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-text` }, t.icon && le(t.icon, `${E}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
4266
- className: `${E}__trigger-icon`,
4265
+ className: `${D}__input-wrapper`
4266
+ }, C !== void 0 && /* @__PURE__ */ e.createElement(Kt, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${D}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-text` }, t.icon && ue(t.icon, `${D}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
4267
+ className: `${D}__trigger-icon`,
4267
4268
  iconName: "angleDown"
4268
4269
  }))))), /* @__PURE__ */ e.createElement(Ut, {
4269
4270
  disabled: i,
@@ -4271,39 +4272,39 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4271
4272
  label: c,
4272
4273
  required: _,
4273
4274
  showLabel: v,
4274
- tooltipText: b
4275
+ tooltipText: x
4275
4276
  }), /* @__PURE__ */ e.createElement("span", {
4276
- ref: re.setReference,
4277
+ ref: ie.setReference,
4277
4278
  "aria-autocomplete": "none",
4278
4279
  "aria-labelledby": `${o}-label`,
4279
- className: `${E}__input-wrapper`,
4280
+ className: `${D}__input-wrapper`,
4280
4281
  id: o,
4281
4282
  tabIndex: 0,
4282
- ...te({
4283
- onClick: ce,
4284
- onBlur: X,
4285
- onFocus: se
4283
+ ...K({
4284
+ onClick: le,
4285
+ onBlur: se,
4286
+ onFocus: ce
4286
4287
  })
4287
- }, N && /* @__PURE__ */ e.createElement(Kt, { variant: N }), /* @__PURE__ */ e.createElement("span", { className: `${E}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-text` }, (oe || !ae && a) && le(oe || a, `${E}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label-text` }, ae ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4288
- className: `${E}__trigger-icon`,
4288
+ }, P && /* @__PURE__ */ e.createElement(Kt, { variant: P }), /* @__PURE__ */ e.createElement("span", { className: `${D}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-text` }, (J || !oe && a) && ue(J || a, `${D}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label-text` }, oe ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4289
+ className: `${D}__trigger-icon`,
4289
4290
  iconName: "angleDown"
4290
- }))), K && /* @__PURE__ */ e.createElement("div", {
4291
- ref: re.setFloating,
4292
- className: `pds-dropdown__panel ${E}__dropdown`,
4291
+ }))), ne && /* @__PURE__ */ e.createElement("div", {
4292
+ ref: ie.setFloating,
4293
+ className: `pds-dropdown__panel ${D}__dropdown`,
4293
4294
  style: {
4294
- ...ee,
4295
+ ...W,
4295
4296
  zIndex: "var(--pds-z-index-dropdown)"
4296
4297
  },
4297
- ...W()
4298
- }, /* @__PURE__ */ e.createElement("div", { style: { ...q } }, /* @__PURE__ */ e.createElement("ul", {
4299
- className: `${E}__options`,
4298
+ ...G()
4299
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...ae } }, /* @__PURE__ */ e.createElement("ul", {
4300
+ className: `${D}__options`,
4300
4301
  role: "group"
4301
- }, ue(g)))), P && /* @__PURE__ */ e.createElement(Wt, {
4302
- hasValidationMessage: !!x,
4302
+ }, de(g)))), F && /* @__PURE__ */ e.createElement(Wt, {
4303
+ hasValidationMessage: !!S,
4303
4304
  id: o,
4304
- message: P,
4305
+ message: F,
4305
4306
  validationMessageHasDecorators: !1,
4306
- validationStatus: S
4307
+ validationStatus: C
4307
4308
  }));
4308
4309
  }, er = {
4309
4310
  "sequential-blue": 2,
@@ -6908,21 +6909,21 @@ var Tr = {
6908
6909
  message: P,
6909
6910
  validationStatus: S
6910
6911
  }));
6911
- }), Lr = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, message: c, required: l = !1, showLabel: u = !0, tooltipText: d = null, validationMessage: f, validationStatus: p, ...m }) => {
6912
- let h = o ? { width: `${o / 16}rem` } : null, g = "pds-checkbox-group", _ = r ? $.disabled : null, v = l && !r ? $.required : null, y = p === "error" ? $.error : null, b = p === "success" ? $.success : null, x = f || c;
6912
+ }), Lr = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, required: u = !1, showLabel: d = !0, tooltipText: f = null, validationMessage: p, validationStatus: m, ...h }) => {
6913
+ let g = o ? { width: `${o / 16}rem` } : null, _ = "pds-checkbox-group", v = r ? $.disabled : null, y = u && !r ? $.required : null, b = m === "error" ? $.error : null, x = m === "success" ? $.success : null, S = p || l;
6913
6914
  return /* @__PURE__ */ e.createElement("div", {
6914
6915
  className: Z([
6915
- g,
6916
6916
  _,
6917
6917
  v,
6918
6918
  y,
6919
6919
  b,
6920
+ x,
6920
6921
  n ?? ""
6921
6922
  ]),
6922
- style: o ? h : null,
6923
- ...m
6923
+ style: o ? g : null,
6924
+ ...h
6924
6925
  }, /* @__PURE__ */ e.createElement("fieldset", {
6925
- className: `${g}__fieldset`,
6926
+ className: `${_}__fieldset`,
6926
6927
  id: a,
6927
6928
  ...i
6928
6929
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -6930,54 +6931,55 @@ var Tr = {
6930
6931
  disabled: r,
6931
6932
  id: a,
6932
6933
  label: s,
6933
- required: l,
6934
- showLabel: u,
6935
- tooltipText: d
6936
- }), /* @__PURE__ */ e.createElement("div", { className: `${g}__options` }, t)), x && /* @__PURE__ */ e.createElement(Wt, {
6934
+ labelVariant: c,
6935
+ required: u,
6936
+ showLabel: d,
6937
+ tooltipText: f
6938
+ }), /* @__PURE__ */ e.createElement("div", { className: `${_}__options` }, t)), S && /* @__PURE__ */ e.createElement(Wt, {
6937
6939
  validationMessageHasDecorators: !0,
6938
- hasValidationMessage: !!f,
6940
+ hasValidationMessage: !!p,
6939
6941
  id: a,
6940
- message: x,
6941
- validationStatus: p
6942
+ message: S,
6943
+ validationStatus: m
6942
6944
  }));
6943
- }, Rr = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, message: s, onGroupBlur: c, onValueChange: u, options: d, required: f = !1, showLabel: p = !0, tooltipText: g = null, validationMessage: _, validationStatus: v, ...y }) => {
6944
- let b = a ? { width: `${a / 16}rem` } : null, x = "pds-checkbox-group", S = n ? $.disabled : null, C = f && !n ? $.required : null, w = v === "error" ? $.error : null, T = v === "success" ? $.success : null, E = _ || s;
6945
- d.map((e) => {
6945
+ }, Rr = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, labelVariant: s, message: c, onGroupBlur: u, onValueChange: d, options: f, required: p = !1, showLabel: g = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, ...b }) => {
6946
+ let x = a ? { width: `${a / 16}rem` } : null, S = "pds-checkbox-group", C = n ? $.disabled : null, w = p && !n ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = v || c;
6947
+ f.map((e) => {
6946
6948
  e.id || (e.id = e.value);
6947
6949
  });
6948
- let D = [];
6949
- d.map((e) => {
6950
- e.checked === !0 && D.push(e.value);
6950
+ let O = [];
6951
+ f.map((e) => {
6952
+ e.checked === !0 && O.push(e.value);
6951
6953
  });
6952
- let [O, k] = h(D), A = m(void 0);
6954
+ let [k, A] = h(O), j = m(void 0);
6953
6955
  l(() => () => {
6954
- A.current && clearTimeout(A.current);
6956
+ j.current && clearTimeout(j.current);
6955
6957
  }, []);
6956
- let j = (e) => {
6957
- let { value: t } = e.target, n = O.includes(t) ? O.filter((e) => e !== t) : [...O, t];
6958
- k(n), u && u(n);
6958
+ let M = (e) => {
6959
+ let { value: t } = e.target, n = k.includes(t) ? k.filter((e) => e !== t) : [...k, t];
6960
+ A(n), d && d(n);
6959
6961
  };
6960
- d.map((e) => {
6961
- O.includes(e.value) ? e.checked = !0 : e.checked = !1;
6962
+ f.map((e) => {
6963
+ k.includes(e.value) ? e.checked = !0 : e.checked = !1;
6962
6964
  });
6963
- let M = () => {
6964
- c && (A.current = setTimeout(() => {
6965
- d.some((e) => e.id === document.activeElement?.id) || c(O);
6965
+ let N = () => {
6966
+ u && (j.current = setTimeout(() => {
6967
+ f.some((e) => e.id === document.activeElement?.id) || u(k);
6966
6968
  }, 1500));
6967
6969
  };
6968
6970
  return /* @__PURE__ */ e.createElement("div", {
6969
6971
  className: Z([
6970
- x,
6971
6972
  S,
6972
6973
  C,
6973
6974
  w,
6974
6975
  T,
6976
+ E,
6975
6977
  t ?? ""
6976
6978
  ]),
6977
- style: a ? b : null,
6978
- ...y
6979
+ style: a ? x : null,
6980
+ ...b
6979
6981
  }, /* @__PURE__ */ e.createElement("fieldset", {
6980
- className: `${x}__fieldset`,
6982
+ className: `${S}__fieldset`,
6981
6983
  id: i,
6982
6984
  ...r
6983
6985
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -6985,26 +6987,27 @@ var Tr = {
6985
6987
  disabled: n,
6986
6988
  id: i,
6987
6989
  label: o,
6988
- required: f,
6989
- showLabel: p,
6990
- tooltipText: g
6991
- }), /* @__PURE__ */ e.createElement("div", { className: `${x}__options` }, d.map((t) => /* @__PURE__ */ e.createElement(Ir, {
6990
+ labelVariant: s,
6991
+ required: p,
6992
+ showLabel: g,
6993
+ tooltipText: _
6994
+ }), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(Ir, {
6992
6995
  key: t.id,
6993
6996
  checked: t.checked,
6994
- className: `${x}__checkbox`,
6997
+ className: `${S}__checkbox`,
6995
6998
  disabled: t.disabled || n,
6996
6999
  id: t.id,
6997
7000
  label: t.label,
6998
7001
  name: t.name,
6999
- onBlur: M,
7000
- onChange: j,
7002
+ onBlur: N,
7003
+ onChange: M,
7001
7004
  value: t.value
7002
- })))), E && /* @__PURE__ */ e.createElement(Wt, {
7005
+ })))), D && /* @__PURE__ */ e.createElement(Wt, {
7003
7006
  validationMessageHasDecorators: !0,
7004
- hasValidationMessage: !!_,
7007
+ hasValidationMessage: !!v,
7005
7008
  id: i,
7006
- message: E,
7007
- validationStatus: v
7009
+ message: D,
7010
+ validationStatus: y
7008
7011
  }));
7009
7012
  }, zr = a(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: c = !1, id: u, inputWidth: d, isLoading: f = !1, label: g, labelStrings: _ = {
7010
7013
  clearButton: "Clear input text",
@@ -7793,25 +7796,25 @@ var Tr = {
7793
7796
  validationMessageHasDecorators: !1,
7794
7797
  validationStatus: l
7795
7798
  }));
7796
- }, Jr = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, message: c, onBlur: l, onChange: u, onValueChange: d, options: f, required: p = !1, showLabel: m = !0, tooltipText: g = null, validationMessage: _, validationStatus: v, value: y, ...b }) => {
7797
- let x = "pds-radio-group", S = r ? $.disabled : null, C = p && !r ? $.required : null, w = v === "error" ? $.error : null, T = v === "success" ? $.success : null, E = y !== void 0, [D, O] = h(n === void 0 ? "" : n), k = _ || c, A = (e) => {
7798
- E || O(e.target.value), u && u(e), d && d(e.target.value);
7799
- }, j = (e) => {
7800
- l?.(e);
7799
+ }, Jr = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, labelVariant: c, message: l, onBlur: u, onChange: d, onValueChange: f, options: p, required: m = !1, showLabel: g = !0, tooltipText: _ = null, validationMessage: v, validationStatus: y, value: b, ...x }) => {
7800
+ let S = "pds-radio-group", C = r ? $.disabled : null, w = m && !r ? $.required : null, T = y === "error" ? $.error : null, E = y === "success" ? $.success : null, D = b !== void 0, [O, k] = h(n === void 0 ? "" : n), A = v || l, j = (e) => {
7801
+ D || k(e.target.value), d && d(e), f && f(e.target.value);
7802
+ }, M = (e) => {
7803
+ u?.(e);
7801
7804
  };
7802
7805
  return /* @__PURE__ */ e.createElement("div", {
7803
7806
  className: Z([
7804
- x,
7805
7807
  S,
7806
7808
  C,
7807
7809
  w,
7808
7810
  T,
7811
+ E,
7809
7812
  t ?? ""
7810
7813
  ]),
7811
7814
  style: Bt(o),
7812
- ...b
7815
+ ...x
7813
7816
  }, /* @__PURE__ */ e.createElement("fieldset", {
7814
- className: `${x}__fieldset`,
7817
+ className: `${S}__fieldset`,
7815
7818
  id: a,
7816
7819
  ...i
7817
7820
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -7819,28 +7822,29 @@ var Tr = {
7819
7822
  disabled: r,
7820
7823
  id: a,
7821
7824
  label: s,
7822
- required: p,
7823
- showLabel: m,
7824
- tooltipText: g
7825
- }), /* @__PURE__ */ e.createElement("div", { className: `${x}__options` }, f.map((t, n) => /* @__PURE__ */ e.createElement("div", {
7825
+ labelVariant: c,
7826
+ required: m,
7827
+ showLabel: g,
7828
+ tooltipText: _
7829
+ }), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, p.map((t, n) => /* @__PURE__ */ e.createElement("div", {
7826
7830
  key: `${a}-option-${n}`,
7827
- className: `${x}__option`
7831
+ className: `${S}__option`
7828
7832
  }, /* @__PURE__ */ e.createElement("input", {
7829
- checked: E ? y === t.value : D === t.value,
7833
+ checked: D ? b === t.value : O === t.value,
7830
7834
  disabled: r || t.disabled,
7831
7835
  id: t.id ? t.id : `${a}-option-${n}`,
7832
7836
  name: a,
7833
- onBlur: j,
7834
- onChange: A,
7835
- required: p,
7837
+ onBlur: M,
7838
+ onChange: j,
7839
+ required: m,
7836
7840
  type: "radio",
7837
7841
  value: t.value
7838
- }), /* @__PURE__ */ e.createElement("label", { htmlFor: t.id ? t.id : `${a}-option-${n}` }, t.label))))), k && /* @__PURE__ */ e.createElement(Wt, {
7842
+ }), /* @__PURE__ */ e.createElement("label", { htmlFor: t.id ? t.id : `${a}-option-${n}` }, t.label))))), A && /* @__PURE__ */ e.createElement(Wt, {
7839
7843
  validationMessageHasDecorators: !0,
7840
- hasValidationMessage: !!_,
7844
+ hasValidationMessage: !!v,
7841
7845
  id: a,
7842
- message: k,
7843
- validationStatus: v
7846
+ message: A,
7847
+ validationStatus: y
7844
7848
  }));
7845
7849
  }, Yr = a(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, label: c, message: l, offLabel: u = "Off", onChange: d, onLabel: f = "On", required: p = !1, showLabel: m = !0, showStatusLabel: g = !0, statusLabelPlacement: _ = "right", switchPlacement: v = "right", ...y }, b) => {
7846
7850
  let x = Bt(s), S = "pds-switch", C = `${S}--${v}`, w = l ? `${S}--message` : null, T = i ? $.disabled : null, E = p && !i ? $.required : null, D = t !== void 0, [O, k] = h(!D && r ? r : !1), A = t || O ? f : u, j = (e) => {
@@ -10246,51 +10250,131 @@ var Tr = {
10246
10250
  }))
10247
10251
  }))));
10248
10252
  }, oa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10253
+ next: "Next",
10254
+ previous: "Previous"
10255
+ }, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
10256
+ let f = p(() => Math.ceil(u / a), [u, a]), m = n <= 1, h = n >= f, g = "pds-pagination-chapter";
10257
+ return /* @__PURE__ */ e.createElement("nav", {
10258
+ "aria-labelledby": "pagination-chapter",
10259
+ className: Z([g, t ?? ""]),
10260
+ ...d
10261
+ }, /* @__PURE__ */ e.createElement(cn, {
10262
+ baseClass: g,
10263
+ className: "visually-hidden",
10264
+ id: "pagination-chapter",
10265
+ level: r
10266
+ }, i), !m && /* @__PURE__ */ e.createElement("button", {
10267
+ className: Z([`${g}__btn`, `${g}__btn--prev`]),
10268
+ onClick: () => c(n - 1),
10269
+ type: "button"
10270
+ }, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.previous), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement(Q, {
10271
+ iconName: "angleLeft",
10272
+ size: "m"
10273
+ }), /* @__PURE__ */ e.createElement("span", null, l))), !h && /* @__PURE__ */ e.createElement("button", {
10274
+ className: Z([`${g}__btn`, `${g}__btn--next`]),
10275
+ onClick: () => c(n + 1),
10276
+ type: "button"
10277
+ }, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.next), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement("span", null, s), /* @__PURE__ */ e.createElement(Q, {
10278
+ iconName: "angleRight",
10279
+ size: "m"
10280
+ }))));
10281
+ }, sa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10249
10282
  next: "Go to next page",
10250
10283
  of: "of",
10284
+ page: "Page",
10285
+ pageInputError: "Enter a page between 1 and {total}.",
10251
10286
  pageSelect: "Go to page",
10252
10287
  previous: "Go to previous page"
10253
- }, onPageChange: s, totalItemCount: c, ...l }) => {
10254
- let d = u(), f = p(() => Math.ceil(c / a), [c, a]), m = p(() => Array.from({ length: f }, (e, t) => ({
10288
+ }, onPageChange: s, pageControlType: c = "dropdown", totalItemCount: d, ...f }) => {
10289
+ let m = u(), g = p(() => Math.ceil(d / a), [d, a]), _ = p(() => Array.from({ length: g }, (e, t) => ({
10255
10290
  label: String(t + 1),
10256
10291
  value: String(t + 1)
10257
- })), [f]), h = n <= 1, g = n >= f, _ = "pds-pagination-compact";
10292
+ })), [g]), v = n <= 1, y = n >= g, b = "pds-pagination-compact", [x, S] = h(String(n)), [C, w] = h(null);
10293
+ l(() => {
10294
+ S(String(n)), w(null);
10295
+ }, [n]);
10296
+ let T = Math.max(2, String(g).length) * 10 + 24, E = () => {
10297
+ let e = Number(x);
10298
+ if (!x || !Number.isInteger(e) || e < 1 || e > g) {
10299
+ w(o.pageInputError.replace("{total}", String(g)));
10300
+ return;
10301
+ }
10302
+ w(null), e !== n && s(e);
10303
+ }, D = (e) => {
10304
+ S(e.target.value.replace(/[^0-9]/g, "")), C && w(null);
10305
+ }, O = (e) => {
10306
+ e.key === "Enter" && (e.preventDefault(), E());
10307
+ };
10258
10308
  return /* @__PURE__ */ e.createElement("nav", {
10259
10309
  "aria-labelledby": "pagination-compact",
10260
- className: Z([_, t ?? ""]),
10261
- ...l
10310
+ className: Z([b, t ?? ""]),
10311
+ ...f
10262
10312
  }, /* @__PURE__ */ e.createElement(cn, {
10263
- baseClass: _,
10313
+ baseClass: b,
10264
10314
  className: "visually-hidden",
10265
10315
  id: "pagination-compact",
10266
10316
  level: r
10267
- }, i), /* @__PURE__ */ e.createElement($n, {
10317
+ }, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ei, {
10318
+ className: C ? `${b}__page-input--error` : void 0,
10319
+ id: m,
10320
+ inputProps: {
10321
+ "aria-invalid": C ? !0 : void 0,
10322
+ inputMode: "numeric",
10323
+ onKeyDown: O,
10324
+ pattern: "[0-9]*"
10325
+ },
10326
+ inputWidth: T,
10327
+ label: o.pageSelect,
10328
+ onBlur: () => E(),
10329
+ onChange: D,
10330
+ showLabel: !1,
10331
+ size: "s",
10332
+ value: x
10333
+ }), C && /* @__PURE__ */ e.createElement("span", {
10334
+ className: "visually-hidden",
10335
+ role: "alert"
10336
+ }, C)) : /* @__PURE__ */ e.createElement($n, {
10268
10337
  autoWidth: !0,
10269
- id: d,
10338
+ id: m,
10270
10339
  label: o.pageSelect,
10271
10340
  onOptionSelect: (e) => s(Number(e.value)),
10272
- options: m,
10341
+ options: _,
10273
10342
  showLabel: !1,
10343
+ showSelectedIcon: !1,
10274
10344
  size: "s",
10275
10345
  value: String(n)
10276
- }), /* @__PURE__ */ e.createElement("span", { className: `${_}__count` }, o.of, " ", f), /* @__PURE__ */ e.createElement("div", { className: `${_}__nav` }, /* @__PURE__ */ e.createElement(zt, {
10346
+ }), /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.of, " ", g), /* @__PURE__ */ e.createElement("div", { className: `${b}__nav` }, v ? /* @__PURE__ */ e.createElement("button", {
10347
+ disabled: !0,
10348
+ "aria-label": o.previous,
10349
+ className: Z([`${b}__btn`, `${b}__btn--disabled`]),
10350
+ type: "button"
10351
+ }, /* @__PURE__ */ e.createElement(Q, {
10352
+ iconName: "angleLeft",
10353
+ size: "m"
10354
+ })) : /* @__PURE__ */ e.createElement(zt, {
10277
10355
  content: o.previous,
10278
10356
  customTrigger: /* @__PURE__ */ e.createElement("button", {
10279
10357
  "aria-label": o.previous,
10280
- className: Z([`${_}__btn`, h ? `${_}__btn--disabled` : null]),
10281
- disabled: h,
10358
+ className: `${b}__btn`,
10282
10359
  onClick: () => s(n - 1),
10283
10360
  type: "button"
10284
10361
  }, /* @__PURE__ */ e.createElement(Q, {
10285
10362
  iconName: "angleLeft",
10286
10363
  size: "m"
10287
10364
  }))
10288
- }), /* @__PURE__ */ e.createElement(zt, {
10365
+ }), y ? /* @__PURE__ */ e.createElement("button", {
10366
+ disabled: !0,
10367
+ "aria-label": o.next,
10368
+ className: Z([`${b}__btn`, `${b}__btn--disabled`]),
10369
+ type: "button"
10370
+ }, /* @__PURE__ */ e.createElement(Q, {
10371
+ iconName: "angleRight",
10372
+ size: "m"
10373
+ })) : /* @__PURE__ */ e.createElement(zt, {
10289
10374
  content: o.next,
10290
10375
  customTrigger: /* @__PURE__ */ e.createElement("button", {
10291
10376
  "aria-label": o.next,
10292
- className: Z([`${_}__btn`, g ? `${_}__btn--disabled` : null]),
10293
- disabled: g,
10377
+ className: `${b}__btn`,
10294
10378
  onClick: () => s(n + 1),
10295
10379
  type: "button"
10296
10380
  }, /* @__PURE__ */ e.createElement(Q, {
@@ -10298,35 +10382,6 @@ var Tr = {
10298
10382
  size: "m"
10299
10383
  }))
10300
10384
  })));
10301
- }, sa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10302
- next: "Next",
10303
- previous: "Previous"
10304
- }, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
10305
- let f = p(() => Math.ceil(u / a), [u, a]), m = n <= 1, h = n >= f, g = "pds-pagination-mini";
10306
- return /* @__PURE__ */ e.createElement("nav", {
10307
- "aria-labelledby": "pagination-mini",
10308
- className: Z([g, t ?? ""]),
10309
- ...d
10310
- }, /* @__PURE__ */ e.createElement(cn, {
10311
- baseClass: g,
10312
- className: "visually-hidden",
10313
- id: "pagination-mini",
10314
- level: r
10315
- }, i), !m && /* @__PURE__ */ e.createElement("button", {
10316
- className: Z([`${g}__btn`, `${g}__btn--prev`]),
10317
- onClick: () => c(n - 1),
10318
- type: "button"
10319
- }, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.previous), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement(Q, {
10320
- iconName: "angleLeft",
10321
- size: "m"
10322
- }), /* @__PURE__ */ e.createElement("span", null, l))), !h && /* @__PURE__ */ e.createElement("button", {
10323
- className: Z([`${g}__btn`, `${g}__btn--next`]),
10324
- onClick: () => c(n + 1),
10325
- type: "button"
10326
- }, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.next), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement("span", null, s), /* @__PURE__ */ e.createElement(Q, {
10327
- iconName: "angleRight",
10328
- size: "m"
10329
- }))));
10330
10385
  }, ca = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10331
10386
  let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
10332
10387
  return l(() => {
@@ -10751,7 +10806,22 @@ var Tr = {
10751
10806
  x: "50%",
10752
10807
  y: "51%"
10753
10808
  }, w))));
10754
- }, wa = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
10809
+ }, wa = {
10810
+ of: "of",
10811
+ showing: "Showing",
10812
+ unitPlural: "results",
10813
+ unitSingular: "result"
10814
+ }, Ta = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Ea = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
10815
+ let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
10816
+ ...wa,
10817
+ ...i
10818
+ }, p = n !== void 0, m = Ta(r, f, d, a);
10819
+ return /* @__PURE__ */ e.createElement("div", {
10820
+ "aria-live": "polite",
10821
+ className: Z([s, t ?? ""]),
10822
+ ...o
10823
+ }, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && `${u} `, /* @__PURE__ */ e.createElement("span", { className: c }, n), ` ${l} `), /* @__PURE__ */ e.createElement("span", { className: c }, r), ` ${m}`));
10824
+ }, Da = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
10755
10825
  "privacy",
10756
10826
  "dataSubjectRequest",
10757
10827
  "cookiePolicy",
@@ -10769,7 +10839,7 @@ var Tr = {
10769
10839
  ]),
10770
10840
  ...c
10771
10841
  }, /* @__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"))));
10772
- }, Ta = ({ className: t, option: n, ...r }) => {
10842
+ }, Oa = ({ className: t, option: n, ...r }) => {
10773
10843
  let i = "pds-site-option-display", a = n.type ? Ln[n.type] : "boltSolid", o = m(null), [s] = De(o), c = s.width / 16 - 7.5, l, u;
10774
10844
  n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
10775
10845
  let d = /* @__PURE__ */ e.createElement(rn, {
@@ -10792,7 +10862,7 @@ var Tr = {
10792
10862
  className: `${i}__status`,
10793
10863
  style: { pointerEvents: "none" }
10794
10864
  }, d));
10795
- }, Ea = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
10865
+ }, ka = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
10796
10866
  clearButton: "Clear input text",
10797
10867
  inputInstructions: "Type to search options"
10798
10868
  }, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
@@ -10804,7 +10874,7 @@ var Tr = {
10804
10874
  id: n,
10805
10875
  label: i,
10806
10876
  value: r ?? i,
10807
- optionDisplay: /* @__PURE__ */ e.createElement(Ta, { option: t }),
10877
+ optionDisplay: /* @__PURE__ */ e.createElement(Oa, { option: t }),
10808
10878
  siteData: t
10809
10879
  };
10810
10880
  });
@@ -10833,7 +10903,7 @@ var Tr = {
10833
10903
  };
10834
10904
  //#endregion
10835
10905
  //#region src/components/SortableList/sortable-utils.ts
10836
- function Da(e, t, n = null, r = 0, i = []) {
10906
+ function Aa(e, t, n = null, r = 0, i = []) {
10837
10907
  return e.reduce((e, a, o) => {
10838
10908
  let s = !!a.children?.length, c = t.has(a.id);
10839
10909
  return e.push({
@@ -10845,10 +10915,10 @@ function Da(e, t, n = null, r = 0, i = []) {
10845
10915
  index: o,
10846
10916
  isExpanded: c,
10847
10917
  parentId: n
10848
- }), s && c && a.children && e.push(...Da(a.children, t, a.id, r + 1, [...i, a.id])), e;
10918
+ }), s && c && a.children && e.push(...Aa(a.children, t, a.id, r + 1, [...i, a.id])), e;
10849
10919
  }, []);
10850
10920
  }
10851
- function Oa(e) {
10921
+ function ja(e) {
10852
10922
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
10853
10923
  for (let i of e) {
10854
10924
  let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
@@ -10861,28 +10931,28 @@ function Oa(e) {
10861
10931
  e && (e.children || (e.children = []), e.children.push(o));
10862
10932
  }
10863
10933
  }
10864
- return ka(r);
10934
+ return Ma(r);
10865
10935
  }
10866
- function ka(e) {
10936
+ function Ma(e) {
10867
10937
  return e.map((e) => {
10868
10938
  if (e.children?.length) return {
10869
10939
  ...e,
10870
- children: ka(e.children)
10940
+ children: Ma(e.children)
10871
10941
  };
10872
10942
  let { children: t, ...n } = e;
10873
10943
  return n;
10874
10944
  });
10875
10945
  }
10876
- function Aa(e, t) {
10946
+ function Na(e, t) {
10877
10947
  for (let n of e) {
10878
10948
  if (n.id === t) return n;
10879
10949
  if (n.children) {
10880
- let e = Aa(n.children, t);
10950
+ let e = Na(n.children, t);
10881
10951
  if (e) return e;
10882
10952
  }
10883
10953
  }
10884
10954
  }
10885
- function ja(e, t, n, r, i, a, o) {
10955
+ function Pa(e, t, n, r, i, a, o) {
10886
10956
  let s = e.findIndex((e) => e.id === n);
10887
10957
  if (s === -1) return 0;
10888
10958
  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;
@@ -10890,7 +10960,7 @@ function ja(e, t, n, r, i, a, o) {
10890
10960
  }
10891
10961
  //#endregion
10892
10962
  //#region src/components/SortableList/SortableListHeader.tsx
10893
- var Ma = ({ children: t, className: n, columns: r, ...i }) => {
10963
+ var Fa = ({ children: t, className: n, columns: r, ...i }) => {
10894
10964
  if (!r && !t) return null;
10895
10965
  let a = r ? {
10896
10966
  display: "grid",
@@ -10911,13 +10981,13 @@ var Ma = ({ children: t, className: n, columns: r, ...i }) => {
10911
10981
  };
10912
10982
  //#endregion
10913
10983
  //#region src/components/SortableList/useSortableTree.ts
10914
- function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10984
+ function Ia({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10915
10985
  let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
10916
10986
  t && !d.current && (u.current = {
10917
10987
  items: i ? n : a,
10918
10988
  expandedIds: c
10919
- }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Fa("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
10920
- let f = i ? n : a, g = p(() => Da(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
10989
+ }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ra("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
10990
+ let f = i ? n : a, g = p(() => Aa(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
10921
10991
  l((t) => {
10922
10992
  let n = new Set(t);
10923
10993
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -10935,7 +11005,7 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10935
11005
  }, []),
10936
11006
  flatNodes: g,
10937
11007
  handleReorder: s((e) => {
10938
- let t = Oa(e);
11008
+ let t = ja(e);
10939
11009
  i || o(t), r?.(t);
10940
11010
  }, [i, r]),
10941
11011
  resetToSnapshot: s(() => {
@@ -10947,24 +11017,24 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10947
11017
  toggleExpand: v
10948
11018
  };
10949
11019
  }
10950
- var Pa = /* @__PURE__ */ new Set();
10951
- function Fa(e) {
10952
- Pa.has(e) || (Pa.add(e), console.warn(e));
11020
+ var La = /* @__PURE__ */ new Set();
11021
+ function Ra(e) {
11022
+ La.has(e) || (La.add(e), console.warn(e));
10953
11023
  }
10954
11024
  //#endregion
10955
11025
  //#region src/components/SortableList/SortableList.tsx
10956
- var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = 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) {
11026
+ var za = 24, Ba = { droppable: { strategy: je.Always } }, Va = 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) {
10957
11027
  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), ee = s((e, t) => {
10958
11028
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
10959
11029
  e.preventDefault();
10960
11030
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
10961
11031
  return B.current = i, z(i), {
10962
- x: t.currentCoordinates.x + a * Ia,
11032
+ x: t.currentCoordinates.x + a * za,
10963
11033
  y: t.currentCoordinates.y
10964
11034
  };
10965
11035
  }
10966
11036
  return Le(e, t);
10967
- }, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } = Na({
11037
+ }, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } = Ia({
10968
11038
  defaultItems: a,
10969
11039
  isDragEnabled: W,
10970
11040
  items: g,
@@ -10991,9 +11061,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
10991
11061
  X,
10992
11062
  J,
10993
11063
  j
10994
- ]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ? Aa(G, String(T)) ?? null : null, [T, G]), de = p(() => {
11064
+ ]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ? Na(G, String(T)) ?? null : null, [T, G]), de = p(() => {
10995
11065
  let e = le?.depth ?? 0;
10996
- return !T || !j || O || _ === 0 ? e : ja(K, String(T), String(j), V * Ia, Ia, _);
11066
+ return !T || !j || O || _ === 0 ? e : Pa(K, String(T), String(j), V * za, za, _);
10997
11067
  }, [
10998
11068
  T,
10999
11069
  le,
@@ -11005,7 +11075,7 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11005
11075
  ]), fe = p(() => {
11006
11076
  if (!T || O || de === 0 || j && X(j)) return null;
11007
11077
  let e = K.findIndex((e) => e.id === T);
11008
- return e === -1 ? null : za(K, e, de);
11078
+ return e === -1 ? null : Ha(K, e, de);
11009
11079
  }, [
11010
11080
  T,
11011
11081
  K,
@@ -11051,19 +11121,19 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11051
11121
  }, [K, J]), ge = s((e) => {
11052
11122
  let t = e.delta.x;
11053
11123
  if (P.current = t, A.current || _ === 0) return;
11054
- let n = Math.floor(t / Ia), r = U.current;
11055
- (n > r || n < r && t < r * Ia - Ia * .4) && (U.current = n, H(n));
11124
+ let n = Math.floor(t / za), r = U.current;
11125
+ (n > r || n < r && t < r * za - za * .4) && (U.current = n, H(n));
11056
11126
  }, [_]), _e = s((e) => {
11057
11127
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
11058
11128
  E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (te(L.current), L.current = null);
11059
- let o = K.findIndex((e) => e.id === t.id), s = r ? i * Ia : a * Ia, c = !n || t.id === n.id, l = n?.id ?? null;
11129
+ let o = K.findIndex((e) => e.id === t.id), s = r ? i * za : a * za, c = !n || t.id === n.id, l = n?.id ?? null;
11060
11130
  if (r && i > 0 && c && o > 0 && (l = K[o - 1].id), !l || t.id === l) {
11061
11131
  if (o === -1) return;
11062
11132
  let e = K[o];
11063
11133
  if (!e) return;
11064
- let n = ja(K, String(t.id), String(t.id), s, Ia, _);
11134
+ let n = Pa(K, String(t.id), String(t.id), s, za, _);
11065
11135
  if (n === e.depth) return;
11066
- let r = [...K], [i] = r.splice(o, 1), a = za(r, o, n);
11136
+ let r = [...K], [i] = r.splice(o, 1), a = Ha(r, o, n);
11067
11137
  if (a && Y.has(a)) return;
11068
11138
  let c = {
11069
11139
  ...i,
@@ -11085,9 +11155,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11085
11155
  let e = K[u];
11086
11156
  g = Math.min(e.depth + 1, _), v = String(l);
11087
11157
  } else {
11088
- g = ja(d, String(t.id), String(l), s, Ia, _, p.depth);
11158
+ g = Pa(d, String(t.id), String(l), s, za, _, p.depth);
11089
11159
  let e = d[h];
11090
- v = e && e.depth === g - 1 ? String(l) : za(d, h, g);
11160
+ v = e && e.depth === g - 1 ? String(l) : Ha(d, h, g);
11091
11161
  }
11092
11162
  if (v && Y.has(v)) return;
11093
11163
  let y = {
@@ -11110,24 +11180,24 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11110
11180
  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 && (te(L.current), L.current = null);
11111
11181
  }, [te]), ye = p(() => ({
11112
11182
  onDragStart({ active: e }) {
11113
- let t = K.find((t) => t.id === e.id), n = Aa(G, String(e.id));
11183
+ let t = K.find((t) => t.id === e.id), n = Na(G, String(e.id));
11114
11184
  return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? K.indexOf(t) + 1 : "?"} of ${K.length} at depth ${t?.depth ?? 0}.`;
11115
11185
  },
11116
11186
  onDragOver({ active: e, over: t }) {
11117
11187
  if (!t) return;
11118
11188
  let n = K.findIndex((e) => e.id === t.id);
11119
11189
  if (n === -1) return;
11120
- let r = Aa(G, String(e.id)), i = r ? c(r) : String(e.id), a = ja(K, String(e.id), String(t.id), P.current, Ia, _);
11190
+ let r = Na(G, String(e.id)), i = r ? c(r) : String(e.id), a = Pa(K, String(e.id), String(t.id), P.current, za, _);
11121
11191
  return `Moving ${i}. Target position: ${n + 1} of ${K.length} at depth ${a}.`;
11122
11192
  },
11123
11193
  onDragEnd({ active: e, over: t }) {
11124
- let n = Aa(G, String(e.id)), r = n ? c(n) : String(e.id);
11194
+ let n = Na(G, String(e.id)), r = n ? c(n) : String(e.id);
11125
11195
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
11126
- let i = K.findIndex((e) => e.id === t.id), a = ja(K, String(e.id), String(t.id), P.current, Ia, _);
11196
+ let i = K.findIndex((e) => e.id === t.id), a = Pa(K, String(e.id), String(t.id), P.current, za, _);
11127
11197
  return `${r} dropped at position ${i + 1} of ${K.length} at depth ${a}.`;
11128
11198
  },
11129
11199
  onDragCancel({ active: e }) {
11130
- let t = K.find((t) => t.id === e.id), n = Aa(G, String(e.id));
11200
+ let t = K.find((t) => t.id === e.id), n = Na(G, String(e.id));
11131
11201
  return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? K.indexOf(t) + 1 : "?"} of ${K.length}.`;
11132
11202
  }
11133
11203
  }), [
@@ -11135,14 +11205,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11135
11205
  K,
11136
11206
  c,
11137
11207
  _
11138
- ]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === Ma ? e.cloneElement(t, be) : t);
11208
+ ]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === Fa ? e.cloneElement(t, be) : t);
11139
11209
  return /* @__PURE__ */ e.createElement(Oe, {
11140
11210
  accessibility: {
11141
11211
  announcements: ye,
11142
11212
  ...x ? { screenReaderInstructions: { draggable: x } } : {}
11143
11213
  },
11144
11214
  collisionDetection: me,
11145
- measuring: La,
11215
+ measuring: Ba,
11146
11216
  onDragCancel: ve,
11147
11217
  onDragEnd: _e,
11148
11218
  onDragMove: ge,
@@ -11217,14 +11287,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11217
11287
  return o(a) ? e.cloneElement(a, s) : a;
11218
11288
  })()) : null));
11219
11289
  });
11220
- function za(e, t, n) {
11290
+ function Ha(e, t, n) {
11221
11291
  if (n === 0) return null;
11222
11292
  for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
11223
11293
  return null;
11224
11294
  }
11225
11295
  //#endregion
11226
11296
  //#region src/components/SortableList/SortableRow.tsx
11227
- var Ba = ({ 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 }) => {
11297
+ var Ua = ({ 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 }) => {
11228
11298
  let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
11229
11299
  attributes: {
11230
11300
  role: "listitem",
@@ -11279,11 +11349,11 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11279
11349
  key: t.id,
11280
11350
  className: `${w}__cell`
11281
11351
  }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
11282
- }, Va = [
11352
+ }, Wa = [
11283
11353
  "default",
11284
11354
  "working",
11285
11355
  "checked"
11286
- ], Ha = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11356
+ ], Ga = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11287
11357
  let l = {
11288
11358
  checkForUpdates: "Check for updates",
11289
11359
  checking: "Checking...",
@@ -11330,7 +11400,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11330
11400
  triggerIconColor: "default",
11331
11401
  triggerIconSize: "s"
11332
11402
  }), t === "left" && g));
11333
- }, Ua = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11403
+ }, Ka = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11334
11404
  let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
11335
11405
  className: `${s}__spinner`,
11336
11406
  size: "m"
@@ -11347,7 +11417,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11347
11417
  ]),
11348
11418
  ...a
11349
11419
  }, r ? d : l);
11350
- }, Wa = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11420
+ }, qa = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11351
11421
  let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
11352
11422
  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`;
11353
11423
  return /* @__PURE__ */ e.createElement("li", {
@@ -11365,7 +11435,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11365
11435
  style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
11366
11436
  ...a
11367
11437
  }, l);
11368
- }, Ga = ({ className: t, steps: n, translatableLabels: r = {
11438
+ }, Ja = ({ className: t, steps: n, translatableLabels: r = {
11369
11439
  step: "Step",
11370
11440
  completed: "completed",
11371
11441
  hasError: "has an error",
@@ -11454,7 +11524,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11454
11524
  "data-steps": d,
11455
11525
  ...i
11456
11526
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
11457
- }, Ka = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11527
+ }, Ya = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11458
11528
  let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
11459
11529
  return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
11460
11530
  className: Z([...p]),
@@ -11480,14 +11550,14 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11480
11550
  size: "s",
11481
11551
  variant: "highlight"
11482
11552
  })))));
11483
- }, qa = ({ className: t, labelStrings: n = {
11553
+ }, Xa = ({ className: t, labelStrings: n = {
11484
11554
  step: "Step",
11485
11555
  completed: "completed",
11486
11556
  hasError: "has an error"
11487
11557
  }, steps: r, ...i }) => {
11488
11558
  let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
11489
11559
  let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
11490
- return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Ka, {
11560
+ return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Ya, {
11491
11561
  key: `s${i}`,
11492
11562
  _isFirstStep: c,
11493
11563
  "aria-current": a ? "step" : null,
@@ -11508,7 +11578,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11508
11578
  className: Z([a, t ?? ""]),
11509
11579
  ...i
11510
11580
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11511
- }, Ja = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: ee, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: te, sortKey: K, sortOrder: ne, totalItemCount: re, ...ie }) => {
11581
+ }, Za = ({ 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: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: ee, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: te, sortKey: K, sortOrder: ne, totalItemCount: re, ...ie }) => {
11512
11582
  let q = "pds-table", ae = u(), oe = u(), J = m(null), Y = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = W.length > 0 || X && (re ?? 0) > 0, [ue, de] = h({
11513
11583
  key: a ?? "",
11514
11584
  order: a === void 0 ? "asc" : o
@@ -11687,7 +11757,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11687
11757
  showLabel: !1,
11688
11758
  size: "s",
11689
11759
  value: String(be)
11690
- }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(oa, {
11760
+ }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(sa, {
11691
11761
  currentPage: X ? i ?? 1 : fe,
11692
11762
  itemsPerPage: be,
11693
11763
  labelStrings: B,
@@ -11729,7 +11799,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11729
11799
  variant: "standard"
11730
11800
  }))))));
11731
11801
  return V ? /* @__PURE__ */ e.createElement(ua, { padding: "none" }, Ze) : Ze;
11732
- }, Ya = [
11802
+ }, Qa = [
11733
11803
  " ",
11734
11804
  "/",
11735
11805
  ".",
@@ -11747,7 +11817,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11747
11817
  "=",
11748
11818
  "|",
11749
11819
  "~"
11750
- ], Xa = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Za = (e) => {
11820
+ ], $a = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), eo = (e) => {
11751
11821
  let t = [];
11752
11822
  return e.forEach((e) => {
11753
11823
  let { id: n, innerText: r } = e;
@@ -11760,18 +11830,18 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11760
11830
  title: r
11761
11831
  });
11762
11832
  }), t;
11763
- }, Qa = (e, t, n) => {
11833
+ }, to = (e, t, n) => {
11764
11834
  let [r, i] = h([]);
11765
11835
  return l(() => {
11766
11836
  let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
11767
11837
  let e = Array.from(document.querySelectorAll(r));
11768
11838
  e.forEach((e) => {
11769
- Ya.forEach((t) => {
11770
- e.id.includes(t) && (e.id = e.id.replace(new RegExp(Xa(t), "g"), "-"));
11839
+ Qa.forEach((t) => {
11840
+ e.id.includes(t) && (e.id = e.id.replace(new RegExp($a(t), "g"), "-"));
11771
11841
  });
11772
11842
  }), e.forEach((e, t) => {
11773
11843
  e.id || (e.id = `${n}-item-${t}`);
11774
- }), i(Za(e));
11844
+ }), i(eo(e));
11775
11845
  };
11776
11846
  a();
11777
11847
  let o = document.getElementById(e);
@@ -11787,7 +11857,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11787
11857
  t,
11788
11858
  n
11789
11859
  ]), { nestedHeadings: r };
11790
- }, $a = (e, t) => {
11860
+ }, no = (e, t) => {
11791
11861
  let [n, r] = h(void 0), i = m({});
11792
11862
  return l(() => {
11793
11863
  let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
@@ -11806,7 +11876,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11806
11876
  o.disconnect(), r(void 0);
11807
11877
  };
11808
11878
  }, [e, t]), n;
11809
- }, eo = ({ 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", {
11879
+ }, ro = ({ 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", {
11810
11880
  key: r.id,
11811
11881
  className: `${n}__list-item`
11812
11882
  }, /* @__PURE__ */ e.createElement("a", {
@@ -11822,8 +11892,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11822
11892
  className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
11823
11893
  href: `#${r.id}`,
11824
11894
  onClick: (e) => i(e, r.id)
11825
- }, r.title))))))), to = ({ 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 }) => {
11826
- let d = "pds-toc", { nestedHeadings: f } = Qa(c, o, u()), p = $a(c, o), m = (e) => {
11895
+ }, r.title))))))), io = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
11896
+ let d = "pds-toc", { nestedHeadings: f } = to(c, o, u()), p = no(c, o), m = (e) => {
11827
11897
  typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
11828
11898
  }, h = (e) => {
11829
11899
  document.querySelector(`#${e}`)?.scrollIntoView({
@@ -11841,13 +11911,13 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11841
11911
  baseClass: d,
11842
11912
  className: `${s ? "" : "visually-hidden"}`,
11843
11913
  level: i
11844
- }, a), /* @__PURE__ */ e.createElement(eo, {
11914
+ }, a), /* @__PURE__ */ e.createElement(ro, {
11845
11915
  activeID: p,
11846
11916
  baseClass: d,
11847
11917
  headings: f,
11848
11918
  onLinkClick: g
11849
11919
  }));
11850
- }, no = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
11920
+ }, ao = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
11851
11921
  let c = "pds-tabs", [u, d] = h(a ?? r);
11852
11922
  l(() => {
11853
11923
  a !== void 0 && d(a);
@@ -11961,7 +12031,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11961
12031
  className: `${c}__panel-content`,
11962
12032
  hidden: o !== u
11963
12033
  }, r)))));
11964
- }, ro = [
12034
+ }, oo = [
11965
12035
  "orange",
11966
12036
  "stone",
11967
12037
  "gold",
@@ -11976,7 +12046,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11976
12046
  "rose",
11977
12047
  "red",
11978
12048
  "silver"
11979
- ], io = [
12049
+ ], so = [
11980
12050
  "orange-solid",
11981
12051
  "teal-solid",
11982
12052
  "indigo-solid",
@@ -11987,8 +12057,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11987
12057
  "critical-solid",
11988
12058
  "info-solid",
11989
12059
  "discovery-solid"
11990
- ], ao = (e) => ro[parseInt(_(e), 16) % ro.length], oo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, so = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
11991
- let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${ao(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
12060
+ ], co = (e) => oo[parseInt(_(e), 16) % oo.length], lo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, uo = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
12061
+ let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${co(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
11992
12062
  p((e) => !e);
11993
12063
  }, b, x, S;
11994
12064
  if (r && !n && o(r)) {
@@ -12010,7 +12080,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12010
12080
  }, /* @__PURE__ */ e.createElement("span", {
12011
12081
  className: `${m}__label`,
12012
12082
  title: l
12013
- }, u > 0 ? oo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12083
+ }, u > 0 ? lo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12014
12084
  "aria-label": `${a}: ${l}`,
12015
12085
  className: `${m}__remove`,
12016
12086
  onClick: () => {
@@ -12022,7 +12092,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12022
12092
  iconName: "xmark",
12023
12093
  size: "m"
12024
12094
  })) : null);
12025
- }, co = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12095
+ }, fo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12026
12096
  let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Xe(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
12027
12097
  return /* @__PURE__ */ e.createElement("div", {
12028
12098
  className: Z([
@@ -12033,7 +12103,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12033
12103
  ]),
12034
12104
  ...a
12035
12105
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
12036
- }, lo = () => {
12106
+ }, po = () => {
12037
12107
  let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = h(e ? t(window.innerWidth) : "lg");
12038
12108
  return l(() => {
12039
12109
  if (!e) return;
@@ -12044,7 +12114,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12044
12114
  window.removeEventListener("resize", n);
12045
12115
  };
12046
12116
  }, []), n;
12047
- }, uo = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12117
+ }, mo = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12048
12118
  let [j, M] = h(u || !1);
12049
12119
  l(() => {
12050
12120
  M(u || !1);
@@ -12066,7 +12136,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12066
12136
  return;
12067
12137
  }
12068
12138
  M(!j);
12069
- }, U = lo();
12139
+ }, U = po();
12070
12140
  l(() => {
12071
12141
  U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
12072
12142
  }, [U]);
@@ -12169,7 +12239,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12169
12239
  !e && c && b && b();
12170
12240
  }
12171
12241
  }, r));
12172
- }, fo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12242
+ }, ho = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12173
12243
  let c = "pds-docs-layout", l = {
12174
12244
  "--docs-sidebar-max-width": `${i}rem`,
12175
12245
  "--docs-sidebar-min-width": `${a}rem`,
@@ -12187,7 +12257,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12187
12257
  },
12188
12258
  ...s
12189
12259
  }, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
12190
- }, po = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12260
+ }, go = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12191
12261
  let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
12192
12262
  return /* @__PURE__ */ e.createElement("div", {
12193
12263
  className: Z([u, n ?? ""]),
@@ -12201,7 +12271,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12201
12271
  },
12202
12272
  ...l
12203
12273
  }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
12204
- }, mo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12274
+ }, _o = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12205
12275
  let o = Xe(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(xi, {
12206
12276
  className: Z([
12207
12277
  l,
@@ -12212,7 +12282,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12212
12282
  ...a
12213
12283
  }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
12214
12284
  return i ? /* @__PURE__ */ e.createElement(ua, null, d) : d;
12215
- }, ho = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12285
+ }, vo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12216
12286
  let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Xe(t), u = [
12217
12287
  l["first-item"],
12218
12288
  l["second-item"],
@@ -12230,7 +12300,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12230
12300
  key: n,
12231
12301
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
12232
12302
  }, t)));
12233
- }, go = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12303
+ }, yo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12234
12304
  let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
12235
12305
  switch (i) {
12236
12306
  case "equal":
@@ -12251,7 +12321,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12251
12321
  ]),
12252
12322
  ...o
12253
12323
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
12254
- }, _o = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12324
+ }, bo = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12255
12325
  let _ = "pds-flex", v = `${_}-container`, y = {
12256
12326
  "--pds-flex-align-content": t,
12257
12327
  "--pds-flex-align-items": n,
@@ -12277,7 +12347,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12277
12347
  },
12278
12348
  ...g
12279
12349
  }, r);
12280
- }, vo = (e) => {
12350
+ }, xo = (e) => {
12281
12351
  let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
12282
12352
  return l(() => {
12283
12353
  if (!t) return;
@@ -12286,20 +12356,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12286
12356
  };
12287
12357
  return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
12288
12358
  }, [e]), n;
12289
- }, yo = [
12359
+ }, So = [
12290
12360
  "light",
12291
12361
  "dark",
12292
12362
  "system"
12293
- ], bo = (e) => typeof e == "string" && yo.includes(e), xo = r(null), So = {
12363
+ ], Co = (e) => typeof e == "string" && So.includes(e), wo = r(null), To = {
12294
12364
  resolvedTheme: "light",
12295
12365
  setTheme: () => {},
12296
12366
  theme: "light"
12297
- }, Co = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, wo = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
12298
- let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = vo("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
12367
+ }, Eo = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, Do = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
12368
+ let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = xo("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
12299
12369
  l(() => {
12300
12370
  if (_(!0), !(d || !o || typeof window > "u")) try {
12301
12371
  let e = window.localStorage.getItem(c);
12302
- bo(e) && m(e);
12372
+ Co(e) && m(e);
12303
12373
  } catch {}
12304
12374
  }, []), l(() => {
12305
12375
  typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
@@ -12319,20 +12389,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12319
12389
  ]),
12320
12390
  theme: v
12321
12391
  };
12322
- return /* @__PURE__ */ e.createElement(xo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Co({
12392
+ return /* @__PURE__ */ e.createElement(wo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Eo({
12323
12393
  defaultTheme: n,
12324
12394
  storageKey: c
12325
12395
  }) } }), t);
12326
- }, To = () => c(xo) ?? So, Eo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12396
+ }, Oo = () => c(wo) ?? To, ko = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12327
12397
  l(() => {
12328
12398
  let e = document.documentElement, t = () => {
12329
12399
  window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
12330
12400
  };
12331
12401
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12332
12402
  }, [r]);
12333
- let a = n ? /* @__PURE__ */ e.createElement(wo, i, t) : t;
12403
+ let a = n ? /* @__PURE__ */ e.createElement(Do, i, t) : t;
12334
12404
  return /* @__PURE__ */ e.createElement(It, null, a);
12335
- }, Do = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12405
+ }, Ao = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12336
12406
  let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
12337
12407
  return /* @__PURE__ */ e.createElement("div", {
12338
12408
  className: Z([
@@ -12346,7 +12416,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12346
12416
  ]),
12347
12417
  ...c
12348
12418
  }, n);
12349
- }, Oo = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12419
+ }, jo = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12350
12420
  let f = "pds-grid-item", p = [
12351
12421
  l ? `${f}--sm-${l}` : null,
12352
12422
  c ? `${f}--md-${c}` : null,
@@ -12365,7 +12435,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12365
12435
  ]),
12366
12436
  ...d
12367
12437
  }, t);
12368
- }, ko = (e, t, n) => {
12438
+ }, Mo = (e, t, n) => {
12369
12439
  let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: c = !1 } = n ?? {}, [u, d] = h(!1), f = s((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === c, [
12370
12440
  r,
12371
12441
  i,
@@ -12389,7 +12459,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12389
12459
  m,
12390
12460
  a
12391
12461
  ]), u;
12392
- }, Ao = () => {
12462
+ }, No = () => {
12393
12463
  let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
12394
12464
  return l(() => {
12395
12465
  if (!e) return;
@@ -12403,6 +12473,6 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12403
12473
  }, []), t;
12404
12474
  };
12405
12475
  //#endregion
12406
- export { Jn as ActionCard, uo as AppLayout, rt as Avatar, it as Badge, zi as Banner, _r as BarChart, on as BranchDiff, ui as Breadcrumb, un as Button, dn as ButtonLink, yi as ButtonNav, oi as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Ir as Checkbox, Lr as CheckboxFieldset, Rr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Er as CodeBlock, zr as Combobox, Vr as ComboboxMultiselect, Zn as CompactEmptyState, Or as ComparisonList, xi as Container, Gr as Datepicker, fo as DocsLayout, ea as Drawer, bn as Dropdown, bi as DropdownMenu, ca as ExpansionPanel, la as ExpansionPanelGroup, Mr as FileDiff, Kr as FileUpload, kn as FilterButton, _o as FlexContainer, ta as FullScreenOverlay, Eo as GlobalWrapper, Do as Grid, Oo as GridItem, Ar as HorizontalEmptyState, Q as Icon, pn as IconButton, Fr as IdentityBlock, Vi as InlineMessage, qr as InputGroup, yr as LineChart, si as LinkNewWindow, Wi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, na as Modal, Si as Navbar, aa as Pagination, oa as PaginationCompact, sa as PaginationMini, ua as Panel, da as PanelList, fa as PanelRow, ga as PantheonLogo, Pr as PaymentIcon, li as Picture, xr as PieChart, Hn as PlatformIcon, ya as Popover, xa as ProgressBar, Ca as ProgressRing, Cr as ProportionBar, Jr as RadioGroup, Wn as SSOButton, Ui as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, Ci as SideNav, Ti as SideNavGlobal, wi as SideNavGlobalItem, po as SidebarLayout, wa as SiteFooter, Di as SiteMenu, Ta as SiteOptionDisplay, Ea as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, ci as Skiplink, Ra as SortableList, Ma as SortableListHeader, Ba as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, Ha as StatusChecker, Ua as StatusIndicator, jn as StatusTypeLabels, Wa as StepList, Ga as Stepper, mo as StepperLayout, Yr as Switch, ki as TabMenu, Ja as Table, to as TableOfContents, no as Tabs, so as Tag, Zr as TagsInput, an as Tally, ei as TextInput, Qr as Textarea, xo as ThemeContext, wo as ThemeContextProvider, Ni as ThemeSwitcher, ho as ThreeItemLayout, ai as TimeInput, Zi as Toast, Qi as ToastType, Ji as Toaster, Ki as ToasterContext, zt as Tooltip, ji as TreeNav, go as TwoItemLayout, Pi as UserMenu, co as UtilityBar, Gn as UtilityButton, jr as VerticalEmptyState, qa as VerticalStepper, kr as VideoEmbed, Fi as WorkspaceSelector, Ur as getPresetDateRange, Co as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Va as statusCheckerStates, ro as tagColors, io as tagSolidColors, lo as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, ko as useKeyPress, Rt as useKeyboardShortcut, vo as useMediaQuery, To as useTheme, $i as useToast, Ao as useWindowWidth };
12476
+ export { Jn as ActionCard, mo as AppLayout, rt as Avatar, it as Badge, zi as Banner, _r as BarChart, on as BranchDiff, ui as Breadcrumb, un as Button, dn as ButtonLink, yi as ButtonNav, oi as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Ir as Checkbox, Lr as CheckboxFieldset, Rr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Er as CodeBlock, zr as Combobox, Vr as ComboboxMultiselect, Zn as CompactEmptyState, Or as ComparisonList, xi as Container, Gr as Datepicker, ho as DocsLayout, ea as Drawer, bn as Dropdown, bi as DropdownMenu, ca as ExpansionPanel, la as ExpansionPanelGroup, Mr as FileDiff, Kr as FileUpload, kn as FilterButton, bo as FlexContainer, ta as FullScreenOverlay, ko as GlobalWrapper, Ao as Grid, jo as GridItem, Ar as HorizontalEmptyState, Q as Icon, pn as IconButton, Fr as IdentityBlock, Vi as InlineMessage, qr as InputGroup, yr as LineChart, si as LinkNewWindow, Wi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, na as Modal, Si as Navbar, aa as Pagination, oa as PaginationChapter, sa as PaginationCompact, ua as Panel, da as PanelList, fa as PanelRow, ga as PantheonLogo, Pr as PaymentIcon, li as Picture, xr as PieChart, Hn as PlatformIcon, ya as Popover, xa as ProgressBar, Ca as ProgressRing, Cr as ProportionBar, Jr as RadioGroup, Ea as ResultCount, Wn as SSOButton, Ui as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, Ci as SideNav, Ti as SideNavGlobal, wi as SideNavGlobalItem, go as SidebarLayout, Da as SiteFooter, Di as SiteMenu, Oa as SiteOptionDisplay, ka as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, ci as Skiplink, Va as SortableList, Fa as SortableListHeader, Ua as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, Ga as StatusChecker, Ka as StatusIndicator, jn as StatusTypeLabels, qa as StepList, Ja as Stepper, _o as StepperLayout, Yr as Switch, ki as TabMenu, Za as Table, io as TableOfContents, ao as Tabs, uo as Tag, Zr as TagsInput, an as Tally, ei as TextInput, Qr as Textarea, wo as ThemeContext, Do as ThemeContextProvider, Ni as ThemeSwitcher, vo as ThreeItemLayout, ai as TimeInput, Zi as Toast, Qi as ToastType, Ji as Toaster, Ki as ToasterContext, zt as Tooltip, ji as TreeNav, yo as TwoItemLayout, Pi as UserMenu, fo as UtilityBar, Gn as UtilityButton, jr as VerticalEmptyState, Xa as VerticalStepper, kr as VideoEmbed, Fi as WorkspaceSelector, Ur as getPresetDateRange, Eo as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Wa as statusCheckerStates, oo as tagColors, so as tagSolidColors, po as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Mo as useKeyPress, Rt as useKeyboardShortcut, xo as useMediaQuery, Oo as useTheme, $i as useToast, No as useWindowWidth };
12407
12477
 
12408
12478
  //# sourceMappingURL=index.js.map