@bloomreach/react-banana-ui 1.2.0 → 1.3.0
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/bloomreach-react-banana-ui.es.js +219 -216
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -1
- package/dist/bloomreach-react-banana-ui.umd.js +12 -12
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -1
- package/dist/components/foundations/icon/icons/VariantsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -3545,22 +3545,24 @@ const sh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www
|
|
|
3545
3545
|
uh.displayName = "UsagesIcon";
|
|
3546
3546
|
const dh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 17, fill: "currentColor", viewBox: "0 0 16 17", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M5 2.751a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM12 7.751a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm-2.25.75a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM6 10.751a4.25 4.25 0 0 0-4.25 4.25.75.75 0 0 1-1.5 0 5.75 5.75 0 0 1 8.05-5.27.75.75 0 1 1-.6 1.375 4.25 4.25 0 0 0-1.7-.355Zm6 2a2.25 2.25 0 0 0-2.25 2.25.75.75 0 0 1-1.5 0 3.75 3.75 0 0 1 7.5 0 .75.75 0 0 1-1.5 0 2.25 2.25 0 0 0-2.25-2.25Z" })), fh = c(dh), mh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(fh, {}) }));
|
|
3547
3547
|
mh.displayName = "UsersIcon";
|
|
3548
|
-
const ph = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
3549
|
-
gh.displayName = "
|
|
3550
|
-
const wh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height:
|
|
3551
|
-
bh.displayName = "
|
|
3552
|
-
const yh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
3553
|
-
Sh.displayName = "
|
|
3554
|
-
const Ch = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
3555
|
-
Zh.displayName = "
|
|
3556
|
-
const Rh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
3557
|
-
|
|
3558
|
-
const
|
|
3559
|
-
Nh.displayName = "
|
|
3560
|
-
const Lh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
3561
|
-
Bh.displayName = "
|
|
3562
|
-
const Hh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, fill: "currentColor", viewBox: "0 0 18 18", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "
|
|
3563
|
-
Vh.displayName = "
|
|
3548
|
+
const ph = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", viewBox: "0 0 16 16", ref: t, ...e }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M5.253 4.23a.762.762 0 0 0-1.363.682l2.032 4.064a.762.762 0 0 0 1.363 0l2.032-4.064a.762.762 0 0 0-1.363-.681l-1.35 2.7-1.35-2.7Z" }), /* @__PURE__ */ r.createElement("path", { d: "M2.032 0C.91 0 0 .91 0 2.032v9.143c0 1.122.91 2.031 2.032 2.031h9.143c1.122 0 2.031-.91 2.031-2.031V2.032C13.206.91 12.296 0 11.175 0H2.032Zm9.143 1.524c.28 0 .507.227.507.508v9.143c0 .28-.227.507-.507.507H2.032a.508.508 0 0 1-.508-.507V2.032c0-.28.227-.508.508-.508h9.143Z" }), /* @__PURE__ */ r.createElement("path", { d: "M13.688 4.063c0-.42.341-.761.762-.761.856 0 1.55.693 1.55 1.55v8.354A2.794 2.794 0 0 1 13.206 16H4.851a1.55 1.55 0 0 1-1.55-1.55.762.762 0 0 1 1.524 0c0 .014.012.026.026.026h8.355a1.27 1.27 0 0 0 1.27-1.27V4.851a.026.026 0 0 0-.026-.026.762.762 0 0 1-.762-.762Z" })))), vh = c(ph), gh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(vh, {}) }));
|
|
3549
|
+
gh.displayName = "VariantsIcon";
|
|
3550
|
+
const wh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, fill: "currentColor", viewBox: "0 0 18 18", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M2.77.774a.75.75 0 0 1 .556.59c.11.594.212.913.365 1.103.101.125.298.284.897.284h.005a3.267 3.267 0 0 1 3.23 2.954l7.595 8.79a1.671 1.671 0 0 1-2.362 2.351l-.003-.002L4.296 9.24C2.428 9.108 1.301 7.697.914 6.117.513 4.475.844 2.48 2.003 1.033a.75.75 0 0 1 .768-.26Zm3.05 3.995a1.767 1.767 0 0 0-1.235-.518c-.899 0-1.593-.26-2.063-.844-.02-.025-.04-.05-.059-.077a4.625 4.625 0 0 0-.091 2.43c.27 1.108.94 1.851 1.923 1.974l2.017-2.018a1.767 1.767 0 0 0-.491-.947Zm-.132 3.693 8.346 7.246v.001a.171.171 0 0 0 .243-.24L7.048 7.102l-1.36 1.36Z" }), /* @__PURE__ */ r.createElement("path", { d: "m13.995 7.896 1.6-1.6a1.405 1.405 0 0 1-.184 1.538L13.27 9.97a.75.75 0 0 0 1.06 1.062l2.16-2.156a2.902 2.902 0 0 0 .177-3.688 2.75 2.75 0 0 0-4.137-3.606l-3.6 3.6a.75.75 0 0 0-.03 1.029l2.665 2.992a.75.75 0 0 0 1.09.032l1.327-1.327.006-.006.006-.006Zm.48-5.62a1.25 1.25 0 0 1 .885 2.134l-1.901 1.901-1.768-1.768 1.9-1.9a1.25 1.25 0 0 1 .885-.367Zm-2.077 5.096-.24.24-1.666-1.87.138-.138 1.768 1.768Zm-8.608 2.95a.75.75 0 0 1 1.052-.008l2.876 2.781a.75.75 0 0 1 .008 1.07l-.888.888a1.75 1.75 0 0 1-1.825.41L4.01 16.468a.75.75 0 0 1-1.061 0l-.177-.177-.74.742A.75.75 0 1 1 .97 15.97l.74-.741-.176-.177a.75.75 0 0 1 0-1.061l1.003-1.004a1.75 1.75 0 0 1 .411-1.824l.841-.842Zm.043 4.2-.354-.353-.353.353.353.354.354-.354Zm1.768-.457a.25.25 0 0 0 .176-.073l.35-.349-1.797-1.738-.32.32a.25.25 0 0 0-.005.348l.005.005 1.414 1.414.005.005a.25.25 0 0 0 .172.068Z" })), Eh = c(wh), bh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(Eh, {}) }));
|
|
3551
|
+
bh.displayName = "VisualIcon";
|
|
3552
|
+
const yh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 17, fill: "currentColor", viewBox: "0 0 18 17", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M6.501 4.251a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Zm-.25 1.75a.25.25 0 1 1 .5 0 .25.25 0 0 1-.5 0Zm4 4a1.75 1.75 0 1 1 3.5 0 1.75 1.75 0 0 1-3.5 0Zm1.75-.25a.25.25 0 1 0 0 .5.25.25 0 0 0 0-.5Zm.03-3.719a.75.75 0 1 0-1.06-1.061l-5 5a.75.75 0 0 0 1.06 1.06l5-5Z" }), /* @__PURE__ */ r.createElement("path", { d: "M2.501 2.251a1.75 1.75 0 0 0-1.75 1.75v2c0 .414.336.75.75.75a1.25 1.25 0 0 1 0 2.5.75.75 0 0 0-.75.75v2a1.75 1.75 0 0 0 1.75 1.75h13a1.75 1.75 0 0 0 1.75-1.75v-2a.75.75 0 0 0-.75-.75 1.25 1.25 0 0 1 0-2.5.75.75 0 0 0 .75-.75v-2a1.75 1.75 0 0 0-1.75-1.75h-13Zm-.177 1.573a.25.25 0 0 1 .177-.073h13a.25.25 0 0 1 .25.25v1.354a2.75 2.75 0 0 0 0 5.292v1.354a.25.25 0 0 1-.25.25h-13a.25.25 0 0 1-.25-.25v-1.354a2.75 2.75 0 0 0 0-5.292V4.001a.25.25 0 0 1 .073-.177Z" })), xh = c(yh), Sh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(xh, {}) }));
|
|
3553
|
+
Sh.displayName = "VoucherIcon";
|
|
3554
|
+
const Ch = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 17, fill: "currentColor", viewBox: "0 0 16 17", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M7.751 4.751a.75.75 0 0 0-.75.75v2.5a.748.748 0 0 0 .22.53l3.124 3.126a.75.75 0 1 0 1.061-1.06L8.501 7.69V5.5a.75.75 0 0 0-.75-.75Z" }), /* @__PURE__ */ r.createElement("path", { d: "M8.001.251a7.75 7.75 0 1 0 0 15.5 7.75 7.75 0 0 0 0-15.5Zm-6.25 7.75a6.25 6.25 0 1 1 12.5 0 6.25 6.25 0 0 1-12.5 0Z" })), Mh = c(Ch), Zh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(Mh, {}) }));
|
|
3555
|
+
Zh.displayName = "WaitIcon";
|
|
3556
|
+
const Rh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, fill: "currentColor", viewBox: "0 0 18 18", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M7.501.751a.75.75 0 0 1 .75.75v1.25l4.328-.002a1.75 1.75 0 0 1 1.254.529l2.91 2.99a1.75 1.75 0 0 1 0 2.467l-2.91 2.988a1.751 1.751 0 0 1-1.254.528H8.25v4.25a.75.75 0 0 1-1.5 0v-4.25H2.5a1.75 1.75 0 0 1-1.75-1.75v-6a1.75 1.75 0 0 1 1.75-1.75h4.25V1.5A.75.75 0 0 1 7.5.75Zm0 3.5h-5a.25.25 0 0 0-.25.25v6a.25.25 0 0 0 .25.25H12.58a.253.253 0 0 0 .18-.075l2.92-2.998a.25.25 0 0 0 0-.354l-.008-.007-2.912-2.992a.252.252 0 0 0-.18-.076l-5.038.001a.762.762 0 0 1-.04.001Z" })), Ih = c(Rh), Ah = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(Ih, {}) }));
|
|
3557
|
+
Ah.displayName = "WalkthroughsIcon";
|
|
3558
|
+
const Th = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", viewBox: "0 0 16 16", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M15.413 13.333 9.18 1.433a1.333 1.333 0 0 0-2.362 0l-6.232 11.9a1.333 1.333 0 0 0 1.182 1.952H14.23a1.333 1.333 0 0 0 1.182-1.952Zm-8.08-7.718a.667.667 0 0 1 1.334 0v4a.667.667 0 0 1-1.334 0v-4Zm.7 7.674h-.018A1.019 1.019 0 0 1 7 12.309a.984.984 0 0 1 .965-1.02h.019a1.018 1.018 0 0 1 .954 1.362.983.983 0 0 1-.905.638Z" })), t5 = c(Th), Nh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(t5, {}) }));
|
|
3559
|
+
Nh.displayName = "WarningFillIcon";
|
|
3560
|
+
const Lh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 17, height: 17, fill: "currentColor", viewBox: "0 0 17 17", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M8.001 1.751a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm2.404 3.938a3.25 3.25 0 1 0-4.808 0l-1.6 3.6A3.25 3.25 0 1 0 6.713 13H9.29a3.25 3.25 0 1 0 2.715-3.712l-1.6-3.6Zm-1.261.856 1.47 3.31c-.56.4-.99.976-1.206 1.646H6.595a3.257 3.257 0 0 0-1.208-1.647l1.471-3.31a3.243 3.243 0 0 0 2.286 0ZM3.5 10.75a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm9 0a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Z" })), Fh = c(Lh), Bh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(Fh, {}) }));
|
|
3561
|
+
Bh.displayName = "WebhookIcon";
|
|
3562
|
+
const Hh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, fill: "currentColor", viewBox: "0 0 18 18", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M2.34.78c-.687.09-1.263.57-1.492 1.244l-.082.242v5.715c0 5.44.003 5.724.055 5.908.15.528.5.944.983 1.171.385.18.382.18 2.982.18 1.497.001 2.41-.01 2.48-.029.282-.079.444-.296.468-.628.028-.396-.14-.698-.433-.78-.077-.02-.892-.032-2.433-.032-2.494 0-2.459.002-2.568-.154-.045-.063-.049-.43-.049-4.218V5.251h13.496l.01 1.492c.01 1.374.014 1.503.065 1.62.111.255.32.368.68.368.368 0 .577-.118.68-.384.051-.133.054-.313.054-3.096V2.296l-.07-.225a1.862 1.862 0 0 0-1.19-1.223l-.24-.082L9.121.762C5.483.76 2.431.768 2.341.78Zm13.247 1.507c.15.068.164.146.164.833v.631h-13.5l.001-.638c.001-.68.013-.743.152-.82.101-.056 13.061-.062 13.183-.006Zm-5.533 7.031c-.62.167-1.12.687-1.25 1.3-.064.3-.062 4.964.002 5.268.123.586.597 1.092 1.2 1.283l.21.067h2.79c3.104 0 2.92.011 3.33-.205.23-.122.573-.466.695-.696.215-.406.205-.257.205-3.059 0-2.743.004-2.665-.173-3.045-.12-.258-.5-.643-.764-.776-.372-.188-.29-.183-3.323-.182-2.313.002-2.786.01-2.922.045Zm5.556 1.458c.144.076.14-.004.14 2.48l.001 2.348-.074.073-.073.074h-5.213l-.072-.077-.073-.078-.009-2.255c-.005-1.24 0-2.3.01-2.356a.374.374 0 0 1 .09-.172l.071-.072h2.57c1.894 0 2.584.01 2.632.035Z" })), Ph = c(Hh), Vh = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i(Ph, {}) }));
|
|
3563
|
+
Vh.displayName = "WeblayerIcon";
|
|
3564
|
+
const Oh = (e, t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, fill: "currentColor", viewBox: "0 0 18 18", ref: t, ...e }, /* @__PURE__ */ r.createElement("path", { d: "M8.178 2.226a5.381 5.381 0 0 1 6.278-.815.75.75 0 0 1 .171 1.189l-2.4 2.4a.25.25 0 0 0 0 .353l.533.534a.25.25 0 0 0 .354 0l2.367-2.364a.75.75 0 0 1 1.2.194 5.383 5.383 0 0 1-6.63 7.479L4.514 16.73a1.778 1.778 0 0 1-2.517 0l-.727-.727a1.778 1.778 0 0 1 0-2.516L6.81 7.95a5.382 5.382 0 0 1 1.367-5.725Zm4.575.127a3.882 3.882 0 0 0-4.38 5.451.75.75 0 0 1-.146.854l-5.895 5.891a.278.278 0 0 0 0 .394l.727.728a.279.279 0 0 0 .395 0l5.89-5.89a.75.75 0 0 1 .854-.147 3.884 3.884 0 0 0 5.492-4.2l-1.516 1.514a1.75 1.75 0 0 1-2.474 0l-.533-.534a1.75 1.75 0 0 1 0-2.475l1.586-1.586Z" })), $h = c(Oh), _h = c((e, t) => /* @__PURE__ */ i(p, { ...e, ref: t, children: /* @__PURE__ */ i($h, {}) }));
|
|
3565
|
+
_h.displayName = "WrenchIcon";
|
|
3564
3566
|
function D0(e) {
|
|
3565
3567
|
let t = e.activeElement;
|
|
3566
3568
|
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
@@ -3589,7 +3591,7 @@ function n5() {
|
|
|
3589
3591
|
const e = navigator.userAgentData;
|
|
3590
3592
|
return e != null && e.platform ? e.platform : navigator.platform;
|
|
3591
3593
|
}
|
|
3592
|
-
function
|
|
3594
|
+
function Dh() {
|
|
3593
3595
|
const e = navigator.userAgentData;
|
|
3594
3596
|
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
3595
3597
|
let {
|
|
@@ -3599,18 +3601,18 @@ function Oh() {
|
|
|
3599
3601
|
return n + "/" + o;
|
|
3600
3602
|
}).join(" ") : navigator.userAgent;
|
|
3601
3603
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return !
|
|
3604
|
+
function kh(e) {
|
|
3605
|
+
return !Uh() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
3604
3606
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0;
|
|
3605
3607
|
}
|
|
3606
3608
|
function r5() {
|
|
3607
3609
|
return /apple/i.test(navigator.vendor);
|
|
3608
3610
|
}
|
|
3609
|
-
function
|
|
3611
|
+
function Uh() {
|
|
3610
3612
|
const e = /android/i;
|
|
3611
|
-
return e.test(n5()) || e.test(
|
|
3613
|
+
return e.test(n5()) || e.test(Dh());
|
|
3612
3614
|
}
|
|
3613
|
-
function
|
|
3615
|
+
function Wh() {
|
|
3614
3616
|
return n5().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
3615
3617
|
}
|
|
3616
3618
|
function o5(e, t) {
|
|
@@ -3620,18 +3622,18 @@ function o5(e, t) {
|
|
|
3620
3622
|
function Te(e) {
|
|
3621
3623
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
3622
3624
|
}
|
|
3623
|
-
function
|
|
3625
|
+
function zh(e) {
|
|
3624
3626
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
3625
3627
|
}
|
|
3626
|
-
const
|
|
3627
|
-
function
|
|
3628
|
-
return ue(e) && e.matches(
|
|
3628
|
+
const jh = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
3629
|
+
function Yh(e) {
|
|
3630
|
+
return ue(e) && e.matches(jh);
|
|
3629
3631
|
}
|
|
3630
3632
|
/*!
|
|
3631
3633
|
* tabbable 6.2.0
|
|
3632
3634
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3633
3635
|
*/
|
|
3634
|
-
var
|
|
3636
|
+
var qh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], k0 = /* @__PURE__ */ qh.join(","), a5 = typeof Element > "u", _e = a5 ? function() {
|
|
3635
3637
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, c0 = !a5 && Element.prototype.getRootNode ? function(e) {
|
|
3636
3638
|
var t;
|
|
3637
3639
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -3642,15 +3644,15 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3642
3644
|
n === void 0 && (n = !0);
|
|
3643
3645
|
var a = t == null || (o = t.getAttribute) === null || o === void 0 ? void 0 : o.call(t, "inert"), l = a === "" || a === "true", s = l || n && t && e(t.parentNode);
|
|
3644
3646
|
return s;
|
|
3645
|
-
},
|
|
3647
|
+
}, Gh = function(t) {
|
|
3646
3648
|
var n, o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
3647
3649
|
return o === "" || o === "true";
|
|
3648
|
-
},
|
|
3650
|
+
}, Kh = function(t, n, o) {
|
|
3649
3651
|
if (s0(t))
|
|
3650
3652
|
return [];
|
|
3651
3653
|
var a = Array.prototype.slice.apply(t.querySelectorAll(k0));
|
|
3652
3654
|
return n && _e.call(t, k0) && a.unshift(t), a = a.filter(o), a;
|
|
3653
|
-
},
|
|
3655
|
+
}, Xh = function e(t, n, o) {
|
|
3654
3656
|
for (var a = [], l = Array.from(t); l.length; ) {
|
|
3655
3657
|
var s = l.shift();
|
|
3656
3658
|
if (!s0(s, !1))
|
|
@@ -3681,26 +3683,26 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3681
3683
|
}, l5 = function(t) {
|
|
3682
3684
|
if (!t)
|
|
3683
3685
|
throw new Error("No node provided");
|
|
3684
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
3685
|
-
},
|
|
3686
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Gh(t)) && !i5(t) ? 0 : t.tabIndex;
|
|
3687
|
+
}, Qh = function(t, n) {
|
|
3686
3688
|
var o = l5(t);
|
|
3687
3689
|
return o < 0 && n && !i5(t) ? 0 : o;
|
|
3688
|
-
},
|
|
3690
|
+
}, Jh = function(t, n) {
|
|
3689
3691
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
3690
3692
|
}, c5 = function(t) {
|
|
3691
3693
|
return t.tagName === "INPUT";
|
|
3692
|
-
},
|
|
3694
|
+
}, eu = function(t) {
|
|
3693
3695
|
return c5(t) && t.type === "hidden";
|
|
3694
|
-
},
|
|
3696
|
+
}, tu = function(t) {
|
|
3695
3697
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(o) {
|
|
3696
3698
|
return o.tagName === "SUMMARY";
|
|
3697
3699
|
});
|
|
3698
3700
|
return n;
|
|
3699
|
-
},
|
|
3701
|
+
}, nu = function(t, n) {
|
|
3700
3702
|
for (var o = 0; o < t.length; o++)
|
|
3701
3703
|
if (t[o].checked && t[o].form === n)
|
|
3702
3704
|
return t[o];
|
|
3703
|
-
},
|
|
3705
|
+
}, ru = function(t) {
|
|
3704
3706
|
if (!t.name)
|
|
3705
3707
|
return !0;
|
|
3706
3708
|
var n = t.form || c0(t), o = function(h) {
|
|
@@ -3714,13 +3716,13 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3714
3716
|
} catch (s) {
|
|
3715
3717
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
3716
3718
|
}
|
|
3717
|
-
var l =
|
|
3719
|
+
var l = nu(a, t.form);
|
|
3718
3720
|
return !l || l === t;
|
|
3719
|
-
},
|
|
3721
|
+
}, ou = function(t) {
|
|
3720
3722
|
return c5(t) && t.type === "radio";
|
|
3721
|
-
},
|
|
3722
|
-
return
|
|
3723
|
-
},
|
|
3723
|
+
}, au = function(t) {
|
|
3724
|
+
return ou(t) && !ru(t);
|
|
3725
|
+
}, iu = function(t) {
|
|
3724
3726
|
var n, o = t && c0(t), a = (n = o) === null || n === void 0 ? void 0 : n.host, l = !1;
|
|
3725
3727
|
if (o && o !== t) {
|
|
3726
3728
|
var s, h, d;
|
|
@@ -3733,7 +3735,7 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3733
3735
|
}, z1 = function(t) {
|
|
3734
3736
|
var n = t.getBoundingClientRect(), o = n.width, a = n.height;
|
|
3735
3737
|
return o === 0 && a === 0;
|
|
3736
|
-
},
|
|
3738
|
+
}, lu = function(t, n) {
|
|
3737
3739
|
var o = n.displayCheck, a = n.getShadowRoot;
|
|
3738
3740
|
if (getComputedStyle(t).visibility === "hidden")
|
|
3739
3741
|
return !0;
|
|
@@ -3750,14 +3752,14 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3750
3752
|
}
|
|
3751
3753
|
t = h;
|
|
3752
3754
|
}
|
|
3753
|
-
if (
|
|
3755
|
+
if (iu(t))
|
|
3754
3756
|
return !t.getClientRects().length;
|
|
3755
3757
|
if (o !== "legacy-full")
|
|
3756
3758
|
return !0;
|
|
3757
3759
|
} else if (o === "non-zero-area")
|
|
3758
3760
|
return z1(t);
|
|
3759
3761
|
return !1;
|
|
3760
|
-
},
|
|
3762
|
+
}, cu = function(t) {
|
|
3761
3763
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
3762
3764
|
for (var n = t.parentElement; n; ) {
|
|
3763
3765
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -3771,21 +3773,21 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3771
3773
|
n = n.parentElement;
|
|
3772
3774
|
}
|
|
3773
3775
|
return !1;
|
|
3774
|
-
},
|
|
3776
|
+
}, su = function(t, n) {
|
|
3775
3777
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
3776
3778
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
3777
3779
|
// note related to `candidateSelectors`)
|
|
3778
|
-
s0(n) ||
|
|
3779
|
-
|
|
3780
|
+
s0(n) || eu(n) || lu(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
3781
|
+
tu(n) || cu(n));
|
|
3780
3782
|
}, j1 = function(t, n) {
|
|
3781
|
-
return !(
|
|
3782
|
-
},
|
|
3783
|
+
return !(au(n) || l5(n) < 0 || !su(t, n));
|
|
3784
|
+
}, hu = function(t) {
|
|
3783
3785
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
3784
3786
|
return !!(isNaN(n) || n >= 0);
|
|
3785
|
-
},
|
|
3787
|
+
}, uu = function e(t) {
|
|
3786
3788
|
var n = [], o = [];
|
|
3787
3789
|
return t.forEach(function(a, l) {
|
|
3788
|
-
var s = !!a.scopeParent, h = s ? a.scopeParent : a, d =
|
|
3790
|
+
var s = !!a.scopeParent, h = s ? a.scopeParent : a, d = Qh(h, s), u = s ? e(a.candidates) : h;
|
|
3789
3791
|
d === 0 ? s ? n.push.apply(n, u) : n.push(h) : o.push({
|
|
3790
3792
|
documentOrder: l,
|
|
3791
3793
|
tabIndex: d,
|
|
@@ -3793,26 +3795,26 @@ var zh = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3793
3795
|
isScope: s,
|
|
3794
3796
|
content: u
|
|
3795
3797
|
});
|
|
3796
|
-
}), o.sort(
|
|
3798
|
+
}), o.sort(Jh).reduce(function(a, l) {
|
|
3797
3799
|
return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
|
|
3798
3800
|
}, []).concat(n);
|
|
3799
3801
|
}, s5 = function(t, n) {
|
|
3800
3802
|
n = n || {};
|
|
3801
3803
|
var o;
|
|
3802
|
-
return n.getShadowRoot ? o =
|
|
3804
|
+
return n.getShadowRoot ? o = Xh([t], n.includeContainer, {
|
|
3803
3805
|
filter: j1.bind(null, n),
|
|
3804
3806
|
flatten: !1,
|
|
3805
3807
|
getShadowRoot: n.getShadowRoot,
|
|
3806
|
-
shadowRootFilter:
|
|
3807
|
-
}) : o =
|
|
3808
|
+
shadowRootFilter: hu
|
|
3809
|
+
}) : o = Kh(t, n.includeContainer, j1.bind(null, n)), uu(o);
|
|
3808
3810
|
};
|
|
3809
|
-
const
|
|
3810
|
-
function
|
|
3811
|
+
const du = r[/* @__PURE__ */ "useInsertionEffect".toString()], fu = du || ((e) => e());
|
|
3812
|
+
function mu(e) {
|
|
3811
3813
|
const t = r.useRef(() => {
|
|
3812
3814
|
if (process.env.NODE_ENV !== "production")
|
|
3813
3815
|
throw new Error("Cannot call an event handler while rendering.");
|
|
3814
3816
|
});
|
|
3815
|
-
return
|
|
3817
|
+
return fu(() => {
|
|
3816
3818
|
t.current = e;
|
|
3817
3819
|
}), r.useCallback(function() {
|
|
3818
3820
|
for (var n = arguments.length, o = new Array(n), a = 0; a < n; a++)
|
|
@@ -3831,9 +3833,9 @@ function h0() {
|
|
|
3831
3833
|
return e;
|
|
3832
3834
|
}, h0.apply(this, arguments);
|
|
3833
3835
|
}
|
|
3834
|
-
let A0 = !1,
|
|
3835
|
-
const Y1 = () => "floating-ui-" +
|
|
3836
|
-
function
|
|
3836
|
+
let A0 = !1, pu = 0;
|
|
3837
|
+
const Y1 = () => "floating-ui-" + pu++;
|
|
3838
|
+
function vu() {
|
|
3837
3839
|
const [e, t] = r.useState(() => A0 ? Y1() : void 0);
|
|
3838
3840
|
return me(() => {
|
|
3839
3841
|
e == null && t(Y1());
|
|
@@ -3841,7 +3843,7 @@ function fu() {
|
|
|
3841
3843
|
A0 || (A0 = !0);
|
|
3842
3844
|
}, []), e;
|
|
3843
3845
|
}
|
|
3844
|
-
const
|
|
3846
|
+
const gu = r[/* @__PURE__ */ "useId".toString()], w0 = gu || vu, wu = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
3845
3847
|
let {
|
|
3846
3848
|
context: {
|
|
3847
3849
|
placement: o,
|
|
@@ -3912,7 +3914,7 @@ const mu = r[/* @__PURE__ */ "useId".toString()], w0 = mu || fu, pu = /* @__PURE
|
|
|
3912
3914
|
height: s
|
|
3913
3915
|
})));
|
|
3914
3916
|
});
|
|
3915
|
-
function
|
|
3917
|
+
function Eu() {
|
|
3916
3918
|
const e = /* @__PURE__ */ new Map();
|
|
3917
3919
|
return {
|
|
3918
3920
|
emit(t, n) {
|
|
@@ -3928,10 +3930,10 @@ function vu() {
|
|
|
3928
3930
|
}
|
|
3929
3931
|
};
|
|
3930
3932
|
}
|
|
3931
|
-
const
|
|
3933
|
+
const bu = /* @__PURE__ */ r.createContext(null), yu = /* @__PURE__ */ r.createContext(null), f1 = () => {
|
|
3932
3934
|
var e;
|
|
3933
|
-
return ((e = r.useContext(
|
|
3934
|
-
}, h5 = () => r.useContext(
|
|
3935
|
+
return ((e = r.useContext(bu)) == null ? void 0 : e.id) || null;
|
|
3936
|
+
}, h5 = () => r.useContext(yu);
|
|
3935
3937
|
function E0(e) {
|
|
3936
3938
|
return "data-floating-ui-" + e;
|
|
3937
3939
|
}
|
|
@@ -3945,7 +3947,7 @@ const G1 = /* @__PURE__ */ E0("safe-polygon");
|
|
|
3945
3947
|
function T0(e, t, n) {
|
|
3946
3948
|
return n && !o5(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
3947
3949
|
}
|
|
3948
|
-
function
|
|
3950
|
+
function xu(e, t) {
|
|
3949
3951
|
t === void 0 && (t = {});
|
|
3950
3952
|
const {
|
|
3951
3953
|
open: n,
|
|
@@ -4119,22 +4121,22 @@ function d5(e, t) {
|
|
|
4119
4121
|
const o = n.indexOf(D0(Te(e)));
|
|
4120
4122
|
return n.slice(o + 1)[0];
|
|
4121
4123
|
}
|
|
4122
|
-
function
|
|
4124
|
+
function Su() {
|
|
4123
4125
|
return d5(document.body, "next");
|
|
4124
4126
|
}
|
|
4125
|
-
function
|
|
4127
|
+
function Cu() {
|
|
4126
4128
|
return d5(document.body, "prev");
|
|
4127
4129
|
}
|
|
4128
4130
|
function N0(e, t) {
|
|
4129
4131
|
const n = t || e.currentTarget, o = e.relatedTarget;
|
|
4130
4132
|
return !o || !l0(n, o);
|
|
4131
4133
|
}
|
|
4132
|
-
function
|
|
4134
|
+
function Mu(e) {
|
|
4133
4135
|
s5(e, u5()).forEach((n) => {
|
|
4134
4136
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
4135
4137
|
});
|
|
4136
4138
|
}
|
|
4137
|
-
function
|
|
4139
|
+
function Zu(e) {
|
|
4138
4140
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
4139
4141
|
const o = n.dataset.tabindex;
|
|
4140
4142
|
delete n.dataset.tabindex, o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
@@ -4153,9 +4155,9 @@ const f5 = {
|
|
|
4153
4155
|
top: 0,
|
|
4154
4156
|
left: 0
|
|
4155
4157
|
};
|
|
4156
|
-
let
|
|
4158
|
+
let Ru;
|
|
4157
4159
|
function K1(e) {
|
|
4158
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
4160
|
+
e.key === "Tab" && (e.target, clearTimeout(Ru));
|
|
4159
4161
|
}
|
|
4160
4162
|
const X1 = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
4161
4163
|
const [o, a] = r.useState();
|
|
@@ -4173,12 +4175,12 @@ const X1 = /* @__PURE__ */ r.forwardRef(function(t, n) {
|
|
|
4173
4175
|
};
|
|
4174
4176
|
return /* @__PURE__ */ r.createElement("span", h0({}, t, l));
|
|
4175
4177
|
}), m5 = /* @__PURE__ */ r.createContext(null);
|
|
4176
|
-
function
|
|
4178
|
+
function Iu(e) {
|
|
4177
4179
|
let {
|
|
4178
4180
|
id: t,
|
|
4179
4181
|
root: n
|
|
4180
4182
|
} = e === void 0 ? {} : e;
|
|
4181
|
-
const [o, a] = r.useState(null), l = w0(), s =
|
|
4183
|
+
const [o, a] = r.useState(null), l = w0(), s = Tu(), h = r.useMemo(() => ({
|
|
4182
4184
|
id: t,
|
|
4183
4185
|
root: n,
|
|
4184
4186
|
portalContext: s,
|
|
@@ -4209,14 +4211,14 @@ function Mu(e) {
|
|
|
4209
4211
|
}
|
|
4210
4212
|
}, [h]), o;
|
|
4211
4213
|
}
|
|
4212
|
-
function
|
|
4214
|
+
function Au(e) {
|
|
4213
4215
|
let {
|
|
4214
4216
|
children: t,
|
|
4215
4217
|
id: n,
|
|
4216
4218
|
root: o = null,
|
|
4217
4219
|
preserveTabOrder: a = !0
|
|
4218
4220
|
} = e;
|
|
4219
|
-
const l =
|
|
4221
|
+
const l = Iu({
|
|
4220
4222
|
id: n,
|
|
4221
4223
|
root: o
|
|
4222
4224
|
}), [s, h] = r.useState(null), d = r.useRef(null), u = r.useRef(null), f = r.useRef(null), m = r.useRef(null), g = (
|
|
@@ -4230,7 +4232,7 @@ function Zu(e) {
|
|
|
4230
4232
|
if (!l || !a || s != null && s.modal)
|
|
4231
4233
|
return;
|
|
4232
4234
|
function v(w) {
|
|
4233
|
-
l && N0(w) && (w.type === "focusin" ?
|
|
4235
|
+
l && N0(w) && (w.type === "focusin" ? Zu : Mu)(l);
|
|
4234
4236
|
}
|
|
4235
4237
|
return l.addEventListener("focusin", v, !0), l.addEventListener("focusout", v, !0), () => {
|
|
4236
4238
|
l.removeEventListener("focusin", v, !0), l.removeEventListener("focusout", v, !0);
|
|
@@ -4253,7 +4255,7 @@ function Zu(e) {
|
|
|
4253
4255
|
var w;
|
|
4254
4256
|
(w = f.current) == null || w.focus();
|
|
4255
4257
|
} else {
|
|
4256
|
-
const E =
|
|
4258
|
+
const E = Cu() || (s == null ? void 0 : s.refs.domReference.current);
|
|
4257
4259
|
E == null || E.focus();
|
|
4258
4260
|
}
|
|
4259
4261
|
}
|
|
@@ -4268,16 +4270,16 @@ function Zu(e) {
|
|
|
4268
4270
|
var w;
|
|
4269
4271
|
(w = m.current) == null || w.focus();
|
|
4270
4272
|
} else {
|
|
4271
|
-
const E =
|
|
4273
|
+
const E = Su() || (s == null ? void 0 : s.refs.domReference.current);
|
|
4272
4274
|
E == null || E.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, v.nativeEvent));
|
|
4273
4275
|
}
|
|
4274
4276
|
}
|
|
4275
4277
|
}));
|
|
4276
4278
|
}
|
|
4277
|
-
const
|
|
4279
|
+
const Tu = () => r.useContext(m5);
|
|
4278
4280
|
let U0;
|
|
4279
4281
|
process.env.NODE_ENV !== "production" && (U0 = /* @__PURE__ */ new Set());
|
|
4280
|
-
function
|
|
4282
|
+
function Nu(e) {
|
|
4281
4283
|
var t;
|
|
4282
4284
|
e === void 0 && (e = {});
|
|
4283
4285
|
const {
|
|
@@ -4296,14 +4298,14 @@ function Iu(e) {
|
|
|
4296
4298
|
}
|
|
4297
4299
|
}
|
|
4298
4300
|
}
|
|
4299
|
-
const [d, u] = r.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || d, m = vr(e), g = h5(), v = f1() != null, w =
|
|
4301
|
+
const [d, u] = r.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || d, m = vr(e), g = h5(), v = f1() != null, w = mu((L, $, k) => {
|
|
4300
4302
|
L && (S.current.openEvent = $), x.emit("openchange", {
|
|
4301
4303
|
open: L,
|
|
4302
4304
|
event: $,
|
|
4303
4305
|
reason: k,
|
|
4304
4306
|
nested: v
|
|
4305
4307
|
}), o == null || o(L, $, k);
|
|
4306
|
-
}), E = r.useRef(null), S = r.useRef({}), x = r.useState(() =>
|
|
4308
|
+
}), E = r.useRef(null), S = r.useRef({}), x = r.useState(() => Eu())[0], T = w0(), C = r.useCallback((L) => {
|
|
4307
4309
|
const $ = le(L) ? {
|
|
4308
4310
|
getBoundingClientRect: () => L.getBoundingClientRect(),
|
|
4309
4311
|
contextElement: L
|
|
@@ -4343,7 +4345,7 @@ function Iu(e) {
|
|
|
4343
4345
|
elements: R
|
|
4344
4346
|
}), [m, b, R, A]);
|
|
4345
4347
|
}
|
|
4346
|
-
function
|
|
4348
|
+
function Lu(e, t) {
|
|
4347
4349
|
t === void 0 && (t = {});
|
|
4348
4350
|
const {
|
|
4349
4351
|
open: n,
|
|
@@ -4388,7 +4390,7 @@ function Au(e, t) {
|
|
|
4388
4390
|
}, []), r.useMemo(() => d ? {
|
|
4389
4391
|
reference: {
|
|
4390
4392
|
onPointerDown(v) {
|
|
4391
|
-
|
|
4393
|
+
kh(v.nativeEvent) || (g.current = !1);
|
|
4392
4394
|
},
|
|
4393
4395
|
onMouseLeave() {
|
|
4394
4396
|
f.current = !1;
|
|
@@ -4396,15 +4398,15 @@ function Au(e, t) {
|
|
|
4396
4398
|
onFocus(v) {
|
|
4397
4399
|
if (f.current)
|
|
4398
4400
|
return;
|
|
4399
|
-
const w =
|
|
4401
|
+
const w = zh(v.nativeEvent);
|
|
4400
4402
|
if (u && le(w))
|
|
4401
4403
|
try {
|
|
4402
|
-
if (r5() &&
|
|
4404
|
+
if (r5() && Wh())
|
|
4403
4405
|
throw Error();
|
|
4404
4406
|
if (!w.matches(":focus-visible"))
|
|
4405
4407
|
return;
|
|
4406
4408
|
} catch {
|
|
4407
|
-
if (!g.current && !
|
|
4409
|
+
if (!g.current && !Yh(w))
|
|
4408
4410
|
return;
|
|
4409
4411
|
}
|
|
4410
4412
|
o(!0, v.nativeEvent, "focus");
|
|
@@ -4457,7 +4459,7 @@ function L0(e, t, n) {
|
|
|
4457
4459
|
}), s), {})
|
|
4458
4460
|
};
|
|
4459
4461
|
}
|
|
4460
|
-
function
|
|
4462
|
+
function Fu(e) {
|
|
4461
4463
|
e === void 0 && (e = []);
|
|
4462
4464
|
const t = e, n = r.useCallback(
|
|
4463
4465
|
(l) => L0(l, e, "reference"),
|
|
@@ -4482,8 +4484,8 @@ function Tu(e) {
|
|
|
4482
4484
|
getItemProps: a
|
|
4483
4485
|
}), [n, o, a]);
|
|
4484
4486
|
}
|
|
4485
|
-
const
|
|
4486
|
-
function
|
|
4487
|
+
const Bu = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
4488
|
+
function Hu(e, t) {
|
|
4487
4489
|
var n;
|
|
4488
4490
|
t === void 0 && (t = {});
|
|
4489
4491
|
const {
|
|
@@ -4492,7 +4494,7 @@ function Lu(e, t) {
|
|
|
4492
4494
|
} = e, {
|
|
4493
4495
|
enabled: l = !0,
|
|
4494
4496
|
role: s = "dialog"
|
|
4495
|
-
} = t, h = (n =
|
|
4497
|
+
} = t, h = (n = Bu.get(s)) != null ? n : s, d = w0(), f = f1() != null;
|
|
4496
4498
|
return r.useMemo(() => {
|
|
4497
4499
|
if (!l)
|
|
4498
4500
|
return {};
|
|
@@ -4564,7 +4566,7 @@ function Lu(e, t) {
|
|
|
4564
4566
|
};
|
|
4565
4567
|
}, [l, s, h, o, a, d, f]);
|
|
4566
4568
|
}
|
|
4567
|
-
function
|
|
4569
|
+
function Pu(e, t) {
|
|
4568
4570
|
const [n, o] = r.useState(e);
|
|
4569
4571
|
return e && !n && o(!0), r.useEffect(() => {
|
|
4570
4572
|
if (!e) {
|
|
@@ -4573,7 +4575,7 @@ function Fu(e, t) {
|
|
|
4573
4575
|
}
|
|
4574
4576
|
}, [e, t]), n;
|
|
4575
4577
|
}
|
|
4576
|
-
function
|
|
4578
|
+
function Vu(e, t) {
|
|
4577
4579
|
t === void 0 && (t = {});
|
|
4578
4580
|
const {
|
|
4579
4581
|
open: n,
|
|
@@ -4582,7 +4584,7 @@ function Bu(e, t) {
|
|
|
4582
4584
|
}
|
|
4583
4585
|
} = e, {
|
|
4584
4586
|
duration: a = 250
|
|
4585
|
-
} = t, s = (typeof a == "number" ? a : a.close) || 0, [h, d] = r.useState(!1), [u, f] = r.useState("unmounted"), m =
|
|
4587
|
+
} = t, s = (typeof a == "number" ? a : a.close) || 0, [h, d] = r.useState(!1), [u, f] = r.useState("unmounted"), m = Pu(n, s);
|
|
4586
4588
|
return me(() => {
|
|
4587
4589
|
h && !m && f("unmounted");
|
|
4588
4590
|
}, [h, m]), me(() => {
|
|
@@ -4609,9 +4611,9 @@ function et(e) {
|
|
|
4609
4611
|
});
|
|
4610
4612
|
};
|
|
4611
4613
|
}
|
|
4612
|
-
const
|
|
4614
|
+
const Ou = 50, $u = 200;
|
|
4613
4615
|
const m1 = c((e, t) => {
|
|
4614
|
-
const { children: n, className: o, title: a, placement: l = "top", disablePortal: s = !1, portalRoot: h, ...d } = e, u = a1(null), [f, m] = u0(!1), { refs: g, floatingStyles: v, context: w } =
|
|
4616
|
+
const { children: n, className: o, title: a, placement: l = "top", disablePortal: s = !1, portalRoot: h, ...d } = e, u = a1(null), [f, m] = u0(!1), { refs: g, floatingStyles: v, context: w } = Nu({
|
|
4615
4617
|
whileElementsMounted: fr,
|
|
4616
4618
|
placement: l,
|
|
4617
4619
|
open: f,
|
|
@@ -4622,7 +4624,7 @@ const m1 = c((e, t) => {
|
|
|
4622
4624
|
Kn(),
|
|
4623
4625
|
pr({ element: u })
|
|
4624
4626
|
]
|
|
4625
|
-
}), E =
|
|
4627
|
+
}), E = xu(w, { delay: { open: Ou, close: $u } }), S = Lu(w), x = Hu(w, { role: "tooltip" }), { isMounted: T, status: C } = Vu(w), { getReferenceProps: M, getFloatingProps: b } = Fu([
|
|
4626
4628
|
x,
|
|
4627
4629
|
E,
|
|
4628
4630
|
S
|
|
@@ -4645,17 +4647,17 @@ const m1 = c((e, t) => {
|
|
|
4645
4647
|
className: oe("rbui-tooltip", o),
|
|
4646
4648
|
children: T && /* @__PURE__ */ re("div", { className: oe("rbui-tooltip__inner", `rbui-tooltip__inner--${C}`), children: [
|
|
4647
4649
|
a,
|
|
4648
|
-
/* @__PURE__ */ i(
|
|
4650
|
+
/* @__PURE__ */ i(wu, { ref: u, context: w, className: "rbui-tooltip__arrow" })
|
|
4649
4651
|
] })
|
|
4650
4652
|
}
|
|
4651
4653
|
);
|
|
4652
4654
|
return /* @__PURE__ */ re(t1, { children: [
|
|
4653
4655
|
L,
|
|
4654
|
-
f && (s ? $ : /* @__PURE__ */ i(
|
|
4656
|
+
f && (s ? $ : /* @__PURE__ */ i(Au, { id: typeof h == "string" ? h : void 0, root: typeof h != "string" ? h : void 0, children: $ }))
|
|
4655
4657
|
] });
|
|
4656
4658
|
});
|
|
4657
4659
|
m1.displayName = "Tooltip";
|
|
4658
|
-
const
|
|
4660
|
+
const _u = ({ type: e, color: t, active: n, disabled: o, loading: a, hasIcons: l }) => e === "primary" && (t === "default" || t === "alternative") ? [
|
|
4659
4661
|
"rbui-button-primary",
|
|
4660
4662
|
...n ? ["rbui-button-primary--active"] : [],
|
|
4661
4663
|
...o ? ["rbui-button-primary--disabled"] : [],
|
|
@@ -4724,7 +4726,7 @@ const Vu = ({ type: e, color: t, active: n, disabled: o, loading: a, hasIcons: l
|
|
|
4724
4726
|
"rbui-button--disabled": l,
|
|
4725
4727
|
"rbui-button--icon-only": b && !(d && u),
|
|
4726
4728
|
"rbui-button--loading": d
|
|
4727
|
-
},
|
|
4729
|
+
}, _u({ type: v, color: a, active: S, disabled: l, loading: d, hasIcons: M })), A = oe("rbui-button__loader", {
|
|
4728
4730
|
"rbui-button__loader--short": u || b
|
|
4729
4731
|
});
|
|
4730
4732
|
return /* @__PURE__ */ i(m1, { title: g, children: /* @__PURE__ */ re("button", { ...C, className: R, children: [
|
|
@@ -4736,9 +4738,9 @@ const Vu = ({ type: e, color: t, active: n, disabled: o, loading: a, hasIcons: l
|
|
|
4736
4738
|
] }) });
|
|
4737
4739
|
});
|
|
4738
4740
|
ye.displayName = "Button";
|
|
4739
|
-
const
|
|
4741
|
+
const Du = (e) => e === "primary" ? "rbui-button-group--primary" : e === "tertiary" ? "rbui-button-group--tertiary" : "rbui-button-group--secondary", ku = (e, t) => e && t ? "" : e ? "rbui-button-group__button--first" : t ? "rbui-button-group__button--last" : "rbui-button-group__button--middle", p5 = c((e, t) => {
|
|
4740
4742
|
var u;
|
|
4741
|
-
const { children: n, className: o, disabled: a, type: l = "secondary", ...s } = e, h = oe(o, "rbui-button-group",
|
|
4743
|
+
const { children: n, className: o, disabled: a, type: l = "secondary", ...s } = e, h = oe(o, "rbui-button-group", Du(l), {
|
|
4742
4744
|
"rbui-button-group--disabled": a
|
|
4743
4745
|
}), d = B0.count(n);
|
|
4744
4746
|
return /* @__PURE__ */ i("div", { role: "group", className: h, "aria-disabled": a, ref: t, ...s, children: (u = B0.map(n, (f, m) => {
|
|
@@ -4747,7 +4749,7 @@ const Ou = (e) => e === "primary" ? "rbui-button-group--primary" : e === "tertia
|
|
|
4747
4749
|
const g = m === 0, v = m === d - 1, w = f.props.disabled ?? a, E = oe(
|
|
4748
4750
|
"rbui-button-group__button",
|
|
4749
4751
|
{ "rbui-button-group__button--disabled": w },
|
|
4750
|
-
|
|
4752
|
+
ku(g, v),
|
|
4751
4753
|
f.props.className
|
|
4752
4754
|
);
|
|
4753
4755
|
return o1(f, {
|
|
@@ -4759,7 +4761,7 @@ const Ou = (e) => e === "primary" ? "rbui-button-group--primary" : e === "tertia
|
|
|
4759
4761
|
})) == null ? void 0 : u.filter(Boolean) });
|
|
4760
4762
|
});
|
|
4761
4763
|
p5.displayName = "ButtonGroup";
|
|
4762
|
-
function
|
|
4764
|
+
function Uu(e, t) {
|
|
4763
4765
|
const {
|
|
4764
4766
|
children: n,
|
|
4765
4767
|
className: o,
|
|
@@ -4789,12 +4791,12 @@ function _u(e, t) {
|
|
|
4789
4791
|
}
|
|
4790
4792
|
);
|
|
4791
4793
|
}
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
+
const Wu = c(Uu);
|
|
4795
|
+
Wu.displayName = "ToggleButton";
|
|
4794
4796
|
function tt(e, t) {
|
|
4795
4797
|
return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.indexOf(e) >= 0 : e === t;
|
|
4796
4798
|
}
|
|
4797
|
-
function
|
|
4799
|
+
function zu(e, t) {
|
|
4798
4800
|
const { children: n, className: o, disabled: a, onChange: l, value: s, multiple: h = !1 } = e, d = (g, v) => {
|
|
4799
4801
|
tt(v, s) || l == null || l(g, v);
|
|
4800
4802
|
}, u = (g, v) => {
|
|
@@ -4809,15 +4811,15 @@ function ku(e, t) {
|
|
|
4809
4811
|
}) : g);
|
|
4810
4812
|
return /* @__PURE__ */ i(p5, { className: f, ref: t, ...e, children: m });
|
|
4811
4813
|
}
|
|
4812
|
-
const
|
|
4813
|
-
|
|
4814
|
-
const
|
|
4814
|
+
const ju = c(zu);
|
|
4815
|
+
ju.displayName = "ToggleButtonGroup";
|
|
4816
|
+
const Yu = {
|
|
4815
4817
|
error: (e) => /* @__PURE__ */ i(Kt, { ...e }),
|
|
4816
4818
|
info: (e) => /* @__PURE__ */ i(Xt, { ...e }),
|
|
4817
4819
|
success: (e) => /* @__PURE__ */ i(Wt, { ...e }),
|
|
4818
4820
|
warning: (e) => /* @__PURE__ */ i(t5, { ...e })
|
|
4819
4821
|
};
|
|
4820
|
-
function
|
|
4822
|
+
function _d(e) {
|
|
4821
4823
|
const {
|
|
4822
4824
|
actions: t,
|
|
4823
4825
|
children: n,
|
|
@@ -4828,7 +4830,7 @@ function Vd(e) {
|
|
|
4828
4830
|
type: h = "info"
|
|
4829
4831
|
} = e;
|
|
4830
4832
|
return /* @__PURE__ */ re("div", { className: oe(`rbui-alert rbui-alert--${h}`, o), role: s, children: [
|
|
4831
|
-
a !== !1 ? /* @__PURE__ */ i("div", { className: `rbui-alert__icon rbui-alert__icon--${h}`, children: a ||
|
|
4833
|
+
a !== !1 ? /* @__PURE__ */ i("div", { className: `rbui-alert__icon rbui-alert__icon--${h}`, children: a || Yu[h]() }) : null,
|
|
4832
4834
|
/* @__PURE__ */ re("div", { className: "rbui-alert__content", children: [
|
|
4833
4835
|
n,
|
|
4834
4836
|
t ? /* @__PURE__ */ i("div", { className: "rbui-alert__actions", children: t }) : null
|
|
@@ -4845,7 +4847,7 @@ function Vd(e) {
|
|
|
4845
4847
|
) : null
|
|
4846
4848
|
] });
|
|
4847
4849
|
}
|
|
4848
|
-
function
|
|
4850
|
+
function Dd(e) {
|
|
4849
4851
|
const { children: t, className: n } = e;
|
|
4850
4852
|
return /* @__PURE__ */ i("div", { className: oe("rbui-alert-title", n), children: t });
|
|
4851
4853
|
}
|
|
@@ -4853,7 +4855,7 @@ const v5 = pt(null);
|
|
|
4853
4855
|
function g5() {
|
|
4854
4856
|
return vt(v5);
|
|
4855
4857
|
}
|
|
4856
|
-
const
|
|
4858
|
+
const qu = c((e, t) => {
|
|
4857
4859
|
const { open: n, className: o, ...a } = e;
|
|
4858
4860
|
return /* @__PURE__ */ i(
|
|
4859
4861
|
"div",
|
|
@@ -4863,7 +4865,7 @@ const zu = c((e, t) => {
|
|
|
4863
4865
|
...a
|
|
4864
4866
|
}
|
|
4865
4867
|
);
|
|
4866
|
-
}),
|
|
4868
|
+
}), Gu = c((e, t) => {
|
|
4867
4869
|
const {
|
|
4868
4870
|
open: n,
|
|
4869
4871
|
children: o,
|
|
@@ -4884,13 +4886,13 @@ const zu = c((e, t) => {
|
|
|
4884
4886
|
className: oe("rbui-modal", s),
|
|
4885
4887
|
open: n,
|
|
4886
4888
|
onClose: u,
|
|
4887
|
-
slots: { backdrop: vn(
|
|
4889
|
+
slots: { backdrop: vn(qu) },
|
|
4888
4890
|
...d,
|
|
4889
4891
|
children: /* @__PURE__ */ i("div", { className: oe("rbui-modal__wrapper", `rbui-modal__wrapper--${a}`), children: o })
|
|
4890
4892
|
}
|
|
4891
4893
|
) });
|
|
4892
4894
|
});
|
|
4893
|
-
|
|
4895
|
+
Gu.displayName = "Modal";
|
|
4894
4896
|
function w5(e) {
|
|
4895
4897
|
const {
|
|
4896
4898
|
className: t,
|
|
@@ -4905,7 +4907,7 @@ function w5(e) {
|
|
|
4905
4907
|
}, className: t, children: n });
|
|
4906
4908
|
}
|
|
4907
4909
|
w5.displayName = "ModalCloseButton";
|
|
4908
|
-
const
|
|
4910
|
+
const Ku = c((e, t) => {
|
|
4909
4911
|
const {
|
|
4910
4912
|
children: n,
|
|
4911
4913
|
className: o,
|
|
@@ -4919,8 +4921,8 @@ const Yu = c((e, t) => {
|
|
|
4919
4921
|
s && /* @__PURE__ */ i(w5, { className: "rbui-modal__header-close", startIcon: /* @__PURE__ */ i(d1, {}) })
|
|
4920
4922
|
] });
|
|
4921
4923
|
});
|
|
4922
|
-
|
|
4923
|
-
const
|
|
4924
|
+
Ku.displayName = "ModalHeader";
|
|
4925
|
+
const Xu = c((e, t) => {
|
|
4924
4926
|
const {
|
|
4925
4927
|
className: n,
|
|
4926
4928
|
children: o,
|
|
@@ -4928,8 +4930,8 @@ const qu = c((e, t) => {
|
|
|
4928
4930
|
} = e;
|
|
4929
4931
|
return /* @__PURE__ */ i("div", { ...a, ref: t, className: oe("rbui-modal__header-title", n), children: o });
|
|
4930
4932
|
});
|
|
4931
|
-
|
|
4932
|
-
const
|
|
4933
|
+
Xu.displayName = "ModalHeaderTitle";
|
|
4934
|
+
const Qu = c((e, t) => {
|
|
4933
4935
|
const {
|
|
4934
4936
|
children: n,
|
|
4935
4937
|
padding: o = "narrow",
|
|
@@ -4938,8 +4940,8 @@ const Gu = c((e, t) => {
|
|
|
4938
4940
|
} = e;
|
|
4939
4941
|
return /* @__PURE__ */ i("div", { ...l, ref: t, className: oe("rbui-modal__body", `rbui-modal__body--${o}`, a), children: n });
|
|
4940
4942
|
});
|
|
4941
|
-
|
|
4942
|
-
const
|
|
4943
|
+
Qu.displayName = "ModalBody";
|
|
4944
|
+
const Ju = c((e, t) => {
|
|
4943
4945
|
const {
|
|
4944
4946
|
children: n,
|
|
4945
4947
|
className: o,
|
|
@@ -4947,8 +4949,8 @@ const Ku = c((e, t) => {
|
|
|
4947
4949
|
} = e;
|
|
4948
4950
|
return /* @__PURE__ */ i("div", { ...a, ref: t, className: oe("rbui-modal__footer", o), children: n });
|
|
4949
4951
|
});
|
|
4950
|
-
|
|
4951
|
-
const
|
|
4952
|
+
Ju.displayName = "ModalFooter";
|
|
4953
|
+
const ed = c((e, t) => {
|
|
4952
4954
|
const {
|
|
4953
4955
|
className: n,
|
|
4954
4956
|
children: o,
|
|
@@ -4956,7 +4958,7 @@ const Xu = c((e, t) => {
|
|
|
4956
4958
|
} = e;
|
|
4957
4959
|
return /* @__PURE__ */ i("div", { ...a, ref: t, className: oe("rbui-modal__footer--actions", n), children: o });
|
|
4958
4960
|
});
|
|
4959
|
-
|
|
4961
|
+
ed.displayName = "ModalFooterActions";
|
|
4960
4962
|
const nt = () => /* @__PURE__ */ i("span", { children: " " }), E5 = c((e, t) => {
|
|
4961
4963
|
const { className: n, control: o, controlId: a, error: l, fullWidth: s, helperText: h, label: d, metadata: u, tooltip: f, ...m } = e;
|
|
4962
4964
|
return /* @__PURE__ */ re(
|
|
@@ -4982,7 +4984,7 @@ const nt = () => /* @__PURE__ */ i("span", { children: " " }), E5 = c((e, t) =>
|
|
|
4982
4984
|
}
|
|
4983
4985
|
);
|
|
4984
4986
|
});
|
|
4985
|
-
function
|
|
4987
|
+
function td({
|
|
4986
4988
|
onEnter: e,
|
|
4987
4989
|
onLeave: t
|
|
4988
4990
|
} = {}) {
|
|
@@ -4999,13 +5001,13 @@ function Qu({
|
|
|
4999
5001
|
}
|
|
5000
5002
|
};
|
|
5001
5003
|
}
|
|
5002
|
-
function
|
|
5004
|
+
function nd(e, t) {
|
|
5003
5005
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
5004
5006
|
}
|
|
5005
|
-
function
|
|
5007
|
+
function rd(...e) {
|
|
5006
5008
|
return ft.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
5007
5009
|
e.forEach((n) => {
|
|
5008
|
-
|
|
5010
|
+
nd(n, t);
|
|
5009
5011
|
});
|
|
5010
5012
|
}, e);
|
|
5011
5013
|
}
|
|
@@ -5031,13 +5033,13 @@ const p1 = c((e, t) => {
|
|
|
5031
5033
|
rightElement: C,
|
|
5032
5034
|
value: M,
|
|
5033
5035
|
...b
|
|
5034
|
-
} = e, R = M == null, A = a1(null), L =
|
|
5036
|
+
} = e, R = M == null, A = a1(null), L = rd(A, t), [$, k] = u0(R ? l : ""), D = R ? $ : M;
|
|
5035
5037
|
n1(() => {
|
|
5036
5038
|
E == null || E((D == null ? void 0 : D.length) ?? 0);
|
|
5037
5039
|
}, [D, E]);
|
|
5038
5040
|
const B = (W) => {
|
|
5039
5041
|
k(W.target.value), w == null || w(W);
|
|
5040
|
-
}, { hovered: _, handlers: O } =
|
|
5042
|
+
}, { hovered: _, handlers: O } = td(), { getInputProps: Z, getRootProps: y, focused: I } = Mn({
|
|
5041
5043
|
defaultValue: l,
|
|
5042
5044
|
disabled: s,
|
|
5043
5045
|
error: h,
|
|
@@ -5096,7 +5098,7 @@ const p1 = c((e, t) => {
|
|
|
5096
5098
|
] });
|
|
5097
5099
|
});
|
|
5098
5100
|
p1.displayName = "BaseInput";
|
|
5099
|
-
const b5 = (e) => `${e}-${Math.round(Math.random() * 1e3)}`,
|
|
5101
|
+
const b5 = (e) => `${e}-${Math.round(Math.random() * 1e3)}`, od = c((e, t) => {
|
|
5100
5102
|
const {
|
|
5101
5103
|
className: n,
|
|
5102
5104
|
clearable: o,
|
|
@@ -5157,8 +5159,8 @@ const b5 = (e) => `${e}-${Math.round(Math.random() * 1e3)}`, td = c((e, t) => {
|
|
|
5157
5159
|
}
|
|
5158
5160
|
);
|
|
5159
5161
|
});
|
|
5160
|
-
|
|
5161
|
-
const
|
|
5162
|
+
od.displayName = "InputField";
|
|
5163
|
+
const ad = c((e, t) => {
|
|
5162
5164
|
const {
|
|
5163
5165
|
autoSize: n,
|
|
5164
5166
|
className: o,
|
|
@@ -5230,14 +5232,14 @@ const nd = c((e, t) => {
|
|
|
5230
5232
|
}
|
|
5231
5233
|
);
|
|
5232
5234
|
});
|
|
5233
|
-
|
|
5235
|
+
ad.displayName = "TextField";
|
|
5234
5236
|
const y5 = pt(null);
|
|
5235
5237
|
function b0() {
|
|
5236
5238
|
return vt(y5);
|
|
5237
5239
|
}
|
|
5238
|
-
const
|
|
5240
|
+
const id = [10, 20, 50], xe = 9, pe = 2, ld = () => {
|
|
5239
5241
|
};
|
|
5240
|
-
function
|
|
5242
|
+
function cd(e) {
|
|
5241
5243
|
return new Promise((t) => {
|
|
5242
5244
|
setTimeout(t, e);
|
|
5243
5245
|
});
|
|
@@ -5247,7 +5249,7 @@ process.env.NODE_ENV === "production" ? (F0.createRoot, F0.hydrateRoot) : F0.__S
|
|
|
5247
5249
|
function ie(...e) {
|
|
5248
5250
|
return e.filter(Boolean).join(" ").trim();
|
|
5249
5251
|
}
|
|
5250
|
-
function
|
|
5252
|
+
function sd(e, t) {
|
|
5251
5253
|
if (!e)
|
|
5252
5254
|
return {
|
|
5253
5255
|
x: 0,
|
|
@@ -5283,13 +5285,13 @@ function ot(e) {
|
|
|
5283
5285
|
`
|
|
5284
5286
|
), document.body.lastChild !== t && document.body.appendChild(t), t.id = e || rt), t;
|
|
5285
5287
|
}
|
|
5286
|
-
function
|
|
5288
|
+
function hd(e) {
|
|
5287
5289
|
return e && e.charCodeAt !== void 0;
|
|
5288
5290
|
}
|
|
5289
5291
|
function Be(e) {
|
|
5290
5292
|
return e !== void 0 && e.toExponential;
|
|
5291
5293
|
}
|
|
5292
|
-
function
|
|
5294
|
+
function ud(e, t) {
|
|
5293
5295
|
let n = e;
|
|
5294
5296
|
for (; n && !n.classList.contains(t); )
|
|
5295
5297
|
n = n.parentElement;
|
|
@@ -5331,7 +5333,7 @@ document.implementation.hasFeature("", "") !== !0);
|
|
|
5331
5333
|
* @internal
|
|
5332
5334
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
5333
5335
|
*/
|
|
5334
|
-
function
|
|
5336
|
+
function dd(e, t) {
|
|
5335
5337
|
if (!x5.canUseDOM || t && !("addEventListener" in document))
|
|
5336
5338
|
return !1;
|
|
5337
5339
|
var n = "on" + e, o = n in document;
|
|
@@ -5493,9 +5495,9 @@ function v1(e) {
|
|
|
5493
5495
|
};
|
|
5494
5496
|
}
|
|
5495
5497
|
v1.getEventType = function() {
|
|
5496
|
-
return Q0.firefox() ? "DOMMouseScroll" :
|
|
5498
|
+
return Q0.firefox() ? "DOMMouseScroll" : dd("wheel") ? "wheel" : "mousewheel";
|
|
5497
5499
|
};
|
|
5498
|
-
function
|
|
5500
|
+
function fd(e, t, n) {
|
|
5499
5501
|
return {
|
|
5500
5502
|
onMouseOver: (o) => {
|
|
5501
5503
|
e.setState({ hovered: !0 }), t == null || t(o);
|
|
@@ -5509,7 +5511,7 @@ function hd(e, t, n) {
|
|
|
5509
5511
|
}
|
|
5510
5512
|
};
|
|
5511
5513
|
}
|
|
5512
|
-
function
|
|
5514
|
+
function md(e) {
|
|
5513
5515
|
return {
|
|
5514
5516
|
onFocus: () => e.setState({ focused: !0 }),
|
|
5515
5517
|
onBlur: () => e.setState({ focused: !1 })
|
|
@@ -5533,7 +5535,7 @@ function q(e, t, n) {
|
|
|
5533
5535
|
if (n)
|
|
5534
5536
|
return st(n) ? n() : n;
|
|
5535
5537
|
}
|
|
5536
|
-
const
|
|
5538
|
+
const pd = "__tooltip__", vd = "__dropdown__";
|
|
5537
5539
|
let Ge = null;
|
|
5538
5540
|
const Ae = [];
|
|
5539
5541
|
class ht extends r.Component {
|
|
@@ -5567,7 +5569,7 @@ class ht extends r.Component {
|
|
|
5567
5569
|
}
|
|
5568
5570
|
componentDidMount() {
|
|
5569
5571
|
const { customModalRoot: n } = this.props;
|
|
5570
|
-
document.addEventListener("mousedown", this.handleDocumentDown), n || (Ge = ot(this.modalId)), ot(
|
|
5572
|
+
document.addEventListener("mousedown", this.handleDocumentDown), n || (Ge = ot(this.modalId)), ot(pd), !Ge && !n && console.warn(
|
|
5571
5573
|
"Could not establish the modal root for the document to display Menus and modals"
|
|
5572
5574
|
), this.isOpen && this.addQueueId(), this.componentDidUpdate();
|
|
5573
5575
|
}
|
|
@@ -5592,7 +5594,7 @@ class ht extends r.Component {
|
|
|
5592
5594
|
}
|
|
5593
5595
|
get modalId() {
|
|
5594
5596
|
const { customModalRootId: n } = this.props;
|
|
5595
|
-
return n ||
|
|
5597
|
+
return n || vd;
|
|
5596
5598
|
}
|
|
5597
5599
|
// eslint-disable-next-line class-methods-use-this
|
|
5598
5600
|
get topQueuedItem() {
|
|
@@ -5681,20 +5683,20 @@ class ht extends r.Component {
|
|
|
5681
5683
|
return w ? this.renderContent() : null;
|
|
5682
5684
|
}
|
|
5683
5685
|
}
|
|
5684
|
-
const { min:
|
|
5685
|
-
function
|
|
5686
|
-
return
|
|
5686
|
+
const { min: gd, max: wd } = Math;
|
|
5687
|
+
function Ed(e, t, n) {
|
|
5688
|
+
return gd(wd(e, t), n);
|
|
5687
5689
|
}
|
|
5688
5690
|
function ut(e, t, n) {
|
|
5689
|
-
n =
|
|
5691
|
+
n = Ed(n, 0, 1);
|
|
5690
5692
|
const o = n < 0.5 ? 4 * n * n * n : (n - 1) * (2 * n - 2) * (2 * n - 2) + 1;
|
|
5691
5693
|
return (t - e) * o + e;
|
|
5692
5694
|
}
|
|
5693
|
-
const
|
|
5695
|
+
const bd = {
|
|
5694
5696
|
LIGHT: "ScrollRegion--light",
|
|
5695
5697
|
DARK: "ScrollRegion--dark"
|
|
5696
5698
|
};
|
|
5697
|
-
class
|
|
5699
|
+
class yd extends r.Component {
|
|
5698
5700
|
constructor() {
|
|
5699
5701
|
super(...arguments);
|
|
5700
5702
|
F(this, "state", {
|
|
@@ -5734,7 +5736,7 @@ class wd extends r.Component {
|
|
|
5734
5736
|
const n = this.wrapper.current;
|
|
5735
5737
|
if (!n)
|
|
5736
5738
|
return;
|
|
5737
|
-
await
|
|
5739
|
+
await cd(1);
|
|
5738
5740
|
const o = Array.from(n.children);
|
|
5739
5741
|
let a = -1;
|
|
5740
5742
|
o.forEach((l) => {
|
|
@@ -6092,7 +6094,7 @@ class wd extends r.Component {
|
|
|
6092
6094
|
children: m,
|
|
6093
6095
|
scrollHeight: g,
|
|
6094
6096
|
alwaysShowScroll: v,
|
|
6095
|
-
mode: w =
|
|
6097
|
+
mode: w = bd.DARK
|
|
6096
6098
|
} = this.props, E = [
|
|
6097
6099
|
((C = (T = this.content) == null ? void 0 : T.current) == null ? void 0 : C.scrollLeft) || 0,
|
|
6098
6100
|
((b = (M = this.content) == null ? void 0 : M.current) == null ? void 0 : b.scrollTop) || 0
|
|
@@ -6202,20 +6204,20 @@ class wd extends r.Component {
|
|
|
6202
6204
|
);
|
|
6203
6205
|
}
|
|
6204
6206
|
}
|
|
6205
|
-
const { min:
|
|
6206
|
-
function
|
|
6207
|
-
return
|
|
6207
|
+
const { min: xd, max: Sd } = Math;
|
|
6208
|
+
function Cd(e, t, n) {
|
|
6209
|
+
return xd(Sd(e, t), n);
|
|
6208
6210
|
}
|
|
6209
|
-
function
|
|
6210
|
-
n =
|
|
6211
|
+
function Md(e, t, n) {
|
|
6212
|
+
n = Cd(n, 0, 1);
|
|
6211
6213
|
const o = n < 0.5 ? 4 * n * n * n : (n - 1) * (2 * n - 2) * (2 * n - 2) + 1;
|
|
6212
6214
|
return (t - e) * o + e;
|
|
6213
6215
|
}
|
|
6214
|
-
const
|
|
6216
|
+
const Zd = {
|
|
6215
6217
|
LIGHT: "ScrollView--light",
|
|
6216
6218
|
DARK: "ScrollView--dark"
|
|
6217
6219
|
};
|
|
6218
|
-
class
|
|
6220
|
+
class Rd extends r.Component {
|
|
6219
6221
|
constructor() {
|
|
6220
6222
|
super(...arguments);
|
|
6221
6223
|
F(this, "state", {
|
|
@@ -6266,7 +6268,7 @@ class Cd extends r.Component {
|
|
|
6266
6268
|
if (!this.container.current)
|
|
6267
6269
|
return;
|
|
6268
6270
|
a || (a = h);
|
|
6269
|
-
const g = (h - a) / l, v =
|
|
6271
|
+
const g = (h - a) / l, v = Md(n, o, g);
|
|
6270
6272
|
d ? this.container.current.scrollLeft = Math.max(
|
|
6271
6273
|
Math.min(v || 0, m.scrollSpace),
|
|
6272
6274
|
0
|
|
@@ -6589,7 +6591,7 @@ class Cd extends r.Component {
|
|
|
6589
6591
|
side: g = 0,
|
|
6590
6592
|
horizontal: v,
|
|
6591
6593
|
alwaysShowScroll: w,
|
|
6592
|
-
mode: E =
|
|
6594
|
+
mode: E = Zd.DARK
|
|
6593
6595
|
} = this.props;
|
|
6594
6596
|
let S = l;
|
|
6595
6597
|
const x = this.getScrollMetrics();
|
|
@@ -6685,7 +6687,7 @@ class Cd extends r.Component {
|
|
|
6685
6687
|
);
|
|
6686
6688
|
}
|
|
6687
6689
|
}
|
|
6688
|
-
class
|
|
6690
|
+
class Id extends r.Component {
|
|
6689
6691
|
constructor(n) {
|
|
6690
6692
|
super(n);
|
|
6691
6693
|
F(this, "state", {
|
|
@@ -6885,7 +6887,7 @@ class Md extends r.Component {
|
|
|
6885
6887
|
emptyLabel: f
|
|
6886
6888
|
} = this.props;
|
|
6887
6889
|
return s <= 0 ? /* @__PURE__ */ i("div", { className: ie("ListView", "ListView--empty", a), children: /* @__PURE__ */ i("div", { className: "ListView__Empty", children: f }) }) : u ? /* @__PURE__ */ i(
|
|
6888
|
-
|
|
6890
|
+
yd,
|
|
6889
6891
|
{
|
|
6890
6892
|
ref: this.container,
|
|
6891
6893
|
allowTouchInertia: n,
|
|
@@ -6900,7 +6902,7 @@ class Md extends r.Component {
|
|
|
6900
6902
|
children: this.renderListItems(o)
|
|
6901
6903
|
}
|
|
6902
6904
|
) : /* @__PURE__ */ i(
|
|
6903
|
-
|
|
6905
|
+
Rd,
|
|
6904
6906
|
{
|
|
6905
6907
|
ref: this.container,
|
|
6906
6908
|
allowTouchInertia: n,
|
|
@@ -6962,7 +6964,7 @@ const He = {
|
|
|
6962
6964
|
*/
|
|
6963
6965
|
DISABLED: "Selection--disabled"
|
|
6964
6966
|
};
|
|
6965
|
-
class
|
|
6967
|
+
class Ad extends r.Component {
|
|
6966
6968
|
constructor() {
|
|
6967
6969
|
super(...arguments);
|
|
6968
6970
|
F(this, "state", {
|
|
@@ -6985,7 +6987,7 @@ class Zd extends r.Component {
|
|
|
6985
6987
|
F(this, "handleClick", (n) => {
|
|
6986
6988
|
var s, h;
|
|
6987
6989
|
const { disabled: o } = this.props, { dropdownBounds: a } = this.state;
|
|
6988
|
-
this.windowBlurred = !1, !(o || !
|
|
6990
|
+
this.windowBlurred = !1, !(o || !ud(
|
|
6989
6991
|
n.target,
|
|
6990
6992
|
"Selection__Content"
|
|
6991
6993
|
)) && (document.activeElement !== this.selectRef.current ? (this.stopBlur = !0, setTimeout(() => {
|
|
@@ -6996,7 +6998,7 @@ class Zd extends r.Component {
|
|
|
6996
6998
|
const { disabled: n, dropdownPadding: o, onOpen: a } = this.props;
|
|
6997
6999
|
if (!this.headerRef.current || n)
|
|
6998
7000
|
return;
|
|
6999
|
-
const l =
|
|
7001
|
+
const l = sd(
|
|
7000
7002
|
this.headerRef.current.getBoundingClientRect(),
|
|
7001
7003
|
{
|
|
7002
7004
|
bottom: 5,
|
|
@@ -7099,7 +7101,7 @@ class Zd extends r.Component {
|
|
|
7099
7101
|
*/
|
|
7100
7102
|
get options() {
|
|
7101
7103
|
const { searchValue: n } = this.state, { options: o } = this.props, a = n == null ? void 0 : n.toLocaleLowerCase();
|
|
7102
|
-
return a ? o.filter((l) => l.search ? l.search.toLocaleLowerCase().indexOf(a) > -1 :
|
|
7104
|
+
return a ? o.filter((l) => l.search ? l.search.toLocaleLowerCase().indexOf(a) > -1 : hd(l.label) ? l.label.toLocaleLowerCase().indexOf(a) > -1 : !1) : o;
|
|
7103
7105
|
}
|
|
7104
7106
|
renderHeader() {
|
|
7105
7107
|
const {
|
|
@@ -7132,8 +7134,8 @@ class Zd extends r.Component {
|
|
|
7132
7134
|
q(a, He.DISABLED)
|
|
7133
7135
|
),
|
|
7134
7136
|
ref: this.headerRef,
|
|
7135
|
-
...
|
|
7136
|
-
...
|
|
7137
|
+
...fd(this),
|
|
7138
|
+
...md(this),
|
|
7137
7139
|
onMouseDown: this.handleMouseDown,
|
|
7138
7140
|
onClick: this.handleClick,
|
|
7139
7141
|
children: [
|
|
@@ -7219,7 +7221,7 @@ class Zd extends r.Component {
|
|
|
7219
7221
|
h,
|
|
7220
7222
|
/* @__PURE__ */ i("div", { className: "Selection__LoaderContainer", children: /* @__PURE__ */ i(dt, { size: J0.SMALL }) }),
|
|
7221
7223
|
/* @__PURE__ */ i(
|
|
7222
|
-
|
|
7224
|
+
Id,
|
|
7223
7225
|
{
|
|
7224
7226
|
className: "Selection__List",
|
|
7225
7227
|
total: v.length + (l ? 1 : 0),
|
|
@@ -7324,7 +7326,7 @@ class Zd extends r.Component {
|
|
|
7324
7326
|
{
|
|
7325
7327
|
ref: this.selectRef,
|
|
7326
7328
|
value: v,
|
|
7327
|
-
onChange:
|
|
7329
|
+
onChange: ld,
|
|
7328
7330
|
disabled: f,
|
|
7329
7331
|
...m,
|
|
7330
7332
|
children: s.map((w) => /* @__PURE__ */ i("option", { value: w.value, "aria-label": w.value }, w.value))
|
|
@@ -7337,16 +7339,16 @@ class Zd extends r.Component {
|
|
|
7337
7339
|
);
|
|
7338
7340
|
}
|
|
7339
7341
|
}
|
|
7340
|
-
function
|
|
7342
|
+
function Td() {
|
|
7341
7343
|
const e = b0();
|
|
7342
7344
|
if (!e)
|
|
7343
7345
|
throw new Error("PaginationItemsPerPageSelector must be used within a PaginationContext.Provider");
|
|
7344
|
-
const { itemsPerPage: t, itemsPerPageOptions: n, onItemsPerPageChange: o } = e, a = (n ||
|
|
7346
|
+
const { itemsPerPage: t, itemsPerPageOptions: n, onItemsPerPageChange: o } = e, a = (n || id).map((l) => typeof l == "number" ? {
|
|
7345
7347
|
label: l.toString(),
|
|
7346
7348
|
value: l
|
|
7347
7349
|
} : l);
|
|
7348
7350
|
return a.length < 2 ? null : /* @__PURE__ */ i(
|
|
7349
|
-
|
|
7351
|
+
Ad,
|
|
7350
7352
|
{
|
|
7351
7353
|
value: t,
|
|
7352
7354
|
options: a,
|
|
@@ -7359,7 +7361,7 @@ const e1 = "...";
|
|
|
7359
7361
|
function Ke(e, t) {
|
|
7360
7362
|
return Array(t).fill(0).map((n, o) => o + e);
|
|
7361
7363
|
}
|
|
7362
|
-
function
|
|
7364
|
+
function Nd(e, t) {
|
|
7363
7365
|
const n = [], o = t - 1;
|
|
7364
7366
|
return t <= xe ? Ke(0, t).map((a) => n.push(a)) : (n.push(0), e <= xe - pe * 2 ? Ke(
|
|
7365
7367
|
1,
|
|
@@ -7372,7 +7374,7 @@ function Id(e, t) {
|
|
|
7372
7374
|
xe - pe - 1
|
|
7373
7375
|
).map((a) => n.push(a)) : n.push(e1), n.push(o)), n;
|
|
7374
7376
|
}
|
|
7375
|
-
function
|
|
7377
|
+
function Ld({ value: e }) {
|
|
7376
7378
|
const t = b0();
|
|
7377
7379
|
if (!t)
|
|
7378
7380
|
throw new Error("PaginationNavigationItem must be used within a PaginationContext.Provider");
|
|
@@ -7395,7 +7397,7 @@ function Ad({ value: e }) {
|
|
|
7395
7397
|
}
|
|
7396
7398
|
);
|
|
7397
7399
|
}
|
|
7398
|
-
function
|
|
7400
|
+
function Fd() {
|
|
7399
7401
|
const e = b0();
|
|
7400
7402
|
if (!e)
|
|
7401
7403
|
throw new Error("PaginationNavigation must be used within a PaginationContext.Provider");
|
|
@@ -7406,7 +7408,7 @@ function Td() {
|
|
|
7406
7408
|
a == null || a(n + 1);
|
|
7407
7409
|
}, s = () => {
|
|
7408
7410
|
a == null || a(n - 1);
|
|
7409
|
-
}, h =
|
|
7411
|
+
}, h = Nd(n, Math.ceil(t / o));
|
|
7410
7412
|
return /* @__PURE__ */ i("nav", { role: "navigation", "aria-label": "Pagination Navigation", className: "rbui-pagination__navigation", children: /* @__PURE__ */ re("ul", { children: [
|
|
7411
7413
|
/* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
7412
7414
|
ye,
|
|
@@ -7418,7 +7420,7 @@ function Td() {
|
|
|
7418
7420
|
children: /* @__PURE__ */ i(Yt, {})
|
|
7419
7421
|
}
|
|
7420
7422
|
) }),
|
|
7421
|
-
h.map((d, u) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
7423
|
+
h.map((d, u) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Ld, { value: d }) }, `rbui-pagination-${d}-${u}`)),
|
|
7422
7424
|
/* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
7423
7425
|
ye,
|
|
7424
7426
|
{
|
|
@@ -7431,7 +7433,7 @@ function Td() {
|
|
|
7431
7433
|
) })
|
|
7432
7434
|
] }) });
|
|
7433
7435
|
}
|
|
7434
|
-
function
|
|
7436
|
+
function Bd() {
|
|
7435
7437
|
const e = b0();
|
|
7436
7438
|
if (!e)
|
|
7437
7439
|
throw new Error("PaginationSummary must be used within a PaginationContext.Provider");
|
|
@@ -7452,7 +7454,7 @@ function Nd() {
|
|
|
7452
7454
|
t.toLocaleString()
|
|
7453
7455
|
] });
|
|
7454
7456
|
}
|
|
7455
|
-
const
|
|
7457
|
+
const Hd = c((e, t) => {
|
|
7456
7458
|
const {
|
|
7457
7459
|
count: n,
|
|
7458
7460
|
className: o,
|
|
@@ -7465,18 +7467,18 @@ const Ld = c((e, t) => {
|
|
|
7465
7467
|
} = e;
|
|
7466
7468
|
return n < 1 ? null : /* @__PURE__ */ i(y5.Provider, { value: e, children: /* @__PURE__ */ re("div", { ...u, className: oe("rbui-pagination", o), ref: t, children: [
|
|
7467
7469
|
/* @__PURE__ */ re("div", { className: "rbui-pagination__left", children: [
|
|
7468
|
-
/* @__PURE__ */ i(
|
|
7469
|
-
/* @__PURE__ */ i(
|
|
7470
|
+
/* @__PURE__ */ i(Td, {}),
|
|
7471
|
+
/* @__PURE__ */ i(Bd, {})
|
|
7470
7472
|
] }),
|
|
7471
|
-
/* @__PURE__ */ i(
|
|
7473
|
+
/* @__PURE__ */ i(Fd, {})
|
|
7472
7474
|
] }) });
|
|
7473
7475
|
});
|
|
7474
|
-
|
|
7476
|
+
Hd.displayName = "Pagination";
|
|
7475
7477
|
export {
|
|
7476
7478
|
xr as AbTestIcon,
|
|
7477
7479
|
Mr as AggregateIcon,
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
+
_d as Alert,
|
|
7481
|
+
Dd as AlertTitle,
|
|
7480
7482
|
Ir as AnalyticsIcon,
|
|
7481
7483
|
Nr as AndroidIcon,
|
|
7482
7484
|
Br as AnonymizeIcon,
|
|
@@ -7600,7 +7602,7 @@ export {
|
|
|
7600
7602
|
Qt as InfoFilledIcon,
|
|
7601
7603
|
Gl as InfoIcon,
|
|
7602
7604
|
Ql as InfoSmallIcon,
|
|
7603
|
-
|
|
7605
|
+
od as InputField,
|
|
7604
7606
|
tc as InternetIcon,
|
|
7605
7607
|
oc as KeyIcon,
|
|
7606
7608
|
lc as LayoutIcon,
|
|
@@ -7620,13 +7622,13 @@ export {
|
|
|
7620
7622
|
qc as MobilePushIcon,
|
|
7621
7623
|
Xc as MobileSmsIcon,
|
|
7622
7624
|
es as MobileTextMessageIcon,
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
+
Gu as Modal,
|
|
7626
|
+
Qu as ModalBody,
|
|
7625
7627
|
w5 as ModalCloseButton,
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7628
|
+
Ju as ModalFooter,
|
|
7629
|
+
ed as ModalFooterActions,
|
|
7630
|
+
Ku as ModalHeader,
|
|
7631
|
+
Xu as ModalHeaderTitle,
|
|
7630
7632
|
rs as MoveIcon,
|
|
7631
7633
|
is as MultiParentRejectedIcon,
|
|
7632
7634
|
ss as MultiParentSelectedIcon,
|
|
@@ -7639,7 +7641,7 @@ export {
|
|
|
7639
7641
|
Ts as OfflineIcon,
|
|
7640
7642
|
Fs as OutOfStockIcon,
|
|
7641
7643
|
Ps as PagesIcon,
|
|
7642
|
-
|
|
7644
|
+
Hd as Pagination,
|
|
7643
7645
|
$s as PaintIcon,
|
|
7644
7646
|
ks as ParagraphCenterAlignIcon,
|
|
7645
7647
|
zs as ParagraphLeftAlignIcon,
|
|
@@ -7708,11 +7710,11 @@ export {
|
|
|
7708
7710
|
g8 as TagIcon,
|
|
7709
7711
|
b8 as TemplateIcon,
|
|
7710
7712
|
S8 as TextBoldIcon,
|
|
7711
|
-
|
|
7713
|
+
ad as TextField,
|
|
7712
7714
|
Z8 as TextItalicIcon,
|
|
7713
7715
|
A8 as TextStyleIcon,
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
+
Wu as ToggleButton,
|
|
7717
|
+
ju as ToggleButtonGroup,
|
|
7716
7718
|
m1 as Tooltip,
|
|
7717
7719
|
L8 as TragetIcon,
|
|
7718
7720
|
H8 as TransferIcon,
|
|
@@ -7727,13 +7729,14 @@ export {
|
|
|
7727
7729
|
ch as UploadIcon,
|
|
7728
7730
|
uh as UsagesIcon,
|
|
7729
7731
|
mh as UsersIcon,
|
|
7730
|
-
gh as
|
|
7731
|
-
bh as
|
|
7732
|
-
Sh as
|
|
7733
|
-
Zh as
|
|
7734
|
-
|
|
7735
|
-
Nh as
|
|
7736
|
-
Bh as
|
|
7737
|
-
Vh as
|
|
7732
|
+
gh as VariantsIcon,
|
|
7733
|
+
bh as VisualIcon,
|
|
7734
|
+
Sh as VoucherIcon,
|
|
7735
|
+
Zh as WaitIcon,
|
|
7736
|
+
Ah as WalkthroughsIcon,
|
|
7737
|
+
Nh as WarningFillIcon,
|
|
7738
|
+
Bh as WebhookIcon,
|
|
7739
|
+
Vh as WeblayerIcon,
|
|
7740
|
+
_h as WrenchIcon
|
|
7738
7741
|
};
|
|
7739
7742
|
//# sourceMappingURL=bloomreach-react-banana-ui.es.js.map
|