@boxcustodia/library 0.0.7 → 0.0.8

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 (272) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/dist/index.es100.js +4 -4
  3. package/dist/index.es101.js +4 -14
  4. package/dist/index.es102.js +3 -4
  5. package/dist/index.es103.js +14 -57
  6. package/dist/index.es104.js +5 -29
  7. package/dist/index.es105.js +57 -12
  8. package/dist/index.es106.js +29 -11
  9. package/dist/index.es111.js +243 -1046
  10. package/dist/index.es112.js +12 -4
  11. package/dist/index.es113.js +11 -4
  12. package/dist/index.es114.js +7 -7
  13. package/dist/index.es117.js +14 -14
  14. package/dist/index.es118.js +813 -55
  15. package/dist/index.es119.js +9 -822
  16. package/dist/index.es120.js +5 -3
  17. package/dist/index.es121.js +64 -11
  18. package/dist/index.es122.js +88 -11
  19. package/dist/index.es123.js +11 -88
  20. package/dist/index.es124.js +4 -216
  21. package/dist/index.es127.js +5 -5
  22. package/dist/index.es128.js +216 -4
  23. package/dist/index.es129.js +2 -2
  24. package/dist/index.es134.js +1 -1
  25. package/dist/index.es137.js +20 -11
  26. package/dist/index.es138.js +37 -205
  27. package/dist/index.es139.js +10 -10
  28. package/dist/index.es140.js +11 -20
  29. package/dist/index.es141.js +205 -37
  30. package/dist/index.es142.js +10 -10
  31. package/dist/index.es143.js +5 -6
  32. package/dist/index.es144.js +2 -65
  33. package/dist/index.es145.js +44 -11
  34. package/dist/index.es146.js +5 -123
  35. package/dist/index.es147.js +58 -128
  36. package/dist/index.es148.js +11 -14
  37. package/dist/index.es149.js +122 -30
  38. package/dist/index.es150.js +134 -14
  39. package/dist/index.es151.js +12 -7
  40. package/dist/index.es152.js +32 -49
  41. package/dist/index.es153.js +14 -5
  42. package/dist/index.es154.js +9 -2
  43. package/dist/index.es155.js +48 -648
  44. package/dist/index.es156.js +5 -5
  45. package/dist/index.es157.js +649 -3
  46. package/dist/index.es158.js +4 -4
  47. package/dist/index.es159.js +3 -45
  48. package/dist/index.es160.js +45 -7
  49. package/dist/index.es161.js +7 -5
  50. package/dist/index.es162.js +6 -28
  51. package/dist/index.es163.js +27 -43
  52. package/dist/index.es164.js +3 -3
  53. package/dist/index.es166.js +5 -5
  54. package/dist/index.es168.js +2 -2
  55. package/dist/index.es179.js +1 -1
  56. package/dist/index.es180.js +1 -1
  57. package/dist/index.es181.js +2 -2
  58. package/dist/index.es182.js +1 -1
  59. package/dist/index.es184.js +1 -1
  60. package/dist/index.es207.js +1 -1
  61. package/dist/index.es240.js +1 -1
  62. package/dist/index.es241.js +24 -177
  63. package/dist/index.es242.js +5 -5
  64. package/dist/index.es243.js +2 -2
  65. package/dist/index.es246.js +1 -1
  66. package/dist/index.es247.js +1 -1
  67. package/dist/index.es248.js +3 -3
  68. package/dist/index.es249.js +178 -2
  69. package/dist/index.es250.js +25 -397
  70. package/dist/index.es251.js +4 -722
  71. package/dist/index.es252.js +7 -282
  72. package/dist/index.es253.js +13 -60
  73. package/dist/index.es254.js +13 -9
  74. package/dist/index.es255.js +134 -28
  75. package/dist/index.es256.js +32 -199
  76. package/dist/index.es257.js +462 -25
  77. package/dist/index.es258.js +131 -4
  78. package/dist/index.es259.js +27 -8
  79. package/dist/index.es260.js +4 -13
  80. package/dist/index.es261.js +26 -13
  81. package/dist/index.es262.js +7 -134
  82. package/dist/index.es263.js +11 -31
  83. package/dist/index.es264.js +26 -460
  84. package/dist/index.es265.js +47 -130
  85. package/dist/index.es266.js +31 -27
  86. package/dist/index.es267.js +43 -4
  87. package/dist/index.es268.js +158 -26
  88. package/dist/index.es269.js +32 -6
  89. package/dist/index.es27.js +1 -1
  90. package/dist/index.es270.js +2 -12
  91. package/dist/index.es271.js +77 -26
  92. package/dist/index.es272.js +18 -48
  93. package/dist/index.es273.js +2 -31
  94. package/dist/index.es274.js +397 -43
  95. package/dist/index.es275.js +715 -151
  96. package/dist/index.es276.js +278 -29
  97. package/dist/index.es277.js +61 -2
  98. package/dist/index.es278.js +8 -78
  99. package/dist/index.es279.js +28 -18
  100. package/dist/index.es28.js +3 -3
  101. package/dist/index.es280.js +199 -25
  102. package/dist/index.es281.js +15 -16
  103. package/dist/index.es282.js +3 -8
  104. package/dist/index.es283.js +16 -4
  105. package/dist/index.es284.js +8 -14
  106. package/dist/index.es285.js +4 -15
  107. package/dist/index.es286.js +14 -15
  108. package/dist/index.es287.js +15 -3
  109. package/dist/index.es29.js +6 -6
  110. package/dist/index.es31.js +2 -2
  111. package/dist/index.es32.js +2 -2
  112. package/dist/index.es322.js +3 -3
  113. package/dist/index.es323.js +3 -3
  114. package/dist/index.es325.js +1 -1
  115. package/dist/index.es326.js +5 -5
  116. package/dist/index.es327.js +1 -1
  117. package/dist/index.es336.js +6 -2
  118. package/dist/index.es337.js +34 -2
  119. package/dist/index.es338.js +26 -6
  120. package/dist/index.es339.js +18 -34
  121. package/dist/index.es34.js +5 -5
  122. package/dist/index.es340.js +4 -25
  123. package/dist/index.es341.js +231 -18
  124. package/dist/index.es342.js +100 -5
  125. package/dist/index.es343.js +26 -229
  126. package/dist/index.es344.js +35 -80
  127. package/dist/index.es345.js +2 -28
  128. package/dist/index.es346.js +2 -55
  129. package/dist/index.es347.js +334 -2
  130. package/dist/index.es348.js +31 -106
  131. package/dist/index.es349.js +16 -75
  132. package/dist/index.es35.js +2 -2
  133. package/dist/index.es350.js +29 -35
  134. package/dist/index.es351.js +3 -64
  135. package/dist/index.es352.js +107 -34
  136. package/dist/index.es353.js +71 -60
  137. package/dist/index.es354.js +34 -111
  138. package/dist/index.es355.js +60 -90
  139. package/dist/index.es356.js +32 -41
  140. package/dist/index.es357.js +66 -3
  141. package/dist/index.es358.js +113 -3
  142. package/dist/index.es359.js +94 -3
  143. package/dist/index.es360.js +43 -3
  144. package/dist/index.es361.js +2 -2
  145. package/dist/index.es362.js +2 -2
  146. package/dist/index.es363.js +2 -2
  147. package/dist/index.es364.js +2 -2
  148. package/dist/index.es365.js +2 -2
  149. package/dist/index.es366.js +4 -241
  150. package/dist/index.es367.js +4 -384
  151. package/dist/index.es368.js +4 -169
  152. package/dist/index.es369.js +4 -153
  153. package/dist/index.es370.js +187 -88
  154. package/dist/index.es371.js +384 -4
  155. package/dist/index.es372.js +169 -4
  156. package/dist/index.es373.js +153 -4
  157. package/dist/index.es374.js +142 -4
  158. package/dist/index.es375.js +2 -2
  159. package/dist/index.es376.js +2 -2
  160. package/dist/index.es377.js +2 -334
  161. package/dist/index.es378.js +2 -31
  162. package/dist/index.es379.js +2 -17
  163. package/dist/index.es38.js +51 -46
  164. package/dist/index.es380.js +2 -29
  165. package/dist/index.es381.js +2 -2
  166. package/dist/index.es382.js +1 -1
  167. package/dist/index.es384.js +1 -1
  168. package/dist/index.es385.js +1 -1
  169. package/dist/index.es39.js +2 -2
  170. package/dist/index.es394.js +68 -5
  171. package/dist/index.es395.js +31 -3
  172. package/dist/index.es396.js +16 -24
  173. package/dist/index.es397.js +141 -110
  174. package/dist/index.es398.js +113 -15
  175. package/dist/index.es399.js +5 -6
  176. package/dist/index.es40.js +3 -3
  177. package/dist/index.es400.js +3 -2
  178. package/dist/index.es401.js +23 -7
  179. package/dist/index.es402.js +108 -325
  180. package/dist/index.es403.js +15 -49
  181. package/dist/index.es404.js +518 -3
  182. package/dist/index.es405.js +113 -505
  183. package/dist/index.es406.js +120 -121
  184. package/dist/index.es407.js +5 -125
  185. package/dist/index.es408.js +2 -68
  186. package/dist/index.es409.js +8 -31
  187. package/dist/index.es41.js +1 -1
  188. package/dist/index.es410.js +327 -16
  189. package/dist/index.es411.js +48 -139
  190. package/dist/index.es412.js +4 -114
  191. package/dist/index.es416.js +1 -1
  192. package/dist/index.es418.js +1 -1
  193. package/dist/index.es419.js +4 -4
  194. package/dist/index.es42.js +1 -1
  195. package/dist/index.es437.js +21 -271
  196. package/dist/index.es438.js +10 -79
  197. package/dist/index.es439.js +31 -164
  198. package/dist/index.es44.js +1 -1
  199. package/dist/index.es440.js +29 -24
  200. package/dist/index.es441.js +11 -10
  201. package/dist/index.es442.js +274 -32
  202. package/dist/index.es443.js +79 -29
  203. package/dist/index.es444.js +165 -11
  204. package/dist/index.es448.js +2 -2
  205. package/dist/index.es45.js +1 -1
  206. package/dist/index.es454.js +1 -1
  207. package/dist/index.es455.js +1 -1
  208. package/dist/index.es461.js +1 -1
  209. package/dist/index.es476.js +1 -1
  210. package/dist/index.es477.js +1 -1
  211. package/dist/index.es50.js +2 -2
  212. package/dist/index.es51.js +1 -1
  213. package/dist/index.es52.js +4 -4
  214. package/dist/index.es55.js +1 -1
  215. package/dist/index.es56.js +1 -1
  216. package/dist/index.es57.js +2 -2
  217. package/dist/index.es59.js +2 -2
  218. package/dist/index.es62.js +1 -1
  219. package/dist/index.es63.js +1 -1
  220. package/dist/index.es65.js +2 -2
  221. package/dist/index.es66.js +2 -2
  222. package/dist/index.es754.js +13 -21
  223. package/dist/index.es755.js +18 -79
  224. package/dist/index.es756.js +82 -13
  225. package/dist/index.es757.js +14 -2
  226. package/dist/index.es758.js +60 -2
  227. package/dist/index.es759.js +2 -14
  228. package/dist/index.es760.js +2 -60
  229. package/dist/index.es768.js +2 -5
  230. package/dist/index.es769.js +2 -17
  231. package/dist/index.es770.js +5 -2
  232. package/dist/index.es771.js +17 -2
  233. package/dist/index.es772.js +1 -1
  234. package/dist/index.es773.js +2 -2
  235. package/dist/index.es78.js +1 -1
  236. package/dist/index.es781.js +1 -1
  237. package/dist/index.es784.js +1 -1
  238. package/dist/index.es787.js +56 -26
  239. package/dist/index.es788.js +10 -3
  240. package/dist/index.es789.js +14 -57
  241. package/dist/index.es79.js +1 -1
  242. package/dist/index.es790.js +3 -6
  243. package/dist/index.es791.js +28 -15
  244. package/dist/index.es792.js +3 -7
  245. package/dist/index.es808.js +1 -1
  246. package/dist/index.es811.js +5 -5
  247. package/dist/index.es812.js +2 -2
  248. package/dist/index.es813.js +1 -1
  249. package/dist/index.es815.js +2 -2
  250. package/dist/index.es827.js +64 -15
  251. package/dist/index.es828.js +11 -7
  252. package/dist/index.es829.js +38 -61
  253. package/dist/index.es830.js +54 -7
  254. package/dist/index.es831.js +16 -40
  255. package/dist/index.es832.js +17 -57
  256. package/dist/index.es833.js +7 -20
  257. package/dist/index.es834.js +1 -1
  258. package/dist/index.es86.js +55 -33
  259. package/dist/index.es87.js +53 -44
  260. package/dist/index.es88.js +89 -29
  261. package/dist/index.es89.js +37 -30
  262. package/dist/index.es90.js +24 -9
  263. package/dist/index.es91.js +30 -55
  264. package/dist/index.es92.js +31 -53
  265. package/dist/index.es93.js +46 -90
  266. package/dist/index.es94.js +29 -36
  267. package/dist/index.es95.js +29 -23
  268. package/dist/index.es96.js +9 -30
  269. package/dist/index.es97.js +12 -259
  270. package/dist/index.es98.js +1062 -12
  271. package/dist/index.es99.js +2 -2
  272. package/package.json +1 -1
@@ -1,48 +1,6 @@
1
- import n from "react";
2
- import { createContextScope as O } from "./index.es144.js";
3
- import { useComposedRefs as I } from "./index.es137.js";
4
- import { Slot as S } from "./index.es87.js";
5
- import { j as u } from "./index.es82.js";
6
- function L(s) {
7
- const f = s + "CollectionProvider", [A, E] = O(f), [N, m] = A(
8
- f,
9
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
- ), a = (c) => {
11
- const { scope: e, children: l } = c, o = n.useRef(null), t = n.useRef(/* @__PURE__ */ new Map()).current;
12
- return /* @__PURE__ */ u.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });
13
- };
14
- a.displayName = f;
15
- const d = s + "CollectionSlot", p = n.forwardRef(
16
- (c, e) => {
17
- const { scope: l, children: o } = c, t = m(d, l), r = I(e, t.collectionRef);
18
- return /* @__PURE__ */ u.jsx(S, { ref: r, children: o });
19
- }
20
- );
21
- p.displayName = d;
22
- const C = s + "CollectionItemSlot", R = "data-radix-collection-item", x = n.forwardRef(
23
- (c, e) => {
24
- const { scope: l, children: o, ...t } = c, r = n.useRef(null), M = I(e, r), i = m(C, l);
25
- return n.useEffect(() => (i.itemMap.set(r, { ref: r, ...t }), () => void i.itemMap.delete(r))), /* @__PURE__ */ u.jsx(S, { [R]: "", ref: M, children: o });
26
- }
27
- );
28
- x.displayName = C;
29
- function _(c) {
30
- const e = m(s + "CollectionConsumer", c);
31
- return n.useCallback(() => {
32
- const o = e.collectionRef.current;
33
- if (!o) return [];
34
- const t = Array.from(o.querySelectorAll(`[${R}]`));
35
- return Array.from(e.itemMap.values()).sort(
36
- (i, T) => t.indexOf(i.ref.current) - t.indexOf(T.ref.current)
37
- );
38
- }, [e.collectionRef, e.itemMap]);
39
- }
40
- return [
41
- { Provider: a, Slot: p, ItemSlot: x },
42
- _,
43
- E
44
- ];
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
45
3
  }
46
4
  export {
47
- L as createCollection
5
+ m as clamp
48
6
  };
@@ -1,10 +1,48 @@
1
- import * as t from "react";
2
- import "./index.es82.js";
3
- var r = t.createContext(void 0);
4
- function n(o) {
5
- const e = t.useContext(r);
6
- return o || e || "ltr";
1
+ import n from "react";
2
+ import { createContextScope as O } from "./index.es147.js";
3
+ import { useComposedRefs as I } from "./index.es140.js";
4
+ import { Slot as S } from "./index.es93.js";
5
+ import { j as u } from "./index.es82.js";
6
+ function L(s) {
7
+ const f = s + "CollectionProvider", [A, E] = O(f), [N, m] = A(
8
+ f,
9
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
+ ), a = (c) => {
11
+ const { scope: e, children: l } = c, o = n.useRef(null), t = n.useRef(/* @__PURE__ */ new Map()).current;
12
+ return /* @__PURE__ */ u.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });
13
+ };
14
+ a.displayName = f;
15
+ const d = s + "CollectionSlot", p = n.forwardRef(
16
+ (c, e) => {
17
+ const { scope: l, children: o } = c, t = m(d, l), r = I(e, t.collectionRef);
18
+ return /* @__PURE__ */ u.jsx(S, { ref: r, children: o });
19
+ }
20
+ );
21
+ p.displayName = d;
22
+ const C = s + "CollectionItemSlot", R = "data-radix-collection-item", x = n.forwardRef(
23
+ (c, e) => {
24
+ const { scope: l, children: o, ...t } = c, r = n.useRef(null), M = I(e, r), i = m(C, l);
25
+ return n.useEffect(() => (i.itemMap.set(r, { ref: r, ...t }), () => void i.itemMap.delete(r))), /* @__PURE__ */ u.jsx(S, { [R]: "", ref: M, children: o });
26
+ }
27
+ );
28
+ x.displayName = C;
29
+ function _(c) {
30
+ const e = m(s + "CollectionConsumer", c);
31
+ return n.useCallback(() => {
32
+ const o = e.collectionRef.current;
33
+ if (!o) return [];
34
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
35
+ return Array.from(e.itemMap.values()).sort(
36
+ (i, T) => t.indexOf(i.ref.current) - t.indexOf(T.ref.current)
37
+ );
38
+ }, [e.collectionRef, e.itemMap]);
39
+ }
40
+ return [
41
+ { Provider: a, Slot: p, ItemSlot: x },
42
+ _,
43
+ E
44
+ ];
7
45
  }
8
46
  export {
9
- n as useDirection
47
+ L as createCollection
10
48
  };
@@ -1,8 +1,10 @@
1
- import * as u from "react";
2
- function t(r) {
3
- const e = u.useRef({ value: r, previous: r });
4
- return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
1
+ import * as t from "react";
2
+ import "./index.es82.js";
3
+ var r = t.createContext(void 0);
4
+ function n(o) {
5
+ const e = t.useContext(r);
6
+ return o || e || "ltr";
5
7
  }
6
8
  export {
7
- t as usePrevious
9
+ n as useDirection
8
10
  };
@@ -1,30 +1,8 @@
1
- import * as e from "react";
2
- import { Primitive as a } from "./index.es149.js";
3
- import { j as o } from "./index.es82.js";
4
- var t = "VisuallyHidden", d = e.forwardRef(
5
- (r, i) => /* @__PURE__ */ o.jsx(
6
- a.span,
7
- {
8
- ...r,
9
- ref: i,
10
- style: {
11
- // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
12
- position: "absolute",
13
- border: 0,
14
- width: 1,
15
- height: 1,
16
- padding: 0,
17
- margin: -1,
18
- overflow: "hidden",
19
- clip: "rect(0, 0, 0, 0)",
20
- whiteSpace: "nowrap",
21
- wordWrap: "normal",
22
- ...r.style
23
- }
24
- }
25
- )
26
- );
27
- d.displayName = t;
1
+ import * as u from "react";
2
+ function t(r) {
3
+ const e = u.useRef({ value: r, previous: r });
4
+ return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
5
+ }
28
6
  export {
29
- d as VisuallyHidden
7
+ t as usePrevious
30
8
  };
@@ -1,46 +1,30 @@
1
- import { validateFieldsNatively as v, toNestErrors as d } from "./index.es280.js";
2
- import { appendErrors as h } from "./index.es111.js";
3
- var m = function(t, u) {
4
- for (var o = {}; t.length; ) {
5
- var r = t[0], c = r.code, n = r.message, e = r.path.join(".");
6
- if (!o[e]) if ("unionErrors" in r) {
7
- var s = r.unionErrors[0].errors[0];
8
- o[e] = { message: s.message, type: s.code };
9
- } else o[e] = { message: n, type: c };
10
- if ("unionErrors" in r && r.unionErrors.forEach(function(f) {
11
- return f.errors.forEach(function(l) {
12
- return t.push(l);
13
- });
14
- }), u) {
15
- var i = o[e].types, a = i && i[r.code];
16
- o[e] = h(e, u, o, c, a ? [].concat(a, r.message) : r.message);
1
+ import * as e from "react";
2
+ import { Primitive as a } from "./index.es152.js";
3
+ import { j as o } from "./index.es82.js";
4
+ var t = "VisuallyHidden", d = e.forwardRef(
5
+ (r, i) => /* @__PURE__ */ o.jsx(
6
+ a.span,
7
+ {
8
+ ...r,
9
+ ref: i,
10
+ style: {
11
+ // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
12
+ position: "absolute",
13
+ border: 0,
14
+ width: 1,
15
+ height: 1,
16
+ padding: 0,
17
+ margin: -1,
18
+ overflow: "hidden",
19
+ clip: "rect(0, 0, 0, 0)",
20
+ whiteSpace: "nowrap",
21
+ wordWrap: "normal",
22
+ ...r.style
23
+ }
17
24
  }
18
- t.shift();
19
- }
20
- return o;
21
- }, E = function(t, u, o) {
22
- return o === void 0 && (o = {}), function(r, c, n) {
23
- try {
24
- return Promise.resolve(function(e, s) {
25
- try {
26
- var i = Promise.resolve(t[o.mode === "sync" ? "parse" : "parseAsync"](r, u)).then(function(a) {
27
- return n.shouldUseNativeValidation && v({}, n), { errors: {}, values: o.raw ? r : a };
28
- });
29
- } catch (a) {
30
- return s(a);
31
- }
32
- return i && i.then ? i.then(void 0, s) : i;
33
- }(0, function(e) {
34
- if (function(s) {
35
- return Array.isArray(s == null ? void 0 : s.errors);
36
- }(e)) return { values: {}, errors: d(m(e.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
37
- throw e;
38
- }));
39
- } catch (e) {
40
- return Promise.reject(e);
41
- }
42
- };
43
- };
25
+ )
26
+ );
27
+ d.displayName = t;
44
28
  export {
45
- E as zodResolver
29
+ d as VisuallyHidden
46
30
  };
@@ -1,6 +1,6 @@
1
- import { __module as e } from "./index.es249.js";
2
- import { __require as t } from "./index.es250.js";
3
- import { __require as r } from "./index.es251.js";
1
+ import { __module as e } from "./index.es273.js";
2
+ import { __require as t } from "./index.es274.js";
3
+ import { __require as r } from "./index.es275.js";
4
4
  process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = r();
5
5
  var p = e.exports;
6
6
  export {
@@ -1,8 +1,8 @@
1
- import { format as Ze, plugins as _e } from "./index.es252.js";
2
- import { computeAccessibleDescription as Se } from "./index.es253.js";
3
- import { computeAccessibleName as ce } from "./index.es254.js";
4
- import { elementRoles as et, roles as I, roleElements as tt } from "./index.es255.js";
5
- import nt from "./index.es256.js";
1
+ import { format as Ze, plugins as _e } from "./index.es276.js";
2
+ import { computeAccessibleDescription as Se } from "./index.es277.js";
3
+ import { computeAccessibleName as ce } from "./index.es278.js";
4
+ import { elementRoles as et, roles as I, roleElements as tt } from "./index.es279.js";
5
+ import nt from "./index.es280.js";
6
6
  function Ce(e) {
7
7
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
8
8
  }
@@ -1,6 +1,6 @@
1
- import { createStore as a } from "./index.es281.js";
1
+ import { createStore as a } from "./index.es283.js";
2
2
  import c from "react";
3
- import d from "./index.es282.js";
3
+ import d from "./index.es284.js";
4
4
  const n = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, { useDebugValue: l } = c, { useSyncExternalStoreWithSelector: f } = d;
5
5
  let s = !1;
6
6
  const p = (t) => t;
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- import { useLayoutEffect as $ } from "./index.es283.js";
2
+ import { useLayoutEffect as $ } from "./index.es285.js";
3
3
  const u = e.useId || (() => {
4
4
  });
5
5
  let r = 0;
@@ -1,5 +1,5 @@
1
1
  import { useCallback as i, useState as $, useRef as C, useEffect as b } from "react";
2
- import { useCallbackRef as f } from "./index.es284.js";
2
+ import { useCallbackRef as f } from "./index.es286.js";
3
3
  function g({ prop: e, defaultProp: s, onChange: c = () => {
4
4
  } }) {
5
5
  const [t, n] = h({
@@ -3,8 +3,8 @@ import { forwardRef as _, useContext as z, useState as C, useEffect as v, create
3
3
  import { composeEventHandlers as p } from "./index.es176.js";
4
4
  import { Primitive as H, dispatchDiscreteCustomEvent as K } from "./index.es135.js";
5
5
  import { useComposedRefs as X } from "./index.es177.js";
6
- import { useCallbackRef as T } from "./index.es284.js";
7
- import { useEscapeKeydown as j } from "./index.es285.js";
6
+ import { useCallbackRef as T } from "./index.es286.js";
7
+ import { useEscapeKeydown as j } from "./index.es287.js";
8
8
  const m = "dismissableLayer.update", q = "dismissableLayer.pointerDownOutside", G = "dismissableLayer.focusOutside";
9
9
  let w;
10
10
  const J = /* @__PURE__ */ N({
@@ -2,7 +2,7 @@ import P from "./index.es175.js";
2
2
  import { forwardRef as _, useState as k, useRef as T, useEffect as h, useCallback as K, createElement as M } from "react";
3
3
  import { useComposedRefs as R } from "./index.es177.js";
4
4
  import { Primitive as w } from "./index.es135.js";
5
- import { useCallbackRef as y } from "./index.es284.js";
5
+ import { useCallbackRef as y } from "./index.es286.js";
6
6
  const E = "focusScope.autoFocusOnMount", b = "focusScope.autoFocusOnUnmount", N = {
7
7
  bubbles: !1,
8
8
  cancelable: !0
@@ -1,7 +1,7 @@
1
1
  import { Children as v, cloneElement as $, useState as E, useRef as N, useEffect as M, useCallback as O, useReducer as T } from "react";
2
2
  import { flushSync as h } from "react-dom";
3
3
  import { useComposedRefs as U } from "./index.es177.js";
4
- import { useLayoutEffect as p } from "./index.es283.js";
4
+ import { useLayoutEffect as p } from "./index.es285.js";
5
5
  function I(n, t) {
6
6
  return T((r, o) => {
7
7
  const i = t[r][o];
@@ -1,4 +1,4 @@
1
- import { isDate as e } from "./index.es102.js";
1
+ import { isDate as e } from "./index.es104.js";
2
2
  import { toDate as o } from "./index.es189.js";
3
3
  function a(r) {
4
4
  if (!e(r) && typeof r != "number")
@@ -1,5 +1,5 @@
1
1
  import * as r from "react";
2
- import { useCallbackRef as s } from "./index.es139.js";
2
+ import { useCallbackRef as s } from "./index.es142.js";
3
3
  function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
4
  const t = s(n);
5
5
  r.useEffect(() => {
@@ -1,180 +1,27 @@
1
- import * as s from "react";
2
- import { composeEventHandlers as p } from "./index.es143.js";
3
- import { createCollection as H } from "./index.es159.js";
4
- import { useComposedRefs as V } from "./index.es137.js";
5
- import { createContextScope as z } from "./index.es144.js";
6
- import { useId as q } from "./index.es145.js";
7
- import { Primitive as P } from "./index.es149.js";
8
- import { useCallbackRef as J } from "./index.es139.js";
9
- import { useControllableState as Q } from "./index.es89.js";
10
- import { useDirection as W } from "./index.es160.js";
11
- import { j as d } from "./index.es82.js";
12
- var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [h, G, Z] = H(b), [$, Fe] = z(
13
- b,
14
- [Z]
15
- ), [ee, oe] = $(b), N = s.forwardRef(
16
- (e, r) => /* @__PURE__ */ d.jsx(h.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(h.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
17
- );
18
- N.displayName = b;
19
- var te = s.forwardRef((e, r) => {
20
- const {
21
- __scopeRovingFocusGroup: c,
22
- orientation: o,
23
- loop: F = !1,
24
- dir: g,
25
- currentTabStopId: R,
26
- defaultCurrentTabStopId: E,
27
- onCurrentTabStopIdChange: m,
28
- onEntryFocus: u,
29
- preventScrollOnEntryFocus: w = !1,
30
- ...C
31
- } = e, v = s.useRef(null), I = V(r, v), t = W(g), [f = null, T] = Q({
32
- prop: R,
33
- defaultProp: E,
34
- onChange: m
35
- }), [a, i] = s.useState(!1), S = J(u), M = G(c), x = s.useRef(!1), [k, y] = s.useState(0);
36
- return s.useEffect(() => {
37
- const n = v.current;
38
- if (n)
39
- return n.addEventListener(_, S), () => n.removeEventListener(_, S);
40
- }, [S]), /* @__PURE__ */ d.jsx(
41
- ee,
42
- {
43
- scope: c,
44
- orientation: o,
45
- dir: t,
46
- loop: F,
47
- currentTabStopId: f,
48
- onItemFocus: s.useCallback(
49
- (n) => T(n),
50
- [T]
51
- ),
52
- onItemShiftTab: s.useCallback(() => i(!0), []),
53
- onFocusableItemAdd: s.useCallback(
54
- () => y((n) => n + 1),
55
- []
56
- ),
57
- onFocusableItemRemove: s.useCallback(
58
- () => y((n) => n - 1),
59
- []
60
- ),
61
- children: /* @__PURE__ */ d.jsx(
62
- P.div,
63
- {
64
- tabIndex: a || k === 0 ? -1 : 0,
65
- "data-orientation": o,
66
- ...C,
67
- ref: I,
68
- style: { outline: "none", ...e.style },
69
- onMouseDown: p(e.onMouseDown, () => {
70
- x.current = !0;
71
- }),
72
- onFocus: p(e.onFocus, (n) => {
73
- const L = !x.current;
74
- if (n.target === n.currentTarget && L && !a) {
75
- const D = new CustomEvent(_, X);
76
- if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
77
- const A = M().filter((l) => l.focusable), U = A.find((l) => l.active), B = A.find((l) => l.id === f), Y = [U, B, ...A].filter(
78
- Boolean
79
- ).map((l) => l.ref.current);
80
- j(Y, w);
81
- }
82
- }
83
- x.current = !1;
84
- }),
85
- onBlur: p(e.onBlur, () => i(!1))
86
- }
87
- )
88
- }
89
- );
90
- }), O = "RovingFocusGroupItem", K = s.forwardRef(
91
- (e, r) => {
92
- const {
93
- __scopeRovingFocusGroup: c,
94
- focusable: o = !0,
95
- active: F = !1,
96
- tabStopId: g,
97
- ...R
98
- } = e, E = q(), m = g || E, u = oe(O, c), w = u.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = u;
99
- return s.useEffect(() => {
100
- if (o)
101
- return v(), () => I();
102
- }, [o, v, I]), /* @__PURE__ */ d.jsx(
103
- h.ItemSlot,
104
- {
105
- scope: c,
106
- id: m,
107
- focusable: o,
108
- active: F,
109
- children: /* @__PURE__ */ d.jsx(
110
- P.span,
111
- {
112
- tabIndex: w ? 0 : -1,
113
- "data-orientation": u.orientation,
114
- ...R,
115
- ref: r,
116
- onMouseDown: p(e.onMouseDown, (t) => {
117
- o ? u.onItemFocus(m) : t.preventDefault();
118
- }),
119
- onFocus: p(e.onFocus, () => u.onItemFocus(m)),
120
- onKeyDown: p(e.onKeyDown, (t) => {
121
- if (t.key === "Tab" && t.shiftKey) {
122
- u.onItemShiftTab();
123
- return;
124
- }
125
- if (t.target !== t.currentTarget) return;
126
- const f = se(t, u.orientation, u.dir);
127
- if (f !== void 0) {
128
- if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
129
- t.preventDefault();
130
- let a = C().filter((i) => i.focusable).map((i) => i.ref.current);
131
- if (f === "last") a.reverse();
132
- else if (f === "prev" || f === "next") {
133
- f === "prev" && a.reverse();
134
- const i = a.indexOf(t.currentTarget);
135
- a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
136
- }
137
- setTimeout(() => j(a));
138
- }
139
- })
140
- }
141
- )
142
- }
143
- );
1
+ import { get as a, set as r } from "./index.es98.js";
2
+ const l = (t, i, e) => {
3
+ if (t && "reportValidity" in t) {
4
+ const s = a(e, i);
5
+ t.setCustomValidity(s && s.message || ""), t.reportValidity();
144
6
  }
145
- );
146
- K.displayName = O;
147
- var re = {
148
- ArrowLeft: "prev",
149
- ArrowUp: "prev",
150
- ArrowRight: "next",
151
- ArrowDown: "next",
152
- PageUp: "first",
153
- Home: "first",
154
- PageDown: "last",
155
- End: "last"
156
- };
157
- function ne(e, r) {
158
- return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
159
- }
160
- function se(e, r, c) {
161
- const o = ne(e.key, c);
162
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
163
- return re[o];
164
- }
165
- function j(e, r = !1) {
166
- const c = document.activeElement;
167
- for (const o of e)
168
- if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
169
- }
170
- function ce(e, r) {
171
- return e.map((c, o) => e[(r + o) % e.length]);
172
- }
173
- var ge = N, Re = K;
7
+ }, c = (t, i) => {
8
+ for (const e in i.fields) {
9
+ const s = i.fields[e];
10
+ s && s.ref && "reportValidity" in s.ref ? l(s.ref, e, t) : s.refs && s.refs.forEach((o) => l(o, e, t));
11
+ }
12
+ }, y = (t, i) => {
13
+ i.shouldUseNativeValidation && c(t, i);
14
+ const e = {};
15
+ for (const s in t) {
16
+ const o = a(i.fields, s), n = Object.assign(t[s] || {}, { ref: o && o.ref });
17
+ if (d(i.names || Object.keys(t), s)) {
18
+ const f = Object.assign({}, a(e, s));
19
+ r(f, "root", n), r(e, s, f);
20
+ } else r(e, s, n);
21
+ }
22
+ return e;
23
+ }, d = (t, i) => t.some((e) => e.startsWith(i + "."));
174
24
  export {
175
- Re as Item,
176
- ge as Root,
177
- N as RovingFocusGroup,
178
- K as RovingFocusGroupItem,
179
- Fe as createRovingFocusGroupScope
25
+ y as toNestErrors,
26
+ c as validateFieldsNatively
180
27
  };
@@ -1,8 +1,8 @@
1
- import { formatDistance as o } from "./index.es408.js";
2
- import { formatLong as t } from "./index.es409.js";
3
- import { formatRelative as a } from "./index.es410.js";
4
- import { localize as r } from "./index.es411.js";
5
- import { match as e } from "./index.es412.js";
1
+ import { formatDistance as o } from "./index.es394.js";
2
+ import { formatLong as t } from "./index.es395.js";
3
+ import { formatRelative as a } from "./index.es396.js";
4
+ import { localize as r } from "./index.es397.js";
5
+ import { match as e } from "./index.es398.js";
6
6
  const c = {
7
7
  code: "es",
8
8
  formatDistance: o,
@@ -1,11 +1,11 @@
1
1
  import { j as i } from "./index.es82.js";
2
2
  import { useContext as g, useMemo as x } from "react";
3
- import { CalendarContext as v } from "./index.es91.js";
3
+ import { CalendarContext as v } from "./index.es86.js";
4
4
  import { isSameMonth as h } from "./index.es224.js";
5
5
  import { isWeekend as D } from "./index.es226.js";
6
6
  import { isToday as M } from "./index.es225.js";
7
7
  import { cn as b } from "./index.es72.js";
8
- import { formatDate as o } from "./index.es103.js";
8
+ import { formatDate as o } from "./index.es105.js";
9
9
  const j = ({ day: t, navigationDate: d, className: s, ...r }) => {
10
10
  const {
11
11
  isSelected: n,
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { Primitive as p } from "./index.es149.js";
2
+ import { Primitive as p } from "./index.es152.js";
3
3
  import { j as o } from "./index.es82.js";
4
4
  var v = "Arrow", e = n.forwardRef((r, i) => {
5
5
  const { children: t, width: s = 10, height: a = 5, ...m } = r;
@@ -1,5 +1,5 @@
1
1
  import * as h from "react";
2
- import { useLayoutEffect as z } from "./index.es157.js";
2
+ import { useLayoutEffect as z } from "./index.es158.js";
3
3
  function c(r) {
4
4
  const [d, e] = h.useState(void 0);
5
5
  return z(() => {
@@ -1,6 +1,6 @@
1
- import { offset as et, shift as it, flip as nt, size as ot, hide as st, computePosition as rt, arrow as ct, limitShift as lt } from "./index.es405.js";
2
- import { createCoords as b, rectToClientRect as X, round as A, floor as z, max as T, min as V } from "./index.es406.js";
3
- import { getOverflowAncestors as $, isElement as x, getWindow as E, getFrameElement as U, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as j, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as D, isTableElement as ft, isContainingBlock as G, getContainingBlock as ut } from "./index.es407.js";
1
+ import { offset as et, shift as it, flip as nt, size as ot, hide as st, computePosition as rt, arrow as ct, limitShift as lt } from "./index.es404.js";
2
+ import { createCoords as b, rectToClientRect as X, round as A, floor as z, max as T, min as V } from "./index.es405.js";
3
+ import { getOverflowAncestors as $, isElement as x, getWindow as E, getFrameElement as U, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as j, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as D, isTableElement as ft, isContainingBlock as G, getContainingBlock as ut } from "./index.es406.js";
4
4
  function J(t) {
5
5
  const e = y(t);
6
6
  let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;