@pantheon-systems/pds-toolkit-react 2.0.0-alpha.55 → 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 (37) 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/overlays/Modal/Modal.d.ts +1 -1
  10. package/dist/components/pagination/{PaginationMini/PaginationMini.d.ts → PaginationChapter/PaginationChapter.d.ts} +5 -5
  11. package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +14 -1
  12. package/dist/css/component-css/pds-checkbox-group.css +1 -1
  13. package/dist/css/component-css/pds-combobox-multiselect.css +1 -1
  14. package/dist/css/component-css/pds-combobox.css +1 -1
  15. package/dist/css/component-css/pds-dropdown.css +1 -1
  16. package/dist/css/component-css/pds-index.css +12 -10
  17. package/dist/css/component-css/pds-input-utilities.css +1 -1
  18. package/dist/css/component-css/pds-pagination-chapter.css +3 -0
  19. package/dist/css/component-css/pds-pagination-compact.css +1 -1
  20. package/dist/css/component-css/pds-pagination.css +1 -1
  21. package/dist/css/component-css/pds-result-count.css +1 -0
  22. package/dist/css/component-css/pds-select.css +1 -1
  23. package/dist/css/component-css/pds-table.css +4 -2
  24. package/dist/css/component-css/pds-tabs.css +1 -1
  25. package/dist/css/component-css/pds-tag.css +1 -1
  26. package/dist/css/component-css/pds-tags-input.css +1 -1
  27. package/dist/css/design-tokens/variables.dark.css +4 -8
  28. package/dist/css/design-tokens/variables.light.css +3 -7
  29. package/dist/css/pds-components.css +12 -10
  30. package/dist/css/pds-core.css +1 -1
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +2 -1
  33. package/dist/index.js +387 -310
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.source.d.ts +2 -1
  36. package/package.json +2 -2
  37. 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", {
@@ -3475,7 +3476,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
3475
3476
  onClick: () => {
3476
3477
  Pn(t) || I(t);
3477
3478
  },
3478
- role: "menuitem"
3479
+ role: "menuitem",
3480
+ tabIndex: t.disabled ? -1 : 0
3479
3481
  }, c);
3480
3482
  }
3481
3483
  }, B = (t) => {
@@ -4027,9 +4029,9 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4027
4029
  }, T(t));
4028
4030
  }
4029
4031
  let E = /* @__PURE__ */ e.createElement("button", {
4030
- "aria-disabled": i || u || f,
4031
4032
  className: Z([`${v}__button`, y]),
4032
- onClick: i ? void 0 : h,
4033
+ disabled: i || u || f,
4034
+ onClick: h,
4033
4035
  type: "button",
4034
4036
  ...t
4035
4037
  }, S(C));
@@ -4162,29 +4164,29 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4162
4164
  }, $n = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: u = {
4163
4165
  selectOptionText: "Select an option...",
4164
4166
  triggerButton: "Toggle dropdown menu"
4165
- }, 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 }) => {
4166
- 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;
4167
- S === "error" && (N = "error"), S === "success" && (N = "success");
4168
- 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({
4169
4171
  enableClick: !i,
4170
4172
  enableTypeahead: !0,
4171
4173
  role: "listbox",
4172
- selectedIndex: V,
4174
+ selectedIndex: H,
4173
4175
  variant: "input"
4174
- }), 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) => {
4175
- let t = L[e];
4176
- 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);
4177
4179
  };
4178
4180
  l(() => {
4179
- F && (H(R(C)), ie(!1));
4180
- }, [C]);
4181
- let X = () => {
4182
- f && f(J);
4183
- }, se = () => {
4184
- p && p(J);
4181
+ I && (U(z(w)), q(!1));
4182
+ }, [w]);
4183
+ let se = () => {
4184
+ f && f(Y);
4185
4185
  }, ce = () => {
4186
- re.reference.current.focus();
4187
- }, 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, {
4188
4190
  className: n,
4189
4191
  platformType: t,
4190
4192
  size: "m"
@@ -4192,7 +4194,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4192
4194
  className: n,
4193
4195
  iconName: t,
4194
4196
  size: "m"
4195
- }), ue = (t) => {
4197
+ }), de = (t) => {
4196
4198
  let n = 0;
4197
4199
  return t.map((t) => {
4198
4200
  if (Zt(t)) {
@@ -4201,20 +4203,20 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4201
4203
  return /* @__PURE__ */ e.createElement(Qt, {
4202
4204
  key: r,
4203
4205
  ref: (e) => {
4204
- ne.current[r] = e;
4206
+ re.current[r] = e;
4205
4207
  },
4206
4208
  "aria-disabled": t?.disabled,
4207
- "aria-selected": r === V && r === U,
4208
- tabIndex: r === U ? 0 : -1,
4209
- ...!t?.disabled && G({
4209
+ "aria-selected": r === H && r === ee,
4210
+ tabIndex: r === ee ? 0 : -1,
4211
+ ...!t?.disabled && te({
4210
4212
  onClick() {
4211
- Y(r);
4213
+ X(r);
4212
4214
  },
4213
4215
  onKeyDown(e) {
4214
- 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());
4215
4217
  }
4216
4218
  })
4217
- }, /* @__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));
4218
4220
  });
4219
4221
  return /* @__PURE__ */ e.createElement(Qn, {
4220
4222
  key: t.groupLabel,
@@ -4225,44 +4227,44 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4225
4227
  return /* @__PURE__ */ e.createElement(Qt, {
4226
4228
  key: r,
4227
4229
  ref: (e) => {
4228
- ne.current[r] = e;
4230
+ re.current[r] = e;
4229
4231
  },
4230
4232
  "aria-disabled": t?.disabled,
4231
- "aria-selected": r === V && r === U,
4232
- tabIndex: r === U ? 0 : -1,
4233
- ...!t?.disabled && G({
4233
+ "aria-selected": r === H && r === ee,
4234
+ tabIndex: r === ee ? 0 : -1,
4235
+ ...!t?.disabled && te({
4234
4236
  onClick() {
4235
- Y(r);
4237
+ X(r);
4236
4238
  },
4237
4239
  onKeyDown(e) {
4238
- 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());
4239
4241
  }
4240
4242
  })
4241
- }, /* @__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));
4242
4244
  });
4243
4245
  };
4244
4246
  return /* @__PURE__ */ e.createElement("div", {
4245
4247
  className: Z([
4246
4248
  $.base,
4247
- E,
4248
4249
  D,
4249
4250
  O,
4250
4251
  k,
4251
4252
  A,
4252
4253
  j,
4253
4254
  M,
4255
+ N,
4254
4256
  n ?? ""
4255
4257
  ]),
4256
- style: s ? T : null,
4257
- ...w
4258
+ style: s ? E : null,
4259
+ ...T
4258
4260
  }, t && !s && /* @__PURE__ */ e.createElement("div", {
4259
4261
  "aria-hidden": "true",
4260
- className: `${E}__sizer`
4261
- }, L.map((t) => /* @__PURE__ */ e.createElement("span", {
4262
+ className: `${D}__sizer`
4263
+ }, R.map((t) => /* @__PURE__ */ e.createElement("span", {
4262
4264
  key: t.value,
4263
- className: `${E}__input-wrapper`
4264
- }, 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, {
4265
- 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`,
4266
4268
  iconName: "angleDown"
4267
4269
  }))))), /* @__PURE__ */ e.createElement(Ut, {
4268
4270
  disabled: i,
@@ -4270,39 +4272,39 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4270
4272
  label: c,
4271
4273
  required: _,
4272
4274
  showLabel: v,
4273
- tooltipText: b
4275
+ tooltipText: x
4274
4276
  }), /* @__PURE__ */ e.createElement("span", {
4275
- ref: re.setReference,
4277
+ ref: ie.setReference,
4276
4278
  "aria-autocomplete": "none",
4277
4279
  "aria-labelledby": `${o}-label`,
4278
- className: `${E}__input-wrapper`,
4280
+ className: `${D}__input-wrapper`,
4279
4281
  id: o,
4280
4282
  tabIndex: 0,
4281
- ...te({
4282
- onClick: ce,
4283
- onBlur: X,
4284
- onFocus: se
4283
+ ...K({
4284
+ onClick: le,
4285
+ onBlur: se,
4286
+ onFocus: ce
4285
4287
  })
4286
- }, 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, {
4287
- 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`,
4288
4290
  iconName: "angleDown"
4289
- }))), K && /* @__PURE__ */ e.createElement("div", {
4290
- ref: re.setFloating,
4291
- className: `pds-dropdown__panel ${E}__dropdown`,
4291
+ }))), ne && /* @__PURE__ */ e.createElement("div", {
4292
+ ref: ie.setFloating,
4293
+ className: `pds-dropdown__panel ${D}__dropdown`,
4292
4294
  style: {
4293
- ...ee,
4295
+ ...W,
4294
4296
  zIndex: "var(--pds-z-index-dropdown)"
4295
4297
  },
4296
- ...W()
4297
- }, /* @__PURE__ */ e.createElement("div", { style: { ...q } }, /* @__PURE__ */ e.createElement("ul", {
4298
- className: `${E}__options`,
4298
+ ...G()
4299
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...ae } }, /* @__PURE__ */ e.createElement("ul", {
4300
+ className: `${D}__options`,
4299
4301
  role: "group"
4300
- }, ue(g)))), P && /* @__PURE__ */ e.createElement(Wt, {
4301
- hasValidationMessage: !!x,
4302
+ }, de(g)))), F && /* @__PURE__ */ e.createElement(Wt, {
4303
+ hasValidationMessage: !!S,
4302
4304
  id: o,
4303
- message: P,
4305
+ message: F,
4304
4306
  validationMessageHasDecorators: !1,
4305
- validationStatus: S
4307
+ validationStatus: C
4306
4308
  }));
4307
4309
  }, er = {
4308
4310
  "sequential-blue": 2,
@@ -6907,21 +6909,21 @@ var Tr = {
6907
6909
  message: P,
6908
6910
  validationStatus: S
6909
6911
  }));
6910
- }), 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 }) => {
6911
- 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;
6912
6914
  return /* @__PURE__ */ e.createElement("div", {
6913
6915
  className: Z([
6914
- g,
6915
6916
  _,
6916
6917
  v,
6917
6918
  y,
6918
6919
  b,
6920
+ x,
6919
6921
  n ?? ""
6920
6922
  ]),
6921
- style: o ? h : null,
6922
- ...m
6923
+ style: o ? g : null,
6924
+ ...h
6923
6925
  }, /* @__PURE__ */ e.createElement("fieldset", {
6924
- className: `${g}__fieldset`,
6926
+ className: `${_}__fieldset`,
6925
6927
  id: a,
6926
6928
  ...i
6927
6929
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -6929,54 +6931,55 @@ var Tr = {
6929
6931
  disabled: r,
6930
6932
  id: a,
6931
6933
  label: s,
6932
- required: l,
6933
- showLabel: u,
6934
- tooltipText: d
6935
- }), /* @__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, {
6936
6939
  validationMessageHasDecorators: !0,
6937
- hasValidationMessage: !!f,
6940
+ hasValidationMessage: !!p,
6938
6941
  id: a,
6939
- message: x,
6940
- validationStatus: p
6942
+ message: S,
6943
+ validationStatus: m
6941
6944
  }));
6942
- }, 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 }) => {
6943
- 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;
6944
- 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) => {
6945
6948
  e.id || (e.id = e.value);
6946
6949
  });
6947
- let D = [];
6948
- d.map((e) => {
6949
- e.checked === !0 && D.push(e.value);
6950
+ let O = [];
6951
+ f.map((e) => {
6952
+ e.checked === !0 && O.push(e.value);
6950
6953
  });
6951
- let [O, k] = h(D), A = m(void 0);
6954
+ let [k, A] = h(O), j = m(void 0);
6952
6955
  l(() => () => {
6953
- A.current && clearTimeout(A.current);
6956
+ j.current && clearTimeout(j.current);
6954
6957
  }, []);
6955
- let j = (e) => {
6956
- let { value: t } = e.target, n = O.includes(t) ? O.filter((e) => e !== t) : [...O, t];
6957
- 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);
6958
6961
  };
6959
- d.map((e) => {
6960
- 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;
6961
6964
  });
6962
- let M = () => {
6963
- c && (A.current = setTimeout(() => {
6964
- 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);
6965
6968
  }, 1500));
6966
6969
  };
6967
6970
  return /* @__PURE__ */ e.createElement("div", {
6968
6971
  className: Z([
6969
- x,
6970
6972
  S,
6971
6973
  C,
6972
6974
  w,
6973
6975
  T,
6976
+ E,
6974
6977
  t ?? ""
6975
6978
  ]),
6976
- style: a ? b : null,
6977
- ...y
6979
+ style: a ? x : null,
6980
+ ...b
6978
6981
  }, /* @__PURE__ */ e.createElement("fieldset", {
6979
- className: `${x}__fieldset`,
6982
+ className: `${S}__fieldset`,
6980
6983
  id: i,
6981
6984
  ...r
6982
6985
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -6984,26 +6987,27 @@ var Tr = {
6984
6987
  disabled: n,
6985
6988
  id: i,
6986
6989
  label: o,
6987
- required: f,
6988
- showLabel: p,
6989
- tooltipText: g
6990
- }), /* @__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, {
6991
6995
  key: t.id,
6992
6996
  checked: t.checked,
6993
- className: `${x}__checkbox`,
6997
+ className: `${S}__checkbox`,
6994
6998
  disabled: t.disabled || n,
6995
6999
  id: t.id,
6996
7000
  label: t.label,
6997
7001
  name: t.name,
6998
- onBlur: M,
6999
- onChange: j,
7002
+ onBlur: N,
7003
+ onChange: M,
7000
7004
  value: t.value
7001
- })))), E && /* @__PURE__ */ e.createElement(Wt, {
7005
+ })))), D && /* @__PURE__ */ e.createElement(Wt, {
7002
7006
  validationMessageHasDecorators: !0,
7003
- hasValidationMessage: !!_,
7007
+ hasValidationMessage: !!v,
7004
7008
  id: i,
7005
- message: E,
7006
- validationStatus: v
7009
+ message: D,
7010
+ validationStatus: y
7007
7011
  }));
7008
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: _ = {
7009
7013
  clearButton: "Clear input text",
@@ -7357,7 +7361,7 @@ var Tr = {
7357
7361
  onClick: Se,
7358
7362
  onKeyDown: we,
7359
7363
  onMouseDown: Ce,
7360
- tabIndex: 0
7364
+ tabIndex: r ? -1 : 0
7361
7365
  }, R.length > 1 && !y && /* @__PURE__ */ e.createElement("div", { className: `${D}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-wrapper` }, Ee)), R.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${D}__items-wrapper` }, R.map((t, n) => /* @__PURE__ */ e.createElement("span", {
7362
7366
  key: `selected-item-${n}`,
7363
7367
  className: `
@@ -7792,25 +7796,25 @@ var Tr = {
7792
7796
  validationMessageHasDecorators: !1,
7793
7797
  validationStatus: l
7794
7798
  }));
7795
- }, 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 }) => {
7796
- 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) => {
7797
- E || O(e.target.value), u && u(e), d && d(e.target.value);
7798
- }, j = (e) => {
7799
- 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);
7800
7804
  };
7801
7805
  return /* @__PURE__ */ e.createElement("div", {
7802
7806
  className: Z([
7803
- x,
7804
7807
  S,
7805
7808
  C,
7806
7809
  w,
7807
7810
  T,
7811
+ E,
7808
7812
  t ?? ""
7809
7813
  ]),
7810
7814
  style: Bt(o),
7811
- ...b
7815
+ ...x
7812
7816
  }, /* @__PURE__ */ e.createElement("fieldset", {
7813
- className: `${x}__fieldset`,
7817
+ className: `${S}__fieldset`,
7814
7818
  id: a,
7815
7819
  ...i
7816
7820
  }, /* @__PURE__ */ e.createElement(Ut, {
@@ -7818,28 +7822,29 @@ var Tr = {
7818
7822
  disabled: r,
7819
7823
  id: a,
7820
7824
  label: s,
7821
- required: p,
7822
- showLabel: m,
7823
- tooltipText: g
7824
- }), /* @__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", {
7825
7830
  key: `${a}-option-${n}`,
7826
- className: `${x}__option`
7831
+ className: `${S}__option`
7827
7832
  }, /* @__PURE__ */ e.createElement("input", {
7828
- checked: E ? y === t.value : D === t.value,
7833
+ checked: D ? b === t.value : O === t.value,
7829
7834
  disabled: r || t.disabled,
7830
7835
  id: t.id ? t.id : `${a}-option-${n}`,
7831
7836
  name: a,
7832
- onBlur: j,
7833
- onChange: A,
7834
- required: p,
7837
+ onBlur: M,
7838
+ onChange: j,
7839
+ required: m,
7835
7840
  type: "radio",
7836
7841
  value: t.value
7837
- }), /* @__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, {
7838
7843
  validationMessageHasDecorators: !0,
7839
- hasValidationMessage: !!_,
7844
+ hasValidationMessage: !!v,
7840
7845
  id: a,
7841
- message: k,
7842
- validationStatus: v
7846
+ message: A,
7847
+ validationStatus: y
7843
7848
  }));
7844
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) => {
7845
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) => {
@@ -7928,6 +7933,7 @@ var Tr = {
7928
7933
  }, w = String(i + 1), T = String(_), E = o ? v.tagAriaLabel : v.tagAriaLabelSimple, D = `${g.value}, ${E.replace("{index}", w).replace("{total}", T)}`, O = a ? `${b}--dragging` : null, k = t ? $.disabled : null, A = n ? `${b}--drop-target-${n}` : null;
7929
7934
  return /* @__PURE__ */ e.createElement("div", {
7930
7935
  ref: y,
7936
+ "aria-disabled": t || void 0,
7931
7937
  "aria-label": D,
7932
7938
  className: Z([
7933
7939
  b,
@@ -9489,6 +9495,7 @@ var Tr = {
9489
9495
  ref: (e) => {
9490
9496
  H.current[n] = e;
9491
9497
  },
9498
+ "aria-disabled": t.disabled || void 0,
9492
9499
  className: Z([i, a]),
9493
9500
  id: r,
9494
9501
  onKeyDown: q,
@@ -9504,6 +9511,7 @@ var Tr = {
9504
9511
  let r = y.current[n], i = `${E}__item`, a = t.disabled ? `${i}--disabled` : null;
9505
9512
  return /* @__PURE__ */ e.createElement("li", {
9506
9513
  key: r,
9514
+ "aria-disabled": t.disabled || void 0,
9507
9515
  className: Z([i, a]),
9508
9516
  id: `${r}-accordion`,
9509
9517
  onClick: () => {
@@ -10121,7 +10129,7 @@ var Tr = {
10121
10129
  transform: "translateY(1rem)"
10122
10130
  }
10123
10131
  });
10124
- return /* @__PURE__ */ e.createElement(e.Fragment, null, P && /* @__PURE__ */ e.createElement(b, {
10132
+ return P ? Ee(/* @__PURE__ */ e.createElement(b, {
10125
10133
  lockScroll: !0,
10126
10134
  style: {
10127
10135
  ...O,
@@ -10153,7 +10161,7 @@ var Tr = {
10153
10161
  })), /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, f), /* @__PURE__ */ e.createElement("div", {
10154
10162
  className: `${v}__content`,
10155
10163
  style: S
10156
- }, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))));
10164
+ }, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
10157
10165
  }, ra = (e, t) => {
10158
10166
  let n = t - e + 1;
10159
10167
  return Array.from({ length: n }, (t, n) => n + e);
@@ -10242,87 +10250,138 @@ var Tr = {
10242
10250
  }))
10243
10251
  }))));
10244
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 = {
10245
10282
  next: "Go to next page",
10246
10283
  of: "of",
10284
+ page: "Page",
10285
+ pageInputError: "Enter a page between 1 and {total}.",
10247
10286
  pageSelect: "Go to page",
10248
10287
  previous: "Go to previous page"
10249
- }, onPageChange: s, totalItemCount: c, ...l }) => {
10250
- 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) => ({
10251
10290
  label: String(t + 1),
10252
10291
  value: String(t + 1)
10253
- })), [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
+ };
10254
10308
  return /* @__PURE__ */ e.createElement("nav", {
10255
10309
  "aria-labelledby": "pagination-compact",
10256
- className: Z([_, t ?? ""]),
10257
- ...l
10310
+ className: Z([b, t ?? ""]),
10311
+ ...f
10258
10312
  }, /* @__PURE__ */ e.createElement(cn, {
10259
- baseClass: _,
10313
+ baseClass: b,
10260
10314
  className: "visually-hidden",
10261
10315
  id: "pagination-compact",
10262
10316
  level: r
10263
- }, 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, {
10264
10337
  autoWidth: !0,
10265
- id: d,
10338
+ id: m,
10266
10339
  label: o.pageSelect,
10267
10340
  onOptionSelect: (e) => s(Number(e.value)),
10268
- options: m,
10341
+ options: _,
10269
10342
  showLabel: !1,
10343
+ showSelectedIcon: !1,
10270
10344
  size: "s",
10271
10345
  value: String(n)
10272
- }), /* @__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, {
10273
10355
  content: o.previous,
10274
10356
  customTrigger: /* @__PURE__ */ e.createElement("button", {
10275
- "aria-disabled": h ? !0 : void 0,
10276
10357
  "aria-label": o.previous,
10277
- className: Z([`${_}__btn`, h ? `${_}__btn--disabled` : null]),
10278
- onClick: h ? void 0 : () => s(n - 1),
10358
+ className: `${b}__btn`,
10359
+ onClick: () => s(n - 1),
10279
10360
  type: "button"
10280
10361
  }, /* @__PURE__ */ e.createElement(Q, {
10281
10362
  iconName: "angleLeft",
10282
10363
  size: "m"
10283
10364
  }))
10284
- }), /* @__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, {
10285
10374
  content: o.next,
10286
10375
  customTrigger: /* @__PURE__ */ e.createElement("button", {
10287
- "aria-disabled": g ? !0 : void 0,
10288
10376
  "aria-label": o.next,
10289
- className: Z([`${_}__btn`, g ? `${_}__btn--disabled` : null]),
10290
- onClick: g ? void 0 : () => s(n + 1),
10377
+ className: `${b}__btn`,
10378
+ onClick: () => s(n + 1),
10291
10379
  type: "button"
10292
10380
  }, /* @__PURE__ */ e.createElement(Q, {
10293
10381
  iconName: "angleRight",
10294
10382
  size: "m"
10295
10383
  }))
10296
10384
  })));
10297
- }, sa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10298
- next: "Next",
10299
- previous: "Previous"
10300
- }, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
10301
- let f = p(() => Math.ceil(u / a), [u, a]), m = n <= 1, h = n >= f, g = "pds-pagination-mini";
10302
- return /* @__PURE__ */ e.createElement("nav", {
10303
- "aria-labelledby": "pagination-mini",
10304
- className: Z([g, t ?? ""]),
10305
- ...d
10306
- }, /* @__PURE__ */ e.createElement(cn, {
10307
- baseClass: g,
10308
- className: "visually-hidden",
10309
- id: "pagination-mini",
10310
- level: r
10311
- }, i), !m && /* @__PURE__ */ e.createElement("button", {
10312
- className: Z([`${g}__btn`, `${g}__btn--prev`]),
10313
- onClick: () => c(n - 1),
10314
- type: "button"
10315
- }, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.previous), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement(Q, {
10316
- iconName: "angleLeft",
10317
- size: "m"
10318
- }), /* @__PURE__ */ e.createElement("span", null, l))), !h && /* @__PURE__ */ e.createElement("button", {
10319
- className: Z([`${g}__btn`, `${g}__btn--next`]),
10320
- onClick: () => c(n + 1),
10321
- type: "button"
10322
- }, /* @__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, {
10323
- iconName: "angleRight",
10324
- size: "m"
10325
- }))));
10326
10385
  }, ca = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10327
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);
10328
10387
  return l(() => {
@@ -10747,7 +10806,22 @@ var Tr = {
10747
10806
  x: "50%",
10748
10807
  y: "51%"
10749
10808
  }, w))));
10750
- }, 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 = [
10751
10825
  "privacy",
10752
10826
  "dataSubjectRequest",
10753
10827
  "cookiePolicy",
@@ -10765,7 +10839,7 @@ var Tr = {
10765
10839
  ]),
10766
10840
  ...c
10767
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"))));
10768
- }, Ta = ({ className: t, option: n, ...r }) => {
10842
+ }, Oa = ({ className: t, option: n, ...r }) => {
10769
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;
10770
10844
  n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
10771
10845
  let d = /* @__PURE__ */ e.createElement(rn, {
@@ -10788,7 +10862,7 @@ var Tr = {
10788
10862
  className: `${i}__status`,
10789
10863
  style: { pointerEvents: "none" }
10790
10864
  }, d));
10791
- }, 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 = {
10792
10866
  clearButton: "Clear input text",
10793
10867
  inputInstructions: "Type to search options"
10794
10868
  }, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
@@ -10800,7 +10874,7 @@ var Tr = {
10800
10874
  id: n,
10801
10875
  label: i,
10802
10876
  value: r ?? i,
10803
- optionDisplay: /* @__PURE__ */ e.createElement(Ta, { option: t }),
10877
+ optionDisplay: /* @__PURE__ */ e.createElement(Oa, { option: t }),
10804
10878
  siteData: t
10805
10879
  };
10806
10880
  });
@@ -10829,7 +10903,7 @@ var Tr = {
10829
10903
  };
10830
10904
  //#endregion
10831
10905
  //#region src/components/SortableList/sortable-utils.ts
10832
- function Da(e, t, n = null, r = 0, i = []) {
10906
+ function Aa(e, t, n = null, r = 0, i = []) {
10833
10907
  return e.reduce((e, a, o) => {
10834
10908
  let s = !!a.children?.length, c = t.has(a.id);
10835
10909
  return e.push({
@@ -10841,10 +10915,10 @@ function Da(e, t, n = null, r = 0, i = []) {
10841
10915
  index: o,
10842
10916
  isExpanded: c,
10843
10917
  parentId: n
10844
- }), 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;
10845
10919
  }, []);
10846
10920
  }
10847
- function Oa(e) {
10921
+ function ja(e) {
10848
10922
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
10849
10923
  for (let i of e) {
10850
10924
  let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
@@ -10857,28 +10931,28 @@ function Oa(e) {
10857
10931
  e && (e.children || (e.children = []), e.children.push(o));
10858
10932
  }
10859
10933
  }
10860
- return ka(r);
10934
+ return Ma(r);
10861
10935
  }
10862
- function ka(e) {
10936
+ function Ma(e) {
10863
10937
  return e.map((e) => {
10864
10938
  if (e.children?.length) return {
10865
10939
  ...e,
10866
- children: ka(e.children)
10940
+ children: Ma(e.children)
10867
10941
  };
10868
10942
  let { children: t, ...n } = e;
10869
10943
  return n;
10870
10944
  });
10871
10945
  }
10872
- function Aa(e, t) {
10946
+ function Na(e, t) {
10873
10947
  for (let n of e) {
10874
10948
  if (n.id === t) return n;
10875
10949
  if (n.children) {
10876
- let e = Aa(n.children, t);
10950
+ let e = Na(n.children, t);
10877
10951
  if (e) return e;
10878
10952
  }
10879
10953
  }
10880
10954
  }
10881
- function ja(e, t, n, r, i, a, o) {
10955
+ function Pa(e, t, n, r, i, a, o) {
10882
10956
  let s = e.findIndex((e) => e.id === n);
10883
10957
  if (s === -1) return 0;
10884
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;
@@ -10886,7 +10960,7 @@ function ja(e, t, n, r, i, a, o) {
10886
10960
  }
10887
10961
  //#endregion
10888
10962
  //#region src/components/SortableList/SortableListHeader.tsx
10889
- var Ma = ({ children: t, className: n, columns: r, ...i }) => {
10963
+ var Fa = ({ children: t, className: n, columns: r, ...i }) => {
10890
10964
  if (!r && !t) return null;
10891
10965
  let a = r ? {
10892
10966
  display: "grid",
@@ -10907,13 +10981,13 @@ var Ma = ({ children: t, className: n, columns: r, ...i }) => {
10907
10981
  };
10908
10982
  //#endregion
10909
10983
  //#region src/components/SortableList/useSortableTree.ts
10910
- function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10984
+ function Ia({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
10911
10985
  let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
10912
10986
  t && !d.current && (u.current = {
10913
10987
  items: i ? n : a,
10914
10988
  expandedIds: c
10915
- }), 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.");
10916
- 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) => {
10917
10991
  l((t) => {
10918
10992
  let n = new Set(t);
10919
10993
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -10931,7 +11005,7 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10931
11005
  }, []),
10932
11006
  flatNodes: g,
10933
11007
  handleReorder: s((e) => {
10934
- let t = Oa(e);
11008
+ let t = ja(e);
10935
11009
  i || o(t), r?.(t);
10936
11010
  }, [i, r]),
10937
11011
  resetToSnapshot: s(() => {
@@ -10943,24 +11017,24 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
10943
11017
  toggleExpand: v
10944
11018
  };
10945
11019
  }
10946
- var Pa = /* @__PURE__ */ new Set();
10947
- function Fa(e) {
10948
- 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));
10949
11023
  }
10950
11024
  //#endregion
10951
11025
  //#region src/components/SortableList/SortableList.tsx
10952
- 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) {
10953
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) => {
10954
11028
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
10955
11029
  e.preventDefault();
10956
11030
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
10957
11031
  return B.current = i, z(i), {
10958
- x: t.currentCoordinates.x + a * Ia,
11032
+ x: t.currentCoordinates.x + a * za,
10959
11033
  y: t.currentCoordinates.y
10960
11034
  };
10961
11035
  }
10962
11036
  return Le(e, t);
10963
- }, [_]), 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({
10964
11038
  defaultItems: a,
10965
11039
  isDragEnabled: W,
10966
11040
  items: g,
@@ -10987,9 +11061,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
10987
11061
  X,
10988
11062
  J,
10989
11063
  j
10990
- ]).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(() => {
10991
11065
  let e = le?.depth ?? 0;
10992
- 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, _);
10993
11067
  }, [
10994
11068
  T,
10995
11069
  le,
@@ -11001,7 +11075,7 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11001
11075
  ]), fe = p(() => {
11002
11076
  if (!T || O || de === 0 || j && X(j)) return null;
11003
11077
  let e = K.findIndex((e) => e.id === T);
11004
- return e === -1 ? null : za(K, e, de);
11078
+ return e === -1 ? null : Ha(K, e, de);
11005
11079
  }, [
11006
11080
  T,
11007
11081
  K,
@@ -11047,19 +11121,19 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11047
11121
  }, [K, J]), ge = s((e) => {
11048
11122
  let t = e.delta.x;
11049
11123
  if (P.current = t, A.current || _ === 0) return;
11050
- let n = Math.floor(t / Ia), r = U.current;
11051
- (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));
11052
11126
  }, [_]), _e = s((e) => {
11053
11127
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
11054
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);
11055
- 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;
11056
11130
  if (r && i > 0 && c && o > 0 && (l = K[o - 1].id), !l || t.id === l) {
11057
11131
  if (o === -1) return;
11058
11132
  let e = K[o];
11059
11133
  if (!e) return;
11060
- 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, _);
11061
11135
  if (n === e.depth) return;
11062
- 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);
11063
11137
  if (a && Y.has(a)) return;
11064
11138
  let c = {
11065
11139
  ...i,
@@ -11081,9 +11155,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11081
11155
  let e = K[u];
11082
11156
  g = Math.min(e.depth + 1, _), v = String(l);
11083
11157
  } else {
11084
- 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);
11085
11159
  let e = d[h];
11086
- 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);
11087
11161
  }
11088
11162
  if (v && Y.has(v)) return;
11089
11163
  let y = {
@@ -11106,24 +11180,24 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11106
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);
11107
11181
  }, [te]), ye = p(() => ({
11108
11182
  onDragStart({ active: e }) {
11109
- 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));
11110
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}.`;
11111
11185
  },
11112
11186
  onDragOver({ active: e, over: t }) {
11113
11187
  if (!t) return;
11114
11188
  let n = K.findIndex((e) => e.id === t.id);
11115
11189
  if (n === -1) return;
11116
- 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, _);
11117
11191
  return `Moving ${i}. Target position: ${n + 1} of ${K.length} at depth ${a}.`;
11118
11192
  },
11119
11193
  onDragEnd({ active: e, over: t }) {
11120
- 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);
11121
11195
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
11122
- 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, _);
11123
11197
  return `${r} dropped at position ${i + 1} of ${K.length} at depth ${a}.`;
11124
11198
  },
11125
11199
  onDragCancel({ active: e }) {
11126
- 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));
11127
11201
  return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? K.indexOf(t) + 1 : "?"} of ${K.length}.`;
11128
11202
  }
11129
11203
  }), [
@@ -11131,14 +11205,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11131
11205
  K,
11132
11206
  c,
11133
11207
  _
11134
- ]), 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);
11135
11209
  return /* @__PURE__ */ e.createElement(Oe, {
11136
11210
  accessibility: {
11137
11211
  announcements: ye,
11138
11212
  ...x ? { screenReaderInstructions: { draggable: x } } : {}
11139
11213
  },
11140
11214
  collisionDetection: me,
11141
- measuring: La,
11215
+ measuring: Ba,
11142
11216
  onDragCancel: ve,
11143
11217
  onDragEnd: _e,
11144
11218
  onDragMove: ge,
@@ -11213,14 +11287,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
11213
11287
  return o(a) ? e.cloneElement(a, s) : a;
11214
11288
  })()) : null));
11215
11289
  });
11216
- function za(e, t, n) {
11290
+ function Ha(e, t, n) {
11217
11291
  if (n === 0) return null;
11218
11292
  for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
11219
11293
  return null;
11220
11294
  }
11221
11295
  //#endregion
11222
11296
  //#region src/components/SortableList/SortableRow.tsx
11223
- 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 }) => {
11224
11298
  let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
11225
11299
  attributes: {
11226
11300
  role: "listitem",
@@ -11275,11 +11349,11 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11275
11349
  key: t.id,
11276
11350
  className: `${w}__cell`
11277
11351
  }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
11278
- }, Va = [
11352
+ }, Wa = [
11279
11353
  "default",
11280
11354
  "working",
11281
11355
  "checked"
11282
- ], 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 }) => {
11283
11357
  let l = {
11284
11358
  checkForUpdates: "Check for updates",
11285
11359
  checking: "Checking...",
@@ -11326,7 +11400,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11326
11400
  triggerIconColor: "default",
11327
11401
  triggerIconSize: "s"
11328
11402
  }), t === "left" && g));
11329
- }, 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 }) => {
11330
11404
  let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
11331
11405
  className: `${s}__spinner`,
11332
11406
  size: "m"
@@ -11343,7 +11417,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11343
11417
  ]),
11344
11418
  ...a
11345
11419
  }, r ? d : l);
11346
- }, 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 }) => {
11347
11421
  let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
11348
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`;
11349
11423
  return /* @__PURE__ */ e.createElement("li", {
@@ -11361,7 +11435,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11361
11435
  style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
11362
11436
  ...a
11363
11437
  }, l);
11364
- }, Ga = ({ className: t, steps: n, translatableLabels: r = {
11438
+ }, Ja = ({ className: t, steps: n, translatableLabels: r = {
11365
11439
  step: "Step",
11366
11440
  completed: "completed",
11367
11441
  hasError: "has an error",
@@ -11450,7 +11524,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11450
11524
  "data-steps": d,
11451
11525
  ...i
11452
11526
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
11453
- }, 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 }) => {
11454
11528
  let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
11455
11529
  return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
11456
11530
  className: Z([...p]),
@@ -11476,14 +11550,14 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11476
11550
  size: "s",
11477
11551
  variant: "highlight"
11478
11552
  })))));
11479
- }, qa = ({ className: t, labelStrings: n = {
11553
+ }, Xa = ({ className: t, labelStrings: n = {
11480
11554
  step: "Step",
11481
11555
  completed: "completed",
11482
11556
  hasError: "has an error"
11483
11557
  }, steps: r, ...i }) => {
11484
11558
  let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
11485
11559
  let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
11486
- 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, {
11487
11561
  key: `s${i}`,
11488
11562
  _isFirstStep: c,
11489
11563
  "aria-current": a ? "step" : null,
@@ -11504,7 +11578,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11504
11578
  className: Z([a, t ?? ""]),
11505
11579
  ...i
11506
11580
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11507
- }, 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 }) => {
11508
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({
11509
11583
  key: a ?? "",
11510
11584
  order: a === void 0 ? "asc" : o
@@ -11683,7 +11757,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11683
11757
  showLabel: !1,
11684
11758
  size: "s",
11685
11759
  value: String(be)
11686
- }), /* @__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, {
11687
11761
  currentPage: X ? i ?? 1 : fe,
11688
11762
  itemsPerPage: be,
11689
11763
  labelStrings: B,
@@ -11725,7 +11799,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11725
11799
  variant: "standard"
11726
11800
  }))))));
11727
11801
  return V ? /* @__PURE__ */ e.createElement(ua, { padding: "none" }, Ze) : Ze;
11728
- }, Ya = [
11802
+ }, Qa = [
11729
11803
  " ",
11730
11804
  "/",
11731
11805
  ".",
@@ -11743,7 +11817,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11743
11817
  "=",
11744
11818
  "|",
11745
11819
  "~"
11746
- ], Xa = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Za = (e) => {
11820
+ ], $a = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), eo = (e) => {
11747
11821
  let t = [];
11748
11822
  return e.forEach((e) => {
11749
11823
  let { id: n, innerText: r } = e;
@@ -11756,18 +11830,18 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11756
11830
  title: r
11757
11831
  });
11758
11832
  }), t;
11759
- }, Qa = (e, t, n) => {
11833
+ }, to = (e, t, n) => {
11760
11834
  let [r, i] = h([]);
11761
11835
  return l(() => {
11762
11836
  let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
11763
11837
  let e = Array.from(document.querySelectorAll(r));
11764
11838
  e.forEach((e) => {
11765
- Ya.forEach((t) => {
11766
- 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"), "-"));
11767
11841
  });
11768
11842
  }), e.forEach((e, t) => {
11769
11843
  e.id || (e.id = `${n}-item-${t}`);
11770
- }), i(Za(e));
11844
+ }), i(eo(e));
11771
11845
  };
11772
11846
  a();
11773
11847
  let o = document.getElementById(e);
@@ -11783,7 +11857,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11783
11857
  t,
11784
11858
  n
11785
11859
  ]), { nestedHeadings: r };
11786
- }, $a = (e, t) => {
11860
+ }, no = (e, t) => {
11787
11861
  let [n, r] = h(void 0), i = m({});
11788
11862
  return l(() => {
11789
11863
  let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
@@ -11802,7 +11876,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11802
11876
  o.disconnect(), r(void 0);
11803
11877
  };
11804
11878
  }, [e, t]), n;
11805
- }, 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", {
11806
11880
  key: r.id,
11807
11881
  className: `${n}__list-item`
11808
11882
  }, /* @__PURE__ */ e.createElement("a", {
@@ -11818,8 +11892,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11818
11892
  className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
11819
11893
  href: `#${r.id}`,
11820
11894
  onClick: (e) => i(e, r.id)
11821
- }, 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 }) => {
11822
- 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) => {
11823
11897
  typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
11824
11898
  }, h = (e) => {
11825
11899
  document.querySelector(`#${e}`)?.scrollIntoView({
@@ -11837,13 +11911,13 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11837
11911
  baseClass: d,
11838
11912
  className: `${s ? "" : "visually-hidden"}`,
11839
11913
  level: i
11840
- }, a), /* @__PURE__ */ e.createElement(eo, {
11914
+ }, a), /* @__PURE__ */ e.createElement(ro, {
11841
11915
  activeID: p,
11842
11916
  baseClass: d,
11843
11917
  headings: f,
11844
11918
  onLinkClick: g
11845
11919
  }));
11846
- }, 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 }) => {
11847
11921
  let c = "pds-tabs", [u, d] = h(a ?? r);
11848
11922
  l(() => {
11849
11923
  a !== void 0 && d(a);
@@ -11851,7 +11925,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11851
11925
  let f = (e) => {
11852
11926
  let t = e.currentTarget.getAttribute("data-tabnumber");
11853
11927
  t && d(parseInt(t, 10));
11854
- }, p = m([]);
11928
+ }, p = m([]), g = m([]);
11855
11929
  l(() => {
11856
11930
  i(u);
11857
11931
  }, [u, i]), l(() => {
@@ -11864,30 +11938,30 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11864
11938
  return;
11865
11939
  }
11866
11940
  }, [u]);
11867
- let g = (e, t) => {
11868
- let n = u, r = p.current[t === "next" ? n + 1 < p.current.length ? n + 1 : 0 : n - 1 >= 0 ? n - 1 : p.current.length - 1];
11869
- r || (r = t == "next" ? p.current[e + 1] == null ? p.current[0] : p.current[e + 1] : p.current[e - 1]), r.focus();
11870
- }, _ = (e) => {
11871
- let t = p.current.length, n = () => {
11872
- g((u + 1) % t, "next"), d(u + 1);
11873
- }, r = () => {
11874
- g((u - 1 + t) % t, "prev"), d(u - 1);
11941
+ let _ = (e, t, n) => {
11942
+ let r = u, i = e.current[n === "next" ? r + 1 < e.current.length ? r + 1 : 0 : r - 1 >= 0 ? r - 1 : e.current.length - 1];
11943
+ i || (i = n == "next" ? e.current[t + 1] == null ? e.current[0] : e.current[t + 1] : e.current[t - 1]), i.focus();
11944
+ }, v = (e) => (t) => {
11945
+ let n = e.current.length, r = () => {
11946
+ _(e, (u + 1) % n, "next"), d(u + 1);
11875
11947
  }, i = () => {
11876
- g(0), d(0);
11948
+ _(e, (u - 1 + n) % n, "prev"), d(u - 1);
11877
11949
  }, a = () => {
11878
- g(t - 1), d(t - 1);
11950
+ _(e, 0), d(0);
11879
11951
  }, o = () => {
11880
- p.current[u].focus();
11881
- }, s = {
11882
- ArrowRight: n,
11883
- ArrowLeft: r,
11884
- Home: i,
11885
- End: a,
11886
- Space: o,
11887
- Enter: o
11888
- }[e.code];
11889
- s && (e.preventDefault(), s());
11890
- };
11952
+ _(e, n - 1), d(n - 1);
11953
+ }, s = () => {
11954
+ e.current[u].focus();
11955
+ }, c = {
11956
+ ArrowRight: r,
11957
+ ArrowLeft: i,
11958
+ Home: a,
11959
+ End: o,
11960
+ Space: s,
11961
+ Enter: s
11962
+ }[t.code];
11963
+ c && (t.preventDefault(), c());
11964
+ }, y = v(p), b = v(g);
11891
11965
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
11892
11966
  className: Z([c, n]),
11893
11967
  ...s
@@ -11902,14 +11976,14 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11902
11976
  t || (p.current[o] = e);
11903
11977
  },
11904
11978
  "aria-controls": `${c}__tab--${o}`,
11905
- "aria-disabled": !!t,
11906
11979
  "aria-selected": o == u,
11907
11980
  className: `${c}__tab`,
11908
11981
  "data-tabnumber": o,
11982
+ disabled: t,
11909
11983
  id: r,
11910
- onClick: t ? null : f,
11984
+ onClick: f,
11911
11985
  onKeyDown: (e) => {
11912
- e.preventDefault(), _(e);
11986
+ e.preventDefault(), y(e);
11913
11987
  },
11914
11988
  role: "tab",
11915
11989
  tabIndex: u === o ? 0 : -1,
@@ -11929,15 +12003,18 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11929
12003
  role: "tabpanel"
11930
12004
  }, /* @__PURE__ */ e.createElement("button", {
11931
12005
  key: o,
12006
+ ref: (e) => {
12007
+ t || (g.current[o] = e);
12008
+ },
11932
12009
  "aria-controls": `tabpanel_${o}`,
11933
- "aria-disabled": !!t,
11934
12010
  "aria-selected": o == u,
11935
12011
  className: `${c}__trigger`,
11936
12012
  "data-tabnumber": o,
11937
- onClick: t ? null : f,
11938
- onKeyDown: _,
12013
+ disabled: t,
12014
+ onClick: f,
12015
+ onKeyDown: b,
11939
12016
  role: "tab",
11940
- tabIndex: u === o ? 1 : -1,
12017
+ tabIndex: u === o ? 0 : -1,
11941
12018
  type: "button"
11942
12019
  }, /* @__PURE__ */ e.createElement("div", { className: `${c}__tab-label` }, n && /* @__PURE__ */ e.createElement(Q, {
11943
12020
  iconName: n,
@@ -11954,7 +12031,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11954
12031
  className: `${c}__panel-content`,
11955
12032
  hidden: o !== u
11956
12033
  }, r)))));
11957
- }, ro = [
12034
+ }, oo = [
11958
12035
  "orange",
11959
12036
  "stone",
11960
12037
  "gold",
@@ -11969,7 +12046,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11969
12046
  "rose",
11970
12047
  "red",
11971
12048
  "silver"
11972
- ], io = [
12049
+ ], so = [
11973
12050
  "orange-solid",
11974
12051
  "teal-solid",
11975
12052
  "indigo-solid",
@@ -11980,8 +12057,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11980
12057
  "critical-solid",
11981
12058
  "info-solid",
11982
12059
  "discovery-solid"
11983
- ], 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 }) => {
11984
- 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 = () => {
11985
12062
  p((e) => !e);
11986
12063
  }, b, x, S;
11987
12064
  if (r && !n && o(r)) {
@@ -12003,7 +12080,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12003
12080
  }, /* @__PURE__ */ e.createElement("span", {
12004
12081
  className: `${m}__label`,
12005
12082
  title: l
12006
- }, u > 0 ? oo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12083
+ }, u > 0 ? lo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12007
12084
  "aria-label": `${a}: ${l}`,
12008
12085
  className: `${m}__remove`,
12009
12086
  onClick: () => {
@@ -12015,7 +12092,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12015
12092
  iconName: "xmark",
12016
12093
  size: "m"
12017
12094
  })) : null);
12018
- }, 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 }) => {
12019
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;
12020
12097
  return /* @__PURE__ */ e.createElement("div", {
12021
12098
  className: Z([
@@ -12026,7 +12103,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12026
12103
  ]),
12027
12104
  ...a
12028
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)));
12029
- }, lo = () => {
12106
+ }, po = () => {
12030
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");
12031
12108
  return l(() => {
12032
12109
  if (!e) return;
@@ -12037,7 +12114,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12037
12114
  window.removeEventListener("resize", n);
12038
12115
  };
12039
12116
  }, []), n;
12040
- }, 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 }) => {
12041
12118
  let [j, M] = h(u || !1);
12042
12119
  l(() => {
12043
12120
  M(u || !1);
@@ -12059,7 +12136,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12059
12136
  return;
12060
12137
  }
12061
12138
  M(!j);
12062
- }, U = lo();
12139
+ }, U = po();
12063
12140
  l(() => {
12064
12141
  U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
12065
12142
  }, [U]);
@@ -12162,7 +12239,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12162
12239
  !e && c && b && b();
12163
12240
  }
12164
12241
  }, r));
12165
- }, 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 }) => {
12166
12243
  let c = "pds-docs-layout", l = {
12167
12244
  "--docs-sidebar-max-width": `${i}rem`,
12168
12245
  "--docs-sidebar-min-width": `${a}rem`,
@@ -12180,7 +12257,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12180
12257
  },
12181
12258
  ...s
12182
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));
12183
- }, 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 }) => {
12184
12261
  let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
12185
12262
  return /* @__PURE__ */ e.createElement("div", {
12186
12263
  className: Z([u, n ?? ""]),
@@ -12194,7 +12271,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12194
12271
  },
12195
12272
  ...l
12196
12273
  }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
12197
- }, 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 }) => {
12198
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, {
12199
12276
  className: Z([
12200
12277
  l,
@@ -12205,7 +12282,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12205
12282
  ...a
12206
12283
  }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
12207
12284
  return i ? /* @__PURE__ */ e.createElement(ua, null, d) : d;
12208
- }, 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 }) => {
12209
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 = [
12210
12287
  l["first-item"],
12211
12288
  l["second-item"],
@@ -12223,7 +12300,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12223
12300
  key: n,
12224
12301
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
12225
12302
  }, t)));
12226
- }, 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 }) => {
12227
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;
12228
12305
  switch (i) {
12229
12306
  case "equal":
@@ -12244,7 +12321,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12244
12321
  ]),
12245
12322
  ...o
12246
12323
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
12247
- }, _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 }) => {
12248
12325
  let _ = "pds-flex", v = `${_}-container`, y = {
12249
12326
  "--pds-flex-align-content": t,
12250
12327
  "--pds-flex-align-items": n,
@@ -12270,7 +12347,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12270
12347
  },
12271
12348
  ...g
12272
12349
  }, r);
12273
- }, vo = (e) => {
12350
+ }, xo = (e) => {
12274
12351
  let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
12275
12352
  return l(() => {
12276
12353
  if (!t) return;
@@ -12279,20 +12356,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12279
12356
  };
12280
12357
  return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
12281
12358
  }, [e]), n;
12282
- }, yo = [
12359
+ }, So = [
12283
12360
  "light",
12284
12361
  "dark",
12285
12362
  "system"
12286
- ], 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 = {
12287
12364
  resolvedTheme: "light",
12288
12365
  setTheme: () => {},
12289
12366
  theme: "light"
12290
- }, 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 }) => {
12291
- 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;
12292
12369
  l(() => {
12293
12370
  if (_(!0), !(d || !o || typeof window > "u")) try {
12294
12371
  let e = window.localStorage.getItem(c);
12295
- bo(e) && m(e);
12372
+ Co(e) && m(e);
12296
12373
  } catch {}
12297
12374
  }, []), l(() => {
12298
12375
  typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
@@ -12312,20 +12389,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12312
12389
  ]),
12313
12390
  theme: v
12314
12391
  };
12315
- 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({
12316
12393
  defaultTheme: n,
12317
12394
  storageKey: c
12318
12395
  }) } }), t);
12319
- }, 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 = {} }) => {
12320
12397
  l(() => {
12321
12398
  let e = document.documentElement, t = () => {
12322
12399
  window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
12323
12400
  };
12324
12401
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12325
12402
  }, [r]);
12326
- let a = n ? /* @__PURE__ */ e.createElement(wo, i, t) : t;
12403
+ let a = n ? /* @__PURE__ */ e.createElement(Do, i, t) : t;
12327
12404
  return /* @__PURE__ */ e.createElement(It, null, a);
12328
- }, 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 }) => {
12329
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}`;
12330
12407
  return /* @__PURE__ */ e.createElement("div", {
12331
12408
  className: Z([
@@ -12339,7 +12416,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12339
12416
  ]),
12340
12417
  ...c
12341
12418
  }, n);
12342
- }, 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 }) => {
12343
12420
  let f = "pds-grid-item", p = [
12344
12421
  l ? `${f}--sm-${l}` : null,
12345
12422
  c ? `${f}--md-${c}` : null,
@@ -12358,7 +12435,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12358
12435
  ]),
12359
12436
  ...d
12360
12437
  }, t);
12361
- }, ko = (e, t, n) => {
12438
+ }, Mo = (e, t, n) => {
12362
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, [
12363
12440
  r,
12364
12441
  i,
@@ -12382,7 +12459,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12382
12459
  m,
12383
12460
  a
12384
12461
  ]), u;
12385
- }, Ao = () => {
12462
+ }, No = () => {
12386
12463
  let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
12387
12464
  return l(() => {
12388
12465
  if (!e) return;
@@ -12396,6 +12473,6 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12396
12473
  }, []), t;
12397
12474
  };
12398
12475
  //#endregion
12399
- 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 };
12400
12477
 
12401
12478
  //# sourceMappingURL=index.js.map