@boxcustodia/library 0.2.6 → 0.2.7

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 (506) hide show
  1. package/dist/index.d.ts +13 -7
  2. package/dist/index.es.js +191 -191
  3. package/dist/index.es10.js +1 -1
  4. package/dist/index.es100.js +21 -1059
  5. package/dist/index.es101.js +30 -3674
  6. package/dist/index.es102.js +11 -4
  7. package/dist/index.es103.js +21 -4
  8. package/dist/index.es104.js +12 -259
  9. package/dist/index.es105.js +4 -5
  10. package/dist/index.es106.js +11 -240
  11. package/dist/index.es107.js +12 -224
  12. package/dist/index.es108.js +3672 -9
  13. package/dist/index.es109.js +4 -11
  14. package/dist/index.es11.js +12 -33
  15. package/dist/index.es110.js +14 -41
  16. package/dist/index.es111.js +5 -11
  17. package/dist/index.es112.js +57 -21
  18. package/dist/index.es113.js +1062 -12
  19. package/dist/index.es114.js +4 -11
  20. package/dist/index.es115.js +4 -12
  21. package/dist/index.es116.js +224 -4
  22. package/dist/index.es117.js +4 -7
  23. package/dist/index.es118.js +41 -5
  24. package/dist/index.es119.js +238 -55
  25. package/dist/index.es12.js +33 -17
  26. package/dist/index.es120.js +813 -55
  27. package/dist/index.es121.js +9 -822
  28. package/dist/index.es122.js +5 -3
  29. package/dist/index.es123.js +64 -11
  30. package/dist/index.es124.js +4 -33
  31. package/dist/index.es125.js +13 -13
  32. package/dist/index.es126.js +33 -4
  33. package/dist/index.es127.js +5 -5
  34. package/dist/index.es128.js +17 -13
  35. package/dist/index.es129.js +39 -212
  36. package/dist/index.es13.js +34 -44
  37. package/dist/index.es130.js +13 -8
  38. package/dist/index.es131.js +216 -2
  39. package/dist/index.es132.js +8 -26
  40. package/dist/index.es133.js +2 -606
  41. package/dist/index.es134.js +25 -14
  42. package/dist/index.es135.js +605 -196
  43. package/dist/index.es136.js +14 -41
  44. package/dist/index.es137.js +196 -12
  45. package/dist/index.es138.js +41 -10
  46. package/dist/index.es139.js +12 -20
  47. package/dist/index.es14.js +17 -24
  48. package/dist/index.es140.js +11 -36
  49. package/dist/index.es141.js +205 -11
  50. package/dist/index.es142.js +10 -11
  51. package/dist/index.es143.js +7 -205
  52. package/dist/index.es144.js +64 -5
  53. package/dist/index.es145.js +11 -2
  54. package/dist/index.es146.js +123 -5
  55. package/dist/index.es147.js +128 -58
  56. package/dist/index.es148.js +14 -11
  57. package/dist/index.es149.js +30 -122
  58. package/dist/index.es15.js +44 -15
  59. package/dist/index.es150.js +14 -134
  60. package/dist/index.es151.js +7 -12
  61. package/dist/index.es152.js +49 -32
  62. package/dist/index.es153.js +20 -14
  63. package/dist/index.es154.js +37 -9
  64. package/dist/index.es155.js +11 -50
  65. package/dist/index.es156.js +6 -44
  66. package/dist/index.es157.js +2 -218
  67. package/dist/index.es158.js +193 -625
  68. package/dist/index.es159.js +649 -3
  69. package/dist/index.es16.js +24 -21
  70. package/dist/index.es160.js +4 -4
  71. package/dist/index.es161.js +3 -45
  72. package/dist/index.es162.js +45 -7
  73. package/dist/index.es163.js +7 -5
  74. package/dist/index.es164.js +6 -28
  75. package/dist/index.es165.js +27 -117
  76. package/dist/index.es166.js +44 -33
  77. package/dist/index.es167.js +3 -3
  78. package/dist/index.es169.js +5 -5
  79. package/dist/index.es17.js +14 -27
  80. package/dist/index.es170.js +33 -2
  81. package/dist/index.es171.js +118 -2
  82. package/dist/index.es172.js +2 -10
  83. package/dist/index.es173.js +2 -6
  84. package/dist/index.es174.js +9 -13
  85. package/dist/index.es175.js +4 -81
  86. package/dist/index.es176.js +13 -15
  87. package/dist/index.es177.js +80 -31
  88. package/dist/index.es178.js +13 -131
  89. package/dist/index.es179.js +28 -170
  90. package/dist/index.es18.js +11 -11
  91. package/dist/index.es180.js +133 -11
  92. package/dist/index.es181.js +166 -69
  93. package/dist/index.es182.js +12 -18
  94. package/dist/index.es183.js +79 -9
  95. package/dist/index.es184.js +16 -49
  96. package/dist/index.es185.js +8 -11
  97. package/dist/index.es186.js +51 -21
  98. package/dist/index.es187.js +15 -3
  99. package/dist/index.es188.js +3 -32
  100. package/dist/index.es189.js +32 -12
  101. package/dist/index.es19.js +21 -26
  102. package/dist/index.es190.js +18 -201
  103. package/dist/index.es191.js +12 -22
  104. package/dist/index.es192.js +7 -24
  105. package/dist/index.es193.js +5 -370
  106. package/dist/index.es194.js +4 -84
  107. package/dist/index.es195.js +17 -5
  108. package/dist/index.es196.js +5 -17
  109. package/dist/index.es197.js +5 -5
  110. package/dist/index.es198.js +8 -6
  111. package/dist/index.es199.js +6 -14
  112. package/dist/index.es20.js +29 -48
  113. package/dist/index.es200.js +1 -1
  114. package/dist/index.es201.js +15 -9
  115. package/dist/index.es202.js +13 -6
  116. package/dist/index.es203.js +14 -25
  117. package/dist/index.es204.js +6 -13
  118. package/dist/index.es205.js +6 -6
  119. package/dist/index.es206.js +6 -6
  120. package/dist/index.es207.js +5 -19
  121. package/dist/index.es208.js +515 -51
  122. package/dist/index.es209.js +50 -7
  123. package/dist/index.es21.js +11 -55
  124. package/dist/index.es210.js +17 -6
  125. package/dist/index.es211.js +8 -5
  126. package/dist/index.es212.js +19 -8
  127. package/dist/index.es213.js +9 -16
  128. package/dist/index.es214.js +7 -8
  129. package/dist/index.es215.js +7 -6
  130. package/dist/index.es216.js +4 -5
  131. package/dist/index.es217.js +5 -9
  132. package/dist/index.es218.js +9 -177
  133. package/dist/index.es219.js +5 -7
  134. package/dist/index.es22.js +26 -114
  135. package/dist/index.es220.js +8 -5
  136. package/dist/index.es221.js +12 -4
  137. package/dist/index.es222.js +9 -5
  138. package/dist/index.es223.js +8 -8
  139. package/dist/index.es224.js +11 -6
  140. package/dist/index.es225.js +14 -15
  141. package/dist/index.es226.js +6 -4
  142. package/dist/index.es227.js +6 -515
  143. package/dist/index.es228.js +7 -50
  144. package/dist/index.es229.js +6 -17
  145. package/dist/index.es23.js +26 -42
  146. package/dist/index.es230.js +6 -9
  147. package/dist/index.es231.js +10 -19
  148. package/dist/index.es232.js +84 -8
  149. package/dist/index.es233.js +65 -8
  150. package/dist/index.es234.js +37 -7
  151. package/dist/index.es235.js +9 -5
  152. package/dist/index.es236.js +8 -6
  153. package/dist/index.es237.js +7 -9
  154. package/dist/index.es238.js +10 -5
  155. package/dist/index.es239.js +7 -8
  156. package/dist/index.es24.js +45 -29
  157. package/dist/index.es240.js +7 -12
  158. package/dist/index.es241.js +6 -9
  159. package/dist/index.es242.js +5 -10
  160. package/dist/index.es243.js +15 -14
  161. package/dist/index.es244.js +18 -64
  162. package/dist/index.es245.js +52 -38
  163. package/dist/index.es246.js +16 -10
  164. package/dist/index.es247.js +200 -8
  165. package/dist/index.es248.js +22 -8
  166. package/dist/index.es249.js +24 -7
  167. package/dist/index.es25.js +54 -21
  168. package/dist/index.es250.js +370 -15
  169. package/dist/index.es251.js +177 -25
  170. package/dist/index.es252.js +25 -4
  171. package/dist/index.es253.js +4 -7
  172. package/dist/index.es254.js +6 -12
  173. package/dist/index.es255.js +13 -13
  174. package/dist/index.es256.js +13 -134
  175. package/dist/index.es257.js +134 -31
  176. package/dist/index.es258.js +31 -462
  177. package/dist/index.es259.js +456 -125
  178. package/dist/index.es26.js +111 -12
  179. package/dist/index.es260.js +131 -26
  180. package/dist/index.es261.js +26 -4
  181. package/dist/index.es262.js +4 -26
  182. package/dist/index.es263.js +25 -6
  183. package/dist/index.es264.js +6 -10
  184. package/dist/index.es265.js +10 -27
  185. package/dist/index.es266.js +27 -47
  186. package/dist/index.es267.js +45 -27
  187. package/dist/index.es268.js +29 -42
  188. package/dist/index.es269.js +43 -158
  189. package/dist/index.es27.js +42 -17
  190. package/dist/index.es270.js +158 -33
  191. package/dist/index.es271.js +34 -2
  192. package/dist/index.es272.js +2 -80
  193. package/dist/index.es273.js +79 -18
  194. package/dist/index.es274.js +19 -2
  195. package/dist/index.es275.js +2 -398
  196. package/dist/index.es276.js +366 -691
  197. package/dist/index.es277.js +720 -280
  198. package/dist/index.es278.js +277 -55
  199. package/dist/index.es279.js +59 -8
  200. package/dist/index.es28.js +30 -15
  201. package/dist/index.es280.js +9 -28
  202. package/dist/index.es281.js +29 -199
  203. package/dist/index.es282.js +199 -4
  204. package/dist/index.es283.js +25 -14
  205. package/dist/index.es284.js +16 -15
  206. package/dist/index.es285.js +8 -16
  207. package/dist/index.es286.js +15 -8
  208. package/dist/index.es287.js +3 -15
  209. package/dist/index.es288.js +4 -3
  210. package/dist/index.es289.js +13 -24
  211. package/dist/index.es29.js +21 -21
  212. package/dist/index.es290.js +15 -29
  213. package/dist/index.es291.js +25 -5
  214. package/dist/index.es292.js +29 -10
  215. package/dist/index.es293.js +5 -5
  216. package/dist/index.es294.js +5 -13
  217. package/dist/index.es295.js +57 -5
  218. package/dist/index.es296.js +27 -6
  219. package/dist/index.es297.js +42 -329
  220. package/dist/index.es298.js +67 -19
  221. package/dist/index.es299.js +38 -4
  222. package/dist/index.es30.js +13 -67
  223. package/dist/index.es300.js +18 -4
  224. package/dist/index.es301.js +68 -3
  225. package/dist/index.es302.js +65 -69
  226. package/dist/index.es303.js +69 -4
  227. package/dist/index.es304.js +68 -4
  228. package/dist/index.es305.js +43 -54
  229. package/dist/index.es306.js +39 -20
  230. package/dist/index.es307.js +50 -38
  231. package/dist/index.es308.js +30 -48
  232. package/dist/index.es309.js +37 -32
  233. package/dist/index.es31.js +18 -24
  234. package/dist/index.es310.js +66 -13
  235. package/dist/index.es311.js +47 -43
  236. package/dist/index.es312.js +76 -47
  237. package/dist/index.es313.js +32 -54
  238. package/dist/index.es314.js +35 -57
  239. package/dist/index.es315.js +39 -38
  240. package/dist/index.es316.js +21 -37
  241. package/dist/index.es317.js +21 -50
  242. package/dist/index.es318.js +21 -40
  243. package/dist/index.es319.js +22 -34
  244. package/dist/index.es32.js +14 -69
  245. package/dist/index.es320.js +21 -63
  246. package/dist/index.es321.js +20 -62
  247. package/dist/index.es322.js +14 -91
  248. package/dist/index.es323.js +37 -38
  249. package/dist/index.es324.js +38 -39
  250. package/dist/index.es325.js +14 -41
  251. package/dist/index.es326.js +14 -25
  252. package/dist/index.es327.js +9 -29
  253. package/dist/index.es328.js +4 -29
  254. package/dist/index.es329.js +13 -31
  255. package/dist/index.es33.js +21 -102
  256. package/dist/index.es330.js +4 -29
  257. package/dist/index.es331.js +6 -29
  258. package/dist/index.es332.js +332 -18
  259. package/dist/index.es333.js +19 -46
  260. package/dist/index.es334.js +4 -46
  261. package/dist/index.es335.js +4 -19
  262. package/dist/index.es336.js +3 -20
  263. package/dist/index.es337.js +72 -2
  264. package/dist/index.es338.js +4 -2
  265. package/dist/index.es339.js +2 -6
  266. package/dist/index.es34.js +67 -72
  267. package/dist/index.es340.js +2 -34
  268. package/dist/index.es341.js +6 -26
  269. package/dist/index.es342.js +34 -18
  270. package/dist/index.es343.js +25 -4
  271. package/dist/index.es344.js +18 -231
  272. package/dist/index.es345.js +5 -100
  273. package/dist/index.es346.js +229 -26
  274. package/dist/index.es347.js +80 -35
  275. package/dist/index.es348.js +26 -332
  276. package/dist/index.es349.js +55 -31
  277. package/dist/index.es35.js +24 -100
  278. package/dist/index.es350.js +332 -15
  279. package/dist/index.es351.js +31 -29
  280. package/dist/index.es352.js +16 -28
  281. package/dist/index.es353.js +29 -5
  282. package/dist/index.es355.js +1 -1
  283. package/dist/index.es358.js +1 -1
  284. package/dist/index.es36.js +71 -46
  285. package/dist/index.es360.js +2 -2
  286. package/dist/index.es362.js +3 -3
  287. package/dist/index.es363.js +2 -2
  288. package/dist/index.es37.js +101 -16
  289. package/dist/index.es38.js +74 -109
  290. package/dist/index.es384.js +2 -5
  291. package/dist/index.es385.js +54 -3
  292. package/dist/index.es386.js +57 -22
  293. package/dist/index.es387.js +27 -108
  294. package/dist/index.es388.js +5 -16
  295. package/dist/index.es389.js +5 -2
  296. package/dist/index.es39.js +100 -9
  297. package/dist/index.es390.js +3 -54
  298. package/dist/index.es391.js +22 -57
  299. package/dist/index.es392.js +104 -513
  300. package/dist/index.es393.js +14 -125
  301. package/dist/index.es394.js +67 -125
  302. package/dist/index.es395.js +30 -67
  303. package/dist/index.es396.js +9 -31
  304. package/dist/index.es397.js +153 -9
  305. package/dist/index.es398.js +97 -142
  306. package/dist/index.es399.js +19 -107
  307. package/dist/index.es40.js +47 -18
  308. package/dist/index.es400.js +100 -67
  309. package/dist/index.es401.js +46 -30
  310. package/dist/index.es402.js +6 -16
  311. package/dist/index.es403.js +2 -141
  312. package/dist/index.es404.js +8 -114
  313. package/dist/index.es405.js +326 -5
  314. package/dist/index.es406.js +50 -2
  315. package/dist/index.es407.js +3 -7
  316. package/dist/index.es408.js +497 -305
  317. package/dist/index.es409.js +125 -48
  318. package/dist/index.es41.js +18 -37
  319. package/dist/index.es410.js +125 -3
  320. package/dist/index.es411.js +67 -19
  321. package/dist/index.es412.js +31 -101
  322. package/dist/index.es413.js +16 -47
  323. package/dist/index.es414.js +141 -2
  324. package/dist/index.es415.js +112 -45
  325. package/dist/index.es416.js +2 -83
  326. package/dist/index.es417.js +45 -12
  327. package/dist/index.es418.js +73 -331
  328. package/dist/index.es419.js +12 -73
  329. package/dist/index.es42.js +108 -16
  330. package/dist/index.es420.js +340 -10
  331. package/dist/index.es421.js +75 -2
  332. package/dist/index.es422.js +11 -8
  333. package/dist/index.es423.js +24 -45
  334. package/dist/index.es424.js +11 -2
  335. package/dist/index.es425.js +33 -6
  336. package/dist/index.es426.js +30 -3
  337. package/dist/index.es427.js +11 -106
  338. package/dist/index.es428.js +2 -25
  339. package/dist/index.es429.js +8 -11
  340. package/dist/index.es43.js +9 -24
  341. package/dist/index.es430.js +45 -32
  342. package/dist/index.es431.js +2 -30
  343. package/dist/index.es432.js +6 -12
  344. package/dist/index.es44.js +17 -149
  345. package/dist/index.es45.js +37 -29
  346. package/dist/index.es450.js +3 -65
  347. package/dist/index.es451.js +104 -66
  348. package/dist/index.es452.js +64 -8
  349. package/dist/index.es453.js +68 -13
  350. package/dist/index.es454.js +8 -59
  351. package/dist/index.es455.js +14 -16
  352. package/dist/index.es456.js +60 -29
  353. package/dist/index.es457.js +5 -11
  354. package/dist/index.es458.js +14 -5
  355. package/dist/index.es459.js +29 -2
  356. package/dist/index.es46.js +15 -93
  357. package/dist/index.es460.js +12 -75
  358. package/dist/index.es461.js +2 -93
  359. package/dist/index.es462.js +73 -49
  360. package/dist/index.es463.js +92 -7
  361. package/dist/index.es464.js +51 -4
  362. package/dist/index.es465.js +7 -51
  363. package/dist/index.es466.js +5 -2
  364. package/dist/index.es467.js +52 -2
  365. package/dist/index.es468.js +2 -43
  366. package/dist/index.es469.js +2 -63
  367. package/dist/index.es47.js +23 -35
  368. package/dist/index.es470.js +41 -17
  369. package/dist/index.es471.js +63 -5
  370. package/dist/index.es472.js +17 -41
  371. package/dist/index.es473.js +5 -5
  372. package/dist/index.es474.js +44 -7
  373. package/dist/index.es475.js +5 -2
  374. package/dist/index.es476.js +8 -4
  375. package/dist/index.es477.js +2 -79
  376. package/dist/index.es478.js +2 -96
  377. package/dist/index.es479.js +77 -12
  378. package/dist/index.es48.js +150 -38
  379. package/dist/index.es480.js +96 -60
  380. package/dist/index.es49.js +29 -6
  381. package/dist/index.es50.js +94 -45
  382. package/dist/index.es51.js +35 -124
  383. package/dist/index.es52.js +36 -28
  384. package/dist/index.es53.js +6 -24
  385. package/dist/index.es54.js +45 -66
  386. package/dist/index.es55.js +124 -79
  387. package/dist/index.es56.js +26 -96
  388. package/dist/index.es57.js +24 -83
  389. package/dist/index.es58.js +68 -2
  390. package/dist/index.es59.js +76 -77
  391. package/dist/index.es60.js +95 -15
  392. package/dist/index.es61.js +81 -47
  393. package/dist/index.es62.js +2 -26
  394. package/dist/index.es63.js +79 -25
  395. package/dist/index.es64.js +20 -35
  396. package/dist/index.es65.js +49 -9
  397. package/dist/index.es66.js +24 -46
  398. package/dist/index.es67.js +27 -76
  399. package/dist/index.es68.js +34 -61
  400. package/dist/index.es69.js +8 -265
  401. package/dist/index.es7.js +1 -1
  402. package/dist/index.es70.js +48 -13
  403. package/dist/index.es71.js +74 -33
  404. package/dist/index.es72.js +62 -11
  405. package/dist/index.es73.js +206 -27
  406. package/dist/index.es757.js +7 -7
  407. package/dist/index.es760.js +14 -4
  408. package/dist/index.es761.js +60 -23
  409. package/dist/index.es762.js +4 -2
  410. package/dist/index.es763.js +23 -2
  411. package/dist/index.es764.js +2 -24
  412. package/dist/index.es765.js +2 -8
  413. package/dist/index.es766.js +21 -64
  414. package/dist/index.es767.js +8 -52
  415. package/dist/index.es768.js +56 -60
  416. package/dist/index.es769.js +52 -5
  417. package/dist/index.es770.js +69 -15
  418. package/dist/index.es773.js +5 -8
  419. package/dist/index.es774.js +15 -54
  420. package/dist/index.es775.js +7 -18
  421. package/dist/index.es776.js +56 -13
  422. package/dist/index.es777.js +18 -27
  423. package/dist/index.es778.js +22 -4
  424. package/dist/index.es779.js +11 -21
  425. package/dist/index.es780.js +27 -6
  426. package/dist/index.es781.js +5 -22
  427. package/dist/index.es782.js +6 -57
  428. package/dist/index.es783.js +49 -26
  429. package/dist/index.es784.js +34 -9
  430. package/dist/index.es785.js +9 -18
  431. package/dist/index.es786.js +14 -8
  432. package/dist/index.es787.js +8 -12
  433. package/dist/index.es788.js +6 -57
  434. package/dist/index.es789.js +21 -9
  435. package/dist/index.es790.js +57 -14
  436. package/dist/index.es791.js +6 -3
  437. package/dist/index.es792.js +19 -28
  438. package/dist/index.es793.js +13 -3
  439. package/dist/index.es794.js +28 -5
  440. package/dist/index.es795.js +3 -71
  441. package/dist/index.es796.js +5 -159
  442. package/dist/index.es797.js +66 -41
  443. package/dist/index.es798.js +152 -164
  444. package/dist/index.es799.js +43 -184
  445. package/dist/index.es80.js +1 -1
  446. package/dist/index.es800.js +107 -82
  447. package/dist/index.es801.js +150 -64
  448. package/dist/index.es802.js +92 -90
  449. package/dist/index.es803.js +97 -47
  450. package/dist/index.es804.js +142 -13
  451. package/dist/index.es805.js +47 -89
  452. package/dist/index.es806.js +13 -12
  453. package/dist/index.es807.js +92 -8
  454. package/dist/index.es808.js +13 -10
  455. package/dist/index.es809.js +8 -55
  456. package/dist/index.es81.js +1 -1
  457. package/dist/index.es810.js +10 -10
  458. package/dist/index.es811.js +55 -8
  459. package/dist/index.es812.js +10 -14
  460. package/dist/index.es813.js +8 -52
  461. package/dist/index.es814.js +14 -80
  462. package/dist/index.es815.js +48 -10
  463. package/dist/index.es816.js +78 -26
  464. package/dist/index.es817.js +14 -4
  465. package/dist/index.es818.js +28 -40
  466. package/dist/index.es819.js +4 -5
  467. package/dist/index.es820.js +37 -20
  468. package/dist/index.es821.js +5 -14
  469. package/dist/index.es822.js +16 -33
  470. package/dist/index.es823.js +14 -4
  471. package/dist/index.es824.js +37 -23
  472. package/dist/index.es825.js +4 -6
  473. package/dist/index.es826.js +23 -38
  474. package/dist/index.es827.js +6 -54
  475. package/dist/index.es828.js +40 -16
  476. package/dist/index.es829.js +55 -7
  477. package/dist/index.es830.js +4 -4
  478. package/dist/index.es831.js +1 -1
  479. package/dist/index.es832.js +3 -3
  480. package/dist/index.es833.js +3 -3
  481. package/dist/index.es834.js +2 -2
  482. package/dist/index.es835.js +17 -10
  483. package/dist/index.es836.js +7 -37
  484. package/dist/index.es837.js +10 -13
  485. package/dist/index.es838.js +36 -59
  486. package/dist/index.es839.js +11 -12
  487. package/dist/index.es84.js +3 -3
  488. package/dist/index.es840.js +62 -0
  489. package/dist/index.es841.js +17 -0
  490. package/dist/index.es85.js +3 -3
  491. package/dist/index.es86.js +1 -1
  492. package/dist/index.es87.js +1 -1
  493. package/dist/index.es88.js +34 -29
  494. package/dist/index.es89.js +46 -9
  495. package/dist/index.es90.js +30 -55
  496. package/dist/index.es91.js +28 -53
  497. package/dist/index.es92.js +12 -92
  498. package/dist/index.es93.js +257 -35
  499. package/dist/index.es94.js +12 -24
  500. package/dist/index.es95.js +9 -30
  501. package/dist/index.es96.js +55 -12
  502. package/dist/index.es97.js +53 -33
  503. package/dist/index.es98.js +92 -46
  504. package/dist/index.es99.js +36 -29
  505. package/dist/style.css +0 -6
  506. package/package.json +15 -11
@@ -1,19 +1,336 @@
1
- import { j as c } from "./index.es84.js";
2
- import { forwardRef as u } from "react";
3
- import { useTreeApi as g } from "./index.es340.js";
4
- var m = function(r, n) {
5
- var o = {};
6
- for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && n.indexOf(t) < 0 && (o[t] = r[t]);
7
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
8
- for (var e = 0, t = Object.getOwnPropertySymbols(r); e < t.length; e++)
9
- n.indexOf(t[e]) < 0 && Object.prototype.propertyIsEnumerable.call(r, t[e]) && (o[t[e]] = r[t[e]]);
10
- return o;
1
+ import Z from "./index.es174.js";
2
+ import U from "./index.es335.js";
3
+ import ee from "./index.es328.js";
4
+ import M from "./index.es423.js";
5
+ import { createElement as W, PureComponent as te } from "react";
6
+ var ie = typeof performance == "object" && typeof performance.now == "function", V = ie ? function() {
7
+ return performance.now();
8
+ } : function() {
9
+ return Date.now();
11
10
  };
12
- const v = u(function(n, o) {
13
- var t, e, i, d, { style: s } = n, l = m(n, ["style"]);
14
- const p = g(), a = (e = (t = p.props.padding) !== null && t !== void 0 ? t : p.props.paddingTop) !== null && e !== void 0 ? e : 0, f = (d = (i = p.props.padding) !== null && i !== void 0 ? i : p.props.paddingBottom) !== null && d !== void 0 ? d : 0;
15
- return c.jsx("div", Object.assign({ ref: o, style: Object.assign(Object.assign({}, s), { height: `${parseFloat(s.height) + a + f}px` }) }, l));
11
+ function $(l) {
12
+ cancelAnimationFrame(l.id);
13
+ }
14
+ function re(l, t) {
15
+ var n = V();
16
+ function c() {
17
+ V() - n >= t ? l.call(null) : u.id = requestAnimationFrame(c);
18
+ }
19
+ var u = {
20
+ id: requestAnimationFrame(c)
21
+ };
22
+ return u;
23
+ }
24
+ var k = -1;
25
+ function q(l) {
26
+ if (l === void 0 && (l = !1), k === -1 || l) {
27
+ var t = document.createElement("div"), n = t.style;
28
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), k = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
29
+ }
30
+ return k;
31
+ }
32
+ var _ = null;
33
+ function H(l) {
34
+ if (l === void 0 && (l = !1), _ === null || l) {
35
+ var t = document.createElement("div"), n = t.style;
36
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
37
+ var c = document.createElement("div"), u = c.style;
38
+ return u.width = "100px", u.height = "100px", t.appendChild(c), document.body.appendChild(t), t.scrollLeft > 0 ? _ = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? _ = "negative" : _ = "positive-ascending"), document.body.removeChild(t), _;
39
+ }
40
+ return _;
41
+ }
42
+ process.env.NODE_ENV;
43
+ var oe = 150, ne = function(t, n) {
44
+ return t;
45
+ }, P = null, R = null;
46
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (P = /* @__PURE__ */ new WeakSet(), R = /* @__PURE__ */ new WeakSet());
47
+ function le(l) {
48
+ var t, n = l.getItemOffset, c = l.getEstimatedTotalSize, u = l.getItemSize, z = l.getOffsetForIndexAndAlignment, S = l.getStartIndexForOffset, b = l.getStopIndexForStartIndex, O = l.initInstanceProps, g = l.shouldResetStyleCacheOnItemSizeChange, m = l.validateProps;
49
+ return t = /* @__PURE__ */ function(I) {
50
+ ee(T, I);
51
+ function T(p) {
52
+ var e;
53
+ return e = I.call(this, p) || this, e._instanceProps = O(e.props, U(e)), e._outerRef = void 0, e._resetIsScrollingTimeoutId = null, e.state = {
54
+ instance: U(e),
55
+ isScrolling: !1,
56
+ scrollDirection: "forward",
57
+ scrollOffset: typeof e.props.initialScrollOffset == "number" ? e.props.initialScrollOffset : 0,
58
+ scrollUpdateWasRequested: !1
59
+ }, e._callOnItemsRendered = void 0, e._callOnItemsRendered = M(function(i, r, o, s) {
60
+ return e.props.onItemsRendered({
61
+ overscanStartIndex: i,
62
+ overscanStopIndex: r,
63
+ visibleStartIndex: o,
64
+ visibleStopIndex: s
65
+ });
66
+ }), e._callOnScroll = void 0, e._callOnScroll = M(function(i, r, o) {
67
+ return e.props.onScroll({
68
+ scrollDirection: i,
69
+ scrollOffset: r,
70
+ scrollUpdateWasRequested: o
71
+ });
72
+ }), e._getItemStyle = void 0, e._getItemStyle = function(i) {
73
+ var r = e.props, o = r.direction, s = r.itemSize, h = r.layout, a = e._getItemStyleCache(g && s, g && h, g && o), d;
74
+ if (a.hasOwnProperty(i))
75
+ d = a[i];
76
+ else {
77
+ var f = n(e.props, i, e._instanceProps), y = u(e.props, i, e._instanceProps), w = o === "horizontal" || h === "horizontal", x = o === "rtl", E = w ? f : 0;
78
+ a[i] = d = {
79
+ position: "absolute",
80
+ left: x ? void 0 : E,
81
+ right: x ? E : void 0,
82
+ top: w ? 0 : f,
83
+ height: w ? "100%" : y,
84
+ width: w ? y : "100%"
85
+ };
86
+ }
87
+ return d;
88
+ }, e._getItemStyleCache = void 0, e._getItemStyleCache = M(function(i, r, o) {
89
+ return {};
90
+ }), e._onScrollHorizontal = function(i) {
91
+ var r = i.currentTarget, o = r.clientWidth, s = r.scrollLeft, h = r.scrollWidth;
92
+ e.setState(function(a) {
93
+ if (a.scrollOffset === s)
94
+ return null;
95
+ var d = e.props.direction, f = s;
96
+ if (d === "rtl")
97
+ switch (H()) {
98
+ case "negative":
99
+ f = -s;
100
+ break;
101
+ case "positive-descending":
102
+ f = h - o - s;
103
+ break;
104
+ }
105
+ return f = Math.max(0, Math.min(f, h - o)), {
106
+ isScrolling: !0,
107
+ scrollDirection: a.scrollOffset < f ? "forward" : "backward",
108
+ scrollOffset: f,
109
+ scrollUpdateWasRequested: !1
110
+ };
111
+ }, e._resetIsScrollingDebounced);
112
+ }, e._onScrollVertical = function(i) {
113
+ var r = i.currentTarget, o = r.clientHeight, s = r.scrollHeight, h = r.scrollTop;
114
+ e.setState(function(a) {
115
+ if (a.scrollOffset === h)
116
+ return null;
117
+ var d = Math.max(0, Math.min(h, s - o));
118
+ return {
119
+ isScrolling: !0,
120
+ scrollDirection: a.scrollOffset < d ? "forward" : "backward",
121
+ scrollOffset: d,
122
+ scrollUpdateWasRequested: !1
123
+ };
124
+ }, e._resetIsScrollingDebounced);
125
+ }, e._outerRefSetter = function(i) {
126
+ var r = e.props.outerRef;
127
+ e._outerRef = i, typeof r == "function" ? r(i) : r != null && typeof r == "object" && r.hasOwnProperty("current") && (r.current = i);
128
+ }, e._resetIsScrollingDebounced = function() {
129
+ e._resetIsScrollingTimeoutId !== null && $(e._resetIsScrollingTimeoutId), e._resetIsScrollingTimeoutId = re(e._resetIsScrolling, oe);
130
+ }, e._resetIsScrolling = function() {
131
+ e._resetIsScrollingTimeoutId = null, e.setState({
132
+ isScrolling: !1
133
+ }, function() {
134
+ e._getItemStyleCache(-1, null);
135
+ });
136
+ }, e;
137
+ }
138
+ T.getDerivedStateFromProps = function(e, i) {
139
+ return ae(e, i), m(e), null;
140
+ };
141
+ var v = T.prototype;
142
+ return v.scrollTo = function(e) {
143
+ e = Math.max(0, e), this.setState(function(i) {
144
+ return i.scrollOffset === e ? null : {
145
+ scrollDirection: i.scrollOffset < e ? "forward" : "backward",
146
+ scrollOffset: e,
147
+ scrollUpdateWasRequested: !0
148
+ };
149
+ }, this._resetIsScrollingDebounced);
150
+ }, v.scrollToItem = function(e, i) {
151
+ i === void 0 && (i = "auto");
152
+ var r = this.props, o = r.itemCount, s = r.layout, h = this.state.scrollOffset;
153
+ e = Math.max(0, Math.min(e, o - 1));
154
+ var a = 0;
155
+ if (this._outerRef) {
156
+ var d = this._outerRef;
157
+ s === "vertical" ? a = d.scrollWidth > d.clientWidth ? q() : 0 : a = d.scrollHeight > d.clientHeight ? q() : 0;
158
+ }
159
+ this.scrollTo(z(this.props, e, i, h, this._instanceProps, a));
160
+ }, v.componentDidMount = function() {
161
+ var e = this.props, i = e.direction, r = e.initialScrollOffset, o = e.layout;
162
+ if (typeof r == "number" && this._outerRef != null) {
163
+ var s = this._outerRef;
164
+ i === "horizontal" || o === "horizontal" ? s.scrollLeft = r : s.scrollTop = r;
165
+ }
166
+ this._callPropsCallbacks();
167
+ }, v.componentDidUpdate = function() {
168
+ var e = this.props, i = e.direction, r = e.layout, o = this.state, s = o.scrollOffset, h = o.scrollUpdateWasRequested;
169
+ if (h && this._outerRef != null) {
170
+ var a = this._outerRef;
171
+ if (i === "horizontal" || r === "horizontal")
172
+ if (i === "rtl")
173
+ switch (H()) {
174
+ case "negative":
175
+ a.scrollLeft = -s;
176
+ break;
177
+ case "positive-ascending":
178
+ a.scrollLeft = s;
179
+ break;
180
+ default:
181
+ var d = a.clientWidth, f = a.scrollWidth;
182
+ a.scrollLeft = f - d - s;
183
+ break;
184
+ }
185
+ else
186
+ a.scrollLeft = s;
187
+ else
188
+ a.scrollTop = s;
189
+ }
190
+ this._callPropsCallbacks();
191
+ }, v.componentWillUnmount = function() {
192
+ this._resetIsScrollingTimeoutId !== null && $(this._resetIsScrollingTimeoutId);
193
+ }, v.render = function() {
194
+ var e = this.props, i = e.children, r = e.className, o = e.direction, s = e.height, h = e.innerRef, a = e.innerElementType, d = e.innerTagName, f = e.itemCount, y = e.itemData, w = e.itemKey, x = w === void 0 ? ne : w, E = e.layout, K = e.outerElementType, j = e.outerTagName, B = e.style, G = e.useIsScrolling, J = e.width, D = this.state.isScrolling, N = o === "horizontal" || E === "horizontal", Q = N ? this._onScrollHorizontal : this._onScrollVertical, F = this._getRangeToRender(), X = F[0], Y = F[1], L = [];
195
+ if (f > 0)
196
+ for (var C = X; C <= Y; C++)
197
+ L.push(W(i, {
198
+ data: y,
199
+ key: x(C, y),
200
+ index: C,
201
+ isScrolling: G ? D : void 0,
202
+ style: this._getItemStyle(C)
203
+ }));
204
+ var A = c(this.props, this._instanceProps);
205
+ return W(K || j || "div", {
206
+ className: r,
207
+ onScroll: Q,
208
+ ref: this._outerRefSetter,
209
+ style: Z({
210
+ position: "relative",
211
+ height: s,
212
+ width: J,
213
+ overflow: "auto",
214
+ WebkitOverflowScrolling: "touch",
215
+ willChange: "transform",
216
+ direction: o
217
+ }, B)
218
+ }, W(a || d || "div", {
219
+ children: L,
220
+ ref: h,
221
+ style: {
222
+ height: N ? "100%" : A,
223
+ pointerEvents: D ? "none" : void 0,
224
+ width: N ? A : "100%"
225
+ }
226
+ }));
227
+ }, v._callPropsCallbacks = function() {
228
+ if (typeof this.props.onItemsRendered == "function") {
229
+ var e = this.props.itemCount;
230
+ if (e > 0) {
231
+ var i = this._getRangeToRender(), r = i[0], o = i[1], s = i[2], h = i[3];
232
+ this._callOnItemsRendered(r, o, s, h);
233
+ }
234
+ }
235
+ if (typeof this.props.onScroll == "function") {
236
+ var a = this.state, d = a.scrollDirection, f = a.scrollOffset, y = a.scrollUpdateWasRequested;
237
+ this._callOnScroll(d, f, y);
238
+ }
239
+ }, v._getRangeToRender = function() {
240
+ var e = this.props, i = e.itemCount, r = e.overscanCount, o = this.state, s = o.isScrolling, h = o.scrollDirection, a = o.scrollOffset;
241
+ if (i === 0)
242
+ return [0, 0, 0, 0];
243
+ var d = S(this.props, a, this._instanceProps), f = b(this.props, d, a, this._instanceProps), y = !s || h === "backward" ? Math.max(1, r) : 1, w = !s || h === "forward" ? Math.max(1, r) : 1;
244
+ return [Math.max(0, d - y), Math.max(0, Math.min(i - 1, f + w)), d, f];
245
+ }, T;
246
+ }(te), t.defaultProps = {
247
+ direction: "ltr",
248
+ itemData: void 0,
249
+ layout: "vertical",
250
+ overscanCount: 2,
251
+ useIsScrolling: !1
252
+ }, t;
253
+ }
254
+ var ae = function(t, n) {
255
+ var c = t.children, u = t.direction, z = t.height, S = t.layout, b = t.innerTagName, O = t.outerTagName, g = t.width, m = n.instance;
256
+ if (process.env.NODE_ENV !== "production") {
257
+ (b != null || O != null) && R && !R.has(m) && (R.add(m), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
258
+ var I = u === "horizontal" || S === "horizontal";
259
+ switch (u) {
260
+ case "horizontal":
261
+ case "vertical":
262
+ P && !P.has(m) && (P.add(m), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
263
+ break;
264
+ case "ltr":
265
+ case "rtl":
266
+ break;
267
+ default:
268
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + u + '" was specified.'));
269
+ }
270
+ switch (S) {
271
+ case "horizontal":
272
+ case "vertical":
273
+ break;
274
+ default:
275
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + S + '" was specified.'));
276
+ }
277
+ if (c == null)
278
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (c === null ? "null" : typeof c) + '" was specified.'));
279
+ if (I && typeof g != "number")
280
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (g === null ? "null" : typeof g) + '" was specified.'));
281
+ if (!I && typeof z != "number")
282
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (z === null ? "null" : typeof z) + '" was specified.'));
283
+ }
284
+ }, fe = /* @__PURE__ */ le({
285
+ getItemOffset: function(t, n) {
286
+ var c = t.itemSize;
287
+ return n * c;
288
+ },
289
+ getItemSize: function(t, n) {
290
+ var c = t.itemSize;
291
+ return c;
292
+ },
293
+ getEstimatedTotalSize: function(t) {
294
+ var n = t.itemCount, c = t.itemSize;
295
+ return c * n;
296
+ },
297
+ getOffsetForIndexAndAlignment: function(t, n, c, u, z, S) {
298
+ var b = t.direction, O = t.height, g = t.itemCount, m = t.itemSize, I = t.layout, T = t.width, v = b === "horizontal" || I === "horizontal", p = v ? T : O, e = Math.max(0, g * m - p), i = Math.min(e, n * m), r = Math.max(0, n * m - p + m + S);
299
+ switch (c === "smart" && (u >= r - p && u <= i + p ? c = "auto" : c = "center"), c) {
300
+ case "start":
301
+ return i;
302
+ case "end":
303
+ return r;
304
+ case "center": {
305
+ var o = Math.round(r + (i - r) / 2);
306
+ return o < Math.ceil(p / 2) ? 0 : o > e + Math.floor(p / 2) ? e : o;
307
+ }
308
+ case "auto":
309
+ default:
310
+ return u >= r && u <= i ? u : u < r ? r : i;
311
+ }
312
+ },
313
+ getStartIndexForOffset: function(t, n) {
314
+ var c = t.itemCount, u = t.itemSize;
315
+ return Math.max(0, Math.min(c - 1, Math.floor(n / u)));
316
+ },
317
+ getStopIndexForStartIndex: function(t, n, c) {
318
+ var u = t.direction, z = t.height, S = t.itemCount, b = t.itemSize, O = t.layout, g = t.width, m = u === "horizontal" || O === "horizontal", I = n * b, T = m ? g : z, v = Math.ceil((T + c - I) / b);
319
+ return Math.max(0, Math.min(
320
+ S - 1,
321
+ n + v - 1
322
+ // -1 is because stop index is inclusive
323
+ ));
324
+ },
325
+ initInstanceProps: function(t) {
326
+ },
327
+ shouldResetStyleCacheOnItemSizeChange: !0,
328
+ validateProps: function(t) {
329
+ var n = t.itemSize;
330
+ if (process.env.NODE_ENV !== "production" && typeof n != "number")
331
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
332
+ }
16
333
  });
17
334
  export {
18
- v as ListInnerElement
335
+ fe as FixedSizeList
19
336
  };
@@ -1,31 +1,33 @@
1
- import { j as a } from "./index.es84.js";
2
- import w, { useRef as x, useCallback as j, useMemo as p, useEffect as N } from "react";
3
- import { useDataUpdates as b, useNodesContext as C, useTreeApi as _ } from "./index.es340.js";
4
- import { useDragHook as E } from "./index.es430.js";
5
- import { useDropHook as F } from "./index.es431.js";
6
- import { useFreshNode as S } from "./index.es432.js";
7
- const O = w.memo(function({ index: c, style: n }) {
8
- b(), C();
9
- const r = _(), e = S(c), t = x(null), l = E(e), d = F(t, e), u = j((o) => {
10
- t.current = o, d(o);
11
- }, [d]), i = r.indent * e.level, m = p(() => ({ paddingLeft: i }), [i]), f = p(() => {
12
- var o, s;
13
- return Object.assign(Object.assign({}, n), { top: parseFloat(n.top) + ((s = (o = r.props.padding) !== null && o !== void 0 ? o : r.props.paddingTop) !== null && s !== void 0 ? s : 0) });
14
- }, [n, r.props.padding, r.props.paddingTop]), g = {
15
- role: "treeitem",
16
- "aria-level": e.level + 1,
17
- "aria-selected": e.isSelected,
18
- style: f,
19
- tabIndex: -1,
20
- className: r.props.rowClassName
21
- };
22
- N(() => {
23
- var o;
24
- !e.isEditing && e.isFocused && ((o = t.current) === null || o === void 0 || o.focus({ preventScroll: !0 }));
25
- }, [e.isEditing, e.isFocused, t.current]);
26
- const R = r.renderNode, v = r.renderRow;
27
- return a.jsx(v, { node: e, innerRef: u, attrs: g, children: a.jsx(R, { node: e, tree: r, style: m, dragHandle: l }) });
28
- });
1
+ import { j as i } from "./index.es84.js";
2
+ import { forwardRef as f } from "react";
3
+ import { useTreeApi as s } from "./index.es342.js";
4
+ import { Cursor as u } from "./index.es424.js";
5
+ var d = function(t, n) {
6
+ var o = {};
7
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (o[e] = t[e]);
8
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
9
+ for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
10
+ n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (o[e[r]] = t[e[r]]);
11
+ return o;
12
+ };
13
+ const j = f(function(n, o) {
14
+ const { children: e } = n, r = d(n, ["children"]), c = s();
15
+ return i.jsxs("div", Object.assign({
16
+ // @ts-ignore
17
+ ref: o
18
+ }, r, { onClick: (l) => {
19
+ l.currentTarget === l.target && c.deselectAll();
20
+ }, children: [i.jsx(a, {}), e] }));
21
+ }), a = () => {
22
+ const t = s();
23
+ return i.jsx("div", { style: {
24
+ height: t.visibleNodes.length * t.rowHeight,
25
+ width: "100%",
26
+ position: "absolute",
27
+ left: "0",
28
+ right: "0"
29
+ }, children: i.jsx(u, {}) });
30
+ };
29
31
  export {
30
- O as RowContainer
32
+ j as ListOuterElement
31
33
  };
@@ -1,31 +1,19 @@
1
- import { __rest as k, __assign as a } from "./index.es289.js";
2
- import * as r from "react";
3
- import { fullWidthClassName as E, zeroRightClassName as I } from "./index.es384.js";
4
- import { effectCar as Z } from "./index.es426.js";
5
- import { useMergeRefs as W } from "./index.es386.js";
6
- var l = function() {
7
- }, m = r.forwardRef(function(e, d) {
8
- var o = r.useRef(null), n = r.useState({
9
- onScrollCapture: l,
10
- onWheelCapture: l,
11
- onTouchMoveCapture: l
12
- }), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, P = e.enabled, R = e.shards, S = e.sideCar, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, s = e.as, g = s === void 0 ? "div" : s, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), B = S, i = W([o, d]), c = a(a({}, _), f);
13
- return r.createElement(
14
- r.Fragment,
15
- null,
16
- P && r.createElement(B, { sideCar: Z, removeScrollBar: C, shards: R, noIsolation: b, inert: w, setCallbacks: h, allowPinchZoom: !!N, lockRef: o }),
17
- u ? r.cloneElement(r.Children.only(t), a(a({}, c), { ref: i })) : r.createElement(g, a({}, c, { className: v, ref: i }), t)
18
- );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: E,
27
- zeroRight: I
1
+ import { j as c } from "./index.es84.js";
2
+ import { forwardRef as u } from "react";
3
+ import { useTreeApi as g } from "./index.es342.js";
4
+ var m = function(r, n) {
5
+ var o = {};
6
+ for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && n.indexOf(t) < 0 && (o[t] = r[t]);
7
+ if (r != null && typeof Object.getOwnPropertySymbols == "function")
8
+ for (var e = 0, t = Object.getOwnPropertySymbols(r); e < t.length; e++)
9
+ n.indexOf(t[e]) < 0 && Object.prototype.propertyIsEnumerable.call(r, t[e]) && (o[t[e]] = r[t[e]]);
10
+ return o;
28
11
  };
12
+ const v = u(function(n, o) {
13
+ var t, e, i, d, { style: s } = n, l = m(n, ["style"]);
14
+ const p = g(), a = (e = (t = p.props.padding) !== null && t !== void 0 ? t : p.props.paddingTop) !== null && e !== void 0 ? e : 0, f = (d = (i = p.props.padding) !== null && i !== void 0 ? i : p.props.paddingBottom) !== null && d !== void 0 ? d : 0;
15
+ return c.jsx("div", Object.assign({ ref: o, style: Object.assign(Object.assign({}, s), { height: `${parseFloat(s.height) + a + f}px` }) }, l));
16
+ });
29
17
  export {
30
- m as RemoveScroll
18
+ v as ListInnerElement
31
19
  };
@@ -1,7 +1,31 @@
1
- import { RemoveScrollSideCar as r } from "./index.es427.js";
2
- import { effectCar as o } from "./index.es426.js";
3
- import { exportSidecar as e } from "./index.es388.js";
4
- const f = e(o, r);
1
+ import { j as a } from "./index.es84.js";
2
+ import w, { useRef as x, useCallback as j, useMemo as p, useEffect as N } from "react";
3
+ import { useDataUpdates as b, useNodesContext as C, useTreeApi as _ } from "./index.es342.js";
4
+ import { useDragHook as E } from "./index.es425.js";
5
+ import { useDropHook as F } from "./index.es426.js";
6
+ import { useFreshNode as S } from "./index.es427.js";
7
+ const O = w.memo(function({ index: c, style: n }) {
8
+ b(), C();
9
+ const r = _(), e = S(c), t = x(null), l = E(e), d = F(t, e), u = j((o) => {
10
+ t.current = o, d(o);
11
+ }, [d]), i = r.indent * e.level, m = p(() => ({ paddingLeft: i }), [i]), f = p(() => {
12
+ var o, s;
13
+ return Object.assign(Object.assign({}, n), { top: parseFloat(n.top) + ((s = (o = r.props.padding) !== null && o !== void 0 ? o : r.props.paddingTop) !== null && s !== void 0 ? s : 0) });
14
+ }, [n, r.props.padding, r.props.paddingTop]), g = {
15
+ role: "treeitem",
16
+ "aria-level": e.level + 1,
17
+ "aria-selected": e.isSelected,
18
+ style: f,
19
+ tabIndex: -1,
20
+ className: r.props.rowClassName
21
+ };
22
+ N(() => {
23
+ var o;
24
+ !e.isEditing && e.isFocused && ((o = t.current) === null || o === void 0 || o.focus({ preventScroll: !0 }));
25
+ }, [e.isEditing, e.isFocused, t.current]);
26
+ const R = r.renderNode, v = r.renderRow;
27
+ return a.jsx(v, { node: e, innerRef: u, attrs: g, children: a.jsx(R, { node: e, tree: r, style: m, dragHandle: l }) });
28
+ });
5
29
  export {
6
- f as default
30
+ O as RowContainer
7
31
  };
@@ -1,4 +1,4 @@
1
- import { __module as g } from "./index.es421.js";
1
+ import { __module as g } from "./index.es428.js";
2
2
  g.exports;
3
3
  (function(b) {
4
4
  const i = (n = 0) => (e) => `\x1B[${38 + n};5;${e}m`, a = (n = 0) => (e, r, o) => `\x1B[${38 + n};2;${e};${r};${o}m`;
@@ -1,5 +1,5 @@
1
1
  import { __exports as t } from "./index.es365.js";
2
- import { a as i } from "./index.es422.js";
2
+ import { a as i } from "./index.es429.js";
3
3
  import { a as p } from "./index.es355.js";
4
4
  Object.defineProperty(t, "__esModule", {
5
5
  value: !0
@@ -1,49 +1,74 @@
1
- import { j as s } from "./index.es84.js";
2
- import { DialogRoot as N, DialogTrigger as u, DialogContent as f, DialogHeader as C, DialogTitle as R, DialogDescription as T, DialogFooter as y } from "./index.es35.js";
3
- import { cn as E } from "./index.es74.js";
4
- const k = ({
5
- trigger: l,
6
- title: i,
7
- description: a,
1
+ import { j as e } from "./index.es84.js";
2
+ import { useId as g } from "react";
3
+ import { useControllableState as C } from "./index.es91.js";
4
+ import j from "./index.es95.js";
5
+ import { cn as u } from "./index.es74.js";
6
+ import { Label as v } from "./index.es46.js";
7
+ const y = ({
8
+ checked: d,
9
+ onChange: n,
10
+ defaultChecked: l = !1,
11
+ className: h,
12
+ size: a = 16,
8
13
  children: o,
9
- footer: e,
10
- triggerProps: r,
11
- headerProps: c,
12
- headerClassName: m,
13
- titleProps: n,
14
- titleClassName: t,
15
- descriptionProps: d,
16
- descriptionClassName: g,
17
- contentProps: x,
18
- contentClassName: h,
19
- footerProps: j,
20
- footerClassName: D,
21
- ...p
22
- }) => /* @__PURE__ */ s.jsxs(N, { ...p, children: [
23
- /* @__PURE__ */ s.jsx(u, { asChild: !0, ...r, children: l }),
24
- /* @__PURE__ */ s.jsxs(f, { className: h, ...x, children: [
25
- /* @__PURE__ */ s.jsxs(
26
- C,
27
- {
28
- className: E("empty:ui-hidden", m),
29
- ...c,
30
- children: [
31
- i && /* @__PURE__ */ s.jsx(R, { className: t, ...n, children: i }),
32
- a && /* @__PURE__ */ s.jsx(
33
- T,
34
- {
35
- className: g,
36
- ...d,
37
- children: a
38
- }
39
- )
40
- ]
41
- }
42
- ),
43
- o,
44
- e && /* @__PURE__ */ s.jsx(y, { className: D, ...j, children: e })
45
- ] })
46
- ] });
14
+ containerClassName: b,
15
+ containerProps: m,
16
+ ...t
17
+ }) => {
18
+ const k = g(), [i, r] = C({
19
+ defaultProp: l,
20
+ prop: d,
21
+ onChange: n
22
+ }), f = (s) => {
23
+ s.stopPropagation(), !t.disabled && r((x) => !x);
24
+ }, p = i ? "checked" : "unchecked", c = t.id ?? k;
25
+ return /* @__PURE__ */ e.jsxs(
26
+ "div",
27
+ {
28
+ ...m,
29
+ className: u("ui-flex ui-gap-x-2 ui-items-center", b),
30
+ children: [
31
+ /* @__PURE__ */ e.jsxs(
32
+ "button",
33
+ {
34
+ disabled: t.disabled,
35
+ onClick: f,
36
+ "data-state": p,
37
+ type: "button",
38
+ style: {
39
+ width: a,
40
+ height: a
41
+ },
42
+ className: u(
43
+ "ui-peer ui-aspect-square ui-space-x-2 ui-shrink-0 ui-rounded-sm ui-border ui-border-[var(--checkbox)] ui-ring-offset-background",
44
+ "focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
45
+ "data-[state=checked]:ui-bg-[var(--checkbox)] data-[state=checked]:ui-text-primary-foreground data-[state=checked]:ui-border-transparent",
46
+ "data-[state=unchecked]:ui-bg-background data-[state=unchecked]:ui-text-muted-foreground data-[state=unchecked]:ui-border-input",
47
+ h
48
+ ),
49
+ children: [
50
+ i && /* @__PURE__ */ e.jsx(j, { className: "ui-pt-[2px] ui-w-full ui-h-full" }),
51
+ /* @__PURE__ */ e.jsx(
52
+ "input",
53
+ {
54
+ ...t,
55
+ id: c,
56
+ checked: i,
57
+ onChange: (s) => r(s.currentTarget.checked),
58
+ type: "checkbox",
59
+ className: "ui-sr-only",
60
+ "aria-hidden": !0
61
+ }
62
+ )
63
+ ]
64
+ }
65
+ ),
66
+ o && /* @__PURE__ */ e.jsx(v, { htmlFor: c, children: o })
67
+ ]
68
+ }
69
+ );
70
+ };
71
+ y.displayName = "Checkbox";
47
72
  export {
48
- k as Dialog
73
+ y as Checkbox
49
74
  };
@@ -1,6 +1,6 @@
1
1
  import { __exports as n } from "./index.es367.js";
2
- import "./index.es423.js";
3
- import { __exports as y } from "./index.es424.js";
2
+ import "./index.es430.js";
3
+ import { __exports as y } from "./index.es431.js";
4
4
  Object.defineProperty(n, "__esModule", {
5
5
  value: !0
6
6
  });