@astryx-vue/core 0.30.1 → 0.32.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 (289) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-B_p1yL3k.js → AlertDialog-C5pc5nQN.js} +6 -6
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-D3KZSLvb.js → AppShell-B7dkDyY8.js} +4 -4
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-IVvsyeGV.js → Avatar-CYW9ZTD3.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js +1 -1
  10. package/dist/{Banner-DKmvoMxD.js → Banner-BNrs2Ptl.js} +1 -1
  11. package/dist/BottomSheet/index.js +2 -2
  12. package/dist/{BottomSheet-CQGtoh2x.js → BottomSheet-CAJJ8cR5.js} +3 -3
  13. package/dist/{BottomSheet-Btf8Yn8k.js → BottomSheet-Z92IvLBU.js} +4 -4
  14. package/dist/Breadcrumbs/index.d.ts +2 -2
  15. package/dist/Breadcrumbs/index.js +2 -2
  16. package/dist/{Breadcrumbs-D6825HQI.js → Breadcrumbs-CnvaPn8M.js} +1 -1
  17. package/dist/Button/index.js +1 -1
  18. package/dist/{Button-DdPty46q.js → Button-CzMWqCpJ.js} +2 -2
  19. package/dist/ButtonGroup/index.d.ts +1 -1
  20. package/dist/Calendar/index.d.ts +1 -1
  21. package/dist/Carousel/index.d.ts +1 -1
  22. package/dist/Carousel/index.js +1 -1
  23. package/dist/{Carousel-BNr79JpP.js → Carousel-BjyedZ0Y.js} +1 -1
  24. package/dist/Chat/index.d.ts +1 -1
  25. package/dist/Chat/index.js +1 -1
  26. package/dist/{Chat-BadS0fEx.js → Chat-CJr2RIyc.js} +11 -11
  27. package/dist/CheckboxInput/index.d.ts +1 -1
  28. package/dist/CheckboxInput/index.js +1 -1
  29. package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-BrbQTrL-.js} +1 -1
  30. package/dist/CheckboxList/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.js +1 -1
  32. package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-CrAzFR4x.js} +3 -3
  33. package/dist/ClickableCard/index.d.ts +1 -1
  34. package/dist/Code/index.js +2 -2
  35. package/dist/{Code-5rZyPwty.js → Code-_PngYOKp.js} +2 -0
  36. package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-pWPw1-iu.js} +1 -1
  37. package/dist/Collapsible/index.js +1 -1
  38. package/dist/{Collapsible-CfTN722D.js → Collapsible-DXl9RRaX.js} +2 -2
  39. package/dist/CommandPalette/index.d.ts +1 -1
  40. package/dist/CommandPalette/index.js +1 -1
  41. package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-DnbvnT4c.js} +1 -1
  42. package/dist/ComplexSelector/index.d.ts +1 -1
  43. package/dist/ComplexSelector/index.js +1 -1
  44. package/dist/{ComplexSelector-DqWJVx7H.js → ComplexSelector-DWQbuovE.js} +2 -2
  45. package/dist/ContextMenu/index.d.ts +2 -2
  46. package/dist/ContextMenu/index.js +2 -2
  47. package/dist/{ContextMenu-C9dJGu3M.js → ContextMenu-DfoShDVW.js} +168 -143
  48. package/dist/DateInput/index.d.ts +1 -1
  49. package/dist/DateInput/index.js +1 -1
  50. package/dist/{DateInput-CGKaozkw.js → DateInput-D9_QsZMj.js} +10 -10
  51. package/dist/DateRangeInput/index.d.ts +1 -1
  52. package/dist/DateRangeInput/index.js +1 -1
  53. package/dist/{DateRangeInput-BVHXgzXz.js → DateRangeInput-8P8i8aVI.js} +5 -5
  54. package/dist/DateTimeInput/index.d.ts +1 -1
  55. package/dist/DateTimeInput/index.js +1 -1
  56. package/dist/{DateTimeInput-DRm3lekJ.js → DateTimeInput-C2XWslHp.js} +5 -5
  57. package/dist/Dialog/index.js +3 -3
  58. package/dist/{Dialog-Dt0gNuMT.js → Dialog-B1Hlr0x_.js} +2 -2
  59. package/dist/{Dialog-BN-NycQr.js → Dialog-Cet6PTnf.js} +1 -1
  60. package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-BiHQct4G.js} +2 -2
  61. package/dist/Drawer/index.d.ts +1 -1
  62. package/dist/Drawer/index.js +1 -1
  63. package/dist/{Drawer-PeMgE4iA.js → Drawer-Bm3l7Dey.js} +2 -2
  64. package/dist/DropdownMenu/index.d.ts +2 -2
  65. package/dist/DropdownMenu/index.js +2 -3
  66. package/dist/{DropdownMenu-_lQQyQCn.js → DropdownMenu-BaRXEFLa.js} +1084 -556
  67. package/dist/{DropdownMenuRadioItem.vue-C8rePTyz.d.ts → DropdownMenuRadioItem.vue-B4iwMWWD.d.ts} +16 -0
  68. package/dist/EmptyState/index.js +1 -1
  69. package/dist/{EmptyState-BGo1nrnT.js → EmptyState-CXDlpIdI.js} +2 -2
  70. package/dist/Field/index.js +3 -3
  71. package/dist/{Field-D-fRqyso.js → Field-njr7AUcW.js} +1 -1
  72. package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DLqZykVm.js} +1 -1
  73. package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CyL5D1lu.js} +1 -1
  74. package/dist/FileInput/index.d.ts +1 -1
  75. package/dist/FileInput/index.js +1 -1
  76. package/dist/{FileInput-CTNnDIkm.js → FileInput-CtqZSRdh.js} +3 -3
  77. package/dist/Heading/index.d.ts +1 -1
  78. package/dist/Heading/index.js +1 -1
  79. package/dist/{Heading-BFK3PftX.js → Heading-BXTbW_px.js} +1 -1
  80. package/dist/HoverCard/index.d.ts +1 -1
  81. package/dist/HoverCard/index.js +1 -1
  82. package/dist/{HoverCard-DGjsPn-Q.js → HoverCard-zVUEeqF2.js} +4 -4
  83. package/dist/IconButton/index.js +1 -1
  84. package/dist/{IconButton-DPezhVBA.js → IconButton-CoZFp0CP.js} +1 -1
  85. package/dist/Indicator/index.d.ts +2 -2
  86. package/dist/InfoTip/index.d.ts +1 -1
  87. package/dist/InfoTip/index.js +1 -1
  88. package/dist/{InfoTip-B4BFfLtT.js → InfoTip-Eg2IGZJw.js} +1 -1
  89. package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-CBsL91my.js} +1 -1
  90. package/dist/InputGroup/index.d.ts +1 -1
  91. package/dist/InputGroup/index.js +1 -1
  92. package/dist/{InputGroup-CraWGK6Y.js → InputGroup-BE83-MCX.js} +1 -1
  93. package/dist/InternationalizationProvider/index.js +1 -1
  94. package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
  95. package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-DmRI6Bg0.js} +1 -1
  96. package/dist/Lightbox/index.js +1 -1
  97. package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-5PtYb0r4.js} +2 -2
  98. package/dist/Link/index.d.ts +1 -1
  99. package/dist/Link/index.js +1 -1
  100. package/dist/{Link-Bwgpn-di.js → Link-BzXVGE7G.js} +1 -1
  101. package/dist/List/index.d.ts +1 -1
  102. package/dist/Markdown/index.d.ts +1 -1
  103. package/dist/Markdown/index.js +1 -1
  104. package/dist/{Markdown-BlEi5UGN.js → Markdown-HDZPj9Vw.js} +3 -3
  105. package/dist/{MediaTheme-UM8oOqwX.js → MediaTheme-CBkEmVe4.js} +1 -1
  106. package/dist/MobileNav/index.js +1 -1
  107. package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-CrUf5UPQ.js} +2 -2
  108. package/dist/MoreMenu/index.d.ts +1 -1
  109. package/dist/MoreMenu/index.js +1 -1
  110. package/dist/{MoreMenu-MmvMRWv5.js → MoreMenu-DzpufGyj.js} +45 -16
  111. package/dist/MultiSelector/index.d.ts +1 -1
  112. package/dist/MultiSelector/index.js +1 -1
  113. package/dist/{MultiSelector-DXrKQLmq.js → MultiSelector-BS6wxlx4.js} +7 -7
  114. package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-BM0dJGLA.js} +1 -1
  115. package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-CuQnoV_V.js} +1 -1
  116. package/dist/NavMenu/index.js +3 -3
  117. package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-fXsoJKjW.js} +3 -3
  118. package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BKY6eRkz.js} +2 -2
  119. package/dist/NumberInput/index.d.ts +1 -1
  120. package/dist/NumberInput/index.js +1 -1
  121. package/dist/{NumberInput-DicgvFte.js → NumberInput-Ueted2wi.js} +3 -3
  122. package/dist/Outline/index.js +1 -1
  123. package/dist/{Outline-DlO_97b4.js → Outline-CnSt_KvS.js} +3 -2
  124. package/dist/OverflowList/index.d.ts +1 -1
  125. package/dist/OverflowList/index.js +1 -1
  126. package/dist/{OverflowList-BYYz3ePw.js → OverflowList-KpebInhH.js} +2 -2
  127. package/dist/Overlay/index.d.ts +1 -1
  128. package/dist/Pagination/index.d.ts +1 -1
  129. package/dist/Pagination/index.js +1 -1
  130. package/dist/{Pagination-DM_W9Ue-.js → Pagination-BliQ5RGN.js} +2 -2
  131. package/dist/Popover/index.d.ts +2 -2
  132. package/dist/Popover/index.js +1 -1
  133. package/dist/{Popover-CxReY-4u.js → Popover-DXfXGrWG.js} +9 -9
  134. package/dist/PowerSearch/index.d.ts +1 -1
  135. package/dist/PowerSearch/index.js +1 -1
  136. package/dist/{PowerSearch-BwUWZG3p.js → PowerSearch-CmJKFEEu.js} +25 -25
  137. package/dist/ProgressBar/index.d.ts +1 -1
  138. package/dist/ProgressBar/index.js +1 -1
  139. package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-Dj1ucJxG.js} +1 -1
  140. package/dist/Radio/index.d.ts +1 -1
  141. package/dist/Radio/index.js +1 -1
  142. package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-BLOjBRrM.js} +2 -2
  143. package/dist/RadioList/index.d.ts +1 -1
  144. package/dist/RadioList/index.js +1 -1
  145. package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-CHxTpBva.js} +1 -1
  146. package/dist/ScrollableArea/index.d.ts +1 -1
  147. package/dist/SelectableCard/index.d.ts +1 -1
  148. package/dist/Selector/index.d.ts +1 -1
  149. package/dist/Selector/index.js +1 -1
  150. package/dist/{Selector-bH99g1vj.js → Selector-OhIdsI8A.js} +6 -6
  151. package/dist/SideNav/index.d.ts +1 -1
  152. package/dist/SideNav/index.js +2 -2
  153. package/dist/{SideNav-C1ZxusAB.js → SideNav-CcdDU-hP.js} +8 -8
  154. package/dist/Slider/index.js +1 -1
  155. package/dist/{Slider-Bq_7Nskr.js → Slider-DjbWQ1wn.js} +1 -1
  156. package/dist/StatusDot/index.js +1 -1
  157. package/dist/{StatusDot-DFJavm30.js → StatusDot-Bta_bpaZ.js} +1 -1
  158. package/dist/Stepper/index.d.ts +1 -1
  159. package/dist/Switch/index.d.ts +1 -1
  160. package/dist/Switch/index.js +1 -1
  161. package/dist/{Switch-DTPvMAxd.js → Switch-D4ojsj_l.js} +1 -1
  162. package/dist/TabList/index.js +1 -1
  163. package/dist/{TabList-C4i7UZkp.js → TabList-S99zXoRN.js} +2 -2
  164. package/dist/Table/index.d.ts +1 -1
  165. package/dist/Table/index.js +1 -1
  166. package/dist/{Table-ClHIgsKO.js → Table-3NTjPpHc.js} +15 -15
  167. package/dist/Text/index.d.ts +1 -1
  168. package/dist/Text/index.js +1 -1
  169. package/dist/{Text-D48QFTtL.js → Text-DNKNlENe.js} +1 -1
  170. package/dist/TextArea/index.d.ts +1 -1
  171. package/dist/TextArea/index.js +1 -1
  172. package/dist/{TextArea-J2_wct0p.js → TextArea-DnSmL0A8.js} +4 -4
  173. package/dist/TextInput/index.d.ts +1 -1
  174. package/dist/TextInput/index.js +1 -1
  175. package/dist/{TextInput-Da1TYd57.js → TextInput-DyHEMYld.js} +4 -4
  176. package/dist/Theme/index.d.ts +4 -3
  177. package/dist/Theme/index.js +4 -3
  178. package/dist/{Theme-BmTbbiAD.js → Theme-CwruhtLu.js} +290 -62
  179. package/dist/Thumbnail/index.js +1 -1
  180. package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-D8GlIdNm.js} +2 -2
  181. package/dist/{TimeField-i5ESA500.js → TimeField-ADeT0OA1.js} +4 -4
  182. package/dist/TimeInput/index.d.ts +1 -1
  183. package/dist/TimeInput/index.js +1 -1
  184. package/dist/{TimeInput-frnKZo1M.js → TimeInput-C1gzJGHk.js} +2 -2
  185. package/dist/Timer/index.js +1 -1
  186. package/dist/{Timer-DgQdZAEa.js → Timer-DhI2oV5L.js} +1 -1
  187. package/dist/Timestamp/index.d.ts +1 -1
  188. package/dist/Timestamp/index.js +1 -1
  189. package/dist/{Timestamp-SseS_qtf.js → Timestamp-CTZSVsmd.js} +3 -3
  190. package/dist/Toast/index.js +1 -1
  191. package/dist/{Toast-tAq4S96S.js → Toast-DUqDW07c.js} +27 -3
  192. package/dist/ToggleButton/index.d.ts +1 -1
  193. package/dist/ToggleButton/index.js +1 -1
  194. package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-BMBH2tmu.js} +1 -1
  195. package/dist/Token/index.d.ts +1 -1
  196. package/dist/Tokenizer/index.d.ts +1 -1
  197. package/dist/Tokenizer/index.js +1 -1
  198. package/dist/{Tokenizer-iFZAuIwu.js → Tokenizer-C0CdEzQT.js} +13 -13
  199. package/dist/Toolbar/index.d.ts +1 -1
  200. package/dist/Tooltip/index.d.ts +1 -1
  201. package/dist/Tooltip/index.js +2 -2
  202. package/dist/{Tooltip-CxzlUVN0.js → Tooltip-CEyd_iFa.js} +1 -1
  203. package/dist/TopNav/index.d.ts +1 -1
  204. package/dist/TopNav/index.js +1 -1
  205. package/dist/{TopNav-CcIayfsW.js → TopNav-BObecD_X.js} +4 -4
  206. package/dist/TreeList/index.js +1 -1
  207. package/dist/{TreeList-Da_OKrv_.js → TreeList-CsgXzBdm.js} +2 -2
  208. package/dist/Typeahead/index.d.ts +1 -1
  209. package/dist/Typeahead/index.js +2 -2
  210. package/dist/{Typeahead-BD6xXNKh.js → Typeahead-C_0dTmaf.js} +5 -5
  211. package/dist/{useMenuDrillIn-Cj6MM77J.js → accessibleName-Cq7krRE-.js} +118 -27
  212. package/dist/{adaptationTypes-Cn_pfrsw.d.ts → adaptationTypes-D874ONPJ.d.ts} +28 -6
  213. package/dist/{animator-CEHDYTfQ.js → animator-C0kqgDUJ.js} +3 -2
  214. package/dist/{assertOptions-CJgNig1l.js → assertOptions-Km_9Y5rI.js} +2 -2
  215. package/dist/{batch-D2a2MsSW.js → batch-DPlrpYU6.js} +3 -2
  216. package/dist/compactDefinition-BeFUKEFg.js +29 -0
  217. package/dist/compactDefinition-CMTR5KqU.d.ts +19 -0
  218. package/dist/composables/index.d.ts +2 -2
  219. package/dist/composables/index.js +11 -11
  220. package/dist/{composables-Bs0O_SRd.js → composables-kHI1dSq2.js} +4 -4
  221. package/dist/{context-NKb_prrS.js → context-ZWA02GaM.js} +1 -1
  222. package/dist/{edge-tj-cLZYh.js → edge-DFaE6rUg.js} +1 -1
  223. package/dist/{edgeRide-DcUqLXE2.js → edgeRide-UdNxbwxY.js} +2 -2
  224. package/dist/{index-m3DOxOw6.d.ts → index-4m5X7IYX.d.ts} +69 -69
  225. package/dist/{index-BIqW3_GP.d.ts → index-B83v2qNb.d.ts} +2 -2
  226. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  227. package/dist/{index-C6IcBhAn.d.ts → index-BIiG1CF_.d.ts} +2 -2
  228. package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
  229. package/dist/{index-YKCx03zD.d.ts → index-BpFzfJbo.d.ts} +1 -1
  230. package/dist/{index-3qz8Qztx.d.ts → index-Bxus0zuz.d.ts} +8 -8
  231. package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
  232. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  233. package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
  234. package/dist/{index-DYabo8TI.d.ts → index-CHLZPpjQ.d.ts} +3 -3
  235. package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
  236. package/dist/{index-D14kSf-g.d.ts → index-CQi9WGWE.d.ts} +1 -1
  237. package/dist/{index-Bh-GqMzd.d.ts → index-CdRxeyhB.d.ts} +30 -2
  238. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  239. package/dist/{index-Cw4CUe06.d.ts → index-Cj-Ob5jw.d.ts} +6 -6
  240. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  241. package/dist/{index-Ea2V_FSK.d.ts → index-DAEgHJTK.d.ts} +4 -4
  242. package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
  243. package/dist/{index-668zPVsH.d.ts → index-DkYOGpsC.d.ts} +1 -1
  244. package/dist/{index-DVS4jM-l.d.ts → index-DogWVRJi.d.ts} +1 -1
  245. package/dist/{index-CTXG-KKT.d.ts → index-EUzmHHm6.d.ts} +2 -1
  246. package/dist/{index-Bu4R0WZA.d.ts → index-ILJ7sKx3.d.ts} +3 -3
  247. package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
  248. package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
  249. package/dist/index.d.ts +31 -30
  250. package/dist/index.js +99 -98
  251. package/dist/{landing-Bi7X7w_7.js → landing-CSCE9afT.js} +1 -1
  252. package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-8jb4An1z.js} +1 -1
  253. package/dist/lazyBottomSheet-CNYA5qOy.js +25 -0
  254. package/dist/{linearEasing-ScK9LqAY.js → linearEasing-BiRVC8Mq.js} +1 -22
  255. package/dist/locale/index.js +3 -3
  256. package/dist/{locale-CVpkedoa.js → locale-C9LWi1y1.js} +1 -1
  257. package/dist/{menuActivation-BqiaK6ot.js → menuActivation-BQqnzKAX.js} +8 -1
  258. package/dist/{presentationHold-7IkbR4d8.js → presentationHold-B4tK68sd.js} +3 -29
  259. package/dist/reducedMotionMark-CYSyfURo.js +34 -0
  260. package/dist/{resolveMotion-1cwESYvK.js → resolveMotion-B9NDPeUz.js} +1 -1
  261. package/dist/{stillPointerGate-BbMABRyU.js → stillPointerGate-CpzpYNqy.js} +1 -1
  262. package/dist/{themeTiming-NUkH9HsU.js → themeTiming-D1U0redl.js} +1 -111
  263. package/dist/tokenReferences-sKpv-7_O.js +167 -0
  264. package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-BfnTnTpn.js} +2 -2
  265. package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-BRdKWVzo.js} +1 -1
  266. package/dist/{types-BA1veIoa.d.ts → types-D97oBk6c.d.ts} +1 -1
  267. package/dist/{useCombobox-BqkTY3bw.js → useCombobox-DkwiskdE.js} +1 -1
  268. package/dist/{useDismiss-BKtyCwx4.js → useDismiss-fhWaGqY8.js} +1 -1
  269. package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-DT2UCZd-.js} +1 -1
  270. package/dist/{useHeldPresentation-7MH-RlSF.js → useHeldPresentation-BF5vGVUn.js} +1 -1
  271. package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-B1i0sFKu.js} +1 -1
  272. package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-CBtTaYOS.js} +71 -4
  273. package/dist/{useResizable-hv4NYIUi.js → useResizable-AfPBAq5c.js} +1 -1
  274. package/dist/{useTooltip-DvBKna-w.js → useTooltip-llyJd1q6.js} +4 -4
  275. package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-DzsFiDjb.js} +1 -1
  276. package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-BFm7XgvO.js} +3 -3
  277. package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-8Y5m41VA.js} +1 -1
  278. package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-Cy-gOjVd.js} +2 -2
  279. package/package.json +1 -1
  280. package/reset.css +1 -1
  281. package/styles/chat.css +5 -5
  282. package/styles/drawer.css +9 -0
  283. package/styles/dropdown-menu.css +5 -0
  284. package/dist/DropdownMenu-C9bvYZPt.js +0 -489
  285. package/dist/lazyBottomSheet-BVZ1yH8g.js +0 -16
  286. package/dist/motionTokenDefaults-EFzpiAF5.js +0 -38
  287. package/dist/useSubmenuMode-CZN9qrUo.js +0 -37
  288. package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
  289. package/dist/{loadCatalog-FwMzmCx1.js → loadCatalog-zJKVLZ89.js} +1 -1
@@ -1,32 +1,6 @@
1
- import { n as themeContextKey } from "./context-Cws_tXTr.js";
2
1
  import { i as watchMediaQuery, n as matchesMediaQuery } from "./coarsePointer-BfMx3H23.js";
3
- import { t as DEFAULT_WIDTH_BREAKPOINTS } from "./adaptationTypes-Beao49TN.js";
4
- import { computed, getCurrentInstance, inject, onMounted, onScopeDispose, shallowRef, toValue, watch } from "vue";
5
- //#region src/Theme/compactDefinition.ts
6
- /** 高度低于它算紧凑:横过来的手机。 */
7
- const COMPACT_HEIGHT_BELOW = 500;
8
- /** 按主题的宽度点算出紧凑定义;不传就用标准宽度点。 */
9
- function compactDefinition(points = DEFAULT_WIDTH_BREAKPOINTS) {
10
- const width = `(width < ${points.md}px)`;
11
- const height = `(height < ${COMPACT_HEIGHT_BELOW}px)`;
12
- return Object.freeze({
13
- widthBelow: points.md,
14
- heightBelow: COMPACT_HEIGHT_BELOW,
15
- query: `${width}, ${height}`,
16
- coarsePointerQuery: `${width} and (pointer: coarse), ${height} and (pointer: coarse)`
17
- });
18
- }
19
- /** 标准宽度点下的紧凑定义。 */
20
- const DEFAULT_COMPACT_DEFINITION = compactDefinition();
21
- /** 最近一层主题的紧凑定义。主题没改宽度点时就是标准定义。 */
22
- function useCompactDefinition() {
23
- const theme = inject(themeContextKey, null);
24
- return computed(() => {
25
- const points = theme?.value.theme.adaptations?.widthBreakpoints;
26
- return points == null || points.md === DEFAULT_WIDTH_BREAKPOINTS.md ? DEFAULT_COMPACT_DEFINITION : compactDefinition(points);
27
- });
28
- }
29
- //#endregion
2
+ import { r as useCompactDefinition } from "./compactDefinition-BeFUKEFg.js";
3
+ import { computed, getCurrentInstance, onMounted, onScopeDispose, shallowRef, toValue, watch } from "vue";
30
4
  //#region src/composables/internal/presentation.ts
31
5
  /**
32
6
  * 一条媒体查询是否匹配,只在 `query` 不为空时订阅。服务端和接管服务端 HTML
@@ -115,4 +89,4 @@ function usePresentationHold(options) {
115
89
  };
116
90
  }
117
91
  //#endregion
118
- export { useCompactDefinition as a, useAdaptivePresentation as i, usePresentationHold as n, readCompactTouch as r, createPresentationHold as t };
92
+ export { useAdaptivePresentation as i, usePresentationHold as n, readCompactTouch as r, createPresentationHold as t };
@@ -0,0 +1,34 @@
1
+ //#region src/motion/reducedMotionMark.ts
2
+ /**
3
+ * @file reducedMotionMark.ts
4
+ * @input Whether a theme reduces motion for everyone
5
+ * @output reducedMotionMarkProps and setRootReducedMotionMark, which write the
6
+ * mark, and themeReducesMotion, which reads it
7
+ * @position Owner module of the private reduced-motion attribute: the only
8
+ * file that writes its name. A theme that reduces motion for everyone
9
+ * spreads the mark on its root, and the root theme sets it on `<html>`; the
10
+ * animator and reducedMotionFade read it as the person's Reduce Motion
11
+ * setting. No package entry exports it.
12
+ */
13
+ const REDUCED_MOTION = "data-astryx-reduced-motion";
14
+ /** Spread on a theme's root when the theme reduces motion for everyone. */
15
+ function reducedMotionMarkProps(isMarked) {
16
+ return isMarked ? { [REDUCED_MOTION]: "" } : {};
17
+ }
18
+ /**
19
+ * Marks or unmarks `<html>` for the root theme, so a layer portaled outside
20
+ * the theme's root reads the mark too.
21
+ */
22
+ function setRootReducedMotionMark(root, isMarked) {
23
+ if (isMarked) root.setAttribute(REDUCED_MOTION, "");
24
+ else root.removeAttribute(REDUCED_MOTION);
25
+ }
26
+ /**
27
+ * Whether the theme `element` is in reduces motion for everyone: its root,
28
+ * or `<html>` for the root theme, carries the mark.
29
+ */
30
+ function themeReducesMotion(element) {
31
+ return element?.closest?.(`[${REDUCED_MOTION}]`) != null;
32
+ }
33
+ //#endregion
34
+ export { setRootReducedMotionMark as n, themeReducesMotion as r, reducedMotionMarkProps as t };
@@ -1,5 +1,5 @@
1
1
  import { b as isSpring, h as motionRoleOf, m as motionRoleIn } from "./pressGesture-BzIBmKF2.js";
2
- import { t as linearEasing } from "./linearEasing-ScK9LqAY.js";
2
+ import { t as linearEasing } from "./linearEasing-BiRVC8Mq.js";
3
3
  //#region src/motion/springParameters.ts
4
4
  /**
5
5
  * @file springParameters.ts
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BKtyCwx4.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-fhWaGqY8.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,117 +1,7 @@
1
1
  import { _ as parseMotionRoleValue, g as parseCssEasing } from "./pressGesture-BzIBmKF2.js";
2
2
  import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
3
- import { n as easeDefaults, t as durationDefaults } from "./motionTokenDefaults-EFzpiAF5.js";
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";
5
- //#region src/Theme/tokenReferences.ts
6
- /**
7
- * @file tokenReferences.ts
8
- * @input A flat map of token names to raw CSS values
9
- * @output `resolveTokenReferences`, which follows `var(--name[, fallback])`
10
- * references through the map
11
- * @position Theme utility with no imports: themeMotion.ts resolves motion
12
- * tokens written as references on it, and the motion foundation resolves
13
- * the declared timing defaults on it. Pure; safe on the server.
14
- */
15
- /**
16
- * Call `visit` for each top-level character of a CSS value. A top-level
17
- * character is outside parentheses and outside quoted strings. In a quoted
18
- * string, a backslash escapes the next character. The scan stops when `visit`
19
- * returns true.
20
- */
21
- function scanTopLevel(input, visit) {
22
- let depth = 0;
23
- let quote = null;
24
- let isEscaped = false;
25
- for (let i = 0; i < input.length; i++) {
26
- const char = input[i];
27
- if (quote !== null) {
28
- if (isEscaped) isEscaped = false;
29
- else if (char === "\\") isEscaped = true;
30
- else if (char === quote) quote = null;
31
- continue;
32
- }
33
- if (char === "\"" || char === "'") {
34
- quote = char;
35
- continue;
36
- }
37
- if (char === "(") {
38
- depth++;
39
- continue;
40
- }
41
- if (char === ")") {
42
- depth = Math.max(0, depth - 1);
43
- continue;
44
- }
45
- if (depth === 0 && visit(i)) return;
46
- }
47
- }
48
- /**
49
- * Split the arguments of a CSS function body on the first top-level comma.
50
- * Handles nested functions such as rgba(), color-mix(), var(), and quoted strings.
51
- */
52
- function splitTopLevelComma(input) {
53
- let split = null;
54
- scanTopLevel(input, (i) => {
55
- if (input[i] !== ",") return false;
56
- split = [input.slice(0, i).trim(), input.slice(i + 1).trim()];
57
- return true;
58
- });
59
- return split;
60
- }
61
- /** Index of the `)` matching the `(` at `openIndex`, or -1 when unbalanced. */
62
- function findMatchingParen(input, openIndex) {
63
- let depth = 0;
64
- for (let i = openIndex; i < input.length; i++) {
65
- const char = input[i];
66
- if (char === "(") depth++;
67
- else if (char === ")") {
68
- depth--;
69
- if (depth === 0) return i;
70
- }
71
- }
72
- return -1;
73
- }
74
- /**
75
- * Resolves every value in `raw` to a concrete one: each `var(--name[,
76
- * fallback])` is replaced by `name`'s resolved value, or by its fallback when
77
- * `raw` has no `name`, and is kept as written when neither exists or the
78
- * references form a cycle.
79
- */
80
- function resolveTokenReferences(raw) {
81
- const cache = {};
82
- const substitute = (expr, seen) => {
83
- const start = expr.indexOf("var(");
84
- if (start === -1) return expr;
85
- const openIndex = start + 3;
86
- const closeIndex = findMatchingParen(expr, openIndex);
87
- if (closeIndex === -1) return expr;
88
- const inner = expr.slice(openIndex + 1, closeIndex);
89
- const commaSplit = splitTopLevelComma(inner);
90
- const name = (commaSplit ? commaSplit[0] : inner).trim();
91
- const fallback = commaSplit ? commaSplit[1] : null;
92
- let replacement;
93
- if (seen.has(name)) replacement = expr.slice(start, closeIndex + 1);
94
- else if (name in raw) {
95
- seen.add(name);
96
- replacement = reference(name, seen);
97
- seen.delete(name);
98
- } else if (fallback !== null) replacement = substitute(fallback.trim(), seen);
99
- else replacement = expr.slice(start, closeIndex + 1);
100
- const rest = substitute(expr.slice(closeIndex + 1), seen);
101
- return expr.slice(0, start) + replacement + rest;
102
- };
103
- const reference = (name, seen) => {
104
- if (name in cache) return cache[name];
105
- const value = raw[name];
106
- if (value === void 0) return "";
107
- const resolved = value.includes("var(") ? substitute(value, seen) : value;
108
- cache[name] = resolved;
109
- return resolved;
110
- };
111
- for (const name of Object.keys(raw)) reference(name, /* @__PURE__ */ new Set());
112
- return cache;
113
- }
114
- //#endregion
115
5
  //#region src/motion/themeTiming.ts
116
6
  /**
117
7
  * The value `@astryx-vue/themes` declares for each timing token, by its
@@ -0,0 +1,167 @@
1
+ //#region src/Theme/motionTokenDefaults.ts
2
+ /**
3
+ * @file motionTokenDefaults.ts
4
+ * @input Nothing: the values `@astryx-vue/themes` declares on `:root`
5
+ * @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
6
+ * unprefixed names, and their name types
7
+ * @position Theme utility with no imports. The neutral theme stylesheet
8
+ * (`packages/themes/neutral/base.css`) declares these values as
9
+ * `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
10
+ * keeps the two equal. Motion tokens a theme generates (`tempo`,
11
+ * `character`) start from these values, and the motion foundation falls
12
+ * back to them where no stylesheet applies. Pure; safe on the server.
13
+ */
14
+ const durationDefaults = {
15
+ "--duration-fast-min": "95ms",
16
+ "--duration-fast": "125ms",
17
+ "--duration-fast-max": "165ms",
18
+ "--duration-medium-min": "225ms",
19
+ "--duration-medium": "300ms",
20
+ "--duration-medium-max": "400ms",
21
+ "--duration-slow-min": "525ms",
22
+ "--duration-slow": "700ms",
23
+ "--duration-slow-max": "935ms",
24
+ /** The standard dismissal duration. */
25
+ "--duration-exit": "var(--duration-fast)"
26
+ };
27
+ const easeDefaults = {
28
+ /** Decelerates: state changes. */
29
+ "--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
30
+ /** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
31
+ "--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
32
+ /** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
33
+ "--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
34
+ /** Accelerates: things leaving. */
35
+ "--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
36
+ };
37
+ //#endregion
38
+ //#region src/Theme/tokenReferences.ts
39
+ /**
40
+ * @file tokenReferences.ts
41
+ * @input A flat map of token names to raw CSS values
42
+ * @output `resolveTokenReferences`, which follows `var(--name[, fallback])`
43
+ * references through the map
44
+ * @position Theme utility with no imports: themeMotion.ts resolves motion
45
+ * tokens written as references on it, and the motion foundation resolves
46
+ * the declared timing defaults on it. Pure; safe on the server.
47
+ */
48
+ /**
49
+ * Call `visit` for each top-level character of a CSS value. A top-level
50
+ * character is outside parentheses and outside quoted strings. In a quoted
51
+ * string, a backslash escapes the next character. The scan stops when `visit`
52
+ * returns true.
53
+ */
54
+ function scanTopLevel(input, visit) {
55
+ let depth = 0;
56
+ let quote = null;
57
+ let isEscaped = false;
58
+ for (let i = 0; i < input.length; i++) {
59
+ const char = input[i];
60
+ if (quote !== null) {
61
+ if (isEscaped) isEscaped = false;
62
+ else if (char === "\\") isEscaped = true;
63
+ else if (char === quote) quote = null;
64
+ continue;
65
+ }
66
+ if (char === "\"" || char === "'") {
67
+ quote = char;
68
+ continue;
69
+ }
70
+ if (char === "(") {
71
+ depth++;
72
+ continue;
73
+ }
74
+ if (char === ")") {
75
+ depth = Math.max(0, depth - 1);
76
+ continue;
77
+ }
78
+ if (depth === 0 && visit(i)) return;
79
+ }
80
+ }
81
+ /**
82
+ * Split a CSS value on the whitespace between its components. Whitespace
83
+ * inside parentheses or quotes belongs to one component, so
84
+ * `clamp(8px, 2vw, 16px)` and `var(--gap, 1px 2px)` each stay whole. An
85
+ * empty value has no components.
86
+ */
87
+ function splitTopLevelWhitespace(input) {
88
+ const parts = [];
89
+ let start = 0;
90
+ scanTopLevel(input, (i) => {
91
+ if (/\s/.test(input[i] ?? "")) {
92
+ if (i > start) parts.push(input.slice(start, i));
93
+ start = i + 1;
94
+ }
95
+ return false;
96
+ });
97
+ if (input.length > start) parts.push(input.slice(start));
98
+ return parts;
99
+ }
100
+ /**
101
+ * Split the arguments of a CSS function body on the first top-level comma.
102
+ * Handles nested functions such as rgba(), color-mix(), var(), and quoted strings.
103
+ */
104
+ function splitTopLevelComma(input) {
105
+ let split = null;
106
+ scanTopLevel(input, (i) => {
107
+ if (input[i] !== ",") return false;
108
+ split = [input.slice(0, i).trim(), input.slice(i + 1).trim()];
109
+ return true;
110
+ });
111
+ return split;
112
+ }
113
+ /** Index of the `)` matching the `(` at `openIndex`, or -1 when unbalanced. */
114
+ function findMatchingParen(input, openIndex) {
115
+ let depth = 0;
116
+ for (let i = openIndex; i < input.length; i++) {
117
+ const char = input[i];
118
+ if (char === "(") depth++;
119
+ else if (char === ")") {
120
+ depth--;
121
+ if (depth === 0) return i;
122
+ }
123
+ }
124
+ return -1;
125
+ }
126
+ /**
127
+ * Resolves every value in `raw` to a concrete one: each `var(--name[,
128
+ * fallback])` is replaced by `name`'s resolved value, or by its fallback when
129
+ * `raw` has no `name`, and is kept as written when neither exists or the
130
+ * references form a cycle.
131
+ */
132
+ function resolveTokenReferences(raw) {
133
+ const cache = {};
134
+ const substitute = (expr, seen) => {
135
+ const start = expr.indexOf("var(");
136
+ if (start === -1) return expr;
137
+ const openIndex = start + 3;
138
+ const closeIndex = findMatchingParen(expr, openIndex);
139
+ if (closeIndex === -1) return expr;
140
+ const inner = expr.slice(openIndex + 1, closeIndex);
141
+ const commaSplit = splitTopLevelComma(inner);
142
+ const name = (commaSplit ? commaSplit[0] : inner).trim();
143
+ const fallback = commaSplit ? commaSplit[1] : null;
144
+ let replacement;
145
+ if (seen.has(name)) replacement = expr.slice(start, closeIndex + 1);
146
+ else if (name in raw) {
147
+ seen.add(name);
148
+ replacement = reference(name, seen);
149
+ seen.delete(name);
150
+ } else if (fallback !== null) replacement = substitute(fallback.trim(), seen);
151
+ else replacement = expr.slice(start, closeIndex + 1);
152
+ const rest = substitute(expr.slice(closeIndex + 1), seen);
153
+ return expr.slice(0, start) + replacement + rest;
154
+ };
155
+ const reference = (name, seen) => {
156
+ if (name in cache) return cache[name];
157
+ const value = raw[name];
158
+ if (value === void 0) return "";
159
+ const resolved = value.includes("var(") ? substitute(value, seen) : value;
160
+ cache[name] = resolved;
161
+ return resolved;
162
+ };
163
+ for (const name of Object.keys(raw)) reference(name, /* @__PURE__ */ new Set());
164
+ return cache;
165
+ }
166
+ //#endregion
167
+ export { easeDefaults as i, splitTopLevelWhitespace as n, durationDefaults as r, resolveTokenReferences as t };
@@ -1,5 +1,5 @@
1
- import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-D3Rh8T5C.js";
2
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-zN2xGd9K.js";
1
+ import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-8jb4An1z.js";
2
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-BRdKWVzo.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-BKtyCwx4.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-fhWaGqY8.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
- import "./adaptationTypes-Cn_pfrsw.js";
2
+ import "./compactDefinition-CMTR5KqU.js";
3
3
  import { ComputedRef, MaybeRefOrGetter } from "vue";
4
4
  //#region src/composables/internal/presentation.d.ts
5
5
  type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.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-D3Rh8T5C.js";
3
+ import { n as useLayerDepth, o as pushLayer } from "./layerDepth-8jb4An1z.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-D3Rh8T5C.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.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,4 +1,4 @@
1
- import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-7IkbR4d8.js";
1
+ import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-B4tK68sd.js";
2
2
  import { computed, toValue, watch } from "vue";
3
3
  //#region src/layer/useHeldPresentation.ts
4
4
  function useHeldPresentation(presentation, isOpen) {
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-Bstp5Lvd.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DLqZykVm.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { m as msSinceInput } from "./pressFeedback-9dqGYjxv.js";
2
2
  import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
3
- import { c as currentGesture } from "./layerDepth-D3Rh8T5C.js";
3
+ import { c as currentGesture } from "./layerDepth-8jb4An1z.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";
@@ -342,6 +342,9 @@ function preventTouchScroll(doc) {
342
342
  * - `open`:菜单在按住的指针下面打开了(鼠标按下,或手指按满长按时间),指针还没进菜单。
343
343
  * - `tracking`:指针按着,高亮跟着它。
344
344
  *
345
+ * 手指或笔打开菜单后,走过 `MENU_PRESS_HANDOFF_PX` 才开始挑行,没走够就松开什么都不执行
346
+ * (事件带了位置才这样)。
347
+ *
345
348
  * 落定规则:打开菜单的那次按压,只有指针进过菜单、或者按满 `MENU_PRESS_SETTLE_MS`,
346
349
  * 松开时才执行;否则什么都不执行,菜单保持打开。没有这条,一个在指针下面弹出的菜单
347
350
  * 会替用户挑一行谁都没选的。
@@ -351,6 +354,11 @@ function preventTouchScroll(doc) {
351
354
  */
352
355
  /** 打开菜单的那次按压至少要按多久,松开时才能执行。 */
353
356
  const MENU_PRESS_SETTLE_MS = 300;
357
+ /**
358
+ * 手指打开菜单后要从菜单看到的第一个位置再走多远才开始挑行(UIMenu 的交接距离,pt)。
359
+ * 只有带位置的事件才用它:调用方不给位置,就仍按上面的落定规则。
360
+ */
361
+ const MENU_PRESS_HANDOFF_PX = 10;
354
362
  const IDLE_MENU_PRESS = { phase: "idle" };
355
363
  const NONE = { type: "none" };
356
364
  function idle(effect) {
@@ -385,6 +393,16 @@ function release(pointerType, event) {
385
393
  dismiss: pointerType === "mouse"
386
394
  });
387
395
  }
396
+ /** 手指或笔:UIKit 的触屏规则。 */
397
+ function isFinger(pointerType) {
398
+ return pointerType !== "mouse";
399
+ }
400
+ function hasPosition(event) {
401
+ return event.x != null && event.y != null;
402
+ }
403
+ function hasPassedHandoff(from, to) {
404
+ return Math.hypot(to.x - from.x, to.y - from.y) >= 10;
405
+ }
388
406
  function stepIdle(gesture, event) {
389
407
  if (event.type !== "down") return {
390
408
  gesture,
@@ -445,6 +463,32 @@ function stepTriggerPress(gesture, event) {
445
463
  function stepOpen(gesture, event) {
446
464
  switch (event.type) {
447
465
  case "move":
466
+ if (isFinger(gesture.pointerType) && hasPosition(event)) {
467
+ const from = gesture.handoffFrom;
468
+ if (from == null) return {
469
+ gesture: {
470
+ ...gesture,
471
+ handoffFrom: {
472
+ x: event.x,
473
+ y: event.y
474
+ }
475
+ },
476
+ effect: NONE
477
+ };
478
+ if (!hasPassedHandoff(from, event)) return {
479
+ gesture,
480
+ effect: NONE
481
+ };
482
+ return {
483
+ gesture: {
484
+ phase: "tracking",
485
+ pointerType: gesture.pointerType,
486
+ origin: "trigger",
487
+ row: event.row
488
+ },
489
+ effect: highlightEffect(event.row)
490
+ };
491
+ }
448
492
  if (!event.isInMenu) return {
449
493
  gesture,
450
494
  effect: NONE
@@ -459,6 +503,11 @@ function stepOpen(gesture, event) {
459
503
  effect: highlightEffect(event.row)
460
504
  };
461
505
  case "up":
506
+ if (isFinger(gesture.pointerType) && hasPosition(event)) return idle({
507
+ type: "settle",
508
+ stray: true,
509
+ dismiss: false
510
+ });
462
511
  if (event.time - gesture.openedAt < 300) return idle({
463
512
  type: "settle",
464
513
  stray: true,
@@ -513,6 +562,8 @@ function menuPressStep(gesture, event) {
513
562
  }
514
563
  //#endregion
515
564
  //#region src/composables/useMenuPress.ts
565
+ /** 手指或笔按住时点亮的那一行带这个标记,行按「按下」的颜色画。鼠标保持悬停的颜色。 */
566
+ const MENU_PRESS_LIT_ATTRIBUTE = "data-astryx-menu-press-lit";
516
567
  /** 手指在触发器上按多久菜单才打开。 */
517
568
  const MENU_PRESS_LONG_PRESS_MS = 500;
518
569
  /**
@@ -533,9 +584,15 @@ function useMenuPress(options) {
533
584
  let stopTouchPrevent = null;
534
585
  let lastPointerEvent = null;
535
586
  let triggerGesture = null;
587
+ let litRow = null;
536
588
  /** 结束了上一次手势的那根「第二根手指」不能开始下一次。 */
537
589
  let ignoredPointerId = null;
538
590
  const isEnabled = () => toValue(options.isEnabled) ?? true;
591
+ /** 手指交接要看位置;只有 `touchModel: 'uikit'` 才把位置交给状态机。 */
592
+ const handoffPosition = (event) => options.touchModel === "uikit" ? {
593
+ x: event.clientX,
594
+ y: event.clientY
595
+ } : {};
539
596
  const getDocument = () => options.menuRef.value?.ownerDocument ?? options.triggerRef?.value?.ownerDocument ?? document;
540
597
  function pointAt(event) {
541
598
  return resolvePoint(event, getDocument(), {
@@ -562,7 +619,14 @@ function useMenuPress(options) {
562
619
  touchIdentifier: touchIdentifier ?? void 0
563
620
  });
564
621
  }
622
+ function setLit(row) {
623
+ if (litRow === row) return;
624
+ litRow?.removeAttribute(MENU_PRESS_LIT_ATTRIBUTE);
625
+ litRow = row;
626
+ litRow?.setAttribute(MENU_PRESS_LIT_ATTRIBUTE, "");
627
+ }
565
628
  function endGesture() {
629
+ setLit(null);
566
630
  touchTracker?.stop();
567
631
  touchTracker = null;
568
632
  longPress.cancel();
@@ -576,6 +640,7 @@ function useMenuPress(options) {
576
640
  gesture = IDLE_MENU_PRESS;
577
641
  }
578
642
  function highlight(row) {
643
+ setLit(gesture.phase !== "idle" && gesture.pointerType !== "mouse" ? row : null);
579
644
  if (options.onHighlight != null) options.onHighlight(row);
580
645
  else focusHighlight(row, options.menuRef.value, getDocument());
581
646
  }
@@ -625,7 +690,8 @@ function useMenuPress(options) {
625
690
  type: "move",
626
691
  row: point.row,
627
692
  isInMenu: point.isInMenu,
628
- time: Date.now()
693
+ time: Date.now(),
694
+ ...handoffPosition(event)
629
695
  }, event);
630
696
  }
631
697
  function onDocumentMove(event) {
@@ -650,7 +716,8 @@ function useMenuPress(options) {
650
716
  row: point.row,
651
717
  isInMenu: point.isInMenu,
652
718
  isOnTrigger: point.isOnTrigger,
653
- time: Date.now()
719
+ time: Date.now(),
720
+ ...handoffPosition(event)
654
721
  }, event);
655
722
  }
656
723
  function onDocumentCancel(event) {
@@ -771,4 +838,4 @@ function useMenuPress(options) {
771
838
  };
772
839
  }
773
840
  //#endregion
774
- export { isMenuPressActivation as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, resetMenuPress as o, menuPressStep as r, useLongPress as s, useMenuPress as t };
841
+ export { menuPressStep as a, resetMenuPress as c, MENU_PRESS_SETTLE_MS as i, useLongPress as l, useMenuPress as n, MENU_PRESS_MARKER as o, MENU_PRESS_HANDOFF_PX as r, isMenuPressActivation as s, MENU_PRESS_LIT_ATTRIBUTE as t };
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
2
2
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
3
3
  import { r as registerResizableChannel } from "./resizableChannel-LElsNkSY.js";
4
4
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
@@ -1,11 +1,11 @@
1
1
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
3
- import { n as useLayer } from "./tooltipTriggerRules-zN2xGd9K.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-LCQLyxBT.js";
3
+ import { n as useLayer } from "./tooltipTriggerRules-BRdKWVzo.js";
4
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-DmRI6Bg0.js";
5
5
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bl602PtA.js";
8
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-CpUOvFEU.js";
7
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-DzsFiDjb.js";
8
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-BfnTnTpn.js";
9
9
  import { t as renderedText } from "./renderedText-BwJdmps3.js";
10
10
  import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
11
11
  import "../styles/tooltip.css";
@@ -1,5 +1,5 @@
1
1
  import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
2
- import { c as currentGesture } from "./layerDepth-D3Rh8T5C.js";
2
+ import { c as currentGesture } from "./layerDepth-8jb4An1z.js";
3
3
  import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/tapRecognizer.ts
@@ -1,7 +1,7 @@
1
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-zN2xGd9K.js";
1
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-BRdKWVzo.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { n as tooltipPresentInterestKey } from "./useTooltip-DvBKna-w.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-CxzlUVN0.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-llyJd1q6.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-CEyd_iFa.js";
5
5
  import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
@@ -1,4 +1,4 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
1
+ import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
2
2
  import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
3
3
  import { onScopeDispose, ref } from "vue";
4
4
  //#region src/composables/useTypeahead.ts