design-system-silkhaus 3.2.0-beta.dropdown.5 → 3.2.0-beta.dropdown.7
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/{Checkbox-D0PLHW4-.cjs → Checkbox-28LFy_hb.cjs} +6 -6
- package/dist/{Checkbox-DILK8-Kw.js → Checkbox-C2JdX3Vh.js} +134 -133
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -30
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -165,14 +165,14 @@ function to() {
|
|
|
165
165
|
}
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
var P = Object.assign,
|
|
168
|
+
var P = Object.assign, T = 0, S, C, k, I, A, _, pe;
|
|
169
169
|
function Ce() {
|
|
170
170
|
}
|
|
171
171
|
Ce.__reactDisabledLog = !0;
|
|
172
172
|
function Ze() {
|
|
173
173
|
{
|
|
174
|
-
if (
|
|
175
|
-
|
|
174
|
+
if (T === 0) {
|
|
175
|
+
S = console.log, C = console.info, k = console.warn, I = console.error, A = console.group, _ = console.groupCollapsed, pe = console.groupEnd;
|
|
176
176
|
var s = {
|
|
177
177
|
configurable: !0,
|
|
178
178
|
enumerable: !0,
|
|
@@ -189,12 +189,12 @@ function to() {
|
|
|
189
189
|
groupEnd: s
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
T++;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function ne() {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (T--, T === 0) {
|
|
198
198
|
var s = {
|
|
199
199
|
configurable: !0,
|
|
200
200
|
enumerable: !0,
|
|
@@ -202,7 +202,7 @@ function to() {
|
|
|
202
202
|
};
|
|
203
203
|
Object.defineProperties(console, {
|
|
204
204
|
log: P({}, s, {
|
|
205
|
-
value:
|
|
205
|
+
value: S
|
|
206
206
|
}),
|
|
207
207
|
info: P({}, s, {
|
|
208
208
|
value: C
|
|
@@ -224,7 +224,7 @@ function to() {
|
|
|
224
224
|
})
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
T < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
var le = y.ReactCurrentDispatcher, de;
|
|
@@ -243,8 +243,8 @@ function to() {
|
|
|
243
243
|
}
|
|
244
244
|
var pt = !1, Qe;
|
|
245
245
|
{
|
|
246
|
-
var
|
|
247
|
-
Qe = new
|
|
246
|
+
var Sr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
247
|
+
Qe = new Sr();
|
|
248
248
|
}
|
|
249
249
|
function en(s, v) {
|
|
250
250
|
if (!s || pt)
|
|
@@ -317,7 +317,7 @@ function to() {
|
|
|
317
317
|
var Pe = s ? s.displayName || s.name : "", ke = Pe ? Be(Pe) : "";
|
|
318
318
|
return typeof s == "function" && Qe.set(s, ke), ke;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Tr(s, v, R) {
|
|
321
321
|
return en(s, !1);
|
|
322
322
|
}
|
|
323
323
|
function Cr(s) {
|
|
@@ -340,7 +340,7 @@ function to() {
|
|
|
340
340
|
if (typeof s == "object")
|
|
341
341
|
switch (s.$$typeof) {
|
|
342
342
|
case c:
|
|
343
|
-
return
|
|
343
|
+
return Tr(s.render);
|
|
344
344
|
case g:
|
|
345
345
|
return et(s.type, v, R);
|
|
346
346
|
case b: {
|
|
@@ -884,7 +884,7 @@ function Wt(e, ...t) {
|
|
|
884
884
|
const J = (e) => {
|
|
885
885
|
const t = (n) => n[e] || [];
|
|
886
886
|
return t.isThemeGetter = !0, t;
|
|
887
|
-
}, Xn = /^\[(?:([a-z-]+):)?(.+)\]$/i, mo = /^\d+\/\d+$/, po = /* @__PURE__ */ new Set(["px", "full", "screen"]), vo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Oe(e) || po.has(e) || mo.test(e), ve = (e) => De(e, "length", zo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Et = (e) => De(e, "number", Oe), $e = (e) => !!e && Number.isInteger(Number(e)), Ro = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), W = (e) => Xn.test(e), be = (e) => vo.test(e), Eo = /* @__PURE__ */ new Set(["length", "size", "percentage"]),
|
|
887
|
+
}, Xn = /^\[(?:([a-z-]+):)?(.+)\]$/i, mo = /^\d+\/\d+$/, po = /* @__PURE__ */ new Set(["px", "full", "screen"]), vo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Oe(e) || po.has(e) || mo.test(e), ve = (e) => De(e, "length", zo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Et = (e) => De(e, "number", Oe), $e = (e) => !!e && Number.isInteger(Number(e)), Ro = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), W = (e) => Xn.test(e), be = (e) => vo.test(e), Eo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), So = (e) => De(e, Eo, Jn), To = (e) => De(e, "position", Jn), Co = /* @__PURE__ */ new Set(["image", "url"]), ko = (e) => De(e, Co, Ho), Lo = (e) => De(e, "", Mo), Ve = () => !0, De = (e, t, n) => {
|
|
888
888
|
const r = Xn.exec(e);
|
|
889
889
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
890
890
|
}, zo = (e) => (
|
|
@@ -893,7 +893,7 @@ const J = (e) => {
|
|
|
893
893
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
894
894
|
bo.test(e) && !xo.test(e)
|
|
895
895
|
), Jn = () => !1, Mo = (e) => yo.test(e), Ho = (e) => wo.test(e), _t = () => {
|
|
896
|
-
const e = J("colors"), t = J("spacing"), n = J("blur"), r = J("brightness"), o = J("borderColor"), a = J("borderRadius"), i = J("borderSpacing"), l = J("borderWidth"), c = J("contrast"), u = J("grayscale"), d = J("hueRotate"), g = J("invert"), b = J("gap"), f = J("gradientColorStops"), h = J("gradientColorStopPositions"), m = J("inset"), w = J("margin"), y = J("opacity"), x = J("padding"), E = J("saturate"), z = J("scale"), M = J("sepia"), j = J("skew"), U = J("space"), q = J("translate"), Z = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", W, t], H = () => [W, t], Y = () => ["", ge, ve], P = () => ["auto", Oe, W],
|
|
896
|
+
const e = J("colors"), t = J("spacing"), n = J("blur"), r = J("brightness"), o = J("borderColor"), a = J("borderRadius"), i = J("borderSpacing"), l = J("borderWidth"), c = J("contrast"), u = J("grayscale"), d = J("hueRotate"), g = J("invert"), b = J("gap"), f = J("gradientColorStops"), h = J("gradientColorStopPositions"), m = J("inset"), w = J("margin"), y = J("opacity"), x = J("padding"), E = J("saturate"), z = J("scale"), M = J("sepia"), j = J("skew"), U = J("space"), q = J("translate"), Z = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", W, t], H = () => [W, t], Y = () => ["", ge, ve], P = () => ["auto", Oe, W], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], S = () => ["solid", "dashed", "dotted", "double", "none"], C = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], I = () => ["", "0", W], A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Oe, W];
|
|
897
897
|
return {
|
|
898
898
|
cacheSize: 500,
|
|
899
899
|
separator: ":",
|
|
@@ -1016,7 +1016,7 @@ const J = (e) => {
|
|
|
1016
1016
|
* @see https://tailwindcss.com/docs/object-position
|
|
1017
1017
|
*/
|
|
1018
1018
|
"object-position": [{
|
|
1019
|
-
object: [...
|
|
1019
|
+
object: [...T(), W]
|
|
1020
1020
|
}],
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Overflow
|
|
@@ -1708,7 +1708,7 @@ const J = (e) => {
|
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1709
1709
|
*/
|
|
1710
1710
|
"text-decoration-style": [{
|
|
1711
|
-
decoration: [...
|
|
1711
|
+
decoration: [...S(), "wavy"]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Text Decoration Thickness
|
|
@@ -1825,7 +1825,7 @@ const J = (e) => {
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/background-position
|
|
1826
1826
|
*/
|
|
1827
1827
|
"bg-position": [{
|
|
1828
|
-
bg: [...
|
|
1828
|
+
bg: [...T(), To]
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Background Repeat
|
|
@@ -1841,7 +1841,7 @@ const J = (e) => {
|
|
|
1841
1841
|
* @see https://tailwindcss.com/docs/background-size
|
|
1842
1842
|
*/
|
|
1843
1843
|
"bg-size": [{
|
|
1844
|
-
bg: ["auto", "cover", "contain",
|
|
1844
|
+
bg: ["auto", "cover", "contain", So]
|
|
1845
1845
|
}],
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Background Image
|
|
@@ -2082,7 +2082,7 @@ const J = (e) => {
|
|
|
2082
2082
|
* @see https://tailwindcss.com/docs/border-style
|
|
2083
2083
|
*/
|
|
2084
2084
|
"border-style": [{
|
|
2085
|
-
border: [...
|
|
2085
|
+
border: [...S(), "hidden"]
|
|
2086
2086
|
}],
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Divide Width X
|
|
@@ -2120,7 +2120,7 @@ const J = (e) => {
|
|
|
2120
2120
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2121
2121
|
*/
|
|
2122
2122
|
"divide-style": [{
|
|
2123
|
-
divide:
|
|
2123
|
+
divide: S()
|
|
2124
2124
|
}],
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Border Color
|
|
@@ -2197,7 +2197,7 @@ const J = (e) => {
|
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2198
2198
|
*/
|
|
2199
2199
|
"outline-style": [{
|
|
2200
|
-
outline: ["", ...
|
|
2200
|
+
outline: ["", ...S()]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Outline Offset
|
|
@@ -3818,7 +3818,7 @@ const wa = (e, t = "AED") => {
|
|
|
3818
3818
|
minimumFractionDigits: Math.round(n) === n ? 0 : 2
|
|
3819
3819
|
}) : "";
|
|
3820
3820
|
return `${t} ${r}`;
|
|
3821
|
-
},
|
|
3821
|
+
}, Sn = {
|
|
3822
3822
|
primary: "ds-bg-Background-accentEggplant-100 ds-text-Text-textPrimaryDark ds-rounded-sm hover:ds-text-Text-textPrimaryDark hover:ds-bg-Background-accentEggplant-highlight active:ds-bg-Background-accentEggplant-darkened focus:ds-rounded-none focus:ds-bg-Background-accentEggplant-100 focus:ds-border focus:ds-border-white focus:ds-shadow-[0px_0px_0px_1px_rgba(109,54,169,1)] disabled:focus:ds-shadow-none disabled:ds-bg-Background-accentEggplant-20",
|
|
3823
3823
|
secondary: "ds-text-Background-accentEggplant-100 ds-rounded-sm ds-border ds-border-Fills-secondary hover:ds-text-Background-accentEggplant-100 hover:ds-border hover:ds-bg-Background-accentEggplant-5 hover:ds-border-Fills-black active:ds-text-Background-accentEggplant-100 active:ds-border active:ds-border-Fills-Background-accentEggplant-100 active:ds-bg-Background-accentEggplant-5 focus:ds-bg-Background-accentEggplant-5 focus:ds-bg-Background-accentEggplant-5 focus:ds-text-accentEggplant-100 focus:ds-border-2 focus:ds-border-Background-accentEggplant-100 disabled:ds-border disabled:ds-border-Fills-terciary disabled:ds-text-Text-tertiary disabled:ds-bg-transparent",
|
|
3824
3824
|
tertiary: "ds-text-Text-secondary ds-rounded-sm hover:ds-bg-Fills-quintiary active:ds-bg-Fills-quintiary focus:ds-bg-Fills-quadrutery disabled:ds-text-Fills-quadrutery disabled:ds-bg-Fills-quintiary",
|
|
@@ -3868,8 +3868,8 @@ const wa = (e, t = "AED") => {
|
|
|
3868
3868
|
disabled: n,
|
|
3869
3869
|
className: Dt(
|
|
3870
3870
|
it(
|
|
3871
|
-
{ [Fo[e]]: i, [
|
|
3872
|
-
|
|
3871
|
+
{ [Fo[e]]: i, [Sn[e]]: !i },
|
|
3872
|
+
Sn[t],
|
|
3873
3873
|
"ds-flex ds-w-full ds-flex-1 ds-items-center ds-justify-center",
|
|
3874
3874
|
g
|
|
3875
3875
|
)
|
|
@@ -3950,7 +3950,7 @@ const Ra = ({ className: e }) => /* @__PURE__ */ B.jsxs(
|
|
|
3950
3950
|
) }) })
|
|
3951
3951
|
]
|
|
3952
3952
|
}
|
|
3953
|
-
) }),
|
|
3953
|
+
) }), Sa = ({ className: e }) => /* @__PURE__ */ B.jsxs(
|
|
3954
3954
|
"svg",
|
|
3955
3955
|
{
|
|
3956
3956
|
width: "100%",
|
|
@@ -4116,13 +4116,13 @@ function nr() {
|
|
|
4116
4116
|
}).join(" ") : navigator.userAgent;
|
|
4117
4117
|
}
|
|
4118
4118
|
function No(e) {
|
|
4119
|
-
return Vo() ? !1 : !
|
|
4119
|
+
return Vo() ? !1 : !Tn() && e.width === 0 && e.height === 0 || Tn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
4120
4120
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
4121
4121
|
}
|
|
4122
4122
|
function rr() {
|
|
4123
4123
|
return /apple/i.test(navigator.vendor);
|
|
4124
4124
|
}
|
|
4125
|
-
function
|
|
4125
|
+
function Tn() {
|
|
4126
4126
|
const e = /android/i;
|
|
4127
4127
|
return e.test(tr()) || e.test(nr());
|
|
4128
4128
|
}
|
|
@@ -4145,7 +4145,7 @@ function Uo(e) {
|
|
|
4145
4145
|
function ye(e) {
|
|
4146
4146
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
4147
4147
|
}
|
|
4148
|
-
function
|
|
4148
|
+
function St(e, t) {
|
|
4149
4149
|
if (t == null)
|
|
4150
4150
|
return !1;
|
|
4151
4151
|
if ("composedPath" in e)
|
|
@@ -4160,7 +4160,7 @@ const Yo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([co
|
|
|
4160
4160
|
function or(e) {
|
|
4161
4161
|
return ie(e) && e.matches(Yo);
|
|
4162
4162
|
}
|
|
4163
|
-
const we = Math.min, ae = Math.max, lt = Math.round, rt = Math.floor,
|
|
4163
|
+
const we = Math.min, ae = Math.max, lt = Math.round, rt = Math.floor, Se = (e) => ({
|
|
4164
4164
|
x: e,
|
|
4165
4165
|
y: e
|
|
4166
4166
|
}), qo = {
|
|
@@ -4178,7 +4178,7 @@ function Cn(e, t, n) {
|
|
|
4178
4178
|
function Ke(e, t) {
|
|
4179
4179
|
return typeof e == "function" ? e(t) : e;
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function Te(e) {
|
|
4182
4182
|
return e.split("-")[0];
|
|
4183
4183
|
}
|
|
4184
4184
|
function Xe(e) {
|
|
@@ -4191,7 +4191,7 @@ function ar(e) {
|
|
|
4191
4191
|
return e === "y" ? "height" : "width";
|
|
4192
4192
|
}
|
|
4193
4193
|
function ze(e) {
|
|
4194
|
-
return ["top", "bottom"].includes(
|
|
4194
|
+
return ["top", "bottom"].includes(Te(e)) ? "y" : "x";
|
|
4195
4195
|
}
|
|
4196
4196
|
function lr(e) {
|
|
4197
4197
|
return ir(ze(e));
|
|
@@ -4224,7 +4224,7 @@ function Zo(e, t, n) {
|
|
|
4224
4224
|
}
|
|
4225
4225
|
function Qo(e, t, n, r) {
|
|
4226
4226
|
const o = Xe(e);
|
|
4227
|
-
let a = Zo(
|
|
4227
|
+
let a = Zo(Te(e), n === "start", r);
|
|
4228
4228
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(It)))), a;
|
|
4229
4229
|
}
|
|
4230
4230
|
function st(e) {
|
|
@@ -4448,7 +4448,7 @@ function zn(e, t, n) {
|
|
|
4448
4448
|
reference: r,
|
|
4449
4449
|
floating: o
|
|
4450
4450
|
} = e;
|
|
4451
|
-
const a = ze(t), i = lr(t), l = ar(i), c =
|
|
4451
|
+
const a = ze(t), i = lr(t), l = ar(i), c = Te(t), u = a === "y", d = r.x + r.width / 2 - o.width / 2, g = r.y + r.height / 2 - o.height / 2, b = r[l] / 2 - o[l] / 2;
|
|
4452
4452
|
let f;
|
|
4453
4453
|
switch (c) {
|
|
4454
4454
|
case "top":
|
|
@@ -4609,14 +4609,14 @@ const wi = function(e) {
|
|
|
4609
4609
|
initialPlacement: c,
|
|
4610
4610
|
platform: u,
|
|
4611
4611
|
elements: d
|
|
4612
|
-
} = n,
|
|
4612
|
+
} = n, T = Ke(e, n), {
|
|
4613
4613
|
mainAxis: g = !0,
|
|
4614
4614
|
crossAxis: b = !0,
|
|
4615
4615
|
fallbackPlacements: f,
|
|
4616
4616
|
fallbackStrategy: h = "bestFit",
|
|
4617
4617
|
fallbackAxisSideDirection: m = "none",
|
|
4618
4618
|
flipAlignment: w = !0
|
|
4619
|
-
} =
|
|
4619
|
+
} = T, y = Le(T, [
|
|
4620
4620
|
"mainAxis",
|
|
4621
4621
|
"crossAxis",
|
|
4622
4622
|
"fallbackPlacements",
|
|
@@ -4626,24 +4626,24 @@ const wi = function(e) {
|
|
|
4626
4626
|
]);
|
|
4627
4627
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
4628
4628
|
return {};
|
|
4629
|
-
const x =
|
|
4629
|
+
const x = Te(a), E = ze(c), z = Te(c) === c, M = yield u.isRTL == null ? void 0 : u.isRTL(d.floating), j = f || (z || !w ? [st(c)] : Jo(c)), U = m !== "none";
|
|
4630
4630
|
!f && U && j.push(...Qo(c, w, m, M));
|
|
4631
4631
|
const q = [c, ...j], Z = yield Kt(n, y), V = [];
|
|
4632
4632
|
let N = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
4633
4633
|
if (g && V.push(Z[x]), b) {
|
|
4634
|
-
const
|
|
4635
|
-
V.push(Z[
|
|
4634
|
+
const S = Xo(a, l, M);
|
|
4635
|
+
V.push(Z[S[0]], Z[S[1]]);
|
|
4636
4636
|
}
|
|
4637
4637
|
if (N = [...N, {
|
|
4638
4638
|
placement: a,
|
|
4639
4639
|
overflows: V
|
|
4640
|
-
}], !V.every((
|
|
4640
|
+
}], !V.every((S) => S <= 0)) {
|
|
4641
4641
|
var H, Y;
|
|
4642
|
-
const
|
|
4642
|
+
const S = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, C = q[S];
|
|
4643
4643
|
if (C)
|
|
4644
4644
|
return {
|
|
4645
4645
|
data: {
|
|
4646
|
-
index:
|
|
4646
|
+
index: S,
|
|
4647
4647
|
overflows: N
|
|
4648
4648
|
},
|
|
4649
4649
|
reset: {
|
|
@@ -4689,7 +4689,7 @@ function Ri(e, t) {
|
|
|
4689
4689
|
placement: n,
|
|
4690
4690
|
platform: r,
|
|
4691
4691
|
elements: o
|
|
4692
|
-
} = e, a = yield r.isRTL == null ? void 0 : r.isRTL(o.floating), i =
|
|
4692
|
+
} = e, a = yield r.isRTL == null ? void 0 : r.isRTL(o.floating), i = Te(n), l = Xe(n), c = ze(n) === "y", u = ["left", "top"].includes(i) ? -1 : 1, d = a && c ? -1 : 1, g = Ke(t, e);
|
|
4693
4693
|
let {
|
|
4694
4694
|
mainAxis: b,
|
|
4695
4695
|
crossAxis: f,
|
|
@@ -4735,7 +4735,7 @@ const Ei = function(e) {
|
|
|
4735
4735
|
});
|
|
4736
4736
|
}
|
|
4737
4737
|
};
|
|
4738
|
-
},
|
|
4738
|
+
}, Si = function(e) {
|
|
4739
4739
|
return e === void 0 && (e = {}), {
|
|
4740
4740
|
name: "shift",
|
|
4741
4741
|
options: e,
|
|
@@ -4767,7 +4767,7 @@ const Ei = function(e) {
|
|
|
4767
4767
|
]), d = {
|
|
4768
4768
|
x: r,
|
|
4769
4769
|
y: o
|
|
4770
|
-
}, g = yield Kt(n, u), b = ze(
|
|
4770
|
+
}, g = yield Kt(n, u), b = ze(Te(a)), f = ir(b);
|
|
4771
4771
|
let h = d[f], m = d[b];
|
|
4772
4772
|
if (i) {
|
|
4773
4773
|
const x = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right", z = h + g[x], M = h - g[E];
|
|
@@ -4790,7 +4790,7 @@ const Ei = function(e) {
|
|
|
4790
4790
|
});
|
|
4791
4791
|
}
|
|
4792
4792
|
};
|
|
4793
|
-
},
|
|
4793
|
+
}, Ti = function(e) {
|
|
4794
4794
|
return e === void 0 && (e = {}), {
|
|
4795
4795
|
name: "size",
|
|
4796
4796
|
options: e,
|
|
@@ -4806,7 +4806,7 @@ const Ei = function(e) {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
} = Z, c = Le(Z, [
|
|
4808
4808
|
"apply"
|
|
4809
|
-
]), u = yield Kt(n, c), d =
|
|
4809
|
+
]), u = yield Kt(n, c), d = Te(r), g = Xe(r), b = ze(r) === "y", {
|
|
4810
4810
|
width: f,
|
|
4811
4811
|
height: h
|
|
4812
4812
|
} = o.floating;
|
|
@@ -4848,7 +4848,7 @@ function Xt(e) {
|
|
|
4848
4848
|
function We(e) {
|
|
4849
4849
|
const t = Xt(e);
|
|
4850
4850
|
if (!ie(t))
|
|
4851
|
-
return
|
|
4851
|
+
return Se(1);
|
|
4852
4852
|
const n = t.getBoundingClientRect(), {
|
|
4853
4853
|
width: r,
|
|
4854
4854
|
height: o,
|
|
@@ -4860,7 +4860,7 @@ function We(e) {
|
|
|
4860
4860
|
y: l
|
|
4861
4861
|
};
|
|
4862
4862
|
}
|
|
4863
|
-
const Ci = /* @__PURE__ */
|
|
4863
|
+
const Ci = /* @__PURE__ */ Se(0);
|
|
4864
4864
|
function hr(e) {
|
|
4865
4865
|
const t = oe(e);
|
|
4866
4866
|
return !qt() || !t.visualViewport ? Ci : {
|
|
@@ -4874,9 +4874,9 @@ function ki(e, t, n) {
|
|
|
4874
4874
|
function Me(e, t, n, r) {
|
|
4875
4875
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4876
4876
|
const o = e.getBoundingClientRect(), a = Xt(e);
|
|
4877
|
-
let i =
|
|
4877
|
+
let i = Se(1);
|
|
4878
4878
|
t && (r ? X(r) && (i = We(r)) : i = We(e));
|
|
4879
|
-
const l = ki(a, n, r) ? hr(a) :
|
|
4879
|
+
const l = ki(a, n, r) ? hr(a) : Se(0);
|
|
4880
4880
|
let c = (o.left + l.x) / i.x, u = (o.top + l.y) / i.y, d = o.width / i.x, g = o.height / i.y;
|
|
4881
4881
|
if (a) {
|
|
4882
4882
|
const b = oe(a), f = r && X(r) ? oe(r) : r;
|
|
@@ -4906,8 +4906,8 @@ function Li(e) {
|
|
|
4906
4906
|
let c = {
|
|
4907
4907
|
scrollLeft: 0,
|
|
4908
4908
|
scrollTop: 0
|
|
4909
|
-
}, u =
|
|
4910
|
-
const d =
|
|
4909
|
+
}, u = Se(1);
|
|
4910
|
+
const d = Se(0), g = ie(r);
|
|
4911
4911
|
if ((g || !g && !a) && ((Fe(r) !== "body" || qe(i)) && (c = mt(r)), ie(r))) {
|
|
4912
4912
|
const b = Me(r);
|
|
4913
4913
|
u = We(r), d.x = b.x + r.clientLeft, d.y = b.y + r.clientTop;
|
|
@@ -4952,7 +4952,7 @@ function Hi(e, t) {
|
|
|
4952
4952
|
};
|
|
4953
4953
|
}
|
|
4954
4954
|
function Pi(e, t) {
|
|
4955
|
-
const n = Me(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = ie(e) ? We(e) :
|
|
4955
|
+
const n = Me(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = ie(e) ? We(e) : Se(1), i = e.clientWidth * a.x, l = e.clientHeight * a.y, c = o * a.x, u = r * a.y;
|
|
4956
4956
|
return {
|
|
4957
4957
|
width: i,
|
|
4958
4958
|
height: l,
|
|
@@ -5028,7 +5028,7 @@ function _i(e, t, n) {
|
|
|
5028
5028
|
scrollLeft: 0,
|
|
5029
5029
|
scrollTop: 0
|
|
5030
5030
|
};
|
|
5031
|
-
const c =
|
|
5031
|
+
const c = Se(0);
|
|
5032
5032
|
if (r || !r && !a)
|
|
5033
5033
|
if ((Fe(t) !== "body" || qe(o)) && (l = mt(t)), r) {
|
|
5034
5034
|
const g = Me(t, !0, a, t);
|
|
@@ -5042,7 +5042,7 @@ function _i(e, t, n) {
|
|
|
5042
5042
|
height: i.height
|
|
5043
5043
|
};
|
|
5044
5044
|
}
|
|
5045
|
-
function
|
|
5045
|
+
function Tt(e) {
|
|
5046
5046
|
return ce(e).position === "static";
|
|
5047
5047
|
}
|
|
5048
5048
|
function Hn(e, t) {
|
|
@@ -5055,16 +5055,16 @@ function vr(e, t) {
|
|
|
5055
5055
|
if (!ie(e)) {
|
|
5056
5056
|
let o = he(e);
|
|
5057
5057
|
for (; o && !Ee(o); ) {
|
|
5058
|
-
if (X(o) && !
|
|
5058
|
+
if (X(o) && !Tt(o))
|
|
5059
5059
|
return o;
|
|
5060
5060
|
o = he(o);
|
|
5061
5061
|
}
|
|
5062
5062
|
return n;
|
|
5063
5063
|
}
|
|
5064
5064
|
let r = Hn(e, t);
|
|
5065
|
-
for (; r && Io(r) &&
|
|
5065
|
+
for (; r && Io(r) && Tt(r); )
|
|
5066
5066
|
r = Hn(r, t);
|
|
5067
|
-
return r && Ee(r) &&
|
|
5067
|
+
return r && Ee(r) && Tt(r) && !Yt(r) ? n : r || jo(e) || n;
|
|
5068
5068
|
}
|
|
5069
5069
|
const Di = function(e) {
|
|
5070
5070
|
return fe(this, null, function* () {
|
|
@@ -5140,7 +5140,7 @@ function Ii(e, t) {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
return i(!0), a;
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function Ta(e, t, n, r) {
|
|
5144
5144
|
r === void 0 && (r = {});
|
|
5145
5145
|
const {
|
|
5146
5146
|
ancestorScroll: o = !0,
|
|
@@ -5176,7 +5176,7 @@ function Sa(e, t, n, r) {
|
|
|
5176
5176
|
}), g == null || g(), (y = f) == null || y.disconnect(), f = null, c && cancelAnimationFrame(h);
|
|
5177
5177
|
};
|
|
5178
5178
|
}
|
|
5179
|
-
const ji = Ei, Ni =
|
|
5179
|
+
const ji = Ei, Ni = Si, $i = wi, Vi = Ti, Gi = (e, t, n) => {
|
|
5180
5180
|
const r = /* @__PURE__ */ new Map(), o = L({
|
|
5181
5181
|
platform: Bi
|
|
5182
5182
|
}, n), a = G(L({}, o.platform), {
|
|
@@ -5294,34 +5294,34 @@ function Ui(e) {
|
|
|
5294
5294
|
floating: U,
|
|
5295
5295
|
setReference: x,
|
|
5296
5296
|
setFloating: E
|
|
5297
|
-
}), [x, E]),
|
|
5297
|
+
}), [x, E]), T = p.useMemo(() => ({
|
|
5298
5298
|
reference: z,
|
|
5299
5299
|
floating: M
|
|
5300
|
-
}), [z, M]),
|
|
5300
|
+
}), [z, M]), S = p.useMemo(() => {
|
|
5301
5301
|
const C = {
|
|
5302
5302
|
position: n,
|
|
5303
5303
|
left: 0,
|
|
5304
5304
|
top: 0
|
|
5305
5305
|
};
|
|
5306
|
-
if (!
|
|
5306
|
+
if (!T.floating)
|
|
5307
5307
|
return C;
|
|
5308
|
-
const k = Pn(
|
|
5308
|
+
const k = Pn(T.floating, d.x), I = Pn(T.floating, d.y);
|
|
5309
5309
|
return l ? L(G(L({}, C), {
|
|
5310
5310
|
transform: "translate(" + k + "px, " + I + "px)"
|
|
5311
|
-
}), br(
|
|
5311
|
+
}), br(T.floating) >= 1.5 && {
|
|
5312
5312
|
willChange: "transform"
|
|
5313
5313
|
}) : {
|
|
5314
5314
|
position: n,
|
|
5315
5315
|
left: k,
|
|
5316
5316
|
top: I
|
|
5317
5317
|
};
|
|
5318
|
-
}, [n, l,
|
|
5318
|
+
}, [n, l, T.floating, d.x, d.y]);
|
|
5319
5319
|
return p.useMemo(() => G(L({}, d), {
|
|
5320
5320
|
update: H,
|
|
5321
5321
|
refs: P,
|
|
5322
|
-
elements:
|
|
5323
|
-
floatingStyles:
|
|
5324
|
-
}), [d, H, P,
|
|
5322
|
+
elements: T,
|
|
5323
|
+
floatingStyles: S
|
|
5324
|
+
}), [d, H, P, T, S]);
|
|
5325
5325
|
}
|
|
5326
5326
|
const Ca = (e, t) => G(L({}, ji(e)), {
|
|
5327
5327
|
options: [e, t]
|
|
@@ -5432,49 +5432,49 @@ function Ma(e, t) {
|
|
|
5432
5432
|
move: b = !0
|
|
5433
5433
|
} = t, f = Qt(), h = Zt(), m = Ct(u), w = Ct(c), y = Ct(n), x = p.useRef(), E = p.useRef(-1), z = p.useRef(), M = p.useRef(-1), j = p.useRef(!0), U = p.useRef(!1), q = p.useRef(() => {
|
|
5434
5434
|
}), Z = p.useCallback(() => {
|
|
5435
|
-
var
|
|
5436
|
-
const
|
|
5437
|
-
return (
|
|
5435
|
+
var T;
|
|
5436
|
+
const S = (T = o.current.openEvent) == null ? void 0 : T.type;
|
|
5437
|
+
return (S == null ? void 0 : S.includes("mouse")) && S !== "mousedown";
|
|
5438
5438
|
}, [o]);
|
|
5439
5439
|
p.useEffect(() => {
|
|
5440
5440
|
if (!l) return;
|
|
5441
|
-
function S
|
|
5441
|
+
function T(S) {
|
|
5442
5442
|
let {
|
|
5443
5443
|
open: C
|
|
5444
|
-
} =
|
|
5444
|
+
} = S;
|
|
5445
5445
|
C || (clearTimeout(E.current), clearTimeout(M.current), j.current = !0);
|
|
5446
5446
|
}
|
|
5447
|
-
return a.on("openchange",
|
|
5448
|
-
a.off("openchange",
|
|
5447
|
+
return a.on("openchange", T), () => {
|
|
5448
|
+
a.off("openchange", T);
|
|
5449
5449
|
};
|
|
5450
5450
|
}, [l, a]), p.useEffect(() => {
|
|
5451
5451
|
if (!l || !m.current || !n) return;
|
|
5452
|
-
function
|
|
5452
|
+
function T(C) {
|
|
5453
5453
|
Z() && r(!1, C, "hover");
|
|
5454
5454
|
}
|
|
5455
|
-
const
|
|
5456
|
-
return
|
|
5457
|
-
|
|
5455
|
+
const S = ye(i.floating).documentElement;
|
|
5456
|
+
return S.addEventListener("mouseleave", T), () => {
|
|
5457
|
+
S.removeEventListener("mouseleave", T);
|
|
5458
5458
|
};
|
|
5459
5459
|
}, [i.floating, n, r, l, m, Z]);
|
|
5460
|
-
const V = p.useCallback(function(
|
|
5461
|
-
|
|
5460
|
+
const V = p.useCallback(function(T, S, C) {
|
|
5461
|
+
S === void 0 && (S = !0), C === void 0 && (C = "hover");
|
|
5462
5462
|
const k = kt(w.current, "close", x.current);
|
|
5463
|
-
k && !z.current ? (clearTimeout(E.current), E.current = window.setTimeout(() => r(!1,
|
|
5463
|
+
k && !z.current ? (clearTimeout(E.current), E.current = window.setTimeout(() => r(!1, T, C), k)) : S && (clearTimeout(E.current), r(!1, T, C));
|
|
5464
5464
|
}, [w, r]), N = xe(() => {
|
|
5465
5465
|
q.current(), z.current = void 0;
|
|
5466
5466
|
}), H = xe(() => {
|
|
5467
5467
|
if (U.current) {
|
|
5468
|
-
const
|
|
5469
|
-
|
|
5468
|
+
const T = ye(i.floating).body;
|
|
5469
|
+
T.style.pointerEvents = "", T.removeAttribute(_n), U.current = !1;
|
|
5470
5470
|
}
|
|
5471
5471
|
});
|
|
5472
5472
|
p.useEffect(() => {
|
|
5473
5473
|
if (!l) return;
|
|
5474
|
-
function
|
|
5474
|
+
function T() {
|
|
5475
5475
|
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
5476
5476
|
}
|
|
5477
|
-
function
|
|
5477
|
+
function S(A) {
|
|
5478
5478
|
if (clearTimeout(E.current), j.current = !1, d && !Ue(x.current) || g > 0 && !kt(w.current, "open"))
|
|
5479
5479
|
return;
|
|
5480
5480
|
const _ = kt(w.current, "open", x.current);
|
|
@@ -5483,7 +5483,7 @@ function Ma(e, t) {
|
|
|
5483
5483
|
}, _) : r(!0, A, "hover");
|
|
5484
5484
|
}
|
|
5485
5485
|
function C(A) {
|
|
5486
|
-
if (
|
|
5486
|
+
if (T()) return;
|
|
5487
5487
|
q.current();
|
|
5488
5488
|
const _ = ye(i.floating);
|
|
5489
5489
|
if (clearTimeout(M.current), m.current && o.current.floatingContext) {
|
|
@@ -5504,7 +5504,7 @@ function Ma(e, t) {
|
|
|
5504
5504
|
(x.current === "touch" ? !_e(i.floating, A.relatedTarget) : !0) && V(A);
|
|
5505
5505
|
}
|
|
5506
5506
|
function k(A) {
|
|
5507
|
-
|
|
5507
|
+
T() || o.current.floatingContext && (m.current == null || m.current(G(L({}, o.current.floatingContext), {
|
|
5508
5508
|
tree: f,
|
|
5509
5509
|
x: A.clientX,
|
|
5510
5510
|
y: A.clientY,
|
|
@@ -5516,22 +5516,22 @@ function Ma(e, t) {
|
|
|
5516
5516
|
if (X(i.domReference)) {
|
|
5517
5517
|
var I;
|
|
5518
5518
|
const A = i.domReference;
|
|
5519
|
-
return n && A.addEventListener("mouseleave", k), (I = i.floating) == null || I.addEventListener("mouseleave", k), b && A.addEventListener("mousemove",
|
|
5519
|
+
return n && A.addEventListener("mouseleave", k), (I = i.floating) == null || I.addEventListener("mouseleave", k), b && A.addEventListener("mousemove", S, {
|
|
5520
5520
|
once: !0
|
|
5521
|
-
}), A.addEventListener("mouseenter",
|
|
5521
|
+
}), A.addEventListener("mouseenter", S), A.addEventListener("mouseleave", C), () => {
|
|
5522
5522
|
var _;
|
|
5523
|
-
n && A.removeEventListener("mouseleave", k), (_ = i.floating) == null || _.removeEventListener("mouseleave", k), b && A.removeEventListener("mousemove",
|
|
5523
|
+
n && A.removeEventListener("mouseleave", k), (_ = i.floating) == null || _.removeEventListener("mouseleave", k), b && A.removeEventListener("mousemove", S), A.removeEventListener("mouseenter", S), A.removeEventListener("mouseleave", C);
|
|
5524
5524
|
};
|
|
5525
5525
|
}
|
|
5526
5526
|
}, [i, l, e, d, g, b, V, N, H, r, n, y, f, w, m, o]), ue(() => {
|
|
5527
|
-
var
|
|
5528
|
-
if (l && n && (
|
|
5527
|
+
var T;
|
|
5528
|
+
if (l && n && (T = m.current) != null && T.__options.blockPointerEvents && Z()) {
|
|
5529
5529
|
const C = ye(i.floating).body;
|
|
5530
5530
|
C.setAttribute(_n, ""), C.style.pointerEvents = "none", U.current = !0;
|
|
5531
5531
|
const k = i.floating;
|
|
5532
5532
|
if (X(i.domReference) && k) {
|
|
5533
|
-
var
|
|
5534
|
-
const I = i.domReference, A = f == null || (
|
|
5533
|
+
var S;
|
|
5534
|
+
const I = i.domReference, A = f == null || (S = f.nodesRef.current.find((_) => _.id === h)) == null || (S = S.context) == null ? void 0 : S.elements.floating;
|
|
5535
5535
|
return A && (A.style.pointerEvents = ""), I.style.pointerEvents = "auto", k.style.pointerEvents = "auto", () => {
|
|
5536
5536
|
I.style.pointerEvents = "", k.style.pointerEvents = "";
|
|
5537
5537
|
};
|
|
@@ -5543,16 +5543,16 @@ function Ma(e, t) {
|
|
|
5543
5543
|
N(), clearTimeout(E.current), clearTimeout(M.current), H();
|
|
5544
5544
|
}, [l, i.domReference, N, H]);
|
|
5545
5545
|
const Y = p.useMemo(() => {
|
|
5546
|
-
function S
|
|
5547
|
-
x.current =
|
|
5546
|
+
function T(S) {
|
|
5547
|
+
x.current = S.pointerType;
|
|
5548
5548
|
}
|
|
5549
5549
|
return {
|
|
5550
|
-
onPointerDown:
|
|
5551
|
-
onPointerEnter:
|
|
5552
|
-
onMouseMove(
|
|
5550
|
+
onPointerDown: T,
|
|
5551
|
+
onPointerEnter: T,
|
|
5552
|
+
onMouseMove(S) {
|
|
5553
5553
|
const {
|
|
5554
5554
|
nativeEvent: C
|
|
5555
|
-
} =
|
|
5555
|
+
} = S;
|
|
5556
5556
|
function k() {
|
|
5557
5557
|
!j.current && !y.current && r(!0, C, "hover");
|
|
5558
5558
|
}
|
|
@@ -5563,8 +5563,8 @@ function Ma(e, t) {
|
|
|
5563
5563
|
onMouseEnter() {
|
|
5564
5564
|
clearTimeout(E.current);
|
|
5565
5565
|
},
|
|
5566
|
-
onMouseLeave(
|
|
5567
|
-
V(
|
|
5566
|
+
onMouseLeave(T) {
|
|
5567
|
+
V(T.nativeEvent, !1);
|
|
5568
5568
|
}
|
|
5569
5569
|
}), [V]);
|
|
5570
5570
|
return p.useMemo(() => l ? {
|
|
@@ -5834,10 +5834,10 @@ function Aa(e, t) {
|
|
|
5834
5834
|
escapeKey: j,
|
|
5835
5835
|
outsidePress: U
|
|
5836
5836
|
} = Nn(h), q = xe((P) => {
|
|
5837
|
-
var
|
|
5837
|
+
var T;
|
|
5838
5838
|
if (!n || !i || !l || P.key !== "Escape")
|
|
5839
5839
|
return;
|
|
5840
|
-
const
|
|
5840
|
+
const S = (T = a.current.floatingContext) == null ? void 0 : T.nodeId, C = m ? Lt(m.nodesRef.current, S) : [];
|
|
5841
5841
|
if (!z && (P.stopPropagation(), C.length > 0)) {
|
|
5842
5842
|
let k = !0;
|
|
5843
5843
|
if (C.forEach((I) => {
|
|
@@ -5851,18 +5851,18 @@ function Aa(e, t) {
|
|
|
5851
5851
|
}
|
|
5852
5852
|
r(!1, Go(P) ? P.nativeEvent : P, "escape-key");
|
|
5853
5853
|
}), Z = xe((P) => {
|
|
5854
|
-
var
|
|
5855
|
-
const
|
|
5854
|
+
var T;
|
|
5855
|
+
const S = () => {
|
|
5856
5856
|
var C;
|
|
5857
|
-
q(P), (C = Ae(P)) == null || C.removeEventListener("keydown",
|
|
5857
|
+
q(P), (C = Ae(P)) == null || C.removeEventListener("keydown", S);
|
|
5858
5858
|
};
|
|
5859
|
-
(
|
|
5859
|
+
(T = Ae(P)) == null || T.addEventListener("keydown", S);
|
|
5860
5860
|
}), V = xe((P) => {
|
|
5861
|
-
var
|
|
5862
|
-
const
|
|
5861
|
+
var T;
|
|
5862
|
+
const S = x.current;
|
|
5863
5863
|
x.current = !1;
|
|
5864
5864
|
const C = E.current;
|
|
5865
|
-
if (E.current = !1, u === "click" && C ||
|
|
5865
|
+
if (E.current = !1, u === "click" && C || S || typeof y == "function" && !y(P))
|
|
5866
5866
|
return;
|
|
5867
5867
|
const k = Ae(P), I = "[" + Je("inert") + "]", A = ye(o.floating).querySelectorAll(I);
|
|
5868
5868
|
let _ = X(k) ? k : null;
|
|
@@ -5883,11 +5883,11 @@ function Aa(e, t) {
|
|
|
5883
5883
|
if (le && ce(k).direction === "rtl" && (de = P.offsetX <= k.offsetWidth - k.clientWidth), de || ne && P.offsetY > k.clientHeight)
|
|
5884
5884
|
return;
|
|
5885
5885
|
}
|
|
5886
|
-
const pe = (
|
|
5886
|
+
const pe = (T = a.current.floatingContext) == null ? void 0 : T.nodeId, Ce = m && Lt(m.nodesRef.current, pe).some((ne) => {
|
|
5887
5887
|
var le;
|
|
5888
|
-
return
|
|
5888
|
+
return St(P, (le = ne.context) == null ? void 0 : le.elements.floating);
|
|
5889
5889
|
});
|
|
5890
|
-
if (
|
|
5890
|
+
if (St(P, o.floating) || St(P, o.domReference) || Ce)
|
|
5891
5891
|
return;
|
|
5892
5892
|
const Ze = m ? Lt(m.nodesRef.current, pe) : [];
|
|
5893
5893
|
if (Ze.length > 0) {
|
|
@@ -5903,12 +5903,12 @@ function Aa(e, t) {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
r(!1, P, "outside-press");
|
|
5905
5905
|
}), N = xe((P) => {
|
|
5906
|
-
var
|
|
5907
|
-
const
|
|
5906
|
+
var T;
|
|
5907
|
+
const S = () => {
|
|
5908
5908
|
var C;
|
|
5909
|
-
V(P), (C = Ae(P)) == null || C.removeEventListener(u,
|
|
5909
|
+
V(P), (C = Ae(P)) == null || C.removeEventListener(u, S);
|
|
5910
5910
|
};
|
|
5911
|
-
(
|
|
5911
|
+
(T = Ae(P)) == null || T.addEventListener(u, S);
|
|
5912
5912
|
});
|
|
5913
5913
|
p.useEffect(() => {
|
|
5914
5914
|
if (!n || !i)
|
|
@@ -5917,18 +5917,18 @@ function Aa(e, t) {
|
|
|
5917
5917
|
function P(C) {
|
|
5918
5918
|
r(!1, C, "ancestor-scroll");
|
|
5919
5919
|
}
|
|
5920
|
-
const
|
|
5921
|
-
l &&
|
|
5922
|
-
let
|
|
5923
|
-
return b && (X(o.domReference) && (
|
|
5920
|
+
const T = ye(o.floating);
|
|
5921
|
+
l && T.addEventListener("keydown", j ? Z : q, j), y && T.addEventListener(u, U ? N : V, U);
|
|
5922
|
+
let S = [];
|
|
5923
|
+
return b && (X(o.domReference) && (S = Re(o.domReference)), X(o.floating) && (S = S.concat(Re(o.floating))), !X(o.reference) && o.reference && o.reference.contextElement && (S = S.concat(Re(o.reference.contextElement)))), S = S.filter((C) => {
|
|
5924
5924
|
var k;
|
|
5925
|
-
return C !== ((k =
|
|
5926
|
-
}),
|
|
5925
|
+
return C !== ((k = T.defaultView) == null ? void 0 : k.visualViewport);
|
|
5926
|
+
}), S.forEach((C) => {
|
|
5927
5927
|
C.addEventListener("scroll", P, {
|
|
5928
5928
|
passive: !0
|
|
5929
5929
|
});
|
|
5930
5930
|
}), () => {
|
|
5931
|
-
l &&
|
|
5931
|
+
l && T.removeEventListener("keydown", j ? Z : q, j), y && T.removeEventListener(u, U ? N : V, U), S.forEach((C) => {
|
|
5932
5932
|
C.removeEventListener("scroll", P);
|
|
5933
5933
|
});
|
|
5934
5934
|
};
|
|
@@ -6317,12 +6317,13 @@ const ma = Number(
|
|
|
6317
6317
|
};
|
|
6318
6318
|
}, []), { documentWidth: e, documentHeight: n, screenSize: o };
|
|
6319
6319
|
}, va = Gn(
|
|
6320
|
-
({ label: e, isChecked: t, onSelectionChange: n, onClick: r, disabled: o, className: a },
|
|
6320
|
+
({ label: e, isChecked: t, onSelectionChange: n, onClick: r, disabled: o, className: a, labelPosition: i = "right" }, l) => /* @__PURE__ */ B.jsxs(
|
|
6321
6321
|
"label",
|
|
6322
6322
|
{
|
|
6323
6323
|
className: it(
|
|
6324
|
-
"custom-checkbox ds-flex ds-cursor-pointer ds-items-center ds-gap-2 ds-text-
|
|
6324
|
+
"custom-checkbox ds-flex ds-cursor-pointer ds-items-center ds-gap-2 ds-text-xSmallSubheadRegular ds-tablet:ds-text-xSmallSubheadRegular ds-desktop:ds-text-mediumSubHeadRegular",
|
|
6325
6325
|
o && "ds-cursor-default",
|
|
6326
|
+
i === "left" && "ds-flex-row-reverse",
|
|
6326
6327
|
a
|
|
6327
6328
|
),
|
|
6328
6329
|
children: [
|
|
@@ -6336,17 +6337,17 @@ const ma = Number(
|
|
|
6336
6337
|
checked: t,
|
|
6337
6338
|
onChange: n,
|
|
6338
6339
|
disabled: o,
|
|
6339
|
-
ref:
|
|
6340
|
+
ref: l
|
|
6340
6341
|
}
|
|
6341
6342
|
),
|
|
6342
|
-
e && /* @__PURE__ */ B.jsx("div", { className: "ds-flex-grow", children: e }),
|
|
6343
6343
|
/* @__PURE__ */ B.jsx(
|
|
6344
6344
|
"div",
|
|
6345
6345
|
{
|
|
6346
6346
|
className: "checkmark ds-flex-shrink-0",
|
|
6347
6347
|
onClick: r
|
|
6348
6348
|
}
|
|
6349
|
-
)
|
|
6349
|
+
),
|
|
6350
|
+
e && /* @__PURE__ */ B.jsx("div", { className: "ds-flex-grow", children: e })
|
|
6350
6351
|
]
|
|
6351
6352
|
}
|
|
6352
6353
|
)
|
|
@@ -6365,7 +6366,7 @@ export {
|
|
|
6365
6366
|
Da as f,
|
|
6366
6367
|
_a as g,
|
|
6367
6368
|
La as h,
|
|
6368
|
-
|
|
6369
|
+
Ta as i,
|
|
6369
6370
|
B as j,
|
|
6370
6371
|
Ea as k,
|
|
6371
6372
|
Bo as l,
|
|
@@ -6379,7 +6380,7 @@ export {
|
|
|
6379
6380
|
Dt as t,
|
|
6380
6381
|
Oa as u,
|
|
6381
6382
|
Pa as v,
|
|
6382
|
-
|
|
6383
|
+
Sa as w,
|
|
6383
6384
|
pa as x,
|
|
6384
6385
|
$n as y
|
|
6385
6386
|
};
|