@astryx-vue/core 0.32.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-C5pc5nQN.js → AlertDialog-JmxbMkeV.js} +8 -8
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-B7dkDyY8.js → AppShell-mWlY4pE3.js} +4 -6
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CYW9ZTD3.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-BNrs2Ptl.js → Banner-BJETFZr7.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-Z92IvLBU.js → BottomSheet-C6pQBvnU.js} +10 -38
- package/dist/{BottomSheet-CAJJ8cR5.js → BottomSheet-C_LoskZt.js} +3 -3
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CnvaPn8M.js → Breadcrumbs-D05OmNfd.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CzMWqCpJ.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/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BjyedZ0Y.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-CJr2RIyc.js → Chat-D7Q2z9W2.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BrbQTrL-.js → CheckboxInput-Cxtmdymo.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CrAzFR4x.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.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-pWPw1-iu.js → CodeBlock-Bgxy15iD.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf5zttC-.js} +2 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DnbvnT4c.js → CommandPalette-CniaCqex.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWQbuovE.js → ComplexSelector-DYeYZKON.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DfoShDVW.js → ContextMenu-CLCgJG0C.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D9_QsZMj.js → DateInput-BmEbQA1z.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-8P8i8aVI.js → DateRangeInput-CoA1PuGz.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-C2XWslHp.js → DateTimeInput-CL0sp0ES.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Cet6PTnf.js → Dialog-C46xHdDO.js} +1 -1
- package/dist/{Dialog-B1Hlr0x_.js → Dialog-uzq24bX_.js} +2 -2
- package/dist/{DialogHeader-BiHQct4G.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-Bm3l7Dey.js → Drawer-DfhhdBMZ.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BaRXEFLa.js → DropdownMenu-BWgt12MZ.js} +8 -8
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CXDlpIdI.js → EmptyState-C8WQltQk.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-njr7AUcW.js → Field-CrnwM-2A.js} +1 -1
- package/dist/{FieldInfoTip-DLqZykVm.js → FieldInfoTip-DqQP1T-d.js} +1 -1
- package/dist/{FieldLabel-CyL5D1lu.js → FieldLabel-CLxclKT2.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CtqZSRdh.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-BXTbW_px.js → Heading-jYno4L3t.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-zVUEeqF2.js → HoverCard-D_6idU4r.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CoZFp0CP.js → IconButton-B6m42AlL.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Eg2IGZJw.js → InfoTip-CUkTHca2.js} +2 -2
- package/dist/{InputClearButton-CBsL91my.js → InputClearButton-s_MEW25n.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BE83-MCX.js → InputGroup-42PbUmg-.js} +1 -1
- package/dist/{Item-C9u_kQUO.js → Item-C9Cs0Jqr.js} +1 -1
- package/dist/{LayerContentBoundary-DmRI6Bg0.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-5PtYb0r4.js → Lightbox-Bur4pvRo.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BzXVGE7G.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.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-HDZPj9Vw.js → Markdown-Baq5r2Mp.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CrUf5UPQ.js → MobileNavToggle-BV3fmVmO.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DzpufGyj.js → MoreMenu-COSDjYyl.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BS6wxlx4.js → MultiSelector-eJSx3iZR.js} +8 -8
- package/dist/{NavDisclosure-BM0dJGLA.js → NavDisclosure-B8G8t325.js} +1 -1
- package/dist/{NavHeadingSurface-CuQnoV_V.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-fXsoJKjW.js → NavMenu-C6OU4a5Z.js} +3 -3
- package/dist/{NavMenuItem-BKY6eRkz.js → NavMenuItem-BZuajqYL.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-Ueted2wi.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-KpebInhH.js → OverflowList-DS7cmNsr.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BliQ5RGN.js → Pagination-BWPJfO4_.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DXfXGrWG.js → Popover-DnrZk22Y.js} +8 -8
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CmJKFEEu.js → PowerSearch-CDwASKYp.js} +26 -26
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dj1ucJxG.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-BLOjBRrM.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-CHxTpBva.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-OhIdsI8A.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-CcdDU-hP.js → SideNav-DnoR_4ml.js} +9 -11
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DjbWQ1wn.js → Slider-DaHQhbA7.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bta_bpaZ.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-D4ojsj_l.js → Switch-B8HRxp3u.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-S99zXoRN.js → TabList-BOQ0bvE3.js} +3 -3
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-3NTjPpHc.js → Table-CoWGEhzQ.js} +11 -13
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DNKNlENe.js → Text-DqiV40AF.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DnSmL0A8.js → TextArea-Vrx7Os5P.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-DyHEMYld.js → TextInput-DOeUROX8.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-D8GlIdNm.js → Thumbnail-BF53Z6jm.js} +3 -3
- package/dist/{TimeField-ADeT0OA1.js → TimeField-CkGXOHTG.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C1gzJGHk.js → TimeInput-DCksf1di.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DhI2oV5L.js → Timer-DDrODKow.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CTZSVsmd.js → Timestamp-CCzREXNN.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DUqDW07c.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-BMBH2tmu.js → ToggleButton-DAW-pV4r.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-C0CdEzQT.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-CEyd_iFa.js → Tooltip-DhV7MkwU.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-BObecD_X.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.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-C_0dTmaf.js → Typeahead-Dowds5Z-.js} +6 -6
- package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
- package/dist/{accessibleName-Cq7krRE-.js → accessibleName-CINO01Ek.js} +1 -1
- package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
- package/dist/{assertOptions-Km_9Y5rI.js → assertOptions-BCEzojGr.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -12
- package/dist/{composables-kHI1dSq2.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-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-Bxus0zuz.d.ts → index-B-Z4GL8g.d.ts} +11 -11
- package/dist/{index-CHLZPpjQ.d.ts → index-B44fLswd.d.ts} +1 -1
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-Cm36VS1A.d.ts → index-C3JmGujU.d.ts} +3 -3
- 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-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-JE1HrzdJ.d.ts → index-CUuUoX3h.d.ts} +3 -3
- package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-BpFzfJbo.d.ts → index-CdvmnNMH.d.ts} +2 -2
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-BIiG1CF_.d.ts → index-CilCxEvD.d.ts} +4 -4
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-DIw5D3zj.d.ts → index-D8l_CmL-.d.ts} +2 -2
- package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
- package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
- package/dist/{index-BWWirRm3.d.ts → index-DHUCHxn2.d.ts} +1 -1
- package/dist/{index-B83v2qNb.d.ts → index-DIkdln91.d.ts} +3 -3
- package/dist/{index-CdRxeyhB.d.ts → index-DLE-sASO.d.ts} +1 -1
- package/dist/{index-CO9GW-ik.d.ts → index-DPklTi3o.d.ts} +1 -1
- package/dist/{index-Cj-Ob5jw.d.ts → index-DoYrlaEI.d.ts} +10 -10
- package/dist/{index-DGe-ApvN.d.ts → index-In41wHf3.d.ts} +4 -4
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-ILJ7sKx3.d.ts → index-QC9FDUDA.d.ts} +4 -4
- package/dist/{index-4m5X7IYX.d.ts → index-Rz4jwv4Q.d.ts} +96 -96
- package/dist/{index-DogWVRJi.d.ts → index-ZXrvTM3A.d.ts} +2 -2
- package/dist/{index-DAEgHJTK.d.ts → index-aHC2C89h.d.ts} +4 -4
- 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-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +36 -36
- package/dist/index.js +103 -103
- package/dist/{batch-DPlrpYU6.js → landing-DrnLUanQ.js} +812 -4
- package/dist/{layerDepth-8jb4An1z.js → layerDepth-BdZX0xSD.js} +1 -1
- package/dist/{lazyBottomSheet-CNYA5qOy.js → lazyBottomSheet-BUXYsz28.js} +1 -1
- package/dist/linearEasing-BxWjPql6.js +282 -0
- 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-CpzpYNqy.js → stillPointerGate-BChxtcd6.js} +1 -1
- package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
- package/dist/{tooltipFocusRules-BfnTnTpn.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
- package/dist/{tooltipTriggerRules-BRdKWVzo.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-DkwiskdE.js → useCombobox-BYRrwLe-.js} +1 -1
- package/dist/{useDismiss-fhWaGqY8.js → useDismiss-Qq0hUJoO.js} +1 -1
- package/dist/{useFocusTrap-DT2UCZd-.js → useFocusTrap-CX-qEF-G.js} +1 -1
- package/dist/{useInputStatusIcon-B1i0sFKu.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
- package/dist/{useMenuPress-CBtTaYOS.js → useMenuPress-DDvcJNRd.js} +2 -2
- package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
- package/dist/{useResizable-AfPBAq5c.js → useResizable-BIaZZDJ2.js} +411 -85
- package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
- package/dist/{useTooltip-llyJd1q6.js → useTooltip-CgJi5QQW.js} +4 -4
- package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
- package/dist/{useTouchTriggerInternal-DzsFiDjb.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
- package/dist/{useTruncationTooltip-BFm7XgvO.js → useTruncationTooltip-x1cQd8of.js} +3 -3
- package/dist/{useTypeahead-8Y5m41VA.js → useTypeahead-CZuT8Niw.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-Cy-gOjVd.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
- package/package.json +1 -1
- package/styles/resize-handle.css +2 -0
- 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/linearEasing-BiRVC8Mq.js +0 -98
- package/dist/resizableChannel-LElsNkSY.js +0 -33
- package/dist/resolveMotion-B9NDPeUz.js +0 -508
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
//#region src/motion/engine/constants.ts
|
|
2
|
+
const PROPERTIES = [
|
|
3
|
+
"x",
|
|
4
|
+
"y",
|
|
5
|
+
"rotate",
|
|
6
|
+
"scaleX",
|
|
7
|
+
"scaleY",
|
|
8
|
+
"opacity"
|
|
9
|
+
];
|
|
10
|
+
/** The axes momentum moves: `decay` takes only these (DR2, DEC-2). */
|
|
11
|
+
const DECAY_PROPERTIES = ["x", "y"];
|
|
12
|
+
const IDENTITY = {
|
|
13
|
+
x: 0,
|
|
14
|
+
y: 0,
|
|
15
|
+
rotate: 0,
|
|
16
|
+
scaleX: 1,
|
|
17
|
+
scaleY: 1,
|
|
18
|
+
opacity: 1
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Keyframes are added until linear interpolation is within this: a quarter of
|
|
22
|
+
* a device pixel (this quarter of a CSS pixel, divided by the device pixel
|
|
23
|
+
* ratio where it is above 1), a twentieth of a degree, a 2000th of the size,
|
|
24
|
+
* about one step of an 8-bit alpha. Every one is below what a moving element
|
|
25
|
+
* can show.
|
|
26
|
+
*/
|
|
27
|
+
const SAMPLE_TOLERANCE = {
|
|
28
|
+
x: .25,
|
|
29
|
+
y: .25,
|
|
30
|
+
rotate: .05,
|
|
31
|
+
scaleX: 5e-4,
|
|
32
|
+
scaleY: 5e-4,
|
|
33
|
+
opacity: .004
|
|
34
|
+
};
|
|
35
|
+
/** Keyframes start on this grid (ms) and are split where the curve needs it. */
|
|
36
|
+
const SAMPLE_GRID_MS = 1e3 / 30;
|
|
37
|
+
/** A curve that has not settled by then (an undamped spring) snaps. */
|
|
38
|
+
const MAX_DURATION_MS = 3e4;
|
|
39
|
+
/**
|
|
40
|
+
* How close a spring's target and a value must be to count as the same, in
|
|
41
|
+
* the property's own units. Only float rounding separates two ways of
|
|
42
|
+
* computing one value, far below anything the screen shows.
|
|
43
|
+
*/
|
|
44
|
+
const SAME_VALUE = 1e-6;
|
|
45
|
+
/** Above this many keyframes the tolerance is relaxed. */
|
|
46
|
+
const MAX_KEYFRAMES = 1200;
|
|
47
|
+
/**
|
|
48
|
+
* The keyframes hold the end state this long after a curve ends. An engine
|
|
49
|
+
* whose compositor ends an animation while the main thread is blocked falls
|
|
50
|
+
* back to the value its main thread last committed, the curve's start
|
|
51
|
+
* (WebKit on Linux); the hold keeps the end state on screen through any such
|
|
52
|
+
* block. It only stretches the last keyframe. The main thread retires the
|
|
53
|
+
* animation as soon as it runs after the curve's end.
|
|
54
|
+
*
|
|
55
|
+
* Why a tail inside the curve's own animation, with a bound (measured Oct 24
|
|
56
|
+
* 2026; do not replace it without these proofs):
|
|
57
|
+
* - WebKit on Linux (WebKitGTK and WPE) ignores `fill` on its compositor:
|
|
58
|
+
* a 400 ms move that ends during a 1 s main-thread block snaps back to the
|
|
59
|
+
* block-start position 13 ms after its end, with `fill: forwards` or with
|
|
60
|
+
* no fill, and holds with this tail. iOS 26.2 Mobile Safari holds the end
|
|
61
|
+
* in all three forms, so there the tail is unneeded but harmless (measured
|
|
62
|
+
* Oct 25 2026). The browser proof "a spring that ends inside the block
|
|
63
|
+
* keeps showing its end state" catches it.
|
|
64
|
+
* - A separate static animation of the end state under the curve would hold
|
|
65
|
+
* it without a bound, but two animations on one property push Chromium to
|
|
66
|
+
* run the curve on the main thread: the 1 s block proof moved in 0 of 57
|
|
67
|
+
* frames, the start-before-a-block proof failed, and seeking the curve
|
|
68
|
+
* broke.
|
|
69
|
+
*/
|
|
70
|
+
const END_HOLD_MS = 6e4;
|
|
71
|
+
/**
|
|
72
|
+
* The soonest a running animation's end is looked for again, ms: a frame at
|
|
73
|
+
* 60 Hz. WebKit moves an animation's currentTime once per frame, so a look
|
|
74
|
+
* within a frame reads the frame's time, a fraction of a ms short of the end,
|
|
75
|
+
* and a timer for that fraction would fire again before anything moved.
|
|
76
|
+
*/
|
|
77
|
+
const END_RECHECK_MS = 1e3 / 60;
|
|
78
|
+
const CHANNELS = {
|
|
79
|
+
translate: ["x", "y"],
|
|
80
|
+
rotate: ["rotate"],
|
|
81
|
+
scale: ["scaleX", "scaleY"],
|
|
82
|
+
opacity: ["opacity"]
|
|
83
|
+
};
|
|
84
|
+
const CHANNEL_OF = {
|
|
85
|
+
x: "translate",
|
|
86
|
+
y: "translate",
|
|
87
|
+
rotate: "rotate",
|
|
88
|
+
scaleX: "scale",
|
|
89
|
+
scaleY: "scale",
|
|
90
|
+
opacity: "opacity"
|
|
91
|
+
};
|
|
92
|
+
/** What `inlineText` writes for each channel at identity. */
|
|
93
|
+
const IDENTITY_TEXT = {
|
|
94
|
+
translate: "none",
|
|
95
|
+
rotate: "none",
|
|
96
|
+
scale: "none",
|
|
97
|
+
opacity: "1"
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The transition `decay` hands a Reduce Motion transition curve to: under
|
|
101
|
+
* Reduce Motion `animate` plays no spring (a cross-fade, or at once), so the
|
|
102
|
+
* spring itself is never solved.
|
|
103
|
+
*/
|
|
104
|
+
const REDUCED_TRANSITION = { spring: {
|
|
105
|
+
duration: .5,
|
|
106
|
+
bounce: 0
|
|
107
|
+
} };
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/motion/engine/cssValues.ts
|
|
110
|
+
function round(value, digits) {
|
|
111
|
+
return Number(value.toFixed(digits));
|
|
112
|
+
}
|
|
113
|
+
function format(channel, value) {
|
|
114
|
+
switch (channel) {
|
|
115
|
+
case "translate": return `${round(value("x"), 3)}px ${round(value("y"), 3)}px`;
|
|
116
|
+
case "rotate": return `${round(value("rotate"), 4)}deg`;
|
|
117
|
+
case "scale": return `${round(value("scaleX"), 5)} ${round(value("scaleY"), 5)}`;
|
|
118
|
+
case "opacity": return `${round(Math.min(1, Math.max(0, value("opacity"))), 4)}`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Whether a computed value shows `expected` (`format`'s text). An unset or
|
|
123
|
+
* `none` value is the channel's identity. One value of a two-value channel
|
|
124
|
+
* stands for both (scale), or for x with y at 0 (translate).
|
|
125
|
+
*/
|
|
126
|
+
function sameShown(channel, shown, expected) {
|
|
127
|
+
const numbers = (text) => {
|
|
128
|
+
const list = ((text === "" || text === "none" ? IDENTITY_TEXT[channel] : text).match(/-?\d*\.?\d+(?:e-?\d+)?/g) ?? []).map(Number);
|
|
129
|
+
if (channel === "translate") return [list[0] ?? 0, list[1] ?? 0];
|
|
130
|
+
if (channel === "scale") return [list[0] ?? 1, list[1] ?? list[0] ?? 1];
|
|
131
|
+
return list.length > 0 ? list : [channel === "opacity" ? 1 : 0];
|
|
132
|
+
};
|
|
133
|
+
const a = numbers(shown);
|
|
134
|
+
const b = numbers(expected);
|
|
135
|
+
return a.length === b.length && a.every((value, i) => Math.abs(value - b[i]) < .001);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The inline text for a channel: `format`, except that an identity transform
|
|
139
|
+
* is written `none`. Any other value, `translate: 0px 0px` included, makes
|
|
140
|
+
* the element the containing block of its `position: fixed` descendants and
|
|
141
|
+
* a stacking context, so a motion back to identity would leave a fixed child
|
|
142
|
+
* moved with its parent; Mobile Safari also lets no finger scroll a list
|
|
143
|
+
* inside an element left at `scale: 1`. At rest the identity leaves the
|
|
144
|
+
* element entirely when its stylesheet agrees (`releaseIdentity`).
|
|
145
|
+
*/
|
|
146
|
+
function inlineText(channel, value) {
|
|
147
|
+
const at = (property, identity, digits) => round(value(property), digits) === identity;
|
|
148
|
+
switch (channel) {
|
|
149
|
+
case "translate": return at("x", 0, 3) && at("y", 0, 3) ? "none" : format(channel, value);
|
|
150
|
+
case "rotate": return at("rotate", 0, 4) ? "none" : format(channel, value);
|
|
151
|
+
case "scale": return at("scaleX", 1, 5) && at("scaleY", 1, 5) ? "none" : format(channel, value);
|
|
152
|
+
case "opacity": return format(channel, value);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/** Whether a computed value (or an unset one) is the channel's identity. */
|
|
156
|
+
function isIdentityText(channel, text) {
|
|
157
|
+
const value = text.trim();
|
|
158
|
+
if (value === "" || value === "none") return true;
|
|
159
|
+
const numbers = value.split(/\s+/).map((part) => Number.parseFloat(part));
|
|
160
|
+
if (numbers.some((number) => !Number.isFinite(number))) return false;
|
|
161
|
+
const identity = channel === "scale" || channel === "opacity" ? 1 : 0;
|
|
162
|
+
return numbers.every((number) => Math.abs(number - identity) < 1e-6);
|
|
163
|
+
}
|
|
164
|
+
function expand(values) {
|
|
165
|
+
const out = {};
|
|
166
|
+
for (const [key, value] of Object.entries(values)) {
|
|
167
|
+
if (value == null || !Number.isFinite(value)) continue;
|
|
168
|
+
if (key === "scale") {
|
|
169
|
+
out.scaleX ??= value;
|
|
170
|
+
out.scaleY ??= value;
|
|
171
|
+
} else if (PROPERTIES.includes(key)) out[key] = value;
|
|
172
|
+
}
|
|
173
|
+
return out;
|
|
174
|
+
}
|
|
175
|
+
/** The time the motion clock reads (`performance.now()`'s time base). */
|
|
176
|
+
function motionNow() {
|
|
177
|
+
return typeof performance === "undefined" ? Date.now() : performance.now();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Whether the user asked for reduced motion (`prefers-reduced-motion:
|
|
181
|
+
* reduce`), read at the moment of the call: the preference the animator uses
|
|
182
|
+
* by default for its Reduce Motion substitution. A component never reads it
|
|
183
|
+
* to pick a curve of its own: its motion settings do not override the
|
|
184
|
+
* policy (design:reduced-motion DR4); `animator.reducedMotion()` or
|
|
185
|
+
* `reducedMotionFade()` gives the policy's answer. False without a window
|
|
186
|
+
* (server rendering).
|
|
187
|
+
*/
|
|
188
|
+
function defaultPrefersReducedMotion() {
|
|
189
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
190
|
+
}
|
|
191
|
+
/** Whether the primary pointer is coarse: `(pointer: coarse)`. */
|
|
192
|
+
function defaultIsCoarsePointer() {
|
|
193
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(pointer: coarse)").matches;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Registers `name` as an inherited `<length>` (initially 0px) or `<number>`
|
|
197
|
+
* (initially 0) so keyframes interpolate it; an unregistered custom property
|
|
198
|
+
* animates in steps. A property the page already registered is left as it
|
|
199
|
+
* is.
|
|
200
|
+
*/
|
|
201
|
+
function registerCustomProperty(name, syntax) {
|
|
202
|
+
if (typeof CSS === "undefined" || typeof CSS.registerProperty !== "function") return;
|
|
203
|
+
try {
|
|
204
|
+
CSS.registerProperty({
|
|
205
|
+
name,
|
|
206
|
+
syntax,
|
|
207
|
+
inherits: true,
|
|
208
|
+
initialValue: syntax === "<length>" ? "0px" : "0"
|
|
209
|
+
});
|
|
210
|
+
} catch (error) {
|
|
211
|
+
if (!(error instanceof DOMException) || error.name !== "InvalidModificationError") throw error;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function expandList(properties) {
|
|
215
|
+
const out = /* @__PURE__ */ new Set();
|
|
216
|
+
for (const property of properties) if (property === "scale") {
|
|
217
|
+
out.add("scaleX");
|
|
218
|
+
out.add("scaleY");
|
|
219
|
+
} else out.add(property);
|
|
220
|
+
return [...out];
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
export { SAME_VALUE as C, REDUCED_TRANSITION as S, SAMPLE_TOLERANCE as T, IDENTITY as _, format as a, MAX_KEYFRAMES as b, motionNow as c, sameShown as d, CHANNELS as f, END_RECHECK_MS as g, END_HOLD_MS as h, expandList as i, registerCustomProperty as l, DECAY_PROPERTIES as m, defaultPrefersReducedMotion as n, inlineText as o, CHANNEL_OF as p, expand as r, isIdentityText as s, defaultIsCoarsePointer as t, round as u, IDENTITY_TEXT as v, SAMPLE_GRID_MS as w, PROPERTIES as x, MAX_DURATION_MS as y };
|
|
@@ -1,197 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const ROLE_ID = /^[a-z][A-Za-z0-9]*(?:\.[a-z][A-Za-z0-9]*)+$/;
|
|
3
|
-
/** Whether `id` is a well-formed role name (a dotted table path). */
|
|
4
|
-
function isMotionRoleId(id) {
|
|
5
|
-
return ROLE_ID.test(id);
|
|
6
|
-
}
|
|
7
|
-
/** The CSS custom property for a role: `--motion-` + the path in kebab case. */
|
|
8
|
-
function motionRoleVariable(id) {
|
|
9
|
-
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.sheetPresent"`);
|
|
10
|
-
return `--motion-${id.split(".").map((part) => part.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)).join("-")}`;
|
|
11
|
-
}
|
|
12
|
-
function isSpring(value) {
|
|
13
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
14
|
-
return "response" in value && "dampingRatio" in value || "duration" in value && "bounce" in value || "stiffness" in value && "damping" in value;
|
|
15
|
-
}
|
|
16
|
-
function isCurve(value) {
|
|
17
|
-
return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === "number");
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/motion/roles.ts
|
|
21
|
-
const rolesById = /* @__PURE__ */ new Map();
|
|
22
|
-
/** A table id → the table registered under it. */
|
|
23
|
-
const tablesById = /* @__PURE__ */ new Map();
|
|
24
|
-
/** A spring or curve leaf → its role. */
|
|
25
|
-
const roleOfLeaf = /* @__PURE__ */ new WeakMap();
|
|
26
|
-
/** A table or one of its groups → its path. */
|
|
27
|
-
const pathOfGroup = /* @__PURE__ */ new WeakMap();
|
|
28
|
-
/** A table path → the role id it is registered under, when renamed. */
|
|
29
|
-
const roleIdOfPath = /* @__PURE__ */ new Map();
|
|
30
|
-
/**
|
|
31
|
-
* Registers a motion table: each spring, `…Ms` duration and curve leaf that
|
|
32
|
-
* `roles` lists (its role name, relative to the table) becomes a role named
|
|
33
|
-
* by its path under `id`; the table's other values stay internal constants. A leaf object the table shares between
|
|
34
|
-
* two keys is replaced in the table by an equal copy, so each role has its own
|
|
35
|
-
* object (an animator resolves a role from the object it is handed).
|
|
36
|
-
* `exclude` lists paths, relative to the table, that are not motion;
|
|
37
|
-
* `rename` maps a path, relative to the table, to the role name it is
|
|
38
|
-
* registered under (relative too), so a role is named for its use while the
|
|
39
|
-
* table keeps its source's name. Registering the same table under the same id
|
|
40
|
-
* again does nothing.
|
|
41
|
-
*/
|
|
42
|
-
function registerMotionTable(id, table, { roles = [], exclude = [], rename = {} } = {}) {
|
|
43
|
-
if (!/^[a-z][A-Za-z0-9]*$/.test(id)) throw new Error(`motion table id "${id}" must be one camelCase word`);
|
|
44
|
-
if (tablesById.get(id) === table) return;
|
|
45
|
-
tablesById.set(id, table);
|
|
46
|
-
const skip = new Set(exclude.map((path) => `${id}.${path}`));
|
|
47
|
-
const listed = new Set(roles.map((name) => `${id}.${name}`));
|
|
48
|
-
const walk = (group, prefix) => {
|
|
49
|
-
pathOfGroup.set(group, prefix);
|
|
50
|
-
for (const [key, value] of Object.entries(group)) {
|
|
51
|
-
const path = `${prefix}.${key}`;
|
|
52
|
-
if (skip.has(path)) continue;
|
|
53
|
-
let kind = null;
|
|
54
|
-
if (isSpring(value)) kind = "spring";
|
|
55
|
-
else if (isCurve(value)) kind = "curve";
|
|
56
|
-
else if (typeof value === "number" && key.endsWith("Ms")) kind = "duration";
|
|
57
|
-
else if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
58
|
-
walk(value, path);
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
if (kind == null) continue;
|
|
62
|
-
const relative = path.slice(id.length + 1);
|
|
63
|
-
const roleId = relative in rename ? `${id}.${rename[relative]}` : path;
|
|
64
|
-
if (!listed.has(roleId)) continue;
|
|
65
|
-
if (roleId !== path) roleIdOfPath.set(path, roleId);
|
|
66
|
-
let leaf = value;
|
|
67
|
-
if (typeof leaf === "object") {
|
|
68
|
-
const taken = roleOfLeaf.get(leaf);
|
|
69
|
-
if (taken != null && taken.id !== roleId) {
|
|
70
|
-
leaf = Object.freeze(Array.isArray(leaf) ? [...leaf] : { ...leaf });
|
|
71
|
-
group[key] = leaf;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const role = {
|
|
75
|
-
id: roleId,
|
|
76
|
-
kind,
|
|
77
|
-
variable: motionRoleVariable(roleId),
|
|
78
|
-
value: leaf
|
|
79
|
-
};
|
|
80
|
-
rolesById.set(roleId, role);
|
|
81
|
-
if (typeof leaf === "object") roleOfLeaf.set(leaf, role);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
walk(table, id);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Registers `leaf` as the spring role `id` (a table path such as
|
|
88
|
-
* `springs.settle`) and returns it, so a table row can register itself. A row
|
|
89
|
-
* that calls it under a pure annotation drops out of a bundle that does not
|
|
90
|
-
* use it, call included. Registering the same leaf under the same id again
|
|
91
|
-
* does nothing.
|
|
92
|
-
*/
|
|
93
|
-
function registerSpringRole(id, leaf) {
|
|
94
|
-
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.settle"`);
|
|
95
|
-
if (roleOfLeaf.get(leaf)?.id !== id) {
|
|
96
|
-
const role = {
|
|
97
|
-
id,
|
|
98
|
-
kind: "spring",
|
|
99
|
-
variable: motionRoleVariable(id),
|
|
100
|
-
value: leaf
|
|
101
|
-
};
|
|
102
|
-
rolesById.set(id, role);
|
|
103
|
-
roleOfLeaf.set(leaf, role);
|
|
104
|
-
}
|
|
105
|
-
return leaf;
|
|
106
|
-
}
|
|
107
|
-
/** The role a spring or curve leaf of a registered table plays, if any. */
|
|
108
|
-
function motionRoleOf(leaf) {
|
|
109
|
-
return leaf !== null && typeof leaf === "object" ? roleOfLeaf.get(leaf) : void 0;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* The role `group[key]` plays, for a table or one of its groups: the way to
|
|
113
|
-
* name a duration, which is a bare number.
|
|
114
|
-
*/
|
|
115
|
-
function motionRoleIn(group, key) {
|
|
116
|
-
const prefix = pathOfGroup.get(group);
|
|
117
|
-
if (prefix == null) return;
|
|
118
|
-
const path = `${prefix}.${key}`;
|
|
119
|
-
return rolesById.get(roleIdOfPath.get(path) ?? path);
|
|
120
|
-
}
|
|
121
|
-
const NUMBER = "(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e-?\\d+)?)";
|
|
122
|
-
const SPRING_VALUE = new RegExp(`^${NUMBER}s\\s+${NUMBER}$`);
|
|
123
|
-
const DURATION_VALUE = new RegExp(`^${NUMBER}(ms|s)$`);
|
|
124
|
-
const CURVE_VALUE = new RegExp(`^cubic-bezier\\(\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*\\)$`);
|
|
125
|
-
function parseMotionRoleValue(kind, text) {
|
|
126
|
-
const value = text.trim();
|
|
127
|
-
if (value === "") return null;
|
|
128
|
-
if (kind === "spring") {
|
|
129
|
-
const m = SPRING_VALUE.exec(value);
|
|
130
|
-
if (m == null) return null;
|
|
131
|
-
const duration = Number(m[1]);
|
|
132
|
-
const bounce = Number(m[2]);
|
|
133
|
-
return duration > 0 && bounce > -1 && bounce < 1 ? {
|
|
134
|
-
duration,
|
|
135
|
-
bounce
|
|
136
|
-
} : null;
|
|
137
|
-
}
|
|
138
|
-
if (kind === "duration") {
|
|
139
|
-
const m = DURATION_VALUE.exec(value);
|
|
140
|
-
if (m == null) return null;
|
|
141
|
-
const ms = Number(m[1]) * (m[2] === "s" ? 1e3 : 1);
|
|
142
|
-
return ms >= 0 ? ms : null;
|
|
143
|
-
}
|
|
144
|
-
const m = CURVE_VALUE.exec(value);
|
|
145
|
-
if (m == null) return null;
|
|
146
|
-
const points = [
|
|
147
|
-
m[1],
|
|
148
|
-
m[2],
|
|
149
|
-
m[3],
|
|
150
|
-
m[4]
|
|
151
|
-
].map(Number);
|
|
152
|
-
return points[0] >= 0 && points[0] <= 1 && points[2] >= 0 && points[2] <= 1 ? points : null;
|
|
153
|
-
}
|
|
154
|
-
/** The CSS easing keywords, as the control points CSS gives them. */
|
|
155
|
-
const EASING_KEYWORDS = {
|
|
156
|
-
"linear": [
|
|
157
|
-
0,
|
|
158
|
-
0,
|
|
159
|
-
1,
|
|
160
|
-
1
|
|
161
|
-
],
|
|
162
|
-
"ease": [
|
|
163
|
-
.25,
|
|
164
|
-
.1,
|
|
165
|
-
.25,
|
|
166
|
-
1
|
|
167
|
-
],
|
|
168
|
-
"ease-in": [
|
|
169
|
-
.42,
|
|
170
|
-
0,
|
|
171
|
-
1,
|
|
172
|
-
1
|
|
173
|
-
],
|
|
174
|
-
"ease-out": [
|
|
175
|
-
0,
|
|
176
|
-
0,
|
|
177
|
-
.58,
|
|
178
|
-
1
|
|
179
|
-
],
|
|
180
|
-
"ease-in-out": [
|
|
181
|
-
.42,
|
|
182
|
-
0,
|
|
183
|
-
.58,
|
|
184
|
-
1
|
|
185
|
-
]
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Reads a CSS easing, a keyword or a `cubic-bezier()`, as a curve role's value
|
|
189
|
-
* is read. Returns null for any other easing, such as `steps()`.
|
|
190
|
-
*/
|
|
191
|
-
function parseCssEasing(text) {
|
|
192
|
-
const value = text.trim();
|
|
193
|
-
return EASING_KEYWORDS[value] ?? parseMotionRoleValue("curve", value);
|
|
194
|
-
}
|
|
1
|
+
import { a as registerMotionTable } from "./roles-CPMsH5Ob.js";
|
|
195
2
|
const scroll = {
|
|
196
3
|
decelerationRate: {
|
|
197
4
|
/**
|
|
@@ -511,105 +318,4 @@ const UIKIT_VELOCITY = {
|
|
|
511
318
|
}
|
|
512
319
|
};
|
|
513
320
|
//#endregion
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* 触屏按压模型的纯状态机:输入「刚发生了什么」,输出「现在该画什么」。
|
|
517
|
-
*
|
|
518
|
-
* 系统原生控件(UIKit)对手指的处理:滚动视图外,手指落下的那一帧就亮;
|
|
519
|
-
* 滚动视图里按下先等 0.15 秒才认,因为这次触摸可能变成滚动。滚动一接管手势就立刻取消,
|
|
520
|
-
* 这次手势里不再亮回来;抬手后淡出。iOS Safari 的 CSS `:active` 一样都不做:
|
|
521
|
-
* 手指一碰就亮,滚动开始 1.6 秒后还亮着。所以粗指针下的按压状态由这里管,
|
|
522
|
-
* `:active` 只留给鼠标。
|
|
523
|
-
*
|
|
524
|
-
* 这里不碰 DOM、不碰时钟,测试直接喂事件就能把整套规则跑一遍。
|
|
525
|
-
* DOM 那一半在 `pressFeedback.ts`。
|
|
526
|
-
*/
|
|
527
|
-
/**
|
|
528
|
-
* 滚动视图里,手指停多久才算真按。UIKit 的 `delaysContentTouches` 就是 0.15 秒。
|
|
529
|
-
* 快速划一下在这之前就被滚动接管了,所以什么都不亮。从触摸本身的时间戳算起。
|
|
530
|
-
*/
|
|
531
|
-
const PRESS_ONSET_MS = UIKIT_PRESS.contentTouchDelay.value;
|
|
532
|
-
/** 手指最多能挪多远还算按压,单位 CSS 像素。iOS 的滚动大约在这个距离接管手势。 */
|
|
533
|
-
const PRESS_SLOP_PX = UIKIT_PRESS.slop.value;
|
|
534
|
-
/** 太快的轻点:抬手时补亮,满强度保持这么久再淡出。不然最常见的操作一点反馈都没有。 */
|
|
535
|
-
const PRESS_FLASH_MS = UIKIT_PRESS.quickTapFlash.value;
|
|
536
|
-
/** 滚动刚停不久就落下的手指是在「刹车」,不是按压。这个窗口内不亮。 */
|
|
537
|
-
const PRESS_SCROLL_BRAKE_MS = UIKIT_PRESS.scrollBrake.value;
|
|
538
|
-
const IDLE = {
|
|
539
|
-
originX: 0,
|
|
540
|
-
originY: 0,
|
|
541
|
-
phase: "idle"
|
|
542
|
-
};
|
|
543
|
-
function travelled(gesture, x, y) {
|
|
544
|
-
return Math.hypot(x - gesture.originX, y - gesture.originY) > PRESS_SLOP_PX;
|
|
545
|
-
}
|
|
546
|
-
function to(gesture, phase, paint, timer) {
|
|
547
|
-
return {
|
|
548
|
-
gesture: {
|
|
549
|
-
...gesture,
|
|
550
|
-
phase
|
|
551
|
-
},
|
|
552
|
-
paint,
|
|
553
|
-
timer
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
function stay(gesture, paint) {
|
|
557
|
-
return {
|
|
558
|
-
gesture,
|
|
559
|
-
paint,
|
|
560
|
-
timer: null
|
|
561
|
-
};
|
|
562
|
-
}
|
|
563
|
-
function stepArmed(gesture, event) {
|
|
564
|
-
switch (event.kind) {
|
|
565
|
-
case "move": return travelled(gesture, event.x, event.y) ? to(gesture, "dead", "none", null) : stay(gesture, "none");
|
|
566
|
-
case "cancel": return to(gesture, "dead", "none", null);
|
|
567
|
-
case "onset": return to(gesture, "pressed", "on", null);
|
|
568
|
-
case "up": return to(gesture, "flash", "on", "flash");
|
|
569
|
-
default: return stay(gesture, "none");
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
function stepPressed(gesture, event) {
|
|
573
|
-
if (event.kind === "move" && !travelled(gesture, event.x, event.y)) return stay(gesture, "on");
|
|
574
|
-
if (event.kind === "move" || event.kind === "cancel") return to(gesture, "dead", "none", null);
|
|
575
|
-
if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
|
|
576
|
-
return stay(gesture, "on");
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* 一个事件,一个答案。
|
|
580
|
-
*/
|
|
581
|
-
function pressGestureStep(gesture, event) {
|
|
582
|
-
if (event.kind === "down") {
|
|
583
|
-
if (event.delayed === false) return {
|
|
584
|
-
gesture: {
|
|
585
|
-
originX: event.x,
|
|
586
|
-
originY: event.y,
|
|
587
|
-
phase: "pressed"
|
|
588
|
-
},
|
|
589
|
-
paint: "on",
|
|
590
|
-
timer: null
|
|
591
|
-
};
|
|
592
|
-
return {
|
|
593
|
-
gesture: {
|
|
594
|
-
originX: event.x,
|
|
595
|
-
originY: event.y,
|
|
596
|
-
phase: "armed"
|
|
597
|
-
},
|
|
598
|
-
paint: "none",
|
|
599
|
-
timer: "onset"
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
switch (gesture.phase) {
|
|
603
|
-
case "armed": return stepArmed(gesture, event);
|
|
604
|
-
case "pressed": return stepPressed(gesture, event);
|
|
605
|
-
case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
|
|
606
|
-
case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
|
|
607
|
-
case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
|
|
608
|
-
case "idle": return stay(IDLE, "none");
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
function idlePressGesture() {
|
|
612
|
-
return IDLE;
|
|
613
|
-
}
|
|
614
|
-
//#endregion
|
|
615
|
-
export { parseMotionRoleValue as _, idlePressGesture as a, isSpring as b, UIKIT_PAN as c, UIKIT_VELOCITY as d, registerScrollTable as f, parseCssEasing as g, motionRoleOf as h, PRESS_SLOP_PX as i, UIKIT_PRESS as l, motionRoleIn as m, PRESS_ONSET_MS as n, pressGestureStep as o, scroll as p, PRESS_SCROLL_BRAKE_MS as r, UIKIT_LONG_PRESS as s, PRESS_FLASH_MS as t, UIKIT_TAP as u, registerMotionTable as v, registerSpringRole as y };
|
|
321
|
+
export { UIKIT_VELOCITY as a, UIKIT_TAP as i, UIKIT_PAN as n, registerScrollTable as o, UIKIT_PRESS as r, scroll as s, UIKIT_LONG_PRESS as t };
|
|
@@ -161,8 +161,8 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
161
161
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComplexSelectorProps<Value> & {
|
|
162
162
|
modelValue: Value;
|
|
163
163
|
}) & {
|
|
164
|
-
onChange?: ((value: Value) => any) | undefined;
|
|
165
164
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
165
|
+
onChange?: ((value: Value) => any) | undefined;
|
|
166
166
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
167
167
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
168
168
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
|
@@ -172,7 +172,7 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
172
172
|
expose: (exposed: import("vue").ShallowUnwrapRef<ComplexSelectorHandle>) => void;
|
|
173
173
|
attrs: any;
|
|
174
174
|
slots: ComplexSelectorSlots<Value>;
|
|
175
|
-
emit: (((evt: "
|
|
175
|
+
emit: (((evt: "click", event: MouseEvent) => void) & ((evt: "change", value: Value) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
|
|
176
176
|
}>) => import("vue").VNode & {
|
|
177
177
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
178
178
|
};
|
|
@@ -160,33 +160,33 @@ interface SelectorSlots {
|
|
|
160
160
|
//#region src/Selector/Selector.vue.d.ts
|
|
161
161
|
type __VLS_Slots = SelectorSlots;
|
|
162
162
|
declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
163
|
-
|
|
163
|
+
search: (query: string) => any;
|
|
164
164
|
click: (event: MouseEvent) => any;
|
|
165
|
+
focus: (event: FocusEvent) => any;
|
|
166
|
+
change: (value: string | number | null) => any;
|
|
165
167
|
keydown: (event: KeyboardEvent) => any;
|
|
166
168
|
"update:modelValue": (value: string | number | null) => any;
|
|
167
|
-
search: (query: string) => any;
|
|
168
|
-
focus: (event: FocusEvent) => any;
|
|
169
169
|
}, string, import("vue").PublicProps, Readonly<SelectorProps> & Readonly<{
|
|
170
|
-
|
|
170
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
171
171
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
172
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
173
|
+
onChange?: ((value: string | number | null) => any) | undefined;
|
|
172
174
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
173
175
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
174
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
175
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
176
176
|
}>, {
|
|
177
|
+
indicatorPosition: SelectorIndicatorPosition;
|
|
178
|
+
status: SelectorStatusInput;
|
|
179
|
+
isOptional: boolean;
|
|
180
|
+
isLoading: boolean;
|
|
177
181
|
variant: SelectorVariant;
|
|
178
182
|
modelValue: string | number | null;
|
|
179
183
|
isLabelHidden: boolean;
|
|
180
|
-
isOptional: boolean;
|
|
181
184
|
isRequired: boolean;
|
|
182
|
-
isLoading: boolean;
|
|
183
|
-
status: SelectorStatusInput;
|
|
184
185
|
statusVariant: SelectorStatusVariant;
|
|
185
|
-
|
|
186
|
+
presentation: SelectorPresentation;
|
|
186
187
|
isReadOnly: boolean;
|
|
187
188
|
disabled: boolean;
|
|
188
189
|
clearable: boolean;
|
|
189
|
-
presentation: SelectorPresentation;
|
|
190
190
|
searchable: boolean;
|
|
191
191
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
192
192
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
|
|
|
65
65
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
66
66
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
+
anchor: HTMLElement | null;
|
|
68
69
|
isOpen: boolean;
|
|
69
70
|
placement: TooltipPlacement;
|
|
70
71
|
alignment: TooltipAlignment;
|
|
71
|
-
anchor: HTMLElement | null;
|
|
72
72
|
content: string;
|
|
73
73
|
isDefaultOpen: boolean;
|
|
74
74
|
isEnabled: boolean;
|
|
@@ -55,8 +55,8 @@ interface InputGroupTextSlots {
|
|
|
55
55
|
//#region src/InputGroup/InputGroup.vue.d.ts
|
|
56
56
|
type __VLS_Slots$1 = InputGroupSlots;
|
|
57
57
|
declare const __VLS_base$1: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
|
|
58
|
-
isLabelHidden: boolean;
|
|
59
58
|
isOptional: boolean;
|
|
59
|
+
isLabelHidden: boolean;
|
|
60
60
|
isRequired: boolean;
|
|
61
61
|
disabled: boolean;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -92,8 +92,8 @@ declare const __VLS_export$6: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
92
92
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CommandPaletteProps<T> & {
|
|
93
93
|
value?: string | undefined;
|
|
94
94
|
}) & {
|
|
95
|
-
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
96
95
|
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
96
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
97
97
|
onValueChange?: ((value: string) => any) | undefined;
|
|
98
98
|
}> & (typeof globalThis extends {
|
|
99
99
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
showOn: OverlayShowOn;
|
|
179
178
|
scrim: OverlayScrimMode;
|
|
179
|
+
showOn: OverlayShowOn;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
showOn: OverlayShowOn;
|
|
196
195
|
scrim: OverlayScrimMode;
|
|
196
|
+
showOn: OverlayShowOn;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ResizableRegion, r as ResizableProps } from "./useResizable-
|
|
1
|
+
import { i as ResizableRegion, r as ResizableProps } from "./useResizable-CKDaU_se.js";
|
|
2
2
|
import { VNodeChild } from "vue";
|
|
3
3
|
//#region src/Resizable/types.d.ts
|
|
4
4
|
type ResizeDirection = 'horizontal' | 'vertical';
|
|
@@ -154,16 +154,16 @@ type __VLS_Slots = {
|
|
|
154
154
|
default: () => unknown;
|
|
155
155
|
};
|
|
156
156
|
declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
157
|
-
change: (value: string) => any;
|
|
158
157
|
"update:value": (value: string) => any;
|
|
158
|
+
change: (value: string) => any;
|
|
159
159
|
}, string, import("vue").PublicProps, Readonly<TabListProps> & Readonly<{
|
|
160
|
-
onChange?: ((value: string) => any) | undefined;
|
|
161
160
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
161
|
+
onChange?: ((value: string) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
163
|
layout: TabListLayout;
|
|
164
164
|
isFullBleed: boolean;
|
|
165
|
-
overflow: TabListOverflow;
|
|
166
165
|
hasDivider: boolean;
|
|
166
|
+
overflow: TabListOverflow;
|
|
167
167
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
169
169
|
declare const _default$1: typeof __VLS_export$1;
|