@astryx-vue/core 0.24.0 → 0.26.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 (352) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-DXOTr1D7.js → AlertDialog-Sku86l_R.js} +194 -8
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-Cmu6bMY6.js → AppShell-CJWvaqgZ.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-dMcn3j8Z.js → Avatar-C5KaulzE.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-BUXjzekw.js → AvatarGroup-DT5RbxDa.js} +1 -1
  10. package/dist/Badge/index.d.ts +1 -2
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/Banner/index.js +1 -1
  13. package/dist/{Banner-CTY9qV89.js → Banner-cg2nXT_4.js} +1 -1
  14. package/dist/BottomSheet/index.d.ts +1 -1
  15. package/dist/BottomSheet/index.js +2 -2
  16. package/dist/{BottomSheet-DyJJtZZU.js → BottomSheet-BtuF3uH6.js} +114 -11
  17. package/dist/{BottomSheet-ZOjuZya0.js → BottomSheet-DKrJyrhw.js} +1 -1
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-Nv-089W0.js → Breadcrumbs-Cvzwy6sZ.js} +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/{Button-TiYG0btL.js → Button-D8AGK5oT.js} +3 -3
  23. package/dist/ButtonGroup/index.d.ts +1 -1
  24. package/dist/ButtonGroup/index.js +1 -1
  25. package/dist/{ButtonGroup-DNN4O9_-.js → ButtonGroup-CUN_rC57.js} +2 -2
  26. package/dist/Calendar/index.d.ts +1 -1
  27. package/dist/Carousel/index.d.ts +1 -1
  28. package/dist/Carousel/index.js +1 -1
  29. package/dist/{Carousel-DsXup1mZ.js → Carousel-DrCG9wbP.js} +1 -1
  30. package/dist/Chat/index.d.ts +1 -1
  31. package/dist/Chat/index.js +1 -1
  32. package/dist/{Chat-DqYT_S9M.js → Chat-BIHEfSec.js} +205 -43
  33. package/dist/CheckboxInput/index.d.ts +1 -1
  34. package/dist/CheckboxInput/index.js +1 -1
  35. package/dist/{CheckboxInput-FKfsoLcl.js → CheckboxInput-wmX3Ekj-.js} +7 -7
  36. package/dist/CheckboxList/index.d.ts +1 -1
  37. package/dist/CheckboxList/index.js +1 -1
  38. package/dist/{CheckboxList-DuSVBtMk.js → CheckboxList-JWXHHU-u.js} +6 -6
  39. package/dist/ClickableCard/index.d.ts +1 -1
  40. package/dist/ClickableCard/index.js +1 -1
  41. package/dist/{ClickableCard-dNmSVHBu.js → ClickableCard-CwGxO0GU.js} +1 -1
  42. package/dist/Code/index.js +1 -1
  43. package/dist/{CodeBlock-5KoJDvWd.js → CodeBlock-PMZd9dQ9.js} +1 -1
  44. package/dist/Collapsible/index.js +1 -1
  45. package/dist/{Collapsible-B1qW6OuL.js → Collapsible-BDCJRfFN.js} +3 -3
  46. package/dist/CommandPalette/index.js +1 -1
  47. package/dist/{CommandPalette-B2riNg_7.js → CommandPalette-CJyQd7P-.js} +2 -2
  48. package/dist/ComplexSelector/index.d.ts +1 -1
  49. package/dist/ComplexSelector/index.js +1 -1
  50. package/dist/{ComplexSelector-C4CO8Fd2.js → ComplexSelector-DIb8LjYJ.js} +4 -4
  51. package/dist/ContextMenu/index.d.ts +1 -1
  52. package/dist/ContextMenu/index.js +2 -2
  53. package/dist/{ContextMenu-SzsWZf18.js → ContextMenu-HLvsROcS.js} +13 -26
  54. package/dist/DateInput/index.d.ts +1 -1
  55. package/dist/DateInput/index.js +1 -1
  56. package/dist/{DateInput-D9Jv70H7.js → DateInput-D5YBijbb.js} +14 -33
  57. package/dist/DateRangeInput/index.d.ts +1 -1
  58. package/dist/DateRangeInput/index.js +1 -1
  59. package/dist/{DateRangeInput-BsB2kg_q.js → DateRangeInput-BlcHsqgx.js} +6 -6
  60. package/dist/DateTimeInput/index.d.ts +1 -1
  61. package/dist/DateTimeInput/index.js +1 -1
  62. package/dist/{DateTimeInput-BDyKPKGD.js → DateTimeInput-Bx3LWb9Y.js} +7 -7
  63. package/dist/Dialog/index.js +3 -3
  64. package/dist/{Dialog-DUlWQH8R.js → Dialog-CNLEL4Mf.js} +1 -1
  65. package/dist/{Dialog-JCB5s-T-.js → Dialog-CxeXQTqH.js} +10 -0
  66. package/dist/{DialogHeader-C6hZZxdv.js → DialogHeader-CjXS_wba.js} +2 -2
  67. package/dist/Divider/index.d.ts +1 -1
  68. package/dist/Drawer/index.d.ts +1 -1
  69. package/dist/Drawer/index.js +1 -1
  70. package/dist/{Drawer-BDuiw1-g.js → Drawer-B_4HN6v5.js} +2 -2
  71. package/dist/DropdownMenu/index.js +3 -3
  72. package/dist/{DropdownMenu-Der2x_k_.js → DropdownMenu-CvdeExRQ.js} +5 -5
  73. package/dist/{DropdownMenu-BhxKnh6D.js → DropdownMenu-D_fBzKvf.js} +52 -23
  74. package/dist/EmptyState/index.js +1 -1
  75. package/dist/{EmptyState-CnFkYtcS.js → EmptyState-DUaFClsX.js} +4 -50
  76. package/dist/Field/index.d.ts +3 -3
  77. package/dist/Field/index.js +3 -3
  78. package/dist/{Field-D4UmRHlD.js → Field-Btyrw1hd.js} +2 -2
  79. package/dist/{FieldInfoTip-BSqcEcUx.js → FieldInfoTip-Dwl9HNp1.js} +1 -1
  80. package/dist/{FieldLabel-CZbayYFD.js → FieldLabel-B4l3sS4O.js} +3 -3
  81. package/dist/FieldStatus/index.d.ts +1 -1
  82. package/dist/FileInput/index.d.ts +1 -1
  83. package/dist/FileInput/index.js +1 -1
  84. package/dist/{FileInput-8oYiJsq_.js → FileInput-BUwV9fQa.js} +135 -85
  85. package/dist/FormLayout/index.js +1 -1
  86. package/dist/{FormLayout-CGJVeNsL.js → FormLayout-0_X9o-L4.js} +1 -1
  87. package/dist/Heading/index.d.ts +1 -1
  88. package/dist/Heading/index.js +1 -1
  89. package/dist/{Heading-COtyAhtB.js → Heading-BuZaxfIK.js} +1 -1
  90. package/dist/HoverCard/index.d.ts +1 -1
  91. package/dist/HoverCard/index.js +1 -1
  92. package/dist/{HoverCard-DGlOpk4x.js → HoverCard-CZhfsvP4.js} +2 -2
  93. package/dist/IconButton/index.js +1 -1
  94. package/dist/{IconButton-CwjHTIBg.js → IconButton-D9ZRJ7vD.js} +1 -1
  95. package/dist/Indicator/index.d.ts +2 -2
  96. package/dist/InfoTip/index.d.ts +1 -1
  97. package/dist/InfoTip/index.js +1 -1
  98. package/dist/{InfoTip-CNZateDb.js → InfoTip-BDo2xI8h.js} +2 -2
  99. package/dist/{InputClearButton-CzCP41sx.js → InputClearButton-C-j9Nf1s.js} +1 -1
  100. package/dist/InputGroup/index.d.ts +1 -1
  101. package/dist/InputGroup/index.js +1 -1
  102. package/dist/{InputGroup-CfUGHDNz.js → InputGroup-1Ukiu-dg.js} +6 -6
  103. package/dist/InternationalizationProvider/index.d.ts +1 -1
  104. package/dist/InternationalizationProvider/index.js +1 -1
  105. package/dist/{InternationalizationProvider-DaZS5Dch.js → InternationalizationProvider-B2Gv5yAm.js} +1 -1
  106. package/dist/{Item-DyaYlbyE.js → Item-DUI1Qnnd.js} +1 -1
  107. package/dist/Lightbox/index.js +1 -1
  108. package/dist/{Lightbox-Dzzd2Vqe.js → Lightbox-BOWTHnTb.js} +1 -1
  109. package/dist/Link/index.d.ts +1 -1
  110. package/dist/Link/index.js +1 -1
  111. package/dist/{Link-B7OJQ0zl.js → Link-ruNSnGtC.js} +2 -2
  112. package/dist/List/index.d.ts +1 -1
  113. package/dist/List/index.js +2 -2
  114. package/dist/{ListItem-gj_lOvEt.js → ListItem-C8SqSrU6.js} +1 -1
  115. package/dist/Markdown/index.js +1 -1
  116. package/dist/{Markdown-Cbj-nqhN.js → Markdown-C-KT_riK.js} +3 -3
  117. package/dist/MobileNav/index.js +1 -1
  118. package/dist/{MobileNavToggle-BlcdCg8M.js → MobileNavToggle-BGNYwwfI.js} +12 -0
  119. package/dist/MoreMenu/index.d.ts +1 -1
  120. package/dist/MoreMenu/index.js +1 -1
  121. package/dist/{MoreMenu-Dokwc4Mg.js → MoreMenu-DnwzVBEE.js} +17 -31
  122. package/dist/MultiSelector/index.d.ts +1 -1
  123. package/dist/MultiSelector/index.js +1 -1
  124. package/dist/{MultiSelector-CId8-qAX.js → MultiSelector-Cl_HzKvn.js} +25 -26
  125. package/dist/{NavDisclosure-CqAThYgR.js → NavDisclosure-B66SHKdd.js} +1 -1
  126. package/dist/{NavHeadingSurface-DJ4pWvEi.js → NavHeadingSurface-BZCzkCPJ.js} +1 -1
  127. package/dist/NavItem/index.d.ts +1 -1
  128. package/dist/NavItem/index.js +1 -1
  129. package/dist/{NavItem-_eIEwV41.js → NavItem-c1ScHEJY.js} +1 -1
  130. package/dist/NavMenu/index.js +3 -3
  131. package/dist/{NavMenu-BtA_Xbmr.js → NavMenu-pCZjhMHe.js} +2 -2
  132. package/dist/{NavMenuItem-BxfjAf1T.js → NavMenuItem-BIqpJmH6.js} +3 -3
  133. package/dist/NumberInput/index.d.ts +2 -2
  134. package/dist/NumberInput/index.js +1 -1
  135. package/dist/{NumberInput-Bl5TFhGD.js → NumberInput-Dz0H_XPw.js} +386 -99
  136. package/dist/Outline/index.js +1 -1
  137. package/dist/{Outline-NuPQMjxw.js → Outline-DvQbXc_H.js} +1 -1
  138. package/dist/OverflowList/index.d.ts +1 -1
  139. package/dist/OverflowList/index.js +1 -1
  140. package/dist/{OverflowList-CumJl6X_.js → OverflowList-MCN1PhBB.js} +2 -2
  141. package/dist/Overlay/index.d.ts +1 -1
  142. package/dist/Pagination/index.d.ts +1 -1
  143. package/dist/Pagination/index.js +1 -1
  144. package/dist/{Pagination-C0Bx80Tu.js → Pagination-Cq9BIzPe.js} +59 -48
  145. package/dist/Popover/index.d.ts +3 -3
  146. package/dist/Popover/index.js +1 -1
  147. package/dist/Popover-BJAyg1Qh.js +1247 -0
  148. package/dist/PowerSearch/index.js +1 -1
  149. package/dist/{PowerSearch-Dq6Gi9z1.js → PowerSearch-wXnusKnz.js} +19 -19
  150. package/dist/ProgressBar/index.d.ts +1 -1
  151. package/dist/ProgressBar/index.js +1 -1
  152. package/dist/{ProgressBar-Dp-0xquN.js → ProgressBar-C6x0E-BF.js} +1 -1
  153. package/dist/Radio/index.d.ts +1 -1
  154. package/dist/Radio/index.js +1 -1
  155. package/dist/{RadioGroup-IKBXLzYU.js → RadioGroup-LUDji_LA.js} +7 -7
  156. package/dist/RadioList/index.d.ts +1 -1
  157. package/dist/RadioList/index.js +1 -1
  158. package/dist/{RadioList-NW4fGKgm.js → RadioList-CmeUUgn-.js} +1 -1
  159. package/dist/Resizable/index.d.ts +1 -1
  160. package/dist/ScrollableArea/index.d.ts +1 -1
  161. package/dist/SegmentedControl/index.js +1 -1
  162. package/dist/{SegmentedControl-DRxcUlVP.js → SegmentedControl-BkWz-I2J.js} +2 -2
  163. package/dist/SelectableCard/index.d.ts +1 -1
  164. package/dist/SelectableCard/index.js +1 -1
  165. package/dist/{SelectableCard-Dp-LsEcf.js → SelectableCard-GRWYx3iD.js} +1 -1
  166. package/dist/Selector/index.d.ts +1 -1
  167. package/dist/Selector/index.js +1 -1
  168. package/dist/{Selector-BW_oxWDM.js → Selector-BL_JH51H.js} +30 -25
  169. package/dist/SideNav/index.d.ts +1 -1
  170. package/dist/SideNav/index.js +2 -2
  171. package/dist/{SideNav-B5mMRj98.js → SideNav-DtAQA-o-.js} +9 -9
  172. package/dist/Slider/index.d.ts +1 -1
  173. package/dist/Slider/index.js +1 -1
  174. package/dist/{Slider-oD3AY4jh.js → Slider-DEMdW9An.js} +4 -4
  175. package/dist/StatusDot/index.js +1 -1
  176. package/dist/{StatusDot-B3oOyRF7.js → StatusDot-_rucEf3d.js} +1 -1
  177. package/dist/Stepper/index.d.ts +1 -1
  178. package/dist/Stepper/index.js +1 -1
  179. package/dist/{Stepper-CgOdL36_.js → Stepper-CCuggsov.js} +1 -1
  180. package/dist/Switch/index.d.ts +1 -1
  181. package/dist/Switch/index.js +1 -1
  182. package/dist/{Switch-DG_A9cD0.js → Switch-BxRYZTQV.js} +6 -6
  183. package/dist/TabList/index.d.ts +1 -1
  184. package/dist/TabList/index.js +1 -1
  185. package/dist/{TabList-FkoypUk0.js → TabList-D8KzfcGB.js} +3 -3
  186. package/dist/Table/index.d.ts +1 -1
  187. package/dist/Table/index.js +1 -1
  188. package/dist/{Table-zNW23VwP.js → Table-DYDBgr3y.js} +15 -15
  189. package/dist/Text/index.d.ts +1 -1
  190. package/dist/Text/index.js +1 -1
  191. package/dist/{Text-v1ep26uD.js → Text-CHauN5So.js} +1 -1
  192. package/dist/TextArea/index.d.ts +1 -1
  193. package/dist/TextArea/index.js +1 -1
  194. package/dist/{TextArea-BilHnmSs.js → TextArea-BJl6YH4p.js} +56 -22
  195. package/dist/TextInput/index.d.ts +1 -1
  196. package/dist/TextInput/index.js +1 -1
  197. package/dist/{TextInput-D6tHM2sA.js → TextInput-CGOVY0Zk.js} +78 -34
  198. package/dist/Theme/index.d.ts +2 -2
  199. package/dist/Thumbnail/index.js +1 -1
  200. package/dist/{Thumbnail-llGdnQM8.js → Thumbnail-C3MvJ67s.js} +3 -3
  201. package/dist/{TimeField-C5rcoaVu.js → TimeField-C2of7Ok5.js} +14 -33
  202. package/dist/TimeInput/index.d.ts +1 -1
  203. package/dist/TimeInput/index.js +1 -1
  204. package/dist/{TimeInput-D0N8nwrI.js → TimeInput-B_YY-IHW.js} +3 -3
  205. package/dist/Timer/index.d.ts +1 -1
  206. package/dist/Timer/index.js +1 -1
  207. package/dist/{Timer-65PfuoQ7.js → Timer-OULaFQFf.js} +1 -1
  208. package/dist/Timestamp/index.d.ts +1 -1
  209. package/dist/Timestamp/index.js +1 -1
  210. package/dist/{Timestamp-rYC8mE3r.js → Timestamp-B6J0nfYH.js} +3 -3
  211. package/dist/Toast/index.js +1 -1
  212. package/dist/{Toast-BtQ-4Y6Z.js → Toast-BKPl8iIr.js} +1 -1
  213. package/dist/ToggleButton/index.d.ts +1 -1
  214. package/dist/ToggleButton/index.js +1 -1
  215. package/dist/{ToggleButton-Bnn_MiOn.js → ToggleButton-DfpsuhMa.js} +3 -3
  216. package/dist/Token/index.js +1 -1
  217. package/dist/{Token-B-j3AKxB.js → Token-C7Dt5ygK.js} +1 -1
  218. package/dist/Tokenizer/index.d.ts +1 -1
  219. package/dist/Tokenizer/index.js +1 -1
  220. package/dist/{Tokenizer-Cpdy_L00.js → Tokenizer-CSmIMDc4.js} +6 -6
  221. package/dist/Toolbar/index.d.ts +1 -1
  222. package/dist/Tooltip/index.d.ts +1 -1
  223. package/dist/Tooltip/index.js +2 -2
  224. package/dist/{Tooltip-CByjfHBZ.js → Tooltip-gT9_hIEv.js} +1 -1
  225. package/dist/TopNav/index.d.ts +1 -1
  226. package/dist/TopNav/index.js +1 -1
  227. package/dist/{TopNav-q8xDVlM_.js → TopNav-BsrhSbkn.js} +5 -5
  228. package/dist/TreeList/index.d.ts +1 -1
  229. package/dist/TreeList/index.js +1 -1
  230. package/dist/{TreeList-CEGInQtF.js → TreeList-BEPHdVYu.js} +3 -3
  231. package/dist/Typeahead/index.d.ts +2 -2
  232. package/dist/Typeahead/index.js +2 -2
  233. package/dist/{Typeahead-C-PdRnRQ.js → Typeahead-CdLc7S2v.js} +7 -7
  234. package/dist/{types-fRasDCe4.d.ts → adaptationTypes-Cn_pfrsw.d.ts} +155 -155
  235. package/dist/animator-BooLoGyI.js +3164 -0
  236. package/dist/announceRenderedText-CslZ0cev.js +50 -0
  237. package/dist/{assertOptions-og3t30Fh.js → assertOptions-CFn7Gdcr.js} +22 -2
  238. package/dist/{batch-oTkSbtVz.js → batch-CM-vJhQg.js} +3 -279
  239. package/dist/{handle-CSHfxBie.js → bezier-Cts7gENO.js} +3 -22
  240. package/dist/{clickGuard-ChKuogmR.js → clickGuard-FrlnECMp.js} +1 -2
  241. package/dist/coarsePointer-BfMx3H23.js +86 -0
  242. package/dist/composables/index.d.ts +2 -2
  243. package/dist/composables/index.js +7 -7
  244. package/dist/{composables-COCeg92e.js → composables-D9DVeNnL.js} +10 -3271
  245. package/dist/{context-DsNhYm5O.js → context-CrVCeUUK.js} +1 -1
  246. package/dist/context-DH8E-qjm.js +173 -0
  247. package/dist/{edge-3sC8-cbB.js → edge-BYXwSggM.js} +1 -1
  248. package/dist/{edgeRide-DOxmVxTM.js → edgeRide-B5mlN2Q4.js} +4 -4
  249. package/dist/escape-DzSxSmez.js +10 -0
  250. package/dist/{field-CehUqCe0.js → field-BaUBjqf5.js} +4 -2
  251. package/dist/{fieldParts-CbWvZLhH.js → fieldParts-CuE5V12i.js} +1 -1
  252. package/dist/{sharedRealm-H1OrlP0V.js → flatTree-BB4yPMNL.js} +1 -49
  253. package/dist/handle-BazRxHwq.js +22 -0
  254. package/dist/holdEntranceInput-DMCOeRqu.js +37 -0
  255. package/dist/{index-CuW4AQ7M.d.ts → index--kbwaSXW.d.ts} +1 -1
  256. package/dist/{index-CsYDrQ9R.d.ts → index-668zPVsH.d.ts} +1 -1
  257. package/dist/{index-_FjbcSgD.d.ts → index-7Q-wnbe7.d.ts} +1 -1
  258. package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
  259. package/dist/{index-HULXozsK.d.ts → index-B3uBbehw.d.ts} +8 -8
  260. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  261. package/dist/{index-CnVjgLP5.d.ts → index-BCW6qCcS.d.ts} +1 -1
  262. package/dist/{index-QnlWyUxN.d.ts → index-BFGtLIp8.d.ts} +2 -2
  263. package/dist/{index-DDAcxZAP.d.ts → index-BZUVNr2c.d.ts} +1 -1
  264. package/dist/{index-BWcZ-L80.d.ts → index-BcRvRqWU.d.ts} +1 -1
  265. package/dist/{index-CEjvYAUZ.d.ts → index-BenG-F5d.d.ts} +1 -1
  266. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  267. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  268. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  269. package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
  270. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  271. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  272. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  273. package/dist/{index-BfoazhEu.d.ts → index-CTXG-KKT.d.ts} +1 -1
  274. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  275. package/dist/{index-lmd9LZKB.d.ts → index-ClJINYPl.d.ts} +5 -2
  276. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  277. package/dist/index-CuFLztiI.d.ts +49 -0
  278. package/dist/{index-BOCb89V9.d.ts → index-DFLPv9io.d.ts} +2 -2
  279. package/dist/index-DHUCHxn2.d.ts +69 -0
  280. package/dist/{index-85RFPeV0.d.ts → index-DHsYyqMP.d.ts} +5 -5
  281. package/dist/{index-GmoeIuhl.d.ts → index-DMZ5SKJJ.d.ts} +35 -3
  282. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  283. package/dist/{index-DRDOArzq.d.ts → index-DSEEgvak.d.ts} +1152 -214
  284. package/dist/{index-DxR6cZBf.d.ts → index-DZCpswvp.d.ts} +1 -1
  285. package/dist/{index-etx25Eq-.d.ts → index-NOxH5oYj.d.ts} +1 -1
  286. package/dist/{index-CH-xSiJz.d.ts → index-XY0rleGM.d.ts} +2 -2
  287. package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  288. package/dist/{index-DGXCnzOL.d.ts → index-aHC2C89h.d.ts} +1 -1
  289. package/dist/{index-0pBqcQXV.d.ts → index-tpkJfk6X.d.ts} +6 -1
  290. package/dist/index.d.ts +43 -44
  291. package/dist/index.js +101 -101
  292. package/dist/inputHold-BmChuR9x.js +525 -0
  293. package/dist/inputHoldState-pblUT4oh.js +39 -0
  294. package/dist/inputStream-LZdK8luP.js +239 -0
  295. package/dist/{landing-DFC97kl9.js → landing-B9Uvex6x.js} +3 -2
  296. package/dist/lazyBottomSheet-CL_PrTxb.js +16 -0
  297. package/dist/{loadCatalog-C8mRnC0E.d.ts → loadCatalog-2Hu-xisJ.d.ts} +2 -0
  298. package/dist/{loadCatalog-BeQt6Uq-.js → loadCatalog-umh_C97k.js} +2 -1
  299. package/dist/locale/index.d.ts +2 -2
  300. package/dist/locale/index.js +3 -3
  301. package/dist/{locale-B4FpGKpc.js → locale-BDPlcO62.js} +1 -1
  302. package/dist/presentationHold-7IkbR4d8.js +118 -0
  303. package/dist/{pressFeedback-CEUPQWIS.js → pressFeedback-DVR5V1b6.js} +3 -164
  304. package/dist/progress-FQfSgLZC.js +38 -0
  305. package/dist/renderedText-BwJdmps3.js +32 -0
  306. package/dist/{stillPointerGate-1Tgkns0J.js → stillPointerGate-D3loXLh7.js} +1 -1
  307. package/dist/textEntryTraits-cb0LZSNl.js +11 -0
  308. package/dist/themeTiming-CWEvdh31.js +287 -0
  309. package/dist/{tooltipFocusRules-vIH7PZh1.js → tooltipFocusRules-CFNKWzYn.js} +1 -1
  310. package/dist/{tooltipTriggerRules-DoBAbfGc.js → tooltipTriggerRules-DyPyWOdP.js} +1 -1
  311. package/dist/touchHold-CFJlSClt.js +30 -0
  312. package/dist/{context-DQPBIsl5.js → transientCopy-VAsg2a46.js} +1 -172
  313. package/dist/{types-OGMYGejX.d.ts → types-BA1veIoa.d.ts} +25 -2
  314. package/dist/{types-bAQk3F8G.d.ts → types-Cvh2VwQZ.d.ts} +4 -2
  315. package/dist/{types-C1ydeFiu.d.ts → types-DL-hRibg.d.ts} +1 -1
  316. package/dist/{useActionGroupTracking-PVBCtLUE.js → useActionGroupTracking-C6BzQzvp.js} +2 -2
  317. package/dist/{useChatStreamScroll-BIMKffDA.js → useChatStreamScroll-Cv51kRT0.js} +91 -30
  318. package/dist/{useDismiss-CMIsdIOQ.js → useDismiss-C7_S7qUA.js} +87 -5
  319. package/dist/useEntryErrorReport-Wee3N8IA.js +51 -0
  320. package/dist/useHeldPresentation-7MH-RlSF.js +24 -0
  321. package/dist/{useInputStatusIcon-CrgeMzrf.js → useInputStatusIcon-BFw-EXjJ.js} +1 -1
  322. package/dist/{useInputStatusIcon-B6m_t8cK.d.ts → useInputStatusIcon-CFkOmDS4.d.ts} +1 -1
  323. package/dist/{useMenuDrillIn-CQrzwZvx.js → useMenuDrillIn-CP0P49ej.js} +9 -8
  324. package/dist/{useMenuPress-wqRDvUMW.js → useMenuPress-Di_3jhOx.js} +5 -3
  325. package/dist/{usePressFeedback-aufF1sCH.js → usePressFeedback-BhNcuxQv.js} +1 -1
  326. package/dist/{useTooltip-BwqzEtoF.js → useTooltip-BpBMQ815.js} +4 -34
  327. package/dist/{useTouchHitArea-BMDBe36j.js → useTouchHitArea-CNZyA18Y.js} +2 -2
  328. package/dist/{useTruncationTooltip-CRhoPzeu.js → useTruncationTooltip-t5G978XB.js} +3 -3
  329. package/dist/{useTypeaheadMenuConfig-GvdIymRg.js → useTypeaheadMenuConfig-DeDGVR8S.js} +1 -1
  330. package/package.json +1 -1
  331. package/styles/alert-dialog.css +5 -0
  332. package/styles/chat.css +45 -17
  333. package/styles/context-menu.css +17 -73
  334. package/styles/dialog.css +18 -1
  335. package/styles/dropdown-menu.css +47 -38
  336. package/styles/file-input.css +8 -1
  337. package/styles/hover-card.css +13 -72
  338. package/styles/input-group.css +0 -15
  339. package/styles/layer.css +68 -0
  340. package/styles/multi-selector.css +17 -30
  341. package/styles/number-input.css +49 -4
  342. package/styles/pagination.css +0 -22
  343. package/styles/popover.css +26 -72
  344. package/styles/selector.css +17 -30
  345. package/styles/text-area.css +16 -1
  346. package/styles/text-input.css +26 -5
  347. package/styles/tooltip.css +12 -71
  348. package/styles/typeahead.css +17 -30
  349. package/dist/Popover-DpR4rwiW.js +0 -374
  350. package/dist/index-B9WzWqzk.d.ts +0 -18
  351. package/dist/index-CyMStZq4.d.ts +0 -957
  352. package/dist/types-DIYwbkpe.d.ts +0 -33
@@ -0,0 +1,38 @@
1
+ //#region src/motion/progress.ts
2
+ /** The step of the finite differences taken on a progress. */
3
+ const STEP = 1e-4;
4
+ /**
5
+ * The curve of `f(driver(t))`, its velocity by the chain rule: a channel
6
+ * following a path as its progress moves, or a companion following any
7
+ * driving curve (a sheet's `y` mapped onto its scrim's opacity). The driver
8
+ * is any MotionCurve, not only a progress from 0 to 1. A companion played on
9
+ * another animator starts with its driver (`{at: start}`; see the file
10
+ * header).
11
+ */
12
+ function mapProgress(driver, f) {
13
+ return {
14
+ duration: driver.duration,
15
+ at: (t) => f(driver.at(t)),
16
+ velocity: (t) => {
17
+ const value = driver.at(t);
18
+ return (f(value + STEP) - f(value - STEP)) / (2 * STEP) * driver.velocity(t);
19
+ }
20
+ };
21
+ }
22
+ /**
23
+ * The linear map from `input` to `output`, held at `output`'s ends outside
24
+ * `input` unless `clamp` is false: what most companions are (a scrim's dim
25
+ * along a sheet's travel, a parallax, a dismissal's fade). Either range may
26
+ * run backward (`[openY, closedY]`).
27
+ */
28
+ function mapRange(input, output, { clamp = true } = {}) {
29
+ const [a, b] = input;
30
+ const [c, d] = output;
31
+ return (x) => {
32
+ let t = a === b ? x < a ? 0 : 1 : (x - a) / (b - a);
33
+ if (clamp) t = Math.min(1, Math.max(0, t));
34
+ return t === 0 ? c : t === 1 ? d : c + (d - c) * t;
35
+ };
36
+ }
37
+ //#endregion
38
+ export { mapRange as n, mapProgress as t };
@@ -0,0 +1,32 @@
1
+ //#region src/Tooltip/renderedText.ts
2
+ const HIDDEN = "[aria-hidden=\"true\"], [hidden]";
3
+ const BLOCKS = "p, div, li, br, h1, h2, h3, h4, h5, h6";
4
+ /**
5
+ * 对应原版 `hooks/useAnnounceRenderedText` 里的 `renderedText`:
6
+ * 读屏会念到的文字。块级元素之间隔开,`aria-hidden` 和 `hidden` 的部分跳过。
7
+ * 读的是真实 DOM,所以计算后的 display 也算数。
8
+ */
9
+ function renderedText(element) {
10
+ const view = element.ownerDocument.defaultView;
11
+ const displayOf = (node) => view?.getComputedStyle(node).display ?? "";
12
+ const parts = [];
13
+ const walk = (node, parentDisplay) => {
14
+ if (node.nodeType === Node.TEXT_NODE) {
15
+ parts.push(node.textContent ?? "");
16
+ return;
17
+ }
18
+ if (node.nodeType !== Node.ELEMENT_NODE) return;
19
+ const part = node;
20
+ if (part.matches(HIDDEN)) return;
21
+ const display = displayOf(part);
22
+ const isBlock = part.matches(BLOCKS) || display !== "" && display !== "contents" && !display.startsWith("inline") || /\b(?:flex|grid)\b/.test(parentDisplay);
23
+ if (isBlock) parts.push(" ");
24
+ part.childNodes.forEach((child) => walk(child, display));
25
+ if (isBlock) parts.push(" ");
26
+ };
27
+ const ownDisplay = displayOf(element);
28
+ element.childNodes.forEach((child) => walk(child, ownDisplay));
29
+ return parts.join("").replace(/\s+/g, " ").trim();
30
+ }
31
+ //#endregion
32
+ export { renderedText as t };
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-CMIsdIOQ.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C7_S7qUA.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
@@ -0,0 +1,11 @@
1
+ //#region src/Field/textEntryTraits.ts
2
+ function textEntryTraitAttributes(traits) {
3
+ const attributes = {};
4
+ if (traits.enterKeyHint != null) attributes.enterkeyhint = traits.enterKeyHint;
5
+ if (traits.inputMode != null) attributes.inputmode = traits.inputMode;
6
+ if (traits.autoCapitalize != null) attributes.autocapitalize = traits.autoCapitalize;
7
+ if (traits.hasAutoCorrect != null) attributes.autocorrect = traits.hasAutoCorrect ? "on" : "off";
8
+ return attributes;
9
+ }
10
+ //#endregion
11
+ export { textEntryTraitAttributes as t };
@@ -0,0 +1,287 @@
1
+ import { _ as parseMotionRoleValue, g as parseCssEasing } from "./pressGesture-BzIBmKF2.js";
2
+ import { t as cubicBezier } from "./bezier-Cts7gENO.js";
3
+ import { n as easeDefaults, t as durationDefaults } from "./motionTokenDefaults-EFzpiAF5.js";
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
+ //#region src/motion/themeTiming.ts
116
+ /**
117
+ * The value `@astryx-vue/themes` declares for each timing token, by its
118
+ * unprefixed name. A page without the stylesheet reads these.
119
+ */
120
+ const declaredTimingTokens = {
121
+ ...durationDefaults,
122
+ ...easeDefaults
123
+ };
124
+ /**
125
+ * The eased progress from 0 to 1 over `seconds`, as a MotionCurve whose
126
+ * velocity is in progress per second. A curve of no length is at its end.
127
+ * With `jumps`, a jump in the easing, as in `steps()`, carries no speed. The
128
+ * gentler of the slopes just before and just after counts.
129
+ */
130
+ function easedProgress(seconds, ease, { jumps = false } = {}) {
131
+ const at = (t) => seconds <= 0 || t >= seconds ? 1 : ease(Math.max(0, t) / seconds);
132
+ const step = Math.min(.001, seconds / 100);
133
+ return {
134
+ duration: seconds,
135
+ at,
136
+ velocity: (t) => {
137
+ if (seconds <= 0 || t >= seconds) return 0;
138
+ const before = Math.max(0, t - step);
139
+ const after = Math.min(seconds, t + step);
140
+ if (!jumps) return (at(after) - at(before)) / (after - before);
141
+ const here = at(t);
142
+ const slopes = [];
143
+ if (t > before) slopes.push((here - at(before)) / (t - before));
144
+ if (after > t) slopes.push((at(after) - here) / (after - t));
145
+ return slopes.reduce((a, b) => Math.abs(b) < Math.abs(a) ? b : a);
146
+ }
147
+ };
148
+ }
149
+ function firstDurationMs(style) {
150
+ return parseMotionRoleValue("duration", style.transitionDuration.split(",")[0] ?? "");
151
+ }
152
+ /** The first transition's easing in a computed style, as the style writes it. */
153
+ function firstEasingText(style) {
154
+ return style.transitionTimingFunction.split(/,(?![^(]*\))/)[0] ?? "";
155
+ }
156
+ /** The first transition's easing in a computed style. */
157
+ function firstEasing(style) {
158
+ return parseCssEasing(firstEasingText(style));
159
+ }
160
+ /**
161
+ * The easing `text` as the browser plays it. A paused animation with that
162
+ * easing gives its eased progress at each time it is set to. This reads an
163
+ * easing that is not a cubic Bézier, such as `linear()` or `steps()`. Null
164
+ * when the browser plays no such easing, or has no Web Animations.
165
+ */
166
+ function browserEasing(doc, text) {
167
+ const view = doc.defaultView;
168
+ if (typeof view?.Animation !== "function" || typeof view.KeyframeEffect !== "function") return null;
169
+ let animation;
170
+ try {
171
+ animation = new view.Animation(new view.KeyframeEffect(null, null, {
172
+ duration: 1e3,
173
+ easing: text,
174
+ fill: "both"
175
+ }), null);
176
+ } catch {
177
+ return null;
178
+ }
179
+ return (x) => {
180
+ animation.currentTime = Math.min(1, Math.max(0, x)) * 1e3;
181
+ return animation.effect?.getComputedTiming().progress ?? 1;
182
+ };
183
+ }
184
+ /**
185
+ * The curve for a duration and an easing, or null if either cannot play. An
186
+ * easing that is not a cubic Bézier plays as the browser plays `easing`, and
187
+ * a jump in it carries no speed.
188
+ */
189
+ function progressOf(doc, { ms, points }, easing) {
190
+ if (ms == null || ms <= 0) return null;
191
+ if (points != null) return easedProgress(ms / 1e3, cubicBezier(points));
192
+ const ease = browserEasing(doc, easing);
193
+ return ease == null ? null : easedProgress(ms / 1e3, ease, { jumps: true });
194
+ }
195
+ /**
196
+ * A duration and an easing written in CSS, resolved as a transition resolves
197
+ * them where `element` is. A plain time or easing parses as written. Other
198
+ * text, such as `calc()`, resolves on a hidden probe's transition. The
199
+ * duration is null when it is not a time of zero or more. The easing is null
200
+ * when it is not a cubic Bézier. A value left out gives null.
201
+ */
202
+ function resolveTiming(element, { duration, easing }) {
203
+ const plainMs = duration == null ? null : parseMotionRoleValue("duration", duration);
204
+ const plainPoints = easing == null ? null : parseCssEasing(easing);
205
+ const doc = element.ownerDocument;
206
+ const view = doc.defaultView;
207
+ const needsMs = duration != null && plainMs == null;
208
+ const needsPoints = easing != null && plainPoints == null;
209
+ if (view == null || !needsMs && !needsPoints) return {
210
+ ms: plainMs,
211
+ points: plainPoints
212
+ };
213
+ const probe = doc.createElement("span");
214
+ probe.style.setProperty("display", "none", "important");
215
+ const takes = (property, value) => {
216
+ probe.style.setProperty(property, value, "important");
217
+ return probe.style.getPropertyValue(property) !== "";
218
+ };
219
+ const hasMs = needsMs && takes("transition-duration", duration);
220
+ const hasPoints = needsPoints && takes("transition-timing-function", easing);
221
+ (doc.body ?? doc.documentElement).append(probe);
222
+ try {
223
+ const style = view.getComputedStyle(probe);
224
+ return {
225
+ ms: hasMs ? firstDurationMs(style) : plainMs,
226
+ points: hasPoints ? firstEasing(style) : plainPoints
227
+ };
228
+ } finally {
229
+ probe.remove();
230
+ }
231
+ }
232
+ /**
233
+ * The value of `token` in `style`, which carries it with the `--astryx-`
234
+ * prefix. With none, it is the declared default, and the references in that
235
+ * default read their own tokens in `style` too.
236
+ */
237
+ function tokenValue(style, token) {
238
+ const own = style.getPropertyValue(normalizeTokenName(token)).trim();
239
+ if (own !== "") return own;
240
+ const declared = {};
241
+ for (const [name, value] of Object.entries(declaredTimingTokens)) declared[name] = style.getPropertyValue(normalizeTokenName(name)).trim() || value;
242
+ return resolveTokenReferences(declared)[token] ?? "";
243
+ }
244
+ /**
245
+ * The text of a timing token where `element` is: its value there, or the
246
+ * default the theme declares, with that default's references read there too. It
247
+ * holds no reference, so another element that takes it plays the same timing.
248
+ */
249
+ function readThemeTokenText(element, token) {
250
+ const style = element.ownerDocument.defaultView?.getComputedStyle(element);
251
+ return style == null ? null : tokenValue(style, token);
252
+ }
253
+ /**
254
+ * The eased progress from 0 to 1 that times a motion of `element`, as a
255
+ * MotionCurve whose velocity is in progress per second. With no tokens, it
256
+ * reads the element's own transition, where its stylesheet applies the
257
+ * theme's tokens. With tokens, it reads them as readThemeTokens does. Null
258
+ * when the duration is not a positive length or the browser plays no such
259
+ * easing: the caller decides what that motion does.
260
+ */
261
+ function readThemeTiming(element, tokens) {
262
+ const doc = element.ownerDocument;
263
+ const style = doc.defaultView?.getComputedStyle(element);
264
+ if (style == null) return null;
265
+ if (tokens != null) {
266
+ const easing = tokenValue(style, tokens.easing);
267
+ return progressOf(doc, resolveTiming(element, {
268
+ duration: tokenValue(style, tokens.duration),
269
+ easing
270
+ }), easing);
271
+ }
272
+ const easing = firstEasingText(style);
273
+ return progressOf(doc, {
274
+ ms: firstDurationMs(style),
275
+ points: parseCssEasing(easing)
276
+ }, easing);
277
+ }
278
+ /**
279
+ * The theme's timing for `tokens` where `element` is, as readThemeTiming
280
+ * reads it. A timing that does not resolve, or no element, plays no motion:
281
+ * the curve has no length, so the motion lands at once.
282
+ */
283
+ function readThemeTimingOrInstant(element, tokens) {
284
+ return (element == null ? null : readThemeTiming(element, tokens)) ?? easedProgress(0, (x) => x);
285
+ }
286
+ //#endregion
287
+ export { readThemeTimingOrInstant as n, readThemeTokenText as r, readThemeTiming as t };
@@ -1,5 +1,5 @@
1
1
  import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-D3Rh8T5C.js";
2
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-DoBAbfGc.js";
2
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-DyPyWOdP.js";
3
3
  import { s as isTextEntryControl, t as getInteractionModality } from "./interactionModality-CedLz5PC.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-CMIsdIOQ.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C7_S7qUA.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -0,0 +1,30 @@
1
+ import { c as sharedState } from "./inputStream-LZdK8luP.js";
2
+ //#region src/gestures/touchHold.ts
3
+ /**
4
+ * @file touchHold.ts
5
+ * @input The holds a layer places on input while it animates or shields
6
+ * what is beneath it
7
+ * @output registerTouchHold, which adds a hold's read, and holdsTouch, the
8
+ * gesture host's one question: whether a touch on a target is held
9
+ * @position The seam between the gesture host and a layer's input hold
10
+ * (upstream Layer/inputHold `holdsTouch`): a layer registers its read, and
11
+ * the host asks before it gives a touch to any recognizer
12
+ *
13
+ * A held touch reaches no recognizer: the host drops it as it lands. With
14
+ * no hold registered, every touch passes, at once.
15
+ */
16
+ const holds = sharedState("gestures/touch-hold", 1, () => /* @__PURE__ */ new Set());
17
+ /** Add a hold's read; returns the removal. */
18
+ function registerTouchHold(query) {
19
+ holds.add(query);
20
+ return () => {
21
+ holds.delete(query);
22
+ };
23
+ }
24
+ /** Whether any registered hold takes a touch on `target`. */
25
+ function holdsTouch(target) {
26
+ for (const query of holds) if (query(target)) return true;
27
+ return false;
28
+ }
29
+ //#endregion
30
+ export { registerTouchHold as n, holdsTouch as t };
@@ -1,7 +1,4 @@
1
1
  import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
2
- import { r as readArea, t as areaOf } from "./handle-CSHfxBie.js";
3
- import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-oTkSbtVz.js";
4
- import { computed, inject, ref } from "vue";
5
2
  //#region src/motion/inertClone.ts
6
3
  /**
7
4
  * @file inertClone.ts
@@ -558,172 +555,4 @@ function wrapText(copy) {
558
555
  return [...faded];
559
556
  }
560
557
  //#endregion
561
- //#region src/motion/layout/swap.ts
562
- const NO_RIDE = {
563
- x: 0,
564
- y: 0
565
- };
566
- /**
567
- * Before a change commits: hold `element`'s old content as one transient copy
568
- * (`spec:AST-105` FR8). With `isVisiblePart`, the copy is the element's
569
- * visible part, its content scrolled as it was (a scroll container). Returns
570
- * null without a handle, outside its area, under an immediate change, or for
571
- * content too large to copy.
572
- */
573
- function holdLayoutSwap(handle, element, { isVisiblePart = false } = {}) {
574
- if (handle == null || typeof element.animate !== "function") return null;
575
- const area = areaOf(handle, element);
576
- if (area == null || layoutMotion(area).kind === "instant" || !isCopyable(element)) return null;
577
- beginChange(element.ownerDocument);
578
- const box = element.getBoundingClientRect();
579
- if (!isVisiblePart) {
580
- const copy = inertCopy(element);
581
- return copy == null ? null : {
582
- area,
583
- copy,
584
- rect: box
585
- };
586
- }
587
- const part = visiblePartCopy(element);
588
- return part == null ? null : {
589
- area,
590
- ...part
591
- };
592
- }
593
- /**
594
- * After the change commits, before paint: the copy leaves while the incoming
595
- * elements enter, on FR4's one motion, every part started on the same
596
- * timeline time. Under Reduce Motion with a coarse pointer, only opacity
597
- * changes (`design:reduced-motion` DR2). Returns what ends the swap at once;
598
- * it also ends when its motion does, and the copy is removed.
599
- */
600
- function playLayoutSwap(swap, how) {
601
- const motion = layoutMotion(swap.area);
602
- if (motion.kind === "instant") return () => {};
603
- const { copy } = swap;
604
- const change = changeStartIn(swap.area, copy.ownerDocument);
605
- placeOver(copy, how.host, swap.rect, how.copyBefore ?? null);
606
- if (how.isOpaque === true) {
607
- if (how.copyBefore == null) copy.style.zIndex = "1";
608
- copy.style.backgroundColor = paintedBackground(copy);
609
- }
610
- const animations = [];
611
- let isDone = false;
612
- const end = () => {
613
- if (isDone) return;
614
- isDone = true;
615
- animations.forEach((animation) => animation.cancel());
616
- copy.remove();
617
- how.onEnd?.();
618
- };
619
- const { copyText, rideWith } = how;
620
- const fadedText = copyText != null && motion.kind === "glide" ? wrapText(copy) : [];
621
- const parts = [];
622
- if (motion.kind === "glide") {
623
- const moves = rideWith != null && rideWith.isCopyMoved !== false;
624
- parts.push([copy, (p, ride) => ({
625
- ...how.copy(p, ride),
626
- ...moves ? { translate: `${ride.x}px ${ride.y}px` } : null
627
- })]);
628
- for (const span of fadedText) parts.push([span, (p) => ({ opacity: copyText?.(p) ?? 1 })]);
629
- for (const { element, frames } of how.incoming) parts.push([element, frames]);
630
- } else {
631
- parts.push([copy, (p) => ({ opacity: 1 - p })]);
632
- for (const { element } of how.incoming) parts.push([element, (p) => ({ opacity: p })]);
633
- }
634
- const playAll = (durationMs, progressAt, rideAt, options, sample) => {
635
- for (const [element, shape] of parts) {
636
- const animation = safeAnimate(element, sample((t) => shape(progressAt(t), rideAt(t))), {
637
- duration: durationMs,
638
- fill: "both",
639
- ...options
640
- }, change);
641
- if (animation != null) animations.push(animation);
642
- }
643
- if (animations.length === 0) end();
644
- else animations[0].addEventListener?.("finish", end);
645
- };
646
- if (motion.kind === "fade") {
647
- playAll(motion.durationMs, (t) => t <= 0 ? 0 : 1, () => NO_RIDE, { easing: motion.easing }, (shape) => [shape(0), shape(motion.durationMs)]);
648
- return end;
649
- }
650
- const { progress } = motion;
651
- const progressAt = (t) => 1 - progress.remaining(t);
652
- if (rideWith == null) {
653
- playAll(progress.durationMs, progressAt, () => NO_RIDE, { easing: "linear" }, (shape) => sampleOver(progress.durationMs, shape));
654
- return end;
655
- }
656
- queueMicrotask(() => {
657
- if (isDone) return;
658
- const glide = glides.get(rideWith.element);
659
- const durationMs = glide?.durationMs ?? progress.durationMs;
660
- const rideAt = (t) => {
661
- if (glide == null) return {
662
- x: -rideWith.travel.x,
663
- y: -rideWith.travel.y
664
- };
665
- const now = glide.offsetAt(t);
666
- const start = glide.shownBefore;
667
- return {
668
- x: now.x - start.x,
669
- y: now.y - start.y
670
- };
671
- };
672
- playAll(durationMs, progressAt, rideAt, { easing: "linear" }, (shape) => sampleOver(durationMs, shape));
673
- });
674
- return end;
675
- }
676
- /**
677
- * After a change commits, before paint: elements the page already renders
678
- * play frames over the change's progress on FR4's one motion, with no copy,
679
- * such as a surface reaching over a gap a glide opens. Under Reduce Motion
680
- * with a coarse pointer, only opacity changes; under an immediate change,
681
- * nothing plays. Returns what ends them at once.
682
- */
683
- function playLayoutFrames(handle, parts) {
684
- const area = handle == null ? null : readArea(handle);
685
- const motion = area == null ? null : layoutMotion(area);
686
- if (area == null || motion == null || motion.kind === "instant") return () => {};
687
- const change = changeStartIn(area, area.ownerDocument);
688
- const animations = [];
689
- for (const { element, frames: shape } of parts) {
690
- const animation = motion.kind === "glide" ? safeAnimate(element, sampleKeyframes(motion.progress, (remaining) => shape(1 - remaining, NO_RIDE)), {
691
- duration: motion.progress.durationMs,
692
- easing: "linear",
693
- fill: "both"
694
- }, change) : safeAnimate(element, [{ opacity: 0 }, { opacity: 1 }], {
695
- duration: motion.durationMs,
696
- easing: motion.easing
697
- }, change);
698
- if (animation != null) animations.push(animation);
699
- }
700
- const end = () => animations.forEach((animation) => animation.cancel());
701
- animations[0]?.addEventListener?.("finish", end);
702
- return end;
703
- }
704
- //#endregion
705
- //#region src/SideNav/context.ts
706
- const sideNavRenderModeKey = Symbol("astryx-side-nav-render-mode");
707
- const defaultRenderMode = computed(() => "default");
708
- function useSideNavRenderMode() {
709
- return inject(sideNavRenderModeKey, defaultRenderMode);
710
- }
711
- const sideNavCollapseKey = Symbol("astryx-side-nav-collapse");
712
- const fallbackCollapse = {
713
- isCollapsed: ref(false),
714
- isCollapsible: ref(false),
715
- navId: "",
716
- toggle: () => {}
717
- };
718
- function useSideNavCollapse() {
719
- return inject(sideNavCollapseKey, fallbackCollapse);
720
- }
721
- /** Internal nesting depth; zero for top-level rows and the first rail flyout level. */
722
- const sideNavDepthKey = Symbol("astryx-side-nav-depth");
723
- function useSideNavDepth() {
724
- return inject(sideNavDepthKey, ref(0));
725
- }
726
- /** AppShell 借给里面的 SideNav:让内容区跟着侧栏的收展一起动。 */
727
- const sideNavShellKey = Symbol("astryx-side-nav-shell");
728
- //#endregion
729
- export { useSideNavCollapse as a, holdLayoutSwap as c, sideNavShellKey as i, playLayoutFrames as l, sideNavDepthKey as n, useSideNavDepth as o, sideNavRenderModeKey as r, useSideNavRenderMode as s, sideNavCollapseKey as t, playLayoutSwap as u };
558
+ export { restoreScrollOffsets as a, paintedBackground as c, placeOver as i, isCopyable as n, visiblePartCopy as o, keepInherited as r, wrapText as s, inertCopy as t };
@@ -1,8 +1,18 @@
1
1
  import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
2
+ import "./adaptationTypes-Cn_pfrsw.js";
3
+ import { ComputedRef, MaybeRefOrGetter } from "vue";
4
+ //#region src/composables/internal/presentation.d.ts
5
+ type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
6
+ //#endregion
2
7
  //#region src/Popover/types.d.ts
3
8
  type PopoverPlacement = LayerPlacement;
4
9
  type PopoverAlignment = LayerAlignment;
5
10
  type PopoverRole = 'dialog' | 'none';
11
+ /**
12
+ * 内容放在哪:锚定在触发器上、底部弹层,或自适应(紧凑触屏上用底部弹层,
13
+ * 其余用浮层)。
14
+ */
15
+ type PopoverPresentation = AdaptivePresentation;
6
16
  /** 内边距步进,对应 `--astryx-spacing-*` 令牌。 */
7
17
  type PopoverPadding = 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10;
8
18
  interface PopoverProps {
@@ -18,7 +28,7 @@ interface PopoverProps {
18
28
  width?: number | string;
19
29
  /** 浮层内边距步进。 */
20
30
  padding?: PopoverPadding;
21
- /** 对话框的无障碍名称。`role` 为 `dialog` 时应提供。 */
31
+ /** 对话框的无障碍名称。`role` 为 `dialog` 时应提供。没写时,底部弹层用触发器的文字命名。 */
22
32
  label?: string;
23
33
  /** `dialog` 为对话框,适用于包含交互内容的浮层;`none` 适用于内容自带角色的弹出列表或菜单。 */
24
34
  role?: PopoverRole;
@@ -39,6 +49,19 @@ interface PopoverProps {
39
49
  * 点击、`aria-haspopup` 等会直接挂到这个元素里的按钮上。
40
50
  */
41
51
  anchor?: HTMLElement | null;
52
+ /**
53
+ * 承载内容的界面。`'popover'` 锚定在触发器上;`'bottom-sheet'` 放进模态
54
+ * BottomSheet,由 `label` 命名;`'adaptive'` 在紧凑触屏(粗指针,并且屏幕按主题
55
+ * 算紧凑:窄于 `md` 宽度点或矮于 500px,横竖屏的手机都算)上用 BottomSheet,
56
+ * 其余用锚定浮层,和 iOS 在手机上呈现 popover 一样。
57
+ *
58
+ * 在底部弹层里,`placement`、`alignment`、`width`、`role`、`isModal`、
59
+ * `hasAutoFocus` 不生效,`padding` 是弹层内容的内边距;弹层总能轻点外面或向下
60
+ * 轻扫关闭(不管 `hasLightDismiss`),Escape 跟着 `hasEscapeDismiss`,后备关闭
61
+ * 按钮照样聚焦时才出现。界面在打开时选定,保持到关闭。
62
+ * @default 'popover'
63
+ */
64
+ presentation?: PopoverPresentation;
42
65
  }
43
66
  //#endregion
44
- export { PopoverRole as a, PopoverProps as i, PopoverPadding as n, PopoverPlacement as r, PopoverAlignment as t };
67
+ export { PopoverProps as a, PopoverPresentation as i, PopoverPadding as n, PopoverRole as o, PopoverPlacement as r, AdaptivePresentation as s, PopoverAlignment as t };
@@ -3,6 +3,8 @@ import { Component, VNode } from "vue";
3
3
  //#region src/Field/types.d.ts
4
4
  type FieldStatusType = 'error' | 'warning' | 'success';
5
5
  type FieldStatusVariant = 'attached' | 'detached';
6
+ /** 字段控件把状态说明放在哪:`attached`、`detached`,或 `tooltip`(不画说明框,由控件自己的状态图标按钮显示)。 */
7
+ type FieldStatusPlacement = FieldStatusVariant | 'tooltip';
6
8
  interface FieldStatusInput {
7
9
  type: FieldStatusType;
8
10
  message?: string;
@@ -33,7 +35,7 @@ interface FieldLabelProps {
33
35
  interface FieldProps extends FieldLabelProps {
34
36
  status?: FieldStatusInput;
35
37
  /** Tooltip leaves the message accessible but hides the inline status box. */
36
- statusVariant?: FieldStatusVariant | 'tooltip';
38
+ statusVariant?: FieldStatusPlacement;
37
39
  width?: number | string;
38
40
  }
39
41
  interface FieldStatusProps {
@@ -56,4 +58,4 @@ interface FieldSlots extends FieldLabelSlots {
56
58
  default: (props: FieldSlotProps) => VNode[];
57
59
  }
58
60
  //#endregion
59
- export { FieldSlots as a, FieldStatusType as c, FieldSlotProps as i, FieldStatusVariant as l, FieldLabelSlots as n, FieldStatusInput as o, FieldProps as r, FieldStatusProps as s, FieldLabelProps as t };
61
+ export { FieldSlots as a, FieldStatusProps as c, FieldSlotProps as i, FieldStatusType as l, FieldLabelSlots as n, FieldStatusInput as o, FieldProps as r, FieldStatusPlacement as s, FieldLabelProps as t, FieldStatusVariant as u };