@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,336 +1,6 @@
1
- import C from "./index.es324.js";
2
- import D from "./index.es325.js";
3
- import o from "./index.es326.js";
4
- import v from "react";
5
- import b from "react-dom";
6
- import T from "./index.es335.js";
7
- import { timeoutsShape as R } from "./index.es330.js";
8
- import O from "./index.es333.js";
9
- import { forceReflow as k } from "./index.es331.js";
10
- var x = "unmounted", f = "exited", l = "entering", h = "entered", N = "exiting", p = /* @__PURE__ */ function(d) {
11
- D(u, d);
12
- function u(i, e) {
13
- var t;
14
- t = d.call(this, i, e) || this;
15
- var n = e, r = n && !n.isMounting ? i.enter : i.appear, s;
16
- return t.appearStatus = null, i.in ? r ? (s = f, t.appearStatus = l) : s = h : i.unmountOnExit || i.mountOnEnter ? s = x : s = f, t.state = {
17
- status: s
18
- }, t.nextCallback = null, t;
19
- }
20
- u.getDerivedStateFromProps = function(e, t) {
21
- var n = e.in;
22
- return n && t.status === x ? {
23
- status: f
24
- } : null;
25
- };
26
- var a = u.prototype;
27
- return a.componentDidMount = function() {
28
- this.updateStatus(!0, this.appearStatus);
29
- }, a.componentDidUpdate = function(e) {
30
- var t = null;
31
- if (e !== this.props) {
32
- var n = this.state.status;
33
- this.props.in ? n !== l && n !== h && (t = l) : (n === l || n === h) && (t = N);
34
- }
35
- this.updateStatus(!1, t);
36
- }, a.componentWillUnmount = function() {
37
- this.cancelNextCallback();
38
- }, a.getTimeouts = function() {
39
- var e = this.props.timeout, t, n, r;
40
- return t = n = r = e, e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear !== void 0 ? e.appear : n), {
41
- exit: t,
42
- enter: n,
43
- appear: r
44
- };
45
- }, a.updateStatus = function(e, t) {
46
- if (e === void 0 && (e = !1), t !== null)
47
- if (this.cancelNextCallback(), t === l) {
48
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
49
- var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
50
- n && k(n);
51
- }
52
- this.performEnter(e);
53
- } else
54
- this.performExit();
55
- else this.props.unmountOnExit && this.state.status === f && this.setState({
56
- status: x
57
- });
58
- }, a.performEnter = function(e) {
59
- var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, s = this.props.nodeRef ? [r] : [b.findDOMNode(this), r], c = s[0], m = s[1], S = this.getTimeouts(), g = r ? S.appear : S.enter;
60
- if (!e && !n || T.disabled) {
61
- this.safeSetState({
62
- status: h
63
- }, function() {
64
- t.props.onEntered(c);
65
- });
66
- return;
67
- }
68
- this.props.onEnter(c, m), this.safeSetState({
69
- status: l
70
- }, function() {
71
- t.props.onEntering(c, m), t.onTransitionEnd(g, function() {
72
- t.safeSetState({
73
- status: h
74
- }, function() {
75
- t.props.onEntered(c, m);
76
- });
77
- });
78
- });
79
- }, a.performExit = function() {
80
- var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : b.findDOMNode(this);
81
- if (!t || T.disabled) {
82
- this.safeSetState({
83
- status: f
84
- }, function() {
85
- e.props.onExited(r);
86
- });
87
- return;
88
- }
89
- this.props.onExit(r), this.safeSetState({
90
- status: N
91
- }, function() {
92
- e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
93
- e.safeSetState({
94
- status: f
95
- }, function() {
96
- e.props.onExited(r);
97
- });
98
- });
99
- });
100
- }, a.cancelNextCallback = function() {
101
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
102
- }, a.safeSetState = function(e, t) {
103
- t = this.setNextCallback(t), this.setState(e, t);
104
- }, a.setNextCallback = function(e) {
105
- var t = this, n = !0;
106
- return this.nextCallback = function(r) {
107
- n && (n = !1, t.nextCallback = null, e(r));
108
- }, this.nextCallback.cancel = function() {
109
- n = !1;
110
- }, this.nextCallback;
111
- }, a.onTransitionEnd = function(e, t) {
112
- this.setNextCallback(t);
113
- var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), r = e == null && !this.props.addEndListener;
114
- if (!n || r) {
115
- setTimeout(this.nextCallback, 0);
116
- return;
117
- }
118
- if (this.props.addEndListener) {
119
- var s = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], c = s[0], m = s[1];
120
- this.props.addEndListener(c, m);
121
- }
122
- e != null && setTimeout(this.nextCallback, e);
123
- }, a.render = function() {
124
- var e = this.state.status;
125
- if (e === x)
126
- return null;
127
- var t = this.props, n = t.children;
128
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
129
- var r = C(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
130
- return (
131
- // allows for nested Transitions
132
- /* @__PURE__ */ v.createElement(O.Provider, {
133
- value: null
134
- }, typeof n == "function" ? n(e, r) : v.cloneElement(v.Children.only(n), r))
135
- );
136
- }, u;
137
- }(v.Component);
138
- p.contextType = O;
139
- p.propTypes = process.env.NODE_ENV !== "production" ? {
140
- /**
141
- * A React reference to DOM element that need to transition:
142
- * https://stackoverflow.com/a/51127130/4671932
143
- *
144
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
145
- * (e.g. `onEnter`) because user already has direct access to the node.
146
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
147
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
148
- * (see
149
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
150
- */
151
- nodeRef: o.shape({
152
- current: typeof Element > "u" ? o.any : function(d, u, a, i, e, t) {
153
- var n = d[u];
154
- return o.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(d, u, a, i, e, t);
155
- }
156
- }),
157
- /**
158
- * A `function` child can be used instead of a React element. This function is
159
- * called with the current transition status (`'entering'`, `'entered'`,
160
- * `'exiting'`, `'exited'`), which can be used to apply context
161
- * specific props to a component.
162
- *
163
- * ```jsx
164
- * <Transition in={this.state.in} timeout={150}>
165
- * {state => (
166
- * <MyComponent className={`fade fade-${state}`} />
167
- * )}
168
- * </Transition>
169
- * ```
170
- */
171
- children: o.oneOfType([o.func.isRequired, o.element.isRequired]).isRequired,
172
- /**
173
- * Show the component; triggers the enter or exit states
174
- */
175
- in: o.bool,
176
- /**
177
- * By default the child component is mounted immediately along with
178
- * the parent `Transition` component. If you want to "lazy mount" the component on the
179
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
180
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
181
- */
182
- mountOnEnter: o.bool,
183
- /**
184
- * By default the child component stays mounted after it reaches the `'exited'` state.
185
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
186
- */
187
- unmountOnExit: o.bool,
188
- /**
189
- * By default the child component does not perform the enter transition when
190
- * it first mounts, regardless of the value of `in`. If you want this
191
- * behavior, set both `appear` and `in` to `true`.
192
- *
193
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
194
- * > only adds an additional enter transition. However, in the
195
- * > `<CSSTransition>` component that first enter transition does result in
196
- * > additional `.appear-*` classes, that way you can choose to style it
197
- * > differently.
198
- */
199
- appear: o.bool,
200
- /**
201
- * Enable or disable enter transitions.
202
- */
203
- enter: o.bool,
204
- /**
205
- * Enable or disable exit transitions.
206
- */
207
- exit: o.bool,
208
- /**
209
- * The duration of the transition, in milliseconds.
210
- * Required unless `addEndListener` is provided.
211
- *
212
- * You may specify a single timeout for all transitions:
213
- *
214
- * ```jsx
215
- * timeout={500}
216
- * ```
217
- *
218
- * or individually:
219
- *
220
- * ```jsx
221
- * timeout={{
222
- * appear: 500,
223
- * enter: 300,
224
- * exit: 500,
225
- * }}
226
- * ```
227
- *
228
- * - `appear` defaults to the value of `enter`
229
- * - `enter` defaults to `0`
230
- * - `exit` defaults to `0`
231
- *
232
- * @type {number | { enter?: number, exit?: number, appear?: number }}
233
- */
234
- timeout: function(u) {
235
- var a = R;
236
- u.addEndListener || (a = a.isRequired);
237
- for (var i = arguments.length, e = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
238
- e[t - 1] = arguments[t];
239
- return a.apply(void 0, [u].concat(e));
240
- },
241
- /**
242
- * Add a custom transition end trigger. Called with the transitioning
243
- * DOM node and a `done` callback. Allows for more fine grained transition end
244
- * logic. Timeouts are still used as a fallback if provided.
245
- *
246
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
247
- *
248
- * ```jsx
249
- * addEndListener={(node, done) => {
250
- * // use the css transitionend event to mark the finish of a transition
251
- * node.addEventListener('transitionend', done, false);
252
- * }}
253
- * ```
254
- */
255
- addEndListener: o.func,
256
- /**
257
- * Callback fired before the "entering" status is applied. An extra parameter
258
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
259
- *
260
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
261
- *
262
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
263
- */
264
- onEnter: o.func,
265
- /**
266
- * Callback fired after the "entering" status is applied. An extra parameter
267
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
268
- *
269
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
270
- *
271
- * @type Function(node: HtmlElement, isAppearing: bool)
272
- */
273
- onEntering: o.func,
274
- /**
275
- * Callback fired after the "entered" status is applied. An extra parameter
276
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
277
- *
278
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
279
- *
280
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
281
- */
282
- onEntered: o.func,
283
- /**
284
- * Callback fired before the "exiting" status is applied.
285
- *
286
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
287
- *
288
- * @type Function(node: HtmlElement) -> void
289
- */
290
- onExit: o.func,
291
- /**
292
- * Callback fired after the "exiting" status is applied.
293
- *
294
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
295
- *
296
- * @type Function(node: HtmlElement) -> void
297
- */
298
- onExiting: o.func,
299
- /**
300
- * Callback fired after the "exited" status is applied.
301
- *
302
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
303
- *
304
- * @type Function(node: HtmlElement) -> void
305
- */
306
- onExited: o.func
307
- } : {};
308
- function E() {
309
- }
310
- p.defaultProps = {
311
- in: !1,
312
- mountOnEnter: !1,
313
- unmountOnExit: !1,
314
- appear: !1,
315
- enter: !0,
316
- exit: !0,
317
- onEnter: E,
318
- onEntering: E,
319
- onEntered: E,
320
- onExit: E,
321
- onExiting: E,
322
- onExited: E
1
+ var e = function(o) {
2
+ return o.scrollTop;
323
3
  };
324
- p.UNMOUNTED = x;
325
- p.EXITED = f;
326
- p.ENTERING = l;
327
- p.ENTERED = h;
328
- p.EXITING = N;
329
4
  export {
330
- h as ENTERED,
331
- l as ENTERING,
332
- f as EXITED,
333
- N as EXITING,
334
- x as UNMOUNTED,
335
- p as default
5
+ e as forceReflow
336
6
  };
@@ -1,9 +1,9 @@
1
1
  import { j as t } from "./index.es82.js";
2
2
  import * as f from "react";
3
3
  import { createElement as I } from "react";
4
- import { useControllableState as h } from "./index.es87.js";
4
+ import { useControllableState as h } from "./index.es89.js";
5
5
  import { PopoverRoot as O, PopoverTrigger as T, PopoverContent as y } from "./index.es47.js";
6
- import F from "./index.es97.js";
6
+ import F from "./index.es98.js";
7
7
  import { Button as M } from "./index.es28.js";
8
8
  import { cn as d } from "./index.es72.js";
9
9
  import { AutoCompleteRoot as U, AutoCompleteInput as W, AutoCompleteEmpty as q, AutoCompleteList as z, AutoCompleteItem as G } from "./index.es22.js";
@@ -1,21 +1,7 @@
1
- import e from "./index.es326.js";
2
- var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
- enter: e.number,
4
- exit: e.number,
5
- appear: e.number
6
- }).isRequired]) : null, t = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
7
- enter: e.string,
8
- exit: e.string,
9
- active: e.string
10
- }), e.shape({
11
- enter: e.string,
12
- enterDone: e.string,
13
- enterActive: e.string,
14
- exit: e.string,
15
- exitDone: e.string,
16
- exitActive: e.string
17
- })]) : null;
1
+ function i(e) {
2
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3
+ return e;
4
+ }
18
5
  export {
19
- t as classNamesShape,
20
- n as timeoutsShape
6
+ i as default
21
7
  };
@@ -1,6 +1,5 @@
1
- var e = function(o) {
2
- return o.scrollTop;
3
- };
1
+ import t from "react";
2
+ const o = t.createContext(null);
4
3
  export {
5
- e as forceReflow
4
+ o as default
6
5
  };
@@ -1,7 +1,74 @@
1
- function i(e) {
2
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3
- return e;
1
+ import { Children as s, isValidElement as v, cloneElement as d } from "react";
2
+ function h(i, e) {
3
+ var t = function(a) {
4
+ return e && v(a) ? e(a) : a;
5
+ }, u = /* @__PURE__ */ Object.create(null);
6
+ return i && s.map(i, function(r) {
7
+ return r;
8
+ }).forEach(function(r) {
9
+ u[r.key] = t(r);
10
+ }), u;
11
+ }
12
+ function m(i, e) {
13
+ i = i || {}, e = e || {};
14
+ function t(g) {
15
+ return g in e ? e[g] : i[g];
16
+ }
17
+ var u = /* @__PURE__ */ Object.create(null), r = [];
18
+ for (var a in i)
19
+ a in e ? r.length && (u[a] = r, r = []) : r.push(a);
20
+ var n, f = {};
21
+ for (var l in e) {
22
+ if (u[l])
23
+ for (n = 0; n < u[l].length; n++) {
24
+ var c = u[l][n];
25
+ f[u[l][n]] = t(c);
26
+ }
27
+ f[l] = t(l);
28
+ }
29
+ for (n = 0; n < r.length; n++)
30
+ f[r[n]] = t(r[n]);
31
+ return f;
32
+ }
33
+ function o(i, e, t) {
34
+ return t[e] != null ? t[e] : i.props[e];
35
+ }
36
+ function E(i, e) {
37
+ return h(i.children, function(t) {
38
+ return d(t, {
39
+ onExited: e.bind(null, t),
40
+ in: !0,
41
+ appear: o(t, "appear", i),
42
+ enter: o(t, "enter", i),
43
+ exit: o(t, "exit", i)
44
+ });
45
+ });
46
+ }
47
+ function p(i, e, t) {
48
+ var u = h(i.children), r = m(e, u);
49
+ return Object.keys(r).forEach(function(a) {
50
+ var n = r[a];
51
+ if (v(n)) {
52
+ var f = a in e, l = a in u, c = e[a], g = v(c) && !c.props.in;
53
+ l && (!f || g) ? r[a] = d(n, {
54
+ onExited: t.bind(null, n),
55
+ in: !0,
56
+ exit: o(n, "exit", i),
57
+ enter: o(n, "enter", i)
58
+ }) : !l && f && !g ? r[a] = d(n, {
59
+ in: !1
60
+ }) : l && f && v(c) && (r[a] = d(n, {
61
+ onExited: t.bind(null, n),
62
+ in: c.props.in,
63
+ exit: o(n, "exit", i),
64
+ enter: o(n, "enter", i)
65
+ }));
66
+ }
67
+ }), r;
4
68
  }
5
69
  export {
6
- i as default
70
+ h as getChildMapping,
71
+ E as getInitialChildMapping,
72
+ p as getNextChildMapping,
73
+ m as mergeChildMappings
7
74
  };
@@ -1,5 +1,6 @@
1
- import t from "react";
2
- const o = t.createContext(null);
1
+ const a = {
2
+ disabled: !1
3
+ };
3
4
  export {
4
- o as default
5
+ a as default
5
6
  };
@@ -1,74 +1,8 @@
1
- import { Children as s, isValidElement as v, cloneElement as d } from "react";
2
- function h(i, e) {
3
- var t = function(a) {
4
- return e && v(a) ? e(a) : a;
5
- }, u = /* @__PURE__ */ Object.create(null);
6
- return i && s.map(i, function(r) {
7
- return r;
8
- }).forEach(function(r) {
9
- u[r.key] = t(r);
10
- }), u;
11
- }
12
- function m(i, e) {
13
- i = i || {}, e = e || {};
14
- function t(g) {
15
- return g in e ? e[g] : i[g];
16
- }
17
- var u = /* @__PURE__ */ Object.create(null), r = [];
18
- for (var a in i)
19
- a in e ? r.length && (u[a] = r, r = []) : r.push(a);
20
- var n, f = {};
21
- for (var l in e) {
22
- if (u[l])
23
- for (n = 0; n < u[l].length; n++) {
24
- var c = u[l][n];
25
- f[u[l][n]] = t(c);
26
- }
27
- f[l] = t(l);
28
- }
29
- for (n = 0; n < r.length; n++)
30
- f[r[n]] = t(r[n]);
31
- return f;
32
- }
33
- function o(i, e, t) {
34
- return t[e] != null ? t[e] : i.props[e];
35
- }
36
- function E(i, e) {
37
- return h(i.children, function(t) {
38
- return d(t, {
39
- onExited: e.bind(null, t),
40
- in: !0,
41
- appear: o(t, "appear", i),
42
- enter: o(t, "enter", i),
43
- exit: o(t, "exit", i)
44
- });
45
- });
46
- }
47
- function p(i, e, t) {
48
- var u = h(i.children), r = m(e, u);
49
- return Object.keys(r).forEach(function(a) {
50
- var n = r[a];
51
- if (v(n)) {
52
- var f = a in e, l = a in u, c = e[a], g = v(c) && !c.props.in;
53
- l && (!f || g) ? r[a] = d(n, {
54
- onExited: t.bind(null, n),
55
- in: !0,
56
- exit: o(n, "exit", i),
57
- enter: o(n, "enter", i)
58
- }) : !l && f && !g ? r[a] = d(n, {
59
- in: !1
60
- }) : l && f && v(c) && (r[a] = d(n, {
61
- onExited: t.bind(null, n),
62
- in: c.props.in,
63
- exit: o(n, "exit", i),
64
- enter: o(n, "enter", i)
65
- }));
66
- }
67
- }), r;
68
- }
1
+ import { __module as r } from "./index.es413.js";
2
+ import { __require as e } from "./index.es414.js";
3
+ import { __require as o } from "./index.es415.js";
4
+ process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
5
+ var m = r.exports;
69
6
  export {
70
- h as getChildMapping,
71
- E as getInitialChildMapping,
72
- p as getNextChildMapping,
73
- m as mergeChildMappings
7
+ m as s
74
8
  };
@@ -1,6 +1,36 @@
1
- const a = {
2
- disabled: !1
3
- };
1
+ import { createContext as e, useContext as n } from "react";
2
+ const o = e(null);
3
+ function i() {
4
+ const t = n(o);
5
+ if (t === null)
6
+ throw new Error("No Tree Api Provided");
7
+ return t;
8
+ }
9
+ const r = e(null);
10
+ function a() {
11
+ const t = n(r);
12
+ if (t === null)
13
+ throw new Error("Provide a NodesContext");
14
+ return t;
15
+ }
16
+ const u = e(null);
17
+ function c() {
18
+ const t = n(u);
19
+ if (t === null)
20
+ throw new Error("Provide a DnDContext");
21
+ return t;
22
+ }
23
+ const s = e(0);
24
+ function d() {
25
+ n(s);
26
+ }
4
27
  export {
5
- a as default
28
+ s as DataUpdatesContext,
29
+ u as DndContext,
30
+ r as NodesContext,
31
+ o as TreeApiContext,
32
+ d as useDataUpdates,
33
+ c as useDndContext,
34
+ a as useNodesContext,
35
+ i as useTreeApi
6
36
  };
@@ -1,8 +1,28 @@
1
- import { __module as r } from "./index.es413.js";
2
- import { __require as e } from "./index.es414.js";
3
- import { __require as o } from "./index.es415.js";
4
- process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
5
- var m = r.exports;
1
+ const l = (n) => {
2
+ var e;
3
+ return {
4
+ nodes: {
5
+ // Changes together
6
+ open: { filtered: {}, unfiltered: (e = n == null ? void 0 : n.initialOpenState) !== null && e !== void 0 ? e : {} },
7
+ focus: { id: null, treeFocused: !1 },
8
+ edit: { id: null },
9
+ drag: {
10
+ id: null,
11
+ selectedIds: [],
12
+ destinationParentId: null,
13
+ destinationIndex: null
14
+ },
15
+ selection: { ids: /* @__PURE__ */ new Set(), anchor: null, mostRecent: null }
16
+ },
17
+ dnd: {
18
+ cursor: { type: "none" },
19
+ dragId: null,
20
+ dragIds: [],
21
+ parentId: null,
22
+ index: -1
23
+ }
24
+ };
25
+ };
6
26
  export {
7
- m as s
27
+ l as initialState
8
28
  };
@@ -1,36 +1,20 @@
1
- import { createContext as e, useContext as n } from "react";
2
- const o = e(null);
3
- function i() {
4
- const t = n(o);
5
- if (t === null)
6
- throw new Error("No Tree Api Provided");
7
- return t;
8
- }
9
- const r = e(null);
10
- function a() {
11
- const t = n(r);
12
- if (t === null)
13
- throw new Error("Provide a NodesContext");
14
- return t;
15
- }
16
- const u = e(null);
17
- function c() {
18
- const t = n(u);
19
- if (t === null)
20
- throw new Error("Provide a DnDContext");
21
- return t;
22
- }
23
- const s = e(0);
24
- function d() {
25
- n(s);
26
- }
1
+ import { combineReducers as r } from "./index.es339.js";
2
+ import { reducer as e } from "./index.es261.js";
3
+ import { reducer as o } from "./index.es260.js";
4
+ import { reducer as d } from "./index.es264.js";
5
+ import { reducer as c } from "./index.es263.js";
6
+ import { reducer as m } from "./index.es262.js";
7
+ import { reducer as u } from "./index.es416.js";
8
+ const $ = r({
9
+ nodes: r({
10
+ focus: e,
11
+ edit: o,
12
+ open: m,
13
+ selection: c,
14
+ drag: u
15
+ }),
16
+ dnd: d
17
+ });
27
18
  export {
28
- s as DataUpdatesContext,
29
- u as DndContext,
30
- r as NodesContext,
31
- o as TreeApiContext,
32
- d as useDataUpdates,
33
- c as useDndContext,
34
- a as useNodesContext,
35
- i as useTreeApi
19
+ $ as rootReducer
36
20
  };