@boxcustodia/library 0.2.3 → 0.2.5

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 (347) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +21 -1059
  4. package/dist/index.es101.js +30 -3674
  5. package/dist/index.es102.js +12 -4
  6. package/dist/index.es103.js +1062 -4
  7. package/dist/index.es104.js +3673 -3
  8. package/dist/index.es105.js +4 -14
  9. package/dist/index.es106.js +4 -5
  10. package/dist/index.es107.js +11 -57
  11. package/dist/index.es108.js +228 -193
  12. package/dist/index.es109.js +5 -4
  13. package/dist/index.es110.js +4 -11
  14. package/dist/index.es111.js +14 -41
  15. package/dist/index.es112.js +5 -11
  16. package/dist/index.es113.js +57 -33
  17. package/dist/index.es115.js +1 -1
  18. package/dist/index.es116.js +1 -1
  19. package/dist/index.es117.js +1 -1
  20. package/dist/index.es118.js +13 -13
  21. package/dist/index.es119.js +813 -55
  22. package/dist/index.es120.js +9 -822
  23. package/dist/index.es121.js +5 -3
  24. package/dist/index.es122.js +64 -11
  25. package/dist/index.es123.js +33 -4
  26. package/dist/index.es124.js +13 -13
  27. package/dist/index.es125.js +13 -33
  28. package/dist/index.es126.js +4 -13
  29. package/dist/index.es127.js +215 -7
  30. package/dist/index.es128.js +7 -215
  31. package/dist/index.es13.js +1 -1
  32. package/dist/index.es130.js +1 -1
  33. package/dist/index.es131.js +1 -1
  34. package/dist/index.es132.js +12 -9
  35. package/dist/index.es133.js +196 -204
  36. package/dist/index.es134.js +41 -10
  37. package/dist/index.es135.js +11 -13
  38. package/dist/index.es136.js +11 -196
  39. package/dist/index.es137.js +204 -41
  40. package/dist/index.es138.js +10 -20
  41. package/dist/index.es139.js +5 -35
  42. package/dist/index.es14.js +1 -1
  43. package/dist/index.es140.js +63 -9
  44. package/dist/index.es141.js +32 -6
  45. package/dist/index.es142.js +645 -60
  46. package/dist/index.es144.js +19 -123
  47. package/dist/index.es145.js +32 -130
  48. package/dist/index.es146.js +11 -14
  49. package/dist/index.es147.js +5 -32
  50. package/dist/index.es148.js +2 -15
  51. package/dist/index.es149.js +124 -8
  52. package/dist/index.es15.js +1 -1
  53. package/dist/index.es150.js +133 -48
  54. package/dist/index.es151.js +14 -6
  55. package/dist/index.es152.js +15 -2
  56. package/dist/index.es153.js +9 -44
  57. package/dist/index.es154.js +48 -648
  58. package/dist/index.es155.js +44 -13
  59. package/dist/index.es156.js +8 -8
  60. package/dist/index.es159.js +3 -3
  61. package/dist/index.es162.js +1 -1
  62. package/dist/index.es163.js +6 -6
  63. package/dist/index.es164.js +2 -2
  64. package/dist/index.es165.js +6 -2
  65. package/dist/index.es166.js +3 -4
  66. package/dist/index.es167.js +2054 -6
  67. package/dist/index.es168.js +4 -3
  68. package/dist/index.es169.js +2 -2054
  69. package/dist/index.es176.js +1 -1
  70. package/dist/index.es177.js +1 -1
  71. package/dist/index.es178.js +1 -1
  72. package/dist/index.es183.js +177 -11
  73. package/dist/index.es184.js +11 -7
  74. package/dist/index.es185.js +21 -6
  75. package/dist/index.es186.js +9 -5
  76. package/dist/index.es187.js +38 -18
  77. package/dist/index.es188.js +18 -6
  78. package/dist/index.es189.js +200 -5
  79. package/dist/index.es190.js +22 -9
  80. package/dist/index.es191.js +25 -6
  81. package/dist/index.es192.js +370 -6
  82. package/dist/index.es193.js +25 -16
  83. package/dist/index.es194.js +12 -12
  84. package/dist/index.es195.js +6 -13
  85. package/dist/index.es196.js +1 -1
  86. package/dist/index.es197.js +19 -7
  87. package/dist/index.es198.js +52 -7
  88. package/dist/index.es199.js +6 -4
  89. package/dist/index.es200.js +6 -515
  90. package/dist/index.es201.js +7 -50
  91. package/dist/index.es202.js +7 -17
  92. package/dist/index.es203.js +16 -10
  93. package/dist/index.es204.js +9 -19
  94. package/dist/index.es205.js +6 -8
  95. package/dist/index.es206.js +6 -7
  96. package/dist/index.es207.js +13 -7
  97. package/dist/index.es208.js +10 -5
  98. package/dist/index.es209.js +84 -6
  99. package/dist/index.es210.js +5 -9
  100. package/dist/index.es211.js +17 -5
  101. package/dist/index.es212.js +5 -8
  102. package/dist/index.es213.js +6 -12
  103. package/dist/index.es214.js +6 -9
  104. package/dist/index.es215.js +9 -8
  105. package/dist/index.es216.js +6 -10
  106. package/dist/index.es217.js +7 -14
  107. package/dist/index.es218.js +5 -6
  108. package/dist/index.es219.js +4 -6
  109. package/dist/index.es22.js +2 -2
  110. package/dist/index.es220.js +5 -6
  111. package/dist/index.es221.js +8 -6
  112. package/dist/index.es222.js +6 -7
  113. package/dist/index.es223.js +15 -9
  114. package/dist/index.es224.js +4 -84
  115. package/dist/index.es225.js +515 -64
  116. package/dist/index.es226.js +47 -35
  117. package/dist/index.es227.js +17 -9
  118. package/dist/index.es228.js +9 -8
  119. package/dist/index.es229.js +19 -8
  120. package/dist/index.es230.js +8 -10
  121. package/dist/index.es231.js +7 -7
  122. package/dist/index.es232.js +7 -7
  123. package/dist/index.es233.js +5 -6
  124. package/dist/index.es234.js +6 -5
  125. package/dist/index.es235.js +9 -15
  126. package/dist/index.es236.js +6 -21
  127. package/dist/index.es237.js +9 -9
  128. package/dist/index.es238.js +13 -38
  129. package/dist/index.es239.js +10 -18
  130. package/dist/index.es240.js +10 -177
  131. package/dist/index.es241.js +15 -25
  132. package/dist/index.es242.js +64 -18
  133. package/dist/index.es243.js +38 -54
  134. package/dist/index.es244.js +10 -16
  135. package/dist/index.es245.js +8 -200
  136. package/dist/index.es246.js +8 -22
  137. package/dist/index.es247.js +7 -24
  138. package/dist/index.es248.js +15 -370
  139. package/dist/index.es249.js +7 -7
  140. package/dist/index.es250.js +1 -1
  141. package/dist/index.es251.js +1 -1
  142. package/dist/index.es252.js +2 -2
  143. package/dist/index.es264.js +1 -1
  144. package/dist/index.es265.js +1 -1
  145. package/dist/index.es266.js +1 -1
  146. package/dist/index.es267.js +1 -1
  147. package/dist/index.es27.js +1 -1
  148. package/dist/index.es273.js +1 -1
  149. package/dist/index.es274.js +1 -1
  150. package/dist/index.es279.js +1 -1
  151. package/dist/index.es28.js +1 -1
  152. package/dist/index.es283.js +16 -15
  153. package/dist/index.es284.js +8 -3
  154. package/dist/index.es285.js +15 -16
  155. package/dist/index.es286.js +3 -8
  156. package/dist/index.es29.js +3 -3
  157. package/dist/index.es290.js +9 -4
  158. package/dist/index.es291.js +5 -57
  159. package/dist/index.es292.js +13 -28
  160. package/dist/index.es293.js +4 -46
  161. package/dist/index.es294.js +6 -66
  162. package/dist/index.es295.js +332 -36
  163. package/dist/index.es296.js +19 -19
  164. package/dist/index.es297.js +4 -68
  165. package/dist/index.es298.js +4 -67
  166. package/dist/index.es299.js +3 -69
  167. package/dist/index.es30.js +23 -23
  168. package/dist/index.es300.js +69 -66
  169. package/dist/index.es301.js +4 -46
  170. package/dist/index.es302.js +4 -46
  171. package/dist/index.es303.js +53 -55
  172. package/dist/index.es304.js +20 -41
  173. package/dist/index.es305.js +38 -34
  174. package/dist/index.es306.js +43 -48
  175. package/dist/index.es307.js +21 -55
  176. package/dist/index.es308.js +13 -91
  177. package/dist/index.es309.js +45 -24
  178. package/dist/index.es310.js +51 -30
  179. package/dist/index.es311.js +54 -32
  180. package/dist/index.es312.js +60 -22
  181. package/dist/index.es313.js +35 -19
  182. package/dist/index.es314.js +38 -21
  183. package/dist/index.es315.js +50 -22
  184. package/dist/index.es316.js +38 -19
  185. package/dist/index.es317.js +34 -21
  186. package/dist/index.es318.js +66 -14
  187. package/dist/index.es319.js +63 -37
  188. package/dist/index.es32.js +2 -2
  189. package/dist/index.es320.js +86 -35
  190. package/dist/index.es321.js +41 -14
  191. package/dist/index.es322.js +41 -14
  192. package/dist/index.es323.js +45 -8
  193. package/dist/index.es324.js +30 -4
  194. package/dist/index.es325.js +30 -13
  195. package/dist/index.es326.js +29 -4
  196. package/dist/index.es327.js +30 -6
  197. package/dist/index.es328.js +27 -331
  198. package/dist/index.es329.js +30 -19
  199. package/dist/index.es33.js +2 -2
  200. package/dist/index.es330.js +20 -4
  201. package/dist/index.es331.js +45 -4
  202. package/dist/index.es332.js +46 -3
  203. package/dist/index.es333.js +17 -69
  204. package/dist/index.es334.js +20 -4
  205. package/dist/index.es335.js +2 -6
  206. package/dist/index.es336.js +2 -34
  207. package/dist/index.es337.js +6 -26
  208. package/dist/index.es338.js +34 -18
  209. package/dist/index.es339.js +25 -4
  210. package/dist/index.es34.js +55 -43
  211. package/dist/index.es340.js +18 -231
  212. package/dist/index.es341.js +5 -100
  213. package/dist/index.es342.js +229 -26
  214. package/dist/index.es343.js +80 -35
  215. package/dist/index.es344.js +28 -2
  216. package/dist/index.es345.js +55 -2
  217. package/dist/index.es346.js +2 -2
  218. package/dist/index.es347.js +1 -1
  219. package/dist/index.es348.js +1 -1
  220. package/dist/index.es349.js +1 -1
  221. package/dist/index.es35.js +2 -2
  222. package/dist/index.es38.js +5 -5
  223. package/dist/index.es387.js +517 -66
  224. package/dist/index.es388.js +125 -29
  225. package/dist/index.es389.js +126 -9
  226. package/dist/index.es39.js +2 -2
  227. package/dist/index.es390.js +2 -153
  228. package/dist/index.es391.js +53 -107
  229. package/dist/index.es392.js +59 -2
  230. package/dist/index.es393.js +67 -53
  231. package/dist/index.es394.js +31 -59
  232. package/dist/index.es395.js +9 -20
  233. package/dist/index.es396.js +151 -99
  234. package/dist/index.es397.js +107 -46
  235. package/dist/index.es398.js +68 -6
  236. package/dist/index.es399.js +31 -2
  237. package/dist/index.es40.js +3 -3
  238. package/dist/index.es400.js +16 -8
  239. package/dist/index.es401.js +140 -326
  240. package/dist/index.es402.js +112 -48
  241. package/dist/index.es403.js +5 -3
  242. package/dist/index.es404.js +2 -2
  243. package/dist/index.es405.js +7 -46
  244. package/dist/index.es406.js +320 -76
  245. package/dist/index.es407.js +48 -12
  246. package/dist/index.es408.js +3 -340
  247. package/dist/index.es409.js +17 -72
  248. package/dist/index.es41.js +1 -1
  249. package/dist/index.es410.js +100 -10
  250. package/dist/index.es411.js +46 -518
  251. package/dist/index.es412.js +2 -127
  252. package/dist/index.es413.js +41 -120
  253. package/dist/index.es414.js +83 -68
  254. package/dist/index.es415.js +14 -31
  255. package/dist/index.es416.js +341 -16
  256. package/dist/index.es417.js +73 -139
  257. package/dist/index.es418.js +11 -114
  258. package/dist/index.es43.js +1 -1
  259. package/dist/index.es437.js +1 -1
  260. package/dist/index.es438.js +1 -1
  261. package/dist/index.es439.js +3 -3
  262. package/dist/index.es44.js +4 -4
  263. package/dist/index.es440.js +1 -1
  264. package/dist/index.es45.js +1 -1
  265. package/dist/index.es453.js +14 -5
  266. package/dist/index.es454.js +27 -14
  267. package/dist/index.es455.js +11 -27
  268. package/dist/index.es456.js +5 -11
  269. package/dist/index.es46.js +1 -1
  270. package/dist/index.es466.js +1 -1
  271. package/dist/index.es467.js +2 -2
  272. package/dist/index.es468.js +2 -2
  273. package/dist/index.es49.js +2 -2
  274. package/dist/index.es50.js +1 -1
  275. package/dist/index.es51.js +4 -4
  276. package/dist/index.es54.js +1 -1
  277. package/dist/index.es55.js +1 -1
  278. package/dist/index.es57.js +2 -2
  279. package/dist/index.es59.js +2 -2
  280. package/dist/index.es61.js +1 -1
  281. package/dist/index.es62.js +1 -1
  282. package/dist/index.es63.js +1 -1
  283. package/dist/index.es65.js +3 -3
  284. package/dist/index.es66.js +2 -2
  285. package/dist/index.es67.js +3 -3
  286. package/dist/index.es7.js +1 -1
  287. package/dist/index.es70.js +1 -1
  288. package/dist/index.es753.js +7 -7
  289. package/dist/index.es762.js +5 -24
  290. package/dist/index.es763.js +17 -8
  291. package/dist/index.es764.js +7 -66
  292. package/dist/index.es765.js +54 -50
  293. package/dist/index.es766.js +17 -69
  294. package/dist/index.es767.js +24 -5
  295. package/dist/index.es768.js +8 -17
  296. package/dist/index.es769.js +66 -7
  297. package/dist/index.es770.js +50 -54
  298. package/dist/index.es771.js +69 -17
  299. package/dist/index.es778.js +21 -6
  300. package/dist/index.es779.js +56 -20
  301. package/dist/index.es780.js +26 -49
  302. package/dist/index.es781.js +9 -34
  303. package/dist/index.es782.js +18 -9
  304. package/dist/index.es783.js +8 -18
  305. package/dist/index.es784.js +12 -8
  306. package/dist/index.es785.js +56 -11
  307. package/dist/index.es786.js +9 -57
  308. package/dist/index.es787.js +14 -9
  309. package/dist/index.es788.js +6 -14
  310. package/dist/index.es789.js +28 -7
  311. package/dist/index.es79.js +1 -1
  312. package/dist/index.es790.js +3 -28
  313. package/dist/index.es791.js +7 -3
  314. package/dist/index.es796.js +1 -1
  315. package/dist/index.es797.js +1 -1
  316. package/dist/index.es798.js +1 -1
  317. package/dist/index.es799.js +1 -1
  318. package/dist/index.es80.js +1 -1
  319. package/dist/index.es800.js +1 -1
  320. package/dist/index.es801.js +1 -1
  321. package/dist/index.es803.js +1 -1
  322. package/dist/index.es806.js +1 -1
  323. package/dist/index.es807.js +2 -2
  324. package/dist/index.es808.js +1 -1
  325. package/dist/index.es822.js +1 -1
  326. package/dist/index.es826.js +1 -1
  327. package/dist/index.es828.js +1 -1
  328. package/dist/index.es829.js +1 -1
  329. package/dist/index.es830.js +1 -1
  330. package/dist/index.es84.js +305 -33
  331. package/dist/index.es85.js +12 -46
  332. package/dist/index.es86.js +32 -29
  333. package/dist/index.es87.js +34 -29
  334. package/dist/index.es88.js +40 -301
  335. package/dist/index.es89.js +30 -12
  336. package/dist/index.es90.js +30 -9
  337. package/dist/index.es91.js +223 -54
  338. package/dist/index.es92.js +11 -55
  339. package/dist/index.es93.js +9 -90
  340. package/dist/index.es94.js +11 -37
  341. package/dist/index.es95.js +40 -23
  342. package/dist/index.es96.js +55 -30
  343. package/dist/index.es97.js +55 -12
  344. package/dist/index.es98.js +86 -253
  345. package/dist/index.es99.js +37 -12
  346. package/dist/style.css +8 -8
  347. package/package.json +1 -1
@@ -1,57 +1,226 @@
1
- import { useControllableState as b } from "./index.es87.js";
2
- import { l as o } from "./index.es101.js";
3
- import { createContext as h } from "react";
4
- import { isDateRange as f } from "./index.es104.js";
5
- import w from "./index.es138.js";
6
- import y from "./index.es139.js";
7
- import A from "./index.es140.js";
8
- import { isDate as u } from "./index.es106.js";
9
- const B = h({
10
- defaultStartDate: /* @__PURE__ */ new Date(),
11
- mode: "single",
12
- isSingleMode: !1,
13
- isRangeMode: !1,
14
- selected: void 0,
15
- selectDate: () => {
16
- },
17
- isSelected: () => !1,
18
- isFirstDayFromRange: () => !1,
19
- isLastDayFromRange: () => !1,
20
- isInRange: () => !1
1
+ import * as s from "react";
2
+ import { composeEventHandlers as w } from "./index.es139.js";
3
+ import { composeRefs as L } from "./index.es136.js";
4
+ import { createContextScope as K } from "./index.es140.js";
5
+ import { useControllableState as g } from "./index.es90.js";
6
+ import { Primitive as U } from "./index.es141.js";
7
+ import { createMenuScope as D, Anchor as B, Content as F, Group as H, Label as W, Item as $, CheckboxItem as X, RadioGroup as q, RadioItem as z, ItemIndicator as J, Separator as Q, Arrow as V, SubTrigger as Y, SubContent as Z, Root as oo, Portal as eo, Sub as ro } from "./index.es142.js";
8
+ import { useId as M } from "./index.es143.js";
9
+ import { j as t } from "./index.es83.js";
10
+ var v = "DropdownMenu", [no, No] = K(
11
+ v,
12
+ [D]
13
+ ), u = D(), [ao, x] = no(v), _ = (o) => {
14
+ const {
15
+ __scopeDropdownMenu: n,
16
+ children: r,
17
+ dir: e,
18
+ open: a,
19
+ defaultOpen: d,
20
+ onOpenChange: c,
21
+ modal: p = !0
22
+ } = o, i = u(n), f = s.useRef(null), [l = !1, m] = g({
23
+ prop: a,
24
+ defaultProp: d,
25
+ onChange: c
26
+ });
27
+ return /* @__PURE__ */ t.jsx(
28
+ ao,
29
+ {
30
+ scope: n,
31
+ triggerId: M(),
32
+ triggerRef: f,
33
+ contentId: M(),
34
+ open: l,
35
+ onOpenChange: m,
36
+ onOpenToggle: s.useCallback(() => m((k) => !k), [m]),
37
+ modal: p,
38
+ children: /* @__PURE__ */ t.jsx(oo, { ...i, open: l, onOpenChange: m, dir: e, modal: p, children: r })
39
+ }
40
+ );
41
+ };
42
+ _.displayName = v;
43
+ var h = "DropdownMenuTrigger", R = s.forwardRef(
44
+ (o, n) => {
45
+ const { __scopeDropdownMenu: r, disabled: e = !1, ...a } = o, d = x(h, r), c = u(r);
46
+ return /* @__PURE__ */ t.jsx(B, { asChild: !0, ...c, children: /* @__PURE__ */ t.jsx(
47
+ U.button,
48
+ {
49
+ type: "button",
50
+ id: d.triggerId,
51
+ "aria-haspopup": "menu",
52
+ "aria-expanded": d.open,
53
+ "aria-controls": d.open ? d.contentId : void 0,
54
+ "data-state": d.open ? "open" : "closed",
55
+ "data-disabled": e ? "" : void 0,
56
+ disabled: e,
57
+ ...a,
58
+ ref: L(n, d.triggerRef),
59
+ onPointerDown: w(o.onPointerDown, (p) => {
60
+ !e && p.button === 0 && p.ctrlKey === !1 && (d.onOpenToggle(), d.open || p.preventDefault());
61
+ }),
62
+ onKeyDown: w(o.onKeyDown, (p) => {
63
+ e || (["Enter", " "].includes(p.key) && d.onOpenToggle(), p.key === "ArrowDown" && d.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(p.key) && p.preventDefault());
64
+ })
65
+ }
66
+ ) });
67
+ }
68
+ );
69
+ R.displayName = h;
70
+ var to = "DropdownMenuPortal", I = (o) => {
71
+ const { __scopeDropdownMenu: n, ...r } = o, e = u(n);
72
+ return /* @__PURE__ */ t.jsx(eo, { ...e, ...r });
73
+ };
74
+ I.displayName = to;
75
+ var b = "DropdownMenuContent", S = s.forwardRef(
76
+ (o, n) => {
77
+ const { __scopeDropdownMenu: r, ...e } = o, a = x(b, r), d = u(r), c = s.useRef(!1);
78
+ return /* @__PURE__ */ t.jsx(
79
+ F,
80
+ {
81
+ id: a.contentId,
82
+ "aria-labelledby": a.triggerId,
83
+ ...d,
84
+ ...e,
85
+ ref: n,
86
+ onCloseAutoFocus: w(o.onCloseAutoFocus, (p) => {
87
+ var i;
88
+ c.current || (i = a.triggerRef.current) == null || i.focus(), c.current = !1, p.preventDefault();
89
+ }),
90
+ onInteractOutside: w(o.onInteractOutside, (p) => {
91
+ const i = p.detail.originalEvent, f = i.button === 0 && i.ctrlKey === !0, l = i.button === 2 || f;
92
+ (!a.modal || l) && (c.current = !0);
93
+ }),
94
+ style: {
95
+ ...o.style,
96
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
97
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
98
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
99
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
100
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
101
+ }
102
+ }
103
+ );
104
+ }
105
+ );
106
+ S.displayName = b;
107
+ var po = "DropdownMenuGroup", C = s.forwardRef(
108
+ (o, n) => {
109
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
110
+ return /* @__PURE__ */ t.jsx(H, { ...a, ...e, ref: n });
111
+ }
112
+ );
113
+ C.displayName = po;
114
+ var so = "DropdownMenuLabel", N = s.forwardRef(
115
+ (o, n) => {
116
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
117
+ return /* @__PURE__ */ t.jsx(W, { ...a, ...e, ref: n });
118
+ }
119
+ );
120
+ N.displayName = so;
121
+ var uo = "DropdownMenuItem", A = s.forwardRef(
122
+ (o, n) => {
123
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
124
+ return /* @__PURE__ */ t.jsx($, { ...a, ...e, ref: n });
125
+ }
126
+ );
127
+ A.displayName = uo;
128
+ var io = "DropdownMenuCheckboxItem", E = s.forwardRef((o, n) => {
129
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
130
+ return /* @__PURE__ */ t.jsx(X, { ...a, ...e, ref: n });
131
+ });
132
+ E.displayName = io;
133
+ var co = "DropdownMenuRadioGroup", P = s.forwardRef((o, n) => {
134
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
135
+ return /* @__PURE__ */ t.jsx(q, { ...a, ...e, ref: n });
136
+ });
137
+ P.displayName = co;
138
+ var lo = "DropdownMenuRadioItem", O = s.forwardRef((o, n) => {
139
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
140
+ return /* @__PURE__ */ t.jsx(z, { ...a, ...e, ref: n });
141
+ });
142
+ O.displayName = lo;
143
+ var mo = "DropdownMenuItemIndicator", y = s.forwardRef((o, n) => {
144
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
145
+ return /* @__PURE__ */ t.jsx(J, { ...a, ...e, ref: n });
146
+ });
147
+ y.displayName = mo;
148
+ var wo = "DropdownMenuSeparator", T = s.forwardRef((o, n) => {
149
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
150
+ return /* @__PURE__ */ t.jsx(Q, { ...a, ...e, ref: n });
151
+ });
152
+ T.displayName = wo;
153
+ var fo = "DropdownMenuArrow", vo = s.forwardRef(
154
+ (o, n) => {
155
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
156
+ return /* @__PURE__ */ t.jsx(V, { ...a, ...e, ref: n });
157
+ }
158
+ );
159
+ vo.displayName = fo;
160
+ var Mo = (o) => {
161
+ const { __scopeDropdownMenu: n, children: r, open: e, onOpenChange: a, defaultOpen: d } = o, c = u(n), [p = !1, i] = g({
162
+ prop: e,
163
+ defaultProp: d,
164
+ onChange: a
165
+ });
166
+ return /* @__PURE__ */ t.jsx(ro, { ...c, open: p, onOpenChange: i, children: r });
167
+ }, go = "DropdownMenuSubTrigger", j = s.forwardRef((o, n) => {
168
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
169
+ return /* @__PURE__ */ t.jsx(Y, { ...a, ...e, ref: n });
170
+ });
171
+ j.displayName = go;
172
+ var Do = "DropdownMenuSubContent", G = s.forwardRef((o, n) => {
173
+ const { __scopeDropdownMenu: r, ...e } = o, a = u(r);
174
+ return /* @__PURE__ */ t.jsx(
175
+ Z,
176
+ {
177
+ ...a,
178
+ ...e,
179
+ ref: n,
180
+ style: {
181
+ ...o.style,
182
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
183
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
184
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
185
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
186
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
187
+ }
188
+ }
189
+ );
21
190
  });
22
- function G(d) {
23
- const { mode: r, value: c, defaultValue: g, onChange: m, disabled: p } = d, a = r === "single", s = r === "range", l = r === "multiple", [e, n] = b({
24
- prop: c,
25
- onChange: m,
26
- defaultProp: g
27
- }), { selectSingleDate: D, isSingleSelected: S } = A(
28
- u(e) ? e : void 0,
29
- n
30
- ), { selectRangeDate: C, isInRange: i, ...M } = y(
31
- f(e) ? e : void 0,
32
- n,
33
- p
34
- ), { selectMultipleDate: R, isMultipleSelected: v } = w(
35
- o.isArray(e) ? e : void 0,
36
- n
37
- ), x = (t) => {
38
- if (a) return D(t);
39
- if (s) return C(t);
40
- if (l) return R(t);
41
- }, F = (t) => a ? S(t) : s ? i(t) : l ? v(t) : !1;
42
- return {
43
- defaultStartDate: u(e) ? e : o.isArray(e) ? e[0] : f(e) && e.start ? e.start : /* @__PURE__ */ new Date(),
44
- isSingleMode: a,
45
- isRangeMode: s,
46
- selected: e,
47
- isSelected: F,
48
- selectDate: x,
49
- isInRange: i,
50
- mode: r,
51
- ...M
52
- };
53
- }
191
+ G.displayName = Do;
192
+ var Ao = _, Eo = R, Po = I, Oo = S, yo = C, To = N, jo = A, Go = E, ko = P, Lo = O, Ko = y, Uo = T, Bo = Mo, Fo = j, Ho = G;
54
193
  export {
55
- B as CalendarContext,
56
- G as default
194
+ Go as CheckboxItem,
195
+ Oo as Content,
196
+ _ as DropdownMenu,
197
+ vo as DropdownMenuArrow,
198
+ E as DropdownMenuCheckboxItem,
199
+ S as DropdownMenuContent,
200
+ C as DropdownMenuGroup,
201
+ A as DropdownMenuItem,
202
+ y as DropdownMenuItemIndicator,
203
+ N as DropdownMenuLabel,
204
+ I as DropdownMenuPortal,
205
+ P as DropdownMenuRadioGroup,
206
+ O as DropdownMenuRadioItem,
207
+ T as DropdownMenuSeparator,
208
+ Mo as DropdownMenuSub,
209
+ G as DropdownMenuSubContent,
210
+ j as DropdownMenuSubTrigger,
211
+ R as DropdownMenuTrigger,
212
+ yo as Group,
213
+ jo as Item,
214
+ Ko as ItemIndicator,
215
+ To as Label,
216
+ Po as Portal,
217
+ ko as RadioGroup,
218
+ Lo as RadioItem,
219
+ Ao as Root,
220
+ Uo as Separator,
221
+ Bo as Sub,
222
+ Ho as SubContent,
223
+ Fo as SubTrigger,
224
+ Eo as Trigger,
225
+ No as createDropdownMenuScope
57
226
  };
@@ -1,57 +1,13 @@
1
- import { useState as m, useMemo as f } from "react";
2
- import { parse as D } from "./index.es224.js";
3
- import { startOfToday as M } from "./index.es234.js";
4
- import { addMonths as y } from "./index.es187.js";
5
- import { addYears as a } from "./index.es188.js";
6
- import { formatDate as s } from "./index.es107.js";
7
- function w(i = M()) {
8
- const [o, c] = m({
9
- month: s(i, "MM"),
10
- year: s(i, "yyyy")
11
- }), e = f(
12
- () => D(`${o.month}-${o.year}`, "MM-yyyy", /* @__PURE__ */ new Date()),
13
- [o]
14
- ), n = (t) => {
15
- c({
16
- ...o,
17
- month: s(t, "MM")
18
- });
19
- }, r = (t) => {
20
- c({
21
- ...o,
22
- year: s(t, "yyyy")
23
- });
24
- };
25
- return {
26
- navigationDate: e,
27
- setMonth: n,
28
- setYear: r,
29
- previousMonth: () => {
30
- const t = y(e, -1);
31
- n(t);
32
- },
33
- nextMonth: () => {
34
- const t = y(e, 1);
35
- n(t);
36
- },
37
- previousYear: () => {
38
- const t = a(e, -1);
39
- r(t);
40
- },
41
- nextYear: () => {
42
- const t = a(e, 1);
43
- r(t);
44
- },
45
- previousDecade: () => {
46
- const t = a(e, -10);
47
- r(t);
48
- },
49
- nextDecade: () => {
50
- const t = a(e, 10);
51
- r(t);
52
- }
53
- };
54
- }
1
+ import t from "./index.es185.js";
2
+ /**
3
+ * @license lucide-react v0.379.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const h = t("ChevronRight", [
9
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
10
+ ]);
55
11
  export {
56
- w as default
12
+ h as default
57
13
  };
@@ -1,92 +1,11 @@
1
- import { j as t } from "./index.es83.js";
2
- import { l as m } from "./index.es101.js";
3
- import { useMemo as L } from "react";
4
- import I from "./index.es116.js";
5
- import O from "./index.es109.js";
6
- import { formatDate as a } from "./index.es107.js";
7
- import { eachYearOfInterval as B } from "./index.es195.js";
8
- import { startOfDecade as E } from "./index.es233.js";
9
- import { endOfDecade as R } from "./index.es196.js";
10
- import { es as $ } from "./index.es242.js";
11
- import { Button as l } from "./index.es28.js";
12
- import { cn as F } from "./index.es73.js";
13
- const Y = ({
14
- view: e,
15
- setView: s,
16
- value: r,
17
- previousMonth: f,
18
- nextMonth: u,
19
- previousYear: d,
20
- nextYear: y,
21
- previousDecade: x,
22
- nextDecade: p,
23
- goBackProps: h,
24
- goNextProps: j,
25
- changeViewProps: i
26
- }) => {
27
- const b = e === "month", n = e === "year", o = e === "decade", g = () => {
28
- if (o) return x();
29
- if (n) return d();
30
- f();
31
- }, N = () => {
32
- if (o) return p();
33
- if (n) return y();
34
- u();
35
- }, C = () => {
36
- if (b) return s("year");
37
- if (n) return s("decade");
38
- }, D = () => o ? z() : n ? a(r, "yyyy") : a(r, "MMMM yyyy", { locale: $ }), z = () => {
39
- if (!r) return "";
40
- const c = B({
41
- start: E(r),
42
- end: R(r)
43
- }), k = m.first(c), v = m.last(c);
44
- return `${a(k, "yyyy")} - ${a(v, "yyyy")}`;
45
- }, M = L(D, [r, e]);
46
- return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { className: "ui-flex ui-items-center ui-justify-center", children: [
47
- /* @__PURE__ */ t.jsxs(
48
- l,
49
- {
50
- onClick: g,
51
- size: "icon",
52
- variant: "ghost",
53
- ...h,
54
- children: [
55
- /* @__PURE__ */ t.jsx(I, { size: 14 }),
56
- /* @__PURE__ */ t.jsx("span", { className: "ui-sr-only", children: "Ir a anterior" })
57
- ]
58
- }
59
- ),
60
- /* @__PURE__ */ t.jsx(
61
- "button",
62
- {
63
- onClick: C,
64
- disabled: o,
65
- ...i,
66
- type: "button",
67
- className: F(
68
- "ui-font-semibold ui-pb-px ui-text-gray-900 ui-text-lg ui-text-blue-bell ui-select-none ui-min-w-[60%] ui-capitalize",
69
- i == null ? void 0 : i.className
70
- ),
71
- children: M
72
- }
73
- ),
74
- /* @__PURE__ */ t.jsxs(
75
- l,
76
- {
77
- onClick: N,
78
- size: "icon",
79
- variant: "ghost",
80
- ...j,
81
- children: [
82
- /* @__PURE__ */ t.jsx(O, { size: 14 }),
83
- /* @__PURE__ */ t.jsx("span", { className: "ui-sr-only", children: "Ir a siguiente" })
84
- ]
85
- }
86
- )
87
- ] }) });
88
- };
89
- Y.displayName = "CalendarNavigation";
1
+ import e from "./index.es185.js";
2
+ /**
3
+ * @license lucide-react v0.379.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const t = e("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
90
9
  export {
91
- Y as CalendarNavigation
10
+ t as default
92
11
  };
@@ -1,39 +1,13 @@
1
- import { j as r } from "./index.es83.js";
2
- import { useMemo as a } from "react";
3
- import { Day as c } from "./index.es243.js";
4
- import { WeekDays as h } from "./index.es244.js";
5
- import { startOfWeek as x } from "./index.es215.js";
6
- import { endOfWeek as l } from "./index.es198.js";
7
- import { endOfMonth as u } from "./index.es197.js";
8
- import { eachDayOfInterval as j } from "./index.es194.js";
9
- const M = ({
10
- navigationDate: t,
11
- disabled: e,
12
- weekDaysClassName: o,
13
- weekDaysProps: s,
14
- dayClassName: n,
15
- dayProps: f
16
- }) => {
17
- const i = a(() => j({
18
- start: x(t, { weekStartsOn: 1 }),
19
- end: l(u(t), { weekStartsOn: 1 })
20
- }), [t]);
21
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
22
- /* @__PURE__ */ r.jsx(h, { className: o, ...s }),
23
- /* @__PURE__ */ r.jsx("div", { className: "ui-grid ui-grid-cols-7 ui-mt-2 ui-text-sm", children: i.map((m, p) => /* @__PURE__ */ r.jsx(
24
- c,
25
- {
26
- day: m,
27
- className: n,
28
- ...f,
29
- navigationDate: t,
30
- disabled: e == null ? void 0 : e(m)
31
- },
32
- p
33
- )) })
34
- ] });
35
- };
36
- M.displayName = "MonthView";
1
+ import c from "./index.es185.js";
2
+ /**
3
+ * @license lucide-react v0.379.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const r = c("Circle", [
9
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
10
+ ]);
37
11
  export {
38
- M as MonthView
12
+ r as default
39
13
  };
@@ -1,26 +1,43 @@
1
- import { j as t } from "./index.es83.js";
2
- import { monthNames as o } from "./index.es31.js";
3
- import { setMonth as m } from "./index.es230.js";
4
- import { Button as n } from "./index.es28.js";
5
- import { formatDate as l } from "./index.es107.js";
6
- const c = ({ value: i, onChange: e }) => {
7
- const a = (r) => {
8
- const s = m(i, r);
9
- e(s);
10
- };
11
- return /* @__PURE__ */ t.jsx("div", { className: "ui-grid ui-grid-cols-3 ui-grow", children: o.map((r) => /* @__PURE__ */ t.jsx(
12
- n,
13
- {
14
- type: "button",
15
- className: "ui-h-full ui-rounded",
16
- onClick: () => a(o.indexOf(r)),
17
- variant: "ghost",
18
- children: /* @__PURE__ */ t.jsx("abbr", { "aria-label": `${r} ${l(i, "yyyy")}`, children: r })
19
- },
20
- r
21
- )) });
1
+ import { j as r } from "./index.es83.js";
2
+ import l from "react";
3
+ import { MenuSub as c, MenuSubTrigger as t, MenuSubContent as o, MenuSeparator as x, MenuLabel as b, MenuRadioItem as d, MenuCheckboxItem as j, MenuItem as h } from "./index.es44.js";
4
+ const p = (e, n) => {
5
+ var s;
6
+ switch (e.type) {
7
+ case "item":
8
+ return /* @__PURE__ */ r.jsxs(h, { ...e, children: [
9
+ e.label,
10
+ " ",
11
+ n
12
+ ] });
13
+ case "checkbox":
14
+ return /* @__PURE__ */ r.jsxs(j, { ...e, children: [
15
+ e.label,
16
+ " ",
17
+ n
18
+ ] });
19
+ case "radio":
20
+ return /* @__PURE__ */ r.jsxs(d, { ...e, children: [
21
+ e.label,
22
+ " ",
23
+ n
24
+ ] });
25
+ case "label":
26
+ return /* @__PURE__ */ r.jsxs(b, { ...e, children: [
27
+ e.label,
28
+ " "
29
+ ] });
30
+ case "separator":
31
+ return /* @__PURE__ */ r.jsx(x, { ...e });
32
+ case "submenu":
33
+ return /* @__PURE__ */ r.jsxs(c, { children: [
34
+ /* @__PURE__ */ r.jsx(t, { ...e, children: e.label }),
35
+ /* @__PURE__ */ r.jsx(o, { children: (s = e.items) == null ? void 0 : s.map((a, u) => /* @__PURE__ */ r.jsx(l.Fragment, { children: p(a) }, u)) })
36
+ ] });
37
+ default:
38
+ return null;
39
+ }
22
40
  };
23
- c.displayName = "YearView";
24
41
  export {
25
- c as YearView
42
+ p as renderMenuItem
26
43
  };
@@ -1,32 +1,57 @@
1
- import { j as o } from "./index.es83.js";
2
- import { useMemo as c } from "react";
3
- import { setYear as d } from "./index.es232.js";
4
- import { Button as f } from "./index.es28.js";
5
- import { formatDate as a } from "./index.es107.js";
6
- import { eachYearOfInterval as p } from "./index.es195.js";
7
- import { startOfDecade as u } from "./index.es233.js";
8
- import { endOfDecade as y } from "./index.es196.js";
9
- const l = ({ value: r, onChange: s }) => {
10
- const i = () => p({
11
- start: u(r),
12
- end: y(r)
13
- }), m = (t) => {
14
- const e = d(r, parseInt(a(t, "yyyy")));
15
- s(e);
16
- }, n = c(i, [r]);
17
- return /* @__PURE__ */ o.jsx("div", { className: "ui-grid ui-grid-cols-3 ui-grow", children: n.map((t, e) => /* @__PURE__ */ o.jsx(
18
- f,
19
- {
20
- onClick: () => m(t),
21
- className: "ui-h-full ui-rounded-none",
22
- type: "button",
23
- variant: "ghost",
24
- children: a(t, "yyyy")
25
- },
26
- e
27
- )) });
28
- };
29
- l.displayName = "DecadeView";
1
+ import { useControllableState as b } from "./index.es90.js";
2
+ import { l as o } from "./index.es104.js";
3
+ import { createContext as h } from "react";
4
+ import { isDateRange as f } from "./index.es110.js";
5
+ import w from "./index.es144.js";
6
+ import y from "./index.es145.js";
7
+ import A from "./index.es146.js";
8
+ import { isDate as u } from "./index.es112.js";
9
+ const B = h({
10
+ defaultStartDate: /* @__PURE__ */ new Date(),
11
+ mode: "single",
12
+ isSingleMode: !1,
13
+ isRangeMode: !1,
14
+ selected: void 0,
15
+ selectDate: () => {
16
+ },
17
+ isSelected: () => !1,
18
+ isFirstDayFromRange: () => !1,
19
+ isLastDayFromRange: () => !1,
20
+ isInRange: () => !1
21
+ });
22
+ function G(d) {
23
+ const { mode: r, value: c, defaultValue: g, onChange: m, disabled: p } = d, a = r === "single", s = r === "range", l = r === "multiple", [e, n] = b({
24
+ prop: c,
25
+ onChange: m,
26
+ defaultProp: g
27
+ }), { selectSingleDate: D, isSingleSelected: S } = A(
28
+ u(e) ? e : void 0,
29
+ n
30
+ ), { selectRangeDate: C, isInRange: i, ...M } = y(
31
+ f(e) ? e : void 0,
32
+ n,
33
+ p
34
+ ), { selectMultipleDate: R, isMultipleSelected: v } = w(
35
+ o.isArray(e) ? e : void 0,
36
+ n
37
+ ), x = (t) => {
38
+ if (a) return D(t);
39
+ if (s) return C(t);
40
+ if (l) return R(t);
41
+ }, F = (t) => a ? S(t) : s ? i(t) : l ? v(t) : !1;
42
+ return {
43
+ defaultStartDate: u(e) ? e : o.isArray(e) ? e[0] : f(e) && e.start ? e.start : /* @__PURE__ */ new Date(),
44
+ isSingleMode: a,
45
+ isRangeMode: s,
46
+ selected: e,
47
+ isSelected: F,
48
+ selectDate: x,
49
+ isInRange: i,
50
+ mode: r,
51
+ ...M
52
+ };
53
+ }
30
54
  export {
31
- l as DecadeView
55
+ B as CalendarContext,
56
+ G as default
32
57
  };