@astryx-vue/core 0.30.0 → 0.31.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 (290) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-D_lrpZz_.js → AlertDialog-CvNtu0Jd.js} +7 -7
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-CxUmt6hX.js → AppShell-BmX6wqba.js} +5 -5
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/AvatarGroup/index.js +1 -1
  8. package/dist/{AvatarGroup-DT5RbxDa.js → AvatarGroup-Dd-yDDNz.js} +2 -2
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-Ctg1puM6.js → Banner-DKmvoMxD.js} +1 -1
  12. package/dist/BottomSheet/index.d.ts +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-_K41Oliv.js → BottomSheet-B8_znPYE.js} +1 -1
  15. package/dist/{BottomSheet-CmNOXlZO.js → BottomSheet-BZ_yFoKC.js} +845 -276
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-CdGqhFKU.js → Breadcrumbs-CJpvbZsf.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-CvHeZGf1.js → Button-DdPty46q.js} +2 -2
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-CUN_rC57.js → ButtonGroup-oI99JAyN.js} +3 -3
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Card/index.d.ts +1 -1
  26. package/dist/Carousel/index.d.ts +1 -1
  27. package/dist/Carousel/index.js +1 -1
  28. package/dist/{Carousel-CbdHb8MD.js → Carousel-BNr79JpP.js} +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-B7ccEmTR.js → Chat-BadS0fEx.js} +2 -2
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-5r6VWqId.js → CheckboxInput-CzP8gP3v.js} +3 -3
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxListItem-CKeQzQ0W.js → CheckboxListItem-CxBjpX3d.js} +4 -4
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/ClickableCard/index.js +1 -1
  40. package/dist/{ClickableCard-ChmOwgYq.js → ClickableCard-B86P2aiM.js} +1 -1
  41. package/dist/Code/index.d.ts +1 -1
  42. package/dist/Code/index.js +2 -2
  43. package/dist/{Code-5rZyPwty.js → Code-_PngYOKp.js} +2 -0
  44. package/dist/{CodeBlock-4i1vvmOc.js → CodeBlock-Cgm4uOhG.js} +1 -1
  45. package/dist/Collapsible/index.d.ts +1 -1
  46. package/dist/Collapsible/index.js +1 -1
  47. package/dist/{Collapsible-B2vrr_YP.js → Collapsible-DXl9RRaX.js} +3 -3
  48. package/dist/CommandPalette/index.d.ts +1 -1
  49. package/dist/CommandPalette/index.js +1 -1
  50. package/dist/{CommandPalette-BMwvTjff.js → CommandPalette-BgVwGtdA.js} +2 -2
  51. package/dist/ComplexSelector/index.d.ts +1 -1
  52. package/dist/ComplexSelector/index.js +1 -1
  53. package/dist/{ComplexSelector-B4iFyilD.js → ComplexSelector-vna5wtig.js} +2 -2
  54. package/dist/ContextMenu/index.d.ts +1 -1
  55. package/dist/ContextMenu/index.js +2 -2
  56. package/dist/{ContextMenu-DquYeIEF.js → ContextMenu-CE-FnLI6.js} +4 -4
  57. package/dist/DateInput/index.d.ts +1 -1
  58. package/dist/DateInput/index.js +1 -1
  59. package/dist/{DateInput-MNNyi4XK.js → DateInput-BCasoeIj.js} +3 -3
  60. package/dist/DateRangeInput/index.d.ts +1 -1
  61. package/dist/DateRangeInput/index.js +1 -1
  62. package/dist/{DateRangeInput-DOHntScL.js → DateRangeInput-Bi97pjDX.js} +3 -3
  63. package/dist/DateTimeInput/index.d.ts +1 -1
  64. package/dist/DateTimeInput/index.js +1 -1
  65. package/dist/{DateTimeInput-BaghFHW6.js → DateTimeInput-CKnvjLhi.js} +5 -5
  66. package/dist/Dialog/index.d.ts +1 -1
  67. package/dist/Dialog/index.js +3 -3
  68. package/dist/{Dialog-Ctha_b_L.js → Dialog-BN-NycQr.js} +1 -1
  69. package/dist/{Dialog-CGf64DqF.js → Dialog-Dt0gNuMT.js} +1 -1
  70. package/dist/{DialogHeader-BxTV37GT.js → DialogHeader-CSH2_5v-.js} +2 -2
  71. package/dist/Drawer/index.d.ts +1 -1
  72. package/dist/Drawer/index.js +1 -1
  73. package/dist/{Drawer-DAnc2ut9.js → Drawer-PeMgE4iA.js} +2 -2
  74. package/dist/DropdownMenu/index.js +3 -3
  75. package/dist/{DropdownMenu-BPi0pm0w.js → DropdownMenu-B_KDdI8P.js} +5 -5
  76. package/dist/{DropdownMenu-DuSVFQoS.js → DropdownMenu-aYOIh9gZ.js} +7 -7
  77. package/dist/Field/index.js +3 -3
  78. package/dist/{Field-d5R_kRMv.js → Field-D-fRqyso.js} +1 -1
  79. package/dist/{FieldInfoTip-BhKtjq3g.js → FieldInfoTip-Bstp5Lvd.js} +1 -1
  80. package/dist/{FieldLabel-BHNpYFx7.js → FieldLabel-lV_qLaGp.js} +1 -1
  81. package/dist/FileInput/index.js +1 -1
  82. package/dist/{FileInput-BCg4HROm.js → FileInput-CTNnDIkm.js} +3 -3
  83. package/dist/Heading/index.d.ts +1 -1
  84. package/dist/IconButton/index.js +1 -1
  85. package/dist/{IconButton-BZgU_THt.js → IconButton-DPezhVBA.js} +1 -1
  86. package/dist/Indicator/index.d.ts +2 -2
  87. package/dist/InfoTip/index.d.ts +1 -1
  88. package/dist/InfoTip/index.js +1 -1
  89. package/dist/{InfoTip-E2-OzKti.js → InfoTip-B4BFfLtT.js} +1 -1
  90. package/dist/{InputClearButton-B62_uexC.js → InputClearButton-CxU3iv-5.js} +1 -1
  91. package/dist/InputGroup/index.js +1 -1
  92. package/dist/{InputGroup-DKBqRYFf.js → InputGroup-CraWGK6Y.js} +1 -1
  93. package/dist/{Item-C8UAQwFQ.js → Item-C9u_kQUO.js} +15 -14
  94. package/dist/Lightbox/index.js +1 -1
  95. package/dist/{Lightbox-Bou1gTfv.js → Lightbox-BNUG9CQ1.js} +1 -1
  96. package/dist/Link/index.d.ts +1 -1
  97. package/dist/Link/index.js +1 -1
  98. package/dist/{Link-CaJ5lmKk.js → Link-Bwgpn-di.js} +1 -1
  99. package/dist/List/index.d.ts +1 -1
  100. package/dist/List/index.js +2 -2
  101. package/dist/{ListItem-BlrEngDO.js → ListItem-_lOmngHp.js} +2 -2
  102. package/dist/Markdown/index.js +1 -1
  103. package/dist/{Markdown-BE6vdvPG.js → Markdown-BlEi5UGN.js} +2 -2
  104. package/dist/{MediaTheme-UM8oOqwX.js → MediaTheme-CBkEmVe4.js} +1 -1
  105. package/dist/MobileNav/index.js +1 -1
  106. package/dist/{MobileNavToggle-D5yGMHU4.js → MobileNavToggle-wVa9dzH1.js} +1 -1
  107. package/dist/MoreMenu/index.d.ts +1 -1
  108. package/dist/MoreMenu/index.js +1 -1
  109. package/dist/{MoreMenu-CNzTagqr.js → MoreMenu-CXshllJj.js} +4 -4
  110. package/dist/MultiSelector/index.d.ts +1 -1
  111. package/dist/MultiSelector/index.js +1 -1
  112. package/dist/{MultiSelector-MGEiRi1W.js → MultiSelector-Bs3Imw6k.js} +5 -5
  113. package/dist/NavItem/index.d.ts +1 -1
  114. package/dist/NavItem/index.js +1 -1
  115. package/dist/{NavItem-kj9FbbFS.js → NavItem-D4xHjSTo.js} +1 -1
  116. package/dist/NavMenu/index.js +2 -2
  117. package/dist/{NavMenu-ZN5cqCxO.js → NavMenu-NCg3VjAQ.js} +2 -2
  118. package/dist/{NavMenuItem-xm3e0V8q.js → NavMenuItem-Bla6fYVl.js} +3 -3
  119. package/dist/NumberInput/index.d.ts +1 -1
  120. package/dist/NumberInput/index.js +1 -1
  121. package/dist/{NumberInput-D4ECOHh_.js → NumberInput-DicgvFte.js} +3 -3
  122. package/dist/Outline/index.js +1 -1
  123. package/dist/{Outline-DI9MZnuQ.js → Outline-CnSt_KvS.js} +4 -3
  124. package/dist/OverflowList/index.d.ts +1 -1
  125. package/dist/OverflowList/index.js +1 -1
  126. package/dist/{OverflowList-m1tf_fR1.js → OverflowList-BYYz3ePw.js} +1 -1
  127. package/dist/Overlay/index.d.ts +1 -1
  128. package/dist/Pagination/index.d.ts +1 -1
  129. package/dist/Pagination/index.js +1 -1
  130. package/dist/{Pagination-BdjxuxM3.js → Pagination-kJhH6sPF.js} +3 -3
  131. package/dist/Popover/index.d.ts +2 -2
  132. package/dist/Popover/index.js +1 -1
  133. package/dist/{Popover-DEj8xWN-.js → Popover-CqL_AXQB.js} +6 -6
  134. package/dist/PowerSearch/index.d.ts +1 -1
  135. package/dist/PowerSearch/index.js +1 -1
  136. package/dist/{PowerSearch-BJDFietK.js → PowerSearch-Ff2n7eJ2.js} +19 -19
  137. package/dist/ProgressBar/index.d.ts +1 -1
  138. package/dist/Radio/index.d.ts +1 -1
  139. package/dist/Radio/index.js +1 -1
  140. package/dist/{RadioGroup-B3UoJrOA.js → RadioGroup-CsJYGjyx.js} +3 -3
  141. package/dist/RadioList/index.d.ts +1 -1
  142. package/dist/RadioList/index.js +1 -1
  143. package/dist/{RadioListItem-CD7kUGlN.js → RadioListItem-Yc3K82YE.js} +1 -1
  144. package/dist/ScrollableArea/index.d.ts +1 -1
  145. package/dist/SegmentedControl/index.js +1 -1
  146. package/dist/{SegmentedControl-DGd6JlaD.js → SegmentedControl-C-F5dkcG.js} +2 -2
  147. package/dist/SelectableCard/index.d.ts +1 -1
  148. package/dist/SelectableCard/index.js +1 -1
  149. package/dist/{SelectableCard-GRWYx3iD.js → SelectableCard-CwfpgsS8.js} +1 -1
  150. package/dist/Selector/index.d.ts +1 -1
  151. package/dist/Selector/index.js +1 -1
  152. package/dist/{Selector-BD0u-5Fy.js → Selector-DgzSGUul.js} +3 -3
  153. package/dist/SideNav/index.d.ts +1 -1
  154. package/dist/SideNav/index.js +2 -2
  155. package/dist/{SideNav-DoqCLRiX.js → SideNav-DNQZ8l6b.js} +6 -6
  156. package/dist/Slider/index.js +1 -1
  157. package/dist/{Slider-DHR7HZ7N.js → Slider-Bq_7Nskr.js} +2 -2
  158. package/dist/Stepper/index.js +1 -1
  159. package/dist/{Stepper-CCuggsov.js → Stepper-CWluGqBs.js} +1 -1
  160. package/dist/Switch/index.d.ts +1 -1
  161. package/dist/Switch/index.js +1 -1
  162. package/dist/{Switch-CnFC7jGw.js → Switch-DTPvMAxd.js} +2 -2
  163. package/dist/TabList/index.d.ts +1 -1
  164. package/dist/TabList/index.js +1 -1
  165. package/dist/{TabList-fMlX8m6n.js → TabList-C4i7UZkp.js} +3 -3
  166. package/dist/Table/index.d.ts +1 -1
  167. package/dist/Table/index.js +1 -1
  168. package/dist/{Table-DoKmVdhZ.js → Table-CqAV7l7W.js} +13 -13
  169. package/dist/Text/index.d.ts +1 -1
  170. package/dist/TextArea/index.d.ts +1 -1
  171. package/dist/TextArea/index.js +1 -1
  172. package/dist/{TextArea-y9mmYAIy.js → TextArea-J2_wct0p.js} +4 -4
  173. package/dist/TextInput/index.d.ts +1 -1
  174. package/dist/TextInput/index.js +1 -1
  175. package/dist/{TextInput-BLGEh7vE.js → TextInput-Da1TYd57.js} +4 -4
  176. package/dist/Theme/index.d.ts +4 -3
  177. package/dist/Theme/index.js +4 -3
  178. package/dist/{Theme-BmTbbiAD.js → Theme-CwruhtLu.js} +290 -62
  179. package/dist/Thumbnail/index.js +1 -1
  180. package/dist/{Thumbnail-Dm8krgGF.js → Thumbnail-1LsaJ4_m.js} +2 -2
  181. package/dist/{TimeField-DS30hnty.js → TimeField-ojhX2ZOj.js} +2 -2
  182. package/dist/TimeInput/index.d.ts +1 -1
  183. package/dist/TimeInput/index.js +1 -1
  184. package/dist/{TimeInput-DcY4b3dg.js → TimeInput-CfeDP72M.js} +2 -2
  185. package/dist/Timestamp/index.d.ts +1 -1
  186. package/dist/Timestamp/index.js +1 -1
  187. package/dist/{Timestamp-BhBuBHu8.js → Timestamp-SseS_qtf.js} +1 -1
  188. package/dist/Toast/index.js +1 -1
  189. package/dist/{Toast-CnLk7LzS.js → Toast-yUVFaZiJ.js} +175 -22
  190. package/dist/ToggleButton/index.d.ts +1 -1
  191. package/dist/ToggleButton/index.js +1 -1
  192. package/dist/{ToggleButton-B9IJcpdJ.js → ToggleButton-B6hBzeVl.js} +3 -3
  193. package/dist/Token/index.d.ts +1 -1
  194. package/dist/Token/index.js +1 -1
  195. package/dist/{Token-C7Dt5ygK.js → Token-DTGUCgpn.js} +1 -1
  196. package/dist/Tokenizer/index.d.ts +1 -1
  197. package/dist/Tokenizer/index.js +1 -1
  198. package/dist/{Tokenizer-D7ZCTbnf.js → Tokenizer-nSEekhN1.js} +8 -8
  199. package/dist/Toolbar/index.d.ts +1 -1
  200. package/dist/Toolbar/index.js +1 -1
  201. package/dist/{Toolbar-DSWH8ll4.js → Toolbar-BHkPxDxA.js} +1 -1
  202. package/dist/TopNav/index.d.ts +1 -1
  203. package/dist/TopNav/index.js +1 -1
  204. package/dist/{TopNav-CK_F6Ud5.js → TopNav-CcIayfsW.js} +4 -4
  205. package/dist/TreeList/index.js +1 -1
  206. package/dist/{TreeList-Dh0uAj2B.js → TreeList-CsgXzBdm.js} +4 -4
  207. package/dist/Typeahead/index.d.ts +1 -1
  208. package/dist/Typeahead/index.js +1 -1
  209. package/dist/{Typeahead-Cs-46obm.js → Typeahead-BD6xXNKh.js} +3 -3
  210. package/dist/VelocityTracker-DgjmootV.js +165 -0
  211. package/dist/{adaptationTypes-Cn_pfrsw.d.ts → adaptationTypes-D874ONPJ.d.ts} +28 -6
  212. package/dist/{animator-BGq5a6vT.js → animator-C0kqgDUJ.js} +30 -173
  213. package/dist/{assertOptions-CJgNig1l.js → assertOptions-DHfonaBU.js} +1 -1
  214. package/dist/{batch-BhaAWUIt.js → batch-DPlrpYU6.js} +5 -19
  215. package/dist/bezier-Dko5MnTp.js +37 -0
  216. package/dist/{clickGuard-FrlnECMp.js → clickGuard-C3VmOLhI.js} +2 -1
  217. package/dist/compactDefinition-BeFUKEFg.js +29 -0
  218. package/dist/compactDefinition-CMTR5KqU.d.ts +19 -0
  219. package/dist/composables/index.js +7 -7
  220. package/dist/composables-CVvk9709.js +2548 -0
  221. package/dist/{context-jtpQfR6F.js → context-ZWA02GaM.js} +2 -2
  222. package/dist/{edge-CJIswPTX.js → edge-DFaE6rUg.js} +1 -1
  223. package/dist/{edgeRide-Drk4V-MC.js → edgeRide-UdNxbwxY.js} +4 -4
  224. package/dist/{handle-BazRxHwq.js → handle-CwxCHapJ.js} +1 -1
  225. package/dist/{holdEntranceInput-DMCOeRqu.js → holdEntranceInput-DgimbgGm.js} +1 -1
  226. package/dist/{index-DVS4jM-l.d.ts → index-0RIgvtdm.d.ts} +1 -1
  227. package/dist/{index-D14kSf-g.d.ts → index-AgTJRqUY.d.ts} +3 -3
  228. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  229. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  230. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  231. package/dist/{index-BL9fE6gs.d.ts → index-CG6dbyeb.d.ts} +8 -8
  232. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  233. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  234. package/dist/{index-C6IcBhAn.d.ts → index-C_iTVOHQ.d.ts} +4 -4
  235. package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
  236. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  237. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  238. package/dist/{index-DGe-ApvN.d.ts → index-CuW4AQ7M.d.ts} +3 -3
  239. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  240. package/dist/{index-BVeTS-R5.d.ts → index-DH_xZI84.d.ts} +6 -6
  241. package/dist/{index-CUuUoX3h.d.ts → index-DVX2jlTQ.d.ts} +1 -1
  242. package/dist/{index-668zPVsH.d.ts → index-DkYOGpsC.d.ts} +1 -1
  243. package/dist/{index-hUa5oQ5O.d.ts → index-Dp6MmjIo.d.ts} +88 -88
  244. package/dist/{index-BIqW3_GP.d.ts → index-DtY_R6Oh.d.ts} +2 -2
  245. package/dist/{index-CTXG-KKT.d.ts → index-EUzmHHm6.d.ts} +2 -1
  246. package/dist/{index-DQ3akoRZ.d.ts → index-QC9FDUDA.d.ts} +4 -4
  247. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  248. package/dist/{index-Ea2V_FSK.d.ts → index-aHC2C89h.d.ts} +4 -4
  249. package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
  250. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  251. package/dist/index.d.ts +30 -29
  252. package/dist/index.js +90 -89
  253. package/dist/{inputHold-BmChuR9x.js → inputHold-DW2LYHb5.js} +4 -4
  254. package/dist/{inputHoldState-pblUT4oh.js → inputHoldState-xntIqr5W.js} +2 -1
  255. package/dist/{inputStream-LZdK8luP.js → inputStream-bPd9eB2b.js} +2 -49
  256. package/dist/isRtlElement-NHuH48AA.js +23 -0
  257. package/dist/{landing-CBaXCGEg.js → landing-CSCE9afT.js} +3 -3
  258. package/dist/{lazyBottomSheet-Cmd-WMEE.js → lazyBottomSheet-CbU1Pnfk.js} +1 -1
  259. package/dist/{timing-CSHWQbTJ.js → linearEasing-BiRVC8Mq.js} +30 -22
  260. package/dist/{bezier-Df-yGuNZ.js → presentation-Cy_yf56y.js} +2 -39
  261. package/dist/{presentationHold-7IkbR4d8.js → presentationHold-B4tK68sd.js} +3 -29
  262. package/dist/{pressFeedback-DVR5V1b6.js → pressFeedback-9dqGYjxv.js} +2 -2
  263. package/dist/reducedMotionMark-CYSyfURo.js +34 -0
  264. package/dist/{resolveMotion-CurhYTVC.js → resolveMotion-B9NDPeUz.js} +202 -1
  265. package/dist/resolveSnapPoint-DdZyBkT4.js +717 -0
  266. package/dist/{flatTree-BB4yPMNL.js → sharedRealm-H1OrlP0V.js} +49 -1
  267. package/dist/{themeTiming-BFDOPRjK.js → themeTiming-D1U0redl.js} +2 -112
  268. package/dist/tokenReferences-sKpv-7_O.js +167 -0
  269. package/dist/{touchHold-CFJlSClt.js → touchHold-DXtx7npm.js} +1 -1
  270. package/dist/{types-BA1veIoa.d.ts → types-D97oBk6c.d.ts} +1 -1
  271. package/dist/{useActionGroupTracking-C6BzQzvp.js → useActionGroupTracking-CLFF7FI2.js} +2 -2
  272. package/dist/{useAnimatedLayout-DC2l3WrE.js → useAnimatedLayout-DWWc31RR.js} +1 -1
  273. package/dist/{composables-BTRbNgmR.js → useAttachment-BuNyeUXy.js} +44 -3464
  274. package/dist/{useChatStreamScroll-Cv51kRT0.js → useChatStreamScroll-CuMzkXgD.js} +1 -1
  275. package/dist/{useHeldPresentation-7MH-RlSF.js → useHeldPresentation-BF5vGVUn.js} +1 -1
  276. package/dist/{useInputStatusIcon-BngSzjVd.js → useInputStatusIcon-BqV6YzTV.js} +1 -1
  277. package/dist/{useListFocus-CkHfsZp0.js → useListFocus-Ccd_HU9T.js} +2 -23
  278. package/dist/{useMenuDrillIn-BQx6lQMz.js → useMenuDrillIn-CMsgOcDP.js} +3 -2
  279. package/dist/{useMenuEntranceHold-buV5S9yk.js → useMenuEntranceHold-HznOwIry.js} +1 -1
  280. package/dist/{useMenuHover-CfQtWMg-.js → useMenuHover-DoBatZeD.js} +1 -1
  281. package/dist/{useMenuPress-DU6pAIHy.js → useMenuPress-DcwVUsQO.js} +3 -3
  282. package/dist/{usePressFeedback-BhNcuxQv.js → usePressFeedback-DHdmAsMp.js} +1 -1
  283. package/dist/{useTouchHitArea-CNZyA18Y.js → useTouchHitArea-SY1ITxSJ.js} +2 -2
  284. package/package.json +1 -1
  285. package/reset.css +1 -1
  286. package/styles/bottom-sheet.css +28 -8
  287. package/styles/chat.css +5 -5
  288. package/styles/drawer.css +9 -0
  289. package/dist/motionTokenDefaults-EFzpiAF5.js +0 -38
  290. package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
@@ -0,0 +1,165 @@
1
+ import { d as UIKIT_VELOCITY } from "./pressGesture-BzIBmKF2.js";
2
+ //#region src/gestures/VelocityTracker.ts
3
+ const ZERO = {
4
+ x: 0,
5
+ y: 0
6
+ };
7
+ const PAN_CURRENT_WEIGHT = UIKIT_VELOCITY.currentWeight.value;
8
+ const SCROLL_CURRENT_WEIGHT = UIKIT_VELOCITY.scrollReleaseWeight.value;
9
+ function blend(weight, current, previous) {
10
+ return {
11
+ x: weight * current.x + (1 - weight) * previous.x,
12
+ y: weight * current.y + (1 - weight) * previous.y
13
+ };
14
+ }
15
+ var VelocityTracker = class {
16
+ stillness;
17
+ /** The newest sample added, moved or not. */
18
+ newest = null;
19
+ /**
20
+ * The newest moved samples, oldest first (the touch-down counts as the
21
+ * first); the filter reads the last three.
22
+ */
23
+ moved = [];
24
+ /** Moved samples since the touch-down. */
25
+ moves = 0;
26
+ /** The newest pan value, and the one before it. */
27
+ pan = ZERO;
28
+ previousPan = ZERO;
29
+ constructor(options = {}) {
30
+ this.stillness = options.stillness ?? UIKIT_VELOCITY.stillness.value;
31
+ }
32
+ /** Forget every sample (a new gesture). */
33
+ reset() {
34
+ this.newest = null;
35
+ this.moved = [];
36
+ this.moves = 0;
37
+ this.pan = ZERO;
38
+ this.previousPan = ZERO;
39
+ }
40
+ /**
41
+ * Record a position. Timestamps must not go backwards (an older sample is
42
+ * ignored), and a moved sample at the newest moved sample's timestamp
43
+ * replaces it. A sample at the newest position is not motion: it changes
44
+ * no velocity, unless `isMotion` says the contact moved anyway (a pinch's
45
+ * value holding while both fingers move, which reads as zero velocity for
46
+ * that interval).
47
+ */
48
+ add(x, y, time, { isMotion = false } = {}) {
49
+ if (this.newest != null && time < this.newest.time) return;
50
+ this.newest = {
51
+ x,
52
+ y,
53
+ time
54
+ };
55
+ const last = this.moved[this.moved.length - 1];
56
+ if (last != null && x === last.x && y === last.y && !isMotion) return;
57
+ if (last != null && time === last.time) this.moved[this.moved.length - 1] = {
58
+ x,
59
+ y,
60
+ time
61
+ };
62
+ else {
63
+ this.moved.push({
64
+ x,
65
+ y,
66
+ time
67
+ });
68
+ if (this.moved.length > 3) this.moved.shift();
69
+ if (last != null) {
70
+ this.moves += 1;
71
+ this.previousPan = this.pan;
72
+ }
73
+ }
74
+ this.pan = panVelocity(this.moved);
75
+ }
76
+ /**
77
+ * Re-base the samples by an offset (a recognizer whose value was set
78
+ * mid-gesture): every interval, the moved-sample count and the velocity
79
+ * carry on unchanged.
80
+ */
81
+ offsetBy(dx, dy) {
82
+ const shift = (sample) => ({
83
+ ...sample,
84
+ x: sample.x + dx,
85
+ y: sample.y + dy
86
+ });
87
+ this.newest = this.newest == null ? null : shift(this.newest);
88
+ this.moved = this.moved.map(shift);
89
+ }
90
+ /**
91
+ * Re-base the samples by a factor (a pinch whose scale was set
92
+ * mid-gesture): positions and velocities scale with it, and the
93
+ * moved-sample count carries on.
94
+ */
95
+ scaleBy(factor) {
96
+ const scale = (sample) => ({
97
+ ...sample,
98
+ x: sample.x * factor,
99
+ y: sample.y * factor
100
+ });
101
+ this.newest = this.newest == null ? null : scale(this.newest);
102
+ this.moved = this.moved.map(scale);
103
+ this.pan = {
104
+ x: this.pan.x * factor,
105
+ y: this.pan.y * factor
106
+ };
107
+ this.previousPan = {
108
+ x: this.previousPan.x * factor,
109
+ y: this.previousPan.y * factor
110
+ };
111
+ }
112
+ /** Record every sample in order. */
113
+ addSamples(samples) {
114
+ for (const sample of samples) this.add(sample.x, sample.y, sample.time);
115
+ }
116
+ /** The newest sample, if any. */
117
+ get lastSample() {
118
+ return this.newest;
119
+ }
120
+ /**
121
+ * The pan's velocity in px/s. Pass the release's event time to read the
122
+ * release velocity of a dragged surface: 0 after a rest longer than the
123
+ * stillness interval, or with fewer than two moved samples (AST-100 FR2).
124
+ */
125
+ velocity(releaseTime) {
126
+ if (releaseTime != null && !this.releases(releaseTime)) return ZERO;
127
+ return this.pan;
128
+ }
129
+ /**
130
+ * A scrolling surface's release velocity in px/s (paging, a wheel): 0.25
131
+ * times the newest pan value plus 0.75 times the previous one, with the
132
+ * same stillness and two-moved-sample rules (AST-100 FR2).
133
+ */
134
+ scrollVelocity(releaseTime) {
135
+ if (!this.releases(releaseTime)) return ZERO;
136
+ return blend(SCROLL_CURRENT_WEIGHT, this.pan, this.previousPan);
137
+ }
138
+ releases(releaseTime) {
139
+ const last = this.moved[this.moved.length - 1];
140
+ return this.moves >= 2 && last != null && releaseTime - last.time <= this.stillness;
141
+ }
142
+ };
143
+ /**
144
+ * UIPanGestureRecognizer's filter over the newest moved samples: 0.2 x the
145
+ * newest interval's velocity + 0.8 x the previous one's; one interval so far
146
+ * is reported whole, as UIKit does.
147
+ */
148
+ function panVelocity(moved) {
149
+ const n = moved.length;
150
+ if (n < 2) return ZERO;
151
+ const current = pairVelocity(moved[n - 2], moved[n - 1]);
152
+ if (n === 2) return current;
153
+ return blend(PAN_CURRENT_WEIGHT, current, pairVelocity(moved[n - 3], moved[n - 2]));
154
+ }
155
+ /** Instantaneous velocity (px/s) between two samples, zero across no time. */
156
+ function pairVelocity(start, end) {
157
+ const dt = end.time - start.time;
158
+ if (dt <= 0) return ZERO;
159
+ return {
160
+ x: (end.x - start.x) / dt * 1e3,
161
+ y: (end.y - start.y) / dt * 1e3
162
+ };
163
+ }
164
+ //#endregion
165
+ export { VelocityTracker as t };
@@ -57,7 +57,8 @@ declare function expandMotionScale(config: MotionScaleConfig): MotionScaleTokens
57
57
  //#region src/Theme/expandRadiusScale.d.ts
58
58
  /**
59
59
  * Radius scale. `none` stays 0 and `full` stays 9999px.
60
- * The steps are inner ×1, element ×2, container ×3, page and chat ×7.
60
+ * The steps are inner ×1, element ×2, container ×3, page ×7. `--radius-chat`
61
+ * is not on the scale: it follows `--radius-container`.
61
62
  */
62
63
  interface RadiusScaleConfig {
63
64
  /** Base unit in px. */
@@ -229,8 +230,25 @@ interface ThemeSurfaceInput {
229
230
  *
230
231
  * A key that starts with `:` is a pseudo-class, for example `:hover`.
231
232
  * `:hover` is the enabled control: disabled and `aria-disabled` elements skip it.
233
+ * `:active` follows the touch press model: it applies to a mouse press, and
234
+ * under a coarse primary pointer it applies while Astryx believes the press,
235
+ * not on the touch or through a scroll.
236
+ *
237
+ * The `@light` and `@dark` keys hold a style block (properties and
238
+ * pseudo-class overrides) that applies only where the element's color mode is
239
+ * that mode: the mode a `Theme` sets with `light` or `dark`, the reader's
240
+ * preference under a `system` Theme, or the nearest `MediaTheme` surface
241
+ * (up to five surfaces of alternating modes nested one in another). Where no
242
+ * enclosing mode matches, the block writes nothing. Use it for a value that is
243
+ * not a color, or to leave the other mode untouched; a color that differs per
244
+ * mode can also be one `light-dark()` value.
245
+ */
246
+ type StyleOverrides = Record<string, string | Record<string, string> | StyleBlock>;
247
+ /**
248
+ * A style block: CSS properties and pseudo-class overrides, as in a style
249
+ * key's value. A style key's `@light` and `@dark` keys each hold one.
232
250
  */
233
- type StyleOverrides = Record<string, string | Record<string, string>>;
251
+ type StyleBlock = Record<string, string | Record<string, string>>;
234
252
  /**
235
253
  * Per-component style overrides.
236
254
  *
@@ -241,16 +259,20 @@ type StyleOverrides = Record<string, string | Record<string, string>>;
241
259
  * `variant:destructive+size:sm` matches both at once.
242
260
  */
243
261
  type ComponentStyleMap = Record<string, Record<string, StyleOverrides>>;
244
- /** One font role. Heading inherits body family and fallbacks when it omits them. */
262
+ /**
263
+ * One font role. A heading with no `family` takes the body's whole font
264
+ * list; with its own `family`, only its own `fallbacks`. `fallbacks` with no
265
+ * `family` build nothing.
266
+ */
245
267
  interface TypographyRole {
246
268
  /** Primary family name. A name with spaces is quoted. */
247
269
  family?: string;
248
270
  /** Fallback stack, already written as CSS. */
249
271
  fallbacks?: string;
250
272
  /** Default weight name (`semibold`) or a CSS font-weight value. */
251
- weight?: string;
273
+ weight?: string | number;
252
274
  /** Heading levels 1–6. Ignored on body and code. */
253
- weights?: Partial<Record<1 | 2 | 3 | 4 | 5 | 6, string>>;
275
+ weights?: Partial<Record<1 | 2 | 3 | 4 | 5 | 6, string | number>>;
254
276
  }
255
277
  /**
256
278
  * Fonts and the type scale.
@@ -557,4 +579,4 @@ interface ResolvedThemeAdaptationRule {
557
579
  components?: ComponentStyleMap;
558
580
  }
559
581
  //#endregion
560
- export { IndicatorName as A, expandTypeScale as B, TypographyConfig as C, IndicatorFamily as D, IndicatorComponent as E, IndicatorState as F, ColorScaleConfig as G, expandRadiusScale as H, ThemeMotionConfig as I, expandColorScale as K, MotionCharacter as L, IndicatorProps as M, IndicatorRegistry as N, IndicatorFamilyMap as O, IndicatorSize as P, ThemeMotionKnobs as R, ThemeTokens as S, CoreIndicatorName as T, MotionScaleConfig as U, RadiusScaleConfig as V, expandMotionScale as W, ThemeIconVariant as _, ThemeAdaptationValue as a, ThemeSurfaceInput as b, WIDTH_BREAKPOINT_NAMES as c, ComponentStyleMap as d, DefineThemeInput as f, ThemeDefinition as g, StyleOverrides as h, ThemeAdaptationTypographyConfig as i, IndicatorPosition as j, IndicatorMap as k, WidthBreakpointName as l, MediaThemeProps as m, ThemeAdaptationCondition as n, ThemeAdaptationWidthCondition as o, MediaThemeMode as p, ThemeAdaptationRule as r, ThemeAdaptations as s, DEFAULT_WIDTH_BREAKPOINTS as t, WidthBreakpoints as u, ThemeMode as v, TypographyRole as w, ThemeTokenValue as x, ThemeProps as y, TypeScaleConfig as z };
582
+ export { IndicatorMap as A, TypeScaleConfig as B, ThemeTokens as C, IndicatorComponent as D, CoreIndicatorName as E, IndicatorSize as F, expandMotionScale as G, RadiusScaleConfig as H, IndicatorState as I, ColorScaleConfig as K, ThemeMotionConfig as L, IndicatorPosition as M, IndicatorProps as N, IndicatorFamily as O, IndicatorRegistry as P, MotionCharacter as R, ThemeTokenValue as S, TypographyRole as T, expandRadiusScale as U, expandTypeScale as V, MotionScaleConfig as W, ThemeDefinition as _, ThemeAdaptationValue as a, ThemeProps as b, WIDTH_BREAKPOINT_NAMES as c, ComponentStyleMap as d, DefineThemeInput as f, StyleOverrides as g, StyleBlock as h, ThemeAdaptationTypographyConfig as i, IndicatorName as j, IndicatorFamilyMap as k, WidthBreakpointName as l, MediaThemeProps as m, ThemeAdaptationCondition as n, ThemeAdaptationWidthCondition as o, MediaThemeMode as p, expandColorScale as q, ThemeAdaptationRule as r, ThemeAdaptations as s, DEFAULT_WIDTH_BREAKPOINTS as t, WidthBreakpoints as u, ThemeIconVariant as v, TypographyConfig as w, ThemeSurfaceInput as x, ThemeMode as y, ThemeMotionKnobs as z };
@@ -1,178 +1,11 @@
1
- import { C as REDUCED_TRANSITION, E as SAMPLE_TOLERANCE, S as PROPERTIES, T as SAMPLE_GRID_MS, _ as END_RECHECK_MS, a as expandList, b as MAX_DURATION_MS, c as isIdentityText, d as round, f as sameShown, g as END_HOLD_MS, h as DECAY_PROPERTIES, i as expand, l as motionNow, m as CHANNEL_OF, n as defaultIsCoarsePointer, o as format, p as CHANNELS, r as defaultPrefersReducedMotion, s as inlineText, t as resolveMotion, u as registerCustomProperty, v as IDENTITY, y as IDENTITY_TEXT } from "./resolveMotion-CurhYTVC.js";
1
+ import { C as PROPERTIES, D as SAMPLE_TOLERANCE, E as SAMPLE_GRID_MS, O as solveSpring, _ as END_HOLD_MS, a as expand, b as IDENTITY_TEXT, c as inlineText, d as registerCustomProperty, f as round, g as DECAY_PROPERTIES, h as CHANNEL_OF, i as defaultPrefersReducedMotion, k as toSpring, l as isIdentityText, m as CHANNELS, o as expandList, p as sameShown, r as defaultIsCoarsePointer, s as format, t as resolveMotion, u as motionNow, v as END_RECHECK_MS, w as REDUCED_TRANSITION, x as MAX_DURATION_MS, y as IDENTITY } from "./resolveMotion-B9NDPeUz.js";
2
2
  import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
3
- import { n as registerReducedMotionCrossFade, r as themeReducesMotion, t as reducedMotionCrossFade } from "./timing-CSHWQbTJ.js";
4
- import { l as writePresentedResolve, o as registerPresentedOffset, r as clearPresentedResolve, t as cubicBezier } from "./bezier-Df-yGuNZ.js";
3
+ import { r as themeReducesMotion } from "./reducedMotionMark-CYSyfURo.js";
4
+ import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve } from "./presentation-Cy_yf56y.js";
5
+ import { i as registerReducedMotionCrossFade, r as reducedMotionCrossFade } from "./linearEasing-BiRVC8Mq.js";
5
6
  import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
6
7
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
- //#region src/motion/springParameters.ts
8
- /**
9
- * @file springParameters.ts
10
- * @output The `Spring` model and the conversions between Apple's spring
11
- * vocabularies (duration and bounce, response and damping ratio, mass,
12
- * stiffness and damping), and UIKit's relative velocity
13
- * @position Pure math under spring.ts, which re-exports all of it. See
14
- * spring.ts for the sources of each conversion.
15
- */
16
- const TAU = 2 * Math.PI;
17
- function assertPositiveFinite(name, value) {
18
- if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
19
- }
20
- /**
21
- * SwiftUI's `Spring(duration:bounce:)` and UIKit's
22
- * `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
23
- * clamped to SwiftUI's documented range (−1, 1].
24
- *
25
- * @example
26
- * ```
27
- * springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
28
- * ```
29
- */
30
- function springFromDurationBounce({ duration, bounce }) {
31
- assertPositiveFinite("duration", duration);
32
- if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
33
- const b = Math.min(1, Math.max(-.999999, bounce));
34
- return {
35
- mass: 1,
36
- stiffness: (TAU / duration) ** 2,
37
- damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
38
- };
39
- }
40
- /**
41
- * SwiftUI's `Spring(response:dampingRatio:)` and
42
- * `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
43
- * kept, as SwiftUI keeps it for this initializer.
44
- */
45
- function springFromResponse({ response, dampingRatio }) {
46
- assertPositiveFinite("response", response);
47
- if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
48
- const omega = TAU / response;
49
- return {
50
- mass: 1,
51
- stiffness: omega * omega,
52
- damping: 2 * dampingRatio * omega
53
- };
54
- }
55
- /**
56
- * `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
57
- * / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
58
- * an overdamped spring is treated as critically damped unless
59
- * `allowOverdamping` is set: "a value of false specifies that such cases
60
- * should instead be treated as critically damped".
61
- */
62
- function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
63
- assertPositiveFinite("mass", mass);
64
- assertPositiveFinite("stiffness", stiffness);
65
- if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
66
- const critical = 2 * Math.sqrt(stiffness * mass);
67
- return {
68
- mass,
69
- stiffness,
70
- damping: allowOverdamping ? damping : Math.min(damping, critical)
71
- };
72
- }
73
- /** Undamped angular frequency ω₀ = √(k/m), rad/s. */
74
- function naturalFrequency(spring) {
75
- return Math.sqrt(spring.stiffness / spring.mass);
76
- }
77
- /** Damping ratio ζ = c / (2·√(k·m)). */
78
- function dampingRatioOf(spring) {
79
- return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
80
- }
81
- /**
82
- * Normalizes a description to the physical `Spring`. A physical description
83
- * gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
84
- * SwiftUI and Core Animation do by default.
85
- */
86
- function toSpring(description) {
87
- if ("stiffness" in description) return springFromPhysics(description);
88
- if ("bounce" in description) return springFromDurationBounce(description);
89
- return springFromResponse(description);
90
- }
91
- //#endregion
92
- //#region src/motion/spring.ts
93
- /**
94
- * Closed-form solution of the spring released at `from` with
95
- * `initialVelocity` (units/s), heading for `to`.
96
- *
97
- * @example
98
- * ```
99
- * const curve = solveSpring(springFromDurationBounce({duration: 0.5, bounce: 0}), {from: 0, to: 300});
100
- * curve.value(0.1); // px after 100 ms
101
- * ```
102
- */
103
- function solveSpring(spring, { from, to, velocity: initialVelocity = 0 }) {
104
- const omega0 = naturalFrequency(spring);
105
- const zeta = dampingRatioOf(spring);
106
- const x0 = from - to;
107
- const v0 = initialVelocity;
108
- let displacement;
109
- let speed;
110
- let envelope;
111
- let envelopePeak = 0;
112
- if (zeta < .999999) {
113
- const decay = zeta * omega0;
114
- const omegaD = omega0 * Math.sqrt(1 - zeta * zeta);
115
- const a = x0;
116
- const b = (v0 + decay * x0) / omegaD;
117
- const bv = (decay * v0 + omega0 * omega0 * x0) / omegaD;
118
- displacement = (t) => Math.exp(-decay * t) * (a * Math.cos(omegaD * t) + b * Math.sin(omegaD * t));
119
- speed = (t) => Math.exp(-decay * t) * (v0 * Math.cos(omegaD * t) - bv * Math.sin(omegaD * t));
120
- const amplitude = Math.abs(a) + Math.abs(b);
121
- envelope = (t) => amplitude * Math.exp(-decay * t);
122
- } else if (zeta <= 1.000001) {
123
- const b = v0 + omega0 * x0;
124
- displacement = (t) => (x0 + b * t) * Math.exp(-omega0 * t);
125
- speed = (t) => (v0 - omega0 * b * t) * Math.exp(-omega0 * t);
126
- const absA = Math.abs(x0);
127
- const absB = Math.abs(b);
128
- envelope = (t) => (absA + absB * t) * Math.exp(-omega0 * t);
129
- envelopePeak = absB > 0 ? Math.max(0, 1 / omega0 - absA / absB) : 0;
130
- } else {
131
- const root = omega0 * Math.sqrt(zeta * zeta - 1);
132
- const r1 = -zeta * omega0 + root;
133
- const r2 = -zeta * omega0 - root;
134
- const c1 = (v0 - r2 * x0) / (r1 - r2);
135
- const c2 = x0 - c1;
136
- displacement = (t) => c1 * Math.exp(r1 * t) + c2 * Math.exp(r2 * t);
137
- speed = (t) => r1 * c1 * Math.exp(r1 * t) + r2 * c2 * Math.exp(r2 * t);
138
- const absC1 = Math.abs(c1);
139
- const absC2 = Math.abs(c2);
140
- envelope = (t) => absC1 * Math.exp(r1 * t) + absC2 * Math.exp(r2 * t);
141
- }
142
- const settleTime = (threshold) => {
143
- if (!(threshold > 0)) return Infinity;
144
- if (zeta === 0) return x0 === 0 && v0 === 0 ? 0 : Infinity;
145
- const start = envelopePeak;
146
- if (envelope(start) <= threshold) return 0;
147
- if (zeta < .999999) {
148
- const amplitude = envelope(0);
149
- return Math.log(amplitude / threshold) / (zeta * omega0);
150
- }
151
- let lo = start;
152
- let hi = Math.max(start, 1 / omega0);
153
- while (envelope(hi) > threshold) {
154
- lo = hi;
155
- hi *= 2;
156
- if (hi > 1e6) return Infinity;
157
- }
158
- for (let i = 0; i < 100 && hi - lo > 1e-12; i++) {
159
- const mid = (lo + hi) / 2;
160
- if (envelope(mid) > threshold) lo = mid;
161
- else hi = mid;
162
- }
163
- return hi;
164
- };
165
- return {
166
- spring,
167
- from,
168
- to,
169
- initialVelocity,
170
- value: (t) => to + displacement(t),
171
- velocity: (t) => speed(t),
172
- settleTime
173
- };
174
- }
175
- //#endregion
8
+ import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
176
9
  //#region src/motion/engine/taskClock.ts
177
10
  /** The task the current calls from rest are made in, until it ends. */
178
11
  let openTask = null;
@@ -2820,6 +2653,30 @@ function initLateEngineState(engine) {
2820
2653
  }
2821
2654
  //#endregion
2822
2655
  //#region src/motion/animator.ts
2656
+ const shared = /* @__PURE__ */ new WeakMap();
2657
+ /**
2658
+ * The one animator for `element` (and `options.pseudoElement`), created on
2659
+ * first use. Code that animates one element from several places (a swipe on
2660
+ * x, a removal on y) shares it, so their curves compose in one `translate`
2661
+ * track and retargeting one axis leaves the other on its curve; two
2662
+ * animators on one element would overwrite each other. `options` apply
2663
+ * when it is created; later calls get the same animator. Never `attach` it
2664
+ * elsewhere or `dispose` it: it lives as long as the element.
2665
+ */
2666
+ function animatorFor(element, options = {}) {
2667
+ let byPseudo = shared.get(element);
2668
+ if (byPseudo == null) {
2669
+ byPseudo = /* @__PURE__ */ new Map();
2670
+ shared.set(element, byPseudo);
2671
+ }
2672
+ const key = options.pseudoElement ?? "";
2673
+ let animator = byPseudo.get(key);
2674
+ if (animator == null) {
2675
+ animator = createMotionEngine(element, options);
2676
+ byPseudo.set(key, animator);
2677
+ }
2678
+ return animator;
2679
+ }
2823
2680
  /**
2824
2681
  * Creates an animator for `element` (or for an element attached later).
2825
2682
  *
@@ -2865,4 +2722,4 @@ function createMotionEngine(element, options = {}) {
2865
2722
  return engine.animator;
2866
2723
  }
2867
2724
  //#endregion
2868
- export { toSpring as i, SETTLE_THRESHOLD as n, solveSpring as r, createMotionEngine as t };
2725
+ export { createMotionEngine as n, SETTLE_THRESHOLD as r, animatorFor as t };
@@ -2,7 +2,7 @@ import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
2
2
  import { r as isKeyboardModality } from "./interactionModality-4Km2ibsq.js";
3
3
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
4
4
  import { n as focusElement } from "./focus-x7mxEqjR.js";
5
- import { t as useHeldPresentation } from "./useHeldPresentation-7MH-RlSF.js";
5
+ import { t as useHeldPresentation } from "./useHeldPresentation-BF5vGVUn.js";
6
6
  import { computed, nextTick, onScopeDispose, ref, watch } from "vue";
7
7
  //#region src/Selector/selectorEscape.ts
8
8
  /** 弹出层关掉后,焦点回到触发按钮,而不是掉到 body。 */
@@ -1,22 +1,8 @@
1
- import { c as sharedState, l as sharedWeakMap, s as sharedMap, u as sharedWeakSet } from "./inputStream-LZdK8luP.js";
2
- import { r as themeReducesMotion, t as reducedMotionCrossFade } from "./timing-CSHWQbTJ.js";
3
- import { l as writePresentedResolve, n as batchPresented, o as registerPresentedOffset, r as clearPresentedResolve } from "./bezier-Df-yGuNZ.js";
4
- import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-BFDOPRjK.js";
5
- //#region src/motion/linearEasing.ts
6
- /**
7
- * @file linearEasing.ts
8
- * @input A duration and the fraction of a move done at each time
9
- * @output Exports `linearEasing`, that curve as CSS `linear()` easing text,
10
- * and `sampleCount`, how many samples cover a duration at 60 per second
11
- * @position Pure math under the motion helpers; no DOM, no React
12
- */
13
- /** Samples per second of a sampled curve: one per frame at 60 Hz. */
14
- const SAMPLES_PER_SECOND = 60;
15
- /** How many samples cover `durationMs`, both ends included: at least 2. */
16
- function sampleCount(durationMs) {
17
- return Math.max(2, Math.ceil(durationMs / 1e3 * SAMPLES_PER_SECOND) + 1);
18
- }
19
- //#endregion
1
+ import { a as sharedWeakMap, i as sharedState, o as sharedWeakSet, r as sharedMap } from "./sharedRealm-H1OrlP0V.js";
2
+ import { r as themeReducesMotion } from "./reducedMotionMark-CYSyfURo.js";
3
+ import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-Cy_yf56y.js";
4
+ import { n as sampleCount, r as reducedMotionCrossFade } from "./linearEasing-BiRVC8Mq.js";
5
+ import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-D1U0redl.js";
20
6
  //#region src/motion/layout/glides.ts
21
7
  /**
22
8
  * @file glides.ts
@@ -0,0 +1,37 @@
1
+ //#region src/motion/bezier.ts
2
+ /** The timing function for `points`: maps time progress to eased progress. */
3
+ function cubicBezier([x1, y1, x2, y2]) {
4
+ const cx = 3 * x1;
5
+ const bx = 3 * (x2 - x1) - cx;
6
+ const ax = 1 - cx - bx;
7
+ const cy = 3 * y1;
8
+ const by = 3 * (y2 - y1) - cy;
9
+ const ay = 1 - cy - by;
10
+ const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
11
+ const sampleY = (t) => ((ay * t + by) * t + cy) * t;
12
+ const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
13
+ const solveT = (x) => {
14
+ let t = x;
15
+ for (let i = 0; i < 8; i++) {
16
+ const error = sampleX(t) - x;
17
+ if (Math.abs(error) < 1e-7) return t;
18
+ const slope = slopeX(t);
19
+ if (Math.abs(slope) < 1e-6) break;
20
+ t -= error / slope;
21
+ }
22
+ let lo = 0;
23
+ let hi = 1;
24
+ t = x;
25
+ for (let i = 0; i < 60; i++) {
26
+ const value = sampleX(t);
27
+ if (Math.abs(value - x) < 1e-7) break;
28
+ if (value < x) lo = t;
29
+ else hi = t;
30
+ t = (lo + hi) / 2;
31
+ }
32
+ return t;
33
+ };
34
+ return (x) => x <= 0 ? 0 : x >= 1 ? 1 : sampleY(solveT(x));
35
+ }
36
+ //#endregion
37
+ export { cubicBezier as t };
@@ -1,4 +1,5 @@
1
- import { a as realmValue, c as sharedState, i as subscribeInput, o as sharedKey } from "./inputStream-LZdK8luP.js";
1
+ import { i as sharedState, n as sharedKey, t as realmValue } from "./sharedRealm-H1OrlP0V.js";
2
+ import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
2
3
  //#region src/utils/hapticSwitch.ts
3
4
  /**
4
5
  * @file privateAttributes/hapticSwitch.stylex.ts
@@ -0,0 +1,29 @@
1
+ import { n as themeContextKey } from "./context-Cws_tXTr.js";
2
+ import { t as DEFAULT_WIDTH_BREAKPOINTS } from "./adaptationTypes-Beao49TN.js";
3
+ import { computed, inject } from "vue";
4
+ //#region src/Theme/compactDefinition.ts
5
+ /** 高度低于它算紧凑:横过来的手机。 */
6
+ const COMPACT_HEIGHT_BELOW = 500;
7
+ /** 按主题的宽度点算出紧凑定义;不传就用标准宽度点。 */
8
+ function compactDefinition(points = DEFAULT_WIDTH_BREAKPOINTS) {
9
+ const width = `(width < ${points.md}px)`;
10
+ const height = `(height < ${COMPACT_HEIGHT_BELOW}px)`;
11
+ return Object.freeze({
12
+ widthBelow: points.md,
13
+ heightBelow: COMPACT_HEIGHT_BELOW,
14
+ query: `${width}, ${height}`,
15
+ coarsePointerQuery: `${width} and (pointer: coarse), ${height} and (pointer: coarse)`
16
+ });
17
+ }
18
+ /** 标准宽度点下的紧凑定义。 */
19
+ const DEFAULT_COMPACT_DEFINITION = compactDefinition();
20
+ /** 最近一层主题的紧凑定义。主题没改宽度点时就是标准定义。 */
21
+ function useCompactDefinition() {
22
+ const theme = inject(themeContextKey, null);
23
+ return computed(() => {
24
+ const points = theme?.value.theme.adaptations?.widthBreakpoints;
25
+ return points == null || points.md === DEFAULT_WIDTH_BREAKPOINTS.md ? DEFAULT_COMPACT_DEFINITION : compactDefinition(points);
26
+ });
27
+ }
28
+ //#endregion
29
+ export { compactDefinition as n, useCompactDefinition as r, DEFAULT_COMPACT_DEFINITION as t };
@@ -0,0 +1,19 @@
1
+ import { u as WidthBreakpoints } from "./adaptationTypes-D874ONPJ.js";
2
+ import { ComputedRef } from "vue";
3
+ //#region src/Theme/compactDefinition.d.ts
4
+ interface CompactDefinition {
5
+ /** 视口宽度小于这个值就算紧凑:主题实际生效的 `md` 宽度点。 */
6
+ readonly widthBelow: number;
7
+ /** 视口高度小于这个值就算紧凑。 */
8
+ readonly heightBelow: number;
9
+ /** 写成媒体查询列表(不带 `@media`)。 */
10
+ readonly query: string;
11
+ /** 紧凑并且主指针是粗指针(手指),不带 `@media`。 */
12
+ readonly coarsePointerQuery: string;
13
+ }
14
+ /** 按主题的宽度点算出紧凑定义;不传就用标准宽度点。 */
15
+ declare function compactDefinition(points?: Readonly<Pick<WidthBreakpoints, 'md'>>): CompactDefinition;
16
+ /** 标准宽度点下的紧凑定义。 */
17
+ declare const DEFAULT_COMPACT_DEFINITION: CompactDefinition;
18
+ //#endregion
19
+ export { DEFAULT_COMPACT_DEFINITION as n, compactDefinition as r, CompactDefinition as t };
@@ -1,5 +1,5 @@
1
1
  import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-Dtjg-nkm.js";
2
- import { t as usePressFeedback } from "../usePressFeedback-BhNcuxQv.js";
2
+ import { t as usePressFeedback } from "../usePressFeedback-DHdmAsMp.js";
3
3
  import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-zwZQglr2.js";
4
4
  import { t as useDismiss } from "../useDismiss-BKtyCwx4.js";
5
5
  import { n as useLayer } from "../tooltipTriggerRules-zN2xGd9K.js";
@@ -7,13 +7,12 @@ import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
7
7
  import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
8
8
  import { t as characterCount } from "../characters-wTnzjkkR.js";
9
9
  import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
10
- import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-BTRbNgmR.js";
11
- import { t as useListFocus } from "../useListFocus-CkHfsZp0.js";
12
- import { t as useAnimatedLayout } from "../useAnimatedLayout-DC2l3WrE.js";
10
+ import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-CVvk9709.js";
11
+ import { t as useAnimatedLayout } from "../useAnimatedLayout-DWWc31RR.js";
13
12
  import { t as useAnnounce } from "../announce-GU01Oix2.js";
14
13
  import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
15
14
  import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-7GTcK8ep.js";
16
- import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-Cv51kRT0.js";
15
+ import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-CuMzkXgD.js";
17
16
  import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
18
17
  import { t as useCombobox } from "../useCombobox-BqkTY3bw.js";
19
18
  import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
@@ -25,9 +24,10 @@ import { t as useFocusTrap } from "../useFocusTrap-BD9POtMp.js";
25
24
  import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
26
25
  import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-hv4NYIUi.js";
27
26
  import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
28
- import { t as useInputStatusIcon } from "../useInputStatusIcon-BngSzjVd.js";
27
+ import { t as useInputStatusIcon } from "../useInputStatusIcon-BqV6YzTV.js";
29
28
  import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
30
- import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-DU6pAIHy.js";
29
+ import { t as useListFocus } from "../useListFocus-Ccd_HU9T.js";
30
+ import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-DcwVUsQO.js";
31
31
  import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
32
32
  import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-Bzvlstgc.js";
33
33
  import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";