@astryx-vue/core 0.33.1 → 0.33.3
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-C9mhy7gH.js → AlertDialog-BwH9WU-t.js} +9 -9
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-B4S-gbL3.js → AppShell-BwzRYOky.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-B93MdEmI.js → Avatar-C6E6TYbe.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CCFMtKks.js → AvatarGroup-C0V--ipx.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DfsrHUDP.js → Banner-Ds5KIeES.js} +36 -16
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-E_OjhAa7.js → BottomSheet-BmmGemH5.js} +1 -1
- package/dist/{BottomSheet-DxqAIVZ3.js → BottomSheet-DKEUVLe5.js} +9 -9
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DMytkhxA.js → Breadcrumbs-DWAYp-JJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BoZJv7eb.js → Button-X-Q_ghg8.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D5E7QLWI.js → ButtonGroup-DsYdUmF1.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-TvReEgJA.js → Carousel-D8uVV1J_.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C_tNbXbn.js → Chat-Dy-icS2C.js} +6 -6
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-D6KNni6p.js → CheckboxInput-CiUtutIS.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-wNOHsMMr.js → CheckboxListItem-B6sV7-Og.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CLXCxaxo.js → ClickableCard-DDk_RtHd.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-U2zFJsc5.js → CodeBlock-r2-MlpBB.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cf9evVsQ.js → Collapsible-0XI3tKgj.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D5PGSXWz.js → CommandPalette-BYR0Lxxd.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Co1jUTYQ.js → ComplexSelector-CIXrqCoX.js} +3 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DBvZgAbg.js → ContextMenu-CfVyaP5v.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-XLGBkH4g.js → DateInput-DRzZ8dY7.js} +5 -5
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BNpkwtVh.js → DateRangeInput-DL2aOQXJ.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CewV_JRI.js → DateTimeInput-KWkpamG4.js} +6 -6
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BbDjvBqX.js → Dialog-BM5VEE8z.js} +2 -2
- package/dist/{Dialog-CYcDiMtZ.js → Dialog-CJzq1gms.js} +1 -1
- package/dist/{DialogHeader-efWB4QQA.js → DialogHeader-Do4EOX2f.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-BswIXZSo.js → Drawer-DuQ620WO.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CCOjKL7v.js → DropdownMenu-CbENfJOq.js} +10 -10
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BkQ3jktt.js → EmptyState-BAP8BpDj.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CYfzJEFg.js → Field-B1fsgAqp.js} +1 -1
- package/dist/{FieldInfoTip-DccDjDnf.js → FieldInfoTip-CntJCcnM.js} +1 -1
- package/dist/{FieldLabel-SiRzxGz8.js → FieldLabel-D56uJrRE.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BxeGABmG.js → FileInput-EjlruVVX.js} +4 -4
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-D_7K6-23.js → Heading-D94VFJtm.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-Bkh1HZ3b.js → HoverCard-rwpyd6nt.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DEhvVDmO.js → IconButton-CXg9qTRM.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BZDG21HF.js → InfoTip-jFet-iAx.js} +2 -2
- package/dist/{InputClearButton-DezS64Mz.js → InputClearButton-DBTrsrSH.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CENlnU_O.js → InputGroup-D7UBxktR.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BAUKUK7N.js → InternationalizationProvider-BGtwZDY0.js} +1 -1
- package/dist/{Item-tVHjgQDe.js → Item-DbalBZXc.js} +2 -2
- package/dist/{LayerContentBoundary-D6GcF2T3.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-DJ6CQLw2.js → Layout-BEJwZon4.js} +1 -1
- package/dist/{LayoutPanel-Bqh82ULc.js → LayoutPanel-BgJdL0KV.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Dbwep-L-.js → Lightbox-DJXB22k0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Csw2YXAQ.js → Link-eXwB0Hjg.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-B60jTcXy.js → ListItem-C5B8uYyn.js} +4 -4
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CTRMjOpY.js → Markdown-COub2yng.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Ce8cVqzp.js → MobileNavToggle-DI5yDKfp.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CfUKxxnB.js → MoreMenu-C7gie2PE.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BG0oQjhR.js → MultiSelector-CnGUU8P3.js} +7 -7
- package/dist/{NavDisclosure-lQVs4eJB.js → NavDisclosure-CSnUZY3k.js} +1 -1
- package/dist/{NavHeadingSurface-CkDdgQV1.js → NavHeadingSurface-C3fTf5--.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-B7xpLk_x.js → NavItem-Cciu9aok.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-Bf_rGSbX.js → NavMenu--iyy_m84.js} +2 -2
- package/dist/{NavMenuItem-BblWAGof.js → NavMenuItem-BmAm-Cv8.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CLQ1dgsb.js → NumberInput-CD9sHbON.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-coqRQ06s.js → Outline-vieAJS2J.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-V728L06i.js → OverflowList-YLVHypB3.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B71t50Xl.js → Pagination-Bnkp4oAA.js} +2 -2
- package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BX8Qy08n.js → Popover-CYJ1z_7L.js} +10 -10
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-ZfZNn-68.js → PowerSearch-DEpXEmgs.js} +27 -27
- package/dist/PressTracker-L5-Ark_9.js +190 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/ProgressBar-ChgsiVRR.js +325 -0
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-8KAVhDTz.js → RadioGroup-BdO-xZv0.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-FY0cSKWR.js → RadioListItem-DzGPuWTt.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-ezvpdXTS.js → ResizeHandle-Dcel1HkU.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BdbqWErg.js → SegmentedControl-BURyE9XU.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Dj2fRvfe.js → SelectableCard-BZTF6qw-.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DjZSKGCz.js → Selector-SkwSbf4j.js} +5 -5
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DjPwCh4O.js → SideNav-BxJfJU95.js} +9 -9
- package/dist/Skeleton/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-ORmi7QJ7.js +1785 -0
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-D1adu3uH.js +266 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-C4_Zj3oZ.js → StatusDot-D7nVuPg7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C3ZFN-Gp.js → Stepper-C4-wtxn4.js} +149 -103
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-Cw1UKVjQ.js +1468 -0
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D70Pl_ob.js → TabList-DNDe2ipJ.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-8Vj50mYm.js → Table-CqppyRk8.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-6_wt88Br.js → Text-kwsIut3C.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DMMHiOEb.js → TextArea-I3ghDb9r.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-JuggLbDZ.js → TextInput-Xz_ibpOl.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Sq-2e8zN.js → Thumbnail-bS62Tr_f.js} +4 -4
- package/dist/{TimeField-CuRkZZlx.js → TimeField-Bsb8n22d.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CREpxTpG.js → TimeInput-D40_6GrX.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-C18tBgls.js → Timer-B-9sSJWK.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BL8R7ZQ8.js → Timestamp-Bt9ZR975.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BtJHuIen.js → Toast-BQxfIeVU.js} +5 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DrnT3-jX.js → ToggleButton-IFhFMpQh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DZmmnHEj.js → Token-CpmqfG4i.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BRFlVyMv.js → Tokenizer-Dvr7ICpS.js} +16 -15
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-Dwr0XREF.js → Tooltip-DyGaJUbl.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-GwsSkeei.js → TopNav-Cw_dcKpf.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BGHHEcg1.js → TreeList-CBfKKbUQ.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-H3uWMS7i.js → Typeahead-D9-WjsCU.js} +6 -6
- package/dist/{VelocityTracker-DVbtTSXR.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-Bjt5L8jX.js → accessibleName-Cw9s1690.js} +2 -2
- package/dist/{animator-DLWdws2R.js → animator-ozeBZ_zC.js} +4 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-OL_sC9Qy.js → composables-BJoAw6XA.js} +12 -10
- package/dist/{context-BcJmSPj1.js → context-WDet15_N.js} +1 -1
- package/dist/{useAttachment-BohgLE3o.js → geometry-CoQRz-F1.js} +12 -710
- package/dist/{gestures-C8VhWve7.js → gestures-yKyyMqeQ.js} +226 -2
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
- package/dist/{index-Dpz-JUMl.d.ts → index--kbwaSXW.d.ts} +2 -2
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-0RIgvtdm.d.ts → index-BI1QLuYB.d.ts} +1 -1
- package/dist/{index-yaS9_EpM.d.ts → index-BVi16JNo.d.ts} +2 -2
- package/dist/{index-DvrrgBYc.d.ts → index-BVx-HFp8.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-QC9FDUDA.d.ts → index-BqQlY3fL.d.ts} +2 -2
- package/dist/{index-Cb-rvc1W.d.ts → index-BtqvPjAf.d.ts} +2 -2
- package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-D33x3IfY.d.ts → index-CTv55aOa.d.ts} +1 -1
- package/dist/{index-18IUS3l0.d.ts → index-CY0KtUSC.d.ts} +53 -53
- package/dist/{index-CUwmD3Ph.d.ts → index-D1JOMiI5.d.ts} +3 -3
- package/dist/{index-MvrDMqnQ.d.ts → index-DPhQZXYw.d.ts} +2 -2
- package/dist/{index-B2XndRvV.d.ts → index-DuxRUPMc.d.ts} +2 -2
- package/dist/{index-EAKu_r6h.d.ts → index-GyRgg1-v.d.ts} +3 -3
- package/dist/{index-DVX2jlTQ.d.ts → index-JE1HrzdJ.d.ts} +2 -2
- package/dist/{index-Dt_9IR_M.d.ts → index-JGPd3Ghy.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-Pad9p8CU.d.ts} +3 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.js +107 -107
- package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
- package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
- package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
- package/dist/{landing-Dx9vPF0t.js → landing-Qk_FHR-s.js} +1 -1
- package/dist/{layerDepth-D-80Ay8B.js → layerDepth-SGFJ5L6X.js} +1 -1
- package/dist/{lazyBottomSheet-s0ckIf0f.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
- package/dist/{linearEasing-BxWjPql6.js → linearEasing-VHwy6xl_.js} +136 -87
- package/dist/{loadCatalog-VYidi1Xi.d.ts → loadCatalog-BODWYaNy.d.ts} +2 -0
- package/dist/{loadCatalog-zJKVLZ89.js → loadCatalog-DMOOMWtw.js} +3 -2
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-C9LWi1y1.js → locale-C8X7gJlc.js} +1 -1
- package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
- package/dist/{presentationHold-B4tK68sd.js → presentationHold-CZsVmjlY.js} +1 -1
- package/dist/{pressFeedback-CPzGi_88.js → pressFeedback-9ogipvI4.js} +4 -4
- package/dist/{pressGesture-BV4fYPIG.js → pressGesture-B3Efxs_z.js} +1 -1
- package/dist/{rubberBand-DecgmtDj.js → projection-qPcLQcwK.js} +2 -50
- package/dist/{reportChange-BkOEttEP.js → reportChange-BUTgduu-.js} +5 -4
- package/dist/{resizableChannel-DS0idC-X.js → resizableChannel-_j_AW2B6.js} +5 -5
- package/dist/{resolveMotion-BLdMNTpf.js → resolveMotion-DftkGFw6.js} +2 -2
- package/dist/{resolveSnapPoint-DygD-wmL.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
- package/dist/{roles-CPMsH5Ob.js → roles-DWH31Bn3.js} +126 -1
- package/dist/rubberBand-DDd5ElTe.js +65 -0
- package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
- package/dist/{springs-BR66JuIm.js → springs-DjAn_oV5.js} +2 -2
- package/dist/{stepper-BMSGF96H.js → stepper-D7L_3xxU.js} +4 -2
- package/dist/{stillPointerGate-CrsrgFyo.js → stillPointerGate-BvCX7ddI.js} +1 -1
- package/dist/{themeTiming-BA_wpgEn.js → themeTiming-ClYaZxGf.js} +1 -1
- package/dist/{tooltipFocusRules-BWcYZXu8.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
- package/dist/{tooltipTriggerRules-DFPKbHJc.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
- package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
- package/dist/{useActionGroupTracking-iv0p__dY.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
- package/dist/{useAnimatedLayout-BC1mJaxA.js → useAnimatedLayout-IcX0UfS4.js} +1 -1
- package/dist/useAttachment-CGiD9rt6.js +24 -0
- package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
- package/dist/{useDismiss-Di0mkAl_.js → useDismiss-6SGAlkB_.js} +1 -1
- package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-DJEthuMT.js} +1 -1
- package/dist/{useInputStatusIcon-Dese9hBA.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
- package/dist/{useMenuPress-RFwJ3jGS.js → useMenuPress-cBIQyTsN.js} +4 -4
- package/dist/{usePressFeedback-BuyFZkQO.js → usePressFeedback-Dx-a3i82.js} +1 -1
- package/dist/{useResizable-K9hlQr8i.js → useResizable-JvgYydox.js} +6 -5
- package/dist/{useTooltip-48Smw61m.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-Dsz80HzY.js → useTouchHitArea-BGkvMAyp.js} +2 -2
- package/dist/{useTouchTriggerInternal-CUiq_FYD.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
- package/dist/{useTruncationTooltip-D1Iwku73.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-CiTAlquw.js → useTypeaheadMenuConfig-COiZ4isy.js} +2 -2
- package/package.json +1 -1
- package/styles/progress-bar.css +69 -5
- package/styles/skeleton.css +62 -5
- package/styles/slider.css +59 -12
- package/styles/spinner.css +30 -7
- package/styles/switch.css +101 -34
- package/dist/ProgressBar-jtD4zcDW.js +0 -166
- package/dist/Slider-TpbMaQ4Q.js +0 -735
- package/dist/Spinner-DEVPDsD0.js +0 -201
- package/dist/Switch-CW27rVAy.js +0 -355
package/styles/slider.css
CHANGED
|
@@ -13,34 +13,62 @@
|
|
|
13
13
|
min-width: 20px;
|
|
14
14
|
height: 20px;
|
|
15
15
|
touch-action: none;
|
|
16
|
+
-webkit-user-select: none;
|
|
16
17
|
user-select: none;
|
|
17
18
|
isolation: isolate;
|
|
18
19
|
cursor: pointer;
|
|
19
20
|
}
|
|
21
|
+
/* 控件的各部分都在这个盒子里,它铺满控件的内边距盒:给控件加内边距不会挪动任何部分。
|
|
22
|
+
滑块和填充按它的容器单位(cqi / cqb)走,所以移动它们只重绘、不重新布局。 */
|
|
23
|
+
.astryx-slider-travel { position: absolute; inset: 0; container-type: size; }
|
|
20
24
|
.astryx-slider-track,
|
|
21
|
-
.astryx-slider-fill {
|
|
25
|
+
.astryx-slider-fill-clip {
|
|
22
26
|
position: absolute;
|
|
23
27
|
top: 50%;
|
|
28
|
+
inset-inline: 0;
|
|
24
29
|
height: 4px;
|
|
25
30
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
26
31
|
transform: translateY(-50%);
|
|
27
32
|
}
|
|
28
|
-
.astryx-slider-track {
|
|
29
|
-
|
|
33
|
+
.astryx-slider-track { background: var(--astryx-slider-track, #e5e5e5); }
|
|
34
|
+
/* 填充是一整条轨道长的色条,在两层裁剪里平移到位:外层裁剪和轨道同形,
|
|
35
|
+
中间层(range 的起点)的起始边切出起点,色条自己的末端落在终点,两端都藏在滑块下面。 */
|
|
36
|
+
.astryx-slider-fill-clip { overflow: hidden; pointer-events: none; }
|
|
37
|
+
.astryx-slider-fill-mover { position: absolute; inset: 0; overflow: hidden; }
|
|
38
|
+
.astryx-slider-fill {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
background: var(--astryx-slider-accent, #262626);
|
|
42
|
+
border-start-end-radius: var(--astryx-radius-full, 9999px);
|
|
43
|
+
border-end-end-radius: var(--astryx-radius-full, 9999px);
|
|
44
|
+
translate: calc(10px + var(--_slider-fill-end) * (100cqi - 20px) - 100cqi) 0;
|
|
45
|
+
}
|
|
46
|
+
.astryx-slider-fill:dir(rtl) { translate: calc(100cqi - 10px - var(--_slider-fill-end) * (100cqi - 20px)) 0; }
|
|
47
|
+
.astryx-slider-control[data-range] .astryx-slider-fill-mover {
|
|
48
|
+
border-start-start-radius: var(--astryx-radius-full, 9999px);
|
|
49
|
+
border-end-start-radius: var(--astryx-radius-full, 9999px);
|
|
50
|
+
translate: calc(10px + var(--_slider-fill-start) * (100cqi - 20px)) 0;
|
|
51
|
+
}
|
|
52
|
+
.astryx-slider-control[data-range] .astryx-slider-fill-mover:dir(rtl) { translate: calc(-10px - var(--_slider-fill-start) * (100cqi - 20px)) 0; }
|
|
53
|
+
.astryx-slider-control[data-range] .astryx-slider-fill { translate: calc((var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqi - 20px) - 100cqi) 0; }
|
|
54
|
+
.astryx-slider-control[data-range] .astryx-slider-fill:dir(rtl) { translate: calc(100cqi - (var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqi - 20px)) 0; }
|
|
30
55
|
.astryx-slider-thumb {
|
|
31
56
|
position: absolute;
|
|
32
57
|
z-index: 1;
|
|
33
|
-
|
|
58
|
+
/* 用偏移居中而不是 transform:手指按住时滑块按 scale 放大,transform 会跟着放大,把滑块抬离轨道。 */
|
|
59
|
+
top: calc(50% - 10px);
|
|
60
|
+
inset-inline-start: 0;
|
|
34
61
|
width: 20px;
|
|
35
62
|
height: 20px;
|
|
36
63
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
37
64
|
background: var(--astryx-slider-accent, #262626);
|
|
38
|
-
|
|
65
|
+
/* 从轨道起点出发,走过「进度 ×(轨道长 − 滑块)」;translate 是物理方向,RTL 下取反。 */
|
|
66
|
+
translate: calc(var(--_slider-progress, 0) * (100cqi - 20px)) 0;
|
|
39
67
|
outline: none;
|
|
40
68
|
cursor: grab;
|
|
41
69
|
transition: background-color 130ms ease-out;
|
|
42
70
|
}
|
|
43
|
-
.astryx-slider-thumb:dir(rtl) {
|
|
71
|
+
.astryx-slider-thumb:dir(rtl) { translate: calc(var(--_slider-progress, 0) * (20px - 100cqi)) 0; }
|
|
44
72
|
.astryx-slider-thumb[data-keyboard-focus='true']:focus-visible:not([data-dragging='true']) {
|
|
45
73
|
outline: 2px solid var(--astryx-slider-focus, #262626);
|
|
46
74
|
outline-offset: 3px;
|
|
@@ -96,16 +124,35 @@
|
|
|
96
124
|
padding-block-end: calc(4px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
97
125
|
}
|
|
98
126
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { flex: none; width: 20px; height: var(--astryx-slider-height, 160px); }
|
|
99
|
-
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill) { top: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
100
|
-
.astryx-slider[data-orientation='vertical'] .astryx-slider-
|
|
101
|
-
|
|
127
|
+
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill-clip) { top: 0; bottom: 0; inset-inline: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
128
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-fill {
|
|
129
|
+
border-radius: var(--astryx-radius-full, 9999px) var(--astryx-radius-full, 9999px) 0 0;
|
|
130
|
+
translate: 0 calc(100cqb - 10px - var(--_slider-fill-end) * (100cqb - 20px));
|
|
131
|
+
}
|
|
132
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-control[data-range] .astryx-slider-fill-mover {
|
|
133
|
+
border-radius: 0 0 var(--astryx-radius-full, 9999px) var(--astryx-radius-full, 9999px);
|
|
134
|
+
translate: 0 calc(-10px - var(--_slider-fill-start) * (100cqb - 20px));
|
|
135
|
+
}
|
|
136
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-control[data-range] .astryx-slider-fill { translate: 0 calc(100cqb - (var(--_slider-fill-end) - var(--_slider-fill-start)) * (100cqb - 20px)); }
|
|
137
|
+
.astryx-slider[data-orientation='vertical'] .astryx-slider-thumb { top: auto; bottom: 0; inset-inline-start: calc(50% - 10px); translate: 0 calc(var(--_slider-progress, 0) * (20px - 100cqb)); }
|
|
102
138
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-mark { top: auto; left: 50%; width: 8px; height: 2px; transform: translate(-50%, 50%); }
|
|
103
139
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-mark-label { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
|
|
104
140
|
.astryx-slider[data-mark-labels='true'][data-orientation='vertical'] .astryx-slider-control { margin-inline-end: 4rem; }
|
|
105
141
|
@media (pointer: coarse) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.astryx-slider-
|
|
142
|
+
/* 手指下每个滑块的触控区是它自己的 ::before:以滑块为中心的 48px 方块(UISlider 的热区),
|
|
143
|
+
range 两个滑块之间各占一半,谁近归谁。 */
|
|
144
|
+
.astryx-slider-thumb::before {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: var(--_slider-hit-top);
|
|
148
|
+
bottom: var(--_slider-hit-bottom);
|
|
149
|
+
inset-inline-start: var(--_slider-hit-start);
|
|
150
|
+
inset-inline-end: var(--_slider-hit-end);
|
|
151
|
+
}
|
|
152
|
+
/* 手指下控件把平移留给浏览器:从轨道或横穿滑块的滑动照样滚动页面;
|
|
153
|
+
手势宿主再按挂在元素上的识别器收窄(滑块的拖动保留自己的轴)。
|
|
154
|
+
控件和滑块一样高(20px),手指点按时把可点区域撑到 WCAG 2.5.8 的 24px,轨道和滑块都居中不动。 */
|
|
155
|
+
.astryx-slider-control { min-height: 24px; touch-action: manipulation; }
|
|
109
156
|
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
110
157
|
padding-block-end: calc(2px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
111
158
|
}
|
package/styles/spinner.css
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/* 一次迭代转 100 圈:浏览器在迭代边界会唤醒主线程,这样每 100 圈才唤醒一次。
|
|
4
|
+
每圈 360 度,看上去还是同一个圈。 */
|
|
5
|
+
@keyframes astryx-spinner-rotate {
|
|
4
6
|
from {
|
|
5
|
-
|
|
7
|
+
transform: rotate(0deg);
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
to {
|
|
9
|
-
|
|
11
|
+
transform: rotate(36000deg);
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
@@ -92,11 +94,20 @@
|
|
|
92
94
|
|
|
93
95
|
.astryx-spinner__ring {
|
|
94
96
|
display: block;
|
|
97
|
+
grid-area: 1 / 1;
|
|
95
98
|
width: var(--_spinner-box-size, 100%);
|
|
96
99
|
height: var(--_spinner-box-size, 100%);
|
|
97
100
|
overflow: visible;
|
|
98
101
|
}
|
|
99
102
|
|
|
103
|
+
/* 主题的 spinner 指示图形占满加载圈的盒子,和圆环在同一个网格格子里。 */
|
|
104
|
+
.astryx-spinner__themed {
|
|
105
|
+
display: block;
|
|
106
|
+
grid-area: 1 / 1;
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: 100%;
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
.astryx-spinner__track,
|
|
101
112
|
.astryx-spinner__arc {
|
|
102
113
|
fill: none;
|
|
@@ -118,15 +129,27 @@
|
|
|
118
129
|
stroke-dasharray:
|
|
119
130
|
calc(var(--_spinner-ring-diameter) * 3.141592653589793 * var(--astryx-spinner-arc-fraction))
|
|
120
131
|
calc(var(--_spinner-ring-diameter) * 3.141592653589793 * (1 - var(--astryx-spinner-arc-fraction)));
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* 转子是和圆环框同大的 HTML 盒子,绕圆环中心转。只动 transform,走合成器,
|
|
135
|
+
脚本跑着的时候也照转;动 stroke-dashoffset 会每帧在主线程重绘,跟着卡住。
|
|
136
|
+
提前声明合成层,Safari 重设起点后才不会退回主线程。 */
|
|
137
|
+
.astryx-spinner__rotor {
|
|
138
|
+
display: block;
|
|
139
|
+
grid-area: 1 / 1;
|
|
140
|
+
width: var(--_spinner-box-size, 100%);
|
|
141
|
+
height: var(--_spinner-box-size, 100%);
|
|
142
|
+
will-change: transform;
|
|
143
|
+
animation-name: astryx-spinner-rotate;
|
|
144
|
+
animation-duration: calc(var(--_astryx-pre-tempo-duration-slow-min, var(--astryx-duration-slow-min, 525ms)) * 100);
|
|
123
145
|
animation-timing-function: linear;
|
|
124
146
|
animation-iteration-count: infinite;
|
|
125
147
|
}
|
|
126
148
|
|
|
149
|
+
/* 减少动态效果只放慢、不停下:不动的圈看起来像坏了。 */
|
|
127
150
|
@media (prefers-reduced-motion: reduce) {
|
|
128
|
-
.astryx-
|
|
129
|
-
animation-duration: 3s;
|
|
151
|
+
.astryx-spinner__rotor {
|
|
152
|
+
animation-duration: calc(3s * 100);
|
|
130
153
|
}
|
|
131
154
|
}
|
|
132
155
|
}
|
package/styles/switch.css
CHANGED
|
@@ -82,17 +82,24 @@
|
|
|
82
82
|
background-image: var(--_press-paint-image);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
85
|
+
/* 横向的手指移动是开关的拖动,竖向的是页面滚动。禁用、只读或忙碌时不接拖动,移动全交给页面。 */
|
|
86
|
+
.astryx-switch:not([data-blocked='true']) .astryx-switch-control {
|
|
87
|
+
touch-action: pan-y pinch-zoom;
|
|
88
|
+
}
|
|
90
89
|
|
|
90
|
+
/*
|
|
91
|
+
* 粗指针下,看不见的 input 就是手指的热区:useTouchHitArea 量出的 --astryx-hit-inset-*
|
|
92
|
+
* 让它朝 44 × 44 长,每边长到离邻居一半为止,看得见的部分不变。没量到时是 0。
|
|
93
|
+
*/
|
|
94
|
+
@media (pointer: coarse) {
|
|
91
95
|
.astryx-switch-native {
|
|
92
96
|
inset: 50% auto auto 50%;
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
-
transform: translate(
|
|
97
|
+
width: calc(100% + var(--astryx-hit-inset-left, 0px) + var(--astryx-hit-inset-right, 0px));
|
|
98
|
+
height: calc(100% + var(--astryx-hit-inset-top, 0px) + var(--astryx-hit-inset-bottom, 0px));
|
|
99
|
+
transform: translate(
|
|
100
|
+
calc(-50% + (var(--astryx-hit-inset-right, 0px) - var(--astryx-hit-inset-left, 0px)) / 2),
|
|
101
|
+
calc(-50% + (var(--astryx-hit-inset-bottom, 0px) - var(--astryx-hit-inset-top, 0px)) / 2)
|
|
102
|
+
);
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
105
|
|
|
@@ -127,56 +134,115 @@
|
|
|
127
134
|
background: var(--astryx-switch-track-on, #1b1b1b);
|
|
128
135
|
}
|
|
129
136
|
|
|
137
|
+
/* 拇指每种尺寸、每个状态的直径;鼠标下的位移和手指下的停靠位都从它算。 */
|
|
130
138
|
.astryx-switch-thumb {
|
|
139
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size, 16px);
|
|
140
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel, 14px);
|
|
141
|
+
|
|
131
142
|
box-sizing: border-box;
|
|
132
143
|
flex: none;
|
|
133
|
-
width: var(--
|
|
134
|
-
height: var(--
|
|
144
|
+
width: var(--_switch-thumb-size);
|
|
145
|
+
height: var(--_switch-thumb-size);
|
|
135
146
|
/* 圆用 50% 画在方盒子上:主题把 --astryx-radius-full 改成方角时,轨道变方,拇指仍是圆的。 */
|
|
136
147
|
border-radius: var(--astryx-switch-thumb-radius, 50%);
|
|
137
148
|
background: var(--astryx-switch-thumb, #fff);
|
|
138
|
-
transform: translateX(0);
|
|
139
|
-
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
.astryx-switch[data-size='sm'] .astryx-switch-thumb {
|
|
143
|
-
|
|
144
|
-
|
|
152
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-sm, 14px);
|
|
153
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel-sm, 12px);
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
.astryx-switch[data-size='lg'] .astryx-switch-thumb {
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-lg, 20px);
|
|
158
|
+
--_switch-thumb-travel: var(--astryx-switch-thumb-travel-lg, 22px);
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
153
|
-
|
|
154
|
-
height: var(--astryx-switch-thumb-size-on, 20px);
|
|
155
|
-
transform: translateX(var(--astryx-switch-thumb-travel, 14px));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb:dir(rtl) {
|
|
159
|
-
transform: translateX(calc(var(--astryx-switch-thumb-travel, 14px) * -1));
|
|
162
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on, 20px);
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
.astryx-switch[data-size='sm'] .astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
163
|
-
|
|
164
|
-
height: var(--astryx-switch-thumb-size-on-sm, 16px);
|
|
165
|
-
transform: translateX(var(--astryx-switch-thumb-travel-sm, 12px));
|
|
166
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on-sm, 16px);
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
.astryx-switch[data-size='
|
|
169
|
-
|
|
169
|
+
.astryx-switch[data-size='lg'] .astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
170
|
+
--_switch-thumb-size: var(--astryx-switch-thumb-size-on-lg, 24px);
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
/* 鼠标和笔:拇指靠轨道内边距停在关的一端,开时平移过去,位移和尺寸都走过渡。 */
|
|
174
|
+
@media not all and (pointer: coarse) {
|
|
175
|
+
.astryx-switch-thumb {
|
|
176
|
+
transform: translateX(0);
|
|
177
|
+
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
181
|
+
transform: translateX(var(--_switch-thumb-travel));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb:dir(rtl) {
|
|
185
|
+
transform: translateX(calc(var(--_switch-thumb-travel) * -1));
|
|
186
|
+
}
|
|
176
187
|
}
|
|
177
188
|
|
|
178
|
-
|
|
179
|
-
|
|
189
|
+
/*
|
|
190
|
+
* 手指:触屏呈现。轨道不留内边距,拇指在轨道高度里居中,靠两端的内联偏移停在关或开的一端,
|
|
191
|
+
* 离端头和离上下一样远(50cqb 读轨道高度)。useSwitchTouch 在合成器上用 translate 和 scale
|
|
192
|
+
* 移动、抬起它,拇指自己什么都不过渡;轨道底色立刻换,颜色的渐变由 ::after 淡变层负责。
|
|
193
|
+
*/
|
|
194
|
+
@media (pointer: coarse) {
|
|
195
|
+
.astryx-switch-control {
|
|
196
|
+
min-width: 24px;
|
|
197
|
+
min-height: 24px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.astryx-switch[data-size] .astryx-switch-track {
|
|
201
|
+
padding: 0;
|
|
202
|
+
container-type: size;
|
|
203
|
+
isolation: isolate;
|
|
204
|
+
transition-duration: 0s;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.astryx-switch-thumb {
|
|
208
|
+
position: absolute;
|
|
209
|
+
inset-block: 0;
|
|
210
|
+
inset-inline-start: calc(50cqb - var(--_switch-thumb-size) / 2);
|
|
211
|
+
z-index: 2;
|
|
212
|
+
margin-block: auto;
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.astryx-switch-native:checked + .astryx-switch-track .astryx-switch-thumb {
|
|
217
|
+
inset-inline-start: auto;
|
|
218
|
+
inset-inline-end: calc(50cqb - var(--_switch-thumb-size) / 2);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* 颜色淡变层:盖在轨道自己的底色上,画着轨道另一状态的底色(switchFill.ts 读主题的颜色)。
|
|
222
|
+
不透明度归动画器,静止时是透明的;只在淡变进行时才有合成层。 */
|
|
223
|
+
.astryx-switch-track::after {
|
|
224
|
+
content: '';
|
|
225
|
+
position: absolute;
|
|
226
|
+
inset: 0;
|
|
227
|
+
z-index: 0;
|
|
228
|
+
border-radius: inherit;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
opacity: 0;
|
|
231
|
+
background-color: var(--_switch-fade-fill, transparent);
|
|
232
|
+
will-change: var(--astryx-motion-will-change-after, auto);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* 抬起时的阴影:随抬起淡入,静止时透明。 */
|
|
236
|
+
.astryx-switch-thumb::after {
|
|
237
|
+
content: '';
|
|
238
|
+
position: absolute;
|
|
239
|
+
inset: 0;
|
|
240
|
+
border-radius: inherit;
|
|
241
|
+
pointer-events: none;
|
|
242
|
+
opacity: 0;
|
|
243
|
+
box-shadow: var(--astryx-shadow-low, 0 1px 2px rgb(0 0 0 / 12%));
|
|
244
|
+
will-change: var(--astryx-motion-will-change-after, auto);
|
|
245
|
+
}
|
|
180
246
|
}
|
|
181
247
|
|
|
182
248
|
.astryx-switch-native:focus-visible + .astryx-switch-track {
|
|
@@ -218,6 +284,7 @@
|
|
|
218
284
|
to { transform: rotate(360deg); }
|
|
219
285
|
}
|
|
220
286
|
|
|
287
|
+
/* 减少动态效果:鼠标下拇指和颜色立刻到位;手指下由动画器换成交叉淡变。 */
|
|
221
288
|
@media (prefers-reduced-motion: reduce) {
|
|
222
289
|
.astryx-switch-track,
|
|
223
290
|
.astryx-switch-thumb {
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Tooltip-Dwr0XREF.js";
|
|
2
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useAttrs, useId, withCtx } from "vue";
|
|
3
|
-
import "../styles/visually-hidden.css";
|
|
4
|
-
import "../styles/progress-bar.css";
|
|
5
|
-
//#region src/ProgressBar/ProgressBar.vue
|
|
6
|
-
const _hoisted_1 = [
|
|
7
|
-
"data-size",
|
|
8
|
-
"data-variant",
|
|
9
|
-
"data-indeterminate",
|
|
10
|
-
"data-disabled"
|
|
11
|
-
];
|
|
12
|
-
const _hoisted_2 = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "astryx-progress-bar-header"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_3 = ["id"];
|
|
17
|
-
const _hoisted_4 = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "astryx-progress-bar-value",
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
};
|
|
22
|
-
const _hoisted_5 = ["id"];
|
|
23
|
-
const _hoisted_6 = { class: "astryx-progress-bar-rail" };
|
|
24
|
-
const _hoisted_7 = [
|
|
25
|
-
"aria-labelledby",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"aria-valuemin",
|
|
28
|
-
"aria-valuemax",
|
|
29
|
-
"aria-valuenow",
|
|
30
|
-
"aria-valuetext"
|
|
31
|
-
];
|
|
32
|
-
const _hoisted_8 = [
|
|
33
|
-
"aria-label",
|
|
34
|
-
"data-placement",
|
|
35
|
-
"data-variant"
|
|
36
|
-
];
|
|
37
|
-
const _hoisted_9 = ["id"];
|
|
38
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
39
|
-
name: "AstryxProgressBar",
|
|
40
|
-
inheritAttrs: false,
|
|
41
|
-
__name: "ProgressBar",
|
|
42
|
-
props: {
|
|
43
|
-
value: { default: 0 },
|
|
44
|
-
min: { default: 0 },
|
|
45
|
-
max: { default: 100 },
|
|
46
|
-
size: { default: "md" },
|
|
47
|
-
variant: { default: "accent" },
|
|
48
|
-
label: {},
|
|
49
|
-
isLabelHidden: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
description: {},
|
|
54
|
-
isIndeterminate: { type: Boolean },
|
|
55
|
-
isDisabled: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: false
|
|
58
|
-
},
|
|
59
|
-
showValue: { type: Boolean },
|
|
60
|
-
hasValueLabel: { type: Boolean },
|
|
61
|
-
valueText: {},
|
|
62
|
-
formatValueLabel: {},
|
|
63
|
-
marks: {},
|
|
64
|
-
width: {}
|
|
65
|
-
},
|
|
66
|
-
setup(__props) {
|
|
67
|
-
const props = __props;
|
|
68
|
-
const attrs = useAttrs();
|
|
69
|
-
const generatedId = `astryx-progress-bar-${useId()}`;
|
|
70
|
-
const rootId = computed(() => attrs.id ?? generatedId);
|
|
71
|
-
const labelId = computed(() => `${rootId.value}-label`);
|
|
72
|
-
const descriptionId = computed(() => props.description ? `${rootId.value}-description` : void 0);
|
|
73
|
-
function finite(value, fallback) {
|
|
74
|
-
return Number.isFinite(value) ? value : fallback;
|
|
75
|
-
}
|
|
76
|
-
const min = computed(() => finite(Number(props.min), 0));
|
|
77
|
-
const max = computed(() => finite(Number(props.max), 0));
|
|
78
|
-
const value = computed(() => finite(Number(props.value), 0));
|
|
79
|
-
const clamped = computed(() => Math.max(min.value, Math.min(max.value, value.value)));
|
|
80
|
-
const percentage = computed(() => {
|
|
81
|
-
if (max.value === min.value) return 0;
|
|
82
|
-
return (clamped.value - min.value) / (max.value - min.value) * 100;
|
|
83
|
-
});
|
|
84
|
-
const fillWidth = computed(() => ({ width: `${percentage.value}%` }));
|
|
85
|
-
const widthStyle = computed(() => ({ width: typeof props.width === "number" ? `${props.width}px` : props.width }));
|
|
86
|
-
const showsValue = computed(() => Boolean(props.showValue || props.hasValueLabel));
|
|
87
|
-
const displayValue = computed(() => {
|
|
88
|
-
if (props.valueText != null) return props.valueText;
|
|
89
|
-
if (props.formatValueLabel) return props.formatValueLabel(clamped.value, max.value);
|
|
90
|
-
return `${Math.round(percentage.value)}%`;
|
|
91
|
-
});
|
|
92
|
-
const labelledBy = computed(() => [labelId.value, attrs["aria-labelledby"]].filter(Boolean).join(" ") || void 0);
|
|
93
|
-
const describedBy = computed(() => [descriptionId.value, attrs["aria-describedby"]].filter(Boolean).join(" ") || void 0);
|
|
94
|
-
const resolvedMarks = computed(() => {
|
|
95
|
-
if (props.isIndeterminate || !props.marks) return [];
|
|
96
|
-
const span = max.value - min.value;
|
|
97
|
-
return props.marks.flatMap((mark, index) => {
|
|
98
|
-
if (!Number.isFinite(mark.value) || !mark.label) return [];
|
|
99
|
-
const clampedMark = Math.min(max.value, Math.max(min.value, mark.value));
|
|
100
|
-
const pct = span === 0 ? 0 : (clampedMark - min.value) / span * 100;
|
|
101
|
-
return [{
|
|
102
|
-
key: `${mark.value}:${mark.label}:${index}`,
|
|
103
|
-
label: mark.label,
|
|
104
|
-
pct,
|
|
105
|
-
onFill: percentage.value > 0 && pct <= percentage.value
|
|
106
|
-
}];
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
return (_ctx, _cache) => {
|
|
110
|
-
return openBlock(), createElementBlock("div", {
|
|
111
|
-
class: normalizeClass(["astryx-progress-bar", unref(attrs).class]),
|
|
112
|
-
style: normalizeStyle([widthStyle.value, unref(attrs).style]),
|
|
113
|
-
"data-size": __props.size,
|
|
114
|
-
"data-variant": __props.variant,
|
|
115
|
-
"data-indeterminate": __props.isIndeterminate || void 0,
|
|
116
|
-
"data-disabled": __props.isDisabled || void 0
|
|
117
|
-
}, [
|
|
118
|
-
__props.label && (!__props.isLabelHidden || showsValue.value) ? (openBlock(), createElementBlock("div", _hoisted_2, [__props.label ? (openBlock(), createElementBlock("span", {
|
|
119
|
-
key: 0,
|
|
120
|
-
id: labelId.value,
|
|
121
|
-
class: normalizeClass(["astryx-progress-bar-label", { "astryx-visually-hidden": __props.isLabelHidden }])
|
|
122
|
-
}, toDisplayString(__props.label), 11, _hoisted_3)) : createCommentVNode("v-if", true), showsValue.value && !__props.isIndeterminate ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(displayValue.value), 1)) : createCommentVNode("v-if", true)])) : __props.label ? (openBlock(), createElementBlock("span", {
|
|
123
|
-
key: 1,
|
|
124
|
-
id: labelId.value,
|
|
125
|
-
class: "astryx-visually-hidden"
|
|
126
|
-
}, toDisplayString(__props.label), 9, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
127
|
-
createElementVNode("div", _hoisted_6, [createElementVNode("div", {
|
|
128
|
-
class: "astryx-progress-bar-track",
|
|
129
|
-
role: "progressbar",
|
|
130
|
-
"aria-labelledby": labelledBy.value,
|
|
131
|
-
"aria-describedby": describedBy.value,
|
|
132
|
-
"aria-valuemin": __props.isIndeterminate ? void 0 : min.value,
|
|
133
|
-
"aria-valuemax": __props.isIndeterminate ? void 0 : max.value,
|
|
134
|
-
"aria-valuenow": __props.isIndeterminate ? void 0 : clamped.value,
|
|
135
|
-
"aria-valuetext": __props.isIndeterminate ? void 0 : displayValue.value
|
|
136
|
-
}, [createElementVNode("div", {
|
|
137
|
-
class: "astryx-progress-bar-fill",
|
|
138
|
-
style: normalizeStyle(__props.isIndeterminate ? void 0 : fillWidth.value)
|
|
139
|
-
}, null, 4)], 8, _hoisted_7), (openBlock(true), createElementBlock(Fragment, null, renderList(resolvedMarks.value, (mark) => {
|
|
140
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
141
|
-
key: mark.key,
|
|
142
|
-
class: "astryx-progress-bar-mark-anchor",
|
|
143
|
-
content: mark.label,
|
|
144
|
-
style: normalizeStyle({ insetInlineStart: `${mark.pct}%` })
|
|
145
|
-
}, {
|
|
146
|
-
default: withCtx(() => [createElementVNode("span", {
|
|
147
|
-
class: "astryx-progress-bar-mark",
|
|
148
|
-
tabindex: "0",
|
|
149
|
-
"aria-label": mark.label,
|
|
150
|
-
"data-placement": mark.onFill ? "fill" : "track",
|
|
151
|
-
"data-variant": __props.variant
|
|
152
|
-
}, null, 8, _hoisted_8)]),
|
|
153
|
-
_: 2
|
|
154
|
-
}, 1032, ["content", "style"]);
|
|
155
|
-
}), 128))]),
|
|
156
|
-
__props.description ? (openBlock(), createElementBlock("span", {
|
|
157
|
-
key: 2,
|
|
158
|
-
id: descriptionId.value,
|
|
159
|
-
class: "astryx-progress-bar-description"
|
|
160
|
-
}, toDisplayString(__props.description), 9, _hoisted_9)) : createCommentVNode("v-if", true)
|
|
161
|
-
], 14, _hoisted_1);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
//#endregion
|
|
166
|
-
export { _sfc_main as t };
|