@astryx-vue/core 0.29.0 → 0.30.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-B195FgtL.js → AlertDialog-B_p1yL3k.js} +9 -9
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CxUmt6hX.js → AppShell-D3KZSLvb.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-DpFHPRlE.js → Avatar-IVvsyeGV.js} +1 -1
- 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-DVU5-fWC.js → Banner-DKmvoMxD.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DVe5Nw9Z.js → BottomSheet-Btf8Yn8k.js} +881 -302
- package/dist/{BottomSheet-D3893Ymj.js → BottomSheet-CQGtoh2x.js} +8 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CQa-Jjnn.js → Breadcrumbs-D6825HQI.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-yJiHoWps.js → Button-DdPty46q.js} +5 -5
- 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/{ButtonTooltip-CNKOQHYR.js → ButtonTooltip-ZpQP-aQg.js} +1 -1
- 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-DPhwOTjx.js → Carousel-BNr79JpP.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bg1IuDMt.js → Chat-BadS0fEx.js} +4 -4
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C-UseBJo.js → CheckboxInput-CzP8gP3v.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DGM-cgX5.js → CheckboxListItem-CxBjpX3d.js} +5 -5
- 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 +1 -1
- package/dist/{CodeBlock-3QLhu3jZ.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-CfTN722D.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CtY5ZCR7.js → CommandPalette-BgVwGtdA.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CZiUA6Gm.js → ComplexSelector-DqWJVx7H.js} +4 -4
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-8I420g7H.js → ContextMenu-C9dJGu3M.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-KZF_A_31.js → DateInput-CGKaozkw.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-4GCWgLFN.js → DateRangeInput-BVHXgzXz.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BGcdOmRp.js → DateTimeInput-DRm3lekJ.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CKDlXonX.js → Dialog-BN-NycQr.js} +1 -1
- package/dist/{Dialog-DjhG_vpE.js → Dialog-Dt0gNuMT.js} +2 -2
- package/dist/{DialogHeader-C1Bz4Knk.js → DialogHeader-CSH2_5v-.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-BqcPP0z7.js → Drawer-PeMgE4iA.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CSqkl-Xl.js → DropdownMenu-C9bvYZPt.js} +6 -6
- package/dist/{DropdownMenu-B-dBiomz.js → DropdownMenu-_lQQyQCn.js} +7 -7
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-DNjqNAT3.js → EmptyState-BGo1nrnT.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DrUMz0oj.js → Field-D-fRqyso.js} +1 -1
- package/dist/{FieldInfoTip-DmDOcxU1.js → FieldInfoTip-Bstp5Lvd.js} +2 -2
- package/dist/{FieldLabel-DsFZnW1l.js → FieldLabel-lV_qLaGp.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-0u4zjJfx.js → FileInput-CTNnDIkm.js} +4 -4
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BG1PBVkf.js → Heading-BFK3PftX.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-Fr6RLRR8.js → HoverCard-DGjsPn-Q.js} +3 -3
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CEjiXpUg.js → IconButton-DPezhVBA.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-CKRaCO6I.js → InfoTip-B4BFfLtT.js} +2 -2
- package/dist/{InputClearButton-ByUJXRmY.js → InputClearButton-CxU3iv-5.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-H8DP0TAG.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-LI6h7LFn.js → Lightbox-BNUG9CQ1.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Dx2ql41g.js → Link-Bwgpn-di.js} +2 -2
- 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-BHWf2IOO.js → Markdown-BlEi5UGN.js} +3 -3
- package/dist/MetadataList/index.d.ts +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-GPcHAauX.js → MoreMenu-MmvMRWv5.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BSA613nO.js → MultiSelector-DXrKQLmq.js} +7 -7
- package/dist/{NavDisclosure-B66SHKdd.js → NavDisclosure-DsUYuMJr.js} +1 -1
- package/dist/{NavHeadingSurface-BZCzkCPJ.js → NavHeadingSurface-QdM33nOf.js} +1 -1
- 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 +3 -3
- package/dist/{NavMenu-BoKuJq-K.js → NavMenu-NCg3VjAQ.js} +3 -3
- package/dist/{NavMenuItem-Ez3_K8iI.js → NavMenuItem-Bla6fYVl.js} +4 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-lqUmTsqB.js → NumberInput-DicgvFte.js} +4 -4
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DI9MZnuQ.js → Outline-DlO_97b4.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B6En7wIj.js → OverflowList-BYYz3ePw.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DWfvdCpK.js → Pagination-DM_W9Ue-.js} +3 -3
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CB5UYJZc.js → Popover-CxReY-4u.js} +8 -8
- package/dist/PowerSearch/index.d.ts +2 -2
- package/dist/PowerSearch/index.js +1 -1
- package/dist/PowerSearch-BwUWZG3p.js +4829 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-yw2BCtB_.js → ProgressBar-DCAEXJuP.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B8QoJyJu.js → RadioGroup-CsJYGjyx.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-BEv82wbs.js → RadioListItem-Yc3K82YE.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BkWz-I2J.js → SegmentedControl-C-F5dkcG.js} +3 -3
- 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-4sexgsUO.js → Selector-bH99g1vj.js} +5 -5
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-B_0Fv-ZU.js → SideNav-C1ZxusAB.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bmksx8ng.js → Slider-Bq_7Nskr.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bz4l43St.js → StatusDot-DFJavm30.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- 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-CeNEvvTn.js → Switch-DTPvMAxd.js} +3 -3
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BLLxHXwu.js → TabList-C4i7UZkp.js} +4 -4
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Ck4haR13.js → Table-ClHIgsKO.js} +15 -15
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DkSHitKh.js → Text-D48QFTtL.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CAcjMvls.js → TextArea-J2_wct0p.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BvQQTG75.js → TextInput-Da1TYd57.js} +5 -5
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Bv-M13fy.js → Thumbnail-1LsaJ4_m.js} +3 -3
- package/dist/{TimeField-B83zAjAA.js → TimeField-i5ESA500.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BoIZG-dF.js → TimeInput-frnKZo1M.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-qjI_QrCz.js → Timer-DgQdZAEa.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJ_HUcek.js → Timestamp-SseS_qtf.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CFpOSuAr.js → Toast-tAq4S96S.js} +149 -20
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BtXMvoOA.js → ToggleButton-B6hBzeVl.js} +3 -3
- 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-DrkIayoF.js → Tokenizer-iFZAuIwu.js} +166 -155
- 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/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-ByLqPCP7.js → Tooltip-CxzlUVN0.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Rcz2zriX.js → TopNav-CcIayfsW.js} +6 -6
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dh0uAj2B.js → TreeList-Da_OKrv_.js} +4 -4
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-D2O3n477.js → Typeahead-BD6xXNKh.js} +6 -6
- package/dist/VelocityTracker-DgjmootV.js +165 -0
- package/dist/{animator-BGq5a6vT.js → animator-CEHDYTfQ.js} +29 -173
- package/dist/{batch-BhaAWUIt.js → batch-D2a2MsSW.js} +4 -19
- package/dist/bezier-Dko5MnTp.js +37 -0
- package/dist/{clickGuard-FrlnECMp.js → clickGuard-C3VmOLhI.js} +2 -1
- package/dist/composables/index.js +10 -10
- package/dist/composables-Bs0O_SRd.js +2548 -0
- package/dist/{context-jtpQfR6F.js → context-NKb_prrS.js} +2 -2
- package/dist/{edge-CJIswPTX.js → edge-tj-cLZYh.js} +1 -1
- package/dist/{edgeRide-Drk4V-MC.js → edgeRide-DcUqLXE2.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-Ct8M2d4q.d.ts → index-3qz8Qztx.d.ts} +5 -5
- package/dist/{index-DPklTi3o.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-DIkdln91.d.ts → index-BIqW3_GP.d.ts} +2 -2
- package/dist/{index-BR3MOBYd.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-BqQlY3fL.d.ts → index-Bu4R0WZA.d.ts} +2 -2
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-I64GPV90.d.ts → index-C6IcBhAn.d.ts} +3 -3
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-6fLylXRI.d.ts → index-Cw4CUe06.d.ts} +5 -5
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BFGtLIp8.d.ts → index-D14kSf-g.d.ts} +2 -2
- package/dist/{index-In41wHf3.d.ts → index-DGe-ApvN.d.ts} +4 -4
- package/dist/{index-D8l_CmL-.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-ZXrvTM3A.d.ts → index-DVS4jM-l.d.ts} +2 -2
- package/dist/{index-DPhQZXYw.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-BtqvPjAf.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-aHC2C89h.d.ts → index-Ea2V_FSK.d.ts} +4 -4
- package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
- package/dist/{index-DVX2jlTQ.d.ts → index-JE1HrzdJ.d.ts} +2 -2
- package/dist/{index-DCyYldjP.d.ts → index-T5bzxQ30.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-YKCx03zD.d.ts} +1 -1
- package/dist/{index-NOxH5oYj.d.ts → index-etx25Eq-.d.ts} +1 -1
- package/dist/{index-B9iQwixh.d.ts → index-m3DOxOw6.d.ts} +80 -69
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.js +102 -100
- 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-Bi7X7w_7.js} +3 -3
- package/dist/{lazyBottomSheet-BK8yIqcZ.js → lazyBottomSheet-BVZ1yH8g.js} +1 -1
- package/dist/{timing-CSHWQbTJ.js → linearEasing-ScK9LqAY.js} +30 -1
- package/dist/{useLayerMountTarget-BmZyeKWE.js → mount-7R_s-bHB.js} +15 -42
- package/dist/{bezier-Df-yGuNZ.js → presentation-Cy_yf56y.js} +2 -39
- package/dist/{pressFeedback-DVR5V1b6.js → pressFeedback-9dqGYjxv.js} +2 -2
- package/dist/{resolveMotion-CurhYTVC.js → resolveMotion-1cwESYvK.js} +202 -1
- package/dist/resolveSnapPoint-DdZyBkT4.js +717 -0
- package/dist/{flatTree-BB4yPMNL.js → sharedRealm-H1OrlP0V.js} +49 -1
- package/dist/{stillPointerGate-D3loXLh7.js → stillPointerGate-BbMABRyU.js} +1 -1
- package/dist/{themeTiming-BFDOPRjK.js → themeTiming-NUkH9HsU.js} +1 -1
- package/dist/{tooltipFocusRules-DvVDuqZI.js → tooltipFocusRules-CpUOvFEU.js} +1 -1
- package/dist/{tooltipTriggerRules-DyPyWOdP.js → tooltipTriggerRules-zN2xGd9K.js} +1 -1
- package/dist/{touchHold-CFJlSClt.js → touchHold-DXtx7npm.js} +1 -1
- package/dist/{triggerVariant-DG0VhG-X.js → triggerVariant-DPuBmzpp.js} +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/{useDismiss-C7_S7qUA.js → useDismiss-BKtyCwx4.js} +1 -1
- package/dist/{useInputStatusIcon-CGj9gMj8.js → useInputStatusIcon-BqV6YzTV.js} +1 -1
- package/dist/useLayerMountTarget-zwZQglr2.js +44 -0
- package/dist/{useListFocus-CkHfsZp0.js → useListFocus-Ccd_HU9T.js} +2 -23
- package/dist/{useMenuDrillIn-BQx6lQMz.js → useMenuDrillIn-Cj6MM77J.js} +1 -1
- 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/{useTooltip-Bsm43vbi.js → useTooltip-DvBKna-w.js} +3 -3
- package/dist/{useTouchHitArea-CNZyA18Y.js → useTouchHitArea-SY1ITxSJ.js} +2 -2
- package/dist/{useTruncationTooltip-wc6Lzz34.js → useTruncationTooltip-DNAii2Nv.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-Do0jOyEm.js → useTypeaheadMenuConfig-BT9Lwsu7.js} +1 -1
- package/package.json +1 -1
- package/styles/bottom-sheet.css +33 -8
- package/styles/power-search-sheet.css +205 -0
- package/styles.css +1 -0
- package/dist/PowerSearch-q3jvh5Tw.js +0 -2797
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { d as UIKIT_VELOCITY } from "./pressGesture-BzIBmKF2.js";
|
|
2
|
+
//#region src/gestures/VelocityTracker.ts
|
|
3
|
+
const ZERO = {
|
|
4
|
+
x: 0,
|
|
5
|
+
y: 0
|
|
6
|
+
};
|
|
7
|
+
const PAN_CURRENT_WEIGHT = UIKIT_VELOCITY.currentWeight.value;
|
|
8
|
+
const SCROLL_CURRENT_WEIGHT = UIKIT_VELOCITY.scrollReleaseWeight.value;
|
|
9
|
+
function blend(weight, current, previous) {
|
|
10
|
+
return {
|
|
11
|
+
x: weight * current.x + (1 - weight) * previous.x,
|
|
12
|
+
y: weight * current.y + (1 - weight) * previous.y
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
var VelocityTracker = class {
|
|
16
|
+
stillness;
|
|
17
|
+
/** The newest sample added, moved or not. */
|
|
18
|
+
newest = null;
|
|
19
|
+
/**
|
|
20
|
+
* The newest moved samples, oldest first (the touch-down counts as the
|
|
21
|
+
* first); the filter reads the last three.
|
|
22
|
+
*/
|
|
23
|
+
moved = [];
|
|
24
|
+
/** Moved samples since the touch-down. */
|
|
25
|
+
moves = 0;
|
|
26
|
+
/** The newest pan value, and the one before it. */
|
|
27
|
+
pan = ZERO;
|
|
28
|
+
previousPan = ZERO;
|
|
29
|
+
constructor(options = {}) {
|
|
30
|
+
this.stillness = options.stillness ?? UIKIT_VELOCITY.stillness.value;
|
|
31
|
+
}
|
|
32
|
+
/** Forget every sample (a new gesture). */
|
|
33
|
+
reset() {
|
|
34
|
+
this.newest = null;
|
|
35
|
+
this.moved = [];
|
|
36
|
+
this.moves = 0;
|
|
37
|
+
this.pan = ZERO;
|
|
38
|
+
this.previousPan = ZERO;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Record a position. Timestamps must not go backwards (an older sample is
|
|
42
|
+
* ignored), and a moved sample at the newest moved sample's timestamp
|
|
43
|
+
* replaces it. A sample at the newest position is not motion: it changes
|
|
44
|
+
* no velocity, unless `isMotion` says the contact moved anyway (a pinch's
|
|
45
|
+
* value holding while both fingers move, which reads as zero velocity for
|
|
46
|
+
* that interval).
|
|
47
|
+
*/
|
|
48
|
+
add(x, y, time, { isMotion = false } = {}) {
|
|
49
|
+
if (this.newest != null && time < this.newest.time) return;
|
|
50
|
+
this.newest = {
|
|
51
|
+
x,
|
|
52
|
+
y,
|
|
53
|
+
time
|
|
54
|
+
};
|
|
55
|
+
const last = this.moved[this.moved.length - 1];
|
|
56
|
+
if (last != null && x === last.x && y === last.y && !isMotion) return;
|
|
57
|
+
if (last != null && time === last.time) this.moved[this.moved.length - 1] = {
|
|
58
|
+
x,
|
|
59
|
+
y,
|
|
60
|
+
time
|
|
61
|
+
};
|
|
62
|
+
else {
|
|
63
|
+
this.moved.push({
|
|
64
|
+
x,
|
|
65
|
+
y,
|
|
66
|
+
time
|
|
67
|
+
});
|
|
68
|
+
if (this.moved.length > 3) this.moved.shift();
|
|
69
|
+
if (last != null) {
|
|
70
|
+
this.moves += 1;
|
|
71
|
+
this.previousPan = this.pan;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
this.pan = panVelocity(this.moved);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Re-base the samples by an offset (a recognizer whose value was set
|
|
78
|
+
* mid-gesture): every interval, the moved-sample count and the velocity
|
|
79
|
+
* carry on unchanged.
|
|
80
|
+
*/
|
|
81
|
+
offsetBy(dx, dy) {
|
|
82
|
+
const shift = (sample) => ({
|
|
83
|
+
...sample,
|
|
84
|
+
x: sample.x + dx,
|
|
85
|
+
y: sample.y + dy
|
|
86
|
+
});
|
|
87
|
+
this.newest = this.newest == null ? null : shift(this.newest);
|
|
88
|
+
this.moved = this.moved.map(shift);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Re-base the samples by a factor (a pinch whose scale was set
|
|
92
|
+
* mid-gesture): positions and velocities scale with it, and the
|
|
93
|
+
* moved-sample count carries on.
|
|
94
|
+
*/
|
|
95
|
+
scaleBy(factor) {
|
|
96
|
+
const scale = (sample) => ({
|
|
97
|
+
...sample,
|
|
98
|
+
x: sample.x * factor,
|
|
99
|
+
y: sample.y * factor
|
|
100
|
+
});
|
|
101
|
+
this.newest = this.newest == null ? null : scale(this.newest);
|
|
102
|
+
this.moved = this.moved.map(scale);
|
|
103
|
+
this.pan = {
|
|
104
|
+
x: this.pan.x * factor,
|
|
105
|
+
y: this.pan.y * factor
|
|
106
|
+
};
|
|
107
|
+
this.previousPan = {
|
|
108
|
+
x: this.previousPan.x * factor,
|
|
109
|
+
y: this.previousPan.y * factor
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** Record every sample in order. */
|
|
113
|
+
addSamples(samples) {
|
|
114
|
+
for (const sample of samples) this.add(sample.x, sample.y, sample.time);
|
|
115
|
+
}
|
|
116
|
+
/** The newest sample, if any. */
|
|
117
|
+
get lastSample() {
|
|
118
|
+
return this.newest;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The pan's velocity in px/s. Pass the release's event time to read the
|
|
122
|
+
* release velocity of a dragged surface: 0 after a rest longer than the
|
|
123
|
+
* stillness interval, or with fewer than two moved samples (AST-100 FR2).
|
|
124
|
+
*/
|
|
125
|
+
velocity(releaseTime) {
|
|
126
|
+
if (releaseTime != null && !this.releases(releaseTime)) return ZERO;
|
|
127
|
+
return this.pan;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A scrolling surface's release velocity in px/s (paging, a wheel): 0.25
|
|
131
|
+
* times the newest pan value plus 0.75 times the previous one, with the
|
|
132
|
+
* same stillness and two-moved-sample rules (AST-100 FR2).
|
|
133
|
+
*/
|
|
134
|
+
scrollVelocity(releaseTime) {
|
|
135
|
+
if (!this.releases(releaseTime)) return ZERO;
|
|
136
|
+
return blend(SCROLL_CURRENT_WEIGHT, this.pan, this.previousPan);
|
|
137
|
+
}
|
|
138
|
+
releases(releaseTime) {
|
|
139
|
+
const last = this.moved[this.moved.length - 1];
|
|
140
|
+
return this.moves >= 2 && last != null && releaseTime - last.time <= this.stillness;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* UIPanGestureRecognizer's filter over the newest moved samples: 0.2 x the
|
|
145
|
+
* newest interval's velocity + 0.8 x the previous one's; one interval so far
|
|
146
|
+
* is reported whole, as UIKit does.
|
|
147
|
+
*/
|
|
148
|
+
function panVelocity(moved) {
|
|
149
|
+
const n = moved.length;
|
|
150
|
+
if (n < 2) return ZERO;
|
|
151
|
+
const current = pairVelocity(moved[n - 2], moved[n - 1]);
|
|
152
|
+
if (n === 2) return current;
|
|
153
|
+
return blend(PAN_CURRENT_WEIGHT, current, pairVelocity(moved[n - 3], moved[n - 2]));
|
|
154
|
+
}
|
|
155
|
+
/** Instantaneous velocity (px/s) between two samples, zero across no time. */
|
|
156
|
+
function pairVelocity(start, end) {
|
|
157
|
+
const dt = end.time - start.time;
|
|
158
|
+
if (dt <= 0) return ZERO;
|
|
159
|
+
return {
|
|
160
|
+
x: (end.x - start.x) / dt * 1e3,
|
|
161
|
+
y: (end.y - start.y) / dt * 1e3
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
export { VelocityTracker as t };
|
|
@@ -1,178 +1,10 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as PROPERTIES, D as SAMPLE_TOLERANCE, E as SAMPLE_GRID_MS, O as solveSpring, _ as END_HOLD_MS, a as expand, b as IDENTITY_TEXT, c as inlineText, d as registerCustomProperty, f as round, g as DECAY_PROPERTIES, h as CHANNEL_OF, i as defaultPrefersReducedMotion, k as toSpring, l as isIdentityText, m as CHANNELS, o as expandList, p as sameShown, r as defaultIsCoarsePointer, s as format, t as resolveMotion, u as motionNow, v as END_RECHECK_MS, w as REDUCED_TRANSITION, x as MAX_DURATION_MS, y as IDENTITY } from "./resolveMotion-1cwESYvK.js";
|
|
2
2
|
import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as themeReducesMotion, i as registerReducedMotionCrossFade, r as reducedMotionCrossFade } from "./linearEasing-ScK9LqAY.js";
|
|
4
|
+
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve } from "./presentation-Cy_yf56y.js";
|
|
5
5
|
import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
|
|
6
6
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @file springParameters.ts
|
|
10
|
-
* @output The `Spring` model and the conversions between Apple's spring
|
|
11
|
-
* vocabularies (duration and bounce, response and damping ratio, mass,
|
|
12
|
-
* stiffness and damping), and UIKit's relative velocity
|
|
13
|
-
* @position Pure math under spring.ts, which re-exports all of it. See
|
|
14
|
-
* spring.ts for the sources of each conversion.
|
|
15
|
-
*/
|
|
16
|
-
const TAU = 2 * Math.PI;
|
|
17
|
-
function assertPositiveFinite(name, value) {
|
|
18
|
-
if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* SwiftUI's `Spring(duration:bounce:)` and UIKit's
|
|
22
|
-
* `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
|
|
23
|
-
* clamped to SwiftUI's documented range (−1, 1].
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```
|
|
27
|
-
* springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
function springFromDurationBounce({ duration, bounce }) {
|
|
31
|
-
assertPositiveFinite("duration", duration);
|
|
32
|
-
if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
|
|
33
|
-
const b = Math.min(1, Math.max(-.999999, bounce));
|
|
34
|
-
return {
|
|
35
|
-
mass: 1,
|
|
36
|
-
stiffness: (TAU / duration) ** 2,
|
|
37
|
-
damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* SwiftUI's `Spring(response:dampingRatio:)` and
|
|
42
|
-
* `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
|
|
43
|
-
* kept, as SwiftUI keeps it for this initializer.
|
|
44
|
-
*/
|
|
45
|
-
function springFromResponse({ response, dampingRatio }) {
|
|
46
|
-
assertPositiveFinite("response", response);
|
|
47
|
-
if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
|
|
48
|
-
const omega = TAU / response;
|
|
49
|
-
return {
|
|
50
|
-
mass: 1,
|
|
51
|
-
stiffness: omega * omega,
|
|
52
|
-
damping: 2 * dampingRatio * omega
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
|
|
57
|
-
* / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
|
|
58
|
-
* an overdamped spring is treated as critically damped unless
|
|
59
|
-
* `allowOverdamping` is set: "a value of false specifies that such cases
|
|
60
|
-
* should instead be treated as critically damped".
|
|
61
|
-
*/
|
|
62
|
-
function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
|
|
63
|
-
assertPositiveFinite("mass", mass);
|
|
64
|
-
assertPositiveFinite("stiffness", stiffness);
|
|
65
|
-
if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
|
|
66
|
-
const critical = 2 * Math.sqrt(stiffness * mass);
|
|
67
|
-
return {
|
|
68
|
-
mass,
|
|
69
|
-
stiffness,
|
|
70
|
-
damping: allowOverdamping ? damping : Math.min(damping, critical)
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/** Undamped angular frequency ω₀ = √(k/m), rad/s. */
|
|
74
|
-
function naturalFrequency(spring) {
|
|
75
|
-
return Math.sqrt(spring.stiffness / spring.mass);
|
|
76
|
-
}
|
|
77
|
-
/** Damping ratio ζ = c / (2·√(k·m)). */
|
|
78
|
-
function dampingRatioOf(spring) {
|
|
79
|
-
return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Normalizes a description to the physical `Spring`. A physical description
|
|
83
|
-
* gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
|
|
84
|
-
* SwiftUI and Core Animation do by default.
|
|
85
|
-
*/
|
|
86
|
-
function toSpring(description) {
|
|
87
|
-
if ("stiffness" in description) return springFromPhysics(description);
|
|
88
|
-
if ("bounce" in description) return springFromDurationBounce(description);
|
|
89
|
-
return springFromResponse(description);
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/motion/spring.ts
|
|
93
|
-
/**
|
|
94
|
-
* Closed-form solution of the spring released at `from` with
|
|
95
|
-
* `initialVelocity` (units/s), heading for `to`.
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```
|
|
99
|
-
* const curve = solveSpring(springFromDurationBounce({duration: 0.5, bounce: 0}), {from: 0, to: 300});
|
|
100
|
-
* curve.value(0.1); // px after 100 ms
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
function solveSpring(spring, { from, to, velocity: initialVelocity = 0 }) {
|
|
104
|
-
const omega0 = naturalFrequency(spring);
|
|
105
|
-
const zeta = dampingRatioOf(spring);
|
|
106
|
-
const x0 = from - to;
|
|
107
|
-
const v0 = initialVelocity;
|
|
108
|
-
let displacement;
|
|
109
|
-
let speed;
|
|
110
|
-
let envelope;
|
|
111
|
-
let envelopePeak = 0;
|
|
112
|
-
if (zeta < .999999) {
|
|
113
|
-
const decay = zeta * omega0;
|
|
114
|
-
const omegaD = omega0 * Math.sqrt(1 - zeta * zeta);
|
|
115
|
-
const a = x0;
|
|
116
|
-
const b = (v0 + decay * x0) / omegaD;
|
|
117
|
-
const bv = (decay * v0 + omega0 * omega0 * x0) / omegaD;
|
|
118
|
-
displacement = (t) => Math.exp(-decay * t) * (a * Math.cos(omegaD * t) + b * Math.sin(omegaD * t));
|
|
119
|
-
speed = (t) => Math.exp(-decay * t) * (v0 * Math.cos(omegaD * t) - bv * Math.sin(omegaD * t));
|
|
120
|
-
const amplitude = Math.abs(a) + Math.abs(b);
|
|
121
|
-
envelope = (t) => amplitude * Math.exp(-decay * t);
|
|
122
|
-
} else if (zeta <= 1.000001) {
|
|
123
|
-
const b = v0 + omega0 * x0;
|
|
124
|
-
displacement = (t) => (x0 + b * t) * Math.exp(-omega0 * t);
|
|
125
|
-
speed = (t) => (v0 - omega0 * b * t) * Math.exp(-omega0 * t);
|
|
126
|
-
const absA = Math.abs(x0);
|
|
127
|
-
const absB = Math.abs(b);
|
|
128
|
-
envelope = (t) => (absA + absB * t) * Math.exp(-omega0 * t);
|
|
129
|
-
envelopePeak = absB > 0 ? Math.max(0, 1 / omega0 - absA / absB) : 0;
|
|
130
|
-
} else {
|
|
131
|
-
const root = omega0 * Math.sqrt(zeta * zeta - 1);
|
|
132
|
-
const r1 = -zeta * omega0 + root;
|
|
133
|
-
const r2 = -zeta * omega0 - root;
|
|
134
|
-
const c1 = (v0 - r2 * x0) / (r1 - r2);
|
|
135
|
-
const c2 = x0 - c1;
|
|
136
|
-
displacement = (t) => c1 * Math.exp(r1 * t) + c2 * Math.exp(r2 * t);
|
|
137
|
-
speed = (t) => r1 * c1 * Math.exp(r1 * t) + r2 * c2 * Math.exp(r2 * t);
|
|
138
|
-
const absC1 = Math.abs(c1);
|
|
139
|
-
const absC2 = Math.abs(c2);
|
|
140
|
-
envelope = (t) => absC1 * Math.exp(r1 * t) + absC2 * Math.exp(r2 * t);
|
|
141
|
-
}
|
|
142
|
-
const settleTime = (threshold) => {
|
|
143
|
-
if (!(threshold > 0)) return Infinity;
|
|
144
|
-
if (zeta === 0) return x0 === 0 && v0 === 0 ? 0 : Infinity;
|
|
145
|
-
const start = envelopePeak;
|
|
146
|
-
if (envelope(start) <= threshold) return 0;
|
|
147
|
-
if (zeta < .999999) {
|
|
148
|
-
const amplitude = envelope(0);
|
|
149
|
-
return Math.log(amplitude / threshold) / (zeta * omega0);
|
|
150
|
-
}
|
|
151
|
-
let lo = start;
|
|
152
|
-
let hi = Math.max(start, 1 / omega0);
|
|
153
|
-
while (envelope(hi) > threshold) {
|
|
154
|
-
lo = hi;
|
|
155
|
-
hi *= 2;
|
|
156
|
-
if (hi > 1e6) return Infinity;
|
|
157
|
-
}
|
|
158
|
-
for (let i = 0; i < 100 && hi - lo > 1e-12; i++) {
|
|
159
|
-
const mid = (lo + hi) / 2;
|
|
160
|
-
if (envelope(mid) > threshold) lo = mid;
|
|
161
|
-
else hi = mid;
|
|
162
|
-
}
|
|
163
|
-
return hi;
|
|
164
|
-
};
|
|
165
|
-
return {
|
|
166
|
-
spring,
|
|
167
|
-
from,
|
|
168
|
-
to,
|
|
169
|
-
initialVelocity,
|
|
170
|
-
value: (t) => to + displacement(t),
|
|
171
|
-
velocity: (t) => speed(t),
|
|
172
|
-
settleTime
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
//#endregion
|
|
7
|
+
import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
|
|
176
8
|
//#region src/motion/engine/taskClock.ts
|
|
177
9
|
/** The task the current calls from rest are made in, until it ends. */
|
|
178
10
|
let openTask = null;
|
|
@@ -2820,6 +2652,30 @@ function initLateEngineState(engine) {
|
|
|
2820
2652
|
}
|
|
2821
2653
|
//#endregion
|
|
2822
2654
|
//#region src/motion/animator.ts
|
|
2655
|
+
const shared = /* @__PURE__ */ new WeakMap();
|
|
2656
|
+
/**
|
|
2657
|
+
* The one animator for `element` (and `options.pseudoElement`), created on
|
|
2658
|
+
* first use. Code that animates one element from several places (a swipe on
|
|
2659
|
+
* x, a removal on y) shares it, so their curves compose in one `translate`
|
|
2660
|
+
* track and retargeting one axis leaves the other on its curve; two
|
|
2661
|
+
* animators on one element would overwrite each other. `options` apply
|
|
2662
|
+
* when it is created; later calls get the same animator. Never `attach` it
|
|
2663
|
+
* elsewhere or `dispose` it: it lives as long as the element.
|
|
2664
|
+
*/
|
|
2665
|
+
function animatorFor(element, options = {}) {
|
|
2666
|
+
let byPseudo = shared.get(element);
|
|
2667
|
+
if (byPseudo == null) {
|
|
2668
|
+
byPseudo = /* @__PURE__ */ new Map();
|
|
2669
|
+
shared.set(element, byPseudo);
|
|
2670
|
+
}
|
|
2671
|
+
const key = options.pseudoElement ?? "";
|
|
2672
|
+
let animator = byPseudo.get(key);
|
|
2673
|
+
if (animator == null) {
|
|
2674
|
+
animator = createMotionEngine(element, options);
|
|
2675
|
+
byPseudo.set(key, animator);
|
|
2676
|
+
}
|
|
2677
|
+
return animator;
|
|
2678
|
+
}
|
|
2823
2679
|
/**
|
|
2824
2680
|
* Creates an animator for `element` (or for an element attached later).
|
|
2825
2681
|
*
|
|
@@ -2865,4 +2721,4 @@ function createMotionEngine(element, options = {}) {
|
|
|
2865
2721
|
return engine.animator;
|
|
2866
2722
|
}
|
|
2867
2723
|
//#endregion
|
|
2868
|
-
export {
|
|
2724
|
+
export { createMotionEngine as n, SETTLE_THRESHOLD as r, animatorFor as t };
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-
|
|
5
|
-
//#region src/motion/linearEasing.ts
|
|
6
|
-
/**
|
|
7
|
-
* @file linearEasing.ts
|
|
8
|
-
* @input A duration and the fraction of a move done at each time
|
|
9
|
-
* @output Exports `linearEasing`, that curve as CSS `linear()` easing text,
|
|
10
|
-
* and `sampleCount`, how many samples cover a duration at 60 per second
|
|
11
|
-
* @position Pure math under the motion helpers; no DOM, no React
|
|
12
|
-
*/
|
|
13
|
-
/** Samples per second of a sampled curve: one per frame at 60 Hz. */
|
|
14
|
-
const SAMPLES_PER_SECOND = 60;
|
|
15
|
-
/** How many samples cover `durationMs`, both ends included: at least 2. */
|
|
16
|
-
function sampleCount(durationMs) {
|
|
17
|
-
return Math.max(2, Math.ceil(durationMs / 1e3 * SAMPLES_PER_SECOND) + 1);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
1
|
+
import { a as sharedWeakMap, i as sharedState, o as sharedWeakSet, r as sharedMap } from "./sharedRealm-H1OrlP0V.js";
|
|
2
|
+
import { a as themeReducesMotion, n as sampleCount, r as reducedMotionCrossFade } from "./linearEasing-ScK9LqAY.js";
|
|
3
|
+
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-Cy_yf56y.js";
|
|
4
|
+
import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-NUkH9HsU.js";
|
|
20
5
|
//#region src/motion/layout/glides.ts
|
|
21
6
|
/**
|
|
22
7
|
* @file glides.ts
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/motion/bezier.ts
|
|
2
|
+
/** The timing function for `points`: maps time progress to eased progress. */
|
|
3
|
+
function cubicBezier([x1, y1, x2, y2]) {
|
|
4
|
+
const cx = 3 * x1;
|
|
5
|
+
const bx = 3 * (x2 - x1) - cx;
|
|
6
|
+
const ax = 1 - cx - bx;
|
|
7
|
+
const cy = 3 * y1;
|
|
8
|
+
const by = 3 * (y2 - y1) - cy;
|
|
9
|
+
const ay = 1 - cy - by;
|
|
10
|
+
const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
|
|
11
|
+
const sampleY = (t) => ((ay * t + by) * t + cy) * t;
|
|
12
|
+
const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
|
|
13
|
+
const solveT = (x) => {
|
|
14
|
+
let t = x;
|
|
15
|
+
for (let i = 0; i < 8; i++) {
|
|
16
|
+
const error = sampleX(t) - x;
|
|
17
|
+
if (Math.abs(error) < 1e-7) return t;
|
|
18
|
+
const slope = slopeX(t);
|
|
19
|
+
if (Math.abs(slope) < 1e-6) break;
|
|
20
|
+
t -= error / slope;
|
|
21
|
+
}
|
|
22
|
+
let lo = 0;
|
|
23
|
+
let hi = 1;
|
|
24
|
+
t = x;
|
|
25
|
+
for (let i = 0; i < 60; i++) {
|
|
26
|
+
const value = sampleX(t);
|
|
27
|
+
if (Math.abs(value - x) < 1e-7) break;
|
|
28
|
+
if (value < x) lo = t;
|
|
29
|
+
else hi = t;
|
|
30
|
+
t = (lo + hi) / 2;
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
};
|
|
34
|
+
return (x) => x <= 0 ? 0 : x >= 1 ? 1 : sampleY(solveT(x));
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { cubicBezier as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as sharedState, n as sharedKey, t as realmValue } from "./sharedRealm-H1OrlP0V.js";
|
|
2
|
+
import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
|
|
2
3
|
//#region src/utils/hapticSwitch.ts
|
|
3
4
|
/**
|
|
4
5
|
* @file privateAttributes/hapticSwitch.stylex.ts
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-Dtjg-nkm.js";
|
|
2
|
-
import { t as usePressFeedback } from "../usePressFeedback-
|
|
3
|
-
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-
|
|
4
|
-
import { t as useDismiss } from "../useDismiss-
|
|
5
|
-
import { n as useLayer } from "../tooltipTriggerRules-
|
|
2
|
+
import { t as usePressFeedback } from "../usePressFeedback-DHdmAsMp.js";
|
|
3
|
+
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-zwZQglr2.js";
|
|
4
|
+
import { t as useDismiss } from "../useDismiss-BKtyCwx4.js";
|
|
5
|
+
import { n as useLayer } from "../tooltipTriggerRules-zN2xGd9K.js";
|
|
6
6
|
import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
|
|
7
7
|
import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
|
|
8
8
|
import { t as characterCount } from "../characters-wTnzjkkR.js";
|
|
9
9
|
import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
|
|
10
|
-
import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as useAnimatedLayout } from "../useAnimatedLayout-DC2l3WrE.js";
|
|
10
|
+
import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-Bs0O_SRd.js";
|
|
11
|
+
import { t as useAnimatedLayout } from "../useAnimatedLayout-DWWc31RR.js";
|
|
13
12
|
import { t as useAnnounce } from "../announce-GU01Oix2.js";
|
|
14
13
|
import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
|
|
15
14
|
import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-7GTcK8ep.js";
|
|
16
|
-
import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-
|
|
15
|
+
import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-CuMzkXgD.js";
|
|
17
16
|
import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
|
|
18
17
|
import { t as useCombobox } from "../useCombobox-BqkTY3bw.js";
|
|
19
18
|
import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
|
|
@@ -25,9 +24,10 @@ import { t as useFocusTrap } from "../useFocusTrap-BD9POtMp.js";
|
|
|
25
24
|
import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
|
|
26
25
|
import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-hv4NYIUi.js";
|
|
27
26
|
import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
|
|
28
|
-
import { t as useInputStatusIcon } from "../useInputStatusIcon-
|
|
27
|
+
import { t as useInputStatusIcon } from "../useInputStatusIcon-BqV6YzTV.js";
|
|
29
28
|
import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
30
|
-
import {
|
|
29
|
+
import { t as useListFocus } from "../useListFocus-Ccd_HU9T.js";
|
|
30
|
+
import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-DcwVUsQO.js";
|
|
31
31
|
import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
|
|
32
32
|
import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-Bzvlstgc.js";
|
|
33
33
|
import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";
|