@astryx-vue/core 0.33.2 → 0.33.3
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-BwH9WU-t.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BURF50V8.js → AppShell-BwzRYOky.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-C0V--ipx.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DSSXXFU9.js → Banner-Ds5KIeES.js} +1 -1
- package/dist/BottomSheet/index.d.ts +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-DWAYp-JJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BlWhnkeM.js → Button-X-Q_ghg8.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D3pGXH3t.js → ButtonGroup-DsYdUmF1.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-XHo3AGQj.js → Carousel-D8uVV1J_.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-Dy-icS2C.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DCeCsNvg.js → CheckboxInput-CiUtutIS.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CGC_EBYs.js → CheckboxListItem-B6sV7-Og.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-aU0QED8P.js → ClickableCard-DDk_RtHd.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-ClZvd61o.js → CodeBlock-r2-MlpBB.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BAup__Sy.js → Collapsible-0XI3tKgj.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CvalZZHH.js → CommandPalette-BYR0Lxxd.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DIwWcWwi.js → ComplexSelector-CIXrqCoX.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BnX93m0D.js → ContextMenu-CfVyaP5v.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BFjeik3X.js → DateInput-DRzZ8dY7.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cnrp5SDW.js → DateRangeInput-DL2aOQXJ.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Zsf86rSO.js → DateTimeInput-KWkpamG4.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Bl5CCsoX.js → Dialog-BM5VEE8z.js} +2 -2
- package/dist/{Dialog-DIWIrzgk.js → Dialog-CJzq1gms.js} +1 -1
- package/dist/{DialogHeader-DbWkeIrf.js → DialogHeader-Do4EOX2f.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-DuQ620WO.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-4o8qS78m.js → DropdownMenu-CbENfJOq.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-B1fsgAqp.js} +1 -1
- package/dist/{FieldInfoTip-C3Ztw-wI.js → FieldInfoTip-CntJCcnM.js} +1 -1
- package/dist/{FieldLabel-CFE2WC_i.js → FieldLabel-D56uJrRE.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BhO1SCw-.js → FileInput-EjlruVVX.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-CXg9qTRM.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Dps1Aaem.js → InfoTip-jFet-iAx.js} +2 -2
- package/dist/{InputClearButton-Xjvkkq7B.js → InputClearButton-DBTrsrSH.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-gYIGs7VH.js → InputGroup-D7UBxktR.js} +1 -1
- package/dist/{Item-FxMSEuU3.js → Item-DbalBZXc.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-BEJwZon4.js} +1 -1
- package/dist/{LayoutPanel-DfS5TvSP.js → LayoutPanel-BgJdL0KV.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-76vHqGA0.js → Lightbox-DJXB22k0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-QPBGLcTk.js → Link-eXwB0Hjg.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Ss6Kw90l.js → ListItem-C5B8uYyn.js} +4 -4
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cz6wbx9z.js → Markdown-COub2yng.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CCJBX2fq.js → MobileNavToggle-DI5yDKfp.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-OOQAeJT9.js → MoreMenu-C7gie2PE.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-9HGDsMQE.js → MultiSelector-CnGUU8P3.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-Cciu9aok.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DcTh1DCM.js → NavMenu--iyy_m84.js} +2 -2
- package/dist/{NavMenuItem-Dmsno5s3.js → NavMenuItem-BmAm-Cv8.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DWYCcrUw.js → NumberInput-CD9sHbON.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DGtPcD0U.js → Outline-vieAJS2J.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-EIr4jQjY.js → OverflowList-YLVHypB3.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Ch7-xIFe.js → Pagination-Bnkp4oAA.js} +2 -2
- package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-LSIKv1zS.js → Popover-CYJ1z_7L.js} +9 -9
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cjkv0qON.js → PowerSearch-DEpXEmgs.js} +26 -26
- package/dist/PressTracker-L5-Ark_9.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-BdO-xZv0.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D1rnSZeL.js → RadioListItem-DzGPuWTt.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DyjQfxxG.js → ResizeHandle-Dcel1HkU.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-CkR8ur3h.js → SegmentedControl-BURyE9XU.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-uDblNb5T.js → SelectableCard-BZTF6qw-.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BiLcyM3Y.js → Selector-SkwSbf4j.js} +4 -4
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-d0A9mlEW.js → SideNav-BxJfJU95.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-ORmi7QJ7.js +1785 -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-C4-wtxn4.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-Cw1UKVjQ.js +1468 -0
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CthDI2i1.js → TabList-DNDe2ipJ.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-egoY0slV.js → Table-CqppyRk8.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-I3ghDb9r.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C4CqgE0E.js → TextInput-Xz_ibpOl.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-6YWZ9a2A.js → Thumbnail-bS62Tr_f.js} +3 -3
- package/dist/{TimeField-CvBKO_Ew.js → TimeField-Bsb8n22d.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Cl9HIZrP.js → TimeInput-D40_6GrX.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-Bt9ZR975.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-E6NqFf3W.js → Toast-BQxfIeVU.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-IFhFMpQh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DE1udaRF.js → Token-CpmqfG4i.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DbD2ZBuh.js → Tokenizer-Dvr7ICpS.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-Cw_dcKpf.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BFKPBFKu.js → TreeList-CBfKKbUQ.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BwjzOjT4.js → Typeahead-D9-WjsCU.js} +5 -5
- package/dist/{VelocityTracker-bns4TzMt.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-nYUMoSTW.js → accessibleName-Cw9s1690.js} +2 -2
- package/dist/{animator-DnLs_cbV.js → animator-ozeBZ_zC.js} +3 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-B9tgZEzP.js → composables-BJoAw6XA.js} +11 -9
- package/dist/{context-Dktfy1fh.js → context-WDet15_N.js} +1 -1
- package/dist/{useAttachment-CALrXA-t.js → geometry-CoQRz-F1.js} +12 -710
- package/dist/{gestures-CppaWqif.js → gestures-yKyyMqeQ.js} +225 -1
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
- package/dist/{index-MOtVbTwK.d.ts → index--kbwaSXW.d.ts} +3 -3
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-CArP_6wv.d.ts → index-BI1QLuYB.d.ts} +2 -2
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-D7ShT2c-.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-DN5Ga_Zm.d.ts → index-BqQlY3fL.d.ts} +3 -3
- package/dist/{index-Otl047R1.d.ts → index-BtqvPjAf.d.ts} +2 -2
- 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-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-D65x5ny5.d.ts → index-CY0KtUSC.d.ts} +67 -67
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-DWVhyvVu.d.ts → index-D1JOMiI5.d.ts} +8 -8
- package/dist/{index-eCp-ElSp.d.ts → index-DPhQZXYw.d.ts} +2 -2
- package/dist/{index-CM00rrgg.d.ts → index-DuxRUPMc.d.ts} +3 -3
- package/dist/{index-BOiwoyXq.d.ts → index-GyRgg1-v.d.ts} +8 -8
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-Ak1b0V24.d.ts → index-Pad9p8CU.d.ts} +1 -1
- package/dist/{index-85y5NZP-.d.ts → index-V6uruC4Z.d.ts} +1 -1
- package/dist/{index-3LdpzxQZ.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +24 -24
- 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-Qk_FHR-s.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-CZsVmjlY.js} +1 -1
- package/dist/{pressFeedback-BlOSZew9.js → pressFeedback-9ogipvI4.js} +4 -4
- 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-BUTgduu-.js} +3 -3
- package/dist/{resizableChannel-DOmBYh4V.js → resizableChannel-_j_AW2B6.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/{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/{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/{useActionGroupTracking-DDhfTUOK.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
- package/dist/{useAnimatedLayout-B6Xj_kTo.js → useAnimatedLayout-IcX0UfS4.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-DJEthuMT.js} +1 -1
- package/dist/{useInputStatusIcon-MyCpVp3g.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
- package/dist/{useMenuPress-BJVQF7ml.js → useMenuPress-cBIQyTsN.js} +4 -4
- package/dist/{usePressFeedback-cxyksfAD.js → usePressFeedback-Dx-a3i82.js} +1 -1
- package/dist/{useResizable-C-9ff2ZK.js → useResizable-JvgYydox.js} +6 -5
- package/dist/{useTooltip-w57yzB7h.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-CgUvnuTz.js → useTouchHitArea-BGkvMAyp.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/slider.css +59 -12
- package/styles/switch.css +101 -34
- package/dist/Slider-BdIrYmul.js +0 -735
- package/dist/Switch-6tQbDX9A.js +0 -355
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { u as scroll } from "./gestures-yKyyMqeQ.js";
|
|
2
|
+
//#region src/motion/rubberBand.ts
|
|
3
|
+
/**
|
|
4
|
+
* @file rubberBand.ts
|
|
5
|
+
* @input An overflow past an edge, the scroll view's dimension and UIKit's
|
|
6
|
+
* rubber-band coefficient
|
|
7
|
+
* @output Exports `rubberBand` (finger overflow → displayed overflow), its
|
|
8
|
+
* inverse, its slope, and the clamp/unclamp pair over a [min, max] range
|
|
9
|
+
* @position Pure math; no DOM, no React
|
|
10
|
+
*
|
|
11
|
+
* UIScrollView resists a drag past its content edge with
|
|
12
|
+
* b = (1 − 1 ÷ (x·c ÷ d + 1))·d
|
|
13
|
+
* where x is how far the finger has gone past the edge, d the scroll view's
|
|
14
|
+
* size on that axis and c = 0.55 (uikit/scroll.ts records the sources). The
|
|
15
|
+
* displayed overflow b approaches d but never reaches it, and its slope at
|
|
16
|
+
* the edge is c: the first points of overflow move at 55 % of the finger.
|
|
17
|
+
*
|
|
18
|
+
* The inverse matters for spec:AST-094 FR6 (a finger catches any animation
|
|
19
|
+
* mid-flight): a finger that lands on content still bouncing back has to
|
|
20
|
+
* resume the drag from the finger position that would produce the overflow
|
|
21
|
+
* on screen, or the content jumps.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Displayed overflow for a finger `overflow` past the edge (signed: the sign
|
|
25
|
+
* is kept). `dimension` is the scroll view's size on the axis.
|
|
26
|
+
*/
|
|
27
|
+
function rubberBand(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
28
|
+
if (!(dimension > 0)) return 0;
|
|
29
|
+
const banded = (1 - 1 / (Math.abs(overflow) * coefficient / dimension + 1)) * dimension;
|
|
30
|
+
return overflow < 0 ? -banded : banded;
|
|
31
|
+
}
|
|
32
|
+
/** The finger overflow that displays `displayed`; ±Infinity at ±dimension. */
|
|
33
|
+
function rubberBandInverse(displayed, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
34
|
+
if (!(dimension > 0)) return 0;
|
|
35
|
+
const b = Math.abs(displayed);
|
|
36
|
+
if (b >= dimension) return displayed < 0 ? -Infinity : Infinity;
|
|
37
|
+
const x = dimension / coefficient * b / (dimension - b);
|
|
38
|
+
return displayed < 0 ? -x : x;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* d(displayed) ÷ d(finger) at a finger overflow: what a finger velocity
|
|
42
|
+
* becomes on screen while banding (c at the edge, falling toward 0).
|
|
43
|
+
*/
|
|
44
|
+
function rubberBandSlope(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
45
|
+
if (!(dimension > 0)) return 0;
|
|
46
|
+
const u = Math.abs(overflow) * coefficient / dimension + 1;
|
|
47
|
+
return coefficient / (u * u);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The displayed value for a raw (finger-driven) `value` constrained to
|
|
51
|
+
* [min, max]: unchanged inside, rubber-banded past either edge.
|
|
52
|
+
*/
|
|
53
|
+
function rubberBandClamp(value, min, max, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
54
|
+
if (value < min) return min + rubberBand(value - min, dimension, coefficient);
|
|
55
|
+
if (value > max) return max + rubberBand(value - max, dimension, coefficient);
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
/** Inverse of `rubberBandClamp`: the raw value that displays `displayed`. */
|
|
59
|
+
function rubberBandUnclamp(displayed, min, max, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
60
|
+
if (displayed < min) return min + rubberBandInverse(displayed - min, dimension, coefficient);
|
|
61
|
+
if (displayed > max) return max + rubberBandInverse(displayed - max, dimension, coefficient);
|
|
62
|
+
return displayed;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { rubberBandUnclamp as a, rubberBandSlope as i, rubberBandClamp as n, rubberBandInverse as r, rubberBand as t };
|
|
@@ -120,5 +120,13 @@ function sharedWeakMap(name, version) {
|
|
|
120
120
|
function sharedWeakSet(name, version) {
|
|
121
121
|
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
122
122
|
}
|
|
123
|
+
/** 按注册名共享的递增序号:每调一次返回下一个,从 1 开始。 */
|
|
124
|
+
function sharedSequence(name, version) {
|
|
125
|
+
const counter = sharedState(name, version, () => ({ next: 0 }));
|
|
126
|
+
return () => {
|
|
127
|
+
counter.next += 1;
|
|
128
|
+
return counter.next;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
123
131
|
//#endregion
|
|
124
|
-
export {
|
|
132
|
+
export { sharedState as a, containsAlongFlatTree as c, shadowHostOf as d, shadowRootsOutward as f, isNode as g, isHTMLElement as h, sharedSequence as i, deepActiveElement as l, isElement as m, sharedKey as n, sharedWeakMap as o, isDocument as p, sharedMap as r, sharedWeakSet as s, realmValue as t, parentAcrossShadow as u };
|
|
@@ -534,4 +534,4 @@ function registerSpringsTable() {
|
|
|
534
534
|
registerMotionTable("springs", SPRING_ROLES, { roles: Object.keys(SPRING_ROLES) });
|
|
535
535
|
}
|
|
536
536
|
//#endregion
|
|
537
|
-
export {
|
|
537
|
+
export { registerSpringsTable as a, SWITCH_THUMB_MOVE_SPRING as i, SLIDER_LIFT_SPRING as n, springs as o, SLIDER_RELEASE_SPRING as r, SLIDER_DROP_SPRING as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-6SGAlkB_.js";
|
|
2
2
|
import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
3
3
|
import { computed, onMounted, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/Typeahead/useAnchoredListbox.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-
|
|
2
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
1
|
+
import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-SGFJ5L6X.js";
|
|
2
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-CHNpQ6RL.js";
|
|
3
3
|
import { s as isTextEntryControl, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
4
4
|
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
5
5
|
import { onScopeDispose } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-6SGAlkB_.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as isTrackedByGroup, m as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE, u as isInsideScrollView } from "./pressFeedback-
|
|
2
|
-
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-
|
|
3
|
-
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-
|
|
1
|
+
import { c as isTrackedByGroup, m as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE, u as isInsideScrollView } from "./pressFeedback-9ogipvI4.js";
|
|
2
|
+
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-BGkvMAyp.js";
|
|
3
|
+
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-B3Efxs_z.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/useActionGroupTracking.ts
|
|
6
6
|
const DISABLED = ":disabled, [aria-disabled=\"true\"]";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
2
|
+
//#region src/gestures/useAttachment.ts
|
|
3
|
+
function useAttachment(target, attach, key = () => null) {
|
|
4
|
+
if (typeof document === "undefined") return;
|
|
5
|
+
let release = null;
|
|
6
|
+
const releaseNow = () => {
|
|
7
|
+
const current = release;
|
|
8
|
+
release = null;
|
|
9
|
+
current?.();
|
|
10
|
+
};
|
|
11
|
+
const stop = watch([() => toValue(target), key], ([node]) => {
|
|
12
|
+
releaseNow();
|
|
13
|
+
if (node != null) release = attach(node);
|
|
14
|
+
}, {
|
|
15
|
+
immediate: true,
|
|
16
|
+
flush: "sync"
|
|
17
|
+
});
|
|
18
|
+
if (getCurrentScope()) onScopeDispose(() => {
|
|
19
|
+
stop();
|
|
20
|
+
releaseNow();
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { useAttachment as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as subscribeInput } from "./inputStream-
|
|
1
|
+
import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/useChatNewMessages.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useLayerTeleportTarget } from "./useLayerMountTarget-zwZQglr2.js";
|
|
2
2
|
import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
|
|
3
|
-
import { n as useLayerDepth, o as pushLayer } from "./layerDepth-
|
|
3
|
+
import { n as useLayerDepth, o as pushLayer } from "./layerDepth-SGFJ5L6X.js";
|
|
4
4
|
import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/layer/anchorClear.ts
|
|
6
6
|
function overlapsAnchor(anchor, top, left, layer) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-
|
|
1
|
+
import { i as useAdaptivePresentation, n as usePresentationHold } from "./presentationHold-CZsVmjlY.js";
|
|
2
2
|
import { computed, toValue, watch } from "vue";
|
|
3
3
|
//#region src/layer/useHeldPresentation.ts
|
|
4
4
|
function useHeldPresentation(presentation, isOpen) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-CntJCcnM.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as msSinceInput } from "./pressFeedback-
|
|
2
|
-
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-
|
|
3
|
-
import { s as currentGesture } from "./layerDepth-
|
|
1
|
+
import { m as msSinceInput } from "./pressFeedback-9ogipvI4.js";
|
|
2
|
+
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
|
|
3
|
+
import { s as currentGesture } from "./layerDepth-SGFJ5L6X.js";
|
|
4
4
|
import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
|
|
5
|
-
import { r as isInputShield } from "./inputHoldState-
|
|
5
|
+
import { r as isInputShield } from "./inputHoldState-BYi5FKZl.js";
|
|
6
6
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useLongPress.ts
|
|
8
8
|
const DEFAULT_DELAY_MS = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-9ogipvI4.js";
|
|
2
2
|
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
3
3
|
import "../styles/pressable.css";
|
|
4
4
|
//#region src/composables/usePressFeedback.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
|
|
2
|
-
import { t as animatorFor } from "./animator-
|
|
3
|
-
import { t as resolveMotion } from "./resolveMotion-
|
|
4
|
-
import {
|
|
2
|
+
import { t as animatorFor } from "./animator-ozeBZ_zC.js";
|
|
3
|
+
import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
|
|
4
|
+
import { o as springs } from "./springs-DjAn_oV5.js";
|
|
5
5
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
6
|
-
import {
|
|
7
|
-
import { c as createRegionPaneSlot, f as registerPropsRegion, h as slideNextOnRelease, i as registerResizableChannel, l as edgeAxis, m as slideMotionsOf, o as resizeHandleBeside, p as shownSizeReader, s as createPaneReveal, u as isScriptMotion } from "./resizableChannel-
|
|
6
|
+
import { t as project } from "./projection-qPcLQcwK.js";
|
|
7
|
+
import { c as createRegionPaneSlot, f as registerPropsRegion, h as slideNextOnRelease, i as registerResizableChannel, l as edgeAxis, m as slideMotionsOf, o as resizeHandleBeside, p as shownSizeReader, s as createPaneReveal, u as isScriptMotion } from "./resizableChannel-_j_AW2B6.js";
|
|
8
|
+
import { i as rubberBandSlope, r as rubberBandInverse, t as rubberBand } from "./rubberBand-DDd5ElTe.js";
|
|
8
9
|
import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
|
|
9
10
|
//#region src/composables/useHotkeys.ts
|
|
10
11
|
const KEY_ALIASES = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
|
|
3
|
-
import { n as useLayer } from "./tooltipTriggerRules-
|
|
4
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-
|
|
3
|
+
import { n as useLayer } from "./tooltipTriggerRules-CHNpQ6RL.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CTjEpdM4.js";
|
|
5
5
|
import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
6
6
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
7
|
-
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-
|
|
8
|
-
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-
|
|
7
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-5ExaYYSy.js";
|
|
8
|
+
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-CxIlSnHw.js";
|
|
9
9
|
import { t as renderedText } from "./renderedText-BwJdmps3.js";
|
|
10
10
|
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
11
11
|
import "../styles/tooltip.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-
|
|
2
|
-
import { t as armClickGuard } from "./clickGuard-
|
|
1
|
+
import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-9ogipvI4.js";
|
|
2
|
+
import { t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
|
-
import { s as currentGesture } from "./layerDepth-
|
|
2
|
+
import { s as currentGesture } from "./layerDepth-SGFJ5L6X.js";
|
|
3
3
|
import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
|
|
4
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/tapRecognizer.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
1
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-CHNpQ6RL.js";
|
|
2
2
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
|
-
import { n as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-owvVSn_m.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-DyGaJUbl.js";
|
|
5
5
|
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
@@ -5,7 +5,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
|
5
5
|
import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
|
|
6
6
|
import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
|
|
7
7
|
import { t as _sfc_main$3 } from "./Spinner-D1adu3uH.js";
|
|
8
|
-
import { t as createStillPointerGate } from "./stillPointerGate-
|
|
8
|
+
import { t as createStillPointerGate } from "./stillPointerGate-BvCX7ddI.js";
|
|
9
9
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
10
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
11
11
|
import "../styles/layer.css";
|
package/package.json
CHANGED
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 {
|