@boxcustodia/library 0.2.0 → 0.2.2

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 (373) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +4 -14
  4. package/dist/index.es101.js +14 -5
  5. package/dist/index.es102.js +4 -56
  6. package/dist/index.es103.js +55 -257
  7. package/dist/index.es104.js +3 -6
  8. package/dist/index.es108.js +11 -21
  9. package/dist/index.es109.js +21 -12
  10. package/dist/index.es110.js +5 -4
  11. package/dist/index.es111.js +4 -4
  12. package/dist/index.es112.js +4 -5
  13. package/dist/index.es113.js +12 -240
  14. package/dist/index.es114.js +224 -11
  15. package/dist/index.es115.js +11 -224
  16. package/dist/index.es116.js +41 -11
  17. package/dist/index.es117.js +821 -40
  18. package/dist/index.es118.js +9 -64
  19. package/dist/index.es119.js +11 -822
  20. package/dist/index.es120.js +64 -9
  21. package/dist/index.es121.js +240 -11
  22. package/dist/index.es124.js +1 -1
  23. package/dist/index.es125.js +1 -1
  24. package/dist/index.es126.js +5 -5
  25. package/dist/index.es13.js +1 -1
  26. package/dist/index.es131.js +13 -11
  27. package/dist/index.es132.js +196 -11
  28. package/dist/index.es133.js +41 -204
  29. package/dist/index.es134.js +12 -10
  30. package/dist/index.es135.js +11 -20
  31. package/dist/index.es136.js +205 -37
  32. package/dist/index.es137.js +10 -10
  33. package/dist/index.es138.js +20 -14
  34. package/dist/index.es139.js +34 -194
  35. package/dist/index.es14.js +1 -1
  36. package/dist/index.es140.js +9 -40
  37. package/dist/index.es141.js +6 -5
  38. package/dist/index.es142.js +65 -2
  39. package/dist/index.es143.js +10 -6
  40. package/dist/index.es144.js +118 -58
  41. package/dist/index.es145.js +134 -10
  42. package/dist/index.es146.js +13 -124
  43. package/dist/index.es147.js +31 -133
  44. package/dist/index.es148.js +14 -13
  45. package/dist/index.es149.js +9 -33
  46. package/dist/index.es150.js +50 -15
  47. package/dist/index.es151.js +6 -9
  48. package/dist/index.es152.js +2 -50
  49. package/dist/index.es153.js +1 -1
  50. package/dist/index.es154.js +625 -193
  51. package/dist/index.es156.js +193 -625
  52. package/dist/index.es158.js +3 -3
  53. package/dist/index.es161.js +1 -1
  54. package/dist/index.es162.js +3 -3
  55. package/dist/index.es164.js +5 -5
  56. package/dist/index.es165.js +2 -2
  57. package/dist/index.es166.js +6 -6
  58. package/dist/index.es173.js +1 -1
  59. package/dist/index.es174.js +1 -1
  60. package/dist/index.es175.js +3 -3
  61. package/dist/index.es176.js +2 -2
  62. package/dist/index.es177.js +1 -1
  63. package/dist/index.es178.js +1 -1
  64. package/dist/index.es182.js +21 -8
  65. package/dist/index.es183.js +9 -6
  66. package/dist/index.es184.js +38 -5
  67. package/dist/index.es185.js +18 -18
  68. package/dist/index.es186.js +7 -5
  69. package/dist/index.es187.js +5 -5
  70. package/dist/index.es188.js +4 -8
  71. package/dist/index.es189.js +18 -6
  72. package/dist/index.es190.js +5 -6
  73. package/dist/index.es191.js +5 -15
  74. package/dist/index.es192.js +8 -13
  75. package/dist/index.es193.js +6 -14
  76. package/dist/index.es194.js +6 -6
  77. package/dist/index.es195.js +15 -6
  78. package/dist/index.es196.js +13 -6
  79. package/dist/index.es197.js +13 -4
  80. package/dist/index.es198.js +6 -515
  81. package/dist/index.es199.js +7 -50
  82. package/dist/index.es200.js +6 -17
  83. package/dist/index.es201.js +4 -9
  84. package/dist/index.es202.js +513 -16
  85. package/dist/index.es203.js +50 -9
  86. package/dist/index.es204.js +17 -7
  87. package/dist/index.es205.js +9 -7
  88. package/dist/index.es206.js +19 -6
  89. package/dist/index.es207.js +8 -6
  90. package/dist/index.es208.js +7 -9
  91. package/dist/index.es209.js +7 -5
  92. package/dist/index.es210.js +5 -8
  93. package/dist/index.es211.js +6 -12
  94. package/dist/index.es212.js +9 -9
  95. package/dist/index.es213.js +5 -8
  96. package/dist/index.es214.js +8 -10
  97. package/dist/index.es215.js +12 -14
  98. package/dist/index.es216.js +9 -6
  99. package/dist/index.es217.js +8 -6
  100. package/dist/index.es218.js +10 -6
  101. package/dist/index.es219.js +14 -6
  102. package/dist/index.es22.js +2 -2
  103. package/dist/index.es220.js +6 -6
  104. package/dist/index.es221.js +6 -9
  105. package/dist/index.es222.js +6 -84
  106. package/dist/index.es223.js +7 -65
  107. package/dist/index.es224.js +6 -37
  108. package/dist/index.es225.js +9 -9
  109. package/dist/index.es226.js +84 -8
  110. package/dist/index.es227.js +65 -8
  111. package/dist/index.es228.js +37 -10
  112. package/dist/index.es229.js +9 -7
  113. package/dist/index.es230.js +8 -7
  114. package/dist/index.es231.js +7 -6
  115. package/dist/index.es232.js +10 -5
  116. package/dist/index.es233.js +7 -15
  117. package/dist/index.es234.js +7 -11
  118. package/dist/index.es235.js +6 -200
  119. package/dist/index.es236.js +6 -22
  120. package/dist/index.es237.js +15 -24
  121. package/dist/index.es238.js +10 -369
  122. package/dist/index.es239.js +176 -19
  123. package/dist/index.es240.js +25 -9
  124. package/dist/index.es241.js +19 -38
  125. package/dist/index.es242.js +53 -17
  126. package/dist/index.es243.js +15 -24
  127. package/dist/index.es244.js +200 -18
  128. package/dist/index.es245.js +19 -51
  129. package/dist/index.es246.js +25 -16
  130. package/dist/index.es247.js +364 -171
  131. package/dist/index.es248.js +26 -2
  132. package/dist/index.es249.js +4 -397
  133. package/dist/index.es250.js +7 -722
  134. package/dist/index.es251.js +13 -282
  135. package/dist/index.es252.js +13 -60
  136. package/dist/index.es253.js +134 -9
  137. package/dist/index.es254.js +31 -28
  138. package/dist/index.es255.js +459 -195
  139. package/dist/index.es256.js +131 -25
  140. package/dist/index.es257.js +27 -5
  141. package/dist/index.es258.js +4 -7
  142. package/dist/index.es259.js +25 -12
  143. package/dist/index.es260.js +7 -13
  144. package/dist/index.es261.js +11 -134
  145. package/dist/index.es262.js +27 -30
  146. package/dist/index.es263.js +46 -460
  147. package/dist/index.es264.js +28 -129
  148. package/dist/index.es265.js +43 -26
  149. package/dist/index.es266.js +158 -4
  150. package/dist/index.es267.js +30 -23
  151. package/dist/index.es268.js +2 -8
  152. package/dist/index.es269.js +77 -9
  153. package/dist/index.es27.js +1 -1
  154. package/dist/index.es270.js +18 -28
  155. package/dist/index.es271.js +2 -49
  156. package/dist/index.es272.js +395 -28
  157. package/dist/index.es273.js +722 -43
  158. package/dist/index.es274.js +281 -157
  159. package/dist/index.es275.js +54 -27
  160. package/dist/index.es276.js +10 -2
  161. package/dist/index.es277.js +28 -79
  162. package/dist/index.es278.js +199 -19
  163. package/dist/index.es279.js +4 -16
  164. package/dist/index.es28.js +1 -1
  165. package/dist/index.es280.js +14 -8
  166. package/dist/index.es281.js +15 -4
  167. package/dist/index.es282.js +16 -14
  168. package/dist/index.es283.js +8 -15
  169. package/dist/index.es29.js +3 -3
  170. package/dist/index.es290.js +2 -2
  171. package/dist/index.es291.js +2 -2
  172. package/dist/index.es297.js +2 -2
  173. package/dist/index.es298.js +2 -2
  174. package/dist/index.es30.js +6 -6
  175. package/dist/index.es301.js +1 -1
  176. package/dist/index.es302.js +1 -1
  177. package/dist/index.es303.js +1 -1
  178. package/dist/index.es304.js +1 -1
  179. package/dist/index.es315.js +2 -2
  180. package/dist/index.es316.js +2 -2
  181. package/dist/index.es317.js +1 -1
  182. package/dist/index.es318.js +1 -1
  183. package/dist/index.es32.js +2 -2
  184. package/dist/index.es322.js +10 -2
  185. package/dist/index.es323.js +5 -2
  186. package/dist/index.es324.js +13 -10
  187. package/dist/index.es325.js +4 -4
  188. package/dist/index.es326.js +7 -13
  189. package/dist/index.es327.js +333 -4
  190. package/dist/index.es328.js +19 -7
  191. package/dist/index.es329.js +3 -333
  192. package/dist/index.es33.js +2 -2
  193. package/dist/index.es330.js +5 -19
  194. package/dist/index.es331.js +3 -4
  195. package/dist/index.es332.js +71 -4
  196. package/dist/index.es333.js +4 -3
  197. package/dist/index.es334.js +6 -72
  198. package/dist/index.es335.js +34 -4
  199. package/dist/index.es336.js +26 -6
  200. package/dist/index.es337.js +18 -34
  201. package/dist/index.es338.js +4 -25
  202. package/dist/index.es339.js +231 -18
  203. package/dist/index.es34.js +6 -6
  204. package/dist/index.es340.js +100 -5
  205. package/dist/index.es341.js +26 -229
  206. package/dist/index.es342.js +35 -80
  207. package/dist/index.es343.js +2 -28
  208. package/dist/index.es344.js +2 -55
  209. package/dist/index.es345.js +334 -2
  210. package/dist/index.es346.js +31 -106
  211. package/dist/index.es347.js +16 -75
  212. package/dist/index.es348.js +29 -35
  213. package/dist/index.es349.js +3 -64
  214. package/dist/index.es35.js +2 -2
  215. package/dist/index.es350.js +107 -34
  216. package/dist/index.es351.js +71 -60
  217. package/dist/index.es352.js +34 -111
  218. package/dist/index.es353.js +60 -90
  219. package/dist/index.es354.js +32 -41
  220. package/dist/index.es355.js +66 -3
  221. package/dist/index.es356.js +113 -3
  222. package/dist/index.es357.js +94 -3
  223. package/dist/index.es358.js +43 -3
  224. package/dist/index.es359.js +2 -2
  225. package/dist/index.es360.js +2 -2
  226. package/dist/index.es361.js +2 -2
  227. package/dist/index.es362.js +2 -2
  228. package/dist/index.es363.js +2 -2
  229. package/dist/index.es364.js +4 -241
  230. package/dist/index.es365.js +4 -384
  231. package/dist/index.es366.js +4 -169
  232. package/dist/index.es367.js +4 -153
  233. package/dist/index.es368.js +187 -88
  234. package/dist/index.es369.js +384 -4
  235. package/dist/index.es370.js +169 -4
  236. package/dist/index.es371.js +153 -4
  237. package/dist/index.es372.js +142 -4
  238. package/dist/index.es373.js +2 -2
  239. package/dist/index.es374.js +2 -2
  240. package/dist/index.es375.js +2 -334
  241. package/dist/index.es376.js +2 -31
  242. package/dist/index.es377.js +2 -17
  243. package/dist/index.es378.js +2 -29
  244. package/dist/index.es379.js +1 -1
  245. package/dist/index.es38.js +2 -2
  246. package/dist/index.es380.js +2 -2
  247. package/dist/index.es382.js +2 -2
  248. package/dist/index.es383.js +2 -2
  249. package/dist/index.es389.js +1 -1
  250. package/dist/index.es390.js +1 -1
  251. package/dist/index.es393.js +1 -1
  252. package/dist/index.es395.js +4 -4
  253. package/dist/index.es397.js +66 -517
  254. package/dist/index.es398.js +30 -126
  255. package/dist/index.es399.js +16 -126
  256. package/dist/index.es400.js +135 -62
  257. package/dist/index.es401.js +108 -25
  258. package/dist/index.es402.js +6 -16
  259. package/dist/index.es403.js +2 -141
  260. package/dist/index.es404.js +8 -114
  261. package/dist/index.es405.js +326 -5
  262. package/dist/index.es406.js +50 -2
  263. package/dist/index.es407.js +3 -7
  264. package/dist/index.es408.js +497 -305
  265. package/dist/index.es409.js +125 -48
  266. package/dist/index.es41.js +1 -1
  267. package/dist/index.es410.js +125 -3
  268. package/dist/index.es411.js +1 -1
  269. package/dist/index.es412.js +6 -6
  270. package/dist/index.es416.js +1 -1
  271. package/dist/index.es417.js +5 -5
  272. package/dist/index.es420.js +2 -2
  273. package/dist/index.es43.js +1 -1
  274. package/dist/index.es435.js +21 -271
  275. package/dist/index.es436.js +10 -79
  276. package/dist/index.es437.js +31 -164
  277. package/dist/index.es438.js +29 -24
  278. package/dist/index.es439.js +11 -10
  279. package/dist/index.es44.js +4 -4
  280. package/dist/index.es440.js +2 -33
  281. package/dist/index.es441.js +2 -30
  282. package/dist/index.es442.js +274 -11
  283. package/dist/index.es443.js +80 -3
  284. package/dist/index.es444.js +163 -104
  285. package/dist/index.es445.js +3 -2
  286. package/dist/index.es446.js +107 -2
  287. package/dist/index.es45.js +1 -1
  288. package/dist/index.es451.js +65 -69
  289. package/dist/index.es452.js +68 -8
  290. package/dist/index.es453.js +9 -14
  291. package/dist/index.es454.js +14 -60
  292. package/dist/index.es455.js +59 -64
  293. package/dist/index.es46.js +5 -5
  294. package/dist/index.es465.js +44 -7
  295. package/dist/index.es466.js +63 -2
  296. package/dist/index.es467.js +17 -41
  297. package/dist/index.es468.js +5 -63
  298. package/dist/index.es469.js +41 -17
  299. package/dist/index.es47.js +1 -1
  300. package/dist/index.es470.js +5 -5
  301. package/dist/index.es471.js +7 -44
  302. package/dist/index.es472.js +2 -5
  303. package/dist/index.es474.js +1 -1
  304. package/dist/index.es475.js +1 -1
  305. package/dist/index.es49.js +2 -2
  306. package/dist/index.es50.js +1 -1
  307. package/dist/index.es51.js +4 -4
  308. package/dist/index.es54.js +1 -1
  309. package/dist/index.es55.js +48 -55
  310. package/dist/index.es56.js +22 -22
  311. package/dist/index.es57.js +3 -3
  312. package/dist/index.es59.js +1 -1
  313. package/dist/index.es62.js +1 -1
  314. package/dist/index.es63.js +1 -1
  315. package/dist/index.es65.js +2 -2
  316. package/dist/index.es66.js +3 -3
  317. package/dist/index.es67.js +2 -2
  318. package/dist/index.es69.js +1 -1
  319. package/dist/index.es7.js +1 -1
  320. package/dist/index.es752.js +13 -21
  321. package/dist/index.es753.js +18 -79
  322. package/dist/index.es754.js +82 -13
  323. package/dist/index.es766.js +2 -24
  324. package/dist/index.es767.js +2 -8
  325. package/dist/index.es768.js +21 -64
  326. package/dist/index.es769.js +8 -52
  327. package/dist/index.es770.js +56 -60
  328. package/dist/index.es771.js +52 -2
  329. package/dist/index.es772.js +71 -2
  330. package/dist/index.es777.js +56 -20
  331. package/dist/index.es778.js +26 -49
  332. package/dist/index.es779.js +9 -34
  333. package/dist/index.es780.js +18 -9
  334. package/dist/index.es781.js +8 -18
  335. package/dist/index.es782.js +12 -8
  336. package/dist/index.es783.js +56 -11
  337. package/dist/index.es784.js +9 -57
  338. package/dist/index.es785.js +14 -9
  339. package/dist/index.es786.js +6 -14
  340. package/dist/index.es787.js +21 -6
  341. package/dist/index.es788.js +1 -1
  342. package/dist/index.es799.js +1 -1
  343. package/dist/index.es802.js +1 -1
  344. package/dist/index.es809.js +5 -5
  345. package/dist/index.es810.js +2 -2
  346. package/dist/index.es811.js +1 -1
  347. package/dist/index.es813.js +2 -2
  348. package/dist/index.es825.js +15 -64
  349. package/dist/index.es826.js +7 -11
  350. package/dist/index.es827.js +61 -38
  351. package/dist/index.es828.js +7 -54
  352. package/dist/index.es829.js +40 -16
  353. package/dist/index.es83.js +305 -31
  354. package/dist/index.es830.js +57 -17
  355. package/dist/index.es831.js +20 -7
  356. package/dist/index.es832.js +1 -1
  357. package/dist/index.es84.js +12 -35
  358. package/dist/index.es85.js +33 -46
  359. package/dist/index.es86.js +34 -29
  360. package/dist/index.es87.js +42 -26
  361. package/dist/index.es88.js +30 -55
  362. package/dist/index.es89.js +28 -53
  363. package/dist/index.es90.js +55 -90
  364. package/dist/index.es91.js +55 -37
  365. package/dist/index.es92.js +88 -22
  366. package/dist/index.es93.js +36 -29
  367. package/dist/index.es94.js +22 -305
  368. package/dist/index.es95.js +30 -12
  369. package/dist/index.es96.js +259 -9
  370. package/dist/index.es97.js +5 -5
  371. package/dist/index.es98.js +10 -3672
  372. package/dist/index.es99.js +3673 -3
  373. package/package.json +1 -1
@@ -1,207 +1,44 @@
1
- import C from "./index.es169.js";
2
- import x from "./index.es324.js";
3
- import N from "./index.es325.js";
4
- import v from "./index.es326.js";
5
- import A from "./index.es327.js";
6
- import _ from "./index.es328.js";
7
- import c from "react";
8
- import E from "./index.es329.js";
9
- import { classNamesShape as $ } from "./index.es330.js";
10
- import { forceReflow as S } from "./index.es331.js";
11
- var T = function(i, p) {
12
- return i && p && p.split(" ").forEach(function(s) {
13
- return A(i, s);
14
- });
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
1
+ import s from "./index.es169.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.es181.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
75
29
  }));
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
- }) : {};
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
+ );
40
+ }
205
41
  export {
206
- g as default
42
+ E as Primitive,
43
+ b as dispatchDiscreteCustomEvent
207
44
  };
@@ -1,13 +1,15 @@
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
- }, []);
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;
10
11
  }
11
12
  export {
12
- o as useCallbackRef
13
+ a as clsx,
14
+ a as default
13
15
  };
@@ -1,23 +1,14 @@
1
- import { l as o } from "./index.es98.js";
2
- import { isSameDay as t } from "./index.es217.js";
3
- function m(i, l) {
4
- return {
5
- selectMultipleDate: (r) => {
6
- if (!i) return l([r]);
7
- const n = o.findIndex(
8
- i,
9
- (s) => t(s, r)
10
- );
11
- if (n === -1) return l([...i, r]);
12
- const u = [
13
- ...i.slice(0, n),
14
- ...i.slice(n + 1)
15
- ];
16
- l(u);
17
- },
18
- isMultipleSelected: (r) => o.isArray(i) && i.some((n) => t(n, r))
19
- };
1
+ import * as e from "react";
2
+ function c(o, n) {
3
+ typeof o == "function" ? o(n) : o != null && (o.current = n);
4
+ }
5
+ function u(...o) {
6
+ return (n) => o.forEach((t) => c(t, n));
7
+ }
8
+ function i(...o) {
9
+ return e.useCallback(u(...o), o);
20
10
  }
21
11
  export {
22
- m as default
12
+ u as composeRefs,
13
+ i as useComposedRefs
23
14
  };
@@ -1,39 +1,207 @@
1
- import { isDateRange as f } from "./index.es99.js";
2
- import { isBefore as R } from "./index.es216.js";
3
- import { eachDayOfInterval as l } from "./index.es192.js";
4
- import { startOfDay as o } from "./index.es190.js";
5
- import { isWithinInterval as y } from "./index.es221.js";
6
- import { isSameDay as e } from "./index.es217.js";
7
- function w(r, i, u) {
8
- const D = (n) => {
9
- if (r == null ? void 0 : r.start) {
10
- const { start: t, end: s } = r;
11
- if (R(n, t) || t && s) {
12
- i({ start: n, end: void 0 });
13
- return;
14
- }
15
- if (g(t, n)) return;
16
- i({
17
- start: t,
18
- end: n
19
- });
20
- } else
21
- i({ start: n, end: void 0 });
22
- }, g = (n, a) => !u || !n || !a ? !1 : l({ start: o(n), end: a }).some((m) => u(m));
23
- return {
24
- selectRangeDate: D,
25
- isInRange: (n) => {
26
- if (!f(r) || !r) return !1;
27
- const { start: a, end: t } = r;
28
- return a && !t ? e(n, a) : !a || !t ? !1 : y(n, {
29
- start: o(a),
30
- end: o(t)
31
- });
32
- },
33
- isFirstDayFromRange: (n) => !r || !f(r) || !r.start ? !1 : e(n, r.start),
34
- isLastDayFromRange: (n) => !r || !f(r) || !r.end ? !1 : e(n, r.end)
35
- };
36
- }
1
+ import C from "./index.es169.js";
2
+ import x from "./index.es322.js";
3
+ import N from "./index.es323.js";
4
+ import v from "./index.es324.js";
5
+ import A from "./index.es325.js";
6
+ import _ from "./index.es326.js";
7
+ import c from "react";
8
+ import E from "./index.es327.js";
9
+ import { classNamesShape as $ } from "./index.es328.js";
10
+ import { forceReflow as S } from "./index.es329.js";
11
+ var T = function(i, p) {
12
+ return i && p && p.split(" ").forEach(function(s) {
13
+ return A(i, s);
14
+ });
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
+ }) : {};
37
205
  export {
38
- w as default
206
+ g as default
39
207
  };
@@ -1,13 +1,13 @@
1
- import { isDate as n } from "./index.es101.js";
2
- import { isSameDay as l } from "./index.es217.js";
3
- function S(t, i) {
4
- return {
5
- selectSingleDate: (e) => {
6
- i(e);
7
- },
8
- isSingleSelected: (e) => n(t) && l(e, t)
9
- };
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
+ }, []);
10
10
  }
11
11
  export {
12
- S as default
12
+ o as useCallbackRef
13
13
  };
@@ -1,17 +1,23 @@
1
- var m = 1, j = 0.9, k = 0.8, B = 0.17, v = 0.1, w = 0.999, D = 0.9999, G = 0.99, H = /[\\\/_+.#"@\[\(\{&]/, J = /[\\\/_+.#"@\[\(\{&]/g, K = /[\s-]/, A = /[\s-]/g;
2
- function $(t, o, e, i, n, h, u) {
3
- if (h === o.length) return n === t.length ? m : G;
4
- var s = `${n},${h}`;
5
- if (u[s] !== void 0) return u[s];
6
- for (var d = i.charAt(h), a = e.indexOf(d, n), l = 0, r, g, c, p; a >= 0; ) r = $(t, o, e, i, a + 1, h + 1, u), r > l && (a === n ? r *= m : H.test(t.charAt(a - 1)) ? (r *= k, c = t.slice(n, a - 1).match(J), c && n > 0 && (r *= Math.pow(w, c.length))) : K.test(t.charAt(a - 1)) ? (r *= j, p = t.slice(n, a - 1).match(A), p && n > 0 && (r *= Math.pow(w, p.length))) : (r *= B, n > 0 && (r *= Math.pow(w, a - n))), t.charAt(a) !== o.charAt(h) && (r *= D)), (r < v && e.charAt(a - 1) === i.charAt(h + 1) || i.charAt(h + 1) === i.charAt(h) && e.charAt(a - 1) !== i.charAt(h)) && (g = $(t, o, e, i, a + 1, h + 2, u), g * v > r && (r = g * v)), r > l && (l = r), a = e.indexOf(d, a + 1);
7
- return u[s] = l, l;
8
- }
9
- function x(t) {
10
- return t.toLowerCase().replace(A, " ");
11
- }
12
- function M(t, o, e) {
13
- return t = e && e.length > 0 ? `${t + " " + e.join(" ")}` : t, $(t, o, x(t), x(o), 0, 0, {});
1
+ import { l as o } from "./index.es99.js";
2
+ import { isSameDay as t } from "./index.es221.js";
3
+ function m(i, l) {
4
+ return {
5
+ selectMultipleDate: (r) => {
6
+ if (!i) return l([r]);
7
+ const n = o.findIndex(
8
+ i,
9
+ (s) => t(s, r)
10
+ );
11
+ if (n === -1) return l([...i, r]);
12
+ const u = [
13
+ ...i.slice(0, n),
14
+ ...i.slice(n + 1)
15
+ ];
16
+ l(u);
17
+ },
18
+ isMultipleSelected: (r) => o.isArray(i) && i.some((n) => t(n, r))
19
+ };
14
20
  }
15
21
  export {
16
- M as a
22
+ m as default
17
23
  };