@arkitektbedriftene/fe-lib 0.3.18 → 0.3.19
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/{DropdownMenu-cae60146.js → DropdownMenu-1eb444b3.js} +96 -97
- package/dist/rich-text/Editor.d.ts +11 -1
- package/dist/rich-text/Plugins/CheckListPlugin.d.ts +10 -0
- package/dist/rich-text/Plugins/ParsePlugin.d.ts +4 -0
- package/dist/rich-text/Plugins/Plugins.d.ts +2 -0
- package/dist/rich-text/state.d.ts +4 -1
- package/dist/rich-text.es.js +530 -309
- package/dist/ui/components/Alert.d.ts +0 -1
- package/dist/ui/components/Badge.d.ts +0 -1
- package/dist/ui/components/Box.d.ts +0 -1
- package/dist/ui/components/Button.d.ts +0 -1
- package/dist/ui/components/Menu/DropdownMenu.d.ts +0 -3
- package/dist/ui/components/Menu/Menu.d.ts +0 -3
- package/dist/ui/components/OverlayCard.d.ts +0 -1
- package/dist/ui/components/Popover.d.ts +0 -1
- package/dist/ui/components/Spinner.d.ts +0 -1
- package/dist/ui/components/Toolbar.d.ts +0 -4
- package/dist/ui/stitches.config.d.ts +0 -6
- package/dist/ui.es.js +2 -2
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
12
12
|
const o = ((i) => JSON.stringify(i, Ln))(t);
|
|
13
13
|
return o in e ? e[o] : e[o] = n(t, ...r);
|
|
14
14
|
};
|
|
15
|
-
}, me = Symbol.for("sxs.internal"),
|
|
15
|
+
}, me = Symbol.for("sxs.internal"), ft = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
|
|
16
16
|
for (const t in e)
|
|
17
17
|
return !0;
|
|
18
18
|
return !1;
|
|
19
|
-
}, { hasOwnProperty: Fn } = Object.prototype,
|
|
19
|
+
}, { hasOwnProperty: Fn } = Object.prototype, st = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wn) : [t]), Rt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Nn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${st(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${st(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, te = (e) => e ? e + "-" : "", en = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? te(t) + (l.includes("$") ? "" : te(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
|
|
20
20
|
let i, s, l;
|
|
21
21
|
const a = (c, m, d) => {
|
|
22
22
|
let f, u;
|
|
@@ -31,8 +31,8 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
31
31
|
s = C, g(C(u)), s = null;
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
|
-
} else if (S in
|
|
35
|
-
const C =
|
|
34
|
+
} else if (S in Rt) {
|
|
35
|
+
const C = Rt[S];
|
|
36
36
|
if (C !== l) {
|
|
37
37
|
l = C, g(C(u)), l = null;
|
|
38
38
|
continue;
|
|
@@ -43,21 +43,21 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
43
43
|
return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(et, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? L.replace(et, (I, R, $) => Number(R) + O * (D === ">" ? -1 : 1) + $) : L) : "") + ")";
|
|
44
44
|
})), k) {
|
|
45
45
|
const C = x ? d.concat(f) : [...d], A = x ? [...m] : Nn(m, f.split(Hn));
|
|
46
|
-
i !== void 0 && o(
|
|
46
|
+
i !== void 0 && o(Et(...i)), i = void 0, a(u, A, C);
|
|
47
47
|
} else
|
|
48
|
-
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : en(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${
|
|
48
|
+
i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : en(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${st(f)}:`}${u}`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
var w, h;
|
|
52
52
|
};
|
|
53
|
-
g(c), i !== void 0 && o(
|
|
53
|
+
g(c), i !== void 0 && o(Et(...i)), i = void 0;
|
|
54
54
|
};
|
|
55
55
|
a(e, t, n);
|
|
56
|
-
},
|
|
56
|
+
}, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
|
|
57
57
|
let n, r = "";
|
|
58
58
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
59
|
-
r =
|
|
60
|
-
return
|
|
59
|
+
r = Ct(n % 52) + r;
|
|
60
|
+
return Ct(n % 52) + r;
|
|
61
61
|
})(((t, n) => {
|
|
62
62
|
let r = n.length;
|
|
63
63
|
for (; r; )
|
|
@@ -149,7 +149,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
149
149
|
} catch {
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
}, Oe = Symbol(), Gn = Ae(),
|
|
152
|
+
}, Oe = Symbol(), Gn = Ae(), kt = (e, t) => Gn(e, () => (...n) => {
|
|
153
153
|
let r = { type: null, composers: /* @__PURE__ */ new Set() };
|
|
154
154
|
for (const o of n)
|
|
155
155
|
if (o != null)
|
|
@@ -171,7 +171,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
171
171
|
for (const g in u) {
|
|
172
172
|
const p = { [f]: String(g) };
|
|
173
173
|
String(g) === "undefined" && c.push(f);
|
|
174
|
-
const w = u[g], h = [p, w, !
|
|
174
|
+
const w = u[g], h = [p, w, !St(w)];
|
|
175
175
|
s.push(h);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
@@ -182,7 +182,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
182
182
|
u = typeof u == "object" && u || {};
|
|
183
183
|
for (const w in g)
|
|
184
184
|
g[w] = String(g[w]);
|
|
185
|
-
const p = [g, u, !
|
|
185
|
+
const p = [g, u, !St(u)];
|
|
186
186
|
l.push(p);
|
|
187
187
|
}
|
|
188
188
|
return [i, r, s, l, a, c];
|
|
@@ -210,7 +210,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
210
210
|
n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ee(x, [`.${h}`], [], e, (A) => {
|
|
211
211
|
a.styled.apply(A);
|
|
212
212
|
}));
|
|
213
|
-
const k =
|
|
213
|
+
const k = Tt(P, g, e.media), C = Tt(S, g, e.media, !0);
|
|
214
214
|
for (const A of k)
|
|
215
215
|
if (A !== void 0)
|
|
216
216
|
for (const [T, B, D] of A) {
|
|
@@ -241,7 +241,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
241
241
|
const w = u.className = [...p].join(" ");
|
|
242
242
|
return { type: t.type, className: w, selector: c, props: u, toString: () => w, deferredInjector: l };
|
|
243
243
|
};
|
|
244
|
-
return
|
|
244
|
+
return ft(m, { className: r, selector: c, [me]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
|
|
245
245
|
}, Zn = (e) => {
|
|
246
246
|
let t = "";
|
|
247
247
|
const n = [], r = {}, o = [];
|
|
@@ -253,7 +253,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return [t, n, r, new Set(o)];
|
|
256
|
-
},
|
|
256
|
+
}, Tt = (e, t, n, r) => {
|
|
257
257
|
const o = [];
|
|
258
258
|
e:
|
|
259
259
|
for (let [i, s, l] of e) {
|
|
@@ -305,7 +305,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
305
305
|
}
|
|
306
306
|
return "";
|
|
307
307
|
};
|
|
308
|
-
return
|
|
308
|
+
return ft(r, { toString: r });
|
|
309
309
|
}), tr = Ae(), nr = (e, t) => tr(e, () => (n) => {
|
|
310
310
|
const r = `${te(e.prefix)}k-${ge(n)}`, o = () => {
|
|
311
311
|
if (!t.rules.global.cache.has(r)) {
|
|
@@ -317,7 +317,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
317
317
|
}
|
|
318
318
|
return r;
|
|
319
319
|
};
|
|
320
|
-
return
|
|
320
|
+
return ft(o, { get name() {
|
|
321
321
|
return o();
|
|
322
322
|
}, toString: o });
|
|
323
323
|
}), rr = class {
|
|
@@ -359,7 +359,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
359
359
|
let r = !1;
|
|
360
360
|
const o = sr(n, (i) => {
|
|
361
361
|
r = !0;
|
|
362
|
-
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Mn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Kn(a), f = { css:
|
|
362
|
+
const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Mn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Kn(a), f = { css: kt(m, d), globalCss: er(m, d), keyframes: nr(m, d), createTheme: ir(m, d), reset() {
|
|
363
363
|
d.reset(), f.theme.toString();
|
|
364
364
|
}, theme: {}, sheet: d, config: m, prefix: s, getCssText: d.toString, toString: d.toString };
|
|
365
365
|
return String(f.theme = f.createTheme(c)), f;
|
|
@@ -367,7 +367,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
367
367
|
return r || o.reset(), o;
|
|
368
368
|
})(e);
|
|
369
369
|
return t.styled = (({ config: n, sheet: r }) => lr(n, () => {
|
|
370
|
-
const o =
|
|
370
|
+
const o = kt(n, r);
|
|
371
371
|
return (...i) => {
|
|
372
372
|
const s = o(...i), l = s[me].type, a = xe.forwardRef((c, m) => {
|
|
373
373
|
const d = c && c.as || l, { props: f, deferredInjector: u } = s(c);
|
|
@@ -377,8 +377,8 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
|
|
|
377
377
|
};
|
|
378
378
|
}))(t), t;
|
|
379
379
|
};
|
|
380
|
-
let
|
|
381
|
-
const
|
|
380
|
+
let It = 9999;
|
|
381
|
+
const Pt = () => (It--, It), { styled: V, css: mt, keyframes: Be, globalCss: hi } = ar({
|
|
382
382
|
theme: {
|
|
383
383
|
colors: {
|
|
384
384
|
gray50: "#F9FAFA",
|
|
@@ -496,9 +496,8 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
|
|
|
496
496
|
* By using createLayerBelow() we can order the list of layers.
|
|
497
497
|
* Layers higher up will be on top of layers lower down.
|
|
498
498
|
*/
|
|
499
|
-
toast:
|
|
500
|
-
overlayCard:
|
|
501
|
-
modal: tt()
|
|
499
|
+
toast: Pt(),
|
|
500
|
+
overlayCard: Pt()
|
|
502
501
|
}
|
|
503
502
|
},
|
|
504
503
|
media: {
|
|
@@ -815,7 +814,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
|
|
|
815
814
|
}), wr = Be({
|
|
816
815
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
817
816
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
818
|
-
}), $r =
|
|
817
|
+
}), $r = mt({
|
|
819
818
|
backgroundColor: "white",
|
|
820
819
|
boxShadow: "$overlayCard",
|
|
821
820
|
borderRadius: "$sm",
|
|
@@ -825,7 +824,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
|
|
|
825
824
|
// so for other popups that uses `OverlayCard` to work
|
|
826
825
|
// we need to explicitly set this.
|
|
827
826
|
pointerEvents: "auto"
|
|
828
|
-
}), Sr =
|
|
827
|
+
}), Sr = mt({
|
|
829
828
|
animationDuration: "400ms",
|
|
830
829
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
831
830
|
willChange: "transform, opacity",
|
|
@@ -860,7 +859,7 @@ function N(e) {
|
|
|
860
859
|
function Z(e) {
|
|
861
860
|
return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
|
|
862
861
|
}
|
|
863
|
-
function
|
|
862
|
+
function lt(e) {
|
|
864
863
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
865
864
|
}
|
|
866
865
|
function Fe(e) {
|
|
@@ -875,20 +874,20 @@ function Fe(e) {
|
|
|
875
874
|
function Rr(e) {
|
|
876
875
|
return ["table", "td", "th"].includes(oe(e));
|
|
877
876
|
}
|
|
878
|
-
function
|
|
879
|
-
const t =
|
|
877
|
+
function gt(e) {
|
|
878
|
+
const t = pt(), n = J(e);
|
|
880
879
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
881
880
|
}
|
|
882
881
|
function Er(e) {
|
|
883
882
|
let t = he(e);
|
|
884
883
|
for (; Z(t) && !Te(t); ) {
|
|
885
|
-
if (
|
|
884
|
+
if (gt(t))
|
|
886
885
|
return t;
|
|
887
886
|
t = he(t);
|
|
888
887
|
}
|
|
889
888
|
return null;
|
|
890
889
|
}
|
|
891
|
-
function
|
|
890
|
+
function pt() {
|
|
892
891
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
893
892
|
}
|
|
894
893
|
function Te(e) {
|
|
@@ -913,10 +912,10 @@ function he(e) {
|
|
|
913
912
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
914
913
|
e.assignedSlot || // DOM Element detected.
|
|
915
914
|
e.parentNode || // ShadowRoot detected.
|
|
916
|
-
|
|
915
|
+
lt(e) && e.host || // Fallback.
|
|
917
916
|
ne(e)
|
|
918
917
|
);
|
|
919
|
-
return
|
|
918
|
+
return lt(t) ? t.host : t;
|
|
920
919
|
}
|
|
921
920
|
function rn(e) {
|
|
922
921
|
const t = he(e);
|
|
@@ -942,7 +941,7 @@ function pe(e, t) {
|
|
|
942
941
|
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
943
942
|
if (e.contains(t))
|
|
944
943
|
return !0;
|
|
945
|
-
if (n &&
|
|
944
|
+
if (n && lt(n)) {
|
|
946
945
|
let r = t;
|
|
947
946
|
for (; r; ) {
|
|
948
947
|
if (e === r)
|
|
@@ -968,7 +967,7 @@ function Ir(e) {
|
|
|
968
967
|
function fe(e) {
|
|
969
968
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
970
969
|
}
|
|
971
|
-
function
|
|
970
|
+
function tt(e, t) {
|
|
972
971
|
if (t == null)
|
|
973
972
|
return !1;
|
|
974
973
|
if ("composedPath" in e)
|
|
@@ -1027,9 +1026,9 @@ function Dr(e, t, n) {
|
|
|
1027
1026
|
}
|
|
1028
1027
|
function Mr(e) {
|
|
1029
1028
|
const t = Ke(e);
|
|
1030
|
-
return [
|
|
1029
|
+
return [at(e), t, at(t)];
|
|
1031
1030
|
}
|
|
1032
|
-
function
|
|
1031
|
+
function at(e) {
|
|
1033
1032
|
return e.replace(/start|end/g, (t) => Or[t]);
|
|
1034
1033
|
}
|
|
1035
1034
|
function Lr(e, t, n) {
|
|
@@ -1048,7 +1047,7 @@ function Lr(e, t, n) {
|
|
|
1048
1047
|
function Fr(e, t, n, r) {
|
|
1049
1048
|
const o = Ne(e);
|
|
1050
1049
|
let i = Lr(se(e), n === "start", r);
|
|
1051
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
1050
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(at)))), i;
|
|
1052
1051
|
}
|
|
1053
1052
|
function Ke(e) {
|
|
1054
1053
|
return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
|
|
@@ -1188,7 +1187,7 @@ const zr = async (e, t, n) => {
|
|
|
1188
1187
|
middlewareData: u
|
|
1189
1188
|
};
|
|
1190
1189
|
};
|
|
1191
|
-
async function
|
|
1190
|
+
async function ht(e, t) {
|
|
1192
1191
|
var n;
|
|
1193
1192
|
t === void 0 && (t = {});
|
|
1194
1193
|
const {
|
|
@@ -1258,7 +1257,7 @@ const jr = function(e) {
|
|
|
1258
1257
|
return {};
|
|
1259
1258
|
const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ke(l)] : Mr(l));
|
|
1260
1259
|
!f && g !== "none" && S.push(...Fr(l, p, g, P));
|
|
1261
|
-
const k = [l, ...S], C = await
|
|
1260
|
+
const k = [l, ...S], C = await ht(t, w), A = [];
|
|
1262
1261
|
let T = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1263
1262
|
if (m && A.push(C[h]), d) {
|
|
1264
1263
|
const M = Dr(o, s, P);
|
|
@@ -1382,7 +1381,7 @@ const Vr = function(e) {
|
|
|
1382
1381
|
} = We(e, t), c = {
|
|
1383
1382
|
x: n,
|
|
1384
1383
|
y: r
|
|
1385
|
-
}, m = await
|
|
1384
|
+
}, m = await ht(t, a), d = ze(se(o)), f = on(d);
|
|
1386
1385
|
let u = c[f], g = c[d];
|
|
1387
1386
|
if (i) {
|
|
1388
1387
|
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[w], P = u - m[h];
|
|
@@ -1420,7 +1419,7 @@ const Vr = function(e) {
|
|
|
1420
1419
|
apply: s = () => {
|
|
1421
1420
|
},
|
|
1422
1421
|
...l
|
|
1423
|
-
} = We(e, t), a = await
|
|
1422
|
+
} = We(e, t), a = await ht(t, l), c = se(n), m = Ne(n), d = ze(n) === "y", {
|
|
1424
1423
|
width: f,
|
|
1425
1424
|
height: u
|
|
1426
1425
|
} = r.floating;
|
|
@@ -1463,11 +1462,11 @@ function an(e) {
|
|
|
1463
1462
|
$: l
|
|
1464
1463
|
};
|
|
1465
1464
|
}
|
|
1466
|
-
function
|
|
1465
|
+
function bt(e) {
|
|
1467
1466
|
return N(e) ? e : e.contextElement;
|
|
1468
1467
|
}
|
|
1469
1468
|
function ke(e) {
|
|
1470
|
-
const t =
|
|
1469
|
+
const t = bt(e);
|
|
1471
1470
|
if (!Z(t))
|
|
1472
1471
|
return ie(1);
|
|
1473
1472
|
const n = t.getBoundingClientRect(), {
|
|
@@ -1484,7 +1483,7 @@ function ke(e) {
|
|
|
1484
1483
|
const Kr = /* @__PURE__ */ ie(0);
|
|
1485
1484
|
function cn(e) {
|
|
1486
1485
|
const t = q(e);
|
|
1487
|
-
return !
|
|
1486
|
+
return !pt() || !t.visualViewport ? Kr : {
|
|
1488
1487
|
x: t.visualViewport.offsetLeft,
|
|
1489
1488
|
y: t.visualViewport.offsetTop
|
|
1490
1489
|
};
|
|
@@ -1494,7 +1493,7 @@ function Xr(e, t, n) {
|
|
|
1494
1493
|
}
|
|
1495
1494
|
function be(e, t, n, r) {
|
|
1496
1495
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1497
|
-
const o = e.getBoundingClientRect(), i =
|
|
1496
|
+
const o = e.getBoundingClientRect(), i = bt(e);
|
|
1498
1497
|
let s = ie(1);
|
|
1499
1498
|
t && (r ? N(r) && (s = ke(r)) : s = ke(e));
|
|
1500
1499
|
const l = Xr(i, n, r) ? cn(i) : ie(0);
|
|
@@ -1572,7 +1571,7 @@ function Jr(e, t) {
|
|
|
1572
1571
|
let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
1573
1572
|
if (o) {
|
|
1574
1573
|
i = o.width, s = o.height;
|
|
1575
|
-
const c =
|
|
1574
|
+
const c = pt();
|
|
1576
1575
|
(!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
|
|
1577
1576
|
}
|
|
1578
1577
|
return {
|
|
@@ -1621,7 +1620,7 @@ function eo(e, t) {
|
|
|
1621
1620
|
const i = J(e).position === "fixed";
|
|
1622
1621
|
let s = i ? he(e) : e;
|
|
1623
1622
|
for (; N(s) && !Te(s); ) {
|
|
1624
|
-
const l = J(s), a =
|
|
1623
|
+
const l = J(s), a = gt(s);
|
|
1625
1624
|
!a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && fn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = he(s);
|
|
1626
1625
|
}
|
|
1627
1626
|
return t.set(e, r), r;
|
|
@@ -1685,7 +1684,7 @@ function mn(e, t) {
|
|
|
1685
1684
|
let r = Dt(e, t);
|
|
1686
1685
|
for (; r && Rr(r) && J(r).position === "static"; )
|
|
1687
1686
|
r = Dt(r, t);
|
|
1688
|
-
return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !
|
|
1687
|
+
return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !gt(r)) ? n : r || Er(e) || n;
|
|
1689
1688
|
}
|
|
1690
1689
|
const oo = async function(e) {
|
|
1691
1690
|
const t = this.getOffsetParent || mn, n = this.getDimensions;
|
|
@@ -1767,7 +1766,7 @@ function ao(e, t, n, r) {
|
|
|
1767
1766
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1768
1767
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1769
1768
|
animationFrame: a = !1
|
|
1770
|
-
} = r, c =
|
|
1769
|
+
} = r, c = bt(e), m = o || i ? [...c ? re(c) : [], ...re(t)] : [];
|
|
1771
1770
|
m.forEach((h) => {
|
|
1772
1771
|
o && h.addEventListener("scroll", n, {
|
|
1773
1772
|
passive: !0
|
|
@@ -1955,7 +1954,7 @@ function mo(e) {
|
|
|
1955
1954
|
* tabbable 6.2.0
|
|
1956
1955
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1957
1956
|
*/
|
|
1958
|
-
var go = ["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])"],
|
|
1957
|
+
var go = ["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])"], ct = /* @__PURE__ */ go.join(","), pn = typeof Element > "u", Me = pn ? function() {
|
|
1959
1958
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ue = !pn && Element.prototype.getRootNode ? function(e) {
|
|
1960
1959
|
var t;
|
|
1961
1960
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -1972,8 +1971,8 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1972
1971
|
}, ho = function(t, n, r) {
|
|
1973
1972
|
if (qe(t))
|
|
1974
1973
|
return [];
|
|
1975
|
-
var o = Array.prototype.slice.apply(t.querySelectorAll(
|
|
1976
|
-
return n && Me.call(t,
|
|
1974
|
+
var o = Array.prototype.slice.apply(t.querySelectorAll(ct));
|
|
1975
|
+
return n && Me.call(t, ct) && o.unshift(t), o = o.filter(r), o;
|
|
1977
1976
|
}, bo = function e(t, n, r) {
|
|
1978
1977
|
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1979
1978
|
var s = i.shift();
|
|
@@ -1985,7 +1984,7 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1985
1984
|
candidates: c
|
|
1986
1985
|
});
|
|
1987
1986
|
} else {
|
|
1988
|
-
var m = Me.call(s,
|
|
1987
|
+
var m = Me.call(s, ct);
|
|
1989
1988
|
m && r.filter(s) && (n || !t.includes(s)) && o.push(s);
|
|
1990
1989
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1991
1990
|
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !qe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
@@ -2145,27 +2144,27 @@ function Re(e) {
|
|
|
2145
2144
|
}, []);
|
|
2146
2145
|
}
|
|
2147
2146
|
var Q = typeof document < "u" ? Zt : Jt;
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2147
|
+
function ut() {
|
|
2148
|
+
return ut = Object.assign ? Object.assign.bind() : function(e) {
|
|
2150
2149
|
for (var t = 1; t < arguments.length; t++) {
|
|
2151
2150
|
var n = arguments[t];
|
|
2152
2151
|
for (var r in n)
|
|
2153
2152
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2154
2153
|
}
|
|
2155
2154
|
return e;
|
|
2156
|
-
},
|
|
2155
|
+
}, ut.apply(this, arguments);
|
|
2157
2156
|
}
|
|
2158
|
-
let
|
|
2157
|
+
let nt = !1, Do = 0;
|
|
2159
2158
|
const Nt = () => "floating-ui-" + Do++;
|
|
2160
2159
|
function Mo() {
|
|
2161
|
-
const [e, t] = y.useState(() =>
|
|
2160
|
+
const [e, t] = y.useState(() => nt ? Nt() : void 0);
|
|
2162
2161
|
return Q(() => {
|
|
2163
2162
|
e == null && t(Nt());
|
|
2164
2163
|
}, []), y.useEffect(() => {
|
|
2165
|
-
|
|
2164
|
+
nt || (nt = !0);
|
|
2166
2165
|
}, []), e;
|
|
2167
2166
|
}
|
|
2168
|
-
const Lo = y[/* @__PURE__ */ "useId".toString()],
|
|
2167
|
+
const Lo = y[/* @__PURE__ */ "useId".toString()], yt = Lo || Mo;
|
|
2169
2168
|
function Fo() {
|
|
2170
2169
|
const e = /* @__PURE__ */ new Map();
|
|
2171
2170
|
return {
|
|
@@ -2182,10 +2181,10 @@ function Fo() {
|
|
|
2182
2181
|
}
|
|
2183
2182
|
};
|
|
2184
2183
|
}
|
|
2185
|
-
const Wo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null),
|
|
2184
|
+
const Wo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), vt = () => {
|
|
2186
2185
|
var e;
|
|
2187
2186
|
return ((e = y.useContext(Wo)) == null ? void 0 : e.id) || null;
|
|
2188
|
-
},
|
|
2187
|
+
}, xt = () => y.useContext(No);
|
|
2189
2188
|
function Qe(e) {
|
|
2190
2189
|
return "data-floating-ui-" + e;
|
|
2191
2190
|
}
|
|
@@ -2196,7 +2195,7 @@ function Ce(e) {
|
|
|
2196
2195
|
}), t;
|
|
2197
2196
|
}
|
|
2198
2197
|
const zt = /* @__PURE__ */ Qe("safe-polygon");
|
|
2199
|
-
function
|
|
2198
|
+
function rt(e, t, n) {
|
|
2200
2199
|
return n && !_e(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
2201
2200
|
}
|
|
2202
2201
|
function zo(e, t) {
|
|
@@ -2218,7 +2217,7 @@ function zo(e, t) {
|
|
|
2218
2217
|
mouseOnly: f = !1,
|
|
2219
2218
|
restMs: u = 0,
|
|
2220
2219
|
move: g = !0
|
|
2221
|
-
} = t, p =
|
|
2220
|
+
} = t, p = xt(), w = vt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), A = y.useRef(!0), T = y.useRef(!1), B = y.useRef(() => {
|
|
2222
2221
|
}), D = y.useCallback(() => {
|
|
2223
2222
|
var b;
|
|
2224
2223
|
const v = (b = o.current.openEvent) == null ? void 0 : b.type;
|
|
@@ -2249,7 +2248,7 @@ function zo(e, t) {
|
|
|
2249
2248
|
}, [l, n, r, c, h, D]);
|
|
2250
2249
|
const L = y.useCallback(function(b, v, I) {
|
|
2251
2250
|
v === void 0 && (v = !0), I === void 0 && (I = "hover");
|
|
2252
|
-
const R =
|
|
2251
|
+
const R = rt(x.current, "close", P.current);
|
|
2253
2252
|
R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, I), R)) : v && (clearTimeout(S.current), r(!1, b, I));
|
|
2254
2253
|
}, [x, r]), M = y.useCallback(() => {
|
|
2255
2254
|
B.current(), k.current = void 0;
|
|
@@ -2266,9 +2265,9 @@ function zo(e, t) {
|
|
|
2266
2265
|
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
2267
2266
|
}
|
|
2268
2267
|
function v($) {
|
|
2269
|
-
if (clearTimeout(S.current), A.current = !1, f && !_e(P.current) || u > 0 &&
|
|
2268
|
+
if (clearTimeout(S.current), A.current = !1, f && !_e(P.current) || u > 0 && rt(x.current, "open") === 0)
|
|
2270
2269
|
return;
|
|
2271
|
-
const F =
|
|
2270
|
+
const F = rt(x.current, "open", P.current);
|
|
2272
2271
|
F ? S.current = setTimeout(() => {
|
|
2273
2272
|
r(!0, $, "hover");
|
|
2274
2273
|
}, F) : r(!0, $, "hover");
|
|
@@ -2394,7 +2393,7 @@ function jo() {
|
|
|
2394
2393
|
function Ho() {
|
|
2395
2394
|
return wn(document.body, "prev");
|
|
2396
2395
|
}
|
|
2397
|
-
function
|
|
2396
|
+
function ot(e, t) {
|
|
2398
2397
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
2399
2398
|
return !r || !pe(n, r);
|
|
2400
2399
|
}
|
|
@@ -2440,14 +2439,14 @@ const Ht = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
2440
2439
|
[Qe("focus-guard")]: "",
|
|
2441
2440
|
style: $n
|
|
2442
2441
|
};
|
|
2443
|
-
return /* @__PURE__ */ y.createElement("span",
|
|
2442
|
+
return /* @__PURE__ */ y.createElement("span", ut({}, t, i));
|
|
2444
2443
|
}), Sn = /* @__PURE__ */ y.createContext(null), Vt = /* @__PURE__ */ Qe("portal");
|
|
2445
2444
|
function Ko(e) {
|
|
2446
2445
|
let {
|
|
2447
2446
|
id: t,
|
|
2448
2447
|
root: n
|
|
2449
2448
|
} = e === void 0 ? {} : e;
|
|
2450
|
-
const [r, o] = y.useState(null), i =
|
|
2449
|
+
const [r, o] = y.useState(null), i = yt(), s = Go(), l = y.useRef(null);
|
|
2451
2450
|
return Q(() => () => {
|
|
2452
2451
|
r == null || r.remove(), queueMicrotask(() => {
|
|
2453
2452
|
l.current = null;
|
|
@@ -2492,7 +2491,7 @@ function Xo(e) {
|
|
|
2492
2491
|
if (!i || !o || s != null && s.modal)
|
|
2493
2492
|
return;
|
|
2494
2493
|
function u(g) {
|
|
2495
|
-
i &&
|
|
2494
|
+
i && ot(g) && (g.type === "focusin" ? _o : Vo)(i);
|
|
2496
2495
|
}
|
|
2497
2496
|
return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
|
|
2498
2497
|
i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
|
|
@@ -2511,7 +2510,7 @@ function Xo(e) {
|
|
|
2511
2510
|
"data-type": "outside",
|
|
2512
2511
|
ref: a,
|
|
2513
2512
|
onFocus: (u) => {
|
|
2514
|
-
if (
|
|
2513
|
+
if (ot(u, i)) {
|
|
2515
2514
|
var g;
|
|
2516
2515
|
(g = m.current) == null || g.focus();
|
|
2517
2516
|
} else {
|
|
@@ -2526,7 +2525,7 @@ function Xo(e) {
|
|
|
2526
2525
|
"data-type": "outside",
|
|
2527
2526
|
ref: c,
|
|
2528
2527
|
onFocus: (u) => {
|
|
2529
|
-
if (
|
|
2528
|
+
if (ot(u, i)) {
|
|
2530
2529
|
var g;
|
|
2531
2530
|
(g = d.current) == null || g.focus();
|
|
2532
2531
|
} else {
|
|
@@ -2620,7 +2619,7 @@ function Jo(e, t) {
|
|
|
2620
2619
|
ancestorScroll: p = !1,
|
|
2621
2620
|
bubbles: w,
|
|
2622
2621
|
capture: h
|
|
2623
|
-
} = t, x =
|
|
2622
|
+
} = t, x = xt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, k = y.useRef(!1), C = y.useRef(!1), {
|
|
2624
2623
|
escapeKey: A,
|
|
2625
2624
|
outsidePress: T
|
|
2626
2625
|
} = Kt(w), {
|
|
@@ -2676,9 +2675,9 @@ function Jo(e, t) {
|
|
|
2676
2675
|
}
|
|
2677
2676
|
const ye = x && Ve(x.nodesRef.current, o).some((H) => {
|
|
2678
2677
|
var X;
|
|
2679
|
-
return
|
|
2678
|
+
return tt(v, (X = H.context) == null ? void 0 : X.elements.floating);
|
|
2680
2679
|
});
|
|
2681
|
-
if (
|
|
2680
|
+
if (tt(v, l) || tt(v, s) || ye)
|
|
2682
2681
|
return;
|
|
2683
2682
|
const le = x ? Ve(x.nodesRef.current, o) : [];
|
|
2684
2683
|
if (le.length > 0) {
|
|
@@ -2746,8 +2745,8 @@ function Jo(e, t) {
|
|
|
2746
2745
|
}
|
|
2747
2746
|
} : {}, [c, u, f, g, r, L]);
|
|
2748
2747
|
}
|
|
2749
|
-
let
|
|
2750
|
-
process.env.NODE_ENV !== "production" && (
|
|
2748
|
+
let dt;
|
|
2749
|
+
process.env.NODE_ENV !== "production" && (dt = /* @__PURE__ */ new Set());
|
|
2751
2750
|
function Qo(e) {
|
|
2752
2751
|
var t;
|
|
2753
2752
|
e === void 0 && (e = {});
|
|
@@ -2761,20 +2760,20 @@ function Qo(e) {
|
|
|
2761
2760
|
const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
2762
2761
|
if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
|
|
2763
2762
|
var s;
|
|
2764
|
-
if (!((s =
|
|
2763
|
+
if (!((s = dt) != null && s.has(T))) {
|
|
2765
2764
|
var l;
|
|
2766
|
-
(l =
|
|
2765
|
+
(l = dt) == null || l.add(T), console.error(T);
|
|
2767
2766
|
}
|
|
2768
2767
|
}
|
|
2769
2768
|
}
|
|
2770
|
-
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = mo(e), f =
|
|
2769
|
+
const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = mo(e), f = xt(), u = vt() != null, g = Re((T, B, D) => {
|
|
2771
2770
|
T && (w.current.openEvent = B), h.emit("openchange", {
|
|
2772
2771
|
open: T,
|
|
2773
2772
|
event: B,
|
|
2774
2773
|
reason: D,
|
|
2775
2774
|
nested: u
|
|
2776
2775
|
}), r == null || r(T, B, D);
|
|
2777
|
-
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x =
|
|
2776
|
+
}), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((T) => {
|
|
2778
2777
|
const B = N(T) ? {
|
|
2779
2778
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
2780
2779
|
contextElement: T
|
|
@@ -2815,7 +2814,7 @@ function Qo(e) {
|
|
|
2815
2814
|
}), [d, k, C, A]);
|
|
2816
2815
|
}
|
|
2817
2816
|
const Xt = "active", Gt = "selected";
|
|
2818
|
-
function
|
|
2817
|
+
function it(e, t, n) {
|
|
2819
2818
|
const r = /* @__PURE__ */ new Map(), o = n === "item";
|
|
2820
2819
|
let i = e;
|
|
2821
2820
|
if (o && e) {
|
|
@@ -2853,8 +2852,8 @@ function st(e, t, n) {
|
|
|
2853
2852
|
}
|
|
2854
2853
|
function ei(e) {
|
|
2855
2854
|
e === void 0 && (e = []);
|
|
2856
|
-
const t = e, n = y.useCallback((i) =>
|
|
2857
|
-
(i) =>
|
|
2855
|
+
const t = e, n = y.useCallback((i) => it(i, e, "reference"), t), r = y.useCallback((i) => it(i, e, "floating"), t), o = y.useCallback(
|
|
2856
|
+
(i) => it(i, e, "item"),
|
|
2858
2857
|
// Granularly check for `item` changes, because the `getItemProps` getter
|
|
2859
2858
|
// should be as referentially stable as possible since it may be passed as
|
|
2860
2859
|
// a prop to many components. All `item` key values must therefore be
|
|
@@ -2877,7 +2876,7 @@ function ni(e, t) {
|
|
|
2877
2876
|
} = e, {
|
|
2878
2877
|
enabled: i = !0,
|
|
2879
2878
|
role: s = "dialog"
|
|
2880
|
-
} = t, l = (n = ti.get(s)) != null ? n : s, a =
|
|
2879
|
+
} = t, l = (n = ti.get(s)) != null ? n : s, a = yt(), m = vt() != null;
|
|
2881
2880
|
return y.useMemo(() => {
|
|
2882
2881
|
if (!i)
|
|
2883
2882
|
return {};
|
|
@@ -3154,7 +3153,7 @@ function li(e) {
|
|
|
3154
3153
|
blockPointerEvents: n
|
|
3155
3154
|
}, m;
|
|
3156
3155
|
}
|
|
3157
|
-
const ai = V("div"),
|
|
3156
|
+
const ai = V("div"), wt = kn(
|
|
3158
3157
|
{}
|
|
3159
3158
|
), vi = ({
|
|
3160
3159
|
children: e,
|
|
@@ -3209,9 +3208,9 @@ const ai = V("div"), $t = kn(
|
|
|
3209
3208
|
f
|
|
3210
3209
|
]
|
|
3211
3210
|
);
|
|
3212
|
-
return /* @__PURE__ */ z(
|
|
3211
|
+
return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
|
|
3213
3212
|
}, xi = ({ children: e }) => {
|
|
3214
|
-
const { getReferenceProps: t, refs: n } = Qt(
|
|
3213
|
+
const { getReferenceProps: t, refs: n } = Qt(wt);
|
|
3215
3214
|
return /* @__PURE__ */ z(En, { children: In(e) && Pn(e, {
|
|
3216
3215
|
ref: n.setReference,
|
|
3217
3216
|
...t()
|
|
@@ -3223,7 +3222,7 @@ const ai = V("div"), $t = kn(
|
|
|
3223
3222
|
refs: o,
|
|
3224
3223
|
floatingStyles: i,
|
|
3225
3224
|
transitionStyles: s
|
|
3226
|
-
} = Qt(
|
|
3225
|
+
} = Qt(wt);
|
|
3227
3226
|
return r ? /* @__PURE__ */ z(Xo, { children: /* @__PURE__ */ z(
|
|
3228
3227
|
ai,
|
|
3229
3228
|
{
|
|
@@ -3348,7 +3347,7 @@ const ai = V("div"), $t = kn(
|
|
|
3348
3347
|
)), ci = V(tn, {
|
|
3349
3348
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
3350
3349
|
padding: "$1"
|
|
3351
|
-
}),
|
|
3350
|
+
}), $t = mt({
|
|
3352
3351
|
padding: "$2 $2 $2 1.5rem",
|
|
3353
3352
|
fontSize: "$sm",
|
|
3354
3353
|
lineHeight: "1.25",
|
|
@@ -3404,12 +3403,12 @@ const ai = V("div"), $t = kn(
|
|
|
3404
3403
|
height: 1,
|
|
3405
3404
|
backgroundColor: "$gray200",
|
|
3406
3405
|
margin: 1
|
|
3407
|
-
}), Pi = V(ee.Item,
|
|
3406
|
+
}), Pi = V(ee.Item, $t), Ai = V(ee.Item, $t, {
|
|
3408
3407
|
padding: "$2",
|
|
3409
3408
|
display: "flex",
|
|
3410
3409
|
alignItems: "center",
|
|
3411
3410
|
gap: "$2"
|
|
3412
|
-
}), di = V(ee.CheckboxItem,
|
|
3411
|
+
}), di = V(ee.CheckboxItem, $t), Bi = ({
|
|
3413
3412
|
value: e,
|
|
3414
3413
|
onChange: t,
|
|
3415
3414
|
children: n
|
|
@@ -3436,7 +3435,7 @@ export {
|
|
|
3436
3435
|
Ci as T,
|
|
3437
3436
|
Ai as a,
|
|
3438
3437
|
Ri as b,
|
|
3439
|
-
|
|
3438
|
+
mt as c,
|
|
3440
3439
|
ki as d,
|
|
3441
3440
|
ao as e,
|
|
3442
3441
|
yi as f,
|
|
@@ -3456,7 +3455,7 @@ export {
|
|
|
3456
3455
|
$i as t,
|
|
3457
3456
|
Qo as u,
|
|
3458
3457
|
Rn as v,
|
|
3459
|
-
|
|
3458
|
+
$t as w,
|
|
3460
3459
|
Ii as x,
|
|
3461
3460
|
Pi as y,
|
|
3462
3461
|
Bi as z
|