@astryx-vue/core 0.31.0 → 0.32.1
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-CvNtu0Jd.js → AlertDialog-JmxbMkeV.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BmX6wqba.js → AppShell-mWlY4pE3.js} +4 -6
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-IVvsyeGV.js → Avatar-B-gSpEw4.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-Dd-yDDNz.js → AvatarGroup-CCFMtKks.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DKmvoMxD.js → Banner-BJETFZr7.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BZ_yFoKC.js → BottomSheet-C6pQBvnU.js} +10 -38
- package/dist/{BottomSheet-B8_znPYE.js → BottomSheet-C_LoskZt.js} +3 -3
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CJpvbZsf.js → Breadcrumbs-D05OmNfd.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DdPty46q.js → Button-X7k1WCkW.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-oI99JAyN.js → ButtonGroup-D5E7QLWI.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-BNr79JpP.js → Carousel-Bpbx-2DK.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BadS0fEx.js → Chat-D7Q2z9W2.js} +11 -11
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-Cxtmdymo.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-DJrx97cA.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-B86P2aiM.js → ClickableCard-CLXCxaxo.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-Bgxy15iD.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf5zttC-.js} +2 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-CniaCqex.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-vna5wtig.js → ComplexSelector-DYeYZKON.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CE-FnLI6.js → ContextMenu-CLCgJG0C.js} +167 -142
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BCasoeIj.js → DateInput-BmEbQA1z.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bi97pjDX.js → DateRangeInput-CoA1PuGz.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CKnvjLhi.js → DateTimeInput-CL0sp0ES.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BN-NycQr.js → Dialog-C46xHdDO.js} +1 -1
- package/dist/{Dialog-Dt0gNuMT.js → Dialog-uzq24bX_.js} +2 -2
- package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-E0auaRKt.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-PeMgE4iA.js → Drawer-DfhhdBMZ.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -3
- package/dist/{DropdownMenu-aYOIh9gZ.js → DropdownMenu-BWgt12MZ.js} +1083 -555
- package/dist/{DropdownMenuRadioItem.vue-C8rePTyz.d.ts → DropdownMenuRadioItem.vue-B4iwMWWD.d.ts} +16 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BGo1nrnT.js → EmptyState-C8WQltQk.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D-fRqyso.js → Field-CrnwM-2A.js} +1 -1
- package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DqQP1T-d.js} +1 -1
- package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CLxclKT2.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CTNnDIkm.js → FileInput-BHFjo_zo.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BFK3PftX.js → Heading-jYno4L3t.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DGjsPn-Q.js → HoverCard-D_6idU4r.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DPezhVBA.js → IconButton-B6m42AlL.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-B4BFfLtT.js → InfoTip-CUkTHca2.js} +2 -2
- package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-s_MEW25n.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CraWGK6Y.js → InputGroup-42PbUmg-.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
- package/dist/{Item-C9u_kQUO.js → Item-C9Cs0Jqr.js} +1 -1
- package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-XvH9wmdg.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-094k14rN.js → Layout-tU7e1J1I.js} +1 -1
- package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-D8t8F-sl.js} +22 -2
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-Bur4pvRo.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Bwgpn-di.js → Link-DVslj_GH.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-_lOmngHp.js → ListItem-DOFfdRA_.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BlEi5UGN.js → Markdown-Baq5r2Mp.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-BV3fmVmO.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CXshllJj.js → MoreMenu-COSDjYyl.js} +45 -16
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Bs3Imw6k.js → MultiSelector-eJSx3iZR.js} +8 -8
- package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-B8G8t325.js} +1 -1
- package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-BkNP_1au.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-D4xHjSTo.js → NavItem-B7xpLk_x.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-C6OU4a5Z.js} +3 -3
- package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BZuajqYL.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DicgvFte.js → NumberInput-Dd4QQGZp.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-CnSt_KvS.js → Outline-coqRQ06s.js} +4 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BYYz3ePw.js → OverflowList-DS7cmNsr.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-kJhH6sPF.js → Pagination-BWPJfO4_.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CqL_AXQB.js → Popover-DnrZk22Y.js} +8 -8
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Ff2n7eJ2.js → PowerSearch-CDwASKYp.js} +27 -27
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-C-HzrG8T.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-B-AkUDI8.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-DhmF7YNL.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-BMSbAFdP.js → ResizeHandle-CcS-NP4r.js} +21 -4
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-C-F5dkcG.js → SegmentedControl-BdbqWErg.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-CwfpgsS8.js → SelectableCard-YzN6trLf.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DgzSGUul.js → Selector-BNr_kb6Q.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DNQZ8l6b.js → SideNav-DnoR_4ml.js} +9 -11
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bq_7Nskr.js → Slider-DaHQhbA7.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DFJavm30.js → StatusDot-B7T0et3H.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CWluGqBs.js → Stepper-C3ZFN-Gp.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DTPvMAxd.js → Switch-B8HRxp3u.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C4i7UZkp.js → TabList-BOQ0bvE3.js} +3 -3
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqAV7l7W.js → Table-CoWGEhzQ.js} +13 -15
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D48QFTtL.js → Text-DqiV40AF.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-J2_wct0p.js → TextArea-Vrx7Os5P.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Da1TYd57.js → TextInput-DOeUROX8.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-BF53Z6jm.js} +3 -3
- package/dist/{TimeField-ojhX2ZOj.js → TimeField-CkGXOHTG.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CfeDP72M.js → TimeInput-DCksf1di.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DgQdZAEa.js → Timer-DDrODKow.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-SseS_qtf.js → Timestamp-CCzREXNN.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-yUVFaZiJ.js → Toast-CoAEdN_I.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-DAW-pV4r.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nSEekhN1.js → Tokenizer-DsPtN6tZ.js} +13 -13
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CxzlUVN0.js → Tooltip-DhV7MkwU.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CcIayfsW.js → TopNav-Djli-IEz.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CsgXzBdm.js → TreeList-CqJ3xfhB.js} +3 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BD6xXNKh.js → Typeahead-Dowds5Z-.js} +6 -6
- package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
- package/dist/{useMenuDrillIn-CMsgOcDP.js → accessibleName-CINO01Ek.js} +117 -27
- package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
- package/dist/{assertOptions-DHfonaBU.js → assertOptions-BCEzojGr.js} +1 -1
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +13 -13
- package/dist/{composables-CVvk9709.js → composables-B7FrCjk6.js} +11 -7
- package/dist/{context-ZWA02GaM.js → context-C_rX8KGX.js} +1 -2
- package/dist/cssValues-Cr6PhYTx.js +223 -0
- package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
- package/dist/{index-DH_xZI84.d.ts → index-B-Z4GL8g.d.ts} +2 -2
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
- package/dist/{index-DVX2jlTQ.d.ts → index-CUuUoX3h.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-C_iTVOHQ.d.ts → index-CilCxEvD.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-D8l_CmL-.d.ts} +1 -1
- package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
- package/dist/{index-DtY_R6Oh.d.ts → index-DIkdln91.d.ts} +2 -2
- package/dist/{index-Bh-GqMzd.d.ts → index-DLE-sASO.d.ts} +31 -3
- package/dist/{index-Q1oG9yIT.d.ts → index-DPklTi3o.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-CG6dbyeb.d.ts → index-DoYrlaEI.d.ts} +3 -3
- package/dist/{index-CuW4AQ7M.d.ts → index-In41wHf3.d.ts} +2 -2
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-Dp6MmjIo.d.ts → index-Rz4jwv4Q.d.ts} +52 -52
- package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
- package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +110 -110
- package/dist/{batch-DPlrpYU6.js → landing-DrnLUanQ.js} +812 -4
- package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-BdZX0xSD.js} +2 -2
- package/dist/lazyBottomSheet-BUXYsz28.js +25 -0
- package/dist/linearEasing-BxWjPql6.js +282 -0
- package/dist/locale/index.js +3 -3
- package/dist/{locale-CVpkedoa.js → locale-C9LWi1y1.js} +1 -1
- package/dist/{menuActivation-BqiaK6ot.js → menuActivation-BQqnzKAX.js} +8 -1
- package/dist/{pressFeedback-9dqGYjxv.js → pressFeedback-CPzGi_88.js} +2 -1
- package/dist/pressGesture-BV4fYPIG.js +103 -0
- package/dist/resizableChannel-BeoqCSou.js +387 -0
- package/dist/resolveMotion-BLdMNTpf.js +117 -0
- package/dist/resolveSnapPoint-DygD-wmL.js +110 -0
- package/dist/roles-CPMsH5Ob.js +196 -0
- package/dist/rubberBand-DecgmtDj.js +123 -0
- package/dist/{resolveSnapPoint-DdZyBkT4.js → springs-BR66JuIm.js} +2 -182
- package/dist/{stillPointerGate-BbMABRyU.js → stillPointerGate-BChxtcd6.js} +1 -1
- package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
- package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
- package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-CKfpQu9d.js} +1 -1
- package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
- package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-B_mZd526.js} +1 -1
- package/dist/{useAttachment-BuNyeUXy.js → useAttachment-BohgLE3o.js} +3 -3
- package/dist/{useCombobox-BqkTY3bw.js → useCombobox-BYRrwLe-.js} +1 -1
- package/dist/{useDismiss-BKtyCwx4.js → useDismiss-Qq0hUJoO.js} +1 -1
- package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-CX-qEF-G.js} +1 -1
- package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
- package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-DDvcJNRd.js} +72 -5
- package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
- package/dist/{useResizable-hv4NYIUi.js → useResizable-BIaZZDJ2.js} +411 -85
- package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
- package/dist/{useTooltip-DvBKna-w.js → useTooltip-CgJi5QQW.js} +4 -4
- package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
- package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
- package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-x1cQd8of.js} +3 -3
- package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-CZuT8Niw.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
- package/package.json +1 -1
- package/styles/dropdown-menu.css +5 -0
- package/styles/resize-handle.css +2 -0
- package/dist/DropdownMenu-B_KDdI8P.js +0 -489
- package/dist/edge-DFaE6rUg.js +0 -164
- package/dist/edgeRide-UdNxbwxY.js +0 -500
- package/dist/handle-CwxCHapJ.js +0 -22
- package/dist/landing-CSCE9afT.js +0 -105
- package/dist/lazyBottomSheet-CbU1Pnfk.js +0 -16
- package/dist/linearEasing-BiRVC8Mq.js +0 -98
- package/dist/resizableChannel-LElsNkSY.js +0 -33
- package/dist/resolveMotion-B9NDPeUz.js +0 -508
- package/dist/useSubmenuMode-CZN9qrUo.js +0 -37
- package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
- package/dist/{loadCatalog-FwMzmCx1.js → loadCatalog-zJKVLZ89.js} +1 -1
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import { a as sharedWeakMap } from "./sharedRealm-H1OrlP0V.js";
|
|
2
|
-
import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-DPlrpYU6.js";
|
|
3
|
-
import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-DFaE6rUg.js";
|
|
4
|
-
import { t as areaOf } from "./handle-CwxCHapJ.js";
|
|
5
|
-
//#region src/motion/layout/playChange.ts
|
|
6
|
-
/** Each part's slide, by its motion: a stopped slide is no glide. */
|
|
7
|
-
const slideTargets = sharedWeakMap("motion/animated-layout/slide-targets", 1);
|
|
8
|
-
/**
|
|
9
|
-
* The changed element's own animation, on the same motion as the content
|
|
10
|
-
* after it (`spec:AST-105` FR4): content that appears reveals from its
|
|
11
|
-
* block-end edge downward, or from the `edge` it is given (FR9), and its edge
|
|
12
|
-
* rides the glide of the content on that side once it starts. A reveal that
|
|
13
|
-
* reverses a running conceal (an adopter opens it again mid-exit, after
|
|
14
|
-
* `releaseLayoutExit`) starts from what the element shows. Plays only with a
|
|
15
|
-
* handle, inside its area and in the area's visible part. Returns the
|
|
16
|
-
* entrance it started, or null when it played none.
|
|
17
|
-
*/
|
|
18
|
-
function playLayoutChange(handle, element, { edge = "block-end" } = {}) {
|
|
19
|
-
if (handle == null) return null;
|
|
20
|
-
const area = areaOf(handle, element);
|
|
21
|
-
if (area == null) return null;
|
|
22
|
-
if (!intersects(element.getBoundingClientRect(), visibleRect(area))) return null;
|
|
23
|
-
const motion = layoutMotion(area);
|
|
24
|
-
if (motion.kind === "instant") return null;
|
|
25
|
-
const from = shownAtStart(element, 0);
|
|
26
|
-
const batch = batches.get(area);
|
|
27
|
-
const change = batch != null && [...batch.changed].some((changed) => changed === element || changed.contains(element)) ? changeStartOf(batch) : void 0;
|
|
28
|
-
if (motion.kind === "fade") return safeAnimate(element, [{ opacity: from }, { opacity: 1 }], {
|
|
29
|
-
duration: motion.durationMs,
|
|
30
|
-
easing: motion.easing
|
|
31
|
-
}, change);
|
|
32
|
-
const { progress } = motion;
|
|
33
|
-
const rtl = edge.startsWith("inline") && isRtl(element);
|
|
34
|
-
const extent = edge.startsWith("block") ? extentOf(element, edge) : 0;
|
|
35
|
-
const sliding = slidingParts(element, edge, area, extent);
|
|
36
|
-
const partMotions = slideParts(sliding, progress, change, (remaining) => slideFrame(edge, (1 - from) * remaining * extent));
|
|
37
|
-
const animation = safeAnimate(element, sampleKeyframes(progress, (remaining) => {
|
|
38
|
-
const hidden = (1 - from) * remaining;
|
|
39
|
-
return partMotions.length > 0 ? { opacity: 1 - hidden } : {
|
|
40
|
-
opacity: 1 - hidden,
|
|
41
|
-
clipPath: fractionClip(edge, hidden, rtl)
|
|
42
|
-
};
|
|
43
|
-
}), {
|
|
44
|
-
duration: progress.durationMs,
|
|
45
|
-
easing: "linear"
|
|
46
|
-
}, change);
|
|
47
|
-
if (animation == null) for (const part of partMotions) part.cancel();
|
|
48
|
-
else rideEdge(element, area, edge, rtl, trackEdgeMotion(element, animation, (t) => 1 - (1 - from) * progress.remaining(t), partMotions, partMotions.length > 0 && sliding != null ? holdSlideClip(element, sliding.clip) : void 0), false);
|
|
49
|
-
return animation;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Plays each part's slide on the change's start, sampled like the glide.
|
|
53
|
-
* `frame` turns the share of the motion still to come into a keyframe.
|
|
54
|
-
*/
|
|
55
|
-
function slideParts(sliding, progress, change, frame, fill) {
|
|
56
|
-
const motions = [];
|
|
57
|
-
for (const [index, part] of (sliding?.parts ?? []).entries()) {
|
|
58
|
-
const motion = safeAnimate(part, sampleKeyframes(progress, frame), {
|
|
59
|
-
duration: progress.durationMs,
|
|
60
|
-
easing: "linear",
|
|
61
|
-
fill
|
|
62
|
-
}, change);
|
|
63
|
-
if (motion != null) {
|
|
64
|
-
motions.push(motion);
|
|
65
|
-
const glide = {
|
|
66
|
-
animation: motion,
|
|
67
|
-
offsetAt: (t) => drawnOffset(motion, t),
|
|
68
|
-
get durationMs() {
|
|
69
|
-
return liveDuration(motion, progress.durationMs);
|
|
70
|
-
},
|
|
71
|
-
shownBefore: {
|
|
72
|
-
x: 0,
|
|
73
|
-
y: 0
|
|
74
|
-
},
|
|
75
|
-
scale: sliding?.scales[index] ?? {
|
|
76
|
-
x: 1,
|
|
77
|
-
y: 1
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
glides.set(part, glide);
|
|
81
|
-
slideTargets.set(motion, part);
|
|
82
|
-
motion.addEventListener?.("finish", () => {
|
|
83
|
-
if (glides.get(part) === glide) glides.delete(part);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return motions;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The offset `animation` draws `t` ms in, read off its keyframes, a straight
|
|
91
|
-
* line between each two. A slide that rides another glide reads that glide's
|
|
92
|
-
* frames, so this follows it.
|
|
93
|
-
*/
|
|
94
|
-
function drawnOffset(animation, t) {
|
|
95
|
-
const effect = animation.effect;
|
|
96
|
-
if (effect == null || typeof effect.getKeyframes !== "function") return {
|
|
97
|
-
x: 0,
|
|
98
|
-
y: 0
|
|
99
|
-
};
|
|
100
|
-
const frames = effect.getKeyframes();
|
|
101
|
-
const duration = Number(effect.getTiming().duration);
|
|
102
|
-
const at = duration > 0 ? Math.min(1, Math.max(0, t / duration)) : 1;
|
|
103
|
-
const offsetOf = (frame) => {
|
|
104
|
-
const [x = 0, y = 0] = numbersIn(String(frame?.translate ?? ""));
|
|
105
|
-
return {
|
|
106
|
-
x,
|
|
107
|
-
y,
|
|
108
|
-
offset: frame?.computedOffset ?? 0
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
let from = offsetOf(frames[0]);
|
|
112
|
-
let to = offsetOf(frames[frames.length - 1]);
|
|
113
|
-
for (const frame of frames) {
|
|
114
|
-
const point = offsetOf(frame);
|
|
115
|
-
if (point.offset <= at) from = point;
|
|
116
|
-
if (point.offset >= at) {
|
|
117
|
-
to = point;
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
const span = to.offset - from.offset;
|
|
122
|
-
const k = span > 0 ? (at - from.offset) / span : 0;
|
|
123
|
-
return {
|
|
124
|
-
x: from.x + (to.x - from.x) * k,
|
|
125
|
-
y: from.y + (to.y - from.y) * k
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
/** How many ms before `animation` started `glide` started: 0 in one change. */
|
|
129
|
-
function startedBefore(glide, animation) {
|
|
130
|
-
const shift = Number(animation.startTime) - Number(glide.animation.startTime);
|
|
131
|
-
return Number.isFinite(shift) ? Math.max(0, shift) : 0;
|
|
132
|
-
}
|
|
133
|
-
/** `animation`'s length now, in ms, or `fallback` if it has none. */
|
|
134
|
-
function liveDuration(animation, fallback) {
|
|
135
|
-
const effect = animation.effect;
|
|
136
|
-
const duration = Number(effect?.getTiming?.().duration);
|
|
137
|
-
return duration > 0 ? duration : fallback;
|
|
138
|
-
}
|
|
139
|
-
/** Cancels a part's slide, and forgets it as the part's glide. */
|
|
140
|
-
function stopGlideOf(animation) {
|
|
141
|
-
const part = slideTargets.get(animation);
|
|
142
|
-
if (part != null && glides.get(part)?.animation === animation) glides.delete(part);
|
|
143
|
-
animation.cancel();
|
|
144
|
-
}
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region src/motion/layout/exit.ts
|
|
147
|
-
/** The inline properties an exit sets, so a release removes exactly them. */
|
|
148
|
-
const EXIT_PROPERTIES = [
|
|
149
|
-
"margin-block-end",
|
|
150
|
-
"margin-inline-end",
|
|
151
|
-
"margin-block-start",
|
|
152
|
-
"margin-inline-start",
|
|
153
|
-
"pointer-events"
|
|
154
|
-
];
|
|
155
|
-
/**
|
|
156
|
-
* The first element after `element` in the area that takes part in layout:
|
|
157
|
-
* its next sibling, or its nearest ancestor's below the area. A wrapper's
|
|
158
|
-
* edge is not used: a negative end margin can collapse through it.
|
|
159
|
-
*/
|
|
160
|
-
function nextInFlow(element, area) {
|
|
161
|
-
const view = element.ownerDocument.defaultView;
|
|
162
|
-
const firstBox = (from) => {
|
|
163
|
-
const style = view?.getComputedStyle(from);
|
|
164
|
-
if (style == null) return from;
|
|
165
|
-
if (style.display === "contents") {
|
|
166
|
-
for (let child = from.firstElementChild; child != null; child = child.nextElementSibling) {
|
|
167
|
-
const box = firstBox(child);
|
|
168
|
-
if (box != null) return box;
|
|
169
|
-
}
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
172
|
-
return takesPart(from, style) ? from : null;
|
|
173
|
-
};
|
|
174
|
-
let node = element;
|
|
175
|
-
while (node != null && node !== area) {
|
|
176
|
-
for (let sibling = node.nextElementSibling; sibling != null; sibling = sibling.nextElementSibling) {
|
|
177
|
-
const box = firstBox(sibling);
|
|
178
|
-
if (box != null) return box;
|
|
179
|
-
}
|
|
180
|
-
node = node.parentElement;
|
|
181
|
-
}
|
|
182
|
-
return null;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* An element's place: its block start, and its inline start (RTL read right
|
|
186
|
-
* to left).
|
|
187
|
-
*/
|
|
188
|
-
function placeOf(element, rtl) {
|
|
189
|
-
const rect = element.getBoundingClientRect();
|
|
190
|
-
return {
|
|
191
|
-
block: rect.top,
|
|
192
|
-
inline: rtl ? -rect.right : rect.left
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Keeps `element` where it is, in flow (so it scrolls and clips with its
|
|
197
|
-
* container), while the content after it takes the place it takes once the
|
|
198
|
-
* element is hidden: a negative end margin measured against that content,
|
|
199
|
-
* so a gap or collapsing margins come out exact. Returns false, setting
|
|
200
|
-
* nothing, when no margin reaches that place.
|
|
201
|
-
*/
|
|
202
|
-
function giveUpSpace(element, area, edge = "block-end") {
|
|
203
|
-
const view = element.ownerDocument.defaultView;
|
|
204
|
-
const parent = element.parentElement == null ? void 0 : view?.getComputedStyle(element.parentElement);
|
|
205
|
-
const isRow = parent != null && parent.display.includes("flex") && parent.flexDirection.startsWith("row");
|
|
206
|
-
const rtl = view?.getComputedStyle(element).direction === "rtl";
|
|
207
|
-
const isStart = edge.endsWith("start");
|
|
208
|
-
const property = edge === "block-end" ? isRow ? "margin-inline-end" : "margin-block-end" : `margin-${edge}`;
|
|
209
|
-
const isInline = property.includes("inline");
|
|
210
|
-
const size = isInline ? element.offsetWidth : element.offsetHeight;
|
|
211
|
-
const next = nextInFlow(element, area);
|
|
212
|
-
if (next == null && !isStart) {
|
|
213
|
-
element.style.setProperty(property, `${-size}px`);
|
|
214
|
-
return true;
|
|
215
|
-
}
|
|
216
|
-
const own = element.style.getPropertyValue(property);
|
|
217
|
-
const ownPriority = element.style.getPropertyPriority(property);
|
|
218
|
-
const axis = isInline ? "inline" : "block";
|
|
219
|
-
const checked = [
|
|
220
|
-
next,
|
|
221
|
-
element.parentElement == null || element.parentElement === area ? null : nextInFlow(element.parentElement, area),
|
|
222
|
-
isStart ? previousInFlow(element, area) : null,
|
|
223
|
-
isStart ? element : null
|
|
224
|
-
].filter((box) => box != null);
|
|
225
|
-
if (checked.length === 0) return false;
|
|
226
|
-
const scale = scaleOf(element, element.getBoundingClientRect());
|
|
227
|
-
const position = element.style.getPropertyValue("position");
|
|
228
|
-
const positionPriority = element.style.getPropertyPriority("position");
|
|
229
|
-
const shown = isStart ? placeOf(element, rtl) : null;
|
|
230
|
-
element.style.setProperty("position", "absolute", "important");
|
|
231
|
-
const targets = checked.map((box) => box === element && shown != null ? shown : placeOf(box, rtl));
|
|
232
|
-
const target = targets[0];
|
|
233
|
-
if (position === "") element.style.removeProperty("position");
|
|
234
|
-
else element.style.setProperty("position", position, positionPriority);
|
|
235
|
-
const perPx = isRow ? scale.x : scale.y;
|
|
236
|
-
element.style.setProperty(property, `${-size}px`);
|
|
237
|
-
const guess = placeOf(checked[0], rtl)[axis];
|
|
238
|
-
const correction = (target[axis] - guess) / perPx;
|
|
239
|
-
element.style.setProperty(property, `${-size + correction}px`);
|
|
240
|
-
if (checked.some((box, index) => {
|
|
241
|
-
const landed = placeOf(box, rtl);
|
|
242
|
-
return Math.abs(landed.block - targets[index].block) > 1 || Math.abs(landed.inline - targets[index].inline) > 1;
|
|
243
|
-
})) {
|
|
244
|
-
if (own === "") element.style.removeProperty(property);
|
|
245
|
-
else element.style.setProperty(property, own, ownPriority);
|
|
246
|
-
return false;
|
|
247
|
-
}
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
/** Exits holding an element back, so a release can stop one. */
|
|
251
|
-
const exits = sharedWeakMap("motion/animated-layout/exits", 1);
|
|
252
|
-
const replaced = sharedWeakMap("motion/animated-layout/replaced", 1);
|
|
253
|
-
/**
|
|
254
|
-
* The changed element's exit (`spec:AST-105` FR4): content that disappears
|
|
255
|
-
* keeps its place on screen but gives up its space (a negative end margin
|
|
256
|
-
* measured against the layout without it, so the content after it glides up
|
|
257
|
-
* at once to exactly where it ends, and it still scrolls and clips with its
|
|
258
|
-
* container), is inert (no focus, no pointer, nothing read), conceals upward
|
|
259
|
-
* from its bottom edge on the same motion, and then `done` runs, when the
|
|
260
|
-
* component hides or unmounts it. Under Reduce Motion with a coarse primary pointer it
|
|
261
|
-
* fades instead. Call it in the layout effect of the commit that closes the
|
|
262
|
-
* element, after the change's `animate()` reported it measured, in the same
|
|
263
|
-
* task: the glide reads the layout once the element has given up its space.
|
|
264
|
-
*
|
|
265
|
-
* It conceals to its block-end edge by default, or to the `edge` it is given
|
|
266
|
-
* (`spec:AST-105` FR9), and its edge rides the glide of the content on that
|
|
267
|
-
* side once it starts; a conceal that reverses a running reveal (a close
|
|
268
|
-
* while it opens) starts from what the element shows.
|
|
269
|
-
*
|
|
270
|
-
* Returns false, holding nothing, when the exit lands at once: no handle, a
|
|
271
|
-
* close no change in the area measured, outside the area or its visible part,
|
|
272
|
-
* Reduce Motion with a fine pointer, or a layout no end margin can free (a
|
|
273
|
-
* grid track and its gap, a flex-row item that sets its row's height); in
|
|
274
|
-
* that last case the content after it takes its final place at once too.
|
|
275
|
-
* The component then hides the element itself.
|
|
276
|
-
*/
|
|
277
|
-
function holdLayoutExit(handle, element, done, { edge = "block-end" } = {}) {
|
|
278
|
-
if (handle == null) return false;
|
|
279
|
-
const area = areaOf(handle, element);
|
|
280
|
-
if (area == null || !intersects(element.getBoundingClientRect(), visibleRect(area))) return false;
|
|
281
|
-
const batch = batches.get(area);
|
|
282
|
-
if (batch == null || ![...batch.changed].some((changed) => changed === element || changed.contains(element))) return false;
|
|
283
|
-
const motion = layoutMotion(area);
|
|
284
|
-
if (motion.kind === "instant") return false;
|
|
285
|
-
releaseLayoutExit(element);
|
|
286
|
-
const prior = {
|
|
287
|
-
inert: element.hasAttribute("inert"),
|
|
288
|
-
styles: EXIT_PROPERTIES.map((property) => [
|
|
289
|
-
property,
|
|
290
|
-
element.style.getPropertyValue(property),
|
|
291
|
-
element.style.getPropertyPriority(property)
|
|
292
|
-
])
|
|
293
|
-
};
|
|
294
|
-
if (!giveUpSpace(element, area, edge)) {
|
|
295
|
-
for (const changed of [...batch.changed]) if (changed === element || changed.contains(element)) batch.changed.delete(changed);
|
|
296
|
-
return false;
|
|
297
|
-
}
|
|
298
|
-
replaced.set(element, prior);
|
|
299
|
-
element.setAttribute("inert", "");
|
|
300
|
-
element.style.setProperty("pointer-events", "none");
|
|
301
|
-
const from = shownAtStart(element, 1);
|
|
302
|
-
const rtl = edge.startsWith("inline") && isRtl(element);
|
|
303
|
-
const change = changeStartOf(batch);
|
|
304
|
-
let animation;
|
|
305
|
-
if (motion.kind === "fade") animation = safeAnimate(element, [{ opacity: from }, { opacity: 0 }], {
|
|
306
|
-
duration: motion.durationMs,
|
|
307
|
-
easing: motion.easing,
|
|
308
|
-
fill: "forwards"
|
|
309
|
-
}, change);
|
|
310
|
-
else {
|
|
311
|
-
const { progress } = motion;
|
|
312
|
-
const extent = edge.startsWith("block") ? extentOf(element, edge) : 0;
|
|
313
|
-
const sliding = slidingParts(element, edge, area, extent);
|
|
314
|
-
const partMotions = slideParts(sliding, progress, change, (remaining) => slideFrame(edge, (1 - from * remaining) * extent), "forwards");
|
|
315
|
-
animation = safeAnimate(element, sampleKeyframes(progress, (remaining) => {
|
|
316
|
-
const shown = from * remaining;
|
|
317
|
-
return partMotions.length > 0 ? { opacity: shown } : {
|
|
318
|
-
opacity: shown,
|
|
319
|
-
clipPath: fractionClip(edge, 1 - shown, rtl)
|
|
320
|
-
};
|
|
321
|
-
}), {
|
|
322
|
-
duration: progress.durationMs,
|
|
323
|
-
easing: "linear",
|
|
324
|
-
fill: "forwards"
|
|
325
|
-
}, change);
|
|
326
|
-
if (animation == null) for (const part of partMotions) part.cancel();
|
|
327
|
-
else rideEdge(element, area, edge, rtl, trackEdgeMotion(element, animation, (t) => from * progress.remaining(t), partMotions, partMotions.length > 0 && sliding != null ? holdSlideClip(element, sliding.clip) : void 0, true), true);
|
|
328
|
-
}
|
|
329
|
-
exits.set(element, animation);
|
|
330
|
-
if (animation == null) {
|
|
331
|
-
done();
|
|
332
|
-
return true;
|
|
333
|
-
}
|
|
334
|
-
animation.addEventListener?.("finish", () => {
|
|
335
|
-
if (exits.get(element) === animation) done();
|
|
336
|
-
});
|
|
337
|
-
return true;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Puts an element `holdLayoutExit` held back: stops its exit and puts back
|
|
341
|
-
* what the exit replaced (its `inert` and inline values as they were). Called
|
|
342
|
-
* once the component has hidden the element, or when the element opens again
|
|
343
|
-
* mid-exit.
|
|
344
|
-
*/
|
|
345
|
-
function releaseLayoutExit(element) {
|
|
346
|
-
if (!exits.has(element)) return;
|
|
347
|
-
const running = edgeMotions.get(element);
|
|
348
|
-
if (running != null) {
|
|
349
|
-
edgeMotions.delete(element);
|
|
350
|
-
stoppedShown.set(element, {
|
|
351
|
-
fraction: shownNow(running),
|
|
352
|
-
at: timelineNow(element)
|
|
353
|
-
});
|
|
354
|
-
stopSlides(running);
|
|
355
|
-
}
|
|
356
|
-
const held = heldSlides.get(element);
|
|
357
|
-
heldSlides.delete(element);
|
|
358
|
-
if (held != null) stopSlides(held);
|
|
359
|
-
exits.get(element)?.cancel();
|
|
360
|
-
exits.delete(element);
|
|
361
|
-
const prior = replaced.get(element);
|
|
362
|
-
replaced.delete(element);
|
|
363
|
-
if (prior?.inert !== true) element.removeAttribute("inert");
|
|
364
|
-
for (const [property, value, priority] of prior?.styles ?? []) if (value === "") element.style.removeProperty(property);
|
|
365
|
-
else element.style.setProperty(property, value, priority);
|
|
366
|
-
}
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region src/motion/layout/edgeRide.ts
|
|
369
|
-
/** Each exit's motion, whose parts hold their slides until its release. */
|
|
370
|
-
const heldSlides = sharedWeakMap("motion/animated-layout/held-slides", 1);
|
|
371
|
-
/** Each element's running one-state reveal or conceal. */
|
|
372
|
-
const edgeMotions = sharedWeakMap("motion/animated-layout/edge-motions", 1);
|
|
373
|
-
/**
|
|
374
|
-
* What a one-state motion an adopter stopped (`releaseLayoutExit`) showed,
|
|
375
|
-
* and the timeline time it stopped at: a reveal started in the same frame,
|
|
376
|
-
* the reversal that stopped it, starts there.
|
|
377
|
-
*/
|
|
378
|
-
const stoppedShown = sharedWeakMap("motion/animated-layout/stopped-shown", 1);
|
|
379
|
-
function timelineNow(element) {
|
|
380
|
-
return Number(element.ownerDocument.timeline?.currentTime ?? NaN);
|
|
381
|
-
}
|
|
382
|
-
/** What `motion` shows now, by its animation's own clock. */
|
|
383
|
-
function shownNow(motion) {
|
|
384
|
-
const time = Number(motion.animation.currentTime);
|
|
385
|
-
return motion.shownAt(Number.isFinite(time) ? Math.max(0, time) : 0);
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* What `element` shows as a reveal or conceal starts: where the one-state
|
|
389
|
-
* motion this one reverses had got to (it stops there), or `atRest`, all of
|
|
390
|
-
* it for a conceal and nothing for a reveal.
|
|
391
|
-
*/
|
|
392
|
-
function shownAtStart(element, atRest) {
|
|
393
|
-
const running = edgeMotions.get(element);
|
|
394
|
-
if (running != null) {
|
|
395
|
-
edgeMotions.delete(element);
|
|
396
|
-
const fraction = shownNow(running);
|
|
397
|
-
running.animation.cancel();
|
|
398
|
-
stopSlides(running);
|
|
399
|
-
return fraction;
|
|
400
|
-
}
|
|
401
|
-
const stopped = stoppedShown.get(element);
|
|
402
|
-
stoppedShown.delete(element);
|
|
403
|
-
if (stopped != null && stopped.at === timelineNow(element)) return stopped.fraction;
|
|
404
|
-
return atRest;
|
|
405
|
-
}
|
|
406
|
-
/** Stops `motion`'s sliding parts and puts back the element's clip, once. */
|
|
407
|
-
function stopSlides(motion) {
|
|
408
|
-
motion.release();
|
|
409
|
-
}
|
|
410
|
-
/** Records `animation` as `element`'s running one-state motion. */
|
|
411
|
-
function trackEdgeMotion(element, animation, shownAt, slides = [], release = () => {}, isHeldToRelease = false) {
|
|
412
|
-
let isReleased = false;
|
|
413
|
-
const motion = {
|
|
414
|
-
animation,
|
|
415
|
-
shownAt,
|
|
416
|
-
slides,
|
|
417
|
-
release: () => {
|
|
418
|
-
if (!isReleased) {
|
|
419
|
-
isReleased = true;
|
|
420
|
-
for (const slide of slides) stopGlideOf(slide);
|
|
421
|
-
release();
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
edgeMotions.set(element, motion);
|
|
426
|
-
if (isHeldToRelease) heldSlides.set(element, motion);
|
|
427
|
-
animation.addEventListener?.("finish", () => {
|
|
428
|
-
if (edgeMotions.get(element) === motion) {
|
|
429
|
-
edgeMotions.delete(element);
|
|
430
|
-
if (!isHeldToRelease) motion.release();
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
return motion;
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* After this commit's glides start (the batch flushes in a microtask queued
|
|
437
|
-
* before this one), before the frame paints: once the content on `edge`'s
|
|
438
|
-
* side glides, the moving edge rides that glide, frame by frame, so the two
|
|
439
|
-
* never part, a reversal included (the glide carries its running motion).
|
|
440
|
-
* `hiddenAt` turns that content's offset towards the edge's side into the
|
|
441
|
-
* length the element hides; `frame` turns that length into a keyframe.
|
|
442
|
-
* Without that glide (nothing on that side in the area, or nothing that
|
|
443
|
-
* moves) the motion keeps its own curve. The animation is kept, its frames
|
|
444
|
-
* replaced; `onRide` hears the ridden hidden length over time.
|
|
445
|
-
*/
|
|
446
|
-
function rideNeighbour(element, area, edge, rtl, animation, isCurrent, hiddenAt, frame, onRide) {
|
|
447
|
-
const effect = animation.effect;
|
|
448
|
-
if (effect == null || typeof effect.setKeyframes !== "function") return;
|
|
449
|
-
queueMicrotask(() => {
|
|
450
|
-
if (!isCurrent()) return;
|
|
451
|
-
const isEnd = edge.endsWith("end");
|
|
452
|
-
const neighbour = isEnd ? nextInFlow(element, area) : previousInFlow(element, area);
|
|
453
|
-
const glide = neighbour == null ? null : glideMoving(neighbour, element, area);
|
|
454
|
-
if (neighbour == null || glide == null) return;
|
|
455
|
-
const own = glideMoving(element, neighbour, area);
|
|
456
|
-
const glideAt = startedBefore(glide, animation);
|
|
457
|
-
const ownAt = own == null ? 0 : startedBefore(own, animation);
|
|
458
|
-
const durationMs = Math.max(glide.durationMs - glideAt, own == null ? 0 : own.durationMs - ownAt);
|
|
459
|
-
const sign = isEnd ? 1 : -1;
|
|
460
|
-
const hidden = (t) => {
|
|
461
|
-
const offset = glide.offsetAt(glideAt + t);
|
|
462
|
-
const moved = own?.offsetAt(ownAt + t) ?? {
|
|
463
|
-
x: 0,
|
|
464
|
-
y: 0
|
|
465
|
-
};
|
|
466
|
-
return hiddenAt(sign * (edge.startsWith("inline") ? (rtl ? -1 : 1) * (offset.x - moved.x) : offset.y - moved.y));
|
|
467
|
-
};
|
|
468
|
-
const frames = sampleOver(durationMs, (t) => frame(hidden(t)));
|
|
469
|
-
effect.setKeyframes(frames);
|
|
470
|
-
effect.updateTiming?.({ duration: durationMs });
|
|
471
|
-
retimeSettle(animation, frames, durationMs);
|
|
472
|
-
onRide(hidden, durationMs);
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* The one-state reveal or conceal rides the content on its edge's side: the
|
|
477
|
-
* element shows what lies between its fixed edge and that content, a reveal
|
|
478
|
-
* less by however far the content still is from its place towards it, a
|
|
479
|
-
* conceal all of it less however far the content has come, fading with what
|
|
480
|
-
* it hides.
|
|
481
|
-
*/
|
|
482
|
-
function rideEdge(element, area, edge, rtl, motion, isConceal) {
|
|
483
|
-
const extent = extentOf(element, edge);
|
|
484
|
-
if (!(extent > 0)) return;
|
|
485
|
-
rideNeighbour(element, area, edge, rtl, motion.animation, () => edgeMotions.get(element) === motion, (towards) => Math.min(extent, Math.max(0, isConceal ? extent - towards : -towards)), (hidden) => motion.slides.length > 0 ? { opacity: 1 - hidden / extent } : {
|
|
486
|
-
opacity: 1 - hidden / extent,
|
|
487
|
-
clipPath: pxClip(edge, hidden, rtl)
|
|
488
|
-
}, (hiddenAt, durationMs) => {
|
|
489
|
-
motion.shownAt = (t) => 1 - hiddenAt(t) / extent;
|
|
490
|
-
for (const slide of motion.slides) {
|
|
491
|
-
const effect = slide.effect;
|
|
492
|
-
const frames = sampleOver(durationMs, (t) => slideFrame(edge, hiddenAt(t)));
|
|
493
|
-
effect?.setKeyframes?.(frames);
|
|
494
|
-
effect?.updateTiming?.({ duration: durationMs });
|
|
495
|
-
retimeSettle(slide, frames, durationMs);
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
//#endregion
|
|
500
|
-
export { releaseLayoutExit as n, playLayoutChange as r, holdLayoutExit as t };
|
package/dist/handle-CwxCHapJ.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as sharedKey } from "./sharedRealm-H1OrlP0V.js";
|
|
2
|
-
//#region src/motion/layout/handle.ts
|
|
3
|
-
/**
|
|
4
|
-
* @file handle.ts
|
|
5
|
-
* @position Internal to motion/layout; split from upstream motion/animatedLayout.ts
|
|
6
|
-
*/
|
|
7
|
-
const AREA = sharedKey("animated-layout/area", 1);
|
|
8
|
-
/** The container a handle reads, or null for a value that is not a handle. */
|
|
9
|
-
function readArea(handle) {
|
|
10
|
-
const read = handle[AREA];
|
|
11
|
-
return typeof read === "function" ? read() : null;
|
|
12
|
-
}
|
|
13
|
-
/** A handle over `area` (the container element, read when a change runs). */
|
|
14
|
-
function createAnimatedLayout(area) {
|
|
15
|
-
return Object.freeze(Object.defineProperty({}, AREA, { value: area }));
|
|
16
|
-
}
|
|
17
|
-
function areaOf(handle, element) {
|
|
18
|
-
const area = readArea(handle);
|
|
19
|
-
return area != null && area !== element && area.contains(element) ? area : null;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { createAnimatedLayout as n, readArea as r, areaOf as t };
|
package/dist/landing-CSCE9afT.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { t as batchPresented } from "./presentation-Cy_yf56y.js";
|
|
2
|
-
import { D as glides, S as originOf, T as visibleRect, a as flush, b as transitionSettles, c as onGlideClock, d as layoutMotion, h as beginChange, l as rectOf, n as batches, o as bandFor, s as collectCandidates, t as batchFor, y as settleTransition } from "./batch-DPlrpYU6.js";
|
|
3
|
-
import { t as areaOf } from "./handle-CwxCHapJ.js";
|
|
4
|
-
//#region src/motion/layout/reportChange.ts
|
|
5
|
-
function resolve(target) {
|
|
6
|
-
return typeof target === "function" ? target() : target.current;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Report a size change of `target` to the handle's area. Call
|
|
10
|
-
* `measureBefore()` before the change commits and `animate()` after it; the
|
|
11
|
-
* content after `target`, up to the area, glides from its old place.
|
|
12
|
-
* Changes in one area in one frame move together. Without a handle, or
|
|
13
|
-
* outside its container, nothing moves.
|
|
14
|
-
*/
|
|
15
|
-
function reportLayoutChange(handle, target) {
|
|
16
|
-
return {
|
|
17
|
-
measureBefore() {
|
|
18
|
-
const element = resolve(target);
|
|
19
|
-
if (element == null || handle == null) return;
|
|
20
|
-
const area = areaOf(handle, element);
|
|
21
|
-
if (area == null) return;
|
|
22
|
-
beginChange(element.ownerDocument);
|
|
23
|
-
const batch = batchFor(area);
|
|
24
|
-
if (batch.changed.has(element)) return;
|
|
25
|
-
batch.changed.add(element);
|
|
26
|
-
batch.changedSize += rectOf(element, batch.cache).height;
|
|
27
|
-
batch.visible ??= visibleRect(area);
|
|
28
|
-
batch.originBefore ??= originOf(area);
|
|
29
|
-
batch.walksToBand ??= area.ownerDocument.defaultView?.getComputedStyle(area).getPropertyValue("overflow-anchor") === "none";
|
|
30
|
-
const needed = Math.max(batch.visible.height, batch.changedSize);
|
|
31
|
-
const walks = needed > batch.reach ? [...batch.changed] : [element];
|
|
32
|
-
if (needed > batch.reach) batch.reach = Math.max(needed, batch.reach * 2);
|
|
33
|
-
const band = bandFor(batch.visible, batch.reach);
|
|
34
|
-
for (const changed of walks) {
|
|
35
|
-
const candidates = collectCandidates(changed, area, band, batch.cache, batch.walksToBand, batch.ancestors, batch.befores);
|
|
36
|
-
for (const [candidate, rect] of candidates) if (!batch.before.has(candidate)) batch.before.set(candidate, onGlideClock(candidate, rect, area));
|
|
37
|
-
batch.candidates.set(changed, [...candidates.keys()]);
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
animate(beforeMove) {
|
|
41
|
-
const element = resolve(target);
|
|
42
|
-
if (element == null || handle == null) return false;
|
|
43
|
-
const area = areaOf(handle, element);
|
|
44
|
-
const batch = area == null ? void 0 : batches.get(area);
|
|
45
|
-
if (batch == null || !batch.changed.has(element)) return false;
|
|
46
|
-
if (beforeMove != null) batch.beforeMove.push(beforeMove);
|
|
47
|
-
if (!batch.scheduled) {
|
|
48
|
-
batch.scheduled = true;
|
|
49
|
-
queueMicrotask(() => batchPresented(() => flush(batch)));
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/motion/layout/landing.ts
|
|
57
|
-
/**
|
|
58
|
-
* A disclosure's indicator (its chevron) turns on the same motion as the
|
|
59
|
-
* glide. Its CSS transition takes the theme's move curve and duration as the
|
|
60
|
-
* glide reads them where the area is, and is immediate under Reduce Motion.
|
|
61
|
-
* Without a handle the inline values are cleared, so the component's own
|
|
62
|
-
* transition applies.
|
|
63
|
-
*/
|
|
64
|
-
function applyLayoutChangeTransition(handle, element) {
|
|
65
|
-
if (element == null) return;
|
|
66
|
-
const area = handle == null ? null : areaOf(handle, element);
|
|
67
|
-
if (area == null) {
|
|
68
|
-
transitionSettles.get(element)?.();
|
|
69
|
-
element.style.removeProperty("transition-duration");
|
|
70
|
-
element.style.removeProperty("transition-timing-function");
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
const motion = layoutMotion(area);
|
|
74
|
-
if (motion.kind !== "glide") {
|
|
75
|
-
transitionSettles.get(element)?.();
|
|
76
|
-
element.style.setProperty("transition-duration", "0s");
|
|
77
|
-
element.style.removeProperty("transition-timing-function");
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const ms = Math.round(motion.progress.durationMs * 1e3) / 1e3;
|
|
81
|
-
element.style.setProperty("transition-duration", `${ms}ms`);
|
|
82
|
-
element.style.setProperty("transition-timing-function", motion.progress.easing);
|
|
83
|
-
settleTransition(element, motion.progress);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Lands `element`'s running glide at once: it takes its layout place, and a
|
|
87
|
-
* later change starts from there (a change its caller lands rather than
|
|
88
|
-
* animates, such as a rail that snaps).
|
|
89
|
-
*/
|
|
90
|
-
function landLayoutGlide(element) {
|
|
91
|
-
const glide = glides.get(element);
|
|
92
|
-
if (glide != null) {
|
|
93
|
-
glides.delete(element);
|
|
94
|
-
glide.animation.cancel();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* The motion a change in `area` plays, for tests and for SideNav's rail
|
|
99
|
-
* motion, which plays on the same clock (`component:SideNav` FR6).
|
|
100
|
-
*/
|
|
101
|
-
function layoutMotionFor(area) {
|
|
102
|
-
return layoutMotion(area);
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
export { reportLayoutChange as i, landLayoutGlide as n, layoutMotionFor as r, applyLayoutChangeTransition as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent } from "vue";
|
|
2
|
-
//#region src/BottomSheet/lazyBottomSheet.ts
|
|
3
|
-
function loadBottomSheet() {
|
|
4
|
-
return import("./BottomSheet-BZ_yFoKC.js").then((n) => n.t);
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
|
|
8
|
-
* 不会加载它(以及它的手势)。菜单和 Popover 的底部弹层呈现共用。
|
|
9
|
-
*/
|
|
10
|
-
const LazyBottomSheet = defineAsyncComponent(loadBottomSheet);
|
|
11
|
-
/** 先把模块加载好、什么都不渲染:底部弹层可能成为呈现方式时调用,打开时立刻就有。 */
|
|
12
|
-
function preloadBottomSheet() {
|
|
13
|
-
loadBottomSheet();
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { preloadBottomSheet as n, LazyBottomSheet as t };
|