@astryx-vue/core 0.24.0 → 0.25.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 (266) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-DXOTr1D7.js → AlertDialog-Cub9_aPC.js} +6 -6
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-Cmu6bMY6.js → AppShell-D62A7lqZ.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-dMcn3j8Z.js → Avatar-BKoSK75s.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-BUXjzekw.js → AvatarGroup-DT5RbxDa.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-CTY9qV89.js → Banner-cg2nXT_4.js} +1 -1
  13. package/dist/BottomSheet/index.d.ts +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-ZOjuZya0.js → BottomSheet-CpLYy3vb.js} +1 -1
  16. package/dist/{BottomSheet-DyJJtZZU.js → BottomSheet-DGhRZLw4.js} +108 -8
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-Nv-089W0.js → Breadcrumbs-D-nHDHV8.js} +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-TiYG0btL.js → Button-D8AGK5oT.js} +3 -3
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-DNN4O9_-.js → ButtonGroup-CUN_rC57.js} +2 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Carousel/index.d.ts +1 -1
  26. package/dist/Carousel/index.js +1 -1
  27. package/dist/{Carousel-DsXup1mZ.js → Carousel-DrCG9wbP.js} +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-DqYT_S9M.js → Chat-U1qq8gkF.js} +3 -3
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-FKfsoLcl.js → CheckboxInput-qm6lkjAw.js} +3 -3
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxList-DuSVBtMk.js → CheckboxList-DuCKhJHJ.js} +5 -5
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/ClickableCard/index.js +1 -1
  39. package/dist/{ClickableCard-dNmSVHBu.js → ClickableCard-CwGxO0GU.js} +1 -1
  40. package/dist/Code/index.js +1 -1
  41. package/dist/{CodeBlock-5KoJDvWd.js → CodeBlock-PMZd9dQ9.js} +1 -1
  42. package/dist/Collapsible/index.js +1 -1
  43. package/dist/{Collapsible-B1qW6OuL.js → Collapsible-BmUloCSR.js} +3 -3
  44. package/dist/CommandPalette/index.js +1 -1
  45. package/dist/{CommandPalette-B2riNg_7.js → CommandPalette-Cy7trpD3.js} +2 -2
  46. package/dist/ComplexSelector/index.js +1 -1
  47. package/dist/{ComplexSelector-C4CO8Fd2.js → ComplexSelector-DMBiVQWp.js} +2 -2
  48. package/dist/ContextMenu/index.d.ts +1 -1
  49. package/dist/ContextMenu/index.js +2 -2
  50. package/dist/{ContextMenu-SzsWZf18.js → ContextMenu-63ay7EE-.js} +13 -26
  51. package/dist/DateInput/index.d.ts +1 -1
  52. package/dist/DateInput/index.js +1 -1
  53. package/dist/{DateInput-D9Jv70H7.js → DateInput-B3Q91FDT.js} +3 -3
  54. package/dist/DateRangeInput/index.d.ts +1 -1
  55. package/dist/DateRangeInput/index.js +1 -1
  56. package/dist/{DateRangeInput-BsB2kg_q.js → DateRangeInput-B6Z66OsH.js} +3 -3
  57. package/dist/DateTimeInput/index.d.ts +1 -1
  58. package/dist/DateTimeInput/index.js +1 -1
  59. package/dist/{DateTimeInput-BDyKPKGD.js → DateTimeInput-B_7cn7ze.js} +5 -5
  60. package/dist/Dialog/index.d.ts +1 -1
  61. package/dist/Dialog/index.js +3 -3
  62. package/dist/{Dialog-JCB5s-T-.js → Dialog-C4FZ7p7Q.js} +10 -0
  63. package/dist/{Dialog-DUlWQH8R.js → Dialog-CBPD5b-S.js} +1 -1
  64. package/dist/{DialogHeader-C6hZZxdv.js → DialogHeader-CQ3pnLYi.js} +2 -2
  65. package/dist/Drawer/index.d.ts +1 -1
  66. package/dist/Drawer/index.js +1 -1
  67. package/dist/{Drawer-BDuiw1-g.js → Drawer-BOwQLKm9.js} +2 -2
  68. package/dist/DropdownMenu/index.js +3 -3
  69. package/dist/{DropdownMenu-Der2x_k_.js → DropdownMenu-9CR9TiKG.js} +5 -5
  70. package/dist/{DropdownMenu-BhxKnh6D.js → DropdownMenu-DwIfoTnV.js} +18 -18
  71. package/dist/EmptyState/index.js +1 -1
  72. package/dist/{EmptyState-CnFkYtcS.js → EmptyState-BG5g2jwJ.js} +3 -3
  73. package/dist/Field/index.js +3 -3
  74. package/dist/{Field-D4UmRHlD.js → Field-eAowUUMX.js} +1 -1
  75. package/dist/{FieldInfoTip-BSqcEcUx.js → FieldInfoTip-Dwl9HNp1.js} +1 -1
  76. package/dist/{FieldLabel-CZbayYFD.js → FieldLabel-CgYk-ORu.js} +1 -1
  77. package/dist/FileInput/index.d.ts +1 -1
  78. package/dist/FileInput/index.js +1 -1
  79. package/dist/{FileInput-8oYiJsq_.js → FileInput-B7zeePbM.js} +2 -2
  80. package/dist/Heading/index.d.ts +1 -1
  81. package/dist/Heading/index.js +1 -1
  82. package/dist/{Heading-COtyAhtB.js → Heading-B1dNZQtu.js} +1 -1
  83. package/dist/HoverCard/index.js +1 -1
  84. package/dist/{HoverCard-DGlOpk4x.js → HoverCard-CZhfsvP4.js} +2 -2
  85. package/dist/IconButton/index.js +1 -1
  86. package/dist/{IconButton-CwjHTIBg.js → IconButton-D9ZRJ7vD.js} +1 -1
  87. package/dist/InfoTip/index.d.ts +1 -1
  88. package/dist/InfoTip/index.js +1 -1
  89. package/dist/{InfoTip-CNZateDb.js → InfoTip-LJi9llxi.js} +2 -2
  90. package/dist/{InputClearButton-CzCP41sx.js → InputClearButton-C-j9Nf1s.js} +1 -1
  91. package/dist/InputGroup/index.js +1 -1
  92. package/dist/{InputGroup-CfUGHDNz.js → InputGroup-B8PGJZKH.js} +1 -1
  93. package/dist/{Item-DyaYlbyE.js → Item-DUI1Qnnd.js} +1 -1
  94. package/dist/Lightbox/index.js +1 -1
  95. package/dist/{Lightbox-Dzzd2Vqe.js → Lightbox-BOWTHnTb.js} +1 -1
  96. package/dist/Link/index.d.ts +1 -1
  97. package/dist/Link/index.js +1 -1
  98. package/dist/{Link-B7OJQ0zl.js → Link-B75ygGzG.js} +2 -2
  99. package/dist/List/index.d.ts +1 -1
  100. package/dist/List/index.js +2 -2
  101. package/dist/{ListItem-gj_lOvEt.js → ListItem-C8SqSrU6.js} +1 -1
  102. package/dist/Markdown/index.d.ts +1 -1
  103. package/dist/Markdown/index.js +1 -1
  104. package/dist/{Markdown-Cbj-nqhN.js → Markdown-Cqrcj-ct.js} +3 -3
  105. package/dist/MobileNav/index.js +1 -1
  106. package/dist/{MobileNavToggle-BlcdCg8M.js → MobileNavToggle-DLpEONfs.js} +12 -0
  107. package/dist/MoreMenu/index.d.ts +1 -1
  108. package/dist/MoreMenu/index.js +1 -1
  109. package/dist/{MoreMenu-Dokwc4Mg.js → MoreMenu-aR88r9xp.js} +17 -31
  110. package/dist/MultiSelector/index.d.ts +1 -1
  111. package/dist/MultiSelector/index.js +1 -1
  112. package/dist/{MultiSelector-CId8-qAX.js → MultiSelector-UTaDe-YT.js} +22 -23
  113. package/dist/{NavDisclosure-CqAThYgR.js → NavDisclosure-B66SHKdd.js} +1 -1
  114. package/dist/{NavHeadingSurface-DJ4pWvEi.js → NavHeadingSurface-BZCzkCPJ.js} +1 -1
  115. package/dist/NavItem/index.js +1 -1
  116. package/dist/{NavItem-_eIEwV41.js → NavItem-c1ScHEJY.js} +1 -1
  117. package/dist/NavMenu/index.js +3 -3
  118. package/dist/{NavMenu-BtA_Xbmr.js → NavMenu-DS6y8ZAY.js} +2 -2
  119. package/dist/{NavMenuItem-BxfjAf1T.js → NavMenuItem-BqIi3o3D.js} +3 -3
  120. package/dist/NumberInput/index.d.ts +1 -1
  121. package/dist/NumberInput/index.js +1 -1
  122. package/dist/{NumberInput-Bl5TFhGD.js → NumberInput-ClkOGF5j.js} +3 -3
  123. package/dist/Outline/index.js +1 -1
  124. package/dist/{Outline-NuPQMjxw.js → Outline-DvQbXc_H.js} +1 -1
  125. package/dist/OverflowList/index.d.ts +1 -1
  126. package/dist/OverflowList/index.js +1 -1
  127. package/dist/{OverflowList-CumJl6X_.js → OverflowList-UnVXBDIW.js} +2 -2
  128. package/dist/Pagination/index.js +1 -1
  129. package/dist/{Pagination-C0Bx80Tu.js → Pagination-CTCLE02h.js} +1 -1
  130. package/dist/Popover/index.js +1 -1
  131. package/dist/{Popover-DpR4rwiW.js → Popover-CZvRSqqD.js} +3 -3
  132. package/dist/PowerSearch/index.d.ts +1 -1
  133. package/dist/PowerSearch/index.js +1 -1
  134. package/dist/{PowerSearch-Dq6Gi9z1.js → PowerSearch-BBOum0TP.js} +17 -17
  135. package/dist/ProgressBar/index.js +1 -1
  136. package/dist/{ProgressBar-Dp-0xquN.js → ProgressBar-Bgg6zsKR.js} +1 -1
  137. package/dist/Radio/index.d.ts +1 -1
  138. package/dist/Radio/index.js +1 -1
  139. package/dist/{RadioGroup-IKBXLzYU.js → RadioGroup-DPy5JQhm.js} +4 -4
  140. package/dist/RadioList/index.d.ts +1 -1
  141. package/dist/RadioList/index.js +1 -1
  142. package/dist/{RadioList-NW4fGKgm.js → RadioList-UN7IxQg8.js} +1 -1
  143. package/dist/ScrollableArea/index.d.ts +1 -1
  144. package/dist/SegmentedControl/index.js +1 -1
  145. package/dist/{SegmentedControl-DRxcUlVP.js → SegmentedControl-BkWz-I2J.js} +2 -2
  146. package/dist/SelectableCard/index.d.ts +1 -1
  147. package/dist/SelectableCard/index.js +1 -1
  148. package/dist/{SelectableCard-Dp-LsEcf.js → SelectableCard-GRWYx3iD.js} +1 -1
  149. package/dist/Selector/index.d.ts +1 -1
  150. package/dist/Selector/index.js +1 -1
  151. package/dist/{Selector-BW_oxWDM.js → Selector-CCtsUveZ.js} +27 -22
  152. package/dist/SideNav/index.d.ts +1 -1
  153. package/dist/SideNav/index.js +2 -2
  154. package/dist/{SideNav-B5mMRj98.js → SideNav-COl5ApOz.js} +9 -9
  155. package/dist/Slider/index.js +1 -1
  156. package/dist/{Slider-oD3AY4jh.js → Slider-CYie9hWm.js} +2 -2
  157. package/dist/StatusDot/index.js +1 -1
  158. package/dist/{StatusDot-B3oOyRF7.js → StatusDot-CHfgSYmv.js} +1 -1
  159. package/dist/Stepper/index.d.ts +1 -1
  160. package/dist/Stepper/index.js +1 -1
  161. package/dist/{Stepper-CgOdL36_.js → Stepper-CCuggsov.js} +1 -1
  162. package/dist/Switch/index.d.ts +1 -1
  163. package/dist/Switch/index.js +1 -1
  164. package/dist/{Switch-DG_A9cD0.js → Switch-D24CvhDS.js} +2 -2
  165. package/dist/TabList/index.js +1 -1
  166. package/dist/{TabList-FkoypUk0.js → TabList-DToCh5JW.js} +3 -3
  167. package/dist/Table/index.d.ts +1 -1
  168. package/dist/Table/index.js +1 -1
  169. package/dist/{Table-zNW23VwP.js → Table-D3mzxBr0.js} +13 -13
  170. package/dist/Text/index.d.ts +1 -1
  171. package/dist/Text/index.js +1 -1
  172. package/dist/{Text-v1ep26uD.js → Text-5p-eZodt.js} +1 -1
  173. package/dist/TextArea/index.d.ts +1 -1
  174. package/dist/TextArea/index.js +1 -1
  175. package/dist/{TextArea-BilHnmSs.js → TextArea-Bp6D-riO.js} +4 -4
  176. package/dist/TextInput/index.d.ts +1 -1
  177. package/dist/TextInput/index.js +1 -1
  178. package/dist/{TextInput-D6tHM2sA.js → TextInput-BYslwBDZ.js} +4 -4
  179. package/dist/Thumbnail/index.js +1 -1
  180. package/dist/{Thumbnail-llGdnQM8.js → Thumbnail-B_a8tOS7.js} +3 -3
  181. package/dist/{TimeField-C5rcoaVu.js → TimeField-MDSJny9m.js} +3 -3
  182. package/dist/TimeInput/index.d.ts +1 -1
  183. package/dist/TimeInput/index.js +1 -1
  184. package/dist/{TimeInput-D0N8nwrI.js → TimeInput-B19amuxi.js} +2 -2
  185. package/dist/Timer/index.d.ts +1 -1
  186. package/dist/Timer/index.js +1 -1
  187. package/dist/{Timer-65PfuoQ7.js → Timer-BD3tfzrF.js} +1 -1
  188. package/dist/Timestamp/index.d.ts +1 -1
  189. package/dist/Timestamp/index.js +1 -1
  190. package/dist/{Timestamp-rYC8mE3r.js → Timestamp-CqWoZUKM.js} +3 -3
  191. package/dist/Toast/index.js +1 -1
  192. package/dist/{Toast-BtQ-4Y6Z.js → Toast-BKPl8iIr.js} +1 -1
  193. package/dist/ToggleButton/index.d.ts +1 -1
  194. package/dist/ToggleButton/index.js +1 -1
  195. package/dist/{ToggleButton-Bnn_MiOn.js → ToggleButton-DfpsuhMa.js} +3 -3
  196. package/dist/Token/index.d.ts +1 -1
  197. package/dist/Token/index.js +1 -1
  198. package/dist/{Token-B-j3AKxB.js → Token-C7Dt5ygK.js} +1 -1
  199. package/dist/Tokenizer/index.js +1 -1
  200. package/dist/{Tokenizer-Cpdy_L00.js → Tokenizer-C-eorFsF.js} +5 -5
  201. package/dist/Toolbar/index.d.ts +1 -1
  202. package/dist/Tooltip/index.js +2 -2
  203. package/dist/{Tooltip-CByjfHBZ.js → Tooltip-88zhGfzF.js} +1 -1
  204. package/dist/TopNav/index.d.ts +1 -1
  205. package/dist/TopNav/index.js +1 -1
  206. package/dist/{TopNav-q8xDVlM_.js → TopNav-DMFIsFwy.js} +5 -5
  207. package/dist/TreeList/index.js +1 -1
  208. package/dist/{TreeList-CEGInQtF.js → TreeList-nU2gSmQm.js} +3 -3
  209. package/dist/Typeahead/index.js +2 -2
  210. package/dist/{Typeahead-C-PdRnRQ.js → Typeahead-DUQfmy_r.js} +5 -5
  211. package/dist/{assertOptions-og3t30Fh.js → assertOptions-DVRsfCk1.js} +22 -2
  212. package/dist/{batch-oTkSbtVz.js → batch-DR5SgbnX.js} +2 -2
  213. package/dist/{clickGuard-ChKuogmR.js → clickGuard-FrlnECMp.js} +1 -2
  214. package/dist/coarsePointer-BfMx3H23.js +86 -0
  215. package/dist/composables/index.js +6 -6
  216. package/dist/{composables-COCeg92e.js → composables-Do86VAmM.js} +7 -110
  217. package/dist/{context-DQPBIsl5.js → context-WY1ippwe.js} +2 -2
  218. package/dist/{edge-3sC8-cbB.js → edge-qfeek_VV.js} +1 -1
  219. package/dist/{edgeRide-DOxmVxTM.js → edgeRide-iWUNdlxe.js} +4 -4
  220. package/dist/{sharedRealm-H1OrlP0V.js → flatTree-BB4yPMNL.js} +1 -49
  221. package/dist/{handle-CSHfxBie.js → handle-ma1yF_B_.js} +2 -1
  222. package/dist/holdEntranceInput-DjEzfGRU.js +523 -0
  223. package/dist/{index-85RFPeV0.d.ts → index-B52PMrO7.d.ts} +5 -5
  224. package/dist/{index-CyMStZq4.d.ts → index-B63NOJRc.d.ts} +1 -1
  225. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  226. package/dist/{index-BWcZ-L80.d.ts → index-BhdxP-OG.d.ts} +1 -1
  227. package/dist/{index-DRDOArzq.d.ts → index-BjmMJ_4E.d.ts} +19 -19
  228. package/dist/{index-C2HVLdNb.d.ts → index-BtgkNd0Q.d.ts} +2 -2
  229. package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
  230. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  231. package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
  232. package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
  233. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  234. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  235. package/dist/{index-HULXozsK.d.ts → index-Dcxqzk_d.d.ts} +5 -5
  236. package/dist/index.d.ts +14 -14
  237. package/dist/index.js +95 -95
  238. package/dist/inputStream-LZdK8luP.js +239 -0
  239. package/dist/{landing-DFC97kl9.js → landing-qVsYAZ-v.js} +2 -2
  240. package/dist/{pressFeedback-CEUPQWIS.js → pressFeedback-DVR5V1b6.js} +3 -164
  241. package/dist/{stillPointerGate-1Tgkns0J.js → stillPointerGate-D3loXLh7.js} +1 -1
  242. package/dist/{tooltipFocusRules-vIH7PZh1.js → tooltipFocusRules-CFNKWzYn.js} +1 -1
  243. package/dist/{tooltipTriggerRules-DoBAbfGc.js → tooltipTriggerRules-DyPyWOdP.js} +1 -1
  244. package/dist/touchHold-CFJlSClt.js +30 -0
  245. package/dist/{useActionGroupTracking-PVBCtLUE.js → useActionGroupTracking-C6BzQzvp.js} +2 -2
  246. package/dist/{useDismiss-CMIsdIOQ.js → useDismiss-C7_S7qUA.js} +87 -5
  247. package/dist/useHeldPresentation-fQsuYFhz.js +126 -0
  248. package/dist/{useInputStatusIcon-CrgeMzrf.js → useInputStatusIcon-BFw-EXjJ.js} +1 -1
  249. package/dist/{useMenuDrillIn-CQrzwZvx.js → useMenuDrillIn-CDn2na4X.js} +9 -8
  250. package/dist/{useMenuPress-wqRDvUMW.js → useMenuPress-CxUqSUZ9.js} +2 -2
  251. package/dist/{usePressFeedback-aufF1sCH.js → usePressFeedback-BhNcuxQv.js} +1 -1
  252. package/dist/{useTooltip-BwqzEtoF.js → useTooltip-CJHbG8Pv.js} +2 -2
  253. package/dist/{useTouchHitArea-BMDBe36j.js → useTouchHitArea-CNZyA18Y.js} +2 -2
  254. package/dist/{useTruncationTooltip-CRhoPzeu.js → useTruncationTooltip-BTcr1LCR.js} +3 -3
  255. package/dist/{useTypeaheadMenuConfig-GvdIymRg.js → useTypeaheadMenuConfig-DeDGVR8S.js} +1 -1
  256. package/package.json +1 -1
  257. package/styles/context-menu.css +17 -73
  258. package/styles/dialog.css +18 -1
  259. package/styles/hover-card.css +13 -72
  260. package/styles/layer.css +68 -0
  261. package/styles/multi-selector.css +17 -30
  262. package/styles/popover.css +13 -72
  263. package/styles/selector.css +17 -30
  264. package/styles/tooltip.css +12 -71
  265. package/styles/typeahead.css +17 -30
  266. package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
@@ -1,53 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-context-menu-enter-below {
4
- from {
5
- opacity: 0;
6
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.96);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-context-menu-enter-above {
16
- from {
17
- opacity: 0;
18
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.96);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
- @keyframes astryx-context-menu-enter-end {
28
- from {
29
- opacity: 0;
30
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.96);
31
- }
32
-
33
- to {
34
- opacity: 1;
35
- transform: translateX(0) scale(1);
36
- }
37
- }
38
-
39
- @keyframes astryx-context-menu-enter-start {
40
- from {
41
- opacity: 0;
42
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.96);
43
- }
44
-
45
- to {
46
- opacity: 1;
47
- transform: translateX(0) scale(1);
48
- }
49
- }
50
-
51
3
  @keyframes astryx-context-menu-leave {
52
4
  from {
53
5
  opacity: 1;
@@ -146,32 +98,10 @@
146
98
  touch-action: pan-y pinch-zoom;
147
99
  }
148
100
 
149
- .astryx-context-menu[data-placement='below'] {
150
- animation-name: astryx-context-menu-enter-below;
151
- animation-fill-mode: backwards;
152
- }
153
-
154
- .astryx-context-menu[data-placement='above'] {
155
- animation-name: astryx-context-menu-enter-above;
156
- animation-fill-mode: backwards;
157
- }
158
-
159
- .astryx-context-menu[data-placement='end'] {
160
- animation-name: astryx-context-menu-enter-end;
101
+ .astryx-context-menu[data-placement] {
102
+ animation-name: astryx-layer-enter;
161
103
  animation-fill-mode: backwards;
162
- }
163
-
164
- .astryx-context-menu[data-placement='start'] {
165
- animation-name: astryx-context-menu-enter-start;
166
- animation-fill-mode: backwards;
167
- }
168
-
169
- [dir='rtl'] .astryx-context-menu[data-placement='end'] {
170
- animation-name: astryx-context-menu-enter-start;
171
- }
172
-
173
- [dir='rtl'] .astryx-context-menu[data-placement='start'] {
174
- animation-name: astryx-context-menu-enter-end;
104
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
175
105
  }
176
106
 
177
107
  /* A leave keeps its final frame until Vue takes the element away. */
@@ -327,6 +257,20 @@
327
257
  }
328
258
  }
329
259
 
260
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
261
+ .astryx-context-menu[data-placement]:not(.astryx-context-menu-leave-active, .astryx-context-menu-flyout-leave-active) {
262
+ animation: none;
263
+ }
264
+ }
265
+
266
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
267
+ .astryx-context-menu[data-placement]:not(.astryx-context-menu-leave-active, .astryx-context-menu-flyout-leave-active) {
268
+ animation-name: astryx-layer-fade-in;
269
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
270
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
271
+ }
272
+ }
273
+
330
274
  @media (forced-colors: active) {
331
275
  /* 强制配色会去掉阴影,阴影是这块浮层唯一的边,这里补一圈系统色边框。 */
332
276
  .astryx-context-menu {
package/styles/dialog.css CHANGED
@@ -1,5 +1,15 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
+ @keyframes astryx-dialog-fade-in {
4
+ from {
5
+ opacity: 0;
6
+ }
7
+
8
+ to {
9
+ opacity: 1;
10
+ }
11
+ }
12
+
3
13
  @keyframes astryx-dialog-enter {
4
14
  from {
5
15
  opacity: 0;
@@ -115,12 +125,19 @@
115
125
  display: contents;
116
126
  }
117
127
 
118
- @media (prefers-reduced-motion: reduce) {
128
+ /* 减少动效时对话框不移动也不缩放:触屏上原地淡入(200ms 以内),用鼠标时直接出现。 */
129
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
119
130
  .astryx-dialog[open] {
120
131
  animation: none;
121
132
  }
122
133
  }
123
134
 
135
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
136
+ .astryx-dialog[open] {
137
+ animation: astryx-dialog-fade-in var(--_astryx-reduced-motion-fade-duration, 200ms) var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1)) backwards;
138
+ }
139
+ }
140
+
124
141
  @media (forced-colors: active) {
125
142
  /* 强制配色会去掉阴影,遮罩颜色也由系统接管,对话框靠这圈边和页面分开。全屏对话框四周没有页面,不加。 */
126
143
  .astryx-dialog:not(.astryx-dialog--fullscreen) {
@@ -1,53 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-hover-card-enter-above {
4
- from {
5
- opacity: 0;
6
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-hover-card-enter-below {
16
- from {
17
- opacity: 0;
18
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
- @keyframes astryx-hover-card-enter-start {
28
- from {
29
- opacity: 0;
30
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.95);
31
- }
32
-
33
- to {
34
- opacity: 1;
35
- transform: translateX(0) scale(1);
36
- }
37
- }
38
-
39
- @keyframes astryx-hover-card-enter-end {
40
- from {
41
- opacity: 0;
42
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
43
- }
44
-
45
- to {
46
- opacity: 1;
47
- transform: translateX(0) scale(1);
48
- }
49
- }
50
-
51
3
  @keyframes astryx-hover-card-leave-above {
52
4
  from {
53
5
  opacity: 1;
@@ -157,28 +109,9 @@
157
109
  animation-fill-mode: forwards;
158
110
  }
159
111
 
160
- .astryx-hover-card-enter-active[data-placement='above'] {
161
- animation-name: astryx-hover-card-enter-above;
162
- }
163
-
164
- .astryx-hover-card-enter-active[data-placement='below'] {
165
- animation-name: astryx-hover-card-enter-below;
166
- }
167
-
168
- .astryx-hover-card-enter-active[data-placement='start'] {
169
- animation-name: astryx-hover-card-enter-start;
170
- }
171
-
172
- .astryx-hover-card-enter-active[data-placement='end'] {
173
- animation-name: astryx-hover-card-enter-end;
174
- }
175
-
176
- .astryx-hover-card-enter-active[data-placement='start']:is([dir='rtl'] *) {
177
- animation-name: astryx-hover-card-enter-end;
178
- }
179
-
180
- .astryx-hover-card-enter-active[data-placement='end']:is([dir='rtl'] *) {
181
- animation-name: astryx-hover-card-enter-start;
112
+ .astryx-hover-card-enter-active[data-placement] {
113
+ animation-name: astryx-layer-enter;
114
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
182
115
  }
183
116
 
184
117
  .astryx-hover-card-leave-active[data-placement='above'] {
@@ -206,9 +139,17 @@
206
139
  }
207
140
 
208
141
  @media (prefers-reduced-motion: reduce) {
209
- .astryx-hover-card-enter-active,
210
- .astryx-hover-card-leave-active {
142
+ .astryx-hover-card-enter-active[data-placement],
143
+ .astryx-hover-card-leave-active[data-placement] {
211
144
  animation: none;
212
145
  }
213
146
  }
147
+
148
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
149
+ .astryx-hover-card-enter-active[data-placement] {
150
+ animation-name: astryx-layer-fade-in;
151
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
152
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
153
+ }
154
+ }
214
155
  }
package/styles/layer.css CHANGED
@@ -71,4 +71,72 @@
71
71
  /* 外面容器传给 Text 的 anywhere 换行也停在这里,浮层里的 Text 回到自己的 break-word。 */
72
72
  --_astryx-text-overflow-wrap: initial;
73
73
  }
74
+
75
+ /* 进场没拿到运行时写的一侧时,按 placement 退回的方向。横向退回在 RTL 下镜像;运行时写的是物理方向。 */
76
+ [data-placement='above'] {
77
+ --_astryx-layer-enter-from-x: 0;
78
+ --_astryx-layer-enter-from-y: 1;
79
+ }
80
+
81
+ [data-placement='below'] {
82
+ --_astryx-layer-enter-from-x: 0;
83
+ --_astryx-layer-enter-from-y: -1;
84
+ }
85
+
86
+ [data-placement='start'] {
87
+ --_astryx-layer-enter-from-x: 1;
88
+ --_astryx-layer-enter-from-y: 0;
89
+ }
90
+
91
+ [data-placement='end'] {
92
+ --_astryx-layer-enter-from-x: -1;
93
+ --_astryx-layer-enter-from-y: 0;
94
+ }
95
+
96
+ [data-placement='start']:is([dir='rtl'] *) {
97
+ --_astryx-layer-enter-from-x: -1;
98
+ }
99
+
100
+ [data-placement='end']:is([dir='rtl'] *) {
101
+ --_astryx-layer-enter-from-x: 1;
102
+ }
103
+ }
104
+
105
+ /*
106
+ * 锚定浮层的进场(上游 Layer/layerAnimations)。
107
+ *
108
+ * 浮层摆好后,定位运行时(layer/layerEntranceSide.ts)在浮层上写下它落在的那一侧:
109
+ * 每个轴往锚点退的一步(-1、0、1)、缩放原点、和锚点之间的空隙。进场从那一侧滑进来,
110
+ * 以浮层和锚点相接的点为原点缩放;退的那一步取 spacing-2 和空隙里较小的一个,所以
111
+ * 任何一帧都不会盖到锚点。用它的浮层要写
112
+ * `transform-origin: var(--_astryx-layer-enter-origin, 50% 50%)`。
113
+ *
114
+ * 减少动效时,主指针是粗略指针(手指)就改用 astryx-layer-fade-in 只淡入(motion.css
115
+ * 的减少动效时长和曲线),其余指针直接出现。
116
+ */
117
+ @keyframes astryx-layer-enter {
118
+ from {
119
+ opacity: 0;
120
+ transform:
121
+ translate(
122
+ calc(var(--_astryx-layer-enter-x, var(--_astryx-layer-enter-from-x, 0)) * min(var(--astryx-spacing-2, 8px), var(--_astryx-layer-enter-gap, var(--astryx-spacing-2, 8px)))),
123
+ calc(var(--_astryx-layer-enter-y, var(--_astryx-layer-enter-from-y, -1)) * min(var(--astryx-spacing-2, 8px), var(--_astryx-layer-enter-gap, var(--astryx-spacing-2, 8px))))
124
+ )
125
+ scale(0.95);
126
+ }
127
+
128
+ to {
129
+ opacity: 1;
130
+ transform: translate(0, 0) scale(1);
131
+ }
132
+ }
133
+
134
+ @keyframes astryx-layer-fade-in {
135
+ from {
136
+ opacity: 0;
137
+ }
138
+
139
+ to {
140
+ opacity: 1;
141
+ }
74
142
  }
@@ -1,29 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-multi-selector-enter-below {
4
- from {
5
- opacity: 0;
6
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-multi-selector-enter-above {
16
- from {
17
- opacity: 0;
18
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
3
  @layer astryx.components {
28
4
  .astryx-field.astryx-multi-selector {
29
5
  width: var(--astryx-field-width, 100%);
@@ -269,12 +245,9 @@
269
245
  animation-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
270
246
  }
271
247
 
272
- .astryx-multi-selector-listbox[data-placement='below'] {
273
- animation-name: astryx-multi-selector-enter-below;
274
- }
275
-
276
- .astryx-multi-selector-listbox[data-placement='above'] {
277
- animation-name: astryx-multi-selector-enter-above;
248
+ .astryx-multi-selector-listbox[data-placement] {
249
+ animation-name: astryx-layer-enter;
250
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
278
251
  }
279
252
 
280
253
  .astryx-multi-selector-search {
@@ -406,6 +379,20 @@
406
379
  animation: none;
407
380
  }
408
381
  }
382
+
383
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
384
+ .astryx-multi-selector-listbox[data-placement] {
385
+ animation: none;
386
+ }
387
+ }
388
+
389
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
390
+ .astryx-multi-selector-listbox[data-placement] {
391
+ animation-name: astryx-layer-fade-in;
392
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
393
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
394
+ }
395
+ }
409
396
  }
410
397
 
411
398
  /* 不分层:压过文档页 :where(input, button, ...):focus-visible 的品牌绿环。
@@ -1,53 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-popover-enter-above {
4
- from {
5
- opacity: 0;
6
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-popover-enter-below {
16
- from {
17
- opacity: 0;
18
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
- @keyframes astryx-popover-enter-start {
28
- from {
29
- opacity: 0;
30
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.95);
31
- }
32
-
33
- to {
34
- opacity: 1;
35
- transform: translateX(0) scale(1);
36
- }
37
- }
38
-
39
- @keyframes astryx-popover-enter-end {
40
- from {
41
- opacity: 0;
42
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
43
- }
44
-
45
- to {
46
- opacity: 1;
47
- transform: translateX(0) scale(1);
48
- }
49
- }
50
-
51
3
  @layer astryx.components {
52
4
  .astryx-popover-trigger {
53
5
  display: inline-flex;
@@ -74,28 +26,9 @@
74
26
  animation-timing-function: var(--astryx-ease-entrance, cubic-bezier(0.24, 1, 0.4, 1));
75
27
  }
76
28
 
77
- .astryx-popover[data-placement='above'] {
78
- animation-name: astryx-popover-enter-above;
79
- }
80
-
81
- .astryx-popover[data-placement='below'] {
82
- animation-name: astryx-popover-enter-below;
83
- }
84
-
85
- .astryx-popover[data-placement='start'] {
86
- animation-name: astryx-popover-enter-start;
87
- }
88
-
89
- .astryx-popover[data-placement='end'] {
90
- animation-name: astryx-popover-enter-end;
91
- }
92
-
93
- .astryx-popover[data-placement='start']:is([dir='rtl'] *) {
94
- animation-name: astryx-popover-enter-end;
95
- }
96
-
97
- .astryx-popover[data-placement='end']:is([dir='rtl'] *) {
98
- animation-name: astryx-popover-enter-start;
29
+ .astryx-popover[data-placement] {
30
+ animation-name: astryx-layer-enter;
31
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
99
32
  }
100
33
 
101
34
  .astryx-popover__body {
@@ -133,12 +66,20 @@
133
66
  padding-block-start: var(--astryx-spacing-1, 4px);
134
67
  }
135
68
 
136
- @media (prefers-reduced-motion: reduce) {
137
- .astryx-popover {
69
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
70
+ .astryx-popover[data-placement] {
138
71
  animation: none;
139
72
  }
140
73
  }
141
74
 
75
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
76
+ .astryx-popover[data-placement] {
77
+ animation-name: astryx-layer-fade-in;
78
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
79
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
80
+ }
81
+ }
82
+
142
83
  @media (forced-colors: active) {
143
84
  /* 强制配色会去掉阴影,阴影是这块浮层唯一的边,这里补一圈系统色边框。 */
144
85
  .astryx-popover {
@@ -1,29 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-selector-enter-below {
4
- from {
5
- opacity: 0;
6
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-selector-enter-above {
16
- from {
17
- opacity: 0;
18
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
3
  @layer astryx.components {
28
4
  .astryx-selector {
29
5
  display: inline-block;
@@ -326,12 +302,9 @@
326
302
  font-weight: var(--astryx-font-weight-medium, 500);
327
303
  }
328
304
 
329
- .astryx-selector-listbox[data-placement='below'] {
330
- animation-name: astryx-selector-enter-below;
331
- }
332
-
333
- .astryx-selector-listbox[data-placement='above'] {
334
- animation-name: astryx-selector-enter-above;
305
+ .astryx-selector-listbox[data-placement] {
306
+ animation-name: astryx-layer-enter;
307
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
335
308
  }
336
309
 
337
310
  .astryx-selector-search {
@@ -521,6 +494,20 @@
521
494
  animation: none;
522
495
  }
523
496
  }
497
+
498
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
499
+ .astryx-selector-listbox[data-placement] {
500
+ animation: none;
501
+ }
502
+ }
503
+
504
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
505
+ .astryx-selector-listbox[data-placement] {
506
+ animation-name: astryx-layer-fade-in;
507
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
508
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
509
+ }
510
+ }
524
511
  }
525
512
 
526
513
  /* Unlayered: the field chrome owns focus. A page ring on the trigger or search input stacks a second outline. */
@@ -1,53 +1,5 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
- @keyframes astryx-tooltip-enter-above {
4
- from {
5
- opacity: 0;
6
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- transform: translateY(0) scale(1);
12
- }
13
- }
14
-
15
- @keyframes astryx-tooltip-enter-below {
16
- from {
17
- opacity: 0;
18
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
19
- }
20
-
21
- to {
22
- opacity: 1;
23
- transform: translateY(0) scale(1);
24
- }
25
- }
26
-
27
- @keyframes astryx-tooltip-enter-start {
28
- from {
29
- opacity: 0;
30
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.95);
31
- }
32
-
33
- to {
34
- opacity: 1;
35
- transform: translateX(0) scale(1);
36
- }
37
- }
38
-
39
- @keyframes astryx-tooltip-enter-end {
40
- from {
41
- opacity: 0;
42
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
43
- }
44
-
45
- to {
46
- opacity: 1;
47
- transform: translateX(0) scale(1);
48
- }
49
- }
50
-
51
3
  @layer astryx.components {
52
4
  .astryx-tooltip-trigger {
53
5
  display: contents;
@@ -89,33 +41,22 @@
89
41
  animation-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
90
42
  }
91
43
 
92
- .astryx-tooltip[data-placement='above'] {
93
- animation-name: astryx-tooltip-enter-above;
94
- }
95
-
96
- .astryx-tooltip[data-placement='below'] {
97
- animation-name: astryx-tooltip-enter-below;
98
- }
99
-
100
- .astryx-tooltip[data-placement='start'] {
101
- animation-name: astryx-tooltip-enter-start;
44
+ .astryx-tooltip[data-placement] {
45
+ animation-name: astryx-layer-enter;
46
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
102
47
  }
103
48
 
104
- .astryx-tooltip[data-placement='end'] {
105
- animation-name: astryx-tooltip-enter-end;
106
- }
107
-
108
- .astryx-tooltip[data-placement='start']:is([dir='rtl'] *) {
109
- animation-name: astryx-tooltip-enter-end;
110
- }
111
-
112
- .astryx-tooltip[data-placement='end']:is([dir='rtl'] *) {
113
- animation-name: astryx-tooltip-enter-start;
49
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
50
+ .astryx-tooltip[data-placement] {
51
+ animation: none;
52
+ }
114
53
  }
115
54
 
116
- @media (prefers-reduced-motion: reduce) {
117
- .astryx-tooltip {
118
- animation: none;
55
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
56
+ .astryx-tooltip[data-placement] {
57
+ animation-name: astryx-layer-fade-in;
58
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
59
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
119
60
  }
120
61
  }
121
62
  }