@astryx-vue/core 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-D_lrpZz_.js → AlertDialog-CvNtu0Jd.js} +7 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CxUmt6hX.js → AppShell-BmX6wqba.js} +5 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DT5RbxDa.js → AvatarGroup-Dd-yDDNz.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Ctg1puM6.js → Banner-DKmvoMxD.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-_K41Oliv.js → BottomSheet-B8_znPYE.js} +1 -1
- package/dist/{BottomSheet-CmNOXlZO.js → BottomSheet-BZ_yFoKC.js} +845 -276
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CdGqhFKU.js → Breadcrumbs-CJpvbZsf.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CvHeZGf1.js → Button-DdPty46q.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CUN_rC57.js → ButtonGroup-oI99JAyN.js} +3 -3
- 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-CbdHb8MD.js → Carousel-BNr79JpP.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-B7ccEmTR.js → Chat-BadS0fEx.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-5r6VWqId.js → CheckboxInput-CzP8gP3v.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CKeQzQ0W.js → CheckboxListItem-CxBjpX3d.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-ChmOwgYq.js → ClickableCard-B86P2aiM.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-5rZyPwty.js → Code-_PngYOKp.js} +2 -0
- package/dist/{CodeBlock-4i1vvmOc.js → CodeBlock-Cgm4uOhG.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B2vrr_YP.js → Collapsible-DXl9RRaX.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BMwvTjff.js → CommandPalette-BgVwGtdA.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B4iFyilD.js → ComplexSelector-vna5wtig.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DquYeIEF.js → ContextMenu-CE-FnLI6.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-MNNyi4XK.js → DateInput-BCasoeIj.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DOHntScL.js → DateRangeInput-Bi97pjDX.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BaghFHW6.js → DateTimeInput-CKnvjLhi.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Ctha_b_L.js → Dialog-BN-NycQr.js} +1 -1
- package/dist/{Dialog-CGf64DqF.js → Dialog-Dt0gNuMT.js} +1 -1
- package/dist/{DialogHeader-BxTV37GT.js → DialogHeader-CSH2_5v-.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DAnc2ut9.js → Drawer-PeMgE4iA.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BPi0pm0w.js → DropdownMenu-B_KDdI8P.js} +5 -5
- package/dist/{DropdownMenu-DuSVFQoS.js → DropdownMenu-aYOIh9gZ.js} +7 -7
- package/dist/Field/index.js +3 -3
- package/dist/{Field-d5R_kRMv.js → Field-D-fRqyso.js} +1 -1
- package/dist/{FieldInfoTip-BhKtjq3g.js → FieldInfoTip-Bstp5Lvd.js} +1 -1
- package/dist/{FieldLabel-BHNpYFx7.js → FieldLabel-lV_qLaGp.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BCg4HROm.js → FileInput-CTNnDIkm.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BZgU_THt.js → IconButton-DPezhVBA.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-E2-OzKti.js → InfoTip-B4BFfLtT.js} +1 -1
- package/dist/{InputClearButton-B62_uexC.js → InputClearButton-CxU3iv-5.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DKBqRYFf.js → InputGroup-CraWGK6Y.js} +1 -1
- package/dist/{Item-C8UAQwFQ.js → Item-C9u_kQUO.js} +15 -14
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Bou1gTfv.js → Lightbox-BNUG9CQ1.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CaJ5lmKk.js → Link-Bwgpn-di.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-BlrEngDO.js → ListItem-_lOmngHp.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BE6vdvPG.js → Markdown-BlEi5UGN.js} +2 -2
- package/dist/{MediaTheme-UM8oOqwX.js → MediaTheme-CBkEmVe4.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-D5yGMHU4.js → MobileNavToggle-wVa9dzH1.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CNzTagqr.js → MoreMenu-CXshllJj.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-MGEiRi1W.js → MultiSelector-Bs3Imw6k.js} +5 -5
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-kj9FbbFS.js → NavItem-D4xHjSTo.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-ZN5cqCxO.js → NavMenu-NCg3VjAQ.js} +2 -2
- package/dist/{NavMenuItem-xm3e0V8q.js → NavMenuItem-Bla6fYVl.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-D4ECOHh_.js → NumberInput-DicgvFte.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DI9MZnuQ.js → Outline-CnSt_KvS.js} +4 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-m1tf_fR1.js → OverflowList-BYYz3ePw.js} +1 -1
- 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-BdjxuxM3.js → Pagination-kJhH6sPF.js} +3 -3
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DEj8xWN-.js → Popover-CqL_AXQB.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BJDFietK.js → PowerSearch-Ff2n7eJ2.js} +19 -19
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B3UoJrOA.js → RadioGroup-CsJYGjyx.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-CD7kUGlN.js → RadioListItem-Yc3K82YE.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DGd6JlaD.js → SegmentedControl-C-F5dkcG.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-GRWYx3iD.js → SelectableCard-CwfpgsS8.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BD0u-5Fy.js → Selector-DgzSGUul.js} +3 -3
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DoqCLRiX.js → SideNav-DNQZ8l6b.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DHR7HZ7N.js → Slider-Bq_7Nskr.js} +2 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CCuggsov.js → Stepper-CWluGqBs.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CnFC7jGw.js → Switch-DTPvMAxd.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-fMlX8m6n.js → TabList-C4i7UZkp.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DoKmVdhZ.js → Table-CqAV7l7W.js} +13 -13
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-y9mmYAIy.js → TextArea-J2_wct0p.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BLGEh7vE.js → TextInput-Da1TYd57.js} +4 -4
- package/dist/Theme/index.d.ts +4 -3
- package/dist/Theme/index.js +4 -3
- package/dist/{Theme-BmTbbiAD.js → Theme-CwruhtLu.js} +290 -62
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Dm8krgGF.js → Thumbnail-1LsaJ4_m.js} +2 -2
- package/dist/{TimeField-DS30hnty.js → TimeField-ojhX2ZOj.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DcY4b3dg.js → TimeInput-CfeDP72M.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BhBuBHu8.js → Timestamp-SseS_qtf.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CnLk7LzS.js → Toast-yUVFaZiJ.js} +175 -22
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B9IJcpdJ.js → ToggleButton-B6hBzeVl.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C7Dt5ygK.js → Token-DTGUCgpn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D7ZCTbnf.js → Tokenizer-nSEekhN1.js} +8 -8
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-DSWH8ll4.js → Toolbar-BHkPxDxA.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CK_F6Ud5.js → TopNav-CcIayfsW.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dh0uAj2B.js → TreeList-CsgXzBdm.js} +4 -4
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-Cs-46obm.js → Typeahead-BD6xXNKh.js} +3 -3
- package/dist/VelocityTracker-DgjmootV.js +165 -0
- package/dist/{adaptationTypes-Cn_pfrsw.d.ts → adaptationTypes-D874ONPJ.d.ts} +28 -6
- package/dist/{animator-BGq5a6vT.js → animator-C0kqgDUJ.js} +30 -173
- package/dist/{assertOptions-CJgNig1l.js → assertOptions-DHfonaBU.js} +1 -1
- package/dist/{batch-BhaAWUIt.js → batch-DPlrpYU6.js} +5 -19
- package/dist/bezier-Dko5MnTp.js +37 -0
- package/dist/{clickGuard-FrlnECMp.js → clickGuard-C3VmOLhI.js} +2 -1
- package/dist/compactDefinition-BeFUKEFg.js +29 -0
- package/dist/compactDefinition-CMTR5KqU.d.ts +19 -0
- package/dist/composables/index.js +7 -7
- package/dist/composables-CVvk9709.js +2548 -0
- package/dist/{context-jtpQfR6F.js → context-ZWA02GaM.js} +2 -2
- package/dist/{edge-CJIswPTX.js → edge-DFaE6rUg.js} +1 -1
- package/dist/{edgeRide-Drk4V-MC.js → edgeRide-UdNxbwxY.js} +4 -4
- package/dist/{handle-BazRxHwq.js → handle-CwxCHapJ.js} +1 -1
- package/dist/{holdEntranceInput-DMCOeRqu.js → holdEntranceInput-DgimbgGm.js} +1 -1
- package/dist/{index-DVS4jM-l.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-D14kSf-g.d.ts → index-AgTJRqUY.d.ts} +3 -3
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-BL9fE6gs.d.ts → index-CG6dbyeb.d.ts} +8 -8
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-C6IcBhAn.d.ts → index-C_iTVOHQ.d.ts} +4 -4
- package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-DGe-ApvN.d.ts → index-CuW4AQ7M.d.ts} +3 -3
- package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
- package/dist/{index-BVeTS-R5.d.ts → index-DH_xZI84.d.ts} +6 -6
- package/dist/{index-CUuUoX3h.d.ts → index-DVX2jlTQ.d.ts} +1 -1
- package/dist/{index-668zPVsH.d.ts → index-DkYOGpsC.d.ts} +1 -1
- package/dist/{index-hUa5oQ5O.d.ts → index-Dp6MmjIo.d.ts} +88 -88
- package/dist/{index-BIqW3_GP.d.ts → index-DtY_R6Oh.d.ts} +2 -2
- package/dist/{index-CTXG-KKT.d.ts → index-EUzmHHm6.d.ts} +2 -1
- package/dist/{index-DQ3akoRZ.d.ts → index-QC9FDUDA.d.ts} +4 -4
- package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-Ea2V_FSK.d.ts → index-aHC2C89h.d.ts} +4 -4
- 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 +30 -29
- package/dist/index.js +90 -89
- package/dist/{inputHold-BmChuR9x.js → inputHold-DW2LYHb5.js} +4 -4
- package/dist/{inputHoldState-pblUT4oh.js → inputHoldState-xntIqr5W.js} +2 -1
- package/dist/{inputStream-LZdK8luP.js → inputStream-bPd9eB2b.js} +2 -49
- package/dist/isRtlElement-NHuH48AA.js +23 -0
- package/dist/{landing-CBaXCGEg.js → landing-CSCE9afT.js} +3 -3
- package/dist/{lazyBottomSheet-Cmd-WMEE.js → lazyBottomSheet-CbU1Pnfk.js} +1 -1
- package/dist/{timing-CSHWQbTJ.js → linearEasing-BiRVC8Mq.js} +30 -22
- package/dist/{bezier-Df-yGuNZ.js → presentation-Cy_yf56y.js} +2 -39
- package/dist/{presentationHold-7IkbR4d8.js → presentationHold-B4tK68sd.js} +3 -29
- package/dist/{pressFeedback-DVR5V1b6.js → pressFeedback-9dqGYjxv.js} +2 -2
- package/dist/reducedMotionMark-CYSyfURo.js +34 -0
- package/dist/{resolveMotion-CurhYTVC.js → resolveMotion-B9NDPeUz.js} +202 -1
- package/dist/resolveSnapPoint-DdZyBkT4.js +717 -0
- package/dist/{flatTree-BB4yPMNL.js → sharedRealm-H1OrlP0V.js} +49 -1
- package/dist/{themeTiming-BFDOPRjK.js → themeTiming-D1U0redl.js} +2 -112
- package/dist/tokenReferences-sKpv-7_O.js +167 -0
- package/dist/{touchHold-CFJlSClt.js → touchHold-DXtx7npm.js} +1 -1
- package/dist/{types-BA1veIoa.d.ts → types-D97oBk6c.d.ts} +1 -1
- package/dist/{useActionGroupTracking-C6BzQzvp.js → useActionGroupTracking-CLFF7FI2.js} +2 -2
- package/dist/{useAnimatedLayout-DC2l3WrE.js → useAnimatedLayout-DWWc31RR.js} +1 -1
- package/dist/{composables-BTRbNgmR.js → useAttachment-BuNyeUXy.js} +44 -3464
- package/dist/{useChatStreamScroll-Cv51kRT0.js → useChatStreamScroll-CuMzkXgD.js} +1 -1
- package/dist/{useHeldPresentation-7MH-RlSF.js → useHeldPresentation-BF5vGVUn.js} +1 -1
- package/dist/{useInputStatusIcon-BngSzjVd.js → useInputStatusIcon-BqV6YzTV.js} +1 -1
- package/dist/{useListFocus-CkHfsZp0.js → useListFocus-Ccd_HU9T.js} +2 -23
- package/dist/{useMenuDrillIn-BQx6lQMz.js → useMenuDrillIn-CMsgOcDP.js} +3 -2
- package/dist/{useMenuEntranceHold-buV5S9yk.js → useMenuEntranceHold-HznOwIry.js} +1 -1
- package/dist/{useMenuHover-CfQtWMg-.js → useMenuHover-DoBatZeD.js} +1 -1
- package/dist/{useMenuPress-DU6pAIHy.js → useMenuPress-DcwVUsQO.js} +3 -3
- package/dist/{usePressFeedback-BhNcuxQv.js → usePressFeedback-DHdmAsMp.js} +1 -1
- package/dist/{useTouchHitArea-CNZyA18Y.js → useTouchHitArea-SY1ITxSJ.js} +2 -2
- package/package.json +1 -1
- package/reset.css +1 -1
- package/styles/bottom-sheet.css +28 -8
- package/styles/chat.css +5 -5
- package/styles/drawer.css +9 -0
- package/dist/motionTokenDefaults-EFzpiAF5.js +0 -38
- package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -73,4 +73,52 @@ function shadowRootsOutward(node) {
|
|
|
73
73
|
return roots;
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
|
|
76
|
+
//#region src/utils/sharedRealm.ts
|
|
77
|
+
/**
|
|
78
|
+
* 对应原版 Astryx 的 `utils/sharedRealm`。
|
|
79
|
+
*
|
|
80
|
+
* 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
|
|
81
|
+
* 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
|
|
85
|
+
* 两边各用各的。
|
|
86
|
+
*/
|
|
87
|
+
function sharedKey(name, version) {
|
|
88
|
+
return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* `key` 下的共享值,第一次用时创建。
|
|
92
|
+
* `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
|
|
93
|
+
*/
|
|
94
|
+
function realmValue(key, create, accepts = () => true) {
|
|
95
|
+
const realm = globalThis;
|
|
96
|
+
if (Object.hasOwn(realm, key)) {
|
|
97
|
+
const existing = realm[key];
|
|
98
|
+
return accepts(existing) ? existing : create();
|
|
99
|
+
}
|
|
100
|
+
const value = create();
|
|
101
|
+
realm[key] = value;
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
|
|
106
|
+
* 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
|
|
107
|
+
*/
|
|
108
|
+
function sharedState(name, version, create) {
|
|
109
|
+
return realmValue(sharedKey(name, version), create);
|
|
110
|
+
}
|
|
111
|
+
/** 按注册名共享的 Map。 */
|
|
112
|
+
function sharedMap(name, version) {
|
|
113
|
+
return sharedState(name, version, () => /* @__PURE__ */ new Map());
|
|
114
|
+
}
|
|
115
|
+
/** 按注册名共享的 WeakMap,例如按文档存的状态。 */
|
|
116
|
+
function sharedWeakMap(name, version) {
|
|
117
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
|
|
118
|
+
}
|
|
119
|
+
/** 按注册名共享的 WeakSet,例如登记过的值。 */
|
|
120
|
+
function sharedWeakSet(name, version) {
|
|
121
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
export { sharedWeakMap as a, deepActiveElement as c, shadowRootsOutward as d, isDocument as f, isNode as h, sharedState as i, parentAcrossShadow as l, isHTMLElement as m, sharedKey as n, sharedWeakSet as o, isElement as p, sharedMap as r, containsAlongFlatTree as s, realmValue as t, shadowHostOf as u };
|
|
@@ -1,117 +1,7 @@
|
|
|
1
1
|
import { _ as parseMotionRoleValue, g as parseCssEasing } from "./pressGesture-BzIBmKF2.js";
|
|
2
|
-
import { t as cubicBezier } from "./bezier-
|
|
3
|
-
import {
|
|
2
|
+
import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
|
|
3
|
+
import { i as easeDefaults, r as durationDefaults, t as resolveTokenReferences } from "./tokenReferences-sKpv-7_O.js";
|
|
4
4
|
import { n as normalizeTokenName } from "./tokenName-0U-WEH09.js";
|
|
5
|
-
//#region src/Theme/tokenReferences.ts
|
|
6
|
-
/**
|
|
7
|
-
* @file tokenReferences.ts
|
|
8
|
-
* @input A flat map of token names to raw CSS values
|
|
9
|
-
* @output `resolveTokenReferences`, which follows `var(--name[, fallback])`
|
|
10
|
-
* references through the map
|
|
11
|
-
* @position Theme utility with no imports: themeMotion.ts resolves motion
|
|
12
|
-
* tokens written as references on it, and the motion foundation resolves
|
|
13
|
-
* the declared timing defaults on it. Pure; safe on the server.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Call `visit` for each top-level character of a CSS value. A top-level
|
|
17
|
-
* character is outside parentheses and outside quoted strings. In a quoted
|
|
18
|
-
* string, a backslash escapes the next character. The scan stops when `visit`
|
|
19
|
-
* returns true.
|
|
20
|
-
*/
|
|
21
|
-
function scanTopLevel(input, visit) {
|
|
22
|
-
let depth = 0;
|
|
23
|
-
let quote = null;
|
|
24
|
-
let isEscaped = false;
|
|
25
|
-
for (let i = 0; i < input.length; i++) {
|
|
26
|
-
const char = input[i];
|
|
27
|
-
if (quote !== null) {
|
|
28
|
-
if (isEscaped) isEscaped = false;
|
|
29
|
-
else if (char === "\\") isEscaped = true;
|
|
30
|
-
else if (char === quote) quote = null;
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
if (char === "\"" || char === "'") {
|
|
34
|
-
quote = char;
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
if (char === "(") {
|
|
38
|
-
depth++;
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (char === ")") {
|
|
42
|
-
depth = Math.max(0, depth - 1);
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
if (depth === 0 && visit(i)) return;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Split the arguments of a CSS function body on the first top-level comma.
|
|
50
|
-
* Handles nested functions such as rgba(), color-mix(), var(), and quoted strings.
|
|
51
|
-
*/
|
|
52
|
-
function splitTopLevelComma(input) {
|
|
53
|
-
let split = null;
|
|
54
|
-
scanTopLevel(input, (i) => {
|
|
55
|
-
if (input[i] !== ",") return false;
|
|
56
|
-
split = [input.slice(0, i).trim(), input.slice(i + 1).trim()];
|
|
57
|
-
return true;
|
|
58
|
-
});
|
|
59
|
-
return split;
|
|
60
|
-
}
|
|
61
|
-
/** Index of the `)` matching the `(` at `openIndex`, or -1 when unbalanced. */
|
|
62
|
-
function findMatchingParen(input, openIndex) {
|
|
63
|
-
let depth = 0;
|
|
64
|
-
for (let i = openIndex; i < input.length; i++) {
|
|
65
|
-
const char = input[i];
|
|
66
|
-
if (char === "(") depth++;
|
|
67
|
-
else if (char === ")") {
|
|
68
|
-
depth--;
|
|
69
|
-
if (depth === 0) return i;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return -1;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Resolves every value in `raw` to a concrete one: each `var(--name[,
|
|
76
|
-
* fallback])` is replaced by `name`'s resolved value, or by its fallback when
|
|
77
|
-
* `raw` has no `name`, and is kept as written when neither exists or the
|
|
78
|
-
* references form a cycle.
|
|
79
|
-
*/
|
|
80
|
-
function resolveTokenReferences(raw) {
|
|
81
|
-
const cache = {};
|
|
82
|
-
const substitute = (expr, seen) => {
|
|
83
|
-
const start = expr.indexOf("var(");
|
|
84
|
-
if (start === -1) return expr;
|
|
85
|
-
const openIndex = start + 3;
|
|
86
|
-
const closeIndex = findMatchingParen(expr, openIndex);
|
|
87
|
-
if (closeIndex === -1) return expr;
|
|
88
|
-
const inner = expr.slice(openIndex + 1, closeIndex);
|
|
89
|
-
const commaSplit = splitTopLevelComma(inner);
|
|
90
|
-
const name = (commaSplit ? commaSplit[0] : inner).trim();
|
|
91
|
-
const fallback = commaSplit ? commaSplit[1] : null;
|
|
92
|
-
let replacement;
|
|
93
|
-
if (seen.has(name)) replacement = expr.slice(start, closeIndex + 1);
|
|
94
|
-
else if (name in raw) {
|
|
95
|
-
seen.add(name);
|
|
96
|
-
replacement = reference(name, seen);
|
|
97
|
-
seen.delete(name);
|
|
98
|
-
} else if (fallback !== null) replacement = substitute(fallback.trim(), seen);
|
|
99
|
-
else replacement = expr.slice(start, closeIndex + 1);
|
|
100
|
-
const rest = substitute(expr.slice(closeIndex + 1), seen);
|
|
101
|
-
return expr.slice(0, start) + replacement + rest;
|
|
102
|
-
};
|
|
103
|
-
const reference = (name, seen) => {
|
|
104
|
-
if (name in cache) return cache[name];
|
|
105
|
-
const value = raw[name];
|
|
106
|
-
if (value === void 0) return "";
|
|
107
|
-
const resolved = value.includes("var(") ? substitute(value, seen) : value;
|
|
108
|
-
cache[name] = resolved;
|
|
109
|
-
return resolved;
|
|
110
|
-
};
|
|
111
|
-
for (const name of Object.keys(raw)) reference(name, /* @__PURE__ */ new Set());
|
|
112
|
-
return cache;
|
|
113
|
-
}
|
|
114
|
-
//#endregion
|
|
115
5
|
//#region src/motion/themeTiming.ts
|
|
116
6
|
/**
|
|
117
7
|
* The value `@astryx-vue/themes` declares for each timing token, by its
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
//#region src/Theme/motionTokenDefaults.ts
|
|
2
|
+
/**
|
|
3
|
+
* @file motionTokenDefaults.ts
|
|
4
|
+
* @input Nothing: the values `@astryx-vue/themes` declares on `:root`
|
|
5
|
+
* @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
|
|
6
|
+
* unprefixed names, and their name types
|
|
7
|
+
* @position Theme utility with no imports. The neutral theme stylesheet
|
|
8
|
+
* (`packages/themes/neutral/base.css`) declares these values as
|
|
9
|
+
* `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
|
|
10
|
+
* keeps the two equal. Motion tokens a theme generates (`tempo`,
|
|
11
|
+
* `character`) start from these values, and the motion foundation falls
|
|
12
|
+
* back to them where no stylesheet applies. Pure; safe on the server.
|
|
13
|
+
*/
|
|
14
|
+
const durationDefaults = {
|
|
15
|
+
"--duration-fast-min": "95ms",
|
|
16
|
+
"--duration-fast": "125ms",
|
|
17
|
+
"--duration-fast-max": "165ms",
|
|
18
|
+
"--duration-medium-min": "225ms",
|
|
19
|
+
"--duration-medium": "300ms",
|
|
20
|
+
"--duration-medium-max": "400ms",
|
|
21
|
+
"--duration-slow-min": "525ms",
|
|
22
|
+
"--duration-slow": "700ms",
|
|
23
|
+
"--duration-slow-max": "935ms",
|
|
24
|
+
/** The standard dismissal duration. */
|
|
25
|
+
"--duration-exit": "var(--duration-fast)"
|
|
26
|
+
};
|
|
27
|
+
const easeDefaults = {
|
|
28
|
+
/** Decelerates: state changes. */
|
|
29
|
+
"--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
30
|
+
/** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
|
|
31
|
+
"--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
32
|
+
/** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
|
|
33
|
+
"--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
34
|
+
/** Accelerates: things leaving. */
|
|
35
|
+
"--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/Theme/tokenReferences.ts
|
|
39
|
+
/**
|
|
40
|
+
* @file tokenReferences.ts
|
|
41
|
+
* @input A flat map of token names to raw CSS values
|
|
42
|
+
* @output `resolveTokenReferences`, which follows `var(--name[, fallback])`
|
|
43
|
+
* references through the map
|
|
44
|
+
* @position Theme utility with no imports: themeMotion.ts resolves motion
|
|
45
|
+
* tokens written as references on it, and the motion foundation resolves
|
|
46
|
+
* the declared timing defaults on it. Pure; safe on the server.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Call `visit` for each top-level character of a CSS value. A top-level
|
|
50
|
+
* character is outside parentheses and outside quoted strings. In a quoted
|
|
51
|
+
* string, a backslash escapes the next character. The scan stops when `visit`
|
|
52
|
+
* returns true.
|
|
53
|
+
*/
|
|
54
|
+
function scanTopLevel(input, visit) {
|
|
55
|
+
let depth = 0;
|
|
56
|
+
let quote = null;
|
|
57
|
+
let isEscaped = false;
|
|
58
|
+
for (let i = 0; i < input.length; i++) {
|
|
59
|
+
const char = input[i];
|
|
60
|
+
if (quote !== null) {
|
|
61
|
+
if (isEscaped) isEscaped = false;
|
|
62
|
+
else if (char === "\\") isEscaped = true;
|
|
63
|
+
else if (char === quote) quote = null;
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (char === "\"" || char === "'") {
|
|
67
|
+
quote = char;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (char === "(") {
|
|
71
|
+
depth++;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (char === ")") {
|
|
75
|
+
depth = Math.max(0, depth - 1);
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
if (depth === 0 && visit(i)) return;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Split a CSS value on the whitespace between its components. Whitespace
|
|
83
|
+
* inside parentheses or quotes belongs to one component, so
|
|
84
|
+
* `clamp(8px, 2vw, 16px)` and `var(--gap, 1px 2px)` each stay whole. An
|
|
85
|
+
* empty value has no components.
|
|
86
|
+
*/
|
|
87
|
+
function splitTopLevelWhitespace(input) {
|
|
88
|
+
const parts = [];
|
|
89
|
+
let start = 0;
|
|
90
|
+
scanTopLevel(input, (i) => {
|
|
91
|
+
if (/\s/.test(input[i] ?? "")) {
|
|
92
|
+
if (i > start) parts.push(input.slice(start, i));
|
|
93
|
+
start = i + 1;
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
});
|
|
97
|
+
if (input.length > start) parts.push(input.slice(start));
|
|
98
|
+
return parts;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Split the arguments of a CSS function body on the first top-level comma.
|
|
102
|
+
* Handles nested functions such as rgba(), color-mix(), var(), and quoted strings.
|
|
103
|
+
*/
|
|
104
|
+
function splitTopLevelComma(input) {
|
|
105
|
+
let split = null;
|
|
106
|
+
scanTopLevel(input, (i) => {
|
|
107
|
+
if (input[i] !== ",") return false;
|
|
108
|
+
split = [input.slice(0, i).trim(), input.slice(i + 1).trim()];
|
|
109
|
+
return true;
|
|
110
|
+
});
|
|
111
|
+
return split;
|
|
112
|
+
}
|
|
113
|
+
/** Index of the `)` matching the `(` at `openIndex`, or -1 when unbalanced. */
|
|
114
|
+
function findMatchingParen(input, openIndex) {
|
|
115
|
+
let depth = 0;
|
|
116
|
+
for (let i = openIndex; i < input.length; i++) {
|
|
117
|
+
const char = input[i];
|
|
118
|
+
if (char === "(") depth++;
|
|
119
|
+
else if (char === ")") {
|
|
120
|
+
depth--;
|
|
121
|
+
if (depth === 0) return i;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return -1;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Resolves every value in `raw` to a concrete one: each `var(--name[,
|
|
128
|
+
* fallback])` is replaced by `name`'s resolved value, or by its fallback when
|
|
129
|
+
* `raw` has no `name`, and is kept as written when neither exists or the
|
|
130
|
+
* references form a cycle.
|
|
131
|
+
*/
|
|
132
|
+
function resolveTokenReferences(raw) {
|
|
133
|
+
const cache = {};
|
|
134
|
+
const substitute = (expr, seen) => {
|
|
135
|
+
const start = expr.indexOf("var(");
|
|
136
|
+
if (start === -1) return expr;
|
|
137
|
+
const openIndex = start + 3;
|
|
138
|
+
const closeIndex = findMatchingParen(expr, openIndex);
|
|
139
|
+
if (closeIndex === -1) return expr;
|
|
140
|
+
const inner = expr.slice(openIndex + 1, closeIndex);
|
|
141
|
+
const commaSplit = splitTopLevelComma(inner);
|
|
142
|
+
const name = (commaSplit ? commaSplit[0] : inner).trim();
|
|
143
|
+
const fallback = commaSplit ? commaSplit[1] : null;
|
|
144
|
+
let replacement;
|
|
145
|
+
if (seen.has(name)) replacement = expr.slice(start, closeIndex + 1);
|
|
146
|
+
else if (name in raw) {
|
|
147
|
+
seen.add(name);
|
|
148
|
+
replacement = reference(name, seen);
|
|
149
|
+
seen.delete(name);
|
|
150
|
+
} else if (fallback !== null) replacement = substitute(fallback.trim(), seen);
|
|
151
|
+
else replacement = expr.slice(start, closeIndex + 1);
|
|
152
|
+
const rest = substitute(expr.slice(closeIndex + 1), seen);
|
|
153
|
+
return expr.slice(0, start) + replacement + rest;
|
|
154
|
+
};
|
|
155
|
+
const reference = (name, seen) => {
|
|
156
|
+
if (name in cache) return cache[name];
|
|
157
|
+
const value = raw[name];
|
|
158
|
+
if (value === void 0) return "";
|
|
159
|
+
const resolved = value.includes("var(") ? substitute(value, seen) : value;
|
|
160
|
+
cache[name] = resolved;
|
|
161
|
+
return resolved;
|
|
162
|
+
};
|
|
163
|
+
for (const name of Object.keys(raw)) reference(name, /* @__PURE__ */ new Set());
|
|
164
|
+
return cache;
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
export { easeDefaults as i, splitTopLevelWhitespace as n, durationDefaults as r, resolveTokenReferences as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./compactDefinition-CMTR5KqU.js";
|
|
3
3
|
import { ComputedRef, MaybeRefOrGetter } from "vue";
|
|
4
4
|
//#region src/composables/internal/presentation.d.ts
|
|
5
5
|
type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
1
|
+
import { c as isTrackedByGroup, m as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE, u as isInsideScrollView } from "./pressFeedback-9dqGYjxv.js";
|
|
2
|
+
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-SY1ITxSJ.js";
|
|
3
3
|
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-BzIBmKF2.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/useActionGroupTracking.ts
|