@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.
Files changed (248) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es101.js +2 -2
  3. package/dist/index.es104.js +9 -4
  4. package/dist/index.es105.js +4 -14
  5. package/dist/index.es106.js +14 -5
  6. package/dist/index.es107.js +4 -56
  7. package/dist/index.es108.js +55 -222
  8. package/dist/index.es109.js +224 -11
  9. package/dist/index.es110.js +4 -4
  10. package/dist/index.es111.js +11 -41
  11. package/dist/index.es112.js +41 -11
  12. package/dist/index.es113.js +21 -33
  13. package/dist/index.es114.js +12 -21
  14. package/dist/index.es115.js +4 -5
  15. package/dist/index.es116.js +4 -3
  16. package/dist/index.es117.js +4 -5
  17. package/dist/index.es118.js +14 -14
  18. package/dist/index.es119.js +813 -55
  19. package/dist/index.es120.js +9 -822
  20. package/dist/index.es121.js +5 -3
  21. package/dist/index.es122.js +4 -11
  22. package/dist/index.es123.js +64 -4
  23. package/dist/index.es124.js +33 -13
  24. package/dist/index.es125.js +13 -33
  25. package/dist/index.es126.js +216 -13
  26. package/dist/index.es127.js +13 -8
  27. package/dist/index.es128.js +7 -215
  28. package/dist/index.es130.js +1 -1
  29. package/dist/index.es131.js +1 -1
  30. package/dist/index.es132.js +12 -9
  31. package/dist/index.es133.js +196 -204
  32. package/dist/index.es134.js +41 -10
  33. package/dist/index.es135.js +9 -12
  34. package/dist/index.es136.js +204 -196
  35. package/dist/index.es137.js +10 -41
  36. package/dist/index.es139.js +1 -1
  37. package/dist/index.es140.js +1 -1
  38. package/dist/index.es141.js +12 -6
  39. package/dist/index.es142.js +5 -63
  40. package/dist/index.es143.js +64 -10
  41. package/dist/index.es144.js +10 -124
  42. package/dist/index.es145.js +116 -126
  43. package/dist/index.es146.js +134 -13
  44. package/dist/index.es147.js +14 -33
  45. package/dist/index.es148.js +32 -14
  46. package/dist/index.es149.js +14 -8
  47. package/dist/index.es15.js +1 -1
  48. package/dist/index.es150.js +9 -50
  49. package/dist/index.es151.js +50 -6
  50. package/dist/index.es152.js +6 -2
  51. package/dist/index.es153.js +2 -44
  52. package/dist/index.es154.js +40 -646
  53. package/dist/index.es155.js +648 -11
  54. package/dist/index.es156.js +5 -5
  55. package/dist/index.es157.js +4 -4
  56. package/dist/index.es158.js +45 -3
  57. package/dist/index.es159.js +7 -45
  58. package/dist/index.es160.js +4 -8
  59. package/dist/index.es162.js +1 -1
  60. package/dist/index.es163.js +6 -118
  61. package/dist/index.es164.js +3 -35
  62. package/dist/index.es165.js +2054 -2
  63. package/dist/index.es166.js +118 -2
  64. package/dist/index.es167.js +33 -6
  65. package/dist/index.es168.js +4 -3
  66. package/dist/index.es169.js +2 -2054
  67. package/dist/index.es176.js +1 -1
  68. package/dist/index.es177.js +1 -1
  69. package/dist/index.es178.js +1 -1
  70. package/dist/index.es181.js +2 -2
  71. package/dist/index.es183.js +1 -1
  72. package/dist/index.es203.js +1 -1
  73. package/dist/index.es22.js +2 -2
  74. package/dist/index.es236.js +176 -19
  75. package/dist/index.es237.js +15 -3
  76. package/dist/index.es238.js +3 -32
  77. package/dist/index.es239.js +32 -12
  78. package/dist/index.es240.js +17 -177
  79. package/dist/index.es242.js +5 -5
  80. package/dist/index.es243.js +16 -18
  81. package/dist/index.es246.js +1 -1
  82. package/dist/index.es247.js +1 -1
  83. package/dist/index.es248.js +3 -3
  84. package/dist/index.es27.js +1 -1
  85. package/dist/index.es275.js +12 -12
  86. package/dist/index.es276.js +2 -2
  87. package/dist/index.es277.js +2 -2
  88. package/dist/index.es278.js +8 -8
  89. package/dist/index.es279.js +2 -2
  90. package/dist/index.es28.js +1 -1
  91. package/dist/index.es283.js +16 -15
  92. package/dist/index.es284.js +8 -3
  93. package/dist/index.es285.js +15 -16
  94. package/dist/index.es286.js +3 -8
  95. package/dist/index.es29.js +3 -3
  96. package/dist/index.es30.js +23 -23
  97. package/dist/index.es32.js +2 -2
  98. package/dist/index.es325.js +1 -1
  99. package/dist/index.es33.js +2 -2
  100. package/dist/index.es335.js +3 -3
  101. package/dist/index.es338.js +1 -1
  102. package/dist/index.es339.js +1 -1
  103. package/dist/index.es34.js +46 -35
  104. package/dist/index.es342.js +2 -2
  105. package/dist/index.es343.js +2 -2
  106. package/dist/index.es35.js +2 -2
  107. package/dist/index.es350.js +2 -29
  108. package/dist/index.es351.js +106 -5
  109. package/dist/index.es352.js +76 -2
  110. package/dist/index.es353.js +36 -107
  111. package/dist/index.es354.js +60 -73
  112. package/dist/index.es355.js +28 -30
  113. package/dist/index.es356.js +63 -61
  114. package/dist/index.es357.js +109 -30
  115. package/dist/index.es358.js +87 -59
  116. package/dist/index.es359.js +40 -110
  117. package/dist/index.es360.js +3 -94
  118. package/dist/index.es361.js +3 -43
  119. package/dist/index.es362.js +2 -2
  120. package/dist/index.es363.js +2 -2
  121. package/dist/index.es364.js +2 -2
  122. package/dist/index.es366.js +2 -2
  123. package/dist/index.es367.js +2 -2
  124. package/dist/index.es368.js +2 -2
  125. package/dist/index.es369.js +241 -4
  126. package/dist/index.es370.js +384 -4
  127. package/dist/index.es371.js +132 -204
  128. package/dist/index.es372.js +103 -334
  129. package/dist/index.es373.js +75 -102
  130. package/dist/index.es374.js +4 -153
  131. package/dist/index.es375.js +4 -142
  132. package/dist/index.es376.js +2 -2
  133. package/dist/index.es377.js +2 -2
  134. package/dist/index.es378.js +2 -2
  135. package/dist/index.es379.js +2 -2
  136. package/dist/index.es38.js +1 -1
  137. package/dist/index.es380.js +29 -2
  138. package/dist/index.es381.js +5 -2
  139. package/dist/index.es39.js +1 -1
  140. package/dist/index.es393.js +1 -1
  141. package/dist/index.es394.js +1 -1
  142. package/dist/index.es404.js +68 -2
  143. package/dist/index.es405.js +31 -47
  144. package/dist/index.es406.js +16 -83
  145. package/dist/index.es407.js +140 -13
  146. package/dist/index.es408.js +113 -340
  147. package/dist/index.es409.js +507 -63
  148. package/dist/index.es41.js +1 -1
  149. package/dist/index.es410.js +126 -10
  150. package/dist/index.es411.js +117 -510
  151. package/dist/index.es412.js +64 -116
  152. package/dist/index.es413.js +10 -125
  153. package/dist/index.es414.js +2 -68
  154. package/dist/index.es415.js +47 -31
  155. package/dist/index.es416.js +83 -16
  156. package/dist/index.es417.js +13 -140
  157. package/dist/index.es418.js +340 -113
  158. package/dist/index.es43.js +1 -1
  159. package/dist/index.es439.js +2 -2
  160. package/dist/index.es44.js +4 -4
  161. package/dist/index.es441.js +275 -3
  162. package/dist/index.es442.js +78 -105
  163. package/dist/index.es443.js +166 -2
  164. package/dist/index.es444.js +3 -2
  165. package/dist/index.es445.js +100 -268
  166. package/dist/index.es446.js +2 -80
  167. package/dist/index.es447.js +2 -166
  168. package/dist/index.es45.js +1 -1
  169. package/dist/index.es46.js +5 -5
  170. package/dist/index.es475.js +1 -1
  171. package/dist/index.es476.js +1 -1
  172. package/dist/index.es49.js +2 -2
  173. package/dist/index.es50.js +1 -1
  174. package/dist/index.es51.js +4 -4
  175. package/dist/index.es54.js +1 -1
  176. package/dist/index.es57.js +3 -3
  177. package/dist/index.es59.js +2 -2
  178. package/dist/index.es61.js +1 -1
  179. package/dist/index.es62.js +1 -1
  180. package/dist/index.es63.js +2 -2
  181. package/dist/index.es64.js +1 -1
  182. package/dist/index.es65.js +3 -3
  183. package/dist/index.es66.js +2 -2
  184. package/dist/index.es67.js +2 -2
  185. package/dist/index.es753.js +5 -5
  186. package/dist/index.es754.js +22 -14
  187. package/dist/index.es755.js +82 -59
  188. package/dist/index.es756.js +14 -22
  189. package/dist/index.es757.js +59 -82
  190. package/dist/index.es769.js +2 -8
  191. package/dist/index.es770.js +2 -56
  192. package/dist/index.es771.js +7 -18
  193. package/dist/index.es772.js +56 -2
  194. package/dist/index.es773.js +19 -2
  195. package/dist/index.es780.js +28 -28
  196. package/dist/index.es782.js +5 -5
  197. package/dist/index.es783.js +13 -17
  198. package/dist/index.es785.js +5 -11
  199. package/dist/index.es786.js +28 -28
  200. package/dist/index.es787.js +5 -5
  201. package/dist/index.es788.js +17 -13
  202. package/dist/index.es789.js +11 -5
  203. package/dist/index.es79.js +1 -1
  204. package/dist/index.es790.js +1 -1
  205. package/dist/index.es796.js +1 -1
  206. package/dist/index.es797.js +1 -1
  207. package/dist/index.es798.js +1 -1
  208. package/dist/index.es799.js +1 -1
  209. package/dist/index.es80.js +1 -1
  210. package/dist/index.es801.js +1 -1
  211. package/dist/index.es805.js +8 -10
  212. package/dist/index.es806.js +9 -7
  213. package/dist/index.es807.js +1 -1
  214. package/dist/index.es808.js +10 -8
  215. package/dist/index.es809.js +7 -9
  216. package/dist/index.es810.js +5 -5
  217. package/dist/index.es811.js +2 -2
  218. package/dist/index.es812.js +1 -1
  219. package/dist/index.es814.js +2 -2
  220. package/dist/index.es822.js +1 -1
  221. package/dist/index.es824.js +25 -38
  222. package/dist/index.es825.js +38 -25
  223. package/dist/index.es826.js +15 -64
  224. package/dist/index.es827.js +7 -11
  225. package/dist/index.es828.js +61 -38
  226. package/dist/index.es829.js +7 -54
  227. package/dist/index.es830.js +40 -16
  228. package/dist/index.es831.js +57 -17
  229. package/dist/index.es832.js +20 -7
  230. package/dist/index.es833.js +1 -1
  231. package/dist/index.es84.js +305 -33
  232. package/dist/index.es85.js +12 -46
  233. package/dist/index.es86.js +34 -29
  234. package/dist/index.es87.js +42 -26
  235. package/dist/index.es88.js +27 -304
  236. package/dist/index.es89.js +30 -12
  237. package/dist/index.es90.js +55 -9
  238. package/dist/index.es91.js +52 -52
  239. package/dist/index.es92.js +92 -55
  240. package/dist/index.es93.js +34 -87
  241. package/dist/index.es94.js +23 -36
  242. package/dist/index.es95.js +24 -18
  243. package/dist/index.es96.js +257 -28
  244. package/dist/index.es97.js +5 -5
  245. package/dist/index.es98.js +32 -258
  246. package/dist/index.es99.js +5 -5
  247. package/dist/style.css +8 -8
  248. package/package.json +1 -1
@@ -1,199 +1,207 @@
1
- import i from "./index.es170.js";
2
- import { forwardRef as f, createElement as s, useRef as $, useEffect as F, Fragment as M, useCallback as y, Children as N } from "react";
3
- import { composeEventHandlers as g } from "./index.es171.js";
4
- import { useComposedRefs as C } from "./index.es172.js";
5
- import { createContextScope as T } from "./index.es173.js";
6
- import { useId as _ } from "./index.es174.js";
7
- import { useControllableState as S } from "./index.es175.js";
8
- import { DismissableLayer as L } from "./index.es176.js";
9
- import { FocusScope as k } from "./index.es177.js";
10
- import { Portal as w } from "./index.es178.js";
11
- import { Presence as x } from "./index.es179.js";
12
- import { Primitive as D } from "./index.es137.js";
13
- import { useFocusGuards as j } from "./index.es180.js";
14
- import G from "./index.es181.js";
15
- import { hideOthers as H } from "./index.es150.js";
16
- import { Slot as K } from "./index.es182.js";
17
- const O = "Dialog", [P, De] = T(O), [U, d] = P(O), V = (e) => {
18
- const { __scopeDialog: r, children: t, open: c, defaultOpen: n, onOpenChange: o, modal: a = !0 } = e, l = $(null), u = $(null), [b = !1, m] = S({
19
- prop: c,
20
- defaultProp: n,
21
- onChange: o
1
+ import C from "./index.es170.js";
2
+ import x from "./index.es323.js";
3
+ import N from "./index.es324.js";
4
+ import v from "./index.es325.js";
5
+ import A from "./index.es326.js";
6
+ import _ from "./index.es327.js";
7
+ import c from "react";
8
+ import E from "./index.es328.js";
9
+ import { classNamesShape as $ } from "./index.es329.js";
10
+ import { forceReflow as S } from "./index.es330.js";
11
+ var T = function(i, p) {
12
+ return i && p && p.split(" ").forEach(function(s) {
13
+ return A(i, s);
22
14
  });
23
- return /* @__PURE__ */ s(U, {
24
- scope: r,
25
- triggerRef: l,
26
- contentRef: u,
27
- contentId: _(),
28
- titleId: _(),
29
- descriptionId: _(),
30
- open: b,
31
- onOpenChange: m,
32
- onOpenToggle: y(
33
- () => m(
34
- (I) => !I
35
- ),
36
- [
37
- m
38
- ]
39
- ),
40
- modal: a
41
- }, t);
42
- }, R = "DialogPortal", [Y, h] = P(R, {
43
- forceMount: void 0
44
- }), Z = (e) => {
45
- const { __scopeDialog: r, forceMount: t, children: c, container: n } = e, o = d(R, r);
46
- return /* @__PURE__ */ s(Y, {
47
- scope: r,
48
- forceMount: t
49
- }, N.map(
50
- c,
51
- (a) => /* @__PURE__ */ s(x, {
52
- present: t || o.open
53
- }, /* @__PURE__ */ s(w, {
54
- asChild: !0,
55
- container: n
56
- }, a))
57
- ));
58
- }, v = "DialogOverlay", q = /* @__PURE__ */ f((e, r) => {
59
- const t = h(v, e.__scopeDialog), { forceMount: c = t.forceMount, ...n } = e, o = d(v, e.__scopeDialog);
60
- return o.modal ? /* @__PURE__ */ s(x, {
61
- present: c || o.open
62
- }, /* @__PURE__ */ s(z, i({}, n, {
63
- ref: r
64
- }))) : null;
65
- }), z = /* @__PURE__ */ f((e, r) => {
66
- const { __scopeDialog: t, ...c } = e, n = d(v, t);
67
- return (
68
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
69
- // ie. when `Overlay` and `Content` are siblings
70
- /* @__PURE__ */ s(G, {
71
- as: K,
72
- allowPinchZoom: !0,
73
- shards: [
74
- n.contentRef
75
- ]
76
- }, /* @__PURE__ */ s(D.div, i({
77
- "data-state": A(n.open)
78
- }, c, {
79
- ref: r,
80
- style: {
81
- pointerEvents: "auto",
82
- ...c.style
83
- }
84
- })))
85
- );
86
- }), p = "DialogContent", B = /* @__PURE__ */ f((e, r) => {
87
- const t = h(p, e.__scopeDialog), { forceMount: c = t.forceMount, ...n } = e, o = d(p, e.__scopeDialog);
88
- return /* @__PURE__ */ s(x, {
89
- present: c || o.open
90
- }, o.modal ? /* @__PURE__ */ s(J, i({}, n, {
91
- ref: r
92
- })) : /* @__PURE__ */ s(Q, i({}, n, {
93
- ref: r
94
- })));
95
- }), J = /* @__PURE__ */ f((e, r) => {
96
- const t = d(p, e.__scopeDialog), c = $(null), n = C(r, t.contentRef, c);
97
- return F(() => {
98
- const o = c.current;
99
- if (o) return H(o);
100
- }, []), /* @__PURE__ */ s(E, i({}, e, {
101
- ref: n,
102
- trapFocus: t.open,
103
- disableOutsidePointerEvents: !0,
104
- onCloseAutoFocus: g(e.onCloseAutoFocus, (o) => {
105
- var a;
106
- o.preventDefault(), (a = t.triggerRef.current) === null || a === void 0 || a.focus();
107
- }),
108
- onPointerDownOutside: g(e.onPointerDownOutside, (o) => {
109
- const a = o.detail.originalEvent, l = a.button === 0 && a.ctrlKey === !0;
110
- (a.button === 2 || l) && o.preventDefault();
111
- }),
112
- onFocusOutside: g(
113
- e.onFocusOutside,
114
- (o) => o.preventDefault()
115
- )
116
- }));
117
- }), Q = /* @__PURE__ */ f((e, r) => {
118
- const t = d(p, e.__scopeDialog), c = $(!1), n = $(!1);
119
- return /* @__PURE__ */ s(E, i({}, e, {
120
- ref: r,
121
- trapFocus: !1,
122
- disableOutsidePointerEvents: !1,
123
- onCloseAutoFocus: (o) => {
124
- var a;
125
- if ((a = e.onCloseAutoFocus) === null || a === void 0 || a.call(e, o), !o.defaultPrevented) {
126
- var l;
127
- c.current || (l = t.triggerRef.current) === null || l === void 0 || l.focus(), o.preventDefault();
128
- }
129
- c.current = !1, n.current = !1;
130
- },
131
- onInteractOutside: (o) => {
132
- var a, l;
133
- (a = e.onInteractOutside) === null || a === void 0 || a.call(e, o), o.defaultPrevented || (c.current = !0, o.detail.originalEvent.type === "pointerdown" && (n.current = !0));
134
- const u = o.target;
135
- ((l = t.triggerRef.current) === null || l === void 0 ? void 0 : l.contains(u)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && n.current && o.preventDefault();
136
- }
137
- }));
138
- }), E = /* @__PURE__ */ f((e, r) => {
139
- const { __scopeDialog: t, trapFocus: c, onOpenAutoFocus: n, onCloseAutoFocus: o, ...a } = e, l = d(p, t), u = $(null), b = C(r, u);
140
- return j(), /* @__PURE__ */ s(M, null, /* @__PURE__ */ s(k, {
141
- asChild: !0,
142
- loop: !0,
143
- trapped: c,
144
- onMountAutoFocus: n,
145
- onUnmountAutoFocus: o
146
- }, /* @__PURE__ */ s(L, i({
147
- role: "dialog",
148
- id: l.contentId,
149
- "aria-describedby": l.descriptionId,
150
- "aria-labelledby": l.titleId,
151
- "data-state": A(l.open)
152
- }, a, {
153
- ref: b,
154
- onDismiss: () => l.onOpenChange(!1)
155
- }))), !1);
156
- }), W = "DialogTitle", me = /* @__PURE__ */ f((e, r) => {
157
- const { __scopeDialog: t, ...c } = e, n = d(W, t);
158
- return /* @__PURE__ */ s(D.h2, i({
159
- id: n.titleId
160
- }, c, {
161
- ref: r
162
- }));
163
- }), X = "DialogDescription", _e = /* @__PURE__ */ f((e, r) => {
164
- const { __scopeDialog: t, ...c } = e, n = d(X, t);
165
- return /* @__PURE__ */ s(D.p, i({
166
- id: n.descriptionId
167
- }, c, {
168
- ref: r
169
- }));
170
- }), ee = "DialogClose", ve = /* @__PURE__ */ f((e, r) => {
171
- const { __scopeDialog: t, ...c } = e, n = d(ee, t);
172
- return /* @__PURE__ */ s(D.button, i({
173
- type: "button"
174
- }, c, {
175
- ref: r,
176
- onClick: g(
177
- e.onClick,
178
- () => n.onOpenChange(!1)
179
- )
180
- }));
181
- });
182
- function A(e) {
183
- return e ? "open" : "closed";
184
- }
185
- const xe = V, Ce = Z, Oe = q, Pe = B;
15
+ }, d = function(i, p) {
16
+ return i && p && p.split(" ").forEach(function(s) {
17
+ return _(i, s);
18
+ });
19
+ }, g = /* @__PURE__ */ function(u) {
20
+ N(i, u);
21
+ function i() {
22
+ for (var s, t = arguments.length, a = new Array(t), o = 0; o < t; o++)
23
+ a[o] = arguments[o];
24
+ return s = u.call.apply(u, [this].concat(a)) || this, s.appliedClasses = {
25
+ appear: {},
26
+ enter: {},
27
+ exit: {}
28
+ }, s.onEnter = function(e, r) {
29
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1];
30
+ s.removeClasses(l, "exit"), s.addClass(l, m ? "appear" : "enter", "base"), s.props.onEnter && s.props.onEnter(e, r);
31
+ }, s.onEntering = function(e, r) {
32
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
33
+ s.addClass(l, f, "active"), s.props.onEntering && s.props.onEntering(e, r);
34
+ }, s.onEntered = function(e, r) {
35
+ var n = s.resolveArguments(e, r), l = n[0], m = n[1], f = m ? "appear" : "enter";
36
+ s.removeClasses(l, f), s.addClass(l, f, "done"), s.props.onEntered && s.props.onEntered(e, r);
37
+ }, s.onExit = function(e) {
38
+ var r = s.resolveArguments(e), n = r[0];
39
+ s.removeClasses(n, "appear"), s.removeClasses(n, "enter"), s.addClass(n, "exit", "base"), s.props.onExit && s.props.onExit(e);
40
+ }, s.onExiting = function(e) {
41
+ var r = s.resolveArguments(e), n = r[0];
42
+ s.addClass(n, "exit", "active"), s.props.onExiting && s.props.onExiting(e);
43
+ }, s.onExited = function(e) {
44
+ var r = s.resolveArguments(e), n = r[0];
45
+ s.removeClasses(n, "exit"), s.addClass(n, "exit", "done"), s.props.onExited && s.props.onExited(e);
46
+ }, s.resolveArguments = function(e, r) {
47
+ return s.props.nodeRef ? [s.props.nodeRef.current, e] : [e, r];
48
+ }, s.getClassNames = function(e) {
49
+ var r = s.props.classNames, n = typeof r == "string", l = n && r ? r + "-" : "", m = n ? "" + l + e : r[e], f = n ? m + "-active" : r[e + "Active"], h = n ? m + "-done" : r[e + "Done"];
50
+ return {
51
+ baseClassName: m,
52
+ activeClassName: f,
53
+ doneClassName: h
54
+ };
55
+ }, s;
56
+ }
57
+ var p = i.prototype;
58
+ return p.addClass = function(t, a, o) {
59
+ var e = this.getClassNames(a)[o + "ClassName"], r = this.getClassNames("enter"), n = r.doneClassName;
60
+ a === "appear" && o === "done" && n && (e += " " + n), o === "active" && t && S(t), e && (this.appliedClasses[a][o] = e, T(t, e));
61
+ }, p.removeClasses = function(t, a) {
62
+ var o = this.appliedClasses[a], e = o.base, r = o.active, n = o.done;
63
+ this.appliedClasses[a] = {}, e && d(t, e), r && d(t, r), n && d(t, n);
64
+ }, p.render = function() {
65
+ var t = this.props;
66
+ t.classNames;
67
+ var a = x(t, ["classNames"]);
68
+ return /* @__PURE__ */ c.createElement(E, C({}, a, {
69
+ onEnter: this.onEnter,
70
+ onEntered: this.onEntered,
71
+ onEntering: this.onEntering,
72
+ onExit: this.onExit,
73
+ onExiting: this.onExiting,
74
+ onExited: this.onExited
75
+ }));
76
+ }, i;
77
+ }(c.Component);
78
+ g.defaultProps = {
79
+ classNames: ""
80
+ };
81
+ g.propTypes = process.env.NODE_ENV !== "production" ? C({}, E.propTypes, {
82
+ /**
83
+ * The animation classNames applied to the component as it appears, enters,
84
+ * exits or has finished the transition. A single name can be provided, which
85
+ * will be suffixed for each stage, e.g. `classNames="fade"` applies:
86
+ *
87
+ * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
88
+ * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
89
+ * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
90
+ *
91
+ * A few details to note about how these classes are applied:
92
+ *
93
+ * 1. They are _joined_ with the ones that are already defined on the child
94
+ * component, so if you want to add some base styles, you can use
95
+ * `className` without worrying that it will be overridden.
96
+ *
97
+ * 2. If the transition component mounts with `in={false}`, no classes are
98
+ * applied yet. You might be expecting `*-exit-done`, but if you think
99
+ * about it, a component cannot finish exiting if it hasn't entered yet.
100
+ *
101
+ * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
102
+ * allows you to define different behavior for when appearing is done and
103
+ * when regular entering is done, using selectors like
104
+ * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
105
+ * an epic entrance animation when element first appears in the DOM using
106
+ * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
107
+ * simply use `fade-enter-done` for defining both cases.
108
+ *
109
+ * Each individual classNames can also be specified independently like:
110
+ *
111
+ * ```js
112
+ * classNames={{
113
+ * appear: 'my-appear',
114
+ * appearActive: 'my-active-appear',
115
+ * appearDone: 'my-done-appear',
116
+ * enter: 'my-enter',
117
+ * enterActive: 'my-active-enter',
118
+ * enterDone: 'my-done-enter',
119
+ * exit: 'my-exit',
120
+ * exitActive: 'my-active-exit',
121
+ * exitDone: 'my-done-exit',
122
+ * }}
123
+ * ```
124
+ *
125
+ * If you want to set these classes using CSS Modules:
126
+ *
127
+ * ```js
128
+ * import styles from './styles.css';
129
+ * ```
130
+ *
131
+ * you might want to use camelCase in your CSS file, that way could simply
132
+ * spread them instead of listing them one by one:
133
+ *
134
+ * ```js
135
+ * classNames={{ ...styles }}
136
+ * ```
137
+ *
138
+ * @type {string | {
139
+ * appear?: string,
140
+ * appearActive?: string,
141
+ * appearDone?: string,
142
+ * enter?: string,
143
+ * enterActive?: string,
144
+ * enterDone?: string,
145
+ * exit?: string,
146
+ * exitActive?: string,
147
+ * exitDone?: string,
148
+ * }}
149
+ */
150
+ classNames: $,
151
+ /**
152
+ * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
153
+ * applied.
154
+ *
155
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
156
+ *
157
+ * @type Function(node: HtmlElement, isAppearing: bool)
158
+ */
159
+ onEnter: v.func,
160
+ /**
161
+ * A `<Transition>` callback fired immediately after the 'enter-active' or
162
+ * 'appear-active' class is applied.
163
+ *
164
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
165
+ *
166
+ * @type Function(node: HtmlElement, isAppearing: bool)
167
+ */
168
+ onEntering: v.func,
169
+ /**
170
+ * A `<Transition>` callback fired immediately after the 'enter' or
171
+ * 'appear' classes are **removed** and the `done` class is added to the DOM node.
172
+ *
173
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
174
+ *
175
+ * @type Function(node: HtmlElement, isAppearing: bool)
176
+ */
177
+ onEntered: v.func,
178
+ /**
179
+ * A `<Transition>` callback fired immediately after the 'exit' class is
180
+ * applied.
181
+ *
182
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
183
+ *
184
+ * @type Function(node: HtmlElement)
185
+ */
186
+ onExit: v.func,
187
+ /**
188
+ * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
189
+ *
190
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
191
+ *
192
+ * @type Function(node: HtmlElement)
193
+ */
194
+ onExiting: v.func,
195
+ /**
196
+ * A `<Transition>` callback fired immediately after the 'exit' classes
197
+ * are **removed** and the `exit-done` class is added to the DOM node.
198
+ *
199
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
200
+ *
201
+ * @type Function(node: HtmlElement)
202
+ */
203
+ onExited: v.func
204
+ }) : {};
186
205
  export {
187
- Pe as Content,
188
- V as Dialog,
189
- ve as DialogClose,
190
- B as DialogContent,
191
- _e as DialogDescription,
192
- q as DialogOverlay,
193
- Z as DialogPortal,
194
- me as DialogTitle,
195
- Oe as Overlay,
196
- Ce as Portal,
197
- xe as Root,
198
- De as createDialogScope
206
+ g as default
199
207
  };
@@ -1,44 +1,13 @@
1
- import s from "./index.es170.js";
2
- import { forwardRef as m, useEffect as n, createElement as p } from "react";
3
- import { flushSync as d } from "react-dom";
4
- import { Slot as $ } from "./index.es182.js";
5
- const l = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "span",
20
- "svg",
21
- "ul"
22
- ], E = l.reduce((e, t) => {
23
- const r = /* @__PURE__ */ m((i, o) => {
24
- const { asChild: c, ...f } = i, a = c ? $ : t;
25
- return n(() => {
26
- window[Symbol.for("radix-ui")] = !0;
27
- }, []), /* @__PURE__ */ p(a, s({}, f, {
28
- ref: o
29
- }));
30
- });
31
- return r.displayName = `Primitive.${t}`, {
32
- ...e,
33
- [t]: r
34
- };
35
- }, {});
36
- function b(e, t) {
37
- e && d(
38
- () => e.dispatchEvent(t)
39
- );
1
+ import * as r from "react";
2
+ function o(t) {
3
+ const e = r.useRef(t);
4
+ return r.useEffect(() => {
5
+ e.current = t;
6
+ }), r.useMemo(() => (...n) => {
7
+ var u;
8
+ return (u = e.current) == null ? void 0 : u.call(e, ...n);
9
+ }, []);
40
10
  }
41
11
  export {
42
- E as Primitive,
43
- b as dispatchDiscreteCustomEvent
12
+ o as useCallbackRef
44
13
  };
@@ -1,4 +1,4 @@
1
- import { isDateRange as f } from "./index.es104.js";
1
+ import { isDateRange as f } from "./index.es105.js";
2
2
  import { isBefore as R } from "./index.es218.js";
3
3
  import { eachDayOfInterval as l } from "./index.es194.js";
4
4
  import { startOfDay as o } from "./index.es192.js";
@@ -1,4 +1,4 @@
1
- import { isDate as n } from "./index.es106.js";
1
+ import { isDate as n } from "./index.es107.js";
2
2
  import { isSameDay as l } from "./index.es219.js";
3
3
  function S(t, i) {
4
4
  return {
@@ -1,9 +1,15 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
5
- };
1
+ function o(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) for (f = 0; f < r.length; f++) r[f] && (n = o(r[f])) && (t && (t += " "), t += n);
5
+ else for (f in r) r[f] && (t && (t += " "), t += f);
6
+ return t;
7
+ }
8
+ function a() {
9
+ for (var r, f, n = 0, t = ""; n < arguments.length; ) (r = arguments[n++]) && (f = o(r)) && (t && (t += " "), t += f);
10
+ return t;
6
11
  }
7
12
  export {
8
- h as composeEventHandlers
13
+ a as clsx,
14
+ a as default
9
15
  };
@@ -1,67 +1,9 @@
1
- import * as u from "react";
2
- import { j as C } from "./index.es83.js";
3
- function $(e, c) {
4
- const o = u.createContext(c);
5
- function a(r) {
6
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
7
- return /* @__PURE__ */ C.jsx(o.Provider, { value: s, children: t });
8
- }
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return a.displayName = e + "Provider", [a, i];
16
- }
17
- function j(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- function d(m) {
23
- const { scope: x, children: f, ...p } = m, S = (x == null ? void 0 : x[e][s]) || n, h = u.useMemo(() => p, Object.values(p));
24
- return /* @__PURE__ */ C.jsx(S.Provider, { value: h, children: f });
25
- }
26
- function v(m, x) {
27
- const f = (x == null ? void 0 : x[e][s]) || n, p = u.useContext(f);
28
- if (p) return p;
29
- if (t !== void 0) return t;
30
- throw new Error(`\`${m}\` must be used within \`${r}\``);
31
- }
32
- return d.displayName = r + "Provider", [d, v];
33
- }
34
- const i = () => {
35
- const r = o.map((t) => u.createContext(t));
36
- return function(n) {
37
- const s = (n == null ? void 0 : n[e]) || r;
38
- return u.useMemo(
39
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
40
- [n, s]
41
- );
42
- };
43
- };
44
- return i.scopeName = e, [a, P(i, ...c)];
45
- }
46
- function P(...e) {
47
- const c = e[0];
48
- if (e.length === 1) return c;
49
- const o = () => {
50
- const a = e.map((i) => ({
51
- useScope: i(),
52
- scopeName: i.scopeName
53
- }));
54
- return function(r) {
55
- const t = a.reduce((n, { useScope: s, scopeName: d }) => {
56
- const m = s(r)[`__scope${d}`];
57
- return { ...n, ...m };
58
- }, {});
59
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
60
- };
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
61
5
  };
62
- return o.scopeName = c.scopeName, o;
63
6
  }
64
7
  export {
65
- $ as createContext,
66
- j as createContextScope
8
+ h as composeEventHandlers
67
9
  };
@@ -1,13 +1,67 @@
1
- import * as e from "react";
2
- import { useLayoutEffect as a } from "./index.es157.js";
3
- var s = e.useId || (() => {
4
- }), i = 0;
5
- function d(o) {
6
- const [t, r] = e.useState(s());
7
- return a(() => {
8
- r((u) => u ?? String(i++));
9
- }, [o]), t ? `radix-${t}` : "";
1
+ import * as u from "react";
2
+ import { j as C } from "./index.es83.js";
3
+ function $(e, c) {
4
+ const o = u.createContext(c);
5
+ function a(r) {
6
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
7
+ return /* @__PURE__ */ C.jsx(o.Provider, { value: s, children: t });
8
+ }
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
14
+ }
15
+ return a.displayName = e + "Provider", [a, i];
16
+ }
17
+ function j(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ function d(m) {
23
+ const { scope: x, children: f, ...p } = m, S = (x == null ? void 0 : x[e][s]) || n, h = u.useMemo(() => p, Object.values(p));
24
+ return /* @__PURE__ */ C.jsx(S.Provider, { value: h, children: f });
25
+ }
26
+ function v(m, x) {
27
+ const f = (x == null ? void 0 : x[e][s]) || n, p = u.useContext(f);
28
+ if (p) return p;
29
+ if (t !== void 0) return t;
30
+ throw new Error(`\`${m}\` must be used within \`${r}\``);
31
+ }
32
+ return d.displayName = r + "Provider", [d, v];
33
+ }
34
+ const i = () => {
35
+ const r = o.map((t) => u.createContext(t));
36
+ return function(n) {
37
+ const s = (n == null ? void 0 : n[e]) || r;
38
+ return u.useMemo(
39
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
40
+ [n, s]
41
+ );
42
+ };
43
+ };
44
+ return i.scopeName = e, [a, P(i, ...c)];
45
+ }
46
+ function P(...e) {
47
+ const c = e[0];
48
+ if (e.length === 1) return c;
49
+ const o = () => {
50
+ const a = e.map((i) => ({
51
+ useScope: i(),
52
+ scopeName: i.scopeName
53
+ }));
54
+ return function(r) {
55
+ const t = a.reduce((n, { useScope: s, scopeName: d }) => {
56
+ const m = s(r)[`__scope${d}`];
57
+ return { ...n, ...m };
58
+ }, {});
59
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
60
+ };
61
+ };
62
+ return o.scopeName = c.scopeName, o;
10
63
  }
11
64
  export {
12
- d as useId
65
+ $ as createContext,
66
+ j as createContextScope
13
67
  };