@pantheon-systems/pds-toolkit-react 2.0.0-alpha.73 → 2.0.0-alpha.75
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 +12 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +12 -1
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +12 -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 +228 -226
- 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) => {
|
|
@@ -9674,11 +9676,11 @@ var Hr = {
|
|
|
9674
9676
|
offsetValue: 0,
|
|
9675
9677
|
preferredPlacement: "top"
|
|
9676
9678
|
}));
|
|
9677
|
-
}, sa = ({ ariaLabel: t = "User menu", className: n,
|
|
9678
|
-
let [
|
|
9679
|
+
}, sa = ({ 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 }) => {
|
|
9680
|
+
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({
|
|
9679
9681
|
placement: "bottom-end",
|
|
9680
|
-
open:
|
|
9681
|
-
onOpenChange:
|
|
9682
|
+
open: v,
|
|
9683
|
+
onOpenChange: y,
|
|
9682
9684
|
middleware: [
|
|
9683
9685
|
E(12),
|
|
9684
9686
|
T(),
|
|
@@ -9686,20 +9688,20 @@ var Hr = {
|
|
|
9686
9688
|
],
|
|
9687
9689
|
whileElementsMounted: w,
|
|
9688
9690
|
strategy: "fixed"
|
|
9689
|
-
}),
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
L(
|
|
9694
|
-
listRef:
|
|
9695
|
-
activeIndex:
|
|
9696
|
-
onNavigate:
|
|
9691
|
+
}), H = A(F, { event: "mousedown" }), U = j(F), W = R(F, { role: "menu" }), G = h([]), { getFloatingProps: K, getItemProps: q, getReferenceProps: J } = I([
|
|
9692
|
+
U,
|
|
9693
|
+
W,
|
|
9694
|
+
H,
|
|
9695
|
+
L(F, {
|
|
9696
|
+
listRef: G,
|
|
9697
|
+
activeIndex: m,
|
|
9698
|
+
onNavigate: _,
|
|
9697
9699
|
loop: !0,
|
|
9698
9700
|
openOnArrowKeyDown: !0,
|
|
9699
9701
|
focusItemOnOpen: !1,
|
|
9700
9702
|
focusItemOnHover: !0
|
|
9701
9703
|
})
|
|
9702
|
-
]), { isMounted:
|
|
9704
|
+
]), { isMounted: ee, styles: te } = z(F, {
|
|
9703
9705
|
duration: {
|
|
9704
9706
|
open: 300,
|
|
9705
9707
|
close: 150
|
|
@@ -9707,58 +9709,58 @@ var Hr = {
|
|
|
9707
9709
|
initial: { opacity: 0 },
|
|
9708
9710
|
open: { opacity: 1 },
|
|
9709
9711
|
close: { opacity: 0 }
|
|
9710
|
-
}),
|
|
9712
|
+
}), ne = /* @__PURE__ */ e.createElement(bt, {
|
|
9711
9713
|
hasUserFallback: !0,
|
|
9712
|
-
className: `${
|
|
9713
|
-
imageSrc:
|
|
9714
|
+
className: `${N}__avatar`,
|
|
9715
|
+
imageSrc: u,
|
|
9714
9716
|
size: "s",
|
|
9715
|
-
uniqueId:
|
|
9716
|
-
}),
|
|
9717
|
-
className: `${
|
|
9717
|
+
uniqueId: l
|
|
9718
|
+
}), re = /* @__PURE__ */ e.createElement("li", {
|
|
9719
|
+
className: `${N}__user-details`,
|
|
9718
9720
|
role: "presentation"
|
|
9719
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9720
|
-
className: `${
|
|
9721
|
+
}, /* @__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", {
|
|
9722
|
+
className: `${N}__theme-row`,
|
|
9721
9723
|
role: "presentation"
|
|
9722
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
9723
|
-
id: `${
|
|
9724
|
-
labelStrings:
|
|
9725
|
-
onChange:
|
|
9724
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${N}__theme-label` }, s), /* @__PURE__ */ e.createElement(oa, {
|
|
9725
|
+
id: `${k}-theme`,
|
|
9726
|
+
labelStrings: c,
|
|
9727
|
+
onChange: a,
|
|
9726
9728
|
size: "s",
|
|
9727
|
-
theme:
|
|
9729
|
+
theme: o,
|
|
9728
9730
|
variant: "toggle"
|
|
9729
9731
|
})) : null;
|
|
9730
|
-
|
|
9731
|
-
let n = e.id ? e.id : `${
|
|
9732
|
-
|
|
9732
|
+
i.forEach((e, t) => {
|
|
9733
|
+
let n = e.id ? e.id : `${k}-item-${t}`;
|
|
9734
|
+
C.current.push(n), D.current.push(e);
|
|
9733
9735
|
});
|
|
9734
|
-
let
|
|
9735
|
-
let t =
|
|
9736
|
-
n.linkContent && !n.disabled && (
|
|
9737
|
-
},
|
|
9738
|
-
e.preventDefault(), e.key === "Enter" &&
|
|
9739
|
-
},
|
|
9740
|
-
|
|
9741
|
-
},
|
|
9742
|
-
let r =
|
|
9736
|
+
let ae = (e) => {
|
|
9737
|
+
let t = C.current.indexOf(e), n = D.current[t];
|
|
9738
|
+
n.linkContent && !n.disabled && (G.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
|
|
9739
|
+
}, oe = (e) => {
|
|
9740
|
+
e.preventDefault(), e.key === "Enter" && ae(e.currentTarget.id);
|
|
9741
|
+
}, Y = (e) => {
|
|
9742
|
+
ae(e.currentTarget.id);
|
|
9743
|
+
}, se = i.map((t, n) => {
|
|
9744
|
+
let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9743
9745
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9744
9746
|
key: r,
|
|
9745
9747
|
ref: (e) => {
|
|
9746
|
-
|
|
9748
|
+
G.current[n] = e;
|
|
9747
9749
|
},
|
|
9748
9750
|
"aria-disabled": t.disabled || void 0,
|
|
9749
9751
|
className: Z([i, a]),
|
|
9750
9752
|
id: r,
|
|
9751
|
-
onKeyDown:
|
|
9753
|
+
onKeyDown: oe,
|
|
9752
9754
|
role: "menuitem",
|
|
9753
|
-
tabIndex:
|
|
9754
|
-
...
|
|
9755
|
+
tabIndex: m === n ? 0 : -1,
|
|
9756
|
+
...q({ onClick: (e) => Y(e) })
|
|
9755
9757
|
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9756
|
-
className: `${
|
|
9758
|
+
className: `${N}__icon`,
|
|
9757
9759
|
iconName: t.iconName,
|
|
9758
9760
|
size: "m"
|
|
9759
9761
|
}));
|
|
9760
|
-
}),
|
|
9761
|
-
let r =
|
|
9762
|
+
}), X = i.map((t, n) => {
|
|
9763
|
+
let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9762
9764
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9763
9765
|
key: r,
|
|
9764
9766
|
"aria-disabled": t.disabled || void 0,
|
|
@@ -9769,44 +9771,44 @@ var Hr = {
|
|
|
9769
9771
|
},
|
|
9770
9772
|
role: "menuitem"
|
|
9771
9773
|
}, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
9772
|
-
className: `${
|
|
9774
|
+
className: `${N}__icon`,
|
|
9773
9775
|
iconName: t.iconName,
|
|
9774
9776
|
size: "m"
|
|
9775
9777
|
}));
|
|
9776
|
-
}),
|
|
9778
|
+
}), ce = /* @__PURE__ */ e.createElement("span", { className: `${N}__toggle-left` }, ne, f ?? l);
|
|
9777
9779
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9778
|
-
className: Z([
|
|
9779
|
-
...
|
|
9780
|
-
}, /* @__PURE__ */ e.createElement(qn, { label:
|
|
9781
|
-
className: Z([
|
|
9780
|
+
className: Z([N, n ?? ""]),
|
|
9781
|
+
...p
|
|
9782
|
+
}, x ? /* @__PURE__ */ e.createElement(qn, { label: ce }, /* @__PURE__ */ e.createElement("ul", {
|
|
9783
|
+
className: Z([P, `${P}--mobile`]),
|
|
9782
9784
|
role: "menu"
|
|
9783
|
-
},
|
|
9784
|
-
ref:
|
|
9785
|
+
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, X)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9786
|
+
ref: V.setReference,
|
|
9785
9787
|
"aria-label": t,
|
|
9786
|
-
className: `${
|
|
9788
|
+
className: `${N}__trigger`,
|
|
9787
9789
|
type: "button",
|
|
9788
|
-
...
|
|
9789
|
-
},
|
|
9790
|
-
ref:
|
|
9791
|
-
className: `${
|
|
9790
|
+
...J()
|
|
9791
|
+
}, ne), ee && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9792
|
+
ref: V.setFloating,
|
|
9793
|
+
className: `${N}__dropdown`,
|
|
9792
9794
|
style: {
|
|
9793
|
-
...
|
|
9795
|
+
...B,
|
|
9794
9796
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9795
9797
|
},
|
|
9796
|
-
...
|
|
9797
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...
|
|
9798
|
-
className:
|
|
9798
|
+
...K()
|
|
9799
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
|
|
9800
|
+
className: P,
|
|
9799
9801
|
role: "menu"
|
|
9800
|
-
},
|
|
9801
|
-
}, ca = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...",
|
|
9802
|
-
let [
|
|
9803
|
-
enableTypeahead: !
|
|
9802
|
+
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, se))))));
|
|
9803
|
+
}, ca = ({ 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 }) => {
|
|
9804
|
+
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({
|
|
9805
|
+
enableTypeahead: !x,
|
|
9804
9806
|
role: "menu"
|
|
9805
|
-
}),
|
|
9806
|
-
|
|
9807
|
-
let
|
|
9807
|
+
}), R = u.find((e) => e.isActive);
|
|
9808
|
+
R || (R = u[0]);
|
|
9809
|
+
let z = h(null);
|
|
9808
9810
|
p(() => {
|
|
9809
|
-
let e =
|
|
9811
|
+
let e = z.current, t = e?.parentElement;
|
|
9810
9812
|
if (!e || !t) return;
|
|
9811
9813
|
let n = () => {
|
|
9812
9814
|
t.style.width = "";
|
|
@@ -9816,28 +9818,28 @@ var Hr = {
|
|
|
9816
9818
|
i > 0 && (t.style.width = `${Math.ceil(i)}px`);
|
|
9817
9819
|
};
|
|
9818
9820
|
n(), document.fonts?.ready.then(n);
|
|
9819
|
-
}, [
|
|
9820
|
-
let
|
|
9821
|
-
if (!
|
|
9822
|
-
let e =
|
|
9823
|
-
return
|
|
9824
|
-
}, [
|
|
9825
|
-
if (!
|
|
9826
|
-
let e =
|
|
9827
|
-
return
|
|
9828
|
-
}, [
|
|
9829
|
-
e.preventDefault(), e.key === "Enter" && (
|
|
9830
|
-
},
|
|
9831
|
-
className: `${
|
|
9821
|
+
}, [R?.displayName]);
|
|
9822
|
+
let B = m(() => {
|
|
9823
|
+
if (!f) return u;
|
|
9824
|
+
let e = f.toLowerCase();
|
|
9825
|
+
return u.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9826
|
+
}, [u, f]), V = m(() => {
|
|
9827
|
+
if (!v) return u;
|
|
9828
|
+
let e = v.toLowerCase();
|
|
9829
|
+
return u.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
9830
|
+
}, [u, v]), H = (e) => {
|
|
9831
|
+
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));
|
|
9832
|
+
}, U = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${T}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9833
|
+
className: `${T}__list-avatar`,
|
|
9832
9834
|
imageSrc: t.imageSrc,
|
|
9833
9835
|
size: "s",
|
|
9834
9836
|
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: `${
|
|
9836
|
-
className: `${
|
|
9837
|
+
}), 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, {
|
|
9838
|
+
className: `${T}__lock-icon`,
|
|
9837
9839
|
iconName: "lock"
|
|
9838
|
-
}), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))),
|
|
9839
|
-
let r = `${
|
|
9840
|
-
|
|
9840
|
+
}), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), W = B.map((t, n) => {
|
|
9841
|
+
let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
|
|
9842
|
+
P.current[n] = e;
|
|
9841
9843
|
};
|
|
9842
9844
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9843
9845
|
key: i,
|
|
@@ -9851,18 +9853,18 @@ var Hr = {
|
|
|
9851
9853
|
t.isRestricted ? `${r}--restricted` : null
|
|
9852
9854
|
]),
|
|
9853
9855
|
id: i,
|
|
9854
|
-
onKeyDown:
|
|
9856
|
+
onKeyDown: H,
|
|
9855
9857
|
role: "menuitem",
|
|
9856
|
-
tabIndex:
|
|
9857
|
-
...
|
|
9858
|
+
tabIndex: O === n ? 0 : -1,
|
|
9859
|
+
...j()
|
|
9858
9860
|
}, a ? /* @__PURE__ */ e.createElement("button", {
|
|
9859
9861
|
onClick: () => {
|
|
9860
|
-
t.onRestrictedSelection(),
|
|
9862
|
+
t.onRestrictedSelection(), I(!1);
|
|
9861
9863
|
},
|
|
9862
9864
|
type: "button"
|
|
9863
|
-
},
|
|
9864
|
-
}),
|
|
9865
|
-
let n = `${
|
|
9865
|
+
}, U(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), U(t)) : null);
|
|
9866
|
+
}), G = V.map((t) => {
|
|
9867
|
+
let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
|
|
9866
9868
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9867
9869
|
key: `${r}-accordion`,
|
|
9868
9870
|
className: Z([
|
|
@@ -9878,82 +9880,82 @@ var Hr = {
|
|
|
9878
9880
|
}, i ? /* @__PURE__ */ e.createElement("button", {
|
|
9879
9881
|
onClick: () => t.onRestrictedSelection(),
|
|
9880
9882
|
type: "button"
|
|
9881
|
-
},
|
|
9882
|
-
}),
|
|
9883
|
-
ref:
|
|
9884
|
-
className: `${
|
|
9883
|
+
}, U(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), U(t)) : null);
|
|
9884
|
+
}), K = r && /* @__PURE__ */ e.createElement("div", {
|
|
9885
|
+
ref: b,
|
|
9886
|
+
className: `${T}__create-link`
|
|
9885
9887
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
9886
|
-
className: `${
|
|
9887
|
-
onBlur: () =>
|
|
9888
|
-
onClick: () =>
|
|
9888
|
+
className: `${T}__create-link-inner`,
|
|
9889
|
+
onBlur: () => I(!1),
|
|
9890
|
+
onClick: () => I(!1)
|
|
9889
9891
|
}, r, /* @__PURE__ */ e.createElement(Q, {
|
|
9890
9892
|
iconName: "plus",
|
|
9891
9893
|
size: "s"
|
|
9892
|
-
}))),
|
|
9893
|
-
className: `${
|
|
9894
|
-
imageSrc:
|
|
9894
|
+
}))), q = (t) => R ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
|
|
9895
|
+
className: `${T}__avatar`,
|
|
9896
|
+
imageSrc: R.imageSrc,
|
|
9895
9897
|
size: "s",
|
|
9896
|
-
uniqueId:
|
|
9897
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
9898
|
+
uniqueId: R.workspaceId
|
|
9899
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${T}__name` }, /* @__PURE__ */ e.createElement("span", {
|
|
9898
9900
|
ref: t,
|
|
9899
|
-
className: `${
|
|
9900
|
-
},
|
|
9901
|
+
className: `${T}__name-text`
|
|
9902
|
+
}, R.displayName))) : null;
|
|
9901
9903
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9902
|
-
className: Z([
|
|
9903
|
-
...
|
|
9904
|
-
}, /* @__PURE__ */ e.createElement(qn, { label:
|
|
9904
|
+
className: Z([T, n]),
|
|
9905
|
+
...d
|
|
9906
|
+
}, w ? /* @__PURE__ */ e.createElement(qn, { label: q() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9905
9907
|
hasClearButton: !0,
|
|
9906
9908
|
id: "workspace-filter-mobile",
|
|
9907
9909
|
label: i,
|
|
9908
|
-
onChange: (e) =>
|
|
9909
|
-
onClear: () =>
|
|
9910
|
+
onChange: (e) => y(e.target.value),
|
|
9911
|
+
onClear: () => y(""),
|
|
9910
9912
|
placeholder: a,
|
|
9911
9913
|
showLabel: !1,
|
|
9912
9914
|
type: "search"
|
|
9913
9915
|
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9914
|
-
className: Z([
|
|
9916
|
+
className: Z([E, `${E}--mobile`]),
|
|
9915
9917
|
role: "menu"
|
|
9916
9918
|
}, /* @__PURE__ */ e.createElement("li", {
|
|
9917
|
-
className: `pds-dropdown__heading ${
|
|
9919
|
+
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
9918
9920
|
role: "presentation"
|
|
9919
|
-
},
|
|
9921
|
+
}, 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, {
|
|
9920
9922
|
iconName: "plus",
|
|
9921
9923
|
size: "s"
|
|
9922
|
-
})))), /* @__PURE__ */ e.createElement("button", {
|
|
9923
|
-
ref:
|
|
9924
|
+
})))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9925
|
+
ref: F.setReference,
|
|
9924
9926
|
"aria-label": t,
|
|
9925
|
-
className: `${
|
|
9927
|
+
className: `${T}__trigger`,
|
|
9926
9928
|
type: "button",
|
|
9927
|
-
...
|
|
9928
|
-
},
|
|
9929
|
-
className: `${
|
|
9929
|
+
...M()
|
|
9930
|
+
}, q(z), /* @__PURE__ */ e.createElement(Q, {
|
|
9931
|
+
className: `${T}__trigger-icon`,
|
|
9930
9932
|
iconName: "angleDown",
|
|
9931
9933
|
size: "m"
|
|
9932
|
-
})),
|
|
9933
|
-
ref:
|
|
9934
|
-
className: `pds-dropdown__panel ${
|
|
9934
|
+
})), N && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
9935
|
+
ref: F.setFloating,
|
|
9936
|
+
className: `pds-dropdown__panel ${T}__dropdown`,
|
|
9935
9937
|
style: {
|
|
9936
|
-
...
|
|
9937
|
-
...
|
|
9938
|
+
...k,
|
|
9939
|
+
...L,
|
|
9938
9940
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9939
9941
|
},
|
|
9940
|
-
...
|
|
9941
|
-
},
|
|
9942
|
+
...A()
|
|
9943
|
+
}, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
|
|
9942
9944
|
hasClearButton: !0,
|
|
9943
9945
|
id: "workspace-filter",
|
|
9944
9946
|
label: i,
|
|
9945
|
-
onChange: (e) =>
|
|
9946
|
-
onClear: () =>
|
|
9947
|
+
onChange: (e) => _(e.target.value),
|
|
9948
|
+
onClear: () => _(""),
|
|
9947
9949
|
placeholder: a,
|
|
9948
9950
|
showLabel: !1,
|
|
9949
9951
|
type: "search"
|
|
9950
9952
|
})), /* @__PURE__ */ e.createElement("ul", {
|
|
9951
|
-
className: Z([
|
|
9953
|
+
className: Z([E, D]),
|
|
9952
9954
|
role: "menu"
|
|
9953
9955
|
}, /* @__PURE__ */ e.createElement("li", {
|
|
9954
|
-
className: `pds-dropdown__heading ${
|
|
9956
|
+
className: `pds-dropdown__heading ${T}__item-heading`,
|
|
9955
9957
|
role: "presentation"
|
|
9956
|
-
},
|
|
9958
|
+
}, s), W.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : W), K))));
|
|
9957
9959
|
}, la = {
|
|
9958
9960
|
info: "circleInfo",
|
|
9959
9961
|
warning: "triangleExclamation",
|