@boxcustodia/library 0.2.3 → 0.2.4
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/index.d.ts +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es104.js +9 -4
- package/dist/index.es105.js +4 -14
- package/dist/index.es106.js +14 -5
- package/dist/index.es107.js +4 -56
- package/dist/index.es108.js +55 -222
- package/dist/index.es109.js +224 -11
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +11 -41
- package/dist/index.es112.js +41 -11
- package/dist/index.es113.js +21 -33
- package/dist/index.es114.js +12 -21
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +4 -3
- package/dist/index.es117.js +4 -5
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +813 -55
- package/dist/index.es120.js +9 -822
- package/dist/index.es121.js +5 -3
- package/dist/index.es122.js +4 -11
- package/dist/index.es123.js +64 -4
- package/dist/index.es124.js +33 -13
- package/dist/index.es125.js +13 -33
- package/dist/index.es126.js +216 -13
- package/dist/index.es127.js +13 -8
- package/dist/index.es128.js +7 -215
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +12 -9
- package/dist/index.es133.js +196 -204
- package/dist/index.es134.js +41 -10
- package/dist/index.es135.js +9 -12
- package/dist/index.es136.js +204 -196
- package/dist/index.es137.js +10 -41
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +12 -6
- package/dist/index.es142.js +5 -63
- package/dist/index.es143.js +64 -10
- package/dist/index.es144.js +10 -124
- package/dist/index.es145.js +116 -126
- package/dist/index.es146.js +134 -13
- package/dist/index.es147.js +14 -33
- package/dist/index.es148.js +32 -14
- package/dist/index.es149.js +14 -8
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +9 -50
- package/dist/index.es151.js +50 -6
- package/dist/index.es152.js +6 -2
- package/dist/index.es153.js +2 -44
- package/dist/index.es154.js +40 -646
- package/dist/index.es155.js +648 -11
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +45 -3
- package/dist/index.es159.js +7 -45
- package/dist/index.es160.js +4 -8
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +6 -118
- package/dist/index.es164.js +3 -35
- package/dist/index.es165.js +2054 -2
- package/dist/index.es166.js +118 -2
- package/dist/index.es167.js +33 -6
- package/dist/index.es168.js +4 -3
- package/dist/index.es169.js +2 -2054
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es236.js +176 -19
- package/dist/index.es237.js +15 -3
- package/dist/index.es238.js +3 -32
- package/dist/index.es239.js +32 -12
- package/dist/index.es240.js +17 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +16 -18
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es283.js +16 -15
- package/dist/index.es284.js +8 -3
- package/dist/index.es285.js +15 -16
- package/dist/index.es286.js +3 -8
- package/dist/index.es29.js +3 -3
- package/dist/index.es30.js +23 -23
- package/dist/index.es32.js +2 -2
- package/dist/index.es325.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es335.js +3 -3
- package/dist/index.es338.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +46 -35
- package/dist/index.es342.js +2 -2
- package/dist/index.es343.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +2 -29
- package/dist/index.es351.js +106 -5
- package/dist/index.es352.js +76 -2
- package/dist/index.es353.js +36 -107
- package/dist/index.es354.js +60 -73
- package/dist/index.es355.js +28 -30
- package/dist/index.es356.js +63 -61
- package/dist/index.es357.js +109 -30
- package/dist/index.es358.js +87 -59
- package/dist/index.es359.js +40 -110
- package/dist/index.es360.js +3 -94
- package/dist/index.es361.js +3 -43
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +241 -4
- package/dist/index.es370.js +384 -4
- package/dist/index.es371.js +132 -204
- package/dist/index.es372.js +103 -334
- package/dist/index.es373.js +75 -102
- package/dist/index.es374.js +4 -153
- package/dist/index.es375.js +4 -142
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +5 -2
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +1 -1
- package/dist/index.es394.js +1 -1
- package/dist/index.es404.js +68 -2
- package/dist/index.es405.js +31 -47
- package/dist/index.es406.js +16 -83
- package/dist/index.es407.js +140 -13
- package/dist/index.es408.js +113 -340
- package/dist/index.es409.js +507 -63
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +126 -10
- package/dist/index.es411.js +117 -510
- package/dist/index.es412.js +64 -116
- package/dist/index.es413.js +10 -125
- package/dist/index.es414.js +2 -68
- package/dist/index.es415.js +47 -31
- package/dist/index.es416.js +83 -16
- package/dist/index.es417.js +13 -140
- package/dist/index.es418.js +340 -113
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +4 -4
- package/dist/index.es441.js +275 -3
- package/dist/index.es442.js +78 -105
- package/dist/index.es443.js +166 -2
- package/dist/index.es444.js +3 -2
- package/dist/index.es445.js +100 -268
- package/dist/index.es446.js +2 -80
- package/dist/index.es447.js +2 -166
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +5 -5
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +4 -4
- package/dist/index.es54.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +2 -2
- package/dist/index.es753.js +5 -5
- package/dist/index.es754.js +22 -14
- package/dist/index.es755.js +82 -59
- package/dist/index.es756.js +14 -22
- package/dist/index.es757.js +59 -82
- package/dist/index.es769.js +2 -8
- package/dist/index.es770.js +2 -56
- package/dist/index.es771.js +7 -18
- package/dist/index.es772.js +56 -2
- package/dist/index.es773.js +19 -2
- package/dist/index.es780.js +28 -28
- package/dist/index.es782.js +5 -5
- package/dist/index.es783.js +13 -17
- package/dist/index.es785.js +5 -11
- package/dist/index.es786.js +28 -28
- package/dist/index.es787.js +5 -5
- package/dist/index.es788.js +17 -13
- package/dist/index.es789.js +11 -5
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es805.js +8 -10
- package/dist/index.es806.js +9 -7
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +10 -8
- package/dist/index.es809.js +7 -9
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +25 -38
- package/dist/index.es825.js +38 -25
- package/dist/index.es826.js +15 -64
- package/dist/index.es827.js +7 -11
- package/dist/index.es828.js +61 -38
- package/dist/index.es829.js +7 -54
- package/dist/index.es830.js +40 -16
- package/dist/index.es831.js +57 -17
- package/dist/index.es832.js +20 -7
- package/dist/index.es833.js +1 -1
- package/dist/index.es84.js +305 -33
- package/dist/index.es85.js +12 -46
- package/dist/index.es86.js +34 -29
- package/dist/index.es87.js +42 -26
- package/dist/index.es88.js +27 -304
- package/dist/index.es89.js +30 -12
- package/dist/index.es90.js +55 -9
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +92 -55
- package/dist/index.es93.js +34 -87
- package/dist/index.es94.js +23 -36
- package/dist/index.es95.js +24 -18
- package/dist/index.es96.js +257 -28
- package/dist/index.es97.js +5 -5
- package/dist/index.es98.js +32 -258
- package/dist/index.es99.js +5 -5
- package/dist/style.css +8 -8
- package/package.json +1 -1
package/dist/index.es96.js
CHANGED
|
@@ -1,32 +1,261 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { composeEventHandlers as p } from "./index.es142.js";
|
|
3
|
+
import { useComposedRefs as C } from "./index.es135.js";
|
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es143.js";
|
|
5
|
+
import { useId as x } from "./index.es144.js";
|
|
6
|
+
import { useControllableState as V } from "./index.es89.js";
|
|
7
|
+
import { DismissableLayer as q } from "./index.es145.js";
|
|
8
|
+
import { FocusScope as K } from "./index.es146.js";
|
|
9
|
+
import { Portal as U } from "./index.es147.js";
|
|
10
|
+
import { Presence as R } from "./index.es123.js";
|
|
11
|
+
import { Primitive as m } from "./index.es148.js";
|
|
12
|
+
import { useFocusGuards as Y } from "./index.es149.js";
|
|
13
|
+
import Z from "./index.es150.js";
|
|
14
|
+
import { hideOthers as z } from "./index.es151.js";
|
|
15
|
+
import { Slot as J } from "./index.es87.js";
|
|
16
|
+
import { j as i } from "./index.es83.js";
|
|
17
|
+
var _ = "Dialog", [P, _e] = B(_), [Q, u] = P(_), y = (e) => {
|
|
18
|
+
const {
|
|
19
|
+
__scopeDialog: o,
|
|
20
|
+
children: n,
|
|
21
|
+
open: a,
|
|
22
|
+
defaultOpen: r,
|
|
23
|
+
onOpenChange: t,
|
|
24
|
+
modal: c = !0
|
|
25
|
+
} = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = V({
|
|
26
|
+
prop: a,
|
|
27
|
+
defaultProp: r,
|
|
28
|
+
onChange: t
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ i.jsx(
|
|
31
|
+
Q,
|
|
19
32
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
scope: o,
|
|
34
|
+
triggerRef: l,
|
|
35
|
+
contentRef: d,
|
|
36
|
+
contentId: x(),
|
|
37
|
+
titleId: x(),
|
|
38
|
+
descriptionId: x(),
|
|
39
|
+
open: g,
|
|
40
|
+
onOpenChange: v,
|
|
41
|
+
onOpenToggle: s.useCallback(() => v(($) => !$), [v]),
|
|
42
|
+
modal: c,
|
|
43
|
+
children: n
|
|
44
|
+
}
|
|
45
|
+
);
|
|
28
46
|
};
|
|
29
|
-
|
|
47
|
+
y.displayName = _;
|
|
48
|
+
var I = "DialogTrigger", O = s.forwardRef(
|
|
49
|
+
(e, o) => {
|
|
50
|
+
const { __scopeDialog: n, ...a } = e, r = u(I, n), t = C(o, r.triggerRef);
|
|
51
|
+
return /* @__PURE__ */ i.jsx(
|
|
52
|
+
m.button,
|
|
53
|
+
{
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-haspopup": "dialog",
|
|
56
|
+
"aria-expanded": r.open,
|
|
57
|
+
"aria-controls": r.contentId,
|
|
58
|
+
"data-state": N(r.open),
|
|
59
|
+
...a,
|
|
60
|
+
ref: t,
|
|
61
|
+
onClick: p(e.onClick, r.onOpenToggle)
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
O.displayName = I;
|
|
67
|
+
var h = "DialogPortal", [X, A] = P(h, {
|
|
68
|
+
forceMount: void 0
|
|
69
|
+
}), j = (e) => {
|
|
70
|
+
const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(h, o);
|
|
71
|
+
return /* @__PURE__ */ i.jsx(X, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i.jsx(R, { present: n || t.open, children: /* @__PURE__ */ i.jsx(U, { asChild: !0, container: r, children: c }) })) });
|
|
72
|
+
};
|
|
73
|
+
j.displayName = h;
|
|
74
|
+
var D = "DialogOverlay", T = s.forwardRef(
|
|
75
|
+
(e, o) => {
|
|
76
|
+
const n = A(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
|
|
77
|
+
return t.modal ? /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: /* @__PURE__ */ i.jsx(ee, { ...r, ref: o }) }) : null;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
T.displayName = D;
|
|
81
|
+
var ee = s.forwardRef(
|
|
82
|
+
(e, o) => {
|
|
83
|
+
const { __scopeDialog: n, ...a } = e, r = u(D, n);
|
|
84
|
+
return (
|
|
85
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
86
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
87
|
+
/* @__PURE__ */ i.jsx(Z, { as: J, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i.jsx(
|
|
88
|
+
m.div,
|
|
89
|
+
{
|
|
90
|
+
"data-state": N(r.open),
|
|
91
|
+
...a,
|
|
92
|
+
ref: o,
|
|
93
|
+
style: { pointerEvents: "auto", ...a.style }
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
), f = "DialogContent", b = s.forwardRef(
|
|
99
|
+
(e, o) => {
|
|
100
|
+
const n = A(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
|
|
101
|
+
return /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i.jsx(te, { ...r, ref: o }) : /* @__PURE__ */ i.jsx(oe, { ...r, ref: o }) });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
b.displayName = f;
|
|
105
|
+
var te = s.forwardRef(
|
|
106
|
+
(e, o) => {
|
|
107
|
+
const n = u(f, e.__scopeDialog), a = s.useRef(null), r = C(o, n.contentRef, a);
|
|
108
|
+
return s.useEffect(() => {
|
|
109
|
+
const t = a.current;
|
|
110
|
+
if (t) return z(t);
|
|
111
|
+
}, []), /* @__PURE__ */ i.jsx(
|
|
112
|
+
M,
|
|
113
|
+
{
|
|
114
|
+
...e,
|
|
115
|
+
ref: r,
|
|
116
|
+
trapFocus: n.open,
|
|
117
|
+
disableOutsidePointerEvents: !0,
|
|
118
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
|
|
119
|
+
var c;
|
|
120
|
+
t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
|
|
121
|
+
}),
|
|
122
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
|
|
123
|
+
const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
124
|
+
(c.button === 2 || l) && t.preventDefault();
|
|
125
|
+
}),
|
|
126
|
+
onFocusOutside: p(
|
|
127
|
+
e.onFocusOutside,
|
|
128
|
+
(t) => t.preventDefault()
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
), oe = s.forwardRef(
|
|
134
|
+
(e, o) => {
|
|
135
|
+
const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
136
|
+
return /* @__PURE__ */ i.jsx(
|
|
137
|
+
M,
|
|
138
|
+
{
|
|
139
|
+
...e,
|
|
140
|
+
ref: o,
|
|
141
|
+
trapFocus: !1,
|
|
142
|
+
disableOutsidePointerEvents: !1,
|
|
143
|
+
onCloseAutoFocus: (t) => {
|
|
144
|
+
var c, l;
|
|
145
|
+
(c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
|
|
146
|
+
},
|
|
147
|
+
onInteractOutside: (t) => {
|
|
148
|
+
var d, g;
|
|
149
|
+
(d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
150
|
+
const c = t.target;
|
|
151
|
+
((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
), M = s.forwardRef(
|
|
157
|
+
(e, o) => {
|
|
158
|
+
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = C(o, d);
|
|
159
|
+
return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
160
|
+
/* @__PURE__ */ i.jsx(
|
|
161
|
+
K,
|
|
162
|
+
{
|
|
163
|
+
asChild: !0,
|
|
164
|
+
loop: !0,
|
|
165
|
+
trapped: a,
|
|
166
|
+
onMountAutoFocus: r,
|
|
167
|
+
onUnmountAutoFocus: t,
|
|
168
|
+
children: /* @__PURE__ */ i.jsx(
|
|
169
|
+
q,
|
|
170
|
+
{
|
|
171
|
+
role: "dialog",
|
|
172
|
+
id: l.contentId,
|
|
173
|
+
"aria-describedby": l.descriptionId,
|
|
174
|
+
"aria-labelledby": l.titleId,
|
|
175
|
+
"data-state": N(l.open),
|
|
176
|
+
...c,
|
|
177
|
+
ref: g,
|
|
178
|
+
onDismiss: () => l.onOpenChange(!1)
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
184
|
+
/* @__PURE__ */ i.jsx(re, { titleId: l.titleId }),
|
|
185
|
+
/* @__PURE__ */ i.jsx(ae, { contentRef: d, descriptionId: l.descriptionId })
|
|
186
|
+
] })
|
|
187
|
+
] });
|
|
188
|
+
}
|
|
189
|
+
), E = "DialogTitle", w = s.forwardRef(
|
|
190
|
+
(e, o) => {
|
|
191
|
+
const { __scopeDialog: n, ...a } = e, r = u(E, n);
|
|
192
|
+
return /* @__PURE__ */ i.jsx(m.h2, { id: r.titleId, ...a, ref: o });
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
w.displayName = E;
|
|
196
|
+
var F = "DialogDescription", S = s.forwardRef(
|
|
197
|
+
(e, o) => {
|
|
198
|
+
const { __scopeDialog: n, ...a } = e, r = u(F, n);
|
|
199
|
+
return /* @__PURE__ */ i.jsx(m.p, { id: r.descriptionId, ...a, ref: o });
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
S.displayName = F;
|
|
203
|
+
var W = "DialogClose", k = s.forwardRef(
|
|
204
|
+
(e, o) => {
|
|
205
|
+
const { __scopeDialog: n, ...a } = e, r = u(W, n);
|
|
206
|
+
return /* @__PURE__ */ i.jsx(
|
|
207
|
+
m.button,
|
|
208
|
+
{
|
|
209
|
+
type: "button",
|
|
210
|
+
...a,
|
|
211
|
+
ref: o,
|
|
212
|
+
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
k.displayName = W;
|
|
218
|
+
function N(e) {
|
|
219
|
+
return e ? "open" : "closed";
|
|
220
|
+
}
|
|
221
|
+
var G = "DialogTitleWarning", [he, L] = H(G, {
|
|
222
|
+
contentName: f,
|
|
223
|
+
titleName: E,
|
|
224
|
+
docsSlug: "dialog"
|
|
225
|
+
}), re = ({ titleId: e }) => {
|
|
226
|
+
const o = L(G), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
227
|
+
|
|
228
|
+
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
229
|
+
|
|
230
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
|
|
231
|
+
return s.useEffect(() => {
|
|
232
|
+
e && (document.getElementById(e) || console.error(n));
|
|
233
|
+
}, [n, e]), null;
|
|
234
|
+
}, ne = "DialogDescriptionWarning", ae = ({ contentRef: e, descriptionId: o }) => {
|
|
235
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ne).contentName}}.`;
|
|
236
|
+
return s.useEffect(() => {
|
|
237
|
+
var t;
|
|
238
|
+
const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
239
|
+
o && r && (document.getElementById(o) || console.warn(a));
|
|
240
|
+
}, [a, e, o]), null;
|
|
241
|
+
}, Ee = y, Ne = O, Pe = j, ye = T, Ie = b, Oe = w, Ae = S, je = k;
|
|
30
242
|
export {
|
|
31
|
-
|
|
243
|
+
je as Close,
|
|
244
|
+
Ie as Content,
|
|
245
|
+
Ae as Description,
|
|
246
|
+
y as Dialog,
|
|
247
|
+
k as DialogClose,
|
|
248
|
+
b as DialogContent,
|
|
249
|
+
S as DialogDescription,
|
|
250
|
+
T as DialogOverlay,
|
|
251
|
+
j as DialogPortal,
|
|
252
|
+
w as DialogTitle,
|
|
253
|
+
O as DialogTrigger,
|
|
254
|
+
ye as Overlay,
|
|
255
|
+
Pe as Portal,
|
|
256
|
+
Ee as Root,
|
|
257
|
+
Oe as Title,
|
|
258
|
+
Ne as Trigger,
|
|
259
|
+
he as WarningProvider,
|
|
260
|
+
_e as createDialogScope
|
|
32
261
|
};
|
package/dist/index.es97.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e from "./index.
|
|
1
|
+
import e from "./index.es237.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.379.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
["path", { d: "
|
|
10
|
-
["path", { d: "
|
|
8
|
+
const a = e("X", [
|
|
9
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
10
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
11
|
]);
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
a as default
|
|
14
14
|
};
|
package/dist/index.es98.js
CHANGED
|
@@ -1,261 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
return
|
|
31
|
-
Q,
|
|
32
|
-
{
|
|
33
|
-
scope: o,
|
|
34
|
-
triggerRef: l,
|
|
35
|
-
contentRef: d,
|
|
36
|
-
contentId: x(),
|
|
37
|
-
titleId: x(),
|
|
38
|
-
descriptionId: x(),
|
|
39
|
-
open: g,
|
|
40
|
-
onOpenChange: v,
|
|
41
|
-
onOpenToggle: s.useCallback(() => v(($) => !$), [v]),
|
|
42
|
-
modal: c,
|
|
43
|
-
children: n
|
|
44
|
-
}
|
|
45
|
-
);
|
|
1
|
+
import { clsx as O } from "./index.es141.js";
|
|
2
|
+
const m = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
|
+
var r;
|
|
4
|
+
if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
5
|
+
const { variants: o, defaultVariants: d } = l, N = Object.keys(o).map((t) => {
|
|
6
|
+
const a = n == null ? void 0 : n[t], u = d == null ? void 0 : d[t];
|
|
7
|
+
if (a === null) return null;
|
|
8
|
+
const i = m(a) || m(u);
|
|
9
|
+
return o[t][i];
|
|
10
|
+
}), v = n && Object.entries(n).reduce((t, a) => {
|
|
11
|
+
let [u, i] = a;
|
|
12
|
+
return i === void 0 || (t[u] = i), t;
|
|
13
|
+
}, {}), V = l == null || (r = l.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((t, a) => {
|
|
14
|
+
let { class: u, className: i, ...f } = a;
|
|
15
|
+
return Object.entries(f).every((C) => {
|
|
16
|
+
let [c, s] = C;
|
|
17
|
+
return Array.isArray(s) ? s.includes({
|
|
18
|
+
...d,
|
|
19
|
+
...v
|
|
20
|
+
}[c]) : {
|
|
21
|
+
...d,
|
|
22
|
+
...v
|
|
23
|
+
}[c] === s;
|
|
24
|
+
}) ? [
|
|
25
|
+
...t,
|
|
26
|
+
u,
|
|
27
|
+
i
|
|
28
|
+
] : t;
|
|
29
|
+
}, []);
|
|
30
|
+
return y(e, N, V, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
46
31
|
};
|
|
47
|
-
y.displayName = _;
|
|
48
|
-
var I = "DialogTrigger", O = s.forwardRef(
|
|
49
|
-
(e, o) => {
|
|
50
|
-
const { __scopeDialog: n, ...a } = e, r = u(I, n), t = C(o, r.triggerRef);
|
|
51
|
-
return /* @__PURE__ */ i.jsx(
|
|
52
|
-
m.button,
|
|
53
|
-
{
|
|
54
|
-
type: "button",
|
|
55
|
-
"aria-haspopup": "dialog",
|
|
56
|
-
"aria-expanded": r.open,
|
|
57
|
-
"aria-controls": r.contentId,
|
|
58
|
-
"data-state": N(r.open),
|
|
59
|
-
...a,
|
|
60
|
-
ref: t,
|
|
61
|
-
onClick: p(e.onClick, r.onOpenToggle)
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
O.displayName = I;
|
|
67
|
-
var h = "DialogPortal", [X, A] = P(h, {
|
|
68
|
-
forceMount: void 0
|
|
69
|
-
}), j = (e) => {
|
|
70
|
-
const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(h, o);
|
|
71
|
-
return /* @__PURE__ */ i.jsx(X, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i.jsx(R, { present: n || t.open, children: /* @__PURE__ */ i.jsx(U, { asChild: !0, container: r, children: c }) })) });
|
|
72
|
-
};
|
|
73
|
-
j.displayName = h;
|
|
74
|
-
var D = "DialogOverlay", T = s.forwardRef(
|
|
75
|
-
(e, o) => {
|
|
76
|
-
const n = A(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
|
|
77
|
-
return t.modal ? /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: /* @__PURE__ */ i.jsx(ee, { ...r, ref: o }) }) : null;
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
T.displayName = D;
|
|
81
|
-
var ee = s.forwardRef(
|
|
82
|
-
(e, o) => {
|
|
83
|
-
const { __scopeDialog: n, ...a } = e, r = u(D, n);
|
|
84
|
-
return (
|
|
85
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
86
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
87
|
-
/* @__PURE__ */ i.jsx(Z, { as: J, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i.jsx(
|
|
88
|
-
m.div,
|
|
89
|
-
{
|
|
90
|
-
"data-state": N(r.open),
|
|
91
|
-
...a,
|
|
92
|
-
ref: o,
|
|
93
|
-
style: { pointerEvents: "auto", ...a.style }
|
|
94
|
-
}
|
|
95
|
-
) })
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
), f = "DialogContent", b = s.forwardRef(
|
|
99
|
-
(e, o) => {
|
|
100
|
-
const n = A(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
|
|
101
|
-
return /* @__PURE__ */ i.jsx(R, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i.jsx(te, { ...r, ref: o }) : /* @__PURE__ */ i.jsx(oe, { ...r, ref: o }) });
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
b.displayName = f;
|
|
105
|
-
var te = s.forwardRef(
|
|
106
|
-
(e, o) => {
|
|
107
|
-
const n = u(f, e.__scopeDialog), a = s.useRef(null), r = C(o, n.contentRef, a);
|
|
108
|
-
return s.useEffect(() => {
|
|
109
|
-
const t = a.current;
|
|
110
|
-
if (t) return z(t);
|
|
111
|
-
}, []), /* @__PURE__ */ i.jsx(
|
|
112
|
-
M,
|
|
113
|
-
{
|
|
114
|
-
...e,
|
|
115
|
-
ref: r,
|
|
116
|
-
trapFocus: n.open,
|
|
117
|
-
disableOutsidePointerEvents: !0,
|
|
118
|
-
onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
|
|
119
|
-
var c;
|
|
120
|
-
t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
|
|
121
|
-
}),
|
|
122
|
-
onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
|
|
123
|
-
const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
124
|
-
(c.button === 2 || l) && t.preventDefault();
|
|
125
|
-
}),
|
|
126
|
-
onFocusOutside: p(
|
|
127
|
-
e.onFocusOutside,
|
|
128
|
-
(t) => t.preventDefault()
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
), oe = s.forwardRef(
|
|
134
|
-
(e, o) => {
|
|
135
|
-
const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
136
|
-
return /* @__PURE__ */ i.jsx(
|
|
137
|
-
M,
|
|
138
|
-
{
|
|
139
|
-
...e,
|
|
140
|
-
ref: o,
|
|
141
|
-
trapFocus: !1,
|
|
142
|
-
disableOutsidePointerEvents: !1,
|
|
143
|
-
onCloseAutoFocus: (t) => {
|
|
144
|
-
var c, l;
|
|
145
|
-
(c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
|
|
146
|
-
},
|
|
147
|
-
onInteractOutside: (t) => {
|
|
148
|
-
var d, g;
|
|
149
|
-
(d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
150
|
-
const c = t.target;
|
|
151
|
-
((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
), M = s.forwardRef(
|
|
157
|
-
(e, o) => {
|
|
158
|
-
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = C(o, d);
|
|
159
|
-
return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
160
|
-
/* @__PURE__ */ i.jsx(
|
|
161
|
-
K,
|
|
162
|
-
{
|
|
163
|
-
asChild: !0,
|
|
164
|
-
loop: !0,
|
|
165
|
-
trapped: a,
|
|
166
|
-
onMountAutoFocus: r,
|
|
167
|
-
onUnmountAutoFocus: t,
|
|
168
|
-
children: /* @__PURE__ */ i.jsx(
|
|
169
|
-
q,
|
|
170
|
-
{
|
|
171
|
-
role: "dialog",
|
|
172
|
-
id: l.contentId,
|
|
173
|
-
"aria-describedby": l.descriptionId,
|
|
174
|
-
"aria-labelledby": l.titleId,
|
|
175
|
-
"data-state": N(l.open),
|
|
176
|
-
...c,
|
|
177
|
-
ref: g,
|
|
178
|
-
onDismiss: () => l.onOpenChange(!1)
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
184
|
-
/* @__PURE__ */ i.jsx(re, { titleId: l.titleId }),
|
|
185
|
-
/* @__PURE__ */ i.jsx(ae, { contentRef: d, descriptionId: l.descriptionId })
|
|
186
|
-
] })
|
|
187
|
-
] });
|
|
188
|
-
}
|
|
189
|
-
), E = "DialogTitle", w = s.forwardRef(
|
|
190
|
-
(e, o) => {
|
|
191
|
-
const { __scopeDialog: n, ...a } = e, r = u(E, n);
|
|
192
|
-
return /* @__PURE__ */ i.jsx(m.h2, { id: r.titleId, ...a, ref: o });
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
w.displayName = E;
|
|
196
|
-
var F = "DialogDescription", S = s.forwardRef(
|
|
197
|
-
(e, o) => {
|
|
198
|
-
const { __scopeDialog: n, ...a } = e, r = u(F, n);
|
|
199
|
-
return /* @__PURE__ */ i.jsx(m.p, { id: r.descriptionId, ...a, ref: o });
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
S.displayName = F;
|
|
203
|
-
var W = "DialogClose", k = s.forwardRef(
|
|
204
|
-
(e, o) => {
|
|
205
|
-
const { __scopeDialog: n, ...a } = e, r = u(W, n);
|
|
206
|
-
return /* @__PURE__ */ i.jsx(
|
|
207
|
-
m.button,
|
|
208
|
-
{
|
|
209
|
-
type: "button",
|
|
210
|
-
...a,
|
|
211
|
-
ref: o,
|
|
212
|
-
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
);
|
|
217
|
-
k.displayName = W;
|
|
218
|
-
function N(e) {
|
|
219
|
-
return e ? "open" : "closed";
|
|
220
|
-
}
|
|
221
|
-
var G = "DialogTitleWarning", [he, L] = H(G, {
|
|
222
|
-
contentName: f,
|
|
223
|
-
titleName: E,
|
|
224
|
-
docsSlug: "dialog"
|
|
225
|
-
}), re = ({ titleId: e }) => {
|
|
226
|
-
const o = L(G), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
227
|
-
|
|
228
|
-
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
229
|
-
|
|
230
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
|
|
231
|
-
return s.useEffect(() => {
|
|
232
|
-
e && (document.getElementById(e) || console.error(n));
|
|
233
|
-
}, [n, e]), null;
|
|
234
|
-
}, ne = "DialogDescriptionWarning", ae = ({ contentRef: e, descriptionId: o }) => {
|
|
235
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ne).contentName}}.`;
|
|
236
|
-
return s.useEffect(() => {
|
|
237
|
-
var t;
|
|
238
|
-
const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
239
|
-
o && r && (document.getElementById(o) || console.warn(a));
|
|
240
|
-
}, [a, e, o]), null;
|
|
241
|
-
}, Ee = y, Ne = O, Pe = j, ye = T, Ie = b, Oe = w, Ae = S, je = k;
|
|
242
32
|
export {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
Ae as Description,
|
|
246
|
-
y as Dialog,
|
|
247
|
-
k as DialogClose,
|
|
248
|
-
b as DialogContent,
|
|
249
|
-
S as DialogDescription,
|
|
250
|
-
T as DialogOverlay,
|
|
251
|
-
j as DialogPortal,
|
|
252
|
-
w as DialogTitle,
|
|
253
|
-
O as DialogTrigger,
|
|
254
|
-
ye as Overlay,
|
|
255
|
-
Pe as Portal,
|
|
256
|
-
Ee as Root,
|
|
257
|
-
Oe as Title,
|
|
258
|
-
Ne as Trigger,
|
|
259
|
-
he as WarningProvider,
|
|
260
|
-
_e as createDialogScope
|
|
33
|
+
j as cva,
|
|
34
|
+
y as cx
|
|
261
35
|
};
|
package/dist/index.es99.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e from "./index.
|
|
1
|
+
import e from "./index.es237.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.379.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
["path", { d: "
|
|
10
|
-
["path", { d: "
|
|
8
|
+
const t = e("ChevronsUpDown", [
|
|
9
|
+
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
10
|
+
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
11
11
|
]);
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
t as default
|
|
14
14
|
};
|
package/dist/style.css
CHANGED
|
@@ -566,7 +566,7 @@ video {
|
|
|
566
566
|
--muted: #f1f5f9;
|
|
567
567
|
--muted-foreground: #64748b;
|
|
568
568
|
|
|
569
|
-
--accent: #
|
|
569
|
+
--accent: #f4f4f5;
|
|
570
570
|
--accent-foreground: #131415;
|
|
571
571
|
|
|
572
572
|
--error: #ef4444;
|
|
@@ -601,7 +601,7 @@ video {
|
|
|
601
601
|
--muted: #f1f5f9;
|
|
602
602
|
--muted-foreground: #64748b;
|
|
603
603
|
|
|
604
|
-
--accent: #
|
|
604
|
+
--accent: #f4f4f5;
|
|
605
605
|
--accent-foreground: #131415;
|
|
606
606
|
|
|
607
607
|
--error: #ef4444;
|
|
@@ -1032,6 +1032,9 @@ video {
|
|
|
1032
1032
|
.ui-w-56 {
|
|
1033
1033
|
width: 14rem;
|
|
1034
1034
|
}
|
|
1035
|
+
.ui-w-6 {
|
|
1036
|
+
width: 1.5rem;
|
|
1037
|
+
}
|
|
1035
1038
|
.ui-w-60 {
|
|
1036
1039
|
width: 15rem;
|
|
1037
1040
|
}
|
|
@@ -1565,6 +1568,9 @@ video {
|
|
|
1565
1568
|
.ui-pt-\[2px\] {
|
|
1566
1569
|
padding-top: 2px;
|
|
1567
1570
|
}
|
|
1571
|
+
.ui-pt-px {
|
|
1572
|
+
padding-top: 1px;
|
|
1573
|
+
}
|
|
1568
1574
|
.ui-text-left {
|
|
1569
1575
|
text-align: left;
|
|
1570
1576
|
}
|
|
@@ -2028,12 +2034,6 @@ video {
|
|
|
2028
2034
|
.data-\[state-in-range\]\:ui-rounded-none[data-state-in-range] {
|
|
2029
2035
|
border-radius: 0px;
|
|
2030
2036
|
}
|
|
2031
|
-
.data-\[state-mode\=\'multiple\'\]\:ui-rounded-full[data-state-mode='multiple'] {
|
|
2032
|
-
border-radius: 9999px;
|
|
2033
|
-
}
|
|
2034
|
-
.data-\[state-mode\=\'single\'\]\:ui-rounded-full[data-state-mode='single'] {
|
|
2035
|
-
border-radius: 9999px;
|
|
2036
|
-
}
|
|
2037
2037
|
.data-\[state-today\]\:ui-rounded-full[data-state-today] {
|
|
2038
2038
|
border-radius: 9999px;
|
|
2039
2039
|
}
|