@astryx-vue/core 0.32.0 → 0.32.1

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 (325) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-C5pc5nQN.js → AlertDialog-JmxbMkeV.js} +8 -8
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-B7dkDyY8.js → AppShell-mWlY4pE3.js} +4 -6
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CYW9ZTD3.js → Avatar-B-gSpEw4.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-Dd-yDDNz.js → AvatarGroup-CCFMtKks.js} +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/Banner/index.js +1 -1
  13. package/dist/{Banner-BNrs2Ptl.js → Banner-BJETFZr7.js} +1 -1
  14. package/dist/BottomSheet/index.d.ts +1 -1
  15. package/dist/BottomSheet/index.js +2 -2
  16. package/dist/{BottomSheet-Z92IvLBU.js → BottomSheet-C6pQBvnU.js} +10 -38
  17. package/dist/{BottomSheet-CAJJ8cR5.js → BottomSheet-C_LoskZt.js} +3 -3
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-CnvaPn8M.js → Breadcrumbs-D05OmNfd.js} +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/{Button-CzMWqCpJ.js → Button-X7k1WCkW.js} +4 -4
  23. package/dist/ButtonGroup/index.d.ts +1 -1
  24. package/dist/ButtonGroup/index.js +1 -1
  25. package/dist/{ButtonGroup-oI99JAyN.js → ButtonGroup-D5E7QLWI.js} +2 -2
  26. package/dist/Calendar/index.d.ts +1 -1
  27. package/dist/Card/index.d.ts +1 -1
  28. package/dist/Carousel/index.d.ts +1 -1
  29. package/dist/Carousel/index.js +1 -1
  30. package/dist/{Carousel-BjyedZ0Y.js → Carousel-Bpbx-2DK.js} +1 -1
  31. package/dist/Chat/index.d.ts +1 -1
  32. package/dist/Chat/index.js +1 -1
  33. package/dist/{Chat-CJr2RIyc.js → Chat-D7Q2z9W2.js} +5 -5
  34. package/dist/CheckboxInput/index.d.ts +1 -1
  35. package/dist/CheckboxInput/index.js +1 -1
  36. package/dist/{CheckboxInput-BrbQTrL-.js → CheckboxInput-Cxtmdymo.js} +3 -3
  37. package/dist/CheckboxList/index.d.ts +1 -1
  38. package/dist/CheckboxList/index.js +1 -1
  39. package/dist/{CheckboxListItem-CrAzFR4x.js → CheckboxListItem-DJrx97cA.js} +5 -5
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/ClickableCard/index.js +1 -1
  42. package/dist/{ClickableCard-B86P2aiM.js → ClickableCard-CLXCxaxo.js} +1 -1
  43. package/dist/Code/index.d.ts +1 -1
  44. package/dist/Code/index.js +1 -1
  45. package/dist/{CodeBlock-pWPw1-iu.js → CodeBlock-Bgxy15iD.js} +1 -1
  46. package/dist/Collapsible/index.d.ts +1 -1
  47. package/dist/Collapsible/index.js +1 -1
  48. package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf5zttC-.js} +2 -3
  49. package/dist/CommandPalette/index.d.ts +1 -1
  50. package/dist/CommandPalette/index.js +1 -1
  51. package/dist/{CommandPalette-DnbvnT4c.js → CommandPalette-CniaCqex.js} +2 -2
  52. package/dist/ComplexSelector/index.d.ts +1 -1
  53. package/dist/ComplexSelector/index.js +1 -1
  54. package/dist/{ComplexSelector-DWQbuovE.js → ComplexSelector-DYeYZKON.js} +2 -2
  55. package/dist/ContextMenu/index.d.ts +1 -1
  56. package/dist/ContextMenu/index.js +2 -2
  57. package/dist/{ContextMenu-DfoShDVW.js → ContextMenu-CLCgJG0C.js} +6 -6
  58. package/dist/DateInput/index.d.ts +1 -1
  59. package/dist/DateInput/index.js +1 -1
  60. package/dist/{DateInput-D9_QsZMj.js → DateInput-BmEbQA1z.js} +4 -4
  61. package/dist/DateRangeInput/index.d.ts +1 -1
  62. package/dist/DateRangeInput/index.js +1 -1
  63. package/dist/{DateRangeInput-8P8i8aVI.js → DateRangeInput-CoA1PuGz.js} +3 -3
  64. package/dist/DateTimeInput/index.d.ts +1 -1
  65. package/dist/DateTimeInput/index.js +1 -1
  66. package/dist/{DateTimeInput-C2XWslHp.js → DateTimeInput-CL0sp0ES.js} +5 -5
  67. package/dist/Dialog/index.d.ts +1 -1
  68. package/dist/Dialog/index.js +3 -3
  69. package/dist/{Dialog-Cet6PTnf.js → Dialog-C46xHdDO.js} +1 -1
  70. package/dist/{Dialog-B1Hlr0x_.js → Dialog-uzq24bX_.js} +2 -2
  71. package/dist/{DialogHeader-BiHQct4G.js → DialogHeader-E0auaRKt.js} +2 -2
  72. package/dist/Divider/index.d.ts +1 -1
  73. package/dist/Drawer/index.d.ts +1 -1
  74. package/dist/Drawer/index.js +1 -1
  75. package/dist/{Drawer-Bm3l7Dey.js → Drawer-DfhhdBMZ.js} +2 -2
  76. package/dist/DropdownMenu/index.js +2 -2
  77. package/dist/{DropdownMenu-BaRXEFLa.js → DropdownMenu-BWgt12MZ.js} +8 -8
  78. package/dist/EmptyState/index.js +1 -1
  79. package/dist/{EmptyState-CXDlpIdI.js → EmptyState-C8WQltQk.js} +2 -2
  80. package/dist/Field/index.js +3 -3
  81. package/dist/{Field-njr7AUcW.js → Field-CrnwM-2A.js} +1 -1
  82. package/dist/{FieldInfoTip-DLqZykVm.js → FieldInfoTip-DqQP1T-d.js} +1 -1
  83. package/dist/{FieldLabel-CyL5D1lu.js → FieldLabel-CLxclKT2.js} +1 -1
  84. package/dist/FileInput/index.d.ts +1 -1
  85. package/dist/FileInput/index.js +1 -1
  86. package/dist/{FileInput-CtqZSRdh.js → FileInput-BHFjo_zo.js} +3 -3
  87. package/dist/Heading/index.d.ts +1 -1
  88. package/dist/Heading/index.js +1 -1
  89. package/dist/{Heading-BXTbW_px.js → Heading-jYno4L3t.js} +1 -1
  90. package/dist/HoverCard/index.js +1 -1
  91. package/dist/{HoverCard-zVUEeqF2.js → HoverCard-D_6idU4r.js} +4 -4
  92. package/dist/IconButton/index.js +1 -1
  93. package/dist/{IconButton-CoZFp0CP.js → IconButton-B6m42AlL.js} +1 -1
  94. package/dist/InfoTip/index.d.ts +1 -1
  95. package/dist/InfoTip/index.js +1 -1
  96. package/dist/{InfoTip-Eg2IGZJw.js → InfoTip-CUkTHca2.js} +2 -2
  97. package/dist/{InputClearButton-CBsL91my.js → InputClearButton-s_MEW25n.js} +1 -1
  98. package/dist/InputGroup/index.d.ts +1 -1
  99. package/dist/InputGroup/index.js +1 -1
  100. package/dist/{InputGroup-BE83-MCX.js → InputGroup-42PbUmg-.js} +1 -1
  101. package/dist/{Item-C9u_kQUO.js → Item-C9Cs0Jqr.js} +1 -1
  102. package/dist/{LayerContentBoundary-DmRI6Bg0.js → LayerContentBoundary-XvH9wmdg.js} +1 -1
  103. package/dist/Layout/index.d.ts +1 -1
  104. package/dist/Layout/index.js +2 -2
  105. package/dist/{Layout-094k14rN.js → Layout-tU7e1J1I.js} +1 -1
  106. package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-D8t8F-sl.js} +22 -2
  107. package/dist/Lightbox/index.js +1 -1
  108. package/dist/{Lightbox-5PtYb0r4.js → Lightbox-Bur4pvRo.js} +2 -2
  109. package/dist/Link/index.d.ts +1 -1
  110. package/dist/Link/index.js +1 -1
  111. package/dist/{Link-BzXVGE7G.js → Link-DVslj_GH.js} +2 -2
  112. package/dist/List/index.d.ts +1 -1
  113. package/dist/List/index.js +2 -2
  114. package/dist/{ListItem-_lOmngHp.js → ListItem-DOFfdRA_.js} +2 -2
  115. package/dist/Markdown/index.d.ts +1 -1
  116. package/dist/Markdown/index.js +1 -1
  117. package/dist/{Markdown-HDZPj9Vw.js → Markdown-Baq5r2Mp.js} +3 -3
  118. package/dist/MetadataList/index.d.ts +1 -1
  119. package/dist/MobileNav/index.js +1 -1
  120. package/dist/{MobileNavToggle-CrUf5UPQ.js → MobileNavToggle-BV3fmVmO.js} +2 -2
  121. package/dist/MoreMenu/index.d.ts +1 -1
  122. package/dist/MoreMenu/index.js +1 -1
  123. package/dist/{MoreMenu-DzpufGyj.js → MoreMenu-COSDjYyl.js} +6 -6
  124. package/dist/MultiSelector/index.d.ts +1 -1
  125. package/dist/MultiSelector/index.js +1 -1
  126. package/dist/{MultiSelector-BS6wxlx4.js → MultiSelector-eJSx3iZR.js} +8 -8
  127. package/dist/{NavDisclosure-BM0dJGLA.js → NavDisclosure-B8G8t325.js} +1 -1
  128. package/dist/{NavHeadingSurface-CuQnoV_V.js → NavHeadingSurface-BkNP_1au.js} +1 -1
  129. package/dist/NavItem/index.d.ts +1 -1
  130. package/dist/NavItem/index.js +1 -1
  131. package/dist/{NavItem-D4xHjSTo.js → NavItem-B7xpLk_x.js} +1 -1
  132. package/dist/NavMenu/index.js +3 -3
  133. package/dist/{NavMenu-fXsoJKjW.js → NavMenu-C6OU4a5Z.js} +3 -3
  134. package/dist/{NavMenuItem-BKY6eRkz.js → NavMenuItem-BZuajqYL.js} +3 -3
  135. package/dist/NumberInput/index.d.ts +1 -1
  136. package/dist/NumberInput/index.js +1 -1
  137. package/dist/{NumberInput-Ueted2wi.js → NumberInput-Dd4QQGZp.js} +3 -3
  138. package/dist/Outline/index.js +1 -1
  139. package/dist/{Outline-CnSt_KvS.js → Outline-coqRQ06s.js} +4 -3
  140. package/dist/OverflowList/index.d.ts +1 -1
  141. package/dist/OverflowList/index.js +1 -1
  142. package/dist/{OverflowList-KpebInhH.js → OverflowList-DS7cmNsr.js} +2 -2
  143. package/dist/Overlay/index.d.ts +1 -1
  144. package/dist/Pagination/index.d.ts +1 -1
  145. package/dist/Pagination/index.js +1 -1
  146. package/dist/{Pagination-BliQ5RGN.js → Pagination-BWPJfO4_.js} +2 -2
  147. package/dist/Popover/index.d.ts +1 -1
  148. package/dist/Popover/index.js +1 -1
  149. package/dist/{Popover-DXfXGrWG.js → Popover-DnrZk22Y.js} +8 -8
  150. package/dist/PowerSearch/index.d.ts +1 -1
  151. package/dist/PowerSearch/index.js +1 -1
  152. package/dist/{PowerSearch-CmJKFEEu.js → PowerSearch-CDwASKYp.js} +26 -26
  153. package/dist/ProgressBar/index.d.ts +1 -1
  154. package/dist/ProgressBar/index.js +1 -1
  155. package/dist/{ProgressBar-Dj1ucJxG.js → ProgressBar-C-HzrG8T.js} +1 -1
  156. package/dist/Radio/index.d.ts +1 -1
  157. package/dist/Radio/index.js +1 -1
  158. package/dist/{RadioGroup-BLOjBRrM.js → RadioGroup-B-AkUDI8.js} +4 -4
  159. package/dist/RadioList/index.d.ts +1 -1
  160. package/dist/RadioList/index.js +1 -1
  161. package/dist/{RadioListItem-CHxTpBva.js → RadioListItem-DhmF7YNL.js} +1 -1
  162. package/dist/Resizable/index.d.ts +1 -1
  163. package/dist/Resizable/index.js +1 -1
  164. package/dist/{ResizeHandle-BMSbAFdP.js → ResizeHandle-CcS-NP4r.js} +21 -4
  165. package/dist/ScrollableArea/index.d.ts +1 -1
  166. package/dist/SegmentedControl/index.js +1 -1
  167. package/dist/{SegmentedControl-C-F5dkcG.js → SegmentedControl-BdbqWErg.js} +2 -2
  168. package/dist/SelectableCard/index.d.ts +1 -1
  169. package/dist/SelectableCard/index.js +1 -1
  170. package/dist/{SelectableCard-CwfpgsS8.js → SelectableCard-YzN6trLf.js} +1 -1
  171. package/dist/Selector/index.d.ts +1 -1
  172. package/dist/Selector/index.js +1 -1
  173. package/dist/{Selector-OhIdsI8A.js → Selector-BNr_kb6Q.js} +6 -6
  174. package/dist/SideNav/index.d.ts +1 -1
  175. package/dist/SideNav/index.js +2 -2
  176. package/dist/{SideNav-CcdDU-hP.js → SideNav-DnoR_4ml.js} +9 -11
  177. package/dist/Slider/index.js +1 -1
  178. package/dist/{Slider-DjbWQ1wn.js → Slider-DaHQhbA7.js} +2 -2
  179. package/dist/Stack/index.d.ts +1 -1
  180. package/dist/StatusDot/index.js +1 -1
  181. package/dist/{StatusDot-Bta_bpaZ.js → StatusDot-B7T0et3H.js} +1 -1
  182. package/dist/Stepper/index.d.ts +1 -1
  183. package/dist/Stepper/index.js +1 -1
  184. package/dist/{Stepper-CWluGqBs.js → Stepper-C3ZFN-Gp.js} +1 -1
  185. package/dist/Switch/index.d.ts +1 -1
  186. package/dist/Switch/index.js +1 -1
  187. package/dist/{Switch-D4ojsj_l.js → Switch-B8HRxp3u.js} +2 -2
  188. package/dist/TabList/index.d.ts +1 -1
  189. package/dist/TabList/index.js +1 -1
  190. package/dist/{TabList-S99zXoRN.js → TabList-BOQ0bvE3.js} +3 -3
  191. package/dist/Table/index.d.ts +2 -2
  192. package/dist/Table/index.js +1 -1
  193. package/dist/{Table-3NTjPpHc.js → Table-CoWGEhzQ.js} +11 -13
  194. package/dist/Text/index.d.ts +1 -1
  195. package/dist/Text/index.js +1 -1
  196. package/dist/{Text-DNKNlENe.js → Text-DqiV40AF.js} +1 -1
  197. package/dist/TextArea/index.d.ts +1 -1
  198. package/dist/TextArea/index.js +1 -1
  199. package/dist/{TextArea-DnSmL0A8.js → TextArea-Vrx7Os5P.js} +4 -4
  200. package/dist/TextInput/index.d.ts +1 -1
  201. package/dist/TextInput/index.js +1 -1
  202. package/dist/{TextInput-DyHEMYld.js → TextInput-DOeUROX8.js} +4 -4
  203. package/dist/Thumbnail/index.js +1 -1
  204. package/dist/{Thumbnail-D8GlIdNm.js → Thumbnail-BF53Z6jm.js} +3 -3
  205. package/dist/{TimeField-ADeT0OA1.js → TimeField-CkGXOHTG.js} +4 -4
  206. package/dist/TimeInput/index.d.ts +1 -1
  207. package/dist/TimeInput/index.js +1 -1
  208. package/dist/{TimeInput-C1gzJGHk.js → TimeInput-DCksf1di.js} +2 -2
  209. package/dist/Timer/index.js +1 -1
  210. package/dist/{Timer-DhI2oV5L.js → Timer-DDrODKow.js} +1 -1
  211. package/dist/Timestamp/index.d.ts +1 -1
  212. package/dist/Timestamp/index.js +1 -1
  213. package/dist/{Timestamp-CTZSVsmd.js → Timestamp-CCzREXNN.js} +3 -3
  214. package/dist/Toast/index.js +1 -1
  215. package/dist/{Toast-DUqDW07c.js → Toast-CoAEdN_I.js} +2 -2
  216. package/dist/ToggleButton/index.d.ts +1 -1
  217. package/dist/ToggleButton/index.js +1 -1
  218. package/dist/{ToggleButton-BMBH2tmu.js → ToggleButton-DAW-pV4r.js} +3 -3
  219. package/dist/Token/index.js +1 -1
  220. package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
  221. package/dist/Tokenizer/index.d.ts +1 -1
  222. package/dist/Tokenizer/index.js +1 -1
  223. package/dist/{Tokenizer-C0CdEzQT.js → Tokenizer-DsPtN6tZ.js} +13 -13
  224. package/dist/Toolbar/index.d.ts +2 -2
  225. package/dist/Tooltip/index.d.ts +1 -1
  226. package/dist/Tooltip/index.js +2 -2
  227. package/dist/{Tooltip-CEyd_iFa.js → Tooltip-DhV7MkwU.js} +1 -1
  228. package/dist/TopNav/index.d.ts +1 -1
  229. package/dist/TopNav/index.js +1 -1
  230. package/dist/{TopNav-BObecD_X.js → TopNav-Djli-IEz.js} +5 -5
  231. package/dist/TreeList/index.d.ts +1 -1
  232. package/dist/TreeList/index.js +1 -1
  233. package/dist/{TreeList-CsgXzBdm.js → TreeList-CqJ3xfhB.js} +3 -4
  234. package/dist/Typeahead/index.d.ts +1 -1
  235. package/dist/Typeahead/index.js +2 -2
  236. package/dist/{Typeahead-C_0dTmaf.js → Typeahead-Dowds5Z-.js} +6 -6
  237. package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
  238. package/dist/{accessibleName-Cq7krRE-.js → accessibleName-CINO01Ek.js} +1 -1
  239. package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
  240. package/dist/{assertOptions-Km_9Y5rI.js → assertOptions-BCEzojGr.js} +1 -1
  241. package/dist/composables/index.d.ts +2 -2
  242. package/dist/composables/index.js +12 -12
  243. package/dist/{composables-kHI1dSq2.js → composables-B7FrCjk6.js} +11 -7
  244. package/dist/{context-ZWA02GaM.js → context-C_rX8KGX.js} +1 -2
  245. package/dist/cssValues-Cr6PhYTx.js +223 -0
  246. package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
  247. package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
  248. package/dist/{index-Bxus0zuz.d.ts → index-B-Z4GL8g.d.ts} +11 -11
  249. package/dist/{index-CHLZPpjQ.d.ts → index-B44fLswd.d.ts} +1 -1
  250. package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
  251. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  252. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  253. package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
  254. package/dist/{index-Cm36VS1A.d.ts → index-C3JmGujU.d.ts} +3 -3
  255. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  256. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  257. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  258. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  259. package/dist/{index-JE1HrzdJ.d.ts → index-CUuUoX3h.d.ts} +3 -3
  260. package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
  261. package/dist/{index-BpFzfJbo.d.ts → index-CdvmnNMH.d.ts} +2 -2
  262. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  263. package/dist/{index-BIiG1CF_.d.ts → index-CilCxEvD.d.ts} +4 -4
  264. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  265. package/dist/{index-DIw5D3zj.d.ts → index-D8l_CmL-.d.ts} +2 -2
  266. package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
  267. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  268. package/dist/{index-BWWirRm3.d.ts → index-DHUCHxn2.d.ts} +1 -1
  269. package/dist/{index-B83v2qNb.d.ts → index-DIkdln91.d.ts} +3 -3
  270. package/dist/{index-CdRxeyhB.d.ts → index-DLE-sASO.d.ts} +1 -1
  271. package/dist/{index-CO9GW-ik.d.ts → index-DPklTi3o.d.ts} +1 -1
  272. package/dist/{index-Cj-Ob5jw.d.ts → index-DoYrlaEI.d.ts} +10 -10
  273. package/dist/{index-DGe-ApvN.d.ts → index-In41wHf3.d.ts} +4 -4
  274. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  275. package/dist/{index-ILJ7sKx3.d.ts → index-QC9FDUDA.d.ts} +4 -4
  276. package/dist/{index-4m5X7IYX.d.ts → index-Rz4jwv4Q.d.ts} +96 -96
  277. package/dist/{index-DogWVRJi.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  278. package/dist/{index-DAEgHJTK.d.ts → index-aHC2C89h.d.ts} +4 -4
  279. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  280. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  281. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  282. package/dist/index.d.ts +36 -36
  283. package/dist/index.js +103 -103
  284. package/dist/{batch-DPlrpYU6.js → landing-DrnLUanQ.js} +812 -4
  285. package/dist/{layerDepth-8jb4An1z.js → layerDepth-BdZX0xSD.js} +1 -1
  286. package/dist/{lazyBottomSheet-CNYA5qOy.js → lazyBottomSheet-BUXYsz28.js} +1 -1
  287. package/dist/linearEasing-BxWjPql6.js +282 -0
  288. package/dist/{pressFeedback-9dqGYjxv.js → pressFeedback-CPzGi_88.js} +2 -1
  289. package/dist/pressGesture-BV4fYPIG.js +103 -0
  290. package/dist/resizableChannel-BeoqCSou.js +387 -0
  291. package/dist/resolveMotion-BLdMNTpf.js +117 -0
  292. package/dist/resolveSnapPoint-DygD-wmL.js +110 -0
  293. package/dist/roles-CPMsH5Ob.js +196 -0
  294. package/dist/rubberBand-DecgmtDj.js +123 -0
  295. package/dist/{resolveSnapPoint-DdZyBkT4.js → springs-BR66JuIm.js} +2 -182
  296. package/dist/{stillPointerGate-CpzpYNqy.js → stillPointerGate-BChxtcd6.js} +1 -1
  297. package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
  298. package/dist/{tooltipFocusRules-BfnTnTpn.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
  299. package/dist/{tooltipTriggerRules-BRdKWVzo.js → tooltipTriggerRules-CKfpQu9d.js} +1 -1
  300. package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
  301. package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-B_mZd526.js} +1 -1
  302. package/dist/{useAttachment-BuNyeUXy.js → useAttachment-BohgLE3o.js} +3 -3
  303. package/dist/{useCombobox-DkwiskdE.js → useCombobox-BYRrwLe-.js} +1 -1
  304. package/dist/{useDismiss-fhWaGqY8.js → useDismiss-Qq0hUJoO.js} +1 -1
  305. package/dist/{useFocusTrap-DT2UCZd-.js → useFocusTrap-CX-qEF-G.js} +1 -1
  306. package/dist/{useInputStatusIcon-B1i0sFKu.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
  307. package/dist/{useMenuPress-CBtTaYOS.js → useMenuPress-DDvcJNRd.js} +2 -2
  308. package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
  309. package/dist/{useResizable-AfPBAq5c.js → useResizable-BIaZZDJ2.js} +411 -85
  310. package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
  311. package/dist/{useTooltip-llyJd1q6.js → useTooltip-CgJi5QQW.js} +4 -4
  312. package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
  313. package/dist/{useTouchTriggerInternal-DzsFiDjb.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
  314. package/dist/{useTruncationTooltip-BFm7XgvO.js → useTruncationTooltip-x1cQd8of.js} +3 -3
  315. package/dist/{useTypeahead-8Y5m41VA.js → useTypeahead-CZuT8Niw.js} +1 -1
  316. package/dist/{useTypeaheadMenuConfig-Cy-gOjVd.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
  317. package/package.json +1 -1
  318. package/styles/resize-handle.css +2 -0
  319. package/dist/edge-DFaE6rUg.js +0 -164
  320. package/dist/edgeRide-UdNxbwxY.js +0 -500
  321. package/dist/handle-CwxCHapJ.js +0 -22
  322. package/dist/landing-CSCE9afT.js +0 -105
  323. package/dist/linearEasing-BiRVC8Mq.js +0 -98
  324. package/dist/resizableChannel-LElsNkSY.js +0 -33
  325. package/dist/resolveMotion-B9NDPeUz.js +0 -508
@@ -0,0 +1,387 @@
1
+ import { a as sharedWeakMap } from "./sharedRealm-H1OrlP0V.js";
2
+ import { t as resolveMotion } from "./resolveMotion-BLdMNTpf.js";
3
+ import { n as springs } from "./springs-BR66JuIm.js";
4
+ import { A as glideOf, C as springGlide, D as intersects, E as safeAnimate, O as scaleOf, S as sampleOver, _ as pxClip, a as rideNeighbour, b as layoutMotion, c as placeOf, d as areaOf, f as createAnimatedLayout, g as previousInFlow, h as isRtl, i as reportLayoutChange, k as visibleRect, m as extentOf, n as landLayoutGlide, s as nextInFlow, v as changeStartIn, w as beginChange, y as glideNextChange } from "./landing-DrnLUanQ.js";
5
+ //#region src/motion/layout/edgeReport.ts
6
+ const resizeReveals = sharedWeakMap("motion/animated-layout/resize-reveals", 1);
7
+ /** The inline properties a size hold sets, by axis. */
8
+ const HOLD_PROPERTIES = {
9
+ inline: [
10
+ "inline-size",
11
+ "min-inline-size",
12
+ "max-inline-size",
13
+ "flex-basis",
14
+ "flex-grow",
15
+ "flex-shrink"
16
+ ],
17
+ block: [
18
+ "block-size",
19
+ "min-block-size",
20
+ "max-block-size",
21
+ "flex-basis",
22
+ "flex-grow",
23
+ "flex-shrink"
24
+ ]
25
+ };
26
+ function insideOf(element, axis) {
27
+ const style = getComputedStyle(element);
28
+ return {
29
+ gutters: [style.getPropertyValue(`padding-${axis}-start`), style.getPropertyValue(`padding-${axis}-end`)],
30
+ overflow: [style.getPropertyValue("overflow-x"), style.getPropertyValue("overflow-y")],
31
+ scroll: [element.scrollLeft, element.scrollTop]
32
+ };
33
+ }
34
+ function restoreScroll(element, inside) {
35
+ const [across, down] = inside.scroll;
36
+ if (element.scrollLeft !== across) element.scrollLeft = across;
37
+ if (element.scrollTop !== down) element.scrollTop = down;
38
+ }
39
+ /**
40
+ * Holds `element` at `extent` own px along `edge`'s axis while it conceals to
41
+ * `keep`, freeing the difference by the margin on that edge's side, so what
42
+ * lies beyond the edge stays where the new size puts it. Its padding,
43
+ * overflow and scroll offset stay as `inside` measured them, so nothing in it
44
+ * moves while it is clipped. Returns what puts back every value it set.
45
+ * When no margin frees it, as the content on that side did not stay put, it
46
+ * sets nothing and returns null.
47
+ */
48
+ function holdExtent(element, area, edge, extent, keep, inside) {
49
+ const axis = edge.startsWith("inline") ? "inline" : "block";
50
+ const margin = `margin-${edge}`;
51
+ const insideProperties = [
52
+ [`padding-${axis}-start`, inside.gutters[0]],
53
+ [`padding-${axis}-end`, inside.gutters[1]],
54
+ ["overflow-x", inside.overflow[0]],
55
+ ["overflow-y", inside.overflow[1]]
56
+ ];
57
+ const prior = [
58
+ ...HOLD_PROPERTIES[axis],
59
+ margin,
60
+ ...insideProperties.map(([property]) => property)
61
+ ].map((property) => [
62
+ property,
63
+ element.style.getPropertyValue(property),
64
+ element.style.getPropertyPriority(property)
65
+ ]);
66
+ const restore = () => {
67
+ for (const [property, value, priority] of prior) if (value === "") element.style.removeProperty(property);
68
+ else element.style.setProperty(property, value, priority);
69
+ };
70
+ const isEnd = edge.endsWith("end");
71
+ const rtl = axis === "inline" && isRtl(element);
72
+ const beyond = isEnd ? nextInFlow(element, area) : previousInFlow(element, area);
73
+ const before = beyond == null ? null : placeOf(beyond, rtl);
74
+ const size = `${extent}px`;
75
+ element.style.setProperty(`${axis}-size`, size, "important");
76
+ element.style.setProperty(`min-${axis}-size`, size, "important");
77
+ element.style.setProperty(`max-${axis}-size`, size, "important");
78
+ element.style.setProperty("flex-basis", "auto", "important");
79
+ element.style.setProperty("flex-grow", "0", "important");
80
+ element.style.setProperty("flex-shrink", "0", "important");
81
+ for (const [property, value] of insideProperties) if (value !== "") element.style.setProperty(property, value, "important");
82
+ element.style.setProperty(margin, `${keep - extent}px`, "important");
83
+ if (beyond != null && before != null) {
84
+ const landed = placeOf(beyond, rtl);
85
+ const scale = scaleOf(element, element.getBoundingClientRect());
86
+ const perPx = axis === "inline" ? scale.x : scale.y;
87
+ const sign = isEnd ? 1 : -1;
88
+ const drift = (landed[axis] - before[axis]) * sign;
89
+ if (Math.abs(drift) > .5) element.style.setProperty(margin, `${keep - extent - drift / perPx}px`, "important");
90
+ const settled = placeOf(beyond, rtl);
91
+ if (Math.abs(settled.block - before.block) > 1 || Math.abs(settled.inline - before.inline) > 1) {
92
+ restore();
93
+ return null;
94
+ }
95
+ }
96
+ restoreScroll(element, inside);
97
+ return restore;
98
+ }
99
+ /**
100
+ * Reports a resized element's edge reveal (`spec:AST-105` FR9) with no copy:
101
+ * a resize controller's pane collapsing or opening beside the content it
102
+ * shares a row with (`component:Resizable` FR8, `component:LayoutPanel`
103
+ * FR7). Measure before the change commits and animate after the
104
+ * new size is applied, as `reportLayoutChange` does; the content beside the
105
+ * element glides through that report. A larger extent reveals by `edge` from
106
+ * the extent the element showed. A smaller one conceals: the element is held
107
+ * at the extent it was laid out at, the difference freed by the margin on
108
+ * that edge's side so the content beyond it stays where the new size puts it,
109
+ * and clipped down to its new extent; the hold goes when the motion ends.
110
+ * Its padding, overflow and scroll offset stay as laid out while it is held,
111
+ * so nothing inside it jumps when the new size changes them. The
112
+ * moving edge rides the glide of the content on that side, frame by frame,
113
+ * and a change made while it runs starts from the extent it shows. It slides:
114
+ * nothing fades. Under Reduce Motion with a coarse primary pointer a reveal
115
+ * fades in and a conceal lands at once (`design:reduced-motion` DR2); with a
116
+ * fine one every change lands at once (DR3).
117
+ */
118
+ function reportLayoutEdge(handle, getElement, { edge = "block-end" } = {}) {
119
+ const report = reportLayoutChange(handle, getElement);
120
+ /**
121
+ * What the element showed, its laid-out extent and its box, before the
122
+ * change.
123
+ */
124
+ let measured = null;
125
+ const axis = edge.startsWith("inline") ? "inline" : "block";
126
+ const release = (element) => {
127
+ if (element == null) return;
128
+ resizeReveals.get(element)?.release();
129
+ };
130
+ return {
131
+ measureBefore() {
132
+ const element = getElement();
133
+ measured = null;
134
+ if (element != null) {
135
+ beginChange(element.ownerDocument);
136
+ const running = resizeReveals.get(element);
137
+ const elapsed = Number(running?.animation?.currentTime);
138
+ const rect = element.getBoundingClientRect();
139
+ const inside = insideOf(element, axis);
140
+ measured = running == null ? {
141
+ shown: extentOf(element, edge),
142
+ box: extentOf(element, edge),
143
+ rect,
144
+ inside
145
+ } : {
146
+ shown: running.shownAt(Number.isFinite(elapsed) ? Math.max(0, elapsed) : 0),
147
+ box: running.box,
148
+ rect,
149
+ inside
150
+ };
151
+ running?.release();
152
+ }
153
+ report.measureBefore();
154
+ },
155
+ animate() {
156
+ report.animate();
157
+ const element = getElement();
158
+ const before = measured;
159
+ measured = null;
160
+ if (handle == null || element == null || before == null) return;
161
+ restoreScroll(element, before.inside);
162
+ const area = areaOf(handle, element);
163
+ if (area == null) return;
164
+ const after = extentOf(element, edge);
165
+ if (Math.abs(after - before.shown) < .5) return;
166
+ const visible = visibleRect(area);
167
+ if (!intersects(element.getBoundingClientRect(), visible) && !intersects(before.rect, visible)) return;
168
+ const motion = layoutMotion(area);
169
+ if (motion.kind === "instant") return;
170
+ const isConceal = after < before.shown;
171
+ const change = changeStartIn(area, element.ownerDocument);
172
+ if (motion.kind === "fade") {
173
+ if (!isConceal) safeAnimate(element, [{ opacity: 0 }, { opacity: 1 }], {
174
+ duration: motion.durationMs,
175
+ easing: motion.easing
176
+ }, change);
177
+ return;
178
+ }
179
+ const { progress } = motion;
180
+ const rtl = edge.startsWith("inline") && isRtl(element);
181
+ const box = isConceal ? Math.max(before.box, before.shown) : after;
182
+ const restore = isConceal ? holdExtent(element, area, edge, box, after, before.inside) : () => {};
183
+ if (restore == null) return;
184
+ const from = box - before.shown;
185
+ const to = box - after;
186
+ const curve = (t) => to + (from - to) * progress.remaining(t);
187
+ const animation = safeAnimate(element, sampleOver(progress.durationMs, (t) => ({ clipPath: pxClip(edge, curve(t), rtl) })), {
188
+ duration: progress.durationMs,
189
+ easing: "linear"
190
+ }, change);
191
+ const reveal = {
192
+ animation,
193
+ shownAt: (t) => box - curve(t),
194
+ box,
195
+ release: () => {
196
+ if (resizeReveals.get(element) !== reveal) return;
197
+ resizeReveals.delete(element);
198
+ animation?.cancel();
199
+ restore();
200
+ }
201
+ };
202
+ if (animation == null) {
203
+ restore();
204
+ return;
205
+ }
206
+ resizeReveals.set(element, reveal);
207
+ animation.addEventListener?.("finish", reveal.release);
208
+ rideNeighbour(element, area, edge, rtl, animation, () => resizeReveals.get(element) === reveal, (towards) => Math.min(box, Math.max(0, isConceal ? to - towards : -towards)), (hidden) => ({ clipPath: pxClip(edge, hidden, rtl) }), (hiddenAt) => {
209
+ reveal.shownAt = (t) => box - hiddenAt(t);
210
+ });
211
+ },
212
+ cancel() {
213
+ measured = null;
214
+ release(getElement());
215
+ }
216
+ };
217
+ }
218
+ //#endregion
219
+ //#region src/Resizable/resizablePane.ts
220
+ function createRegionPaneSlot(onPaneChange) {
221
+ let current = null;
222
+ let listener = null;
223
+ let isDragging = false;
224
+ return {
225
+ attach(pane) {
226
+ if (pane === current) return;
227
+ current = pane;
228
+ onPaneChange(pane);
229
+ },
230
+ pane: () => current,
231
+ listen(next) {
232
+ listener = next;
233
+ },
234
+ beforeChange(toCollapsed) {
235
+ listener?.beforeChange(toCollapsed);
236
+ },
237
+ committed() {
238
+ listener?.committed();
239
+ },
240
+ setPointerDragging(next) {
241
+ isDragging = next;
242
+ },
243
+ isPointerDragging: () => isDragging
244
+ };
245
+ }
246
+ /** 和收起控制一样不放进导出的 `ResizableProps`:手写的对象没有区域,面板不滑动。 */
247
+ const propsRegions = sharedWeakMap("resizable/resizable-pane/props-regions", 1);
248
+ /** `useResizable` 给它返回的每个 props 对象登记所属区域。 */
249
+ function registerPropsRegion(props, slot) {
250
+ propsRegions.set(props, slot);
251
+ }
252
+ /** `useResizable` 自己的 props 所属的区域;手写对象返回 undefined。 */
253
+ function regionOfProps(props) {
254
+ return propsRegions.get(props);
255
+ }
256
+ /** 在面板所在的那一行上用区域自己的布局动效句柄播,不留副本。 */
257
+ function createPaneReveal(getRow) {
258
+ let pending = null;
259
+ let played = null;
260
+ const layout = createAnimatedLayout(getRow);
261
+ const land = () => {
262
+ pending?.report.cancel();
263
+ pending = null;
264
+ played?.cancel();
265
+ played = null;
266
+ for (const child of getRow()?.children ?? []) landLayoutGlide(child);
267
+ };
268
+ return {
269
+ measure(pane) {
270
+ pending?.report.cancel();
271
+ pending = null;
272
+ const element = pane.element;
273
+ const report = reportLayoutEdge(layout, () => element, { edge: pane.contentFacingEdge() });
274
+ report.measureBefore();
275
+ pending = {
276
+ report,
277
+ pane,
278
+ widthBefore: pane.renderedWidth()
279
+ };
280
+ },
281
+ committed(pane) {
282
+ if (pending == null || pending.pane !== pane || pane.renderedWidth() === pending.widthBefore) return;
283
+ const { report } = pending;
284
+ pending = null;
285
+ played = report;
286
+ report.animate();
287
+ },
288
+ land
289
+ };
290
+ }
291
+ /**
292
+ * `row` 里下一次滑动按主题节奏的 settle 弹簧走,而不是主题的曲线。
293
+ * 从松手速度 `velocity`(朝终点的 px/s)出发,走 `distance` px。
294
+ * 返回「按滑动开始后的毫秒数,还剩多少比例没走」;什么都不滑时返回 null。
295
+ */
296
+ function slideNextOnRelease(row, velocity, distance) {
297
+ if (!(distance > 0)) return null;
298
+ const progress = springGlide(resolveMotion(row, springs.settle), velocity / distance);
299
+ glideNextChange(row, progress);
300
+ return (elapsedMs) => elapsedMs >= progress.durationMs ? 0 : progress.remaining(elapsedMs);
301
+ }
302
+ function edgeGeometry(pane) {
303
+ const element = pane.element;
304
+ const edge = pane.contentFacingEdge();
305
+ const isInline = edge.startsWith("inline");
306
+ const isRtl = isInline && element.ownerDocument.defaultView?.getComputedStyle(element).direction === "rtl";
307
+ return {
308
+ isInline,
309
+ isForward: isInline ? edge.endsWith("end") !== isRtl : edge.endsWith("end")
310
+ };
311
+ }
312
+ /**
313
+ * 从分隔条画出来的中线读面板的边此刻显示的尺寸,滑动也算在内。
314
+ * 在面板显示 `size` 时量一次。
315
+ */
316
+ function shownSizeReader(pane, handle, size) {
317
+ if (handle == null) return null;
318
+ const { isInline, isForward } = edgeGeometry(pane);
319
+ const rect = pane.element.getBoundingClientRect();
320
+ const far = isInline ? isForward ? rect.left : rect.right : isForward ? rect.top : rect.bottom;
321
+ const sign = isForward ? 1 : -1;
322
+ const middle = () => {
323
+ const box = handle.getBoundingClientRect();
324
+ return isInline ? box.left + box.width / 2 : box.top + box.height / 2;
325
+ };
326
+ const offset = sign * (middle() - far) - size;
327
+ return () => Math.max(sign * (middle() - far) - offset, 0);
328
+ }
329
+ /** 脚本播的动效,不是 CSS 过渡或 CSS 动画。 */
330
+ function isScriptMotion(motion) {
331
+ return !("transitionProperty" in motion) && !("animationName" in motion);
332
+ }
333
+ /** 面板此刻滑动的那些动效:旁边在滑的内容,和同一时钟上它自己那条边的动效。滑完后为空。 */
334
+ function slideMotionsOf(pane) {
335
+ const element = pane.element;
336
+ const beside = [...element.parentElement?.children ?? []].filter((child) => child !== element).map(glideOf).filter((motion) => motion != null);
337
+ const durationOf = (motion) => Number(motion.effect?.getComputedTiming().duration ?? 0);
338
+ const durationMs = beside.length > 0 ? durationOf(beside[0]) : null;
339
+ return [...typeof element.getAnimations === "function" ? element.getAnimations().filter((motion) => isScriptMotion(motion) && (durationMs == null || Math.abs(durationOf(motion) - durationMs) < 1)) : [], ...beside];
340
+ }
341
+ function edgeAxis(pane) {
342
+ const { isInline, isForward } = edgeGeometry(pane);
343
+ return {
344
+ sign: isForward ? 1 : -1,
345
+ axis: isInline ? "x" : "y"
346
+ };
347
+ }
348
+ //#endregion
349
+ //#region src/composables/internal/resizableChannel.ts
350
+ /**
351
+ * Enter 和双击要恢复折叠前的尺寸。这个能力不放进导出的 `ResizableProps`,
352
+ * 手写的 props 没有登记,手柄就退回「收到最小值」。
353
+ */
354
+ const collapseControls = /* @__PURE__ */ new WeakMap();
355
+ /** 没有配置上限时,分隔条要报的那个最大值。手写 props 不在这张表里。 */
356
+ const effectiveMaxima = /* @__PURE__ */ new WeakMap();
357
+ function registerResizableChannel(props, controls, effectiveMax) {
358
+ collapseControls.set(props, controls);
359
+ if (effectiveMax != null && Number.isFinite(effectiveMax)) effectiveMaxima.set(props, effectiveMax);
360
+ }
361
+ function getCollapseControls(props) {
362
+ return collapseControls.get(props);
363
+ }
364
+ /** 带着松手速度结束 `props` 跟着的拖动;手写的 props 不带速度地结束。 */
365
+ function endResizeAt(props, velocity) {
366
+ const release = collapseControls.get(props)?.release;
367
+ if (release == null) props._onResizeEnd();
368
+ else release(velocity);
369
+ }
370
+ function getEffectiveMaxPx(props) {
371
+ return effectiveMaxima.get(props);
372
+ }
373
+ /** `resizable` 传的是 `useResizable()` 的返回值(带着 `props`)还是它的 `props`,统一取出 `props`。 */
374
+ function resizablePropsOf(value) {
375
+ return isResizableRegion(value) ? value.props : value;
376
+ }
377
+ function isResizableRegion(value) {
378
+ const region = value;
379
+ return typeof region.collapse === "function" && typeof region.expand === "function" && region.props?._isResizableProps === true;
380
+ }
381
+ /** 面板旁边紧挨着的那个分隔条:起始侧面板在它后面,结束侧面板在它前面。 */
382
+ function resizeHandleBeside(panel, area) {
383
+ const sibling = area === "end" ? panel.previousElementSibling : panel.nextElementSibling;
384
+ return sibling instanceof HTMLElement && sibling.getAttribute("role") === "separator" ? sibling : null;
385
+ }
386
+ //#endregion
387
+ export { resizablePropsOf as a, createRegionPaneSlot as c, regionOfProps as d, registerPropsRegion as f, slideNextOnRelease as h, registerResizableChannel as i, edgeAxis as l, slideMotionsOf as m, getCollapseControls as n, resizeHandleBeside as o, shownSizeReader as p, getEffectiveMaxPx as r, createPaneReveal as s, endResizeAt as t, isScriptMotion as u };
@@ -0,0 +1,117 @@
1
+ import { o as solveSpring, s as toSpring, t as linearEasing } from "./linearEasing-BxWjPql6.js";
2
+ import { n as motionRoleOf, s as isSpring, t as motionRoleIn } from "./roles-CPMsH5Ob.js";
3
+ //#region src/motion/themeTempo.ts
4
+ /**
5
+ * @file themeTempo.ts
6
+ * @input An element on the page
7
+ * @output `themeTempo(element)`: the tempo of the theme the element is in
8
+ * @position Motion foundation; resolveMotion.ts scales a motion role by it,
9
+ * and the pager scales its settle by it, which no role names
10
+ *
11
+ * A theme that sets `tempo` writes it, clamped, to the private custom
12
+ * property `--_astryx-motion-tempo` beside its duration tokens. An
13
+ * adaptation rule writes it where its condition holds, and a nested theme
14
+ * that sets no tempo inherits it. A layer whose durations come from a
15
+ * duration scale writes a tempo of 1, so its springs keep its own pace. One
16
+ * read of a custom property forces no layout.
17
+ * Nothing here imports a theme module, runs on import or runs on the server.
18
+ */
19
+ /** The property a theme that sets `tempo` writes (theme/themeMotion.ts). */
20
+ const TEMPO_PROPERTY = "--_astryx-motion-tempo";
21
+ /**
22
+ * The tempo motion on `element` plays at: the one its theme or an adaptation
23
+ * rule sets, else 1. Without an element in a document, or with a value that
24
+ * is not a positive number, it is 1.
25
+ */
26
+ function themeTempo(element) {
27
+ const view = element?.ownerDocument?.defaultView;
28
+ if (element == null || view == null) return 1;
29
+ const text = view.getComputedStyle(element).getPropertyValue(TEMPO_PROPERTY).trim();
30
+ const tempo = text === "" ? NaN : Number(text);
31
+ return Number.isFinite(tempo) && tempo > 0 ? tempo : 1;
32
+ }
33
+ //#endregion
34
+ //#region src/motion/resolveMotion.ts
35
+ /**
36
+ * The roles the tempo leaves as measured: the parts that follow a finger,
37
+ * and ProgressBar's busy loop.
38
+ */
39
+ const FIXED_ROLES = /* @__PURE__ */ new Set([
40
+ "springs.fingerTracking",
41
+ "switchControl.tracking",
42
+ "progress.reducedMotionPulseMs"
43
+ ]);
44
+ /** Each role spring at each tempo, so a role resolves to one object per tempo. */
45
+ const springsAtTempo = /* @__PURE__ */ new WeakMap();
46
+ /**
47
+ * `spring` at `tempo`. In each of its forms, the undamped period grows by the
48
+ * tempo and the damping ratio stays. So the motion keeps its shape and takes
49
+ * `tempo` times as long.
50
+ */
51
+ function springAtTempo(spring, tempo) {
52
+ let byTempo = springsAtTempo.get(spring);
53
+ if (byTempo == null) {
54
+ byTempo = /* @__PURE__ */ new Map();
55
+ springsAtTempo.set(spring, byTempo);
56
+ }
57
+ let scaled = byTempo.get(tempo);
58
+ if (scaled == null) {
59
+ if ("response" in spring) scaled = {
60
+ response: spring.response * tempo,
61
+ dampingRatio: spring.dampingRatio
62
+ };
63
+ else if ("duration" in spring) scaled = {
64
+ duration: spring.duration * tempo,
65
+ bounce: spring.bounce
66
+ };
67
+ else scaled = {
68
+ ...spring.mass == null ? null : { mass: spring.mass },
69
+ stiffness: spring.stiffness / (tempo * tempo),
70
+ damping: spring.damping / tempo
71
+ };
72
+ byTempo.set(tempo, scaled);
73
+ }
74
+ return scaled;
75
+ }
76
+ function resolveMotion(element, leafOrGroup, key) {
77
+ const value = key === void 0 ? leafOrGroup : leafOrGroup[key];
78
+ const role = key === void 0 ? motionRoleOf(leafOrGroup) : motionRoleIn(leafOrGroup, key);
79
+ if (role == null || role.kind === "curve" || FIXED_ROLES.has(role.id)) return value;
80
+ const tempo = themeTempo(element);
81
+ if (tempo === 1) return value;
82
+ if (typeof value === "number") return value * tempo;
83
+ return isSpring(value) ? springAtTempo(value, tempo) : value;
84
+ }
85
+ /**
86
+ * How `move` on `spring` plays at the tempo of the theme `element` is in: how
87
+ * long it takes, as `resolveSettleMs` gives it, and its progress over that
88
+ * time as CSS `linear()` easing. A CSS part that takes both follows the
89
+ * spring frame by frame, so the two start and land together. A sheet's scrim
90
+ * fades this way under the sheet's close.
91
+ *
92
+ * With `doneAt`, a position between `from` and `to`, the progress is measured
93
+ * toward `doneAt` instead. It reaches 1 the first time the move gets there
94
+ * and stays at 1. A sheet leaves view before its close ends, because its
95
+ * surface reaches below the screen, and its scrim is clear by then.
96
+ */
97
+ function resolveMoveTiming(element, spring, move, doneAt = move.to) {
98
+ const curve = solveSpring(toSpring(resolveMotion(element, spring)), move);
99
+ const durationMs = curve.settleTime(move.epsilon) * 1e3;
100
+ const span = doneAt - move.from;
101
+ if (span === 0 || durationMs === 0) return {
102
+ durationMs,
103
+ easing: linearEasing(durationMs, () => 1)
104
+ };
105
+ const progressAt = (t) => (curve.value(t / 1e3) - move.from) / span;
106
+ let reachedAt = Infinity;
107
+ for (let t = 0; t <= durationMs; t++) if (progressAt(t) >= 1) {
108
+ reachedAt = t;
109
+ break;
110
+ }
111
+ return {
112
+ durationMs,
113
+ easing: linearEasing(durationMs, (t) => t >= reachedAt ? 1 : progressAt(t))
114
+ };
115
+ }
116
+ //#endregion
117
+ export { resolveMoveTiming as n, resolveMotion as t };
@@ -0,0 +1,110 @@
1
+ import { a as selectSnapPoint } from "./rubberBand-DecgmtDj.js";
2
+ //#region src/motion/resolveSnapPoint.ts
3
+ /**
4
+ * @file resolveSnapPoint.ts
5
+ * @input A release (position and velocity on one axis), the points it can
6
+ * land on, and the release policy's thresholds
7
+ * @output Exports resolveSnapPoint: the index of the snap point a release lands on,
8
+ * and the projected rest position it was judged from
9
+ * @position The release policy of the motion foundation, on
10
+ * `selectSnapPoint` (projection.ts), which stays the math primitive
11
+ * (projection + nearest). Pure: no DOM, no React. Internal to core: not
12
+ * exported from the package or any barrel (resolveSnapPoint.test.ts locks
13
+ * that). A component's release rule calls it with its own points and
14
+ * thresholds; this is the one "where does a release land" helper, so a
15
+ * second one should not be added beside it.
16
+ *
17
+ * - A slow release lands on the snap point nearest where it would come to rest:
18
+ * its position, or, with `projection`, its position plus the distance it
19
+ * would coast at its velocity (projection.ts). Below
20
+ * `projection.minSpeed` nothing is projected, so it lands on the snap point
21
+ * nearest where it was let go. A tie goes the way a projected release
22
+ * moves, and otherwise to the earlier snap point (`selectSnapPoint`).
23
+ * - A flick (`flickThreshold` or faster) lands at least on the next snap point
24
+ * beyond its position in the direction it moves, or on the nearest
25
+ * snap point to its projection if that is farther. A snap point within
26
+ * `tolerance` of the position counts as reached, so the flick goes on to
27
+ * the one after it. With `flickPastProjection`, a flick lands on the first
28
+ * snap point at or past its projection instead. A projection that passes a
29
+ * snap point carries the flick on.
30
+ * - With `start` (where the drag began), a release moving back toward it
31
+ * cancels to the snap point nearest `start`, whatever its travel so far or its
32
+ * speed.
33
+ * - With `fromIndex` and `maxSteps`, a release lands at most `maxSteps`
34
+ * points away from the one at `fromIndex` (a pager's one page per
35
+ * release).
36
+ *
37
+ * Snap points are ascending positions on the axis; velocities are in the same
38
+ * units per second, positive toward larger positions.
39
+ */
40
+ /** The deceleration rate whose projection reaches `seconds` of the velocity. */
41
+ function rateForProjection(seconds) {
42
+ const ms = seconds * 1e3;
43
+ return ms / (1 + ms);
44
+ }
45
+ /** The index of the snap point nearest `position` (the first on a tie). */
46
+ function nearestIndex(points, position) {
47
+ let best = 0;
48
+ for (let i = 1; i < points.length; i += 1) if (Math.abs(points[i] - position) < Math.abs(points[best] - position)) best = i;
49
+ return best;
50
+ }
51
+ /**
52
+ * The snap point a release lands on.
53
+ *
54
+ * @example
55
+ * ```
56
+ * // Snap points at 0, 300 and 640 px. Released at 300 px moving toward 640 at
57
+ * // 1200 px/s, a flick: on to 640, although its projection (420 px) is
58
+ * // nearer 300.
59
+ * resolveSnapPoint({
60
+ * points: [0, 300, 640],
61
+ * position: 300,
62
+ * velocity: 1200,
63
+ * flickThreshold: 1008,
64
+ * tolerance: 1,
65
+ * projection: {seconds: 0.1, minSpeed: 250},
66
+ * start: 0,
67
+ * }); // {index: 2, projected: 420}
68
+ * ```
69
+ */
70
+ function resolveSnapPoint({ points, position, velocity, flickThreshold, tolerance = 0, flickPastProjection = false, projection, start, fromIndex, maxSteps }) {
71
+ if (points.length === 0) throw new RangeError("resolveSnapPoint needs at least one snap point");
72
+ const projectedVelocity = projection == null || Math.abs(velocity) < (projection.minSpeed ?? 0) ? 0 : velocity;
73
+ const choice = selectSnapPoint(points, {
74
+ position,
75
+ velocity: projectedVelocity,
76
+ rate: projection == null ? void 0 : rateForProjection(projection.seconds),
77
+ fromIndex,
78
+ maxSteps
79
+ });
80
+ let index = choice.index;
81
+ if (Math.abs(velocity) >= flickThreshold) {
82
+ let next = -1;
83
+ if (velocity > 0) next = points.findIndex((d) => d > position + tolerance);
84
+ else for (let i = points.length - 1; i >= 0 && next === -1; i -= 1) if (points[i] < position - tolerance) next = i;
85
+ if (next !== -1 && (velocity > 0 ? next > index : next < index)) index = next;
86
+ if (flickPastProjection) {
87
+ const projected = choice.projected;
88
+ let past = velocity > 0 ? points.length - 1 : 0;
89
+ if (velocity > 0) {
90
+ const at = points.findIndex((d) => d >= projected - tolerance);
91
+ past = at === -1 ? past : at;
92
+ } else for (let i = points.length - 1; i >= 0; i -= 1) if (points[i] <= projected + tolerance) {
93
+ past = i;
94
+ break;
95
+ }
96
+ if (velocity > 0 ? past > index : past < index) index = past;
97
+ }
98
+ }
99
+ if (start != null && velocity !== 0 && Math.sign(velocity) === Math.sign(start - position)) index = nearestIndex(points, start);
100
+ if (fromIndex != null && maxSteps != null) {
101
+ const from = Math.min(Math.max(fromIndex, 0), points.length - 1);
102
+ index = Math.min(Math.max(index, from - maxSteps), from + maxSteps);
103
+ }
104
+ return {
105
+ index,
106
+ projected: choice.projected
107
+ };
108
+ }
109
+ //#endregion
110
+ export { resolveSnapPoint as t };