@astryx-vue/core 0.20.0 → 0.21.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 (313) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Dbg8L2oy.js → AlertDialog-0UUojm_Q.js} +6 -6
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-zEXmJb1h.js → AppShell-6rvfUu8p.js} +5 -5
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-D85dSNpq.js → Avatar-CXpGcula.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-AIu60Urv.js → AvatarGroup-BUXjzekw.js} +2 -2
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/Banner/index.js +1 -1
  13. package/dist/{Banner-BXITu2pn.js → Banner-fmkd6nXw.js} +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-DNuzJPfQ.js → BottomSheet-DqAuZBgA.js} +3 -3
  16. package/dist/{BottomSheet-DV7bboru.js → BottomSheet-DrKtyVVo.js} +4 -4
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-yB6yZCuZ.js → Breadcrumbs-uaApwhFB.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/Button/index.js +1 -1
  21. package/dist/{Button-BZtim0B-.js → Button-CQAjaQa0.js} +5 -5
  22. package/dist/ButtonGroup/index.d.ts +1 -1
  23. package/dist/ButtonGroup/index.js +1 -1
  24. package/dist/{ButtonGroup-EpWZowJP.js → ButtonGroup-DNN4O9_-.js} +3 -3
  25. package/dist/Calendar/index.d.ts +1 -1
  26. package/dist/Card/index.d.ts +1 -1
  27. package/dist/Carousel/index.d.ts +1 -1
  28. package/dist/Carousel/index.js +1 -1
  29. package/dist/{Carousel-BaCXqtKK.js → Carousel-C3O9Uavl.js} +1 -1
  30. package/dist/Center/index.d.ts +1 -1
  31. package/dist/Chat/index.d.ts +1 -1
  32. package/dist/Chat/index.js +1 -1
  33. package/dist/{Chat-CXwXzlZ0.js → Chat-CmjK6fBy.js} +5 -5
  34. package/dist/CheckboxInput/index.d.ts +1 -1
  35. package/dist/CheckboxInput/index.js +1 -1
  36. package/dist/{CheckboxInput-3ONBl1AY.js → CheckboxInput-D6ow4VuS.js} +34 -4
  37. package/dist/CheckboxList/index.d.ts +1 -1
  38. package/dist/CheckboxList/index.js +1 -1
  39. package/dist/{CheckboxList-CbRX5YDA.js → CheckboxList-CPaRsgRQ.js} +65 -6
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/ClickableCard/index.js +1 -1
  42. package/dist/{ClickableCard-DH-zpF7o.js → ClickableCard-DMX5z-QV.js} +1 -1
  43. package/dist/Code/index.js +1 -1
  44. package/dist/{CodeBlock-CLVXVlB7.js → CodeBlock-DMG9rLQN.js} +1 -1
  45. package/dist/Collapsible/index.d.ts +1 -1
  46. package/dist/Collapsible/index.js +1 -1
  47. package/dist/{Collapsible-BG-u5nEt.js → Collapsible-BVoNZijw.js} +3 -3
  48. package/dist/CommandPalette/index.d.ts +1 -1
  49. package/dist/CommandPalette/index.js +1 -1
  50. package/dist/{CommandPalette-CV7t0ouM.js → CommandPalette-CmOytlWq.js} +3 -3
  51. package/dist/ComplexSelector/index.js +1 -1
  52. package/dist/{ComplexSelector-BOACo2vq.js → ComplexSelector-mfEoIHtI.js} +2 -2
  53. package/dist/ContextMenu/index.d.ts +1 -1
  54. package/dist/ContextMenu/index.js +2 -2
  55. package/dist/{ContextMenu-_cj8wRB6.js → ContextMenu-DDvOR25x.js} +6 -7
  56. package/dist/DateInput/index.d.ts +1 -1
  57. package/dist/DateInput/index.js +1 -1
  58. package/dist/{DateInput-DrMqXWSj.js → DateInput-pDh6H44y.js} +5 -5
  59. package/dist/DateRangeInput/index.d.ts +1 -1
  60. package/dist/DateRangeInput/index.js +1 -1
  61. package/dist/{DateRangeInput-BZuyhf-w.js → DateRangeInput-CQDfoXX5.js} +3 -3
  62. package/dist/DateTimeInput/index.d.ts +1 -1
  63. package/dist/DateTimeInput/index.js +1 -1
  64. package/dist/{DateTimeInput-DhB2gzx5.js → DateTimeInput-CZjere9H.js} +7 -7
  65. package/dist/Dialog/index.d.ts +1 -1
  66. package/dist/Dialog/index.js +3 -3
  67. package/dist/{Dialog-CztWmbf8.js → Dialog-BRlZ7n83.js} +3 -3
  68. package/dist/{Dialog-B2pOTrnQ.js → Dialog-XIB0KZ-m.js} +1 -1
  69. package/dist/{DialogHeader-5A5BUTTB.js → DialogHeader-DF6jFDq3.js} +2 -2
  70. package/dist/Drawer/index.d.ts +1 -1
  71. package/dist/Drawer/index.js +1 -1
  72. package/dist/{Drawer-Dt6paoDZ.js → Drawer-BYUELPLs.js} +2 -2
  73. package/dist/DropdownMenu/index.js +3 -3
  74. package/dist/{DropdownMenu-CFX1k1Ib.js → DropdownMenu-BBXFl5Mu.js} +9 -10
  75. package/dist/{DropdownMenu-D8s058G5.js → DropdownMenu-DY3yFENC.js} +35 -12
  76. package/dist/EmptyState/index.js +1 -1
  77. package/dist/{EmptyState-Bw0kWfMi.js → EmptyState-cs-L9Ovg.js} +3 -3
  78. package/dist/Field/index.js +3 -3
  79. package/dist/{Field-BXkGR8H0.js → Field-BQ3q-K5D.js} +1 -1
  80. package/dist/{FieldInfoTip-DzpUxMDh.js → FieldInfoTip-MgGzYEq0.js} +1 -1
  81. package/dist/{FieldLabel-DI7Yqdhf.js → FieldLabel-yH6KAVyU.js} +1 -1
  82. package/dist/FileInput/index.d.ts +1 -1
  83. package/dist/FileInput/index.js +1 -1
  84. package/dist/{FileInput-BNHjbyQY.js → FileInput-R8CqJrA5.js} +2 -2
  85. package/dist/Heading/index.js +1 -1
  86. package/dist/{Heading-Oph-5DDq.js → Heading-DkCkHEG-.js} +1 -1
  87. package/dist/HoverCard/index.d.ts +1 -1
  88. package/dist/HoverCard/index.js +1 -1
  89. package/dist/{HoverCard-FHYH3VXg.js → HoverCard-D0KqUCXI.js} +4 -4
  90. package/dist/IconButton/index.js +1 -1
  91. package/dist/{IconButton-Du2XBBAX.js → IconButton-DR9_545-.js} +1 -1
  92. package/dist/InfoTip/index.d.ts +1 -1
  93. package/dist/InfoTip/index.js +1 -1
  94. package/dist/{InfoTip-Bjw1ithP.js → InfoTip-BfgtAgck.js} +2 -2
  95. package/dist/{InputClearButton-CED-zP2y.js → InputClearButton-DaFtlyKR.js} +1 -1
  96. package/dist/InputGroup/index.d.ts +1 -1
  97. package/dist/InputGroup/index.js +1 -1
  98. package/dist/{InputGroup-D5PoL4cU.js → InputGroup-1CLPKULR.js} +1 -1
  99. package/dist/{Item-CNR22qzk.js → Item-CzKm9wxQ.js} +19 -11
  100. package/dist/{LayerContentBoundary-CpqXMTyU.js → LayerContentBoundary-lxUfJk2v.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-D8kFIbPj.js → Lightbox-DyaSfJix.js} +4 -4
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-CQ-Ztuo_.js → Link-JVAfvoxT.js} +2 -2
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/List/index.js +2 -2
  108. package/dist/{ListItem-BJ6ZaKcj.js → ListItem-Bc4snKv8.js} +1 -1
  109. package/dist/Markdown/index.d.ts +1 -1
  110. package/dist/Markdown/index.js +1 -1
  111. package/dist/{Markdown-DnnWjJGX.js → Markdown-DtnPfhP0.js} +3 -3
  112. package/dist/MobileNav/index.js +1 -1
  113. package/dist/{MobileNavToggle-CKEOroi0.js → MobileNavToggle-CPNsCIFR.js} +3 -3
  114. package/dist/MoreMenu/index.d.ts +1 -1
  115. package/dist/MoreMenu/index.js +1 -1
  116. package/dist/{MoreMenu-i80Ey9vR.js → MoreMenu-DQjrchg5.js} +5 -5
  117. package/dist/MultiSelector/index.d.ts +1 -1
  118. package/dist/MultiSelector/index.js +1 -1
  119. package/dist/{MultiSelector-CkAhUYdn.js → MultiSelector-sJ-LUrze.js} +8 -8
  120. package/dist/{NavDisclosure-Dg6U7pc7.js → NavDisclosure-CE79mxpa.js} +1 -1
  121. package/dist/{NavHeadingSurface-DZPa2px5.js → NavHeadingSurface-EsNdvhx7.js} +1 -1
  122. package/dist/NavItem/index.d.ts +1 -1
  123. package/dist/NavItem/index.js +1 -1
  124. package/dist/{NavItem-CcbOJNnY.js → NavItem-CB3loauj.js} +1 -1
  125. package/dist/NavMenu/index.js +3 -3
  126. package/dist/{NavMenu-CTbvZnO2.js → NavMenu-_Mo1yWZC.js} +4 -4
  127. package/dist/{NavMenuItem-BS0oULrz.js → NavMenuItem-CDHKFOKi.js} +4 -4
  128. package/dist/NumberInput/index.d.ts +1 -1
  129. package/dist/NumberInput/index.js +1 -1
  130. package/dist/{NumberInput-BsWTXomE.js → NumberInput-Bpc2c39W.js} +3 -3
  131. package/dist/Outline/index.js +1 -1
  132. package/dist/{Outline-eucTzyZu.js → Outline-NuPQMjxw.js} +2 -2
  133. package/dist/OverflowList/index.d.ts +1 -1
  134. package/dist/OverflowList/index.js +1 -1
  135. package/dist/{OverflowList-B6Alf6bi.js → OverflowList-Dx_Iw8xd.js} +2 -2
  136. package/dist/Overlay/index.d.ts +1 -1
  137. package/dist/Pagination/index.d.ts +1 -1
  138. package/dist/Pagination/index.js +1 -1
  139. package/dist/{Pagination-C0oI5FRP.js → Pagination-D7sbjDKw.js} +2 -2
  140. package/dist/Popover/index.d.ts +1 -1
  141. package/dist/Popover/index.js +1 -1
  142. package/dist/{Popover-Cl4gQQZq.js → Popover-Bhi0b1x0.js} +6 -6
  143. package/dist/PowerSearch/index.d.ts +1 -1
  144. package/dist/PowerSearch/index.js +1 -1
  145. package/dist/{PowerSearch-CPgbhvEL.js → PowerSearch-B13bgXSs.js} +17 -17
  146. package/dist/ProgressBar/index.d.ts +1 -1
  147. package/dist/ProgressBar/index.js +1 -1
  148. package/dist/{ProgressBar-DgyPRxV0.js → ProgressBar-BtEaKOhz.js} +1 -1
  149. package/dist/Radio/index.d.ts +1 -1
  150. package/dist/Radio/index.js +1 -1
  151. package/dist/{RadioGroup-FhoQMqg5.js → RadioGroup-CFqN0t92.js} +12 -4
  152. package/dist/RadioList/index.d.ts +1 -1
  153. package/dist/RadioList/index.js +1 -1
  154. package/dist/{RadioList-DK2uXQ5S.js → RadioList-DVNkGcpc.js} +1 -1
  155. package/dist/ScrollableArea/index.d.ts +1 -1
  156. package/dist/SegmentedControl/index.d.ts +1 -1
  157. package/dist/SegmentedControl/index.js +1 -1
  158. package/dist/{SegmentedControl-BCvscZM9.js → SegmentedControl-DFUYTOVH.js} +10 -3
  159. package/dist/SelectableCard/index.d.ts +1 -1
  160. package/dist/SelectableCard/index.js +1 -1
  161. package/dist/{SelectableCard-CLwYtbZl.js → SelectableCard-DUTtyApJ.js} +1 -1
  162. package/dist/Selector/index.d.ts +1 -1
  163. package/dist/Selector/index.js +1 -1
  164. package/dist/{Selector-CUTnAjq-.js → Selector-sGqS3qNy.js} +6 -6
  165. package/dist/SideNav/index.d.ts +1 -1
  166. package/dist/SideNav/index.js +2 -2
  167. package/dist/{SideNav-5yLlEOdD.js → SideNav-Dw9MydVe.js} +11 -11
  168. package/dist/Slider/index.js +1 -1
  169. package/dist/{Slider-DIgb8ogt.js → Slider-BkVTjzrx.js} +3 -3
  170. package/dist/StatusDot/index.js +1 -1
  171. package/dist/{StatusDot-Cxm-uhTD.js → StatusDot-D4S8b-FU.js} +1 -1
  172. package/dist/Stepper/index.d.ts +1 -1
  173. package/dist/Stepper/index.js +1 -1
  174. package/dist/{Stepper-CnNUZDMO.js → Stepper-CQd4YlPC.js} +1 -1
  175. package/dist/Switch/index.d.ts +1 -1
  176. package/dist/Switch/index.js +1 -1
  177. package/dist/{Switch-5toeiELX.js → Switch-DU-MRs1W.js} +2 -2
  178. package/dist/TabList/index.d.ts +1 -1
  179. package/dist/TabList/index.js +1 -1
  180. package/dist/{TabList-D_OvLcD5.js → TabList-CmB55DUS.js} +4 -4
  181. package/dist/Table/index.d.ts +1 -1
  182. package/dist/Table/index.js +1 -1
  183. package/dist/{Table-Eok91IcO.js → Table-BUh0OjeU.js} +15 -15
  184. package/dist/Text/index.js +2 -2
  185. package/dist/{Text-CiSw2pOi.js → Text-BBQUFWb_.js} +1 -1
  186. package/dist/TextArea/index.d.ts +1 -1
  187. package/dist/TextArea/index.js +1 -1
  188. package/dist/{TextArea-B82oXF-m.js → TextArea-BVppzw5n.js} +4 -4
  189. package/dist/TextInput/index.d.ts +1 -1
  190. package/dist/TextInput/index.js +1 -1
  191. package/dist/{TextInput-_SIiqVOY.js → TextInput-CmxKsaUt.js} +4 -4
  192. package/dist/Thumbnail/index.js +1 -1
  193. package/dist/{Thumbnail-BlueoqOH.js → Thumbnail-_KR0IRj-.js} +3 -3
  194. package/dist/{TimeField-jfhGVEyI.js → TimeField-Dbr2MOqX.js} +6 -6
  195. package/dist/TimeInput/index.d.ts +1 -1
  196. package/dist/TimeInput/index.js +1 -1
  197. package/dist/{TimeInput-CvFcN4nl.js → TimeInput-hzZ3tuAw.js} +2 -2
  198. package/dist/Timer/index.js +1 -1
  199. package/dist/{Timer-DiIs5GLA.js → Timer-UnFtEgGb.js} +2 -2
  200. package/dist/Timestamp/index.d.ts +1 -1
  201. package/dist/Timestamp/index.js +1 -1
  202. package/dist/{Timestamp-D9Jyk9sD.js → Timestamp-DiPZTa4W.js} +3 -3
  203. package/dist/Toast/index.js +1 -1
  204. package/dist/{Toast-D4Q6wvYu.js → Toast-kV5KuJdD.js} +1 -1
  205. package/dist/ToggleButton/index.d.ts +1 -1
  206. package/dist/ToggleButton/index.js +1 -1
  207. package/dist/{ToggleButton-CO0XWWc0.js → ToggleButton-DZ3n-izd.js} +3 -3
  208. package/dist/Token/index.d.ts +1 -1
  209. package/dist/Token/index.js +1 -1
  210. package/dist/{Token-jBbgdevV.js → Token-CPNzkSj3.js} +1 -1
  211. package/dist/Tokenizer/index.d.ts +1 -1
  212. package/dist/Tokenizer/index.js +1 -1
  213. package/dist/{Tokenizer-CsFiYUJ_.js → Tokenizer-e8BisAF8.js} +6 -6
  214. package/dist/Toolbar/index.d.ts +1 -1
  215. package/dist/Toolbar/index.js +1 -1
  216. package/dist/{Toolbar-BH_E0F0G.js → Toolbar-B4Vltu-j.js} +1 -1
  217. package/dist/Tooltip/index.d.ts +1 -1
  218. package/dist/Tooltip/index.js +2 -2
  219. package/dist/{Tooltip-DQipgW1R.js → Tooltip-CPyoc4cM.js} +1 -1
  220. package/dist/TopNav/index.d.ts +1 -1
  221. package/dist/TopNav/index.js +1 -1
  222. package/dist/{TopNav-CSFUTuyI.js → TopNav-OOGD2uOp.js} +6 -6
  223. package/dist/TreeList/index.d.ts +1 -1
  224. package/dist/TreeList/index.js +1 -1
  225. package/dist/{TreeList-B33huihx.js → TreeList-DJQvL5tG.js} +19 -11
  226. package/dist/Typeahead/index.js +2 -2
  227. package/dist/{Typeahead--kEp21ut.js → Typeahead--CFFYPMl.js} +6 -6
  228. package/dist/{assertOptions-CK_gJ0d3.js → assertOptions-DLEhkmM-.js} +1 -1
  229. package/dist/{batch-BJD6Bt-O.js → batch-oTkSbtVz.js} +3 -1
  230. package/dist/clickGuard-ChKuogmR.js +132 -0
  231. package/dist/composables/index.d.ts +2 -2
  232. package/dist/composables/index.js +15 -16
  233. package/dist/composables-DSx0MWv0.js +11917 -0
  234. package/dist/{context-Cj_zItu2.js → context-DQPBIsl5.js} +2 -2
  235. package/dist/{dateParser-DS_a8Ej8.js → dateParser-BKoaawL9.js} +46 -2
  236. package/dist/{edge-DIlkB7vS.js → edge-3sC8-cbB.js} +1 -1
  237. package/dist/{edgeRide-D0oC2JEB.js → edgeRide-DOxmVxTM.js} +4 -3
  238. package/dist/focusAcrossSwap-Casww_IY.js +19 -0
  239. package/dist/{focusReturn-D7Y7Pwwb.js → focusReturn-CiSQAp52.js} +1 -1
  240. package/dist/handle-CSHfxBie.js +298 -0
  241. package/dist/{index-DBu-H-vB.d.ts → index-0pBqcQXV.d.ts} +164 -7
  242. package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
  243. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  244. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  245. package/dist/{index-Qdbssopn.d.ts → index-B6svLvfZ.d.ts} +1 -1
  246. package/dist/{index--kbwaSXW.d.ts → index-B8K2sDmO.d.ts} +3 -3
  247. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  248. package/dist/{index-DtZUOyCy.d.ts → index-BJputYk6.d.ts} +3 -3
  249. package/dist/{index-CHLLk77c.d.ts → index-BOzyKBg8.d.ts} +7 -7
  250. package/dist/{index-gxuXI7KD.d.ts → index-BZNoML0r.d.ts} +7 -7
  251. package/dist/{index-COgrQZIL.d.ts → index-BaFphczL.d.ts} +1 -1
  252. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  253. package/dist/{index-CKUfpmFL.d.ts → index-C3FgFPrM.d.ts} +3 -1
  254. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  255. package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
  256. package/dist/{index-mPBIdznc.d.ts → index-CNzSg1OM.d.ts} +8 -8
  257. package/dist/{index-Otl047R1.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  258. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  259. package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
  260. package/dist/{index-Xhq1E7WZ.d.ts → index-DB1EP38S.d.ts} +1 -1
  261. package/dist/{index-DoSTYXsP.d.ts → index-DFTrqCmp.d.ts} +3 -3
  262. package/dist/{index-DbfcTFO6.d.ts → index-DSoQE84m.d.ts} +52 -52
  263. package/dist/{index-ZKBj_1nu.d.ts → index-Dge6tyPE.d.ts} +1 -1
  264. package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
  265. package/dist/{index-eCp-ElSp.d.ts → index-MvrDMqnQ.d.ts} +1 -1
  266. package/dist/{index-Djf0M7PH.d.ts → index-PffxihMx.d.ts} +1 -1
  267. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  268. package/dist/{index-Cy1rEWC-.d.ts → index-fz8XqpNd.d.ts} +1 -1
  269. package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
  270. package/dist/index.d.ts +31 -31
  271. package/dist/index.js +108 -109
  272. package/dist/{interactionModality-B5dR7nnb.js → interactionModality-JFDvbtbb.js} +2 -1
  273. package/dist/{landing-C7nc9JHm.js → landing-DFC97kl9.js} +2 -2
  274. package/dist/{layerFocusReturn-B8Hp14ZG.js → layerFocusReturn-DJ5mlqYj.js} +1 -1
  275. package/dist/{pressFeedback-BajhWhi1.js → pressFeedback-CEUPQWIS.js} +297 -118
  276. package/dist/pressGesture-BzIBmKF2.js +615 -0
  277. package/dist/sharedMutationObserver-Dvh3N1N2.js +41 -0
  278. package/dist/sharedRealm-H1OrlP0V.js +124 -0
  279. package/dist/{stillPointerGate-0vdn-hSa.js → stillPointerGate-BTISispN.js} +1 -1
  280. package/dist/{timeFormat-CqrwFE42.js → timeFormat-Cnd5vu5t.js} +1 -1
  281. package/dist/{timeParser-D9tCF_b3.js → timeParser-nVL5sIwT.js} +34 -5
  282. package/dist/{tooltipFocusRules-D4cJ08fk.js → tooltipFocusRules-DPsyi9L5.js} +2 -2
  283. package/dist/{tooltipTriggerRules-PBxqztvn.js → tooltipTriggerRules-Dazz57_v.js} +1 -1
  284. package/dist/{useActionGroupTracking-DGeOIv3K.js → useActionGroupTracking-PVBCtLUE.js} +5 -4
  285. package/dist/{useCombobox-DIR9yoEu.js → useCombobox-DTDT9dRx.js} +1 -1
  286. package/dist/{useDismiss-Dfb0Ky7T.js → useDismiss-N66C48zd.js} +1 -1
  287. package/dist/{useFocusTrap-DsYtRdmV.js → useFocusTrap-DzspshsM.js} +2 -2
  288. package/dist/{useInputStatusIcon-ne9V7ZQC.js → useInputStatusIcon-D1WRYTOZ.js} +1 -1
  289. package/dist/{useListFocus-CbHkLT-X.js → useListFocus-CkHfsZp0.js} +23 -5
  290. package/dist/{useMenuDrillIn-BaNYxWiS.js → useMenuDrillIn-RZwY55RM.js} +1 -1
  291. package/dist/{useMenuHover-CQYo0XCC.js → useMenuHover-CfQtWMg-.js} +1 -1
  292. package/dist/{useMenuPress-9dOj2hvC.js → useMenuPress-Cm7LVmHJ.js} +63 -15
  293. package/dist/{usePressFeedback-2YAzGB6C.js → usePressFeedback-aufF1sCH.js} +1 -1
  294. package/dist/{useResizable-BMlG1oxA.js → useResizable-C9FtmPir.js} +1 -1
  295. package/dist/{useRestoreFocus-Cz_jM_nW.js → useRestoreFocus-CEbfcwWb.js} +2 -2
  296. package/dist/{useTimeValue-CcKrnO8z.js → useTimeValue-8YfPQffv.js} +2 -2
  297. package/dist/{useTooltip-C7gHRGEO.js → useTooltip-BfOruqIL.js} +5 -5
  298. package/dist/{useTouchHitArea-BI-CtI7e.js → useTouchHitArea-BMDBe36j.js} +51 -8
  299. package/dist/{useTouchTriggerInternal-Bs7obOrb.js → useTouchTriggerInternal-TQnpDkL0.js} +1 -1
  300. package/dist/{useTruncation-C4pdlaXa.js → useTruncation-D_T-ezdp.js} +1 -40
  301. package/dist/{useTruncationTooltip-DwUQN7fD.js → useTruncationTooltip-CbzoB-1m.js} +5 -5
  302. package/dist/{useTypeahead-BrWvmOu9.js → useTypeahead-BGmDZyPB.js} +1 -1
  303. package/dist/{useTypeaheadMenuConfig--4f7jR6G.js → useTypeaheadMenuConfig-BZaduAP4.js} +2 -2
  304. package/dist/utils/index.d.ts +1 -1
  305. package/dist/utils/index.js +2 -2
  306. package/package.json +1 -1
  307. package/styles/touch-hit-area.css +28 -0
  308. package/styles/tree-list.css +9 -4
  309. package/dist/composables-CDrwFX0l.js +0 -5420
  310. package/dist/handle-ChN2TMKH.js +0 -458
  311. package/dist/pressGesture-B3z3W3Za.js +0 -78
  312. package/dist/strayClick-_QKRT5aH.js +0 -99
  313. package/dist/{index-CHx33xGa.d.ts → index-5FGt4HsB.d.ts} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
2
- import { r as readArea, t as areaOf } from "./handle-ChN2TMKH.js";
3
- import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-BJD6Bt-O.js";
2
+ import { r as readArea, t as areaOf } from "./handle-CSHfxBie.js";
3
+ import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-oTkSbtVz.js";
4
4
  import { computed, inject, ref } from "vue";
5
5
  //#region src/motion/inertClone.ts
6
6
  /**
@@ -1,3 +1,34 @@
1
+ import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
2
+ //#region src/utils/dateTimeFormatCache.ts
3
+ /** Options that print a time of day or a zone, which a PlainDate lacks. */
4
+ const TIME_OF_DAY_FIELDS = [
5
+ "timeZoneName",
6
+ "hour",
7
+ "minute",
8
+ "second",
9
+ "fractionalSecondDigits",
10
+ "dayPeriod",
11
+ "timeStyle"
12
+ ];
13
+ /**
14
+ * One `Intl.DateTimeFormat` per locale and options, built on first use. A
15
+ * calendar formats each of a month's 42 day labels with the same options on
16
+ * every render, and building a formatter costs far more than using one. The
17
+ * options are keyed in a fixed order, so the same options written in another
18
+ * order share a formatter.
19
+ */
20
+ const dateTimeFormats = /* @__PURE__ */ new Map();
21
+ /** @internal */
22
+ function dateTimeFormatFor(locale, options) {
23
+ const key = JSON.stringify([locale, Object.entries(options).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)]);
24
+ let format = dateTimeFormats.get(key);
25
+ if (format == null) {
26
+ format = new Intl.DateTimeFormat(locale, options);
27
+ dateTimeFormats.set(key, format);
28
+ }
29
+ return format;
30
+ }
31
+ //#endregion
1
32
  //#region src/utils/plainDate.ts
2
33
  function plainDateCreate(year, month, day) {
3
34
  if (!Number.isInteger(year) || year < 1) throw new RangeError(`year must be a positive integer, got ${year}`);
@@ -223,10 +254,20 @@ const DATE_FORMAT_SHORT_WITH_YEAR = {
223
254
  * serialization, or any Astryx component's calendar semantics.
224
255
  */
225
256
  function plainDateFormat(pd, options, locale = "en") {
226
- return new Intl.DateTimeFormat(locale, {
257
+ const calendar = options.calendar ?? "gregory";
258
+ if (options.timeZone != null) return dateTimeFormatFor(locale, {
259
+ ...options,
260
+ calendar
261
+ }).format(plainDateToDate(pd));
262
+ if (TIME_OF_DAY_FIELDS.some((field) => options[field] != null)) return new Intl.DateTimeFormat(locale, {
227
263
  ...options,
228
- calendar: options.calendar ?? "gregory"
264
+ calendar
229
265
  }).format(plainDateToDate(pd));
266
+ return dateTimeFormatFor(locale, {
267
+ ...options,
268
+ calendar,
269
+ timeZone: "UTC"
270
+ }).format(utcTime(pd.year, pd.month - 1, pd.day));
230
271
  }
231
272
  /**
232
273
  * The locale's name for the "week of year" date field ("week", "Woche", "週"),
@@ -280,6 +321,8 @@ function isLocaleDayFirst(locale = "en") {
280
321
  const parts = new Intl.DateTimeFormat(locale, { calendar: "gregory" }).formatToParts(new Date(2e3, 0, 15));
281
322
  return parts.findIndex((p) => p.type === "day") < parts.findIndex((p) => p.type === "month");
282
323
  }
324
+ const LETTER_FREE = unicodeRegExp("^\\P{L}+$");
325
+ const YEAR_FIRST = unicodeRegExp("^\\d{4}[^\\p{L}\\d]");
283
326
  /**
284
327
  * Parses user input into a PlainDate.
285
328
  *
@@ -336,6 +379,7 @@ function parseDateInput(input, locale = "en") {
336
379
  return parseNumericDate(+first, +second, currentYear, locale);
337
380
  }
338
381
  if (/^\d+$/.test(trimmed)) return null;
382
+ if (isLocaleDayFirst(locale) && LETTER_FREE.test(trimmed) && !YEAR_FIRST.test(trimmed)) return null;
339
383
  const parsed = new Date(trimmed);
340
384
  if (!Number.isNaN(parsed.getTime())) {
341
385
  const fromDate = plainDateFromDate(parsed);
@@ -1,4 +1,4 @@
1
- import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-BJD6Bt-O.js";
1
+ import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-oTkSbtVz.js";
2
2
  //#region src/motion/layout/edge.ts
3
3
  /** Whether `element` lays its inline axis out right to left. */
4
4
  function isRtl(element) {
@@ -1,6 +1,7 @@
1
- import { b as sharedWeakMap, t as areaOf } from "./handle-ChN2TMKH.js";
2
- import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-BJD6Bt-O.js";
3
- import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-DIlkB7vS.js";
1
+ import { a as sharedWeakMap } from "./sharedRealm-H1OrlP0V.js";
2
+ import { t as areaOf } from "./handle-CSHfxBie.js";
3
+ import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-oTkSbtVz.js";
4
+ import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-3sC8-cbB.js";
4
5
  //#region src/motion/layout/playChange.ts
5
6
  /** Each part's slide, by its motion: a stopped slide is no glide. */
6
7
  const slideTargets = sharedWeakMap("motion/animated-layout/slide-targets", 1);
@@ -0,0 +1,19 @@
1
+ import { nextTick, watch } from "vue";
2
+ //#region src/composables/internal/focusAcrossSwap.ts
3
+ /**
4
+ * 切换 `swapped` 会让 `root` 里某个元素被换成另一个元素(比如禁用后用普通
5
+ * `<a>` 代替路由链接组件)。切换前焦点就在它身上的话,换完后把焦点交给新元素,
6
+ * 不让它掉回页面;焦点本来在别处则不去抢。
7
+ */
8
+ function useFocusAcrossSwap(root, selector, swapped) {
9
+ watch(swapped, () => {
10
+ const before = root()?.querySelector(selector) ?? null;
11
+ if (before == null || before.ownerDocument.activeElement !== before) return;
12
+ nextTick(() => {
13
+ const after = root()?.querySelector(selector);
14
+ if (after != null && after !== before) after.focus({ preventScroll: true });
15
+ });
16
+ }, { flush: "pre" });
17
+ }
18
+ //#endregion
19
+ export { useFocusAcrossSwap as t };
@@ -1,4 +1,4 @@
1
- import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-B5dR7nnb.js";
1
+ import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-JFDvbtbb.js";
2
2
  //#region src/composables/internal/focusReturn.ts
3
3
  /**
4
4
  * 焦点归还的两个小工具。浮层关闭、把焦点还给触发器时用。
@@ -0,0 +1,298 @@
1
+ import { l as parentAcrossShadow, n as sharedKey, p as isElement, t as realmValue } from "./sharedRealm-H1OrlP0V.js";
2
+ import { v as registerMotionTable } from "./pressGesture-BzIBmKF2.js";
3
+ //#region src/motion/reducedMotionMark.ts
4
+ /**
5
+ * @file reducedMotionMark.ts
6
+ * @input Whether a theme reduces motion for everyone
7
+ * @output reducedMotionMarkProps and setRootReducedMotionMark, which write the
8
+ * mark, and themeReducesMotion, which reads it
9
+ * @position Owner module of the private reduced-motion attribute: the only
10
+ * file that writes its name. A theme that reduces motion for everyone
11
+ * spreads the mark on its root, and the root theme sets it on `<html>`; the
12
+ * animator and reducedMotionFade read it as the person's Reduce Motion
13
+ * setting. No package entry exports it.
14
+ */
15
+ const REDUCED_MOTION = "data-astryx-reduced-motion";
16
+ /**
17
+ * Whether the theme `element` is in reduces motion for everyone: its root,
18
+ * or `<html>` for the root theme, carries the mark.
19
+ */
20
+ function themeReducesMotion(element) {
21
+ return element?.closest?.(`[${REDUCED_MOTION}]`) != null;
22
+ }
23
+ //#endregion
24
+ //#region src/motion/presentation.ts
25
+ /**
26
+ * @file presentation.ts
27
+ * @input Animators reporting, while a translate runs on the compositor, how
28
+ * far their element is drawn from where the engine hit-tests it, and how
29
+ * to make the engine hit-test it where it is drawn
30
+ * @output The registry that the gesture host reads at touch-down, to send a
31
+ * touch to what is drawn. The host also follows it to keep a drag on a
32
+ * moving element blocking. Exports: registerPresentedOffset,
33
+ * batchPresented, presentedElements, presentedOffsetOf, resolvePresented,
34
+ * watchPresentedElements and the resolve write
35
+ * @position Motion foundation (DOM, no React). Written by animator.ts and
36
+ * animatedLayout.ts, read by gestures/GestureHost.ts; internal to core
37
+ *
38
+ * iOS WebKit hit-tests an element that a Web Animations transform moves on
39
+ * the compositor where the animation STARTED: it keeps the transform it
40
+ * resolved when the animation went to the compositor, so event targets,
41
+ * `elementFromPoint` and `getBoundingClientRect` stay there for the whole
42
+ * curve, while the inline style holds the value the curve starts from (the
43
+ * animator writes it there while the curve runs) and the computed style is
44
+ * live (iOS 26.2, measured). A style write on the element makes it
45
+ * resolve the transform again, to the value drawn at that moment, and it
46
+ * stays there. UIKit keeps an interruptible animation hit-testable where it
47
+ * is drawn (UIViewPropertyAnimator), so the host corrects for it from this
48
+ * registry.
49
+ *
50
+ * Translation only: a scale or a rotation (a zoom transition, a lifted
51
+ * preview) is still hit at its untransformed box.
52
+ *
53
+ * An engine workaround (`spec:AST-013` FR6). Review condition: re-measure on
54
+ * each iOS release, and remove this registry and the host's correction once
55
+ * iOS WebKit hit-tests a compositor-moved element where it is drawn.
56
+ * Regression fixture: gestures/__tests__/presentedHitTesting.test.ts.
57
+ */
58
+ const ZERO = {
59
+ x: 0,
60
+ y: 0
61
+ };
62
+ const presented = realmValue(sharedKey("motion/presentation", 1), () => ({
63
+ sources: /* @__PURE__ */ new Map(),
64
+ watchers: /* @__PURE__ */ new Set(),
65
+ batchDepth: 0,
66
+ isChanged: false
67
+ }));
68
+ const { sources, watchers } = presented;
69
+ /** Tell every watcher the reported elements changed; one's throw stops none. */
70
+ function notifyWatchers() {
71
+ if (presented.batchDepth > 0) {
72
+ presented.isChanged = true;
73
+ return;
74
+ }
75
+ for (const watcher of [...watchers]) try {
76
+ watcher();
77
+ } catch (error) {
78
+ queueMicrotask(() => {
79
+ throw error;
80
+ });
81
+ }
82
+ }
83
+ /**
84
+ * Runs `apply`, which reports elements or removes reports, and tells the
85
+ * watchers once, at its end, when the reported elements changed. So the
86
+ * moves of one layout change cost one notice.
87
+ */
88
+ function batchPresented(apply) {
89
+ presented.batchDepth += 1;
90
+ try {
91
+ apply();
92
+ } finally {
93
+ presented.batchDepth -= 1;
94
+ if (presented.batchDepth === 0 && presented.isChanged) {
95
+ presented.isChanged = false;
96
+ notifyWatchers();
97
+ }
98
+ }
99
+ }
100
+ /**
101
+ * Call `listener` each time an element starts or stops being reported.
102
+ * Returns the function that stops it.
103
+ */
104
+ function watchPresentedElements(listener) {
105
+ watchers.add(listener);
106
+ return () => {
107
+ watchers.delete(listener);
108
+ };
109
+ }
110
+ /**
111
+ * Report an element drawn away from where the engine hit-tests it. Returns
112
+ * the function that removes the report.
113
+ */
114
+ function registerPresentedOffset(element, source) {
115
+ sources.set(element, source);
116
+ notifyWatchers();
117
+ return () => {
118
+ if (sources.get(element) === source) {
119
+ sources.delete(element);
120
+ notifyWatchers();
121
+ }
122
+ };
123
+ }
124
+ /** The elements reported now. */
125
+ function presentedElements() {
126
+ return sources.size === 0 ? [] : [...sources.keys()];
127
+ }
128
+ /**
129
+ * How far `element` is drawn from where the engine hit-tests it: its own
130
+ * offset plus those of its moving ancestors along the flat tree (through a
131
+ * slot to the panel it is drawn in, and across shadow roots), now or at
132
+ * `time` (ms on the `performance.now()` clock).
133
+ */
134
+ function presentedOffsetOf(element, time) {
135
+ if (sources.size === 0) return ZERO;
136
+ let x = 0;
137
+ let y = 0;
138
+ for (let node = element; node != null; node = parentAcrossShadow(node)) {
139
+ const source = isElement(node) ? sources.get(node) : void 0;
140
+ if (source != null) {
141
+ const offset = source.offset(time);
142
+ x += offset.x;
143
+ y += offset.y;
144
+ }
145
+ }
146
+ return {
147
+ x,
148
+ y
149
+ };
150
+ }
151
+ /** The custom property whose writes make WebKit resolve a moving element. */
152
+ const RESOLVE_PROPERTY = "--astryx-presented";
153
+ /**
154
+ * Makes iOS WebKit resolve `element`'s transform again, to the value drawn
155
+ * now: one write of a value the property does not have yet. The animator and
156
+ * the animated layout both write it, so it counts up from the element's own
157
+ * last value.
158
+ */
159
+ function writePresentedResolve(element) {
160
+ const last = Number(element.style.getPropertyValue(RESOLVE_PROPERTY)) || 0;
161
+ element.style.setProperty(RESOLVE_PROPERTY, String(last + 1));
162
+ }
163
+ /** Removes the resolve write from `element`. */
164
+ function clearPresentedResolve(element) {
165
+ element.style.removeProperty(RESOLVE_PROPERTY);
166
+ }
167
+ /**
168
+ * Makes the engine hit-test each of `elements` where it is drawn now; the
169
+ * next hit test (an `elementFromPoint`) flushes the writes.
170
+ */
171
+ function resolvePresented(elements) {
172
+ for (const element of elements) sources.get(element)?.resolve();
173
+ }
174
+ //#endregion
175
+ //#region src/motion/uikit/timing.ts
176
+ /**
177
+ * @file timing.ts
178
+ * @input Nothing; data only
179
+ * @output Exports `timing`: the non-spring clocks and curves UIKit uses
180
+ * (press highlight onset, flash and fade, Core Animation's named Bézier
181
+ * curves, the navigation bar hide/show duration, the keyboard
182
+ * notification duration, the Reduced Motion cross-fade)
183
+ * @position The timing domain of the UIKit constants table (motion/uikit)
184
+ *
185
+ * Every leaf carries one or more `@source` (apple-docs | wwdc | webkit |
186
+ * measured | GUESS); webkit and GUESS values also carry the `@measure` task
187
+ * that will confirm or replace them (MEASUREMENTS.md). uikit.test.ts
188
+ * enforces both.
189
+ *
190
+ * Durations are in ms (the unit of pointer-event timestamps, which these
191
+ * clocks are compared against); curves are cubic-bézier control points
192
+ * [x1, y1, x2, y2].
193
+ */
194
+ /**
195
+ * The Reduce Motion fade, its own export so the animator reads it without
196
+ * the rest of the table (`architecture:component-style-authoring` INV6).
197
+ * `timing` composes it under its table paths, `reducedMotionCrossFadeMs` and
198
+ * `curves.move`, so their roles are unchanged.
199
+ */
200
+ const reducedMotionCrossFade = {
201
+ /**
202
+ * The Reduced Motion cross-fade, in ms, on `curves.move`: under
203
+ * Reduce Motion an entrance, exit, presentation switch or state change
204
+ * becomes an opacity-only cross-fade of this length on a coarse pointer
205
+ * (design:reduced-motion DR2 caps it at 200 ms, by owner decision DEC-1
206
+ * of 2026-10-24, departing from UIKit's own navigation cross-fade,
207
+ * measured below at 0.5 s). Not a role: nothing lengthens it (DR4).
208
+ * @source apple-docs https://developer.apple.com/documentation/uikit/uiaccessibility/preferscrossfadetransitions
209
+ * (the setting)
210
+ * @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
211
+ * iPhone 17 Pro, CAAnimation dump with Reduce Motion and Prefer
212
+ * Cross-Fade Transitions on (opacity CABasicAnimation 0.5 s,
213
+ * (0.42, 0, 0.58, 1)), Oct 23 2026
214
+ */
215
+ durationMs: 200,
216
+ /**
217
+ * `easeInEaseOut`; UIKit's default curve (`UIView.AnimationCurve
218
+ * .easeInOut`, "the default curve for most animations").
219
+ * @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/easeineaseout
220
+ * @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
221
+ * iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
222
+ * Oct 23 2026
223
+ */
224
+ curve: [
225
+ .42,
226
+ 0,
227
+ .58,
228
+ 1
229
+ ]
230
+ };
231
+ const { durationMs: reducedMotionCrossFadeMs, curve: move } = reducedMotionCrossFade;
232
+ const reducedMotionCrossFadeRoles = { curves: { move } };
233
+ /**
234
+ * Registers only the Reduce Motion fade's curve as its role,
235
+ * `timing.curves.move`, for code that reads the fade without the rest of the
236
+ * table (the animator, reducedMotionFade()). The fade's length is not a role.
237
+ */
238
+ function registerReducedMotionCrossFade() {
239
+ registerMotionTable("timing", reducedMotionCrossFadeRoles, { roles: ["curves.move"] });
240
+ }
241
+ //#endregion
242
+ //#region src/motion/bezier.ts
243
+ /** The timing function for `points`: maps time progress to eased progress. */
244
+ function cubicBezier([x1, y1, x2, y2]) {
245
+ const cx = 3 * x1;
246
+ const bx = 3 * (x2 - x1) - cx;
247
+ const ax = 1 - cx - bx;
248
+ const cy = 3 * y1;
249
+ const by = 3 * (y2 - y1) - cy;
250
+ const ay = 1 - cy - by;
251
+ const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
252
+ const sampleY = (t) => ((ay * t + by) * t + cy) * t;
253
+ const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
254
+ const solveT = (x) => {
255
+ let t = x;
256
+ for (let i = 0; i < 8; i++) {
257
+ const error = sampleX(t) - x;
258
+ if (Math.abs(error) < 1e-7) return t;
259
+ const slope = slopeX(t);
260
+ if (Math.abs(slope) < 1e-6) break;
261
+ t -= error / slope;
262
+ }
263
+ let lo = 0;
264
+ let hi = 1;
265
+ t = x;
266
+ for (let i = 0; i < 60; i++) {
267
+ const value = sampleX(t);
268
+ if (Math.abs(value - x) < 1e-7) break;
269
+ if (value < x) lo = t;
270
+ else hi = t;
271
+ t = (lo + hi) / 2;
272
+ }
273
+ return t;
274
+ };
275
+ return (x) => x <= 0 ? 0 : x >= 1 ? 1 : sampleY(solveT(x));
276
+ }
277
+ //#endregion
278
+ //#region src/motion/layout/handle.ts
279
+ /**
280
+ * @file handle.ts
281
+ * @position Internal to motion/layout; split from upstream motion/animatedLayout.ts
282
+ */
283
+ const AREA = sharedKey("animated-layout/area", 1);
284
+ /** The container a handle reads, or null for a value that is not a handle. */
285
+ function readArea(handle) {
286
+ const read = handle[AREA];
287
+ return typeof read === "function" ? read() : null;
288
+ }
289
+ /** A handle over `area` (the container element, read when a change runs). */
290
+ function createAnimatedLayout(area) {
291
+ return Object.freeze(Object.defineProperty({}, AREA, { value: area }));
292
+ }
293
+ function areaOf(handle, element) {
294
+ const area = readArea(handle);
295
+ return area != null && area !== element && area.contains(element) ? area : null;
296
+ }
297
+ //#endregion
298
+ export { reducedMotionCrossFade as a, clearPresentedResolve as c, registerPresentedOffset as d, resolvePresented as f, themeReducesMotion as h, cubicBezier as i, presentedElements as l, writePresentedResolve as m, createAnimatedLayout as n, registerReducedMotionCrossFade as o, watchPresentedElements as p, readArea as r, batchPresented as s, areaOf as t, presentedOffsetOf as u };
@@ -152,6 +152,113 @@ interface Animator extends AnimatorHandle {
152
152
  */
153
153
  declare function createAnimator(element: HTMLElement): Animator;
154
154
  //#endregion
155
+ //#region src/gestures/createPanGesture.d.ts
156
+ /** Where a drag is: it began, moved, ended at the release, or was cancelled. */
157
+ type PanGestureState = 'began' | 'changed' | 'ended' | 'cancelled';
158
+ interface PanGestureEvent {
159
+ state: PanGestureState;
160
+ /**
161
+ * Movement since the drag began, in CSS px. The travel the drag needed to
162
+ * begin is not part of it, so an element that follows it does not jump.
163
+ */
164
+ translation: {
165
+ x: number;
166
+ y: number;
167
+ };
168
+ /**
169
+ * Velocity in px/s. At `ended` it is the release velocity, 0 when the
170
+ * finger rested before lifting; at `cancelled` it is 0.
171
+ */
172
+ velocity: {
173
+ x: number;
174
+ y: number;
175
+ };
176
+ }
177
+ interface PanGestureOptions {
178
+ /** Limit the drag to one axis: a drag along the other is not reported, and that component reads 0. */
179
+ axis?: 'x' | 'y';
180
+ /** Called as the drag begins, changes, ends, or is cancelled. */
181
+ onPan: (event: PanGestureEvent) => void;
182
+ }
183
+ interface PanGesture {
184
+ /** Remove every listener the pan added; a drag in progress is cancelled. */
185
+ destroy: () => void;
186
+ }
187
+ /**
188
+ * Report drags on `element` as values. The drag claims its touch at UIKit's
189
+ * 10 pt, as `UIPanGestureRecognizer` does, so a tap stays a tap. The pan sets
190
+ * the element's `touch-action` for the axis.
191
+ * @example
192
+ * ```ts
193
+ * const pan = createPanGesture(card, {
194
+ * axis: 'x',
195
+ * onPan: ({ state, translation }) => {
196
+ * card.style.translate = state === 'changed' ? `${translation.x}px` : ''
197
+ * },
198
+ * })
199
+ * // Later:
200
+ * pan.destroy()
201
+ * ```
202
+ */
203
+ declare function createPanGesture(element: Element, options: PanGestureOptions): PanGesture;
204
+ //#endregion
205
+ //#region src/dragToSnapPoints/createDragToSnapPoints.d.ts
206
+ /** Options of `createDragToSnapPoints`. */
207
+ interface DragToSnapPointsOptions {
208
+ /** The axis the element moves along. */
209
+ axis: 'x' | 'y';
210
+ /**
211
+ * Offsets in px along `axis` from the element's resting position, sorted
212
+ * before use (`onSettle` and `settleTo` count in that order). Not viewport
213
+ * fractions, unlike BottomSheet's `snapPoints`. An empty list makes the
214
+ * drag do nothing and warns in development.
215
+ */
216
+ snapPoints: ReadonlyArray<number>;
217
+ /**
218
+ * A release faster than this, in px/s, carries to the next snap point in
219
+ * its direction. Default 1008.
220
+ */
221
+ flickThreshold?: number;
222
+ /** Called with the snap point's index once the element settles on it. */
223
+ onSettle: (index: number) => void;
224
+ }
225
+ /** What `createDragToSnapPoints` returns. */
226
+ interface DragToSnapPoints {
227
+ /**
228
+ * Settles the element on the snap point at `index` without a drag (the
229
+ * keyboard path), then calls `onSettle`. An index outside the snap points
230
+ * does nothing and warns in development.
231
+ */
232
+ settleTo: (index: number) => void;
233
+ /** Removes every listener and stops the element where it is. */
234
+ destroy: () => void;
235
+ }
236
+ /**
237
+ * Lets a drag move `element` along `axis` and settles it on `snapPoints` at
238
+ * the release, then calls `onSettle(index)`.
239
+ *
240
+ * The release settles on the nearest snap point. A release faster than
241
+ * `flickThreshold` carries to the next one in its direction. A release that
242
+ * moves back toward the drag's start returns to the snap point it started
243
+ * from. The settle springs from the release velocity. Under Reduce Motion,
244
+ * the release cross-fades after a touch drag or on a coarse primary pointer,
245
+ * and lands at once elsewhere. `settleTo(index)` settles without a drag, for
246
+ * the keyboard.
247
+ *
248
+ * @example
249
+ * ```ts
250
+ * const snap = createDragToSnapPoints(drawer, {
251
+ * axis: 'y',
252
+ * snapPoints: [0, 240, 480],
253
+ * onSettle: index => console.log('settled on', index),
254
+ * })
255
+ * button.addEventListener('click', () => snap.settleTo(0))
256
+ * // Later:
257
+ * snap.destroy()
258
+ * ```
259
+ */
260
+ declare function createDragToSnapPoints(element: HTMLElement, options: DragToSnapPointsOptions): DragToSnapPoints;
261
+ //#endregion
155
262
  //#region src/composables/useAnimator.d.ts
156
263
  /**
157
264
  * 用组件库自己的动效驱动 `target` 指向的元素。`target` 可以是模板 ref、
@@ -676,6 +783,33 @@ interface UseDismissOptions {
676
783
  */
677
784
  declare function useDismiss(options: UseDismissOptions): void;
678
785
  //#endregion
786
+ //#region src/composables/useDragToSnapPoints.d.ts
787
+ interface UseDragToSnapPointsResult {
788
+ /** 不经过拖动,把元素移到第 `index` 个吸附点(给键盘用)。始终是同一个函数。 */
789
+ readonly settleTo: (index: number) => void;
790
+ }
791
+ /**
792
+ * 让 `target` 指向的元素能沿 `axis` 拖动,松手后停到 `snapPoints` 里的一个点上。
793
+ * `target` 可以是模板 ref、getter 或元素本身。
794
+ *
795
+ * 拖动跟着 `target` 当前指向的元素走,元素换掉就挂到新元素上,作用域销毁时拆掉。
796
+ * `options` 是响应式对象时,`axis`、`snapPoints`、`flickThreshold` 变了就重建拖动,
797
+ * 元素停在原处(正在进行的回弹也一样);内容相同的新数组不会重建。`onSettle`
798
+ * 每次停稳时才从 `options` 里读,换一个新函数不会重建。服务端渲染时不碰 DOM。
799
+ *
800
+ * @example
801
+ * ```ts
802
+ * const drawer = useTemplateRef<HTMLElement>('drawer')
803
+ * const index = ref(0)
804
+ * const { settleTo } = useDragToSnapPoints(drawer, {
805
+ * axis: 'y',
806
+ * snapPoints: [0, 240, 480],
807
+ * onSettle: (next) => { index.value = next },
808
+ * })
809
+ * ```
810
+ */
811
+ declare function useDragToSnapPoints(target: MaybeRefOrGetter<HTMLElement | null | undefined>, options: DragToSnapPointsOptions): UseDragToSnapPointsResult;
812
+ //#endregion
679
813
  //#region src/composables/internal/entryAnimation.d.ts
680
814
  /** 入场动画的预设。名字说的是元素往哪个方向动。 */
681
815
  type EntryAnimationPreset = 'slideDown' | 'slideUp' | 'fadeIn' | 'scaleIn';
@@ -1468,19 +1602,19 @@ interface MenuPressStep<T> {
1468
1602
  /** 往前走一步。纯函数:同样的输入,同样的输出。 */
1469
1603
  declare function menuPressStep<T>(gesture: MenuPressGesture<T>, event: MenuPressEvent<T>): MenuPressStep<T>;
1470
1604
  //#endregion
1471
- //#region src/composables/internal/menuPressDom.d.ts
1472
- /** 带这个标记的菜单根用的是按压模型。嵌套的飞出层靠它分清一次按压归哪一层。 */
1473
- declare const MENU_PRESS_MARKER = "data-astryx-menu-press";
1474
- //#endregion
1475
- //#region src/composables/internal/strayClick.d.ts
1605
+ //#region src/composables/internal/menuPressActivation.d.ts
1476
1606
  /**
1477
1607
  * 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
1478
1608
  * 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
1479
1609
  */
1480
1610
  declare function isMenuPressActivation(): boolean;
1481
- /** 撤掉已经布下的口子。卸载和测试里用。 */
1611
+ /** 撤掉已经布下的守卫。卸载和测试里用。 */
1482
1612
  declare function resetMenuPress(): void;
1483
1613
  //#endregion
1614
+ //#region src/composables/internal/menuPressDom.d.ts
1615
+ /** 带这个标记的菜单根用的是按压模型。嵌套的飞出层靠它分清一次按压归哪一层。 */
1616
+ declare const MENU_PRESS_MARKER = "data-astryx-menu-press";
1617
+ //#endregion
1484
1618
  //#region src/composables/useMenuPress.d.ts
1485
1619
  interface MenuPressOptions {
1486
1620
  /** 菜单(或列表框)的根:按压要从它的行里挑。 */
@@ -1738,6 +1872,29 @@ interface UseOverflowReturn {
1738
1872
  declare function useOverflow(element: Ref<HTMLElement | null>, isActive: Ref<boolean>): Ref<boolean>;
1739
1873
  declare function useOverflow(itemCount: MaybeRefOrGetter<number>, options?: UseOverflowOptions): UseOverflowReturn;
1740
1874
  //#endregion
1875
+ //#region src/composables/usePanGesture.d.ts
1876
+ /**
1877
+ * 把 `target` 指向的元素上的拖动报成数值。`target` 可以是模板 ref、getter
1878
+ * 或元素本身。
1879
+ *
1880
+ * 元素上始终只有一个拖动手势:换了元素、或 `options` 是响应式对象且 `axis`
1881
+ * 变了,就重建;作用域销毁时拆掉。`onPan` 每次报告时才从 `options` 里读,
1882
+ * 换一个新函数不会重建手势。拖动过程中不触发组件重新渲染。正在进行的拖动遇到
1883
+ * 重建或卸载时直接结束,不再调 `onPan`。服务端渲染时不碰 DOM。
1884
+ *
1885
+ * @example
1886
+ * ```ts
1887
+ * const card = useTemplateRef<HTMLElement>('card')
1888
+ * usePanGesture(card, {
1889
+ * axis: 'x',
1890
+ * onPan: ({ state, translation }) => {
1891
+ * card.value!.style.translate = state === 'changed' ? `${translation.x}px` : ''
1892
+ * },
1893
+ * })
1894
+ * ```
1895
+ */
1896
+ declare function usePanGesture(target: MaybeRefOrGetter<Element | null | undefined>, options: PanGestureOptions): void;
1897
+ //#endregion
1741
1898
  //#region src/composables/usePendingChange.d.ts
1742
1899
  interface PendingChange<T> {
1743
1900
  busy: Readonly<Ref<boolean>>;
@@ -2062,4 +2219,4 @@ interface UseTypeaheadReturn {
2062
2219
  */
2063
2220
  declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
2064
2221
  //#endregion
2065
- export { todayISODate as $, UseContainerRevealOptions as $n, HandleRef as $t, useRestoreFocus as A, DatePresentation as An, AnimatorAnimateOptions as Ar, useLayer as At, useOverflow as B, formatDisplayTime as Bn, WeekStartsOn as Br, UseInputContainerOptions as Bt, ScrollStickyContainment as C, UseDismissOptions as Cn, AnnounceFn as Cr, useListFocus as Ct, useScrollableArea as D, useDisclosureHandle as Dn, useAnimator as Dr, LayerMode as Dt, UseScrollableAreaResult as E, DisclosureHandleRef as En, AnnouncePoliteness as Er, useResolvedLayerTeleport as Et, PendingChange as F, ISOTimeString as Fn, AnimatorValues as Fr, InteractiveRole as Ft, NumberStepDirection as G, resolveTimeSurface as Gn, isRangeWithinSpan as Gr, useIndicatorFocusRing as Gt, ComputeOverflowResult as H, isTimeInRange as Hn, compareISODate as Hr, IndicatorFocusRingHandlers as Ht, usePendingChange as I, NativePicker as In, SnapPaging as Ir, UseInteractiveRoleOptions as It, useNumberField as J, UseControllableStateOptions as Jn, resolveWeekStart as Jr, imageModeFromPixels as Jt, UseNumberFieldOptions as K, shiftTime as Kn, isSameRange as Kr, ImageSampleRegion as Kt, OverflowInlineBounds as L, ParsedTime as Ln, SnapPagingOptions as Lr, UseInteractiveRoleReturn as Lt, UsePressFeedbackOptions as M, resolveDatePresentation as Mn, AnimatorDecayVelocity as Mr, UseKeyboardHint as Mt, UsePressFeedbackReturn as N, resolveDateSurface as Nn, AnimatorHandle as Nr, UseKeyboardHintOptions as Nt, RestoreFocus as O, devWarn as On, createAnimator as Or, UseLayerOptions as Ot, usePressFeedback as P, HourFormat as Pn, AnimatorSnapshot as Pr, useKeyboardHint as Pt, toISODate as Q, UseContainerReveal as Qn, useHotkeys as Qt, UseOverflowOptions as R, TimePresentation as Rn, ISODateRange as Rr, useInteractiveRole as Rt, ScrollRole as S, useEntryAnimation as Sn, useAppShellMobile as Sr, UseListFocusOptions as St, UseScrollableAreaOptions as T, DisclosureHandle as Tn, useAnnounce as Tr, useLayerTeleportTarget as Tt, computeOverflow as U, parseDisplayTime as Un, formatDateRange as Ur, UseIndicatorFocusRingOptions as Ut, ComputeOverflowInput as V, formatISOTime as Vn, applyRangeClick as Vr, useInputContainer as Vt, NumberField as W, parseISOTime as Wn, isDayOutsideSpan as Wr, UseIndicatorFocusRingReturn as Wt, buildMonthGrid as X, ContainerRevealOptions as Xn, useImageMode as Xt, addMonths as Y, useControllableState as Yn, spanDays as Yr, perceptualLightness as Yt, parseISODate as Z, ContentRevealOptions as Zn, Hotkey as Zt, useScrollLock as _, FieldControlStateInput as _n, UseChatNewMessagesOptions as _r, LongPressHandlers as _t, UseTouchTriggerOptions as a, UseGridFocusReturn as an, useCoarsePointer as ar, useMenuPress as at, ScrollKeyboardAccess as b, UseEntryAnimationOptions as bn, AppShellMobile as br, ListFocus as bt, isActionTrigger as c, UseFocusTrapOptions as cn, UseClickableContainerOptions as cr, MENU_PRESS_MARKER as ct, snapToGraphemeBoundary as d, FileSelectionOptions as dn, useClickableContainer as dr, MenuPressEvent as dt, useHandleRef as en, useContainerReveal as er, MergedRef as et, useStreamingText as f, FileSelectionResult as fn, ChatScrollToBottomOptions as fr, MenuPressGesture as ft, useScrollOverflow as g, FieldControlState as gn, CHAT_MESSAGE_CLASS as gr, useMediaQuery as gt, UseScrollOverflowResult as h, selectFiles as hn, useChatStreamScroll as hr, menuPressStep as ht, LayerTouchTrigger as i, UseGridFocusOptions as in, useCombobox as ir, MenuPressOptions as it, useResolvedLabelHidden as j, DateSurface as jn, AnimatorChannel as jr, KeyboardHintOrientation as jt, UseRestoreFocusOptions as k, useDevWarning as kn, Animator as kr, UseLayerReturn as kt, StreamingTextSpeed as l, useFocusTrap as ln, hasInteractiveAncestor as lr, MENU_PRESS_SETTLE_MS as lt, ScrollOverflowState as m, formatFileSize as mn, UseChatStreamScrollReturn as mr, MenuPressStep as mt, UseTypeaheadReturn as n, UseGridRovingFocusOptions as nn, ComboboxOption as nr, useMergedRefs as nt, UseTouchTriggerReturn as o, useGridFocus as on, ClickableContainerHandlers as or, isMenuPressActivation as ot, useSnapPaging as p, FileSizeUnits as pn, UseChatStreamScrollOptions as pr, MenuPressPointerType as pt, computeSteppedValue as q, ControllableState as qn, orderRange as qr, UseImageModeOptions as qt, useTypeahead as r, useGridRovingFocus as rn, UseComboboxOptions as rr, MenuPress as rt, useTouchTrigger as s, FocusTrap as sn, INTERACTIVE_SELECTORS as sr, resetMenuPress as st, UseTypeaheadOptions as t, GridRovingFocus as tn, Combobox as tr, MergedRefHandle as tt, UseStreamingTextOptions as u, FileRejection as un, hasTextSelection as ur, MenuPressEffect as ut, ScrollAxis as v, useFieldControlState as vn, UseChatNewMessagesReturn as vr, LongPressOptions as vt, ScrollableAreaState as w, useDismiss as wn, UseAnnounceOptions as wr, useLayerMountTarget as wt, ScrollOverscroll as x, UseEntryAnimationReturn as xn, appShellMobileKey as xr, ListFocusOrientation as xt, ScrollAxisState as y, EntryAnimationPreset as yn, useChatNewMessages as yr, useLongPress as yt, UseOverflowReturn as z, TimeSurface as zn, RangeClickResult as zr, InputContainerHandlers as zt };
2222
+ export { toISODate as $, ContainerRevealOptions as $n, compareISODate as $r, useHotkeys as $t, useRestoreFocus as A, useDisclosureHandle as An, useAnimator as Ar, UseLayerReturn as At, UseOverflowReturn as B, ParsedTime as Bn, Animator as Br, InputContainerHandlers as Bt, ScrollStickyContainment as C, useEntryAnimation as Cn, AppShellMobile as Cr, UseListFocusOptions as Ct, useScrollableArea as D, useDismiss as Dn, UseAnnounceOptions as Dr, useResolvedLayerTeleport as Dt, UseScrollableAreaResult as E, UseDismissOptions as En, AnnounceFn as Er, useLayerTeleportTarget as Et, PendingChange as F, resolveDatePresentation as Fn, PanGestureEvent as Fr, useKeyboardHint as Ft, NumberField as G, isTimeInRange as Gn, AnimatorSnapshot as Gr, UseIndicatorFocusRingReturn as Gt, ComputeOverflowInput as H, TimeSurface as Hn, AnimatorChannel as Hr, useInputContainer as Ht, usePendingChange as I, resolveDateSurface as In, PanGestureOptions as Ir, InteractiveRole as It, computeSteppedValue as J, resolveTimeSurface as Jn, SnapPagingOptions as Jr, UseImageModeOptions as Jt, NumberStepDirection as K, parseDisplayTime as Kn, AnimatorValues as Kr, useIndicatorFocusRing as Kt, usePanGesture as L, HourFormat as Ln, PanGestureState as Lr, UseInteractiveRoleOptions as Lt, UsePressFeedbackOptions as M, useDevWarning as Mn, DragToSnapPointsOptions as Mr, KeyboardHintOrientation as Mt, UsePressFeedbackReturn as N, DatePresentation as Nn, createDragToSnapPoints as Nr, UseKeyboardHint as Nt, RestoreFocus as O, DisclosureHandle as On, useAnnounce as Or, LayerMode as Ot, usePressFeedback as P, DateSurface as Pn, PanGesture as Pr, UseKeyboardHintOptions as Pt, parseISODate as Q, useControllableState as Qn, applyRangeClick as Qr, Hotkey as Qt, OverflowInlineBounds as R, ISOTimeString as Rn, createPanGesture as Rr, UseInteractiveRoleReturn as Rt, ScrollRole as S, UseEntryAnimationReturn as Sn, useChatNewMessages as Sr, ListFocusOrientation as St, UseScrollableAreaOptions as T, useDragToSnapPoints as Tn, useAppShellMobile as Tr, useLayerMountTarget as Tt, ComputeOverflowResult as U, formatDisplayTime as Un, AnimatorDecayVelocity as Ur, IndicatorFocusRingHandlers as Ut, useOverflow as V, TimePresentation as Vn, AnimatorAnimateOptions as Vr, UseInputContainerOptions as Vt, computeOverflow as W, formatISOTime as Wn, AnimatorHandle as Wr, UseIndicatorFocusRingOptions as Wt, addMonths as X, ControllableState as Xn, RangeClickResult as Xr, perceptualLightness as Xt, useNumberField as Y, shiftTime as Yn, ISODateRange as Yr, imageModeFromPixels as Yt, buildMonthGrid as Z, UseControllableStateOptions as Zn, WeekStartsOn as Zr, useImageMode as Zt, useScrollLock as _, FieldControlState as _n, UseChatStreamScrollReturn as _r, useMediaQuery as _t, UseTouchTriggerOptions as a, resolveWeekStart as ai, UseGridFocusOptions as an, ComboboxOption as ar, MenuPressOptions as at, ScrollKeyboardAccess as b, EntryAnimationPreset as bn, UseChatNewMessagesOptions as br, useLongPress as bt, isActionTrigger as c, FocusTrap as cn, useCoarsePointer as cr, isMenuPressActivation as ct, snapToGraphemeBoundary as d, FileRejection as dn, UseClickableContainerOptions as dr, MenuPressEffect as dt, formatDateRange as ei, HandleRef as en, ContentRevealOptions as er, todayISODate as et, useStreamingText as f, FileSelectionOptions as fn, hasInteractiveAncestor as fr, MenuPressEvent as ft, useScrollOverflow as g, selectFiles as gn, UseChatStreamScrollOptions as gr, menuPressStep as gt, UseScrollOverflowResult as h, formatFileSize as hn, ChatScrollToBottomOptions as hr, MenuPressStep as ht, LayerTouchTrigger as i, orderRange as ii, useGridRovingFocus as in, Combobox as ir, MenuPress as it, useResolvedLabelHidden as j, devWarn as jn, DragToSnapPoints as jr, useLayer as jt, UseRestoreFocusOptions as k, DisclosureHandleRef as kn, AnnouncePoliteness as kr, UseLayerOptions as kt, StreamingTextSpeed as l, UseFocusTrapOptions as ln, ClickableContainerHandlers as lr, resetMenuPress as lt, ScrollOverflowState as m, FileSizeUnits as mn, useClickableContainer as mr, MenuPressPointerType as mt, UseTypeaheadReturn as n, isRangeWithinSpan as ni, GridRovingFocus as nn, UseContainerRevealOptions as nr, MergedRefHandle as nt, UseTouchTriggerReturn as o, spanDays as oi, UseGridFocusReturn as on, UseComboboxOptions as or, useMenuPress as ot, useSnapPaging as p, FileSelectionResult as pn, hasTextSelection as pr, MenuPressGesture as pt, UseNumberFieldOptions as q, parseISOTime as qn, SnapPaging as qr, ImageSampleRegion as qt, useTypeahead as r, isSameRange as ri, UseGridRovingFocusOptions as rn, useContainerReveal as rr, useMergedRefs as rt, useTouchTrigger as s, useGridFocus as sn, useCombobox as sr, MENU_PRESS_MARKER as st, UseTypeaheadOptions as t, isDayOutsideSpan as ti, useHandleRef as tn, UseContainerReveal as tr, MergedRef as tt, UseStreamingTextOptions as u, useFocusTrap as un, INTERACTIVE_SELECTORS as ur, MENU_PRESS_SETTLE_MS as ut, ScrollAxis as v, FieldControlStateInput as vn, useChatStreamScroll as vr, LongPressHandlers as vt, ScrollableAreaState as w, UseDragToSnapPointsResult as wn, appShellMobileKey as wr, useListFocus as wt, ScrollOverscroll as x, UseEntryAnimationOptions as xn, UseChatNewMessagesReturn as xr, ListFocus as xt, ScrollAxisState as y, useFieldControlState as yn, CHAT_MESSAGE_CLASS as yr, LongPressOptions as yt, UseOverflowOptions as z, NativePicker as zn, createAnimator as zr, useInteractiveRole as zt };