@astryx-vue/core 0.33.2 → 0.33.4
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-BwW3jdTg.js → AlertDialog-CwyMvZEI.js} +9 -9
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BURF50V8.js → AppShell-4hWTPKSD.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CcmhCa5q.js → Avatar-C6E6TYbe.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DJKoExQk.js → AvatarGroup-BIPixZOb.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DSSXXFU9.js → Banner-CMXebR4Y.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-KUGb-GPw.js → BottomSheet-BmmGemH5.js} +1 -1
- package/dist/{BottomSheet-Jq7g0EWd.js → BottomSheet-DKEUVLe5.js} +9 -9
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BEx7_LpB.js → Breadcrumbs-BPxPAEHQ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BlWhnkeM.js → Button-B7PvGVt6.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D3pGXH3t.js → ButtonGroup-BkwQ0h97.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-XHo3AGQj.js → Carousel-BmfKiv69.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-B0c_CxBk.js → Chat-2AG37D51.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DCeCsNvg.js → CheckboxInput-rbMgS8ZL.js} +79 -74
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CGC_EBYs.js → CheckboxListItem-Ckt1Cwt_.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-aU0QED8P.js → ClickableCard-Dh0tOQv-.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-ClZvd61o.js → CodeBlock-ZluDuBT7.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BAup__Sy.js → Collapsible-B_9H2wV_.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CvalZZHH.js → CommandPalette-Cbr-WWC8.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DIwWcWwi.js → ComplexSelector-BPvBCUJk.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BnX93m0D.js → ContextMenu-BF4ALBZn.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BFjeik3X.js → DateInput-C7PICKR2.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cnrp5SDW.js → DateRangeInput-Dt-BA7AA.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Zsf86rSO.js → DateTimeInput-XEESzGJf.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Bl5CCsoX.js → Dialog-B1xC9xMC.js} +2 -2
- package/dist/{Dialog-DIWIrzgk.js → Dialog-BmdNX3NC.js} +1 -1
- package/dist/{DialogHeader-DbWkeIrf.js → DialogHeader-DcP4xAk3.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-MdC2BxbG.js → Drawer-CdHbZffI.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-4o8qS78m.js → DropdownMenu-C1494BkC.js} +9 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CeZXvaPU.js → EmptyState-BAP8BpDj.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CrTrfcXB.js → Field-KszpxUdx.js} +1 -1
- package/dist/{FieldInfoTip-C3Ztw-wI.js → FieldInfoTip-CY9BTVtK.js} +1 -1
- package/dist/{FieldLabel-CFE2WC_i.js → FieldLabel-KPCTcJpO.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BhO1SCw-.js → FileInput-BTIn6OoY.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-AZCa8gid.js → Heading-D94VFJtm.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C4VR_GZ0.js → HoverCard-rwpyd6nt.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CqWEkha9.js → IconButton-e5xeGow-.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Dps1Aaem.js → InfoTip-DpvV8zrm.js} +2 -2
- package/dist/{InputClearButton-Xjvkkq7B.js → InputClearButton-BzxJH6mk.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-gYIGs7VH.js → InputGroup-Bj4hksiI.js} +1 -1
- package/dist/{Item-FxMSEuU3.js → Item-D62Cibn1.js} +2 -2
- package/dist/{LayerContentBoundary-C7VZOgMs.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-D6UhyoVb.js → Layout-SJoCw8NC.js} +1 -1
- package/dist/{LayoutPanel-DfS5TvSP.js → LayoutPanel-DZN4RxX6.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-76vHqGA0.js → Lightbox-FWtAn7X5.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-QPBGLcTk.js → Link-BxK3lbA-.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Ss6Kw90l.js → ListItem-B4jt3EXr.js} +4 -4
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cz6wbx9z.js → Markdown-CsoseOGe.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CCJBX2fq.js → MobileNavToggle-AgT6hzTg.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-OOQAeJT9.js → MoreMenu-4zcxptan.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-9HGDsMQE.js → MultiSelector-LuAE71wE.js} +6 -6
- package/dist/{NavDisclosure-BTeZLyLq.js → NavDisclosure-CSnUZY3k.js} +1 -1
- package/dist/{NavHeadingSurface-DPmolgVb.js → NavHeadingSurface-C3fTf5--.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BL3g0YUf.js → NavItem-mcmzIshL.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DcTh1DCM.js → NavMenu-Bp35Bk7_.js} +2 -2
- package/dist/{NavMenuItem-Dmsno5s3.js → NavMenuItem-DviXkleh.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DWYCcrUw.js → NumberInput-CxzhFPQw.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DGtPcD0U.js → Outline-KpA-ffCT.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-EIr4jQjY.js → OverflowList-DRZxrAYq.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Ch7-xIFe.js → Pagination-B3JMAlnl.js} +2 -2
- package/dist/PanGestureRecognizer-R5y8LZ9h.js +681 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-LSIKv1zS.js → Popover-CQr95J2s.js} +10 -10
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cjkv0qON.js → PowerSearch-BEaqgsZa.js} +26 -26
- package/dist/PressTracker-Dze87pxw.js +190 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-nPERcjvJ.js → ProgressBar-ChgsiVRR.js} +3 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BWFVn7Gd.js → RadioGroup-CpMYh9eL.js} +9 -6
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D1rnSZeL.js → RadioListItem-n-h5r1GO.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DyjQfxxG.js → ResizeHandle-J9-dAMuo.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/SegmentedControl-nz9d6e0y.js +1465 -0
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-uDblNb5T.js → SelectableCard-C018jluo.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BiLcyM3Y.js → Selector-CW1jaM4F.js} +4 -4
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-d0A9mlEW.js → SideNav-DgRpBPuP.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-Bz72itTP.js +1786 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D3z-WEGn.js → StatusDot-D7nVuPg7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CePOs80C.js → Stepper-Af_rH8C4.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-BYsb1gKn.js +1397 -0
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CthDI2i1.js → TabList-Cgw2IuL-.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-egoY0slV.js → Table-DzE-4_og.js} +12 -12
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CGb1rxyK.js → Text-kwsIut3C.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-B3WlT4sr.js → TextArea-DrYMTaZm.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C4CqgE0E.js → TextInput-B-1cuwcB.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-6YWZ9a2A.js → Thumbnail-DeMaRkDU.js} +3 -3
- package/dist/{TimeField-CvBKO_Ew.js → TimeField-C1Nv-fz3.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Cl9HIZrP.js → TimeInput-Dvh6qqHI.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-BNa_W8zr.js → Timer-B-9sSJWK.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D_NTXtxz.js → Timestamp-wFkl39dn.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-E6NqFf3W.js → Toast-CO6Z1r1s.js} +5 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-ih92QX-K.js → ToggleButton-DPpjDYxP.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DE1udaRF.js → Token-DZkUAIYA.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DbD2ZBuh.js → Tokenizer-CX7D4klL.js} +13 -13
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-sXtW5dTD.js → Tooltip-DyGaJUbl.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D688LaUK.js → TopNav-D8Hc_kQ-.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BFKPBFKu.js → TreeList-lNyuRBOk.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BwjzOjT4.js → Typeahead-BiosTaFo.js} +5 -5
- package/dist/{VelocityTracker-bns4TzMt.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-nYUMoSTW.js → accessibleName-f5xApbXG.js} +2 -2
- package/dist/{animator-DnLs_cbV.js → animator-ozeBZ_zC.js} +3 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-Byu4Yqfg.js} +1 -1
- package/dist/boxHold-YML2o6iP.js +170 -0
- package/dist/browserClickWait-DIj9tkLa.js +77 -0
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-BWNSUIY8.js} +2 -32
- package/dist/composables/index.js +10 -10
- package/dist/{composables-B9tgZEzP.js → composables-CPDafrux.js} +12 -9
- package/dist/{context-Dktfy1fh.js → context-C1MPE6J5.js} +1 -1
- package/dist/{useAttachment-CALrXA-t.js → geometry-CGa3nNzZ.js} +14 -837
- package/dist/{gestures-CppaWqif.js → gestures-yKyyMqeQ.js} +225 -1
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-C8B_DYYs.js} +2 -2
- package/dist/{index-MOtVbTwK.d.ts → index-B6GTqpW-.d.ts} +4 -4
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-D7ShT2c-.d.ts → index-BB9acgK8.d.ts} +2 -2
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-D65x5ny5.d.ts → index-BdICULsZ.d.ts} +78 -78
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-3LdpzxQZ.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-Cm36VS1A.d.ts → index-C9uW39Mj.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
- package/dist/{index-85y5NZP-.d.ts → index-CpkQlo1t.d.ts} +2 -2
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-DWVhyvVu.d.ts → index-CukA-J8A.d.ts} +6 -6
- package/dist/{index-eCp-ElSp.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-CM00rrgg.d.ts → index-DhrnMYVh.d.ts} +3 -3
- package/dist/{index-BOiwoyXq.d.ts → index-DlsrR4Gm.d.ts} +8 -8
- package/dist/{index-Otl047R1.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-CArP_6wv.d.ts → index-ZXrvTM3A.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-a_FOKJMw.d.ts} +2 -2
- package/dist/{index-CdvmnNMH.d.ts → index-jz9GfvS0.d.ts} +1 -1
- package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
- package/dist/index.d.ts +25 -25
- package/dist/index.js +101 -101
- package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
- package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
- package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
- package/dist/{landing-9mjHGn26.js → landing-BW6qLvC8.js} +1 -1
- package/dist/{layerDepth-c3jUndA2.js → layerDepth-SGFJ5L6X.js} +1 -1
- package/dist/{lazyBottomSheet-Ca7Mdou2.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
- package/dist/{linearEasing-CBwOorE7.js → linearEasing-VHwy6xl_.js} +1 -1
- package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
- package/dist/{presentationHold-B4tK68sd.js → presentationHold-ZKixVLcz.js} +1 -1
- package/dist/pressClaim-DvdlIn4w.js +24 -0
- package/dist/{pressFeedback-BlOSZew9.js → pressFeedback--_INTed0.js} +49 -9
- package/dist/{pressGesture-yntcDLXo.js → pressGesture-B3Efxs_z.js} +1 -1
- package/dist/{rubberBand-DDapO54w.js → projection-qPcLQcwK.js} +2 -50
- package/dist/{reportChange-DPFCmyOB.js → reportChange-DwOfucSf.js} +4 -4
- package/dist/{resizableChannel-DOmBYh4V.js → resizableChannel-BnwrR5tr.js} +5 -5
- package/dist/{resolveMotion-CF9fXX0t.js → resolveMotion-DftkGFw6.js} +1 -1
- package/dist/{resolveSnapPoint-mZzJRIC2.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
- package/dist/rubberBand-DDd5ElTe.js +65 -0
- package/dist/selectionLock-BrUpRS0E.js +130 -0
- package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
- package/dist/{springs-B2jqskKJ.js → springs-DjAn_oV5.js} +1 -1
- package/dist/{stillPointerGate-Htiy6uKa.js → stillPointerGate-BvCX7ddI.js} +1 -1
- package/dist/{themeTiming-ClYaZxGf.js → themeTiming-BJziEh4O.js} +1 -1
- package/dist/{tooltipFocusRules-BHJUQprJ.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
- package/dist/{tooltipTriggerRules-Dremu4W9.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
- package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
- package/dist/touchQueries-xy5IeZfe.js +32 -0
- package/dist/{useActionGroupTracking-DDhfTUOK.js → useActionGroupTracking-BTjuGF9J.js} +3 -3
- package/dist/{useAnimatedLayout-B6Xj_kTo.js → useAnimatedLayout-CRAuCwTZ.js} +1 -1
- package/dist/useAttachment-CGiD9rt6.js +24 -0
- package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
- package/dist/{useDismiss-BvDK4xBe.js → useDismiss-6SGAlkB_.js} +1 -1
- package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-CaIKTwUh.js} +1 -1
- package/dist/{useInputStatusIcon-MyCpVp3g.js → useInputStatusIcon-Bl2JFlc3.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-C-kHicUN.js} +1 -1
- package/dist/{useMenuPress-BJVQF7ml.js → useMenuPress-CF1GHP_7.js} +6 -4
- package/dist/{usePressFeedback-cxyksfAD.js → usePressFeedback-B_NavJu0.js} +1 -1
- package/dist/{useResizable-C-9ff2ZK.js → useResizable-I0APFcMz.js} +6 -5
- package/dist/{useTooltip-w57yzB7h.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-CgUvnuTz.js → useTouchHitArea-BpEJXuu-.js} +2 -2
- package/dist/{useTouchTriggerInternal-DSA228_-.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
- package/dist/{useTruncationTooltip--w8vh7M-.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-C-EOaLF-.js → useTypeaheadMenuConfig-COiZ4isy.js} +1 -1
- package/package.json +1 -1
- package/styles/segmented-control.css +20 -11
- package/styles/slider.css +59 -12
- package/styles/switch.css +101 -34
- package/dist/SegmentedControl-CkR8ur3h.js +0 -416
- package/dist/Slider-BdIrYmul.js +0 -735
- package/dist/Switch-6tQbDX9A.js +0 -355
|
@@ -98,28 +98,38 @@
|
|
|
98
98
|
|
|
99
99
|
/*
|
|
100
100
|
* 选中块是控件里独立的一块表面,选中的分段一变就滑到新位置,大小也跟着变。
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* 脚本把它的位置和大小写在行内(left、top、width、height),动画只改
|
|
102
|
+
* translate、scale 和 opacity。量到位置之前(服务端渲染、还没有布局),
|
|
103
|
+
* 选中块藏着,选中的分段自己画这块底色;量到以后控件带上 data-selection,
|
|
104
|
+
* 由选中块画,分段只留文字的颜色和字重。
|
|
103
105
|
*/
|
|
104
106
|
.astryx-segmented-control__selection {
|
|
105
107
|
position: absolute;
|
|
106
108
|
z-index: 0;
|
|
107
109
|
top: 0;
|
|
108
110
|
left: 0;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
display: none;
|
|
112
|
+
box-sizing: border-box;
|
|
111
113
|
border-radius: max(0px, calc(var(--_segmented-control-radius) - var(--_segmented-control-padding)));
|
|
112
114
|
background-color: var(--astryx-segmented-control-item-selected-background, light-dark(#fff, #262626));
|
|
113
115
|
box-shadow: var(--astryx-segmented-control-item-selected-shadow);
|
|
114
|
-
transform: translate(var(--_selection-x), var(--_selection-y));
|
|
115
116
|
pointer-events: none;
|
|
116
117
|
forced-color-adjust: none;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
|
-
.astryx-segmented-control[data-selection
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control__selection:not(.astryx-segmented-control__selection--leaving),
|
|
121
|
+
.astryx-segmented-control__selection--leaving[data-shown] {
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* 手指按住选中的分段时,选中块抬起来,带上主题的低层级投影。 */
|
|
126
|
+
.astryx-segmented-control__selection[data-lifted] {
|
|
127
|
+
box-shadow: var(--astryx-shadow-low, 0 1px 2px rgb(0 0 0 / 12%));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* 触屏呈现下文字颜色跟着选中块走,不再自己过渡。 */
|
|
131
|
+
.astryx-segmented-control[data-touch] > .astryx-segmented-control-item {
|
|
132
|
+
transition-property: none;
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item {
|
|
@@ -214,8 +224,7 @@
|
|
|
214
224
|
}
|
|
215
225
|
|
|
216
226
|
@media (prefers-reduced-motion: reduce) {
|
|
217
|
-
.astryx-segmented-control-item
|
|
218
|
-
.astryx-segmented-control[data-selection='ready'] > .astryx-segmented-control__selection {
|
|
227
|
+
.astryx-segmented-control-item {
|
|
219
228
|
transition-duration: 0s;
|
|
220
229
|
}
|
|
221
230
|
}
|
package/styles/slider.css
CHANGED
|
@@ -13,34 +13,62 @@
|
|
|
13
13
|
min-width: 20px;
|
|
14
14
|
height: 20px;
|
|
15
15
|
touch-action: none;
|
|
16
|
+
-webkit-user-select: none;
|
|
16
17
|
user-select: none;
|
|
17
18
|
isolation: isolate;
|
|
18
19
|
cursor: pointer;
|
|
19
20
|
}
|
|
21
|
+
/* 控件的各部分都在这个盒子里,它铺满控件的内边距盒:给控件加内边距不会挪动任何部分。
|
|
22
|
+
滑块和填充按它的容器单位(cqi / cqb)走,所以移动它们只重绘、不重新布局。 */
|
|
23
|
+
.astryx-slider-travel { position: absolute; inset: 0; container-type: size; }
|
|
20
24
|
.astryx-slider-track,
|
|
21
|
-
.astryx-slider-fill {
|
|
25
|
+
.astryx-slider-fill-clip {
|
|
22
26
|
position: absolute;
|
|
23
27
|
top: 50%;
|
|
28
|
+
inset-inline: 0;
|
|
24
29
|
height: 4px;
|
|
25
30
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
26
31
|
transform: translateY(-50%);
|
|
27
32
|
}
|
|
28
|
-
.astryx-slider-track {
|
|
29
|
-
|
|
33
|
+
.astryx-slider-track { background: var(--astryx-slider-track, #e5e5e5); }
|
|
34
|
+
/* 填充是一整条轨道长的色条,在两层裁剪里平移到位:外层裁剪和轨道同形,
|
|
35
|
+
中间层(range 的起点)的起始边切出起点,色条自己的末端落在终点,两端都藏在滑块下面。 */
|
|
36
|
+
.astryx-slider-fill-clip { overflow: hidden; pointer-events: none; }
|
|
37
|
+
.astryx-slider-fill-mover { position: absolute; inset: 0; overflow: hidden; }
|
|
38
|
+
.astryx-slider-fill {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
background: var(--astryx-slider-accent, #262626);
|
|
42
|
+
border-start-end-radius: var(--astryx-radius-full, 9999px);
|
|
43
|
+
border-end-end-radius: var(--astryx-radius-full, 9999px);
|
|
44
|
+
translate: calc(10px + var(--_slider-fill-end) * (100cqi - 20px) - 100cqi) 0;
|
|
45
|
+
}
|
|
46
|
+
.astryx-slider-fill:dir(rtl) { translate: calc(100cqi - 10px - var(--_slider-fill-end) * (100cqi - 20px)) 0; }
|
|
47
|
+
.astryx-slider-control[data-range] .astryx-slider-fill-mover {
|
|
48
|
+
border-start-start-radius: var(--astryx-radius-full, 9999px);
|
|
49
|
+
border-end-start-radius: var(--astryx-radius-full, 9999px);
|
|
50
|
+
translate: calc(10px + var(--_slider-fill-start) * (100cqi - 20px)) 0;
|
|
51
|
+
}
|
|
52
|
+
.astryx-slider-control[data-range] .astryx-slider-fill-mover:dir(rtl) { translate: calc(-10px - var(--_slider-fill-start) * (100cqi - 20px)) 0; }
|
|
53
|
+
.astryx-slider-control[data-range] .astryx-slider-fill { translate: calc((var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqi - 20px) - 100cqi) 0; }
|
|
54
|
+
.astryx-slider-control[data-range] .astryx-slider-fill:dir(rtl) { translate: calc(100cqi - (var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqi - 20px)) 0; }
|
|
30
55
|
.astryx-slider-thumb {
|
|
31
56
|
position: absolute;
|
|
32
57
|
z-index: 1;
|
|
33
|
-
|
|
58
|
+
/* 用偏移居中而不是 transform:手指按住时滑块按 scale 放大,transform 会跟着放大,把滑块抬离轨道。 */
|
|
59
|
+
top: calc(50% - 10px);
|
|
60
|
+
inset-inline-start: 0;
|
|
34
61
|
width: 20px;
|
|
35
62
|
height: 20px;
|
|
36
63
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
37
64
|
background: var(--astryx-slider-accent, #262626);
|
|
38
|
-
|
|
65
|
+
/* 从轨道起点出发,走过「进度 ×(轨道长 − 滑块)」;translate 是物理方向,RTL 下取反。 */
|
|
66
|
+
translate: calc(var(--_slider-progress, 0) * (100cqi - 20px)) 0;
|
|
39
67
|
outline: none;
|
|
40
68
|
cursor: grab;
|
|
41
69
|
transition: background-color 130ms ease-out;
|
|
42
70
|
}
|
|
43
|
-
.astryx-slider-thumb:dir(rtl) {
|
|
71
|
+
.astryx-slider-thumb:dir(rtl) { translate: calc(var(--_slider-progress, 0) * (20px - 100cqi)) 0; }
|
|
44
72
|
.astryx-slider-thumb[data-keyboard-focus='true']:focus-visible:not([data-dragging='true']) {
|
|
45
73
|
outline: 2px solid var(--astryx-slider-focus, #262626);
|
|
46
74
|
outline-offset: 3px;
|
|
@@ -96,16 +124,35 @@
|
|
|
96
124
|
padding-block-end: calc(4px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
97
125
|
}
|
|
98
126
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { flex: none; width: 20px; height: var(--astryx-slider-height, 160px); }
|
|
99
|
-
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill) { top: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
100
|
-
.astryx-slider[data-orientation='vertical'] .astryx-slider-
|
|
101
|
-
|
|
127
|
+
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill-clip) { top: 0; bottom: 0; inset-inline: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
128
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-fill {
|
|
129
|
+
border-radius: var(--astryx-radius-full, 9999px) var(--astryx-radius-full, 9999px) 0 0;
|
|
130
|
+
translate: 0 calc(100cqb - 10px - var(--_slider-fill-end) * (100cqb - 20px));
|
|
131
|
+
}
|
|
132
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-control[data-range] .astryx-slider-fill-mover {
|
|
133
|
+
border-radius: 0 0 var(--astryx-radius-full, 9999px) var(--astryx-radius-full, 9999px);
|
|
134
|
+
translate: 0 calc(-10px - var(--_slider-fill-start) * (100cqb - 20px));
|
|
135
|
+
}
|
|
136
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-control[data-range] .astryx-slider-fill { translate: 0 calc(100cqb - (var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqb - 20px)); }
|
|
137
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-thumb { top: auto; bottom: 0; inset-inline-start: calc(50% - 10px); translate: 0 calc(var(--_slider-progress, 0) * (20px - 100cqb)); }
|
|
102
138
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-mark { top: auto; left: 50%; width: 8px; height: 2px; transform: translate(-50%, 50%); }
|
|
103
139
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-mark-label { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
|
|
104
140
|
.astryx-slider[data-mark-labels='true'][data-orientation='vertical'] .astryx-slider-control { margin-inline-end: 4rem; }
|
|
105
141
|
@media (pointer: coarse) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.astryx-slider-
|
|
142
|
+
/* 手指下每个滑块的触控区是它自己的 ::before:以滑块为中心的 48px 方块(UISlider 的热区),
|
|
143
|
+
range 两个滑块之间各占一半,谁近归谁。 */
|
|
144
|
+
.astryx-slider-thumb::before {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: var(--_slider-hit-top);
|
|
148
|
+
bottom: var(--_slider-hit-bottom);
|
|
149
|
+
inset-inline-start: var(--_slider-hit-start);
|
|
150
|
+
inset-inline-end: var(--_slider-hit-end);
|
|
151
|
+
}
|
|
152
|
+
/* 手指下控件把平移留给浏览器:从轨道或横穿滑块的滑动照样滚动页面;
|
|
153
|
+
手势宿主再按挂在元素上的识别器收窄(滑块的拖动保留自己的轴)。
|
|
154
|
+
控件和滑块一样高(20px),手指点按时把可点区域撑到 WCAG 2.5.8 的 24px,轨道和滑块都居中不动。 */
|
|
155
|
+
.astryx-slider-control { min-height: 24px; touch-action: manipulation; }
|
|
109
156
|
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
110
157
|
padding-block-end: calc(2px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
111
158
|
}
|
package/styles/switch.css
CHANGED
|
@@ -82,17 +82,24 @@
|
|
|
82
82
|
background-image: var(--_press-paint-image);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
85
|
+
/* 横向的手指移动是开关的拖动,竖向的是页面滚动。禁用、只读或忙碌时不接拖动,移动全交给页面。 */
|
|
86
|
+
.astryx-switch:not([data-blocked='true']) .astryx-switch-control {
|
|
87
|
+
touch-action: pan-y pinch-zoom;
|
|
88
|
+
}
|
|
90
89
|
|
|
90
|
+
/*
|
|
91
|
+
* 粗指针下,看不见的 input 就是手指的热区:useTouchHitArea 量出的 --astryx-hit-inset-*
|
|
92
|
+
* 让它朝 44 × 44 长,每边长到离邻居一半为止,看得见的部分不变。没量到时是 0。
|
|
93
|
+
*/
|
|
94
|
+
@media (pointer: coarse) {
|
|
91
95
|
.astryx-switch-native {
|
|
92
96
|
inset: 50% auto auto 50%;
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
-
transform: translate(
|
|
97
|
+
width: calc(100% + var(--astryx-hit-inset-left, 0px) + var(--astryx-hit-inset-right, 0px));
|
|
98
|
+
height: calc(100% + var(--astryx-hit-inset-top, 0px) + var(--astryx-hit-inset-bottom, 0px));
|
|
99
|
+
transform: translate(
|
|
100
|
+
calc(-50% + (var(--astryx-hit-inset-right, 0px) - var(--astryx-hit-inset-left, 0px)) / 2),
|
|
101
|
+
calc(-50% + (var(--astryx-hit-inset-bottom, 0px) - var(--astryx-hit-inset-top, 0px)) / 2)
|
|
102
|
+
);
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
105
|
|
|
@@ -127,56 +134,115 @@
|
|
|
127
134
|
background: var(--astryx-switch-track-on, #1b1b1b);
|
|
128
135
|
}
|
|
129
136
|
|
|
137
|
+
/* 拇指每种尺寸、每个状态的直径;鼠标下的位移和手指下的停靠位都从它算。 */
|
|
130
138
|
.astryx-switch-thumb {
|
|
139
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size, 16px);
|
|
140
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel, 14px);
|
|
141
|
+
|
|
131
142
|
box-sizing: border-box;
|
|
132
143
|
flex: none;
|
|
133
|
-
width: var(--
|
|
134
|
-
height: var(--
|
|
144
|
+
width: var(--_switch-thumb-size);
|
|
145
|
+
height: var(--_switch-thumb-size);
|
|
135
146
|
/* 圆用 50% 画在方盒子上:主题把 --astryx-radius-full 改成方角时,轨道变方,拇指仍是圆的。 */
|
|
136
147
|
border-radius: var(--astryx-switch-thumb-radius, 50%);
|
|
137
148
|
background: var(--astryx-switch-thumb, #fff);
|
|
138
|
-
transform: translateX(0);
|
|
139
|
-
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
.astryx-switch[data-size='sm'] .astryx-switch-thumb {
|
|
143
|
-
|
|
144
|
-
|
|
152
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-sm, 14px);
|
|
153
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel-sm, 12px);
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
.astryx-switch[data-size='lg'] .astryx-switch-thumb {
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-lg, 20px);
|
|
158
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel-lg, 22px);
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
153
|
-
|
|
154
|
-
height: var(--astryx-switch-thumb-size-on, 20px);
|
|
155
|
-
transform: translateX(var(--astryx-switch-thumb-travel, 14px));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb:dir(rtl) {
|
|
159
|
-
transform: translateX(calc(var(--astryx-switch-thumb-travel, 14px) * -1));
|
|
162
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on, 20px);
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
.astryx-switch[data-size='sm'] .astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
163
|
-
|
|
164
|
-
height: var(--astryx-switch-thumb-size-on-sm, 16px);
|
|
165
|
-
transform: translateX(var(--astryx-switch-thumb-travel-sm, 12px));
|
|
166
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on-sm, 16px);
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
.astryx-switch[data-size='
|
|
169
|
-
|
|
169
|
+
.astryx-switch[data-size='lg'] .astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
170
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on-lg, 24px);
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
/* 鼠标和笔:拇指靠轨道内边距停在关的一端,开时平移过去,位移和尺寸都走过渡。 */
|
|
174
|
+
@media not all and (pointer: coarse) {
|
|
175
|
+
.astryx-switch-thumb {
|
|
176
|
+
transform: translateX(0);
|
|
177
|
+
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
181
|
+
transform: translateX(var(--_switch-thumb-travel));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb:dir(rtl) {
|
|
185
|
+
transform: translateX(calc(var(--_switch-thumb-travel) * -1));
|
|
186
|
+
}
|
|
176
187
|
}
|
|
177
188
|
|
|
178
|
-
|
|
179
|
-
|
|
189
|
+
/*
|
|
190
|
+
* 手指:触屏呈现。轨道不留内边距,拇指在轨道高度里居中,靠两端的内联偏移停在关或开的一端,
|
|
191
|
+
* 离端头和离上下一样远(50cqb 读轨道高度)。useSwitchTouch 在合成器上用 translate 和 scale
|
|
192
|
+
* 移动、抬起它,拇指自己什么都不过渡;轨道底色立刻换,颜色的渐变由 ::after 淡变层负责。
|
|
193
|
+
*/
|
|
194
|
+
@media (pointer: coarse) {
|
|
195
|
+
.astryx-switch-control {
|
|
196
|
+
min-width: 24px;
|
|
197
|
+
min-height: 24px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.astryx-switch[data-size] .astryx-switch-track {
|
|
201
|
+
padding: 0;
|
|
202
|
+
container-type: size;
|
|
203
|
+
isolation: isolate;
|
|
204
|
+
transition-duration: 0s;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.astryx-switch-thumb {
|
|
208
|
+
position: absolute;
|
|
209
|
+
inset-block: 0;
|
|
210
|
+
inset-inline-start: calc(50cqb - var(--_switch-thumb-size) / 2);
|
|
211
|
+
z-index: 2;
|
|
212
|
+
margin-block: auto;
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
217
|
+
inset-inline-start: auto;
|
|
218
|
+
inset-inline-end: calc(50cqb - var(--_switch-thumb-size) / 2);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* 颜色淡变层:盖在轨道自己的底色上,画着轨道另一状态的底色(switchFill.ts 读主题的颜色)。
|
|
222
|
+
不透明度归动画器,静止时是透明的;只在淡变进行时才有合成层。 */
|
|
223
|
+
.astryx-switch-track::after {
|
|
224
|
+
content: '';
|
|
225
|
+
position: absolute;
|
|
226
|
+
inset: 0;
|
|
227
|
+
z-index: 0;
|
|
228
|
+
border-radius: inherit;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
opacity: 0;
|
|
231
|
+
background-color: var(--_switch-fade-fill, transparent);
|
|
232
|
+
will-change: var(--astryx-motion-will-change-after, auto);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* 抬起时的阴影:随抬起淡入,静止时透明。 */
|
|
236
|
+
.astryx-switch-thumb::after {
|
|
237
|
+
content: '';
|
|
238
|
+
position: absolute;
|
|
239
|
+
inset: 0;
|
|
240
|
+
border-radius: inherit;
|
|
241
|
+
pointer-events: none;
|
|
242
|
+
opacity: 0;
|
|
243
|
+
box-shadow: var(--astryx-shadow-low, 0 1px 2px rgb(0 0 0 / 12%));
|
|
244
|
+
will-change: var(--astryx-motion-will-change-after, auto);
|
|
245
|
+
}
|
|
180
246
|
}
|
|
181
247
|
|
|
182
248
|
.astryx-switch-native:focus-visible + .astryx-switch-track {
|
|
@@ -218,6 +284,7 @@
|
|
|
218
284
|
to { transform: rotate(360deg); }
|
|
219
285
|
}
|
|
220
286
|
|
|
287
|
+
/* 减少动态效果:鼠标下拇指和颜色立刻到位;手指下由动画器换成交叉淡变。 */
|
|
221
288
|
@media (prefers-reduced-motion: reduce) {
|
|
222
289
|
.astryx-switch-track,
|
|
223
290
|
.astryx-switch-thumb {
|