@pantheon-systems/pds-toolkit-react 2.0.0-alpha.72 → 2.0.0-alpha.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/StatPanel/StatPanel.d.ts +14 -4
- package/dist/components/badges/Badge/Badge.d.ts +9 -2
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +11 -1
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +7 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +11 -1
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +11 -1
- package/dist/components/navigation/navigation-utilities.d.ts +3 -2
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +6 -4
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-button.css +3 -3
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-filter-button.css +1 -1
- package/dist/css/component-css/pds-index.css +18 -19
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-section-message.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-split-button.css +1 -1
- package/dist/css/component-css/pds-stat-panel.css +1 -1
- package/dist/css/component-css/pds-stepper.css +3 -1
- package/dist/css/component-css/pds-text-input.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +2 -5
- package/dist/css/design-tokens/variables.dark.css +1 -0
- package/dist/css/design-tokens/variables.global.css +1 -2
- package/dist/css/design-tokens/variables.light.css +1 -0
- package/dist/css/pds-components.css +18 -19
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +823 -787
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2427,18 +2427,26 @@ var rt = Object.create, it = Object.defineProperty, at = Object.getOwnPropertyDe
|
|
|
2427
2427
|
]),
|
|
2428
2428
|
...d
|
|
2429
2429
|
}, o ? S : x);
|
|
2430
|
-
}, xt =
|
|
2431
|
-
|
|
2430
|
+
}, xt = {
|
|
2431
|
+
xs: "s",
|
|
2432
|
+
s: "s",
|
|
2433
|
+
m: "m"
|
|
2434
|
+
}, St = ({ className: t, color: n = "brand-muted", iconName: r, label: i, size: a = "s", ...o }) => {
|
|
2435
|
+
let s = "pds-badge", c = `${s}--${n}`, l = `${s}--${a}`;
|
|
2432
2436
|
return /* @__PURE__ */ e.createElement("span", {
|
|
2433
2437
|
className: Z([
|
|
2434
|
-
o,
|
|
2435
2438
|
s,
|
|
2436
2439
|
c,
|
|
2440
|
+
l,
|
|
2437
2441
|
t ?? ""
|
|
2438
2442
|
]),
|
|
2439
|
-
...
|
|
2440
|
-
}, /* @__PURE__ */ e.createElement(
|
|
2441
|
-
|
|
2443
|
+
...o
|
|
2444
|
+
}, r && /* @__PURE__ */ e.createElement(Q, {
|
|
2445
|
+
className: `${s}__icon`,
|
|
2446
|
+
iconName: r,
|
|
2447
|
+
size: xt[a]
|
|
2448
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${s}__label` }, i));
|
|
2449
|
+
}, Ct = "10rem", wt = "8rem", Tt = "6rem", Et = "5rem", Dt = "4rem", Ot = "3rem", kt = "2.5rem", At = "2rem", jt = "1.5rem", Mt = "1.25rem", Nt = "1rem", Pt = "0.75rem", Ft = "0.625rem", It = "0.5rem", Lt = "0.375rem", Rt = "0.25rem", zt = "0.125rem", Bt = 9999, Vt = {
|
|
2442
2450
|
SPACING_5XS: zt,
|
|
2443
2451
|
SPACING_4XS: Rt,
|
|
2444
2452
|
SPACING_3XS: Lt,
|
|
@@ -2719,12 +2727,12 @@ var rt = Object.create, it = Object.defineProperty, at = Object.getOwnPropertyDe
|
|
|
2719
2727
|
className: `${c}__track`,
|
|
2720
2728
|
cx: "12",
|
|
2721
2729
|
cy: "12",
|
|
2722
|
-
r: "
|
|
2730
|
+
r: "10.5"
|
|
2723
2731
|
}), /* @__PURE__ */ e.createElement("g", { className: `${c}__rotator` }, /* @__PURE__ */ e.createElement("circle", {
|
|
2724
2732
|
className: `${c}__arc`,
|
|
2725
2733
|
cx: "12",
|
|
2726
2734
|
cy: "12",
|
|
2727
|
-
r: "
|
|
2735
|
+
r: "10.5"
|
|
2728
2736
|
}))), a && !r ? /* @__PURE__ */ e.createElement("span", {
|
|
2729
2737
|
className: `${c}__label`,
|
|
2730
2738
|
style: m
|
|
@@ -3405,25 +3413,25 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3405
3413
|
wordpress: "wordpress",
|
|
3406
3414
|
gatsby: "boltSolid",
|
|
3407
3415
|
nextjs: "boltSolid"
|
|
3408
|
-
}, tr = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a,
|
|
3409
|
-
let { activeIndex:
|
|
3416
|
+
}, tr = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a, isMobileAccordion: o = !1, isSplitButton: s = !1, label: c, menuItems: l, onClick: u, size: d = "s", statusDot: f, tally: p, testId: m, undefinedLabel: h = "Unlabeled group", variant: _ = "primary", ...v }) => {
|
|
3417
|
+
let { activeIndex: y, floatingStyles: b, getFloatingProps: x, getItemProps: C, getReferenceProps: w, isMounted: T, isOpen: E, listRef: D, refs: O, setIsOpen: k, transitionStyles: A } = Pn({
|
|
3410
3418
|
enableClick: !n,
|
|
3411
3419
|
enableTypeahead: !0,
|
|
3412
3420
|
offsetValue: 8,
|
|
3413
3421
|
placement: "bottom-start",
|
|
3414
3422
|
role: "menu"
|
|
3415
|
-
}),
|
|
3423
|
+
}), j = Xt(), M = o && j, N = "pds-menu-button", P = _ === "navbar", F = P ? "subtle" : _, I = a, [L] = g(`menu-button-${a}`), R = [], z = [];
|
|
3416
3424
|
((e) => {
|
|
3417
3425
|
e.forEach((e) => {
|
|
3418
|
-
!Yn(e) && !Xn(e) && !Qn(e) &&
|
|
3426
|
+
!Yn(e) && !Xn(e) && !Qn(e) && z.push(e);
|
|
3419
3427
|
});
|
|
3420
|
-
})(
|
|
3421
|
-
let
|
|
3422
|
-
"disabled" in e && e.disabled || ("callback" in e && e.callback && e.callback(e),
|
|
3423
|
-
},
|
|
3424
|
-
|
|
3425
|
-
},
|
|
3426
|
-
let a =
|
|
3428
|
+
})(l);
|
|
3429
|
+
let B = (e) => {
|
|
3430
|
+
"disabled" in e && e.disabled || ("callback" in e && e.callback && e.callback(e), k(!1));
|
|
3431
|
+
}, V = () => {
|
|
3432
|
+
u && u();
|
|
3433
|
+
}, H = (t, n, r = "", i = "") => {
|
|
3434
|
+
let a = I + (r ? `-group-${r}` : "") + "-item-" + (n + 1), o = "id" in t && t.id ? t.id : a;
|
|
3427
3435
|
if (Yn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3428
3436
|
key: o,
|
|
3429
3437
|
className: "pds-dropdown__separator",
|
|
@@ -3431,7 +3439,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3431
3439
|
});
|
|
3432
3440
|
if (Xn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3433
3441
|
key: i || o,
|
|
3434
|
-
className: `pds-dropdown__heading ${
|
|
3442
|
+
className: `pds-dropdown__heading ${N}__listbox-heading`,
|
|
3435
3443
|
id: i || void 0,
|
|
3436
3444
|
role: "presentation"
|
|
3437
3445
|
}, t.label);
|
|
@@ -3440,17 +3448,17 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3440
3448
|
role: "presentation"
|
|
3441
3449
|
}, t.nodeContent);
|
|
3442
3450
|
if (Zn(t) || "label" in t && t.label) {
|
|
3443
|
-
let n =
|
|
3451
|
+
let n = z.indexOf(t), r = y === n, i = "isCritical" in t && t.isCritical, a = "criticalLabel" in t ? t.criticalLabel : void 0, s = [];
|
|
3444
3452
|
if ("label" in t && t.label && s.push(t.label), Zn(t) && t.linkContent) {
|
|
3445
3453
|
let e = t.linkContent;
|
|
3446
3454
|
s.push(e.props.children);
|
|
3447
3455
|
}
|
|
3448
3456
|
t.iconName && s.unshift(/* @__PURE__ */ e.createElement(Q, {
|
|
3449
|
-
key: `icon-${
|
|
3457
|
+
key: `icon-${I}`,
|
|
3450
3458
|
iconName: t.iconName,
|
|
3451
3459
|
size: t.iconSize ?? "s"
|
|
3452
3460
|
})), i && a && s.unshift(/* @__PURE__ */ e.createElement("span", {
|
|
3453
|
-
key: `critical-${
|
|
3461
|
+
key: `critical-${I}`,
|
|
3454
3462
|
className: "visually-hidden"
|
|
3455
3463
|
}, a));
|
|
3456
3464
|
let c = t.description ? /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-description" }, t.description) : null, l;
|
|
@@ -3459,9 +3467,9 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3459
3467
|
l = /* @__PURE__ */ e.createElement(r, {
|
|
3460
3468
|
tabIndex: -1,
|
|
3461
3469
|
...n.props,
|
|
3462
|
-
onClick: () =>
|
|
3463
|
-
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3464
|
-
} else l = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3470
|
+
onClick: () => k(!1)
|
|
3471
|
+
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${N}__item-label` }, s), c));
|
|
3472
|
+
} else l = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${N}__item-label` }, s), c);
|
|
3465
3473
|
let u = Z([
|
|
3466
3474
|
"pds-dropdown__item",
|
|
3467
3475
|
r ? "pds-dropdown__item--focused" : null,
|
|
@@ -3470,7 +3478,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3470
3478
|
return /* @__PURE__ */ e.createElement("li", {
|
|
3471
3479
|
key: o,
|
|
3472
3480
|
ref: (e) => {
|
|
3473
|
-
|
|
3481
|
+
D.current[n] = e;
|
|
3474
3482
|
},
|
|
3475
3483
|
"aria-disabled": t.disabled || void 0,
|
|
3476
3484
|
className: u,
|
|
@@ -3478,18 +3486,18 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3478
3486
|
id: o,
|
|
3479
3487
|
role: "menuitem",
|
|
3480
3488
|
tabIndex: r ? 0 : -1,
|
|
3481
|
-
...
|
|
3489
|
+
...C({
|
|
3482
3490
|
onClick: () => {
|
|
3483
|
-
Zn(t) ||
|
|
3491
|
+
Zn(t) || B(t), k(!1);
|
|
3484
3492
|
},
|
|
3485
3493
|
onKeyDown: (e) => {
|
|
3486
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Zn(t) && t.linkContent ? e.currentTarget.querySelector("a")?.click() :
|
|
3494
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Zn(t) && t.linkContent ? e.currentTarget.querySelector("a")?.click() : B(t));
|
|
3487
3495
|
}
|
|
3488
3496
|
})
|
|
3489
3497
|
}, l);
|
|
3490
3498
|
}
|
|
3491
|
-
},
|
|
3492
|
-
let r = "id" in t && t.id ? t.id : `${
|
|
3499
|
+
}, U = (t, n) => {
|
|
3500
|
+
let r = "id" in t && t.id ? t.id : `${I}-accordion-item-${n + 1}`;
|
|
3493
3501
|
if (Yn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3494
3502
|
key: r,
|
|
3495
3503
|
className: "pds-dropdown__separator",
|
|
@@ -3497,7 +3505,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3497
3505
|
});
|
|
3498
3506
|
if (Xn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3499
3507
|
key: r,
|
|
3500
|
-
className: `pds-dropdown__heading ${
|
|
3508
|
+
className: `pds-dropdown__heading ${N}__listbox-heading`,
|
|
3501
3509
|
role: "presentation"
|
|
3502
3510
|
}, t.label);
|
|
3503
3511
|
if (Qn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -3511,11 +3519,11 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3511
3519
|
o.push(e.props.children);
|
|
3512
3520
|
}
|
|
3513
3521
|
t.iconName && o.unshift(/* @__PURE__ */ e.createElement(Q, {
|
|
3514
|
-
key: `icon-${
|
|
3522
|
+
key: `icon-${I}-${n}`,
|
|
3515
3523
|
iconName: t.iconName,
|
|
3516
3524
|
size: t.iconSize ?? "s"
|
|
3517
3525
|
})), i && a && o.unshift(/* @__PURE__ */ e.createElement("span", {
|
|
3518
|
-
key: `critical-${
|
|
3526
|
+
key: `critical-${I}-${n}`,
|
|
3519
3527
|
className: "visually-hidden"
|
|
3520
3528
|
}, a));
|
|
3521
3529
|
let s = t.description ? /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-description" }, t.description) : null, c;
|
|
@@ -3524,138 +3532,138 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3524
3532
|
c = /* @__PURE__ */ e.createElement(r, {
|
|
3525
3533
|
tabIndex: -1,
|
|
3526
3534
|
...n.props
|
|
3527
|
-
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3528
|
-
} else c = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3535
|
+
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${N}__item-label` }, o), s));
|
|
3536
|
+
} else c = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${N}__item-label` }, o), s);
|
|
3529
3537
|
return /* @__PURE__ */ e.createElement("li", {
|
|
3530
3538
|
key: r,
|
|
3531
3539
|
"aria-disabled": t.disabled || void 0,
|
|
3532
3540
|
className: Z(["pds-dropdown__item", i ? "pds-dropdown__item--critical" : null]),
|
|
3533
3541
|
id: r,
|
|
3534
3542
|
onClick: () => {
|
|
3535
|
-
Zn(t) ||
|
|
3543
|
+
Zn(t) || B(t);
|
|
3536
3544
|
},
|
|
3537
3545
|
role: "menuitem",
|
|
3538
3546
|
tabIndex: t.disabled ? -1 : 0
|
|
3539
3547
|
}, c);
|
|
3540
3548
|
}
|
|
3541
|
-
},
|
|
3549
|
+
}, W = (t) => {
|
|
3542
3550
|
let n = t.filter(Xn || Yn), r = n.length > 0, a = Z([
|
|
3543
3551
|
"pds-dropdown__panel",
|
|
3544
|
-
`${
|
|
3545
|
-
i ? `${
|
|
3552
|
+
`${N}__listbox`,
|
|
3553
|
+
i ? `${N}__listbox--icon-only` : null
|
|
3546
3554
|
]), o = 0;
|
|
3547
3555
|
if (r) {
|
|
3548
|
-
let r =
|
|
3556
|
+
let r = G(t, n);
|
|
3549
3557
|
return r.forEach((e, t) => {
|
|
3550
|
-
|
|
3558
|
+
R.push(`${t}`);
|
|
3551
3559
|
}), /* @__PURE__ */ e.createElement("div", {
|
|
3552
|
-
ref:
|
|
3553
|
-
"aria-labelledby":
|
|
3560
|
+
ref: O.setFloating,
|
|
3561
|
+
"aria-labelledby": I,
|
|
3554
3562
|
className: a,
|
|
3555
|
-
id:
|
|
3563
|
+
id: L,
|
|
3556
3564
|
role: "menu",
|
|
3557
3565
|
style: {
|
|
3558
|
-
...
|
|
3559
|
-
...
|
|
3566
|
+
...b,
|
|
3567
|
+
...A,
|
|
3560
3568
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3561
3569
|
},
|
|
3562
|
-
...
|
|
3570
|
+
...x()
|
|
3563
3571
|
}, r.map((t, n) => {
|
|
3564
|
-
let r =
|
|
3572
|
+
let r = R[n], i = "isHeading" in t[0] && t[0].isHeading, a = i ? `${I}-group-${r}-heading` : "", s = `${I}-group-${r}`, c = i ? null : `${h} ${n + 1}`;
|
|
3565
3573
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
3566
3574
|
key: s,
|
|
3567
3575
|
"aria-label": c,
|
|
3568
3576
|
"aria-labelledby": a || void 0,
|
|
3569
3577
|
role: "group"
|
|
3570
3578
|
}, t.map((e) => {
|
|
3571
|
-
let t =
|
|
3579
|
+
let t = H(e, o, r, a);
|
|
3572
3580
|
return !Yn(e) && !Xn(e) && !Qn(e) && o++, t;
|
|
3573
3581
|
}));
|
|
3574
3582
|
}));
|
|
3575
3583
|
} else return /* @__PURE__ */ e.createElement("ul", {
|
|
3576
|
-
ref:
|
|
3577
|
-
"aria-labelledby":
|
|
3584
|
+
ref: O.setFloating,
|
|
3585
|
+
"aria-labelledby": I,
|
|
3578
3586
|
className: a,
|
|
3579
|
-
id:
|
|
3587
|
+
id: L,
|
|
3580
3588
|
role: "menu",
|
|
3581
3589
|
style: {
|
|
3582
|
-
...
|
|
3583
|
-
...
|
|
3590
|
+
...b,
|
|
3591
|
+
...A,
|
|
3584
3592
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3585
3593
|
},
|
|
3586
|
-
...
|
|
3594
|
+
...x()
|
|
3587
3595
|
}, t.map((e) => {
|
|
3588
|
-
let t =
|
|
3596
|
+
let t = H(e, o);
|
|
3589
3597
|
return !Yn(e) && !Xn(e) && !Qn(e) && o++, t;
|
|
3590
3598
|
}));
|
|
3591
|
-
},
|
|
3599
|
+
}, G = (e, t) => {
|
|
3592
3600
|
let n = [], r = [...t], i = r.shift(), a = [];
|
|
3593
3601
|
return e.forEach((t, o) => {
|
|
3594
3602
|
t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
|
|
3595
3603
|
}), n.filter((e) => e.length > 0);
|
|
3596
|
-
},
|
|
3604
|
+
}, K, q = d === "m" ? "s" : "xs", J = p ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(Sn, {
|
|
3597
3605
|
className: "pds-button__tally",
|
|
3598
|
-
label:
|
|
3599
|
-
size:
|
|
3600
|
-
type:
|
|
3601
|
-
})) :
|
|
3602
|
-
className: `${
|
|
3603
|
-
label:
|
|
3606
|
+
label: p.label,
|
|
3607
|
+
size: q,
|
|
3608
|
+
type: p.type
|
|
3609
|
+
})) : c, ee = p ? /* @__PURE__ */ e.createElement("span", { className: `${N}__accordion-label` }, c, /* @__PURE__ */ e.createElement(Sn, {
|
|
3610
|
+
className: `${N}__tally`,
|
|
3611
|
+
label: p.label,
|
|
3604
3612
|
size: "s",
|
|
3605
|
-
type:
|
|
3606
|
-
})) :
|
|
3607
|
-
if (i || (
|
|
3608
|
-
ref:
|
|
3609
|
-
"aria-controls":
|
|
3610
|
-
"aria-expanded":
|
|
3613
|
+
type: p.type
|
|
3614
|
+
})) : c;
|
|
3615
|
+
if (i || (K = /* @__PURE__ */ e.createElement(Dn, {
|
|
3616
|
+
ref: O.setReference,
|
|
3617
|
+
"aria-controls": L,
|
|
3618
|
+
"aria-expanded": E,
|
|
3611
3619
|
"aria-haspopup": "true",
|
|
3612
|
-
className: Z([`${
|
|
3620
|
+
className: Z([`${N}__trigger`, P ? `${N}__trigger--navbar` : null]),
|
|
3613
3621
|
disabled: n,
|
|
3614
3622
|
displayType: "icon-end",
|
|
3615
3623
|
iconName: "angleDown",
|
|
3616
|
-
id:
|
|
3617
|
-
isSplitButton:
|
|
3618
|
-
label:
|
|
3619
|
-
size:
|
|
3620
|
-
statusDot:
|
|
3624
|
+
id: I,
|
|
3625
|
+
isSplitButton: s,
|
|
3626
|
+
label: J,
|
|
3627
|
+
size: d,
|
|
3628
|
+
statusDot: f,
|
|
3621
3629
|
type: "button",
|
|
3622
|
-
variant:
|
|
3623
|
-
...
|
|
3630
|
+
variant: F,
|
|
3631
|
+
...w({ onClick: V })
|
|
3624
3632
|
})), i) {
|
|
3625
|
-
let t = En(
|
|
3626
|
-
|
|
3627
|
-
ref:
|
|
3628
|
-
"aria-controls":
|
|
3629
|
-
"aria-expanded":
|
|
3633
|
+
let t = En(c);
|
|
3634
|
+
K = /* @__PURE__ */ e.createElement(An, {
|
|
3635
|
+
ref: O.setReference,
|
|
3636
|
+
"aria-controls": L,
|
|
3637
|
+
"aria-expanded": E,
|
|
3630
3638
|
"aria-haspopup": "true",
|
|
3631
3639
|
ariaLabel: t,
|
|
3632
|
-
className: `${
|
|
3640
|
+
className: `${N}__trigger ${N}__trigger--icon-only`,
|
|
3633
3641
|
disabled: n,
|
|
3634
3642
|
hasTooltip: !1,
|
|
3635
3643
|
iconName: r,
|
|
3636
|
-
id:
|
|
3637
|
-
size:
|
|
3644
|
+
id: I,
|
|
3645
|
+
size: d,
|
|
3638
3646
|
type: "button",
|
|
3639
3647
|
variant: "standard",
|
|
3640
|
-
...
|
|
3648
|
+
...w({ onClick: V })
|
|
3641
3649
|
});
|
|
3642
3650
|
}
|
|
3643
|
-
let
|
|
3651
|
+
let te = i ? /* @__PURE__ */ e.createElement("span", { className: `${N}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", c) : ee, ne = E ? `${N}--expanded` : null;
|
|
3644
3652
|
return /* @__PURE__ */ e.createElement("span", {
|
|
3645
3653
|
className: Z([
|
|
3646
|
-
|
|
3647
|
-
|
|
3654
|
+
N,
|
|
3655
|
+
ne,
|
|
3648
3656
|
t
|
|
3649
3657
|
]),
|
|
3650
|
-
"data-testid":
|
|
3651
|
-
...
|
|
3652
|
-
},
|
|
3658
|
+
"data-testid": m,
|
|
3659
|
+
...v
|
|
3660
|
+
}, M ? /* @__PURE__ */ e.createElement(qn, {
|
|
3653
3661
|
disabled: n,
|
|
3654
|
-
label:
|
|
3662
|
+
label: te
|
|
3655
3663
|
}, /* @__PURE__ */ e.createElement("ul", {
|
|
3656
|
-
className: `${
|
|
3664
|
+
className: `${N}__mobile-menu`,
|
|
3657
3665
|
role: "menu"
|
|
3658
|
-
},
|
|
3666
|
+
}, l.map((e, t) => U(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, K, T && /* @__PURE__ */ e.createElement(S, null, W(l))));
|
|
3659
3667
|
}, nr = ({ border: t = !1, className: n, defaultValue: r, disabled: i = !1, iconOnly: a = !1, id: o, label: s, onChange: c, options: l, size: u = "m", value: d, ...f }) => {
|
|
3660
3668
|
let p = "pds-segmented-button", m = u === "m" ? null : `${p}--${u}`, h = t ? `${p}--bordered` : null, _ = a ? `${p}--icon-only` : null;
|
|
3661
3669
|
a && process.env.NODE_ENV !== "production" && l.some((e) => !e.iconName) && console.warn("[SegmentedButton] `iconOnly` mode requires every option to have an `iconName`. Options without one will render an empty segment.");
|
|
@@ -3676,7 +3684,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3676
3684
|
isInline: !0,
|
|
3677
3685
|
className: `${p}__spinner`,
|
|
3678
3686
|
color: "currentColor",
|
|
3679
|
-
size: "
|
|
3687
|
+
size: "l"
|
|
3680
3688
|
}), t.iconName && !t.isLoading && /* @__PURE__ */ e.createElement(Q, {
|
|
3681
3689
|
className: `${p}__icon`,
|
|
3682
3690
|
iconName: t.iconName
|
|
@@ -3712,40 +3720,43 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3712
3720
|
offsetValue: 8
|
|
3713
3721
|
}) : u));
|
|
3714
3722
|
})));
|
|
3715
|
-
}, rr = ({ actionItems: t, className: n, disabled: r,
|
|
3716
|
-
let
|
|
3717
|
-
return "isLink" in
|
|
3718
|
-
className: `${
|
|
3723
|
+
}, rr = ({ actionItems: t, className: n, disabled: r, iconName: i, id: a, moreActionsLabel: o = "More actions", size: s = "s", variant: c = "primary", ...l }) => {
|
|
3724
|
+
let u = "pds-split-button", d = `${u}--${c}`, f = t[0], p = t.slice(1), m = null;
|
|
3725
|
+
return "isLink" in f && f.isLink === !0 ? m = /* @__PURE__ */ e.createElement(On, {
|
|
3726
|
+
className: `${u}__primary-action`,
|
|
3719
3727
|
disabled: r,
|
|
3720
|
-
displayType: "label-only",
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3728
|
+
displayType: i ? "icon-start" : "label-only",
|
|
3729
|
+
iconName: i,
|
|
3730
|
+
linkContent: f.linkContent,
|
|
3731
|
+
size: s,
|
|
3732
|
+
variant: c
|
|
3733
|
+
}) : "label" in f && (m = /* @__PURE__ */ e.createElement(Dn, {
|
|
3734
|
+
className: `${u}__primary-action`,
|
|
3726
3735
|
disabled: r,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3736
|
+
displayType: i ? "icon-start" : "label-only",
|
|
3737
|
+
iconName: i,
|
|
3738
|
+
label: f.label,
|
|
3739
|
+
onClick: () => f.callback(),
|
|
3740
|
+
size: s,
|
|
3741
|
+
variant: c
|
|
3731
3742
|
})), /* @__PURE__ */ e.createElement("span", {
|
|
3732
3743
|
className: Z([
|
|
3733
|
-
l,
|
|
3734
3744
|
u,
|
|
3745
|
+
d,
|
|
3735
3746
|
n
|
|
3736
3747
|
]),
|
|
3737
|
-
id:
|
|
3738
|
-
...
|
|
3739
|
-
},
|
|
3748
|
+
id: a,
|
|
3749
|
+
...l
|
|
3750
|
+
}, m, /* @__PURE__ */ e.createElement(tr, {
|
|
3740
3751
|
isSplitButton: !0,
|
|
3741
|
-
className: `${
|
|
3752
|
+
className: `${u}__menu-button`,
|
|
3742
3753
|
disabled: r,
|
|
3743
|
-
id: `${
|
|
3744
|
-
label:
|
|
3745
|
-
menuItems:
|
|
3746
|
-
size:
|
|
3754
|
+
id: `${a}-menu`,
|
|
3755
|
+
label: o,
|
|
3756
|
+
menuItems: p,
|
|
3757
|
+
size: s,
|
|
3747
3758
|
testId: null,
|
|
3748
|
-
variant:
|
|
3759
|
+
variant: c
|
|
3749
3760
|
}));
|
|
3750
3761
|
}, ir = ({ className: t, platformType: n, size: r = "2xl", ...i }) => {
|
|
3751
3762
|
let a = `pds-platform-icon--${n}`, o = `pds-platform-icon--${r}`;
|
|
@@ -7028,11 +7039,11 @@ var Hr = {
|
|
|
7028
7039
|
let re = R || y, ie = V !== void 0, ae = n !== void 0, oe = (e) => {
|
|
7029
7040
|
let t = A.find((t) => t.value === e);
|
|
7030
7041
|
return t ? t.label : "";
|
|
7031
|
-
}, [Y, X] = g(ae ? n : void 0), [ce, le] = g(ie ? V ?? "" : ae ? oe(n) : "");
|
|
7042
|
+
}, [Y, X] = g(ae ? n : void 0), [ce, le] = g(ie ? V ?? "" : ae ? oe(n) : ""), ue = s && !ce;
|
|
7032
7043
|
u(() => {
|
|
7033
7044
|
ie && le(V ?? "");
|
|
7034
7045
|
}, [ie, V]);
|
|
7035
|
-
let
|
|
7046
|
+
let de = h(null), fe = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
|
|
7036
7047
|
let a = r || e, o = [e, r];
|
|
7037
7048
|
return n && o.push(...n), {
|
|
7038
7049
|
label: e,
|
|
@@ -7041,8 +7052,8 @@ var Hr = {
|
|
|
7041
7052
|
optionDisplay: t,
|
|
7042
7053
|
...i
|
|
7043
7054
|
};
|
|
7044
|
-
}),
|
|
7045
|
-
let e =
|
|
7055
|
+
}), pe = m(() => {
|
|
7056
|
+
let e = fe(A);
|
|
7046
7057
|
if (!ce && !F) return [];
|
|
7047
7058
|
let t = (ce ?? "").toLowerCase();
|
|
7048
7059
|
return e.filter((e) => (e.searchIndex?.map((e) => e.toLowerCase()) ?? []).some((e) => e.includes(t)));
|
|
@@ -7051,10 +7062,10 @@ var Hr = {
|
|
|
7051
7062
|
ce,
|
|
7052
7063
|
F,
|
|
7053
7064
|
f
|
|
7054
|
-
]), { getInputProps:
|
|
7065
|
+
]), { getInputProps: me, getItemProps: he, getMenuProps: ge, highlightedIndex: _e, isOpen: ve, openMenu: ye, reset: be } = se({
|
|
7055
7066
|
id: l,
|
|
7056
7067
|
inputId: `input-${l}`,
|
|
7057
|
-
items:
|
|
7068
|
+
items: pe,
|
|
7058
7069
|
itemToString: (e) => e ? e.label : "",
|
|
7059
7070
|
inputValue: ce,
|
|
7060
7071
|
onInputValueChange: ({ inputValue: e }) => {
|
|
@@ -7080,8 +7091,8 @@ var Hr = {
|
|
|
7080
7091
|
}
|
|
7081
7092
|
return t;
|
|
7082
7093
|
}
|
|
7083
|
-
}), { context:
|
|
7084
|
-
open:
|
|
7094
|
+
}), { context: xe, floatingStyles: Se, refs: Ce } = M({
|
|
7095
|
+
open: ve,
|
|
7085
7096
|
whileElementsMounted: w,
|
|
7086
7097
|
placement: "bottom-start",
|
|
7087
7098
|
strategy: "absolute",
|
|
@@ -7104,7 +7115,7 @@ var Hr = {
|
|
|
7104
7115
|
}),
|
|
7105
7116
|
T({ padding: 24 })
|
|
7106
7117
|
]
|
|
7107
|
-
}), { isMounted:
|
|
7118
|
+
}), { isMounted: we, styles: Te } = z(xe, {
|
|
7108
7119
|
duration: {
|
|
7109
7120
|
open: 300,
|
|
7110
7121
|
close: 150
|
|
@@ -7112,20 +7123,20 @@ var Hr = {
|
|
|
7112
7123
|
initial: { opacity: 0 },
|
|
7113
7124
|
open: { opacity: 1 },
|
|
7114
7125
|
close: { opacity: 0 }
|
|
7115
|
-
}),
|
|
7116
|
-
|
|
7117
|
-
}, [U,
|
|
7118
|
-
|
|
7119
|
-
},
|
|
7120
|
-
ie || le(""), X(void 0),
|
|
7121
|
-
}, Oe = (e) => {
|
|
7122
|
-
x?.(Y);
|
|
7126
|
+
}), Ee = c((e) => {
|
|
7127
|
+
Ce.setReference(e), typeof U == "function" ? U(e) : U && "current" in U && (U.current = e);
|
|
7128
|
+
}, [U, Ce]), De = () => {
|
|
7129
|
+
ve ? be() : ye();
|
|
7130
|
+
}, Oe = () => {
|
|
7131
|
+
ie || le(""), X(void 0), be(), de.current?.focus(), F && ye(), C?.();
|
|
7123
7132
|
}, ke = (e) => {
|
|
7124
|
-
|
|
7125
|
-
}, Ae = () =>
|
|
7133
|
+
x?.(Y);
|
|
7134
|
+
}, Ae = (e) => {
|
|
7135
|
+
F && ye(), D?.(Y);
|
|
7136
|
+
}, je = () => pe.map((t, n) => /* @__PURE__ */ e.createElement(gn, {
|
|
7126
7137
|
key: t.value,
|
|
7127
|
-
className:
|
|
7128
|
-
...
|
|
7138
|
+
className: _e === n ? "pds-dropdown__item--focused" : "",
|
|
7139
|
+
...he({
|
|
7129
7140
|
item: t,
|
|
7130
7141
|
index: n
|
|
7131
7142
|
})
|
|
@@ -7151,59 +7162,59 @@ var Hr = {
|
|
|
7151
7162
|
showLabel: P,
|
|
7152
7163
|
tooltipText: L
|
|
7153
7164
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
7154
|
-
ref:
|
|
7165
|
+
ref: Ee,
|
|
7155
7166
|
"aria-describedby": re ? `${l}__message` : null,
|
|
7156
7167
|
"aria-disabled": r ? !0 : null,
|
|
7157
7168
|
"aria-invalid": B === "error" ? !0 : null,
|
|
7158
7169
|
"aria-required": N ? !0 : null,
|
|
7159
|
-
className: `${G}__input-wrapper`,
|
|
7170
|
+
className: Z([`${G}__input-wrapper`, ue ? `${G}__input-wrapper--has-search-shortcut` : null]),
|
|
7160
7171
|
id: l
|
|
7161
7172
|
}, ne && /* @__PURE__ */ e.createElement(un, { variant: ne }), /* @__PURE__ */ e.createElement("input", {
|
|
7162
|
-
ref:
|
|
7173
|
+
ref: de,
|
|
7163
7174
|
autoComplete: "off",
|
|
7164
7175
|
className: `${G}__input`,
|
|
7165
7176
|
id: `input-${l}`,
|
|
7166
|
-
...
|
|
7177
|
+
...me({
|
|
7167
7178
|
"aria-label": _.inputInstructions,
|
|
7168
7179
|
disabled: r,
|
|
7169
7180
|
placeholder: j,
|
|
7170
|
-
onBlur:
|
|
7181
|
+
onBlur: ke,
|
|
7171
7182
|
onChange: (e) => {
|
|
7172
7183
|
S?.(e);
|
|
7173
7184
|
},
|
|
7174
|
-
onFocus:
|
|
7185
|
+
onFocus: Ae
|
|
7175
7186
|
})
|
|
7176
7187
|
}), ce && i && /* @__PURE__ */ e.createElement(fn, {
|
|
7177
7188
|
clearLabel: _.clearButton,
|
|
7178
|
-
handleClearInput:
|
|
7189
|
+
handleClearInput: Oe,
|
|
7179
7190
|
id: `input-${l}`
|
|
7180
|
-
}),
|
|
7191
|
+
}), ue && /* @__PURE__ */ e.createElement(dn, {
|
|
7181
7192
|
inputId: `input-${l}`,
|
|
7182
7193
|
shortcutLabel: _.searchShortcut
|
|
7183
7194
|
}), a && /* @__PURE__ */ e.createElement("button", {
|
|
7184
|
-
"aria-expanded":
|
|
7195
|
+
"aria-expanded": ve,
|
|
7185
7196
|
"aria-label": _.triggerButton,
|
|
7186
7197
|
className: `${G}__trigger`,
|
|
7187
7198
|
disabled: r,
|
|
7188
|
-
onClick:
|
|
7199
|
+
onClick: De,
|
|
7189
7200
|
type: "button"
|
|
7190
7201
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7191
7202
|
className: `${G}__trigger-icon`,
|
|
7192
7203
|
iconName: "angleDown",
|
|
7193
7204
|
size: "m"
|
|
7194
7205
|
}))), /* @__PURE__ */ e.createElement("div", {
|
|
7195
|
-
ref:
|
|
7206
|
+
ref: Ce.setFloating,
|
|
7196
7207
|
className: `pds-dropdown__panel ${G}__dropdown`,
|
|
7197
|
-
style:
|
|
7198
|
-
...
|
|
7199
|
-
...
|
|
7208
|
+
style: we ? {
|
|
7209
|
+
...Se,
|
|
7210
|
+
...Te,
|
|
7200
7211
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7201
7212
|
} : { display: "none" }
|
|
7202
|
-
},
|
|
7213
|
+
}, we && f && /* @__PURE__ */ e.createElement("div", { className: `${G}__loading` }, v), we && !f && pe.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
|
|
7203
7214
|
className: `${G}__options`,
|
|
7204
|
-
...
|
|
7205
|
-
style:
|
|
7206
|
-
},
|
|
7215
|
+
...ge(),
|
|
7216
|
+
style: we && !f && pe.length > 0 ? void 0 : { display: "none" }
|
|
7217
|
+
}, we && !f && je())), re && /* @__PURE__ */ e.createElement(cn, {
|
|
7207
7218
|
hasValidationMessage: !!R,
|
|
7208
7219
|
id: l,
|
|
7209
7220
|
message: re,
|
|
@@ -8452,6 +8463,8 @@ var Hr = {
|
|
|
8452
8463
|
R || B(e.target.value), d && d(e);
|
|
8453
8464
|
}, U = (e) => {
|
|
8454
8465
|
u && u(e);
|
|
8466
|
+
}, W = (e) => {
|
|
8467
|
+
m && e.preventDefault();
|
|
8455
8468
|
};
|
|
8456
8469
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8457
8470
|
className: Z([
|
|
@@ -8491,6 +8504,7 @@ var Hr = {
|
|
|
8491
8504
|
onBlur: U,
|
|
8492
8505
|
onChange: H,
|
|
8493
8506
|
onFocus: f,
|
|
8507
|
+
onMouseDown: W,
|
|
8494
8508
|
placeholder: p,
|
|
8495
8509
|
readOnly: m,
|
|
8496
8510
|
required: h,
|
|
@@ -8514,8 +8528,10 @@ var Hr = {
|
|
|
8514
8528
|
}, type: O = "text", validationMessage: k, validationStatus: A, value: j, ...M }, N) => {
|
|
8515
8529
|
let P = rn(d), F = "pds-text-input", I = a ? $.disabled : null, L = x && !a ? $.required : null, R = A === "error" ? $.error : null, z = A === "success" ? $.success : null, B = b ? $.readonly : null, V = T === "s" ? null : `${F}--${T}`, H = c && O === "url" ? `${F}--has-url-prefix` : null, U = null;
|
|
8516
8530
|
O === "search" && (U = "search"), O === "search" && S === "filter" && (U = "filter"), A === "error" && (U = "error"), A === "success" && (U = "success");
|
|
8517
|
-
let W = k || p, G = j !== void 0, [K, q] = g(i === void 0 ? "" : i), J = j || K, ee = (e) => {
|
|
8518
|
-
|
|
8531
|
+
let W = k || p, G = j !== void 0, [K, q] = g(i === void 0 ? "" : i), J = j || K, ee = s && O === "search" && !J, te = (e) => {
|
|
8532
|
+
b && e.preventDefault();
|
|
8533
|
+
}, ne = (e) => {
|
|
8534
|
+
if (w && ae && oe(!1), c && O === "url") {
|
|
8519
8535
|
let t = an(e.target.value), n = {
|
|
8520
8536
|
...e,
|
|
8521
8537
|
target: {
|
|
@@ -8525,7 +8541,7 @@ var Hr = {
|
|
|
8525
8541
|
};
|
|
8526
8542
|
m && m(n);
|
|
8527
8543
|
} else m && m(e);
|
|
8528
|
-
},
|
|
8544
|
+
}, re = (e) => {
|
|
8529
8545
|
if (c && O === "url") {
|
|
8530
8546
|
let t = an(e.target.value), n = {
|
|
8531
8547
|
...e,
|
|
@@ -8536,16 +8552,16 @@ var Hr = {
|
|
|
8536
8552
|
};
|
|
8537
8553
|
G || q(t), h && h(n);
|
|
8538
8554
|
} else G || q(e.target.value), h && h(e);
|
|
8539
|
-
},
|
|
8555
|
+
}, ie = () => {
|
|
8540
8556
|
G || q(""), _ && _();
|
|
8541
8557
|
let e = document.getElementById(l);
|
|
8542
8558
|
e && e.focus();
|
|
8543
|
-
}, [
|
|
8544
|
-
|
|
8559
|
+
}, [ae, oe] = g(!1), Y = () => {
|
|
8560
|
+
oe((e) => !e);
|
|
8545
8561
|
let e = document.getElementById(l);
|
|
8546
8562
|
e && e.focus();
|
|
8547
|
-
},
|
|
8548
|
-
return w && O === "password" && (
|
|
8563
|
+
}, se = O;
|
|
8564
|
+
return w && O === "password" && (se = ae ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
|
|
8549
8565
|
className: Z([
|
|
8550
8566
|
$.base,
|
|
8551
8567
|
F,
|
|
@@ -8570,7 +8586,11 @@ var Hr = {
|
|
|
8570
8586
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8571
8587
|
"aria-live": "polite",
|
|
8572
8588
|
className: "visually-hidden"
|
|
8573
|
-
}, `${D.visibilityStatus} ${
|
|
8589
|
+
}, `${D.visibilityStatus} ${ae ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
8590
|
+
`${F}__input-wrapper`,
|
|
8591
|
+
c && O === "url" ? `${F}__input-wrapper--has-prefix` : null,
|
|
8592
|
+
ee ? `${F}__input-wrapper--has-search-shortcut` : null
|
|
8593
|
+
]) }, U && /* @__PURE__ */ e.createElement(un, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ji, null), /* @__PURE__ */ e.createElement("input", {
|
|
8574
8594
|
ref: N,
|
|
8575
8595
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8576
8596
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8579,30 +8599,31 @@ var Hr = {
|
|
|
8579
8599
|
disabled: a,
|
|
8580
8600
|
id: l,
|
|
8581
8601
|
name: l,
|
|
8582
|
-
onBlur:
|
|
8583
|
-
onChange:
|
|
8602
|
+
onBlur: ne,
|
|
8603
|
+
onChange: re,
|
|
8584
8604
|
onFocus: v,
|
|
8605
|
+
onMouseDown: te,
|
|
8585
8606
|
placeholder: y,
|
|
8586
8607
|
readOnly: b,
|
|
8587
8608
|
required: x,
|
|
8588
|
-
type:
|
|
8609
|
+
type: se,
|
|
8589
8610
|
value: G ? j : K,
|
|
8590
8611
|
...u
|
|
8591
8612
|
}), o && J && /* @__PURE__ */ e.createElement(fn, {
|
|
8592
8613
|
clearLabel: D.clearButton,
|
|
8593
|
-
handleClearInput:
|
|
8614
|
+
handleClearInput: ie,
|
|
8594
8615
|
id: l
|
|
8595
8616
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("button", {
|
|
8596
8617
|
"aria-controls": l,
|
|
8597
8618
|
className: `${F}__visibility-toggle`,
|
|
8598
|
-
onClick:
|
|
8619
|
+
onClick: Y,
|
|
8599
8620
|
onMouseDown: (e) => e.preventDefault(),
|
|
8600
|
-
title:
|
|
8621
|
+
title: ae ? D.visibilityToggleHide : D.visibilityToggleShow,
|
|
8601
8622
|
type: "button"
|
|
8602
8623
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8603
|
-
iconName:
|
|
8624
|
+
iconName: ae ? "eyeSlash" : "eye",
|
|
8604
8625
|
size: "m"
|
|
8605
|
-
})),
|
|
8626
|
+
})), ee && /* @__PURE__ */ e.createElement(dn, {
|
|
8606
8627
|
inputId: l,
|
|
8607
8628
|
shortcutLabel: D.searchShortcut
|
|
8608
8629
|
}), r && O !== "password" && /* @__PURE__ */ e.createElement(pn, {
|
|
@@ -8713,7 +8734,9 @@ var Hr = {
|
|
|
8713
8734
|
}, Hi = (e) => e.map((e) => `${Bi(e)}${e.links ? `[${Hi(e.links)}]` : ""}`).join("|"), Ui = (e) => {
|
|
8714
8735
|
if (s(e)) {
|
|
8715
8736
|
let t = e.type;
|
|
8716
|
-
|
|
8737
|
+
if (t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link") return !0;
|
|
8738
|
+
let n = e.props;
|
|
8739
|
+
return n.to !== void 0 || n.href !== void 0;
|
|
8717
8740
|
}
|
|
8718
8741
|
return !1;
|
|
8719
8742
|
}, Wi = (e, t) => {
|
|
@@ -8896,7 +8919,347 @@ var Hr = {
|
|
|
8896
8919
|
]),
|
|
8897
8920
|
...i
|
|
8898
8921
|
}, t);
|
|
8899
|
-
}, Yi =
|
|
8922
|
+
}, Yi = {
|
|
8923
|
+
light: "sunBright",
|
|
8924
|
+
dark: "moon",
|
|
8925
|
+
system: "circleHalfStroke"
|
|
8926
|
+
}, Xi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
8927
|
+
light: "Light",
|
|
8928
|
+
dark: "Dark",
|
|
8929
|
+
system: "System"
|
|
8930
|
+
}, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
|
|
8931
|
+
let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
|
|
8932
|
+
"light",
|
|
8933
|
+
"dark",
|
|
8934
|
+
"system"
|
|
8935
|
+
];
|
|
8936
|
+
if (s === "toggle") {
|
|
8937
|
+
let s = d.map((e) => ({
|
|
8938
|
+
iconName: Yi[e],
|
|
8939
|
+
label: r[e],
|
|
8940
|
+
value: e
|
|
8941
|
+
}));
|
|
8942
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
8943
|
+
className: Z([l, t]),
|
|
8944
|
+
...c
|
|
8945
|
+
}, /* @__PURE__ */ e.createElement(nr, {
|
|
8946
|
+
iconOnly: !0,
|
|
8947
|
+
id: n,
|
|
8948
|
+
label: u,
|
|
8949
|
+
onChange: (e) => i?.(e),
|
|
8950
|
+
options: s,
|
|
8951
|
+
size: a,
|
|
8952
|
+
value: o
|
|
8953
|
+
}));
|
|
8954
|
+
}
|
|
8955
|
+
let f = d.map((e) => ({
|
|
8956
|
+
callback: () => i?.(e),
|
|
8957
|
+
iconName: Yi[e],
|
|
8958
|
+
iconSize: "m",
|
|
8959
|
+
label: r[e]
|
|
8960
|
+
}));
|
|
8961
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
8962
|
+
className: Z([l, t]),
|
|
8963
|
+
...c
|
|
8964
|
+
}, /* @__PURE__ */ e.createElement(nn, {
|
|
8965
|
+
content: u,
|
|
8966
|
+
customTrigger: /* @__PURE__ */ e.createElement(tr, {
|
|
8967
|
+
iconOnly: !0,
|
|
8968
|
+
"aria-label": u,
|
|
8969
|
+
iconName: Yi[o],
|
|
8970
|
+
id: n,
|
|
8971
|
+
label: "",
|
|
8972
|
+
menuItems: f,
|
|
8973
|
+
size: "m"
|
|
8974
|
+
}),
|
|
8975
|
+
offsetValue: 0,
|
|
8976
|
+
preferredPlacement: "top"
|
|
8977
|
+
}));
|
|
8978
|
+
}, Zi = ({ ariaLabel: t = "User menu", className: n, isMobileAccordion: r = !1, menuItems: i = [], onThemeChange: a, theme: o, themeLabel: s = "Theme", themeLabelStrings: c, userEmail: l, userImageSrc: u, userName: f, ...p }) => {
|
|
8979
|
+
let [m, _] = g(null), [v, y] = g(!1), b = Xt(), x = r && b, C = h([]), D = h([]), k = d(), N = "pds-user-menu", P = `${N}__menu`, { context: F, floatingStyles: B, refs: V } = M({
|
|
8980
|
+
placement: "bottom-end",
|
|
8981
|
+
open: v,
|
|
8982
|
+
onOpenChange: y,
|
|
8983
|
+
middleware: [
|
|
8984
|
+
E(12),
|
|
8985
|
+
T(),
|
|
8986
|
+
O()
|
|
8987
|
+
],
|
|
8988
|
+
whileElementsMounted: w,
|
|
8989
|
+
strategy: "fixed"
|
|
8990
|
+
}), H = A(F, { event: "mousedown" }), U = j(F), W = R(F, { role: "menu" }), G = h([]), { getFloatingProps: K, getItemProps: q, getReferenceProps: J } = I([
|
|
8991
|
+
U,
|
|
8992
|
+
W,
|
|
8993
|
+
H,
|
|
8994
|
+
L(F, {
|
|
8995
|
+
listRef: G,
|
|
8996
|
+
activeIndex: m,
|
|
8997
|
+
onNavigate: _,
|
|
8998
|
+
loop: !0,
|
|
8999
|
+
openOnArrowKeyDown: !0,
|
|
9000
|
+
focusItemOnOpen: !1,
|
|
9001
|
+
focusItemOnHover: !0
|
|
9002
|
+
})
|
|
9003
|
+
]), { isMounted: ee, styles: te } = z(F, {
|
|
9004
|
+
duration: {
|
|
9005
|
+
open: 300,
|
|
9006
|
+
close: 150
|
|
9007
|
+
},
|
|
9008
|
+
initial: { opacity: 0 },
|
|
9009
|
+
open: { opacity: 1 },
|
|
9010
|
+
close: { opacity: 0 }
|
|
9011
|
+
}), ne = /* @__PURE__ */ e.createElement(bt, {
|
|
9012
|
+
hasUserFallback: !0,
|
|
9013
|
+
className: `${N}__avatar`,
|
|
9014
|
+
imageSrc: u,
|
|
9015
|
+
size: "s",
|
|
9016
|
+
uniqueId: l
|
|
9017
|
+
}), re = /* @__PURE__ */ e.createElement("li", {
|
|
9018
|
+
className: `${N}__user-details`,
|
|
9019
|
+
role: "presentation"
|
|
9020
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${N}__user-name` }, f), /* @__PURE__ */ e.createElement("div", { className: `${N}__user-email` }, l)), ie = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9021
|
+
className: `${N}__theme-row`,
|
|
9022
|
+
role: "presentation"
|
|
9023
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${N}__theme-label` }, s), /* @__PURE__ */ e.createElement(Xi, {
|
|
9024
|
+
id: `${k}-theme`,
|
|
9025
|
+
labelStrings: c,
|
|
9026
|
+
onChange: a,
|
|
9027
|
+
size: "s",
|
|
9028
|
+
theme: o,
|
|
9029
|
+
variant: "toggle"
|
|
9030
|
+
})) : null;
|
|
9031
|
+
i.forEach((e, t) => {
|
|
9032
|
+
let n = e.id ? e.id : `${k}-item-${t}`;
|
|
9033
|
+
C.current.push(n), D.current.push(e);
|
|
9034
|
+
});
|
|
9035
|
+
let ae = (e) => {
|
|
9036
|
+
let t = C.current.indexOf(e), n = D.current[t];
|
|
9037
|
+
n.linkContent && !n.disabled && (G.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
|
|
9038
|
+
}, oe = (e) => {
|
|
9039
|
+
e.preventDefault(), e.key === "Enter" && ae(e.currentTarget.id);
|
|
9040
|
+
}, Y = (e) => {
|
|
9041
|
+
ae(e.currentTarget.id);
|
|
9042
|
+
}, se = i.map((t, n) => {
|
|
9043
|
+
let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9044
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
9045
|
+
key: r,
|
|
9046
|
+
ref: (e) => {
|
|
9047
|
+
G.current[n] = e;
|
|
9048
|
+
},
|
|
9049
|
+
"aria-disabled": t.disabled || void 0,
|
|
9050
|
+
className: Z([i, a]),
|
|
9051
|
+
id: r,
|
|
9052
|
+
onKeyDown: oe,
|
|
9053
|
+
role: "menuitem",
|
|
9054
|
+
tabIndex: m === n ? 0 : -1,
|
|
9055
|
+
...q({ onClick: (e) => Y(e) })
|
|
9056
|
+
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9057
|
+
className: `${N}__icon`,
|
|
9058
|
+
iconName: t.iconName,
|
|
9059
|
+
size: "m"
|
|
9060
|
+
}));
|
|
9061
|
+
}), X = i.map((t, n) => {
|
|
9062
|
+
let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9063
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
9064
|
+
key: r,
|
|
9065
|
+
"aria-disabled": t.disabled || void 0,
|
|
9066
|
+
className: Z([i, a]),
|
|
9067
|
+
id: `${r}-accordion`,
|
|
9068
|
+
onClick: () => {
|
|
9069
|
+
t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
|
|
9070
|
+
},
|
|
9071
|
+
role: "menuitem"
|
|
9072
|
+
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9073
|
+
className: `${N}__icon`,
|
|
9074
|
+
iconName: t.iconName,
|
|
9075
|
+
size: "m"
|
|
9076
|
+
}));
|
|
9077
|
+
}), ce = /* @__PURE__ */ e.createElement("span", { className: `${N}__toggle-left` }, ne, f ?? l);
|
|
9078
|
+
return /* @__PURE__ */ e.createElement("span", {
|
|
9079
|
+
className: Z([N, n ?? ""]),
|
|
9080
|
+
...p
|
|
9081
|
+
}, x ? /* @__PURE__ */ e.createElement(qn, { label: ce }, /* @__PURE__ */ e.createElement("ul", {
|
|
9082
|
+
className: Z([P, `${P}--mobile`]),
|
|
9083
|
+
role: "menu"
|
|
9084
|
+
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, X)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9085
|
+
ref: V.setReference,
|
|
9086
|
+
"aria-label": t,
|
|
9087
|
+
className: `${N}__trigger`,
|
|
9088
|
+
type: "button",
|
|
9089
|
+
...J()
|
|
9090
|
+
}, ne), ee && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9091
|
+
ref: V.setFloating,
|
|
9092
|
+
className: `${N}__dropdown`,
|
|
9093
|
+
style: {
|
|
9094
|
+
...B,
|
|
9095
|
+
zIndex: "var(--pds-z-index-dropdown)"
|
|
9096
|
+
},
|
|
9097
|
+
...K()
|
|
9098
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
|
|
9099
|
+
className: P,
|
|
9100
|
+
role: "menu"
|
|
9101
|
+
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, se))))));
|
|
9102
|
+
}, Qi = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", isMobileAccordion: o = !1, menuHeading: s = "Workspaces", minFilterItems: c = 8, noResultsText: l = "No results found", workspaceList: u = [], ...d }) => {
|
|
9103
|
+
let [f, _] = g(""), [v, y] = g(""), b = h(null), x = u.length >= c, C = Xt(), w = o && C, T = "pds-workspace-selector", E = `${T}__menu`, D = x ? `${E}--scroll` : null, { activeIndex: O, floatingStyles: k, getFloatingProps: A, getItemProps: j, getReferenceProps: M, isMounted: N, listRef: P, refs: F, setIsOpen: I, transitionStyles: L } = Pn({
|
|
9104
|
+
enableTypeahead: !x,
|
|
9105
|
+
role: "menu"
|
|
9106
|
+
}), R = u.find((e) => e.isActive);
|
|
9107
|
+
R || (R = u[0]);
|
|
9108
|
+
let z = h(null);
|
|
9109
|
+
p(() => {
|
|
9110
|
+
let e = z.current, t = e?.parentElement;
|
|
9111
|
+
if (!e || !t) return;
|
|
9112
|
+
let n = () => {
|
|
9113
|
+
t.style.width = "";
|
|
9114
|
+
let n = document.createRange();
|
|
9115
|
+
n.selectNodeContents(e);
|
|
9116
|
+
let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
|
|
9117
|
+
i > 0 && (t.style.width = `${Math.ceil(i)}px`);
|
|
9118
|
+
};
|
|
9119
|
+
n(), document.fonts?.ready.then(n);
|
|
9120
|
+
}, [R?.displayName]);
|
|
9121
|
+
let B = m(() => {
|
|
9122
|
+
if (!f) return u;
|
|
9123
|
+
let e = f.toLowerCase();
|
|
9124
|
+
return u.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9125
|
+
}, [u, f]), V = m(() => {
|
|
9126
|
+
if (!v) return u;
|
|
9127
|
+
let e = v.toLowerCase();
|
|
9128
|
+
return u.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9129
|
+
}, [u, v]), H = (e) => {
|
|
9130
|
+
e.preventDefault(), e.key === "Enter" && (P.current[O]?.querySelector("a") || P.current[O]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? x ? document.getElementById("workspace-filter")?.focus() : I(!1) : r ? b.current?.querySelector("a")?.focus() : I(!1));
|
|
9131
|
+
}, U = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${T}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9132
|
+
className: `${T}__list-avatar`,
|
|
9133
|
+
imageSrc: t.imageSrc,
|
|
9134
|
+
size: "s",
|
|
9135
|
+
uniqueId: t.workspaceId
|
|
9136
|
+
}), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${T}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
|
|
9137
|
+
className: `${T}__lock-icon`,
|
|
9138
|
+
iconName: "lock"
|
|
9139
|
+
}), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), W = B.map((t, n) => {
|
|
9140
|
+
let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
|
|
9141
|
+
P.current[n] = e;
|
|
9142
|
+
};
|
|
9143
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
9144
|
+
key: i,
|
|
9145
|
+
ref: s,
|
|
9146
|
+
className: Z([
|
|
9147
|
+
"pds-dropdown__item",
|
|
9148
|
+
r,
|
|
9149
|
+
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9150
|
+
t.isActive ? `${r}--active` : null,
|
|
9151
|
+
t.isUnprivileged ? `${r}--unprivileged` : null,
|
|
9152
|
+
t.isRestricted ? `${r}--restricted` : null
|
|
9153
|
+
]),
|
|
9154
|
+
id: i,
|
|
9155
|
+
onKeyDown: H,
|
|
9156
|
+
role: "menuitem",
|
|
9157
|
+
tabIndex: O === n ? 0 : -1,
|
|
9158
|
+
...j()
|
|
9159
|
+
}, a ? /* @__PURE__ */ e.createElement("button", {
|
|
9160
|
+
onClick: () => {
|
|
9161
|
+
t.onRestrictedSelection(), I(!1);
|
|
9162
|
+
},
|
|
9163
|
+
type: "button"
|
|
9164
|
+
}, U(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), U(t)) : null);
|
|
9165
|
+
}), G = V.map((t) => {
|
|
9166
|
+
let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
9167
|
+
return /* @__PURE__ */ e.createElement("li", {
|
|
9168
|
+
key: `${r}-accordion`,
|
|
9169
|
+
className: Z([
|
|
9170
|
+
"pds-dropdown__item",
|
|
9171
|
+
n,
|
|
9172
|
+
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9173
|
+
t.isActive ? `${n}--active` : null,
|
|
9174
|
+
t.isUnprivileged ? `${n}--unprivileged` : null,
|
|
9175
|
+
t.isRestricted ? `${n}--restricted` : null
|
|
9176
|
+
]),
|
|
9177
|
+
id: `${r}-accordion`,
|
|
9178
|
+
role: "menuitem"
|
|
9179
|
+
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
9180
|
+
onClick: () => t.onRestrictedSelection(),
|
|
9181
|
+
type: "button"
|
|
9182
|
+
}, U(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), U(t)) : null);
|
|
9183
|
+
}), K = r && /* @__PURE__ */ e.createElement("div", {
|
|
9184
|
+
ref: b,
|
|
9185
|
+
className: `${T}__create-link`
|
|
9186
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
9187
|
+
className: `${T}__create-link-inner`,
|
|
9188
|
+
onBlur: () => I(!1),
|
|
9189
|
+
onClick: () => I(!1)
|
|
9190
|
+
}, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9191
|
+
iconName: "plus",
|
|
9192
|
+
size: "s"
|
|
9193
|
+
}))), q = (t) => R ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9194
|
+
className: `${T}__avatar`,
|
|
9195
|
+
imageSrc: R.imageSrc,
|
|
9196
|
+
size: "s",
|
|
9197
|
+
uniqueId: R.workspaceId
|
|
9198
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${T}__name` }, /* @__PURE__ */ e.createElement("span", {
|
|
9199
|
+
ref: t,
|
|
9200
|
+
className: `${T}__name-text`
|
|
9201
|
+
}, R.displayName))) : null;
|
|
9202
|
+
return /* @__PURE__ */ e.createElement("span", {
|
|
9203
|
+
className: Z([T, n]),
|
|
9204
|
+
...d
|
|
9205
|
+
}, w ? /* @__PURE__ */ e.createElement(qn, { label: q() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9206
|
+
hasClearButton: !0,
|
|
9207
|
+
id: "workspace-filter-mobile",
|
|
9208
|
+
label: i,
|
|
9209
|
+
onChange: (e) => y(e.target.value),
|
|
9210
|
+
onClear: () => y(""),
|
|
9211
|
+
placeholder: a,
|
|
9212
|
+
showLabel: !1,
|
|
9213
|
+
type: "search"
|
|
9214
|
+
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9215
|
+
className: Z([E, `${E}--mobile`]),
|
|
9216
|
+
role: "menu"
|
|
9217
|
+
}, /* @__PURE__ */ e.createElement("li", {
|
|
9218
|
+
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
9219
|
+
role: "presentation"
|
|
9220
|
+
}, s), G.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : G), r && /* @__PURE__ */ e.createElement("div", { className: `${T}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${T}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9221
|
+
iconName: "plus",
|
|
9222
|
+
size: "s"
|
|
9223
|
+
})))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9224
|
+
ref: F.setReference,
|
|
9225
|
+
"aria-label": t,
|
|
9226
|
+
className: `${T}__trigger`,
|
|
9227
|
+
type: "button",
|
|
9228
|
+
...M()
|
|
9229
|
+
}, q(z), /* @__PURE__ */ e.createElement(Q, {
|
|
9230
|
+
className: `${T}__trigger-icon`,
|
|
9231
|
+
iconName: "angleDown",
|
|
9232
|
+
size: "m"
|
|
9233
|
+
})), N && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9234
|
+
ref: F.setFloating,
|
|
9235
|
+
className: `pds-dropdown__panel ${T}__dropdown`,
|
|
9236
|
+
style: {
|
|
9237
|
+
...k,
|
|
9238
|
+
...L,
|
|
9239
|
+
zIndex: "var(--pds-z-index-dropdown)"
|
|
9240
|
+
},
|
|
9241
|
+
...A()
|
|
9242
|
+
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9243
|
+
hasClearButton: !0,
|
|
9244
|
+
id: "workspace-filter",
|
|
9245
|
+
label: i,
|
|
9246
|
+
onChange: (e) => _(e.target.value),
|
|
9247
|
+
onClear: () => _(""),
|
|
9248
|
+
placeholder: a,
|
|
9249
|
+
showLabel: !1,
|
|
9250
|
+
type: "search"
|
|
9251
|
+
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9252
|
+
className: Z([E, D]),
|
|
9253
|
+
role: "menu"
|
|
9254
|
+
}, /* @__PURE__ */ e.createElement("li", {
|
|
9255
|
+
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
9256
|
+
role: "presentation"
|
|
9257
|
+
}, s), W.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : W), K))));
|
|
9258
|
+
}, $i = [
|
|
9259
|
+
tr,
|
|
9260
|
+
Zi,
|
|
9261
|
+
Qi
|
|
9262
|
+
], ea = (e) => t.map(e, (e) => s(e) && $i.includes(e.type) ? r(e, { isMobileAccordion: !0 }) : e), ta = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
|
|
8900
9263
|
closeMobileNav: "Close navigation area",
|
|
8901
9264
|
openMobileNav: "Open navigation area"
|
|
8902
9265
|
}, ...c }) => {
|
|
@@ -8966,7 +9329,7 @@ var Hr = {
|
|
|
8966
9329
|
className: "visually-hidden",
|
|
8967
9330
|
onClick: b,
|
|
8968
9331
|
type: "button"
|
|
8969
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ji, {
|
|
9332
|
+
}, s.closeMobileNav), ea(w), ea(T), ea(E))))) : /* @__PURE__ */ e.createElement(Ji, {
|
|
8970
9333
|
className: `${h}__inner`,
|
|
8971
9334
|
style: o ? { paddingInline: o } : void 0,
|
|
8972
9335
|
width: i
|
|
@@ -8974,7 +9337,7 @@ var Hr = {
|
|
|
8974
9337
|
"aria-hidden": "true",
|
|
8975
9338
|
className: `${h}__separator`
|
|
8976
9339
|
}), w && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-left` }, w)), T && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-center` }, T), E && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-right` }, E)));
|
|
8977
|
-
},
|
|
9340
|
+
}, na = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
8978
9341
|
submenu: "submenu",
|
|
8979
9342
|
toggle: "Toggle"
|
|
8980
9343
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...d }) => {
|
|
@@ -9064,7 +9427,7 @@ var Hr = {
|
|
|
9064
9427
|
]),
|
|
9065
9428
|
...d
|
|
9066
9429
|
}, S, i && C);
|
|
9067
|
-
},
|
|
9430
|
+
}, ra = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
9068
9431
|
let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Gi(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
9069
9432
|
p,
|
|
9070
9433
|
`${p}--${n}`,
|
|
@@ -9150,7 +9513,7 @@ var Hr = {
|
|
|
9150
9513
|
},
|
|
9151
9514
|
preferredPlacement: "right"
|
|
9152
9515
|
}) : m));
|
|
9153
|
-
},
|
|
9516
|
+
}, ia = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
9154
9517
|
submenu: "submenu",
|
|
9155
9518
|
toggle: "Toggle"
|
|
9156
9519
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
@@ -9179,7 +9542,7 @@ var Hr = {
|
|
|
9179
9542
|
role: "presentation"
|
|
9180
9543
|
}, t.label);
|
|
9181
9544
|
let a = Vi(t);
|
|
9182
|
-
return /* @__PURE__ */ e.createElement(
|
|
9545
|
+
return /* @__PURE__ */ e.createElement(ra, {
|
|
9183
9546
|
key: n,
|
|
9184
9547
|
icon: t.icon,
|
|
9185
9548
|
isActive: a,
|
|
@@ -9201,7 +9564,7 @@ var Hr = {
|
|
|
9201
9564
|
]),
|
|
9202
9565
|
...s
|
|
9203
9566
|
}, h);
|
|
9204
|
-
},
|
|
9567
|
+
}, aa = ({ items: t, label: n }) => {
|
|
9205
9568
|
let r = h(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = Pn({
|
|
9206
9569
|
offsetValue: 8,
|
|
9207
9570
|
openOnHover: !Xt()
|
|
@@ -9238,7 +9601,7 @@ var Hr = {
|
|
|
9238
9601
|
key: n,
|
|
9239
9602
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9240
9603
|
}, !t.isSeparator && t.linkContent)))));
|
|
9241
|
-
},
|
|
9604
|
+
}, oa = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9242
9605
|
let [a, o] = g(null), [s, c] = g(-1), [l, f] = g(null), [p, m] = g({
|
|
9243
9606
|
container: null,
|
|
9244
9607
|
containerChildren: []
|
|
@@ -9285,7 +9648,7 @@ var Hr = {
|
|
|
9285
9648
|
},
|
|
9286
9649
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9287
9650
|
id: i
|
|
9288
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9651
|
+
}, /* @__PURE__ */ e.createElement(aa, {
|
|
9289
9652
|
items: t.links,
|
|
9290
9653
|
label: t.label
|
|
9291
9654
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9304,7 +9667,7 @@ var Hr = {
|
|
|
9304
9667
|
},
|
|
9305
9668
|
...i
|
|
9306
9669
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9307
|
-
},
|
|
9670
|
+
}, sa = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9308
9671
|
let [s, c] = g(i), [l, d] = g(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, h = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setActiveIndex: O, transitionStyles: k } = Pn({
|
|
9309
9672
|
offsetValue: 8,
|
|
9310
9673
|
placement: "bottom-start",
|
|
@@ -9369,7 +9732,7 @@ var Hr = {
|
|
|
9369
9732
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9370
9733
|
} })
|
|
9371
9734
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([m, h]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : L)))));
|
|
9372
|
-
},
|
|
9735
|
+
}, ca = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
9373
9736
|
let o = "pds-tab-menu", c = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9374
9737
|
let u = `${o}__item`, d = Ri(c);
|
|
9375
9738
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
@@ -9382,7 +9745,7 @@ var Hr = {
|
|
|
9382
9745
|
iconName: n,
|
|
9383
9746
|
size: "m"
|
|
9384
9747
|
}), t.props.children)] })) : t), i;
|
|
9385
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
9748
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(sa, {
|
|
9386
9749
|
buttonLabel: t?.buttonLabel,
|
|
9387
9750
|
filterLabel: t?.filterLabel,
|
|
9388
9751
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9404,11 +9767,11 @@ var Hr = {
|
|
|
9404
9767
|
className: Z([o, n ?? ""]),
|
|
9405
9768
|
...a
|
|
9406
9769
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
|
|
9407
|
-
},
|
|
9770
|
+
}, la = {
|
|
9408
9771
|
2: "second",
|
|
9409
9772
|
3: "third",
|
|
9410
9773
|
4: "fourth"
|
|
9411
|
-
},
|
|
9774
|
+
}, ua = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9412
9775
|
submenu: "submenu",
|
|
9413
9776
|
toggle: "Toggle"
|
|
9414
9777
|
}, menuItems: a, ...o }) => {
|
|
@@ -9528,7 +9891,7 @@ var Hr = {
|
|
|
9528
9891
|
display: "none"
|
|
9529
9892
|
}), b();
|
|
9530
9893
|
}, j = (t, n, r) => {
|
|
9531
|
-
let a =
|
|
9894
|
+
let a = la[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Vi(n);
|
|
9532
9895
|
if (_.current && n.path) {
|
|
9533
9896
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9534
9897
|
if (e) {
|
|
@@ -9565,7 +9928,7 @@ var Hr = {
|
|
|
9565
9928
|
]),
|
|
9566
9929
|
"data-item-path": t.path || "",
|
|
9567
9930
|
role: "treeitem"
|
|
9568
|
-
}, t.links && d in
|
|
9931
|
+
}, t.links && d in la ? j(d, t, t.links) : t.linkContent);
|
|
9569
9932
|
})));
|
|
9570
9933
|
}, M = (t, n) => {
|
|
9571
9934
|
let { linkContent: r, links: i } = t, a = Vi(t);
|
|
@@ -9597,348 +9960,12 @@ var Hr = {
|
|
|
9597
9960
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9598
9961
|
role: "tree"
|
|
9599
9962
|
}, a.map((e, t) => M(e, t))));
|
|
9600
|
-
},
|
|
9601
|
-
light: "sunBright",
|
|
9602
|
-
dark: "moon",
|
|
9603
|
-
system: "circleHalfStroke"
|
|
9604
|
-
}, oa = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9605
|
-
light: "Light",
|
|
9606
|
-
dark: "Dark",
|
|
9607
|
-
system: "System"
|
|
9608
|
-
}, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
|
|
9609
|
-
let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
|
|
9610
|
-
"light",
|
|
9611
|
-
"dark",
|
|
9612
|
-
"system"
|
|
9613
|
-
];
|
|
9614
|
-
if (s === "toggle") {
|
|
9615
|
-
let s = d.map((e) => ({
|
|
9616
|
-
iconName: aa[e],
|
|
9617
|
-
label: r[e],
|
|
9618
|
-
value: e
|
|
9619
|
-
}));
|
|
9620
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
9621
|
-
className: Z([l, t]),
|
|
9622
|
-
...c
|
|
9623
|
-
}, /* @__PURE__ */ e.createElement(nr, {
|
|
9624
|
-
iconOnly: !0,
|
|
9625
|
-
id: n,
|
|
9626
|
-
label: u,
|
|
9627
|
-
onChange: (e) => i?.(e),
|
|
9628
|
-
options: s,
|
|
9629
|
-
size: a,
|
|
9630
|
-
value: o
|
|
9631
|
-
}));
|
|
9632
|
-
}
|
|
9633
|
-
let f = d.map((e) => ({
|
|
9634
|
-
callback: () => i?.(e),
|
|
9635
|
-
iconName: aa[e],
|
|
9636
|
-
iconSize: "m",
|
|
9637
|
-
label: r[e]
|
|
9638
|
-
}));
|
|
9639
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
9640
|
-
className: Z([l, t]),
|
|
9641
|
-
...c
|
|
9642
|
-
}, /* @__PURE__ */ e.createElement(nn, {
|
|
9643
|
-
content: u,
|
|
9644
|
-
customTrigger: /* @__PURE__ */ e.createElement(tr, {
|
|
9645
|
-
iconOnly: !0,
|
|
9646
|
-
"aria-label": u,
|
|
9647
|
-
iconName: aa[o],
|
|
9648
|
-
id: n,
|
|
9649
|
-
label: "",
|
|
9650
|
-
menuItems: f,
|
|
9651
|
-
size: "m"
|
|
9652
|
-
}),
|
|
9653
|
-
offsetValue: 0,
|
|
9654
|
-
preferredPlacement: "top"
|
|
9655
|
-
}));
|
|
9656
|
-
}, sa = ({ ariaLabel: t = "User menu", className: n, menuItems: r = [], onThemeChange: i, theme: a, themeLabel: o = "Theme", themeLabelStrings: s, userEmail: c, userImageSrc: l, userName: u, ...f }) => {
|
|
9657
|
-
let [p, m] = g(null), [_, v] = g(!1), y = h([]), b = h([]), x = d(), C = "pds-user-menu", D = `${C}__menu`, { context: k, floatingStyles: N, refs: P } = M({
|
|
9658
|
-
placement: "bottom-end",
|
|
9659
|
-
open: _,
|
|
9660
|
-
onOpenChange: v,
|
|
9661
|
-
middleware: [
|
|
9662
|
-
E(12),
|
|
9663
|
-
T(),
|
|
9664
|
-
O()
|
|
9665
|
-
],
|
|
9666
|
-
whileElementsMounted: w,
|
|
9667
|
-
strategy: "fixed"
|
|
9668
|
-
}), F = A(k, { event: "mousedown" }), B = j(k), V = R(k, { role: "menu" }), H = h([]), { getFloatingProps: U, getItemProps: W, getReferenceProps: G } = I([
|
|
9669
|
-
B,
|
|
9670
|
-
V,
|
|
9671
|
-
F,
|
|
9672
|
-
L(k, {
|
|
9673
|
-
listRef: H,
|
|
9674
|
-
activeIndex: p,
|
|
9675
|
-
onNavigate: m,
|
|
9676
|
-
loop: !0,
|
|
9677
|
-
openOnArrowKeyDown: !0,
|
|
9678
|
-
focusItemOnOpen: !1,
|
|
9679
|
-
focusItemOnHover: !0
|
|
9680
|
-
})
|
|
9681
|
-
]), { isMounted: K, styles: q } = z(k, {
|
|
9682
|
-
duration: {
|
|
9683
|
-
open: 300,
|
|
9684
|
-
close: 150
|
|
9685
|
-
},
|
|
9686
|
-
initial: { opacity: 0 },
|
|
9687
|
-
open: { opacity: 1 },
|
|
9688
|
-
close: { opacity: 0 }
|
|
9689
|
-
}), J = /* @__PURE__ */ e.createElement(bt, {
|
|
9690
|
-
hasUserFallback: !0,
|
|
9691
|
-
className: `${C}__avatar`,
|
|
9692
|
-
imageSrc: l,
|
|
9693
|
-
size: "s",
|
|
9694
|
-
uniqueId: c
|
|
9695
|
-
}), ee = /* @__PURE__ */ e.createElement("li", {
|
|
9696
|
-
className: `${C}__user-details`,
|
|
9697
|
-
role: "presentation"
|
|
9698
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, u), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, c)), te = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
|
|
9699
|
-
className: `${C}__theme-row`,
|
|
9700
|
-
role: "presentation"
|
|
9701
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(oa, {
|
|
9702
|
-
id: `${x}-theme`,
|
|
9703
|
-
labelStrings: s,
|
|
9704
|
-
onChange: i,
|
|
9705
|
-
size: "s",
|
|
9706
|
-
theme: a,
|
|
9707
|
-
variant: "toggle"
|
|
9708
|
-
})) : null;
|
|
9709
|
-
r.forEach((e, t) => {
|
|
9710
|
-
let n = e.id ? e.id : `${x}-item-${t}`;
|
|
9711
|
-
y.current.push(n), b.current.push(e);
|
|
9712
|
-
});
|
|
9713
|
-
let ne = (e) => {
|
|
9714
|
-
let t = y.current.indexOf(e), n = b.current[t];
|
|
9715
|
-
n.linkContent && !n.disabled && (H.current[t].querySelector("a").click(), v(!1)), n.callback && !n.disabled && (n.callback(), v(!1));
|
|
9716
|
-
}, re = (e) => {
|
|
9717
|
-
e.preventDefault(), e.key === "Enter" && ne(e.currentTarget.id);
|
|
9718
|
-
}, ie = (e) => {
|
|
9719
|
-
ne(e.currentTarget.id);
|
|
9720
|
-
}, ae = r.map((t, n) => {
|
|
9721
|
-
let r = y.current[n], i = `${C}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9722
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9723
|
-
key: r,
|
|
9724
|
-
ref: (e) => {
|
|
9725
|
-
H.current[n] = e;
|
|
9726
|
-
},
|
|
9727
|
-
"aria-disabled": t.disabled || void 0,
|
|
9728
|
-
className: Z([i, a]),
|
|
9729
|
-
id: r,
|
|
9730
|
-
onKeyDown: re,
|
|
9731
|
-
role: "menuitem",
|
|
9732
|
-
tabIndex: p === n ? 0 : -1,
|
|
9733
|
-
...W({ onClick: (e) => ie(e) })
|
|
9734
|
-
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9735
|
-
className: `${C}__icon`,
|
|
9736
|
-
iconName: t.iconName,
|
|
9737
|
-
size: "m"
|
|
9738
|
-
}));
|
|
9739
|
-
}), oe = r.map((t, n) => {
|
|
9740
|
-
let r = y.current[n], i = `${C}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9741
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9742
|
-
key: r,
|
|
9743
|
-
"aria-disabled": t.disabled || void 0,
|
|
9744
|
-
className: Z([i, a]),
|
|
9745
|
-
id: `${r}-accordion`,
|
|
9746
|
-
onClick: () => {
|
|
9747
|
-
t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
|
|
9748
|
-
},
|
|
9749
|
-
role: "menuitem"
|
|
9750
|
-
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9751
|
-
className: `${C}__icon`,
|
|
9752
|
-
iconName: t.iconName,
|
|
9753
|
-
size: "m"
|
|
9754
|
-
}));
|
|
9755
|
-
}), Y = /* @__PURE__ */ e.createElement("span", { className: `${C}__toggle-left` }, J, u ?? c);
|
|
9756
|
-
return /* @__PURE__ */ e.createElement("span", {
|
|
9757
|
-
className: Z([C, n ?? ""]),
|
|
9758
|
-
...f
|
|
9759
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: Y }, /* @__PURE__ */ e.createElement("ul", {
|
|
9760
|
-
className: Z([D, `${D}--mobile`]),
|
|
9761
|
-
role: "menu"
|
|
9762
|
-
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, oe)), /* @__PURE__ */ e.createElement("button", {
|
|
9763
|
-
ref: P.setReference,
|
|
9764
|
-
"aria-label": t,
|
|
9765
|
-
className: `${C}__trigger`,
|
|
9766
|
-
type: "button",
|
|
9767
|
-
...G()
|
|
9768
|
-
}, J), K && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9769
|
-
ref: P.setFloating,
|
|
9770
|
-
className: `${C}__dropdown`,
|
|
9771
|
-
style: {
|
|
9772
|
-
...N,
|
|
9773
|
-
zIndex: "var(--pds-z-index-dropdown)"
|
|
9774
|
-
},
|
|
9775
|
-
...U()
|
|
9776
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...q } }, /* @__PURE__ */ e.createElement("ul", {
|
|
9777
|
-
className: D,
|
|
9778
|
-
role: "menu"
|
|
9779
|
-
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, ae)))));
|
|
9780
|
-
}, ca = ({ 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 }) => {
|
|
9781
|
-
let [d, f] = g(""), [_, v] = g(""), y = h(null), b = l.length >= s, x = "pds-workspace-selector", C = `${x}__menu`, w = b ? `${C}--scroll` : null, { activeIndex: T, floatingStyles: E, getFloatingProps: D, getItemProps: O, getReferenceProps: k, isMounted: A, listRef: j, refs: M, setIsOpen: N, transitionStyles: P } = Pn({
|
|
9782
|
-
enableTypeahead: !b,
|
|
9783
|
-
role: "menu"
|
|
9784
|
-
}), F = l.find((e) => e.isActive);
|
|
9785
|
-
F || (F = l[0]);
|
|
9786
|
-
let I = h(null);
|
|
9787
|
-
p(() => {
|
|
9788
|
-
let e = I.current, t = e?.parentElement;
|
|
9789
|
-
if (!e || !t) return;
|
|
9790
|
-
let n = () => {
|
|
9791
|
-
t.style.width = "";
|
|
9792
|
-
let n = document.createRange();
|
|
9793
|
-
n.selectNodeContents(e);
|
|
9794
|
-
let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
|
|
9795
|
-
i > 0 && (t.style.width = `${Math.ceil(i)}px`);
|
|
9796
|
-
};
|
|
9797
|
-
n(), document.fonts?.ready.then(n);
|
|
9798
|
-
}, [F?.displayName]);
|
|
9799
|
-
let L = m(() => {
|
|
9800
|
-
if (!d) return l;
|
|
9801
|
-
let e = d.toLowerCase();
|
|
9802
|
-
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9803
|
-
}, [l, d]), R = m(() => {
|
|
9804
|
-
if (!_) return l;
|
|
9805
|
-
let e = _.toLowerCase();
|
|
9806
|
-
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9807
|
-
}, [l, _]), z = (e) => {
|
|
9808
|
-
e.preventDefault(), e.key === "Enter" && (j.current[T]?.querySelector("a") || j.current[T]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? b ? document.getElementById("workspace-filter")?.focus() : N(!1) : r ? y.current?.querySelector("a")?.focus() : N(!1));
|
|
9809
|
-
}, B = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${x}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9810
|
-
className: `${x}__list-avatar`,
|
|
9811
|
-
imageSrc: t.imageSrc,
|
|
9812
|
-
size: "s",
|
|
9813
|
-
uniqueId: t.workspaceId
|
|
9814
|
-
}), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${x}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
|
|
9815
|
-
className: `${x}__lock-icon`,
|
|
9816
|
-
iconName: "lock"
|
|
9817
|
-
}), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), V = L.map((t, n) => {
|
|
9818
|
-
let r = `${x}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
|
|
9819
|
-
j.current[n] = e;
|
|
9820
|
-
};
|
|
9821
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9822
|
-
key: i,
|
|
9823
|
-
ref: s,
|
|
9824
|
-
className: Z([
|
|
9825
|
-
"pds-dropdown__item",
|
|
9826
|
-
r,
|
|
9827
|
-
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9828
|
-
t.isActive ? `${r}--active` : null,
|
|
9829
|
-
t.isUnprivileged ? `${r}--unprivileged` : null,
|
|
9830
|
-
t.isRestricted ? `${r}--restricted` : null
|
|
9831
|
-
]),
|
|
9832
|
-
id: i,
|
|
9833
|
-
onKeyDown: z,
|
|
9834
|
-
role: "menuitem",
|
|
9835
|
-
tabIndex: T === n ? 0 : -1,
|
|
9836
|
-
...O()
|
|
9837
|
-
}, a ? /* @__PURE__ */ e.createElement("button", {
|
|
9838
|
-
onClick: () => {
|
|
9839
|
-
t.onRestrictedSelection(), N(!1);
|
|
9840
|
-
},
|
|
9841
|
-
type: "button"
|
|
9842
|
-
}, B(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => N(!1) }), B(t)) : null);
|
|
9843
|
-
}), H = R.map((t) => {
|
|
9844
|
-
let n = `${x}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
9845
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9846
|
-
key: `${r}-accordion`,
|
|
9847
|
-
className: Z([
|
|
9848
|
-
"pds-dropdown__item",
|
|
9849
|
-
n,
|
|
9850
|
-
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9851
|
-
t.isActive ? `${n}--active` : null,
|
|
9852
|
-
t.isUnprivileged ? `${n}--unprivileged` : null,
|
|
9853
|
-
t.isRestricted ? `${n}--restricted` : null
|
|
9854
|
-
]),
|
|
9855
|
-
id: `${r}-accordion`,
|
|
9856
|
-
role: "menuitem"
|
|
9857
|
-
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
9858
|
-
onClick: () => t.onRestrictedSelection(),
|
|
9859
|
-
type: "button"
|
|
9860
|
-
}, B(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), B(t)) : null);
|
|
9861
|
-
}), U = r && /* @__PURE__ */ e.createElement("div", {
|
|
9862
|
-
ref: y,
|
|
9863
|
-
className: `${x}__create-link`
|
|
9864
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
9865
|
-
className: `${x}__create-link-inner`,
|
|
9866
|
-
onBlur: () => N(!1),
|
|
9867
|
-
onClick: () => N(!1)
|
|
9868
|
-
}, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9869
|
-
iconName: "plus",
|
|
9870
|
-
size: "s"
|
|
9871
|
-
}))), W = (t) => F ? /* @__PURE__ */ e.createElement("div", { className: `${x}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9872
|
-
className: `${x}__avatar`,
|
|
9873
|
-
imageSrc: F.imageSrc,
|
|
9874
|
-
size: "s",
|
|
9875
|
-
uniqueId: F.workspaceId
|
|
9876
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${x}__name` }, /* @__PURE__ */ e.createElement("span", {
|
|
9877
|
-
ref: t,
|
|
9878
|
-
className: `${x}__name-text`
|
|
9879
|
-
}, F.displayName))) : null;
|
|
9880
|
-
return /* @__PURE__ */ e.createElement("span", {
|
|
9881
|
-
className: Z([x, n]),
|
|
9882
|
-
...u
|
|
9883
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9884
|
-
hasClearButton: !0,
|
|
9885
|
-
id: "workspace-filter-mobile",
|
|
9886
|
-
label: i,
|
|
9887
|
-
onChange: (e) => v(e.target.value),
|
|
9888
|
-
onClear: () => v(""),
|
|
9889
|
-
placeholder: a,
|
|
9890
|
-
showLabel: !1,
|
|
9891
|
-
type: "search"
|
|
9892
|
-
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9893
|
-
className: Z([C, `${C}--mobile`]),
|
|
9894
|
-
role: "menu"
|
|
9895
|
-
}, /* @__PURE__ */ e.createElement("li", {
|
|
9896
|
-
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9897
|
-
role: "presentation"
|
|
9898
|
-
}, o), H.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : H), r && /* @__PURE__ */ e.createElement("div", { className: `${x}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${x}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9899
|
-
iconName: "plus",
|
|
9900
|
-
size: "s"
|
|
9901
|
-
})))), /* @__PURE__ */ e.createElement("button", {
|
|
9902
|
-
ref: M.setReference,
|
|
9903
|
-
"aria-label": t,
|
|
9904
|
-
className: `${x}__trigger`,
|
|
9905
|
-
type: "button",
|
|
9906
|
-
...k()
|
|
9907
|
-
}, W(I), /* @__PURE__ */ e.createElement(Q, {
|
|
9908
|
-
className: `${x}__trigger-icon`,
|
|
9909
|
-
iconName: "angleDown",
|
|
9910
|
-
size: "m"
|
|
9911
|
-
})), A && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9912
|
-
ref: M.setFloating,
|
|
9913
|
-
className: `pds-dropdown__panel ${x}__dropdown`,
|
|
9914
|
-
style: {
|
|
9915
|
-
...E,
|
|
9916
|
-
...P,
|
|
9917
|
-
zIndex: "var(--pds-z-index-dropdown)"
|
|
9918
|
-
},
|
|
9919
|
-
...D()
|
|
9920
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9921
|
-
hasClearButton: !0,
|
|
9922
|
-
id: "workspace-filter",
|
|
9923
|
-
label: i,
|
|
9924
|
-
onChange: (e) => f(e.target.value),
|
|
9925
|
-
onClear: () => f(""),
|
|
9926
|
-
placeholder: a,
|
|
9927
|
-
showLabel: !1,
|
|
9928
|
-
type: "search"
|
|
9929
|
-
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9930
|
-
className: Z([C, w]),
|
|
9931
|
-
role: "menu"
|
|
9932
|
-
}, /* @__PURE__ */ e.createElement("li", {
|
|
9933
|
-
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9934
|
-
role: "presentation"
|
|
9935
|
-
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9936
|
-
}, la = {
|
|
9963
|
+
}, da = {
|
|
9937
9964
|
info: "circleInfo",
|
|
9938
9965
|
warning: "triangleExclamation",
|
|
9939
9966
|
critical: "diamondExclamation",
|
|
9940
9967
|
discovery: "bullhorn"
|
|
9941
|
-
},
|
|
9968
|
+
}, fa = 200, pa = 50, ma = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
|
|
9942
9969
|
...Jn,
|
|
9943
9970
|
neutral: "Notice"
|
|
9944
9971
|
}, ...c }) => {
|
|
@@ -9957,21 +9984,21 @@ var Hr = {
|
|
|
9957
9984
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9958
9985
|
m(d[0].id), setTimeout(() => {
|
|
9959
9986
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9960
|
-
},
|
|
9987
|
+
}, fa);
|
|
9961
9988
|
}, k = () => {
|
|
9962
9989
|
y({
|
|
9963
9990
|
[d[0].id]: 502,
|
|
9964
9991
|
[d[b - 1].id]: 501
|
|
9965
9992
|
}), setTimeout(() => {
|
|
9966
9993
|
m(d[0].id);
|
|
9967
|
-
},
|
|
9994
|
+
}, pa), setTimeout(() => {
|
|
9968
9995
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9969
|
-
},
|
|
9996
|
+
}, fa);
|
|
9970
9997
|
}, A = (t, n) => {
|
|
9971
9998
|
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", g = `${s[d]}: `, y = (e) => {
|
|
9972
9999
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9973
10000
|
u?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9974
|
-
},
|
|
10001
|
+
}, fa);
|
|
9975
10002
|
}, b = v[a] ?? E(n);
|
|
9976
10003
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9977
10004
|
key: a,
|
|
@@ -9986,7 +10013,7 @@ var Hr = {
|
|
|
9986
10013
|
style: { zIndex: b }
|
|
9987
10014
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
9988
10015
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
9989
|
-
iconName: d === "neutral" ? r :
|
|
10016
|
+
iconName: d === "neutral" ? r : da[d],
|
|
9990
10017
|
size: l ? "l" : "m"
|
|
9991
10018
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
9992
10019
|
className: `${x}__dismiss-button`,
|
|
@@ -10017,12 +10044,12 @@ var Hr = {
|
|
|
10017
10044
|
onClick: O,
|
|
10018
10045
|
size: "m"
|
|
10019
10046
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
10020
|
-
},
|
|
10047
|
+
}, ha = {
|
|
10021
10048
|
info: "circleInfo",
|
|
10022
10049
|
warning: "triangleExclamation",
|
|
10023
10050
|
success: "circleCheck",
|
|
10024
10051
|
critical: "diamondExclamation"
|
|
10025
|
-
},
|
|
10052
|
+
}, ga = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
10026
10053
|
...Jn,
|
|
10027
10054
|
working: "Working"
|
|
10028
10055
|
}, ...o }) => {
|
|
@@ -10042,70 +10069,71 @@ var Hr = {
|
|
|
10042
10069
|
]),
|
|
10043
10070
|
role: l,
|
|
10044
10071
|
...o
|
|
10045
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "
|
|
10046
|
-
iconName: `${i}` in
|
|
10047
|
-
size: "
|
|
10072
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10073
|
+
iconName: `${i}` in ha ? ha[i] : ha.info,
|
|
10074
|
+
size: "l"
|
|
10048
10075
|
})), /* @__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)));
|
|
10049
|
-
},
|
|
10076
|
+
}, _a = {
|
|
10050
10077
|
info: "circleInfo",
|
|
10051
10078
|
warning: "triangleExclamation",
|
|
10052
10079
|
success: "circleCheck",
|
|
10053
10080
|
critical: "diamondExclamation",
|
|
10054
10081
|
discovery: "squareQuestion"
|
|
10055
|
-
},
|
|
10056
|
-
let m =
|
|
10057
|
-
error: `${
|
|
10058
|
-
success: `${
|
|
10059
|
-
warning: `${
|
|
10060
|
-
info: `${
|
|
10061
|
-
critical: `${
|
|
10062
|
-
discovery: `${
|
|
10063
|
-
dismissing: `${
|
|
10064
|
-
dismissed: `${
|
|
10065
|
-
},
|
|
10082
|
+
}, va = ({ className: t, ctaButton: n, ctaIcon: r, dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: d = "info", typeLabels: f = Jn, ...p }) => {
|
|
10083
|
+
let m = h(null), g = h(void 0), _ = "pds-section-message", v = {
|
|
10084
|
+
error: `${_}--error`,
|
|
10085
|
+
success: `${_}--success`,
|
|
10086
|
+
warning: `${_}--warning`,
|
|
10087
|
+
info: `${_}--info`,
|
|
10088
|
+
critical: `${_}--critical`,
|
|
10089
|
+
discovery: `${_}--discovery`,
|
|
10090
|
+
dismissing: `${_}--dismissing`,
|
|
10091
|
+
dismissed: `${_}--dismissed`
|
|
10092
|
+
}, y = o ? `${_}--hasDismiss` : null, b = l ? `${_}--hasTitle` : null, x = d === "critical" ? "alert" : "status", S = `${f[d]}: `, C = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s;
|
|
10066
10093
|
u(() => () => {
|
|
10067
|
-
|
|
10094
|
+
g.current && clearTimeout(g.current);
|
|
10068
10095
|
}, []);
|
|
10069
|
-
let
|
|
10070
|
-
|
|
10071
|
-
},
|
|
10096
|
+
let w = () => {
|
|
10097
|
+
m.current?.addEventListener("animationend", T, { once: !0 });
|
|
10098
|
+
}, T = (e) => {
|
|
10072
10099
|
c?.(e, a);
|
|
10073
|
-
},
|
|
10074
|
-
|
|
10075
|
-
|
|
10100
|
+
}, E = () => {
|
|
10101
|
+
w(), m.current?.classList.toggle(v.dismissing), g.current = setTimeout(() => {
|
|
10102
|
+
m.current && (m.current.classList.toggle(v.dismissing), m.current.classList.toggle(v.dismissed));
|
|
10076
10103
|
}, 400);
|
|
10077
10104
|
};
|
|
10078
10105
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10079
|
-
ref:
|
|
10106
|
+
ref: m,
|
|
10080
10107
|
className: Z([
|
|
10081
|
-
|
|
10082
|
-
|
|
10108
|
+
_,
|
|
10109
|
+
v[d],
|
|
10110
|
+
y,
|
|
10083
10111
|
b,
|
|
10084
|
-
x,
|
|
10085
10112
|
t ?? ""
|
|
10086
10113
|
]),
|
|
10087
|
-
"data-context": r,
|
|
10088
10114
|
id: a,
|
|
10089
|
-
role:
|
|
10115
|
+
role: x,
|
|
10090
10116
|
...p
|
|
10091
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10092
|
-
iconName: `${d}` in
|
|
10093
|
-
size:
|
|
10094
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10117
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10118
|
+
iconName: `${d}` in _a ? _a[d] : _a.info,
|
|
10119
|
+
size: "l"
|
|
10120
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${_}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, S), l && /* @__PURE__ */ e.createElement("div", { className: `${_}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, C))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, n && /* @__PURE__ */ e.createElement(Dn, {
|
|
10095
10121
|
...n,
|
|
10096
|
-
className: `${
|
|
10097
|
-
|
|
10122
|
+
className: `${_}__cta`,
|
|
10123
|
+
displayType: r ? "icon-start" : n.displayType,
|
|
10124
|
+
iconName: r ?? n.iconName,
|
|
10125
|
+
size: "s",
|
|
10098
10126
|
variant: "secondary"
|
|
10099
10127
|
}), o && /* @__PURE__ */ e.createElement(Mn, {
|
|
10100
10128
|
ariaLabel: i,
|
|
10101
|
-
className: `${
|
|
10102
|
-
onClick:
|
|
10103
|
-
size:
|
|
10129
|
+
className: `${_}__dismiss`,
|
|
10130
|
+
onClick: E,
|
|
10131
|
+
size: "m"
|
|
10104
10132
|
})));
|
|
10105
|
-
},
|
|
10133
|
+
}, ya = 3e4, ba = {
|
|
10106
10134
|
pause: "Pause notification",
|
|
10107
10135
|
resume: "Resume notification"
|
|
10108
|
-
},
|
|
10136
|
+
}, xa = i({ labelStrings: ba }), Sa = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
|
|
10109
10137
|
ariaLabel: t || "Close",
|
|
10110
10138
|
className: "pds-toast__close-button",
|
|
10111
10139
|
onClick: (e) => {
|
|
@@ -10113,13 +10141,13 @@ var Hr = {
|
|
|
10113
10141
|
},
|
|
10114
10142
|
size: "s",
|
|
10115
10143
|
tabIndex: 0
|
|
10116
|
-
}),
|
|
10144
|
+
}), Ca = ({ className: t, labelStrings: n = ba, limit: r = 5, position: i = "bottom-right" }) => {
|
|
10117
10145
|
let a = Z(["pds-toaster", t]);
|
|
10118
|
-
return /* @__PURE__ */ e.createElement(
|
|
10146
|
+
return /* @__PURE__ */ e.createElement(xa.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
|
|
10119
10147
|
newestOnTop: !0,
|
|
10120
10148
|
autoClose: !1,
|
|
10121
10149
|
className: a,
|
|
10122
|
-
closeButton:
|
|
10150
|
+
closeButton: Sa,
|
|
10123
10151
|
draggable: !1,
|
|
10124
10152
|
icon: !1,
|
|
10125
10153
|
limit: r,
|
|
@@ -10129,25 +10157,25 @@ var Hr = {
|
|
|
10129
10157
|
role: "status",
|
|
10130
10158
|
transition: Re
|
|
10131
10159
|
}));
|
|
10132
|
-
},
|
|
10160
|
+
}, wa = {
|
|
10133
10161
|
info: "circleInfo",
|
|
10134
10162
|
success: "circleCheck",
|
|
10135
10163
|
warning: "triangleExclamation",
|
|
10136
10164
|
critical: "diamondExclamation"
|
|
10137
|
-
},
|
|
10165
|
+
}, Ta = {
|
|
10138
10166
|
info: "Information",
|
|
10139
10167
|
success: "Success",
|
|
10140
10168
|
warning: "Warning",
|
|
10141
10169
|
critical: "Critical",
|
|
10142
10170
|
working: "Working..."
|
|
10143
|
-
},
|
|
10171
|
+
}, Ea = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ta }) => {
|
|
10144
10172
|
let c = "pds-toast", u = {
|
|
10145
10173
|
critical: `${c}--critical`,
|
|
10146
10174
|
info: `${c}--info`,
|
|
10147
10175
|
success: `${c}--success`,
|
|
10148
10176
|
warning: `${c}--warning`,
|
|
10149
10177
|
working: `${c}--working`
|
|
10150
|
-
}, d = `${s[o]} `, { labelStrings: f } = l(
|
|
10178
|
+
}, d = `${s[o]} `, { labelStrings: f } = l(xa), [p, m] = g(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
10151
10179
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10152
10180
|
className: Z([
|
|
10153
10181
|
c,
|
|
@@ -10155,9 +10183,9 @@ var Hr = {
|
|
|
10155
10183
|
r
|
|
10156
10184
|
]),
|
|
10157
10185
|
id: i
|
|
10158
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "
|
|
10186
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10159
10187
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
10160
|
-
iconName:
|
|
10188
|
+
iconName: wa[o],
|
|
10161
10189
|
size: "l"
|
|
10162
10190
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
10163
10191
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -10172,11 +10200,11 @@ var Hr = {
|
|
|
10172
10200
|
iconName: p ? "play" : "pause",
|
|
10173
10201
|
size: "m"
|
|
10174
10202
|
})));
|
|
10175
|
-
},
|
|
10203
|
+
}, Da = /* @__PURE__ */ function(e) {
|
|
10176
10204
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
10177
|
-
}({}),
|
|
10205
|
+
}({}), Oa = () => [
|
|
10178
10206
|
(t, n, r = {}) => {
|
|
10179
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(
|
|
10207
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(ya, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Ea, {
|
|
10180
10208
|
autoCloseDuration: a || void 0,
|
|
10181
10209
|
toastId: i,
|
|
10182
10210
|
type: t
|
|
@@ -10201,7 +10229,7 @@ var Hr = {
|
|
|
10201
10229
|
enter: "pds-toast--bounceInPlace",
|
|
10202
10230
|
exit: "pds-toast--slideOut"
|
|
10203
10231
|
})
|
|
10204
|
-
],
|
|
10232
|
+
], ka = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: l = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: m, ..._ }) => {
|
|
10205
10233
|
let v = ft(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, C = `${x}--${l}`, w = m ? { width: m } : void 0, [T, E] = g(s), [D, O] = g(!1), k = h(null), { closeOverlay: A, openOverlay: j } = en();
|
|
10206
10234
|
u(() => {
|
|
10207
10235
|
s ? E(!0) : O(!1);
|
|
@@ -10266,7 +10294,7 @@ var Hr = {
|
|
|
10266
10294
|
onClick: M,
|
|
10267
10295
|
size: "m"
|
|
10268
10296
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10269
|
-
},
|
|
10297
|
+
}, Aa = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...d }) => {
|
|
10270
10298
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = en();
|
|
10271
10299
|
u(() => {
|
|
10272
10300
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10331,7 +10359,7 @@ var Hr = {
|
|
|
10331
10359
|
}),
|
|
10332
10360
|
zIndex: 9999
|
|
10333
10361
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10334
|
-
},
|
|
10362
|
+
}, ja = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: d = "m", title: f, ...p }) => {
|
|
10335
10363
|
let m = ft(n), h = m.__unslotted, _ = m.footer, v = "pds-modal", y = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10336
10364
|
maxHeight: a,
|
|
10337
10365
|
paddingInlineEnd: "1rem",
|
|
@@ -10407,27 +10435,27 @@ var Hr = {
|
|
|
10407
10435
|
className: `${v}__content`,
|
|
10408
10436
|
style: S
|
|
10409
10437
|
}, h), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10410
|
-
},
|
|
10438
|
+
}, Ma = (e, t) => {
|
|
10411
10439
|
let n = t - e + 1;
|
|
10412
10440
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10413
|
-
},
|
|
10441
|
+
}, Na = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
|
|
10414
10442
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10415
|
-
if (a >= i) return
|
|
10443
|
+
if (a >= i) return Ma(1, i);
|
|
10416
10444
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10417
10445
|
if (!l && u) return [
|
|
10418
|
-
...
|
|
10446
|
+
...Ma(1, 3 + 2 * e),
|
|
10419
10447
|
"...",
|
|
10420
10448
|
i
|
|
10421
10449
|
];
|
|
10422
10450
|
if (l && !u) return [
|
|
10423
10451
|
1,
|
|
10424
10452
|
"...",
|
|
10425
|
-
...
|
|
10453
|
+
...Ma(i - (3 + 2 * e) + 1, i)
|
|
10426
10454
|
];
|
|
10427
10455
|
if (l && u) return [
|
|
10428
10456
|
1,
|
|
10429
10457
|
"...",
|
|
10430
|
-
...
|
|
10458
|
+
...Ma(s, c),
|
|
10431
10459
|
"...",
|
|
10432
10460
|
o
|
|
10433
10461
|
];
|
|
@@ -10436,11 +10464,11 @@ var Hr = {
|
|
|
10436
10464
|
n,
|
|
10437
10465
|
e,
|
|
10438
10466
|
t
|
|
10439
|
-
]),
|
|
10467
|
+
]), Pa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10440
10468
|
previous: "Go to previous page",
|
|
10441
10469
|
next: "Go to next page"
|
|
10442
10470
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10443
|
-
let f =
|
|
10471
|
+
let f = Na({
|
|
10444
10472
|
currentPage: r,
|
|
10445
10473
|
totalItemCount: u,
|
|
10446
10474
|
bufferCount: t,
|
|
@@ -10494,7 +10522,7 @@ var Hr = {
|
|
|
10494
10522
|
size: "m"
|
|
10495
10523
|
}))
|
|
10496
10524
|
}))));
|
|
10497
|
-
},
|
|
10525
|
+
}, Fa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10498
10526
|
next: "Next",
|
|
10499
10527
|
previous: "Previous"
|
|
10500
10528
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10523,7 +10551,7 @@ var Hr = {
|
|
|
10523
10551
|
iconName: "angleRight",
|
|
10524
10552
|
size: "m"
|
|
10525
10553
|
}))));
|
|
10526
|
-
},
|
|
10554
|
+
}, Ia = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10527
10555
|
next: "Go to next page",
|
|
10528
10556
|
of: "of",
|
|
10529
10557
|
page: "Page",
|
|
@@ -10627,7 +10655,7 @@ var Hr = {
|
|
|
10627
10655
|
size: "m"
|
|
10628
10656
|
}))
|
|
10629
10657
|
})));
|
|
10630
|
-
},
|
|
10658
|
+
}, La = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10631
10659
|
let [c, l] = g(i), f = d(), p = r ?? `expansion-panel-${f}`, m = "pds-expansion-panel", _ = a ? null : `${m}--no-border`, v = h(null);
|
|
10632
10660
|
return u(() => {
|
|
10633
10661
|
let e = v.current;
|
|
@@ -10651,7 +10679,7 @@ var Hr = {
|
|
|
10651
10679
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
10652
10680
|
iconName: "angleDown"
|
|
10653
10681
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
10654
|
-
},
|
|
10682
|
+
}, Ra = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10655
10683
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10656
10684
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10657
10685
|
className: Z([
|
|
@@ -10661,7 +10689,7 @@ var Hr = {
|
|
|
10661
10689
|
]),
|
|
10662
10690
|
...i
|
|
10663
10691
|
}, t);
|
|
10664
|
-
},
|
|
10692
|
+
}, za = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10665
10693
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10666
10694
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10667
10695
|
className: Z([
|
|
@@ -10671,7 +10699,7 @@ var Hr = {
|
|
|
10671
10699
|
]),
|
|
10672
10700
|
...a
|
|
10673
10701
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10674
|
-
},
|
|
10702
|
+
}, Ba = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10675
10703
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10676
10704
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10677
10705
|
className: Z([
|
|
@@ -10683,7 +10711,7 @@ var Hr = {
|
|
|
10683
10711
|
]),
|
|
10684
10712
|
...o
|
|
10685
10713
|
}, n);
|
|
10686
|
-
},
|
|
10714
|
+
}, Va = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10687
10715
|
let o = "pds-panel-row", [s, c] = g(!1), l = ft(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
|
|
10688
10716
|
c((e) => !e);
|
|
10689
10717
|
};
|
|
@@ -10714,10 +10742,10 @@ var Hr = {
|
|
|
10714
10742
|
opacity: "0"
|
|
10715
10743
|
}
|
|
10716
10744
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10717
|
-
},
|
|
10745
|
+
}, Ha = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10718
10746
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10719
10747
|
...r
|
|
10720
|
-
}, t),
|
|
10748
|
+
}, t), Ua = /* @__PURE__ */ e.createElement("svg", {
|
|
10721
10749
|
"aria-label": "Pantheon",
|
|
10722
10750
|
fill: "none",
|
|
10723
10751
|
focusable: "false",
|
|
@@ -10779,7 +10807,7 @@ var Hr = {
|
|
|
10779
10807
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10780
10808
|
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",
|
|
10781
10809
|
fill: "var(--pds-color-foreground-default)"
|
|
10782
|
-
})),
|
|
10810
|
+
})), Wa = /* @__PURE__ */ e.createElement("svg", {
|
|
10783
10811
|
"aria-label": "Pantheon",
|
|
10784
10812
|
fill: "none",
|
|
10785
10813
|
focusable: "false",
|
|
@@ -10814,7 +10842,7 @@ var Hr = {
|
|
|
10814
10842
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10815
10843
|
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",
|
|
10816
10844
|
fill: "var(--pds-color-foreground-default)"
|
|
10817
|
-
})),
|
|
10845
|
+
})), Ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10818
10846
|
"aria-label": "Pantheon",
|
|
10819
10847
|
fill: "none",
|
|
10820
10848
|
focusable: "false",
|
|
@@ -10849,17 +10877,17 @@ var Hr = {
|
|
|
10849
10877
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10850
10878
|
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",
|
|
10851
10879
|
fill: "var(--pds-color-foreground-default)"
|
|
10852
|
-
})),
|
|
10880
|
+
})), Ka = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
10853
10881
|
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;
|
|
10854
10882
|
switch (r) {
|
|
10855
10883
|
case "full":
|
|
10856
|
-
f =
|
|
10884
|
+
f = Ua;
|
|
10857
10885
|
break;
|
|
10858
10886
|
case "icon":
|
|
10859
|
-
f =
|
|
10887
|
+
f = Wa;
|
|
10860
10888
|
break;
|
|
10861
10889
|
case "wordmark":
|
|
10862
|
-
f =
|
|
10890
|
+
f = Ga;
|
|
10863
10891
|
break;
|
|
10864
10892
|
}
|
|
10865
10893
|
let p = s(i) && typeof i.props.children == "string" ? i.props.children : "", m = s(i) ? i.type : null, h = s(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
@@ -10876,7 +10904,7 @@ var Hr = {
|
|
|
10876
10904
|
]),
|
|
10877
10905
|
...o
|
|
10878
10906
|
}, i ? h : f);
|
|
10879
|
-
},
|
|
10907
|
+
}, qa = 8, Ja = 14, Ya = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: _ = "circleInfo", triggerIconSize: v = "m", ...x }) => {
|
|
10880
10908
|
let [D, k] = g(d);
|
|
10881
10909
|
u(() => {
|
|
10882
10910
|
k(d);
|
|
@@ -10903,12 +10931,12 @@ var Hr = {
|
|
|
10903
10931
|
A(V),
|
|
10904
10932
|
j(V),
|
|
10905
10933
|
R(V)
|
|
10906
|
-
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J +
|
|
10934
|
+
]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ja / 2, ne = ee + qa, { isMounted: re } = z(V, {
|
|
10907
10935
|
initial: { transform: "scale(0)" },
|
|
10908
10936
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10909
|
-
top: `${te}px calc(100% + ${
|
|
10937
|
+
top: `${te}px calc(100% + ${qa}px)`,
|
|
10910
10938
|
bottom: `${te}px -8px`,
|
|
10911
|
-
left: `calc(100% + ${
|
|
10939
|
+
left: `calc(100% + ${qa}px) ${ne}px`,
|
|
10912
10940
|
right: `-8px ${ne}px`
|
|
10913
10941
|
}[e] })
|
|
10914
10942
|
});
|
|
@@ -10940,23 +10968,23 @@ var Hr = {
|
|
|
10940
10968
|
className: `${P}__arrow`,
|
|
10941
10969
|
context: V,
|
|
10942
10970
|
fill: "var(--pds-color-surface-default)",
|
|
10943
|
-
height:
|
|
10944
|
-
stroke: "var(--pds-color-
|
|
10971
|
+
height: qa,
|
|
10972
|
+
stroke: "var(--pds-color-border-default)",
|
|
10945
10973
|
strokeWidth: 1,
|
|
10946
10974
|
tipRadius: 0,
|
|
10947
|
-
width:
|
|
10975
|
+
width: Ja
|
|
10948
10976
|
}), /* @__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(Mn, {
|
|
10949
10977
|
ariaLabel: r,
|
|
10950
10978
|
onClick: G,
|
|
10951
10979
|
size: "s"
|
|
10952
10980
|
})))))));
|
|
10953
|
-
},
|
|
10981
|
+
}, Xa = {
|
|
10954
10982
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10955
10983
|
info: "--pds-color-status-info-fill",
|
|
10956
10984
|
success: "--pds-color-status-success-fill",
|
|
10957
10985
|
warning: "--pds-color-status-warning-fill",
|
|
10958
10986
|
critical: "--pds-color-status-critical-fill"
|
|
10959
|
-
},
|
|
10987
|
+
}, Za = ({ className: t, colorBreakpoints: n = [{
|
|
10960
10988
|
colorType: "info",
|
|
10961
10989
|
percentage: 0
|
|
10962
10990
|
}, {
|
|
@@ -10977,7 +11005,7 @@ var Hr = {
|
|
|
10977
11005
|
id: m
|
|
10978
11006
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
10979
11007
|
className: `${h}__percentage`,
|
|
10980
|
-
style: { color: `hsl(from var(${
|
|
11008
|
+
style: { color: `hsl(from var(${Xa[y]}) h s calc(l - 7))` }
|
|
10981
11009
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
10982
11010
|
"aria-labelledby": m,
|
|
10983
11011
|
"aria-valuenow": v,
|
|
@@ -10987,16 +11015,16 @@ var Hr = {
|
|
|
10987
11015
|
className: `${h}__bar`,
|
|
10988
11016
|
style: {
|
|
10989
11017
|
width: `${v}%`,
|
|
10990
|
-
backgroundColor: `var(${
|
|
11018
|
+
backgroundColor: `var(${Xa[y]})`
|
|
10991
11019
|
}
|
|
10992
11020
|
}))), S && b);
|
|
10993
|
-
},
|
|
11021
|
+
}, Qa = {
|
|
10994
11022
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10995
11023
|
info: "--pds-color-status-info-fill",
|
|
10996
11024
|
success: "--pds-color-status-success-fill",
|
|
10997
11025
|
warning: "--pds-color-status-warning-fill",
|
|
10998
11026
|
critical: "--pds-color-status-critical-fill"
|
|
10999
|
-
},
|
|
11027
|
+
}, $a = ({ className: t, colorBreakpoints: n = [{
|
|
11000
11028
|
colorType: "info",
|
|
11001
11029
|
percentage: 0
|
|
11002
11030
|
}, {
|
|
@@ -11045,7 +11073,7 @@ var Hr = {
|
|
|
11045
11073
|
strokeDasharray: x,
|
|
11046
11074
|
strokeDashoffset: S,
|
|
11047
11075
|
strokeWidth: y,
|
|
11048
|
-
style: { stroke: `var(${
|
|
11076
|
+
style: { stroke: `var(${Qa[C]})` },
|
|
11049
11077
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
11050
11078
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
11051
11079
|
alignmentBaseline: "middle",
|
|
@@ -11055,29 +11083,29 @@ var Hr = {
|
|
|
11055
11083
|
x: "50%",
|
|
11056
11084
|
y: "51%"
|
|
11057
11085
|
}, w))));
|
|
11058
|
-
},
|
|
11086
|
+
}, eo = {
|
|
11059
11087
|
of: "of",
|
|
11060
11088
|
showing: "Showing",
|
|
11061
11089
|
unitPlural: "results",
|
|
11062
11090
|
unitSingular: "result"
|
|
11063
|
-
},
|
|
11091
|
+
}, to = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, no = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
11064
11092
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
11065
|
-
...
|
|
11093
|
+
...eo,
|
|
11066
11094
|
...i
|
|
11067
|
-
}, p = n !== void 0, m =
|
|
11095
|
+
}, p = n !== void 0, m = to(r, f, d, a);
|
|
11068
11096
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11069
11097
|
"aria-live": "polite",
|
|
11070
11098
|
className: Z([s, t ?? ""]),
|
|
11071
11099
|
...o
|
|
11072
11100
|
}, /* @__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}`));
|
|
11073
|
-
},
|
|
11101
|
+
}, ro = {
|
|
11074
11102
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
11075
11103
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
11076
11104
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
11077
11105
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
11078
11106
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
11079
11107
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
11080
|
-
},
|
|
11108
|
+
}, io = (e) => typeof e == "string", ao = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
11081
11109
|
"privacy",
|
|
11082
11110
|
"dataSubjectRequest",
|
|
11083
11111
|
"cookiePolicy",
|
|
@@ -11094,8 +11122,8 @@ var Hr = {
|
|
|
11094
11122
|
r ?? ""
|
|
11095
11123
|
]),
|
|
11096
11124
|
...c
|
|
11097
|
-
}, /* @__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."), o.map((t, n) =>
|
|
11098
|
-
},
|
|
11125
|
+
}, /* @__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."), o.map((t, n) => io(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, ro[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
11126
|
+
}, oo = ({ className: t, option: n, ...r }) => {
|
|
11099
11127
|
let i = "pds-site-option-display", a = n.type ? er[n.type] : "boltSolid", o = h(null), [s] = Ue(o), c = s.width / 16 - 7.5, l, u;
|
|
11100
11128
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
11101
11129
|
let d = /* @__PURE__ */ e.createElement(xn, {
|
|
@@ -11118,7 +11146,7 @@ var Hr = {
|
|
|
11118
11146
|
className: `${i}__status`,
|
|
11119
11147
|
style: { pointerEvents: "none" }
|
|
11120
11148
|
}, d));
|
|
11121
|
-
},
|
|
11149
|
+
}, so = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
11122
11150
|
clearButton: "Clear input text",
|
|
11123
11151
|
inputInstructions: "Type to search options"
|
|
11124
11152
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -11130,7 +11158,7 @@ var Hr = {
|
|
|
11130
11158
|
id: n,
|
|
11131
11159
|
label: i,
|
|
11132
11160
|
value: r ?? i,
|
|
11133
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
11161
|
+
optionDisplay: /* @__PURE__ */ e.createElement(oo, { option: t }),
|
|
11134
11162
|
siteData: t
|
|
11135
11163
|
};
|
|
11136
11164
|
});
|
|
@@ -11159,7 +11187,7 @@ var Hr = {
|
|
|
11159
11187
|
};
|
|
11160
11188
|
//#endregion
|
|
11161
11189
|
//#region src/components/SortableList/sortable-utils.ts
|
|
11162
|
-
function
|
|
11190
|
+
function co(e, t, n = null, r = 0, i = []) {
|
|
11163
11191
|
return e.reduce((e, a, o) => {
|
|
11164
11192
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
11165
11193
|
return e.push({
|
|
@@ -11171,10 +11199,10 @@ function oo(e, t, n = null, r = 0, i = []) {
|
|
|
11171
11199
|
index: o,
|
|
11172
11200
|
isExpanded: c,
|
|
11173
11201
|
parentId: n
|
|
11174
|
-
}), s && c && a.children && e.push(...
|
|
11202
|
+
}), s && c && a.children && e.push(...co(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
11175
11203
|
}, []);
|
|
11176
11204
|
}
|
|
11177
|
-
function
|
|
11205
|
+
function lo(e) {
|
|
11178
11206
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
11179
11207
|
for (let i of e) {
|
|
11180
11208
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -11187,28 +11215,28 @@ function so(e) {
|
|
|
11187
11215
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
11188
11216
|
}
|
|
11189
11217
|
}
|
|
11190
|
-
return
|
|
11218
|
+
return uo(r);
|
|
11191
11219
|
}
|
|
11192
|
-
function
|
|
11220
|
+
function uo(e) {
|
|
11193
11221
|
return e.map((e) => {
|
|
11194
11222
|
if (e.children?.length) return {
|
|
11195
11223
|
...e,
|
|
11196
|
-
children:
|
|
11224
|
+
children: uo(e.children)
|
|
11197
11225
|
};
|
|
11198
11226
|
let { children: t, ...n } = e;
|
|
11199
11227
|
return n;
|
|
11200
11228
|
});
|
|
11201
11229
|
}
|
|
11202
|
-
function
|
|
11230
|
+
function fo(e, t) {
|
|
11203
11231
|
for (let n of e) {
|
|
11204
11232
|
if (n.id === t) return n;
|
|
11205
11233
|
if (n.children) {
|
|
11206
|
-
let e =
|
|
11234
|
+
let e = fo(n.children, t);
|
|
11207
11235
|
if (e) return e;
|
|
11208
11236
|
}
|
|
11209
11237
|
}
|
|
11210
11238
|
}
|
|
11211
|
-
function
|
|
11239
|
+
function po(e, t, n, r, i, a, o) {
|
|
11212
11240
|
let s = e.findIndex((e) => e.id === n);
|
|
11213
11241
|
if (s === -1) return 0;
|
|
11214
11242
|
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;
|
|
@@ -11216,7 +11244,7 @@ function uo(e, t, n, r, i, a, o) {
|
|
|
11216
11244
|
}
|
|
11217
11245
|
//#endregion
|
|
11218
11246
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11219
|
-
var
|
|
11247
|
+
var mo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11220
11248
|
if (!r && !t) return null;
|
|
11221
11249
|
let a = r ? {
|
|
11222
11250
|
display: "grid",
|
|
@@ -11237,13 +11265,13 @@ var fo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11237
11265
|
};
|
|
11238
11266
|
//#endregion
|
|
11239
11267
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11240
|
-
function
|
|
11268
|
+
function ho({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11241
11269
|
let i = n !== void 0, [a, o] = g(() => n ?? e ?? []), [s, l] = g(/* @__PURE__ */ new Set()), u = h(null), d = h(t);
|
|
11242
11270
|
t && !d.current && (u.current = {
|
|
11243
11271
|
items: i ? n : a,
|
|
11244
11272
|
expandedIds: s
|
|
11245
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
11246
|
-
let f = i ? n : a, p = m(() =>
|
|
11273
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && _o("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11274
|
+
let f = i ? n : a, p = m(() => co(f, s), [f, s]), _ = m(() => p.map((e) => e.id), [p]), v = c((e) => {
|
|
11247
11275
|
l((t) => {
|
|
11248
11276
|
let n = new Set(t);
|
|
11249
11277
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11261,7 +11289,7 @@ function po({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11261
11289
|
}, []),
|
|
11262
11290
|
flatNodes: p,
|
|
11263
11291
|
handleReorder: c((e) => {
|
|
11264
|
-
let t =
|
|
11292
|
+
let t = lo(e);
|
|
11265
11293
|
i || o(t), r?.(t);
|
|
11266
11294
|
}, [i, r]),
|
|
11267
11295
|
resetToSnapshot: c(() => {
|
|
@@ -11273,24 +11301,24 @@ function po({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11273
11301
|
toggleExpand: v
|
|
11274
11302
|
};
|
|
11275
11303
|
}
|
|
11276
|
-
var
|
|
11277
|
-
function
|
|
11278
|
-
|
|
11304
|
+
var go = /* @__PURE__ */ new Set();
|
|
11305
|
+
function _o(e) {
|
|
11306
|
+
go.has(e) || (go.add(e), console.warn(e));
|
|
11279
11307
|
}
|
|
11280
11308
|
//#endregion
|
|
11281
11309
|
//#region src/components/SortableList/SortableList.tsx
|
|
11282
|
-
var
|
|
11310
|
+
var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: p, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
11283
11311
|
let w = "pds-sortable-list", [T, E] = g(null), D = h(null), [O, k] = g(!1), A = h(!1), [j, M] = g(null), N = h(0), P = h(0), F = h("pointer"), I = h(0), L = h(null), [R, z] = g(0), B = h(0), [V, H] = g(0), U = h(0), W = c((e, t) => {
|
|
11284
11312
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11285
11313
|
e.preventDefault();
|
|
11286
11314
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11287
11315
|
return B.current = i, z(i), {
|
|
11288
|
-
x: t.currentCoordinates.x + a *
|
|
11316
|
+
x: t.currentCoordinates.x + a * vo,
|
|
11289
11317
|
y: t.currentCoordinates.y
|
|
11290
11318
|
};
|
|
11291
11319
|
}
|
|
11292
11320
|
return $e(e, t);
|
|
11293
|
-
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } =
|
|
11321
|
+
}, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = ho({
|
|
11294
11322
|
defaultItems: a,
|
|
11295
11323
|
isDragEnabled: G,
|
|
11296
11324
|
items: p,
|
|
@@ -11317,9 +11345,9 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11317
11345
|
se,
|
|
11318
11346
|
oe,
|
|
11319
11347
|
j
|
|
11320
|
-
]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ?
|
|
11348
|
+
]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ? fo(K, String(T)) ?? null : null, [T, K]), de = m(() => {
|
|
11321
11349
|
let e = le?.depth ?? 0;
|
|
11322
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11350
|
+
return !T || !j || O || _ === 0 ? e : po(J, String(T), String(j), V * vo, vo, _);
|
|
11323
11351
|
}, [
|
|
11324
11352
|
T,
|
|
11325
11353
|
le,
|
|
@@ -11331,7 +11359,7 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11331
11359
|
]), fe = m(() => {
|
|
11332
11360
|
if (!T || O || de === 0 || j && se(j)) return null;
|
|
11333
11361
|
let e = J.findIndex((e) => e.id === T);
|
|
11334
|
-
return e === -1 ? null :
|
|
11362
|
+
return e === -1 ? null : xo(J, e, de);
|
|
11335
11363
|
}, [
|
|
11336
11364
|
T,
|
|
11337
11365
|
J,
|
|
@@ -11377,19 +11405,19 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11377
11405
|
}, [J, oe]), ge = c((e) => {
|
|
11378
11406
|
let t = e.delta.x;
|
|
11379
11407
|
if (P.current = t, A.current || _ === 0) return;
|
|
11380
|
-
let n = Math.floor(t /
|
|
11381
|
-
(n > r || n < r && t < r *
|
|
11408
|
+
let n = Math.floor(t / vo), r = U.current;
|
|
11409
|
+
(n > r || n < r && t < r * vo - vo * .4) && (U.current = n, H(n));
|
|
11382
11410
|
}, [_]), _e = c((e) => {
|
|
11383
11411
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11384
11412
|
E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
|
|
11385
|
-
let o = J.findIndex((e) => e.id === t.id), s = r ? i *
|
|
11413
|
+
let o = J.findIndex((e) => e.id === t.id), s = r ? i * vo : a * vo, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
11386
11414
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
11387
11415
|
if (o === -1) return;
|
|
11388
11416
|
let e = J[o];
|
|
11389
11417
|
if (!e) return;
|
|
11390
|
-
let n =
|
|
11418
|
+
let n = po(J, String(t.id), String(t.id), s, vo, _);
|
|
11391
11419
|
if (n === e.depth) return;
|
|
11392
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
11420
|
+
let r = [...J], [i] = r.splice(o, 1), a = xo(r, o, n);
|
|
11393
11421
|
if (a && Y.has(a)) return;
|
|
11394
11422
|
let c = {
|
|
11395
11423
|
...i,
|
|
@@ -11411,9 +11439,9 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11411
11439
|
let e = J[u];
|
|
11412
11440
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11413
11441
|
} else {
|
|
11414
|
-
g =
|
|
11442
|
+
g = po(d, String(t.id), String(l), s, vo, _, p.depth);
|
|
11415
11443
|
let e = d[h];
|
|
11416
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11444
|
+
v = e && e.depth === g - 1 ? String(l) : xo(d, h, g);
|
|
11417
11445
|
}
|
|
11418
11446
|
if (v && Y.has(v)) return;
|
|
11419
11447
|
let y = {
|
|
@@ -11436,24 +11464,24 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11436
11464
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
|
|
11437
11465
|
}, [q]), ye = m(() => ({
|
|
11438
11466
|
onDragStart({ active: e }) {
|
|
11439
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11467
|
+
let t = J.find((t) => t.id === e.id), n = fo(K, String(e.id));
|
|
11440
11468
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
|
|
11441
11469
|
},
|
|
11442
11470
|
onDragOver({ active: e, over: t }) {
|
|
11443
11471
|
if (!t) return;
|
|
11444
11472
|
let n = J.findIndex((e) => e.id === t.id);
|
|
11445
11473
|
if (n === -1) return;
|
|
11446
|
-
let r =
|
|
11474
|
+
let r = fo(K, String(e.id)), i = r ? o(r) : String(e.id), a = po(J, String(e.id), String(t.id), P.current, vo, _);
|
|
11447
11475
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
11448
11476
|
},
|
|
11449
11477
|
onDragEnd({ active: e, over: t }) {
|
|
11450
|
-
let n =
|
|
11478
|
+
let n = fo(K, String(e.id)), r = n ? o(n) : String(e.id);
|
|
11451
11479
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11452
|
-
let i = J.findIndex((e) => e.id === t.id), a =
|
|
11480
|
+
let i = J.findIndex((e) => e.id === t.id), a = po(J, String(e.id), String(t.id), P.current, vo, _);
|
|
11453
11481
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
11454
11482
|
},
|
|
11455
11483
|
onDragCancel({ active: e }) {
|
|
11456
|
-
let t = J.find((t) => t.id === e.id), n =
|
|
11484
|
+
let t = J.find((t) => t.id === e.id), n = fo(K, String(e.id));
|
|
11457
11485
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
11458
11486
|
}
|
|
11459
11487
|
}), [
|
|
@@ -11461,14 +11489,14 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11461
11489
|
J,
|
|
11462
11490
|
o,
|
|
11463
11491
|
_
|
|
11464
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
11492
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === mo ? e.cloneElement(t, be) : t);
|
|
11465
11493
|
return /* @__PURE__ */ e.createElement(We, {
|
|
11466
11494
|
accessibility: {
|
|
11467
11495
|
announcements: ye,
|
|
11468
11496
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11469
11497
|
},
|
|
11470
11498
|
collisionDetection: me,
|
|
11471
|
-
measuring:
|
|
11499
|
+
measuring: yo,
|
|
11472
11500
|
onDragCancel: ve,
|
|
11473
11501
|
onDragEnd: _e,
|
|
11474
11502
|
onDragMove: ge,
|
|
@@ -11543,14 +11571,14 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11543
11571
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
11544
11572
|
})()) : null));
|
|
11545
11573
|
});
|
|
11546
|
-
function
|
|
11574
|
+
function xo(e, t, n) {
|
|
11547
11575
|
if (n === 0) return null;
|
|
11548
11576
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11549
11577
|
return null;
|
|
11550
11578
|
}
|
|
11551
11579
|
//#endregion
|
|
11552
11580
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11553
|
-
var
|
|
11581
|
+
var So = ({ 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 }) => {
|
|
11554
11582
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = et({
|
|
11555
11583
|
attributes: {
|
|
11556
11584
|
role: "listitem",
|
|
@@ -11605,40 +11633,47 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11605
11633
|
key: t.id,
|
|
11606
11634
|
className: `${w}__cell`
|
|
11607
11635
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11608
|
-
},
|
|
11609
|
-
let
|
|
11636
|
+
}, Co = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", isActive: c = !1, isLoading: l = !1, stat: u, title: f, ...p }) => {
|
|
11637
|
+
let m = "pds-stat-panel", h = s === "neutral" ? null : `${m}--${s}`, g = c ? `${m}--active` : null, _ = d(), v = n && r && t;
|
|
11610
11638
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11611
|
-
"aria-labelledby":
|
|
11639
|
+
"aria-labelledby": _,
|
|
11612
11640
|
className: Z([
|
|
11613
|
-
|
|
11614
|
-
|
|
11641
|
+
m,
|
|
11642
|
+
h,
|
|
11643
|
+
g,
|
|
11615
11644
|
i ?? ""
|
|
11616
11645
|
]),
|
|
11617
11646
|
role: "group",
|
|
11618
|
-
...
|
|
11619
|
-
}, /* @__PURE__ */ e.createElement("div", { className: Z([`${
|
|
11620
|
-
className: `${
|
|
11621
|
-
id:
|
|
11622
|
-
},
|
|
11647
|
+
...p
|
|
11648
|
+
}, /* @__PURE__ */ e.createElement("div", { className: Z([`${m}__header`, v ? `${m}__header--has-action` : null]) }, /* @__PURE__ */ e.createElement("span", {
|
|
11649
|
+
className: `${m}__title`,
|
|
11650
|
+
id: _
|
|
11651
|
+
}, f), v && /* @__PURE__ */ e.createElement(An, {
|
|
11623
11652
|
ariaLabel: r,
|
|
11624
|
-
className: `${
|
|
11653
|
+
className: `${m}__action`,
|
|
11625
11654
|
iconName: n,
|
|
11655
|
+
isPressed: c,
|
|
11626
11656
|
onClick: t,
|
|
11627
11657
|
size: "s"
|
|
11628
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
11658
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__body` }, o === "spinner" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11629
11659
|
isInline: !0,
|
|
11630
|
-
className: `${
|
|
11631
|
-
size: "
|
|
11632
|
-
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
11633
|
-
className: `${
|
|
11660
|
+
className: `${m}__icon ${m}__icon--spinner`,
|
|
11661
|
+
size: "l"
|
|
11662
|
+
}) : o && /* @__PURE__ */ e.createElement(Q, {
|
|
11663
|
+
className: `${m}__icon`,
|
|
11634
11664
|
iconName: o,
|
|
11635
11665
|
size: "l"
|
|
11636
|
-
}),
|
|
11637
|
-
}
|
|
11666
|
+
}), l ? /* @__PURE__ */ e.createElement(kr, {
|
|
11667
|
+
className: `${m}__stat-skeleton`,
|
|
11668
|
+
shape: "text-block",
|
|
11669
|
+
size: { width: 6 },
|
|
11670
|
+
textSize: "xl"
|
|
11671
|
+
}) : u && /* @__PURE__ */ e.createElement("span", { className: `${m}__stat` }, u)), a && /* @__PURE__ */ e.createElement("p", { className: `${m}__description` }, a));
|
|
11672
|
+
}, wo = [
|
|
11638
11673
|
"default",
|
|
11639
11674
|
"working",
|
|
11640
11675
|
"checked"
|
|
11641
|
-
],
|
|
11676
|
+
], To = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11642
11677
|
let l = {
|
|
11643
11678
|
checkForUpdates: "Check for updates",
|
|
11644
11679
|
checking: "Checking...",
|
|
@@ -11685,7 +11720,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11685
11720
|
triggerIconColor: "default",
|
|
11686
11721
|
triggerIconSize: "s"
|
|
11687
11722
|
}), t === "left" && g));
|
|
11688
|
-
},
|
|
11723
|
+
}, Eo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11689
11724
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11690
11725
|
className: `${o}__spinner`,
|
|
11691
11726
|
size: "m"
|
|
@@ -11702,7 +11737,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11702
11737
|
]),
|
|
11703
11738
|
...a
|
|
11704
11739
|
}, r ? d : l);
|
|
11705
|
-
},
|
|
11740
|
+
}, Do = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11706
11741
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11707
11742
|
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`;
|
|
11708
11743
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11720,20 +11755,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11720
11755
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11721
11756
|
...a
|
|
11722
11757
|
}, l);
|
|
11723
|
-
},
|
|
11758
|
+
}, Oo = ({ className: t, steps: n, translatableLabels: r = {
|
|
11724
11759
|
step: "Step",
|
|
11725
11760
|
completed: "completed",
|
|
11726
11761
|
hasError: "has an error",
|
|
11727
11762
|
next: "Next"
|
|
11728
11763
|
}, ...i }) => {
|
|
11729
|
-
let a = "pds-stepper", o = "pds-stepper-mobile", s = h(null), [c] = Ue(s), l = c.width, u =
|
|
11730
|
-
let i = n + 1, o = n ===
|
|
11731
|
-
(
|
|
11732
|
-
let
|
|
11733
|
-
o &&
|
|
11734
|
-
let
|
|
11735
|
-
s && (
|
|
11736
|
-
let
|
|
11764
|
+
let a = "pds-stepper", o = "pds-stepper-mobile", s = h(null), [c] = Ue(s), l = c.width, u = n.length, d = n.map((e) => e.isCurrent).lastIndexOf(!0), f = n.map((t, n) => {
|
|
11765
|
+
let i = n + 1, o = n === d, s = t.isComplete || n < d, c = t.hasError && o, f = (l - u * 136) / (u + (u - 2)), p = 136 + f * 2, m = 136 + f, h = f + 48, g = n === 0, _ = n === u - 1, v = p;
|
|
11766
|
+
(g || _) && (v = m);
|
|
11767
|
+
let y = `${a}__step`, b = [y];
|
|
11768
|
+
o && b.push(`${y}--current`), s && b.push(`${y}--complete`), c && b.push(`${y}--error`);
|
|
11769
|
+
let x = `${r.step} ${i}`;
|
|
11770
|
+
s && (x = `${r.step} ${i}, ${r.completed}`), c && (x = `${r.step} ${i}, ${r.hasError}`);
|
|
11771
|
+
let S = s ? /* @__PURE__ */ e.createElement("div", {
|
|
11737
11772
|
"aria-hidden": "true",
|
|
11738
11773
|
className: `${a}__step-indicator`
|
|
11739
11774
|
}, /* @__PURE__ */ e.createElement("svg", {
|
|
@@ -11747,69 +11782,70 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11747
11782
|
}, /* @__PURE__ */ e.createElement("path", { d: "M9.85474 3.64666C10.1032 3.32078 10.0258 2.86817 9.67727 2.63583C9.32878 2.4035 8.84476 2.47591 8.5963 2.80179L4.8694 7.65977L3.32056 6.21143C3.01724 5.9278 2.52677 5.9278 2.22669 6.21143C1.9266 6.49506 1.92337 6.9537 2.22346 7.23734L4.41765 9.28916C4.57899 9.44003 4.80164 9.51546 5.02751 9.49736C5.25338 9.47925 5.4599 9.37063 5.59219 9.19864L9.85151 3.64666H9.85474Z" }))) : /* @__PURE__ */ e.createElement("div", {
|
|
11748
11783
|
"aria-hidden": "true",
|
|
11749
11784
|
className: `${a}__step-indicator`
|
|
11750
|
-
}),
|
|
11751
|
-
return s && t.callback && (
|
|
11785
|
+
}), C = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-label` }, t.label), w = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-content` }, C, S);
|
|
11786
|
+
return s && t.callback && (w = /* @__PURE__ */ e.createElement("button", {
|
|
11752
11787
|
className: `${a}__step-content`,
|
|
11753
11788
|
onClick: (e) => {
|
|
11754
11789
|
t.callback(t), e.preventDefault();
|
|
11755
11790
|
},
|
|
11756
11791
|
type: "button"
|
|
11757
|
-
},
|
|
11792
|
+
}, C, S)), /* @__PURE__ */ e.createElement("li", {
|
|
11758
11793
|
key: t.id,
|
|
11759
11794
|
"aria-current": o ? "step" : null,
|
|
11760
|
-
"aria-label":
|
|
11795
|
+
"aria-label": x,
|
|
11761
11796
|
"aria-posinset": i,
|
|
11762
|
-
"aria-setsize":
|
|
11763
|
-
className: Z(
|
|
11797
|
+
"aria-setsize": u,
|
|
11798
|
+
className: Z(b),
|
|
11764
11799
|
id: t.id,
|
|
11765
|
-
style: { width:
|
|
11766
|
-
}, !
|
|
11800
|
+
style: { width: v }
|
|
11801
|
+
}, !g && /* @__PURE__ */ e.createElement("span", {
|
|
11767
11802
|
className: `${a}__connector ${a}__connector--before`,
|
|
11768
11803
|
style: {
|
|
11769
|
-
width:
|
|
11770
|
-
marginRight: -
|
|
11804
|
+
width: h,
|
|
11805
|
+
marginRight: -48
|
|
11771
11806
|
}
|
|
11772
|
-
}),
|
|
11807
|
+
}), w, !_ && /* @__PURE__ */ e.createElement("span", {
|
|
11773
11808
|
className: `${a}__connector ${a}__connector--after`,
|
|
11774
11809
|
style: {
|
|
11775
|
-
width:
|
|
11776
|
-
marginLeft: -
|
|
11810
|
+
width: h,
|
|
11811
|
+
marginLeft: -48
|
|
11777
11812
|
}
|
|
11778
11813
|
}));
|
|
11779
|
-
}),
|
|
11780
|
-
let a = i + 1, s = i ===
|
|
11814
|
+
}), p = n.map((t, i) => {
|
|
11815
|
+
let a = i + 1, s = i === d, c = i === u - 1, l = t.hasError && s, f = n[d + 1] ? n[d + 1].label : null;
|
|
11781
11816
|
if (s) {
|
|
11782
|
-
let n = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r.step, " "), a, " of ",
|
|
11817
|
+
let n = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r.step, " "), a, " of ", u), i = a / u * 100, s = l ? { "--pds-color-status-info-fill": "var(--pds-color-status-critical-foreground)" } : { "--pds-color-status-info-fill": "var(--pds-color-interactive-background-current)" }, d = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, r.step, " ", a, ", ", r.hasError);
|
|
11783
11818
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11784
11819
|
key: t.id,
|
|
11785
11820
|
className: `${o}__step`,
|
|
11786
11821
|
id: `${t.id}--mobile`
|
|
11787
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11822
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement($a, {
|
|
11788
11823
|
innerLabel: n,
|
|
11789
11824
|
label: "Step progress",
|
|
11790
11825
|
percentage: i,
|
|
11791
11826
|
size: "s",
|
|
11792
11827
|
style: s
|
|
11793
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${o}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__step-label` }, l && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
11828
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${o}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__step-label` }, l && /* @__PURE__ */ e.createElement(e.Fragment, null, d, /* @__PURE__ */ e.createElement(Q, {
|
|
11794
11829
|
className: `${o}__error-icon`,
|
|
11795
11830
|
iconName: "diamondExclamation",
|
|
11796
11831
|
size: "m"
|
|
11797
|
-
})), t.label), !c && /* @__PURE__ */ e.createElement("div", { className: `${o}__next-step` }, `${r.next}: ${
|
|
11832
|
+
})), t.label), !c && /* @__PURE__ */ e.createElement("div", { className: `${o}__next-step` }, `${r.next}: ${f}`)));
|
|
11798
11833
|
}
|
|
11799
11834
|
});
|
|
11800
|
-
if (
|
|
11835
|
+
if (u >= 2 && u <= 5) return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
11801
11836
|
className: Z([a, t]),
|
|
11802
|
-
"data-steps":
|
|
11837
|
+
"data-steps": u,
|
|
11803
11838
|
...i
|
|
11804
11839
|
}, /* @__PURE__ */ e.createElement("ol", {
|
|
11805
11840
|
ref: s,
|
|
11806
|
-
className: `${a}__steps
|
|
11807
|
-
|
|
11841
|
+
className: `${a}__steps`,
|
|
11842
|
+
style: { "--step-content-width": "8.5rem" }
|
|
11843
|
+
}, f)), /* @__PURE__ */ e.createElement("div", {
|
|
11808
11844
|
className: Z([o, t]),
|
|
11809
|
-
"data-steps":
|
|
11845
|
+
"data-steps": u,
|
|
11810
11846
|
...i
|
|
11811
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` },
|
|
11812
|
-
},
|
|
11847
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
11848
|
+
}, ko = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11813
11849
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11814
11850
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11815
11851
|
className: Z([...p]),
|
|
@@ -11835,14 +11871,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11835
11871
|
size: "s",
|
|
11836
11872
|
variant: "highlight"
|
|
11837
11873
|
})))));
|
|
11838
|
-
},
|
|
11874
|
+
}, Ao = ({ className: t, labelStrings: n = {
|
|
11839
11875
|
step: "Step",
|
|
11840
11876
|
completed: "completed",
|
|
11841
11877
|
hasError: "has an error"
|
|
11842
11878
|
}, steps: r, ...i }) => {
|
|
11843
11879
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11844
11880
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11845
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11881
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ko, {
|
|
11846
11882
|
key: `s${i}`,
|
|
11847
11883
|
_isFirstStep: c,
|
|
11848
11884
|
"aria-current": a ? "step" : null,
|
|
@@ -11863,7 +11899,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11863
11899
|
className: Z([a, t ?? ""]),
|
|
11864
11900
|
...i
|
|
11865
11901
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11866
|
-
},
|
|
11902
|
+
}, jo = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
|
|
11867
11903
|
let ae = "pds-table", oe = d(), Y = d(), se = h(null), X = z !== void 0, ce = F !== void 0, le = I !== void 0, ue = ce || O !== void 0 || B !== void 0, de = q.length > 0 || ce && (re ?? 0) > 0, [fe, pe] = g({
|
|
11868
11904
|
key: a ?? "",
|
|
11869
11905
|
order: a === void 0 ? "asc" : o
|
|
@@ -12046,7 +12082,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12046
12082
|
showLabel: !1,
|
|
12047
12083
|
size: "s",
|
|
12048
12084
|
value: String(Se)
|
|
12049
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
12085
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Ia, {
|
|
12050
12086
|
currentPage: ce ? i ?? 1 : me,
|
|
12051
12087
|
itemsPerPage: Se,
|
|
12052
12088
|
labelStrings: H,
|
|
@@ -12087,8 +12123,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12087
12123
|
size: "s",
|
|
12088
12124
|
variant: "standard"
|
|
12089
12125
|
}))))));
|
|
12090
|
-
return U ? /* @__PURE__ */ e.createElement(
|
|
12091
|
-
},
|
|
12126
|
+
return U ? /* @__PURE__ */ e.createElement(za, { padding: "none" }, et) : et;
|
|
12127
|
+
}, Mo = [
|
|
12092
12128
|
" ",
|
|
12093
12129
|
"/",
|
|
12094
12130
|
".",
|
|
@@ -12106,7 +12142,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12106
12142
|
"=",
|
|
12107
12143
|
"|",
|
|
12108
12144
|
"~"
|
|
12109
|
-
],
|
|
12145
|
+
], No = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Po = (e) => {
|
|
12110
12146
|
let t = [];
|
|
12111
12147
|
return e.forEach((e) => {
|
|
12112
12148
|
let { id: n, innerText: r } = e;
|
|
@@ -12119,18 +12155,18 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12119
12155
|
title: r
|
|
12120
12156
|
});
|
|
12121
12157
|
}), t;
|
|
12122
|
-
},
|
|
12158
|
+
}, Fo = (e, t, n) => {
|
|
12123
12159
|
let [r, i] = g([]);
|
|
12124
12160
|
return u(() => {
|
|
12125
12161
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
12126
12162
|
let e = Array.from(document.querySelectorAll(r));
|
|
12127
12163
|
e.forEach((e) => {
|
|
12128
|
-
|
|
12129
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
12164
|
+
Mo.forEach((t) => {
|
|
12165
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(No(t), "g"), "-"));
|
|
12130
12166
|
});
|
|
12131
12167
|
}), e.forEach((e, t) => {
|
|
12132
12168
|
e.id || (e.id = `${n}-item-${t}`);
|
|
12133
|
-
}), i(
|
|
12169
|
+
}), i(Po(e));
|
|
12134
12170
|
};
|
|
12135
12171
|
a();
|
|
12136
12172
|
let o = document.getElementById(e);
|
|
@@ -12146,7 +12182,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12146
12182
|
t,
|
|
12147
12183
|
n
|
|
12148
12184
|
]), { nestedHeadings: r };
|
|
12149
|
-
},
|
|
12185
|
+
}, Io = (e, t) => {
|
|
12150
12186
|
let [n, r] = g(void 0), i = h({});
|
|
12151
12187
|
return u(() => {
|
|
12152
12188
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -12165,7 +12201,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12165
12201
|
o.disconnect(), r(void 0);
|
|
12166
12202
|
};
|
|
12167
12203
|
}, [e, t]), n;
|
|
12168
|
-
},
|
|
12204
|
+
}, Lo = ({ 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", {
|
|
12169
12205
|
key: r.id,
|
|
12170
12206
|
className: `${n}__list-item`
|
|
12171
12207
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -12181,8 +12217,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12181
12217
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
12182
12218
|
href: `#${r.id}`,
|
|
12183
12219
|
onClick: (e) => i(e, r.id)
|
|
12184
|
-
}, r.title))))))),
|
|
12185
|
-
let u = "pds-toc", { nestedHeadings: f } =
|
|
12220
|
+
}, r.title))))))), Ro = ({ 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 }) => {
|
|
12221
|
+
let u = "pds-toc", { nestedHeadings: f } = Fo(c, o, d()), p = Io(c, o), m = (e) => {
|
|
12186
12222
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
12187
12223
|
}, h = (e) => {
|
|
12188
12224
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -12200,13 +12236,13 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12200
12236
|
baseClass: u,
|
|
12201
12237
|
className: `${s ? "" : "visually-hidden"}`,
|
|
12202
12238
|
level: i
|
|
12203
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
12239
|
+
}, a), /* @__PURE__ */ e.createElement(Lo, {
|
|
12204
12240
|
activeID: p,
|
|
12205
12241
|
baseClass: u,
|
|
12206
12242
|
headings: f,
|
|
12207
12243
|
onLinkClick: g
|
|
12208
12244
|
}));
|
|
12209
|
-
},
|
|
12245
|
+
}, zo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
12210
12246
|
let c = "pds-tabs", [l, d] = g(a ?? r);
|
|
12211
12247
|
u(() => {
|
|
12212
12248
|
a !== void 0 && d(a);
|
|
@@ -12320,7 +12356,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12320
12356
|
className: `${c}__panel-content`,
|
|
12321
12357
|
hidden: o !== l
|
|
12322
12358
|
}, r)))));
|
|
12323
|
-
},
|
|
12359
|
+
}, Bo = [
|
|
12324
12360
|
"orange",
|
|
12325
12361
|
"stone",
|
|
12326
12362
|
"gold",
|
|
@@ -12334,7 +12370,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12334
12370
|
"magenta",
|
|
12335
12371
|
"rose",
|
|
12336
12372
|
"red"
|
|
12337
|
-
],
|
|
12373
|
+
], Vo = [
|
|
12338
12374
|
"orange-solid",
|
|
12339
12375
|
"teal-solid",
|
|
12340
12376
|
"indigo-solid",
|
|
@@ -12344,14 +12380,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12344
12380
|
"lime-solid",
|
|
12345
12381
|
"sky-solid",
|
|
12346
12382
|
"slate-solid"
|
|
12347
|
-
],
|
|
12383
|
+
], Ho = [
|
|
12348
12384
|
"success-solid",
|
|
12349
12385
|
"warning-solid",
|
|
12350
12386
|
"critical-solid",
|
|
12351
12387
|
"info-solid",
|
|
12352
12388
|
"discovery-solid"
|
|
12353
|
-
],
|
|
12354
|
-
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
12389
|
+
], Uo = [...Vo, ...Ho], Wo = [...Bo, ...Vo], Go = (e) => Wo[parseInt(v(e), 16) % Wo.length], Ko = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, qo = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
12390
|
+
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Go(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
12355
12391
|
p((e) => !e);
|
|
12356
12392
|
}, b, x, S;
|
|
12357
12393
|
if (r && !n && s(r)) {
|
|
@@ -12373,7 +12409,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12373
12409
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12374
12410
|
className: `${m}__label`,
|
|
12375
12411
|
title: l
|
|
12376
|
-
}, u > 0 ?
|
|
12412
|
+
}, u > 0 ? Ko(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12377
12413
|
"aria-label": `${a}: ${l}`,
|
|
12378
12414
|
className: `${m}__remove`,
|
|
12379
12415
|
onClick: () => {
|
|
@@ -12385,7 +12421,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12385
12421
|
iconName: "xmark",
|
|
12386
12422
|
size: "m"
|
|
12387
12423
|
})) : null);
|
|
12388
|
-
},
|
|
12424
|
+
}, Jo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12389
12425
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = ft(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
12390
12426
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12391
12427
|
className: Z([
|
|
@@ -12396,7 +12432,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12396
12432
|
]),
|
|
12397
12433
|
...a
|
|
12398
12434
|
}, /* @__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)));
|
|
12399
|
-
},
|
|
12435
|
+
}, Yo = () => {
|
|
12400
12436
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = g(e ? t(window.innerWidth) : "lg");
|
|
12401
12437
|
return u(() => {
|
|
12402
12438
|
if (!e) return;
|
|
@@ -12407,7 +12443,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12407
12443
|
window.removeEventListener("resize", n);
|
|
12408
12444
|
};
|
|
12409
12445
|
}, []), n;
|
|
12410
|
-
},
|
|
12446
|
+
}, Xo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
12411
12447
|
let [j, M] = g(l || !1);
|
|
12412
12448
|
u(() => {
|
|
12413
12449
|
M(l || !1);
|
|
@@ -12429,7 +12465,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12429
12465
|
return;
|
|
12430
12466
|
}
|
|
12431
12467
|
M(!j);
|
|
12432
|
-
}, U =
|
|
12468
|
+
}, U = Yo();
|
|
12433
12469
|
u(() => {
|
|
12434
12470
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12435
12471
|
}, [U]);
|
|
@@ -12524,7 +12560,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12524
12560
|
}, /* @__PURE__ */ e.createElement(Fi, {
|
|
12525
12561
|
destination: I,
|
|
12526
12562
|
text: F.skipToContent
|
|
12527
|
-
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(
|
|
12563
|
+
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ka, {
|
|
12528
12564
|
...i,
|
|
12529
12565
|
isOpen: c,
|
|
12530
12566
|
placement: "left",
|
|
@@ -12532,7 +12568,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12532
12568
|
!e && c && b && b();
|
|
12533
12569
|
}
|
|
12534
12570
|
}, r));
|
|
12535
|
-
},
|
|
12571
|
+
}, Zo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12536
12572
|
let c = "pds-docs-layout", l = {
|
|
12537
12573
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12538
12574
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12550,7 +12586,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12550
12586
|
},
|
|
12551
12587
|
...s
|
|
12552
12588
|
}, 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));
|
|
12553
|
-
},
|
|
12589
|
+
}, Qo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12554
12590
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
|
|
12555
12591
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12556
12592
|
className: Z([u, n ?? ""]),
|
|
@@ -12564,7 +12600,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12564
12600
|
},
|
|
12565
12601
|
...l
|
|
12566
12602
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12567
|
-
},
|
|
12603
|
+
}, $o = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
12568
12604
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
12569
12605
|
"--max-columns": i,
|
|
12570
12606
|
...a
|
|
@@ -12583,7 +12619,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12583
12619
|
className: `${s}__item`,
|
|
12584
12620
|
role: "listitem"
|
|
12585
12621
|
}, t))));
|
|
12586
|
-
},
|
|
12622
|
+
}, es = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12587
12623
|
let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Ji, {
|
|
12588
12624
|
className: Z([
|
|
12589
12625
|
l,
|
|
@@ -12593,8 +12629,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12593
12629
|
width: "wide",
|
|
12594
12630
|
...a
|
|
12595
12631
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12596
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12597
|
-
},
|
|
12632
|
+
return i ? /* @__PURE__ */ e.createElement(za, null, d) : d;
|
|
12633
|
+
}, ts = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12598
12634
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = ft(t), u = [
|
|
12599
12635
|
l["first-item"],
|
|
12600
12636
|
l["second-item"],
|
|
@@ -12612,7 +12648,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12612
12648
|
key: n,
|
|
12613
12649
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12614
12650
|
}, t)));
|
|
12615
|
-
},
|
|
12651
|
+
}, ns = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12616
12652
|
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;
|
|
12617
12653
|
switch (i) {
|
|
12618
12654
|
case "equal":
|
|
@@ -12633,7 +12669,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12633
12669
|
]),
|
|
12634
12670
|
...o
|
|
12635
12671
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12636
|
-
},
|
|
12672
|
+
}, rs = ({ 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 }) => {
|
|
12637
12673
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12638
12674
|
"--pds-flex-align-content": t,
|
|
12639
12675
|
"--pds-flex-align-items": n,
|
|
@@ -12659,7 +12695,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12659
12695
|
},
|
|
12660
12696
|
...g
|
|
12661
12697
|
}, r);
|
|
12662
|
-
},
|
|
12698
|
+
}, is = (e) => {
|
|
12663
12699
|
let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12664
12700
|
return u(() => {
|
|
12665
12701
|
if (!t) return;
|
|
@@ -12668,20 +12704,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12668
12704
|
};
|
|
12669
12705
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12670
12706
|
}, [e]), n;
|
|
12671
|
-
},
|
|
12707
|
+
}, as = [
|
|
12672
12708
|
"light",
|
|
12673
12709
|
"dark",
|
|
12674
12710
|
"system"
|
|
12675
|
-
],
|
|
12711
|
+
], os = (e) => typeof e == "string" && as.includes(e), ss = i(null), cs = {
|
|
12676
12712
|
resolvedTheme: "light",
|
|
12677
12713
|
setTheme: () => {},
|
|
12678
12714
|
theme: "light"
|
|
12679
|
-
},
|
|
12680
|
-
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y =
|
|
12715
|
+
}, ls = ({ 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){}})();`, us = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
|
|
12716
|
+
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = is("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
|
|
12681
12717
|
u(() => {
|
|
12682
12718
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12683
12719
|
let e = window.localStorage.getItem(s);
|
|
12684
|
-
|
|
12720
|
+
os(e) && m(e);
|
|
12685
12721
|
} catch {}
|
|
12686
12722
|
}, []), u(() => {
|
|
12687
12723
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12701,20 +12737,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12701
12737
|
]),
|
|
12702
12738
|
theme: v
|
|
12703
12739
|
};
|
|
12704
|
-
return /* @__PURE__ */ e.createElement(
|
|
12740
|
+
return /* @__PURE__ */ e.createElement(ss.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ls({
|
|
12705
12741
|
defaultTheme: n,
|
|
12706
12742
|
storageKey: s
|
|
12707
12743
|
}) } }), t);
|
|
12708
|
-
},
|
|
12744
|
+
}, ds = () => l(ss) ?? cs, fs = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12709
12745
|
u(() => {
|
|
12710
12746
|
let e = document.documentElement, t = () => {
|
|
12711
12747
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12712
12748
|
};
|
|
12713
12749
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12714
12750
|
}, [r]);
|
|
12715
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12751
|
+
let a = n ? /* @__PURE__ */ e.createElement(us, i, t) : t;
|
|
12716
12752
|
return /* @__PURE__ */ e.createElement($t, null, a);
|
|
12717
|
-
},
|
|
12753
|
+
}, ps = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12718
12754
|
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}`;
|
|
12719
12755
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12720
12756
|
className: Z([
|
|
@@ -12728,7 +12764,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12728
12764
|
]),
|
|
12729
12765
|
...c
|
|
12730
12766
|
}, n);
|
|
12731
|
-
},
|
|
12767
|
+
}, ms = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12732
12768
|
let f = "pds-grid-item", p = [
|
|
12733
12769
|
l ? `${f}--sm-${l}` : null,
|
|
12734
12770
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12747,7 +12783,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12747
12783
|
]),
|
|
12748
12784
|
...d
|
|
12749
12785
|
}, t);
|
|
12750
|
-
},
|
|
12786
|
+
}, hs = (e, t, n) => {
|
|
12751
12787
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [l, d] = g(!1), f = c((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
12752
12788
|
r,
|
|
12753
12789
|
i,
|
|
@@ -12771,7 +12807,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12771
12807
|
m,
|
|
12772
12808
|
a
|
|
12773
12809
|
]), l;
|
|
12774
|
-
},
|
|
12810
|
+
}, gs = () => {
|
|
12775
12811
|
let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12776
12812
|
return u(() => {
|
|
12777
12813
|
if (!e) return;
|
|
@@ -12785,6 +12821,6 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12785
12821
|
}, []), t;
|
|
12786
12822
|
};
|
|
12787
12823
|
//#endregion
|
|
12788
|
-
export { ur as ActionCard,
|
|
12824
|
+
export { ur as ActionCard, Xo as AppLayout, bt as Avatar, St as Badge, ma as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Zo as DocsLayout, ka as Drawer, Ln as Dropdown, Ki as DropdownMenu, La as ExpansionPanel, Ra as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, rs as FlexContainer, Aa as FullScreenOverlay, fs as GlobalWrapper, ps as Grid, ms as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ga as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, ya as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ja as Modal, ta as Navbar, Pa as Pagination, Fa as PaginationChapter, Ia as PaginationCompact, za as Panel, Ba as PanelList, Va as PanelRow, Ha as PanelStack, Ka as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, Ya as Popover, Za as ProgressBar, $a as ProgressRing, zr as ProportionBar, Ei as RadioGroup, no as ResultCount, or as SSOButton, va as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, na as SideNav, ia as SideNavGlobal, ra as SideNavGlobalItem, Qo as SidebarLayout, ao as SiteFooter, oa as SiteMenu, oo as SiteOptionDisplay, so as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, bo as SortableList, mo as SortableListHeader, So as SortableRow, bn as Spinner, rr as SplitButton, Co as StatPanel, $o as StatPanelGroup, xn as StatusBadge, To as StatusChecker, Eo as StatusIndicator, Jn as StatusTypeLabels, Do as StepList, Oo as Stepper, es as StepperLayout, Di as Switch, ca as TabMenu, jo as Table, Ro as TableOfContents, zo as Tabs, qo as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, ss as ThemeContext, us as ThemeContextProvider, Xi as ThemeSwitcher, ts as ThreeItemLayout, li as Timepicker, Ea as Toast, Da as ToastType, Ca as Toaster, xa as ToasterContext, nn as Tooltip, ua as TreeNav, ns as TwoItemLayout, Zi as UserMenu, Jo as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Ao as VerticalStepper, Kr as VideoEmbed, Qi as WorkspaceSelector, yi as getPresetDateRange, ls as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, wo as statusCheckerStates, Bo as tagColors, Uo as tagSolidColors, Vo as tagSolidHueColors, Ho as tagSolidStatusColors, Yo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, hs as useKeyPress, tn as useKeyboardShortcut, is as useMediaQuery, ds as useTheme, Oa as useToast, gs as useWindowWidth };
|
|
12789
12825
|
|
|
12790
12826
|
//# sourceMappingURL=index.js.map
|