@sprawlify/primitives 0.0.62 → 0.0.63

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 (351) hide show
  1. package/dist/anatomy.d.cts +1 -1
  2. package/dist/anatomy.d.mts +1 -1
  3. package/dist/anatomy.mjs +1 -1
  4. package/dist/{aria-hidden-kcYiyWLo.cjs → aria-hidden-CHWfuKk2.cjs} +1 -1
  5. package/dist/{aria-hidden-CVIz-P9c.mjs → aria-hidden-Csp0PkO_.mjs} +1 -1
  6. package/dist/aria-hidden.cjs +2 -2
  7. package/dist/aria-hidden.mjs +2 -2
  8. package/dist/{auto-resize-C55IrFLZ.cjs → auto-resize-BL8ul-hb.cjs} +1 -1
  9. package/dist/{auto-resize-R0jCGBHZ.mjs → auto-resize-jPUJLPa4.mjs} +1 -1
  10. package/dist/auto-resize.cjs +2 -2
  11. package/dist/auto-resize.mjs +2 -2
  12. package/dist/{collection-CjwZd09Z.mjs → collection-DHyEg4g5.mjs} +30 -30
  13. package/dist/{collection-Q52RkxUe.cjs → collection-Fkg4kgPn.cjs} +30 -30
  14. package/dist/collection.cjs +2 -2
  15. package/dist/collection.d.cts +4 -4
  16. package/dist/collection.d.mts +4 -4
  17. package/dist/collection.mjs +2 -2
  18. package/dist/{color-utils-BekVyYIJ.mjs → color-utils-CaqLeEog.mjs} +3 -3
  19. package/dist/{color-utils-BVq_rh8L.cjs → color-utils-eUlz6Gq4.cjs} +3 -3
  20. package/dist/color-utils.cjs +2 -2
  21. package/dist/color-utils.d.cts +1 -1
  22. package/dist/color-utils.d.mts +1 -1
  23. package/dist/color-utils.mjs +2 -2
  24. package/dist/{core-CsVTCpQ_.cjs → core-CHsDFMV3.cjs} +7 -7
  25. package/dist/{core-CujC6Y2H.mjs → core-owywCQ2e.mjs} +7 -7
  26. package/dist/core.cjs +3 -3
  27. package/dist/core.d.cts +2 -2
  28. package/dist/core.d.mts +2 -2
  29. package/dist/core.mjs +3 -3
  30. package/dist/{date-utils-_Hu9b5fQ.cjs → date-utils-BDBOiT_6.cjs} +22 -23
  31. package/dist/{date-utils-d1Jt6z5f.mjs → date-utils-LnVS7q0z.mjs} +22 -23
  32. package/dist/date-utils.cjs +1 -1
  33. package/dist/date-utils.d.cts +6 -6
  34. package/dist/date-utils.d.mts +1 -1
  35. package/dist/date-utils.mjs +1 -1
  36. package/dist/{defineProperty-bTDhmYM0.mjs → defineProperty-DR_NxfHn.mjs} +8 -8
  37. package/dist/{defineProperty-xA1FicUs.cjs → defineProperty-_bOnJOii.cjs} +8 -8
  38. package/dist/{dismissable-D0YyXTJv.mjs → dismissable-BlZazbp3.mjs} +7 -7
  39. package/dist/{dismissable-D9NEAGMU.cjs → dismissable-DSFGuAU6.cjs} +7 -7
  40. package/dist/{dismissable-layer-C39y-V3t.d.mts → dismissable-layer-B2bSyA07.d.cts} +2 -2
  41. package/dist/{dismissable-layer-D-7fwQL8.d.cts → dismissable-layer-CpUMMV1f.d.mts} +2 -2
  42. package/dist/dismissable.cjs +4 -4
  43. package/dist/dismissable.d.cts +2 -2
  44. package/dist/dismissable.d.mts +2 -2
  45. package/dist/dismissable.mjs +4 -4
  46. package/dist/{dom-query-xZuxOsD4.cjs → dom-query-CAFhX43H.cjs} +25 -25
  47. package/dist/{dom-query-CUb85Z22.mjs → dom-query-CQFBCdpo.mjs} +25 -25
  48. package/dist/dom-query.cjs +1 -1
  49. package/dist/dom-query.d.cts +7 -7
  50. package/dist/dom-query.d.mts +7 -7
  51. package/dist/dom-query.mjs +1 -1
  52. package/dist/{file-utils-G9_tYexo.cjs → file-utils-Bkp18nrt.cjs} +6 -6
  53. package/dist/{file-utils-5E6-AtJ9.mjs → file-utils-lcjM-YjV.mjs} +6 -6
  54. package/dist/file-utils.cjs +1 -1
  55. package/dist/file-utils.d.cts +1 -1
  56. package/dist/file-utils.d.mts +1 -1
  57. package/dist/file-utils.mjs +1 -1
  58. package/dist/{focus-trap-KZbY4M-m.mjs → focus-trap-BXT0oBtL.mjs} +7 -7
  59. package/dist/{focus-trap-DcDcihd5.cjs → focus-trap-zaIiaoqE.cjs} +7 -7
  60. package/dist/focus-trap.cjs +2 -2
  61. package/dist/focus-trap.mjs +2 -2
  62. package/dist/{focus-visible-Ddho9PEA.cjs → focus-visible-3pXNNo-l.cjs} +1 -1
  63. package/dist/{focus-visible-Bm2uoacD.mjs → focus-visible-DjGDsaLn.mjs} +1 -1
  64. package/dist/focus-visible.cjs +2 -2
  65. package/dist/focus-visible.mjs +2 -2
  66. package/dist/highlight-word.cjs +3 -3
  67. package/dist/highlight-word.mjs +3 -3
  68. package/dist/hotkeys.cjs +8 -8
  69. package/dist/hotkeys.mjs +8 -8
  70. package/dist/{i18n-utils-B3KjZ58Q.cjs → i18n-utils-CK27xonZ.cjs} +1 -1
  71. package/dist/{i18n-utils-85PCPQ3H.mjs → i18n-utils-KuoJj66z.mjs} +1 -1
  72. package/dist/i18n-utils.cjs +2 -2
  73. package/dist/i18n-utils.mjs +2 -2
  74. package/dist/{index-BuUzJjaP.d.mts → index-CafmAesU.d.mts} +3 -3
  75. package/dist/{index-Bqw3r34-.d.cts → index-D1U_WMQ9.d.cts} +3 -3
  76. package/dist/{interact-outside-xKQjln5u.mjs → interact-outside-CRmkKF6k.mjs} +4 -4
  77. package/dist/{interact-outside-xGMuVVaa.cjs → interact-outside-Dk2otQqs.cjs} +4 -4
  78. package/dist/interact-outside.cjs +3 -3
  79. package/dist/interact-outside.d.cts +1 -1
  80. package/dist/interact-outside.d.mts +1 -1
  81. package/dist/interact-outside.mjs +3 -3
  82. package/dist/json-tree-utils.cjs +30 -30
  83. package/dist/json-tree-utils.mjs +30 -30
  84. package/dist/{list-collection-BvMwDNHf.d.cts → list-collection-C9XUe75n.d.mts} +1 -1
  85. package/dist/{list-collection-CTt1eong.d.mts → list-collection-DwMgPYoA.d.cts} +1 -1
  86. package/dist/live-region.d.cts +1 -1
  87. package/dist/live-region.d.mts +1 -1
  88. package/dist/live-region.mjs +1 -1
  89. package/dist/machines/accordion/index.cjs +34 -34
  90. package/dist/machines/accordion/index.d.cts +3 -3
  91. package/dist/machines/accordion/index.d.mts +3 -3
  92. package/dist/machines/accordion/index.mjs +36 -36
  93. package/dist/machines/angle-slider/index.cjs +13 -13
  94. package/dist/machines/angle-slider/index.d.cts +4 -4
  95. package/dist/machines/angle-slider/index.d.mts +4 -4
  96. package/dist/machines/angle-slider/index.mjs +15 -15
  97. package/dist/machines/async-list/index.cjs +3 -3
  98. package/dist/machines/async-list/index.d.cts +1 -1
  99. package/dist/machines/async-list/index.d.mts +1 -1
  100. package/dist/machines/async-list/index.mjs +3 -3
  101. package/dist/machines/avatar/index.cjs +3 -3
  102. package/dist/machines/avatar/index.d.cts +3 -3
  103. package/dist/machines/avatar/index.d.mts +3 -3
  104. package/dist/machines/avatar/index.mjs +5 -5
  105. package/dist/machines/bottom-sheet/index.cjs +15 -15
  106. package/dist/machines/bottom-sheet/index.d.cts +6 -6
  107. package/dist/machines/bottom-sheet/index.d.mts +6 -6
  108. package/dist/machines/bottom-sheet/index.mjs +17 -17
  109. package/dist/machines/carousel/index.cjs +38 -38
  110. package/dist/machines/carousel/index.d.cts +4 -4
  111. package/dist/machines/carousel/index.d.mts +4 -4
  112. package/dist/machines/carousel/index.mjs +40 -40
  113. package/dist/machines/checkbox/index.cjs +11 -11
  114. package/dist/machines/checkbox/index.d.cts +4 -4
  115. package/dist/machines/checkbox/index.d.mts +4 -4
  116. package/dist/machines/checkbox/index.mjs +13 -13
  117. package/dist/machines/clipboard/index.cjs +7 -7
  118. package/dist/machines/clipboard/index.d.cts +4 -4
  119. package/dist/machines/clipboard/index.d.mts +4 -4
  120. package/dist/machines/clipboard/index.mjs +9 -9
  121. package/dist/machines/collapsible/index.cjs +3 -3
  122. package/dist/machines/collapsible/index.d.cts +3 -3
  123. package/dist/machines/collapsible/index.d.mts +3 -3
  124. package/dist/machines/collapsible/index.mjs +5 -5
  125. package/dist/machines/color-picker/index.cjs +58 -58
  126. package/dist/machines/color-picker/index.d.cts +7 -7
  127. package/dist/machines/color-picker/index.d.mts +7 -7
  128. package/dist/machines/color-picker/index.mjs +60 -60
  129. package/dist/machines/combobox/index.cjs +108 -108
  130. package/dist/machines/combobox/index.d.cts +8 -8
  131. package/dist/machines/combobox/index.d.mts +8 -8
  132. package/dist/machines/combobox/index.mjs +110 -110
  133. package/dist/machines/date-picker/index.cjs +113 -113
  134. package/dist/machines/date-picker/index.d.cts +8 -8
  135. package/dist/machines/date-picker/index.d.mts +8 -8
  136. package/dist/machines/date-picker/index.mjs +120 -120
  137. package/dist/machines/dialog/index.cjs +12 -12
  138. package/dist/machines/dialog/index.d.cts +6 -6
  139. package/dist/machines/dialog/index.d.mts +6 -6
  140. package/dist/machines/dialog/index.mjs +14 -14
  141. package/dist/machines/editable/index.cjs +14 -14
  142. package/dist/machines/editable/index.d.cts +5 -5
  143. package/dist/machines/editable/index.d.mts +5 -5
  144. package/dist/machines/editable/index.mjs +16 -16
  145. package/dist/machines/file-upload/index.cjs +27 -27
  146. package/dist/machines/file-upload/index.d.cts +5 -5
  147. package/dist/machines/file-upload/index.d.mts +5 -5
  148. package/dist/machines/file-upload/index.mjs +29 -29
  149. package/dist/machines/floating-panel/index.cjs +25 -25
  150. package/dist/machines/floating-panel/index.d.cts +5 -5
  151. package/dist/machines/floating-panel/index.d.mts +5 -5
  152. package/dist/machines/floating-panel/index.mjs +27 -27
  153. package/dist/machines/hover-card/index.cjs +11 -11
  154. package/dist/machines/hover-card/index.d.cts +6 -6
  155. package/dist/machines/hover-card/index.d.mts +6 -6
  156. package/dist/machines/hover-card/index.mjs +13 -13
  157. package/dist/machines/image-cropper/index.cjs +39 -39
  158. package/dist/machines/image-cropper/index.d.cts +4 -4
  159. package/dist/machines/image-cropper/index.d.mts +4 -4
  160. package/dist/machines/image-cropper/index.mjs +41 -41
  161. package/dist/machines/listbox/index.cjs +94 -94
  162. package/dist/machines/listbox/index.d.cts +8 -8
  163. package/dist/machines/listbox/index.d.mts +8 -8
  164. package/dist/machines/listbox/index.mjs +96 -96
  165. package/dist/machines/marquee/index.cjs +11 -11
  166. package/dist/machines/marquee/index.d.cts +6 -6
  167. package/dist/machines/marquee/index.d.mts +6 -6
  168. package/dist/machines/marquee/index.mjs +13 -13
  169. package/dist/machines/menu/index.cjs +59 -59
  170. package/dist/machines/menu/index.d.cts +9 -9
  171. package/dist/machines/menu/index.d.mts +9 -9
  172. package/dist/machines/menu/index.mjs +61 -61
  173. package/dist/machines/navigation-menu/index.cjs +66 -66
  174. package/dist/machines/navigation-menu/index.d.cts +4 -4
  175. package/dist/machines/navigation-menu/index.d.mts +4 -4
  176. package/dist/machines/navigation-menu/index.mjs +68 -68
  177. package/dist/machines/number-input/index.cjs +10 -10
  178. package/dist/machines/number-input/index.d.cts +4 -4
  179. package/dist/machines/number-input/index.d.mts +4 -4
  180. package/dist/machines/number-input/index.mjs +12 -12
  181. package/dist/machines/pagination/index.cjs +12 -12
  182. package/dist/machines/pagination/index.d.cts +4 -4
  183. package/dist/machines/pagination/index.d.mts +4 -4
  184. package/dist/machines/pagination/index.mjs +14 -14
  185. package/dist/machines/password-input/index.cjs +6 -6
  186. package/dist/machines/password-input/index.d.cts +4 -4
  187. package/dist/machines/password-input/index.d.mts +4 -4
  188. package/dist/machines/password-input/index.mjs +8 -8
  189. package/dist/machines/pin-input/index.cjs +9 -9
  190. package/dist/machines/pin-input/index.d.cts +4 -4
  191. package/dist/machines/pin-input/index.d.mts +4 -4
  192. package/dist/machines/pin-input/index.mjs +11 -11
  193. package/dist/machines/popover/index.cjs +16 -16
  194. package/dist/machines/popover/index.d.cts +7 -7
  195. package/dist/machines/popover/index.d.mts +7 -7
  196. package/dist/machines/popover/index.mjs +18 -18
  197. package/dist/machines/presence/index.cjs +6 -6
  198. package/dist/machines/presence/index.d.cts +2 -2
  199. package/dist/machines/presence/index.d.mts +2 -2
  200. package/dist/machines/presence/index.mjs +7 -7
  201. package/dist/machines/progress/index.cjs +19 -19
  202. package/dist/machines/progress/index.d.cts +4 -4
  203. package/dist/machines/progress/index.d.mts +4 -4
  204. package/dist/machines/progress/index.mjs +21 -21
  205. package/dist/machines/qr-code/index.cjs +7 -7
  206. package/dist/machines/qr-code/index.d.cts +4 -4
  207. package/dist/machines/qr-code/index.d.mts +4 -4
  208. package/dist/machines/qr-code/index.mjs +9 -9
  209. package/dist/machines/radio-group/index.cjs +39 -39
  210. package/dist/machines/radio-group/index.d.cts +4 -4
  211. package/dist/machines/radio-group/index.d.mts +4 -4
  212. package/dist/machines/radio-group/index.mjs +41 -41
  213. package/dist/machines/rating-group/index.cjs +16 -16
  214. package/dist/machines/rating-group/index.d.cts +4 -4
  215. package/dist/machines/rating-group/index.d.mts +4 -4
  216. package/dist/machines/rating-group/index.mjs +18 -18
  217. package/dist/machines/scroll-area/index.cjs +13 -13
  218. package/dist/machines/scroll-area/index.d.cts +4 -4
  219. package/dist/machines/scroll-area/index.d.mts +4 -4
  220. package/dist/machines/scroll-area/index.mjs +15 -15
  221. package/dist/machines/select/index.cjs +50 -50
  222. package/dist/machines/select/index.d.cts +9 -9
  223. package/dist/machines/select/index.d.mts +9 -9
  224. package/dist/machines/select/index.mjs +52 -52
  225. package/dist/machines/signature-pad/index.cjs +11 -11
  226. package/dist/machines/signature-pad/index.d.cts +4 -4
  227. package/dist/machines/signature-pad/index.d.mts +4 -4
  228. package/dist/machines/signature-pad/index.mjs +13 -13
  229. package/dist/machines/slider/index.cjs +42 -43
  230. package/dist/machines/slider/index.d.cts +4 -4
  231. package/dist/machines/slider/index.d.mts +4 -4
  232. package/dist/machines/slider/index.mjs +44 -45
  233. package/dist/machines/splitter/index.cjs +62 -62
  234. package/dist/machines/splitter/index.d.cts +3 -3
  235. package/dist/machines/splitter/index.d.mts +3 -3
  236. package/dist/machines/splitter/index.mjs +64 -64
  237. package/dist/machines/steps/index.cjs +27 -27
  238. package/dist/machines/steps/index.d.cts +4 -4
  239. package/dist/machines/steps/index.d.mts +4 -4
  240. package/dist/machines/steps/index.mjs +29 -29
  241. package/dist/machines/switch/index.cjs +10 -10
  242. package/dist/machines/switch/index.d.cts +4 -4
  243. package/dist/machines/switch/index.d.mts +4 -4
  244. package/dist/machines/switch/index.mjs +12 -12
  245. package/dist/machines/tabs/index.cjs +14 -14
  246. package/dist/machines/tabs/index.d.cts +4 -4
  247. package/dist/machines/tabs/index.d.mts +4 -4
  248. package/dist/machines/tabs/index.mjs +16 -16
  249. package/dist/machines/tags-input/index.cjs +30 -30
  250. package/dist/machines/tags-input/index.d.cts +6 -6
  251. package/dist/machines/tags-input/index.d.mts +6 -6
  252. package/dist/machines/tags-input/index.mjs +33 -33
  253. package/dist/machines/timer/index.cjs +19 -19
  254. package/dist/machines/timer/index.d.cts +4 -4
  255. package/dist/machines/timer/index.d.mts +4 -4
  256. package/dist/machines/timer/index.mjs +21 -21
  257. package/dist/machines/toast/index.cjs +11 -11
  258. package/dist/machines/toast/index.d.cts +5 -6
  259. package/dist/machines/toast/index.d.mts +5 -6
  260. package/dist/machines/toast/index.mjs +12 -12
  261. package/dist/machines/toggle/index.cjs +5 -5
  262. package/dist/machines/toggle/index.d.cts +3 -3
  263. package/dist/machines/toggle/index.d.mts +3 -3
  264. package/dist/machines/toggle/index.mjs +7 -7
  265. package/dist/machines/toggle-group/index.cjs +16 -16
  266. package/dist/machines/toggle-group/index.d.cts +3 -3
  267. package/dist/machines/toggle-group/index.d.mts +3 -3
  268. package/dist/machines/toggle-group/index.mjs +18 -18
  269. package/dist/machines/tooltip/index.cjs +12 -12
  270. package/dist/machines/tooltip/index.d.cts +5 -5
  271. package/dist/machines/tooltip/index.d.mts +5 -5
  272. package/dist/machines/tooltip/index.mjs +14 -14
  273. package/dist/machines/tour/index.cjs +19 -19
  274. package/dist/machines/tour/index.d.cts +7 -7
  275. package/dist/machines/tour/index.d.mts +7 -7
  276. package/dist/machines/tour/index.mjs +21 -21
  277. package/dist/machines/tree-view/index.cjs +161 -161
  278. package/dist/machines/tree-view/index.d.cts +7 -7
  279. package/dist/machines/tree-view/index.d.mts +7 -7
  280. package/dist/machines/tree-view/index.mjs +163 -163
  281. package/dist/{popper-TNUpC0Kp.cjs → popper-CY3ptPbm.cjs} +4 -4
  282. package/dist/{popper-DbfXVgrC.mjs → popper-DxgokNha.mjs} +4 -4
  283. package/dist/popper.cjs +3 -3
  284. package/dist/popper.d.cts +1 -1
  285. package/dist/popper.d.mts +1 -1
  286. package/dist/popper.mjs +3 -3
  287. package/dist/{rect-utils-CDBAit19.mjs → rect-utils-BobE6Wut.mjs} +9 -9
  288. package/dist/{rect-utils-ChBPj9XR.cjs → rect-utils-DtqZwNtZ.cjs} +9 -9
  289. package/dist/rect-utils.cjs +1 -1
  290. package/dist/rect-utils.d.cts +1 -1
  291. package/dist/rect-utils.d.mts +1 -1
  292. package/dist/rect-utils.mjs +1 -1
  293. package/dist/{remove-scroll-DNoftRvo.mjs → remove-scroll-DcPV6nZy.mjs} +1 -1
  294. package/dist/{remove-scroll-D5aUrYvL.cjs → remove-scroll-DgJgF1C5.cjs} +1 -1
  295. package/dist/{scroll-snap-tDsdAemJ.mjs → scroll-snap-D_M1Q8ZQ.mjs} +1 -1
  296. package/dist/{scroll-snap-DhVLyRe-.cjs → scroll-snap-DpEzlrHP.cjs} +1 -1
  297. package/dist/scroll-snap.cjs +2 -2
  298. package/dist/scroll-snap.mjs +2 -2
  299. package/dist/{selection-JDFmyke7.d.mts → selection-CPTdpru8.d.mts} +2 -2
  300. package/dist/{selection-vng1guNc.d.cts → selection-wfybIxD3.d.cts} +2 -2
  301. package/dist/{store-DDjfrUhd.cjs → store-B9Ewi-zx.cjs} +4 -4
  302. package/dist/{store-CpMJ6RZR.mjs → store-DMXvGOAu.mjs} +4 -4
  303. package/dist/store.cjs +1 -1
  304. package/dist/store.mjs +1 -1
  305. package/dist/{tree-collection-CmehimuO.d.cts → tree-collection-1g4DXuqa.d.mts} +1 -2
  306. package/dist/{tree-collection-CqXQBHwY.d.mts → tree-collection-CPcsMvje.d.cts} +1 -2
  307. package/dist/{types-DL5AIQk5.d.mts → types-BM4oVvZZ.d.mts} +10 -10
  308. package/dist/{types-DejIu60O.d.cts → types-fB7F7BBP.d.cts} +10 -10
  309. package/dist/types.d.cts +1 -1
  310. package/dist/types.d.mts +1 -1
  311. package/dist/types.mjs +1 -1
  312. package/dist/{utils-B4_qn2dt.cjs → utils-CJsQZljH.cjs} +21 -21
  313. package/dist/{utils-DSBXwmDm.mjs → utils-Vs04rt8f.mjs} +21 -21
  314. package/dist/utils.cjs +1 -1
  315. package/dist/utils.d.cts +1 -1
  316. package/dist/utils.d.mts +1 -1
  317. package/dist/utils.mjs +1 -1
  318. package/package.json +1 -1
  319. /package/dist/{color-Bcy-SLQ1.d.mts → color-B3sgFAa6.d.mts} +0 -0
  320. /package/dist/{color-Bj20c2qw.d.cts → color-BhaNI8oR.d.cts} +0 -0
  321. /package/dist/{create-anatomy-DHVOqZET.d.mts → create-anatomy-9eFQs7lO.d.cts} +0 -0
  322. /package/dist/{create-anatomy-CArN8dVu.mjs → create-anatomy-BVqM_FJ6.mjs} +0 -0
  323. /package/dist/{create-anatomy-smWrirg1.d.cts → create-anatomy-UNZ__hxH.d.mts} +0 -0
  324. /package/dist/{create-props-SRSjdUTq.mjs → create-props-Dtoa4OUk.mjs} +0 -0
  325. /package/dist/{data-url-C3ITPVRX.d.cts → data-url-BrR6WHXH.d.cts} +0 -0
  326. /package/dist/{data-url-mcVoUiET.d.mts → data-url-lOYkmlVX.d.mts} +0 -0
  327. /package/dist/{functions-7V6veSov.d.cts → functions-Box4pxDB.d.cts} +0 -0
  328. /package/dist/{functions-CjitT5Gr.d.mts → functions-Du4c1Rcz.d.mts} +0 -0
  329. /package/dist/{index-CygfPLvT.d.mts → index-B2rsdD3v.d.cts} +0 -0
  330. /package/dist/{index-Bvn6ocEE.d.mts → index-CXu0elLS.d.mts} +0 -0
  331. /package/dist/{index-C9-feK5c.d.cts → index-Cf0hysnI.d.cts} +0 -0
  332. /package/dist/{index-Owca7uxB.d.cts → index-DIJJrhP_.d.mts} +0 -0
  333. /package/dist/{index-BTi1wETB.d.mts → index-DJ1MHM3z.d.mts} +0 -0
  334. /package/dist/{index-BqhWpjZh.d.mts → index-DLbWwJUT.d.mts} +0 -0
  335. /package/dist/{live-region-BcSdQIM8.mjs → live-region-CBp2K1JK.mjs} +0 -0
  336. /package/dist/{node-CHGS3acf.d.mts → node-BGWAyUGo.d.mts} +0 -0
  337. /package/dist/{node-CSsuPZVZ.d.cts → node-D8Ztr9Hg.d.cts} +0 -0
  338. /package/dist/{raf-BV1049GE.d.mts → raf-B8md2utS.d.mts} +0 -0
  339. /package/dist/{raf-Cd2FGy0z.d.cts → raf-DWPAf0Nd.d.cts} +0 -0
  340. /package/dist/{typeahead-BdNwVP09.d.cts → typeahead-BhNtyjQC.d.cts} +0 -0
  341. /package/dist/{typeahead-DMSwLv1e.d.mts → typeahead-D4TUCBly.d.mts} +0 -0
  342. /package/dist/{types-D5ziaMrd.d.cts → types-B--gFZVP.d.cts} +0 -0
  343. /package/dist/{types-DddL75YY.d.cts → types-C1F7Y-Hc.d.cts} +0 -0
  344. /package/dist/{types-CADkcKtr.d.cts → types-CBWaEVU4.d.cts} +0 -0
  345. /package/dist/{types-D-ZRl1jP.d.mts → types-CW-uU8Nz.d.mts} +0 -0
  346. /package/dist/{types-Df8ZhdY-.d.mts → types-D0tsc4Jo.d.mts} +0 -0
  347. /package/dist/{types-GxLIgJib.d.cts → types-DTZZ5wsp.d.cts} +0 -0
  348. /package/dist/{types-J14X3oxU.d.mts → types-Dw1I6cFP.d.mts} +0 -0
  349. /package/dist/{types-F-0xFywm.d.cts → types-oR0sELNB.d.cts} +0 -0
  350. /package/dist/{wait-for-ChpX25fU.d.cts → wait-for-CVZu6XNU.d.mts} +0 -0
  351. /package/dist/{wait-for-DxY1szJ6.d.mts → wait-for-D5gBQyam.d.cts} +0 -0
@@ -1,9 +1,9 @@
1
- import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
2
- import { W as raf, bt as isLeftClick, cn as isEditableElement, ht as isComposingEvent, on as isAnchorElement, ot as setElementValue, pt as getEventTarget, s as getByTypeahead, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-CUb85Z22.mjs";
3
- import { At as remove, Dt as partition, Mt as toArray, Nt as uniq, _t as diff, ft as isEqual, mt as addOrRemove, nt as isArray, pt as add, t as ensure, u as createSplitProps, vt as first, wt as last } from "../../utils-DSBXwmDm.mjs";
4
- import { n as filePathToTree, t as TreeCollection } from "../../collection-CjwZd09Z.mjs";
5
- import { a as createMachine, i as createGuards } from "../../core-CujC6Y2H.mjs";
6
- import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
1
+ import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
2
+ import { W as raf, bt as isLeftClick, cn as isEditableElement, ht as isComposingEvent, on as isAnchorElement, ot as setElementValue, pt as getEventTarget, s as getByTypeahead, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
3
+ import { At as remove, Dt as partition, Mt as toArray, Nt as uniq, _t as diff, ft as isEqual, mt as addOrRemove, nt as isArray, pt as add, t as ensure, u as createSplitProps, vt as first, wt as last } from "../../utils-Vs04rt8f.mjs";
4
+ import { n as filePathToTree, t as TreeCollection } from "../../collection-DHyEg4g5.mjs";
5
+ import { a as createMachine, i as createGuards } from "../../core-owywCQ2e.mjs";
6
+ import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
7
7
 
8
8
  //#region src/machines/tree-view/tree-view.anatomy.ts
9
9
  const anatomy = createAnatomy("tree-view").parts("branch", "branchContent", "branchControl", "branchIndentGuide", "branchIndicator", "branchText", "branchTrigger", "item", "itemIndicator", "itemText", "label", "nodeCheckbox", "nodeRenameInput", "root", "tree");
@@ -38,24 +38,24 @@ const getRenameInputEl = (ctx, value) => {
38
38
 
39
39
  //#endregion
40
40
  //#region src/machines/tree-view/utils/checked-state.ts
41
- function getCheckedState(collection$1, node, checkedValue) {
42
- const value = collection$1.getNodeValue(node);
43
- if (!collection$1.isBranchNode(node)) return checkedValue.includes(value);
44
- const childValues = collection$1.getDescendantValues(value);
41
+ function getCheckedState(collection, node, checkedValue) {
42
+ const value = collection.getNodeValue(node);
43
+ if (!collection.isBranchNode(node)) return checkedValue.includes(value);
44
+ const childValues = collection.getDescendantValues(value);
45
45
  const allChecked = childValues.every((v) => checkedValue.includes(v));
46
46
  const someChecked = childValues.some((v) => checkedValue.includes(v));
47
47
  return allChecked ? true : someChecked ? "indeterminate" : false;
48
48
  }
49
- function toggleBranchChecked(collection$1, value, checkedValue) {
50
- const childValues = collection$1.getDescendantValues(value);
49
+ function toggleBranchChecked(collection, value, checkedValue) {
50
+ const childValues = collection.getDescendantValues(value);
51
51
  return uniq(childValues.every((child) => checkedValue.includes(child)) ? remove(checkedValue, ...childValues) : add(checkedValue, ...childValues));
52
52
  }
53
- function getCheckedValueMap(collection$1, checkedValue) {
53
+ function getCheckedValueMap(collection, checkedValue) {
54
54
  const map = /* @__PURE__ */ new Map();
55
- collection$1.visit({ onEnter: (node) => {
56
- const value = collection$1.getNodeValue(node);
57
- const isBranch = collection$1.isBranchNode(node);
58
- const checked = getCheckedState(collection$1, node, checkedValue);
55
+ collection.visit({ onEnter: (node) => {
56
+ const value = collection.getNodeValue(node);
57
+ const isBranch = collection.isBranchNode(node);
58
+ const checked = getCheckedState(collection, node, checkedValue);
59
59
  map.set(value, {
60
60
  type: isBranch ? "branch" : "leaf",
61
61
  checked
@@ -68,7 +68,7 @@ function getCheckedValueMap(collection$1, checkedValue) {
68
68
  //#region src/machines/tree-view/tree-view.connect.ts
69
69
  function connect(service, normalize) {
70
70
  const { context, scope, computed, prop, send } = service;
71
- const collection$1 = prop("collection");
71
+ const collection = prop("collection");
72
72
  const expandedValue = Array.from(context.get("expandedValue"));
73
73
  const selectedValue = Array.from(context.get("selectedValue"));
74
74
  const checkedValue = Array.from(context.get("checkedValue"));
@@ -77,33 +77,33 @@ function connect(service, normalize) {
77
77
  const loadingStatus = context.get("loadingStatus");
78
78
  const renamingValue = context.get("renamingValue");
79
79
  const skip = ({ indexPath }) => {
80
- return collection$1.getValuePath(indexPath).slice(0, -1).some((value) => !expandedValue.includes(value));
80
+ return collection.getValuePath(indexPath).slice(0, -1).some((value) => !expandedValue.includes(value));
81
81
  };
82
- const firstNode = collection$1.getFirstNode(void 0, { skip });
83
- const firstNodeValue = firstNode ? collection$1.getNodeValue(firstNode) : null;
84
- function getNodeState(props$1) {
85
- const { node, indexPath } = props$1;
86
- const value = collection$1.getNodeValue(node);
82
+ const firstNode = collection.getFirstNode(void 0, { skip });
83
+ const firstNodeValue = firstNode ? collection.getNodeValue(firstNode) : null;
84
+ function getNodeState(props) {
85
+ const { node, indexPath } = props;
86
+ const value = collection.getNodeValue(node);
87
87
  return {
88
88
  id: getNodeId(scope, value),
89
89
  value,
90
90
  indexPath,
91
- valuePath: collection$1.getValuePath(indexPath),
91
+ valuePath: collection.getValuePath(indexPath),
92
92
  disabled: Boolean(node.disabled),
93
93
  focused: focusedValue == null ? firstNodeValue === value : focusedValue === value,
94
94
  selected: selectedValue.includes(value),
95
95
  expanded: expandedValue.includes(value),
96
96
  loading: loadingStatus[value] === "loading",
97
97
  depth: indexPath.length,
98
- isBranch: collection$1.isBranchNode(node),
98
+ isBranch: collection.isBranchNode(node),
99
99
  renaming: renamingValue === value,
100
100
  get checked() {
101
- return getCheckedState(collection$1, node, checkedValue);
101
+ return getCheckedState(collection, node, checkedValue);
102
102
  }
103
103
  };
104
104
  }
105
105
  return {
106
- collection: collection$1,
106
+ collection,
107
107
  expandedValue,
108
108
  selectedValue,
109
109
  checkedValue,
@@ -124,7 +124,7 @@ function connect(service, normalize) {
124
124
  send({ type: "CHECKED.CLEAR" });
125
125
  },
126
126
  getCheckedMap() {
127
- return getCheckedValueMap(collection$1, checkedValue);
127
+ return getCheckedValueMap(collection, checkedValue);
128
128
  },
129
129
  expand(value) {
130
130
  send({
@@ -158,20 +158,20 @@ function connect(service, normalize) {
158
158
  focusNode(scope, value);
159
159
  },
160
160
  selectParent(value) {
161
- const parentNode = collection$1.getParentNode(value);
161
+ const parentNode = collection.getParentNode(value);
162
162
  if (!parentNode) return;
163
163
  send({
164
164
  type: "SELECTED.SET",
165
- value: add(selectedValue, collection$1.getNodeValue(parentNode)),
165
+ value: add(selectedValue, collection.getNodeValue(parentNode)),
166
166
  src: "select.parent"
167
167
  });
168
168
  },
169
169
  expandParent(value) {
170
- const parentNode = collection$1.getParentNode(value);
170
+ const parentNode = collection.getParentNode(value);
171
171
  if (!parentNode) return;
172
172
  send({
173
173
  type: "EXPANDED.SET",
174
- value: add(expandedValue, collection$1.getNodeValue(parentNode)),
174
+ value: add(expandedValue, collection.getNodeValue(parentNode)),
175
175
  src: "expand.parent"
176
176
  });
177
177
  },
@@ -241,102 +241,102 @@ function connect(service, normalize) {
241
241
  }
242
242
  const isBranchNode = node.matches("[data-part=branch-control]");
243
243
  const keyMap = {
244
- ArrowDown(event$1) {
245
- if (isModifierKey(event$1)) return;
246
- event$1.preventDefault();
244
+ ArrowDown(event) {
245
+ if (isModifierKey(event)) return;
246
+ event.preventDefault();
247
247
  send({
248
248
  type: "NODE.ARROW_DOWN",
249
249
  id: nodeId,
250
- shiftKey: event$1.shiftKey
250
+ shiftKey: event.shiftKey
251
251
  });
252
252
  },
253
- ArrowUp(event$1) {
254
- if (isModifierKey(event$1)) return;
255
- event$1.preventDefault();
253
+ ArrowUp(event) {
254
+ if (isModifierKey(event)) return;
255
+ event.preventDefault();
256
256
  send({
257
257
  type: "NODE.ARROW_UP",
258
258
  id: nodeId,
259
- shiftKey: event$1.shiftKey
259
+ shiftKey: event.shiftKey
260
260
  });
261
261
  },
262
- ArrowLeft(event$1) {
263
- if (isModifierKey(event$1) || node.dataset.disabled) return;
264
- event$1.preventDefault();
262
+ ArrowLeft(event) {
263
+ if (isModifierKey(event) || node.dataset.disabled) return;
264
+ event.preventDefault();
265
265
  send({
266
266
  type: isBranchNode ? "BRANCH_NODE.ARROW_LEFT" : "NODE.ARROW_LEFT",
267
267
  id: nodeId
268
268
  });
269
269
  },
270
- ArrowRight(event$1) {
270
+ ArrowRight(event) {
271
271
  if (!isBranchNode || node.dataset.disabled) return;
272
- event$1.preventDefault();
272
+ event.preventDefault();
273
273
  send({
274
274
  type: "BRANCH_NODE.ARROW_RIGHT",
275
275
  id: nodeId
276
276
  });
277
277
  },
278
- Home(event$1) {
279
- if (isModifierKey(event$1)) return;
280
- event$1.preventDefault();
278
+ Home(event) {
279
+ if (isModifierKey(event)) return;
280
+ event.preventDefault();
281
281
  send({
282
282
  type: "NODE.HOME",
283
283
  id: nodeId,
284
- shiftKey: event$1.shiftKey
284
+ shiftKey: event.shiftKey
285
285
  });
286
286
  },
287
- End(event$1) {
288
- if (isModifierKey(event$1)) return;
289
- event$1.preventDefault();
287
+ End(event) {
288
+ if (isModifierKey(event)) return;
289
+ event.preventDefault();
290
290
  send({
291
291
  type: "NODE.END",
292
292
  id: nodeId,
293
- shiftKey: event$1.shiftKey
293
+ shiftKey: event.shiftKey
294
294
  });
295
295
  },
296
- Space(event$1) {
296
+ Space(event) {
297
297
  if (node.dataset.disabled) return;
298
298
  if (isTypingAhead) send({
299
299
  type: "TREE.TYPEAHEAD",
300
- key: event$1.key
300
+ key: event.key
301
301
  });
302
- else keyMap.Enter?.(event$1);
302
+ else keyMap.Enter?.(event);
303
303
  },
304
- Enter(event$1) {
304
+ Enter(event) {
305
305
  if (node.dataset.disabled) return;
306
- if (isAnchorElement(target) && isModifierKey(event$1)) return;
306
+ if (isAnchorElement(target) && isModifierKey(event)) return;
307
307
  send({
308
308
  type: isBranchNode ? "BRANCH_NODE.CLICK" : "NODE.CLICK",
309
309
  id: nodeId,
310
310
  src: "keyboard"
311
311
  });
312
- if (!isAnchorElement(target)) event$1.preventDefault();
312
+ if (!isAnchorElement(target)) event.preventDefault();
313
313
  },
314
- "*"(event$1) {
314
+ "*"(event) {
315
315
  if (node.dataset.disabled) return;
316
- event$1.preventDefault();
316
+ event.preventDefault();
317
317
  send({
318
318
  type: "SIBLINGS.EXPAND",
319
319
  id: nodeId
320
320
  });
321
321
  },
322
- a(event$1) {
323
- if (!event$1.metaKey || node.dataset.disabled) return;
324
- event$1.preventDefault();
322
+ a(event) {
323
+ if (!event.metaKey || node.dataset.disabled) return;
324
+ event.preventDefault();
325
325
  send({
326
326
  type: "SELECTED.ALL",
327
327
  moveFocus: true
328
328
  });
329
329
  },
330
- F2(event$1) {
330
+ F2(event) {
331
331
  if (node.dataset.disabled) return;
332
332
  const canRenameFn = prop("canRename");
333
333
  if (!canRenameFn) return;
334
- const indexPath = collection$1.getIndexPath(nodeId);
334
+ const indexPath = collection.getIndexPath(nodeId);
335
335
  if (indexPath) {
336
- const node$1 = collection$1.at(indexPath);
337
- if (node$1 && !canRenameFn(node$1, indexPath)) return;
336
+ const node = collection.at(indexPath);
337
+ if (node && !canRenameFn(node, indexPath)) return;
338
338
  }
339
- event$1.preventDefault();
339
+ event.preventDefault();
340
340
  send({
341
341
  type: "NODE.RENAME",
342
342
  value: nodeId
@@ -359,14 +359,14 @@ function connect(service, normalize) {
359
359
  });
360
360
  },
361
361
  getNodeState,
362
- getItemProps(props$1) {
363
- const nodeState = getNodeState(props$1);
362
+ getItemProps(props) {
363
+ const nodeState = getNodeState(props);
364
364
  return normalize.element({
365
365
  ...parts.item.attrs,
366
366
  id: nodeState.id,
367
367
  dir: prop("dir"),
368
368
  "data-ownedby": getTreeId(scope),
369
- "data-path": props$1.indexPath.join("/"),
369
+ "data-path": props.indexPath.join("/"),
370
370
  "data-value": nodeState.value,
371
371
  tabIndex: nodeState.focused ? 0 : -1,
372
372
  "data-focus": dataAttr(nodeState.focused),
@@ -403,8 +403,8 @@ function connect(service, normalize) {
403
403
  }
404
404
  });
405
405
  },
406
- getItemTextProps(props$1) {
407
- const itemState = getNodeState(props$1);
406
+ getItemTextProps(props) {
407
+ const itemState = getNodeState(props);
408
408
  return normalize.element({
409
409
  ...parts.itemText.attrs,
410
410
  "data-disabled": dataAttr(itemState.disabled),
@@ -412,8 +412,8 @@ function connect(service, normalize) {
412
412
  "data-focus": dataAttr(itemState.focused)
413
413
  });
414
414
  },
415
- getItemIndicatorProps(props$1) {
416
- const itemState = getNodeState(props$1);
415
+ getItemIndicatorProps(props) {
416
+ const itemState = getNodeState(props);
417
417
  return normalize.element({
418
418
  ...parts.itemIndicator.attrs,
419
419
  "aria-hidden": true,
@@ -423,8 +423,8 @@ function connect(service, normalize) {
423
423
  hidden: !itemState.selected
424
424
  });
425
425
  },
426
- getBranchProps(props$1) {
427
- const nodeState = getNodeState(props$1);
426
+ getBranchProps(props) {
427
+ const nodeState = getNodeState(props);
428
428
  return normalize.element({
429
429
  ...parts.branch.attrs,
430
430
  "data-depth": nodeState.depth,
@@ -435,7 +435,7 @@ function connect(service, normalize) {
435
435
  "data-value": nodeState.value,
436
436
  "aria-level": nodeState.depth,
437
437
  "aria-selected": nodeState.disabled ? void 0 : nodeState.selected,
438
- "data-path": props$1.indexPath.join("/"),
438
+ "data-path": props.indexPath.join("/"),
439
439
  "data-selected": dataAttr(nodeState.selected),
440
440
  "aria-expanded": nodeState.expanded,
441
441
  "data-state": nodeState.expanded ? "open" : "closed",
@@ -446,8 +446,8 @@ function connect(service, normalize) {
446
446
  style: { "--depth": nodeState.depth }
447
447
  });
448
448
  },
449
- getBranchIndicatorProps(props$1) {
450
- const nodeState = getNodeState(props$1);
449
+ getBranchIndicatorProps(props) {
450
+ const nodeState = getNodeState(props);
451
451
  return normalize.element({
452
452
  ...parts.branchIndicator.attrs,
453
453
  "aria-hidden": true,
@@ -458,8 +458,8 @@ function connect(service, normalize) {
458
458
  "data-loading": dataAttr(nodeState.loading)
459
459
  });
460
460
  },
461
- getBranchTriggerProps(props$1) {
462
- const nodeState = getNodeState(props$1);
461
+ getBranchTriggerProps(props) {
462
+ const nodeState = getNodeState(props);
463
463
  return normalize.element({
464
464
  ...parts.branchTrigger.attrs,
465
465
  role: "button",
@@ -479,15 +479,15 @@ function connect(service, normalize) {
479
479
  }
480
480
  });
481
481
  },
482
- getBranchControlProps(props$1) {
483
- const nodeState = getNodeState(props$1);
482
+ getBranchControlProps(props) {
483
+ const nodeState = getNodeState(props);
484
484
  return normalize.element({
485
485
  ...parts.branchControl.attrs,
486
486
  role: "button",
487
487
  id: nodeState.id,
488
488
  dir: prop("dir"),
489
489
  tabIndex: nodeState.focused ? 0 : -1,
490
- "data-path": props$1.indexPath.join("/"),
490
+ "data-path": props.indexPath.join("/"),
491
491
  "data-state": nodeState.expanded ? "open" : "closed",
492
492
  "data-disabled": dataAttr(nodeState.disabled),
493
493
  "data-selected": dataAttr(nodeState.selected),
@@ -520,8 +520,8 @@ function connect(service, normalize) {
520
520
  }
521
521
  });
522
522
  },
523
- getBranchTextProps(props$1) {
524
- const nodeState = getNodeState(props$1);
523
+ getBranchTextProps(props) {
524
+ const nodeState = getNodeState(props);
525
525
  return normalize.element({
526
526
  ...parts.branchText.attrs,
527
527
  dir: prop("dir"),
@@ -530,28 +530,28 @@ function connect(service, normalize) {
530
530
  "data-loading": dataAttr(nodeState.loading)
531
531
  });
532
532
  },
533
- getBranchContentProps(props$1) {
534
- const nodeState = getNodeState(props$1);
533
+ getBranchContentProps(props) {
534
+ const nodeState = getNodeState(props);
535
535
  return normalize.element({
536
536
  ...parts.branchContent.attrs,
537
537
  role: "group",
538
538
  dir: prop("dir"),
539
539
  "data-state": nodeState.expanded ? "open" : "closed",
540
540
  "data-depth": nodeState.depth,
541
- "data-path": props$1.indexPath.join("/"),
541
+ "data-path": props.indexPath.join("/"),
542
542
  "data-value": nodeState.value,
543
543
  hidden: !nodeState.expanded
544
544
  });
545
545
  },
546
- getBranchIndentGuideProps(props$1) {
547
- const nodeState = getNodeState(props$1);
546
+ getBranchIndentGuideProps(props) {
547
+ const nodeState = getNodeState(props);
548
548
  return normalize.element({
549
549
  ...parts.branchIndentGuide.attrs,
550
550
  "data-depth": nodeState.depth
551
551
  });
552
552
  },
553
- getNodeCheckboxProps(props$1) {
554
- const nodeState = getNodeState(props$1);
553
+ getNodeCheckboxProps(props) {
554
+ const nodeState = getNodeState(props);
555
555
  const checkedState = nodeState.checked;
556
556
  return normalize.element({
557
557
  ...parts.nodeCheckbox.attrs,
@@ -574,8 +574,8 @@ function connect(service, normalize) {
574
574
  }
575
575
  });
576
576
  },
577
- getNodeRenameInputProps(props$1) {
578
- const nodeState = getNodeState(props$1);
577
+ getNodeRenameInputProps(props) {
578
+ const nodeState = getNodeState(props);
579
579
  return normalize.input({
580
580
  ...parts.nodeRenameInput.attrs,
581
581
  id: getRenameInputId(scope, nodeState.value),
@@ -620,10 +620,10 @@ function expandBranches(params, values) {
620
620
  const [loadedValues, loadingValues] = partition(values, (value) => loadingStatus[value] === "loaded");
621
621
  if (loadedValues.length > 0) context.set("expandedValue", (prev) => uniq(add(prev, ...loadedValues)));
622
622
  if (loadingValues.length === 0) return;
623
- const collection$1 = prop("collection");
623
+ const collection = prop("collection");
624
624
  const [nodeWithChildren, nodeWithoutChildren] = partition(loadingValues, (id) => {
625
- const node = collection$1.findNode(id);
626
- return collection$1.getNodeChildren(node).length > 0;
625
+ const node = collection.findNode(id);
626
+ return collection.getNodeChildren(node).length > 0;
627
627
  });
628
628
  if (nodeWithChildren.length > 0) context.set("expandedValue", (prev) => uniq(add(prev, ...nodeWithChildren)));
629
629
  if (nodeWithoutChildren.length === 0) return;
@@ -635,12 +635,12 @@ function expandBranches(params, values) {
635
635
  }), {})
636
636
  }));
637
637
  const nodesToLoad = nodeWithoutChildren.map((id) => {
638
- const indexPath = collection$1.getIndexPath(id);
638
+ const indexPath = collection.getIndexPath(id);
639
639
  return {
640
640
  id,
641
641
  indexPath,
642
- valuePath: collection$1.getValuePath(indexPath),
643
- node: collection$1.findNode(id)
642
+ valuePath: collection.getValuePath(indexPath),
643
+ node: collection.findNode(id)
644
644
  };
645
645
  });
646
646
  const pendingAborts = refs.get("pendingAborts");
@@ -662,16 +662,16 @@ function expandBranches(params, values) {
662
662
  });
663
663
  });
664
664
  Promise.allSettled(proms).then((results) => {
665
- const loadedValues$1 = [];
665
+ const loadedValues = [];
666
666
  const nodeWithErrors = [];
667
667
  const nextLoadingStatus = context.get("loadingStatus");
668
- let collection$2 = prop("collection");
668
+ let collection = prop("collection");
669
669
  results.forEach((result, index) => {
670
670
  const { id, indexPath, node, valuePath } = nodesToLoad[index];
671
671
  if (result.status === "fulfilled") {
672
672
  nextLoadingStatus[id] = "loaded";
673
- loadedValues$1.push(id);
674
- collection$2 = collection$2.replace(indexPath, {
673
+ loadedValues.push(id);
674
+ collection = collection.replace(indexPath, {
675
675
  ...node,
676
676
  children: result.value
677
677
  });
@@ -687,9 +687,9 @@ function expandBranches(params, values) {
687
687
  }
688
688
  });
689
689
  context.set("loadingStatus", nextLoadingStatus);
690
- if (loadedValues$1.length) {
691
- context.set("expandedValue", (prev) => uniq(add(prev, ...loadedValues$1)));
692
- prop("onLoadChildrenComplete")?.({ collection: collection$2 });
690
+ if (loadedValues.length) {
691
+ context.set("expandedValue", (prev) => uniq(add(prev, ...loadedValues)));
692
+ prop("onLoadChildrenComplete")?.({ collection });
693
693
  }
694
694
  if (nodeWithErrors.length) prop("onLoadChildrenError")?.({ nodes: nodeWithErrors });
695
695
  });
@@ -708,7 +708,7 @@ function skipFn(params) {
708
708
  //#region src/machines/tree-view/tree-view.machine.ts
709
709
  const { and } = createGuards();
710
710
  const machine = createMachine({
711
- props({ props: props$1 }) {
711
+ props({ props }) {
712
712
  return {
713
713
  selectionMode: "single",
714
714
  collection: collection.empty(),
@@ -716,7 +716,7 @@ const machine = createMachine({
716
716
  expandOnClick: true,
717
717
  defaultExpandedValue: [],
718
718
  defaultSelectedValue: [],
719
- ...props$1
719
+ ...props
720
720
  };
721
721
  },
722
722
  initialState() {
@@ -973,54 +973,54 @@ const machine = createMachine({
973
973
  },
974
974
  focusTreeFirstNode(params) {
975
975
  const { prop, scope } = params;
976
- const collection$1 = prop("collection");
977
- const firstNode = collection$1.getFirstNode(void 0, { skip: skipFn(params) });
976
+ const collection = prop("collection");
977
+ const firstNode = collection.getFirstNode(void 0, { skip: skipFn(params) });
978
978
  if (!firstNode) return;
979
- const firstValue = collection$1.getNodeValue(firstNode);
979
+ const firstValue = collection.getNodeValue(firstNode);
980
980
  if (scrollToNode(params, firstValue)) raf(() => focusNode(scope, firstValue));
981
981
  else focusNode(scope, firstValue);
982
982
  },
983
983
  focusTreeLastNode(params) {
984
984
  const { prop, scope } = params;
985
- const collection$1 = prop("collection");
986
- const lastNode = collection$1.getLastNode(void 0, { skip: skipFn(params) });
987
- const lastValue = collection$1.getNodeValue(lastNode);
985
+ const collection = prop("collection");
986
+ const lastNode = collection.getLastNode(void 0, { skip: skipFn(params) });
987
+ const lastValue = collection.getNodeValue(lastNode);
988
988
  if (scrollToNode(params, lastValue)) raf(() => focusNode(scope, lastValue));
989
989
  else focusNode(scope, lastValue);
990
990
  },
991
991
  focusBranchFirstNode(params) {
992
992
  const { event, prop, scope } = params;
993
- const collection$1 = prop("collection");
994
- const branchNode = collection$1.findNode(event.id);
995
- const firstNode = collection$1.getFirstNode(branchNode, { skip: skipFn(params) });
993
+ const collection = prop("collection");
994
+ const branchNode = collection.findNode(event.id);
995
+ const firstNode = collection.getFirstNode(branchNode, { skip: skipFn(params) });
996
996
  if (!firstNode) return;
997
- const firstValue = collection$1.getNodeValue(firstNode);
997
+ const firstValue = collection.getNodeValue(firstNode);
998
998
  if (scrollToNode(params, firstValue)) raf(() => focusNode(scope, firstValue));
999
999
  else focusNode(scope, firstValue);
1000
1000
  },
1001
1001
  focusTreeNextNode(params) {
1002
1002
  const { event, prop, scope } = params;
1003
- const collection$1 = prop("collection");
1004
- const nextNode = collection$1.getNextNode(event.id, { skip: skipFn(params) });
1003
+ const collection = prop("collection");
1004
+ const nextNode = collection.getNextNode(event.id, { skip: skipFn(params) });
1005
1005
  if (!nextNode) return;
1006
- const nextValue = collection$1.getNodeValue(nextNode);
1006
+ const nextValue = collection.getNodeValue(nextNode);
1007
1007
  if (scrollToNode(params, nextValue)) raf(() => focusNode(scope, nextValue));
1008
1008
  else focusNode(scope, nextValue);
1009
1009
  },
1010
1010
  focusTreePrevNode(params) {
1011
1011
  const { event, prop, scope } = params;
1012
- const collection$1 = prop("collection");
1013
- const prevNode = collection$1.getPreviousNode(event.id, { skip: skipFn(params) });
1012
+ const collection = prop("collection");
1013
+ const prevNode = collection.getPreviousNode(event.id, { skip: skipFn(params) });
1014
1014
  if (!prevNode) return;
1015
- const prevValue = collection$1.getNodeValue(prevNode);
1015
+ const prevValue = collection.getNodeValue(prevNode);
1016
1016
  if (scrollToNode(params, prevValue)) raf(() => focusNode(scope, prevValue));
1017
1017
  else focusNode(scope, prevValue);
1018
1018
  },
1019
1019
  focusBranchNode(params) {
1020
1020
  const { event, prop, scope } = params;
1021
- const collection$1 = prop("collection");
1022
- const parentNode = collection$1.getParentNode(event.id);
1023
- const parentValue = parentNode ? collection$1.getNodeValue(parentNode) : void 0;
1021
+ const collection = prop("collection");
1022
+ const parentNode = collection.getParentNode(event.id);
1023
+ const parentValue = parentNode ? collection.getNodeValue(parentNode) : void 0;
1024
1024
  if (!parentValue) return;
1025
1025
  if (scrollToNode(params, parentValue)) raf(() => focusNode(scope, parentValue));
1026
1026
  else focusNode(scope, parentValue);
@@ -1030,9 +1030,9 @@ const machine = createMachine({
1030
1030
  },
1031
1031
  focusMatchedNode(params) {
1032
1032
  const { context, prop, refs, event, scope, computed } = params;
1033
- const node = getByTypeahead(computed("visibleNodes").map(({ node: node$1 }) => ({
1034
- textContent: prop("collection").stringifyNode(node$1),
1035
- id: prop("collection").getNodeValue(node$1)
1033
+ const node = getByTypeahead(computed("visibleNodes").map(({ node }) => ({
1034
+ textContent: prop("collection").stringifyNode(node),
1035
+ id: prop("collection").getNodeValue(node)
1036
1036
  })), {
1037
1037
  state: refs.get("typeaheadState"),
1038
1038
  activeId: context.get("focusedValue"),
@@ -1052,20 +1052,20 @@ const machine = createMachine({
1052
1052
  },
1053
1053
  expandSiblingBranches(params) {
1054
1054
  const { context, event, prop } = params;
1055
- const collection$1 = prop("collection");
1056
- const indexPath = collection$1.getIndexPath(event.id);
1055
+ const collection = prop("collection");
1056
+ const indexPath = collection.getIndexPath(event.id);
1057
1057
  if (!indexPath) return;
1058
- expandBranches(params, diff(collection$1.getSiblingNodes(indexPath).map((node) => collection$1.getNodeValue(node)), context.get("expandedValue")));
1058
+ expandBranches(params, diff(collection.getSiblingNodes(indexPath).map((node) => collection.getNodeValue(node)), context.get("expandedValue")));
1059
1059
  },
1060
1060
  extendSelectionToNode(params) {
1061
1061
  const { context, event, prop, computed } = params;
1062
- const collection$1 = prop("collection");
1063
- const anchorValue = first(context.get("selectedValue")) || collection$1.getNodeValue(collection$1.getFirstNode());
1062
+ const collection = prop("collection");
1063
+ const anchorValue = first(context.get("selectedValue")) || collection.getNodeValue(collection.getFirstNode());
1064
1064
  const targetValue = event.id;
1065
1065
  let values = [anchorValue, targetValue];
1066
1066
  let hits = 0;
1067
1067
  computed("visibleNodes").forEach(({ node }) => {
1068
- const nodeValue = collection$1.getNodeValue(node);
1068
+ const nodeValue = collection.getNodeValue(node);
1069
1069
  if (hits === 1) values.push(nodeValue);
1070
1070
  if (nodeValue === anchorValue || nodeValue === targetValue) hits++;
1071
1071
  });
@@ -1073,11 +1073,11 @@ const machine = createMachine({
1073
1073
  },
1074
1074
  extendSelectionToNextNode(params) {
1075
1075
  const { context, event, prop } = params;
1076
- const collection$1 = prop("collection");
1077
- const nextNode = collection$1.getNextNode(event.id, { skip: skipFn(params) });
1076
+ const collection = prop("collection");
1077
+ const nextNode = collection.getNextNode(event.id, { skip: skipFn(params) });
1078
1078
  if (!nextNode) return;
1079
1079
  const values = new Set(context.get("selectedValue"));
1080
- const nextValue = collection$1.getNodeValue(nextNode);
1080
+ const nextValue = collection.getNodeValue(nextNode);
1081
1081
  if (nextValue == null) return;
1082
1082
  if (values.has(event.id) && values.has(nextValue)) values.delete(event.id);
1083
1083
  else if (!values.has(nextValue)) values.add(nextValue);
@@ -1085,11 +1085,11 @@ const machine = createMachine({
1085
1085
  },
1086
1086
  extendSelectionToPrevNode(params) {
1087
1087
  const { context, event, prop } = params;
1088
- const collection$1 = prop("collection");
1089
- const prevNode = collection$1.getPreviousNode(event.id, { skip: skipFn(params) });
1088
+ const collection = prop("collection");
1089
+ const prevNode = collection.getPreviousNode(event.id, { skip: skipFn(params) });
1090
1090
  if (!prevNode) return;
1091
1091
  const values = new Set(context.get("selectedValue"));
1092
- const prevValue = collection$1.getNodeValue(prevNode);
1092
+ const prevValue = collection.getNodeValue(prevNode);
1093
1093
  if (prevValue == null) return;
1094
1094
  if (values.has(event.id) && values.has(prevValue)) values.delete(event.id);
1095
1095
  else if (!values.has(prevValue)) values.add(prevValue);
@@ -1097,13 +1097,13 @@ const machine = createMachine({
1097
1097
  },
1098
1098
  extendSelectionToFirstNode(params) {
1099
1099
  const { context, prop } = params;
1100
- const collection$1 = prop("collection");
1100
+ const collection = prop("collection");
1101
1101
  const currentSelection = first(context.get("selectedValue"));
1102
1102
  const values = [];
1103
- collection$1.visit({
1103
+ collection.visit({
1104
1104
  skip: skipFn(params),
1105
1105
  onEnter: (node) => {
1106
- const nodeValue = collection$1.getNodeValue(node);
1106
+ const nodeValue = collection.getNodeValue(node);
1107
1107
  values.push(nodeValue);
1108
1108
  if (nodeValue === currentSelection) return "stop";
1109
1109
  }
@@ -1112,14 +1112,14 @@ const machine = createMachine({
1112
1112
  },
1113
1113
  extendSelectionToLastNode(params) {
1114
1114
  const { context, prop } = params;
1115
- const collection$1 = prop("collection");
1115
+ const collection = prop("collection");
1116
1116
  const currentSelection = first(context.get("selectedValue"));
1117
1117
  const values = [];
1118
1118
  let current = false;
1119
- collection$1.visit({
1119
+ collection.visit({
1120
1120
  skip: skipFn(params),
1121
1121
  onEnter: (node) => {
1122
- const nodeValue = collection$1.getNodeValue(node);
1122
+ const nodeValue = collection.getNodeValue(node);
1123
1123
  if (nodeValue === currentSelection) current = true;
1124
1124
  if (current) values.push(nodeValue);
1125
1125
  }
@@ -1132,8 +1132,8 @@ const machine = createMachine({
1132
1132
  aborts.clear();
1133
1133
  },
1134
1134
  toggleChecked({ context, event, prop }) {
1135
- const collection$1 = prop("collection");
1136
- context.set("checkedValue", (prev) => event.isBranch ? toggleBranchChecked(collection$1, event.value, prev) : addOrRemove(prev, event.value));
1135
+ const collection = prop("collection");
1136
+ context.set("checkedValue", (prev) => event.isBranch ? toggleBranchChecked(collection, event.value, prev) : addOrRemove(prev, event.value));
1137
1137
  },
1138
1138
  setChecked({ context, event }) {
1139
1139
  context.set("checkedValue", event.value);
@@ -1145,10 +1145,10 @@ const machine = createMachine({
1145
1145
  context.set("renamingValue", event.value);
1146
1146
  const onRenameStartFn = prop("onRenameStart");
1147
1147
  if (onRenameStartFn) {
1148
- const collection$1 = prop("collection");
1149
- const indexPath = collection$1.getIndexPath(event.value);
1148
+ const collection = prop("collection");
1149
+ const indexPath = collection.getIndexPath(event.value);
1150
1150
  if (indexPath) {
1151
- const node = collection$1.at(indexPath);
1151
+ const node = collection.at(indexPath);
1152
1152
  if (node) onRenameStartFn({
1153
1153
  value: event.value,
1154
1154
  node,
@@ -1191,10 +1191,10 @@ const machine = createMachine({
1191
1191
  syncRenameInput({ context, scope, prop }) {
1192
1192
  const renamingValue = context.get("renamingValue");
1193
1193
  if (!renamingValue) return;
1194
- const collection$1 = prop("collection");
1195
- const node = collection$1.findNode(renamingValue);
1194
+ const collection = prop("collection");
1195
+ const node = collection.findNode(renamingValue);
1196
1196
  if (!node) return;
1197
- const label = collection$1.stringifyNode(node);
1197
+ const label = collection.stringifyNode(node);
1198
1198
  setElementValue(getRenameInputEl(scope, renamingValue), label);
1199
1199
  },
1200
1200
  focusRenameInput({ context, scope }) {
@@ -1212,11 +1212,11 @@ function scrollToNode(params, value) {
1212
1212
  const { prop, scope, computed } = params;
1213
1213
  const scrollToIndexFn = prop("scrollToIndexFn");
1214
1214
  if (!scrollToIndexFn) return false;
1215
- const collection$1 = prop("collection");
1215
+ const collection = prop("collection");
1216
1216
  const visibleNodes = computed("visibleNodes");
1217
1217
  for (let i = 0; i < visibleNodes.length; i++) {
1218
1218
  const { node, indexPath } = visibleNodes[i];
1219
- if (collection$1.getNodeValue(node) !== value) continue;
1219
+ if (collection.getNodeValue(node) !== value) continue;
1220
1220
  scrollToIndexFn({
1221
1221
  index: i,
1222
1222
  node,