@sprawlify/primitives 0.0.87 → 0.0.88

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 (369) hide show
  1. package/dist/anatomy.cjs +3 -3
  2. package/dist/anatomy.d.mts +1 -1
  3. package/dist/anatomy.mjs +2 -3
  4. package/dist/{aria-hidden-Csp0PkO_.mjs → aria-hidden-P3kaF8gG.mjs} +2 -6
  5. package/dist/{aria-hidden-CHWfuKk2.cjs → aria-hidden-UJAPt1aA.cjs} +7 -11
  6. package/dist/aria-hidden.cjs +4 -4
  7. package/dist/aria-hidden.mjs +3 -4
  8. package/dist/{auto-resize-jPUJLPa4.mjs → auto-resize-Bjzuo5Lh.mjs} +2 -6
  9. package/dist/{auto-resize-BL8ul-hb.cjs → auto-resize-DzPXdyR-.cjs} +12 -16
  10. package/dist/auto-resize.cjs +4 -4
  11. package/dist/auto-resize.mjs +3 -4
  12. package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
  13. package/dist/{collection-DHyEg4g5.mjs → collection-CcsrqDFY.mjs} +3 -9
  14. package/dist/{collection-Fkg4kgPn.cjs → collection-DZeodezM.cjs} +43 -49
  15. package/dist/collection.cjs +4 -4
  16. package/dist/collection.d.cts +4 -4
  17. package/dist/collection.d.mts +4 -4
  18. package/dist/collection.mjs +3 -4
  19. package/dist/{color-utils-CaqLeEog.mjs → color-utils-BK3Ae7x1.mjs} +3 -12
  20. package/dist/{color-utils-eUlz6Gq4.cjs → color-utils-XoYeFX3g.cjs} +23 -32
  21. package/dist/color-utils.cjs +4 -4
  22. package/dist/color-utils.d.cts +1 -1
  23. package/dist/color-utils.d.mts +1 -1
  24. package/dist/color-utils.mjs +3 -4
  25. package/dist/{core-CHsDFMV3.cjs → core-BiGlJ-4W.cjs} +43 -49
  26. package/dist/{core-owywCQ2e.mjs → core-DfVajPnu.mjs} +3 -9
  27. package/dist/core.cjs +5 -5
  28. package/dist/core.d.cts +3 -3
  29. package/dist/core.d.mts +3 -3
  30. package/dist/core.mjs +4 -5
  31. package/dist/{create-anatomy-CDsIFUXg.cjs → create-anatomy-BnwEmNnc.cjs} +6 -8
  32. package/dist/{create-anatomy-BVqM_FJ6.mjs → create-anatomy-Dr0evdYy.mjs} +1 -2
  33. package/dist/{create-props-Dtoa4OUk.mjs → create-props-DFW8DUsC.mjs} +1 -2
  34. package/dist/create-props-DP39rHnH.cjs +9 -0
  35. package/dist/{date-utils-BDBOiT_6.cjs → date-utils-BuJkKL09.cjs} +265 -279
  36. package/dist/{date-utils-LnVS7q0z.mjs → date-utils-DCaRa_Ry.mjs} +1 -15
  37. package/dist/date-utils.cjs +3 -3
  38. package/dist/date-utils.d.cts +1 -1
  39. package/dist/date-utils.d.mts +1 -1
  40. package/dist/date-utils.mjs +2 -3
  41. package/dist/{defineProperty-_bOnJOii.cjs → defineProperty-8IOBQ1i_.cjs} +10 -15
  42. package/dist/{defineProperty-DR_NxfHn.mjs → defineProperty-D5oW_HU_.mjs} +5 -9
  43. package/dist/{dismissable-BlZazbp3.mjs → dismissable-BAYaXwxZ.mjs} +4 -9
  44. package/dist/{dismissable-DSFGuAU6.cjs → dismissable-DPXx0m0m.cjs} +14 -19
  45. package/dist/{dismissable-layer-B2bSyA07.d.cts → dismissable-layer-ZgyqN8AD.d.cts} +2 -2
  46. package/dist/{dismissable-layer-CpUMMV1f.d.mts → dismissable-layer-h14gHVbJ.d.mts} +2 -2
  47. package/dist/dismissable.cjs +6 -6
  48. package/dist/dismissable.d.cts +2 -2
  49. package/dist/dismissable.d.mts +2 -2
  50. package/dist/dismissable.mjs +5 -6
  51. package/dist/{dom-query-CAFhX43H.cjs → dom-query-6Wt-Tikf.cjs} +775 -806
  52. package/dist/{dom-query-CQFBCdpo.mjs → dom-query-dX8Dakb4.mjs} +2 -33
  53. package/dist/dom-query.cjs +3 -3
  54. package/dist/dom-query.d.cts +7 -7
  55. package/dist/dom-query.d.mts +7 -7
  56. package/dist/dom-query.mjs +2 -3
  57. package/dist/{file-utils-Bkp18nrt.cjs → file-utils-CY6_zVut.cjs} +52 -67
  58. package/dist/{file-utils-lcjM-YjV.mjs → file-utils-VgQ3YV2A.mjs} +2 -16
  59. package/dist/file-utils.cjs +3 -3
  60. package/dist/file-utils.d.cts +1 -1
  61. package/dist/file-utils.d.mts +1 -1
  62. package/dist/file-utils.mjs +2 -3
  63. package/dist/{focus-trap-BXT0oBtL.mjs → focus-trap-Cd09JaUn.mjs} +3 -6
  64. package/dist/{focus-trap-zaIiaoqE.cjs → focus-trap-ClCNF7kY.cjs} +13 -16
  65. package/dist/focus-trap.cjs +4 -4
  66. package/dist/focus-trap.mjs +3 -4
  67. package/dist/{focus-visible-DjGDsaLn.mjs → focus-visible-CSuBQ5QZ.mjs} +2 -4
  68. package/dist/{focus-visible-3pXNNo-l.cjs → focus-visible-CqHoOOjw.cjs} +32 -34
  69. package/dist/focus-visible.cjs +4 -4
  70. package/dist/focus-visible.mjs +3 -4
  71. package/dist/highlight-word.cjs +2 -7
  72. package/dist/highlight-word.mjs +1 -6
  73. package/dist/hotkeys.cjs +11 -20
  74. package/dist/hotkeys.mjs +10 -20
  75. package/dist/{i18n-utils-KuoJj66z.mjs → i18n-utils-DHGN_KCY.mjs} +2 -14
  76. package/dist/{i18n-utils-CK27xonZ.cjs → i18n-utils-Dm8cGCol.cjs} +57 -69
  77. package/dist/i18n-utils.cjs +4 -4
  78. package/dist/i18n-utils.mjs +3 -4
  79. package/dist/index.mjs +1 -1
  80. package/dist/{interact-outside-CRmkKF6k.mjs → interact-outside-C-8lOhpV.mjs} +3 -6
  81. package/dist/{interact-outside-Dk2otQqs.cjs → interact-outside-DRaFGdMg.cjs} +8 -11
  82. package/dist/interact-outside.cjs +5 -5
  83. package/dist/interact-outside.d.cts +1 -1
  84. package/dist/interact-outside.d.mts +1 -1
  85. package/dist/interact-outside.mjs +4 -5
  86. package/dist/json-tree-utils.cjs +6 -11
  87. package/dist/json-tree-utils.mjs +5 -10
  88. package/dist/{list-collection-C9XUe75n.d.mts → list-collection-B_8BN0XB.d.cts} +1 -1
  89. package/dist/{list-collection-DwMgPYoA.d.cts → list-collection-DkRA5LOq.d.mts} +1 -1
  90. package/dist/{live-region-2RiuzOr-.cjs → live-region-TGReV9nm.cjs} +6 -8
  91. package/dist/{live-region-CBp2K1JK.mjs → live-region-TgEDzvS4.mjs} +1 -2
  92. package/dist/live-region.cjs +3 -3
  93. package/dist/live-region.d.cts +1 -1
  94. package/dist/live-region.d.mts +1 -1
  95. package/dist/live-region.mjs +2 -3
  96. package/dist/machines/accordion/index.cjs +7 -12
  97. package/dist/machines/accordion/index.d.cts +3 -3
  98. package/dist/machines/accordion/index.d.mts +4 -4
  99. package/dist/machines/accordion/index.mjs +6 -12
  100. package/dist/machines/angle-slider/index.cjs +13 -23
  101. package/dist/machines/angle-slider/index.d.cts +3 -3
  102. package/dist/machines/angle-slider/index.d.mts +4 -4
  103. package/dist/machines/angle-slider/index.mjs +12 -23
  104. package/dist/machines/aspect-ratio/index.cjs +7 -12
  105. package/dist/machines/aspect-ratio/index.d.cts +3 -3
  106. package/dist/machines/aspect-ratio/index.d.mts +4 -4
  107. package/dist/machines/aspect-ratio/index.mjs +6 -12
  108. package/dist/machines/async-list/index.cjs +5 -7
  109. package/dist/machines/async-list/index.d.cts +1 -1
  110. package/dist/machines/async-list/index.d.mts +1 -1
  111. package/dist/machines/async-list/index.mjs +4 -7
  112. package/dist/machines/avatar/index.cjs +7 -12
  113. package/dist/machines/avatar/index.d.cts +2 -2
  114. package/dist/machines/avatar/index.d.mts +3 -3
  115. package/dist/machines/avatar/index.mjs +6 -12
  116. package/dist/machines/bottom-sheet/index.cjs +13 -22
  117. package/dist/machines/bottom-sheet/index.d.cts +5 -5
  118. package/dist/machines/bottom-sheet/index.d.mts +6 -6
  119. package/dist/machines/bottom-sheet/index.mjs +12 -22
  120. package/dist/machines/carousel/index.cjs +8 -13
  121. package/dist/machines/carousel/index.d.cts +3 -3
  122. package/dist/machines/carousel/index.d.mts +4 -4
  123. package/dist/machines/carousel/index.mjs +7 -13
  124. package/dist/machines/checkbox/index.cjs +8 -13
  125. package/dist/machines/checkbox/index.d.cts +3 -3
  126. package/dist/machines/checkbox/index.d.mts +4 -4
  127. package/dist/machines/checkbox/index.mjs +7 -13
  128. package/dist/machines/clipboard/index.cjs +7 -12
  129. package/dist/machines/clipboard/index.d.cts +3 -3
  130. package/dist/machines/clipboard/index.d.mts +4 -4
  131. package/dist/machines/clipboard/index.mjs +6 -12
  132. package/dist/machines/collapsible/index.cjs +7 -12
  133. package/dist/machines/collapsible/index.d.cts +3 -3
  134. package/dist/machines/collapsible/index.d.mts +4 -4
  135. package/dist/machines/collapsible/index.mjs +6 -12
  136. package/dist/machines/color-picker/index.cjs +11 -21
  137. package/dist/machines/color-picker/index.d.cts +6 -6
  138. package/dist/machines/color-picker/index.d.mts +7 -7
  139. package/dist/machines/color-picker/index.mjs +10 -21
  140. package/dist/machines/combobox/index.cjs +11 -17
  141. package/dist/machines/combobox/index.d.cts +7 -7
  142. package/dist/machines/combobox/index.d.mts +8 -8
  143. package/dist/machines/combobox/index.mjs +10 -17
  144. package/dist/machines/date-picker/index.cjs +15 -24
  145. package/dist/machines/date-picker/index.d.cts +7 -7
  146. package/dist/machines/date-picker/index.d.mts +8 -8
  147. package/dist/machines/date-picker/index.mjs +13 -23
  148. package/dist/machines/dialog/index.cjs +12 -17
  149. package/dist/machines/dialog/index.d.cts +5 -5
  150. package/dist/machines/dialog/index.d.mts +6 -6
  151. package/dist/machines/dialog/index.mjs +11 -17
  152. package/dist/machines/dropdown-menu/index.cjs +12 -18
  153. package/dist/machines/dropdown-menu/index.d.cts +8 -8
  154. package/dist/machines/dropdown-menu/index.d.mts +9 -9
  155. package/dist/machines/dropdown-menu/index.mjs +11 -18
  156. package/dist/machines/editable/index.cjs +8 -13
  157. package/dist/machines/editable/index.d.cts +4 -4
  158. package/dist/machines/editable/index.d.mts +5 -5
  159. package/dist/machines/editable/index.mjs +7 -13
  160. package/dist/machines/file-upload/index.cjs +9 -15
  161. package/dist/machines/file-upload/index.d.cts +4 -4
  162. package/dist/machines/file-upload/index.d.mts +5 -5
  163. package/dist/machines/file-upload/index.mjs +8 -15
  164. package/dist/machines/floating-panel/index.cjs +9 -16
  165. package/dist/machines/floating-panel/index.d.cts +4 -4
  166. package/dist/machines/floating-panel/index.d.mts +5 -5
  167. package/dist/machines/floating-panel/index.mjs +8 -16
  168. package/dist/machines/hover-card/index.cjs +10 -15
  169. package/dist/machines/hover-card/index.d.cts +5 -5
  170. package/dist/machines/hover-card/index.d.mts +6 -6
  171. package/dist/machines/hover-card/index.mjs +9 -15
  172. package/dist/machines/image-cropper/index.cjs +8 -16
  173. package/dist/machines/image-cropper/index.d.cts +3 -3
  174. package/dist/machines/image-cropper/index.d.mts +4 -4
  175. package/dist/machines/image-cropper/index.mjs +7 -16
  176. package/dist/machines/listbox/index.cjs +9 -15
  177. package/dist/machines/listbox/index.d.cts +7 -7
  178. package/dist/machines/listbox/index.d.mts +8 -8
  179. package/dist/machines/listbox/index.mjs +8 -15
  180. package/dist/machines/marquee/index.cjs +7 -13
  181. package/dist/machines/marquee/index.d.cts +5 -5
  182. package/dist/machines/marquee/index.d.mts +6 -6
  183. package/dist/machines/marquee/index.mjs +6 -13
  184. package/dist/machines/navigation-menu/index.cjs +15 -27
  185. package/dist/machines/navigation-menu/index.d.cts +3 -3
  186. package/dist/machines/navigation-menu/index.d.mts +4 -4
  187. package/dist/machines/navigation-menu/index.mjs +14 -27
  188. package/dist/machines/number-input/index.cjs +11 -21
  189. package/dist/machines/number-input/index.d.cts +3 -3
  190. package/dist/machines/number-input/index.d.mts +4 -4
  191. package/dist/machines/number-input/index.mjs +10 -22
  192. package/dist/machines/pagination/index.cjs +7 -13
  193. package/dist/machines/pagination/index.d.cts +3 -3
  194. package/dist/machines/pagination/index.d.mts +4 -4
  195. package/dist/machines/pagination/index.mjs +6 -13
  196. package/dist/machines/password-input/index.cjs +7 -12
  197. package/dist/machines/password-input/index.d.cts +3 -3
  198. package/dist/machines/password-input/index.d.mts +4 -4
  199. package/dist/machines/password-input/index.mjs +6 -12
  200. package/dist/machines/pin-input/index.cjs +9 -17
  201. package/dist/machines/pin-input/index.d.cts +3 -3
  202. package/dist/machines/pin-input/index.d.mts +4 -4
  203. package/dist/machines/pin-input/index.mjs +8 -17
  204. package/dist/machines/popover/index.cjs +13 -18
  205. package/dist/machines/popover/index.d.cts +6 -6
  206. package/dist/machines/popover/index.d.mts +7 -7
  207. package/dist/machines/popover/index.mjs +12 -18
  208. package/dist/machines/presence/index.cjs +6 -9
  209. package/dist/machines/presence/index.d.cts +2 -2
  210. package/dist/machines/presence/index.d.mts +2 -2
  211. package/dist/machines/presence/index.mjs +5 -9
  212. package/dist/machines/progress/index.cjs +7 -12
  213. package/dist/machines/progress/index.d.cts +3 -3
  214. package/dist/machines/progress/index.d.mts +4 -4
  215. package/dist/machines/progress/index.mjs +6 -12
  216. package/dist/machines/qr-code/index.cjs +8 -13
  217. package/dist/machines/qr-code/index.d.cts +3 -3
  218. package/dist/machines/qr-code/index.d.mts +4 -4
  219. package/dist/machines/qr-code/index.mjs +6 -12
  220. package/dist/machines/radio-group/index.cjs +8 -13
  221. package/dist/machines/radio-group/index.d.cts +3 -3
  222. package/dist/machines/radio-group/index.d.mts +4 -4
  223. package/dist/machines/radio-group/index.mjs +7 -13
  224. package/dist/machines/rating-group/index.cjs +7 -12
  225. package/dist/machines/rating-group/index.d.cts +2 -2
  226. package/dist/machines/rating-group/index.d.mts +3 -3
  227. package/dist/machines/rating-group/index.mjs +6 -12
  228. package/dist/machines/scroll-area/index.cjs +8 -20
  229. package/dist/machines/scroll-area/index.d.cts +3 -3
  230. package/dist/machines/scroll-area/index.d.mts +4 -4
  231. package/dist/machines/scroll-area/index.mjs +7 -20
  232. package/dist/machines/select/index.cjs +11 -17
  233. package/dist/machines/select/index.d.cts +8 -8
  234. package/dist/machines/select/index.d.mts +9 -9
  235. package/dist/machines/select/index.mjs +10 -17
  236. package/dist/machines/separator/index.cjs +7 -12
  237. package/dist/machines/separator/index.d.cts +2 -2
  238. package/dist/machines/separator/index.d.mts +3 -3
  239. package/dist/machines/separator/index.mjs +6 -12
  240. package/dist/machines/signature-pad/index.cjs +8 -14
  241. package/dist/machines/signature-pad/index.d.cts +2 -2
  242. package/dist/machines/signature-pad/index.d.mts +3 -3
  243. package/dist/machines/signature-pad/index.mjs +6 -13
  244. package/dist/machines/slider/index.cjs +7 -14
  245. package/dist/machines/slider/index.d.cts +3 -3
  246. package/dist/machines/slider/index.d.mts +4 -4
  247. package/dist/machines/slider/index.mjs +6 -14
  248. package/dist/machines/splitter/index.cjs +12 -27
  249. package/dist/machines/splitter/index.d.cts +3 -3
  250. package/dist/machines/splitter/index.d.mts +4 -4
  251. package/dist/machines/splitter/index.mjs +11 -27
  252. package/dist/machines/steps/index.cjs +7 -12
  253. package/dist/machines/steps/index.d.cts +3 -3
  254. package/dist/machines/steps/index.d.mts +4 -4
  255. package/dist/machines/steps/index.mjs +6 -12
  256. package/dist/machines/switch/index.cjs +8 -13
  257. package/dist/machines/switch/index.d.cts +3 -3
  258. package/dist/machines/switch/index.d.mts +4 -4
  259. package/dist/machines/switch/index.mjs +7 -13
  260. package/dist/machines/tabs/index.cjs +7 -12
  261. package/dist/machines/tabs/index.d.cts +3 -3
  262. package/dist/machines/tabs/index.d.mts +4 -4
  263. package/dist/machines/tabs/index.mjs +6 -12
  264. package/dist/machines/tags-input/index.cjs +11 -17
  265. package/dist/machines/tags-input/index.d.cts +5 -5
  266. package/dist/machines/tags-input/index.d.mts +6 -6
  267. package/dist/machines/tags-input/index.mjs +10 -17
  268. package/dist/machines/timer/index.cjs +7 -13
  269. package/dist/machines/timer/index.d.cts +3 -3
  270. package/dist/machines/timer/index.d.mts +4 -4
  271. package/dist/machines/timer/index.mjs +6 -13
  272. package/dist/machines/toast/index.cjs +8 -17
  273. package/dist/machines/toast/index.d.cts +4 -4
  274. package/dist/machines/toast/index.d.mts +5 -5
  275. package/dist/machines/toast/index.mjs +7 -17
  276. package/dist/machines/toggle/index.cjs +7 -11
  277. package/dist/machines/toggle/index.d.cts +2 -2
  278. package/dist/machines/toggle/index.d.mts +3 -3
  279. package/dist/machines/toggle/index.mjs +6 -11
  280. package/dist/machines/toggle-group/index.cjs +7 -12
  281. package/dist/machines/toggle-group/index.d.cts +2 -2
  282. package/dist/machines/toggle-group/index.d.mts +3 -3
  283. package/dist/machines/toggle-group/index.mjs +6 -12
  284. package/dist/machines/tooltip/index.cjs +9 -15
  285. package/dist/machines/tooltip/index.d.cts +4 -4
  286. package/dist/machines/tooltip/index.d.mts +5 -5
  287. package/dist/machines/tooltip/index.mjs +8 -15
  288. package/dist/machines/tour/index.cjs +11 -20
  289. package/dist/machines/tour/index.d.cts +6 -6
  290. package/dist/machines/tour/index.d.mts +7 -7
  291. package/dist/machines/tour/index.mjs +10 -20
  292. package/dist/machines/tree-view/index.cjs +8 -17
  293. package/dist/machines/tree-view/index.d.cts +6 -6
  294. package/dist/machines/tree-view/index.d.mts +7 -7
  295. package/dist/machines/tree-view/index.mjs +7 -17
  296. package/dist/{popper-DxgokNha.mjs → popper-CfOHZlHP.mjs} +3 -9
  297. package/dist/{popper-CY3ptPbm.cjs → popper-zq1F_iY8.cjs} +24 -30
  298. package/dist/popper.cjs +5 -5
  299. package/dist/popper.d.cts +1 -1
  300. package/dist/popper.d.mts +1 -1
  301. package/dist/popper.mjs +4 -5
  302. package/dist/{rect-utils-BobE6Wut.mjs → rect-utils-B5xqFvKC.mjs} +2 -24
  303. package/dist/{rect-utils-DtqZwNtZ.cjs → rect-utils-D3RkAaHK.cjs} +247 -269
  304. package/dist/rect-utils.cjs +3 -3
  305. package/dist/rect-utils.d.cts +1 -1
  306. package/dist/rect-utils.d.mts +1 -1
  307. package/dist/rect-utils.mjs +2 -3
  308. package/dist/{remove-scroll-DgJgF1C5.cjs → remove-scroll-B8AJyezV.cjs} +7 -9
  309. package/dist/{remove-scroll-DcPV6nZy.mjs → remove-scroll-DCUb1JPX.mjs} +2 -4
  310. package/dist/remove-scroll.mjs +1 -1
  311. package/dist/{scroll-snap-D_M1Q8ZQ.mjs → scroll-snap-De0H9CWU.mjs} +2 -4
  312. package/dist/{scroll-snap-DpEzlrHP.cjs → scroll-snap-voc0pMJd.cjs} +22 -24
  313. package/dist/scroll-snap.cjs +4 -4
  314. package/dist/scroll-snap.mjs +3 -4
  315. package/dist/{selection-wfybIxD3.d.cts → selection-Bb_ZSVxe.d.cts} +2 -2
  316. package/dist/{selection-CPTdpru8.d.mts → selection-DdNvrKbj.d.mts} +2 -2
  317. package/dist/{store-DMXvGOAu.mjs → store-BRn2zWDR.mjs} +1 -7
  318. package/dist/{store-B9Ewi-zx.cjs → store-k8bn_TOl.cjs} +37 -43
  319. package/dist/store.cjs +3 -3
  320. package/dist/store.mjs +2 -3
  321. package/dist/stringify-state.cjs +3 -4
  322. package/dist/stringify-state.mjs +1 -3
  323. package/dist/{tree-collection-1g4DXuqa.d.mts → tree-collection-DjtppzYh.d.cts} +1 -1
  324. package/dist/{tree-collection-CPcsMvje.d.cts → tree-collection-DlBCued7.d.mts} +1 -1
  325. package/dist/types.cjs +3 -4
  326. package/dist/types.d.cts +1 -1
  327. package/dist/types.d.mts +1 -1
  328. package/dist/types.mjs +2 -4
  329. package/dist/{utils-CJsQZljH.cjs → utils-ByNiZU8f.cjs} +527 -541
  330. package/dist/{utils-Vs04rt8f.mjs → utils-VVoZ_v29.mjs} +6 -20
  331. package/dist/utils.cjs +3 -3
  332. package/dist/utils.d.cts +1 -1
  333. package/dist/utils.d.mts +1 -1
  334. package/dist/utils.mjs +2 -3
  335. package/package.json +3 -3
  336. package/dist/create-props-l5q5b8Wo.cjs +0 -11
  337. /package/dist/{color-B3sgFAa6.d.mts → color-tco923EC.d.mts} +0 -0
  338. /package/dist/{color-BhaNI8oR.d.cts → color-vvN_Cdao.d.cts} +0 -0
  339. /package/dist/{create-anatomy-UNZ__hxH.d.mts → create-anatomy-BedZVdg0.d.mts} +0 -0
  340. /package/dist/{data-url-BrR6WHXH.d.cts → data-url-BLUK2DqG.d.cts} +0 -0
  341. /package/dist/{data-url-lOYkmlVX.d.mts → data-url-Diut2Ch3.d.mts} +0 -0
  342. /package/dist/{functions-Box4pxDB.d.cts → functions-BL9bYIFn.d.mts} +0 -0
  343. /package/dist/{functions-Du4c1Rcz.d.mts → functions-Cm8NiR7H.d.cts} +0 -0
  344. /package/dist/{index-B2rsdD3v.d.cts → index-1L40UHp8.d.mts} +0 -0
  345. /package/dist/{index-DLbWwJUT.d.mts → index-8xpMF4wX.d.mts} +0 -0
  346. /package/dist/{index-DIJJrhP_.d.mts → index-BO-Z3fhz.d.cts} +0 -0
  347. /package/dist/{index-CafmAesU.d.mts → index-BVFlU3b9.d.mts} +0 -0
  348. /package/dist/{index-CXu0elLS.d.mts → index-CGNNiDyE.d.mts} +0 -0
  349. /package/dist/{index-D1U_WMQ9.d.cts → index-CLRsezW5.d.cts} +0 -0
  350. /package/dist/{index-BhEktN_V.d.mts → index-DHp3-EkH.d.mts} +0 -0
  351. /package/dist/{index-Cf0hysnI.d.cts → index-DzWGFhcS.d.cts} +0 -0
  352. /package/dist/{node-BGWAyUGo.d.mts → node--dRqVsA-.d.cts} +0 -0
  353. /package/dist/{node-D8Ztr9Hg.d.cts → node-DkWL2ywA.d.mts} +0 -0
  354. /package/dist/{raf-B8md2utS.d.mts → raf-CrnFMY1g.d.mts} +0 -0
  355. /package/dist/{raf-DWPAf0Nd.d.cts → raf-v6M-OEna.d.cts} +0 -0
  356. /package/dist/{typeahead-BhNtyjQC.d.cts → typeahead-Bbeb1fAR.d.mts} +0 -0
  357. /package/dist/{typeahead-D4TUCBly.d.mts → typeahead-DMooWbbX.d.cts} +0 -0
  358. /package/dist/{types-CBWaEVU4.d.cts → types-9uw8LHpE.d.mts} +0 -0
  359. /package/dist/{types-BM4oVvZZ.d.mts → types-B24gMTKq.d.cts} +0 -0
  360. /package/dist/{types-DTZZ5wsp.d.cts → types-BQMZ4iuP.d.cts} +0 -0
  361. /package/dist/{types-BI1JrN1V.d.mts → types-CLXYEgfm.d.cts} +0 -0
  362. /package/dist/{types-CW-uU8Nz.d.mts → types-Cctd5dol.d.mts} +0 -0
  363. /package/dist/{types-oR0sELNB.d.cts → types-CylWsfOz.d.cts} +0 -0
  364. /package/dist/{types-D0tsc4Jo.d.mts → types-D-7AMgSE.d.cts} +0 -0
  365. /package/dist/{types-DE9w-zbc.d.cts → types-DEn9MoSw.d.cts} +0 -0
  366. /package/dist/{types-Ct9amXkj.d.cts → types-DU764tY_.d.mts} +0 -0
  367. /package/dist/{types-fB7F7BBP.d.cts → types-DUM9rzfD.d.mts} +0 -0
  368. /package/dist/{wait-for-CVZu6XNU.d.mts → wait-for-CV7JYddH.d.mts} +0 -0
  369. /package/dist/{wait-for-D5gBQyam.d.cts → wait-for-DGDBtAM2.d.cts} +0 -0
@@ -1,7 +1,7 @@
1
1
  //#region src/shared/json-tree-utils/json-to-tree.ts
2
2
  const MAX_DEPTH = 20;
3
3
  const jsonToTree = (data, props = {}) => {
4
- const { visited = /* @__PURE__ */ new WeakSet(), keyPath = [ROOT_KEY], depth = 0 } = props;
4
+ const { visited = /* @__PURE__ */ new WeakSet(), keyPath = ["$"], depth = 0 } = props;
5
5
  const options = getPreviewOptions(props.options);
6
6
  if (depth > MAX_DEPTH) return {
7
7
  value: "[Max Depth Reached]",
@@ -28,7 +28,6 @@ const jsonToTree = (data, props = {}) => {
28
28
  options
29
29
  });
30
30
  };
31
-
32
31
  //#endregion
33
32
  //#region src/shared/json-tree-utils/shared.ts
34
33
  const regexReturnCharacters = /\r/g;
@@ -49,16 +48,15 @@ function defu(a, b) {
49
48
  }
50
49
  const isObj = (v) => v != null && typeof v === "object" && !Array.isArray(v);
51
50
  const typeOf = (value) => Object.prototype.toString.call(value);
52
-
53
51
  //#endregion
54
52
  //#region src/shared/json-tree-utils/node-conversion.ts
55
53
  const ROOT_KEY = "$";
56
54
  const PATH_SEP = ".";
57
55
  function isRootKeyPath(keyPath) {
58
- return keyPath.length === 1 && keyPath[0] === ROOT_KEY;
56
+ return keyPath.length === 1 && keyPath[0] === "$";
59
57
  }
60
58
  function keyPathToId(keyPath) {
61
- return keyPath.join(PATH_SEP);
59
+ return keyPath.join(".");
62
60
  }
63
61
  function keyPathToKey(keyPath, opts) {
64
62
  if (keyPath.length === 0) return "";
@@ -81,7 +79,7 @@ function getRootNode(data, opts) {
81
79
  keyPath: [],
82
80
  children: [jsonToTree(data, {
83
81
  visited: /* @__PURE__ */ new WeakSet(),
84
- keyPath: [ROOT_KEY],
82
+ keyPath: ["$"],
85
83
  options: getPreviewOptions(opts)
86
84
  })]
87
85
  };
@@ -96,7 +94,6 @@ const getPreviewOptions = (opts) => {
96
94
  if (!opts) return DEFAULT_PREVIEW_OPTIONS;
97
95
  return defu(DEFAULT_PREVIEW_OPTIONS, opts);
98
96
  };
99
-
100
97
  //#endregion
101
98
  //#region src/shared/json-tree-utils/data-type.ts
102
99
  const generatePreviewText = (items, hasMore) => {
@@ -1423,7 +1420,6 @@ const getNodeTypeDescription = (node, opts) => {
1423
1420
  if (dataType) return typeof dataType.description === "function" ? dataType.description(node, options) : dataType.description;
1424
1421
  return String(node.value);
1425
1422
  };
1426
-
1427
1423
  //#endregion
1428
1424
  //#region src/shared/json-tree-utils/accessibility.ts
1429
1425
  const propertyWord = (count) => count === 1 ? "property" : "properties";
@@ -1458,6 +1454,5 @@ const getDescriptorInfo = (descriptor) => {
1458
1454
  if (!descriptor.configurable) parts.push("non-configurable");
1459
1455
  return parts.length > 0 ? parts.join(", ") : "non-enumerable";
1460
1456
  };
1461
-
1462
1457
  //#endregion
1463
- export { ArrayBufferType, ArrayType, BigIntType, BlobType, BufferType, ClassType, DEFAULT_PREVIEW_OPTIONS, DataViewType, DateType, DocumentType, ElementType, ErrorType, FileType, FormDataType, FunctionType, HeadersType, IterableType, MapType, NullType, ObjectType, PATH_SEP, PrimitiveType, ROOT_KEY, ReactElementType, RegexType, SetType, SharedArrayBufferType, StringType, SymbolType, TypedArrayType, URLSearchParamsType, UndefinedType, UrlType, WeakMapType, WeakSetType, WindowType, dataTypes, getAccessibleDescription, getNodeTypeDescription, getPreviewOptions, getRootNode, isRootKeyPath, jsonNodeToElement, jsonPathToValue, jsonToTree, keyPathToId, keyPathToKey, nodeToString, nodeToValue };
1458
+ export { ArrayBufferType, ArrayType, BigIntType, BlobType, BufferType, ClassType, DEFAULT_PREVIEW_OPTIONS, DataViewType, DateType, DocumentType, ElementType, ErrorType, FileType, FormDataType, FunctionType, HeadersType, IterableType, MapType, NullType, ObjectType, PATH_SEP, PrimitiveType, ROOT_KEY, ReactElementType, RegexType, SetType, SharedArrayBufferType, StringType, SymbolType, TypedArrayType, URLSearchParamsType, UndefinedType, UrlType, WeakMapType, WeakSetType, WindowType, dataTypes, getAccessibleDescription, getNodeTypeDescription, getPreviewOptions, getRootNode, isRootKeyPath, jsonNodeToElement, jsonPathToValue, jsonToTree, keyPathToId, keyPathToKey, nodeToString, nodeToValue };
@@ -1,4 +1,4 @@
1
- import { i as CollectionSearchOptions, r as CollectionOptions, t as CollectionItem } from "./types-D0tsc4Jo.mjs";
1
+ import { i as CollectionSearchOptions, r as CollectionOptions, t as CollectionItem } from "./types-D-7AMgSE.cjs";
2
2
 
3
3
  //#region src/shared/collection/list-collection.d.ts
4
4
  declare class ListCollection<T extends CollectionItem = CollectionItem> {
@@ -1,4 +1,4 @@
1
- import { i as CollectionSearchOptions, r as CollectionOptions, t as CollectionItem } from "./types-CBWaEVU4.cjs";
1
+ import { i as CollectionSearchOptions, r as CollectionOptions, t as CollectionItem } from "./types-9uw8LHpE.mjs";
2
2
 
3
3
  //#region src/shared/collection/list-collection.d.ts
4
4
  declare class ListCollection<T extends CollectionItem = CollectionItem> {
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/shared/live-region/index.ts
3
2
  const ID = "__live-region__";
4
3
  function createLiveRegion(opts = {}) {
@@ -42,11 +41,10 @@ function createLiveRegion(opts = {}) {
42
41
  }
43
42
  };
44
43
  }
45
-
46
44
  //#endregion
47
- Object.defineProperty(exports, 'createLiveRegion', {
48
- enumerable: true,
49
- get: function () {
50
- return createLiveRegion;
51
- }
52
- });
45
+ Object.defineProperty(exports, "createLiveRegion", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return createLiveRegion;
49
+ }
50
+ });
@@ -41,6 +41,5 @@ function createLiveRegion(opts = {}) {
41
41
  }
42
42
  };
43
43
  }
44
-
45
44
  //#endregion
46
- export { createLiveRegion as t };
45
+ export { createLiveRegion as t };
@@ -1,3 +1,3 @@
1
- const require_live_region = require('./live-region-2RiuzOr-.cjs');
2
-
3
- exports.createLiveRegion = require_live_region.createLiveRegion;
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_live_region = require("./live-region-TGReV9nm.cjs");
3
+ exports.createLiveRegion = require_live_region.createLiveRegion;
@@ -1,2 +1,2 @@
1
- import { n as LiveRegionOptions, r as createLiveRegion, t as LiveRegion } from "./index-B2rsdD3v.cjs";
1
+ import { n as LiveRegionOptions, r as createLiveRegion, t as LiveRegion } from "./index-BO-Z3fhz.cjs";
2
2
  export { LiveRegion, LiveRegionOptions, createLiveRegion };
@@ -1,2 +1,2 @@
1
- import { n as LiveRegionOptions, r as createLiveRegion, t as LiveRegion } from "./index-DIJJrhP_.mjs";
1
+ import { n as LiveRegionOptions, r as createLiveRegion, t as LiveRegion } from "./index-1L40UHp8.mjs";
2
2
  export { LiveRegion, LiveRegionOptions, createLiveRegion };
@@ -1,3 +1,2 @@
1
- import { t as createLiveRegion } from "./live-region-CBp2K1JK.mjs";
2
-
3
- export { createLiveRegion };
1
+ import { t as createLiveRegion } from "./live-region-TgEDzvS4.mjs";
2
+ export { createLiveRegion };
@@ -1,13 +1,12 @@
1
- const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
2
- const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
3
- const require_utils = require('../../utils-CJsQZljH.cjs');
4
- const require_core = require('../../core-CHsDFMV3.cjs');
5
- const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
6
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
+ const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
4
+ const require_utils = require("../../utils-ByNiZU8f.cjs");
5
+ const require_core = require("../../core-BiGlJ-4W.cjs");
6
+ const require_create_props = require("../../create-props-DP39rHnH.cjs");
7
7
  //#region src/machines/accordion/accordion.anatomy.ts
8
8
  const anatomy = require_create_anatomy.createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
9
9
  const parts = anatomy.build();
10
-
11
10
  //#endregion
12
11
  //#region src/machines/accordion/accordion.dom.ts
13
12
  const getRootId = (ctx) => ctx.ids?.root ?? `accordion:${ctx.id}`;
@@ -23,7 +22,6 @@ const getFirstTriggerEl = (ctx) => require_utils.first(getTriggerEls(ctx));
23
22
  const getLastTriggerEl = (ctx) => require_utils.last(getTriggerEls(ctx));
24
23
  const getNextTriggerEl = (ctx, id) => require_dom_query.nextById(getTriggerEls(ctx), getItemTriggerId(ctx, id));
25
24
  const getPrevTriggerEl = (ctx, id) => require_dom_query.prevById(getTriggerEls(ctx), getItemTriggerId(ctx, id));
26
-
27
25
  //#endregion
28
26
  //#region src/machines/accordion/accordion.connect.ts
29
27
  function connect(service, normalize) {
@@ -190,7 +188,6 @@ function connect(service, normalize) {
190
188
  }
191
189
  };
192
190
  }
193
-
194
191
  //#endregion
195
192
  //#region src/machines/accordion/accordion.machine.ts
196
193
  const { and, not } = require_core.createGuards();
@@ -298,7 +295,6 @@ const machine = require_core.createMachine({
298
295
  }
299
296
  }
300
297
  });
301
-
302
298
  //#endregion
303
299
  //#region src/machines/accordion/accordion.props.ts
304
300
  const props = require_create_props.createProps()([
@@ -318,7 +314,6 @@ const props = require_create_props.createProps()([
318
314
  const splitProps = require_utils.createSplitProps(props);
319
315
  const itemProps = require_create_props.createProps()(["value", "disabled"]);
320
316
  const splitItemProps = require_utils.createSplitProps(itemProps);
321
-
322
317
  //#endregion
323
318
  exports.anatomy = anatomy;
324
319
  exports.connect = connect;
@@ -326,4 +321,4 @@ exports.itemProps = itemProps;
326
321
  exports.machine = machine;
327
322
  exports.props = props;
328
323
  exports.splitItemProps = splitItemProps;
329
- exports.splitProps = splitProps;
324
+ exports.splitProps = splitProps;
@@ -1,9 +1,9 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
3
- import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
2
+ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
3
+ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemContent" | "itemTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -1,9 +1,9 @@
1
- import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
3
- import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
1
+ import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
+ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
3
+ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemContent" | "itemTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -1,13 +1,11 @@
1
- import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
2
- import { C as queryAll, b as nextById, ut as getEventKey, x as prevById, yn as dataAttr, zt as isSafari } from "../../dom-query-CQFBCdpo.mjs";
3
- import { At as remove, i as warn, pt as add, u as createSplitProps, vt as first, wt as last } from "../../utils-Vs04rt8f.mjs";
4
- import { a as createMachine, i as createGuards } from "../../core-owywCQ2e.mjs";
5
- import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
6
-
1
+ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
+ import { C as queryAll, b as nextById, ut as getEventKey, x as prevById, yn as dataAttr, zt as isSafari } from "../../dom-query-dX8Dakb4.mjs";
3
+ import { At as remove, i as warn, pt as add, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
4
+ import { a as createMachine, i as createGuards } from "../../core-DfVajPnu.mjs";
5
+ import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
7
6
  //#region src/machines/accordion/accordion.anatomy.ts
8
7
  const anatomy = createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
9
8
  const parts = anatomy.build();
10
-
11
9
  //#endregion
12
10
  //#region src/machines/accordion/accordion.dom.ts
13
11
  const getRootId = (ctx) => ctx.ids?.root ?? `accordion:${ctx.id}`;
@@ -23,7 +21,6 @@ const getFirstTriggerEl = (ctx) => first(getTriggerEls(ctx));
23
21
  const getLastTriggerEl = (ctx) => last(getTriggerEls(ctx));
24
22
  const getNextTriggerEl = (ctx, id) => nextById(getTriggerEls(ctx), getItemTriggerId(ctx, id));
25
23
  const getPrevTriggerEl = (ctx, id) => prevById(getTriggerEls(ctx), getItemTriggerId(ctx, id));
26
-
27
24
  //#endregion
28
25
  //#region src/machines/accordion/accordion.connect.ts
29
26
  function connect(service, normalize) {
@@ -190,7 +187,6 @@ function connect(service, normalize) {
190
187
  }
191
188
  };
192
189
  }
193
-
194
190
  //#endregion
195
191
  //#region src/machines/accordion/accordion.machine.ts
196
192
  const { and, not } = createGuards();
@@ -298,7 +294,6 @@ const machine = createMachine({
298
294
  }
299
295
  }
300
296
  });
301
-
302
297
  //#endregion
303
298
  //#region src/machines/accordion/accordion.props.ts
304
299
  const props = createProps()([
@@ -318,6 +313,5 @@ const props = createProps()([
318
313
  const splitProps = createSplitProps(props);
319
314
  const itemProps = createProps()(["value", "disabled"]);
320
315
  const splitItemProps = createSplitProps(itemProps);
321
-
322
316
  //#endregion
323
- export { anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
317
+ export { anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
@@ -1,14 +1,13 @@
1
- const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
2
- const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
3
- const require_utils = require('../../utils-CJsQZljH.cjs');
4
- const require_core = require('../../core-CHsDFMV3.cjs');
5
- const require_rect_utils = require('../../rect-utils-DtqZwNtZ.cjs');
6
- const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
7
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
+ const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
4
+ const require_utils = require("../../utils-ByNiZU8f.cjs");
5
+ const require_core = require("../../core-BiGlJ-4W.cjs");
6
+ const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
7
+ const require_create_props = require("../../create-props-DP39rHnH.cjs");
8
8
  //#region src/machines/angle-slider/angle-slider.anatomy.ts
9
9
  const anatomy = require_create_anatomy.createAnatomy("angle-slider").parts("root", "label", "thumb", "valueText", "control", "track", "markerGroup", "marker");
10
10
  const parts = anatomy.build();
11
-
12
11
  //#endregion
13
12
  //#region src/machines/angle-slider/angle-slider.dom.ts
14
13
  const getRootId = (ctx) => ctx.ids?.root ?? `angle-slider:${ctx.id}`;
@@ -20,29 +19,23 @@ const getLabelId = (ctx) => ctx.ids?.label ?? `angle-slider:${ctx.id}:label`;
20
19
  const getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
21
20
  const getControlEl = (ctx) => ctx.getById(getControlId(ctx));
22
21
  const getThumbEl = (ctx) => ctx.getById(getThumbId(ctx));
23
-
24
- //#endregion
25
- //#region src/machines/angle-slider/angle-slider.utils.ts
26
- const MIN_VALUE = 0;
27
- const MAX_VALUE = 359;
28
22
  function getAngle(controlEl, point, angularOffset) {
29
23
  const angle = require_rect_utils.getPointAngle(require_rect_utils.createRect(controlEl.getBoundingClientRect()), point);
30
24
  if (angularOffset != null) return angle - angularOffset;
31
25
  return angle;
32
26
  }
33
27
  function clampAngle(degree) {
34
- return Math.min(Math.max(degree, MIN_VALUE), MAX_VALUE);
28
+ return Math.min(Math.max(degree, 0), 359);
35
29
  }
36
30
  function constrainAngle(degree, step) {
37
31
  const clampedDegree = clampAngle(degree);
38
32
  const upperStep = Math.ceil(clampedDegree / step);
39
33
  const nearestStep = Math.round(clampedDegree / step);
40
- return upperStep >= clampedDegree / step ? upperStep * step === MAX_VALUE ? MIN_VALUE : upperStep * step : nearestStep * step;
34
+ return upperStep >= clampedDegree / step ? upperStep * step === 359 ? 0 : upperStep * step : nearestStep * step;
41
35
  }
42
36
  function snapAngleToStep(value, step) {
43
- return require_utils.snapValueToStep(value, MIN_VALUE, MAX_VALUE, step);
37
+ return require_utils.snapValueToStep(value, 0, 359, step);
44
38
  }
45
-
46
39
  //#endregion
47
40
  //#region src/machines/angle-slider/angle-slider.connect.ts
48
41
  function connect(service, normalize) {
@@ -215,7 +208,6 @@ function connect(service, normalize) {
215
208
  }
216
209
  };
217
210
  }
218
-
219
211
  //#endregion
220
212
  //#region src/machines/angle-slider/angle-slider.machine.ts
221
213
  const machine = require_core.createMachine({
@@ -325,10 +317,10 @@ const machine = require_core.createMachine({
325
317
  context.set("value", constrainAngle(deg, prop("step")));
326
318
  },
327
319
  setValueToMin({ context }) {
328
- context.set("value", MIN_VALUE);
320
+ context.set("value", 0);
329
321
  },
330
322
  setValueToMax({ context }) {
331
- context.set("value", MAX_VALUE);
323
+ context.set("value", 359);
332
324
  },
333
325
  setValue({ context, event }) {
334
326
  context.set("value", clampAngle(event.value));
@@ -355,7 +347,6 @@ const machine = require_core.createMachine({
355
347
  }
356
348
  }
357
349
  });
358
-
359
350
  //#endregion
360
351
  //#region src/machines/angle-slider/angle-slider.props.ts
361
352
  const props = require_create_props.createProps()([
@@ -376,10 +367,9 @@ const props = require_create_props.createProps()([
376
367
  "defaultValue"
377
368
  ]);
378
369
  const splitProps = require_utils.createSplitProps(props);
379
-
380
370
  //#endregion
381
371
  exports.anatomy = anatomy;
382
372
  exports.connect = connect;
383
373
  exports.machine = machine;
384
374
  exports.props = props;
385
- exports.splitProps = splitProps;
375
+ exports.splitProps = splitProps;
@@ -1,9 +1,9 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
3
- import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
2
+ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
3
+ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "marker" | "control" | "valueText" | "thumb" | "markerGroup">;
6
+ declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "valueText" | "thumb" | "control" | "marker" | "markerGroup">;
7
7
  //#endregion
8
8
  //#region src/machines/angle-slider/angle-slider.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -1,9 +1,9 @@
1
- import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
3
- import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
1
+ import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
+ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
3
+ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "marker" | "control" | "valueText" | "thumb" | "markerGroup">;
6
+ declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "valueText" | "thumb" | "control" | "marker" | "markerGroup">;
7
7
  //#endregion
8
8
  //#region src/machines/angle-slider/angle-slider.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -1,14 +1,12 @@
1
- import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
2
- import { E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, mt as getNativeEvent, ot as setElementValue, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
3
- import { B as snapValueToStep, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
4
- import { a as createMachine } from "../../core-owywCQ2e.mjs";
5
- import { R as createRect, q as getPointAngle } from "../../rect-utils-BobE6Wut.mjs";
6
- import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
7
-
1
+ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
+ import { E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, mt as getNativeEvent, ot as setElementValue, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
3
+ import { B as snapValueToStep, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
+ import { a as createMachine } from "../../core-DfVajPnu.mjs";
5
+ import { R as createRect, q as getPointAngle } from "../../rect-utils-B5xqFvKC.mjs";
6
+ import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
8
7
  //#region src/machines/angle-slider/angle-slider.anatomy.ts
9
8
  const anatomy = createAnatomy("angle-slider").parts("root", "label", "thumb", "valueText", "control", "track", "markerGroup", "marker");
10
9
  const parts = anatomy.build();
11
-
12
10
  //#endregion
13
11
  //#region src/machines/angle-slider/angle-slider.dom.ts
14
12
  const getRootId = (ctx) => ctx.ids?.root ?? `angle-slider:${ctx.id}`;
@@ -20,29 +18,23 @@ const getLabelId = (ctx) => ctx.ids?.label ?? `angle-slider:${ctx.id}:label`;
20
18
  const getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
21
19
  const getControlEl = (ctx) => ctx.getById(getControlId(ctx));
22
20
  const getThumbEl = (ctx) => ctx.getById(getThumbId(ctx));
23
-
24
- //#endregion
25
- //#region src/machines/angle-slider/angle-slider.utils.ts
26
- const MIN_VALUE = 0;
27
- const MAX_VALUE = 359;
28
21
  function getAngle(controlEl, point, angularOffset) {
29
22
  const angle = getPointAngle(createRect(controlEl.getBoundingClientRect()), point);
30
23
  if (angularOffset != null) return angle - angularOffset;
31
24
  return angle;
32
25
  }
33
26
  function clampAngle(degree) {
34
- return Math.min(Math.max(degree, MIN_VALUE), MAX_VALUE);
27
+ return Math.min(Math.max(degree, 0), 359);
35
28
  }
36
29
  function constrainAngle(degree, step) {
37
30
  const clampedDegree = clampAngle(degree);
38
31
  const upperStep = Math.ceil(clampedDegree / step);
39
32
  const nearestStep = Math.round(clampedDegree / step);
40
- return upperStep >= clampedDegree / step ? upperStep * step === MAX_VALUE ? MIN_VALUE : upperStep * step : nearestStep * step;
33
+ return upperStep >= clampedDegree / step ? upperStep * step === 359 ? 0 : upperStep * step : nearestStep * step;
41
34
  }
42
35
  function snapAngleToStep(value, step) {
43
- return snapValueToStep(value, MIN_VALUE, MAX_VALUE, step);
36
+ return snapValueToStep(value, 0, 359, step);
44
37
  }
45
-
46
38
  //#endregion
47
39
  //#region src/machines/angle-slider/angle-slider.connect.ts
48
40
  function connect(service, normalize) {
@@ -215,7 +207,6 @@ function connect(service, normalize) {
215
207
  }
216
208
  };
217
209
  }
218
-
219
210
  //#endregion
220
211
  //#region src/machines/angle-slider/angle-slider.machine.ts
221
212
  const machine = createMachine({
@@ -325,10 +316,10 @@ const machine = createMachine({
325
316
  context.set("value", constrainAngle(deg, prop("step")));
326
317
  },
327
318
  setValueToMin({ context }) {
328
- context.set("value", MIN_VALUE);
319
+ context.set("value", 0);
329
320
  },
330
321
  setValueToMax({ context }) {
331
- context.set("value", MAX_VALUE);
322
+ context.set("value", 359);
332
323
  },
333
324
  setValue({ context, event }) {
334
325
  context.set("value", clampAngle(event.value));
@@ -355,7 +346,6 @@ const machine = createMachine({
355
346
  }
356
347
  }
357
348
  });
358
-
359
349
  //#endregion
360
350
  //#region src/machines/angle-slider/angle-slider.props.ts
361
351
  const props = createProps()([
@@ -376,6 +366,5 @@ const props = createProps()([
376
366
  "defaultValue"
377
367
  ]);
378
368
  const splitProps = createSplitProps(props);
379
-
380
369
  //#endregion
381
- export { anatomy, connect, machine, props, splitProps };
370
+ export { anatomy, connect, machine, props, splitProps };
@@ -1,18 +1,16 @@
1
- const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
2
- require('../../dom-query-CAFhX43H.cjs');
3
- const require_utils = require('../../utils-CJsQZljH.cjs');
4
- const require_core = require('../../core-CHsDFMV3.cjs');
5
- const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
6
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
+ require("../../dom-query-6Wt-Tikf.cjs");
4
+ const require_utils = require("../../utils-ByNiZU8f.cjs");
5
+ const require_core = require("../../core-BiGlJ-4W.cjs");
6
+ const require_create_props = require("../../create-props-DP39rHnH.cjs");
7
7
  //#region src/machines/aspect-ratio/aspect-ratio.anatomy.ts
8
8
  const anatomy = require_create_anatomy.createAnatomy("aspect-ratio").parts("root", "content");
9
9
  const parts = anatomy.build();
10
-
11
10
  //#endregion
12
11
  //#region src/machines/aspect-ratio/aspect-ratio.dom.ts
13
12
  const getRootId = (ctx) => ctx.ids?.root ?? `aspect-ratio:${ctx.id}`;
14
13
  const getContentId = (ctx) => ctx.ids?.content ?? `aspect-ratio:${ctx.id}:content`;
15
-
16
14
  //#endregion
17
15
  //#region src/machines/aspect-ratio/aspect-ratio.connect.ts
18
16
  function connect(service, normalize) {
@@ -47,7 +45,6 @@ function connect(service, normalize) {
47
45
  }
48
46
  };
49
47
  }
50
-
51
48
  //#endregion
52
49
  //#region src/machines/aspect-ratio/aspect-ratio.machine.ts
53
50
  const machine = require_core.createMachine({
@@ -64,7 +61,6 @@ const machine = require_core.createMachine({
64
61
  effects: {}
65
62
  }
66
63
  });
67
-
68
64
  //#endregion
69
65
  //#region src/machines/aspect-ratio/aspect-ratio.props.ts
70
66
  const props = require_create_props.createProps()([
@@ -74,10 +70,9 @@ const props = require_create_props.createProps()([
74
70
  "ratio"
75
71
  ]);
76
72
  const splitProps = require_utils.createSplitProps(props);
77
-
78
73
  //#endregion
79
74
  exports.anatomy = anatomy;
80
75
  exports.connect = connect;
81
76
  exports.machine = machine;
82
77
  exports.props = props;
83
- exports.splitProps = splitProps;
78
+ exports.splitProps = splitProps;
@@ -1,9 +1,9 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, y as Service } from "../../types-fB7F7BBP.cjs";
3
- import { b as NormalizeProps, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
2
+ import { p as Machine, y as Service } from "../../types-B24gMTKq.cjs";
3
+ import { b as NormalizeProps, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/aspect-ratio/aspect-ratio.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"content" | "root">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content">;
7
7
  //#endregion
8
8
  //#region src/machines/aspect-ratio/aspect-ratio.types.d.ts
9
9
  type ElementIds = Partial<{
@@ -1,9 +1,9 @@
1
- import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
2
- import { p as Machine, y as Service } from "../../types-BM4oVvZZ.mjs";
3
- import { b as NormalizeProps, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
1
+ import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
+ import { p as Machine, y as Service } from "../../types-DUM9rzfD.mjs";
3
+ import { b as NormalizeProps, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/aspect-ratio/aspect-ratio.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"content" | "root">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content">;
7
7
  //#endregion
8
8
  //#region src/machines/aspect-ratio/aspect-ratio.types.d.ts
9
9
  type ElementIds = Partial<{
@@ -1,18 +1,15 @@
1
- import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
2
- import "../../dom-query-CQFBCdpo.mjs";
3
- import { u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
4
- import { a as createMachine } from "../../core-owywCQ2e.mjs";
5
- import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
6
-
1
+ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
+ import "../../dom-query-dX8Dakb4.mjs";
3
+ import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
+ import { a as createMachine } from "../../core-DfVajPnu.mjs";
5
+ import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
7
6
  //#region src/machines/aspect-ratio/aspect-ratio.anatomy.ts
8
7
  const anatomy = createAnatomy("aspect-ratio").parts("root", "content");
9
8
  const parts = anatomy.build();
10
-
11
9
  //#endregion
12
10
  //#region src/machines/aspect-ratio/aspect-ratio.dom.ts
13
11
  const getRootId = (ctx) => ctx.ids?.root ?? `aspect-ratio:${ctx.id}`;
14
12
  const getContentId = (ctx) => ctx.ids?.content ?? `aspect-ratio:${ctx.id}:content`;
15
-
16
13
  //#endregion
17
14
  //#region src/machines/aspect-ratio/aspect-ratio.connect.ts
18
15
  function connect(service, normalize) {
@@ -47,7 +44,6 @@ function connect(service, normalize) {
47
44
  }
48
45
  };
49
46
  }
50
-
51
47
  //#endregion
52
48
  //#region src/machines/aspect-ratio/aspect-ratio.machine.ts
53
49
  const machine = createMachine({
@@ -64,7 +60,6 @@ const machine = createMachine({
64
60
  effects: {}
65
61
  }
66
62
  });
67
-
68
63
  //#endregion
69
64
  //#region src/machines/aspect-ratio/aspect-ratio.props.ts
70
65
  const props = createProps()([
@@ -74,6 +69,5 @@ const props = createProps()([
74
69
  "ratio"
75
70
  ]);
76
71
  const splitProps = createSplitProps(props);
77
-
78
72
  //#endregion
79
- export { anatomy, connect, machine, props, splitProps };
73
+ export { anatomy, connect, machine, props, splitProps };