@pantheon-systems/pds-toolkit-react 2.0.0-alpha.73 → 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/buttons/MenuButton/MenuButton.d.ts +11 -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/css/component-css/pds-index.css +4 -7
- package/dist/css/component-css/pds-input-utilities.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/pds-components.css +4 -7
- package/dist/index.css +1 -1
- package/dist/index.js +621 -615
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3413,25 +3413,25 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3413
3413
|
wordpress: "wordpress",
|
|
3414
3414
|
gatsby: "boltSolid",
|
|
3415
3415
|
nextjs: "boltSolid"
|
|
3416
|
-
}, tr = ({ className: t, disabled: n, iconName: r = "ellipsisVertical", iconOnly: i = !1, id: a,
|
|
3417
|
-
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({
|
|
3418
3418
|
enableClick: !n,
|
|
3419
3419
|
enableTypeahead: !0,
|
|
3420
3420
|
offsetValue: 8,
|
|
3421
3421
|
placement: "bottom-start",
|
|
3422
3422
|
role: "menu"
|
|
3423
|
-
}),
|
|
3423
|
+
}), j = Xt(), M = o && j, N = "pds-menu-button", P = _ === "navbar", F = P ? "subtle" : _, I = a, [L] = g(`menu-button-${a}`), R = [], z = [];
|
|
3424
3424
|
((e) => {
|
|
3425
3425
|
e.forEach((e) => {
|
|
3426
|
-
!Yn(e) && !Xn(e) && !Qn(e) &&
|
|
3426
|
+
!Yn(e) && !Xn(e) && !Qn(e) && z.push(e);
|
|
3427
3427
|
});
|
|
3428
|
-
})(
|
|
3429
|
-
let
|
|
3430
|
-
"disabled" in e && e.disabled || ("callback" in e && e.callback && e.callback(e),
|
|
3431
|
-
},
|
|
3432
|
-
|
|
3433
|
-
},
|
|
3434
|
-
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;
|
|
3435
3435
|
if (Yn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3436
3436
|
key: o,
|
|
3437
3437
|
className: "pds-dropdown__separator",
|
|
@@ -3439,7 +3439,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3439
3439
|
});
|
|
3440
3440
|
if (Xn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3441
3441
|
key: i || o,
|
|
3442
|
-
className: `pds-dropdown__heading ${
|
|
3442
|
+
className: `pds-dropdown__heading ${N}__listbox-heading`,
|
|
3443
3443
|
id: i || void 0,
|
|
3444
3444
|
role: "presentation"
|
|
3445
3445
|
}, t.label);
|
|
@@ -3448,17 +3448,17 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3448
3448
|
role: "presentation"
|
|
3449
3449
|
}, t.nodeContent);
|
|
3450
3450
|
if (Zn(t) || "label" in t && t.label) {
|
|
3451
|
-
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 = [];
|
|
3452
3452
|
if ("label" in t && t.label && s.push(t.label), Zn(t) && t.linkContent) {
|
|
3453
3453
|
let e = t.linkContent;
|
|
3454
3454
|
s.push(e.props.children);
|
|
3455
3455
|
}
|
|
3456
3456
|
t.iconName && s.unshift(/* @__PURE__ */ e.createElement(Q, {
|
|
3457
|
-
key: `icon-${
|
|
3457
|
+
key: `icon-${I}`,
|
|
3458
3458
|
iconName: t.iconName,
|
|
3459
3459
|
size: t.iconSize ?? "s"
|
|
3460
3460
|
})), i && a && s.unshift(/* @__PURE__ */ e.createElement("span", {
|
|
3461
|
-
key: `critical-${
|
|
3461
|
+
key: `critical-${I}`,
|
|
3462
3462
|
className: "visually-hidden"
|
|
3463
3463
|
}, a));
|
|
3464
3464
|
let c = t.description ? /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-description" }, t.description) : null, l;
|
|
@@ -3467,9 +3467,9 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3467
3467
|
l = /* @__PURE__ */ e.createElement(r, {
|
|
3468
3468
|
tabIndex: -1,
|
|
3469
3469
|
...n.props,
|
|
3470
|
-
onClick: () =>
|
|
3471
|
-
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3472
|
-
} 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);
|
|
3473
3473
|
let u = Z([
|
|
3474
3474
|
"pds-dropdown__item",
|
|
3475
3475
|
r ? "pds-dropdown__item--focused" : null,
|
|
@@ -3478,7 +3478,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3478
3478
|
return /* @__PURE__ */ e.createElement("li", {
|
|
3479
3479
|
key: o,
|
|
3480
3480
|
ref: (e) => {
|
|
3481
|
-
|
|
3481
|
+
D.current[n] = e;
|
|
3482
3482
|
},
|
|
3483
3483
|
"aria-disabled": t.disabled || void 0,
|
|
3484
3484
|
className: u,
|
|
@@ -3486,18 +3486,18 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3486
3486
|
id: o,
|
|
3487
3487
|
role: "menuitem",
|
|
3488
3488
|
tabIndex: r ? 0 : -1,
|
|
3489
|
-
...
|
|
3489
|
+
...C({
|
|
3490
3490
|
onClick: () => {
|
|
3491
|
-
Zn(t) ||
|
|
3491
|
+
Zn(t) || B(t), k(!1);
|
|
3492
3492
|
},
|
|
3493
3493
|
onKeyDown: (e) => {
|
|
3494
|
-
(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));
|
|
3495
3495
|
}
|
|
3496
3496
|
})
|
|
3497
3497
|
}, l);
|
|
3498
3498
|
}
|
|
3499
|
-
},
|
|
3500
|
-
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}`;
|
|
3501
3501
|
if (Yn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3502
3502
|
key: r,
|
|
3503
3503
|
className: "pds-dropdown__separator",
|
|
@@ -3505,7 +3505,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3505
3505
|
});
|
|
3506
3506
|
if (Xn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
3507
3507
|
key: r,
|
|
3508
|
-
className: `pds-dropdown__heading ${
|
|
3508
|
+
className: `pds-dropdown__heading ${N}__listbox-heading`,
|
|
3509
3509
|
role: "presentation"
|
|
3510
3510
|
}, t.label);
|
|
3511
3511
|
if (Qn(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -3519,11 +3519,11 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3519
3519
|
o.push(e.props.children);
|
|
3520
3520
|
}
|
|
3521
3521
|
t.iconName && o.unshift(/* @__PURE__ */ e.createElement(Q, {
|
|
3522
|
-
key: `icon-${
|
|
3522
|
+
key: `icon-${I}-${n}`,
|
|
3523
3523
|
iconName: t.iconName,
|
|
3524
3524
|
size: t.iconSize ?? "s"
|
|
3525
3525
|
})), i && a && o.unshift(/* @__PURE__ */ e.createElement("span", {
|
|
3526
|
-
key: `critical-${
|
|
3526
|
+
key: `critical-${I}-${n}`,
|
|
3527
3527
|
className: "visually-hidden"
|
|
3528
3528
|
}, a));
|
|
3529
3529
|
let s = t.description ? /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-description" }, t.description) : null, c;
|
|
@@ -3532,138 +3532,138 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3532
3532
|
c = /* @__PURE__ */ e.createElement(r, {
|
|
3533
3533
|
tabIndex: -1,
|
|
3534
3534
|
...n.props
|
|
3535
|
-
}, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3536
|
-
} 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);
|
|
3537
3537
|
return /* @__PURE__ */ e.createElement("li", {
|
|
3538
3538
|
key: r,
|
|
3539
3539
|
"aria-disabled": t.disabled || void 0,
|
|
3540
3540
|
className: Z(["pds-dropdown__item", i ? "pds-dropdown__item--critical" : null]),
|
|
3541
3541
|
id: r,
|
|
3542
3542
|
onClick: () => {
|
|
3543
|
-
Zn(t) ||
|
|
3543
|
+
Zn(t) || B(t);
|
|
3544
3544
|
},
|
|
3545
3545
|
role: "menuitem",
|
|
3546
3546
|
tabIndex: t.disabled ? -1 : 0
|
|
3547
3547
|
}, c);
|
|
3548
3548
|
}
|
|
3549
|
-
},
|
|
3549
|
+
}, W = (t) => {
|
|
3550
3550
|
let n = t.filter(Xn || Yn), r = n.length > 0, a = Z([
|
|
3551
3551
|
"pds-dropdown__panel",
|
|
3552
|
-
`${
|
|
3553
|
-
i ? `${
|
|
3552
|
+
`${N}__listbox`,
|
|
3553
|
+
i ? `${N}__listbox--icon-only` : null
|
|
3554
3554
|
]), o = 0;
|
|
3555
3555
|
if (r) {
|
|
3556
|
-
let r =
|
|
3556
|
+
let r = G(t, n);
|
|
3557
3557
|
return r.forEach((e, t) => {
|
|
3558
|
-
|
|
3558
|
+
R.push(`${t}`);
|
|
3559
3559
|
}), /* @__PURE__ */ e.createElement("div", {
|
|
3560
|
-
ref:
|
|
3561
|
-
"aria-labelledby":
|
|
3560
|
+
ref: O.setFloating,
|
|
3561
|
+
"aria-labelledby": I,
|
|
3562
3562
|
className: a,
|
|
3563
|
-
id:
|
|
3563
|
+
id: L,
|
|
3564
3564
|
role: "menu",
|
|
3565
3565
|
style: {
|
|
3566
|
-
...
|
|
3567
|
-
...
|
|
3566
|
+
...b,
|
|
3567
|
+
...A,
|
|
3568
3568
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3569
3569
|
},
|
|
3570
|
-
...
|
|
3570
|
+
...x()
|
|
3571
3571
|
}, r.map((t, n) => {
|
|
3572
|
-
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}`;
|
|
3573
3573
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
3574
3574
|
key: s,
|
|
3575
3575
|
"aria-label": c,
|
|
3576
3576
|
"aria-labelledby": a || void 0,
|
|
3577
3577
|
role: "group"
|
|
3578
3578
|
}, t.map((e) => {
|
|
3579
|
-
let t =
|
|
3579
|
+
let t = H(e, o, r, a);
|
|
3580
3580
|
return !Yn(e) && !Xn(e) && !Qn(e) && o++, t;
|
|
3581
3581
|
}));
|
|
3582
3582
|
}));
|
|
3583
3583
|
} else return /* @__PURE__ */ e.createElement("ul", {
|
|
3584
|
-
ref:
|
|
3585
|
-
"aria-labelledby":
|
|
3584
|
+
ref: O.setFloating,
|
|
3585
|
+
"aria-labelledby": I,
|
|
3586
3586
|
className: a,
|
|
3587
|
-
id:
|
|
3587
|
+
id: L,
|
|
3588
3588
|
role: "menu",
|
|
3589
3589
|
style: {
|
|
3590
|
-
...
|
|
3591
|
-
...
|
|
3590
|
+
...b,
|
|
3591
|
+
...A,
|
|
3592
3592
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3593
3593
|
},
|
|
3594
|
-
...
|
|
3594
|
+
...x()
|
|
3595
3595
|
}, t.map((e) => {
|
|
3596
|
-
let t =
|
|
3596
|
+
let t = H(e, o);
|
|
3597
3597
|
return !Yn(e) && !Xn(e) && !Qn(e) && o++, t;
|
|
3598
3598
|
}));
|
|
3599
|
-
},
|
|
3599
|
+
}, G = (e, t) => {
|
|
3600
3600
|
let n = [], r = [...t], i = r.shift(), a = [];
|
|
3601
3601
|
return e.forEach((t, o) => {
|
|
3602
3602
|
t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
|
|
3603
3603
|
}), n.filter((e) => e.length > 0);
|
|
3604
|
-
},
|
|
3604
|
+
}, K, q = d === "m" ? "s" : "xs", J = p ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(Sn, {
|
|
3605
3605
|
className: "pds-button__tally",
|
|
3606
|
-
label:
|
|
3607
|
-
size:
|
|
3608
|
-
type:
|
|
3609
|
-
})) :
|
|
3610
|
-
className: `${
|
|
3611
|
-
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,
|
|
3612
3612
|
size: "s",
|
|
3613
|
-
type:
|
|
3614
|
-
})) :
|
|
3615
|
-
if (i || (
|
|
3616
|
-
ref:
|
|
3617
|
-
"aria-controls":
|
|
3618
|
-
"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,
|
|
3619
3619
|
"aria-haspopup": "true",
|
|
3620
|
-
className: Z([`${
|
|
3620
|
+
className: Z([`${N}__trigger`, P ? `${N}__trigger--navbar` : null]),
|
|
3621
3621
|
disabled: n,
|
|
3622
3622
|
displayType: "icon-end",
|
|
3623
3623
|
iconName: "angleDown",
|
|
3624
|
-
id:
|
|
3625
|
-
isSplitButton:
|
|
3626
|
-
label:
|
|
3627
|
-
size:
|
|
3628
|
-
statusDot:
|
|
3624
|
+
id: I,
|
|
3625
|
+
isSplitButton: s,
|
|
3626
|
+
label: J,
|
|
3627
|
+
size: d,
|
|
3628
|
+
statusDot: f,
|
|
3629
3629
|
type: "button",
|
|
3630
|
-
variant:
|
|
3631
|
-
...
|
|
3630
|
+
variant: F,
|
|
3631
|
+
...w({ onClick: V })
|
|
3632
3632
|
})), i) {
|
|
3633
|
-
let t = En(
|
|
3634
|
-
|
|
3635
|
-
ref:
|
|
3636
|
-
"aria-controls":
|
|
3637
|
-
"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,
|
|
3638
3638
|
"aria-haspopup": "true",
|
|
3639
3639
|
ariaLabel: t,
|
|
3640
|
-
className: `${
|
|
3640
|
+
className: `${N}__trigger ${N}__trigger--icon-only`,
|
|
3641
3641
|
disabled: n,
|
|
3642
3642
|
hasTooltip: !1,
|
|
3643
3643
|
iconName: r,
|
|
3644
|
-
id:
|
|
3645
|
-
size:
|
|
3644
|
+
id: I,
|
|
3645
|
+
size: d,
|
|
3646
3646
|
type: "button",
|
|
3647
3647
|
variant: "standard",
|
|
3648
|
-
...
|
|
3648
|
+
...w({ onClick: V })
|
|
3649
3649
|
});
|
|
3650
3650
|
}
|
|
3651
|
-
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;
|
|
3652
3652
|
return /* @__PURE__ */ e.createElement("span", {
|
|
3653
3653
|
className: Z([
|
|
3654
|
-
|
|
3655
|
-
|
|
3654
|
+
N,
|
|
3655
|
+
ne,
|
|
3656
3656
|
t
|
|
3657
3657
|
]),
|
|
3658
|
-
"data-testid":
|
|
3659
|
-
...
|
|
3660
|
-
},
|
|
3658
|
+
"data-testid": m,
|
|
3659
|
+
...v
|
|
3660
|
+
}, M ? /* @__PURE__ */ e.createElement(qn, {
|
|
3661
3661
|
disabled: n,
|
|
3662
|
-
label:
|
|
3662
|
+
label: te
|
|
3663
3663
|
}, /* @__PURE__ */ e.createElement("ul", {
|
|
3664
|
-
className: `${
|
|
3664
|
+
className: `${N}__mobile-menu`,
|
|
3665
3665
|
role: "menu"
|
|
3666
|
-
},
|
|
3666
|
+
}, l.map((e, t) => U(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, K, T && /* @__PURE__ */ e.createElement(S, null, W(l))));
|
|
3667
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 }) => {
|
|
3668
3668
|
let p = "pds-segmented-button", m = u === "m" ? null : `${p}--${u}`, h = t ? `${p}--bordered` : null, _ = a ? `${p}--icon-only` : null;
|
|
3669
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.");
|
|
@@ -8734,7 +8734,9 @@ var Hr = {
|
|
|
8734
8734
|
}, Hi = (e) => e.map((e) => `${Bi(e)}${e.links ? `[${Hi(e.links)}]` : ""}`).join("|"), Ui = (e) => {
|
|
8735
8735
|
if (s(e)) {
|
|
8736
8736
|
let t = e.type;
|
|
8737
|
-
|
|
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;
|
|
8738
8740
|
}
|
|
8739
8741
|
return !1;
|
|
8740
8742
|
}, Wi = (e, t) => {
|
|
@@ -8917,7 +8919,347 @@ var Hr = {
|
|
|
8917
8919
|
]),
|
|
8918
8920
|
...i
|
|
8919
8921
|
}, t);
|
|
8920
|
-
}, 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 = {
|
|
8921
9263
|
closeMobileNav: "Close navigation area",
|
|
8922
9264
|
openMobileNav: "Open navigation area"
|
|
8923
9265
|
}, ...c }) => {
|
|
@@ -8987,7 +9329,7 @@ var Hr = {
|
|
|
8987
9329
|
className: "visually-hidden",
|
|
8988
9330
|
onClick: b,
|
|
8989
9331
|
type: "button"
|
|
8990
|
-
}, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ji, {
|
|
9332
|
+
}, s.closeMobileNav), ea(w), ea(T), ea(E))))) : /* @__PURE__ */ e.createElement(Ji, {
|
|
8991
9333
|
className: `${h}__inner`,
|
|
8992
9334
|
style: o ? { paddingInline: o } : void 0,
|
|
8993
9335
|
width: i
|
|
@@ -8995,7 +9337,7 @@ var Hr = {
|
|
|
8995
9337
|
"aria-hidden": "true",
|
|
8996
9338
|
className: `${h}__separator`
|
|
8997
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)));
|
|
8998
|
-
},
|
|
9340
|
+
}, na = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
|
|
8999
9341
|
submenu: "submenu",
|
|
9000
9342
|
toggle: "Toggle"
|
|
9001
9343
|
}, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...d }) => {
|
|
@@ -9085,7 +9427,7 @@ var Hr = {
|
|
|
9085
9427
|
]),
|
|
9086
9428
|
...d
|
|
9087
9429
|
}, S, i && C);
|
|
9088
|
-
},
|
|
9430
|
+
}, ra = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
|
|
9089
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([
|
|
9090
9432
|
p,
|
|
9091
9433
|
`${p}--${n}`,
|
|
@@ -9171,7 +9513,7 @@ var Hr = {
|
|
|
9171
9513
|
},
|
|
9172
9514
|
preferredPlacement: "right"
|
|
9173
9515
|
}) : m));
|
|
9174
|
-
},
|
|
9516
|
+
}, ia = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
|
|
9175
9517
|
submenu: "submenu",
|
|
9176
9518
|
toggle: "Toggle"
|
|
9177
9519
|
}, menuItems: a, onExpandSidebar: o, ...s }) => {
|
|
@@ -9200,7 +9542,7 @@ var Hr = {
|
|
|
9200
9542
|
role: "presentation"
|
|
9201
9543
|
}, t.label);
|
|
9202
9544
|
let a = Vi(t);
|
|
9203
|
-
return /* @__PURE__ */ e.createElement(
|
|
9545
|
+
return /* @__PURE__ */ e.createElement(ra, {
|
|
9204
9546
|
key: n,
|
|
9205
9547
|
icon: t.icon,
|
|
9206
9548
|
isActive: a,
|
|
@@ -9222,7 +9564,7 @@ var Hr = {
|
|
|
9222
9564
|
]),
|
|
9223
9565
|
...s
|
|
9224
9566
|
}, h);
|
|
9225
|
-
},
|
|
9567
|
+
}, aa = ({ items: t, label: n }) => {
|
|
9226
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({
|
|
9227
9569
|
offsetValue: 8,
|
|
9228
9570
|
openOnHover: !Xt()
|
|
@@ -9259,7 +9601,7 @@ var Hr = {
|
|
|
9259
9601
|
key: n,
|
|
9260
9602
|
className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
|
|
9261
9603
|
}, !t.isSeparator && t.linkContent)))));
|
|
9262
|
-
},
|
|
9604
|
+
}, oa = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
|
|
9263
9605
|
let [a, o] = g(null), [s, c] = g(-1), [l, f] = g(null), [p, m] = g({
|
|
9264
9606
|
container: null,
|
|
9265
9607
|
containerChildren: []
|
|
@@ -9306,7 +9648,7 @@ var Hr = {
|
|
|
9306
9648
|
},
|
|
9307
9649
|
className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
|
|
9308
9650
|
id: i
|
|
9309
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9651
|
+
}, /* @__PURE__ */ e.createElement(aa, {
|
|
9310
9652
|
items: t.links,
|
|
9311
9653
|
label: t.label
|
|
9312
9654
|
}))) : S.push(/* @__PURE__ */ e.createElement("li", {
|
|
@@ -9325,7 +9667,7 @@ var Hr = {
|
|
|
9325
9667
|
},
|
|
9326
9668
|
...i
|
|
9327
9669
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
|
|
9328
|
-
},
|
|
9670
|
+
}, sa = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
9329
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({
|
|
9330
9672
|
offsetValue: 8,
|
|
9331
9673
|
placement: "bottom-start",
|
|
@@ -9390,7 +9732,7 @@ var Hr = {
|
|
|
9390
9732
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9391
9733
|
} })
|
|
9392
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)))));
|
|
9393
|
-
},
|
|
9735
|
+
}, ca = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
9394
9736
|
let o = "pds-tab-menu", c = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
|
|
9395
9737
|
let u = `${o}__item`, d = Ri(c);
|
|
9396
9738
|
return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
|
|
@@ -9403,7 +9745,7 @@ var Hr = {
|
|
|
9403
9745
|
iconName: n,
|
|
9404
9746
|
size: "m"
|
|
9405
9747
|
}), t.props.children)] })) : t), i;
|
|
9406
|
-
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(
|
|
9748
|
+
})(l ? d : a, n), c && /* @__PURE__ */ e.createElement(sa, {
|
|
9407
9749
|
buttonLabel: t?.buttonLabel,
|
|
9408
9750
|
filterLabel: t?.filterLabel,
|
|
9409
9751
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -9425,11 +9767,11 @@ var Hr = {
|
|
|
9425
9767
|
className: Z([o, n ?? ""]),
|
|
9426
9768
|
...a
|
|
9427
9769
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
|
|
9428
|
-
},
|
|
9770
|
+
}, la = {
|
|
9429
9771
|
2: "second",
|
|
9430
9772
|
3: "third",
|
|
9431
9773
|
4: "fourth"
|
|
9432
|
-
},
|
|
9774
|
+
}, ua = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
|
|
9433
9775
|
submenu: "submenu",
|
|
9434
9776
|
toggle: "Toggle"
|
|
9435
9777
|
}, menuItems: a, ...o }) => {
|
|
@@ -9549,7 +9891,7 @@ var Hr = {
|
|
|
9549
9891
|
display: "none"
|
|
9550
9892
|
}), b();
|
|
9551
9893
|
}, j = (t, n, r) => {
|
|
9552
|
-
let a =
|
|
9894
|
+
let a = la[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Vi(n);
|
|
9553
9895
|
if (_.current && n.path) {
|
|
9554
9896
|
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9555
9897
|
if (e) {
|
|
@@ -9586,7 +9928,7 @@ var Hr = {
|
|
|
9586
9928
|
]),
|
|
9587
9929
|
"data-item-path": t.path || "",
|
|
9588
9930
|
role: "treeitem"
|
|
9589
|
-
}, t.links && d in
|
|
9931
|
+
}, t.links && d in la ? j(d, t, t.links) : t.linkContent);
|
|
9590
9932
|
})));
|
|
9591
9933
|
}, M = (t, n) => {
|
|
9592
9934
|
let { linkContent: r, links: i } = t, a = Vi(t);
|
|
@@ -9618,348 +9960,12 @@ var Hr = {
|
|
|
9618
9960
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9619
9961
|
role: "tree"
|
|
9620
9962
|
}, a.map((e, t) => M(e, t))));
|
|
9621
|
-
},
|
|
9622
|
-
light: "sunBright",
|
|
9623
|
-
dark: "moon",
|
|
9624
|
-
system: "circleHalfStroke"
|
|
9625
|
-
}, oa = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
|
|
9626
|
-
light: "Light",
|
|
9627
|
-
dark: "Dark",
|
|
9628
|
-
system: "System"
|
|
9629
|
-
}, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
|
|
9630
|
-
let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
|
|
9631
|
-
"light",
|
|
9632
|
-
"dark",
|
|
9633
|
-
"system"
|
|
9634
|
-
];
|
|
9635
|
-
if (s === "toggle") {
|
|
9636
|
-
let s = d.map((e) => ({
|
|
9637
|
-
iconName: aa[e],
|
|
9638
|
-
label: r[e],
|
|
9639
|
-
value: e
|
|
9640
|
-
}));
|
|
9641
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
9642
|
-
className: Z([l, t]),
|
|
9643
|
-
...c
|
|
9644
|
-
}, /* @__PURE__ */ e.createElement(nr, {
|
|
9645
|
-
iconOnly: !0,
|
|
9646
|
-
id: n,
|
|
9647
|
-
label: u,
|
|
9648
|
-
onChange: (e) => i?.(e),
|
|
9649
|
-
options: s,
|
|
9650
|
-
size: a,
|
|
9651
|
-
value: o
|
|
9652
|
-
}));
|
|
9653
|
-
}
|
|
9654
|
-
let f = d.map((e) => ({
|
|
9655
|
-
callback: () => i?.(e),
|
|
9656
|
-
iconName: aa[e],
|
|
9657
|
-
iconSize: "m",
|
|
9658
|
-
label: r[e]
|
|
9659
|
-
}));
|
|
9660
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
9661
|
-
className: Z([l, t]),
|
|
9662
|
-
...c
|
|
9663
|
-
}, /* @__PURE__ */ e.createElement(nn, {
|
|
9664
|
-
content: u,
|
|
9665
|
-
customTrigger: /* @__PURE__ */ e.createElement(tr, {
|
|
9666
|
-
iconOnly: !0,
|
|
9667
|
-
"aria-label": u,
|
|
9668
|
-
iconName: aa[o],
|
|
9669
|
-
id: n,
|
|
9670
|
-
label: "",
|
|
9671
|
-
menuItems: f,
|
|
9672
|
-
size: "m"
|
|
9673
|
-
}),
|
|
9674
|
-
offsetValue: 0,
|
|
9675
|
-
preferredPlacement: "top"
|
|
9676
|
-
}));
|
|
9677
|
-
}, 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 }) => {
|
|
9678
|
-
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({
|
|
9679
|
-
placement: "bottom-end",
|
|
9680
|
-
open: _,
|
|
9681
|
-
onOpenChange: v,
|
|
9682
|
-
middleware: [
|
|
9683
|
-
E(12),
|
|
9684
|
-
T(),
|
|
9685
|
-
O()
|
|
9686
|
-
],
|
|
9687
|
-
whileElementsMounted: w,
|
|
9688
|
-
strategy: "fixed"
|
|
9689
|
-
}), F = A(k, { event: "mousedown" }), B = j(k), V = R(k, { role: "menu" }), H = h([]), { getFloatingProps: U, getItemProps: W, getReferenceProps: G } = I([
|
|
9690
|
-
B,
|
|
9691
|
-
V,
|
|
9692
|
-
F,
|
|
9693
|
-
L(k, {
|
|
9694
|
-
listRef: H,
|
|
9695
|
-
activeIndex: p,
|
|
9696
|
-
onNavigate: m,
|
|
9697
|
-
loop: !0,
|
|
9698
|
-
openOnArrowKeyDown: !0,
|
|
9699
|
-
focusItemOnOpen: !1,
|
|
9700
|
-
focusItemOnHover: !0
|
|
9701
|
-
})
|
|
9702
|
-
]), { isMounted: K, styles: q } = z(k, {
|
|
9703
|
-
duration: {
|
|
9704
|
-
open: 300,
|
|
9705
|
-
close: 150
|
|
9706
|
-
},
|
|
9707
|
-
initial: { opacity: 0 },
|
|
9708
|
-
open: { opacity: 1 },
|
|
9709
|
-
close: { opacity: 0 }
|
|
9710
|
-
}), J = /* @__PURE__ */ e.createElement(bt, {
|
|
9711
|
-
hasUserFallback: !0,
|
|
9712
|
-
className: `${C}__avatar`,
|
|
9713
|
-
imageSrc: l,
|
|
9714
|
-
size: "s",
|
|
9715
|
-
uniqueId: c
|
|
9716
|
-
}), ee = /* @__PURE__ */ e.createElement("li", {
|
|
9717
|
-
className: `${C}__user-details`,
|
|
9718
|
-
role: "presentation"
|
|
9719
|
-
}, /* @__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", {
|
|
9720
|
-
className: `${C}__theme-row`,
|
|
9721
|
-
role: "presentation"
|
|
9722
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${C}__theme-label` }, o), /* @__PURE__ */ e.createElement(oa, {
|
|
9723
|
-
id: `${x}-theme`,
|
|
9724
|
-
labelStrings: s,
|
|
9725
|
-
onChange: i,
|
|
9726
|
-
size: "s",
|
|
9727
|
-
theme: a,
|
|
9728
|
-
variant: "toggle"
|
|
9729
|
-
})) : null;
|
|
9730
|
-
r.forEach((e, t) => {
|
|
9731
|
-
let n = e.id ? e.id : `${x}-item-${t}`;
|
|
9732
|
-
y.current.push(n), b.current.push(e);
|
|
9733
|
-
});
|
|
9734
|
-
let ne = (e) => {
|
|
9735
|
-
let t = y.current.indexOf(e), n = b.current[t];
|
|
9736
|
-
n.linkContent && !n.disabled && (H.current[t].querySelector("a").click(), v(!1)), n.callback && !n.disabled && (n.callback(), v(!1));
|
|
9737
|
-
}, re = (e) => {
|
|
9738
|
-
e.preventDefault(), e.key === "Enter" && ne(e.currentTarget.id);
|
|
9739
|
-
}, ie = (e) => {
|
|
9740
|
-
ne(e.currentTarget.id);
|
|
9741
|
-
}, ae = r.map((t, n) => {
|
|
9742
|
-
let r = y.current[n], i = `${C}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9743
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9744
|
-
key: r,
|
|
9745
|
-
ref: (e) => {
|
|
9746
|
-
H.current[n] = e;
|
|
9747
|
-
},
|
|
9748
|
-
"aria-disabled": t.disabled || void 0,
|
|
9749
|
-
className: Z([i, a]),
|
|
9750
|
-
id: r,
|
|
9751
|
-
onKeyDown: re,
|
|
9752
|
-
role: "menuitem",
|
|
9753
|
-
tabIndex: p === n ? 0 : -1,
|
|
9754
|
-
...W({ onClick: (e) => ie(e) })
|
|
9755
|
-
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9756
|
-
className: `${C}__icon`,
|
|
9757
|
-
iconName: t.iconName,
|
|
9758
|
-
size: "m"
|
|
9759
|
-
}));
|
|
9760
|
-
}), oe = r.map((t, n) => {
|
|
9761
|
-
let r = y.current[n], i = `${C}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9762
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9763
|
-
key: r,
|
|
9764
|
-
"aria-disabled": t.disabled || void 0,
|
|
9765
|
-
className: Z([i, a]),
|
|
9766
|
-
id: `${r}-accordion`,
|
|
9767
|
-
onClick: () => {
|
|
9768
|
-
t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
|
|
9769
|
-
},
|
|
9770
|
-
role: "menuitem"
|
|
9771
|
-
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9772
|
-
className: `${C}__icon`,
|
|
9773
|
-
iconName: t.iconName,
|
|
9774
|
-
size: "m"
|
|
9775
|
-
}));
|
|
9776
|
-
}), Y = /* @__PURE__ */ e.createElement("span", { className: `${C}__toggle-left` }, J, u ?? c);
|
|
9777
|
-
return /* @__PURE__ */ e.createElement("span", {
|
|
9778
|
-
className: Z([C, n ?? ""]),
|
|
9779
|
-
...f
|
|
9780
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: Y }, /* @__PURE__ */ e.createElement("ul", {
|
|
9781
|
-
className: Z([D, `${D}--mobile`]),
|
|
9782
|
-
role: "menu"
|
|
9783
|
-
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, oe)), /* @__PURE__ */ e.createElement("button", {
|
|
9784
|
-
ref: P.setReference,
|
|
9785
|
-
"aria-label": t,
|
|
9786
|
-
className: `${C}__trigger`,
|
|
9787
|
-
type: "button",
|
|
9788
|
-
...G()
|
|
9789
|
-
}, J), K && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9790
|
-
ref: P.setFloating,
|
|
9791
|
-
className: `${C}__dropdown`,
|
|
9792
|
-
style: {
|
|
9793
|
-
...N,
|
|
9794
|
-
zIndex: "var(--pds-z-index-dropdown)"
|
|
9795
|
-
},
|
|
9796
|
-
...U()
|
|
9797
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...q } }, /* @__PURE__ */ e.createElement("ul", {
|
|
9798
|
-
className: D,
|
|
9799
|
-
role: "menu"
|
|
9800
|
-
}, ee, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, ae)))));
|
|
9801
|
-
}, 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 }) => {
|
|
9802
|
-
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({
|
|
9803
|
-
enableTypeahead: !b,
|
|
9804
|
-
role: "menu"
|
|
9805
|
-
}), F = l.find((e) => e.isActive);
|
|
9806
|
-
F || (F = l[0]);
|
|
9807
|
-
let I = h(null);
|
|
9808
|
-
p(() => {
|
|
9809
|
-
let e = I.current, t = e?.parentElement;
|
|
9810
|
-
if (!e || !t) return;
|
|
9811
|
-
let n = () => {
|
|
9812
|
-
t.style.width = "";
|
|
9813
|
-
let n = document.createRange();
|
|
9814
|
-
n.selectNodeContents(e);
|
|
9815
|
-
let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
|
|
9816
|
-
i > 0 && (t.style.width = `${Math.ceil(i)}px`);
|
|
9817
|
-
};
|
|
9818
|
-
n(), document.fonts?.ready.then(n);
|
|
9819
|
-
}, [F?.displayName]);
|
|
9820
|
-
let L = m(() => {
|
|
9821
|
-
if (!d) return l;
|
|
9822
|
-
let e = d.toLowerCase();
|
|
9823
|
-
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9824
|
-
}, [l, d]), R = m(() => {
|
|
9825
|
-
if (!_) return l;
|
|
9826
|
-
let e = _.toLowerCase();
|
|
9827
|
-
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9828
|
-
}, [l, _]), z = (e) => {
|
|
9829
|
-
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));
|
|
9830
|
-
}, B = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${x}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9831
|
-
className: `${x}__list-avatar`,
|
|
9832
|
-
imageSrc: t.imageSrc,
|
|
9833
|
-
size: "s",
|
|
9834
|
-
uniqueId: t.workspaceId
|
|
9835
|
-
}), 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, {
|
|
9836
|
-
className: `${x}__lock-icon`,
|
|
9837
|
-
iconName: "lock"
|
|
9838
|
-
}), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), V = L.map((t, n) => {
|
|
9839
|
-
let r = `${x}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
|
|
9840
|
-
j.current[n] = e;
|
|
9841
|
-
};
|
|
9842
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9843
|
-
key: i,
|
|
9844
|
-
ref: s,
|
|
9845
|
-
className: Z([
|
|
9846
|
-
"pds-dropdown__item",
|
|
9847
|
-
r,
|
|
9848
|
-
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9849
|
-
t.isActive ? `${r}--active` : null,
|
|
9850
|
-
t.isUnprivileged ? `${r}--unprivileged` : null,
|
|
9851
|
-
t.isRestricted ? `${r}--restricted` : null
|
|
9852
|
-
]),
|
|
9853
|
-
id: i,
|
|
9854
|
-
onKeyDown: z,
|
|
9855
|
-
role: "menuitem",
|
|
9856
|
-
tabIndex: T === n ? 0 : -1,
|
|
9857
|
-
...O()
|
|
9858
|
-
}, a ? /* @__PURE__ */ e.createElement("button", {
|
|
9859
|
-
onClick: () => {
|
|
9860
|
-
t.onRestrictedSelection(), N(!1);
|
|
9861
|
-
},
|
|
9862
|
-
type: "button"
|
|
9863
|
-
}, B(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => N(!1) }), B(t)) : null);
|
|
9864
|
-
}), H = R.map((t) => {
|
|
9865
|
-
let n = `${x}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
9866
|
-
return /* @__PURE__ */ e.createElement("li", {
|
|
9867
|
-
key: `${r}-accordion`,
|
|
9868
|
-
className: Z([
|
|
9869
|
-
"pds-dropdown__item",
|
|
9870
|
-
n,
|
|
9871
|
-
t.isActive ? "pds-dropdown__item--active" : null,
|
|
9872
|
-
t.isActive ? `${n}--active` : null,
|
|
9873
|
-
t.isUnprivileged ? `${n}--unprivileged` : null,
|
|
9874
|
-
t.isRestricted ? `${n}--restricted` : null
|
|
9875
|
-
]),
|
|
9876
|
-
id: `${r}-accordion`,
|
|
9877
|
-
role: "menuitem"
|
|
9878
|
-
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
9879
|
-
onClick: () => t.onRestrictedSelection(),
|
|
9880
|
-
type: "button"
|
|
9881
|
-
}, B(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), B(t)) : null);
|
|
9882
|
-
}), U = r && /* @__PURE__ */ e.createElement("div", {
|
|
9883
|
-
ref: y,
|
|
9884
|
-
className: `${x}__create-link`
|
|
9885
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
9886
|
-
className: `${x}__create-link-inner`,
|
|
9887
|
-
onBlur: () => N(!1),
|
|
9888
|
-
onClick: () => N(!1)
|
|
9889
|
-
}, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9890
|
-
iconName: "plus",
|
|
9891
|
-
size: "s"
|
|
9892
|
-
}))), W = (t) => F ? /* @__PURE__ */ e.createElement("div", { className: `${x}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9893
|
-
className: `${x}__avatar`,
|
|
9894
|
-
imageSrc: F.imageSrc,
|
|
9895
|
-
size: "s",
|
|
9896
|
-
uniqueId: F.workspaceId
|
|
9897
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${x}__name` }, /* @__PURE__ */ e.createElement("span", {
|
|
9898
|
-
ref: t,
|
|
9899
|
-
className: `${x}__name-text`
|
|
9900
|
-
}, F.displayName))) : null;
|
|
9901
|
-
return /* @__PURE__ */ e.createElement("span", {
|
|
9902
|
-
className: Z([x, n]),
|
|
9903
|
-
...u
|
|
9904
|
-
}, /* @__PURE__ */ e.createElement(qn, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9905
|
-
hasClearButton: !0,
|
|
9906
|
-
id: "workspace-filter-mobile",
|
|
9907
|
-
label: i,
|
|
9908
|
-
onChange: (e) => v(e.target.value),
|
|
9909
|
-
onClear: () => v(""),
|
|
9910
|
-
placeholder: a,
|
|
9911
|
-
showLabel: !1,
|
|
9912
|
-
type: "search"
|
|
9913
|
-
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9914
|
-
className: Z([C, `${C}--mobile`]),
|
|
9915
|
-
role: "menu"
|
|
9916
|
-
}, /* @__PURE__ */ e.createElement("li", {
|
|
9917
|
-
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9918
|
-
role: "presentation"
|
|
9919
|
-
}, 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, {
|
|
9920
|
-
iconName: "plus",
|
|
9921
|
-
size: "s"
|
|
9922
|
-
})))), /* @__PURE__ */ e.createElement("button", {
|
|
9923
|
-
ref: M.setReference,
|
|
9924
|
-
"aria-label": t,
|
|
9925
|
-
className: `${x}__trigger`,
|
|
9926
|
-
type: "button",
|
|
9927
|
-
...k()
|
|
9928
|
-
}, W(I), /* @__PURE__ */ e.createElement(Q, {
|
|
9929
|
-
className: `${x}__trigger-icon`,
|
|
9930
|
-
iconName: "angleDown",
|
|
9931
|
-
size: "m"
|
|
9932
|
-
})), A && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9933
|
-
ref: M.setFloating,
|
|
9934
|
-
className: `pds-dropdown__panel ${x}__dropdown`,
|
|
9935
|
-
style: {
|
|
9936
|
-
...E,
|
|
9937
|
-
...P,
|
|
9938
|
-
zIndex: "var(--pds-z-index-dropdown)"
|
|
9939
|
-
},
|
|
9940
|
-
...D()
|
|
9941
|
-
}, b && /* @__PURE__ */ e.createElement("div", { className: `${x}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9942
|
-
hasClearButton: !0,
|
|
9943
|
-
id: "workspace-filter",
|
|
9944
|
-
label: i,
|
|
9945
|
-
onChange: (e) => f(e.target.value),
|
|
9946
|
-
onClear: () => f(""),
|
|
9947
|
-
placeholder: a,
|
|
9948
|
-
showLabel: !1,
|
|
9949
|
-
type: "search"
|
|
9950
|
-
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9951
|
-
className: Z([C, w]),
|
|
9952
|
-
role: "menu"
|
|
9953
|
-
}, /* @__PURE__ */ e.createElement("li", {
|
|
9954
|
-
className: `pds-dropdown__heading ${x}__item-heading`,
|
|
9955
|
-
role: "presentation"
|
|
9956
|
-
}, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
|
|
9957
|
-
}, la = {
|
|
9963
|
+
}, da = {
|
|
9958
9964
|
info: "circleInfo",
|
|
9959
9965
|
warning: "triangleExclamation",
|
|
9960
9966
|
critical: "diamondExclamation",
|
|
9961
9967
|
discovery: "bullhorn"
|
|
9962
|
-
},
|
|
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 = {
|
|
9963
9969
|
...Jn,
|
|
9964
9970
|
neutral: "Notice"
|
|
9965
9971
|
}, ...c }) => {
|
|
@@ -9978,21 +9984,21 @@ var Hr = {
|
|
|
9978
9984
|
}, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
|
|
9979
9985
|
m(d[0].id), setTimeout(() => {
|
|
9980
9986
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
9981
|
-
},
|
|
9987
|
+
}, fa);
|
|
9982
9988
|
}, k = () => {
|
|
9983
9989
|
y({
|
|
9984
9990
|
[d[0].id]: 502,
|
|
9985
9991
|
[d[b - 1].id]: 501
|
|
9986
9992
|
}), setTimeout(() => {
|
|
9987
9993
|
m(d[0].id);
|
|
9988
|
-
},
|
|
9994
|
+
}, pa), setTimeout(() => {
|
|
9989
9995
|
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
|
|
9990
|
-
},
|
|
9996
|
+
}, fa);
|
|
9991
9997
|
}, A = (t, n) => {
|
|
9992
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) => {
|
|
9993
9999
|
e.preventDefault(), _(a), setTimeout(() => {
|
|
9994
10000
|
u?.(), _(null), f((e) => e.filter((e) => e.id !== a));
|
|
9995
|
-
},
|
|
10001
|
+
}, fa);
|
|
9996
10002
|
}, b = v[a] ?? E(n);
|
|
9997
10003
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9998
10004
|
key: a,
|
|
@@ -10007,7 +10013,7 @@ var Hr = {
|
|
|
10007
10013
|
style: { zIndex: b }
|
|
10008
10014
|
}, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10009
10015
|
className: `${x}__icon ${x}__icon--${t.type}`,
|
|
10010
|
-
iconName: d === "neutral" ? r :
|
|
10016
|
+
iconName: d === "neutral" ? r : da[d],
|
|
10011
10017
|
size: l ? "l" : "m"
|
|
10012
10018
|
}), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
10013
10019
|
className: `${x}__dismiss-button`,
|
|
@@ -10038,12 +10044,12 @@ var Hr = {
|
|
|
10038
10044
|
onClick: O,
|
|
10039
10045
|
size: "m"
|
|
10040
10046
|
}), d.map((e, t) => A(e, t))) : A(d[0], 0));
|
|
10041
|
-
},
|
|
10047
|
+
}, ha = {
|
|
10042
10048
|
info: "circleInfo",
|
|
10043
10049
|
warning: "triangleExclamation",
|
|
10044
10050
|
success: "circleCheck",
|
|
10045
10051
|
critical: "diamondExclamation"
|
|
10046
|
-
},
|
|
10052
|
+
}, ga = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
10047
10053
|
...Jn,
|
|
10048
10054
|
working: "Working"
|
|
10049
10055
|
}, ...o }) => {
|
|
@@ -10064,16 +10070,16 @@ var Hr = {
|
|
|
10064
10070
|
role: l,
|
|
10065
10071
|
...o
|
|
10066
10072
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10067
|
-
iconName: `${i}` in
|
|
10073
|
+
iconName: `${i}` in ha ? ha[i] : ha.info,
|
|
10068
10074
|
size: "l"
|
|
10069
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)));
|
|
10070
|
-
},
|
|
10076
|
+
}, _a = {
|
|
10071
10077
|
info: "circleInfo",
|
|
10072
10078
|
warning: "triangleExclamation",
|
|
10073
10079
|
success: "circleCheck",
|
|
10074
10080
|
critical: "diamondExclamation",
|
|
10075
10081
|
discovery: "squareQuestion"
|
|
10076
|
-
},
|
|
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 }) => {
|
|
10077
10083
|
let m = h(null), g = h(void 0), _ = "pds-section-message", v = {
|
|
10078
10084
|
error: `${_}--error`,
|
|
10079
10085
|
success: `${_}--success`,
|
|
@@ -10109,7 +10115,7 @@ var Hr = {
|
|
|
10109
10115
|
role: x,
|
|
10110
10116
|
...p
|
|
10111
10117
|
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10112
|
-
iconName: `${d}` in
|
|
10118
|
+
iconName: `${d}` in _a ? _a[d] : _a.info,
|
|
10113
10119
|
size: "l"
|
|
10114
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, {
|
|
10115
10121
|
...n,
|
|
@@ -10124,10 +10130,10 @@ var Hr = {
|
|
|
10124
10130
|
onClick: E,
|
|
10125
10131
|
size: "m"
|
|
10126
10132
|
})));
|
|
10127
|
-
},
|
|
10133
|
+
}, ya = 3e4, ba = {
|
|
10128
10134
|
pause: "Pause notification",
|
|
10129
10135
|
resume: "Resume notification"
|
|
10130
|
-
},
|
|
10136
|
+
}, xa = i({ labelStrings: ba }), Sa = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
|
|
10131
10137
|
ariaLabel: t || "Close",
|
|
10132
10138
|
className: "pds-toast__close-button",
|
|
10133
10139
|
onClick: (e) => {
|
|
@@ -10135,13 +10141,13 @@ var Hr = {
|
|
|
10135
10141
|
},
|
|
10136
10142
|
size: "s",
|
|
10137
10143
|
tabIndex: 0
|
|
10138
|
-
}),
|
|
10144
|
+
}), Ca = ({ className: t, labelStrings: n = ba, limit: r = 5, position: i = "bottom-right" }) => {
|
|
10139
10145
|
let a = Z(["pds-toaster", t]);
|
|
10140
|
-
return /* @__PURE__ */ e.createElement(
|
|
10146
|
+
return /* @__PURE__ */ e.createElement(xa.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
|
|
10141
10147
|
newestOnTop: !0,
|
|
10142
10148
|
autoClose: !1,
|
|
10143
10149
|
className: a,
|
|
10144
|
-
closeButton:
|
|
10150
|
+
closeButton: Sa,
|
|
10145
10151
|
draggable: !1,
|
|
10146
10152
|
icon: !1,
|
|
10147
10153
|
limit: r,
|
|
@@ -10151,25 +10157,25 @@ var Hr = {
|
|
|
10151
10157
|
role: "status",
|
|
10152
10158
|
transition: Re
|
|
10153
10159
|
}));
|
|
10154
|
-
},
|
|
10160
|
+
}, wa = {
|
|
10155
10161
|
info: "circleInfo",
|
|
10156
10162
|
success: "circleCheck",
|
|
10157
10163
|
warning: "triangleExclamation",
|
|
10158
10164
|
critical: "diamondExclamation"
|
|
10159
|
-
},
|
|
10165
|
+
}, Ta = {
|
|
10160
10166
|
info: "Information",
|
|
10161
10167
|
success: "Success",
|
|
10162
10168
|
warning: "Warning",
|
|
10163
10169
|
critical: "Critical",
|
|
10164
10170
|
working: "Working..."
|
|
10165
|
-
},
|
|
10171
|
+
}, Ea = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ta }) => {
|
|
10166
10172
|
let c = "pds-toast", u = {
|
|
10167
10173
|
critical: `${c}--critical`,
|
|
10168
10174
|
info: `${c}--info`,
|
|
10169
10175
|
success: `${c}--success`,
|
|
10170
10176
|
warning: `${c}--warning`,
|
|
10171
10177
|
working: `${c}--working`
|
|
10172
|
-
}, 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";
|
|
10173
10179
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10174
10180
|
className: Z([
|
|
10175
10181
|
c,
|
|
@@ -10179,7 +10185,7 @@ var Hr = {
|
|
|
10179
10185
|
id: i
|
|
10180
10186
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10181
10187
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
10182
|
-
iconName:
|
|
10188
|
+
iconName: wa[o],
|
|
10183
10189
|
size: "l"
|
|
10184
10190
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
10185
10191
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -10194,11 +10200,11 @@ var Hr = {
|
|
|
10194
10200
|
iconName: p ? "play" : "pause",
|
|
10195
10201
|
size: "m"
|
|
10196
10202
|
})));
|
|
10197
|
-
},
|
|
10203
|
+
}, Da = /* @__PURE__ */ function(e) {
|
|
10198
10204
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
10199
|
-
}({}),
|
|
10205
|
+
}({}), Oa = () => [
|
|
10200
10206
|
(t, n, r = {}) => {
|
|
10201
|
-
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, {
|
|
10202
10208
|
autoCloseDuration: a || void 0,
|
|
10203
10209
|
toastId: i,
|
|
10204
10210
|
type: t
|
|
@@ -10223,7 +10229,7 @@ var Hr = {
|
|
|
10223
10229
|
enter: "pds-toast--bounceInPlace",
|
|
10224
10230
|
exit: "pds-toast--slideOut"
|
|
10225
10231
|
})
|
|
10226
|
-
],
|
|
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, ..._ }) => {
|
|
10227
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();
|
|
10228
10234
|
u(() => {
|
|
10229
10235
|
s ? E(!0) : O(!1);
|
|
@@ -10288,7 +10294,7 @@ var Hr = {
|
|
|
10288
10294
|
onClick: M,
|
|
10289
10295
|
size: "m"
|
|
10290
10296
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
|
|
10291
|
-
},
|
|
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 }) => {
|
|
10292
10298
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = en();
|
|
10293
10299
|
u(() => {
|
|
10294
10300
|
if (!(!h || !m) && c) return h(), () => m();
|
|
@@ -10353,7 +10359,7 @@ var Hr = {
|
|
|
10353
10359
|
}),
|
|
10354
10360
|
zIndex: 9999
|
|
10355
10361
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
|
|
10356
|
-
},
|
|
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 }) => {
|
|
10357
10363
|
let m = ft(n), h = m.__unslotted, _ = m.footer, v = "pds-modal", y = d === "m" ? null : `${v}--${d}`, S = a ? {
|
|
10358
10364
|
maxHeight: a,
|
|
10359
10365
|
paddingInlineEnd: "1rem",
|
|
@@ -10429,27 +10435,27 @@ var Hr = {
|
|
|
10429
10435
|
className: `${v}__content`,
|
|
10430
10436
|
style: S
|
|
10431
10437
|
}, h), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
|
|
10432
|
-
},
|
|
10438
|
+
}, Ma = (e, t) => {
|
|
10433
10439
|
let n = t - e + 1;
|
|
10434
10440
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
10435
|
-
},
|
|
10441
|
+
}, Na = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
|
|
10436
10442
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
10437
|
-
if (a >= i) return
|
|
10443
|
+
if (a >= i) return Ma(1, i);
|
|
10438
10444
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
10439
10445
|
if (!l && u) return [
|
|
10440
|
-
...
|
|
10446
|
+
...Ma(1, 3 + 2 * e),
|
|
10441
10447
|
"...",
|
|
10442
10448
|
i
|
|
10443
10449
|
];
|
|
10444
10450
|
if (l && !u) return [
|
|
10445
10451
|
1,
|
|
10446
10452
|
"...",
|
|
10447
|
-
...
|
|
10453
|
+
...Ma(i - (3 + 2 * e) + 1, i)
|
|
10448
10454
|
];
|
|
10449
10455
|
if (l && u) return [
|
|
10450
10456
|
1,
|
|
10451
10457
|
"...",
|
|
10452
|
-
...
|
|
10458
|
+
...Ma(s, c),
|
|
10453
10459
|
"...",
|
|
10454
10460
|
o
|
|
10455
10461
|
];
|
|
@@ -10458,11 +10464,11 @@ var Hr = {
|
|
|
10458
10464
|
n,
|
|
10459
10465
|
e,
|
|
10460
10466
|
t
|
|
10461
|
-
]),
|
|
10467
|
+
]), Pa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
10462
10468
|
previous: "Go to previous page",
|
|
10463
10469
|
next: "Go to next page"
|
|
10464
10470
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
10465
|
-
let f =
|
|
10471
|
+
let f = Na({
|
|
10466
10472
|
currentPage: r,
|
|
10467
10473
|
totalItemCount: u,
|
|
10468
10474
|
bufferCount: t,
|
|
@@ -10516,7 +10522,7 @@ var Hr = {
|
|
|
10516
10522
|
size: "m"
|
|
10517
10523
|
}))
|
|
10518
10524
|
}))));
|
|
10519
|
-
},
|
|
10525
|
+
}, Fa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10520
10526
|
next: "Next",
|
|
10521
10527
|
previous: "Previous"
|
|
10522
10528
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -10545,7 +10551,7 @@ var Hr = {
|
|
|
10545
10551
|
iconName: "angleRight",
|
|
10546
10552
|
size: "m"
|
|
10547
10553
|
}))));
|
|
10548
|
-
},
|
|
10554
|
+
}, Ia = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
10549
10555
|
next: "Go to next page",
|
|
10550
10556
|
of: "of",
|
|
10551
10557
|
page: "Page",
|
|
@@ -10649,7 +10655,7 @@ var Hr = {
|
|
|
10649
10655
|
size: "m"
|
|
10650
10656
|
}))
|
|
10651
10657
|
})));
|
|
10652
|
-
},
|
|
10658
|
+
}, La = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
10653
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);
|
|
10654
10660
|
return u(() => {
|
|
10655
10661
|
let e = v.current;
|
|
@@ -10673,7 +10679,7 @@ var Hr = {
|
|
|
10673
10679
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
10674
10680
|
iconName: "angleDown"
|
|
10675
10681
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
10676
|
-
},
|
|
10682
|
+
}, Ra = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
10677
10683
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
10678
10684
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10679
10685
|
className: Z([
|
|
@@ -10683,7 +10689,7 @@ var Hr = {
|
|
|
10683
10689
|
]),
|
|
10684
10690
|
...i
|
|
10685
10691
|
}, t);
|
|
10686
|
-
},
|
|
10692
|
+
}, za = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
10687
10693
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
10688
10694
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10689
10695
|
className: Z([
|
|
@@ -10693,7 +10699,7 @@ var Hr = {
|
|
|
10693
10699
|
]),
|
|
10694
10700
|
...a
|
|
10695
10701
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
10696
|
-
},
|
|
10702
|
+
}, Ba = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
10697
10703
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
10698
10704
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
10699
10705
|
className: Z([
|
|
@@ -10705,7 +10711,7 @@ var Hr = {
|
|
|
10705
10711
|
]),
|
|
10706
10712
|
...o
|
|
10707
10713
|
}, n);
|
|
10708
|
-
},
|
|
10714
|
+
}, Va = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
10709
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 = () => {
|
|
10710
10716
|
c((e) => !e);
|
|
10711
10717
|
};
|
|
@@ -10736,10 +10742,10 @@ var Hr = {
|
|
|
10736
10742
|
opacity: "0"
|
|
10737
10743
|
}
|
|
10738
10744
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
|
|
10739
|
-
},
|
|
10745
|
+
}, Ha = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
10740
10746
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
10741
10747
|
...r
|
|
10742
|
-
}, t),
|
|
10748
|
+
}, t), Ua = /* @__PURE__ */ e.createElement("svg", {
|
|
10743
10749
|
"aria-label": "Pantheon",
|
|
10744
10750
|
fill: "none",
|
|
10745
10751
|
focusable: "false",
|
|
@@ -10801,7 +10807,7 @@ var Hr = {
|
|
|
10801
10807
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10802
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",
|
|
10803
10809
|
fill: "var(--pds-color-foreground-default)"
|
|
10804
|
-
})),
|
|
10810
|
+
})), Wa = /* @__PURE__ */ e.createElement("svg", {
|
|
10805
10811
|
"aria-label": "Pantheon",
|
|
10806
10812
|
fill: "none",
|
|
10807
10813
|
focusable: "false",
|
|
@@ -10836,7 +10842,7 @@ var Hr = {
|
|
|
10836
10842
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10837
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",
|
|
10838
10844
|
fill: "var(--pds-color-foreground-default)"
|
|
10839
|
-
})),
|
|
10845
|
+
})), Ga = /* @__PURE__ */ e.createElement("svg", {
|
|
10840
10846
|
"aria-label": "Pantheon",
|
|
10841
10847
|
fill: "none",
|
|
10842
10848
|
focusable: "false",
|
|
@@ -10871,17 +10877,17 @@ var Hr = {
|
|
|
10871
10877
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
10872
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",
|
|
10873
10879
|
fill: "var(--pds-color-foreground-default)"
|
|
10874
|
-
})),
|
|
10880
|
+
})), Ka = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
10875
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;
|
|
10876
10882
|
switch (r) {
|
|
10877
10883
|
case "full":
|
|
10878
|
-
f =
|
|
10884
|
+
f = Ua;
|
|
10879
10885
|
break;
|
|
10880
10886
|
case "icon":
|
|
10881
|
-
f =
|
|
10887
|
+
f = Wa;
|
|
10882
10888
|
break;
|
|
10883
10889
|
case "wordmark":
|
|
10884
|
-
f =
|
|
10890
|
+
f = Ga;
|
|
10885
10891
|
break;
|
|
10886
10892
|
}
|
|
10887
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, {
|
|
@@ -10898,7 +10904,7 @@ var Hr = {
|
|
|
10898
10904
|
]),
|
|
10899
10905
|
...o
|
|
10900
10906
|
}, i ? h : f);
|
|
10901
|
-
},
|
|
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 }) => {
|
|
10902
10908
|
let [D, k] = g(d);
|
|
10903
10909
|
u(() => {
|
|
10904
10910
|
k(d);
|
|
@@ -10925,12 +10931,12 @@ var Hr = {
|
|
|
10925
10931
|
A(V),
|
|
10926
10932
|
j(V),
|
|
10927
10933
|
R(V)
|
|
10928
|
-
]), 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, {
|
|
10929
10935
|
initial: { transform: "scale(0)" },
|
|
10930
10936
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
10931
|
-
top: `${te}px calc(100% + ${
|
|
10937
|
+
top: `${te}px calc(100% + ${qa}px)`,
|
|
10932
10938
|
bottom: `${te}px -8px`,
|
|
10933
|
-
left: `calc(100% + ${
|
|
10939
|
+
left: `calc(100% + ${qa}px) ${ne}px`,
|
|
10934
10940
|
right: `-8px ${ne}px`
|
|
10935
10941
|
}[e] })
|
|
10936
10942
|
});
|
|
@@ -10962,23 +10968,23 @@ var Hr = {
|
|
|
10962
10968
|
className: `${P}__arrow`,
|
|
10963
10969
|
context: V,
|
|
10964
10970
|
fill: "var(--pds-color-surface-default)",
|
|
10965
|
-
height:
|
|
10971
|
+
height: qa,
|
|
10966
10972
|
stroke: "var(--pds-color-border-default)",
|
|
10967
10973
|
strokeWidth: 1,
|
|
10968
10974
|
tipRadius: 0,
|
|
10969
|
-
width:
|
|
10975
|
+
width: Ja
|
|
10970
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, {
|
|
10971
10977
|
ariaLabel: r,
|
|
10972
10978
|
onClick: G,
|
|
10973
10979
|
size: "s"
|
|
10974
10980
|
})))))));
|
|
10975
|
-
},
|
|
10981
|
+
}, Xa = {
|
|
10976
10982
|
neutral: "--pds-color-status-neutral-indicator",
|
|
10977
10983
|
info: "--pds-color-status-info-fill",
|
|
10978
10984
|
success: "--pds-color-status-success-fill",
|
|
10979
10985
|
warning: "--pds-color-status-warning-fill",
|
|
10980
10986
|
critical: "--pds-color-status-critical-fill"
|
|
10981
|
-
},
|
|
10987
|
+
}, Za = ({ className: t, colorBreakpoints: n = [{
|
|
10982
10988
|
colorType: "info",
|
|
10983
10989
|
percentage: 0
|
|
10984
10990
|
}, {
|
|
@@ -10999,7 +11005,7 @@ var Hr = {
|
|
|
10999
11005
|
id: m
|
|
11000
11006
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
11001
11007
|
className: `${h}__percentage`,
|
|
11002
|
-
style: { color: `hsl(from var(${
|
|
11008
|
+
style: { color: `hsl(from var(${Xa[y]}) h s calc(l - 7))` }
|
|
11003
11009
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
11004
11010
|
"aria-labelledby": m,
|
|
11005
11011
|
"aria-valuenow": v,
|
|
@@ -11009,16 +11015,16 @@ var Hr = {
|
|
|
11009
11015
|
className: `${h}__bar`,
|
|
11010
11016
|
style: {
|
|
11011
11017
|
width: `${v}%`,
|
|
11012
|
-
backgroundColor: `var(${
|
|
11018
|
+
backgroundColor: `var(${Xa[y]})`
|
|
11013
11019
|
}
|
|
11014
11020
|
}))), S && b);
|
|
11015
|
-
},
|
|
11021
|
+
}, Qa = {
|
|
11016
11022
|
neutral: "--pds-color-status-neutral-indicator",
|
|
11017
11023
|
info: "--pds-color-status-info-fill",
|
|
11018
11024
|
success: "--pds-color-status-success-fill",
|
|
11019
11025
|
warning: "--pds-color-status-warning-fill",
|
|
11020
11026
|
critical: "--pds-color-status-critical-fill"
|
|
11021
|
-
},
|
|
11027
|
+
}, $a = ({ className: t, colorBreakpoints: n = [{
|
|
11022
11028
|
colorType: "info",
|
|
11023
11029
|
percentage: 0
|
|
11024
11030
|
}, {
|
|
@@ -11067,7 +11073,7 @@ var Hr = {
|
|
|
11067
11073
|
strokeDasharray: x,
|
|
11068
11074
|
strokeDashoffset: S,
|
|
11069
11075
|
strokeWidth: y,
|
|
11070
|
-
style: { stroke: `var(${
|
|
11076
|
+
style: { stroke: `var(${Qa[C]})` },
|
|
11071
11077
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
11072
11078
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
11073
11079
|
alignmentBaseline: "middle",
|
|
@@ -11077,29 +11083,29 @@ var Hr = {
|
|
|
11077
11083
|
x: "50%",
|
|
11078
11084
|
y: "51%"
|
|
11079
11085
|
}, w))));
|
|
11080
|
-
},
|
|
11086
|
+
}, eo = {
|
|
11081
11087
|
of: "of",
|
|
11082
11088
|
showing: "Showing",
|
|
11083
11089
|
unitPlural: "results",
|
|
11084
11090
|
unitSingular: "result"
|
|
11085
|
-
},
|
|
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 }) => {
|
|
11086
11092
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
11087
|
-
...
|
|
11093
|
+
...eo,
|
|
11088
11094
|
...i
|
|
11089
|
-
}, p = n !== void 0, m =
|
|
11095
|
+
}, p = n !== void 0, m = to(r, f, d, a);
|
|
11090
11096
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11091
11097
|
"aria-live": "polite",
|
|
11092
11098
|
className: Z([s, t ?? ""]),
|
|
11093
11099
|
...o
|
|
11094
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}`));
|
|
11095
|
-
},
|
|
11101
|
+
}, ro = {
|
|
11096
11102
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
11097
11103
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
11098
11104
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
11099
11105
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
11100
11106
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
11101
11107
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
11102
|
-
},
|
|
11108
|
+
}, io = (e) => typeof e == "string", ao = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
11103
11109
|
"privacy",
|
|
11104
11110
|
"dataSubjectRequest",
|
|
11105
11111
|
"cookiePolicy",
|
|
@@ -11116,8 +11122,8 @@ var Hr = {
|
|
|
11116
11122
|
r ?? ""
|
|
11117
11123
|
]),
|
|
11118
11124
|
...c
|
|
11119
|
-
}, /* @__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) =>
|
|
11120
|
-
},
|
|
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 }) => {
|
|
11121
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;
|
|
11122
11128
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
11123
11129
|
let d = /* @__PURE__ */ e.createElement(xn, {
|
|
@@ -11140,7 +11146,7 @@ var Hr = {
|
|
|
11140
11146
|
className: `${i}__status`,
|
|
11141
11147
|
style: { pointerEvents: "none" }
|
|
11142
11148
|
}, d));
|
|
11143
|
-
},
|
|
11149
|
+
}, so = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
11144
11150
|
clearButton: "Clear input text",
|
|
11145
11151
|
inputInstructions: "Type to search options"
|
|
11146
11152
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -11152,7 +11158,7 @@ var Hr = {
|
|
|
11152
11158
|
id: n,
|
|
11153
11159
|
label: i,
|
|
11154
11160
|
value: r ?? i,
|
|
11155
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
11161
|
+
optionDisplay: /* @__PURE__ */ e.createElement(oo, { option: t }),
|
|
11156
11162
|
siteData: t
|
|
11157
11163
|
};
|
|
11158
11164
|
});
|
|
@@ -11181,7 +11187,7 @@ var Hr = {
|
|
|
11181
11187
|
};
|
|
11182
11188
|
//#endregion
|
|
11183
11189
|
//#region src/components/SortableList/sortable-utils.ts
|
|
11184
|
-
function
|
|
11190
|
+
function co(e, t, n = null, r = 0, i = []) {
|
|
11185
11191
|
return e.reduce((e, a, o) => {
|
|
11186
11192
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
11187
11193
|
return e.push({
|
|
@@ -11193,10 +11199,10 @@ function oo(e, t, n = null, r = 0, i = []) {
|
|
|
11193
11199
|
index: o,
|
|
11194
11200
|
isExpanded: c,
|
|
11195
11201
|
parentId: n
|
|
11196
|
-
}), 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;
|
|
11197
11203
|
}, []);
|
|
11198
11204
|
}
|
|
11199
|
-
function
|
|
11205
|
+
function lo(e) {
|
|
11200
11206
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
11201
11207
|
for (let i of e) {
|
|
11202
11208
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -11209,28 +11215,28 @@ function so(e) {
|
|
|
11209
11215
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
11210
11216
|
}
|
|
11211
11217
|
}
|
|
11212
|
-
return
|
|
11218
|
+
return uo(r);
|
|
11213
11219
|
}
|
|
11214
|
-
function
|
|
11220
|
+
function uo(e) {
|
|
11215
11221
|
return e.map((e) => {
|
|
11216
11222
|
if (e.children?.length) return {
|
|
11217
11223
|
...e,
|
|
11218
|
-
children:
|
|
11224
|
+
children: uo(e.children)
|
|
11219
11225
|
};
|
|
11220
11226
|
let { children: t, ...n } = e;
|
|
11221
11227
|
return n;
|
|
11222
11228
|
});
|
|
11223
11229
|
}
|
|
11224
|
-
function
|
|
11230
|
+
function fo(e, t) {
|
|
11225
11231
|
for (let n of e) {
|
|
11226
11232
|
if (n.id === t) return n;
|
|
11227
11233
|
if (n.children) {
|
|
11228
|
-
let e =
|
|
11234
|
+
let e = fo(n.children, t);
|
|
11229
11235
|
if (e) return e;
|
|
11230
11236
|
}
|
|
11231
11237
|
}
|
|
11232
11238
|
}
|
|
11233
|
-
function
|
|
11239
|
+
function po(e, t, n, r, i, a, o) {
|
|
11234
11240
|
let s = e.findIndex((e) => e.id === n);
|
|
11235
11241
|
if (s === -1) return 0;
|
|
11236
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;
|
|
@@ -11238,7 +11244,7 @@ function uo(e, t, n, r, i, a, o) {
|
|
|
11238
11244
|
}
|
|
11239
11245
|
//#endregion
|
|
11240
11246
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11241
|
-
var
|
|
11247
|
+
var mo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11242
11248
|
if (!r && !t) return null;
|
|
11243
11249
|
let a = r ? {
|
|
11244
11250
|
display: "grid",
|
|
@@ -11259,13 +11265,13 @@ var fo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11259
11265
|
};
|
|
11260
11266
|
//#endregion
|
|
11261
11267
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11262
|
-
function
|
|
11268
|
+
function ho({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11263
11269
|
let i = n !== void 0, [a, o] = g(() => n ?? e ?? []), [s, l] = g(/* @__PURE__ */ new Set()), u = h(null), d = h(t);
|
|
11264
11270
|
t && !d.current && (u.current = {
|
|
11265
11271
|
items: i ? n : a,
|
|
11266
11272
|
expandedIds: s
|
|
11267
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
11268
|
-
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) => {
|
|
11269
11275
|
l((t) => {
|
|
11270
11276
|
let n = new Set(t);
|
|
11271
11277
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11283,7 +11289,7 @@ function po({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11283
11289
|
}, []),
|
|
11284
11290
|
flatNodes: p,
|
|
11285
11291
|
handleReorder: c((e) => {
|
|
11286
|
-
let t =
|
|
11292
|
+
let t = lo(e);
|
|
11287
11293
|
i || o(t), r?.(t);
|
|
11288
11294
|
}, [i, r]),
|
|
11289
11295
|
resetToSnapshot: c(() => {
|
|
@@ -11295,24 +11301,24 @@ function po({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11295
11301
|
toggleExpand: v
|
|
11296
11302
|
};
|
|
11297
11303
|
}
|
|
11298
|
-
var
|
|
11299
|
-
function
|
|
11300
|
-
|
|
11304
|
+
var go = /* @__PURE__ */ new Set();
|
|
11305
|
+
function _o(e) {
|
|
11306
|
+
go.has(e) || (go.add(e), console.warn(e));
|
|
11301
11307
|
}
|
|
11302
11308
|
//#endregion
|
|
11303
11309
|
//#region src/components/SortableList/SortableList.tsx
|
|
11304
|
-
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) {
|
|
11305
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) => {
|
|
11306
11312
|
if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
11307
11313
|
e.preventDefault();
|
|
11308
11314
|
let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
|
|
11309
11315
|
return B.current = i, z(i), {
|
|
11310
|
-
x: t.currentCoordinates.x + a *
|
|
11316
|
+
x: t.currentCoordinates.x + a * vo,
|
|
11311
11317
|
y: t.currentCoordinates.y
|
|
11312
11318
|
};
|
|
11313
11319
|
}
|
|
11314
11320
|
return $e(e, t);
|
|
11315
|
-
}, [_]), 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({
|
|
11316
11322
|
defaultItems: a,
|
|
11317
11323
|
isDragEnabled: G,
|
|
11318
11324
|
items: p,
|
|
@@ -11339,9 +11345,9 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11339
11345
|
se,
|
|
11340
11346
|
oe,
|
|
11341
11347
|
j
|
|
11342
|
-
]).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(() => {
|
|
11343
11349
|
let e = le?.depth ?? 0;
|
|
11344
|
-
return !T || !j || O || _ === 0 ? e :
|
|
11350
|
+
return !T || !j || O || _ === 0 ? e : po(J, String(T), String(j), V * vo, vo, _);
|
|
11345
11351
|
}, [
|
|
11346
11352
|
T,
|
|
11347
11353
|
le,
|
|
@@ -11353,7 +11359,7 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11353
11359
|
]), fe = m(() => {
|
|
11354
11360
|
if (!T || O || de === 0 || j && se(j)) return null;
|
|
11355
11361
|
let e = J.findIndex((e) => e.id === T);
|
|
11356
|
-
return e === -1 ? null :
|
|
11362
|
+
return e === -1 ? null : xo(J, e, de);
|
|
11357
11363
|
}, [
|
|
11358
11364
|
T,
|
|
11359
11365
|
J,
|
|
@@ -11399,19 +11405,19 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11399
11405
|
}, [J, oe]), ge = c((e) => {
|
|
11400
11406
|
let t = e.delta.x;
|
|
11401
11407
|
if (P.current = t, A.current || _ === 0) return;
|
|
11402
|
-
let n = Math.floor(t /
|
|
11403
|
-
(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));
|
|
11404
11410
|
}, [_]), _e = c((e) => {
|
|
11405
11411
|
let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
|
|
11406
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);
|
|
11407
|
-
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;
|
|
11408
11414
|
if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
|
|
11409
11415
|
if (o === -1) return;
|
|
11410
11416
|
let e = J[o];
|
|
11411
11417
|
if (!e) return;
|
|
11412
|
-
let n =
|
|
11418
|
+
let n = po(J, String(t.id), String(t.id), s, vo, _);
|
|
11413
11419
|
if (n === e.depth) return;
|
|
11414
|
-
let r = [...J], [i] = r.splice(o, 1), a =
|
|
11420
|
+
let r = [...J], [i] = r.splice(o, 1), a = xo(r, o, n);
|
|
11415
11421
|
if (a && Y.has(a)) return;
|
|
11416
11422
|
let c = {
|
|
11417
11423
|
...i,
|
|
@@ -11433,9 +11439,9 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11433
11439
|
let e = J[u];
|
|
11434
11440
|
g = Math.min(e.depth + 1, _), v = String(l);
|
|
11435
11441
|
} else {
|
|
11436
|
-
g =
|
|
11442
|
+
g = po(d, String(t.id), String(l), s, vo, _, p.depth);
|
|
11437
11443
|
let e = d[h];
|
|
11438
|
-
v = e && e.depth === g - 1 ? String(l) :
|
|
11444
|
+
v = e && e.depth === g - 1 ? String(l) : xo(d, h, g);
|
|
11439
11445
|
}
|
|
11440
11446
|
if (v && Y.has(v)) return;
|
|
11441
11447
|
let y = {
|
|
@@ -11458,24 +11464,24 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11458
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);
|
|
11459
11465
|
}, [q]), ye = m(() => ({
|
|
11460
11466
|
onDragStart({ active: e }) {
|
|
11461
|
-
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));
|
|
11462
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}.`;
|
|
11463
11469
|
},
|
|
11464
11470
|
onDragOver({ active: e, over: t }) {
|
|
11465
11471
|
if (!t) return;
|
|
11466
11472
|
let n = J.findIndex((e) => e.id === t.id);
|
|
11467
11473
|
if (n === -1) return;
|
|
11468
|
-
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, _);
|
|
11469
11475
|
return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
|
|
11470
11476
|
},
|
|
11471
11477
|
onDragEnd({ active: e, over: t }) {
|
|
11472
|
-
let n =
|
|
11478
|
+
let n = fo(K, String(e.id)), r = n ? o(n) : String(e.id);
|
|
11473
11479
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
11474
|
-
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, _);
|
|
11475
11481
|
return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
|
|
11476
11482
|
},
|
|
11477
11483
|
onDragCancel({ active: e }) {
|
|
11478
|
-
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));
|
|
11479
11485
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
|
|
11480
11486
|
}
|
|
11481
11487
|
}), [
|
|
@@ -11483,14 +11489,14 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11483
11489
|
J,
|
|
11484
11490
|
o,
|
|
11485
11491
|
_
|
|
11486
|
-
]), 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);
|
|
11487
11493
|
return /* @__PURE__ */ e.createElement(We, {
|
|
11488
11494
|
accessibility: {
|
|
11489
11495
|
announcements: ye,
|
|
11490
11496
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
11491
11497
|
},
|
|
11492
11498
|
collisionDetection: me,
|
|
11493
|
-
measuring:
|
|
11499
|
+
measuring: yo,
|
|
11494
11500
|
onDragCancel: ve,
|
|
11495
11501
|
onDragEnd: _e,
|
|
11496
11502
|
onDragMove: ge,
|
|
@@ -11565,14 +11571,14 @@ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ chil
|
|
|
11565
11571
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
11566
11572
|
})()) : null));
|
|
11567
11573
|
});
|
|
11568
|
-
function
|
|
11574
|
+
function xo(e, t, n) {
|
|
11569
11575
|
if (n === 0) return null;
|
|
11570
11576
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
11571
11577
|
return null;
|
|
11572
11578
|
}
|
|
11573
11579
|
//#endregion
|
|
11574
11580
|
//#region src/components/SortableList/SortableRow.tsx
|
|
11575
|
-
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 }) => {
|
|
11576
11582
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = et({
|
|
11577
11583
|
attributes: {
|
|
11578
11584
|
role: "listitem",
|
|
@@ -11627,7 +11633,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11627
11633
|
key: t.id,
|
|
11628
11634
|
className: `${w}__cell`
|
|
11629
11635
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11630
|
-
},
|
|
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 }) => {
|
|
11631
11637
|
let m = "pds-stat-panel", h = s === "neutral" ? null : `${m}--${s}`, g = c ? `${m}--active` : null, _ = d(), v = n && r && t;
|
|
11632
11638
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11633
11639
|
"aria-labelledby": _,
|
|
@@ -11663,11 +11669,11 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11663
11669
|
size: { width: 6 },
|
|
11664
11670
|
textSize: "xl"
|
|
11665
11671
|
}) : u && /* @__PURE__ */ e.createElement("span", { className: `${m}__stat` }, u)), a && /* @__PURE__ */ e.createElement("p", { className: `${m}__description` }, a));
|
|
11666
|
-
},
|
|
11672
|
+
}, wo = [
|
|
11667
11673
|
"default",
|
|
11668
11674
|
"working",
|
|
11669
11675
|
"checked"
|
|
11670
|
-
],
|
|
11676
|
+
], To = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11671
11677
|
let l = {
|
|
11672
11678
|
checkForUpdates: "Check for updates",
|
|
11673
11679
|
checking: "Checking...",
|
|
@@ -11714,7 +11720,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11714
11720
|
triggerIconColor: "default",
|
|
11715
11721
|
triggerIconSize: "s"
|
|
11716
11722
|
}), t === "left" && g));
|
|
11717
|
-
},
|
|
11723
|
+
}, Eo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11718
11724
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11719
11725
|
className: `${o}__spinner`,
|
|
11720
11726
|
size: "m"
|
|
@@ -11731,7 +11737,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11731
11737
|
]),
|
|
11732
11738
|
...a
|
|
11733
11739
|
}, r ? d : l);
|
|
11734
|
-
},
|
|
11740
|
+
}, Do = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11735
11741
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11736
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`;
|
|
11737
11743
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11749,7 +11755,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11749
11755
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11750
11756
|
...a
|
|
11751
11757
|
}, l);
|
|
11752
|
-
},
|
|
11758
|
+
}, Oo = ({ className: t, steps: n, translatableLabels: r = {
|
|
11753
11759
|
step: "Step",
|
|
11754
11760
|
completed: "completed",
|
|
11755
11761
|
hasError: "has an error",
|
|
@@ -11813,7 +11819,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11813
11819
|
key: t.id,
|
|
11814
11820
|
className: `${o}__step`,
|
|
11815
11821
|
id: `${t.id}--mobile`
|
|
11816
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11822
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement($a, {
|
|
11817
11823
|
innerLabel: n,
|
|
11818
11824
|
label: "Step progress",
|
|
11819
11825
|
percentage: i,
|
|
@@ -11839,7 +11845,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11839
11845
|
"data-steps": u,
|
|
11840
11846
|
...i
|
|
11841
11847
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
11842
|
-
},
|
|
11848
|
+
}, ko = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11843
11849
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11844
11850
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11845
11851
|
className: Z([...p]),
|
|
@@ -11865,14 +11871,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11865
11871
|
size: "s",
|
|
11866
11872
|
variant: "highlight"
|
|
11867
11873
|
})))));
|
|
11868
|
-
},
|
|
11874
|
+
}, Ao = ({ className: t, labelStrings: n = {
|
|
11869
11875
|
step: "Step",
|
|
11870
11876
|
completed: "completed",
|
|
11871
11877
|
hasError: "has an error"
|
|
11872
11878
|
}, steps: r, ...i }) => {
|
|
11873
11879
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11874
11880
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11875
|
-
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, {
|
|
11876
11882
|
key: `s${i}`,
|
|
11877
11883
|
_isFirstStep: c,
|
|
11878
11884
|
"aria-current": a ? "step" : null,
|
|
@@ -11893,7 +11899,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11893
11899
|
className: Z([a, t ?? ""]),
|
|
11894
11900
|
...i
|
|
11895
11901
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11896
|
-
},
|
|
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 }) => {
|
|
11897
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({
|
|
11898
11904
|
key: a ?? "",
|
|
11899
11905
|
order: a === void 0 ? "asc" : o
|
|
@@ -12076,7 +12082,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12076
12082
|
showLabel: !1,
|
|
12077
12083
|
size: "s",
|
|
12078
12084
|
value: String(Se)
|
|
12079
|
-
}), /* @__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, {
|
|
12080
12086
|
currentPage: ce ? i ?? 1 : me,
|
|
12081
12087
|
itemsPerPage: Se,
|
|
12082
12088
|
labelStrings: H,
|
|
@@ -12117,8 +12123,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12117
12123
|
size: "s",
|
|
12118
12124
|
variant: "standard"
|
|
12119
12125
|
}))))));
|
|
12120
|
-
return U ? /* @__PURE__ */ e.createElement(
|
|
12121
|
-
},
|
|
12126
|
+
return U ? /* @__PURE__ */ e.createElement(za, { padding: "none" }, et) : et;
|
|
12127
|
+
}, Mo = [
|
|
12122
12128
|
" ",
|
|
12123
12129
|
"/",
|
|
12124
12130
|
".",
|
|
@@ -12136,7 +12142,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12136
12142
|
"=",
|
|
12137
12143
|
"|",
|
|
12138
12144
|
"~"
|
|
12139
|
-
],
|
|
12145
|
+
], No = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Po = (e) => {
|
|
12140
12146
|
let t = [];
|
|
12141
12147
|
return e.forEach((e) => {
|
|
12142
12148
|
let { id: n, innerText: r } = e;
|
|
@@ -12149,18 +12155,18 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12149
12155
|
title: r
|
|
12150
12156
|
});
|
|
12151
12157
|
}), t;
|
|
12152
|
-
},
|
|
12158
|
+
}, Fo = (e, t, n) => {
|
|
12153
12159
|
let [r, i] = g([]);
|
|
12154
12160
|
return u(() => {
|
|
12155
12161
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
12156
12162
|
let e = Array.from(document.querySelectorAll(r));
|
|
12157
12163
|
e.forEach((e) => {
|
|
12158
|
-
|
|
12159
|
-
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"), "-"));
|
|
12160
12166
|
});
|
|
12161
12167
|
}), e.forEach((e, t) => {
|
|
12162
12168
|
e.id || (e.id = `${n}-item-${t}`);
|
|
12163
|
-
}), i(
|
|
12169
|
+
}), i(Po(e));
|
|
12164
12170
|
};
|
|
12165
12171
|
a();
|
|
12166
12172
|
let o = document.getElementById(e);
|
|
@@ -12176,7 +12182,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12176
12182
|
t,
|
|
12177
12183
|
n
|
|
12178
12184
|
]), { nestedHeadings: r };
|
|
12179
|
-
},
|
|
12185
|
+
}, Io = (e, t) => {
|
|
12180
12186
|
let [n, r] = g(void 0), i = h({});
|
|
12181
12187
|
return u(() => {
|
|
12182
12188
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -12195,7 +12201,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12195
12201
|
o.disconnect(), r(void 0);
|
|
12196
12202
|
};
|
|
12197
12203
|
}, [e, t]), n;
|
|
12198
|
-
},
|
|
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", {
|
|
12199
12205
|
key: r.id,
|
|
12200
12206
|
className: `${n}__list-item`
|
|
12201
12207
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -12211,8 +12217,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12211
12217
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
12212
12218
|
href: `#${r.id}`,
|
|
12213
12219
|
onClick: (e) => i(e, r.id)
|
|
12214
|
-
}, r.title))))))),
|
|
12215
|
-
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) => {
|
|
12216
12222
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
12217
12223
|
}, h = (e) => {
|
|
12218
12224
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -12230,13 +12236,13 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12230
12236
|
baseClass: u,
|
|
12231
12237
|
className: `${s ? "" : "visually-hidden"}`,
|
|
12232
12238
|
level: i
|
|
12233
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
12239
|
+
}, a), /* @__PURE__ */ e.createElement(Lo, {
|
|
12234
12240
|
activeID: p,
|
|
12235
12241
|
baseClass: u,
|
|
12236
12242
|
headings: f,
|
|
12237
12243
|
onLinkClick: g
|
|
12238
12244
|
}));
|
|
12239
|
-
},
|
|
12245
|
+
}, zo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
12240
12246
|
let c = "pds-tabs", [l, d] = g(a ?? r);
|
|
12241
12247
|
u(() => {
|
|
12242
12248
|
a !== void 0 && d(a);
|
|
@@ -12350,7 +12356,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12350
12356
|
className: `${c}__panel-content`,
|
|
12351
12357
|
hidden: o !== l
|
|
12352
12358
|
}, r)))));
|
|
12353
|
-
},
|
|
12359
|
+
}, Bo = [
|
|
12354
12360
|
"orange",
|
|
12355
12361
|
"stone",
|
|
12356
12362
|
"gold",
|
|
@@ -12364,7 +12370,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12364
12370
|
"magenta",
|
|
12365
12371
|
"rose",
|
|
12366
12372
|
"red"
|
|
12367
|
-
],
|
|
12373
|
+
], Vo = [
|
|
12368
12374
|
"orange-solid",
|
|
12369
12375
|
"teal-solid",
|
|
12370
12376
|
"indigo-solid",
|
|
@@ -12374,14 +12380,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12374
12380
|
"lime-solid",
|
|
12375
12381
|
"sky-solid",
|
|
12376
12382
|
"slate-solid"
|
|
12377
|
-
],
|
|
12383
|
+
], Ho = [
|
|
12378
12384
|
"success-solid",
|
|
12379
12385
|
"warning-solid",
|
|
12380
12386
|
"critical-solid",
|
|
12381
12387
|
"info-solid",
|
|
12382
12388
|
"discovery-solid"
|
|
12383
|
-
],
|
|
12384
|
-
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 = () => {
|
|
12385
12391
|
p((e) => !e);
|
|
12386
12392
|
}, b, x, S;
|
|
12387
12393
|
if (r && !n && s(r)) {
|
|
@@ -12403,7 +12409,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12403
12409
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12404
12410
|
className: `${m}__label`,
|
|
12405
12411
|
title: l
|
|
12406
|
-
}, u > 0 ?
|
|
12412
|
+
}, u > 0 ? Ko(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12407
12413
|
"aria-label": `${a}: ${l}`,
|
|
12408
12414
|
className: `${m}__remove`,
|
|
12409
12415
|
onClick: () => {
|
|
@@ -12415,7 +12421,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12415
12421
|
iconName: "xmark",
|
|
12416
12422
|
size: "m"
|
|
12417
12423
|
})) : null);
|
|
12418
|
-
},
|
|
12424
|
+
}, Jo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12419
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;
|
|
12420
12426
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12421
12427
|
className: Z([
|
|
@@ -12426,7 +12432,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12426
12432
|
]),
|
|
12427
12433
|
...a
|
|
12428
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)));
|
|
12429
|
-
},
|
|
12435
|
+
}, Yo = () => {
|
|
12430
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");
|
|
12431
12437
|
return u(() => {
|
|
12432
12438
|
if (!e) return;
|
|
@@ -12437,7 +12443,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12437
12443
|
window.removeEventListener("resize", n);
|
|
12438
12444
|
};
|
|
12439
12445
|
}, []), n;
|
|
12440
|
-
},
|
|
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 }) => {
|
|
12441
12447
|
let [j, M] = g(l || !1);
|
|
12442
12448
|
u(() => {
|
|
12443
12449
|
M(l || !1);
|
|
@@ -12459,7 +12465,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12459
12465
|
return;
|
|
12460
12466
|
}
|
|
12461
12467
|
M(!j);
|
|
12462
|
-
}, U =
|
|
12468
|
+
}, U = Yo();
|
|
12463
12469
|
u(() => {
|
|
12464
12470
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12465
12471
|
}, [U]);
|
|
@@ -12554,7 +12560,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12554
12560
|
}, /* @__PURE__ */ e.createElement(Fi, {
|
|
12555
12561
|
destination: I,
|
|
12556
12562
|
text: F.skipToContent
|
|
12557
|
-
}), 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, {
|
|
12558
12564
|
...i,
|
|
12559
12565
|
isOpen: c,
|
|
12560
12566
|
placement: "left",
|
|
@@ -12562,7 +12568,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12562
12568
|
!e && c && b && b();
|
|
12563
12569
|
}
|
|
12564
12570
|
}, r));
|
|
12565
|
-
},
|
|
12571
|
+
}, Zo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12566
12572
|
let c = "pds-docs-layout", l = {
|
|
12567
12573
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12568
12574
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12580,7 +12586,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12580
12586
|
},
|
|
12581
12587
|
...s
|
|
12582
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));
|
|
12583
|
-
},
|
|
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 }) => {
|
|
12584
12590
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
|
|
12585
12591
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12586
12592
|
className: Z([u, n ?? ""]),
|
|
@@ -12594,7 +12600,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12594
12600
|
},
|
|
12595
12601
|
...l
|
|
12596
12602
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12597
|
-
},
|
|
12603
|
+
}, $o = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
12598
12604
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
12599
12605
|
"--max-columns": i,
|
|
12600
12606
|
...a
|
|
@@ -12613,7 +12619,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12613
12619
|
className: `${s}__item`,
|
|
12614
12620
|
role: "listitem"
|
|
12615
12621
|
}, t))));
|
|
12616
|
-
},
|
|
12622
|
+
}, es = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12617
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, {
|
|
12618
12624
|
className: Z([
|
|
12619
12625
|
l,
|
|
@@ -12623,8 +12629,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12623
12629
|
width: "wide",
|
|
12624
12630
|
...a
|
|
12625
12631
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12626
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
12627
|
-
},
|
|
12632
|
+
return i ? /* @__PURE__ */ e.createElement(za, null, d) : d;
|
|
12633
|
+
}, ts = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12628
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 = [
|
|
12629
12635
|
l["first-item"],
|
|
12630
12636
|
l["second-item"],
|
|
@@ -12642,7 +12648,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12642
12648
|
key: n,
|
|
12643
12649
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12644
12650
|
}, t)));
|
|
12645
|
-
},
|
|
12651
|
+
}, ns = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12646
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;
|
|
12647
12653
|
switch (i) {
|
|
12648
12654
|
case "equal":
|
|
@@ -12663,7 +12669,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12663
12669
|
]),
|
|
12664
12670
|
...o
|
|
12665
12671
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12666
|
-
},
|
|
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 }) => {
|
|
12667
12673
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12668
12674
|
"--pds-flex-align-content": t,
|
|
12669
12675
|
"--pds-flex-align-items": n,
|
|
@@ -12689,7 +12695,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12689
12695
|
},
|
|
12690
12696
|
...g
|
|
12691
12697
|
}, r);
|
|
12692
|
-
},
|
|
12698
|
+
}, is = (e) => {
|
|
12693
12699
|
let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12694
12700
|
return u(() => {
|
|
12695
12701
|
if (!t) return;
|
|
@@ -12698,20 +12704,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12698
12704
|
};
|
|
12699
12705
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12700
12706
|
}, [e]), n;
|
|
12701
|
-
},
|
|
12707
|
+
}, as = [
|
|
12702
12708
|
"light",
|
|
12703
12709
|
"dark",
|
|
12704
12710
|
"system"
|
|
12705
|
-
],
|
|
12711
|
+
], os = (e) => typeof e == "string" && as.includes(e), ss = i(null), cs = {
|
|
12706
12712
|
resolvedTheme: "light",
|
|
12707
12713
|
setTheme: () => {},
|
|
12708
12714
|
theme: "light"
|
|
12709
|
-
},
|
|
12710
|
-
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;
|
|
12711
12717
|
u(() => {
|
|
12712
12718
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12713
12719
|
let e = window.localStorage.getItem(s);
|
|
12714
|
-
|
|
12720
|
+
os(e) && m(e);
|
|
12715
12721
|
} catch {}
|
|
12716
12722
|
}, []), u(() => {
|
|
12717
12723
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12731,20 +12737,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12731
12737
|
]),
|
|
12732
12738
|
theme: v
|
|
12733
12739
|
};
|
|
12734
|
-
return /* @__PURE__ */ e.createElement(
|
|
12740
|
+
return /* @__PURE__ */ e.createElement(ss.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ls({
|
|
12735
12741
|
defaultTheme: n,
|
|
12736
12742
|
storageKey: s
|
|
12737
12743
|
}) } }), t);
|
|
12738
|
-
},
|
|
12744
|
+
}, ds = () => l(ss) ?? cs, fs = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12739
12745
|
u(() => {
|
|
12740
12746
|
let e = document.documentElement, t = () => {
|
|
12741
12747
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12742
12748
|
};
|
|
12743
12749
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12744
12750
|
}, [r]);
|
|
12745
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12751
|
+
let a = n ? /* @__PURE__ */ e.createElement(us, i, t) : t;
|
|
12746
12752
|
return /* @__PURE__ */ e.createElement($t, null, a);
|
|
12747
|
-
},
|
|
12753
|
+
}, ps = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12748
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}`;
|
|
12749
12755
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12750
12756
|
className: Z([
|
|
@@ -12758,7 +12764,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12758
12764
|
]),
|
|
12759
12765
|
...c
|
|
12760
12766
|
}, n);
|
|
12761
|
-
},
|
|
12767
|
+
}, ms = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12762
12768
|
let f = "pds-grid-item", p = [
|
|
12763
12769
|
l ? `${f}--sm-${l}` : null,
|
|
12764
12770
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12777,7 +12783,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12777
12783
|
]),
|
|
12778
12784
|
...d
|
|
12779
12785
|
}, t);
|
|
12780
|
-
},
|
|
12786
|
+
}, hs = (e, t, n) => {
|
|
12781
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, [
|
|
12782
12788
|
r,
|
|
12783
12789
|
i,
|
|
@@ -12801,7 +12807,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12801
12807
|
m,
|
|
12802
12808
|
a
|
|
12803
12809
|
]), l;
|
|
12804
|
-
},
|
|
12810
|
+
}, gs = () => {
|
|
12805
12811
|
let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12806
12812
|
return u(() => {
|
|
12807
12813
|
if (!e) return;
|
|
@@ -12815,6 +12821,6 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12815
12821
|
}, []), t;
|
|
12816
12822
|
};
|
|
12817
12823
|
//#endregion
|
|
12818
|
-
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 };
|
|
12819
12825
|
|
|
12820
12826
|
//# sourceMappingURL=index.js.map
|