@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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DXOTr1D7.js → AlertDialog-Cub9_aPC.js} +6 -6
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cmu6bMY6.js → AppShell-D62A7lqZ.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-dMcn3j8Z.js → Avatar-BKoSK75s.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BUXjzekw.js → AvatarGroup-DT5RbxDa.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CTY9qV89.js → Banner-cg2nXT_4.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-ZOjuZya0.js → BottomSheet-CpLYy3vb.js} +1 -1
- package/dist/{BottomSheet-DyJJtZZU.js → BottomSheet-DGhRZLw4.js} +108 -8
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-Nv-089W0.js → Breadcrumbs-D-nHDHV8.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-TiYG0btL.js → Button-D8AGK5oT.js} +3 -3
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DNN4O9_-.js → ButtonGroup-CUN_rC57.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DsXup1mZ.js → Carousel-DrCG9wbP.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DqYT_S9M.js → Chat-U1qq8gkF.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-FKfsoLcl.js → CheckboxInput-qm6lkjAw.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DuSVBtMk.js → CheckboxList-DuCKhJHJ.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-dNmSVHBu.js → ClickableCard-CwGxO0GU.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-5KoJDvWd.js → CodeBlock-PMZd9dQ9.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B1qW6OuL.js → Collapsible-BmUloCSR.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-B2riNg_7.js → CommandPalette-Cy7trpD3.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-C4CO8Fd2.js → ComplexSelector-DMBiVQWp.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-SzsWZf18.js → ContextMenu-63ay7EE-.js} +13 -26
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D9Jv70H7.js → DateInput-B3Q91FDT.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BsB2kg_q.js → DateRangeInput-B6Z66OsH.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BDyKPKGD.js → DateTimeInput-B_7cn7ze.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-JCB5s-T-.js → Dialog-C4FZ7p7Q.js} +10 -0
- package/dist/{Dialog-DUlWQH8R.js → Dialog-CBPD5b-S.js} +1 -1
- package/dist/{DialogHeader-C6hZZxdv.js → DialogHeader-CQ3pnLYi.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BDuiw1-g.js → Drawer-BOwQLKm9.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-Der2x_k_.js → DropdownMenu-9CR9TiKG.js} +5 -5
- package/dist/{DropdownMenu-BhxKnh6D.js → DropdownMenu-DwIfoTnV.js} +18 -18
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CnFkYtcS.js → EmptyState-BG5g2jwJ.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D4UmRHlD.js → Field-eAowUUMX.js} +1 -1
- package/dist/{FieldInfoTip-BSqcEcUx.js → FieldInfoTip-Dwl9HNp1.js} +1 -1
- package/dist/{FieldLabel-CZbayYFD.js → FieldLabel-CgYk-ORu.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-8oYiJsq_.js → FileInput-B7zeePbM.js} +2 -2
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-COtyAhtB.js → Heading-B1dNZQtu.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DGlOpk4x.js → HoverCard-CZhfsvP4.js} +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CwjHTIBg.js → IconButton-D9ZRJ7vD.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-CNZateDb.js → InfoTip-LJi9llxi.js} +2 -2
- package/dist/{InputClearButton-CzCP41sx.js → InputClearButton-C-j9Nf1s.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CfUGHDNz.js → InputGroup-B8PGJZKH.js} +1 -1
- package/dist/{Item-DyaYlbyE.js → Item-DUI1Qnnd.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Dzzd2Vqe.js → Lightbox-BOWTHnTb.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-B7OJQ0zl.js → Link-B75ygGzG.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-gj_lOvEt.js → ListItem-C8SqSrU6.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cbj-nqhN.js → Markdown-Cqrcj-ct.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BlcdCg8M.js → MobileNavToggle-DLpEONfs.js} +12 -0
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dokwc4Mg.js → MoreMenu-aR88r9xp.js} +17 -31
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CId8-qAX.js → MultiSelector-UTaDe-YT.js} +22 -23
- package/dist/{NavDisclosure-CqAThYgR.js → NavDisclosure-B66SHKdd.js} +1 -1
- package/dist/{NavHeadingSurface-DJ4pWvEi.js → NavHeadingSurface-BZCzkCPJ.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-_eIEwV41.js → NavItem-c1ScHEJY.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BtA_Xbmr.js → NavMenu-DS6y8ZAY.js} +2 -2
- package/dist/{NavMenuItem-BxfjAf1T.js → NavMenuItem-BqIi3o3D.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-Bl5TFhGD.js → NumberInput-ClkOGF5j.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-NuPQMjxw.js → Outline-DvQbXc_H.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CumJl6X_.js → OverflowList-UnVXBDIW.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-C0Bx80Tu.js → Pagination-CTCLE02h.js} +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DpR4rwiW.js → Popover-CZvRSqqD.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Dq6Gi9z1.js → PowerSearch-BBOum0TP.js} +17 -17
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dp-0xquN.js → ProgressBar-Bgg6zsKR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-IKBXLzYU.js → RadioGroup-DPy5JQhm.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-NW4fGKgm.js → RadioList-UN7IxQg8.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DRxcUlVP.js → SegmentedControl-BkWz-I2J.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Dp-LsEcf.js → SelectableCard-GRWYx3iD.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BW_oxWDM.js → Selector-CCtsUveZ.js} +27 -22
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-B5mMRj98.js → SideNav-COl5ApOz.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-oD3AY4jh.js → Slider-CYie9hWm.js} +2 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-B3oOyRF7.js → StatusDot-CHfgSYmv.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CgOdL36_.js → Stepper-CCuggsov.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DG_A9cD0.js → Switch-D24CvhDS.js} +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-FkoypUk0.js → TabList-DToCh5JW.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-zNW23VwP.js → Table-D3mzxBr0.js} +13 -13
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-v1ep26uD.js → Text-5p-eZodt.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BilHnmSs.js → TextArea-Bp6D-riO.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-D6tHM2sA.js → TextInput-BYslwBDZ.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-llGdnQM8.js → Thumbnail-B_a8tOS7.js} +3 -3
- package/dist/{TimeField-C5rcoaVu.js → TimeField-MDSJny9m.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D0N8nwrI.js → TimeInput-B19amuxi.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-65PfuoQ7.js → Timer-BD3tfzrF.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-rYC8mE3r.js → Timestamp-CqWoZUKM.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BtQ-4Y6Z.js → Toast-BKPl8iIr.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Bnn_MiOn.js → ToggleButton-DfpsuhMa.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-B-j3AKxB.js → Token-C7Dt5ygK.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Cpdy_L00.js → Tokenizer-C-eorFsF.js} +5 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CByjfHBZ.js → Tooltip-88zhGfzF.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-q8xDVlM_.js → TopNav-DMFIsFwy.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CEGInQtF.js → TreeList-nU2gSmQm.js} +3 -3
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-C-PdRnRQ.js → Typeahead-DUQfmy_r.js} +5 -5
- package/dist/{assertOptions-og3t30Fh.js → assertOptions-DVRsfCk1.js} +22 -2
- package/dist/{batch-oTkSbtVz.js → batch-DR5SgbnX.js} +2 -2
- package/dist/{clickGuard-ChKuogmR.js → clickGuard-FrlnECMp.js} +1 -2
- package/dist/coarsePointer-BfMx3H23.js +86 -0
- package/dist/composables/index.js +6 -6
- package/dist/{composables-COCeg92e.js → composables-Do86VAmM.js} +7 -110
- package/dist/{context-DQPBIsl5.js → context-WY1ippwe.js} +2 -2
- package/dist/{edge-3sC8-cbB.js → edge-qfeek_VV.js} +1 -1
- package/dist/{edgeRide-DOxmVxTM.js → edgeRide-iWUNdlxe.js} +4 -4
- package/dist/{sharedRealm-H1OrlP0V.js → flatTree-BB4yPMNL.js} +1 -49
- package/dist/{handle-CSHfxBie.js → handle-ma1yF_B_.js} +2 -1
- package/dist/holdEntranceInput-DjEzfGRU.js +523 -0
- package/dist/{index-85RFPeV0.d.ts → index-B52PMrO7.d.ts} +5 -5
- package/dist/{index-CyMStZq4.d.ts → index-B63NOJRc.d.ts} +1 -1
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BWcZ-L80.d.ts → index-BhdxP-OG.d.ts} +1 -1
- package/dist/{index-DRDOArzq.d.ts → index-BjmMJ_4E.d.ts} +19 -19
- package/dist/{index-C2HVLdNb.d.ts → index-BtgkNd0Q.d.ts} +2 -2
- package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-HULXozsK.d.ts → index-Dcxqzk_d.d.ts} +5 -5
- package/dist/index.d.ts +14 -14
- package/dist/index.js +95 -95
- package/dist/inputStream-LZdK8luP.js +239 -0
- package/dist/{landing-DFC97kl9.js → landing-qVsYAZ-v.js} +2 -2
- package/dist/{pressFeedback-CEUPQWIS.js → pressFeedback-DVR5V1b6.js} +3 -164
- package/dist/{stillPointerGate-1Tgkns0J.js → stillPointerGate-D3loXLh7.js} +1 -1
- package/dist/{tooltipFocusRules-vIH7PZh1.js → tooltipFocusRules-CFNKWzYn.js} +1 -1
- package/dist/{tooltipTriggerRules-DoBAbfGc.js → tooltipTriggerRules-DyPyWOdP.js} +1 -1
- package/dist/touchHold-CFJlSClt.js +30 -0
- package/dist/{useActionGroupTracking-PVBCtLUE.js → useActionGroupTracking-C6BzQzvp.js} +2 -2
- package/dist/{useDismiss-CMIsdIOQ.js → useDismiss-C7_S7qUA.js} +87 -5
- package/dist/useHeldPresentation-fQsuYFhz.js +126 -0
- package/dist/{useInputStatusIcon-CrgeMzrf.js → useInputStatusIcon-BFw-EXjJ.js} +1 -1
- package/dist/{useMenuDrillIn-CQrzwZvx.js → useMenuDrillIn-CDn2na4X.js} +9 -8
- package/dist/{useMenuPress-wqRDvUMW.js → useMenuPress-CxUqSUZ9.js} +2 -2
- package/dist/{usePressFeedback-aufF1sCH.js → usePressFeedback-BhNcuxQv.js} +1 -1
- package/dist/{useTooltip-BwqzEtoF.js → useTooltip-CJHbG8Pv.js} +2 -2
- package/dist/{useTouchHitArea-BMDBe36j.js → useTouchHitArea-CNZyA18Y.js} +2 -2
- package/dist/{useTruncationTooltip-CRhoPzeu.js → useTruncationTooltip-BTcr1LCR.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-GvdIymRg.js → useTypeaheadMenuConfig-DeDGVR8S.js} +1 -1
- package/package.json +1 -1
- package/styles/context-menu.css +17 -73
- package/styles/dialog.css +18 -1
- package/styles/hover-card.css +13 -72
- package/styles/layer.css +68 -0
- package/styles/multi-selector.css +17 -30
- package/styles/popover.css +13 -72
- package/styles/selector.css +17 -30
- package/styles/tooltip.css +12 -71
- package/styles/typeahead.css +17 -30
- package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
package/styles/context-menu.css
CHANGED
|
@@ -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
|
|
150
|
-
animation-name: astryx-
|
|
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
|
-
|
|
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) {
|
package/styles/hover-card.css
CHANGED
|
@@ -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
|
|
161
|
-
animation-name: astryx-
|
|
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
|
|
273
|
-
animation-name: astryx-
|
|
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 的品牌绿环。
|
package/styles/popover.css
CHANGED
|
@@ -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
|
|
78
|
-
animation-name: astryx-
|
|
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 {
|
package/styles/selector.css
CHANGED
|
@@ -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
|
|
330
|
-
animation-name: astryx-
|
|
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. */
|
package/styles/tooltip.css
CHANGED
|
@@ -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
|
|
93
|
-
animation-name: astryx-
|
|
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
|
-
|
|
105
|
-
|
|
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:
|
|
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
|
}
|