@pantheon-systems/pds-toolkit-react 2.0.0-alpha.56 → 2.0.0-alpha.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codemods/v1-to-v2/mappings.json +1 -1
- package/dist/components/CodeBlock/prism-setup.d.ts +2 -0
- package/dist/components/ResultCount/ResultCount.d.ts +53 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -1
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +9 -1
- package/dist/components/inputs/Select/Select.d.ts +5 -1
- package/dist/components/inputs/input-utilities.d.ts +10 -1
- package/dist/components/pagination/{PaginationMini/PaginationMini.d.ts → PaginationChapter/PaginationChapter.d.ts} +5 -5
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +14 -1
- package/dist/components/panels/PanelStack/PanelStack.d.ts +19 -0
- package/dist/css/component-css/pds-checkbox-group.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +1 -1
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-dropdown.css +1 -1
- package/dist/css/component-css/pds-index.css +12 -10
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-pagination-chapter.css +3 -0
- package/dist/css/component-css/pds-pagination-compact.css +1 -1
- package/dist/css/component-css/pds-pagination.css +1 -1
- package/dist/css/component-css/pds-panel-stack.css +1 -0
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-result-count.css +1 -0
- package/dist/css/component-css/pds-select.css +1 -1
- package/dist/css/component-css/pds-table.css +4 -2
- package/dist/css/component-css/pds-tag.css +1 -1
- package/dist/css/component-css/pds-tags-input.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +4 -8
- package/dist/css/design-tokens/variables.light.css +3 -7
- package/dist/css/pds-components.css +12 -10
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +560 -474
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -1
- package/package.json +2 -2
- package/dist/css/component-css/pds-pagination-mini.css +0 -3
package/dist/index.js
CHANGED
|
@@ -2461,7 +2461,8 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2461
2461
|
w(),
|
|
2462
2462
|
D()
|
|
2463
2463
|
],
|
|
2464
|
-
whileElementsMounted: C
|
|
2464
|
+
whileElementsMounted: C,
|
|
2465
|
+
strategy: "fixed"
|
|
2465
2466
|
}), { getFloatingProps: O, getReferenceProps: k } = F([
|
|
2466
2467
|
N(b, {
|
|
2467
2468
|
restMs: 300,
|
|
@@ -2474,7 +2475,15 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2474
2475
|
M(b, { enabled: !i }),
|
|
2475
2476
|
A(b),
|
|
2476
2477
|
L(b, { role: "tooltip" })
|
|
2477
|
-
])
|
|
2478
|
+
]), { isMounted: P, styles: I } = R(b, {
|
|
2479
|
+
duration: {
|
|
2480
|
+
open: 0,
|
|
2481
|
+
close: 300
|
|
2482
|
+
},
|
|
2483
|
+
initial: { opacity: 0 },
|
|
2484
|
+
open: { opacity: 1 },
|
|
2485
|
+
close: { opacity: 0 }
|
|
2486
|
+
});
|
|
2478
2487
|
return /* @__PURE__ */ e.createElement("div", {
|
|
2479
2488
|
className: Z([_, t ?? ""]),
|
|
2480
2489
|
...f
|
|
@@ -2492,16 +2501,15 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2492
2501
|
className: `${_}__icon`,
|
|
2493
2502
|
iconName: c,
|
|
2494
2503
|
size: u
|
|
2495
|
-
})), /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
2504
|
+
})), P && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
2496
2505
|
ref: E.setFloating,
|
|
2497
2506
|
"aria-hidden": !p,
|
|
2498
2507
|
className: `${_}__container`,
|
|
2499
2508
|
style: {
|
|
2500
2509
|
...S,
|
|
2510
|
+
...I,
|
|
2501
2511
|
zIndex: d,
|
|
2502
|
-
|
|
2503
|
-
pointerEvents: p ? "auto" : "none",
|
|
2504
|
-
transition: "var(--pds-animation-transition-reveal)"
|
|
2512
|
+
pointerEvents: p ? "auto" : "none"
|
|
2505
2513
|
},
|
|
2506
2514
|
...O()
|
|
2507
2515
|
}, n)));
|
|
@@ -2516,27 +2524,28 @@ var Ve = Object.create, He = Object.defineProperty, Ue = Object.getOwnPropertyDe
|
|
|
2516
2524
|
className: "pds-input-label__required-icon",
|
|
2517
2525
|
iconName: "asterisk",
|
|
2518
2526
|
size: "s"
|
|
2519
|
-
})), Ut = ({ className: t, disabled: n, id: r, isLegend: i, isPseudoLabel: a, label: o,
|
|
2520
|
-
let
|
|
2527
|
+
})), Ut = ({ className: t, disabled: n, id: r, isLegend: i, isPseudoLabel: a, label: o, labelVariant: s = "default", required: c, showLabel: l = !0, tooltipText: u = null }) => {
|
|
2528
|
+
let d = Z([
|
|
2521
2529
|
"pds-input-label",
|
|
2522
|
-
|
|
2530
|
+
s === "heading" ? "pds-input-label--heading" : null,
|
|
2531
|
+
l ? null : "visually-hidden",
|
|
2523
2532
|
t ?? ""
|
|
2524
|
-
]),
|
|
2525
|
-
content:
|
|
2533
|
+
]), f = /* @__PURE__ */ e.createElement(e.Fragment, null, o, c && !n && /* @__PURE__ */ e.createElement(Ht, null), u && /* @__PURE__ */ e.createElement(zt, {
|
|
2534
|
+
content: u,
|
|
2526
2535
|
triggerIcon: "circleInfoSolid",
|
|
2527
2536
|
triggerIconSize: "s"
|
|
2528
2537
|
}));
|
|
2529
2538
|
return i ? /* @__PURE__ */ e.createElement("legend", {
|
|
2530
|
-
className:
|
|
2539
|
+
className: d,
|
|
2531
2540
|
id: `${r}-legend`
|
|
2532
|
-
},
|
|
2533
|
-
className:
|
|
2541
|
+
}, f) : a ? /* @__PURE__ */ e.createElement("span", {
|
|
2542
|
+
className: d,
|
|
2534
2543
|
id: `${r}-field-label`
|
|
2535
|
-
},
|
|
2536
|
-
className:
|
|
2544
|
+
}, f) : /* @__PURE__ */ e.createElement("label", {
|
|
2545
|
+
className: d,
|
|
2537
2546
|
htmlFor: r,
|
|
2538
2547
|
id: `${r}-label`
|
|
2539
|
-
},
|
|
2548
|
+
}, f);
|
|
2540
2549
|
}, Wt = ({ className: t, forInputGroup: n = !1, hasValidationMessage: r, id: i, message: a, validationMessageHasDecorators: o, validationStatus: s }) => {
|
|
2541
2550
|
let c = "pds-input-message", l = s && r ? `${c}--${s}` : null;
|
|
2542
2551
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -3018,7 +3027,8 @@ var on = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
|
|
|
3018
3027
|
left: 24
|
|
3019
3028
|
}
|
|
3020
3029
|
})), e;
|
|
3021
|
-
})()
|
|
3030
|
+
})(),
|
|
3031
|
+
strategy: "fixed"
|
|
3022
3032
|
}), { getFloatingProps: P, getItemProps: B, getReferenceProps: V } = F([
|
|
3023
3033
|
k(x, {
|
|
3024
3034
|
enabled: t,
|
|
@@ -4163,29 +4173,29 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4163
4173
|
}, $n = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: u = {
|
|
4164
4174
|
selectOptionText: "Select an option...",
|
|
4165
4175
|
triggerButton: "Toggle dropdown menu"
|
|
4166
|
-
}, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0,
|
|
4167
|
-
let
|
|
4168
|
-
|
|
4169
|
-
let
|
|
4176
|
+
}, 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 }) => {
|
|
4177
|
+
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;
|
|
4178
|
+
C === "error" && (P = "error"), C === "success" && (P = "success");
|
|
4179
|
+
let F = S || d, I = w !== void 0, L = r !== void 0, R = ((e) => e.reduce((e, t) => Zt(t) ? [...e, ...t.options] : [...e, t], []))(g), z = (e) => R.findIndex((t) => t.value === e), B = I && z(w) >= 0 ? z(w) : null, V = L ? z(r) : null, [H, U] = h((B || V) ?? null), { activeIndex: ee, floatingStyles: W, getFloatingProps: G, getItemProps: te, getReferenceProps: K, isMounted: ne, listRef: re, refs: ie, setIsOpen: q, transitionStyles: ae } = _n({
|
|
4170
4180
|
enableClick: !i,
|
|
4171
4181
|
enableTypeahead: !0,
|
|
4172
4182
|
role: "listbox",
|
|
4173
|
-
selectedIndex:
|
|
4183
|
+
selectedIndex: H,
|
|
4174
4184
|
variant: "input"
|
|
4175
|
-
}),
|
|
4176
|
-
let t =
|
|
4177
|
-
|
|
4185
|
+
}), 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) => {
|
|
4186
|
+
let t = R[e];
|
|
4187
|
+
I || (U(e), q(!1)), m && m(t);
|
|
4178
4188
|
};
|
|
4179
4189
|
l(() => {
|
|
4180
|
-
|
|
4181
|
-
}, [
|
|
4182
|
-
let
|
|
4183
|
-
f && f(
|
|
4184
|
-
}, se = () => {
|
|
4185
|
-
p && p(J);
|
|
4190
|
+
I && (U(z(w)), q(!1));
|
|
4191
|
+
}, [w]);
|
|
4192
|
+
let se = () => {
|
|
4193
|
+
f && f(Y);
|
|
4186
4194
|
}, ce = () => {
|
|
4187
|
-
|
|
4188
|
-
}, le = (
|
|
4195
|
+
p && p(Y);
|
|
4196
|
+
}, le = () => {
|
|
4197
|
+
ie.reference.current.focus();
|
|
4198
|
+
}, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(Hn, {
|
|
4189
4199
|
className: n,
|
|
4190
4200
|
platformType: t,
|
|
4191
4201
|
size: "m"
|
|
@@ -4193,7 +4203,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4193
4203
|
className: n,
|
|
4194
4204
|
iconName: t,
|
|
4195
4205
|
size: "m"
|
|
4196
|
-
}),
|
|
4206
|
+
}), de = (t) => {
|
|
4197
4207
|
let n = 0;
|
|
4198
4208
|
return t.map((t) => {
|
|
4199
4209
|
if (Zt(t)) {
|
|
@@ -4202,20 +4212,20 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4202
4212
|
return /* @__PURE__ */ e.createElement(Qt, {
|
|
4203
4213
|
key: r,
|
|
4204
4214
|
ref: (e) => {
|
|
4205
|
-
|
|
4215
|
+
re.current[r] = e;
|
|
4206
4216
|
},
|
|
4207
4217
|
"aria-disabled": t?.disabled,
|
|
4208
|
-
"aria-selected": r ===
|
|
4209
|
-
tabIndex: r ===
|
|
4210
|
-
...!t?.disabled &&
|
|
4218
|
+
"aria-selected": r === H && r === ee,
|
|
4219
|
+
tabIndex: r === ee ? 0 : -1,
|
|
4220
|
+
...!t?.disabled && te({
|
|
4211
4221
|
onClick() {
|
|
4212
|
-
|
|
4222
|
+
X(r);
|
|
4213
4223
|
},
|
|
4214
4224
|
onKeyDown(e) {
|
|
4215
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
4225
|
+
e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
|
|
4216
4226
|
}
|
|
4217
4227
|
})
|
|
4218
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
4228
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
|
|
4219
4229
|
});
|
|
4220
4230
|
return /* @__PURE__ */ e.createElement(Qn, {
|
|
4221
4231
|
key: t.groupLabel,
|
|
@@ -4226,44 +4236,44 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4226
4236
|
return /* @__PURE__ */ e.createElement(Qt, {
|
|
4227
4237
|
key: r,
|
|
4228
4238
|
ref: (e) => {
|
|
4229
|
-
|
|
4239
|
+
re.current[r] = e;
|
|
4230
4240
|
},
|
|
4231
4241
|
"aria-disabled": t?.disabled,
|
|
4232
|
-
"aria-selected": r ===
|
|
4233
|
-
tabIndex: r ===
|
|
4234
|
-
...!t?.disabled &&
|
|
4242
|
+
"aria-selected": r === H && r === ee,
|
|
4243
|
+
tabIndex: r === ee ? 0 : -1,
|
|
4244
|
+
...!t?.disabled && te({
|
|
4235
4245
|
onClick() {
|
|
4236
|
-
|
|
4246
|
+
X(r);
|
|
4237
4247
|
},
|
|
4238
4248
|
onKeyDown(e) {
|
|
4239
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
4249
|
+
e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
|
|
4240
4250
|
}
|
|
4241
4251
|
})
|
|
4242
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
4252
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
|
|
4243
4253
|
});
|
|
4244
4254
|
};
|
|
4245
4255
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4246
4256
|
className: Z([
|
|
4247
4257
|
$.base,
|
|
4248
|
-
E,
|
|
4249
4258
|
D,
|
|
4250
4259
|
O,
|
|
4251
4260
|
k,
|
|
4252
4261
|
A,
|
|
4253
4262
|
j,
|
|
4254
4263
|
M,
|
|
4264
|
+
N,
|
|
4255
4265
|
n ?? ""
|
|
4256
4266
|
]),
|
|
4257
|
-
style: s ?
|
|
4258
|
-
...
|
|
4267
|
+
style: s ? E : null,
|
|
4268
|
+
...T
|
|
4259
4269
|
}, t && !s && /* @__PURE__ */ e.createElement("div", {
|
|
4260
4270
|
"aria-hidden": "true",
|
|
4261
|
-
className: `${
|
|
4262
|
-
},
|
|
4271
|
+
className: `${D}__sizer`
|
|
4272
|
+
}, R.map((t) => /* @__PURE__ */ e.createElement("span", {
|
|
4263
4273
|
key: t.value,
|
|
4264
|
-
className: `${
|
|
4265
|
-
},
|
|
4266
|
-
className: `${
|
|
4274
|
+
className: `${D}__input-wrapper`
|
|
4275
|
+
}, 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, {
|
|
4276
|
+
className: `${D}__trigger-icon`,
|
|
4267
4277
|
iconName: "angleDown"
|
|
4268
4278
|
}))))), /* @__PURE__ */ e.createElement(Ut, {
|
|
4269
4279
|
disabled: i,
|
|
@@ -4271,39 +4281,39 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4271
4281
|
label: c,
|
|
4272
4282
|
required: _,
|
|
4273
4283
|
showLabel: v,
|
|
4274
|
-
tooltipText:
|
|
4284
|
+
tooltipText: x
|
|
4275
4285
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
4276
|
-
ref:
|
|
4286
|
+
ref: ie.setReference,
|
|
4277
4287
|
"aria-autocomplete": "none",
|
|
4278
4288
|
"aria-labelledby": `${o}-label`,
|
|
4279
|
-
className: `${
|
|
4289
|
+
className: `${D}__input-wrapper`,
|
|
4280
4290
|
id: o,
|
|
4281
4291
|
tabIndex: 0,
|
|
4282
|
-
...
|
|
4283
|
-
onClick:
|
|
4284
|
-
onBlur:
|
|
4285
|
-
onFocus:
|
|
4292
|
+
...K({
|
|
4293
|
+
onClick: le,
|
|
4294
|
+
onBlur: se,
|
|
4295
|
+
onFocus: ce
|
|
4286
4296
|
})
|
|
4287
|
-
},
|
|
4288
|
-
className: `${
|
|
4297
|
+
}, 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, {
|
|
4298
|
+
className: `${D}__trigger-icon`,
|
|
4289
4299
|
iconName: "angleDown"
|
|
4290
|
-
}))),
|
|
4291
|
-
ref:
|
|
4292
|
-
className: `pds-dropdown__panel ${
|
|
4300
|
+
}))), ne && /* @__PURE__ */ e.createElement("div", {
|
|
4301
|
+
ref: ie.setFloating,
|
|
4302
|
+
className: `pds-dropdown__panel ${D}__dropdown`,
|
|
4293
4303
|
style: {
|
|
4294
|
-
...
|
|
4304
|
+
...W,
|
|
4295
4305
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
4296
4306
|
},
|
|
4297
|
-
...
|
|
4298
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...
|
|
4299
|
-
className: `${
|
|
4307
|
+
...G()
|
|
4308
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...ae } }, /* @__PURE__ */ e.createElement("ul", {
|
|
4309
|
+
className: `${D}__options`,
|
|
4300
4310
|
role: "group"
|
|
4301
|
-
},
|
|
4302
|
-
hasValidationMessage: !!
|
|
4311
|
+
}, de(g)))), F && /* @__PURE__ */ e.createElement(Wt, {
|
|
4312
|
+
hasValidationMessage: !!S,
|
|
4303
4313
|
id: o,
|
|
4304
|
-
message:
|
|
4314
|
+
message: F,
|
|
4305
4315
|
validationMessageHasDecorators: !1,
|
|
4306
|
-
validationStatus:
|
|
4316
|
+
validationStatus: C
|
|
4307
4317
|
}));
|
|
4308
4318
|
}, er = {
|
|
4309
4319
|
"sequential-blue": 2,
|
|
@@ -5628,6 +5638,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5628
5638
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
5629
5639
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
5630
5640
|
})))(), 1);
|
|
5641
|
+
typeof globalThis < "u" && (globalThis.Prism = wr.default);
|
|
5642
|
+
var Tr = wr.default;
|
|
5631
5643
|
//#endregion
|
|
5632
5644
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
5633
5645
|
Prism.languages.markup = {
|
|
@@ -6297,7 +6309,7 @@ Prism.languages.markup = {
|
|
|
6297
6309
|
})(Prism);
|
|
6298
6310
|
//#endregion
|
|
6299
6311
|
//#region src/components/CodeBlock/themes/pds.ts
|
|
6300
|
-
var
|
|
6312
|
+
var Er = {
|
|
6301
6313
|
plain: {
|
|
6302
6314
|
color: "var(--pds-color-code-block-foreground)",
|
|
6303
6315
|
backgroundColor: "var(--pds-color-code-block-background)"
|
|
@@ -6373,7 +6385,7 @@ var Tr = {
|
|
|
6373
6385
|
style: { color: "var(--pds-color-code-block-syntax-inserted)" }
|
|
6374
6386
|
}
|
|
6375
6387
|
]
|
|
6376
|
-
},
|
|
6388
|
+
}, Dr = ({ className: t, code: n, copyButtonLabel: r = "Copy to clipboard", hasCopyButton: i, hasLineNumbers: a, hasPrompt: o, height: s, isLoading: c, language: l, loadingLineCount: u = 1, maxHeight: d, promptSymbol: f = "$", renderAsLegacy: p = !1, shouldWrap: m = !1, ...h }) => {
|
|
6377
6389
|
let g = "pds-code-block", _ = m ? `${g}__line-wrapped` : "", v = {};
|
|
6378
6390
|
s && (v.height = `${s}rem`), d && (v.maxHeight = `${d}rem`);
|
|
6379
6391
|
let y = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(pr, {
|
|
@@ -6425,8 +6437,8 @@ var Tr = {
|
|
|
6425
6437
|
}, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, {
|
|
6426
6438
|
code: n,
|
|
6427
6439
|
language: l || "",
|
|
6428
|
-
prism:
|
|
6429
|
-
theme:
|
|
6440
|
+
prism: Tr,
|
|
6441
|
+
theme: Er
|
|
6430
6442
|
}, /* @__PURE__ */ e.createElement(J.Code, {
|
|
6431
6443
|
className: `${g}__code`,
|
|
6432
6444
|
tabIndex: 0
|
|
@@ -6435,11 +6447,11 @@ var Tr = {
|
|
|
6435
6447
|
clipboardText: n,
|
|
6436
6448
|
variant: "reverse"
|
|
6437
6449
|
}))));
|
|
6438
|
-
},
|
|
6450
|
+
}, Or = {
|
|
6439
6451
|
addon: "circlePlus",
|
|
6440
6452
|
included: "circleCheck",
|
|
6441
6453
|
notIncluded: "xmark"
|
|
6442
|
-
},
|
|
6454
|
+
}, kr = ({ className: t, listItems: n, listLabel: r, moreLink: i, renderTypeLabels: a = !0, showBorder: o = !1, size: s = "s", typeLabels: c = {
|
|
6443
6455
|
addon: "Add-on",
|
|
6444
6456
|
included: "Included",
|
|
6445
6457
|
notIncluded: "Not included"
|
|
@@ -6458,10 +6470,10 @@ var Tr = {
|
|
|
6458
6470
|
className: `${u}__list-item ${u}__list-item--${t.type}`
|
|
6459
6471
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(Q, {
|
|
6460
6472
|
className: `${u}__item-icon`,
|
|
6461
|
-
iconName:
|
|
6473
|
+
iconName: Or[t.type],
|
|
6462
6474
|
size: s
|
|
6463
6475
|
})), a && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c[t.type], ":", " "), t.text))), i && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, i));
|
|
6464
|
-
},
|
|
6476
|
+
}, Ar = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
6465
6477
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
6466
6478
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
6467
6479
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -6492,7 +6504,7 @@ var Tr = {
|
|
|
6492
6504
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
6493
6505
|
...a
|
|
6494
6506
|
}, l);
|
|
6495
|
-
},
|
|
6507
|
+
}, jr = ({ alignment: t = "center", className: n, ctaRegion: r, hasIndentedContent: i, heading: a, headingLevel: o = "h1", image: s, imageMarginLeft: c = "0", imageWidth: l = "40%", maxWidth: u = "100%", message: d, video: f, ...p }) => {
|
|
6496
6508
|
let m = "pds-horizontal-empty-state", h = `${m}--${t}`, g = i ? `${m}--indented-content` : null, _ = f ? `${m}--video` : null, v = {
|
|
6497
6509
|
marginInlineStart: c,
|
|
6498
6510
|
width: l
|
|
@@ -6518,11 +6530,11 @@ var Tr = {
|
|
|
6518
6530
|
alt: "",
|
|
6519
6531
|
className: `${m}__image`,
|
|
6520
6532
|
src: s
|
|
6521
|
-
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(
|
|
6533
|
+
}) : s), f && /* @__PURE__ */ e.createElement("div", { className: `${m}__media ${m}__media--video` }, /* @__PURE__ */ e.createElement(Ar, {
|
|
6522
6534
|
platform: f.platform,
|
|
6523
6535
|
videoId: f.videoId
|
|
6524
6536
|
})));
|
|
6525
|
-
},
|
|
6537
|
+
}, Mr = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
6526
6538
|
let u = "pds-vertical-empty-state";
|
|
6527
6539
|
return c = typeof c == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${u}__message` }, c) : /* @__PURE__ */ e.createElement("div", { className: `${u}__message` }, c), /* @__PURE__ */ e.createElement("div", {
|
|
6528
6540
|
className: Z([u, t ?? ""]),
|
|
@@ -6537,7 +6549,7 @@ var Tr = {
|
|
|
6537
6549
|
baseClass: u,
|
|
6538
6550
|
level: i
|
|
6539
6551
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
6540
|
-
},
|
|
6552
|
+
}, Nr = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, translationStrings: a = {
|
|
6541
6553
|
linesChanged: "lines changed",
|
|
6542
6554
|
additions: "additions",
|
|
6543
6555
|
deletions: "deletions"
|
|
@@ -6569,7 +6581,7 @@ var Tr = {
|
|
|
6569
6581
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
6570
6582
|
preferredPlacement: "top"
|
|
6571
6583
|
}))));
|
|
6572
|
-
},
|
|
6584
|
+
}, Pr = {
|
|
6573
6585
|
amex: /* @__PURE__ */ e.createElement("svg", {
|
|
6574
6586
|
fill: "none",
|
|
6575
6587
|
height: "42",
|
|
@@ -6787,7 +6799,7 @@ var Tr = {
|
|
|
6787
6799
|
height: "42",
|
|
6788
6800
|
width: "70"
|
|
6789
6801
|
}))))
|
|
6790
|
-
},
|
|
6802
|
+
}, Fr = ({ className: t, paymentType: n, size: r = "2xl", ...i }) => {
|
|
6791
6803
|
let a = "pds-payment-icon", o = `${a}--${r}`;
|
|
6792
6804
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6793
6805
|
className: Z([
|
|
@@ -6796,8 +6808,8 @@ var Tr = {
|
|
|
6796
6808
|
t ?? ""
|
|
6797
6809
|
]),
|
|
6798
6810
|
...i
|
|
6799
|
-
},
|
|
6800
|
-
},
|
|
6811
|
+
}, Pr[n]);
|
|
6812
|
+
}, Ir = ({ avatarProps: t, className: n, isSidebarCollapsed: r, isSingleLine: i, primaryText: a, secondaryText: o, ...c }) => {
|
|
6801
6813
|
let u = "pds-identity-block", d = r ? `${u}--collapsed` : null, f = i ? `${u}--single-line` : null, p = t ? {
|
|
6802
6814
|
...t,
|
|
6803
6815
|
size: i ? "s" : "m"
|
|
@@ -6836,7 +6848,7 @@ var Tr = {
|
|
|
6836
6848
|
className: `${u}__secondary-text`,
|
|
6837
6849
|
title: x ? o : void 0
|
|
6838
6850
|
}, o)));
|
|
6839
|
-
},
|
|
6851
|
+
}, Lr = a(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: c, inputWidth: l, label: u, message: d, name: f, nestingLevel: p = 0, onBlur: m, onChange: g, onFocus: _, required: v, showLabel: y = !0, size: b = "s", validationMessage: x, validationStatus: S, value: C, ...w }, T) => {
|
|
6840
6852
|
let E = l ? { width: `${l / 16}rem` } : null, D = "pds-checkbox", O = i ? $.disabled : null, k = S === "error" ? $.error : null, A = p > 0 ? `${D}--indent-${p}` : null, j = v && !i ? $.required : null, M = b === "s" ? null : `${D}--${b}`, N = S === "success" ? $.success : null, P = x || d, F = t !== void 0, [I, L] = h(r === void 0 ? !1 : r), R = t || I, z = (e) => {
|
|
6841
6853
|
F || L(e.target.checked), g && g(e);
|
|
6842
6854
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = s(() => {
|
|
@@ -6908,21 +6920,21 @@ var Tr = {
|
|
|
6908
6920
|
message: P,
|
|
6909
6921
|
validationStatus: S
|
|
6910
6922
|
}));
|
|
6911
|
-
}),
|
|
6912
|
-
let
|
|
6923
|
+
}), Rr = ({ 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 }) => {
|
|
6924
|
+
let g = o ? { width: `${o / 16}rem` } : null, _ = "pds-checkbox-group", v = r ? $.disabled : null, y = u && !r ? $.required : null, b = m === "error" ? $.error : null, x = m === "success" ? $.success : null, S = p || l;
|
|
6913
6925
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6914
6926
|
className: Z([
|
|
6915
|
-
g,
|
|
6916
6927
|
_,
|
|
6917
6928
|
v,
|
|
6918
6929
|
y,
|
|
6919
6930
|
b,
|
|
6931
|
+
x,
|
|
6920
6932
|
n ?? ""
|
|
6921
6933
|
]),
|
|
6922
|
-
style: o ?
|
|
6923
|
-
...
|
|
6934
|
+
style: o ? g : null,
|
|
6935
|
+
...h
|
|
6924
6936
|
}, /* @__PURE__ */ e.createElement("fieldset", {
|
|
6925
|
-
className: `${
|
|
6937
|
+
className: `${_}__fieldset`,
|
|
6926
6938
|
id: a,
|
|
6927
6939
|
...i
|
|
6928
6940
|
}, /* @__PURE__ */ e.createElement(Ut, {
|
|
@@ -6930,54 +6942,55 @@ var Tr = {
|
|
|
6930
6942
|
disabled: r,
|
|
6931
6943
|
id: a,
|
|
6932
6944
|
label: s,
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6945
|
+
labelVariant: c,
|
|
6946
|
+
required: u,
|
|
6947
|
+
showLabel: d,
|
|
6948
|
+
tooltipText: f
|
|
6949
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${_}__options` }, t)), S && /* @__PURE__ */ e.createElement(Wt, {
|
|
6937
6950
|
validationMessageHasDecorators: !0,
|
|
6938
|
-
hasValidationMessage: !!
|
|
6951
|
+
hasValidationMessage: !!p,
|
|
6939
6952
|
id: a,
|
|
6940
|
-
message:
|
|
6941
|
-
validationStatus:
|
|
6953
|
+
message: S,
|
|
6954
|
+
validationStatus: m
|
|
6942
6955
|
}));
|
|
6943
|
-
},
|
|
6944
|
-
let
|
|
6945
|
-
|
|
6956
|
+
}, zr = ({ 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 }) => {
|
|
6957
|
+
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;
|
|
6958
|
+
f.map((e) => {
|
|
6946
6959
|
e.id || (e.id = e.value);
|
|
6947
6960
|
});
|
|
6948
|
-
let
|
|
6949
|
-
|
|
6950
|
-
e.checked === !0 &&
|
|
6961
|
+
let O = [];
|
|
6962
|
+
f.map((e) => {
|
|
6963
|
+
e.checked === !0 && O.push(e.value);
|
|
6951
6964
|
});
|
|
6952
|
-
let [
|
|
6965
|
+
let [k, A] = h(O), j = m(void 0);
|
|
6953
6966
|
l(() => () => {
|
|
6954
|
-
|
|
6967
|
+
j.current && clearTimeout(j.current);
|
|
6955
6968
|
}, []);
|
|
6956
|
-
let
|
|
6957
|
-
let { value: t } = e.target, n =
|
|
6958
|
-
|
|
6969
|
+
let M = (e) => {
|
|
6970
|
+
let { value: t } = e.target, n = k.includes(t) ? k.filter((e) => e !== t) : [...k, t];
|
|
6971
|
+
A(n), d && d(n);
|
|
6959
6972
|
};
|
|
6960
|
-
|
|
6961
|
-
|
|
6973
|
+
f.map((e) => {
|
|
6974
|
+
k.includes(e.value) ? e.checked = !0 : e.checked = !1;
|
|
6962
6975
|
});
|
|
6963
|
-
let
|
|
6964
|
-
|
|
6965
|
-
|
|
6976
|
+
let N = () => {
|
|
6977
|
+
u && (j.current = setTimeout(() => {
|
|
6978
|
+
f.some((e) => e.id === document.activeElement?.id) || u(k);
|
|
6966
6979
|
}, 1500));
|
|
6967
6980
|
};
|
|
6968
6981
|
return /* @__PURE__ */ e.createElement("div", {
|
|
6969
6982
|
className: Z([
|
|
6970
|
-
x,
|
|
6971
6983
|
S,
|
|
6972
6984
|
C,
|
|
6973
6985
|
w,
|
|
6974
6986
|
T,
|
|
6987
|
+
E,
|
|
6975
6988
|
t ?? ""
|
|
6976
6989
|
]),
|
|
6977
|
-
style: a ?
|
|
6978
|
-
...
|
|
6990
|
+
style: a ? x : null,
|
|
6991
|
+
...b
|
|
6979
6992
|
}, /* @__PURE__ */ e.createElement("fieldset", {
|
|
6980
|
-
className: `${
|
|
6993
|
+
className: `${S}__fieldset`,
|
|
6981
6994
|
id: i,
|
|
6982
6995
|
...r
|
|
6983
6996
|
}, /* @__PURE__ */ e.createElement(Ut, {
|
|
@@ -6985,28 +6998,29 @@ var Tr = {
|
|
|
6985
6998
|
disabled: n,
|
|
6986
6999
|
id: i,
|
|
6987
7000
|
label: o,
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
7001
|
+
labelVariant: s,
|
|
7002
|
+
required: p,
|
|
7003
|
+
showLabel: g,
|
|
7004
|
+
tooltipText: _
|
|
7005
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, f.map((t) => /* @__PURE__ */ e.createElement(Lr, {
|
|
6992
7006
|
key: t.id,
|
|
6993
7007
|
checked: t.checked,
|
|
6994
|
-
className: `${
|
|
7008
|
+
className: `${S}__checkbox`,
|
|
6995
7009
|
disabled: t.disabled || n,
|
|
6996
7010
|
id: t.id,
|
|
6997
7011
|
label: t.label,
|
|
6998
7012
|
name: t.name,
|
|
6999
|
-
onBlur:
|
|
7000
|
-
onChange:
|
|
7013
|
+
onBlur: N,
|
|
7014
|
+
onChange: M,
|
|
7001
7015
|
value: t.value
|
|
7002
|
-
})))),
|
|
7016
|
+
})))), D && /* @__PURE__ */ e.createElement(Wt, {
|
|
7003
7017
|
validationMessageHasDecorators: !0,
|
|
7004
|
-
hasValidationMessage: !!
|
|
7018
|
+
hasValidationMessage: !!v,
|
|
7005
7019
|
id: i,
|
|
7006
|
-
message:
|
|
7007
|
-
validationStatus:
|
|
7020
|
+
message: D,
|
|
7021
|
+
validationStatus: y
|
|
7008
7022
|
}));
|
|
7009
|
-
},
|
|
7023
|
+
}, Br = a(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: c = !1, id: u, inputWidth: d, isLoading: f = !1, label: g, labelStrings: _ = {
|
|
7010
7024
|
clearButton: "Clear input text",
|
|
7011
7025
|
inputInstructions: "Type to search options",
|
|
7012
7026
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7199,13 +7213,13 @@ var Tr = {
|
|
|
7199
7213
|
validationMessageHasDecorators: !1,
|
|
7200
7214
|
validationStatus: B
|
|
7201
7215
|
}));
|
|
7202
|
-
}),
|
|
7216
|
+
}), Vr = (e, t, n) => {
|
|
7203
7217
|
let r = n.toLowerCase();
|
|
7204
7218
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
7205
7219
|
...e,
|
|
7206
7220
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
7207
7221
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
7208
|
-
},
|
|
7222
|
+
}, Hr = ({ aiSuggestions: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, isLoading: s = !1, label: c = "Lorem ipsum dolor sit:", labelStrings: l = {
|
|
7209
7223
|
aiBadgeLabel: "Suggested",
|
|
7210
7224
|
aiPanelButton: "Show AI suggestions",
|
|
7211
7225
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -7213,7 +7227,7 @@ var Tr = {
|
|
|
7213
7227
|
inputInstructions: "Type to search options",
|
|
7214
7228
|
triggerButton: "Toggle dropdown menu"
|
|
7215
7229
|
}, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: g, placeholder: _ = "Filter", required: v = !1, showAllTags: y = !1, showLabel: b = !0, size: x = "s", ...S }) => {
|
|
7216
|
-
let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() =>
|
|
7230
|
+
let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() => Vr(g, R, I), [
|
|
7217
7231
|
g,
|
|
7218
7232
|
R,
|
|
7219
7233
|
I
|
|
@@ -7472,7 +7486,7 @@ var Tr = {
|
|
|
7472
7486
|
iconName: "xmark",
|
|
7473
7487
|
size: "m"
|
|
7474
7488
|
})))));
|
|
7475
|
-
},
|
|
7489
|
+
}, Ur = (e, t) => e ? se(e, "PP", { locale: t }) : "", Wr = (e) => {
|
|
7476
7490
|
if (e.custom) return e.custom();
|
|
7477
7491
|
let t = /* @__PURE__ */ new Date();
|
|
7478
7492
|
if (t.setHours(0, 0, 0, 0), e.days !== void 0) {
|
|
@@ -7525,7 +7539,7 @@ var Tr = {
|
|
|
7525
7539
|
to: t
|
|
7526
7540
|
};
|
|
7527
7541
|
}
|
|
7528
|
-
},
|
|
7542
|
+
}, Gr = {
|
|
7529
7543
|
clearButton: "Clear",
|
|
7530
7544
|
doneButton: "Done",
|
|
7531
7545
|
noDateSelected: "No date selected",
|
|
@@ -7536,9 +7550,9 @@ var Tr = {
|
|
|
7536
7550
|
selectedDateRange: "Selected date range: ",
|
|
7537
7551
|
to: " to ",
|
|
7538
7552
|
todayButton: "Today"
|
|
7539
|
-
},
|
|
7553
|
+
}, Kr = ({ className: t, disabled: n = !1, hasDateRange: r, id: i, inputWidth: a, label: o, locale: s, maxDate: c, message: u, minDate: d, onChange: f, placeholder: p, required: m = !1, showLabel: g = !0, tooltipText: _, translationStrings: v, validationMessage: y, validationStatus: b, value: x, ...S }) => {
|
|
7540
7554
|
let E = {
|
|
7541
|
-
...
|
|
7555
|
+
...Gr,
|
|
7542
7556
|
...v
|
|
7543
7557
|
}, [O, k] = h(x), [A, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = Bt(a), R = "pds-datepicker", z = n ? $.disabled : null, B = m && !n ? $.required : null, V = b === "error" ? $.error : null, H = b === "success" ? $.success : null, U = y || u, { floatingStyles: ee, refs: W } = j({
|
|
7544
7558
|
open: A,
|
|
@@ -7579,18 +7593,18 @@ var Tr = {
|
|
|
7579
7593
|
}, Y = () => {
|
|
7580
7594
|
if (r) {
|
|
7581
7595
|
let t = O;
|
|
7582
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7596
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ur(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${R}__separator` }, " – "), Ur(t.to, s)) : Ur(t.from, s) : p || "";
|
|
7583
7597
|
} else {
|
|
7584
7598
|
let e = O;
|
|
7585
|
-
return e ?
|
|
7599
|
+
return e ? Ur(e, s) : p || "";
|
|
7586
7600
|
}
|
|
7587
7601
|
}, X = () => r ? !O?.from : !O, le = () => {
|
|
7588
7602
|
if (r) {
|
|
7589
7603
|
let e = O;
|
|
7590
|
-
return e?.from ? e.to ? `${E.selectedDateRange}${
|
|
7604
|
+
return e?.from ? e.to ? `${E.selectedDateRange}${Ur(e.from, s)}${E.to}${Ur(e.to, s)}` : `${E.selectedStartDate}${Ur(e.from, s)}${E.pleaseSelectEndDate}` : E.noDateRangeSelected || "";
|
|
7591
7605
|
} else {
|
|
7592
7606
|
let e = O;
|
|
7593
|
-
return e ? `${E.selectedDate}${
|
|
7607
|
+
return e ? `${E.selectedDate}${Ur(e, s)}` : E.noDateSelected || "";
|
|
7594
7608
|
}
|
|
7595
7609
|
}, ue = (e) => {
|
|
7596
7610
|
W.floating.current && !W.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
|
|
@@ -7692,7 +7706,7 @@ var Tr = {
|
|
|
7692
7706
|
type: "button",
|
|
7693
7707
|
variant: "highlight"
|
|
7694
7708
|
})))));
|
|
7695
|
-
},
|
|
7709
|
+
}, qr = a(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: u = {
|
|
7696
7710
|
chooseFile: "Choose file",
|
|
7697
7711
|
clearButton: "Clear selected file"
|
|
7698
7712
|
}, message: d, multiple: f = !1, onClear: p, onFileChange: m, required: g = !1, showFullPath: _, showLabel: v = !0, size: y = "s", tooltipText: b = null, validationMessage: x, validationStatus: S, ...C }, w) => {
|
|
@@ -7776,7 +7790,7 @@ var Tr = {
|
|
|
7776
7790
|
validationMessageHasDecorators: !1,
|
|
7777
7791
|
validationStatus: S
|
|
7778
7792
|
}));
|
|
7779
|
-
}),
|
|
7793
|
+
}), Jr = ({ children: t, className: n, ...r }) => {
|
|
7780
7794
|
let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
|
|
7781
7795
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7782
7796
|
className: Z([
|
|
@@ -7793,25 +7807,25 @@ var Tr = {
|
|
|
7793
7807
|
validationMessageHasDecorators: !1,
|
|
7794
7808
|
validationStatus: l
|
|
7795
7809
|
}));
|
|
7796
|
-
},
|
|
7797
|
-
let
|
|
7798
|
-
|
|
7799
|
-
},
|
|
7800
|
-
|
|
7810
|
+
}, Yr = ({ 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 }) => {
|
|
7811
|
+
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) => {
|
|
7812
|
+
D || k(e.target.value), d && d(e), f && f(e.target.value);
|
|
7813
|
+
}, M = (e) => {
|
|
7814
|
+
u?.(e);
|
|
7801
7815
|
};
|
|
7802
7816
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7803
7817
|
className: Z([
|
|
7804
|
-
x,
|
|
7805
7818
|
S,
|
|
7806
7819
|
C,
|
|
7807
7820
|
w,
|
|
7808
7821
|
T,
|
|
7822
|
+
E,
|
|
7809
7823
|
t ?? ""
|
|
7810
7824
|
]),
|
|
7811
7825
|
style: Bt(o),
|
|
7812
|
-
...
|
|
7826
|
+
...x
|
|
7813
7827
|
}, /* @__PURE__ */ e.createElement("fieldset", {
|
|
7814
|
-
className: `${
|
|
7828
|
+
className: `${S}__fieldset`,
|
|
7815
7829
|
id: a,
|
|
7816
7830
|
...i
|
|
7817
7831
|
}, /* @__PURE__ */ e.createElement(Ut, {
|
|
@@ -7819,30 +7833,31 @@ var Tr = {
|
|
|
7819
7833
|
disabled: r,
|
|
7820
7834
|
id: a,
|
|
7821
7835
|
label: s,
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7836
|
+
labelVariant: c,
|
|
7837
|
+
required: m,
|
|
7838
|
+
showLabel: g,
|
|
7839
|
+
tooltipText: _
|
|
7840
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__options` }, p.map((t, n) => /* @__PURE__ */ e.createElement("div", {
|
|
7826
7841
|
key: `${a}-option-${n}`,
|
|
7827
|
-
className: `${
|
|
7842
|
+
className: `${S}__option`
|
|
7828
7843
|
}, /* @__PURE__ */ e.createElement("input", {
|
|
7829
|
-
checked:
|
|
7844
|
+
checked: D ? b === t.value : O === t.value,
|
|
7830
7845
|
disabled: r || t.disabled,
|
|
7831
7846
|
id: t.id ? t.id : `${a}-option-${n}`,
|
|
7832
7847
|
name: a,
|
|
7833
|
-
onBlur:
|
|
7834
|
-
onChange:
|
|
7835
|
-
required:
|
|
7848
|
+
onBlur: M,
|
|
7849
|
+
onChange: j,
|
|
7850
|
+
required: m,
|
|
7836
7851
|
type: "radio",
|
|
7837
7852
|
value: t.value
|
|
7838
|
-
}), /* @__PURE__ */ e.createElement("label", { htmlFor: t.id ? t.id : `${a}-option-${n}` }, t.label))))),
|
|
7853
|
+
}), /* @__PURE__ */ e.createElement("label", { htmlFor: t.id ? t.id : `${a}-option-${n}` }, t.label))))), A && /* @__PURE__ */ e.createElement(Wt, {
|
|
7839
7854
|
validationMessageHasDecorators: !0,
|
|
7840
|
-
hasValidationMessage: !!
|
|
7855
|
+
hasValidationMessage: !!v,
|
|
7841
7856
|
id: a,
|
|
7842
|
-
message:
|
|
7843
|
-
validationStatus:
|
|
7857
|
+
message: A,
|
|
7858
|
+
validationStatus: y
|
|
7844
7859
|
}));
|
|
7845
|
-
},
|
|
7860
|
+
}, Xr = a(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, label: c, message: l, offLabel: u = "Off", onChange: d, onLabel: f = "On", required: p = !1, showLabel: m = !0, showStatusLabel: g = !0, statusLabelPlacement: _ = "right", switchPlacement: v = "right", ...y }, b) => {
|
|
7846
7861
|
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) => {
|
|
7847
7862
|
D || k(e.target.checked), d && d(e);
|
|
7848
7863
|
}, M = g ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -7897,7 +7912,7 @@ var Tr = {
|
|
|
7897
7912
|
required: p,
|
|
7898
7913
|
showLabel: m
|
|
7899
7914
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
7900
|
-
}),
|
|
7915
|
+
}), Zr = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: u, onFocusInput: d, onKeyboardMove: f, onRemove: p, setFocusedIndex: h, tag: g, totalTags: _, translationStrings: v }) => {
|
|
7901
7916
|
let y = m(null), b = "pds-tags-input__tag";
|
|
7902
7917
|
l(() => {
|
|
7903
7918
|
r === i && y.current && y.current.focus();
|
|
@@ -7964,7 +7979,7 @@ var Tr = {
|
|
|
7964
7979
|
iconName: "xmark",
|
|
7965
7980
|
size: "s"
|
|
7966
7981
|
})));
|
|
7967
|
-
},
|
|
7982
|
+
}, Qr = a(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, isSortable: s = !1, label: c, message: l, onChange: u, placeholder: d, required: f = !1, showLabel: p = !0, size: g = "s", tags: _, tooltipText: v = null, translationStrings: y = {
|
|
7968
7983
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
7969
7984
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
7970
7985
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -8050,7 +8065,7 @@ var Tr = {
|
|
|
8050
8065
|
return P && P !== t.id && (I === t.id && R === "before" ? i = "before" : I === t.id && R === "after" && n === _.length - 1 ? i = "after" : n > 0 && I === _[n - 1].id && R === "after" && (i = "before")), /* @__PURE__ */ e.createElement("div", {
|
|
8051
8066
|
key: t.id,
|
|
8052
8067
|
role: "listitem"
|
|
8053
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8068
|
+
}, /* @__PURE__ */ e.createElement(Zr, {
|
|
8054
8069
|
disabled: r,
|
|
8055
8070
|
dropTargetDirection: i,
|
|
8056
8071
|
focusedIndex: B,
|
|
@@ -8094,7 +8109,7 @@ var Tr = {
|
|
|
8094
8109
|
validationMessageHasDecorators: !1,
|
|
8095
8110
|
validationStatus: x
|
|
8096
8111
|
}));
|
|
8097
|
-
}),
|
|
8112
|
+
}), $r = a(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, isResizable: s = !0, label: c, message: l, onBlur: u, onChange: d, onFocus: f, placeholder: p, readonly: m = !1, required: g = !1, rows: _ = 5, showLabel: v, size: y = "s", textareaProps: b, tooltipText: x = null, translationStrings: S = {
|
|
8098
8113
|
clearButton: "Clear input text",
|
|
8099
8114
|
counterOverLimit: "Character limit exceeded by",
|
|
8100
8115
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8158,7 +8173,7 @@ var Tr = {
|
|
|
8158
8173
|
message: L,
|
|
8159
8174
|
validationStatus: w
|
|
8160
8175
|
}));
|
|
8161
|
-
}),
|
|
8176
|
+
}), ei = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), ti = a(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, label: f, message: p, onBlur: m, onChange: g, onClear: _, onFocus: v, placeholder: y, readonly: b = !1, required: x = !1, searchIcon: S = "search", showLabel: C = !0, showVisibilityToggle: w = !1, size: T = "s", tooltipText: E = null, translationStrings: D = {
|
|
8162
8177
|
clearButton: "Clear input text",
|
|
8163
8178
|
counterOverLimit: "Character limit exceeded by",
|
|
8164
8179
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8224,7 +8239,7 @@ var Tr = {
|
|
|
8224
8239
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8225
8240
|
"aria-live": "polite",
|
|
8226
8241
|
className: "visually-hidden"
|
|
8227
|
-
}, `${D.visibilityStatus} ${q ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(
|
|
8242
|
+
}, `${D.visibilityStatus} ${q ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ei, null), /* @__PURE__ */ e.createElement("input", {
|
|
8228
8243
|
ref: N,
|
|
8229
8244
|
"aria-describedby": ee ? `${l}__message` : null,
|
|
8230
8245
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8271,12 +8286,12 @@ var Tr = {
|
|
|
8271
8286
|
validationMessageHasDecorators: !1,
|
|
8272
8287
|
validationStatus: A
|
|
8273
8288
|
}));
|
|
8274
|
-
}),
|
|
8289
|
+
}), ni = (e) => String(e).padStart(2, "0"), ri = (e) => {
|
|
8275
8290
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
8276
8291
|
if (!t) return null;
|
|
8277
8292
|
let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
|
|
8278
8293
|
return n > 23 || r > 59 ? null : new ue(n, r);
|
|
8279
|
-
},
|
|
8294
|
+
}, ii = (e) => e ? `${ni(e.hour)}:${ni(e.minute)}` : void 0, ai = ({ baseClass: t, segment: n, state: r }) => {
|
|
8280
8295
|
let i = m(null), { segmentProps: a } = ge(n, r, i), { focusProps: o, isFocusVisible: s } = _e(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
|
|
8281
8296
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8282
8297
|
...he(a, o),
|
|
@@ -8287,7 +8302,7 @@ var Tr = {
|
|
|
8287
8302
|
s ? `${t}__segment--focus-visible` : null
|
|
8288
8303
|
])
|
|
8289
8304
|
}, c);
|
|
8290
|
-
},
|
|
8305
|
+
}, oi = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, label: c, message: u, onBlur: d, onChange: f, onFocus: g, required: _ = !1, showLabel: v = !0, size: y = "s", timeZone: b, tooltipText: x = null, validationMessage: S, validationStatus: C, value: w }) => {
|
|
8291
8306
|
let T = Bt(s), E = "pds-time-input", D = y === "s" ? null : `${E}--${y}`, O = i ? $.disabled : null, k = _ && !i ? $.required : null, A = C === "error" ? $.error : null, j = C === "success" ? $.success : null, M = S || u, N = w !== void 0, { locale: P } = ve(), [F, I] = h(r), L = N ? w : F, R = be({
|
|
8292
8307
|
granularity: "minute",
|
|
8293
8308
|
hourCycle: a,
|
|
@@ -8295,14 +8310,14 @@ var Tr = {
|
|
|
8295
8310
|
locale: P,
|
|
8296
8311
|
onBlur: d,
|
|
8297
8312
|
onChange: (e) => {
|
|
8298
|
-
let t =
|
|
8313
|
+
let t = ii(e);
|
|
8299
8314
|
t && (N || I(t), f && f(t));
|
|
8300
8315
|
},
|
|
8301
8316
|
onFocusChange: (e) => {
|
|
8302
8317
|
e && g && g();
|
|
8303
8318
|
},
|
|
8304
8319
|
shouldForceLeadingZeros: !0,
|
|
8305
|
-
value: p(() =>
|
|
8320
|
+
value: p(() => ri(L), [L])
|
|
8306
8321
|
}), z = m(null), { fieldProps: B } = ye({
|
|
8307
8322
|
"aria-describedby": M ? `${o}__message` : void 0,
|
|
8308
8323
|
"aria-labelledby": `${o}-label`,
|
|
@@ -8313,7 +8328,7 @@ var Tr = {
|
|
|
8313
8328
|
if (V.current = b, !b || !e || b === e) return;
|
|
8314
8329
|
let n = R.value;
|
|
8315
8330
|
if (!n) return;
|
|
8316
|
-
let r = fe(pe(de(t ?? me(e), n), e), b), i =
|
|
8331
|
+
let r = fe(pe(de(t ?? me(e), n), e), b), i = ii(new ue(r.hour, r.minute));
|
|
8317
8332
|
i && (N || I(i), f && f(i));
|
|
8318
8333
|
}, [b]);
|
|
8319
8334
|
let H = p(() => {
|
|
@@ -8363,7 +8378,7 @@ var Tr = {
|
|
|
8363
8378
|
}), /* @__PURE__ */ e.createElement("div", { className: `${E}__value` }, R.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
|
|
8364
8379
|
key: n,
|
|
8365
8380
|
className: Z([`${E}__separator`, t.text === ":" ? `${E}__separator--colon` : null])
|
|
8366
|
-
}, t.text) : /* @__PURE__ */ e.createElement(
|
|
8381
|
+
}, t.text) : /* @__PURE__ */ e.createElement(ai, {
|
|
8367
8382
|
key: n,
|
|
8368
8383
|
baseClass: E,
|
|
8369
8384
|
segment: t,
|
|
@@ -8375,7 +8390,7 @@ var Tr = {
|
|
|
8375
8390
|
validationMessageHasDecorators: !1,
|
|
8376
8391
|
validationStatus: C
|
|
8377
8392
|
}));
|
|
8378
|
-
},
|
|
8393
|
+
}, si = ({ className: t, linkContent: n, size: r = "s", ...i }) => {
|
|
8379
8394
|
let a = "pds-cta-link", o = r === "s" ? null : `${a}--${r}`;
|
|
8380
8395
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8381
8396
|
className: Z([
|
|
@@ -8389,7 +8404,7 @@ var Tr = {
|
|
|
8389
8404
|
iconName: "arrowRight",
|
|
8390
8405
|
size: r === "xs" ? "s" : r === "s" ? "m" : "l"
|
|
8391
8406
|
}));
|
|
8392
|
-
},
|
|
8407
|
+
}, ci = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
8393
8408
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
8394
8409
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
8395
8410
|
"aria-hidden": "true",
|
|
@@ -8416,11 +8431,11 @@ var Tr = {
|
|
|
8416
8431
|
className: `${c}__icon`,
|
|
8417
8432
|
iconName: "externalLink"
|
|
8418
8433
|
}));
|
|
8419
|
-
},
|
|
8434
|
+
}, li = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
8420
8435
|
className: Z(["pds-skiplink", t]),
|
|
8421
8436
|
href: `#${n}`,
|
|
8422
8437
|
...i
|
|
8423
|
-
}, r),
|
|
8438
|
+
}, r), ui = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8424
8439
|
let c = "pds-picture";
|
|
8425
8440
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8426
8441
|
srcSet: a,
|
|
@@ -8433,7 +8448,7 @@ var Tr = {
|
|
|
8433
8448
|
width: o,
|
|
8434
8449
|
...s
|
|
8435
8450
|
}));
|
|
8436
|
-
},
|
|
8451
|
+
}, di = ({ ariaLabel: t = "Breadcrumb", className: r, crumbs: i, ...a }) => {
|
|
8437
8452
|
let s = "pds-breadcrumb", c = i.length, l = i.map((t, r) => {
|
|
8438
8453
|
if (r < c - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
8439
8454
|
key: r,
|
|
@@ -8452,36 +8467,36 @@ var Tr = {
|
|
|
8452
8467
|
className: Z([s, r]),
|
|
8453
8468
|
...a
|
|
8454
8469
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${s}__crumbs` }, l));
|
|
8455
|
-
},
|
|
8470
|
+
}, fi = (e) => {
|
|
8456
8471
|
if (!e) return null;
|
|
8457
8472
|
for (let t = 0; t < e.length; t++) {
|
|
8458
|
-
if (
|
|
8473
|
+
if (mi(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
8459
8474
|
if (e[t].links) {
|
|
8460
|
-
let n =
|
|
8475
|
+
let n = fi(e[t].links);
|
|
8461
8476
|
if (n) return n;
|
|
8462
8477
|
}
|
|
8463
8478
|
}
|
|
8464
8479
|
return null;
|
|
8465
|
-
},
|
|
8466
|
-
if (
|
|
8480
|
+
}, pi = (e) => typeof e == "string" ? e : e.props.children, mi = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), hi = (e) => {
|
|
8481
|
+
if (mi(e)) return !0;
|
|
8467
8482
|
if (e.links) {
|
|
8468
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
8483
|
+
for (let t = 0; t < e.links.length; t++) if (hi(e.links[t])) return !0;
|
|
8469
8484
|
}
|
|
8470
8485
|
return !1;
|
|
8471
|
-
},
|
|
8486
|
+
}, gi = (e) => e.map((e) => `${mi(e)}${e.links ? `[${gi(e.links)}]` : ""}`).join("|"), _i = (e) => {
|
|
8472
8487
|
if (o(e)) {
|
|
8473
8488
|
let t = e.type;
|
|
8474
8489
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
8475
8490
|
}
|
|
8476
8491
|
return !1;
|
|
8477
|
-
},
|
|
8492
|
+
}, vi = (e, t) => {
|
|
8478
8493
|
let r = null;
|
|
8479
8494
|
if (typeof e == "string" && t) {
|
|
8480
8495
|
let i = t ? t[0].linkContent : null;
|
|
8481
8496
|
o(i) && (r = n(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
8482
8497
|
} else r = e;
|
|
8483
8498
|
return r;
|
|
8484
|
-
},
|
|
8499
|
+
}, yi = (t, r, i, a) => {
|
|
8485
8500
|
let s = null;
|
|
8486
8501
|
if (typeof r == "string") {
|
|
8487
8502
|
let c = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -8506,7 +8521,7 @@ var Tr = {
|
|
|
8506
8521
|
iconName: a,
|
|
8507
8522
|
size: "m"
|
|
8508
8523
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, r.props.children))] })) : r), s;
|
|
8509
|
-
},
|
|
8524
|
+
}, bi = ({ ariaLabel: t, border: n = !1, className: r, menuItems: i, ...a }) => {
|
|
8510
8525
|
let o = m(null), s = "pds-button-nav", c = n ? `${s}--bordered` : null;
|
|
8511
8526
|
l(() => {
|
|
8512
8527
|
let e = (e) => {
|
|
@@ -8525,11 +8540,11 @@ var Tr = {
|
|
|
8525
8540
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
8526
8541
|
}, d = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${s}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(u, {
|
|
8527
8542
|
key: n,
|
|
8528
|
-
isActive:
|
|
8543
|
+
isActive: hi(t),
|
|
8529
8544
|
linkContent: t.linkContent
|
|
8530
8545
|
}))) : null, f = [];
|
|
8531
8546
|
i.map((e) => {
|
|
8532
|
-
e.linkContent && (
|
|
8547
|
+
e.linkContent && (hi(e) ? f.unshift({
|
|
8533
8548
|
linkContent: e.linkContent,
|
|
8534
8549
|
isLink: !0
|
|
8535
8550
|
}) : f.push({
|
|
@@ -8553,8 +8568,8 @@ var Tr = {
|
|
|
8553
8568
|
]),
|
|
8554
8569
|
...a
|
|
8555
8570
|
}, d, p);
|
|
8556
|
-
},
|
|
8557
|
-
let s = "pds-dropdown-menu", c =
|
|
8571
|
+
}, xi = ({ className: t, headingText: r, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
8572
|
+
let s = "pds-dropdown-menu", c = fi(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(On, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = _n({
|
|
8558
8573
|
enableShift: !1,
|
|
8559
8574
|
enableTypeahead: !0,
|
|
8560
8575
|
role: "menu"
|
|
@@ -8563,7 +8578,7 @@ var Tr = {
|
|
|
8563
8578
|
}, C = (e) => {
|
|
8564
8579
|
e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
|
|
8565
8580
|
}, w = ({ item: e, level: t }) => {
|
|
8566
|
-
let r =
|
|
8581
|
+
let r = vi(e.linkContent, e.links);
|
|
8567
8582
|
return {
|
|
8568
8583
|
...e,
|
|
8569
8584
|
level: t,
|
|
@@ -8654,7 +8669,7 @@ var Tr = {
|
|
|
8654
8669
|
tabIndex: d === n ? 0 : -1,
|
|
8655
8670
|
...m({ onKeyDown: C })
|
|
8656
8671
|
}, t.linkContent, t.isActive === !0 && u)))));
|
|
8657
|
-
},
|
|
8672
|
+
}, Si = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
8658
8673
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
8659
8674
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8660
8675
|
className: Z([
|
|
@@ -8664,7 +8679,7 @@ var Tr = {
|
|
|
8664
8679
|
]),
|
|
8665
8680
|
...i
|
|
8666
8681
|
}, t);
|
|
8667
|
-
},
|
|
8682
|
+
}, Ci = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8668
8683
|
closeMobileNav: "Close navigation area",
|
|
8669
8684
|
openMobileNav: "Open navigation area"
|
|
8670
8685
|
}, ...c }) => {
|
|
@@ -8720,7 +8735,7 @@ var Tr = {
|
|
|
8720
8735
|
n ?? ""
|
|
8721
8736
|
]),
|
|
8722
8737
|
...c
|
|
8723
|
-
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(
|
|
8738
|
+
}, f ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__bar-mobile` }, /* @__PURE__ */ e.createElement(Si, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__inner-mobile` }, C, k && A))), /* @__PURE__ */ e.createElement(xe, {
|
|
8724
8739
|
active: u,
|
|
8725
8740
|
focusTrapOptions: {
|
|
8726
8741
|
clickOutsideDeactivates: !0,
|
|
@@ -8730,11 +8745,11 @@ var Tr = {
|
|
|
8730
8745
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8731
8746
|
className: Z([`${g}__mobile`, u ? `${g}__mobile--open` : null]),
|
|
8732
8747
|
inert: u ? void 0 : ""
|
|
8733
|
-
}, /* @__PURE__ */ e.createElement(
|
|
8748
|
+
}, /* @__PURE__ */ e.createElement(Si, null, /* @__PURE__ */ e.createElement("button", {
|
|
8734
8749
|
className: "visually-hidden",
|
|
8735
8750
|
onClick: b,
|
|
8736
8751
|
type: "button"
|
|
8737
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(
|
|
8752
|
+
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Si, {
|
|
8738
8753
|
className: `${g}__inner`,
|
|
8739
8754
|
style: o ? { paddingInline: o } : void 0,
|
|
8740
8755
|
width: i
|
|
@@ -8742,14 +8757,14 @@ var Tr = {
|
|
|
8742
8757
|
"aria-hidden": "true",
|
|
8743
8758
|
className: `${g}__separator`
|
|
8744
8759
|
}), w && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-left` }, w)), T && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-center` }, T), E && /* @__PURE__ */ e.createElement("div", { className: `${g}__items-right` }, E)));
|
|
8745
|
-
},
|
|
8760
|
+
}, wi = ({ ariaLabel: t, className: r, hasMobileDropdown: i = !1, headingText: a, labels: s = {
|
|
8746
8761
|
submenu: "submenu",
|
|
8747
8762
|
toggle: "Toggle"
|
|
8748
8763
|
}, menuItems: c, mobileMenuSelectTextFallback: u = "Navigate to...", ...d }) => {
|
|
8749
8764
|
let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, g = `${f}__menu`, [_, v] = h({});
|
|
8750
8765
|
l(() => {
|
|
8751
8766
|
v((e) => Object.keys(e).length ? {} : e);
|
|
8752
|
-
}, [
|
|
8767
|
+
}, [gi(c)]);
|
|
8753
8768
|
let y = (e, t) => t in _ ? _[t] : e, b = (e, t) => {
|
|
8754
8769
|
v((n) => {
|
|
8755
8770
|
let r = t in n ? n[t] : e;
|
|
@@ -8759,7 +8774,7 @@ var Tr = {
|
|
|
8759
8774
|
};
|
|
8760
8775
|
});
|
|
8761
8776
|
}, x = (t, r) => {
|
|
8762
|
-
let { linkContent: i, links: a } = t, c =
|
|
8777
|
+
let { linkContent: i, links: a } = t, c = hi(t), l = _i(i), u = y(c, r);
|
|
8763
8778
|
return /* @__PURE__ */ e.createElement("li", {
|
|
8764
8779
|
key: r,
|
|
8765
8780
|
className: Z([
|
|
@@ -8772,7 +8787,7 @@ var Tr = {
|
|
|
8772
8787
|
`${f}__row`,
|
|
8773
8788
|
`${f}__row--expandable`,
|
|
8774
8789
|
`${m}-wrapper`
|
|
8775
|
-
]) },
|
|
8790
|
+
]) }, vi(i, a), /* @__PURE__ */ e.createElement("button", {
|
|
8776
8791
|
"aria-expanded": u,
|
|
8777
8792
|
className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
|
|
8778
8793
|
onClick: () => b(c, r),
|
|
@@ -8780,7 +8795,7 @@ var Tr = {
|
|
|
8780
8795
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8781
8796
|
iconName: "angleDown",
|
|
8782
8797
|
size: "m"
|
|
8783
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8798
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${pi(i)} ${s.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8784
8799
|
g,
|
|
8785
8800
|
`${g}--second-level`,
|
|
8786
8801
|
u ? `${g}--expanded` : null
|
|
@@ -8789,9 +8804,9 @@ var Tr = {
|
|
|
8789
8804
|
className: Z([
|
|
8790
8805
|
m,
|
|
8791
8806
|
`${m}--second-level`,
|
|
8792
|
-
|
|
8807
|
+
hi(t) ? `${m}--active` : null
|
|
8793
8808
|
])
|
|
8794
|
-
},
|
|
8809
|
+
}, vi(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
8795
8810
|
"aria-expanded": u,
|
|
8796
8811
|
className: Z([
|
|
8797
8812
|
`${f}__row`,
|
|
@@ -8805,7 +8820,7 @@ var Tr = {
|
|
|
8805
8820
|
}, o(i) && i.type === "span" ? n(i, { className: Z([i.props.className, `${f}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${f}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
8806
8821
|
iconName: "angleDown",
|
|
8807
8822
|
size: "m"
|
|
8808
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${
|
|
8823
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${s.toggle} ${pi(i)} ${s.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8809
8824
|
g,
|
|
8810
8825
|
`${g}--second-level`,
|
|
8811
8826
|
u ? `${g}--expanded` : null
|
|
@@ -8814,10 +8829,10 @@ var Tr = {
|
|
|
8814
8829
|
className: Z([
|
|
8815
8830
|
m,
|
|
8816
8831
|
`${m}--second-level`,
|
|
8817
|
-
|
|
8832
|
+
hi(t) ? `${m}--active` : null
|
|
8818
8833
|
])
|
|
8819
|
-
},
|
|
8820
|
-
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(
|
|
8834
|
+
}, vi(t.linkContent, t.links))))) : i);
|
|
8835
|
+
}, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(xi, {
|
|
8821
8836
|
className: `${f}__mobile`,
|
|
8822
8837
|
headingText: a,
|
|
8823
8838
|
menuItems: c,
|
|
@@ -8832,8 +8847,8 @@ var Tr = {
|
|
|
8832
8847
|
]),
|
|
8833
8848
|
...d
|
|
8834
8849
|
}, S, i && C);
|
|
8835
|
-
},
|
|
8836
|
-
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8850
|
+
}, Ti = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: u }) => {
|
|
8851
|
+
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, g = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, yi(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
8837
8852
|
p,
|
|
8838
8853
|
`${p}--${n}`,
|
|
8839
8854
|
r ? `${p}--expanded` : null
|
|
@@ -8842,7 +8857,7 @@ var Tr = {
|
|
|
8842
8857
|
className: Z([
|
|
8843
8858
|
f,
|
|
8844
8859
|
`${f}--${n}`,
|
|
8845
|
-
|
|
8860
|
+
hi(t) ? `${f}--active` : null
|
|
8846
8861
|
])
|
|
8847
8862
|
}, t.linkContent))), [v, y] = h(!1), b = m(v), S = m(!1), { context: O, floatingStyles: k, refs: M } = j({
|
|
8848
8863
|
placement: "right-start",
|
|
@@ -8896,7 +8911,7 @@ var Tr = {
|
|
|
8896
8911
|
...I(),
|
|
8897
8912
|
onClick: z,
|
|
8898
8913
|
onKeyDown: R
|
|
8899
|
-
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` },
|
|
8914
|
+
}, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, yi(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
|
|
8900
8915
|
"aria-expanded": r,
|
|
8901
8916
|
className: Z([`${d}__toggle`, r ? `${d}__toggle--expanded` : null]),
|
|
8902
8917
|
onClick: u,
|
|
@@ -8904,13 +8919,13 @@ var Tr = {
|
|
|
8904
8919
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8905
8920
|
iconName: "angleDown",
|
|
8906
8921
|
size: "m"
|
|
8907
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
8922
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${pi(o)} ${a.submenu}`))), !i && _(s, "second-level"), i && v && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
|
|
8908
8923
|
ref: M.setFloating,
|
|
8909
8924
|
className: `${d}__flyout`,
|
|
8910
8925
|
style: k,
|
|
8911
8926
|
...P()
|
|
8912
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` },
|
|
8913
|
-
content:
|
|
8927
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${d}__flyout-heading` }, pi(o)), _(s, "second-level-flyout")))) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(zt, {
|
|
8928
|
+
content: pi(o),
|
|
8914
8929
|
customTrigger: g,
|
|
8915
8930
|
offsetValue: {
|
|
8916
8931
|
mainAxis: 8,
|
|
@@ -8918,14 +8933,14 @@ var Tr = {
|
|
|
8918
8933
|
},
|
|
8919
8934
|
preferredPlacement: "right"
|
|
8920
8935
|
}) : g));
|
|
8921
|
-
},
|
|
8936
|
+
}, Ei = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
8922
8937
|
submenu: "submenu",
|
|
8923
8938
|
toggle: "Toggle"
|
|
8924
8939
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
8925
8940
|
let c = "pds-side-nav-global", u = r ? `${c}--collapsed` : `${c}--expanded`, [d, f] = h({});
|
|
8926
8941
|
l(() => {
|
|
8927
8942
|
f((e) => Object.keys(e).length ? {} : e);
|
|
8928
|
-
}, [
|
|
8943
|
+
}, [gi(a)]);
|
|
8929
8944
|
let p = (e, t) => t in d ? d[t] : e, m = (e, t) => {
|
|
8930
8945
|
f((n) => {
|
|
8931
8946
|
let r = t in n ? n[t] : e;
|
|
@@ -8946,8 +8961,8 @@ var Tr = {
|
|
|
8946
8961
|
className: `${c}__section-label`,
|
|
8947
8962
|
role: "presentation"
|
|
8948
8963
|
}, t.label);
|
|
8949
|
-
let a =
|
|
8950
|
-
return /* @__PURE__ */ e.createElement(
|
|
8964
|
+
let a = hi(t);
|
|
8965
|
+
return /* @__PURE__ */ e.createElement(Ti, {
|
|
8951
8966
|
key: n,
|
|
8952
8967
|
icon: t.icon,
|
|
8953
8968
|
isActive: a,
|
|
@@ -8969,7 +8984,7 @@ var Tr = {
|
|
|
8969
8984
|
]),
|
|
8970
8985
|
...s
|
|
8971
8986
|
}, g);
|
|
8972
|
-
},
|
|
8987
|
+
}, Di = ({ items: t, label: n }) => {
|
|
8973
8988
|
let r = m(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = _n({
|
|
8974
8989
|
offsetValue: 8,
|
|
8975
8990
|
openOnHover: !Nt()
|
|
@@ -9006,7 +9021,7 @@ var Tr = {
|
|
|
9006
9021
|
key: n,
|
|
9007
9022
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9008
9023
|
}, !t.isSeparator && t.linkContent)))));
|
|
9009
|
-
},
|
|
9024
|
+
}, Oi = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9010
9025
|
let [a, o] = h(null), [s, c] = h(-1), [d, f] = h(null), [p, g] = h({
|
|
9011
9026
|
container: null,
|
|
9012
9027
|
containerChildren: []
|
|
@@ -9053,7 +9068,7 @@ var Tr = {
|
|
|
9053
9068
|
},
|
|
9054
9069
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9055
9070
|
id: i
|
|
9056
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9071
|
+
}, /* @__PURE__ */ e.createElement(Di, {
|
|
9057
9072
|
items: t.links,
|
|
9058
9073
|
label: t.label
|
|
9059
9074
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9072,14 +9087,14 @@ var Tr = {
|
|
|
9072
9087
|
},
|
|
9073
9088
|
...i
|
|
9074
9089
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9075
|
-
},
|
|
9090
|
+
}, ki = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9076
9091
|
let [s, c] = h(i), [u, d] = h(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, g = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: S, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setActiveIndex: O, transitionStyles: k } = _n({
|
|
9077
9092
|
offsetValue: 8,
|
|
9078
9093
|
placement: "bottom-start",
|
|
9079
9094
|
role: "listbox"
|
|
9080
9095
|
}), A = (e) => {
|
|
9081
9096
|
e.preventDefault(), e.key === "Enter" && E.current[v].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && f && document.getElementById("links-filter").focus();
|
|
9082
|
-
}, j = (e, t) =>
|
|
9097
|
+
}, j = (e, t) => pi(e.linkContent).toLowerCase().includes(t.toLowerCase()), M = (e) => {
|
|
9083
9098
|
let t = e.target.value;
|
|
9084
9099
|
d(t), c(i.filter((e) => j(e, t)));
|
|
9085
9100
|
};
|
|
@@ -9090,11 +9105,11 @@ var Tr = {
|
|
|
9090
9105
|
d(""), c(i);
|
|
9091
9106
|
}, P = {
|
|
9092
9107
|
minWidth: "13rem",
|
|
9093
|
-
width: `${
|
|
9108
|
+
width: `${pi(i.reduce((e, t) => pi(e.linkContent).length > pi(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
9094
9109
|
}, F = /* @__PURE__ */ e.createElement(Q, {
|
|
9095
9110
|
className: `${p}__active-icon`,
|
|
9096
9111
|
iconName: "check"
|
|
9097
|
-
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9112
|
+
}), I = f && /* @__PURE__ */ e.createElement("div", { className: `${p}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9098
9113
|
hasClearButton: !0,
|
|
9099
9114
|
autoComplete: "off",
|
|
9100
9115
|
id: "links-filter",
|
|
@@ -9137,9 +9152,9 @@ var Tr = {
|
|
|
9137
9152
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9138
9153
|
} })
|
|
9139
9154
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([m, g]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : L)))));
|
|
9140
|
-
},
|
|
9155
|
+
}, Ai = ({ ariaLabel: t, className: r, menuItems: i, ...a }) => {
|
|
9141
9156
|
let s = "pds-tab-menu", c = ({ dropdownSettings: t, icon: r, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9142
|
-
let u = `${s}__item`, d =
|
|
9157
|
+
let u = `${s}__item`, d = fi(c);
|
|
9143
9158
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, r) => {
|
|
9144
9159
|
let i = null;
|
|
9145
9160
|
return o(t) && (i = r ? n(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -9150,7 +9165,7 @@ var Tr = {
|
|
|
9150
9165
|
iconName: r,
|
|
9151
9166
|
size: "m"
|
|
9152
9167
|
}), t.props.children)] })) : t), i;
|
|
9153
|
-
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(
|
|
9168
|
+
})(l ? d : a, r), c && /* @__PURE__ */ e.createElement(ki, {
|
|
9154
9169
|
buttonLabel: t?.buttonLabel,
|
|
9155
9170
|
filterLabel: t?.filterLabel,
|
|
9156
9171
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9162,7 +9177,7 @@ var Tr = {
|
|
|
9162
9177
|
key: n,
|
|
9163
9178
|
dropdownSettings: t.dropdownSettings,
|
|
9164
9179
|
icon: t.icon,
|
|
9165
|
-
isActive:
|
|
9180
|
+
isActive: hi(t),
|
|
9166
9181
|
linkContent: t.linkContent,
|
|
9167
9182
|
links: t.links,
|
|
9168
9183
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -9172,11 +9187,11 @@ var Tr = {
|
|
|
9172
9187
|
className: Z([s, r ?? ""]),
|
|
9173
9188
|
...a
|
|
9174
9189
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__mobile-menu-wrapper` }, l));
|
|
9175
|
-
},
|
|
9190
|
+
}, ji = {
|
|
9176
9191
|
2: "second",
|
|
9177
9192
|
3: "third",
|
|
9178
9193
|
4: "fourth"
|
|
9179
|
-
},
|
|
9194
|
+
}, Mi = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9180
9195
|
submenu: "submenu",
|
|
9181
9196
|
toggle: "Toggle"
|
|
9182
9197
|
}, menuItems: a, ...o }) => {
|
|
@@ -9296,7 +9311,7 @@ var Tr = {
|
|
|
9296
9311
|
display: "none"
|
|
9297
9312
|
}), b();
|
|
9298
9313
|
}, j = (t, n, r) => {
|
|
9299
|
-
let a =
|
|
9314
|
+
let a = ji[t], o = `${u}--${a}-level`, l = `${c}--${a}-level`, d = t + 1, f = hi(n);
|
|
9300
9315
|
if (_.current && n.path) {
|
|
9301
9316
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9302
9317
|
if (e) {
|
|
@@ -9313,7 +9328,7 @@ var Tr = {
|
|
|
9313
9328
|
iconName: "angleDown",
|
|
9314
9329
|
size: "s",
|
|
9315
9330
|
verticalAlign: "-0.0625rem"
|
|
9316
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
9331
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${pi(n.linkContent)} ${i.submenu}`)), vi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
|
|
9317
9332
|
className: Z([
|
|
9318
9333
|
u,
|
|
9319
9334
|
o,
|
|
@@ -9321,7 +9336,7 @@ var Tr = {
|
|
|
9321
9336
|
]),
|
|
9322
9337
|
role: "group"
|
|
9323
9338
|
}, n.links.map((t, n) => {
|
|
9324
|
-
let r =
|
|
9339
|
+
let r = hi(t);
|
|
9325
9340
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9326
9341
|
key: `${n}-${a}`,
|
|
9327
9342
|
"aria-expanded": t.links ? r : void 0,
|
|
@@ -9333,10 +9348,10 @@ var Tr = {
|
|
|
9333
9348
|
]),
|
|
9334
9349
|
"data-item-path": t.path || "",
|
|
9335
9350
|
role: "treeitem"
|
|
9336
|
-
}, t.links && d in
|
|
9351
|
+
}, t.links && d in ji ? j(d, t, t.links) : t.linkContent);
|
|
9337
9352
|
})));
|
|
9338
9353
|
}, M = (t, n) => {
|
|
9339
|
-
let { linkContent: r, links: i } = t, a =
|
|
9354
|
+
let { linkContent: r, links: i } = t, a = hi(t);
|
|
9340
9355
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9341
9356
|
key: n,
|
|
9342
9357
|
"aria-expanded": i ? a : void 0,
|
|
@@ -9365,11 +9380,11 @@ var Tr = {
|
|
|
9365
9380
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9366
9381
|
role: "tree"
|
|
9367
9382
|
}, a.map((e, t) => M(e, t))));
|
|
9368
|
-
},
|
|
9383
|
+
}, Ni = {
|
|
9369
9384
|
light: "sunBright",
|
|
9370
9385
|
dark: "moon",
|
|
9371
9386
|
system: "circleHalfStroke"
|
|
9372
|
-
},
|
|
9387
|
+
}, Pi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9373
9388
|
light: "Light",
|
|
9374
9389
|
dark: "Dark",
|
|
9375
9390
|
system: "System"
|
|
@@ -9381,7 +9396,7 @@ var Tr = {
|
|
|
9381
9396
|
];
|
|
9382
9397
|
if (s === "toggle") {
|
|
9383
9398
|
let s = d.map((e) => ({
|
|
9384
|
-
iconName:
|
|
9399
|
+
iconName: Ni[e],
|
|
9385
9400
|
label: r[e],
|
|
9386
9401
|
value: e
|
|
9387
9402
|
}));
|
|
@@ -9400,7 +9415,7 @@ var Tr = {
|
|
|
9400
9415
|
}
|
|
9401
9416
|
let f = d.map((e) => ({
|
|
9402
9417
|
callback: () => i?.(e),
|
|
9403
|
-
iconName:
|
|
9418
|
+
iconName: Ni[e],
|
|
9404
9419
|
iconSize: "m",
|
|
9405
9420
|
label: r[e]
|
|
9406
9421
|
}));
|
|
@@ -9412,7 +9427,7 @@ var Tr = {
|
|
|
9412
9427
|
customTrigger: /* @__PURE__ */ e.createElement(Rn, {
|
|
9413
9428
|
iconOnly: !0,
|
|
9414
9429
|
"aria-label": u,
|
|
9415
|
-
iconName:
|
|
9430
|
+
iconName: Ni[o],
|
|
9416
9431
|
id: n,
|
|
9417
9432
|
label: "",
|
|
9418
9433
|
menuItems: f,
|
|
@@ -9421,7 +9436,7 @@ var Tr = {
|
|
|
9421
9436
|
offsetValue: 0,
|
|
9422
9437
|
preferredPlacement: "top"
|
|
9423
9438
|
}));
|
|
9424
|
-
},
|
|
9439
|
+
}, Fi = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: d, ...f }) => {
|
|
9425
9440
|
let [p, g] = h(null), [_, v] = h(!1), y = m([]), b = m([]), S = u(), E = "pds-user-menu", O = `${E}__menu`, { context: M, floatingStyles: N, refs: P } = j({
|
|
9426
9441
|
placement: "bottom-end",
|
|
9427
9442
|
open: _,
|
|
@@ -9431,7 +9446,8 @@ var Tr = {
|
|
|
9431
9446
|
w(),
|
|
9432
9447
|
D()
|
|
9433
9448
|
],
|
|
9434
|
-
whileElementsMounted: C
|
|
9449
|
+
whileElementsMounted: C,
|
|
9450
|
+
strategy: "fixed"
|
|
9435
9451
|
}), z = k(M, { event: "mousedown" }), B = A(M), V = L(M, { role: "menu" }), H = m([]), { getFloatingProps: U, getItemProps: ee, getReferenceProps: W } = F([
|
|
9436
9452
|
B,
|
|
9437
9453
|
V,
|
|
@@ -9465,7 +9481,7 @@ var Tr = {
|
|
|
9465
9481
|
}, /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, c)), re = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9466
9482
|
className: `${E}__theme-row`,
|
|
9467
9483
|
role: "presentation"
|
|
9468
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(
|
|
9484
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(Pi, {
|
|
9469
9485
|
id: `${S}-theme`,
|
|
9470
9486
|
labelStrings: s,
|
|
9471
9487
|
onChange: i,
|
|
@@ -9544,7 +9560,7 @@ var Tr = {
|
|
|
9544
9560
|
className: O,
|
|
9545
9561
|
role: "menu"
|
|
9546
9562
|
}, ne, /* @__PURE__ */ e.createElement("li", { role: "separator" }), re, oe)))));
|
|
9547
|
-
},
|
|
9563
|
+
}, Ii = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
9548
9564
|
let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", S = `${b}__menu`, C = y ? `${S}--scroll` : null, { activeIndex: w, floatingStyles: T, getFloatingProps: E, getItemProps: D, getReferenceProps: O, isMounted: k, listRef: A, refs: j, setIsOpen: M, transitionStyles: N } = _n({
|
|
9549
9565
|
enableTypeahead: !y,
|
|
9550
9566
|
role: "menu"
|
|
@@ -9631,7 +9647,7 @@ var Tr = {
|
|
|
9631
9647
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9632
9648
|
className: Z([b, n]),
|
|
9633
9649
|
...u
|
|
9634
|
-
}, /* @__PURE__ */ e.createElement(An, { label: H }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9650
|
+
}, /* @__PURE__ */ e.createElement(An, { label: H }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9635
9651
|
hasClearButton: !0,
|
|
9636
9652
|
id: "workspace-filter-mobile",
|
|
9637
9653
|
label: i,
|
|
@@ -9668,7 +9684,7 @@ var Tr = {
|
|
|
9668
9684
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9669
9685
|
},
|
|
9670
9686
|
...E()
|
|
9671
|
-
}, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9687
|
+
}, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
|
|
9672
9688
|
hasClearButton: !0,
|
|
9673
9689
|
id: "workspace-filter",
|
|
9674
9690
|
label: i,
|
|
@@ -9684,12 +9700,12 @@ var Tr = {
|
|
|
9684
9700
|
className: `pds-dropdown__heading ${b}__item-heading`,
|
|
9685
9701
|
role: "presentation"
|
|
9686
9702
|
}, o), z.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : z), V)));
|
|
9687
|
-
},
|
|
9703
|
+
}, Li = {
|
|
9688
9704
|
info: "circleInfo",
|
|
9689
9705
|
warning: "triangleExclamation",
|
|
9690
9706
|
critical: "diamondExclamation",
|
|
9691
9707
|
discovery: "bullhorn"
|
|
9692
|
-
},
|
|
9708
|
+
}, Ri = 200, zi = 50, Bi = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9693
9709
|
...jn,
|
|
9694
9710
|
neutral: "Notice"
|
|
9695
9711
|
}, ...c }) => {
|
|
@@ -9708,21 +9724,21 @@ var Tr = {
|
|
|
9708
9724
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9709
9725
|
m(d[0].id), setTimeout(() => {
|
|
9710
9726
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9711
|
-
},
|
|
9727
|
+
}, Ri);
|
|
9712
9728
|
}, k = () => {
|
|
9713
9729
|
y({
|
|
9714
9730
|
[d[0].id]: 502,
|
|
9715
9731
|
[d[b - 1].id]: 501
|
|
9716
9732
|
}), setTimeout(() => {
|
|
9717
9733
|
m(d[0].id);
|
|
9718
|
-
},
|
|
9734
|
+
}, zi), setTimeout(() => {
|
|
9719
9735
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9720
|
-
},
|
|
9736
|
+
}, Ri);
|
|
9721
9737
|
}, A = (t, n) => {
|
|
9722
9738
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: l, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, y = (e) => {
|
|
9723
9739
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9724
9740
|
l?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9725
|
-
},
|
|
9741
|
+
}, Ri);
|
|
9726
9742
|
}, b = v[a] ?? E(n);
|
|
9727
9743
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9728
9744
|
key: a,
|
|
@@ -9737,7 +9753,7 @@ var Tr = {
|
|
|
9737
9753
|
style: { zIndex: b }
|
|
9738
9754
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9739
9755
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9740
|
-
iconName: d === "neutral" ? r :
|
|
9756
|
+
iconName: d === "neutral" ? r : Li[d],
|
|
9741
9757
|
size: u ? "l" : "m"
|
|
9742
9758
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9743
9759
|
className: `${x}__dismiss-button`,
|
|
@@ -9768,12 +9784,12 @@ var Tr = {
|
|
|
9768
9784
|
onClick: O,
|
|
9769
9785
|
size: "m"
|
|
9770
9786
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
9771
|
-
},
|
|
9787
|
+
}, Vi = {
|
|
9772
9788
|
info: "circleInfo",
|
|
9773
9789
|
warning: "triangleExclamation",
|
|
9774
9790
|
success: "circleCheck",
|
|
9775
9791
|
critical: "diamondExclamation"
|
|
9776
|
-
},
|
|
9792
|
+
}, Hi = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
9777
9793
|
...jn,
|
|
9778
9794
|
working: "Working"
|
|
9779
9795
|
}, ...o }) => {
|
|
@@ -9794,16 +9810,16 @@ var Tr = {
|
|
|
9794
9810
|
role: l,
|
|
9795
9811
|
...o
|
|
9796
9812
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "m" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9797
|
-
iconName: `${i}` in
|
|
9813
|
+
iconName: `${i}` in Vi ? Vi[i] : Vi.info,
|
|
9798
9814
|
size: "m"
|
|
9799
9815
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
9800
|
-
},
|
|
9816
|
+
}, Ui = {
|
|
9801
9817
|
info: "circleInfo",
|
|
9802
9818
|
warning: "triangleExclamation",
|
|
9803
9819
|
success: "circleCheck",
|
|
9804
9820
|
critical: "diamondExclamation",
|
|
9805
9821
|
discovery: "squareQuestion"
|
|
9806
|
-
},
|
|
9822
|
+
}, Wi = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: u, type: d = "info", typeLabels: f = jn, ...p }) => {
|
|
9807
9823
|
let h = r === "marketing", g = m(null), _ = m(void 0), v = "pds-section-message", y = {
|
|
9808
9824
|
error: `${v}--error`,
|
|
9809
9825
|
success: `${v}--success`,
|
|
@@ -9840,7 +9856,7 @@ var Tr = {
|
|
|
9840
9856
|
role: S,
|
|
9841
9857
|
...p
|
|
9842
9858
|
}, /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9843
|
-
iconName: `${d}` in
|
|
9859
|
+
iconName: `${d}` in Ui ? Ui[d] : Ui.info,
|
|
9844
9860
|
size: h ? "xl" : "l"
|
|
9845
9861
|
})), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), u && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, u), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, w))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${v}__actions` }, n && /* @__PURE__ */ e.createElement(un, {
|
|
9846
9862
|
...n,
|
|
@@ -9853,10 +9869,10 @@ var Tr = {
|
|
|
9853
9869
|
onClick: D,
|
|
9854
9870
|
size: h ? "l" : "m"
|
|
9855
9871
|
})));
|
|
9856
|
-
},
|
|
9872
|
+
}, Gi = 3e4, Ki = {
|
|
9857
9873
|
pause: "Pause notification",
|
|
9858
9874
|
resume: "Resume notification"
|
|
9859
|
-
},
|
|
9875
|
+
}, qi = r({ labelStrings: Ki }), Ji = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(hn, {
|
|
9860
9876
|
ariaLabel: t || "Close",
|
|
9861
9877
|
className: "pds-toast__close-button",
|
|
9862
9878
|
onClick: (e) => {
|
|
@@ -9864,13 +9880,13 @@ var Tr = {
|
|
|
9864
9880
|
},
|
|
9865
9881
|
size: "s",
|
|
9866
9882
|
tabIndex: 0
|
|
9867
|
-
}),
|
|
9883
|
+
}), Yi = ({ className: t, labelStrings: n = Ki, limit: r = 5, position: i = "bottom-right" }) => {
|
|
9868
9884
|
let a = Z(["pds-toaster", t]);
|
|
9869
|
-
return /* @__PURE__ */ e.createElement(
|
|
9885
|
+
return /* @__PURE__ */ e.createElement(qi.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(Ce, {
|
|
9870
9886
|
newestOnTop: !0,
|
|
9871
9887
|
autoClose: !1,
|
|
9872
9888
|
className: a,
|
|
9873
|
-
closeButton:
|
|
9889
|
+
closeButton: Ji,
|
|
9874
9890
|
draggable: !1,
|
|
9875
9891
|
icon: !1,
|
|
9876
9892
|
limit: r,
|
|
@@ -9880,25 +9896,25 @@ var Tr = {
|
|
|
9880
9896
|
role: "status",
|
|
9881
9897
|
transition: Se
|
|
9882
9898
|
}));
|
|
9883
|
-
},
|
|
9899
|
+
}, Xi = {
|
|
9884
9900
|
info: "circleInfo",
|
|
9885
9901
|
success: "circleCheck",
|
|
9886
9902
|
warning: "triangleExclamation",
|
|
9887
9903
|
critical: "diamondExclamation"
|
|
9888
|
-
},
|
|
9904
|
+
}, Zi = {
|
|
9889
9905
|
info: "Information",
|
|
9890
9906
|
success: "Success",
|
|
9891
9907
|
warning: "Warning",
|
|
9892
9908
|
critical: "Critical",
|
|
9893
9909
|
working: "Working..."
|
|
9894
|
-
},
|
|
9910
|
+
}, Qi = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Zi }) => {
|
|
9895
9911
|
let l = "pds-toast", u = {
|
|
9896
9912
|
critical: `${l}--critical`,
|
|
9897
9913
|
info: `${l}--info`,
|
|
9898
9914
|
success: `${l}--success`,
|
|
9899
9915
|
warning: `${l}--warning`,
|
|
9900
9916
|
working: `${l}--working`
|
|
9901
|
-
}, d = `${s[o]} `, { labelStrings: f } = c(
|
|
9917
|
+
}, d = `${s[o]} `, { labelStrings: f } = c(qi), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
9902
9918
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9903
9919
|
className: Z([
|
|
9904
9920
|
l,
|
|
@@ -9908,7 +9924,7 @@ var Tr = {
|
|
|
9908
9924
|
id: i
|
|
9909
9925
|
}, /* @__PURE__ */ e.createElement("div", { className: `${l}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(nn, { size: "xl" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
9910
9926
|
className: `${l}__icon ${l}__icon--${o}`,
|
|
9911
|
-
iconName:
|
|
9927
|
+
iconName: Xi[o],
|
|
9912
9928
|
size: "l"
|
|
9913
9929
|
})), /* @__PURE__ */ e.createElement("div", { className: `${l}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
9914
9930
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -9923,11 +9939,11 @@ var Tr = {
|
|
|
9923
9939
|
iconName: p ? "play" : "pause",
|
|
9924
9940
|
size: "m"
|
|
9925
9941
|
})));
|
|
9926
|
-
},
|
|
9942
|
+
}, $i = /* @__PURE__ */ function(e) {
|
|
9927
9943
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
9928
|
-
}({}),
|
|
9944
|
+
}({}), ea = () => [
|
|
9929
9945
|
(t, n, r = {}) => {
|
|
9930
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
9946
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(Gi, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Qi, {
|
|
9931
9947
|
autoCloseDuration: a || void 0,
|
|
9932
9948
|
toastId: i,
|
|
9933
9949
|
type: t
|
|
@@ -9952,7 +9968,7 @@ var Tr = {
|
|
|
9952
9968
|
enter: "pds-toast--bounceInPlace",
|
|
9953
9969
|
exit: "pds-toast--slideOut"
|
|
9954
9970
|
})
|
|
9955
|
-
],
|
|
9971
|
+
], ta = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: c = !1, placement: u = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: g, ..._ }) => {
|
|
9956
9972
|
let v = Xe(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = g ? null : `${x}--${f}`, C = `${x}--${u}`, w = g ? { width: g } : void 0, [T, E] = h(c), [D, O] = h(!1), k = m(null), { closeOverlay: A, openOverlay: j } = Lt();
|
|
9957
9973
|
l(() => {
|
|
9958
9974
|
c ? E(!0) : O(!1);
|
|
@@ -10017,7 +10033,7 @@ var Tr = {
|
|
|
10017
10033
|
onClick: M,
|
|
10018
10034
|
size: "m"
|
|
10019
10035
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10020
|
-
},
|
|
10036
|
+
}, na = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: u, ...d }) => {
|
|
10021
10037
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = Lt();
|
|
10022
10038
|
l(() => {
|
|
10023
10039
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10082,7 +10098,7 @@ var Tr = {
|
|
|
10082
10098
|
}),
|
|
10083
10099
|
zIndex: 9999
|
|
10084
10100
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10085
|
-
},
|
|
10101
|
+
}, ra = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: u = () => {}, size: d = "m", title: f, ...p }) => {
|
|
10086
10102
|
let m = Xe(n), g = m.__unslotted, _ = m.footer, v = "pds-modal", x = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10087
10103
|
maxHeight: a,
|
|
10088
10104
|
paddingInlineEnd: "1rem",
|
|
@@ -10158,27 +10174,27 @@ var Tr = {
|
|
|
10158
10174
|
className: `${v}__content`,
|
|
10159
10175
|
style: S
|
|
10160
10176
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10161
|
-
},
|
|
10177
|
+
}, ia = (e, t) => {
|
|
10162
10178
|
let n = t - e + 1;
|
|
10163
10179
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10164
|
-
},
|
|
10180
|
+
}, aa = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
10165
10181
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10166
|
-
if (a >= i) return
|
|
10182
|
+
if (a >= i) return ia(1, i);
|
|
10167
10183
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10168
10184
|
if (!l && u) return [
|
|
10169
|
-
...
|
|
10185
|
+
...ia(1, 3 + 2 * e),
|
|
10170
10186
|
"...",
|
|
10171
10187
|
i
|
|
10172
10188
|
];
|
|
10173
10189
|
if (l && !u) return [
|
|
10174
10190
|
1,
|
|
10175
10191
|
"...",
|
|
10176
|
-
...
|
|
10192
|
+
...ia(i - (3 + 2 * e) + 1, i)
|
|
10177
10193
|
];
|
|
10178
10194
|
if (l && u) return [
|
|
10179
10195
|
1,
|
|
10180
10196
|
"...",
|
|
10181
|
-
...
|
|
10197
|
+
...ia(s, c),
|
|
10182
10198
|
"...",
|
|
10183
10199
|
o
|
|
10184
10200
|
];
|
|
@@ -10187,11 +10203,11 @@ var Tr = {
|
|
|
10187
10203
|
n,
|
|
10188
10204
|
e,
|
|
10189
10205
|
t
|
|
10190
|
-
]),
|
|
10206
|
+
]), oa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10191
10207
|
previous: "Go to previous page",
|
|
10192
10208
|
next: "Go to next page"
|
|
10193
10209
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10194
|
-
let f =
|
|
10210
|
+
let f = aa({
|
|
10195
10211
|
currentPage: r,
|
|
10196
10212
|
totalItemCount: u,
|
|
10197
10213
|
bufferCount: t,
|
|
@@ -10245,52 +10261,132 @@ var Tr = {
|
|
|
10245
10261
|
size: "m"
|
|
10246
10262
|
}))
|
|
10247
10263
|
}))));
|
|
10248
|
-
},
|
|
10264
|
+
}, sa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10265
|
+
next: "Next",
|
|
10266
|
+
previous: "Previous"
|
|
10267
|
+
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
10268
|
+
let f = p(() => Math.ceil(u / a), [u, a]), m = n <= 1, h = n >= f, g = "pds-pagination-chapter";
|
|
10269
|
+
return /* @__PURE__ */ e.createElement("nav", {
|
|
10270
|
+
"aria-labelledby": "pagination-chapter",
|
|
10271
|
+
className: Z([g, t ?? ""]),
|
|
10272
|
+
...d
|
|
10273
|
+
}, /* @__PURE__ */ e.createElement(cn, {
|
|
10274
|
+
baseClass: g,
|
|
10275
|
+
className: "visually-hidden",
|
|
10276
|
+
id: "pagination-chapter",
|
|
10277
|
+
level: r
|
|
10278
|
+
}, i), !m && /* @__PURE__ */ e.createElement("button", {
|
|
10279
|
+
className: Z([`${g}__btn`, `${g}__btn--prev`]),
|
|
10280
|
+
onClick: () => c(n - 1),
|
|
10281
|
+
type: "button"
|
|
10282
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.previous), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10283
|
+
iconName: "angleLeft",
|
|
10284
|
+
size: "m"
|
|
10285
|
+
}), /* @__PURE__ */ e.createElement("span", null, l))), !h && /* @__PURE__ */ e.createElement("button", {
|
|
10286
|
+
className: Z([`${g}__btn`, `${g}__btn--next`]),
|
|
10287
|
+
onClick: () => c(n + 1),
|
|
10288
|
+
type: "button"
|
|
10289
|
+
}, /* @__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, {
|
|
10290
|
+
iconName: "angleRight",
|
|
10291
|
+
size: "m"
|
|
10292
|
+
}))));
|
|
10293
|
+
}, ca = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10249
10294
|
next: "Go to next page",
|
|
10250
10295
|
of: "of",
|
|
10296
|
+
page: "Page",
|
|
10297
|
+
pageInputError: "Enter a page between 1 and {total}.",
|
|
10251
10298
|
pageSelect: "Go to page",
|
|
10252
10299
|
previous: "Go to previous page"
|
|
10253
|
-
}, onPageChange: s,
|
|
10254
|
-
let
|
|
10300
|
+
}, onPageChange: s, pageControlType: c = "dropdown", totalItemCount: d, ...f }) => {
|
|
10301
|
+
let m = u(), g = p(() => Math.ceil(d / a), [d, a]), _ = p(() => Array.from({ length: g }, (e, t) => ({
|
|
10255
10302
|
label: String(t + 1),
|
|
10256
10303
|
value: String(t + 1)
|
|
10257
|
-
})), [
|
|
10304
|
+
})), [g]), v = n <= 1, y = n >= g, b = "pds-pagination-compact", [x, S] = h(String(n)), [C, w] = h(null);
|
|
10305
|
+
l(() => {
|
|
10306
|
+
S(String(n)), w(null);
|
|
10307
|
+
}, [n]);
|
|
10308
|
+
let T = Math.max(2, String(g).length) * 10 + 24, E = () => {
|
|
10309
|
+
let e = Number(x);
|
|
10310
|
+
if (!x || !Number.isInteger(e) || e < 1 || e > g) {
|
|
10311
|
+
w(o.pageInputError.replace("{total}", String(g)));
|
|
10312
|
+
return;
|
|
10313
|
+
}
|
|
10314
|
+
w(null), e !== n && s(e);
|
|
10315
|
+
}, D = (e) => {
|
|
10316
|
+
S(e.target.value.replace(/[^0-9]/g, "")), C && w(null);
|
|
10317
|
+
}, O = (e) => {
|
|
10318
|
+
e.key === "Enter" && (e.preventDefault(), E());
|
|
10319
|
+
};
|
|
10258
10320
|
return /* @__PURE__ */ e.createElement("nav", {
|
|
10259
10321
|
"aria-labelledby": "pagination-compact",
|
|
10260
|
-
className: Z([
|
|
10261
|
-
...
|
|
10322
|
+
className: Z([b, t ?? ""]),
|
|
10323
|
+
...f
|
|
10262
10324
|
}, /* @__PURE__ */ e.createElement(cn, {
|
|
10263
|
-
baseClass:
|
|
10325
|
+
baseClass: b,
|
|
10264
10326
|
className: "visually-hidden",
|
|
10265
10327
|
id: "pagination-compact",
|
|
10266
10328
|
level: r
|
|
10267
|
-
}, i), /* @__PURE__ */ e.createElement(
|
|
10329
|
+
}, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ti, {
|
|
10330
|
+
className: C ? `${b}__page-input--error` : void 0,
|
|
10331
|
+
id: m,
|
|
10332
|
+
inputProps: {
|
|
10333
|
+
"aria-invalid": C ? !0 : void 0,
|
|
10334
|
+
inputMode: "numeric",
|
|
10335
|
+
onKeyDown: O,
|
|
10336
|
+
pattern: "[0-9]*"
|
|
10337
|
+
},
|
|
10338
|
+
inputWidth: T,
|
|
10339
|
+
label: o.pageSelect,
|
|
10340
|
+
onBlur: () => E(),
|
|
10341
|
+
onChange: D,
|
|
10342
|
+
showLabel: !1,
|
|
10343
|
+
size: "s",
|
|
10344
|
+
value: x
|
|
10345
|
+
}), C && /* @__PURE__ */ e.createElement("span", {
|
|
10346
|
+
className: "visually-hidden",
|
|
10347
|
+
role: "alert"
|
|
10348
|
+
}, C)) : /* @__PURE__ */ e.createElement($n, {
|
|
10268
10349
|
autoWidth: !0,
|
|
10269
|
-
id:
|
|
10350
|
+
id: m,
|
|
10270
10351
|
label: o.pageSelect,
|
|
10271
10352
|
onOptionSelect: (e) => s(Number(e.value)),
|
|
10272
|
-
options:
|
|
10353
|
+
options: _,
|
|
10273
10354
|
showLabel: !1,
|
|
10355
|
+
showSelectedIcon: !1,
|
|
10274
10356
|
size: "s",
|
|
10275
10357
|
value: String(n)
|
|
10276
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
10358
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.of, " ", g), /* @__PURE__ */ e.createElement("div", { className: `${b}__nav` }, v ? /* @__PURE__ */ e.createElement("button", {
|
|
10359
|
+
disabled: !0,
|
|
10360
|
+
"aria-label": o.previous,
|
|
10361
|
+
className: Z([`${b}__btn`, `${b}__btn--disabled`]),
|
|
10362
|
+
type: "button"
|
|
10363
|
+
}, /* @__PURE__ */ e.createElement(Q, {
|
|
10364
|
+
iconName: "angleLeft",
|
|
10365
|
+
size: "m"
|
|
10366
|
+
})) : /* @__PURE__ */ e.createElement(zt, {
|
|
10277
10367
|
content: o.previous,
|
|
10278
10368
|
customTrigger: /* @__PURE__ */ e.createElement("button", {
|
|
10279
10369
|
"aria-label": o.previous,
|
|
10280
|
-
className:
|
|
10281
|
-
disabled: h,
|
|
10370
|
+
className: `${b}__btn`,
|
|
10282
10371
|
onClick: () => s(n - 1),
|
|
10283
10372
|
type: "button"
|
|
10284
10373
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
10285
10374
|
iconName: "angleLeft",
|
|
10286
10375
|
size: "m"
|
|
10287
10376
|
}))
|
|
10288
|
-
}), /* @__PURE__ */ e.createElement(
|
|
10377
|
+
}), y ? /* @__PURE__ */ e.createElement("button", {
|
|
10378
|
+
disabled: !0,
|
|
10379
|
+
"aria-label": o.next,
|
|
10380
|
+
className: Z([`${b}__btn`, `${b}__btn--disabled`]),
|
|
10381
|
+
type: "button"
|
|
10382
|
+
}, /* @__PURE__ */ e.createElement(Q, {
|
|
10383
|
+
iconName: "angleRight",
|
|
10384
|
+
size: "m"
|
|
10385
|
+
})) : /* @__PURE__ */ e.createElement(zt, {
|
|
10289
10386
|
content: o.next,
|
|
10290
10387
|
customTrigger: /* @__PURE__ */ e.createElement("button", {
|
|
10291
10388
|
"aria-label": o.next,
|
|
10292
|
-
className:
|
|
10293
|
-
disabled: g,
|
|
10389
|
+
className: `${b}__btn`,
|
|
10294
10390
|
onClick: () => s(n + 1),
|
|
10295
10391
|
type: "button"
|
|
10296
10392
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
@@ -10298,36 +10394,7 @@ var Tr = {
|
|
|
10298
10394
|
size: "m"
|
|
10299
10395
|
}))
|
|
10300
10396
|
})));
|
|
10301
|
-
},
|
|
10302
|
-
next: "Next",
|
|
10303
|
-
previous: "Previous"
|
|
10304
|
-
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
10305
|
-
let f = p(() => Math.ceil(u / a), [u, a]), m = n <= 1, h = n >= f, g = "pds-pagination-mini";
|
|
10306
|
-
return /* @__PURE__ */ e.createElement("nav", {
|
|
10307
|
-
"aria-labelledby": "pagination-mini",
|
|
10308
|
-
className: Z([g, t ?? ""]),
|
|
10309
|
-
...d
|
|
10310
|
-
}, /* @__PURE__ */ e.createElement(cn, {
|
|
10311
|
-
baseClass: g,
|
|
10312
|
-
className: "visually-hidden",
|
|
10313
|
-
id: "pagination-mini",
|
|
10314
|
-
level: r
|
|
10315
|
-
}, i), !m && /* @__PURE__ */ e.createElement("button", {
|
|
10316
|
-
className: Z([`${g}__btn`, `${g}__btn--prev`]),
|
|
10317
|
-
onClick: () => c(n - 1),
|
|
10318
|
-
type: "button"
|
|
10319
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.previous), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10320
|
-
iconName: "angleLeft",
|
|
10321
|
-
size: "m"
|
|
10322
|
-
}), /* @__PURE__ */ e.createElement("span", null, l))), !h && /* @__PURE__ */ e.createElement("button", {
|
|
10323
|
-
className: Z([`${g}__btn`, `${g}__btn--next`]),
|
|
10324
|
-
onClick: () => c(n + 1),
|
|
10325
|
-
type: "button"
|
|
10326
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${g}__label` }, o.next), /* @__PURE__ */ e.createElement("span", { className: `${g}__nav` }, /* @__PURE__ */ e.createElement("span", null, s), /* @__PURE__ */ e.createElement(Q, {
|
|
10327
|
-
iconName: "angleRight",
|
|
10328
|
-
size: "m"
|
|
10329
|
-
}))));
|
|
10330
|
-
}, ca = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10397
|
+
}, la = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10331
10398
|
let [c, d] = h(i), f = u(), p = r ?? `expansion-panel-${f}`, g = "pds-expansion-panel", _ = a ? null : `${g}--no-border`, v = m(null);
|
|
10332
10399
|
return l(() => {
|
|
10333
10400
|
let e = v.current;
|
|
@@ -10351,7 +10418,7 @@ var Tr = {
|
|
|
10351
10418
|
className: `${g}__icon ${c ? "rotated" : ""}`,
|
|
10352
10419
|
iconName: "angleDown"
|
|
10353
10420
|
})), /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t)));
|
|
10354
|
-
},
|
|
10421
|
+
}, ua = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10355
10422
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10356
10423
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10357
10424
|
className: Z([
|
|
@@ -10361,7 +10428,7 @@ var Tr = {
|
|
|
10361
10428
|
]),
|
|
10362
10429
|
...i
|
|
10363
10430
|
}, t);
|
|
10364
|
-
},
|
|
10431
|
+
}, da = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10365
10432
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10366
10433
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10367
10434
|
className: Z([
|
|
@@ -10371,7 +10438,7 @@ var Tr = {
|
|
|
10371
10438
|
]),
|
|
10372
10439
|
...a
|
|
10373
10440
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10374
|
-
},
|
|
10441
|
+
}, fa = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10375
10442
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10376
10443
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10377
10444
|
className: Z([
|
|
@@ -10383,7 +10450,7 @@ var Tr = {
|
|
|
10383
10450
|
]),
|
|
10384
10451
|
...o
|
|
10385
10452
|
}, n);
|
|
10386
|
-
},
|
|
10453
|
+
}, pa = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10387
10454
|
let o = "pds-panel-row", [s, c] = h(!1), l = Xe(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
|
|
10388
10455
|
c((e) => !e);
|
|
10389
10456
|
};
|
|
@@ -10414,7 +10481,10 @@ var Tr = {
|
|
|
10414
10481
|
opacity: "0"
|
|
10415
10482
|
}
|
|
10416
10483
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10417
|
-
},
|
|
10484
|
+
}, ma = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10485
|
+
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10486
|
+
...r
|
|
10487
|
+
}, t), ha = /* @__PURE__ */ e.createElement("svg", {
|
|
10418
10488
|
"aria-label": "Pantheon",
|
|
10419
10489
|
fill: "none",
|
|
10420
10490
|
focusable: "false",
|
|
@@ -10476,7 +10546,7 @@ var Tr = {
|
|
|
10476
10546
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10477
10547
|
d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
|
|
10478
10548
|
fill: "var(--pds-color-foreground-default)"
|
|
10479
|
-
})),
|
|
10549
|
+
})), ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10480
10550
|
"aria-label": "Pantheon",
|
|
10481
10551
|
fill: "none",
|
|
10482
10552
|
focusable: "false",
|
|
@@ -10511,7 +10581,7 @@ var Tr = {
|
|
|
10511
10581
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10512
10582
|
d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
|
|
10513
10583
|
fill: "var(--pds-color-foreground-default)"
|
|
10514
|
-
})),
|
|
10584
|
+
})), _a = /* @__PURE__ */ e.createElement("svg", {
|
|
10515
10585
|
"aria-label": "Pantheon",
|
|
10516
10586
|
fill: "none",
|
|
10517
10587
|
focusable: "false",
|
|
@@ -10546,17 +10616,17 @@ var Tr = {
|
|
|
10546
10616
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10547
10617
|
d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
|
|
10548
10618
|
fill: "var(--pds-color-foreground-default)"
|
|
10549
|
-
})),
|
|
10619
|
+
})), va = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...s }) => {
|
|
10550
10620
|
let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
|
|
10551
10621
|
switch (r) {
|
|
10552
10622
|
case "full":
|
|
10553
|
-
f =
|
|
10623
|
+
f = ha;
|
|
10554
10624
|
break;
|
|
10555
10625
|
case "icon":
|
|
10556
|
-
f =
|
|
10626
|
+
f = ga;
|
|
10557
10627
|
break;
|
|
10558
10628
|
case "wordmark":
|
|
10559
|
-
f =
|
|
10629
|
+
f = _a;
|
|
10560
10630
|
break;
|
|
10561
10631
|
}
|
|
10562
10632
|
let p = o(i) && typeof i.props.children == "string" ? i.props.children : "", m = o(i) ? i.type : null, h = o(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
@@ -10573,7 +10643,7 @@ var Tr = {
|
|
|
10573
10643
|
]),
|
|
10574
10644
|
...s
|
|
10575
10645
|
}, i ? h : f);
|
|
10576
|
-
},
|
|
10646
|
+
}, ya = 8, ba = 14, xa = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: u = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: g = "Show more information", triggerIcon: _ = "circleInfo", triggerIconSize: b = "m", ...E }) => {
|
|
10577
10647
|
let [O, M] = h(d);
|
|
10578
10648
|
l(() => {
|
|
10579
10649
|
M(d);
|
|
@@ -10592,19 +10662,20 @@ var Tr = {
|
|
|
10592
10662
|
D({ padding: 8 }),
|
|
10593
10663
|
S({ element: B })
|
|
10594
10664
|
],
|
|
10595
|
-
whileElementsMounted: C
|
|
10665
|
+
whileElementsMounted: C,
|
|
10666
|
+
strategy: "fixed"
|
|
10596
10667
|
}), W = () => {
|
|
10597
10668
|
M(!1), c && c();
|
|
10598
10669
|
}, { getFloatingProps: G, getReferenceProps: te } = F([
|
|
10599
10670
|
k(V),
|
|
10600
10671
|
A(V),
|
|
10601
10672
|
L(V)
|
|
10602
|
-
]), K = U.arrow?.x ?? 0, ne = U.arrow?.y ?? 0, re = K +
|
|
10673
|
+
]), K = U.arrow?.x ?? 0, ne = U.arrow?.y ?? 0, re = K + ba / 2, ie = ne + ya, { isMounted: q } = R(V, {
|
|
10603
10674
|
initial: { transform: "scale(0)" },
|
|
10604
10675
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10605
|
-
top: `${re}px calc(100% + ${
|
|
10676
|
+
top: `${re}px calc(100% + ${ya}px)`,
|
|
10606
10677
|
bottom: `${re}px -8px`,
|
|
10607
|
-
left: `calc(100% + ${
|
|
10678
|
+
left: `calc(100% + ${ya}px) ${ie}px`,
|
|
10608
10679
|
right: `-8px ${ie}px`
|
|
10609
10680
|
}[e] })
|
|
10610
10681
|
});
|
|
@@ -10636,23 +10707,23 @@ var Tr = {
|
|
|
10636
10707
|
className: `${P}__arrow`,
|
|
10637
10708
|
context: V,
|
|
10638
10709
|
fill: "var(--pds-color-surface-default)",
|
|
10639
|
-
height:
|
|
10710
|
+
height: ya,
|
|
10640
10711
|
stroke: "var(--pds-color-popover-border)",
|
|
10641
10712
|
strokeWidth: 1,
|
|
10642
10713
|
tipRadius: 0,
|
|
10643
|
-
width:
|
|
10714
|
+
width: ba
|
|
10644
10715
|
}), /* @__PURE__ */ e.createElement("div", { className: `${P}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${P}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${P}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${P}__close-wrapper` }, /* @__PURE__ */ e.createElement(hn, {
|
|
10645
10716
|
ariaLabel: r,
|
|
10646
10717
|
onClick: W,
|
|
10647
10718
|
size: "s"
|
|
10648
10719
|
})))))));
|
|
10649
|
-
},
|
|
10720
|
+
}, Sa = {
|
|
10650
10721
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10651
10722
|
info: "--pds-color-status-info-fill",
|
|
10652
10723
|
success: "--pds-color-status-success-fill",
|
|
10653
10724
|
warning: "--pds-color-status-warning-fill",
|
|
10654
10725
|
critical: "--pds-color-status-critical-fill"
|
|
10655
|
-
},
|
|
10726
|
+
}, Ca = ({ className: t, colorBreakpoints: n = [{
|
|
10656
10727
|
colorType: "info",
|
|
10657
10728
|
percentage: 0
|
|
10658
10729
|
}, {
|
|
@@ -10673,7 +10744,7 @@ var Tr = {
|
|
|
10673
10744
|
id: m
|
|
10674
10745
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10675
10746
|
className: `${h}__percentage`,
|
|
10676
|
-
style: { color: `hsl(from var(${
|
|
10747
|
+
style: { color: `hsl(from var(${Sa[y]}) h s calc(l - 7))` }
|
|
10677
10748
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10678
10749
|
"aria-labelledby": m,
|
|
10679
10750
|
"aria-valuenow": v,
|
|
@@ -10683,16 +10754,16 @@ var Tr = {
|
|
|
10683
10754
|
className: `${h}__bar`,
|
|
10684
10755
|
style: {
|
|
10685
10756
|
width: `${v}%`,
|
|
10686
|
-
backgroundColor: `var(${
|
|
10757
|
+
backgroundColor: `var(${Sa[y]})`
|
|
10687
10758
|
}
|
|
10688
10759
|
}))), S && b);
|
|
10689
|
-
},
|
|
10760
|
+
}, wa = {
|
|
10690
10761
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10691
10762
|
info: "--pds-color-status-info-fill",
|
|
10692
10763
|
success: "--pds-color-status-success-fill",
|
|
10693
10764
|
warning: "--pds-color-status-warning-fill",
|
|
10694
10765
|
critical: "--pds-color-status-critical-fill"
|
|
10695
|
-
},
|
|
10766
|
+
}, Ta = ({ className: t, colorBreakpoints: n = [{
|
|
10696
10767
|
colorType: "info",
|
|
10697
10768
|
percentage: 0
|
|
10698
10769
|
}, {
|
|
@@ -10741,7 +10812,7 @@ var Tr = {
|
|
|
10741
10812
|
strokeDasharray: x,
|
|
10742
10813
|
strokeDashoffset: S,
|
|
10743
10814
|
strokeWidth: y,
|
|
10744
|
-
style: { stroke: `var(${
|
|
10815
|
+
style: { stroke: `var(${wa[C]})` },
|
|
10745
10816
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
10746
10817
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
10747
10818
|
alignmentBaseline: "middle",
|
|
@@ -10751,7 +10822,22 @@ var Tr = {
|
|
|
10751
10822
|
x: "50%",
|
|
10752
10823
|
y: "51%"
|
|
10753
10824
|
}, w))));
|
|
10754
|
-
},
|
|
10825
|
+
}, Ea = {
|
|
10826
|
+
of: "of",
|
|
10827
|
+
showing: "Showing",
|
|
10828
|
+
unitPlural: "results",
|
|
10829
|
+
unitSingular: "result"
|
|
10830
|
+
}, Da = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Oa = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
10831
|
+
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
10832
|
+
...Ea,
|
|
10833
|
+
...i
|
|
10834
|
+
}, p = n !== void 0, m = Da(r, f, d, a);
|
|
10835
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
10836
|
+
"aria-live": "polite",
|
|
10837
|
+
className: Z([s, t ?? ""]),
|
|
10838
|
+
...o
|
|
10839
|
+
}, /* @__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}`));
|
|
10840
|
+
}, ka = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
10755
10841
|
"privacy",
|
|
10756
10842
|
"dataSubjectRequest",
|
|
10757
10843
|
"cookiePolicy",
|
|
@@ -10769,7 +10855,7 @@ var Tr = {
|
|
|
10769
10855
|
]),
|
|
10770
10856
|
...c
|
|
10771
10857
|
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), h && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), g && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), v && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), y && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
10772
|
-
},
|
|
10858
|
+
}, Aa = ({ className: t, option: n, ...r }) => {
|
|
10773
10859
|
let i = "pds-site-option-display", a = n.type ? Ln[n.type] : "boltSolid", o = m(null), [s] = De(o), c = s.width / 16 - 7.5, l, u;
|
|
10774
10860
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
10775
10861
|
let d = /* @__PURE__ */ e.createElement(rn, {
|
|
@@ -10792,7 +10878,7 @@ var Tr = {
|
|
|
10792
10878
|
className: `${i}__status`,
|
|
10793
10879
|
style: { pointerEvents: "none" }
|
|
10794
10880
|
}, d));
|
|
10795
|
-
},
|
|
10881
|
+
}, ja = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
10796
10882
|
clearButton: "Clear input text",
|
|
10797
10883
|
inputInstructions: "Type to search options"
|
|
10798
10884
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -10804,7 +10890,7 @@ var Tr = {
|
|
|
10804
10890
|
id: n,
|
|
10805
10891
|
label: i,
|
|
10806
10892
|
value: r ?? i,
|
|
10807
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
10893
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Aa, { option: t }),
|
|
10808
10894
|
siteData: t
|
|
10809
10895
|
};
|
|
10810
10896
|
});
|
|
@@ -10812,7 +10898,7 @@ var Tr = {
|
|
|
10812
10898
|
className: Z([_, t ?? ""]),
|
|
10813
10899
|
id: r,
|
|
10814
10900
|
...p
|
|
10815
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(
|
|
10901
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__inner` }, /* @__PURE__ */ e.createElement(Br, {
|
|
10816
10902
|
hasClearButton: !0,
|
|
10817
10903
|
hasSearchShortcut: !0,
|
|
10818
10904
|
className: `${_}__combobox`,
|
|
@@ -10833,7 +10919,7 @@ var Tr = {
|
|
|
10833
10919
|
};
|
|
10834
10920
|
//#endregion
|
|
10835
10921
|
//#region src/components/SortableList/sortable-utils.ts
|
|
10836
|
-
function
|
|
10922
|
+
function Ma(e, t, n = null, r = 0, i = []) {
|
|
10837
10923
|
return e.reduce((e, a, o) => {
|
|
10838
10924
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
10839
10925
|
return e.push({
|
|
@@ -10845,10 +10931,10 @@ function Da(e, t, n = null, r = 0, i = []) {
|
|
|
10845
10931
|
index: o,
|
|
10846
10932
|
isExpanded: c,
|
|
10847
10933
|
parentId: n
|
|
10848
|
-
}), s && c && a.children && e.push(...
|
|
10934
|
+
}), s && c && a.children && e.push(...Ma(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
10849
10935
|
}, []);
|
|
10850
10936
|
}
|
|
10851
|
-
function
|
|
10937
|
+
function Na(e) {
|
|
10852
10938
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
10853
10939
|
for (let i of e) {
|
|
10854
10940
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -10861,28 +10947,28 @@ function Oa(e) {
|
|
|
10861
10947
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
10862
10948
|
}
|
|
10863
10949
|
}
|
|
10864
|
-
return
|
|
10950
|
+
return Pa(r);
|
|
10865
10951
|
}
|
|
10866
|
-
function
|
|
10952
|
+
function Pa(e) {
|
|
10867
10953
|
return e.map((e) => {
|
|
10868
10954
|
if (e.children?.length) return {
|
|
10869
10955
|
...e,
|
|
10870
|
-
children:
|
|
10956
|
+
children: Pa(e.children)
|
|
10871
10957
|
};
|
|
10872
10958
|
let { children: t, ...n } = e;
|
|
10873
10959
|
return n;
|
|
10874
10960
|
});
|
|
10875
10961
|
}
|
|
10876
|
-
function
|
|
10962
|
+
function Fa(e, t) {
|
|
10877
10963
|
for (let n of e) {
|
|
10878
10964
|
if (n.id === t) return n;
|
|
10879
10965
|
if (n.children) {
|
|
10880
|
-
let e =
|
|
10966
|
+
let e = Fa(n.children, t);
|
|
10881
10967
|
if (e) return e;
|
|
10882
10968
|
}
|
|
10883
10969
|
}
|
|
10884
10970
|
}
|
|
10885
|
-
function
|
|
10971
|
+
function Ia(e, t, n, r, i, a, o) {
|
|
10886
10972
|
let s = e.findIndex((e) => e.id === n);
|
|
10887
10973
|
if (s === -1) return 0;
|
|
10888
10974
|
let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
|
|
@@ -10890,7 +10976,7 @@ function ja(e, t, n, r, i, a, o) {
|
|
|
10890
10976
|
}
|
|
10891
10977
|
//#endregion
|
|
10892
10978
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
10893
|
-
var
|
|
10979
|
+
var La = ({ children: t, className: n, columns: r, ...i }) => {
|
|
10894
10980
|
if (!r && !t) return null;
|
|
10895
10981
|
let a = r ? {
|
|
10896
10982
|
display: "grid",
|
|
@@ -10911,13 +10997,13 @@ var Ma = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
10911
10997
|
};
|
|
10912
10998
|
//#endregion
|
|
10913
10999
|
//#region src/components/SortableList/useSortableTree.ts
|
|
10914
|
-
function
|
|
11000
|
+
function Ra({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
10915
11001
|
let i = n !== void 0, [a, o] = h(() => n ?? e ?? []), [c, l] = h(/* @__PURE__ */ new Set()), u = m(null), d = m(t);
|
|
10916
11002
|
t && !d.current && (u.current = {
|
|
10917
11003
|
items: i ? n : a,
|
|
10918
11004
|
expandedIds: c
|
|
10919
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
10920
|
-
let f = i ? n : a, g = p(() =>
|
|
11005
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Ba("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11006
|
+
let f = i ? n : a, g = p(() => Ma(f, c), [f, c]), _ = p(() => g.map((e) => e.id), [g]), v = s((e) => {
|
|
10921
11007
|
l((t) => {
|
|
10922
11008
|
let n = new Set(t);
|
|
10923
11009
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -10935,7 +11021,7 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10935
11021
|
}, []),
|
|
10936
11022
|
flatNodes: g,
|
|
10937
11023
|
handleReorder: s((e) => {
|
|
10938
|
-
let t =
|
|
11024
|
+
let t = Na(e);
|
|
10939
11025
|
i || o(t), r?.(t);
|
|
10940
11026
|
}, [i, r]),
|
|
10941
11027
|
resetToSnapshot: s(() => {
|
|
@@ -10947,24 +11033,24 @@ function Na({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
10947
11033
|
toggleExpand: v
|
|
10948
11034
|
};
|
|
10949
11035
|
}
|
|
10950
|
-
var
|
|
10951
|
-
function
|
|
10952
|
-
|
|
11036
|
+
var za = /* @__PURE__ */ new Set();
|
|
11037
|
+
function Ba(e) {
|
|
11038
|
+
za.has(e) || (za.add(e), console.warn(e));
|
|
10953
11039
|
}
|
|
10954
11040
|
//#endregion
|
|
10955
11041
|
//#region src/components/SortableList/SortableList.tsx
|
|
10956
|
-
var
|
|
11042
|
+
var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = a(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: c = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: f = () => !1, items: g, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
10957
11043
|
let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), ee = s((e, t) => {
|
|
10958
11044
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
10959
11045
|
e.preventDefault();
|
|
10960
11046
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
10961
11047
|
return B.current = i, z(i), {
|
|
10962
|
-
x: t.currentCoordinates.x + a *
|
|
11048
|
+
x: t.currentCoordinates.x + a * Va,
|
|
10963
11049
|
y: t.currentCoordinates.y
|
|
10964
11050
|
};
|
|
10965
11051
|
}
|
|
10966
11052
|
return Le(e, t);
|
|
10967
|
-
}, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } =
|
|
11053
|
+
}, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } = Ra({
|
|
10968
11054
|
defaultItems: a,
|
|
10969
11055
|
isDragEnabled: W,
|
|
10970
11056
|
items: g,
|
|
@@ -10991,9 +11077,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
10991
11077
|
X,
|
|
10992
11078
|
J,
|
|
10993
11079
|
j
|
|
10994
|
-
]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ?
|
|
11080
|
+
]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ? Fa(G, String(T)) ?? null : null, [T, G]), de = p(() => {
|
|
10995
11081
|
let e = le?.depth ?? 0;
|
|
10996
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11082
|
+
return !T || !j || O || _ === 0 ? e : Ia(K, String(T), String(j), V * Va, Va, _);
|
|
10997
11083
|
}, [
|
|
10998
11084
|
T,
|
|
10999
11085
|
le,
|
|
@@ -11005,7 +11091,7 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11005
11091
|
]), fe = p(() => {
|
|
11006
11092
|
if (!T || O || de === 0 || j && X(j)) return null;
|
|
11007
11093
|
let e = K.findIndex((e) => e.id === T);
|
|
11008
|
-
return e === -1 ? null :
|
|
11094
|
+
return e === -1 ? null : Wa(K, e, de);
|
|
11009
11095
|
}, [
|
|
11010
11096
|
T,
|
|
11011
11097
|
K,
|
|
@@ -11051,19 +11137,19 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11051
11137
|
}, [K, J]), ge = s((e) => {
|
|
11052
11138
|
let t = e.delta.x;
|
|
11053
11139
|
if (P.current = t, A.current || _ === 0) return;
|
|
11054
|
-
let n = Math.floor(t /
|
|
11055
|
-
(n > r || n < r && t < r *
|
|
11140
|
+
let n = Math.floor(t / Va), r = U.current;
|
|
11141
|
+
(n > r || n < r && t < r * Va - Va * .4) && (U.current = n, H(n));
|
|
11056
11142
|
}, [_]), _e = s((e) => {
|
|
11057
11143
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11058
11144
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (te(L.current), L.current = null);
|
|
11059
|
-
let o = K.findIndex((e) => e.id === t.id), s = r ? i *
|
|
11145
|
+
let o = K.findIndex((e) => e.id === t.id), s = r ? i * Va : a * Va, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
11060
11146
|
if (r && i > 0 && c && o > 0 && (l = K[o - 1].id), !l || t.id === l) {
|
|
11061
11147
|
if (o === -1) return;
|
|
11062
11148
|
let e = K[o];
|
|
11063
11149
|
if (!e) return;
|
|
11064
|
-
let n =
|
|
11150
|
+
let n = Ia(K, String(t.id), String(t.id), s, Va, _);
|
|
11065
11151
|
if (n === e.depth) return;
|
|
11066
|
-
let r = [...K], [i] = r.splice(o, 1), a =
|
|
11152
|
+
let r = [...K], [i] = r.splice(o, 1), a = Wa(r, o, n);
|
|
11067
11153
|
if (a && Y.has(a)) return;
|
|
11068
11154
|
let c = {
|
|
11069
11155
|
...i,
|
|
@@ -11085,9 +11171,9 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11085
11171
|
let e = K[u];
|
|
11086
11172
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11087
11173
|
} else {
|
|
11088
|
-
g =
|
|
11174
|
+
g = Ia(d, String(t.id), String(l), s, Va, _, p.depth);
|
|
11089
11175
|
let e = d[h];
|
|
11090
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11176
|
+
v = e && e.depth === g - 1 ? String(l) : Wa(d, h, g);
|
|
11091
11177
|
}
|
|
11092
11178
|
if (v && Y.has(v)) return;
|
|
11093
11179
|
let y = {
|
|
@@ -11110,24 +11196,24 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11110
11196
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (te(L.current), L.current = null);
|
|
11111
11197
|
}, [te]), ye = p(() => ({
|
|
11112
11198
|
onDragStart({ active: e }) {
|
|
11113
|
-
let t = K.find((t) => t.id === e.id), n =
|
|
11199
|
+
let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
|
|
11114
11200
|
return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? K.indexOf(t) + 1 : "?"} of ${K.length} at depth ${t?.depth ?? 0}.`;
|
|
11115
11201
|
},
|
|
11116
11202
|
onDragOver({ active: e, over: t }) {
|
|
11117
11203
|
if (!t) return;
|
|
11118
11204
|
let n = K.findIndex((e) => e.id === t.id);
|
|
11119
11205
|
if (n === -1) return;
|
|
11120
|
-
let r =
|
|
11206
|
+
let r = Fa(G, String(e.id)), i = r ? c(r) : String(e.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
|
|
11121
11207
|
return `Moving ${i}. Target position: ${n + 1} of ${K.length} at depth ${a}.`;
|
|
11122
11208
|
},
|
|
11123
11209
|
onDragEnd({ active: e, over: t }) {
|
|
11124
|
-
let n =
|
|
11210
|
+
let n = Fa(G, String(e.id)), r = n ? c(n) : String(e.id);
|
|
11125
11211
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11126
|
-
let i = K.findIndex((e) => e.id === t.id), a =
|
|
11212
|
+
let i = K.findIndex((e) => e.id === t.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
|
|
11127
11213
|
return `${r} dropped at position ${i + 1} of ${K.length} at depth ${a}.`;
|
|
11128
11214
|
},
|
|
11129
11215
|
onDragCancel({ active: e }) {
|
|
11130
|
-
let t = K.find((t) => t.id === e.id), n =
|
|
11216
|
+
let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
|
|
11131
11217
|
return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? K.indexOf(t) + 1 : "?"} of ${K.length}.`;
|
|
11132
11218
|
}
|
|
11133
11219
|
}), [
|
|
@@ -11135,14 +11221,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11135
11221
|
K,
|
|
11136
11222
|
c,
|
|
11137
11223
|
_
|
|
11138
|
-
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type ===
|
|
11224
|
+
]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === La ? e.cloneElement(t, be) : t);
|
|
11139
11225
|
return /* @__PURE__ */ e.createElement(Oe, {
|
|
11140
11226
|
accessibility: {
|
|
11141
11227
|
announcements: ye,
|
|
11142
11228
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11143
11229
|
},
|
|
11144
11230
|
collisionDetection: me,
|
|
11145
|
-
measuring:
|
|
11231
|
+
measuring: Ha,
|
|
11146
11232
|
onDragCancel: ve,
|
|
11147
11233
|
onDragEnd: _e,
|
|
11148
11234
|
onDragMove: ge,
|
|
@@ -11217,14 +11303,14 @@ var Ia = 24, La = { droppable: { strategy: je.Always } }, Ra = a(function({ chil
|
|
|
11217
11303
|
return o(a) ? e.cloneElement(a, s) : a;
|
|
11218
11304
|
})()) : null));
|
|
11219
11305
|
});
|
|
11220
|
-
function
|
|
11306
|
+
function Wa(e, t, n) {
|
|
11221
11307
|
if (n === 0) return null;
|
|
11222
11308
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11223
11309
|
return null;
|
|
11224
11310
|
}
|
|
11225
11311
|
//#endregion
|
|
11226
11312
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11227
|
-
var
|
|
11313
|
+
var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
|
|
11228
11314
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = Re({
|
|
11229
11315
|
attributes: {
|
|
11230
11316
|
role: "listitem",
|
|
@@ -11279,11 +11365,11 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11279
11365
|
key: t.id,
|
|
11280
11366
|
className: `${w}__cell`
|
|
11281
11367
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11282
|
-
},
|
|
11368
|
+
}, Ka = [
|
|
11283
11369
|
"default",
|
|
11284
11370
|
"working",
|
|
11285
11371
|
"checked"
|
|
11286
|
-
],
|
|
11372
|
+
], qa = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11287
11373
|
let l = {
|
|
11288
11374
|
checkForUpdates: "Check for updates",
|
|
11289
11375
|
checking: "Checking...",
|
|
@@ -11330,7 +11416,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11330
11416
|
triggerIconColor: "default",
|
|
11331
11417
|
triggerIconSize: "s"
|
|
11332
11418
|
}), t === "left" && g));
|
|
11333
|
-
},
|
|
11419
|
+
}, Ja = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11334
11420
|
let s = "pds-status-indicator", c = `${s}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(nn, {
|
|
11335
11421
|
className: `${s}__spinner`,
|
|
11336
11422
|
size: "m"
|
|
@@ -11347,7 +11433,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11347
11433
|
]),
|
|
11348
11434
|
...a
|
|
11349
11435
|
}, r ? d : l);
|
|
11350
|
-
},
|
|
11436
|
+
}, Ya = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11351
11437
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11352
11438
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
11353
11439
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11365,7 +11451,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11365
11451
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11366
11452
|
...a
|
|
11367
11453
|
}, l);
|
|
11368
|
-
},
|
|
11454
|
+
}, Xa = ({ className: t, steps: n, translatableLabels: r = {
|
|
11369
11455
|
step: "Step",
|
|
11370
11456
|
completed: "completed",
|
|
11371
11457
|
hasError: "has an error",
|
|
@@ -11429,7 +11515,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11429
11515
|
key: t.id,
|
|
11430
11516
|
className: `${o}__step`,
|
|
11431
11517
|
id: `${t.id}--mobile`
|
|
11432
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11518
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ta, {
|
|
11433
11519
|
innerLabel: n,
|
|
11434
11520
|
label: "Step progress",
|
|
11435
11521
|
percentage: i,
|
|
@@ -11454,7 +11540,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11454
11540
|
"data-steps": d,
|
|
11455
11541
|
...i
|
|
11456
11542
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
11457
|
-
},
|
|
11543
|
+
}, Za = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11458
11544
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11459
11545
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11460
11546
|
className: Z([...p]),
|
|
@@ -11480,14 +11566,14 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11480
11566
|
size: "s",
|
|
11481
11567
|
variant: "highlight"
|
|
11482
11568
|
})))));
|
|
11483
|
-
},
|
|
11569
|
+
}, Qa = ({ className: t, labelStrings: n = {
|
|
11484
11570
|
step: "Step",
|
|
11485
11571
|
completed: "completed",
|
|
11486
11572
|
hasError: "has an error"
|
|
11487
11573
|
}, steps: r, ...i }) => {
|
|
11488
11574
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11489
11575
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11490
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11576
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Za, {
|
|
11491
11577
|
key: `s${i}`,
|
|
11492
11578
|
_isFirstStep: c,
|
|
11493
11579
|
"aria-current": a ? "step" : null,
|
|
@@ -11508,7 +11594,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11508
11594
|
className: Z([a, t ?? ""]),
|
|
11509
11595
|
...i
|
|
11510
11596
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11511
|
-
},
|
|
11597
|
+
}, $a = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: ee, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: te, sortKey: K, sortOrder: ne, totalItemCount: re, ...ie }) => {
|
|
11512
11598
|
let q = "pds-table", ae = u(), oe = u(), J = m(null), Y = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = W.length > 0 || X && (re ?? 0) > 0, [ue, de] = h({
|
|
11513
11599
|
key: a ?? "",
|
|
11514
11600
|
order: a === void 0 ? "asc" : o
|
|
@@ -11629,7 +11715,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11629
11715
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), je(t, i));
|
|
11630
11716
|
} : void 0,
|
|
11631
11717
|
tabIndex: a ? 0 : void 0
|
|
11632
|
-
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11718
|
+
}, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
|
|
11633
11719
|
checked: Ee.has(i),
|
|
11634
11720
|
disabled: !s,
|
|
11635
11721
|
id: `${oe}-row-${i}`,
|
|
@@ -11651,7 +11737,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11651
11737
|
"aria-busy": E,
|
|
11652
11738
|
className: Z([q, t]),
|
|
11653
11739
|
...ie
|
|
11654
|
-
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(
|
|
11740
|
+
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
|
|
11655
11741
|
checked: Ue,
|
|
11656
11742
|
id: oe,
|
|
11657
11743
|
indeterminate: We,
|
|
@@ -11687,7 +11773,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11687
11773
|
showLabel: !1,
|
|
11688
11774
|
size: "s",
|
|
11689
11775
|
value: String(be)
|
|
11690
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
11776
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(ca, {
|
|
11691
11777
|
currentPage: X ? i ?? 1 : fe,
|
|
11692
11778
|
itemsPerPage: be,
|
|
11693
11779
|
labelStrings: B,
|
|
@@ -11728,8 +11814,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11728
11814
|
size: "s",
|
|
11729
11815
|
variant: "standard"
|
|
11730
11816
|
}))))));
|
|
11731
|
-
return V ? /* @__PURE__ */ e.createElement(
|
|
11732
|
-
},
|
|
11817
|
+
return V ? /* @__PURE__ */ e.createElement(da, { padding: "none" }, Ze) : Ze;
|
|
11818
|
+
}, eo = [
|
|
11733
11819
|
" ",
|
|
11734
11820
|
"/",
|
|
11735
11821
|
".",
|
|
@@ -11747,7 +11833,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11747
11833
|
"=",
|
|
11748
11834
|
"|",
|
|
11749
11835
|
"~"
|
|
11750
|
-
],
|
|
11836
|
+
], to = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), no = (e) => {
|
|
11751
11837
|
let t = [];
|
|
11752
11838
|
return e.forEach((e) => {
|
|
11753
11839
|
let { id: n, innerText: r } = e;
|
|
@@ -11760,18 +11846,18 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11760
11846
|
title: r
|
|
11761
11847
|
});
|
|
11762
11848
|
}), t;
|
|
11763
|
-
},
|
|
11849
|
+
}, ro = (e, t, n) => {
|
|
11764
11850
|
let [r, i] = h([]);
|
|
11765
11851
|
return l(() => {
|
|
11766
11852
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
11767
11853
|
let e = Array.from(document.querySelectorAll(r));
|
|
11768
11854
|
e.forEach((e) => {
|
|
11769
|
-
|
|
11770
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
11855
|
+
eo.forEach((t) => {
|
|
11856
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(to(t), "g"), "-"));
|
|
11771
11857
|
});
|
|
11772
11858
|
}), e.forEach((e, t) => {
|
|
11773
11859
|
e.id || (e.id = `${n}-item-${t}`);
|
|
11774
|
-
}), i(
|
|
11860
|
+
}), i(no(e));
|
|
11775
11861
|
};
|
|
11776
11862
|
a();
|
|
11777
11863
|
let o = document.getElementById(e);
|
|
@@ -11787,7 +11873,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11787
11873
|
t,
|
|
11788
11874
|
n
|
|
11789
11875
|
]), { nestedHeadings: r };
|
|
11790
|
-
},
|
|
11876
|
+
}, io = (e, t) => {
|
|
11791
11877
|
let [n, r] = h(void 0), i = m({});
|
|
11792
11878
|
return l(() => {
|
|
11793
11879
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -11806,7 +11892,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11806
11892
|
o.disconnect(), r(void 0);
|
|
11807
11893
|
};
|
|
11808
11894
|
}, [e, t]), n;
|
|
11809
|
-
},
|
|
11895
|
+
}, ao = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
11810
11896
|
key: r.id,
|
|
11811
11897
|
className: `${n}__list-item`
|
|
11812
11898
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -11822,8 +11908,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11822
11908
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
11823
11909
|
href: `#${r.id}`,
|
|
11824
11910
|
onClick: (e) => i(e, r.id)
|
|
11825
|
-
}, r.title))))))),
|
|
11826
|
-
let d = "pds-toc", { nestedHeadings: f } =
|
|
11911
|
+
}, r.title))))))), oo = ({ 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 }) => {
|
|
11912
|
+
let d = "pds-toc", { nestedHeadings: f } = ro(c, o, u()), p = io(c, o), m = (e) => {
|
|
11827
11913
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
11828
11914
|
}, h = (e) => {
|
|
11829
11915
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -11841,13 +11927,13 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11841
11927
|
baseClass: d,
|
|
11842
11928
|
className: `${s ? "" : "visually-hidden"}`,
|
|
11843
11929
|
level: i
|
|
11844
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
11930
|
+
}, a), /* @__PURE__ */ e.createElement(ao, {
|
|
11845
11931
|
activeID: p,
|
|
11846
11932
|
baseClass: d,
|
|
11847
11933
|
headings: f,
|
|
11848
11934
|
onLinkClick: g
|
|
11849
11935
|
}));
|
|
11850
|
-
},
|
|
11936
|
+
}, so = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
11851
11937
|
let c = "pds-tabs", [u, d] = h(a ?? r);
|
|
11852
11938
|
l(() => {
|
|
11853
11939
|
a !== void 0 && d(a);
|
|
@@ -11961,7 +12047,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11961
12047
|
className: `${c}__panel-content`,
|
|
11962
12048
|
hidden: o !== u
|
|
11963
12049
|
}, r)))));
|
|
11964
|
-
},
|
|
12050
|
+
}, co = [
|
|
11965
12051
|
"orange",
|
|
11966
12052
|
"stone",
|
|
11967
12053
|
"gold",
|
|
@@ -11976,7 +12062,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11976
12062
|
"rose",
|
|
11977
12063
|
"red",
|
|
11978
12064
|
"silver"
|
|
11979
|
-
],
|
|
12065
|
+
], lo = [
|
|
11980
12066
|
"orange-solid",
|
|
11981
12067
|
"teal-solid",
|
|
11982
12068
|
"indigo-solid",
|
|
@@ -11987,8 +12073,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11987
12073
|
"critical-solid",
|
|
11988
12074
|
"info-solid",
|
|
11989
12075
|
"discovery-solid"
|
|
11990
|
-
],
|
|
11991
|
-
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${
|
|
12076
|
+
], uo = (e) => co[parseInt(_(e), 16) % co.length], fo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, po = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
|
|
12077
|
+
let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${uo(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
11992
12078
|
p((e) => !e);
|
|
11993
12079
|
}, b, x, S;
|
|
11994
12080
|
if (r && !n && o(r)) {
|
|
@@ -12010,7 +12096,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12010
12096
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12011
12097
|
className: `${m}__label`,
|
|
12012
12098
|
title: l
|
|
12013
|
-
}, u > 0 ?
|
|
12099
|
+
}, u > 0 ? fo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12014
12100
|
"aria-label": `${a}: ${l}`,
|
|
12015
12101
|
className: `${m}__remove`,
|
|
12016
12102
|
onClick: () => {
|
|
@@ -12022,7 +12108,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12022
12108
|
iconName: "xmark",
|
|
12023
12109
|
size: "m"
|
|
12024
12110
|
})) : null);
|
|
12025
|
-
},
|
|
12111
|
+
}, mo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12026
12112
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Xe(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
12027
12113
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12028
12114
|
className: Z([
|
|
@@ -12033,7 +12119,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12033
12119
|
]),
|
|
12034
12120
|
...a
|
|
12035
12121
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
12036
|
-
},
|
|
12122
|
+
}, ho = () => {
|
|
12037
12123
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = h(e ? t(window.innerWidth) : "lg");
|
|
12038
12124
|
return l(() => {
|
|
12039
12125
|
if (!e) return;
|
|
@@ -12044,7 +12130,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12044
12130
|
window.removeEventListener("resize", n);
|
|
12045
12131
|
};
|
|
12046
12132
|
}, []), n;
|
|
12047
|
-
},
|
|
12133
|
+
}, go = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
12048
12134
|
let [j, M] = h(u || !1);
|
|
12049
12135
|
l(() => {
|
|
12050
12136
|
M(u || !1);
|
|
@@ -12066,7 +12152,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12066
12152
|
return;
|
|
12067
12153
|
}
|
|
12068
12154
|
M(!j);
|
|
12069
|
-
}, U =
|
|
12155
|
+
}, U = ho();
|
|
12070
12156
|
l(() => {
|
|
12071
12157
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12072
12158
|
}, [U]);
|
|
@@ -12158,10 +12244,10 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12158
12244
|
n ?? ""
|
|
12159
12245
|
]),
|
|
12160
12246
|
...A
|
|
12161
|
-
}, /* @__PURE__ */ e.createElement(
|
|
12247
|
+
}, /* @__PURE__ */ e.createElement(li, {
|
|
12162
12248
|
destination: I,
|
|
12163
12249
|
text: F.skipToContent
|
|
12164
|
-
}), K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(
|
|
12250
|
+
}), K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ta, {
|
|
12165
12251
|
...a,
|
|
12166
12252
|
isOpen: c,
|
|
12167
12253
|
placement: "left",
|
|
@@ -12169,7 +12255,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12169
12255
|
!e && c && b && b();
|
|
12170
12256
|
}
|
|
12171
12257
|
}, r));
|
|
12172
|
-
},
|
|
12258
|
+
}, _o = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12173
12259
|
let c = "pds-docs-layout", l = {
|
|
12174
12260
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12175
12261
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12187,7 +12273,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12187
12273
|
},
|
|
12188
12274
|
...s
|
|
12189
12275
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
12190
|
-
},
|
|
12276
|
+
}, vo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12191
12277
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
|
|
12192
12278
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12193
12279
|
className: Z([u, n ?? ""]),
|
|
@@ -12201,8 +12287,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12201
12287
|
},
|
|
12202
12288
|
...l
|
|
12203
12289
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12204
|
-
},
|
|
12205
|
-
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(
|
|
12290
|
+
}, yo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12291
|
+
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(Si, {
|
|
12206
12292
|
className: Z([
|
|
12207
12293
|
l,
|
|
12208
12294
|
u,
|
|
@@ -12211,8 +12297,8 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12211
12297
|
width: "wide",
|
|
12212
12298
|
...a
|
|
12213
12299
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12214
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12215
|
-
},
|
|
12300
|
+
return i ? /* @__PURE__ */ e.createElement(da, null, d) : d;
|
|
12301
|
+
}, bo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12216
12302
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Xe(t), u = [
|
|
12217
12303
|
l["first-item"],
|
|
12218
12304
|
l["second-item"],
|
|
@@ -12230,7 +12316,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12230
12316
|
key: n,
|
|
12231
12317
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12232
12318
|
}, t)));
|
|
12233
|
-
},
|
|
12319
|
+
}, xo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12234
12320
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
12235
12321
|
switch (i) {
|
|
12236
12322
|
case "equal":
|
|
@@ -12251,7 +12337,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12251
12337
|
]),
|
|
12252
12338
|
...o
|
|
12253
12339
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12254
|
-
},
|
|
12340
|
+
}, So = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
|
|
12255
12341
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12256
12342
|
"--pds-flex-align-content": t,
|
|
12257
12343
|
"--pds-flex-align-items": n,
|
|
@@ -12277,7 +12363,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12277
12363
|
},
|
|
12278
12364
|
...g
|
|
12279
12365
|
}, r);
|
|
12280
|
-
},
|
|
12366
|
+
}, Co = (e) => {
|
|
12281
12367
|
let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12282
12368
|
return l(() => {
|
|
12283
12369
|
if (!t) return;
|
|
@@ -12286,20 +12372,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12286
12372
|
};
|
|
12287
12373
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12288
12374
|
}, [e]), n;
|
|
12289
|
-
},
|
|
12375
|
+
}, wo = [
|
|
12290
12376
|
"light",
|
|
12291
12377
|
"dark",
|
|
12292
12378
|
"system"
|
|
12293
|
-
],
|
|
12379
|
+
], To = (e) => typeof e == "string" && wo.includes(e), Eo = r(null), Do = {
|
|
12294
12380
|
resolvedTheme: "light",
|
|
12295
12381
|
setTheme: () => {},
|
|
12296
12382
|
theme: "light"
|
|
12297
|
-
},
|
|
12298
|
-
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y =
|
|
12383
|
+
}, Oo = ({ 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){}})();`, ko = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
|
|
12384
|
+
let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = Co("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
|
|
12299
12385
|
l(() => {
|
|
12300
12386
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12301
12387
|
let e = window.localStorage.getItem(c);
|
|
12302
|
-
|
|
12388
|
+
To(e) && m(e);
|
|
12303
12389
|
} catch {}
|
|
12304
12390
|
}, []), l(() => {
|
|
12305
12391
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12319,20 +12405,20 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12319
12405
|
]),
|
|
12320
12406
|
theme: v
|
|
12321
12407
|
};
|
|
12322
|
-
return /* @__PURE__ */ e.createElement(
|
|
12408
|
+
return /* @__PURE__ */ e.createElement(Eo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Oo({
|
|
12323
12409
|
defaultTheme: n,
|
|
12324
12410
|
storageKey: c
|
|
12325
12411
|
}) } }), t);
|
|
12326
|
-
},
|
|
12412
|
+
}, Ao = () => c(Eo) ?? Do, jo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12327
12413
|
l(() => {
|
|
12328
12414
|
let e = document.documentElement, t = () => {
|
|
12329
12415
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12330
12416
|
};
|
|
12331
12417
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12332
12418
|
}, [r]);
|
|
12333
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12419
|
+
let a = n ? /* @__PURE__ */ e.createElement(ko, i, t) : t;
|
|
12334
12420
|
return /* @__PURE__ */ e.createElement(It, null, a);
|
|
12335
|
-
},
|
|
12421
|
+
}, Mo = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12336
12422
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
12337
12423
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12338
12424
|
className: Z([
|
|
@@ -12346,7 +12432,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12346
12432
|
]),
|
|
12347
12433
|
...c
|
|
12348
12434
|
}, n);
|
|
12349
|
-
},
|
|
12435
|
+
}, No = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12350
12436
|
let f = "pds-grid-item", p = [
|
|
12351
12437
|
l ? `${f}--sm-${l}` : null,
|
|
12352
12438
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12365,7 +12451,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12365
12451
|
]),
|
|
12366
12452
|
...d
|
|
12367
12453
|
}, t);
|
|
12368
|
-
},
|
|
12454
|
+
}, Po = (e, t, n) => {
|
|
12369
12455
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: c = !1 } = n ?? {}, [u, d] = h(!1), f = s((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === c, [
|
|
12370
12456
|
r,
|
|
12371
12457
|
i,
|
|
@@ -12389,7 +12475,7 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12389
12475
|
m,
|
|
12390
12476
|
a
|
|
12391
12477
|
]), u;
|
|
12392
|
-
},
|
|
12478
|
+
}, Fo = () => {
|
|
12393
12479
|
let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12394
12480
|
return l(() => {
|
|
12395
12481
|
if (!e) return;
|
|
@@ -12403,6 +12489,6 @@ var Ba = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12403
12489
|
}, []), t;
|
|
12404
12490
|
};
|
|
12405
12491
|
//#endregion
|
|
12406
|
-
export { Jn as ActionCard,
|
|
12492
|
+
export { Jn as ActionCard, go as AppLayout, rt as Avatar, it as Badge, Bi as Banner, _r as BarChart, on as BranchDiff, di as Breadcrumb, un as Button, dn as ButtonLink, bi as ButtonNav, si as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Lr as Checkbox, Rr as CheckboxFieldset, zr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Dr as CodeBlock, Br as Combobox, Hr as ComboboxMultiselect, Zn as CompactEmptyState, kr as ComparisonList, Si as Container, Kr as Datepicker, _o as DocsLayout, ta as Drawer, bn as Dropdown, xi as DropdownMenu, la as ExpansionPanel, ua as ExpansionPanelGroup, Nr as FileDiff, qr as FileUpload, kn as FilterButton, So as FlexContainer, na as FullScreenOverlay, jo as GlobalWrapper, Mo as Grid, No as GridItem, jr as HorizontalEmptyState, Q as Icon, pn as IconButton, Ir as IdentityBlock, Hi as InlineMessage, Jr as InputGroup, yr as LineChart, ci as LinkNewWindow, Gi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, ra as Modal, Ci as Navbar, oa as Pagination, sa as PaginationChapter, ca as PaginationCompact, da as Panel, fa as PanelList, pa as PanelRow, ma as PanelStack, va as PantheonLogo, Fr as PaymentIcon, ui as Picture, xr as PieChart, Hn as PlatformIcon, xa as Popover, Ca as ProgressBar, Ta as ProgressRing, Cr as ProportionBar, Yr as RadioGroup, Oa as ResultCount, Wn as SSOButton, Wi as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, wi as SideNav, Ei as SideNavGlobal, Ti as SideNavGlobalItem, vo as SidebarLayout, ka as SiteFooter, Oi as SiteMenu, Aa as SiteOptionDisplay, ja as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, li as Skiplink, Ua as SortableList, La as SortableListHeader, Ga as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, qa as StatusChecker, Ja as StatusIndicator, jn as StatusTypeLabels, Ya as StepList, Xa as Stepper, yo as StepperLayout, Xr as Switch, Ai as TabMenu, $a as Table, oo as TableOfContents, so as Tabs, po as Tag, Qr as TagsInput, an as Tally, ti as TextInput, $r as Textarea, Eo as ThemeContext, ko as ThemeContextProvider, Pi as ThemeSwitcher, bo as ThreeItemLayout, oi as TimeInput, Qi as Toast, $i as ToastType, Yi as Toaster, qi as ToasterContext, zt as Tooltip, Mi as TreeNav, xo as TwoItemLayout, Fi as UserMenu, mo as UtilityBar, Gn as UtilityButton, Mr as VerticalEmptyState, Qa as VerticalStepper, Ar as VideoEmbed, Ii as WorkspaceSelector, Wr as getPresetDateRange, Oo as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Ka as statusCheckerStates, co as tagColors, lo as tagSolidColors, ho as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Po as useKeyPress, Rt as useKeyboardShortcut, Co as useMediaQuery, Ao as useTheme, ea as useToast, Fo as useWindowWidth };
|
|
12407
12493
|
|
|
12408
12494
|
//# sourceMappingURL=index.js.map
|