@astryx-vue/core 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-igjA8kZr.js → AlertDialog-CsdgJDLK.js} +6 -6
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-DUHcLJWD.js → AppShell-CE5Up5SI.js} +1 -1
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-KmdgVaAb.js → Avatar-D5CFSkAG.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-KBzD0jeF.js → AvatarGroup-CKHxYNVh.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-Bf_nMW3-.js → Banner-B4IEG4Fx.js} +1 -1
  13. package/dist/BottomSheet/index.d.ts +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-B57XUJV3.js → BottomSheet-D67lQ3Lo.js} +12 -6
  16. package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-UctSPL-g.js} +3 -3
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-By21sIml.js} +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-sUkQ0Ufo.js → Button-CfbR2oPc.js} +6 -6
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-CWra-KDj.js → ButtonGroup-BFl-0uOp.js} +2 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Carousel/index.d.ts +1 -1
  26. package/dist/Carousel/index.js +1 -1
  27. package/dist/{Carousel-DmXceU9h.js → Carousel-mL_KdBMw.js} +1 -1
  28. package/dist/Center/index.d.ts +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-CeibAkxn.js → Chat-C10BQlIl.js} +40 -7
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-BGqRMoEA.js} +2 -2
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DbMhC06M.js} +5 -5
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/ClickableCard/index.js +1 -1
  40. package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
  41. package/dist/Code/index.js +1 -1
  42. package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-DAlWY51H.js} +1 -1
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DYk_FyFB.js} +3 -3
  47. package/dist/ComplexSelector/index.js +1 -1
  48. package/dist/{ComplexSelector-Dmbep7M7.js → ComplexSelector-NDpRucQB.js} +2 -2
  49. package/dist/ContextMenu/index.d.ts +1 -1
  50. package/dist/ContextMenu/index.js +2 -2
  51. package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-JDU4HDKm.js} +6 -6
  52. package/dist/DateInput/index.d.ts +1 -1
  53. package/dist/DateInput/index.js +1 -1
  54. package/dist/{DateInput-DgPIsWPu.js → DateInput-DVEb1-fM.js} +4 -4
  55. package/dist/DateRangeInput/index.d.ts +1 -1
  56. package/dist/DateRangeInput/index.js +1 -1
  57. package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-OuAz80nR.js} +3 -3
  58. package/dist/DateTimeInput/index.d.ts +1 -1
  59. package/dist/DateTimeInput/index.js +1 -1
  60. package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-J5CFTSSa.js} +5 -5
  61. package/dist/Dialog/index.d.ts +1 -1
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-Dkwt3mVt.js → Dialog-C0WuGDqP.js} +48 -22
  64. package/dist/{Dialog-qIL4DUot.js → Dialog-Cm8CXGpI.js} +1 -1
  65. package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-BD2Ezw4F.js} +2 -2
  66. package/dist/Divider/index.d.ts +1 -1
  67. package/dist/Drawer/index.d.ts +1 -1
  68. package/dist/Drawer/index.js +1 -1
  69. package/dist/{Drawer-DBHSNUAa.js → Drawer-CFpcRHt7.js} +2 -2
  70. package/dist/DropdownMenu/index.js +3 -3
  71. package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-2QRvY0aP.js} +10 -10
  72. package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-5Mn01A-5.js} +5 -5
  73. package/dist/EmptyState/index.js +1 -1
  74. package/dist/{EmptyState-uWyPaIR1.js → EmptyState-CqUTEnGg.js} +2 -2
  75. package/dist/Field/index.js +3 -3
  76. package/dist/{Field-CqDOsI3P.js → Field-Cw8J8ld7.js} +1 -1
  77. package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-D7UNDNje.js} +1 -1
  78. package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-CJbiefUx.js} +1 -1
  79. package/dist/FileInput/index.d.ts +1 -1
  80. package/dist/FileInput/index.js +1 -1
  81. package/dist/{FileInput-C6dK2pvX.js → FileInput-CgfiwVfs.js} +2 -2
  82. package/dist/Heading/index.js +1 -1
  83. package/dist/{Heading-C0axugQa.js → Heading-BO9n2vLl.js} +1 -1
  84. package/dist/HoverCard/index.d.ts +1 -1
  85. package/dist/HoverCard/index.js +1 -1
  86. package/dist/{HoverCard-C6Gxekg0.js → HoverCard-47J_i9AH.js} +28 -64
  87. package/dist/IconButton/index.js +1 -1
  88. package/dist/{IconButton-Bv2eIsJy.js → IconButton-DiDHiGbo.js} +1 -1
  89. package/dist/InfoTip/index.d.ts +1 -1
  90. package/dist/InfoTip/index.js +1 -1
  91. package/dist/{InfoTip-BKsbmGA6.js → InfoTip-ClRC1Hh9.js} +2 -2
  92. package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DL4RM5z1.js} +1 -1
  93. package/dist/InputGroup/index.js +1 -1
  94. package/dist/{InputGroup-DTGh1ylC.js → InputGroup-JMOrdsmu.js} +1 -1
  95. package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
  96. package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-CeebKoPB.js} +1 -1
  97. package/dist/Lightbox/index.js +1 -1
  98. package/dist/{Lightbox-BZ-zBvly.js → Lightbox-kKjxYZ05.js} +3 -3
  99. package/dist/Link/index.d.ts +1 -1
  100. package/dist/Link/index.js +1 -1
  101. package/dist/{Link-Ddu0KjPZ.js → Link-CkbAlJ3-.js} +2 -2
  102. package/dist/List/index.d.ts +1 -1
  103. package/dist/List/index.js +2 -2
  104. package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
  105. package/dist/Markdown/index.js +1 -1
  106. package/dist/{Markdown-D7bQGV9u.js → Markdown-DXRFVNJd.js} +3 -3
  107. package/dist/MetadataList/index.d.ts +1 -1
  108. package/dist/MobileNav/index.js +1 -1
  109. package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-DUtvvHc7.js} +3 -3
  110. package/dist/MoreMenu/index.d.ts +1 -1
  111. package/dist/MoreMenu/index.js +1 -1
  112. package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-CEJ9E2eD.js} +6 -6
  113. package/dist/MultiSelector/index.d.ts +1 -1
  114. package/dist/MultiSelector/index.js +1 -1
  115. package/dist/{MultiSelector-BXIpOmSU.js → MultiSelector-DgWCWpnM.js} +9 -9
  116. package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-Bf5OFtwv.js} +1 -1
  117. package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-D5MpO-gO.js} +1 -1
  118. package/dist/NavItem/index.d.ts +1 -1
  119. package/dist/NavItem/index.js +1 -1
  120. package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
  121. package/dist/NavMenu/index.js +3 -3
  122. package/dist/{NavMenu-dyGZS1yM.js → NavMenu-BcmUfk7z.js} +2 -2
  123. package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-C9xk9KZk.js} +2 -2
  124. package/dist/NumberInput/index.d.ts +1 -1
  125. package/dist/NumberInput/index.js +1 -1
  126. package/dist/{NumberInput-0KbcEF3_.js → NumberInput-DNcE_HLD.js} +3 -3
  127. package/dist/Outline/index.js +1 -1
  128. package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
  129. package/dist/OverflowList/index.d.ts +1 -1
  130. package/dist/OverflowList/index.js +1 -1
  131. package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CeQT7MBd.js} +2 -2
  132. package/dist/Overlay/index.d.ts +1 -1
  133. package/dist/Pagination/index.d.ts +1 -1
  134. package/dist/Pagination/index.js +1 -1
  135. package/dist/{Pagination-eeM9SNsG.js → Pagination-DJGQe6wH.js} +1 -1
  136. package/dist/Popover/index.d.ts +1 -1
  137. package/dist/Popover/index.js +1 -1
  138. package/dist/{Popover-BOQo9UPf.js → Popover-C68nCirC.js} +8 -7
  139. package/dist/PowerSearch/index.d.ts +1 -1
  140. package/dist/PowerSearch/index.js +1 -1
  141. package/dist/{PowerSearch-CaqFxaFb.js → PowerSearch-C6lkutch.js} +17 -17
  142. package/dist/ProgressBar/index.js +1 -1
  143. package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-MaDhabCm.js} +1 -1
  144. package/dist/Radio/index.d.ts +1 -1
  145. package/dist/Radio/index.js +1 -1
  146. package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-CLQLK_V7.js} +3 -3
  147. package/dist/RadioList/index.d.ts +1 -1
  148. package/dist/RadioList/index.js +1 -1
  149. package/dist/{RadioList-DtKm9spP.js → RadioList-DfHTyqIQ.js} +1 -1
  150. package/dist/Resizable/index.d.ts +1 -1
  151. package/dist/ScrollableArea/index.d.ts +1 -1
  152. package/dist/ScrollableArea/index.js +1 -1
  153. package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
  154. package/dist/SegmentedControl/index.js +1 -1
  155. package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
  156. package/dist/SelectableCard/index.d.ts +1 -1
  157. package/dist/SelectableCard/index.js +1 -1
  158. package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
  159. package/dist/Selector/index.d.ts +1 -1
  160. package/dist/Selector/index.js +1 -1
  161. package/dist/{Selector-DP012yul.js → Selector-CPCoJ7Sb.js} +6 -5
  162. package/dist/SideNav/index.d.ts +1 -1
  163. package/dist/SideNav/index.js +1 -1
  164. package/dist/{SideNav-L6CWk5fV.js → SideNav-CV8MKVL-.js} +6 -6
  165. package/dist/Slider/index.js +1 -1
  166. package/dist/{Slider-DZS8mGZA.js → Slider-CHJ1CESd.js} +3 -3
  167. package/dist/Stack/index.d.ts +1 -1
  168. package/dist/StatusDot/index.js +1 -1
  169. package/dist/{StatusDot-DaQGq8YN.js → StatusDot-CGaRrl39.js} +1 -1
  170. package/dist/Stepper/index.d.ts +1 -1
  171. package/dist/Stepper/index.js +1 -1
  172. package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
  173. package/dist/Switch/index.d.ts +1 -1
  174. package/dist/Switch/index.js +1 -1
  175. package/dist/{Switch-BN_NnBuc.js → Switch-Bx9ezhrN.js} +2 -2
  176. package/dist/TabList/index.d.ts +1 -1
  177. package/dist/TabList/index.js +1 -1
  178. package/dist/{TabList-Bmj4tGT-.js → TabList-o4t9vWvl.js} +2 -2
  179. package/dist/Table/index.d.ts +1 -1
  180. package/dist/Table/index.js +1 -1
  181. package/dist/{Table-YDS_Hj1L.js → Table-CO2cYE8r.js} +11 -11
  182. package/dist/Text/index.js +1 -1
  183. package/dist/{Text-IijvZmW-.js → Text-C6SB2hHJ.js} +1 -1
  184. package/dist/TextArea/index.d.ts +1 -1
  185. package/dist/TextArea/index.js +1 -1
  186. package/dist/{TextArea-BDR179q1.js → TextArea-DVaDS_1K.js} +5 -5
  187. package/dist/TextInput/index.d.ts +1 -1
  188. package/dist/TextInput/index.js +1 -1
  189. package/dist/{TextInput-kUzxl99M.js → TextInput-Dylfzj33.js} +5 -5
  190. package/dist/Thumbnail/index.js +1 -1
  191. package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-BTQAYnWi.js} +3 -3
  192. package/dist/{TimeField-C0la1AtP.js → TimeField-B3JGgLuf.js} +4 -4
  193. package/dist/TimeInput/index.d.ts +1 -1
  194. package/dist/TimeInput/index.js +1 -1
  195. package/dist/{TimeInput-C_jTijHh.js → TimeInput-Dmy6PxaD.js} +2 -2
  196. package/dist/Timer/index.js +1 -1
  197. package/dist/{Timer-DifGERP8.js → Timer-CN5BmaFS.js} +1 -1
  198. package/dist/Timestamp/index.d.ts +1 -1
  199. package/dist/Timestamp/index.js +1 -1
  200. package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B7UcCEo2.js} +3 -3
  201. package/dist/Toast/index.js +1 -1
  202. package/dist/{Toast-DBo0WRAd.js → Toast-DCipbbCW.js} +3 -3
  203. package/dist/ToggleButton/index.d.ts +1 -1
  204. package/dist/ToggleButton/index.js +1 -1
  205. package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-C78lrcdr.js} +3 -3
  206. package/dist/Token/index.d.ts +1 -1
  207. package/dist/Token/index.js +1 -1
  208. package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
  209. package/dist/Tokenizer/index.d.ts +1 -1
  210. package/dist/Tokenizer/index.js +1 -1
  211. package/dist/{Tokenizer-CY0ymjYr.js → Tokenizer-D7B1ff3O.js} +7 -7
  212. package/dist/Toolbar/index.d.ts +1 -1
  213. package/dist/Tooltip/index.d.ts +1 -1
  214. package/dist/Tooltip/index.js +2 -2
  215. package/dist/{Tooltip-4APVAlN9.js → Tooltip-kQPfj3SE.js} +1 -1
  216. package/dist/TopNav/index.d.ts +1 -1
  217. package/dist/TopNav/index.js +1 -1
  218. package/dist/{TopNav-XSZWAR-7.js → TopNav-AGY785QI.js} +5 -5
  219. package/dist/TreeList/index.d.ts +1 -1
  220. package/dist/TreeList/index.js +1 -1
  221. package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
  222. package/dist/Typeahead/index.d.ts +1 -1
  223. package/dist/Typeahead/index.js +2 -2
  224. package/dist/{Typeahead-ByeXwX8E.js → Typeahead-QWYeVsel.js} +6 -6
  225. package/dist/composables/index.d.ts +1 -1
  226. package/dist/composables/index.js +14 -14
  227. package/dist/{composables-WUkSRUCj.js → composables-CyKB3F8u.js} +53 -5
  228. package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
  229. package/dist/{index-BcJzA5j_.d.ts → index-9YGUb_Ht.d.ts} +4 -4
  230. package/dist/{index-DPklTi3o.d.ts → index-B-3EGjfQ.d.ts} +2 -2
  231. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  232. package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
  233. package/dist/{index-Buxb8Onp.d.ts → index-BWaO4-T-.d.ts} +30 -30
  234. package/dist/{index-wTwhcFQx.d.ts → index-Bl_K_cRv.d.ts} +1 -1
  235. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  236. package/dist/{index-D1J81rYJ.d.ts → index-BzViSe8D.d.ts} +4 -4
  237. package/dist/{index-KcCNhdAw.d.ts → index-CL8JvxHW.d.ts} +1 -1
  238. package/dist/{index-D1RIIzDd.d.ts → index-CREW8ZiL.d.ts} +5 -5
  239. package/dist/{index-DKuoSloc.d.ts → index-CVs4A2QU.d.ts} +46 -15
  240. package/dist/{index-x0rjeitC.d.ts → index-CfoExOY_.d.ts} +2 -2
  241. package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
  242. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  243. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  244. package/dist/{index-PffxihMx.d.ts → index-DS9SzqqJ.d.ts} +2 -2
  245. package/dist/{index-YfMHAQ_D.d.ts → index-Dc9_kBrU.d.ts} +2 -2
  246. package/dist/{index-CfHBwR3F.d.ts → index-Dep8pgnU.d.ts} +6 -6
  247. package/dist/{index-C5e2rZML.d.ts → index-Dlq0cFK-.d.ts} +1 -1
  248. package/dist/{index-DDrL_-hJ.d.ts → index-FeZXsFO-.d.ts} +1 -1
  249. package/dist/{index-DneQgJfI.d.ts → index-O9y23OPJ.d.ts} +1 -1
  250. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  251. package/dist/{index-DMcf0QeR.d.ts → index-bgjrSSaT.d.ts} +2 -2
  252. package/dist/{index-DPH5yoAr.d.ts → index-s0Ezq3U-.d.ts} +2 -2
  253. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  254. package/dist/index.d.ts +26 -26
  255. package/dist/index.js +103 -103
  256. package/dist/interactionModality-BPvyShJT.js +125 -0
  257. package/dist/layerDepth-BU_55vPr.js +294 -0
  258. package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-DWGkSHXj.js} +2 -2
  259. package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
  260. package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
  261. package/dist/pressGesture-B3z3W3Za.js +78 -0
  262. package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
  263. package/dist/{selectorEscape-BppRdqpc.js → selectorEscape-LkWoVYQN.js} +2 -2
  264. package/dist/{stillPointerGate-Bh02Mfnw.js → stillPointerGate-BZ7KMJOB.js} +1 -1
  265. package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
  266. package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
  267. package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
  268. package/dist/{useDismiss-BWd-sQ18.js → useDismiss-74dLMi5S.js} +58 -5
  269. package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-CyooA0OC.js} +32 -17
  270. package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-B1W5qIBx.js} +1 -1
  271. package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
  272. package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-ZqCxDNTj.js} +1 -1
  273. package/dist/{useLayer-BGv_wRSG.js → useLayer-BnjrJ85F.js} +13 -5
  274. package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
  275. package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-BWq7kwWm.js} +1 -29
  276. package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
  277. package/dist/{useResizable-DTDhsLip.js → useResizable-De4Xp3TD.js} +1 -1
  278. package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-CSrI8x7v.js} +2 -2
  279. package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
  280. package/dist/{useTooltip-md1tr6ef.js → useTooltip-uc-VLZ8I.js} +25 -27
  281. package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
  282. package/dist/useTouchTriggerInternal-b-txblws.js +257 -0
  283. package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-BVMCoNno.js} +4 -4
  284. package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-BWj3xhbR.js} +1 -1
  285. package/dist/{useTypeaheadAnnouncement-MbuZumTd.js → useTypeaheadAnnouncement-DVkdWTWy.js} +1 -1
  286. package/package.json +1 -1
  287. package/dist/interactionModality-ACpTMhak.js +0 -44
  288. package/dist/layerDepth-BF74Cctw.js +0 -205
  289. package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
  290. package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
  291. package/dist/useTouchTrigger-GGd85Obb.js +0 -146
  292. package/dist/{index-BqhgeAT4.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -0,0 +1,141 @@
1
+ //#region src/layer/layerSurfacePress.ts
2
+ /**
3
+ * 打开着的 Tooltip、HoverCard 气泡登记在这里。
4
+ *
5
+ * 气泡挂载时会尽量靠近触发元素(见 `layer/mount.ts`),可能落在一个可点容器
6
+ * (可点卡片、列表行、文件选择区)的 DOM 里面,于是在气泡里点一下会冒泡到容器,
7
+ * 把容器的动作也触发了。容器判断「这一下是不是点在别的东西上」时,把登记过的气泡
8
+ * 当作别的东西,就不再响应。事件本身照常冒泡,页面级的监听仍然收得到。不从包里导出。
9
+ */
10
+ const surfaces = /* @__PURE__ */ new WeakSet();
11
+ /** 给气泡内容元素用的 ref 回调。 */
12
+ function registerLayerSurface(element) {
13
+ if (element != null) surfaces.add(element);
14
+ }
15
+ /** 这个元素是不是登记过的气泡。 */
16
+ function isLayerSurface(element) {
17
+ return surfaces.has(element);
18
+ }
19
+ /** 从 `target` 往上走到 `root`(不含)之间,有没有登记过的气泡。 */
20
+ function isInLayerSurface(target, root) {
21
+ let current = target;
22
+ while (current != null && current !== root) {
23
+ if (surfaces.has(current)) return true;
24
+ current = current.parentElement;
25
+ }
26
+ return false;
27
+ }
28
+ //#endregion
29
+ //#region src/composables/useClickableContainer.ts
30
+ /**
31
+ * 对应原版 Astryx 的 `hooks/useClickableContainer`。
32
+ *
33
+ * 让整块容器可点,同时把点在嵌套按钮、链接、输入框上的点击留给那些控件自己。
34
+ * ClickableCard 和 SelectableCard 都走这里,避免两套“点到谁算谁”的判断。
35
+ */
36
+ const INTERACTIVE_SELECTORS = [
37
+ "button",
38
+ "a",
39
+ "input",
40
+ "select",
41
+ "textarea",
42
+ "[role=\"button\"]",
43
+ "[role=\"link\"]",
44
+ "[role=\"checkbox\"]",
45
+ "[role=\"radio\"]",
46
+ "[role=\"switch\"]",
47
+ "[role=\"tab\"]",
48
+ "[role=\"menuitem\"]",
49
+ "[role=\"option\"]",
50
+ "[role=\"combobox\"]",
51
+ "[role=\"listbox\"]",
52
+ "[role=\"slider\"]",
53
+ "[role=\"spinbutton\"]",
54
+ "[data-pressable-container]"
55
+ ].join(",");
56
+ const NON_INTERACTIVE_SELECTORS = "[aria-readonly=\"true\"]";
57
+ function hasInteractiveAncestor(element, root) {
58
+ let current = element;
59
+ while (current != null && current !== root && current !== document.body) {
60
+ if (current.matches(INTERACTIVE_SELECTORS) && !current.matches(NON_INTERACTIVE_SELECTORS)) return true;
61
+ if (isLayerSurface(current)) return true;
62
+ current = current.parentElement;
63
+ }
64
+ return false;
65
+ }
66
+ function hasTextSelection(node) {
67
+ if (typeof document === "undefined" || document.getSelection == null) return false;
68
+ const selection = document.getSelection();
69
+ if (selection == null || selection.isCollapsed) return false;
70
+ return node.contains(selection.anchorNode);
71
+ }
72
+ function openInNewTab(href) {
73
+ window.open(href, "_blank", "noopener");
74
+ }
75
+ /**
76
+ * 把容器的 click / mouseup 交给调用方绑到根元素上。
77
+ * 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
78
+ */
79
+ function useClickableContainer(options) {
80
+ function markContainer() {
81
+ const container = options.containerRef.value;
82
+ if (container != null) container.dataset.pressableContainer = "true";
83
+ }
84
+ function onClick(event) {
85
+ markContainer();
86
+ if (options.disabled) return;
87
+ const container = options.containerRef.value;
88
+ if (container == null) return;
89
+ if (hasTextSelection(container)) return;
90
+ const target = event.target;
91
+ if (!(target instanceof Element)) return;
92
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
93
+ options.onClick?.(event);
94
+ if (event.defaultPrevented) return;
95
+ const href = options.href;
96
+ if (href != null && href !== "") {
97
+ if (options.target === "_blank" || event.metaKey || event.ctrlKey) {
98
+ openInNewTab(href);
99
+ return;
100
+ }
101
+ const interactive = options.interactiveRef?.value;
102
+ if (interactive != null) {
103
+ interactive.click();
104
+ return;
105
+ }
106
+ window.location.assign(href);
107
+ return;
108
+ }
109
+ if (options.onClick == null) {
110
+ const interactive = options.interactiveRef?.value;
111
+ if (interactive != null) {
112
+ interactive.dispatchEvent(new MouseEvent("click", {
113
+ bubbles: true,
114
+ cancelable: true,
115
+ button: event.button,
116
+ ctrlKey: event.ctrlKey,
117
+ metaKey: event.metaKey,
118
+ shiftKey: event.shiftKey,
119
+ altKey: event.altKey
120
+ }));
121
+ event.stopPropagation();
122
+ }
123
+ }
124
+ }
125
+ function onMouseUp(event) {
126
+ if (options.disabled) return;
127
+ const href = options.href;
128
+ if (href == null || href === "" || event.button !== 1) return;
129
+ const container = options.containerRef.value;
130
+ const target = event.target;
131
+ if (container == null || !(target instanceof Element)) return;
132
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
133
+ openInNewTab(href);
134
+ }
135
+ return {
136
+ onClick,
137
+ onMouseUp
138
+ };
139
+ }
140
+ //#endregion
141
+ export { isInLayerSurface as a, useClickableContainer as i, hasInteractiveAncestor as n, isLayerSurface as o, hasTextSelection as r, registerLayerSurface as s, INTERACTIVE_SELECTORS as t };
@@ -1,7 +1,54 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { i as pushLayer, n as useLayerDepth } from "./layerDepth-BF74Cctw.js";
3
+ import { a as pushLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
+ //#region src/layer/anchorClear.ts
6
+ function overlapsAnchor(anchor, top, left, layer) {
7
+ return left < anchor.right && left + layer.width > anchor.left && top < anchor.bottom && top + layer.height > anchor.top;
8
+ }
9
+ function clamp$1(value, min, max) {
10
+ return Math.max(min, Math.min(value, max));
11
+ }
12
+ /**
13
+ * 浮层比触发器四周的空地都高时,普通落点会被夹进视口,盖在触发器上。
14
+ * 要「不盖住触发器」的浮层(Tooltip)改按这个顺序找落点:
15
+ * 1. 触发器的右侧、再是左侧,宽度不变,纵向夹进视口;
16
+ * 2. 触发器上下两侧里空地更大的一侧,高度限制在那块空地里,超出的内容在浮层里滚动。
17
+ *
18
+ * `placed` 没盖住触发器时原样返回,装得下的浮层不受影响。
19
+ */
20
+ function keepClearOfAnchor(placed, anchor, layer, viewport, gap, gutter) {
21
+ if (!overlapsAnchor(anchor, placed.top, placed.left, layer)) return placed;
22
+ const minTop = gutter.blockStart;
23
+ const maxTop = Math.max(minTop, viewport.height - layer.height - gutter.blockEnd);
24
+ const sideTop = clamp$1(anchor.top + (anchor.height - layer.height) / 2, minTop, maxTop);
25
+ const rightLeft = anchor.right + gap;
26
+ const leftLeft = anchor.left - gap - layer.width;
27
+ const canBeSide = layer.height <= viewport.height - gutter.blockStart - gutter.blockEnd;
28
+ if (canBeSide && rightLeft + layer.width <= viewport.width - gutter.inlineEnd) return {
29
+ top: sideTop,
30
+ left: rightLeft,
31
+ placement: "end"
32
+ };
33
+ if (canBeSide && leftLeft >= gutter.inlineStart) return {
34
+ top: sideTop,
35
+ left: leftLeft,
36
+ placement: "start"
37
+ };
38
+ const roomAbove = anchor.top - gap - gutter.blockStart;
39
+ const roomBelow = viewport.height - anchor.bottom - gap - gutter.blockEnd;
40
+ const above = roomAbove >= roomBelow;
41
+ const room = Math.max(0, above ? roomAbove : roomBelow);
42
+ const height = Math.min(layer.height, room);
43
+ const left = clamp$1(placed.left, gutter.inlineStart, Math.max(gutter.inlineStart, viewport.width - layer.width - gutter.inlineEnd));
44
+ return {
45
+ top: above ? anchor.top - gap - height : anchor.bottom + gap,
46
+ left,
47
+ placement: above ? "above" : "below",
48
+ maxHeight: room < layer.height ? room : void 0
49
+ };
50
+ }
51
+ //#endregion
5
52
  //#region src/layer/position.ts
6
53
  function alignOnAxis(start, size, own, alignment) {
7
54
  if (alignment === "start") return start;
@@ -93,10 +140,14 @@ function usePositionedLayer(options) {
93
140
  const anchorEl = anchor.value;
94
141
  const layerEl = layer.value;
95
142
  if (!anchorEl || !layerEl || !isOpen.value) return;
96
- position.value = computeLayerPosition(anchorEl.getBoundingClientRect(), {
143
+ const anchorRect = anchorEl.getBoundingClientRect();
144
+ const viewport = getLayerViewport();
145
+ const box = {
97
146
  width: layerEl.offsetWidth,
98
- height: layerEl.offsetHeight
99
- }, getLayerViewport(), placement.value, alignment.value, gap, gutter.value);
147
+ height: options.keepAnchorClear === true ? Math.max(layerEl.offsetHeight, layerEl.scrollHeight) : layerEl.offsetHeight
148
+ };
149
+ const placed = computeLayerPosition(anchorRect, box, viewport, placement.value, alignment.value, gap, gutter.value);
150
+ position.value = options.keepAnchorClear === true ? keepClearOfAnchor(placed, anchorRect, box, viewport, gap, gutter.value) : placed;
100
151
  }
101
152
  let pollId;
102
153
  function geometryKey() {
@@ -178,6 +229,7 @@ function useDismiss(options) {
178
229
  getContainer: () => container.value,
179
230
  getTrigger: () => trigger?.value ?? null,
180
231
  dismissOnPointerOutside: toValue(options.dismissOnPointerOutside) ?? true,
232
+ dismissOnOutsidePan: toValue(options.dismissOnOutsidePan) ?? true,
181
233
  dismissOnEscape: escapeMode(),
182
234
  onEscape: options.onEscape,
183
235
  onDismiss
@@ -199,7 +251,8 @@ function useDismiss(options) {
199
251
  watch([
200
252
  isEnabled,
201
253
  () => escapeMode(),
202
- () => toValue(options.dismissOnPointerOutside) ?? true
254
+ () => toValue(options.dismissOnPointerOutside) ?? true,
255
+ () => toValue(options.dismissOnOutsidePan) ?? true
203
256
  ], ([enabled]) => sync(enabled), { immediate: true });
204
257
  onScopeDispose(teardown);
205
258
  }
@@ -1,6 +1,6 @@
1
- import { a as isImeKeyEvent } from "./layerDepth-BF74Cctw.js";
2
- import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
3
- import { r as getFocusables } from "./focus-l8jVTcqd.js";
1
+ import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
2
+ import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
3
+ import { r as getFocusables } from "./focus-x7mxEqjR.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/focusReturn.ts
6
6
  function isTextEntry(element) {
@@ -45,13 +45,22 @@ function useFocusTrap(options = {}) {
45
45
  let previouslyFocused = null;
46
46
  /** 焦点是否进过陷阱。没进过就不还焦点,免得抢走浮层触发器的焦点。 */
47
47
  let hasFocusEntered = false;
48
+ /**
49
+ * 陷阱所在的 document:容器的。经 Teleport 渲染进同源 iframe 或画中画窗口的陷阱,
50
+ * 按键和焦点变化只到那个窗口的 document,全局 `document` 收不到。
51
+ */
52
+ function trapDocument() {
53
+ return containerRef.value?.ownerDocument ?? document;
54
+ }
55
+ /** 正在监听的 document,摘监听时用同一个。 */
56
+ let listeningDoc = null;
48
57
  function isActive() {
49
58
  return toValue(options.isActive) ?? toValue(options.isEnabled) ?? false;
50
59
  }
51
60
  function isFocusInside() {
52
61
  const el = containerRef.value;
53
62
  if (el == null || typeof document === "undefined") return false;
54
- const active = document.activeElement;
63
+ const active = trapDocument().activeElement;
55
64
  return active != null && el.contains(active);
56
65
  }
57
66
  function isTargetInside(event) {
@@ -75,7 +84,7 @@ function useFocusTrap(options = {}) {
75
84
  }
76
85
  const first = focusables[0];
77
86
  const last = focusables[focusables.length - 1];
78
- const active = document.activeElement;
87
+ const active = trapDocument().activeElement;
79
88
  if (active === el) {
80
89
  event.preventDefault();
81
90
  if (event.shiftKey) last.focus();
@@ -109,8 +118,9 @@ function useFocusTrap(options = {}) {
109
118
  function activate() {
110
119
  trackInteractionModality();
111
120
  if (typeof document !== "undefined") {
112
- const active = document.activeElement;
113
- previouslyFocused = active instanceof HTMLElement && active !== document.body ? active : null;
121
+ const doc = trapDocument();
122
+ const active = doc.activeElement;
123
+ previouslyFocused = active != null && active !== doc.body && typeof active.focus === "function" ? active : null;
114
124
  }
115
125
  hasFocusEntered = false;
116
126
  setup();
@@ -125,8 +135,9 @@ function useFocusTrap(options = {}) {
125
135
  previouslyFocused = null;
126
136
  hasFocusEntered = false;
127
137
  if (target == null || !hasEntered || !target.isConnected) return;
128
- const active = typeof document === "undefined" ? null : document.activeElement;
129
- if (active != null && active !== document.body && !isFocusInside()) return;
138
+ const doc = typeof document === "undefined" ? null : trapDocument();
139
+ const active = doc?.activeElement ?? null;
140
+ if (active != null && active !== doc?.body && !isFocusInside()) return;
130
141
  focusForLastInput(target);
131
142
  }
132
143
  function deactivate() {
@@ -134,21 +145,25 @@ function useFocusTrap(options = {}) {
134
145
  restoreFocus();
135
146
  }
136
147
  function setup() {
137
- if (typeof document !== "undefined") {
138
- document.addEventListener("keydown", onKeyDown, true);
139
- document.addEventListener("focusin", onFocusIn, true);
140
- }
148
+ if (typeof document === "undefined") return;
149
+ teardown();
150
+ listeningDoc = trapDocument();
151
+ listeningDoc.addEventListener("keydown", onKeyDown, true);
152
+ listeningDoc.addEventListener("focusin", onFocusIn, true);
141
153
  }
142
154
  function teardown() {
143
- if (typeof document !== "undefined") {
144
- document.removeEventListener("keydown", onKeyDown, true);
145
- document.removeEventListener("focusin", onFocusIn, true);
146
- }
155
+ if (listeningDoc == null) return;
156
+ listeningDoc.removeEventListener("keydown", onKeyDown, true);
157
+ listeningDoc.removeEventListener("focusin", onFocusIn, true);
158
+ listeningDoc = null;
147
159
  }
148
160
  watch(isActive, (enabled) => {
149
161
  if (enabled) activate();
150
162
  else deactivate();
151
163
  }, { immediate: true });
164
+ watch(containerRef, () => {
165
+ if (isActive() && listeningDoc !== trapDocument()) setup();
166
+ });
152
167
  onScopeDispose(deactivate);
153
168
  return {
154
169
  containerRef,
@@ -1,4 +1,4 @@
1
- import { i as pushLayer, n as useLayerDepth, r as isTopLayer } from "./layerDepth-BF74Cctw.js";
1
+ import { a as pushLayer, i as isTopLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
2
2
  import { onScopeDispose } from "vue";
3
3
  //#region src/layer/useHoverLayerDismiss.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { p as useClickableContainer } from "./pressFeedback-Bwwpex9q.js";
1
+ import { i as useClickableContainer } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { toValue } from "vue";
3
3
  //#region src/composables/useInputContainer.ts
4
4
  /** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-CUh2koNc.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-D7UNDNje.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BWd-sQ18.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -35,7 +35,8 @@ function useLayer(options) {
35
35
  isOpen,
36
36
  placement,
37
37
  alignment,
38
- gap: options.gap ?? 4
38
+ gap: options.gap ?? 4,
39
+ keepAnchorClear: options.keepAnchorClear
39
40
  });
40
41
  const resolvedPlacement = computed(() => positioned?.position.value.placement ?? placement.value);
41
42
  const contentStyle = computed(() => {
@@ -44,14 +45,21 @@ function useLayer(options) {
44
45
  top: `${toValue(options.y) ?? 0}px`,
45
46
  left: `${toValue(options.x) ?? 0}px`
46
47
  };
47
- const { top, left } = positioned?.position.value ?? {
48
+ const { top, left, maxHeight } = positioned?.position.value ?? {
48
49
  top: 0,
49
- left: 0
50
+ left: 0,
51
+ maxHeight: void 0
50
52
  };
51
- return {
53
+ const style = {
52
54
  top: `${top}px`,
53
55
  left: `${left}px`
54
56
  };
57
+ if (maxHeight != null) {
58
+ style.maxHeight = `${maxHeight}px`;
59
+ style.overflowY = "auto";
60
+ style.overscrollBehavior = "contain";
61
+ }
62
+ return style;
55
63
  });
56
64
  const isMounted = computed(() => !toValue(options.lazyMount) || hasOpened.value);
57
65
  let isHiding = false;
@@ -1,7 +1,7 @@
1
1
  import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
2
  import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
- import { t as _sfc_main$5 } from "./Item-Cfv4ALls.js";
4
+ import { t as _sfc_main$5 } from "./Item-CoNXshDg.js";
5
5
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
6
6
  import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
@@ -1,4 +1,5 @@
1
1
  import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
2
+ import { s as currentGesture } from "./layerDepth-BU_55vPr.js";
2
3
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
3
4
  //#region src/composables/useLongPress.ts
4
5
  const DEFAULT_DELAY_MS = 500;
@@ -104,35 +105,6 @@ function useLongPress(options) {
104
105
  start
105
106
  };
106
107
  }
107
- //#endregion
108
- //#region src/composables/internal/gestureCounter.ts
109
- /**
110
- * 手势计数器:每一次新的按下或按键,计数加一。
111
- *
112
- * 同一次按压里,浏览器的点外关闭和触发器自己的 click 谁先到是没准的。
113
- * 比时间窗口只能猜,数手势不用猜:「属于关闭那次手势的 click」就是
114
- * 「计数还停在关闭那一刻的 click」,不管主线程中间卡了多久。
115
- *
116
- * 监听挂在 document 的捕获阶段,在任何处理函数读它之前先加一。第一次读的时候才装,服务端不装。
117
- */
118
- let gesture = 0;
119
- let isListening = false;
120
- function advance() {
121
- gesture += 1;
122
- }
123
- function markClicked() {}
124
- function listen() {
125
- if (isListening || typeof document === "undefined") return;
126
- isListening = true;
127
- document.addEventListener("pointerdown", advance, true);
128
- document.addEventListener("keydown", advance, true);
129
- document.addEventListener("click", markClicked, true);
130
- }
131
- /** 当前这次手势的编号。两次读到同一个数,说明它们在同一次按压(或同一次按键)里。 */
132
- function currentGesture() {
133
- listen();
134
- return gesture;
135
- }
136
108
  const AUTOSCROLL_STEP_PX = 6;
137
109
  const AUTOSCROLL_INTERVAL_MS = 16;
138
110
  /** `onTick` 在每次真的滚动之后调用:行在静止的指针下面移动了,要重新看指针下是哪一行。 */
@@ -1,4 +1,4 @@
1
- import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Bwwpex9q.js";
1
+ import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
2
2
  import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
3
3
  import "../styles/pressable.css";
4
4
  //#region src/composables/usePressFeedback.ts
@@ -1,4 +1,4 @@
1
- import { a as isImeKeyEvent } from "./layerDepth-BF74Cctw.js";
1
+ import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
2
2
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
3
3
  import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
4
4
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
@@ -1,5 +1,5 @@
1
- import { r as trackInteractionModality } from "./interactionModality-ACpTMhak.js";
2
- import { n as focusForLastInput } from "./useFocusTrap-FJt5QhEd.js";
1
+ import { i as trackInteractionModality } from "./interactionModality-BPvyShJT.js";
2
+ import { n as focusForLastInput } from "./useFocusTrap-CyooA0OC.js";
3
3
  import { onScopeDispose, watch } from "vue";
4
4
  //#region src/composables/useRestoreFocus.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-D7cumnOl.js";
1
+ import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-BSpUCTlO.js";
2
2
  import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
3
3
  //#region src/composables/internal/scrollInvalidation.ts
4
4
  /**
@@ -1,13 +1,14 @@
1
- import { r as registerLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
1
+ import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
- import { t as useLayer } from "./useLayer-BGv_wRSG.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-DwTkbifx.js";
5
- import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
6
- import { i as matchesFocusVisible, n as isTextEntryControl, r as isTextEntryTap, t as isActionTrigger } from "./tooltipTriggerRules-BY3LAtUl.js";
3
+ import { t as useLayer } from "./useLayer-BnjrJ85F.js";
4
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-CeebKoPB.js";
5
+ import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
6
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
7
7
  import { t as useAnnounce } from "./announce-B210eJVf.js";
8
- import { i as isFocusable } from "./focus-l8jVTcqd.js";
9
- import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-uhfzmZyf.js";
10
- import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
8
+ import { i as isFocusable } from "./focus-x7mxEqjR.js";
9
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-b-txblws.js";
10
+ import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-B1W5qIBx.js";
11
+ 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
12
  import "../styles/tooltip.css";
12
13
  //#region src/Tooltip/TooltipSurface.vue
13
14
  const _hoisted_1 = ["data-placement"];
@@ -177,7 +178,6 @@ const HOVER_BRIDGE_DELAY = 100;
177
178
  function useTooltip(options = {}) {
178
179
  const triggerRef = shallowRef(null);
179
180
  const isControlled = computed(() => toValue(options.isOpen) !== void 0);
180
- const isTouchPointer = ref(false);
181
181
  let bound = null;
182
182
  const announce = useAnnounce();
183
183
  const presentInterest = inject(tooltipPresentInterestKey, null);
@@ -187,6 +187,7 @@ function useTooltip(options = {}) {
187
187
  placement: () => toValue(options.placement) ?? "above",
188
188
  alignment: () => toValue(options.alignment) ?? "center",
189
189
  gap: GAP,
190
+ keepAnchorClear: true,
190
191
  onShow: () => options.onShow?.(),
191
192
  onHide: () => options.onHide?.()
192
193
  });
@@ -214,6 +215,17 @@ function useTooltip(options = {}) {
214
215
  function isInsideTooltip(node) {
215
216
  return node != null && (bound?.contains(node) === true || layer.contentRef.value?.contains(node) === true);
216
217
  }
218
+ const touch = useTouchTriggerInternal({
219
+ touchTrigger: touchTriggerMode,
220
+ isEnabled,
221
+ isControlled,
222
+ isOpen,
223
+ layerId: layer.id,
224
+ triggerRef,
225
+ show: showNow,
226
+ hide: hideNow
227
+ }, { isTextEntryTapIgnored: true });
228
+ const isTouchPointer = touch.isTouchPointer;
217
229
  function showNow() {
218
230
  clearTimers();
219
231
  if (!isEnabled() || isControlled.value) return;
@@ -239,9 +251,6 @@ function useTooltip(options = {}) {
239
251
  clearTimeout(hideTimer);
240
252
  hideTimer = void 0;
241
253
  }
242
- function onPointerEnter(event) {
243
- isTouchPointer.value = event.pointerType === "touch";
244
- }
245
254
  function onMouseEnter() {
246
255
  if (isTouchPointer.value) return;
247
256
  scheduleShow();
@@ -252,13 +261,6 @@ function useTooltip(options = {}) {
252
261
  if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
253
262
  scheduleHide();
254
263
  }
255
- function onTouchTap(tapEvent) {
256
- if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
257
- const trigger = triggerRef.value;
258
- if (trigger != null && (touchTriggerMode() === "auto" && isActionTrigger(trigger) || isTextEntryTap(trigger, tapEvent))) return;
259
- if (isOpen.value) hideNow();
260
- else showNow();
261
- }
262
264
  function trackTriggerPress() {
263
265
  stopPressTracking?.();
264
266
  const trigger = bound;
@@ -281,11 +283,7 @@ function useTooltip(options = {}) {
281
283
  if (isHoldInThisTask) isHoldFromPress = true;
282
284
  return;
283
285
  }
284
- if (event.pointerType === "touch") {
285
- onTouchTap(event);
286
- return;
287
- }
288
- if (isControlled.value) return;
286
+ if (touch.handlePointerDown(event) || isControlled.value) return;
289
287
  hideNow();
290
288
  }
291
289
  const focusGate = createFocusGate(focusTriggerMode);
@@ -375,7 +373,7 @@ function useTooltip(options = {}) {
375
373
  unbind();
376
374
  bound = element;
377
375
  trackInteractionModality();
378
- element.addEventListener("pointerenter", onPointerEnter);
376
+ element.addEventListener("pointerenter", touch.handlePointerEnter);
379
377
  element.addEventListener("mouseenter", onMouseEnter);
380
378
  element.addEventListener("mouseleave", onMouseLeave);
381
379
  element.addEventListener("pointerdown", onPointerDown);
@@ -388,14 +386,14 @@ function useTooltip(options = {}) {
388
386
  hover: scheduleShow,
389
387
  tap: (tapEvent) => {
390
388
  isTouchPointer.value = true;
391
- onTouchTap(tapEvent);
389
+ touch.answerTap(tapEvent);
392
390
  },
393
391
  focus: (focused) => onFocusArrive(element, focused, false)
394
392
  });
395
393
  }
396
394
  function unbind() {
397
395
  if (bound == null) return;
398
- bound.removeEventListener("pointerenter", onPointerEnter);
396
+ bound.removeEventListener("pointerenter", touch.handlePointerEnter);
399
397
  bound.removeEventListener("mouseenter", onMouseEnter);
400
398
  bound.removeEventListener("mouseleave", onMouseLeave);
401
399
  bound.removeEventListener("pointerdown", onPointerDown);
@@ -1,4 +1,4 @@
1
- import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-Bwwpex9q.js";
1
+ import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
2
2
  import { t as armStrayClick } from "./strayClick-CY-_ImKv.js";
3
3
  import { toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";