@astryx-vue/core 0.31.0 → 0.32.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 (318) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CvNtu0Jd.js → AlertDialog-JmxbMkeV.js} +8 -8
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-BmX6wqba.js → AppShell-mWlY4pE3.js} +4 -6
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-IVvsyeGV.js → Avatar-B-gSpEw4.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-Dd-yDDNz.js → AvatarGroup-CCFMtKks.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-DKmvoMxD.js → Banner-BJETFZr7.js} +1 -1
  13. package/dist/BottomSheet/index.d.ts +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-BZ_yFoKC.js → BottomSheet-C6pQBvnU.js} +10 -38
  16. package/dist/{BottomSheet-B8_znPYE.js → BottomSheet-C_LoskZt.js} +3 -3
  17. package/dist/Breadcrumbs/index.d.ts +2 -2
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-CJpvbZsf.js → Breadcrumbs-D05OmNfd.js} +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/{Button-DdPty46q.js → Button-X7k1WCkW.js} +4 -4
  23. package/dist/ButtonGroup/index.d.ts +1 -1
  24. package/dist/ButtonGroup/index.js +1 -1
  25. package/dist/{ButtonGroup-oI99JAyN.js → ButtonGroup-D5E7QLWI.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-BNr79JpP.js → Carousel-Bpbx-2DK.js} +1 -1
  30. package/dist/Chat/index.d.ts +1 -1
  31. package/dist/Chat/index.js +1 -1
  32. package/dist/{Chat-BadS0fEx.js → Chat-D7Q2z9W2.js} +11 -11
  33. package/dist/CheckboxInput/index.d.ts +1 -1
  34. package/dist/CheckboxInput/index.js +1 -1
  35. package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-Cxtmdymo.js} +3 -3
  36. package/dist/CheckboxList/index.d.ts +1 -1
  37. package/dist/CheckboxList/index.js +1 -1
  38. package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-DJrx97cA.js} +5 -5
  39. package/dist/ClickableCard/index.d.ts +1 -1
  40. package/dist/ClickableCard/index.js +1 -1
  41. package/dist/{ClickableCard-B86P2aiM.js → ClickableCard-CLXCxaxo.js} +1 -1
  42. package/dist/Code/index.js +1 -1
  43. package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-Bgxy15iD.js} +1 -1
  44. package/dist/Collapsible/index.js +1 -1
  45. package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf5zttC-.js} +2 -3
  46. package/dist/CommandPalette/index.js +1 -1
  47. package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-CniaCqex.js} +2 -2
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-vna5wtig.js → ComplexSelector-DYeYZKON.js} +2 -2
  50. package/dist/ContextMenu/index.d.ts +2 -2
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-CE-FnLI6.js → ContextMenu-CLCgJG0C.js} +167 -142
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-BCasoeIj.js → DateInput-BmEbQA1z.js} +10 -10
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-Bi97pjDX.js → DateRangeInput-CoA1PuGz.js} +5 -5
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-CKnvjLhi.js → DateTimeInput-CL0sp0ES.js} +5 -5
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-BN-NycQr.js → Dialog-C46xHdDO.js} +1 -1
  64. package/dist/{Dialog-Dt0gNuMT.js → Dialog-uzq24bX_.js} +2 -2
  65. package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-E0auaRKt.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-PeMgE4iA.js → Drawer-DfhhdBMZ.js} +2 -2
  70. package/dist/DropdownMenu/index.d.ts +2 -2
  71. package/dist/DropdownMenu/index.js +2 -3
  72. package/dist/{DropdownMenu-aYOIh9gZ.js → DropdownMenu-BWgt12MZ.js} +1083 -555
  73. package/dist/{DropdownMenuRadioItem.vue-C8rePTyz.d.ts → DropdownMenuRadioItem.vue-B4iwMWWD.d.ts} +16 -0
  74. package/dist/EmptyState/index.js +1 -1
  75. package/dist/{EmptyState-BGo1nrnT.js → EmptyState-C8WQltQk.js} +2 -2
  76. package/dist/Field/index.js +3 -3
  77. package/dist/{Field-D-fRqyso.js → Field-CrnwM-2A.js} +1 -1
  78. package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DqQP1T-d.js} +1 -1
  79. package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CLxclKT2.js} +1 -1
  80. package/dist/FileInput/index.js +1 -1
  81. package/dist/{FileInput-CTNnDIkm.js → FileInput-BHFjo_zo.js} +3 -3
  82. package/dist/Heading/index.d.ts +1 -1
  83. package/dist/Heading/index.js +1 -1
  84. package/dist/{Heading-BFK3PftX.js → Heading-jYno4L3t.js} +1 -1
  85. package/dist/HoverCard/index.d.ts +1 -1
  86. package/dist/HoverCard/index.js +1 -1
  87. package/dist/{HoverCard-DGjsPn-Q.js → HoverCard-D_6idU4r.js} +4 -4
  88. package/dist/IconButton/index.js +1 -1
  89. package/dist/{IconButton-DPezhVBA.js → IconButton-B6m42AlL.js} +1 -1
  90. package/dist/InfoTip/index.d.ts +1 -1
  91. package/dist/InfoTip/index.js +1 -1
  92. package/dist/{InfoTip-B4BFfLtT.js → InfoTip-CUkTHca2.js} +2 -2
  93. package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-s_MEW25n.js} +1 -1
  94. package/dist/InputGroup/index.js +1 -1
  95. package/dist/{InputGroup-CraWGK6Y.js → InputGroup-42PbUmg-.js} +1 -1
  96. package/dist/InternationalizationProvider/index.js +1 -1
  97. package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
  98. package/dist/{Item-C9u_kQUO.js → Item-C9Cs0Jqr.js} +1 -1
  99. package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-XvH9wmdg.js} +1 -1
  100. package/dist/Layout/index.d.ts +1 -1
  101. package/dist/Layout/index.js +2 -2
  102. package/dist/{Layout-094k14rN.js → Layout-tU7e1J1I.js} +1 -1
  103. package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-D8t8F-sl.js} +22 -2
  104. package/dist/Lightbox/index.js +1 -1
  105. package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-Bur4pvRo.js} +2 -2
  106. package/dist/Link/index.d.ts +1 -1
  107. package/dist/Link/index.js +1 -1
  108. package/dist/{Link-Bwgpn-di.js → Link-DVslj_GH.js} +2 -2
  109. package/dist/List/index.d.ts +1 -1
  110. package/dist/List/index.js +2 -2
  111. package/dist/{ListItem-_lOmngHp.js → ListItem-DOFfdRA_.js} +2 -2
  112. package/dist/Markdown/index.js +1 -1
  113. package/dist/{Markdown-BlEi5UGN.js → Markdown-Baq5r2Mp.js} +3 -3
  114. package/dist/MetadataList/index.d.ts +1 -1
  115. package/dist/MobileNav/index.js +1 -1
  116. package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-BV3fmVmO.js} +2 -2
  117. package/dist/MoreMenu/index.d.ts +1 -1
  118. package/dist/MoreMenu/index.js +1 -1
  119. package/dist/{MoreMenu-CXshllJj.js → MoreMenu-COSDjYyl.js} +45 -16
  120. package/dist/MultiSelector/index.d.ts +1 -1
  121. package/dist/MultiSelector/index.js +1 -1
  122. package/dist/{MultiSelector-Bs3Imw6k.js → MultiSelector-eJSx3iZR.js} +8 -8
  123. package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-B8G8t325.js} +1 -1
  124. package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-BkNP_1au.js} +1 -1
  125. package/dist/NavItem/index.d.ts +1 -1
  126. package/dist/NavItem/index.js +1 -1
  127. package/dist/{NavItem-D4xHjSTo.js → NavItem-B7xpLk_x.js} +1 -1
  128. package/dist/NavMenu/index.js +3 -3
  129. package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-C6OU4a5Z.js} +3 -3
  130. package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BZuajqYL.js} +3 -3
  131. package/dist/NumberInput/index.d.ts +1 -1
  132. package/dist/NumberInput/index.js +1 -1
  133. package/dist/{NumberInput-DicgvFte.js → NumberInput-Dd4QQGZp.js} +3 -3
  134. package/dist/Outline/index.js +1 -1
  135. package/dist/{Outline-CnSt_KvS.js → Outline-coqRQ06s.js} +4 -3
  136. package/dist/OverflowList/index.d.ts +1 -1
  137. package/dist/OverflowList/index.js +1 -1
  138. package/dist/{OverflowList-BYYz3ePw.js → OverflowList-DS7cmNsr.js} +2 -2
  139. package/dist/Pagination/index.d.ts +1 -1
  140. package/dist/Pagination/index.js +1 -1
  141. package/dist/{Pagination-kJhH6sPF.js → Pagination-BWPJfO4_.js} +2 -2
  142. package/dist/Popover/index.d.ts +1 -1
  143. package/dist/Popover/index.js +1 -1
  144. package/dist/{Popover-CqL_AXQB.js → Popover-DnrZk22Y.js} +8 -8
  145. package/dist/PowerSearch/index.d.ts +1 -1
  146. package/dist/PowerSearch/index.js +1 -1
  147. package/dist/{PowerSearch-Ff2n7eJ2.js → PowerSearch-CDwASKYp.js} +27 -27
  148. package/dist/ProgressBar/index.d.ts +1 -1
  149. package/dist/ProgressBar/index.js +1 -1
  150. package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-C-HzrG8T.js} +1 -1
  151. package/dist/Radio/index.d.ts +1 -1
  152. package/dist/Radio/index.js +1 -1
  153. package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-B-AkUDI8.js} +4 -4
  154. package/dist/RadioList/index.d.ts +1 -1
  155. package/dist/RadioList/index.js +1 -1
  156. package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-DhmF7YNL.js} +1 -1
  157. package/dist/Resizable/index.d.ts +1 -1
  158. package/dist/Resizable/index.js +1 -1
  159. package/dist/{ResizeHandle-BMSbAFdP.js → ResizeHandle-CcS-NP4r.js} +21 -4
  160. package/dist/ScrollableArea/index.d.ts +1 -1
  161. package/dist/SegmentedControl/index.js +1 -1
  162. package/dist/{SegmentedControl-C-F5dkcG.js → SegmentedControl-BdbqWErg.js} +2 -2
  163. package/dist/SelectableCard/index.d.ts +1 -1
  164. package/dist/SelectableCard/index.js +1 -1
  165. package/dist/{SelectableCard-CwfpgsS8.js → SelectableCard-YzN6trLf.js} +1 -1
  166. package/dist/Selector/index.d.ts +1 -1
  167. package/dist/Selector/index.js +1 -1
  168. package/dist/{Selector-DgzSGUul.js → Selector-BNr_kb6Q.js} +6 -6
  169. package/dist/SideNav/index.d.ts +1 -1
  170. package/dist/SideNav/index.js +2 -2
  171. package/dist/{SideNav-DNQZ8l6b.js → SideNav-DnoR_4ml.js} +9 -11
  172. package/dist/Slider/index.js +1 -1
  173. package/dist/{Slider-Bq_7Nskr.js → Slider-DaHQhbA7.js} +2 -2
  174. package/dist/Stack/index.d.ts +1 -1
  175. package/dist/StatusDot/index.js +1 -1
  176. package/dist/{StatusDot-DFJavm30.js → StatusDot-B7T0et3H.js} +1 -1
  177. package/dist/Stepper/index.d.ts +1 -1
  178. package/dist/Stepper/index.js +1 -1
  179. package/dist/{Stepper-CWluGqBs.js → Stepper-C3ZFN-Gp.js} +1 -1
  180. package/dist/Switch/index.d.ts +1 -1
  181. package/dist/Switch/index.js +1 -1
  182. package/dist/{Switch-DTPvMAxd.js → Switch-B8HRxp3u.js} +2 -2
  183. package/dist/TabList/index.d.ts +1 -1
  184. package/dist/TabList/index.js +1 -1
  185. package/dist/{TabList-C4i7UZkp.js → TabList-BOQ0bvE3.js} +3 -3
  186. package/dist/Table/index.d.ts +2 -2
  187. package/dist/Table/index.js +1 -1
  188. package/dist/{Table-CqAV7l7W.js → Table-CoWGEhzQ.js} +13 -15
  189. package/dist/Text/index.d.ts +1 -1
  190. package/dist/Text/index.js +1 -1
  191. package/dist/{Text-D48QFTtL.js → Text-DqiV40AF.js} +1 -1
  192. package/dist/TextArea/index.d.ts +1 -1
  193. package/dist/TextArea/index.js +1 -1
  194. package/dist/{TextArea-J2_wct0p.js → TextArea-Vrx7Os5P.js} +4 -4
  195. package/dist/TextInput/index.d.ts +1 -1
  196. package/dist/TextInput/index.js +1 -1
  197. package/dist/{TextInput-Da1TYd57.js → TextInput-DOeUROX8.js} +4 -4
  198. package/dist/Thumbnail/index.js +1 -1
  199. package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-BF53Z6jm.js} +3 -3
  200. package/dist/{TimeField-ojhX2ZOj.js → TimeField-CkGXOHTG.js} +4 -4
  201. package/dist/TimeInput/index.d.ts +1 -1
  202. package/dist/TimeInput/index.js +1 -1
  203. package/dist/{TimeInput-CfeDP72M.js → TimeInput-DCksf1di.js} +2 -2
  204. package/dist/Timer/index.js +1 -1
  205. package/dist/{Timer-DgQdZAEa.js → Timer-DDrODKow.js} +1 -1
  206. package/dist/Timestamp/index.d.ts +1 -1
  207. package/dist/Timestamp/index.js +1 -1
  208. package/dist/{Timestamp-SseS_qtf.js → Timestamp-CCzREXNN.js} +3 -3
  209. package/dist/Toast/index.js +1 -1
  210. package/dist/{Toast-yUVFaZiJ.js → Toast-CoAEdN_I.js} +2 -2
  211. package/dist/ToggleButton/index.d.ts +1 -1
  212. package/dist/ToggleButton/index.js +1 -1
  213. package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-DAW-pV4r.js} +3 -3
  214. package/dist/Token/index.d.ts +1 -1
  215. package/dist/Token/index.js +1 -1
  216. package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
  217. package/dist/Tokenizer/index.js +1 -1
  218. package/dist/{Tokenizer-nSEekhN1.js → Tokenizer-DsPtN6tZ.js} +13 -13
  219. package/dist/Toolbar/index.d.ts +2 -2
  220. package/dist/Tooltip/index.d.ts +1 -1
  221. package/dist/Tooltip/index.js +2 -2
  222. package/dist/{Tooltip-CxzlUVN0.js → Tooltip-DhV7MkwU.js} +1 -1
  223. package/dist/TopNav/index.d.ts +1 -1
  224. package/dist/TopNav/index.js +1 -1
  225. package/dist/{TopNav-CcIayfsW.js → TopNav-Djli-IEz.js} +5 -5
  226. package/dist/TreeList/index.d.ts +1 -1
  227. package/dist/TreeList/index.js +1 -1
  228. package/dist/{TreeList-CsgXzBdm.js → TreeList-CqJ3xfhB.js} +3 -4
  229. package/dist/Typeahead/index.js +2 -2
  230. package/dist/{Typeahead-BD6xXNKh.js → Typeahead-Dowds5Z-.js} +6 -6
  231. package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
  232. package/dist/{useMenuDrillIn-CMsgOcDP.js → accessibleName-CINO01Ek.js} +117 -27
  233. package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
  234. package/dist/{assertOptions-DHfonaBU.js → assertOptions-BCEzojGr.js} +1 -1
  235. package/dist/composables/index.d.ts +3 -3
  236. package/dist/composables/index.js +13 -13
  237. package/dist/{composables-CVvk9709.js → composables-B7FrCjk6.js} +11 -7
  238. package/dist/{context-ZWA02GaM.js → context-C_rX8KGX.js} +1 -2
  239. package/dist/cssValues-Cr6PhYTx.js +223 -0
  240. package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
  241. package/dist/{index-DH_xZI84.d.ts → index-B-Z4GL8g.d.ts} +2 -2
  242. package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
  243. package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
  244. package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
  245. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  246. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  247. package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
  248. package/dist/{index-DVX2jlTQ.d.ts → index-CUuUoX3h.d.ts} +1 -1
  249. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  250. package/dist/{index-C_iTVOHQ.d.ts → index-CilCxEvD.d.ts} +1 -1
  251. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  252. package/dist/{index-ZKBj_1nu.d.ts → index-D8l_CmL-.d.ts} +1 -1
  253. package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
  254. package/dist/{index-DtY_R6Oh.d.ts → index-DIkdln91.d.ts} +2 -2
  255. package/dist/{index-Bh-GqMzd.d.ts → index-DLE-sASO.d.ts} +31 -3
  256. package/dist/{index-Q1oG9yIT.d.ts → index-DPklTi3o.d.ts} +1 -1
  257. package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
  258. package/dist/{index-CG6dbyeb.d.ts → index-DoYrlaEI.d.ts} +3 -3
  259. package/dist/{index-CuW4AQ7M.d.ts → index-In41wHf3.d.ts} +2 -2
  260. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  261. package/dist/{index-Dp6MmjIo.d.ts → index-Rz4jwv4Q.d.ts} +52 -52
  262. package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  263. package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
  264. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  265. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  266. package/dist/index.d.ts +29 -29
  267. package/dist/index.js +110 -110
  268. package/dist/{batch-DPlrpYU6.js → landing-DrnLUanQ.js} +812 -4
  269. package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-BdZX0xSD.js} +2 -2
  270. package/dist/lazyBottomSheet-BUXYsz28.js +25 -0
  271. package/dist/linearEasing-BxWjPql6.js +282 -0
  272. package/dist/locale/index.js +3 -3
  273. package/dist/{locale-CVpkedoa.js → locale-C9LWi1y1.js} +1 -1
  274. package/dist/{menuActivation-BqiaK6ot.js → menuActivation-BQqnzKAX.js} +8 -1
  275. package/dist/{pressFeedback-9dqGYjxv.js → pressFeedback-CPzGi_88.js} +2 -1
  276. package/dist/pressGesture-BV4fYPIG.js +103 -0
  277. package/dist/resizableChannel-BeoqCSou.js +387 -0
  278. package/dist/resolveMotion-BLdMNTpf.js +117 -0
  279. package/dist/resolveSnapPoint-DygD-wmL.js +110 -0
  280. package/dist/roles-CPMsH5Ob.js +196 -0
  281. package/dist/rubberBand-DecgmtDj.js +123 -0
  282. package/dist/{resolveSnapPoint-DdZyBkT4.js → springs-BR66JuIm.js} +2 -182
  283. package/dist/{stillPointerGate-BbMABRyU.js → stillPointerGate-BChxtcd6.js} +1 -1
  284. package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
  285. package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
  286. package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-CKfpQu9d.js} +1 -1
  287. package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
  288. package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-B_mZd526.js} +1 -1
  289. package/dist/{useAttachment-BuNyeUXy.js → useAttachment-BohgLE3o.js} +3 -3
  290. package/dist/{useCombobox-BqkTY3bw.js → useCombobox-BYRrwLe-.js} +1 -1
  291. package/dist/{useDismiss-BKtyCwx4.js → useDismiss-Qq0hUJoO.js} +1 -1
  292. package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-CX-qEF-G.js} +1 -1
  293. package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
  294. package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-DDvcJNRd.js} +72 -5
  295. package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
  296. package/dist/{useResizable-hv4NYIUi.js → useResizable-BIaZZDJ2.js} +411 -85
  297. package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
  298. package/dist/{useTooltip-DvBKna-w.js → useTooltip-CgJi5QQW.js} +4 -4
  299. package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
  300. package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
  301. package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-x1cQd8of.js} +3 -3
  302. package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-CZuT8Niw.js} +1 -1
  303. package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
  304. package/package.json +1 -1
  305. package/styles/dropdown-menu.css +5 -0
  306. package/styles/resize-handle.css +2 -0
  307. package/dist/DropdownMenu-B_KDdI8P.js +0 -489
  308. package/dist/edge-DFaE6rUg.js +0 -164
  309. package/dist/edgeRide-UdNxbwxY.js +0 -500
  310. package/dist/handle-CwxCHapJ.js +0 -22
  311. package/dist/landing-CSCE9afT.js +0 -105
  312. package/dist/lazyBottomSheet-CbU1Pnfk.js +0 -16
  313. package/dist/linearEasing-BiRVC8Mq.js +0 -98
  314. package/dist/resizableChannel-LElsNkSY.js +0 -33
  315. package/dist/resolveMotion-B9NDPeUz.js +0 -508
  316. package/dist/useSubmenuMode-CZN9qrUo.js +0 -37
  317. package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
  318. package/dist/{loadCatalog-FwMzmCx1.js → loadCatalog-zJKVLZ89.js} +1 -1
@@ -1,98 +0,0 @@
1
- import { v as registerMotionTable } from "./pressGesture-BzIBmKF2.js";
2
- //#region src/motion/uikit/timing.ts
3
- /**
4
- * @file timing.ts
5
- * @input Nothing; data only
6
- * @output Exports `timing`: the non-spring clocks and curves UIKit uses
7
- * (press highlight onset, flash and fade, Core Animation's named Bézier
8
- * curves, the navigation bar hide/show duration, the keyboard
9
- * notification duration, the Reduced Motion cross-fade)
10
- * @position The timing domain of the UIKit constants table (motion/uikit)
11
- *
12
- * Every leaf carries one or more `@source` (apple-docs | wwdc | webkit |
13
- * measured | GUESS); webkit and GUESS values also carry the `@measure` task
14
- * that will confirm or replace them (MEASUREMENTS.md). uikit.test.ts
15
- * enforces both.
16
- *
17
- * Durations are in ms (the unit of pointer-event timestamps, which these
18
- * clocks are compared against); curves are cubic-bézier control points
19
- * [x1, y1, x2, y2].
20
- */
21
- /**
22
- * The Reduce Motion fade, its own export so the animator reads it without
23
- * the rest of the table (`architecture:component-style-authoring` INV6).
24
- * `timing` composes it under its table paths, `reducedMotionCrossFadeMs` and
25
- * `curves.move`, so their roles are unchanged.
26
- */
27
- const reducedMotionCrossFade = {
28
- /**
29
- * The Reduced Motion cross-fade, in ms, on `curves.move`: under
30
- * Reduce Motion an entrance, exit, presentation switch or state change
31
- * becomes an opacity-only cross-fade of this length on a coarse pointer
32
- * (design:reduced-motion DR2 caps it at 200 ms, by owner decision DEC-1
33
- * of 2026-10-24, departing from UIKit's own navigation cross-fade,
34
- * measured below at 0.5 s). Not a role: nothing lengthens it (DR4).
35
- * @source apple-docs https://developer.apple.com/documentation/uikit/uiaccessibility/preferscrossfadetransitions
36
- * (the setting)
37
- * @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
38
- * iPhone 17 Pro, CAAnimation dump with Reduce Motion and Prefer
39
- * Cross-Fade Transitions on (opacity CABasicAnimation 0.5 s,
40
- * (0.42, 0, 0.58, 1)), Oct 23 2026
41
- */
42
- durationMs: 200,
43
- /**
44
- * `easeInEaseOut`; UIKit's default curve (`UIView.AnimationCurve
45
- * .easeInOut`, "the default curve for most animations").
46
- * @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/easeineaseout
47
- * @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
48
- * iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
49
- * Oct 23 2026
50
- */
51
- curve: [
52
- .42,
53
- 0,
54
- .58,
55
- 1
56
- ]
57
- };
58
- const { durationMs: reducedMotionCrossFadeMs, curve: move } = reducedMotionCrossFade;
59
- const reducedMotionCrossFadeRoles = { curves: { move } };
60
- /**
61
- * Registers only the Reduce Motion fade's curve as its role,
62
- * `timing.curves.move`, for code that reads the fade without the rest of the
63
- * table (the animator, reducedMotionFade()). The fade's length is not a role.
64
- */
65
- function registerReducedMotionCrossFade() {
66
- registerMotionTable("timing", reducedMotionCrossFadeRoles, { roles: ["curves.move"] });
67
- }
68
- //#endregion
69
- //#region src/motion/linearEasing.ts
70
- /**
71
- * @file linearEasing.ts
72
- * @input A duration and the fraction of a move done at each time
73
- * @output Exports `linearEasing`, that curve as CSS `linear()` easing text,
74
- * and `sampleCount`, how many samples cover a duration at 60 per second
75
- * @position Pure math under the motion helpers; no DOM, no React
76
- */
77
- /** Samples per second of a sampled curve: one per frame at 60 Hz. */
78
- const SAMPLES_PER_SECOND = 60;
79
- /** How many samples cover `durationMs`, both ends included: at least 2. */
80
- function sampleCount(durationMs) {
81
- return Math.max(2, Math.ceil(durationMs / 1e3 * SAMPLES_PER_SECOND) + 1);
82
- }
83
- /**
84
- * The curve `done` traces over `durationMs` as CSS `linear()` easing text,
85
- * one stop per frame. `done(t)` is the fraction of the move done `t` ms in.
86
- * A CSS transition with this easing and duration follows the curve.
87
- */
88
- function linearEasing(durationMs, done) {
89
- const count = sampleCount(durationMs);
90
- const stops = [];
91
- for (let i = 0; i < count; i++) {
92
- const value = done(i / (count - 1) * durationMs);
93
- stops.push(String(Math.round(value * 1e4) / 1e4));
94
- }
95
- return `linear(${stops.join(", ")})`;
96
- }
97
- //#endregion
98
- export { registerReducedMotionCrossFade as i, sampleCount as n, reducedMotionCrossFade as r, linearEasing as t };
@@ -1,33 +0,0 @@
1
- //#region src/composables/internal/resizableChannel.ts
2
- /**
3
- * Enter 和双击要恢复折叠前的尺寸。这个能力不放进导出的 `ResizableProps`,
4
- * 手写的 props 没有登记,手柄就退回「收到最小值」。
5
- */
6
- const collapseControls = /* @__PURE__ */ new WeakMap();
7
- /** 没有配置上限时,分隔条要报的那个最大值。手写 props 不在这张表里。 */
8
- const effectiveMaxima = /* @__PURE__ */ new WeakMap();
9
- function registerResizableChannel(props, controls, effectiveMax) {
10
- collapseControls.set(props, controls);
11
- if (effectiveMax != null && Number.isFinite(effectiveMax)) effectiveMaxima.set(props, effectiveMax);
12
- }
13
- function getCollapseControls(props) {
14
- return collapseControls.get(props);
15
- }
16
- function getEffectiveMaxPx(props) {
17
- return effectiveMaxima.get(props);
18
- }
19
- /** `resizable` 传的是 `useResizable()` 的返回值(带着 `props`)还是它的 `props`,统一取出 `props`。 */
20
- function resizablePropsOf(value) {
21
- return isResizableRegion(value) ? value.props : value;
22
- }
23
- function isResizableRegion(value) {
24
- const region = value;
25
- return typeof region.collapse === "function" && typeof region.expand === "function" && region.props?._isResizableProps === true;
26
- }
27
- /** 面板旁边紧挨着的那个分隔条:起始侧面板在它后面,结束侧面板在它前面。 */
28
- function resizeHandleBeside(panel, area) {
29
- const sibling = area === "end" ? panel.previousElementSibling : panel.nextElementSibling;
30
- return sibling instanceof HTMLElement && sibling.getAttribute("role") === "separator" ? sibling : null;
31
- }
32
- //#endregion
33
- export { resizeHandleBeside as a, resizablePropsOf as i, getEffectiveMaxPx as n, registerResizableChannel as r, getCollapseControls as t };
@@ -1,508 +0,0 @@
1
- import { b as isSpring, h as motionRoleOf, m as motionRoleIn } from "./pressGesture-BzIBmKF2.js";
2
- import { t as linearEasing } from "./linearEasing-BiRVC8Mq.js";
3
- //#region src/motion/springParameters.ts
4
- /**
5
- * @file springParameters.ts
6
- * @output The `Spring` model and the conversions between Apple's spring
7
- * vocabularies (duration and bounce, response and damping ratio, mass,
8
- * stiffness and damping), and UIKit's relative velocity
9
- * @position Pure math under spring.ts, which re-exports all of it. See
10
- * spring.ts for the sources of each conversion.
11
- */
12
- const TAU = 2 * Math.PI;
13
- function assertPositiveFinite(name, value) {
14
- if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
15
- }
16
- /**
17
- * SwiftUI's `Spring(duration:bounce:)` and UIKit's
18
- * `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
19
- * clamped to SwiftUI's documented range (−1, 1].
20
- *
21
- * @example
22
- * ```
23
- * springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
24
- * ```
25
- */
26
- function springFromDurationBounce({ duration, bounce }) {
27
- assertPositiveFinite("duration", duration);
28
- if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
29
- const b = Math.min(1, Math.max(-.999999, bounce));
30
- return {
31
- mass: 1,
32
- stiffness: (TAU / duration) ** 2,
33
- damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
34
- };
35
- }
36
- /**
37
- * SwiftUI's `Spring(response:dampingRatio:)` and
38
- * `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
39
- * kept, as SwiftUI keeps it for this initializer.
40
- */
41
- function springFromResponse({ response, dampingRatio }) {
42
- assertPositiveFinite("response", response);
43
- if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
44
- const omega = TAU / response;
45
- return {
46
- mass: 1,
47
- stiffness: omega * omega,
48
- damping: 2 * dampingRatio * omega
49
- };
50
- }
51
- /**
52
- * `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
53
- * / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
54
- * an overdamped spring is treated as critically damped unless
55
- * `allowOverdamping` is set: "a value of false specifies that such cases
56
- * should instead be treated as critically damped".
57
- */
58
- function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
59
- assertPositiveFinite("mass", mass);
60
- assertPositiveFinite("stiffness", stiffness);
61
- if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
62
- const critical = 2 * Math.sqrt(stiffness * mass);
63
- return {
64
- mass,
65
- stiffness,
66
- damping: allowOverdamping ? damping : Math.min(damping, critical)
67
- };
68
- }
69
- /** Undamped angular frequency ω₀ = √(k/m), rad/s. */
70
- function naturalFrequency(spring) {
71
- return Math.sqrt(spring.stiffness / spring.mass);
72
- }
73
- /** Damping ratio ζ = c / (2·√(k·m)). */
74
- function dampingRatioOf(spring) {
75
- return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
76
- }
77
- /**
78
- * Normalizes a description to the physical `Spring`. A physical description
79
- * gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
80
- * SwiftUI and Core Animation do by default.
81
- */
82
- function toSpring(description) {
83
- if ("stiffness" in description) return springFromPhysics(description);
84
- if ("bounce" in description) return springFromDurationBounce(description);
85
- return springFromResponse(description);
86
- }
87
- //#endregion
88
- //#region src/motion/spring.ts
89
- /**
90
- * Closed-form solution of the spring released at `from` with
91
- * `initialVelocity` (units/s), heading for `to`.
92
- *
93
- * @example
94
- * ```
95
- * const curve = solveSpring(springFromDurationBounce({duration: 0.5, bounce: 0}), {from: 0, to: 300});
96
- * curve.value(0.1); // px after 100 ms
97
- * ```
98
- */
99
- function solveSpring(spring, { from, to, velocity: initialVelocity = 0 }) {
100
- const omega0 = naturalFrequency(spring);
101
- const zeta = dampingRatioOf(spring);
102
- const x0 = from - to;
103
- const v0 = initialVelocity;
104
- let displacement;
105
- let speed;
106
- let envelope;
107
- let envelopePeak = 0;
108
- if (zeta < .999999) {
109
- const decay = zeta * omega0;
110
- const omegaD = omega0 * Math.sqrt(1 - zeta * zeta);
111
- const a = x0;
112
- const b = (v0 + decay * x0) / omegaD;
113
- const bv = (decay * v0 + omega0 * omega0 * x0) / omegaD;
114
- displacement = (t) => Math.exp(-decay * t) * (a * Math.cos(omegaD * t) + b * Math.sin(omegaD * t));
115
- speed = (t) => Math.exp(-decay * t) * (v0 * Math.cos(omegaD * t) - bv * Math.sin(omegaD * t));
116
- const amplitude = Math.abs(a) + Math.abs(b);
117
- envelope = (t) => amplitude * Math.exp(-decay * t);
118
- } else if (zeta <= 1.000001) {
119
- const b = v0 + omega0 * x0;
120
- displacement = (t) => (x0 + b * t) * Math.exp(-omega0 * t);
121
- speed = (t) => (v0 - omega0 * b * t) * Math.exp(-omega0 * t);
122
- const absA = Math.abs(x0);
123
- const absB = Math.abs(b);
124
- envelope = (t) => (absA + absB * t) * Math.exp(-omega0 * t);
125
- envelopePeak = absB > 0 ? Math.max(0, 1 / omega0 - absA / absB) : 0;
126
- } else {
127
- const root = omega0 * Math.sqrt(zeta * zeta - 1);
128
- const r1 = -zeta * omega0 + root;
129
- const r2 = -zeta * omega0 - root;
130
- const c1 = (v0 - r2 * x0) / (r1 - r2);
131
- const c2 = x0 - c1;
132
- displacement = (t) => c1 * Math.exp(r1 * t) + c2 * Math.exp(r2 * t);
133
- speed = (t) => r1 * c1 * Math.exp(r1 * t) + r2 * c2 * Math.exp(r2 * t);
134
- const absC1 = Math.abs(c1);
135
- const absC2 = Math.abs(c2);
136
- envelope = (t) => absC1 * Math.exp(r1 * t) + absC2 * Math.exp(r2 * t);
137
- }
138
- const settleTime = (threshold) => {
139
- if (!(threshold > 0)) return Infinity;
140
- if (zeta === 0) return x0 === 0 && v0 === 0 ? 0 : Infinity;
141
- const start = envelopePeak;
142
- if (envelope(start) <= threshold) return 0;
143
- if (zeta < .999999) {
144
- const amplitude = envelope(0);
145
- return Math.log(amplitude / threshold) / (zeta * omega0);
146
- }
147
- let lo = start;
148
- let hi = Math.max(start, 1 / omega0);
149
- while (envelope(hi) > threshold) {
150
- lo = hi;
151
- hi *= 2;
152
- if (hi > 1e6) return Infinity;
153
- }
154
- for (let i = 0; i < 100 && hi - lo > 1e-12; i++) {
155
- const mid = (lo + hi) / 2;
156
- if (envelope(mid) > threshold) lo = mid;
157
- else hi = mid;
158
- }
159
- return hi;
160
- };
161
- return {
162
- spring,
163
- from,
164
- to,
165
- initialVelocity,
166
- value: (t) => to + displacement(t),
167
- velocity: (t) => speed(t),
168
- settleTime
169
- };
170
- }
171
- //#endregion
172
- //#region src/motion/engine/constants.ts
173
- const PROPERTIES = [
174
- "x",
175
- "y",
176
- "rotate",
177
- "scaleX",
178
- "scaleY",
179
- "opacity"
180
- ];
181
- /** The axes momentum moves: `decay` takes only these (DR2, DEC-2). */
182
- const DECAY_PROPERTIES = ["x", "y"];
183
- const IDENTITY = {
184
- x: 0,
185
- y: 0,
186
- rotate: 0,
187
- scaleX: 1,
188
- scaleY: 1,
189
- opacity: 1
190
- };
191
- /**
192
- * Keyframes are added until linear interpolation is within this: a quarter of
193
- * a device pixel (this quarter of a CSS pixel, divided by the device pixel
194
- * ratio where it is above 1), a twentieth of a degree, a 2000th of the size,
195
- * about one step of an 8-bit alpha. Every one is below what a moving element
196
- * can show.
197
- */
198
- const SAMPLE_TOLERANCE = {
199
- x: .25,
200
- y: .25,
201
- rotate: .05,
202
- scaleX: 5e-4,
203
- scaleY: 5e-4,
204
- opacity: .004
205
- };
206
- /** Keyframes start on this grid (ms) and are split where the curve needs it. */
207
- const SAMPLE_GRID_MS = 1e3 / 30;
208
- /** A curve that has not settled by then (an undamped spring) snaps. */
209
- const MAX_DURATION_MS = 3e4;
210
- /**
211
- * How close a spring's target and a value must be to count as the same, in
212
- * the property's own units. Only float rounding separates two ways of
213
- * computing one value, far below anything the screen shows.
214
- */
215
- const SAME_VALUE = 1e-6;
216
- /** Above this many keyframes the tolerance is relaxed. */
217
- const MAX_KEYFRAMES = 1200;
218
- /**
219
- * The keyframes hold the end state this long after a curve ends. An engine
220
- * whose compositor ends an animation while the main thread is blocked falls
221
- * back to the value its main thread last committed, the curve's start
222
- * (WebKit on Linux); the hold keeps the end state on screen through any such
223
- * block. It only stretches the last keyframe. The main thread retires the
224
- * animation as soon as it runs after the curve's end.
225
- *
226
- * Why a tail inside the curve's own animation, with a bound (measured Oct 24
227
- * 2026; do not replace it without these proofs):
228
- * - WebKit on Linux (WebKitGTK and WPE) ignores `fill` on its compositor:
229
- * a 400 ms move that ends during a 1 s main-thread block snaps back to the
230
- * block-start position 13 ms after its end, with `fill: forwards` or with
231
- * no fill, and holds with this tail. iOS 26.2 Mobile Safari holds the end
232
- * in all three forms, so there the tail is unneeded but harmless (measured
233
- * Oct 25 2026). The browser proof "a spring that ends inside the block
234
- * keeps showing its end state" catches it.
235
- * - A separate static animation of the end state under the curve would hold
236
- * it without a bound, but two animations on one property push Chromium to
237
- * run the curve on the main thread: the 1 s block proof moved in 0 of 57
238
- * frames, the start-before-a-block proof failed, and seeking the curve
239
- * broke.
240
- */
241
- const END_HOLD_MS = 6e4;
242
- /**
243
- * The soonest a running animation's end is looked for again, ms: a frame at
244
- * 60 Hz. WebKit moves an animation's currentTime once per frame, so a look
245
- * within a frame reads the frame's time, a fraction of a ms short of the end,
246
- * and a timer for that fraction would fire again before anything moved.
247
- */
248
- const END_RECHECK_MS = 1e3 / 60;
249
- const CHANNELS = {
250
- translate: ["x", "y"],
251
- rotate: ["rotate"],
252
- scale: ["scaleX", "scaleY"],
253
- opacity: ["opacity"]
254
- };
255
- const CHANNEL_OF = {
256
- x: "translate",
257
- y: "translate",
258
- rotate: "rotate",
259
- scaleX: "scale",
260
- scaleY: "scale",
261
- opacity: "opacity"
262
- };
263
- /** What `inlineText` writes for each channel at identity. */
264
- const IDENTITY_TEXT = {
265
- translate: "none",
266
- rotate: "none",
267
- scale: "none",
268
- opacity: "1"
269
- };
270
- /**
271
- * The transition `decay` hands a Reduce Motion transition curve to: under
272
- * Reduce Motion `animate` plays no spring (a cross-fade, or at once), so the
273
- * spring itself is never solved.
274
- */
275
- const REDUCED_TRANSITION = { spring: {
276
- duration: .5,
277
- bounce: 0
278
- } };
279
- //#endregion
280
- //#region src/motion/engine/cssValues.ts
281
- function round(value, digits) {
282
- return Number(value.toFixed(digits));
283
- }
284
- function format(channel, value) {
285
- switch (channel) {
286
- case "translate": return `${round(value("x"), 3)}px ${round(value("y"), 3)}px`;
287
- case "rotate": return `${round(value("rotate"), 4)}deg`;
288
- case "scale": return `${round(value("scaleX"), 5)} ${round(value("scaleY"), 5)}`;
289
- case "opacity": return `${round(Math.min(1, Math.max(0, value("opacity"))), 4)}`;
290
- }
291
- }
292
- /**
293
- * Whether a computed value shows `expected` (`format`'s text). An unset or
294
- * `none` value is the channel's identity. One value of a two-value channel
295
- * stands for both (scale), or for x with y at 0 (translate).
296
- */
297
- function sameShown(channel, shown, expected) {
298
- const numbers = (text) => {
299
- const list = ((text === "" || text === "none" ? IDENTITY_TEXT[channel] : text).match(/-?\d*\.?\d+(?:e-?\d+)?/g) ?? []).map(Number);
300
- if (channel === "translate") return [list[0] ?? 0, list[1] ?? 0];
301
- if (channel === "scale") return [list[0] ?? 1, list[1] ?? list[0] ?? 1];
302
- return list.length > 0 ? list : [channel === "opacity" ? 1 : 0];
303
- };
304
- const a = numbers(shown);
305
- const b = numbers(expected);
306
- return a.length === b.length && a.every((value, i) => Math.abs(value - b[i]) < .001);
307
- }
308
- /**
309
- * The inline text for a channel: `format`, except that an identity transform
310
- * is written `none`. Any other value, `translate: 0px 0px` included, makes
311
- * the element the containing block of its `position: fixed` descendants and
312
- * a stacking context, so a motion back to identity would leave a fixed child
313
- * moved with its parent; Mobile Safari also lets no finger scroll a list
314
- * inside an element left at `scale: 1`. At rest the identity leaves the
315
- * element entirely when its stylesheet agrees (`releaseIdentity`).
316
- */
317
- function inlineText(channel, value) {
318
- const at = (property, identity, digits) => round(value(property), digits) === identity;
319
- switch (channel) {
320
- case "translate": return at("x", 0, 3) && at("y", 0, 3) ? "none" : format(channel, value);
321
- case "rotate": return at("rotate", 0, 4) ? "none" : format(channel, value);
322
- case "scale": return at("scaleX", 1, 5) && at("scaleY", 1, 5) ? "none" : format(channel, value);
323
- case "opacity": return format(channel, value);
324
- }
325
- }
326
- /** Whether a computed value (or an unset one) is the channel's identity. */
327
- function isIdentityText(channel, text) {
328
- const value = text.trim();
329
- if (value === "" || value === "none") return true;
330
- const numbers = value.split(/\s+/).map((part) => Number.parseFloat(part));
331
- if (numbers.some((number) => !Number.isFinite(number))) return false;
332
- const identity = channel === "scale" || channel === "opacity" ? 1 : 0;
333
- return numbers.every((number) => Math.abs(number - identity) < 1e-6);
334
- }
335
- function expand(values) {
336
- const out = {};
337
- for (const [key, value] of Object.entries(values)) {
338
- if (value == null || !Number.isFinite(value)) continue;
339
- if (key === "scale") {
340
- out.scaleX ??= value;
341
- out.scaleY ??= value;
342
- } else if (PROPERTIES.includes(key)) out[key] = value;
343
- }
344
- return out;
345
- }
346
- /** The time the motion clock reads (`performance.now()`'s time base). */
347
- function motionNow() {
348
- return typeof performance === "undefined" ? Date.now() : performance.now();
349
- }
350
- /**
351
- * Whether the user asked for reduced motion (`prefers-reduced-motion:
352
- * reduce`), read at the moment of the call: the preference the animator uses
353
- * by default for its Reduce Motion substitution. A component never reads it
354
- * to pick a curve of its own: its motion settings do not override the
355
- * policy (design:reduced-motion DR4); `animator.reducedMotion()` or
356
- * `reducedMotionFade()` gives the policy's answer. False without a window
357
- * (server rendering).
358
- */
359
- function defaultPrefersReducedMotion() {
360
- return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
361
- }
362
- /** Whether the primary pointer is coarse: `(pointer: coarse)`. */
363
- function defaultIsCoarsePointer() {
364
- return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(pointer: coarse)").matches;
365
- }
366
- /**
367
- * Registers `name` as an inherited `<length>` (initially 0px) or `<number>`
368
- * (initially 0) so keyframes interpolate it; an unregistered custom property
369
- * animates in steps. A property the page already registered is left as it
370
- * is.
371
- */
372
- function registerCustomProperty(name, syntax) {
373
- if (typeof CSS === "undefined" || typeof CSS.registerProperty !== "function") return;
374
- try {
375
- CSS.registerProperty({
376
- name,
377
- syntax,
378
- inherits: true,
379
- initialValue: syntax === "<length>" ? "0px" : "0"
380
- });
381
- } catch (error) {
382
- if (!(error instanceof DOMException) || error.name !== "InvalidModificationError") throw error;
383
- }
384
- }
385
- function expandList(properties) {
386
- const out = /* @__PURE__ */ new Set();
387
- for (const property of properties) if (property === "scale") {
388
- out.add("scaleX");
389
- out.add("scaleY");
390
- } else out.add(property);
391
- return [...out];
392
- }
393
- //#endregion
394
- //#region src/motion/themeTempo.ts
395
- /**
396
- * @file themeTempo.ts
397
- * @input An element on the page
398
- * @output `themeTempo(element)`: the tempo of the theme the element is in
399
- * @position Motion foundation; resolveMotion.ts scales a motion role by it,
400
- * and the pager scales its settle by it, which no role names
401
- *
402
- * A theme that sets `tempo` writes it, clamped, to the private custom
403
- * property `--_astryx-motion-tempo` beside its duration tokens. An
404
- * adaptation rule writes it where its condition holds, and a nested theme
405
- * that sets no tempo inherits it. A layer whose durations come from a
406
- * duration scale writes a tempo of 1, so its springs keep its own pace. One
407
- * read of a custom property forces no layout.
408
- * Nothing here imports a theme module, runs on import or runs on the server.
409
- */
410
- /** The property a theme that sets `tempo` writes (theme/themeMotion.ts). */
411
- const TEMPO_PROPERTY = "--_astryx-motion-tempo";
412
- /**
413
- * The tempo motion on `element` plays at: the one its theme or an adaptation
414
- * rule sets, else 1. Without an element in a document, or with a value that
415
- * is not a positive number, it is 1.
416
- */
417
- function themeTempo(element) {
418
- const view = element?.ownerDocument?.defaultView;
419
- if (element == null || view == null) return 1;
420
- const text = view.getComputedStyle(element).getPropertyValue(TEMPO_PROPERTY).trim();
421
- const tempo = text === "" ? NaN : Number(text);
422
- return Number.isFinite(tempo) && tempo > 0 ? tempo : 1;
423
- }
424
- //#endregion
425
- //#region src/motion/resolveMotion.ts
426
- /**
427
- * The roles the tempo leaves as measured: the parts that follow a finger,
428
- * and ProgressBar's busy loop.
429
- */
430
- const FIXED_ROLES = /* @__PURE__ */ new Set([
431
- "springs.fingerTracking",
432
- "switchControl.tracking",
433
- "progress.reducedMotionPulseMs"
434
- ]);
435
- /** Each role spring at each tempo, so a role resolves to one object per tempo. */
436
- const springsAtTempo = /* @__PURE__ */ new WeakMap();
437
- /**
438
- * `spring` at `tempo`. In each of its forms, the undamped period grows by the
439
- * tempo and the damping ratio stays. So the motion keeps its shape and takes
440
- * `tempo` times as long.
441
- */
442
- function springAtTempo(spring, tempo) {
443
- let byTempo = springsAtTempo.get(spring);
444
- if (byTempo == null) {
445
- byTempo = /* @__PURE__ */ new Map();
446
- springsAtTempo.set(spring, byTempo);
447
- }
448
- let scaled = byTempo.get(tempo);
449
- if (scaled == null) {
450
- if ("response" in spring) scaled = {
451
- response: spring.response * tempo,
452
- dampingRatio: spring.dampingRatio
453
- };
454
- else if ("duration" in spring) scaled = {
455
- duration: spring.duration * tempo,
456
- bounce: spring.bounce
457
- };
458
- else scaled = {
459
- ...spring.mass == null ? null : { mass: spring.mass },
460
- stiffness: spring.stiffness / (tempo * tempo),
461
- damping: spring.damping / tempo
462
- };
463
- byTempo.set(tempo, scaled);
464
- }
465
- return scaled;
466
- }
467
- function resolveMotion(element, leafOrGroup, key) {
468
- const value = key === void 0 ? leafOrGroup : leafOrGroup[key];
469
- const role = key === void 0 ? motionRoleOf(leafOrGroup) : motionRoleIn(leafOrGroup, key);
470
- if (role == null || role.kind === "curve" || FIXED_ROLES.has(role.id)) return value;
471
- const tempo = themeTempo(element);
472
- if (tempo === 1) return value;
473
- if (typeof value === "number") return value * tempo;
474
- return isSpring(value) ? springAtTempo(value, tempo) : value;
475
- }
476
- /**
477
- * How `move` on `spring` plays at the tempo of the theme `element` is in: how
478
- * long it takes, as `resolveSettleMs` gives it, and its progress over that
479
- * time as CSS `linear()` easing. A CSS part that takes both follows the
480
- * spring frame by frame, so the two start and land together. A sheet's scrim
481
- * fades this way under the sheet's close.
482
- *
483
- * With `doneAt`, a position between `from` and `to`, the progress is measured
484
- * toward `doneAt` instead. It reaches 1 the first time the move gets there
485
- * and stays at 1. A sheet leaves view before its close ends, because its
486
- * surface reaches below the screen, and its scrim is clear by then.
487
- */
488
- function resolveMoveTiming(element, spring, move, doneAt = move.to) {
489
- const curve = solveSpring(toSpring(resolveMotion(element, spring)), move);
490
- const durationMs = curve.settleTime(move.epsilon) * 1e3;
491
- const span = doneAt - move.from;
492
- if (span === 0 || durationMs === 0) return {
493
- durationMs,
494
- easing: linearEasing(durationMs, () => 1)
495
- };
496
- const progressAt = (t) => (curve.value(t / 1e3) - move.from) / span;
497
- let reachedAt = Infinity;
498
- for (let t = 0; t <= durationMs; t++) if (progressAt(t) >= 1) {
499
- reachedAt = t;
500
- break;
501
- }
502
- return {
503
- durationMs,
504
- easing: linearEasing(durationMs, (t) => t >= reachedAt ? 1 : progressAt(t))
505
- };
506
- }
507
- //#endregion
508
- export { PROPERTIES as C, SAMPLE_TOLERANCE as D, SAMPLE_GRID_MS as E, solveSpring as O, MAX_KEYFRAMES as S, SAME_VALUE as T, END_HOLD_MS as _, expand as a, IDENTITY_TEXT as b, inlineText as c, registerCustomProperty as d, round as f, DECAY_PROPERTIES as g, CHANNEL_OF as h, defaultPrefersReducedMotion as i, toSpring as k, isIdentityText as l, CHANNELS as m, resolveMoveTiming as n, expandList as o, sameShown as p, defaultIsCoarsePointer as r, format as s, resolveMotion as t, motionNow as u, END_RECHECK_MS as v, REDUCED_TRANSITION as w, MAX_DURATION_MS as x, IDENTITY as y };
@@ -1,37 +0,0 @@
1
- import { computed } from "vue";
2
- //#region src/DropdownMenu/useSubmenuMode.ts
3
- /**
4
- * Whether a submenu flies out beside its row or replaces the menu's rows.
5
- *
6
- * `adaptive` drills in only when the menu opened on a compact touch surface.
7
- * That choice is sampled by the root when the menu opens, so the panel does
8
- * not change shape while it is open.
9
- */
10
- function useSubmenuMode(options) {
11
- const isDrill = computed(() => {
12
- const drill = options.drillIn.value;
13
- if (drill == null || options.presentation.value === "flyout") return false;
14
- if (options.presentation.value === "drill-in") return true;
15
- return drill.isCompactTouch;
16
- });
17
- const isOnStack = computed(() => options.drillIn.value?.viewStack.includes(options.viewId) === true);
18
- const isTop = computed(() => isOnStack.value && options.drillIn.value?.viewStack.at(-1) === options.viewId);
19
- function openDrill() {
20
- options.drillIn.value?.push(options.viewId);
21
- }
22
- /** Pop this view when it is the top of the stack. Returns whether it popped. */
23
- function closeDrill() {
24
- if (!isTop.value) return false;
25
- options.drillIn.value?.pop();
26
- return true;
27
- }
28
- return {
29
- closeDrill,
30
- isDrill,
31
- isOnStack,
32
- isTop,
33
- openDrill
34
- };
35
- }
36
- //#endregion
37
- export { useSubmenuMode as t };
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
43
43
  onRemove?: ((event: Event) => any) | undefined;
44
44
  }>, {
45
45
  size: TokenSize;
46
+ color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
46
47
  labelHidden: boolean;
47
48
  disabled: boolean;
48
- color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
49
49
  removable: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;