@purpurds/modal 8.3.0 → 8.4.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/LICENSE.txt +5 -5
- package/dist/modal.cjs.js +9 -9
- package/dist/modal.cjs.js.map +1 -1
- package/dist/modal.es.js +225 -225
- package/dist/modal.es.js.map +1 -1
- package/package.json +10 -10
package/dist/modal.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as f, jsxs as $, Fragment as
|
|
1
|
+
import { jsx as f, jsxs as $, Fragment as Re } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { useState as ye, forwardRef as Ce, useRef as be, useCallback as Yt, useEffect as
|
|
3
|
+
import { useState as ye, forwardRef as Ce, useRef as be, useCallback as Yt, useEffect as Ee } from "react";
|
|
4
4
|
import * as Xt from "react-dom";
|
|
5
5
|
import Zt from "react-dom";
|
|
6
6
|
function L(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
@@ -30,7 +30,7 @@ function ut(...e) {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function k(...e) {
|
|
34
34
|
return s.useCallback(ut(...e), e);
|
|
35
35
|
}
|
|
36
36
|
function Qt(e, t) {
|
|
@@ -245,7 +245,7 @@ function vr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
245
245
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
246
246
|
}, [r, t]);
|
|
247
247
|
}
|
|
248
|
-
var hr = "DismissableLayer",
|
|
248
|
+
var hr = "DismissableLayer", we = "dismissableLayer.update", mr = "dismissableLayer.pointerDownOutside", gr = "dismissableLayer.focusOutside", De, ct = s.createContext({
|
|
249
249
|
layers: /* @__PURE__ */ new Set(),
|
|
250
250
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
251
251
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -259,15 +259,15 @@ var hr = "DismissableLayer", Ee = "dismissableLayer.update", mr = "dismissableLa
|
|
|
259
259
|
onInteractOutside: u,
|
|
260
260
|
onDismiss: i,
|
|
261
261
|
...d
|
|
262
|
-
} = e, c = s.useContext(ct), [p, v] = s.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = s.useState({}), b =
|
|
263
|
-
const
|
|
264
|
-
!S ||
|
|
265
|
-
}, h),
|
|
266
|
-
const
|
|
267
|
-
[...c.branches].some((z) => z.contains(
|
|
262
|
+
} = e, c = s.useContext(ct), [p, v] = s.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = s.useState({}), b = k(t, (y) => v(y)), l = Array.from(c.layers), [m] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), _ = l.indexOf(m), E = p ? l.indexOf(p) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= _, C = br((y) => {
|
|
263
|
+
const R = y.target, O = [...c.branches].some((z) => z.contains(R));
|
|
264
|
+
!S || O || (a == null || a(y), u == null || u(y), y.defaultPrevented || i == null || i());
|
|
265
|
+
}, h), x = Er((y) => {
|
|
266
|
+
const R = y.target;
|
|
267
|
+
[...c.branches].some((z) => z.contains(R)) || (n == null || n(y), u == null || u(y), y.defaultPrevented || i == null || i());
|
|
268
268
|
}, h);
|
|
269
269
|
return vr((y) => {
|
|
270
|
-
|
|
270
|
+
E === c.layers.size - 1 && (o == null || o(y), !y.defaultPrevented && i && (y.preventDefault(), i()));
|
|
271
271
|
}, h), s.useEffect(() => {
|
|
272
272
|
if (p)
|
|
273
273
|
return r && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (De = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(p)), c.layers.add(p), $e(), () => {
|
|
@@ -277,18 +277,18 @@ var hr = "DismissableLayer", Ee = "dismissableLayer.update", mr = "dismissableLa
|
|
|
277
277
|
p && (c.layers.delete(p), c.layersWithOutsidePointerEventsDisabled.delete(p), $e());
|
|
278
278
|
}, [p, c]), s.useEffect(() => {
|
|
279
279
|
const y = () => g({});
|
|
280
|
-
return document.addEventListener(
|
|
280
|
+
return document.addEventListener(we, y), () => document.removeEventListener(we, y);
|
|
281
281
|
}, []), /* @__PURE__ */ f(
|
|
282
282
|
M.div,
|
|
283
283
|
{
|
|
284
284
|
...d,
|
|
285
285
|
ref: b,
|
|
286
286
|
style: {
|
|
287
|
-
pointerEvents:
|
|
287
|
+
pointerEvents: w ? S ? "auto" : "none" : void 0,
|
|
288
288
|
...e.style
|
|
289
289
|
},
|
|
290
|
-
onFocusCapture: L(e.onFocusCapture,
|
|
291
|
-
onBlurCapture: L(e.onBlurCapture,
|
|
290
|
+
onFocusCapture: L(e.onFocusCapture, x.onFocusCapture),
|
|
291
|
+
onBlurCapture: L(e.onBlurCapture, x.onBlurCapture),
|
|
292
292
|
onPointerDownCapture: L(
|
|
293
293
|
e.onPointerDownCapture,
|
|
294
294
|
C.onPointerDownCapture
|
|
@@ -299,7 +299,7 @@ var hr = "DismissableLayer", Ee = "dismissableLayer.update", mr = "dismissableLa
|
|
|
299
299
|
);
|
|
300
300
|
lt.displayName = hr;
|
|
301
301
|
var _r = "DismissableLayerBranch", yr = s.forwardRef((e, t) => {
|
|
302
|
-
const r = s.useContext(ct), o = s.useRef(null), a =
|
|
302
|
+
const r = s.useContext(ct), o = s.useRef(null), a = k(t, o);
|
|
303
303
|
return s.useEffect(() => {
|
|
304
304
|
const n = o.current;
|
|
305
305
|
if (n)
|
|
@@ -339,7 +339,7 @@ function br(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
339
339
|
onPointerDownCapture: () => o.current = !0
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Er(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
343
343
|
const r = Y(e), o = s.useRef(!1);
|
|
344
344
|
return s.useEffect(() => {
|
|
345
345
|
const a = (n) => {
|
|
@@ -354,21 +354,21 @@ function wr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
function $e() {
|
|
357
|
-
const e = new CustomEvent(
|
|
357
|
+
const e = new CustomEvent(we);
|
|
358
358
|
document.dispatchEvent(e);
|
|
359
359
|
}
|
|
360
360
|
function dt(e, t, r, { discrete: o }) {
|
|
361
361
|
const a = r.originalEvent.target, n = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
362
362
|
t && a.addEventListener(e, t, { once: !0 }), o ? fr(a, n) : a.dispatchEvent(n);
|
|
363
363
|
}
|
|
364
|
-
var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te = { bubbles: !1, cancelable: !0 },
|
|
364
|
+
var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te = { bubbles: !1, cancelable: !0 }, wr = "FocusScope", pt = s.forwardRef((e, t) => {
|
|
365
365
|
const {
|
|
366
366
|
loop: r = !1,
|
|
367
367
|
trapped: o = !1,
|
|
368
368
|
onMountAutoFocus: a,
|
|
369
369
|
onUnmountAutoFocus: n,
|
|
370
370
|
...u
|
|
371
|
-
} = e, [i, d] = s.useState(null), c = Y(a), p = Y(n), v = s.useRef(null), h =
|
|
371
|
+
} = e, [i, d] = s.useState(null), c = Y(a), p = Y(n), v = s.useRef(null), h = k(t, (l) => d(l)), g = s.useRef({
|
|
372
372
|
paused: !1,
|
|
373
373
|
pause() {
|
|
374
374
|
this.paused = !0;
|
|
@@ -379,23 +379,23 @@ var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te
|
|
|
379
379
|
}).current;
|
|
380
380
|
s.useEffect(() => {
|
|
381
381
|
if (o) {
|
|
382
|
-
let l = function(
|
|
382
|
+
let l = function(w) {
|
|
383
383
|
if (g.paused || !i) return;
|
|
384
|
-
const S =
|
|
384
|
+
const S = w.target;
|
|
385
385
|
i.contains(S) ? v.current = S : I(v.current, { select: !0 });
|
|
386
|
-
}, m = function(
|
|
386
|
+
}, m = function(w) {
|
|
387
387
|
if (g.paused || !i) return;
|
|
388
|
-
const S =
|
|
388
|
+
const S = w.relatedTarget;
|
|
389
389
|
S !== null && (i.contains(S) || I(v.current, { select: !0 }));
|
|
390
|
-
}, _ = function(
|
|
390
|
+
}, _ = function(w) {
|
|
391
391
|
if (document.activeElement === document.body)
|
|
392
|
-
for (const C of
|
|
392
|
+
for (const C of w)
|
|
393
393
|
C.removedNodes.length > 0 && I(i);
|
|
394
394
|
};
|
|
395
395
|
document.addEventListener("focusin", l), document.addEventListener("focusout", m);
|
|
396
|
-
const
|
|
397
|
-
return i &&
|
|
398
|
-
document.removeEventListener("focusin", l), document.removeEventListener("focusout", m),
|
|
396
|
+
const E = new MutationObserver(_);
|
|
397
|
+
return i && E.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
398
|
+
document.removeEventListener("focusin", l), document.removeEventListener("focusout", m), E.disconnect();
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
}, [o, i, g.paused]), s.useEffect(() => {
|
|
@@ -404,7 +404,7 @@ var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te
|
|
|
404
404
|
const l = document.activeElement;
|
|
405
405
|
if (!i.contains(l)) {
|
|
406
406
|
const _ = new CustomEvent(de, Te);
|
|
407
|
-
i.addEventListener(de, c), i.dispatchEvent(_), _.defaultPrevented || (Sr(
|
|
407
|
+
i.addEventListener(de, c), i.dispatchEvent(_), _.defaultPrevented || (Sr(Or(ft(i)), { select: !0 }), document.activeElement === l && I(i));
|
|
408
408
|
}
|
|
409
409
|
return () => {
|
|
410
410
|
i.removeEventListener(de, c), setTimeout(() => {
|
|
@@ -419,15 +419,15 @@ var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te
|
|
|
419
419
|
if (!r && !o || g.paused) return;
|
|
420
420
|
const m = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, _ = document.activeElement;
|
|
421
421
|
if (m && _) {
|
|
422
|
-
const
|
|
423
|
-
|
|
422
|
+
const E = l.currentTarget, [w, S] = Cr(E);
|
|
423
|
+
w && S ? !l.shiftKey && _ === S ? (l.preventDefault(), r && I(w, { select: !0 })) : l.shiftKey && _ === w && (l.preventDefault(), r && I(S, { select: !0 })) : _ === E && l.preventDefault();
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
426
|
[r, o, g.paused]
|
|
427
427
|
);
|
|
428
428
|
return /* @__PURE__ */ f(M.div, { tabIndex: -1, ...u, ref: h, onKeyDown: b });
|
|
429
429
|
});
|
|
430
|
-
pt.displayName =
|
|
430
|
+
pt.displayName = wr;
|
|
431
431
|
function Sr(e, { select: t = !1 } = {}) {
|
|
432
432
|
const r = document.activeElement;
|
|
433
433
|
for (const o of e)
|
|
@@ -460,17 +460,17 @@ function Nr(e, { upTo: t }) {
|
|
|
460
460
|
}
|
|
461
461
|
return !1;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function xr(e) {
|
|
464
464
|
return e instanceof HTMLInputElement && "select" in e;
|
|
465
465
|
}
|
|
466
466
|
function I(e, { select: t = !1 } = {}) {
|
|
467
467
|
if (e && e.focus) {
|
|
468
468
|
const r = document.activeElement;
|
|
469
|
-
e.focus({ preventScroll: !0 }), e !== r &&
|
|
469
|
+
e.focus({ preventScroll: !0 }), e !== r && xr(e) && t && e.select();
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var Ie =
|
|
473
|
-
function
|
|
472
|
+
var Ie = Pr();
|
|
473
|
+
function Pr() {
|
|
474
474
|
let e = [];
|
|
475
475
|
return {
|
|
476
476
|
add(t) {
|
|
@@ -487,22 +487,22 @@ function Le(e, t) {
|
|
|
487
487
|
const r = [...e], o = r.indexOf(t);
|
|
488
488
|
return o !== -1 && r.splice(o, 1), r;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Or(e) {
|
|
491
491
|
return e.filter((t) => t.tagName !== "A");
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var Rr = "Portal", vt = s.forwardRef((e, t) => {
|
|
494
494
|
var i;
|
|
495
495
|
const { container: r, ...o } = e, [a, n] = s.useState(!1);
|
|
496
496
|
q(() => n(!0), []);
|
|
497
497
|
const u = r || a && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
498
498
|
return u ? Zt.createPortal(/* @__PURE__ */ f(M.div, { ...o, ref: t }), u) : null;
|
|
499
499
|
});
|
|
500
|
-
vt.displayName =
|
|
500
|
+
vt.displayName = Rr;
|
|
501
501
|
function Ar(e, t) {
|
|
502
502
|
return s.useReducer((r, o) => t[r][o] ?? r, e);
|
|
503
503
|
}
|
|
504
504
|
var ue = (e) => {
|
|
505
|
-
const { present: t, children: r } = e, o = Dr(t), a = typeof r == "function" ? r({ present: o.isPresent }) : s.Children.only(r), n =
|
|
505
|
+
const { present: t, children: r } = e, o = Dr(t), a = typeof r == "function" ? r({ present: o.isPresent }) : s.Children.only(r), n = k(o.ref, $r(a));
|
|
506
506
|
return typeof r == "function" || o.isPresent ? s.cloneElement(a, { ref: n }) : null;
|
|
507
507
|
};
|
|
508
508
|
ue.displayName = "Presence";
|
|
@@ -567,12 +567,12 @@ var fe = 0;
|
|
|
567
567
|
function Tr() {
|
|
568
568
|
s.useEffect(() => {
|
|
569
569
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
570
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
570
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? je()), document.body.insertAdjacentElement("beforeend", e[1] ?? je()), fe++, () => {
|
|
571
571
|
fe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), fe--;
|
|
572
572
|
};
|
|
573
573
|
}, []);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function je() {
|
|
576
576
|
const e = document.createElement("span");
|
|
577
577
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
578
578
|
}
|
|
@@ -602,7 +602,7 @@ var oe = "right-scroll-bar-position", ae = "width-before-scroll-bar", Ir = "with
|
|
|
602
602
|
function ve(e, t) {
|
|
603
603
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function jr(e, t) {
|
|
606
606
|
var r = ye(function() {
|
|
607
607
|
return {
|
|
608
608
|
// value
|
|
@@ -623,15 +623,15 @@ function Fr(e, t) {
|
|
|
623
623
|
})[0];
|
|
624
624
|
return r.callback = t, r.facade;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
var r =
|
|
626
|
+
var Fr = typeof window < "u" ? s.useLayoutEffect : s.useEffect, Fe = /* @__PURE__ */ new WeakMap();
|
|
627
|
+
function kr(e, t) {
|
|
628
|
+
var r = jr(null, function(o) {
|
|
629
629
|
return e.forEach(function(a) {
|
|
630
630
|
return ve(a, o);
|
|
631
631
|
});
|
|
632
632
|
});
|
|
633
|
-
return
|
|
634
|
-
var o =
|
|
633
|
+
return Fr(function() {
|
|
634
|
+
var o = Fe.get(r);
|
|
635
635
|
if (o) {
|
|
636
636
|
var a = new Set(o), n = new Set(e), u = r.current;
|
|
637
637
|
a.forEach(function(i) {
|
|
@@ -640,14 +640,14 @@ function Wr(e, t) {
|
|
|
640
640
|
a.has(i) || ve(i, u);
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
Fe.set(r, e);
|
|
644
644
|
}, [e]), r;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Wr(e) {
|
|
647
647
|
return e;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
t === void 0 && (t =
|
|
649
|
+
function Br(e, t) {
|
|
650
|
+
t === void 0 && (t = Wr);
|
|
651
651
|
var r = [], o = !1, a = {
|
|
652
652
|
read: function() {
|
|
653
653
|
if (o)
|
|
@@ -703,7 +703,7 @@ function jr(e, t) {
|
|
|
703
703
|
}
|
|
704
704
|
function Ur(e) {
|
|
705
705
|
e === void 0 && (e = {});
|
|
706
|
-
var t =
|
|
706
|
+
var t = Br(null);
|
|
707
707
|
return t.options = T({ async: !0, ssr: !1 }, e), t;
|
|
708
708
|
}
|
|
709
709
|
var mt = function(e) {
|
|
@@ -725,12 +725,12 @@ var gt = Ur(), he = function() {
|
|
|
725
725
|
onScrollCapture: he,
|
|
726
726
|
onWheelCapture: he,
|
|
727
727
|
onTouchMoveCapture: he
|
|
728
|
-
}), a = o[0], n = o[1], u = e.forwardProps, i = e.children, d = e.className, c = e.removeScrollBar, p = e.enabled, v = e.shards, h = e.sideCar, g = e.noRelative, b = e.noIsolation, l = e.inert, m = e.allowPinchZoom, _ = e.as,
|
|
728
|
+
}), a = o[0], n = o[1], u = e.forwardProps, i = e.children, d = e.className, c = e.removeScrollBar, p = e.enabled, v = e.shards, h = e.sideCar, g = e.noRelative, b = e.noIsolation, l = e.inert, m = e.allowPinchZoom, _ = e.as, E = _ === void 0 ? "div" : _, w = e.gapMode, S = ht(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, x = kr([r, t]), y = T(T({}, S), a);
|
|
729
729
|
return s.createElement(
|
|
730
730
|
s.Fragment,
|
|
731
731
|
null,
|
|
732
|
-
p && s.createElement(C, { sideCar: gt, removeScrollBar: c, shards: v, noRelative: g, noIsolation: b, inert: l, setCallbacks: n, allowPinchZoom: !!m, lockRef: r, gapMode:
|
|
733
|
-
u ? s.cloneElement(s.Children.only(i), T(T({}, y), { ref:
|
|
732
|
+
p && s.createElement(C, { sideCar: gt, removeScrollBar: c, shards: v, noRelative: g, noIsolation: b, inert: l, setCallbacks: n, allowPinchZoom: !!m, lockRef: r, gapMode: w }),
|
|
733
|
+
u ? s.cloneElement(s.Children.only(i), T(T({}, y), { ref: x })) : s.createElement(E, T({}, y, { className: d, ref: x }), i)
|
|
734
734
|
);
|
|
735
735
|
});
|
|
736
736
|
se.defaultProps = {
|
|
@@ -850,13 +850,13 @@ var qr = function() {
|
|
|
850
850
|
`).concat(Lr, ": ").concat(i, `px;
|
|
851
851
|
}
|
|
852
852
|
`);
|
|
853
|
-
},
|
|
853
|
+
}, ke = function() {
|
|
854
854
|
var e = parseInt(document.body.getAttribute(H) || "0", 10);
|
|
855
855
|
return isFinite(e) ? e : 0;
|
|
856
856
|
}, tn = function() {
|
|
857
857
|
s.useEffect(function() {
|
|
858
|
-
return document.body.setAttribute(H, (
|
|
859
|
-
var e =
|
|
858
|
+
return document.body.setAttribute(H, (ke() + 1).toString()), function() {
|
|
859
|
+
var e = ke() - 1;
|
|
860
860
|
e <= 0 ? document.body.removeAttribute(H) : document.body.setAttribute(H, e.toString());
|
|
861
861
|
};
|
|
862
862
|
}, []);
|
|
@@ -879,7 +879,7 @@ if (typeof window < "u")
|
|
|
879
879
|
} catch {
|
|
880
880
|
Se = !1;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
882
|
+
var B = Se ? { passive: !1 } : !1, nn = function(e) {
|
|
883
883
|
return e.tagName === "TEXTAREA";
|
|
884
884
|
}, yt = function(e, t) {
|
|
885
885
|
if (!(e instanceof Element))
|
|
@@ -894,13 +894,13 @@ var j = Se ? { passive: !1 } : !1, nn = function(e) {
|
|
|
894
894
|
return yt(e, "overflowY");
|
|
895
895
|
}, an = function(e) {
|
|
896
896
|
return yt(e, "overflowX");
|
|
897
|
-
},
|
|
897
|
+
}, We = function(e, t) {
|
|
898
898
|
var r = t.ownerDocument, o = t;
|
|
899
899
|
do {
|
|
900
900
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
901
901
|
var a = bt(e, o);
|
|
902
902
|
if (a) {
|
|
903
|
-
var n =
|
|
903
|
+
var n = Et(e, o), u = n[1], i = n[2];
|
|
904
904
|
if (u > i)
|
|
905
905
|
return !0;
|
|
906
906
|
}
|
|
@@ -923,7 +923,7 @@ var j = Se ? { passive: !1 } : !1, nn = function(e) {
|
|
|
923
923
|
];
|
|
924
924
|
}, bt = function(e, t) {
|
|
925
925
|
return e === "v" ? on(t) : an(t);
|
|
926
|
-
},
|
|
926
|
+
}, Et = function(e, t) {
|
|
927
927
|
return e === "v" ? un(t) : sn(t);
|
|
928
928
|
}, cn = function(e, t) {
|
|
929
929
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
@@ -932,10 +932,10 @@ var j = Se ? { passive: !1 } : !1, nn = function(e) {
|
|
|
932
932
|
do {
|
|
933
933
|
if (!i)
|
|
934
934
|
break;
|
|
935
|
-
var g =
|
|
935
|
+
var g = Et(e, i), b = g[0], l = g[1], m = g[2], _ = l - m - n * b;
|
|
936
936
|
(b || _) && bt(e, i) && (v += _, h += b);
|
|
937
|
-
var
|
|
938
|
-
i =
|
|
937
|
+
var E = i.parentNode;
|
|
938
|
+
i = E && E.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? E.host : E;
|
|
939
939
|
} while (
|
|
940
940
|
// portaled content
|
|
941
941
|
!d && i !== document.body || // self content
|
|
@@ -944,7 +944,7 @@ var j = Se ? { passive: !1 } : !1, nn = function(e) {
|
|
|
944
944
|
return (p && Math.abs(v) < 1 || !p && Math.abs(h) < 1) && (c = !0), c;
|
|
945
945
|
}, J = function(e) {
|
|
946
946
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
947
|
-
},
|
|
947
|
+
}, Be = function(e) {
|
|
948
948
|
return [e.deltaX, e.deltaY];
|
|
949
949
|
}, Ue = function(e) {
|
|
950
950
|
return e && "current" in e ? e.current : e;
|
|
@@ -976,46 +976,46 @@ function vn(e) {
|
|
|
976
976
|
var i = s.useCallback(function(l, m) {
|
|
977
977
|
if ("touches" in l && l.touches.length === 2 || l.type === "wheel" && l.ctrlKey)
|
|
978
978
|
return !u.current.allowPinchZoom;
|
|
979
|
-
var _ = J(l),
|
|
980
|
-
if ("touches" in l && y === "h" &&
|
|
979
|
+
var _ = J(l), E = r.current, w = "deltaX" in l ? l.deltaX : E[0] - _[0], S = "deltaY" in l ? l.deltaY : E[1] - _[1], C, x = l.target, y = Math.abs(w) > Math.abs(S) ? "h" : "v";
|
|
980
|
+
if ("touches" in l && y === "h" && x.type === "range")
|
|
981
981
|
return !1;
|
|
982
|
-
var
|
|
983
|
-
if (!
|
|
982
|
+
var R = We(y, x);
|
|
983
|
+
if (!R)
|
|
984
984
|
return !0;
|
|
985
|
-
if (
|
|
985
|
+
if (R ? C = y : (C = y === "v" ? "h" : "v", R = We(y, x)), !R)
|
|
986
986
|
return !1;
|
|
987
|
-
if (!o.current && "changedTouches" in l && (
|
|
987
|
+
if (!o.current && "changedTouches" in l && (w || S) && (o.current = C), !C)
|
|
988
988
|
return !0;
|
|
989
|
-
var
|
|
990
|
-
return ln(
|
|
989
|
+
var O = o.current || C;
|
|
990
|
+
return ln(O, m, l, O === "h" ? w : S);
|
|
991
991
|
}, []), d = s.useCallback(function(l) {
|
|
992
992
|
var m = l;
|
|
993
993
|
if (!(!U.length || U[U.length - 1] !== n)) {
|
|
994
|
-
var _ = "deltaY" in m ?
|
|
994
|
+
var _ = "deltaY" in m ? Be(m) : J(m), E = t.current.filter(function(C) {
|
|
995
995
|
return C.name === m.type && (C.target === m.target || m.target === C.shadowParent) && dn(C.delta, _);
|
|
996
996
|
})[0];
|
|
997
|
-
if (
|
|
997
|
+
if (E && E.should) {
|
|
998
998
|
m.cancelable && m.preventDefault();
|
|
999
999
|
return;
|
|
1000
1000
|
}
|
|
1001
|
-
if (!
|
|
1002
|
-
var
|
|
1001
|
+
if (!E) {
|
|
1002
|
+
var w = (u.current.shards || []).map(Ue).filter(Boolean).filter(function(C) {
|
|
1003
1003
|
return C.contains(m.target);
|
|
1004
|
-
}), S =
|
|
1004
|
+
}), S = w.length > 0 ? i(m, w[0]) : !u.current.noIsolation;
|
|
1005
1005
|
S && m.cancelable && m.preventDefault();
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
}, []), c = s.useCallback(function(l, m, _,
|
|
1009
|
-
var
|
|
1010
|
-
t.current.push(
|
|
1008
|
+
}, []), c = s.useCallback(function(l, m, _, E) {
|
|
1009
|
+
var w = { name: l, delta: m, target: _, should: E, shadowParent: hn(_) };
|
|
1010
|
+
t.current.push(w), setTimeout(function() {
|
|
1011
1011
|
t.current = t.current.filter(function(S) {
|
|
1012
|
-
return S !==
|
|
1012
|
+
return S !== w;
|
|
1013
1013
|
});
|
|
1014
1014
|
}, 1);
|
|
1015
1015
|
}, []), p = s.useCallback(function(l) {
|
|
1016
1016
|
r.current = J(l), o.current = void 0;
|
|
1017
1017
|
}, []), v = s.useCallback(function(l) {
|
|
1018
|
-
c(l.type,
|
|
1018
|
+
c(l.type, Be(l), l.target, i(l, e.lockRef.current));
|
|
1019
1019
|
}, []), h = s.useCallback(function(l) {
|
|
1020
1020
|
c(l.type, J(l), l.target, i(l, e.lockRef.current));
|
|
1021
1021
|
}, []);
|
|
@@ -1024,10 +1024,10 @@ function vn(e) {
|
|
|
1024
1024
|
onScrollCapture: v,
|
|
1025
1025
|
onWheelCapture: v,
|
|
1026
1026
|
onTouchMoveCapture: h
|
|
1027
|
-
}), document.addEventListener("wheel", d,
|
|
1027
|
+
}), document.addEventListener("wheel", d, B), document.addEventListener("touchmove", d, B), document.addEventListener("touchstart", p, B), function() {
|
|
1028
1028
|
U = U.filter(function(l) {
|
|
1029
1029
|
return l !== n;
|
|
1030
|
-
}), document.removeEventListener("wheel", d,
|
|
1030
|
+
}), document.removeEventListener("wheel", d, B), document.removeEventListener("touchmove", d, B), document.removeEventListener("touchstart", p, B);
|
|
1031
1031
|
};
|
|
1032
1032
|
}, []);
|
|
1033
1033
|
var g = e.removeScrollBar, b = e.inert;
|
|
@@ -1044,10 +1044,10 @@ function hn(e) {
|
|
|
1044
1044
|
return t;
|
|
1045
1045
|
}
|
|
1046
1046
|
const mn = Vr(gt, vn);
|
|
1047
|
-
var
|
|
1047
|
+
var wt = s.forwardRef(function(e, t) {
|
|
1048
1048
|
return s.createElement(se, T({}, e, { ref: t, sideCar: mn }));
|
|
1049
1049
|
});
|
|
1050
|
-
|
|
1050
|
+
wt.classNames = se.classNames;
|
|
1051
1051
|
var gn = function(e) {
|
|
1052
1052
|
if (typeof document > "u")
|
|
1053
1053
|
return null;
|
|
@@ -1096,7 +1096,7 @@ var gn = function(e) {
|
|
|
1096
1096
|
return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), yn(o, a, r, "aria-hidden")) : function() {
|
|
1097
1097
|
return null;
|
|
1098
1098
|
};
|
|
1099
|
-
}, ce = "Dialog", [Ct] = Jt(ce), [
|
|
1099
|
+
}, ce = "Dialog", [Ct] = Jt(ce), [En, A] = Ct(ce), Nt = (e) => {
|
|
1100
1100
|
const {
|
|
1101
1101
|
__scopeDialog: t,
|
|
1102
1102
|
children: r,
|
|
@@ -1111,7 +1111,7 @@ var gn = function(e) {
|
|
|
1111
1111
|
caller: ce
|
|
1112
1112
|
});
|
|
1113
1113
|
return /* @__PURE__ */ f(
|
|
1114
|
-
|
|
1114
|
+
En,
|
|
1115
1115
|
{
|
|
1116
1116
|
scope: t,
|
|
1117
1117
|
triggerRef: i,
|
|
@@ -1128,9 +1128,9 @@ var gn = function(e) {
|
|
|
1128
1128
|
);
|
|
1129
1129
|
};
|
|
1130
1130
|
Nt.displayName = ce;
|
|
1131
|
-
var
|
|
1131
|
+
var xt = "DialogTrigger", Pt = s.forwardRef(
|
|
1132
1132
|
(e, t) => {
|
|
1133
|
-
const { __scopeDialog: r, ...o } = e, a = A(
|
|
1133
|
+
const { __scopeDialog: r, ...o } = e, a = A(xt, r), n = k(t, a.triggerRef);
|
|
1134
1134
|
return /* @__PURE__ */ f(
|
|
1135
1135
|
M.button,
|
|
1136
1136
|
{
|
|
@@ -1138,7 +1138,7 @@ var Pt = "DialogTrigger", Ot = s.forwardRef(
|
|
|
1138
1138
|
"aria-haspopup": "dialog",
|
|
1139
1139
|
"aria-expanded": a.open,
|
|
1140
1140
|
"aria-controls": a.contentId,
|
|
1141
|
-
"data-state":
|
|
1141
|
+
"data-state": Pe(a.open),
|
|
1142
1142
|
...o,
|
|
1143
1143
|
ref: n,
|
|
1144
1144
|
onClick: L(e.onClick, a.onOpenToggle)
|
|
@@ -1146,17 +1146,17 @@ var Pt = "DialogTrigger", Ot = s.forwardRef(
|
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
1148
|
);
|
|
1149
|
-
|
|
1150
|
-
var Ne = "DialogPortal", [
|
|
1149
|
+
Pt.displayName = xt;
|
|
1150
|
+
var Ne = "DialogPortal", [wn, Ot] = Ct(Ne, {
|
|
1151
1151
|
forceMount: void 0
|
|
1152
|
-
}),
|
|
1152
|
+
}), Rt = (e) => {
|
|
1153
1153
|
const { __scopeDialog: t, forceMount: r, children: o, container: a } = e, n = A(Ne, t);
|
|
1154
|
-
return /* @__PURE__ */ f(
|
|
1154
|
+
return /* @__PURE__ */ f(wn, { scope: t, forceMount: r, children: s.Children.map(o, (u) => /* @__PURE__ */ f(ue, { present: r || n.open, children: /* @__PURE__ */ f(vt, { asChild: !0, container: a, children: u }) })) });
|
|
1155
1155
|
};
|
|
1156
|
-
|
|
1156
|
+
Rt.displayName = Ne;
|
|
1157
1157
|
var ie = "DialogOverlay", At = s.forwardRef(
|
|
1158
1158
|
(e, t) => {
|
|
1159
|
-
const r =
|
|
1159
|
+
const r = Ot(ie, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = A(ie, e.__scopeDialog);
|
|
1160
1160
|
return n.modal ? /* @__PURE__ */ f(ue, { present: o || n.open, children: /* @__PURE__ */ f(Cn, { ...a, ref: t }) }) : null;
|
|
1161
1161
|
}
|
|
1162
1162
|
);
|
|
@@ -1167,10 +1167,10 @@ var Sn = /* @__PURE__ */ st("DialogOverlay.RemoveScroll"), Cn = s.forwardRef(
|
|
|
1167
1167
|
return (
|
|
1168
1168
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1169
1169
|
// ie. when `Overlay` and `Content` are siblings
|
|
1170
|
-
/* @__PURE__ */ f(
|
|
1170
|
+
/* @__PURE__ */ f(wt, { as: Sn, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
|
|
1171
1171
|
M.div,
|
|
1172
1172
|
{
|
|
1173
|
-
"data-state":
|
|
1173
|
+
"data-state": Pe(a.open),
|
|
1174
1174
|
...o,
|
|
1175
1175
|
ref: t,
|
|
1176
1176
|
style: { pointerEvents: "auto", ...o.style }
|
|
@@ -1178,16 +1178,16 @@ var Sn = /* @__PURE__ */ st("DialogOverlay.RemoveScroll"), Cn = s.forwardRef(
|
|
|
1178
1178
|
) })
|
|
1179
1179
|
);
|
|
1180
1180
|
}
|
|
1181
|
-
),
|
|
1181
|
+
), F = "DialogContent", Dt = s.forwardRef(
|
|
1182
1182
|
(e, t) => {
|
|
1183
|
-
const r =
|
|
1184
|
-
return /* @__PURE__ */ f(ue, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(Nn, { ...a, ref: t }) : /* @__PURE__ */ f(
|
|
1183
|
+
const r = Ot(F, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = A(F, e.__scopeDialog);
|
|
1184
|
+
return /* @__PURE__ */ f(ue, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(Nn, { ...a, ref: t }) : /* @__PURE__ */ f(xn, { ...a, ref: t }) });
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
|
-
Dt.displayName =
|
|
1187
|
+
Dt.displayName = F;
|
|
1188
1188
|
var Nn = s.forwardRef(
|
|
1189
1189
|
(e, t) => {
|
|
1190
|
-
const r = A(
|
|
1190
|
+
const r = A(F, e.__scopeDialog), o = s.useRef(null), a = k(t, r.contentRef, o);
|
|
1191
1191
|
return s.useEffect(() => {
|
|
1192
1192
|
const n = o.current;
|
|
1193
1193
|
if (n) return bn(n);
|
|
@@ -1213,9 +1213,9 @@ var Nn = s.forwardRef(
|
|
|
1213
1213
|
}
|
|
1214
1214
|
);
|
|
1215
1215
|
}
|
|
1216
|
-
),
|
|
1216
|
+
), xn = s.forwardRef(
|
|
1217
1217
|
(e, t) => {
|
|
1218
|
-
const r = A(
|
|
1218
|
+
const r = A(F, e.__scopeDialog), o = s.useRef(!1), a = s.useRef(!1);
|
|
1219
1219
|
return /* @__PURE__ */ f(
|
|
1220
1220
|
$t,
|
|
1221
1221
|
{
|
|
@@ -1238,8 +1238,8 @@ var Nn = s.forwardRef(
|
|
|
1238
1238
|
}
|
|
1239
1239
|
), $t = s.forwardRef(
|
|
1240
1240
|
(e, t) => {
|
|
1241
|
-
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: n, ...u } = e, i = A(
|
|
1242
|
-
return Tr(), /* @__PURE__ */ $(
|
|
1241
|
+
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: n, ...u } = e, i = A(F, r), d = s.useRef(null), c = k(t, d);
|
|
1242
|
+
return Tr(), /* @__PURE__ */ $(Re, { children: [
|
|
1243
1243
|
/* @__PURE__ */ f(
|
|
1244
1244
|
pt,
|
|
1245
1245
|
{
|
|
@@ -1255,7 +1255,7 @@ var Nn = s.forwardRef(
|
|
|
1255
1255
|
id: i.contentId,
|
|
1256
1256
|
"aria-describedby": i.descriptionId,
|
|
1257
1257
|
"aria-labelledby": i.titleId,
|
|
1258
|
-
"data-state":
|
|
1258
|
+
"data-state": Pe(i.open),
|
|
1259
1259
|
...u,
|
|
1260
1260
|
ref: c,
|
|
1261
1261
|
onDismiss: () => i.onOpenChange(!1)
|
|
@@ -1263,19 +1263,19 @@ var Nn = s.forwardRef(
|
|
|
1263
1263
|
)
|
|
1264
1264
|
}
|
|
1265
1265
|
),
|
|
1266
|
-
/* @__PURE__ */ $(
|
|
1267
|
-
/* @__PURE__ */ f(
|
|
1268
|
-
/* @__PURE__ */ f(
|
|
1266
|
+
/* @__PURE__ */ $(Re, { children: [
|
|
1267
|
+
/* @__PURE__ */ f(Pn, { titleId: i.titleId }),
|
|
1268
|
+
/* @__PURE__ */ f(Rn, { contentRef: d, descriptionId: i.descriptionId })
|
|
1269
1269
|
] })
|
|
1270
1270
|
] });
|
|
1271
1271
|
}
|
|
1272
|
-
),
|
|
1272
|
+
), xe = "DialogTitle", Tt = s.forwardRef(
|
|
1273
1273
|
(e, t) => {
|
|
1274
|
-
const { __scopeDialog: r, ...o } = e, a = A(
|
|
1274
|
+
const { __scopeDialog: r, ...o } = e, a = A(xe, r);
|
|
1275
1275
|
return /* @__PURE__ */ f(M.h2, { id: a.titleId, ...o, ref: t });
|
|
1276
1276
|
}
|
|
1277
1277
|
);
|
|
1278
|
-
Tt.displayName =
|
|
1278
|
+
Tt.displayName = xe;
|
|
1279
1279
|
var Mt = "DialogDescription", It = s.forwardRef(
|
|
1280
1280
|
(e, t) => {
|
|
1281
1281
|
const { __scopeDialog: r, ...o } = e, a = A(Mt, r);
|
|
@@ -1283,7 +1283,7 @@ var Mt = "DialogDescription", It = s.forwardRef(
|
|
|
1283
1283
|
}
|
|
1284
1284
|
);
|
|
1285
1285
|
It.displayName = Mt;
|
|
1286
|
-
var Lt = "DialogClose",
|
|
1286
|
+
var Lt = "DialogClose", jt = s.forwardRef(
|
|
1287
1287
|
(e, t) => {
|
|
1288
1288
|
const { __scopeDialog: r, ...o } = e, a = A(Lt, r);
|
|
1289
1289
|
return /* @__PURE__ */ f(
|
|
@@ -1297,16 +1297,16 @@ var Lt = "DialogClose", Ft = s.forwardRef(
|
|
|
1297
1297
|
);
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
|
-
|
|
1301
|
-
function
|
|
1300
|
+
jt.displayName = Lt;
|
|
1301
|
+
function Pe(e) {
|
|
1302
1302
|
return e ? "open" : "closed";
|
|
1303
1303
|
}
|
|
1304
|
-
var
|
|
1305
|
-
contentName:
|
|
1306
|
-
titleName:
|
|
1304
|
+
var Ft = "DialogTitleWarning", [Go, kt] = Qt(Ft, {
|
|
1305
|
+
contentName: F,
|
|
1306
|
+
titleName: xe,
|
|
1307
1307
|
docsSlug: "dialog"
|
|
1308
|
-
}),
|
|
1309
|
-
const t =
|
|
1308
|
+
}), Pn = ({ titleId: e }) => {
|
|
1309
|
+
const t = kt(Ft), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1310
1310
|
|
|
1311
1311
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1312
1312
|
|
|
@@ -1314,18 +1314,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
1314
1314
|
return s.useEffect(() => {
|
|
1315
1315
|
e && (document.getElementById(e) || console.error(r));
|
|
1316
1316
|
}, [r, e]), null;
|
|
1317
|
-
},
|
|
1318
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
1317
|
+
}, On = "DialogDescriptionWarning", Rn = ({ contentRef: e, descriptionId: t }) => {
|
|
1318
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kt(On).contentName}}.`;
|
|
1319
1319
|
return s.useEffect(() => {
|
|
1320
1320
|
var n;
|
|
1321
1321
|
const a = (n = e.current) == null ? void 0 : n.getAttribute("aria-describedby");
|
|
1322
1322
|
t && a && (document.getElementById(t) || console.warn(o));
|
|
1323
1323
|
}, [o, e, t]), null;
|
|
1324
|
-
}, An = Nt, Dn =
|
|
1325
|
-
const
|
|
1324
|
+
}, An = Nt, Dn = Pt, $n = Rt, Tn = At, Mn = Dt, In = Tt, Ve = It, Ln = jt;
|
|
1325
|
+
const jn = {
|
|
1326
1326
|
LG: "lg"
|
|
1327
1327
|
};
|
|
1328
|
-
function
|
|
1328
|
+
function Fn(e) {
|
|
1329
1329
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1330
1330
|
}
|
|
1331
1331
|
var He = { exports: {} };
|
|
@@ -1335,7 +1335,7 @@ var He = { exports: {} };
|
|
|
1335
1335
|
http://jedwatson.github.io/classnames
|
|
1336
1336
|
*/
|
|
1337
1337
|
var ze;
|
|
1338
|
-
function
|
|
1338
|
+
function kn() {
|
|
1339
1339
|
return ze || (ze = 1, (function(e) {
|
|
1340
1340
|
(function() {
|
|
1341
1341
|
var t = {}.hasOwnProperty;
|
|
@@ -1367,8 +1367,8 @@ function Wn() {
|
|
|
1367
1367
|
})();
|
|
1368
1368
|
})(He)), He.exports;
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1371
|
-
const
|
|
1370
|
+
var Wn = kn();
|
|
1371
|
+
const Bn = /* @__PURE__ */ Fn(Wn), Un = "_rotate_12t9p_1", Vn = "_dash_12t9p_1", Hn = {
|
|
1372
1372
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
1373
1373
|
rotate: Un,
|
|
1374
1374
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
@@ -1380,7 +1380,7 @@ const jn = /* @__PURE__ */ kn(Bn), Un = "_rotate_12t9p_1", Vn = "_dash_12t9p_1",
|
|
|
1380
1380
|
dash: Vn,
|
|
1381
1381
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
1382
1382
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
1383
|
-
}, Ge =
|
|
1383
|
+
}, Ge = Bn.bind(Hn), G = "purpur-spinner", zn = {
|
|
1384
1384
|
SM: "sm"
|
|
1385
1385
|
}, Gn = ({
|
|
1386
1386
|
disabled: e = !1,
|
|
@@ -1443,28 +1443,28 @@ function qn() {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
var Yn = qn();
|
|
1445
1445
|
const Xn = /* @__PURE__ */ Kn(Yn), Zn = {
|
|
1446
|
-
"purpur-button": "_purpur-
|
|
1447
|
-
"purpur-button--xs": "_purpur-button--
|
|
1448
|
-
"purpur-button--icon-only": "_purpur-button--icon-
|
|
1449
|
-
"purpur-button--sm": "_purpur-button--
|
|
1450
|
-
"purpur-button--md": "_purpur-button--
|
|
1451
|
-
"purpur-button--lg": "_purpur-button--
|
|
1452
|
-
"purpur-button--full-width": "_purpur-button--full-
|
|
1453
|
-
"purpur-button--primary": "_purpur-button--
|
|
1454
|
-
"purpur-button--disabled": "_purpur-button--
|
|
1455
|
-
"purpur-button--primary-negative": "_purpur-button--primary-
|
|
1456
|
-
"purpur-button--secondary": "_purpur-button--
|
|
1457
|
-
"purpur-button--secondary-negative": "_purpur-button--secondary-
|
|
1458
|
-
"purpur-button--expressive": "_purpur-button--
|
|
1459
|
-
"purpur-button--expressive-negative": "_purpur-button--expressive-
|
|
1460
|
-
"purpur-button--negative": "_purpur-button--
|
|
1461
|
-
"purpur-button--destructive": "_purpur-button--
|
|
1462
|
-
"purpur-button--destructive-negative": "_purpur-button--destructive-
|
|
1463
|
-
"purpur-button--tertiary-purple": "_purpur-button--tertiary-
|
|
1464
|
-
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-
|
|
1465
|
-
"purpur-button--text-negative": "_purpur-button--text-
|
|
1466
|
-
"purpur-button--text": "_purpur-button--
|
|
1467
|
-
}, Qn = Xn.bind(Zn),
|
|
1446
|
+
"purpur-button": "_purpur-button_cjx7j_1",
|
|
1447
|
+
"purpur-button--xs": "_purpur-button--xs_cjx7j_22",
|
|
1448
|
+
"purpur-button--icon-only": "_purpur-button--icon-only_cjx7j_25",
|
|
1449
|
+
"purpur-button--sm": "_purpur-button--sm_cjx7j_28",
|
|
1450
|
+
"purpur-button--md": "_purpur-button--md_cjx7j_34",
|
|
1451
|
+
"purpur-button--lg": "_purpur-button--lg_cjx7j_40",
|
|
1452
|
+
"purpur-button--full-width": "_purpur-button--full-width_cjx7j_46",
|
|
1453
|
+
"purpur-button--primary": "_purpur-button--primary_cjx7j_64",
|
|
1454
|
+
"purpur-button--disabled": "_purpur-button--disabled_cjx7j_68",
|
|
1455
|
+
"purpur-button--primary-negative": "_purpur-button--primary-negative_cjx7j_74",
|
|
1456
|
+
"purpur-button--secondary": "_purpur-button--secondary_cjx7j_86",
|
|
1457
|
+
"purpur-button--secondary-negative": "_purpur-button--secondary-negative_cjx7j_97",
|
|
1458
|
+
"purpur-button--expressive": "_purpur-button--expressive_cjx7j_108",
|
|
1459
|
+
"purpur-button--expressive-negative": "_purpur-button--expressive-negative_cjx7j_118",
|
|
1460
|
+
"purpur-button--negative": "_purpur-button--negative_cjx7j_130",
|
|
1461
|
+
"purpur-button--destructive": "_purpur-button--destructive_cjx7j_137",
|
|
1462
|
+
"purpur-button--destructive-negative": "_purpur-button--destructive-negative_cjx7j_147",
|
|
1463
|
+
"purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_cjx7j_157",
|
|
1464
|
+
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_cjx7j_170",
|
|
1465
|
+
"purpur-button--text-negative": "_purpur-button--text-negative_cjx7j_185",
|
|
1466
|
+
"purpur-button--text": "_purpur-button--text_cjx7j_185"
|
|
1467
|
+
}, Qn = Xn.bind(Zn), j = "purpur-button", Wt = Ce(
|
|
1468
1468
|
({
|
|
1469
1469
|
children: e,
|
|
1470
1470
|
className: t,
|
|
@@ -1483,15 +1483,15 @@ const Xn = /* @__PURE__ */ Kn(Yn), Zn = {
|
|
|
1483
1483
|
return null;
|
|
1484
1484
|
const g = Qn(
|
|
1485
1485
|
[
|
|
1486
|
-
|
|
1487
|
-
`${
|
|
1488
|
-
`${
|
|
1486
|
+
j,
|
|
1487
|
+
`${j}--${u ? `${c}-negative` : c}`,
|
|
1488
|
+
`${j}--${d}`
|
|
1489
1489
|
],
|
|
1490
1490
|
{
|
|
1491
|
-
[`${
|
|
1492
|
-
[`${
|
|
1493
|
-
[`${
|
|
1494
|
-
[`${
|
|
1491
|
+
[`${j}--icon-only`]: a,
|
|
1492
|
+
[`${j}--negative`]: u,
|
|
1493
|
+
[`${j}--full-width`]: o,
|
|
1494
|
+
[`${j}--disabled`]: r || n
|
|
1495
1495
|
},
|
|
1496
1496
|
t
|
|
1497
1497
|
), b = (m) => {
|
|
@@ -1510,7 +1510,7 @@ const Xn = /* @__PURE__ */ Kn(Yn), Zn = {
|
|
|
1510
1510
|
n && /* @__PURE__ */ f(
|
|
1511
1511
|
Gn,
|
|
1512
1512
|
{
|
|
1513
|
-
size: d ===
|
|
1513
|
+
size: d === jn.LG ? "xs" : "xxs",
|
|
1514
1514
|
negative: u,
|
|
1515
1515
|
disabled: l
|
|
1516
1516
|
}
|
|
@@ -1522,7 +1522,7 @@ const Xn = /* @__PURE__ */ Kn(Yn), Zn = {
|
|
|
1522
1522
|
);
|
|
1523
1523
|
}
|
|
1524
1524
|
);
|
|
1525
|
-
|
|
1525
|
+
Wt.displayName = "Button";
|
|
1526
1526
|
function Jn(e) {
|
|
1527
1527
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1528
1528
|
}
|
|
@@ -1588,7 +1588,7 @@ const ro = /* @__PURE__ */ Jn(to), re = {
|
|
|
1588
1588
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
1589
1589
|
}, no = {
|
|
1590
1590
|
TITLE100: "title-100"
|
|
1591
|
-
}, ne = "purpur-heading",
|
|
1591
|
+
}, ne = "purpur-heading", Bt = ({
|
|
1592
1592
|
children: e,
|
|
1593
1593
|
className: t = "",
|
|
1594
1594
|
enableHyphenation: r = !1,
|
|
@@ -1608,7 +1608,7 @@ const ro = /* @__PURE__ */ Jn(to), re = {
|
|
|
1608
1608
|
]);
|
|
1609
1609
|
return /* @__PURE__ */ f(i, { className: d, ...u, children: e });
|
|
1610
1610
|
};
|
|
1611
|
-
|
|
1611
|
+
Bt.displayName = "Heading";
|
|
1612
1612
|
function oo(e) {
|
|
1613
1613
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1614
1614
|
}
|
|
@@ -1741,7 +1741,7 @@ const yo = /* @__PURE__ */ mo(_o), bo = {
|
|
|
1741
1741
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
1742
1742
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
1743
1743
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1744
|
-
},
|
|
1744
|
+
}, Eo = yo.bind(bo), wo = {
|
|
1745
1745
|
PARAGRAPH100: "paragraph-100"
|
|
1746
1746
|
}, K = "purpur-paragraph", Ht = ({
|
|
1747
1747
|
children: e,
|
|
@@ -1749,10 +1749,10 @@ const yo = /* @__PURE__ */ mo(_o), bo = {
|
|
|
1749
1749
|
disabled: r,
|
|
1750
1750
|
enableHyphenation: o = !1,
|
|
1751
1751
|
negative: a = !1,
|
|
1752
|
-
variant: n =
|
|
1752
|
+
variant: n = wo.PARAGRAPH100,
|
|
1753
1753
|
...u
|
|
1754
1754
|
}) => {
|
|
1755
|
-
const i =
|
|
1755
|
+
const i = Eo(t, K, `${K}--${n}`, {
|
|
1756
1756
|
[`${K}--hyphens`]: o,
|
|
1757
1757
|
[`${K}--disabled`]: r,
|
|
1758
1758
|
[`${K}--negative`]: a
|
|
@@ -1784,7 +1784,7 @@ function So(...e) {
|
|
|
1784
1784
|
// @__NO_SIDE_EFFECTS__
|
|
1785
1785
|
function Co(e) {
|
|
1786
1786
|
const t = /* @__PURE__ */ No(e), r = s.forwardRef((o, a) => {
|
|
1787
|
-
const { children: n, ...u } = o, i = s.Children.toArray(n), d = i.find(
|
|
1787
|
+
const { children: n, ...u } = o, i = s.Children.toArray(n), d = i.find(Po);
|
|
1788
1788
|
if (d) {
|
|
1789
1789
|
const c = d.props.children, p = i.map((v) => v === d ? s.Children.count(c) > 1 ? s.Children.only(null) : s.isValidElement(c) ? c.props.children : null : v);
|
|
1790
1790
|
return /* @__PURE__ */ f(t, { ...u, ref: a, children: s.isValidElement(c) ? s.cloneElement(c, void 0, p) : null });
|
|
@@ -1798,18 +1798,18 @@ function No(e) {
|
|
|
1798
1798
|
const t = s.forwardRef((r, o) => {
|
|
1799
1799
|
const { children: a, ...n } = r;
|
|
1800
1800
|
if (s.isValidElement(a)) {
|
|
1801
|
-
const u =
|
|
1801
|
+
const u = Ro(a), i = Oo(n, a.props);
|
|
1802
1802
|
return a.type !== s.Fragment && (i.ref = o ? So(o, u) : u), s.cloneElement(a, i);
|
|
1803
1803
|
}
|
|
1804
1804
|
return s.Children.count(a) > 1 ? s.Children.only(null) : null;
|
|
1805
1805
|
});
|
|
1806
1806
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1807
1807
|
}
|
|
1808
|
-
var
|
|
1809
|
-
function
|
|
1810
|
-
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
1808
|
+
var xo = Symbol("radix.slottable");
|
|
1809
|
+
function Po(e) {
|
|
1810
|
+
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xo;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Oo(e, t) {
|
|
1813
1813
|
const r = { ...t };
|
|
1814
1814
|
for (const o in t) {
|
|
1815
1815
|
const a = e[o], n = t[o];
|
|
@@ -1819,7 +1819,7 @@ function Ro(e, t) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
return { ...e, ...r };
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Ro(e) {
|
|
1823
1823
|
var t, r;
|
|
1824
1824
|
let o = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, a = o && "isReactWarning" in o && o.isReactWarning;
|
|
1825
1825
|
return a ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, a = o && "isReactWarning" in o && o.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -1915,10 +1915,10 @@ function Lo() {
|
|
|
1915
1915
|
})();
|
|
1916
1916
|
})(_e)), _e.exports;
|
|
1917
1917
|
}
|
|
1918
|
-
var
|
|
1919
|
-
const
|
|
1918
|
+
var jo = Lo();
|
|
1919
|
+
const Fo = /* @__PURE__ */ Io(jo), ko = "_fadeIn_4aird_1", Wo = {
|
|
1920
1920
|
"purpur-modal-content": "_purpur-modal-content_4aird_1",
|
|
1921
|
-
fadeIn:
|
|
1921
|
+
fadeIn: ko,
|
|
1922
1922
|
"purpur-modal-content__overlay": "_purpur-modal-content__overlay_4aird_30",
|
|
1923
1923
|
"purpur-modal-content__close-button": "_purpur-modal-content__close-button_4aird_37",
|
|
1924
1924
|
"purpur-modal-content__wrapper": "_purpur-modal-content__wrapper_4aird_47",
|
|
@@ -1936,7 +1936,7 @@ const ko = /* @__PURE__ */ Io(Fo), Wo = "_fadeIn_4aird_1", Bo = {
|
|
|
1936
1936
|
"purpur-modal-content__actions": "_purpur-modal-content__actions_4aird_123",
|
|
1937
1937
|
"purpur-modal-content__actions-separator": "_purpur-modal-content__actions-separator_4aird_175",
|
|
1938
1938
|
"purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_4aird_185"
|
|
1939
|
-
}, ot = (e) => e.showCloseButton === !0,
|
|
1939
|
+
}, ot = (e) => e.showCloseButton === !0, P = Fo.bind(Wo), N = "purpur-modal-content", Bo = Ce(
|
|
1940
1940
|
({
|
|
1941
1941
|
["data-testid"]: e,
|
|
1942
1942
|
actions: t,
|
|
@@ -1953,20 +1953,20 @@ const ko = /* @__PURE__ */ Io(Fo), Wo = "_fadeIn_4aird_1", Bo = {
|
|
|
1953
1953
|
onCloseAutoFocus: h,
|
|
1954
1954
|
...g
|
|
1955
1955
|
}, b) => {
|
|
1956
|
-
const { closeButtonAriaLabel: l, showCloseButton: m, ..._ } = g, [
|
|
1956
|
+
const { closeButtonAriaLabel: l, showCloseButton: m, ..._ } = g, [E, w] = ye(!1), [S, C] = ye(0), x = be(null), y = be(null), R = P(
|
|
1957
1957
|
N,
|
|
1958
1958
|
{ [`${N}--with-image`]: !!i },
|
|
1959
|
-
{ [`${N}--overflow`]:
|
|
1959
|
+
{ [`${N}--overflow`]: E },
|
|
1960
1960
|
{ [`${N}--sticky-footer`]: d },
|
|
1961
1961
|
o
|
|
1962
|
-
),
|
|
1962
|
+
), O = (D) => e ? `${e} ${D}` : void 0, z = (D) => {
|
|
1963
1963
|
n && D.preventDefault();
|
|
1964
|
-
},
|
|
1965
|
-
if (!
|
|
1964
|
+
}, W = Yt(() => {
|
|
1965
|
+
if (!x.current || !y.current)
|
|
1966
1966
|
return;
|
|
1967
|
-
const D = window.getComputedStyle(
|
|
1968
|
-
|
|
1969
|
-
(
|
|
1967
|
+
const D = window.getComputedStyle(x.current, null), X = parseFloat(D.getPropertyValue("height")), qt = y.current.offsetHeight;
|
|
1968
|
+
w(X < qt), C(
|
|
1969
|
+
(x.current.offsetWidth ?? 0) - (x.current.clientWidth ?? 0)
|
|
1970
1970
|
);
|
|
1971
1971
|
}, []), Gt = () => {
|
|
1972
1972
|
const D = y.current;
|
|
@@ -1979,73 +1979,73 @@ const ko = /* @__PURE__ */ Io(Fo), Wo = "_fadeIn_4aird_1", Bo = {
|
|
|
1979
1979
|
}, Kt = (D) => {
|
|
1980
1980
|
n && !m && D.preventDefault();
|
|
1981
1981
|
};
|
|
1982
|
-
return
|
|
1983
|
-
window.removeEventListener("resize",
|
|
1984
|
-
}), [
|
|
1985
|
-
|
|
1986
|
-
}, [p, r,
|
|
1987
|
-
/* @__PURE__ */ f(Tn, { className:
|
|
1982
|
+
return Ee(() => (window.addEventListener("resize", W), () => {
|
|
1983
|
+
window.removeEventListener("resize", W);
|
|
1984
|
+
}), [W]), Ee(() => {
|
|
1985
|
+
W();
|
|
1986
|
+
}, [p, r, W]), /* @__PURE__ */ $($n, { children: [
|
|
1987
|
+
/* @__PURE__ */ f(Tn, { className: P(`${N}__overlay`), style: { zIndex: v } }),
|
|
1988
1988
|
/* @__PURE__ */ $(
|
|
1989
1989
|
Mn,
|
|
1990
1990
|
{
|
|
1991
1991
|
..._,
|
|
1992
|
-
className:
|
|
1992
|
+
className: R,
|
|
1993
1993
|
"data-testid": e,
|
|
1994
1994
|
ref: b,
|
|
1995
1995
|
...!a && { "aria-describedby": void 0 },
|
|
1996
1996
|
onPointerDownOutside: z,
|
|
1997
1997
|
onOpenAutoFocus: () => {
|
|
1998
|
-
|
|
1998
|
+
W(), Gt();
|
|
1999
1999
|
},
|
|
2000
2000
|
onEscapeKeyDown: Kt,
|
|
2001
2001
|
onCloseAutoFocus: h,
|
|
2002
2002
|
style: { zIndex: `calc(${v} + 1)` },
|
|
2003
2003
|
children: [
|
|
2004
|
-
/* @__PURE__ */ $("div", { ref:
|
|
2004
|
+
/* @__PURE__ */ $("div", { ref: x, className: P(`${N}__wrapper`), children: [
|
|
2005
2005
|
ot(g) && l && i && /* @__PURE__ */ f(
|
|
2006
2006
|
at,
|
|
2007
2007
|
{
|
|
2008
2008
|
"aria-label": l,
|
|
2009
2009
|
hasImage: !0,
|
|
2010
2010
|
scrollbarWidth: S,
|
|
2011
|
-
"data-testid":
|
|
2011
|
+
"data-testid": O("close-button")
|
|
2012
2012
|
}
|
|
2013
2013
|
),
|
|
2014
|
-
/* @__PURE__ */ $("div", { ref: y, className:
|
|
2015
|
-
/* @__PURE__ */ $("div", { className:
|
|
2014
|
+
/* @__PURE__ */ $("div", { ref: y, className: P(`${N}__wrapper-inner`), children: [
|
|
2015
|
+
/* @__PURE__ */ $("div", { className: P(`${N}__header`), children: [
|
|
2016
2016
|
ot(g) && l && !i && /* @__PURE__ */ f(
|
|
2017
2017
|
at,
|
|
2018
2018
|
{
|
|
2019
2019
|
"aria-label": l,
|
|
2020
|
-
"data-testid":
|
|
2020
|
+
"data-testid": O("close-button")
|
|
2021
2021
|
}
|
|
2022
2022
|
),
|
|
2023
2023
|
/* @__PURE__ */ f(
|
|
2024
2024
|
In,
|
|
2025
2025
|
{
|
|
2026
2026
|
asChild: !0,
|
|
2027
|
-
className:
|
|
2028
|
-
"data-testid":
|
|
2029
|
-
children: /* @__PURE__ */ f(
|
|
2027
|
+
className: P(`${N}__title`),
|
|
2028
|
+
"data-testid": O("title"),
|
|
2029
|
+
children: /* @__PURE__ */ f(Bt, { tag: "h2", variant: "title-200", tabIndex: -1, children: c })
|
|
2030
2030
|
}
|
|
2031
2031
|
)
|
|
2032
2032
|
] }),
|
|
2033
2033
|
i && /* @__PURE__ */ f(
|
|
2034
2034
|
"div",
|
|
2035
2035
|
{
|
|
2036
|
-
className:
|
|
2037
|
-
"data-testid":
|
|
2036
|
+
className: P(`${N}__image-wrapper`),
|
|
2037
|
+
"data-testid": O("image"),
|
|
2038
2038
|
children: i
|
|
2039
2039
|
}
|
|
2040
2040
|
),
|
|
2041
|
-
/* @__PURE__ */ f("div", { className:
|
|
2042
|
-
a && u && /* @__PURE__ */ f(Mo, { asChild: !0, children: /* @__PURE__ */ f(Ve, { "data-testid":
|
|
2041
|
+
/* @__PURE__ */ f("div", { className: P(`${N}__body`), children: /* @__PURE__ */ $("div", { className: P(`${N}__body-inner`), children: [
|
|
2042
|
+
a && u && /* @__PURE__ */ f(Mo, { asChild: !0, children: /* @__PURE__ */ f(Ve, { "data-testid": O("description"), children: a }) }),
|
|
2043
2043
|
a && !u && /* @__PURE__ */ f(
|
|
2044
2044
|
Ve,
|
|
2045
2045
|
{
|
|
2046
2046
|
asChild: !0,
|
|
2047
|
-
className:
|
|
2048
|
-
"data-testid":
|
|
2047
|
+
className: P(`${N}__description`),
|
|
2048
|
+
"data-testid": O("description"),
|
|
2049
2049
|
children: /* @__PURE__ */ f(Ht, { variant: "paragraph-100", children: a })
|
|
2050
2050
|
}
|
|
2051
2051
|
),
|
|
@@ -2066,14 +2066,14 @@ const ko = /* @__PURE__ */ Io(Fo), Wo = "_fadeIn_4aird_1", Bo = {
|
|
|
2066
2066
|
scrollbarWidth: r,
|
|
2067
2067
|
["data-testid"]: o
|
|
2068
2068
|
}) => /* @__PURE__ */ f(Ln, { asChild: !0, children: /* @__PURE__ */ f(
|
|
2069
|
-
|
|
2069
|
+
Wt,
|
|
2070
2070
|
{
|
|
2071
2071
|
variant: t ? "primary" : "tertiary-purple",
|
|
2072
2072
|
negative: t,
|
|
2073
2073
|
size: "sm",
|
|
2074
2074
|
iconOnly: !0,
|
|
2075
2075
|
"aria-label": e,
|
|
2076
|
-
className:
|
|
2076
|
+
className: P(`${N}__close-button`),
|
|
2077
2077
|
style: { right: `calc(var(--purpur-spacing-100) + ${r || 0}px)` },
|
|
2078
2078
|
"data-testid": o,
|
|
2079
2079
|
children: /* @__PURE__ */ f(Vt, {})
|
|
@@ -2083,26 +2083,26 @@ const ko = /* @__PURE__ */ Io(Fo), Wo = "_fadeIn_4aird_1", Bo = {
|
|
|
2083
2083
|
notification: t
|
|
2084
2084
|
}) => {
|
|
2085
2085
|
const r = be(null);
|
|
2086
|
-
return
|
|
2086
|
+
return Ee(() => {
|
|
2087
2087
|
var o, a;
|
|
2088
2088
|
t && ((a = (o = r == null ? void 0 : r.current) == null ? void 0 : o.scrollIntoView) == null || a.call(o, !1));
|
|
2089
|
-
}, [t]), e ? /* @__PURE__ */ $("div", { className:
|
|
2090
|
-
/* @__PURE__ */ f("div", { className:
|
|
2091
|
-
t && /* @__PURE__ */ f("div", { className:
|
|
2092
|
-
/* @__PURE__ */ f("span", { className:
|
|
2089
|
+
}, [t]), e ? /* @__PURE__ */ $("div", { className: P(`${N}__actions`), children: [
|
|
2090
|
+
/* @__PURE__ */ f("div", { className: P(`${N}__actions-buttons`), "data-testid": "modal actions", children: e }),
|
|
2091
|
+
t && /* @__PURE__ */ f("div", { className: P(`${N}__notification`), ref: r, children: t }),
|
|
2092
|
+
/* @__PURE__ */ f("span", { className: P(`${N}__actions-separator`) })
|
|
2093
2093
|
] }) : null;
|
|
2094
2094
|
}, Uo = Ce(
|
|
2095
2095
|
({ children: e, ...t }, r) => /* @__PURE__ */ f(Dn, { asChild: !0, ref: r, ...t, children: e })
|
|
2096
|
-
),
|
|
2096
|
+
), Oe = ({
|
|
2097
2097
|
["data-testid"]: e,
|
|
2098
2098
|
children: t,
|
|
2099
2099
|
open: r,
|
|
2100
2100
|
onOpenChange: o
|
|
2101
2101
|
}) => /* @__PURE__ */ f(An, { open: r, onOpenChange: o, "data-testid": e, children: t });
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2102
|
+
Oe.Trigger = Uo;
|
|
2103
|
+
Oe.Content = Bo;
|
|
2104
|
+
Oe.displayName = "Modal";
|
|
2105
2105
|
export {
|
|
2106
|
-
|
|
2106
|
+
Oe as Modal
|
|
2107
2107
|
};
|
|
2108
2108
|
//# sourceMappingURL=modal.es.js.map
|