@astryx-vue/core 0.32.0 → 0.33.0

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 (328) 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-CPQDndnd.js} +5 -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.d.ts +2 -2
  19. package/dist/Breadcrumbs/index.js +2 -2
  20. package/dist/{Breadcrumbs-CnvaPn8M.js → Breadcrumbs-BrxMrKHO.js} +1 -1
  21. package/dist/Button/index.d.ts +1 -1
  22. package/dist/Button/index.js +1 -1
  23. package/dist/{Button-CzMWqCpJ.js → Button-X7k1WCkW.js} +4 -4
  24. package/dist/ButtonGroup/index.d.ts +1 -1
  25. package/dist/ButtonGroup/index.js +1 -1
  26. package/dist/{ButtonGroup-oI99JAyN.js → ButtonGroup-D5E7QLWI.js} +2 -2
  27. package/dist/Calendar/index.d.ts +1 -1
  28. package/dist/Card/index.d.ts +1 -1
  29. package/dist/Carousel/index.d.ts +1 -1
  30. package/dist/Carousel/index.js +1 -1
  31. package/dist/{Carousel-BjyedZ0Y.js → Carousel-Bpbx-2DK.js} +1 -1
  32. package/dist/Chat/index.d.ts +1 -1
  33. package/dist/Chat/index.js +1 -1
  34. package/dist/{Chat-CJr2RIyc.js → Chat-D7Q2z9W2.js} +5 -5
  35. package/dist/CheckboxInput/index.d.ts +1 -1
  36. package/dist/CheckboxInput/index.js +1 -1
  37. package/dist/{CheckboxInput-BrbQTrL-.js → CheckboxInput-Cxtmdymo.js} +3 -3
  38. package/dist/CheckboxList/index.d.ts +1 -1
  39. package/dist/CheckboxList/index.js +1 -1
  40. package/dist/{CheckboxListItem-CrAzFR4x.js → CheckboxListItem-C75nzKE8.js} +5 -5
  41. package/dist/ClickableCard/index.d.ts +1 -1
  42. package/dist/ClickableCard/index.js +1 -1
  43. package/dist/{ClickableCard-B86P2aiM.js → ClickableCard-CLXCxaxo.js} +1 -1
  44. package/dist/Code/index.d.ts +1 -1
  45. package/dist/Code/index.js +1 -1
  46. package/dist/{CodeBlock-pWPw1-iu.js → CodeBlock-Bgxy15iD.js} +1 -1
  47. package/dist/Collapsible/index.d.ts +1 -1
  48. package/dist/Collapsible/index.js +1 -1
  49. package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf9evVsQ.js} +3 -3
  50. package/dist/CommandPalette/index.d.ts +1 -1
  51. package/dist/CommandPalette/index.js +1 -1
  52. package/dist/{CommandPalette-DnbvnT4c.js → CommandPalette-CniaCqex.js} +2 -2
  53. package/dist/ComplexSelector/index.d.ts +1 -1
  54. package/dist/ComplexSelector/index.js +1 -1
  55. package/dist/{ComplexSelector-DWQbuovE.js → ComplexSelector-DYeYZKON.js} +2 -2
  56. package/dist/ContextMenu/index.d.ts +2 -2
  57. package/dist/ContextMenu/index.js +2 -2
  58. package/dist/{ContextMenu-DfoShDVW.js → ContextMenu-Bp7G_Ys2.js} +6 -6
  59. package/dist/DateInput/index.d.ts +1 -1
  60. package/dist/DateInput/index.js +1 -1
  61. package/dist/{DateInput-D9_QsZMj.js → DateInput-BmEbQA1z.js} +4 -4
  62. package/dist/DateRangeInput/index.d.ts +1 -1
  63. package/dist/DateRangeInput/index.js +1 -1
  64. package/dist/{DateRangeInput-8P8i8aVI.js → DateRangeInput-CoA1PuGz.js} +3 -3
  65. package/dist/DateTimeInput/index.d.ts +1 -1
  66. package/dist/DateTimeInput/index.js +1 -1
  67. package/dist/{DateTimeInput-C2XWslHp.js → DateTimeInput-CL0sp0ES.js} +5 -5
  68. package/dist/Dialog/index.d.ts +1 -1
  69. package/dist/Dialog/index.js +3 -3
  70. package/dist/{Dialog-Cet6PTnf.js → Dialog-C46xHdDO.js} +1 -1
  71. package/dist/{Dialog-B1Hlr0x_.js → Dialog-uzq24bX_.js} +2 -2
  72. package/dist/{DialogHeader-BiHQct4G.js → DialogHeader-E0auaRKt.js} +2 -2
  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.d.ts +2 -2
  77. package/dist/DropdownMenu/index.js +2 -2
  78. package/dist/{DropdownMenu-BaRXEFLa.js → DropdownMenu-DrJpONZH.js} +8 -8
  79. package/dist/{DropdownMenuRadioItem.vue-B4iwMWWD.d.ts → DropdownMenuRadioItem.vue-BDDI4EZK.d.ts} +1 -1
  80. package/dist/EmptyState/index.js +1 -1
  81. package/dist/{EmptyState-CXDlpIdI.js → EmptyState-C8WQltQk.js} +2 -2
  82. package/dist/Field/index.js +3 -3
  83. package/dist/{Field-njr7AUcW.js → Field-CrnwM-2A.js} +1 -1
  84. package/dist/{FieldInfoTip-DLqZykVm.js → FieldInfoTip-DqQP1T-d.js} +1 -1
  85. package/dist/{FieldLabel-CyL5D1lu.js → FieldLabel-CLxclKT2.js} +1 -1
  86. package/dist/FileInput/index.d.ts +1 -1
  87. package/dist/FileInput/index.js +1 -1
  88. package/dist/{FileInput-CtqZSRdh.js → FileInput-BHFjo_zo.js} +3 -3
  89. package/dist/Heading/index.js +1 -1
  90. package/dist/{Heading-BXTbW_px.js → Heading-jYno4L3t.js} +1 -1
  91. package/dist/HoverCard/index.d.ts +1 -1
  92. package/dist/HoverCard/index.js +1 -1
  93. package/dist/{HoverCard-zVUEeqF2.js → HoverCard-D_6idU4r.js} +4 -4
  94. package/dist/IconButton/index.js +1 -1
  95. package/dist/{IconButton-CoZFp0CP.js → IconButton-B6m42AlL.js} +1 -1
  96. package/dist/InfoTip/index.d.ts +1 -1
  97. package/dist/InfoTip/index.js +1 -1
  98. package/dist/{InfoTip-Eg2IGZJw.js → InfoTip-CUkTHca2.js} +2 -2
  99. package/dist/{InputClearButton-CBsL91my.js → InputClearButton-s_MEW25n.js} +1 -1
  100. package/dist/InputGroup/index.d.ts +1 -1
  101. package/dist/InputGroup/index.js +1 -1
  102. package/dist/{InputGroup-BE83-MCX.js → InputGroup-42PbUmg-.js} +1 -1
  103. package/dist/{Item-C9u_kQUO.js → Item-tVHjgQDe.js} +2 -1
  104. package/dist/{LayerContentBoundary-DmRI6Bg0.js → LayerContentBoundary-XvH9wmdg.js} +1 -1
  105. package/dist/Layout/index.d.ts +1 -1
  106. package/dist/Layout/index.js +2 -2
  107. package/dist/{Layout-094k14rN.js → Layout-DJ6CQLw2.js} +1 -1
  108. package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-Bqh82ULc.js} +22 -2
  109. package/dist/Lightbox/index.js +1 -1
  110. package/dist/{Lightbox-5PtYb0r4.js → Lightbox-Bur4pvRo.js} +2 -2
  111. package/dist/Link/index.d.ts +1 -1
  112. package/dist/Link/index.js +1 -1
  113. package/dist/{Link-BzXVGE7G.js → Link-DVslj_GH.js} +2 -2
  114. package/dist/List/index.d.ts +2 -2
  115. package/dist/List/index.js +2 -2
  116. package/dist/ListItem-B60jTcXy.js +530 -0
  117. package/dist/Markdown/index.d.ts +1 -1
  118. package/dist/Markdown/index.js +1 -1
  119. package/dist/{Markdown-HDZPj9Vw.js → Markdown-Baq5r2Mp.js} +3 -3
  120. package/dist/MobileNav/index.js +1 -1
  121. package/dist/{MobileNavToggle-CrUf5UPQ.js → MobileNavToggle-BV3fmVmO.js} +2 -2
  122. package/dist/MoreMenu/index.d.ts +1 -1
  123. package/dist/MoreMenu/index.js +1 -1
  124. package/dist/{MoreMenu-DzpufGyj.js → MoreMenu-DIx487BZ.js} +6 -6
  125. package/dist/MultiSelector/index.d.ts +1 -1
  126. package/dist/MultiSelector/index.js +1 -1
  127. package/dist/{MultiSelector-BS6wxlx4.js → MultiSelector-eJSx3iZR.js} +8 -8
  128. package/dist/{NavDisclosure-BM0dJGLA.js → NavDisclosure-B8G8t325.js} +1 -1
  129. package/dist/{NavHeadingSurface-CuQnoV_V.js → NavHeadingSurface-BkNP_1au.js} +1 -1
  130. package/dist/NavItem/index.d.ts +1 -1
  131. package/dist/NavItem/index.js +1 -1
  132. package/dist/{NavItem-D4xHjSTo.js → NavItem-B7xpLk_x.js} +1 -1
  133. package/dist/NavMenu/index.js +3 -3
  134. package/dist/{NavMenu-fXsoJKjW.js → NavMenu-C6OU4a5Z.js} +3 -3
  135. package/dist/{NavMenuItem-BKY6eRkz.js → NavMenuItem-BZuajqYL.js} +3 -3
  136. package/dist/NumberInput/index.d.ts +1 -1
  137. package/dist/NumberInput/index.js +1 -1
  138. package/dist/{NumberInput-Ueted2wi.js → NumberInput-Dd4QQGZp.js} +3 -3
  139. package/dist/Outline/index.js +1 -1
  140. package/dist/{Outline-CnSt_KvS.js → Outline-coqRQ06s.js} +4 -3
  141. package/dist/OverflowList/index.d.ts +1 -1
  142. package/dist/OverflowList/index.js +1 -1
  143. package/dist/{OverflowList-KpebInhH.js → OverflowList-DS7cmNsr.js} +2 -2
  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-BV5n_nig.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-ezvpdXTS.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-FEpgj5dB.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.js +1 -1
  183. package/dist/{Stepper-CWluGqBs.js → Stepper-C3ZFN-Gp.js} +1 -1
  184. package/dist/Switch/index.d.ts +1 -1
  185. package/dist/Switch/index.js +1 -1
  186. package/dist/{Switch-D4ojsj_l.js → Switch-B8HRxp3u.js} +2 -2
  187. package/dist/TabList/index.d.ts +1 -1
  188. package/dist/TabList/index.js +1 -1
  189. package/dist/{TabList-S99zXoRN.js → TabList-BOQ0bvE3.js} +3 -3
  190. package/dist/Table/index.d.ts +2 -2
  191. package/dist/Table/index.js +1 -1
  192. package/dist/{Table-3NTjPpHc.js → Table-BOcDJ2a_.js} +12 -13
  193. package/dist/Text/index.js +1 -1
  194. package/dist/{Text-DNKNlENe.js → Text-DqiV40AF.js} +1 -1
  195. package/dist/TextArea/index.d.ts +1 -1
  196. package/dist/TextArea/index.js +1 -1
  197. package/dist/{TextArea-DnSmL0A8.js → TextArea-Vrx7Os5P.js} +4 -4
  198. package/dist/TextInput/index.d.ts +1 -1
  199. package/dist/TextInput/index.js +1 -1
  200. package/dist/{TextInput-DyHEMYld.js → TextInput-DOeUROX8.js} +4 -4
  201. package/dist/Thumbnail/index.js +1 -1
  202. package/dist/{Thumbnail-D8GlIdNm.js → Thumbnail-BF53Z6jm.js} +3 -3
  203. package/dist/{TimeField-ADeT0OA1.js → TimeField-CkGXOHTG.js} +4 -4
  204. package/dist/TimeInput/index.d.ts +1 -1
  205. package/dist/TimeInput/index.js +1 -1
  206. package/dist/{TimeInput-C1gzJGHk.js → TimeInput-DCksf1di.js} +2 -2
  207. package/dist/Timer/index.d.ts +1 -1
  208. package/dist/Timer/index.js +1 -1
  209. package/dist/{Timer-DhI2oV5L.js → Timer-DDrODKow.js} +1 -1
  210. package/dist/Timestamp/index.d.ts +1 -1
  211. package/dist/Timestamp/index.js +1 -1
  212. package/dist/{Timestamp-CTZSVsmd.js → Timestamp-CCzREXNN.js} +3 -3
  213. package/dist/Toast/index.js +1 -1
  214. package/dist/{Toast-DUqDW07c.js → Toast-CoAEdN_I.js} +2 -2
  215. package/dist/ToggleButton/index.d.ts +1 -1
  216. package/dist/ToggleButton/index.js +1 -1
  217. package/dist/{ToggleButton-BMBH2tmu.js → ToggleButton-DAW-pV4r.js} +3 -3
  218. package/dist/Token/index.d.ts +1 -1
  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.js +1 -1
  232. package/dist/{TreeList-CsgXzBdm.js → TreeList-BGHHEcg1.js} +4 -4
  233. package/dist/Typeahead/index.d.ts +1 -1
  234. package/dist/Typeahead/index.js +2 -2
  235. package/dist/{Typeahead-C_0dTmaf.js → Typeahead-Dowds5Z-.js} +6 -6
  236. package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
  237. package/dist/{accessibleName-Cq7krRE-.js → accessibleName-Bjt5L8jX.js} +1 -1
  238. package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
  239. package/dist/{assertOptions-Km_9Y5rI.js → assertOptions-BCEzojGr.js} +1 -1
  240. package/dist/composables/index.d.ts +3 -3
  241. package/dist/composables/index.js +12 -12
  242. package/dist/{composables-kHI1dSq2.js → composables-B7FrCjk6.js} +11 -7
  243. package/dist/{context-ZWA02GaM.js → context-BcJmSPj1.js} +1 -2
  244. package/dist/cssValues-Cr6PhYTx.js +223 -0
  245. package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
  246. package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
  247. package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
  248. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  249. package/dist/{index-CdRxeyhB.d.ts → index-BU1HdDER.d.ts} +2 -2
  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-Bxus0zuz.d.ts → index-BtPaMbkN.d.ts} +11 -11
  253. package/dist/{index-4m5X7IYX.d.ts → index-BvdhRgke.d.ts} +98 -98
  254. package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
  255. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  256. package/dist/{index-FeZXsFO-.d.ts → index-CBOv5j3c.d.ts} +3 -3
  257. package/dist/{index-Cj-Ob5jw.d.ts → index-CG6dbyeb.d.ts} +10 -10
  258. package/dist/{index-BpFzfJbo.d.ts → index-COgrQZIL.d.ts} +2 -2
  259. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  260. package/dist/{index-BIiG1CF_.d.ts → index-C_iTVOHQ.d.ts} +4 -4
  261. package/dist/{index-B83v2qNb.d.ts → index-Casdfb9N.d.ts} +4 -4
  262. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  263. package/dist/{index-DGe-ApvN.d.ts → index-CuW4AQ7M.d.ts} +3 -3
  264. package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
  265. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  266. package/dist/{index-BWWirRm3.d.ts → index-DHUCHxn2.d.ts} +1 -1
  267. package/dist/{index-CHLZPpjQ.d.ts → index-DYabo8TI.d.ts} +3 -3
  268. package/dist/{index-o3JHyrk8.d.ts → index-DjSQLT53.d.ts} +1 -1
  269. package/dist/{index-Dk50Zh3F.d.ts → index-DofC9Rll.d.ts} +2 -2
  270. package/dist/{index-JE1HrzdJ.d.ts → index-DsWEyz1N.d.ts} +1 -1
  271. package/dist/{index-C943VIzi.d.ts → index-DvCLTiDV.d.ts} +1 -1
  272. package/dist/{index-ILJ7sKx3.d.ts → index-QC9FDUDA.d.ts} +4 -4
  273. package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
  274. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  275. package/dist/{index-DAEgHJTK.d.ts → index-aHC2C89h.d.ts} +4 -4
  276. package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
  277. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  278. package/dist/index.d.ts +37 -37
  279. package/dist/index.js +103 -103
  280. package/dist/landing-Dx9vPF0t.js +51 -0
  281. package/dist/{layerDepth-8jb4An1z.js → layerDepth-BdZX0xSD.js} +1 -1
  282. package/dist/{lazyBottomSheet-CNYA5qOy.js → lazyBottomSheet-BUXYsz28.js} +1 -1
  283. package/dist/linearEasing-BxWjPql6.js +282 -0
  284. package/dist/{pressFeedback-9dqGYjxv.js → pressFeedback-CPzGi_88.js} +2 -1
  285. package/dist/pressGesture-BV4fYPIG.js +103 -0
  286. package/dist/{batch-DPlrpYU6.js → reportChange-BkOEttEP.js} +763 -4
  287. package/dist/resizableChannel-DS0idC-X.js +388 -0
  288. package/dist/resolveMotion-BLdMNTpf.js +117 -0
  289. package/dist/resolveSnapPoint-DygD-wmL.js +110 -0
  290. package/dist/roles-CPMsH5Ob.js +196 -0
  291. package/dist/rubberBand-DecgmtDj.js +123 -0
  292. package/dist/{resolveSnapPoint-DdZyBkT4.js → springs-BR66JuIm.js} +2 -182
  293. package/dist/{stillPointerGate-CpzpYNqy.js → stillPointerGate-BChxtcd6.js} +1 -1
  294. package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
  295. package/dist/{tooltipFocusRules-BfnTnTpn.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
  296. package/dist/{tooltipTriggerRules-BRdKWVzo.js → tooltipTriggerRules-CKfpQu9d.js} +1 -1
  297. package/dist/{types-ClOMFbqC.d.ts → types-BHHT6Bho.d.ts} +17 -0
  298. package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
  299. package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-BC1mJaxA.js} +1 -1
  300. package/dist/{useAttachment-BuNyeUXy.js → useAttachment-BohgLE3o.js} +3 -3
  301. package/dist/{useCombobox-DkwiskdE.js → useCombobox-BYRrwLe-.js} +1 -1
  302. package/dist/{useDismiss-fhWaGqY8.js → useDismiss-Qq0hUJoO.js} +1 -1
  303. package/dist/{useFocusTrap-DT2UCZd-.js → useFocusTrap-CX-qEF-G.js} +1 -1
  304. package/dist/{useInputStatusIcon-B1i0sFKu.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
  305. package/dist/{useMenuPress-CBtTaYOS.js → useMenuPress-DDvcJNRd.js} +2 -2
  306. package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
  307. package/dist/{useResizable-AfPBAq5c.js → useResizable-BL7wxH1p.js} +411 -85
  308. package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
  309. package/dist/{useTooltip-llyJd1q6.js → useTooltip-CgJi5QQW.js} +4 -4
  310. package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
  311. package/dist/{useTouchTriggerInternal-DzsFiDjb.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
  312. package/dist/{useTruncationTooltip-BFm7XgvO.js → useTruncationTooltip-x1cQd8of.js} +3 -3
  313. package/dist/{useTypeahead-8Y5m41VA.js → useTypeahead-CZuT8Niw.js} +1 -1
  314. package/dist/{useTypeaheadMenuConfig-Cy-gOjVd.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
  315. package/package.json +1 -1
  316. package/styles/list.css +45 -0
  317. package/styles/pressable.css +13 -0
  318. package/styles/resize-handle.css +2 -0
  319. package/styles/tree-list.css +21 -0
  320. package/dist/ListItem-_lOmngHp.js +0 -202
  321. package/dist/edge-DFaE6rUg.js +0 -164
  322. package/dist/edgeRide-UdNxbwxY.js +0 -500
  323. package/dist/handle-CwxCHapJ.js +0 -22
  324. package/dist/landing-CSCE9afT.js +0 -105
  325. package/dist/linearEasing-BiRVC8Mq.js +0 -98
  326. package/dist/resizableChannel-LElsNkSY.js +0 -33
  327. package/dist/resolveMotion-B9NDPeUz.js +0 -508
  328. package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
@@ -0,0 +1,196 @@
1
+ //#region src/motion/roleValue.ts
2
+ const ROLE_ID = /^[a-z][A-Za-z0-9]*(?:\.[a-z][A-Za-z0-9]*)+$/;
3
+ /** Whether `id` is a well-formed role name (a dotted table path). */
4
+ function isMotionRoleId(id) {
5
+ return ROLE_ID.test(id);
6
+ }
7
+ /** The CSS custom property for a role: `--motion-` + the path in kebab case. */
8
+ function motionRoleVariable(id) {
9
+ if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.sheetPresent"`);
10
+ return `--motion-${id.split(".").map((part) => part.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)).join("-")}`;
11
+ }
12
+ function isSpring(value) {
13
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
14
+ return "response" in value && "dampingRatio" in value || "duration" in value && "bounce" in value || "stiffness" in value && "damping" in value;
15
+ }
16
+ function isCurve(value) {
17
+ return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === "number");
18
+ }
19
+ //#endregion
20
+ //#region src/motion/roles.ts
21
+ const rolesById = /* @__PURE__ */ new Map();
22
+ /** A table id → the table registered under it. */
23
+ const tablesById = /* @__PURE__ */ new Map();
24
+ /** A spring or curve leaf → its role. */
25
+ const roleOfLeaf = /* @__PURE__ */ new WeakMap();
26
+ /** A table or one of its groups → its path. */
27
+ const pathOfGroup = /* @__PURE__ */ new WeakMap();
28
+ /** A table path → the role id it is registered under, when renamed. */
29
+ const roleIdOfPath = /* @__PURE__ */ new Map();
30
+ /**
31
+ * Registers a motion table: each spring, `…Ms` duration and curve leaf that
32
+ * `roles` lists (its role name, relative to the table) becomes a role named
33
+ * by its path under `id`; the table's other values stay internal constants. A leaf object the table shares between
34
+ * two keys is replaced in the table by an equal copy, so each role has its own
35
+ * object (an animator resolves a role from the object it is handed).
36
+ * `exclude` lists paths, relative to the table, that are not motion;
37
+ * `rename` maps a path, relative to the table, to the role name it is
38
+ * registered under (relative too), so a role is named for its use while the
39
+ * table keeps its source's name. Registering the same table under the same id
40
+ * again does nothing.
41
+ */
42
+ function registerMotionTable(id, table, { roles = [], exclude = [], rename = {} } = {}) {
43
+ if (!/^[a-z][A-Za-z0-9]*$/.test(id)) throw new Error(`motion table id "${id}" must be one camelCase word`);
44
+ if (tablesById.get(id) === table) return;
45
+ tablesById.set(id, table);
46
+ const skip = new Set(exclude.map((path) => `${id}.${path}`));
47
+ const listed = new Set(roles.map((name) => `${id}.${name}`));
48
+ const walk = (group, prefix) => {
49
+ pathOfGroup.set(group, prefix);
50
+ for (const [key, value] of Object.entries(group)) {
51
+ const path = `${prefix}.${key}`;
52
+ if (skip.has(path)) continue;
53
+ let kind = null;
54
+ if (isSpring(value)) kind = "spring";
55
+ else if (isCurve(value)) kind = "curve";
56
+ else if (typeof value === "number" && key.endsWith("Ms")) kind = "duration";
57
+ else if (value !== null && typeof value === "object" && !Array.isArray(value)) {
58
+ walk(value, path);
59
+ continue;
60
+ }
61
+ if (kind == null) continue;
62
+ const relative = path.slice(id.length + 1);
63
+ const roleId = relative in rename ? `${id}.${rename[relative]}` : path;
64
+ if (!listed.has(roleId)) continue;
65
+ if (roleId !== path) roleIdOfPath.set(path, roleId);
66
+ let leaf = value;
67
+ if (typeof leaf === "object") {
68
+ const taken = roleOfLeaf.get(leaf);
69
+ if (taken != null && taken.id !== roleId) {
70
+ leaf = Object.freeze(Array.isArray(leaf) ? [...leaf] : { ...leaf });
71
+ group[key] = leaf;
72
+ }
73
+ }
74
+ const role = {
75
+ id: roleId,
76
+ kind,
77
+ variable: motionRoleVariable(roleId),
78
+ value: leaf
79
+ };
80
+ rolesById.set(roleId, role);
81
+ if (typeof leaf === "object") roleOfLeaf.set(leaf, role);
82
+ }
83
+ };
84
+ walk(table, id);
85
+ }
86
+ /**
87
+ * Registers `leaf` as the spring role `id` (a table path such as
88
+ * `springs.settle`) and returns it, so a table row can register itself. A row
89
+ * that calls it under a pure annotation drops out of a bundle that does not
90
+ * use it, call included. Registering the same leaf under the same id again
91
+ * does nothing.
92
+ */
93
+ function registerSpringRole(id, leaf) {
94
+ if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.settle"`);
95
+ if (roleOfLeaf.get(leaf)?.id !== id) {
96
+ const role = {
97
+ id,
98
+ kind: "spring",
99
+ variable: motionRoleVariable(id),
100
+ value: leaf
101
+ };
102
+ rolesById.set(id, role);
103
+ roleOfLeaf.set(leaf, role);
104
+ }
105
+ return leaf;
106
+ }
107
+ /** The role a spring or curve leaf of a registered table plays, if any. */
108
+ function motionRoleOf(leaf) {
109
+ return leaf !== null && typeof leaf === "object" ? roleOfLeaf.get(leaf) : void 0;
110
+ }
111
+ /**
112
+ * The role `group[key]` plays, for a table or one of its groups: the way to
113
+ * name a duration, which is a bare number.
114
+ */
115
+ function motionRoleIn(group, key) {
116
+ const prefix = pathOfGroup.get(group);
117
+ if (prefix == null) return;
118
+ const path = `${prefix}.${key}`;
119
+ return rolesById.get(roleIdOfPath.get(path) ?? path);
120
+ }
121
+ const NUMBER = "(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e-?\\d+)?)";
122
+ const SPRING_VALUE = new RegExp(`^${NUMBER}s\\s+${NUMBER}$`);
123
+ const DURATION_VALUE = new RegExp(`^${NUMBER}(ms|s)$`);
124
+ const CURVE_VALUE = new RegExp(`^cubic-bezier\\(\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*\\)$`);
125
+ function parseMotionRoleValue(kind, text) {
126
+ const value = text.trim();
127
+ if (value === "") return null;
128
+ if (kind === "spring") {
129
+ const m = SPRING_VALUE.exec(value);
130
+ if (m == null) return null;
131
+ const duration = Number(m[1]);
132
+ const bounce = Number(m[2]);
133
+ return duration > 0 && bounce > -1 && bounce < 1 ? {
134
+ duration,
135
+ bounce
136
+ } : null;
137
+ }
138
+ if (kind === "duration") {
139
+ const m = DURATION_VALUE.exec(value);
140
+ if (m == null) return null;
141
+ const ms = Number(m[1]) * (m[2] === "s" ? 1e3 : 1);
142
+ return ms >= 0 ? ms : null;
143
+ }
144
+ const m = CURVE_VALUE.exec(value);
145
+ if (m == null) return null;
146
+ const points = [
147
+ m[1],
148
+ m[2],
149
+ m[3],
150
+ m[4]
151
+ ].map(Number);
152
+ return points[0] >= 0 && points[0] <= 1 && points[2] >= 0 && points[2] <= 1 ? points : null;
153
+ }
154
+ /** The CSS easing keywords, as the control points CSS gives them. */
155
+ const EASING_KEYWORDS = {
156
+ "linear": [
157
+ 0,
158
+ 0,
159
+ 1,
160
+ 1
161
+ ],
162
+ "ease": [
163
+ .25,
164
+ .1,
165
+ .25,
166
+ 1
167
+ ],
168
+ "ease-in": [
169
+ .42,
170
+ 0,
171
+ 1,
172
+ 1
173
+ ],
174
+ "ease-out": [
175
+ 0,
176
+ 0,
177
+ .58,
178
+ 1
179
+ ],
180
+ "ease-in-out": [
181
+ .42,
182
+ 0,
183
+ .58,
184
+ 1
185
+ ]
186
+ };
187
+ /**
188
+ * Reads a CSS easing, a keyword or a `cubic-bezier()`, as a curve role's value
189
+ * is read. Returns null for any other easing, such as `steps()`.
190
+ */
191
+ function parseCssEasing(text) {
192
+ const value = text.trim();
193
+ return EASING_KEYWORDS[value] ?? parseMotionRoleValue("curve", value);
194
+ }
195
+ //#endregion
196
+ export { registerMotionTable as a, parseMotionRoleValue as i, motionRoleOf as n, registerSpringRole as o, parseCssEasing as r, isSpring as s, motionRoleIn as t };
@@ -0,0 +1,123 @@
1
+ import { s as scroll } from "./gestures-C8VhWve7.js";
2
+ //#region src/motion/projection.ts
3
+ /**
4
+ * @file projection.ts
5
+ * @input A release position and velocity, candidate rest points
6
+ * @output Exports `projectDistance` / `project` (WWDC18's momentum
7
+ * projection) and `selectSnapPoint` (the release target UIKit-style)
8
+ * @position Pure math; no DOM, no React
9
+ *
10
+ * WWDC18 "Designing Fluid Interfaces" (session 803): a thrown object goes to
11
+ * the endpoint nearest to where it WOULD coast if it were scrolled, not the
12
+ * endpoint nearest to where the finger let go. The talk's projection
13
+ * function, verbatim in units/s:
14
+ *
15
+ * func project(initialVelocity: CGFloat, decelerationRate: CGFloat) -> CGFloat {
16
+ * return (initialVelocity / 1000.0) * decelerationRate / (1.0 - decelerationRate)
17
+ * }
18
+ *
19
+ * used with `UIScrollView.DecelerationRate.normal`. A slow release projects
20
+ * onto itself, so it places; a flick continues past the finger.
21
+ */
22
+ /** Distance a surface released at `velocity` units/s coasts (WWDC18). */
23
+ function projectDistance(velocity, rate = scroll.decelerationRate.normal) {
24
+ if (!(rate > 0 && rate < 1)) throw new RangeError(`projection: rate must be in (0, 1), got ${rate}`);
25
+ return velocity / 1e3 * rate / (1 - rate);
26
+ }
27
+ /** Where a surface released at `position` with `velocity` would come to rest. */
28
+ function project(position, velocity, rate = scroll.decelerationRate.normal) {
29
+ return position + projectDistance(velocity, rate);
30
+ }
31
+ /**
32
+ * The rest point a release goes to: the one nearest the projected rest
33
+ * position. This is the math primitive (projection + nearest); the release
34
+ * policy on top of it (a flick advances at least one detent, a release moving
35
+ * back toward its start cancels) is `resolveSnapPoint` (resolveSnapPoint.ts), so a
36
+ * component's release rule calls that rather than adding its own. `fromIndex` + `maxSteps` limit how many points away from the
37
+ * starting one a single release may travel (by index order; pass points
38
+ * sorted along the axis). Ties go to the point in the direction of travel.
39
+ *
40
+ * @example
41
+ * ```
42
+ * // A sheet with detents at 0, 300 and 600 px, released at 320 px moving
43
+ * // 900 px/s toward 600: projected ≈ 769 → 600.
44
+ * selectSnapPoint([0, 300, 600], {position: 320, velocity: 900});
45
+ * ```
46
+ */
47
+ function selectSnapPoint(points, { position, velocity, rate = scroll.decelerationRate.normal, fromIndex, maxSteps }) {
48
+ if (points.length === 0) throw new RangeError("projection: selectSnapPoint needs at least one point");
49
+ const projected = project(position, velocity, rate);
50
+ let lo = 0;
51
+ let hi = points.length - 1;
52
+ if (fromIndex != null && maxSteps != null) {
53
+ const from = Math.min(Math.max(fromIndex, 0), points.length - 1);
54
+ lo = Math.max(lo, from - maxSteps);
55
+ hi = Math.min(hi, from + maxSteps);
56
+ }
57
+ let best = lo;
58
+ let bestDistance = Infinity;
59
+ for (let i = lo; i <= hi; i++) {
60
+ const distance = Math.abs(points[i] - projected);
61
+ const isTie = Math.abs(distance - bestDistance) < 1e-9;
62
+ const isAhead = Math.sign(points[i] - points[best]) === Math.sign(velocity);
63
+ if (distance < bestDistance - 1e-9 || isTie && isAhead) {
64
+ best = i;
65
+ bestDistance = distance;
66
+ }
67
+ }
68
+ return {
69
+ index: best,
70
+ value: points[best],
71
+ projected
72
+ };
73
+ }
74
+ //#endregion
75
+ //#region src/motion/rubberBand.ts
76
+ /**
77
+ * @file rubberBand.ts
78
+ * @input An overflow past an edge, the scroll view's dimension and UIKit's
79
+ * rubber-band coefficient
80
+ * @output Exports `rubberBand` (finger overflow → displayed overflow), its
81
+ * inverse, its slope, and the clamp/unclamp pair over a [min, max] range
82
+ * @position Pure math; no DOM, no React
83
+ *
84
+ * UIScrollView resists a drag past its content edge with
85
+ * b = (1 − 1 ÷ (x·c ÷ d + 1))·d
86
+ * where x is how far the finger has gone past the edge, d the scroll view's
87
+ * size on that axis and c = 0.55 (uikit/scroll.ts records the sources). The
88
+ * displayed overflow b approaches d but never reaches it, and its slope at
89
+ * the edge is c: the first points of overflow move at 55 % of the finger.
90
+ *
91
+ * The inverse matters for spec:AST-094 FR6 (a finger catches any animation
92
+ * mid-flight): a finger that lands on content still bouncing back has to
93
+ * resume the drag from the finger position that would produce the overflow
94
+ * on screen, or the content jumps.
95
+ */
96
+ /**
97
+ * Displayed overflow for a finger `overflow` past the edge (signed: the sign
98
+ * is kept). `dimension` is the scroll view's size on the axis.
99
+ */
100
+ function rubberBand(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
101
+ if (!(dimension > 0)) return 0;
102
+ const banded = (1 - 1 / (Math.abs(overflow) * coefficient / dimension + 1)) * dimension;
103
+ return overflow < 0 ? -banded : banded;
104
+ }
105
+ /** The finger overflow that displays `displayed`; ±Infinity at ±dimension. */
106
+ function rubberBandInverse(displayed, dimension, coefficient = scroll.rubberBand.coefficient) {
107
+ if (!(dimension > 0)) return 0;
108
+ const b = Math.abs(displayed);
109
+ if (b >= dimension) return displayed < 0 ? -Infinity : Infinity;
110
+ const x = dimension / coefficient * b / (dimension - b);
111
+ return displayed < 0 ? -x : x;
112
+ }
113
+ /**
114
+ * d(displayed) ÷ d(finger) at a finger overflow: what a finger velocity
115
+ * becomes on screen while banding (c at the edge, falling toward 0).
116
+ */
117
+ function rubberBandSlope(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
118
+ if (!(dimension > 0)) return 0;
119
+ const u = Math.abs(overflow) * coefficient / dimension + 1;
120
+ return coefficient / (u * u);
121
+ }
122
+ //#endregion
123
+ export { selectSnapPoint as a, project as i, rubberBandInverse as n, rubberBandSlope as r, rubberBand as t };
@@ -1,4 +1,4 @@
1
- import { p as scroll, v as registerMotionTable, y as registerSpringRole } from "./pressGesture-BzIBmKF2.js";
1
+ import { a as registerMotionTable, o as registerSpringRole } from "./roles-CPMsH5Ob.js";
2
2
  //#region src/motion/springRole.ts
3
3
  /**
4
4
  * Registers the row as the role `springs.<name>` and returns it. A page that
@@ -534,184 +534,4 @@ function registerSpringsTable() {
534
534
  registerMotionTable("springs", SPRING_ROLES, { roles: Object.keys(SPRING_ROLES) });
535
535
  }
536
536
  //#endregion
537
- //#region src/motion/projection.ts
538
- /**
539
- * @file projection.ts
540
- * @input A release position and velocity, candidate rest points
541
- * @output Exports `projectDistance` / `project` (WWDC18's momentum
542
- * projection) and `selectSnapPoint` (the release target UIKit-style)
543
- * @position Pure math; no DOM, no React
544
- *
545
- * WWDC18 "Designing Fluid Interfaces" (session 803): a thrown object goes to
546
- * the endpoint nearest to where it WOULD coast if it were scrolled, not the
547
- * endpoint nearest to where the finger let go. The talk's projection
548
- * function, verbatim in units/s:
549
- *
550
- * func project(initialVelocity: CGFloat, decelerationRate: CGFloat) -> CGFloat {
551
- * return (initialVelocity / 1000.0) * decelerationRate / (1.0 - decelerationRate)
552
- * }
553
- *
554
- * used with `UIScrollView.DecelerationRate.normal`. A slow release projects
555
- * onto itself, so it places; a flick continues past the finger.
556
- */
557
- /** Distance a surface released at `velocity` units/s coasts (WWDC18). */
558
- function projectDistance(velocity, rate = scroll.decelerationRate.normal) {
559
- if (!(rate > 0 && rate < 1)) throw new RangeError(`projection: rate must be in (0, 1), got ${rate}`);
560
- return velocity / 1e3 * rate / (1 - rate);
561
- }
562
- /** Where a surface released at `position` with `velocity` would come to rest. */
563
- function project(position, velocity, rate = scroll.decelerationRate.normal) {
564
- return position + projectDistance(velocity, rate);
565
- }
566
- /**
567
- * The rest point a release goes to: the one nearest the projected rest
568
- * position. This is the math primitive (projection + nearest); the release
569
- * policy on top of it (a flick advances at least one detent, a release moving
570
- * back toward its start cancels) is `resolveSnapPoint` (resolveSnapPoint.ts), so a
571
- * component's release rule calls that rather than adding its own. `fromIndex` + `maxSteps` limit how many points away from the
572
- * starting one a single release may travel (by index order; pass points
573
- * sorted along the axis). Ties go to the point in the direction of travel.
574
- *
575
- * @example
576
- * ```
577
- * // A sheet with detents at 0, 300 and 600 px, released at 320 px moving
578
- * // 900 px/s toward 600: projected ≈ 769 → 600.
579
- * selectSnapPoint([0, 300, 600], {position: 320, velocity: 900});
580
- * ```
581
- */
582
- function selectSnapPoint(points, { position, velocity, rate = scroll.decelerationRate.normal, fromIndex, maxSteps }) {
583
- if (points.length === 0) throw new RangeError("projection: selectSnapPoint needs at least one point");
584
- const projected = project(position, velocity, rate);
585
- let lo = 0;
586
- let hi = points.length - 1;
587
- if (fromIndex != null && maxSteps != null) {
588
- const from = Math.min(Math.max(fromIndex, 0), points.length - 1);
589
- lo = Math.max(lo, from - maxSteps);
590
- hi = Math.min(hi, from + maxSteps);
591
- }
592
- let best = lo;
593
- let bestDistance = Infinity;
594
- for (let i = lo; i <= hi; i++) {
595
- const distance = Math.abs(points[i] - projected);
596
- const isTie = Math.abs(distance - bestDistance) < 1e-9;
597
- const isAhead = Math.sign(points[i] - points[best]) === Math.sign(velocity);
598
- if (distance < bestDistance - 1e-9 || isTie && isAhead) {
599
- best = i;
600
- bestDistance = distance;
601
- }
602
- }
603
- return {
604
- index: best,
605
- value: points[best],
606
- projected
607
- };
608
- }
609
- //#endregion
610
- //#region src/motion/resolveSnapPoint.ts
611
- /**
612
- * @file resolveSnapPoint.ts
613
- * @input A release (position and velocity on one axis), the points it can
614
- * land on, and the release policy's thresholds
615
- * @output Exports resolveSnapPoint: the index of the snap point a release lands on,
616
- * and the projected rest position it was judged from
617
- * @position The release policy of the motion foundation, on
618
- * `selectSnapPoint` (projection.ts), which stays the math primitive
619
- * (projection + nearest). Pure: no DOM, no React. Internal to core: not
620
- * exported from the package or any barrel (resolveSnapPoint.test.ts locks
621
- * that). A component's release rule calls it with its own points and
622
- * thresholds; this is the one "where does a release land" helper, so a
623
- * second one should not be added beside it.
624
- *
625
- * - A slow release lands on the snap point nearest where it would come to rest:
626
- * its position, or, with `projection`, its position plus the distance it
627
- * would coast at its velocity (projection.ts). Below
628
- * `projection.minSpeed` nothing is projected, so it lands on the snap point
629
- * nearest where it was let go. A tie goes the way a projected release
630
- * moves, and otherwise to the earlier snap point (`selectSnapPoint`).
631
- * - A flick (`flickThreshold` or faster) lands at least on the next snap point
632
- * beyond its position in the direction it moves, or on the nearest
633
- * snap point to its projection if that is farther. A snap point within
634
- * `tolerance` of the position counts as reached, so the flick goes on to
635
- * the one after it. With `flickPastProjection`, a flick lands on the first
636
- * snap point at or past its projection instead. A projection that passes a
637
- * snap point carries the flick on.
638
- * - With `start` (where the drag began), a release moving back toward it
639
- * cancels to the snap point nearest `start`, whatever its travel so far or its
640
- * speed.
641
- * - With `fromIndex` and `maxSteps`, a release lands at most `maxSteps`
642
- * points away from the one at `fromIndex` (a pager's one page per
643
- * release).
644
- *
645
- * Snap points are ascending positions on the axis; velocities are in the same
646
- * units per second, positive toward larger positions.
647
- */
648
- /** The deceleration rate whose projection reaches `seconds` of the velocity. */
649
- function rateForProjection(seconds) {
650
- const ms = seconds * 1e3;
651
- return ms / (1 + ms);
652
- }
653
- /** The index of the snap point nearest `position` (the first on a tie). */
654
- function nearestIndex(points, position) {
655
- let best = 0;
656
- for (let i = 1; i < points.length; i += 1) if (Math.abs(points[i] - position) < Math.abs(points[best] - position)) best = i;
657
- return best;
658
- }
659
- /**
660
- * The snap point a release lands on.
661
- *
662
- * @example
663
- * ```
664
- * // Snap points at 0, 300 and 640 px. Released at 300 px moving toward 640 at
665
- * // 1200 px/s, a flick: on to 640, although its projection (420 px) is
666
- * // nearer 300.
667
- * resolveSnapPoint({
668
- * points: [0, 300, 640],
669
- * position: 300,
670
- * velocity: 1200,
671
- * flickThreshold: 1008,
672
- * tolerance: 1,
673
- * projection: {seconds: 0.1, minSpeed: 250},
674
- * start: 0,
675
- * }); // {index: 2, projected: 420}
676
- * ```
677
- */
678
- function resolveSnapPoint({ points, position, velocity, flickThreshold, tolerance = 0, flickPastProjection = false, projection, start, fromIndex, maxSteps }) {
679
- if (points.length === 0) throw new RangeError("resolveSnapPoint needs at least one snap point");
680
- const choice = selectSnapPoint(points, {
681
- position,
682
- velocity: projection == null || Math.abs(velocity) < (projection.minSpeed ?? 0) ? 0 : velocity,
683
- rate: projection == null ? void 0 : rateForProjection(projection.seconds),
684
- fromIndex,
685
- maxSteps
686
- });
687
- let index = choice.index;
688
- if (Math.abs(velocity) >= flickThreshold) {
689
- let next = -1;
690
- if (velocity > 0) next = points.findIndex((d) => d > position + tolerance);
691
- else for (let i = points.length - 1; i >= 0 && next === -1; i -= 1) if (points[i] < position - tolerance) next = i;
692
- if (next !== -1 && (velocity > 0 ? next > index : next < index)) index = next;
693
- if (flickPastProjection) {
694
- const projected = choice.projected;
695
- let past = velocity > 0 ? points.length - 1 : 0;
696
- if (velocity > 0) {
697
- const at = points.findIndex((d) => d >= projected - tolerance);
698
- past = at === -1 ? past : at;
699
- } else for (let i = points.length - 1; i >= 0; i -= 1) if (points[i] <= projected + tolerance) {
700
- past = i;
701
- break;
702
- }
703
- if (velocity > 0 ? past > index : past < index) index = past;
704
- }
705
- }
706
- if (start != null && velocity !== 0 && Math.sign(velocity) === Math.sign(start - position)) index = nearestIndex(points, start);
707
- if (fromIndex != null && maxSteps != null) {
708
- const from = Math.min(Math.max(fromIndex, 0), points.length - 1);
709
- index = Math.min(Math.max(index, from - maxSteps), from + maxSteps);
710
- }
711
- return {
712
- index,
713
- projected: choice.projected
714
- };
715
- }
716
- //#endregion
717
- export { registerSpringsTable as n, springs as r, resolveSnapPoint as t };
537
+ export { springs as n, registerSpringsTable as t };
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-fhWaGqY8.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Qq0hUJoO.js";
2
2
  import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
3
3
  import { computed, onMounted, ref, toValue, watch } from "vue";
4
4
  //#region src/Typeahead/useAnchoredListbox.ts
@@ -1,4 +1,4 @@
1
- import { _ as parseMotionRoleValue, g as parseCssEasing } from "./pressGesture-BzIBmKF2.js";
1
+ import { i as parseMotionRoleValue, r as parseCssEasing } from "./roles-CPMsH5Ob.js";
2
2
  import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
3
3
  import { i as easeDefaults, r as durationDefaults, t as resolveTokenReferences } from "./tokenReferences-sKpv-7_O.js";
4
4
  import { n as normalizeTokenName } from "./tokenName-0U-WEH09.js";
@@ -1,5 +1,5 @@
1
- import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-8jb4An1z.js";
2
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-BRdKWVzo.js";
1
+ import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-BdZX0xSD.js";
2
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-CKfpQu9d.js";
3
3
  import { s as isTextEntryControl, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
4
4
  import { i as isFocusable } from "./focus-x7mxEqjR.js";
5
5
  import { onScopeDispose } from "vue";
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-fhWaGqY8.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Qq0hUJoO.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -1,3 +1,4 @@
1
+ import { r as AnimatedLayout } from "./useAnimatedLayout-C0koWm4a.js";
1
2
  import { Component, MaybeRefOrGetter, VNodeChild } from "vue";
2
3
  //#region src/List/types.d.ts
3
4
  /** 滑动露出的一侧。`leading` 是往行内末尾拖,`trailing` 是往行内开头拖。 */
@@ -61,6 +62,16 @@ type ItemText = string | number;
61
62
  /** Primary text of a row. */
62
63
  type ItemLabel = ItemText;
63
64
  interface ListProps {
65
+ /**
66
+ * The handle from `useAnimatedLayout({ containerRef })`. With it, the list
67
+ * animates its row changes on one shared motion, under every pointer. An
68
+ * inserted row enters, and a removed row collapses in place. A row that
69
+ * crosses rows moving the other way rides above them. The rows after a
70
+ * change, and the content after the list up to that container, glide to
71
+ * their new places. A row's identity is its `itemKey`, so a row without one
72
+ * changes at once. Without a handle the list changes at once.
73
+ */
74
+ animatedLayout?: AnimatedLayout;
64
75
  /**
65
76
  * Spacing density for the rows. Each `ListItem` inherits it unless the item
66
77
  * sets its own.
@@ -181,6 +192,12 @@ interface ListItemProps {
181
192
  * @default false
182
193
  */
183
194
  isSelected?: boolean;
195
+ /**
196
+ * The row's item key, a string or a number from the data. It is the row's
197
+ * identity for the list's `animatedLayout`, so a row without one changes at
198
+ * once. It is separate from Vue's `key`, which stays Vue's own.
199
+ */
200
+ itemKey?: string | number;
184
201
  /**
185
202
  * 触摸横滑露出的操作。鼠标不会开始这次拖动。
186
203
  * 每个操作还要在行自己的内容里能点到,否则键盘和鼠标够不着。
@@ -1,6 +1,6 @@
1
- import { c as isTrackedByGroup, m as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE, u as isInsideScrollView } from "./pressFeedback-9dqGYjxv.js";
2
- import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-SY1ITxSJ.js";
3
- import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-BzIBmKF2.js";
1
+ import { c as isTrackedByGroup, m as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE, u as isInsideScrollView } from "./pressFeedback-CPzGi_88.js";
2
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-Dsz80HzY.js";
3
+ import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-BV4fYPIG.js";
4
4
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/useActionGroupTracking.ts
6
6
  const DISABLED = ":disabled, [aria-disabled=\"true\"]";
@@ -1,4 +1,4 @@
1
- import { n as createAnimatedLayout } from "./handle-CwxCHapJ.js";
1
+ import { l as createAnimatedLayout } from "./reportChange-BkOEttEP.js";
2
2
  import { toValue } from "vue";
3
3
  //#region src/composables/useAnimatedLayout.ts
4
4
  function elementOf(value) {
@@ -1,14 +1,14 @@
1
1
  import { a as sharedWeakMap, c as deepActiveElement, d as shadowRootsOutward, h as isNode, l as parentAcrossShadow, m as isHTMLElement, n as sharedKey, p as isElement, s as containsAlongFlatTree, t as realmValue, u as shadowHostOf } from "./sharedRealm-H1OrlP0V.js";
2
- import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-9dqGYjxv.js";
2
+ import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-CPzGi_88.js";
3
3
  import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
4
4
  import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
5
- import { c as UIKIT_PAN, l as UIKIT_PRESS, s as UIKIT_LONG_PRESS, u as UIKIT_TAP } from "./pressGesture-BzIBmKF2.js";
5
+ import { i as UIKIT_TAP, n as UIKIT_PAN, r as UIKIT_PRESS, t as UIKIT_LONG_PRESS } from "./gestures-C8VhWve7.js";
6
6
  import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-Cy_yf56y.js";
7
7
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
8
8
  import { a as isIosWebKit, r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BfMx3H23.js";
9
9
  import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
10
10
  import { t as holdsTouch } from "./touchHold-DXtx7npm.js";
11
- import { t as VelocityTracker } from "./VelocityTracker-DgjmootV.js";
11
+ import { t as VelocityTracker } from "./VelocityTracker-DVbtTSXR.js";
12
12
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
13
13
  //#region src/gestures/arenaTypes.ts
14
14
  /** The browser's clock: `performance.now()`, the base of `event.timeStamp`. */
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-BdZX0xSD.js";
2
2
  import { computed, nextTick, onScopeDispose, ref, useId, watch } from "vue";
3
3
  //#region src/composables/internal/comboboxFieldProps.ts
4
4
  function hasModifier(event) {
@@ -1,6 +1,6 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-zwZQglr2.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { n as useLayerDepth, o as pushLayer } from "./layerDepth-8jb4An1z.js";
3
+ import { n as useLayerDepth, o as pushLayer } from "./layerDepth-BdZX0xSD.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/layer/anchorClear.ts
6
6
  function overlapsAnchor(anchor, top, left, layer) {
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-BdZX0xSD.js";
2
2
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
3
  import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
4
4
  import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-DLqZykVm.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DqQP1T-d.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { m as msSinceInput } from "./pressFeedback-9dqGYjxv.js";
1
+ import { m as msSinceInput } from "./pressFeedback-CPzGi_88.js";
2
2
  import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
3
- import { c as currentGesture } from "./layerDepth-8jb4An1z.js";
3
+ import { c as currentGesture } from "./layerDepth-BdZX0xSD.js";
4
4
  import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
5
5
  import { r as isInputShield } from "./inputHoldState-xntIqr5W.js";
6
6
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
@@ -1,4 +1,4 @@
1
- import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-9dqGYjxv.js";
1
+ import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-CPzGi_88.js";
2
2
  import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
3
3
  import "../styles/pressable.css";
4
4
  //#region src/composables/usePressFeedback.ts