@astryx-vue/core 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-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-CPQDndnd.js} +5 -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.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CnvaPn8M.js → Breadcrumbs-BrxMrKHO.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-C75nzKE8.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-Cf9evVsQ.js} +3 -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 +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DfoShDVW.js → ContextMenu-Bp7G_Ys2.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/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.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BaRXEFLa.js → DropdownMenu-DrJpONZH.js} +8 -8
- package/dist/{DropdownMenuRadioItem.vue-B4iwMWWD.d.ts → DropdownMenuRadioItem.vue-BDDI4EZK.d.ts} +1 -1
- 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.js +1 -1
- package/dist/{Heading-BXTbW_px.js → Heading-jYno4L3t.js} +1 -1
- package/dist/HoverCard/index.d.ts +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-tVHjgQDe.js} +2 -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-DJ6CQLw2.js} +1 -1
- package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-Bqh82ULc.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 +2 -2
- package/dist/List/index.js +2 -2
- package/dist/ListItem-B60jTcXy.js +530 -0
- 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/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-DIx487BZ.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/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-BV5n_nig.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-ezvpdXTS.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-FEpgj5dB.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.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-BOcDJ2a_.js} +12 -13
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
- package/dist/Tokenizer/index.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.js +1 -1
- package/dist/{TreeList-CsgXzBdm.js → TreeList-BGHHEcg1.js} +4 -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-Bjt5L8jX.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 +3 -3
- package/dist/composables/index.js +12 -12
- package/dist/{composables-kHI1dSq2.js → composables-B7FrCjk6.js} +11 -7
- package/dist/{context-ZWA02GaM.js → context-BcJmSPj1.js} +1 -2
- package/dist/cssValues-Cr6PhYTx.js +223 -0
- package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
- package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-CdRxeyhB.d.ts → index-BU1HdDER.d.ts} +2 -2
- 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-Bxus0zuz.d.ts → index-BtPaMbkN.d.ts} +11 -11
- package/dist/{index-4m5X7IYX.d.ts → index-BvdhRgke.d.ts} +98 -98
- package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-FeZXsFO-.d.ts → index-CBOv5j3c.d.ts} +3 -3
- package/dist/{index-Cj-Ob5jw.d.ts → index-CG6dbyeb.d.ts} +10 -10
- package/dist/{index-BpFzfJbo.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-BIiG1CF_.d.ts → index-C_iTVOHQ.d.ts} +4 -4
- package/dist/{index-B83v2qNb.d.ts → index-Casdfb9N.d.ts} +4 -4
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-DGe-ApvN.d.ts → index-CuW4AQ7M.d.ts} +3 -3
- 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-CHLZPpjQ.d.ts → index-DYabo8TI.d.ts} +3 -3
- package/dist/{index-o3JHyrk8.d.ts → index-DjSQLT53.d.ts} +1 -1
- package/dist/{index-Dk50Zh3F.d.ts → index-DofC9Rll.d.ts} +2 -2
- package/dist/{index-JE1HrzdJ.d.ts → index-DsWEyz1N.d.ts} +1 -1
- package/dist/{index-C943VIzi.d.ts → index-DvCLTiDV.d.ts} +1 -1
- package/dist/{index-ILJ7sKx3.d.ts → index-QC9FDUDA.d.ts} +4 -4
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-DAEgHJTK.d.ts → index-aHC2C89h.d.ts} +4 -4
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +37 -37
- package/dist/index.js +103 -103
- package/dist/landing-Dx9vPF0t.js +51 -0
- 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/{batch-DPlrpYU6.js → reportChange-BkOEttEP.js} +763 -4
- package/dist/resizableChannel-DS0idC-X.js +388 -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/{types-ClOMFbqC.d.ts → types-BHHT6Bho.d.ts} +17 -0
- package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
- package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-BC1mJaxA.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-BL7wxH1p.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/list.css +45 -0
- package/styles/pressable.css +13 -0
- package/styles/resize-handle.css +2 -0
- package/styles/tree-list.css +21 -0
- package/dist/ListItem-_lOmngHp.js +0 -202
- 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
- package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/package.json
CHANGED
package/styles/list.css
CHANGED
|
@@ -82,6 +82,19 @@
|
|
|
82
82
|
border-block-end-width: 0;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/*
|
|
86
|
+
* `animatedLayout` 下从反向移动的行上方滑过的行:滑动期间抬到上面,背后垫一层表面色,
|
|
87
|
+
* 像 UIKit 不透明的 cell 从邻居上方经过。表面是铺满内边距盒的内阴影,在按压层和内容下面,
|
|
88
|
+
* 分隔线和按压都还看得见。选中的行保留自己的底色。z-index 2 高过粗指针下热区的 1。
|
|
89
|
+
*/
|
|
90
|
+
.astryx-list > .astryx-list-item[data-astryx-travelling] {
|
|
91
|
+
z-index: 2;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.astryx-list > .astryx-list-item[data-astryx-travelling]:not([data-selected='true']) {
|
|
95
|
+
box-shadow: inset 0 0 0 100vmax var(--astryx-color-background-surface, light-dark(#fff, #262626));
|
|
96
|
+
}
|
|
97
|
+
|
|
85
98
|
/*
|
|
86
99
|
* Row edge treatment. `outset` and `bleed` rows reach into the padding of
|
|
87
100
|
* the container around the list. The list reaches that padding's edge
|
|
@@ -299,6 +312,38 @@
|
|
|
299
312
|
background-image: var(--_press-paint-image);
|
|
300
313
|
}
|
|
301
314
|
|
|
315
|
+
/*
|
|
316
|
+
* 手指按下时,按压色画在行自己的 `::before` 上(底色之上、内容之下),
|
|
317
|
+
* 抬手淡出的是这一层的 opacity,浏览器在合成线程上播。颜色、时长和曲线和按压强度一样。
|
|
318
|
+
* 这一层只在按压期间存在,平时行的 `::before` 原样不动;鼠标不受影响。
|
|
319
|
+
*/
|
|
320
|
+
@media (pointer: coarse) {
|
|
321
|
+
.astryx-item[data-astryx-press]:not([data-disabled='true']) {
|
|
322
|
+
isolation: isolate;
|
|
323
|
+
background-image: none;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.astryx-item[data-astryx-press]:not([data-disabled='true'])::before {
|
|
327
|
+
content: '';
|
|
328
|
+
position: absolute;
|
|
329
|
+
inset: 0;
|
|
330
|
+
z-index: -1;
|
|
331
|
+
border-radius: inherit;
|
|
332
|
+
background-color: var(--astryx-list-item-pressed-background, light-dark(#05365919, #ffffff19));
|
|
333
|
+
pointer-events: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.astryx-item[data-astryx-press='fading']:not([data-disabled='true'])::before {
|
|
337
|
+
animation: astryx-press-layer-release var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)) both;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@media (prefers-reduced-motion: reduce) {
|
|
341
|
+
.astryx-item[data-astryx-press='fading']:not([data-disabled='true'])::before {
|
|
342
|
+
animation-duration: min(var(--astryx-duration-exit, 175ms), 200ms);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
302
347
|
/*
|
|
303
348
|
* 选中行保留自己的底色,悬停和按下的色调作为图片层叠在上面。
|
|
304
349
|
* 高亮行的底色本来就是悬停色,只表现按下。
|
package/styles/pressable.css
CHANGED
|
@@ -36,6 +36,19 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/*
|
|
40
|
+
* 列表行的触屏按压层抬手淡出:只动这一层的 opacity,浏览器放在合成线程上播,
|
|
41
|
+
* 页面脚本再忙,淡出也照常走完,不重绘。时长和曲线和上面的强度淡出一样。
|
|
42
|
+
*/
|
|
43
|
+
@keyframes astryx-press-layer-release {
|
|
44
|
+
from {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
@layer astryx.components {
|
|
40
53
|
[data-astryx-pressable] {
|
|
41
54
|
--_press-paint: color-mix(
|
package/styles/resize-handle.css
CHANGED
package/styles/tree-list.css
CHANGED
|
@@ -87,6 +87,27 @@
|
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/*
|
|
91
|
+
* 手指按下时,按压画在行的按压层(`.astryx-pressable::after`)上,抬手淡出的是这一层的 opacity,
|
|
92
|
+
* 浏览器在合成线程上播。颜色、时长和曲线和按压强度一样;鼠标不受影响。
|
|
93
|
+
*/
|
|
94
|
+
@media (pointer: coarse) {
|
|
95
|
+
.astryx-tree-list__content.astryx-pressable:not([data-disabled='true'])[data-astryx-press]::after {
|
|
96
|
+
background-color: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
|
|
97
|
+
background-image: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.astryx-tree-list__content.astryx-pressable:not([data-disabled='true'])[data-astryx-press='fading']::after {
|
|
101
|
+
animation: astryx-press-layer-release var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)) both;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (prefers-reduced-motion: reduce) {
|
|
105
|
+
.astryx-tree-list__content.astryx-pressable:not([data-disabled='true'])[data-astryx-press='fading']::after {
|
|
106
|
+
animation-duration: min(var(--astryx-duration-exit, 175ms), 200ms);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
90
111
|
@media (hover: hover) {
|
|
91
112
|
.astryx-tree-list__content[data-interactive='true']:not([data-disabled='true']):hover::before {
|
|
92
113
|
background-color: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { n as useTouchHitArea } from "./useTouchHitArea-SY1ITxSJ.js";
|
|
2
|
-
import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
|
|
3
|
-
import { a as useListContext, n as itemListRowKey, r as listContextKey, t as _sfc_main$2 } from "./Item-C9u_kQUO.js";
|
|
4
|
-
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
5
|
-
import "../styles/list.css";
|
|
6
|
-
//#region src/List/List.vue
|
|
7
|
-
const _hoisted_1$1 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "astryx-list-root"
|
|
10
|
-
};
|
|
11
|
-
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
12
|
-
name: "AstryxList",
|
|
13
|
-
inheritAttrs: false,
|
|
14
|
-
__name: "List",
|
|
15
|
-
props: {
|
|
16
|
-
density: { default: "balanced" },
|
|
17
|
-
hasDividers: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
edge: {},
|
|
22
|
-
edgeCompensation: {},
|
|
23
|
-
listStyle: { default: "none" },
|
|
24
|
-
start: { default: 1 },
|
|
25
|
-
header: {}
|
|
26
|
-
},
|
|
27
|
-
setup(__props, { expose: __expose }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const CONTROLLED_ATTRS = /* @__PURE__ */ new Set([
|
|
30
|
-
"class",
|
|
31
|
-
"style",
|
|
32
|
-
"role",
|
|
33
|
-
"start"
|
|
34
|
-
]);
|
|
35
|
-
const attrs = useAttrs();
|
|
36
|
-
const slots = useSlots();
|
|
37
|
-
const listElement = useTemplateRef("list");
|
|
38
|
-
const headerId = `astryx-list-header-${useId()}`;
|
|
39
|
-
const hasHeader = computed(() => slots.header != null || props.header != null);
|
|
40
|
-
const tag = computed(() => props.listStyle === "decimal" ? "ol" : "ul");
|
|
41
|
-
const hasStartAttribute = computed(() => props.listStyle === "decimal" && props.start !== 1);
|
|
42
|
-
const counterStart = computed(() => hasStartAttribute.value ? `astryx-list ${props.start - 1}` : void 0);
|
|
43
|
-
/** The deprecated prop is an alias of `outset`; an explicit `edge` wins over it. */
|
|
44
|
-
const edge = computed(() => props.edge ?? (props.edgeCompensation === "inline" ? "outset" : "padded"));
|
|
45
|
-
useDevWarning("List", "`edge` and the deprecated `edgeCompensation` are both set; `edge` wins. Remove `edgeCompensation`.", () => props.edge != null && props.edgeCompensation != null);
|
|
46
|
-
provide(listContextKey, {
|
|
47
|
-
density: computed(() => props.density),
|
|
48
|
-
edge,
|
|
49
|
-
edgeCompensation: computed(() => props.edgeCompensation),
|
|
50
|
-
hasDividers: computed(() => props.hasDividers),
|
|
51
|
-
listStyle: computed(() => props.listStyle)
|
|
52
|
-
});
|
|
53
|
-
const listStyleValue = computed(() => [attrs.style, counterStart.value == null ? void 0 : { counterReset: counterStart.value }]);
|
|
54
|
-
const listAttrs = computed(() => {
|
|
55
|
-
return {
|
|
56
|
-
...Object.fromEntries(Object.entries(attrs).filter(([key]) => !CONTROLLED_ATTRS.has(key))),
|
|
57
|
-
"role": "list",
|
|
58
|
-
"start": hasStartAttribute.value ? props.start : void 0,
|
|
59
|
-
"data-density": props.density,
|
|
60
|
-
"data-dividers": props.hasDividers || void 0,
|
|
61
|
-
"data-edge": edge.value,
|
|
62
|
-
"data-edge-compensation": props.edgeCompensation,
|
|
63
|
-
"data-list-style": props.listStyle,
|
|
64
|
-
...hasHeader.value ? { "aria-labelledby": headerId } : void 0
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
__expose({ element: computed(() => listElement.value) });
|
|
68
|
-
return (_ctx, _cache) => {
|
|
69
|
-
return hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", {
|
|
70
|
-
id: headerId,
|
|
71
|
-
class: "astryx-list-header"
|
|
72
|
-
}, [renderSlot(_ctx.$slots, "header", {}, () => [createTextVNode(toDisplayString(__props.header), 1)])]), (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ ref: "list" }, listAttrs.value, {
|
|
73
|
-
class: ["astryx-list", unref(attrs).class],
|
|
74
|
-
style: listStyleValue.value
|
|
75
|
-
}), {
|
|
76
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
77
|
-
_: 3
|
|
78
|
-
}, 16, ["class", "style"]))])) : (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({
|
|
79
|
-
key: 1,
|
|
80
|
-
ref: "list"
|
|
81
|
-
}, listAttrs.value, {
|
|
82
|
-
class: ["astryx-list", unref(attrs).class],
|
|
83
|
-
style: listStyleValue.value
|
|
84
|
-
}), {
|
|
85
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
86
|
-
_: 3
|
|
87
|
-
}, 16, ["class", "style"]));
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/List/ListItem.vue
|
|
93
|
-
const _hoisted_1 = {
|
|
94
|
-
key: 0,
|
|
95
|
-
class: "astryx-list-marker"
|
|
96
|
-
};
|
|
97
|
-
const _hoisted_2 = ["data-shape"];
|
|
98
|
-
const _hoisted_3 = ["data-style"];
|
|
99
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
100
|
-
name: "AstryxListItem",
|
|
101
|
-
__name: "ListItem",
|
|
102
|
-
props: {
|
|
103
|
-
align: {},
|
|
104
|
-
label: {},
|
|
105
|
-
description: {},
|
|
106
|
-
density: {},
|
|
107
|
-
onClick: { type: Function },
|
|
108
|
-
interactiveRef: {},
|
|
109
|
-
href: {},
|
|
110
|
-
target: {},
|
|
111
|
-
rel: {},
|
|
112
|
-
isDisabled: { type: Boolean },
|
|
113
|
-
isSelected: { type: Boolean },
|
|
114
|
-
swipeActions: {},
|
|
115
|
-
swipeBehavior: {}
|
|
116
|
-
},
|
|
117
|
-
setup(__props) {
|
|
118
|
-
const props = __props;
|
|
119
|
-
const list = useListContext();
|
|
120
|
-
const item = useTemplateRef("item");
|
|
121
|
-
const isTouchTarget = computed(() => (props.onClick != null || props.href != null || props.interactiveRef != null) && props.isDisabled !== true);
|
|
122
|
-
useTouchHitArea(() => item.value?.element, isTouchTarget);
|
|
123
|
-
const density = computed(() => props.density ?? list?.density.value ?? "balanced");
|
|
124
|
-
const marker = computed(() => {
|
|
125
|
-
const listStyle = list?.listStyle.value ?? "none";
|
|
126
|
-
return listStyle === "none" ? null : listStyle;
|
|
127
|
-
});
|
|
128
|
-
provide(itemListRowKey, { isNumbered: computed(() => marker.value === "decimal") });
|
|
129
|
-
const isBullet = computed(() => marker.value === "disc" || marker.value === "circle");
|
|
130
|
-
return (_ctx, _cache) => {
|
|
131
|
-
return openBlock(), createBlock(_sfc_main$2, {
|
|
132
|
-
ref_key: "item",
|
|
133
|
-
ref: item,
|
|
134
|
-
as: "li",
|
|
135
|
-
class: normalizeClass(["astryx-list-item", { "astryx-touch-hit-area-band": isTouchTarget.value }]),
|
|
136
|
-
align: __props.align,
|
|
137
|
-
description: __props.description,
|
|
138
|
-
density: density.value,
|
|
139
|
-
href: __props.href,
|
|
140
|
-
"interactive-ref": __props.interactiveRef,
|
|
141
|
-
"is-disabled": __props.isDisabled,
|
|
142
|
-
"is-selected": __props.isSelected,
|
|
143
|
-
label: __props.label,
|
|
144
|
-
"on-click": __props.onClick,
|
|
145
|
-
"swipe-actions": __props.swipeActions,
|
|
146
|
-
"swipe-behavior": __props.swipeBehavior,
|
|
147
|
-
rel: __props.rel,
|
|
148
|
-
target: __props.target
|
|
149
|
-
}, createSlots({ _: 2 }, [
|
|
150
|
-
marker.value ? {
|
|
151
|
-
name: "marker",
|
|
152
|
-
fn: withCtx(() => [isBullet.value ? (openBlock(), createElementBlock("span", _hoisted_1, [createElementVNode("span", {
|
|
153
|
-
class: "astryx-list-marker__glyph",
|
|
154
|
-
"data-shape": marker.value
|
|
155
|
-
}, null, 8, _hoisted_2)])) : (openBlock(), createElementBlock("span", {
|
|
156
|
-
key: 1,
|
|
157
|
-
class: "astryx-list-marker__number",
|
|
158
|
-
"data-style": marker.value
|
|
159
|
-
}, null, 8, _hoisted_3))]),
|
|
160
|
-
key: "0"
|
|
161
|
-
} : void 0,
|
|
162
|
-
_ctx.$slots.startContent ? {
|
|
163
|
-
name: "startContent",
|
|
164
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "startContent")]),
|
|
165
|
-
key: "1"
|
|
166
|
-
} : void 0,
|
|
167
|
-
_ctx.$slots.label ? {
|
|
168
|
-
name: "label",
|
|
169
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
|
|
170
|
-
key: "2"
|
|
171
|
-
} : void 0,
|
|
172
|
-
_ctx.$slots.description ? {
|
|
173
|
-
name: "description",
|
|
174
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
175
|
-
key: "3"
|
|
176
|
-
} : void 0,
|
|
177
|
-
_ctx.$slots.endContent ? {
|
|
178
|
-
name: "endContent",
|
|
179
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
180
|
-
key: "4"
|
|
181
|
-
} : void 0
|
|
182
|
-
]), 1032, [
|
|
183
|
-
"class",
|
|
184
|
-
"align",
|
|
185
|
-
"description",
|
|
186
|
-
"density",
|
|
187
|
-
"href",
|
|
188
|
-
"interactive-ref",
|
|
189
|
-
"is-disabled",
|
|
190
|
-
"is-selected",
|
|
191
|
-
"label",
|
|
192
|
-
"on-click",
|
|
193
|
-
"swipe-actions",
|
|
194
|
-
"swipe-behavior",
|
|
195
|
-
"rel",
|
|
196
|
-
"target"
|
|
197
|
-
]);
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
//#endregion
|
|
202
|
-
export { _sfc_main$1 as n, _sfc_main as t };
|
package/dist/edge-DFaE6rUg.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-DPlrpYU6.js";
|
|
2
|
-
//#region src/motion/layout/edge.ts
|
|
3
|
-
/** Whether `element` lays its inline axis out right to left. */
|
|
4
|
-
function isRtl(element) {
|
|
5
|
-
return element.ownerDocument.defaultView?.getComputedStyle(element).direction === "rtl";
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The `clip-path` that hides `side` of an element from `edge`: `inset()`'s
|
|
9
|
-
* sides are physical (top, right, bottom, left), so an inline edge is
|
|
10
|
-
* mirrored right to left. `zero` is how the other three are written.
|
|
11
|
-
*/
|
|
12
|
-
function edgeClip(edge, side, zero, rtl) {
|
|
13
|
-
const sides = [
|
|
14
|
-
zero,
|
|
15
|
-
zero,
|
|
16
|
-
zero,
|
|
17
|
-
zero
|
|
18
|
-
];
|
|
19
|
-
const index = edge === "block-start" ? 0 : edge === "block-end" ? 2 : edge === "inline-end" !== rtl ? 1 : 3;
|
|
20
|
-
sides[index] = side;
|
|
21
|
-
return `inset(${sides.join(" ")})`;
|
|
22
|
-
}
|
|
23
|
-
/** A hidden fraction of the element, as a percentage clip on `edge`. */
|
|
24
|
-
function fractionClip(edge, hidden, rtl) {
|
|
25
|
-
return edgeClip(edge, `${round(hidden * 100)}%`, "0", rtl);
|
|
26
|
-
}
|
|
27
|
-
/** A hidden length of the element, in its own px, as a clip on `edge`. */
|
|
28
|
-
function pxClip(edge, hidden, rtl) {
|
|
29
|
-
return edgeClip(edge, `${hidden}px`, "0px", rtl);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The element's size along `edge`'s axis, in its own px (a scaled ancestor
|
|
33
|
-
* divided out), read from the layout the caller already laid out.
|
|
34
|
-
*/
|
|
35
|
-
function extentOf(element, edge) {
|
|
36
|
-
const rect = element.getBoundingClientRect();
|
|
37
|
-
const scale = scaleOf(element, rect);
|
|
38
|
-
return edge.startsWith("inline") ? rect.width / scale.x : rect.height / scale.y;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The parts that slide inside an element revealed or concealed from a block
|
|
42
|
-
* edge by `extent` px. They are its child elements that the band can show:
|
|
43
|
-
* the area's visible part plus one viewport, or `extent` if larger, above and
|
|
44
|
-
* below. A part past the band cannot come into view while it moves, so it
|
|
45
|
-
* stays. The walk stops at the first child below the band, so its cost grows
|
|
46
|
-
* with the changed size, never with the length of a list. A translation
|
|
47
|
-
* cannot move text on its own, so an element with text of its own keeps the
|
|
48
|
-
* clip (null).
|
|
49
|
-
*/
|
|
50
|
-
function slidingParts(element, edge, area, extent) {
|
|
51
|
-
if (!edge.startsWith("block") || !(extent > 0)) return null;
|
|
52
|
-
const view = element.ownerDocument.defaultView;
|
|
53
|
-
const style = view?.getComputedStyle(element);
|
|
54
|
-
if (view == null || style == null || paintsOwnBox(style) || ["::before", "::after"].some((pseudo) => {
|
|
55
|
-
const { content } = view.getComputedStyle(element, pseudo);
|
|
56
|
-
return content !== "" && content !== "none" && content !== "normal";
|
|
57
|
-
})) return null;
|
|
58
|
-
const visible = visibleRect(area);
|
|
59
|
-
const band = bandFor(visible, Math.max(view.innerHeight, extent));
|
|
60
|
-
const parts = [];
|
|
61
|
-
const scales = [];
|
|
62
|
-
for (let node = element.firstChild; node != null; node = node.nextSibling) {
|
|
63
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
64
|
-
if ((node.textContent ?? "").trim() !== "") return null;
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if (node.nodeType !== Node.ELEMENT_NODE) continue;
|
|
68
|
-
const { display } = view.getComputedStyle(node);
|
|
69
|
-
if (display === "inline" || display === "contents") return null;
|
|
70
|
-
const box = node.getBoundingClientRect();
|
|
71
|
-
if (box.top > band.end) break;
|
|
72
|
-
if (box.bottom >= band.start) {
|
|
73
|
-
if (glides.has(node)) return null;
|
|
74
|
-
parts.push(node);
|
|
75
|
-
scales.push(scaleOf(node, box, ownScaleOf(node)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (parts.length === 0) return null;
|
|
79
|
-
const inner = (side) => (Number.parseFloat(style.getPropertyValue(`border-${side}-width`)) || 0) + (Number.parseFloat(style.getPropertyValue(`padding-${side}`)) || 0);
|
|
80
|
-
return {
|
|
81
|
-
parts,
|
|
82
|
-
scales,
|
|
83
|
-
clip: edge === "block-end" ? `inset(${inner("top")}px 0px 0px 0px)` : `inset(0px 0px ${inner("bottom")}px 0px)`
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Whether a style paints a box of its own: a fill, a border, a shadow, an
|
|
88
|
-
* outline or a filter.
|
|
89
|
-
*/
|
|
90
|
-
function paintsOwnBox(style) {
|
|
91
|
-
const isClear = (color) => color === "" || color === "transparent" || /^rgba\(.*,\s*0\)$/.test(color);
|
|
92
|
-
return !isClear(style.backgroundColor) || style.backgroundImage !== "" && style.backgroundImage !== "none" || [
|
|
93
|
-
"Top",
|
|
94
|
-
"Right",
|
|
95
|
-
"Bottom",
|
|
96
|
-
"Left"
|
|
97
|
-
].some((side) => style.getPropertyValue(`border-${side.toLowerCase()}-style`) !== "none" && Number.parseFloat(style.getPropertyValue(`border-${side.toLowerCase()}-width`)) > 0) || style.boxShadow !== "" && style.boxShadow !== "none" || style.borderImageSource !== "" && style.borderImageSource !== "none" || style.filter !== "" && style.filter !== "none" || style.outlineStyle !== "" && style.outlineStyle !== "none" && Number.parseFloat(style.outlineWidth) > 0;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Where the parts sit when the element hides `hidden` px from `edge`. They
|
|
101
|
-
* move that far towards it, so their far edge meets the content that rides
|
|
102
|
-
* the same edge.
|
|
103
|
-
*/
|
|
104
|
-
function slideFrame(edge, hidden) {
|
|
105
|
-
return { translate: `0px ${edge === "block-end" ? -hidden : hidden}px` };
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Clips `element` with `clip` while its parts slide, and returns what puts
|
|
109
|
-
* its own `clip-path` back. The clip does not move, so it stays in step with
|
|
110
|
-
* the parts and the content beside them on every engine.
|
|
111
|
-
*/
|
|
112
|
-
function holdSlideClip(element, clip) {
|
|
113
|
-
const { style } = element;
|
|
114
|
-
const value = style.getPropertyValue("clip-path");
|
|
115
|
-
const priority = style.getPropertyPriority("clip-path");
|
|
116
|
-
style.setProperty("clip-path", clip);
|
|
117
|
-
return () => {
|
|
118
|
-
if (value === "") style.removeProperty("clip-path");
|
|
119
|
-
else style.setProperty("clip-path", value, priority);
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The last element before `element` in the area that takes part in layout:
|
|
124
|
-
* its previous sibling, or its nearest ancestor's below the area (the mirror
|
|
125
|
-
* of `nextInFlow`, for a start edge).
|
|
126
|
-
*/
|
|
127
|
-
function previousInFlow(element, area) {
|
|
128
|
-
const view = element.ownerDocument.defaultView;
|
|
129
|
-
const lastBox = (from) => {
|
|
130
|
-
const style = view?.getComputedStyle(from);
|
|
131
|
-
if (style == null) return from;
|
|
132
|
-
if (style.display === "contents") {
|
|
133
|
-
for (let child = from.lastElementChild; child != null; child = child.previousElementSibling) {
|
|
134
|
-
const box = lastBox(child);
|
|
135
|
-
if (box != null) return box;
|
|
136
|
-
}
|
|
137
|
-
return null;
|
|
138
|
-
}
|
|
139
|
-
return takesPart(from, style) ? from : null;
|
|
140
|
-
};
|
|
141
|
-
let node = element;
|
|
142
|
-
while (node != null && node !== area) {
|
|
143
|
-
for (let sibling = node.previousElementSibling; sibling != null; sibling = sibling.previousElementSibling) {
|
|
144
|
-
const box = lastBox(sibling);
|
|
145
|
-
if (box != null) return box;
|
|
146
|
-
}
|
|
147
|
-
node = node.parentElement;
|
|
148
|
-
}
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The glide that moves `neighbour`: its own, or that of its nearest gliding
|
|
153
|
-
* ancestor below the area that does not also hold `element` (one that holds
|
|
154
|
-
* both moves the two together, so the edge does not ride it).
|
|
155
|
-
*/
|
|
156
|
-
function glideMoving(neighbour, element, area) {
|
|
157
|
-
for (let node = neighbour; node != null && node !== area && !node.contains(element); node = node.parentElement) {
|
|
158
|
-
const glide = glides.get(node);
|
|
159
|
-
if (glide != null) return glide;
|
|
160
|
-
}
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
export { isRtl as a, slideFrame as c, holdSlideClip as i, slidingParts as l, fractionClip as n, previousInFlow as o, glideMoving as r, pxClip as s, extentOf as t };
|