@astryx-vue/core 0.33.4 → 0.34.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-CwyMvZEI.js → AlertDialog-rndlABEe.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-4hWTPKSD.js → AppShell-eVrOpRqn.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-C6E6TYbe.js → Avatar-CpWBsTqf.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BIPixZOb.js → AvatarGroup-BEBUEhxF.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CMXebR4Y.js → Banner-CVBNGDsD.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BmmGemH5.js → BottomSheet-B3qXtKQj.js} +1 -1
- package/dist/{BottomSheet-DKEUVLe5.js → BottomSheet-C6vet4pm.js} +8 -4
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BPxPAEHQ.js → Breadcrumbs-B-w_yw-n.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B7PvGVt6.js → Button-DTdlisqJ.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BkwQ0h97.js → ButtonGroup-Bjzs-HAG.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-BmfKiv69.js → Carousel-DjySyeDR.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-2AG37D51.js → Chat-DQ6BGAvP.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-rbMgS8ZL.js → CheckboxInput-DSW8yq92.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-Ckt1Cwt_.js → CheckboxListItem-B2E2O1AE.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Dh0tOQv-.js → ClickableCard-D4EGX9Dh.js} +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +3 -2
- package/dist/Code/languages/dockerfile/index.d.ts +5 -0
- package/dist/Code/languages/dockerfile/index.js +47 -0
- package/dist/Code/languages/graphql/index.d.ts +5 -0
- package/dist/Code/languages/graphql/index.js +24 -0
- package/dist/Code/languages/java/index.d.ts +5 -0
- package/dist/Code/languages/java/index.js +17 -0
- package/dist/Code/languages/lua/index.d.ts +5 -0
- package/dist/Code/languages/lua/index.js +14 -0
- package/dist/Code/languages/objective-c/index.d.ts +5 -0
- package/dist/Code/languages/objective-c/index.js +29 -0
- package/dist/Code/languages/powershell/index.d.ts +5 -0
- package/dist/Code/languages/powershell/index.js +36 -0
- package/dist/Code/languages/ruby/index.d.ts +5 -0
- package/dist/Code/languages/ruby/index.js +21 -0
- package/dist/Code/languages/thrift/index.d.ts +5 -0
- package/dist/Code/languages/thrift/index.js +15 -0
- package/dist/Code/languages/toml/index.d.ts +5 -0
- package/dist/Code/languages/toml/index.js +55 -0
- package/dist/{CodeBlock-ZluDuBT7.js → CodeBlock-D7ZJQV5Q.js} +309 -96
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B_9H2wV_.js → Collapsible-C5xSG7oP.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-Cbr-WWC8.js → CommandPalette-BUNdrxrB.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BPvBCUJk.js → ComplexSelector-m9wi7E0j.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BF4ALBZn.js → ContextMenu-BEHfVIAq.js} +5 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-C7PICKR2.js → DateInput-CHeetz7k.js} +5 -5
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Dt-BA7AA.js → DateRangeInput-D524C1wc.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-XEESzGJf.js → DateTimeInput-2gTBrcbr.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-B1xC9xMC.js → Dialog-DS3xE1B7.js} +2 -2
- package/dist/{Dialog-BmdNX3NC.js → Dialog-nyLGClca.js} +1 -1
- package/dist/{DialogHeader-DcP4xAk3.js → DialogHeader-u_AaZpyZ.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CdHbZffI.js → Drawer-DqUdaZFh.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C1494BkC.js → DropdownMenu-DlAON5Jf.js} +8 -8
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BAP8BpDj.js → EmptyState-DU7uOI2G.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-KszpxUdx.js → Field-YNS4XxpR.js} +1 -1
- package/dist/{FieldInfoTip-CY9BTVtK.js → FieldInfoTip-DFlIBJlR.js} +1 -1
- package/dist/{FieldLabel-KPCTcJpO.js → FieldLabel-i0gos7hU.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BTIn6OoY.js → FileInput-DYVzAtvz.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-D94VFJtm.js → Heading-BZ0ydu2s.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-rwpyd6nt.js → HoverCard-BhHZE9q6.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-e5xeGow-.js → IconButton-DXt8DtsN.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DpvV8zrm.js → InfoTip--fZOD0ux.js} +2 -2
- package/dist/{InputClearButton-BzxJH6mk.js → InputClearButton-LF0iVTVF.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Bj4hksiI.js → InputGroup-D4CPVzo0.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
- package/dist/{Item-D62Cibn1.js → Item-BKISM91o.js} +1 -1
- package/dist/{LayerContentBoundary-CTjEpdM4.js → LayerContentBoundary-D67fobWl.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-SJoCw8NC.js → Layout-BwSvAsLi.js} +1 -1
- package/dist/{LayoutPanel-DZN4RxX6.js → LayoutPanel-CmzJQpnL.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-FWtAn7X5.js → Lightbox-B32Yh8Uy.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BxK3lbA-.js → Link-DSXyw9MW.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-B4jt3EXr.js → ListItem-D3iEhvU2.js} +4 -4
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/Markdown/parser/index.js +1 -1
- package/dist/{Markdown-CsoseOGe.js → Markdown-BvWEX29v.js} +81 -6
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-AgT6hzTg.js → MobileNavToggle-sC6GPVKQ.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-4zcxptan.js → MoreMenu-CcavOuxV.js} +7 -7
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-LuAE71wE.js → MultiSelector-Diu5zHbP.js} +5 -5
- package/dist/{NavDisclosure-CSnUZY3k.js → NavDisclosure-BpYjtYo5.js} +1 -1
- package/dist/{NavHeadingSurface-C3fTf5--.js → NavHeadingSurface-CK9zMjFC.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-mcmzIshL.js → NavItem-DlW8noR6.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-Bp35Bk7_.js → NavMenu-J2kmtb1B.js} +2 -2
- package/dist/{NavMenuItem-DviXkleh.js → NavMenuItem-DItNRTDZ.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CxzhFPQw.js → NumberInput-vhm5TQon.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-KpA-ffCT.js → Outline-CVIDd0fN.js} +3 -67
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DRZxrAYq.js → OverflowList-DjWWBOkx.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B3JMAlnl.js → Pagination-DKsePQjC.js} +2 -2
- package/dist/{PanGestureRecognizer-R5y8LZ9h.js → PanGestureRecognizer-C7hNunjF.js} +1 -1
- package/dist/PickerWheel-Bf7xe6g6.js +1131 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CQr95J2s.js → Popover-CKgepPJ6.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BEaqgsZa.js → PowerSearch-v_MRx2nn.js} +27 -27
- package/dist/{PressTracker-Dze87pxw.js → PressTracker-DL75qEq_.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChgsiVRR.js → ProgressBar-B2ds3imd.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CpMYh9eL.js → RadioGroup-C-S-SnbH.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-n-h5r1GO.js → RadioListItem-DzKVK4DZ.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-J9-dAMuo.js → ResizeHandle-CaZEB4Py.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-nz9d6e0y.js → SegmentedControl-Bp7dpEjn.js} +10 -10
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-C018jluo.js → SelectableCard-DPWaUCGZ.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CW1jaM4F.js → Selector-CJmeuWhN.js} +3 -3
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DgRpBPuP.js → SideNav-D-AQqNPx.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bz72itTP.js → Slider-DU-Yl3fd.js} +9 -150
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D7nVuPg7.js → StatusDot-Jw676Z_6.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-Af_rH8C4.js → Stepper-67SsxUne.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BYsb1gKn.js → Switch-C6qaebkX.js} +10 -10
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cgw2IuL-.js → TabList-TbJ6y1gN.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DzE-4_og.js → Table-CbMxkm2v.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-kwsIut3C.js → Text-bvai__ae.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DrYMTaZm.js → TextArea-D6EtmxTk.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B-1cuwcB.js → TextInput-AngvgtdT.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DeMaRkDU.js → Thumbnail-DExkxw8a.js} +3 -3
- package/dist/{TimeField-C1Nv-fz3.js → TimeField-BNGg25yA.js} +9 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Dvh6qqHI.js → TimeInput-D8lwgHOR.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B-9sSJWK.js → Timer-CO-JNJTI.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-wFkl39dn.js → Timestamp-CeSb1A8c.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CO6Z1r1s.js → Toast-B2Fq-JYA.js} +4 -107
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DPpjDYxP.js → ToggleButton-Bn8yLHbh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DZkUAIYA.js → Token-Dpxh42Mw.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CX7D4klL.js → Tokenizer-B3EnI98V.js} +12 -12
- 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-DyGaJUbl.js → Tooltip-BdG9g6c6.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D8Hc_kQ-.js → TopNav-D7mzM7pu.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-lNyuRBOk.js → TreeList-BmeXFFqr.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BiosTaFo.js → Typeahead-kLp9UG-Q.js} +5 -5
- package/dist/{accessibleName-f5xApbXG.js → accessibleName-Zr1_WoBg.js} +1 -1
- package/dist/{animator-ozeBZ_zC.js → animator-Bptiubcx.js} +1 -1
- package/dist/{boxHold-YML2o6iP.js → boxHold-Bh1fTcXx.js} +5 -5
- package/dist/{browserClickWait-DIj9tkLa.js → browserClickWait-CiUtuWNK.js} +2 -2
- package/dist/{clickGuard-CxqcfBCJ.js → clickGuard-Bd-jBj_G.js} +2 -2
- package/dist/code-block-DCVrTLMZ.js +19 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-CPDafrux.js → composables-B6ebqwHY.js} +7 -68
- package/dist/{context-C1MPE6J5.js → context-Dweha8vW.js} +1 -1
- package/dist/decay-TluwbMlP.js +64 -0
- package/dist/{sharedRealm-DBtNH73I.js → flatTree-BB4yPMNL.js} +1 -57
- package/dist/{geometry-CGa3nNzZ.js → geometry-0e0f5Mjv.js} +9 -8
- package/dist/grammar-4Pn2745Q.d.ts +58 -0
- package/dist/grammar-Dz71GleT.js +144 -0
- package/dist/haptics-DIfaJavG.js +146 -0
- package/dist/{holdEntranceInput-C8B_DYYs.js → holdEntranceInput-DWqsAYll.js} +1 -1
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-BdICULsZ.d.ts → index-BHoivOHG.d.ts} +506 -110
- package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
- package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
- package/dist/{index-B6GTqpW-.d.ts → index-BWzEt0gT.d.ts} +2 -2
- package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
- package/dist/{index-DlsrR4Gm.d.ts → index-BZx7HHxY.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C9uW39Mj.d.ts → index-Cm36VS1A.d.ts} +1 -1
- package/dist/{index-DhrnMYVh.d.ts → index-D1C2Nt3F.d.ts} +2 -2
- package/dist/{index-BU1HdDER.d.ts → index-D8VViJw0.d.ts} +3 -1
- package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
- package/dist/{index-jz9GfvS0.d.ts → index-DEJlE6_N.d.ts} +2 -2
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-CpkQlo1t.d.ts → index-E4L3DiiH.d.ts} +1 -1
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-tdOyqA_U.d.ts → index-a6o69uPN.d.ts} +2 -2
- package/dist/index.d.ts +21 -21
- package/dist/index.js +108 -106
- package/dist/{inputHold-BJtjc9iI.js → inputHold-CvjeOOWT.js} +4 -4
- package/dist/{inputHoldState-BYi5FKZl.js → inputHoldState-Cg1r8Ib7.js} +2 -2
- package/dist/{inputStream-HXw2lZ-3.js → inputStream-DkMWPYac.js} +1 -1
- package/dist/{landing-BW6qLvC8.js → landing-CrVewjeb.js} +1 -1
- package/dist/{layerDepth-SGFJ5L6X.js → layerDepth-DRfWATFr.js} +1 -1
- package/dist/{lazyBottomSheet-Bg5E8lr3.js → lazyBottomSheet-DlHcPsAT.js} +1 -1
- package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
- package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -2
- package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
- package/dist/{presentation-twEOzzJq.js → presentation-Cl58tYA6.js} +2 -1
- package/dist/{pressGesture-B3Efxs_z.js → pressGesture-CfBgXWRM.js} +13 -0
- package/dist/pressSlot-B6TvGkSO.js +222 -0
- package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
- package/dist/reducedMotion-D8-U7XFT.js +121 -0
- package/dist/{reportChange-DwOfucSf.js → reportChange-CUo2YNPB.js} +2 -2
- package/dist/{resizableChannel-BnwrR5tr.js → resizableChannel-CaaqGvXj.js} +3 -3
- package/dist/scrollView-DcPpdCrj.js +128 -0
- package/dist/{selectionLock-BrUpRS0E.js → selectionLock-BM8XEZQD.js} +2 -1
- package/dist/sharedRealm-BYHklCVM.js +57 -0
- package/dist/{stillPointerGate-BvCX7ddI.js → stillPointerGate-BU1CKW7m.js} +1 -1
- package/dist/{tooltipFocusRules-CxIlSnHw.js → tooltipFocusRules-GGASOH_U.js} +2 -2
- package/dist/{tooltipTriggerRules-CHNpQ6RL.js → tooltipTriggerRules-DIaGdkD_.js} +1 -1
- package/dist/{touchHold-CjNjGH7O.js → touchHold-CciGr8hU.js} +1 -1
- package/dist/{useActionGroupTracking-BTjuGF9J.js → useActionGroupTracking-DjIdPbfL.js} +4 -3
- package/dist/{useAnimatedLayout-CRAuCwTZ.js → useAnimatedLayout-Dq-cttfe.js} +1 -1
- package/dist/{useChatStreamScroll-DcNKcNTj.js → useChatStreamScroll-DEp17Yq9.js} +1 -1
- package/dist/{useDismiss-6SGAlkB_.js → useDismiss-CegXF2Zo.js} +1 -1
- package/dist/useGestureRecognizer-DDd-6Km-.js +106 -0
- package/dist/{useInputStatusIcon-Bl2JFlc3.js → useInputStatusIcon-m6l4qBmA.js} +1 -1
- package/dist/{useMenuEntranceHold-C-kHicUN.js → useMenuEntranceHold-C4LOzKIS.js} +1 -1
- package/dist/{useMenuPress-CF1GHP_7.js → useMenuPress-BDPqPten.js} +4 -4
- package/dist/usePressFeedback-D2mWzgoJ.js +380 -0
- package/dist/{useResizable-I0APFcMz.js → useResizable-Bwv-j_9N.js} +2 -2
- package/dist/{useTooltip-owvVSn_m.js → useTooltip-DCp4sTM1.js} +4 -4
- package/dist/{useTouchHitArea-BpEJXuu-.js → useTouchHitArea-DL9D10Rq.js} +2 -2
- package/dist/{useTouchTriggerInternal-5ExaYYSy.js → useTouchTriggerInternal-C_mowlpv.js} +1 -1
- package/dist/{useTruncationTooltip-DHI6q_EV.js → useTruncationTooltip-Du80jGdE.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-COiZ4isy.js → useTypeaheadMenuConfig-B14t0HGE.js} +1 -1
- package/package.json +37 -1
- package/reset.css +14 -0
- package/styles/code.css +85 -8
- package/styles/date-input.css +69 -0
- package/styles/markdown.css +6 -5
- package/styles/progress-bar.css +25 -26
- package/dist/PickerWheel-DNX3yrUd.js +0 -82
- package/dist/index-C9ZssPUV.d.ts +0 -380
- package/dist/pressFeedback--_INTed0.js +0 -470
- package/dist/usePressFeedback-B_NavJu0.js +0 -49
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.34.1",
|
|
5
5
|
"description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -336,6 +336,42 @@
|
|
|
336
336
|
"types": "./dist/Code/index.d.ts",
|
|
337
337
|
"import": "./dist/Code/index.js"
|
|
338
338
|
},
|
|
339
|
+
"./Code/languages/dockerfile": {
|
|
340
|
+
"types": "./dist/Code/languages/dockerfile/index.d.ts",
|
|
341
|
+
"import": "./dist/Code/languages/dockerfile/index.js"
|
|
342
|
+
},
|
|
343
|
+
"./Code/languages/graphql": {
|
|
344
|
+
"types": "./dist/Code/languages/graphql/index.d.ts",
|
|
345
|
+
"import": "./dist/Code/languages/graphql/index.js"
|
|
346
|
+
},
|
|
347
|
+
"./Code/languages/java": {
|
|
348
|
+
"types": "./dist/Code/languages/java/index.d.ts",
|
|
349
|
+
"import": "./dist/Code/languages/java/index.js"
|
|
350
|
+
},
|
|
351
|
+
"./Code/languages/lua": {
|
|
352
|
+
"types": "./dist/Code/languages/lua/index.d.ts",
|
|
353
|
+
"import": "./dist/Code/languages/lua/index.js"
|
|
354
|
+
},
|
|
355
|
+
"./Code/languages/objective-c": {
|
|
356
|
+
"types": "./dist/Code/languages/objective-c/index.d.ts",
|
|
357
|
+
"import": "./dist/Code/languages/objective-c/index.js"
|
|
358
|
+
},
|
|
359
|
+
"./Code/languages/powershell": {
|
|
360
|
+
"types": "./dist/Code/languages/powershell/index.d.ts",
|
|
361
|
+
"import": "./dist/Code/languages/powershell/index.js"
|
|
362
|
+
},
|
|
363
|
+
"./Code/languages/ruby": {
|
|
364
|
+
"types": "./dist/Code/languages/ruby/index.d.ts",
|
|
365
|
+
"import": "./dist/Code/languages/ruby/index.js"
|
|
366
|
+
},
|
|
367
|
+
"./Code/languages/thrift": {
|
|
368
|
+
"types": "./dist/Code/languages/thrift/index.d.ts",
|
|
369
|
+
"import": "./dist/Code/languages/thrift/index.js"
|
|
370
|
+
},
|
|
371
|
+
"./Code/languages/toml": {
|
|
372
|
+
"types": "./dist/Code/languages/toml/index.d.ts",
|
|
373
|
+
"import": "./dist/Code/languages/toml/index.js"
|
|
374
|
+
},
|
|
339
375
|
"./DropdownMenu": {
|
|
340
376
|
"types": "./dist/DropdownMenu/index.d.ts",
|
|
341
377
|
"import": "./dist/DropdownMenu/index.js"
|
package/reset.css
CHANGED
|
@@ -60,8 +60,14 @@
|
|
|
60
60
|
*
|
|
61
61
|
* color-scheme: light dark 声明页面同时支持浅色和深色,
|
|
62
62
|
* 让 CSS 的 light-dark() 能正确取值。
|
|
63
|
+
*
|
|
64
|
+
* html 取 --astryx-font-family-body,body 继承它:库会往 body 里直接放不在 Theme
|
|
65
|
+
* 包装元素里的文字(比如图表用来量标签宽度的 span),这些文字就拿到页面根上的主题字体,
|
|
66
|
+
* 不会退回浏览器默认的衬线体。没有任何样式表定义这个变量时,声明无效,html 保持浏览器默认字体;
|
|
67
|
+
* 应用自己写在 html 或 body 上的字体优先。
|
|
63
68
|
*/
|
|
64
69
|
:where(html) {
|
|
70
|
+
font-family: var(--astryx-font-family-body);
|
|
65
71
|
line-height: 1.5;
|
|
66
72
|
-webkit-text-size-adjust: 100%;
|
|
67
73
|
tab-size: 4;
|
|
@@ -239,6 +245,14 @@
|
|
|
239
245
|
color: var(--astryx-color-text-secondary, light-dark(#474747, #a8a8a8));
|
|
240
246
|
}
|
|
241
247
|
|
|
248
|
+
/*
|
|
249
|
+
* Chromium 把带 `list` 的输入框的下拉标记画成一个字形,按输入框继承来的行高排版,
|
|
250
|
+
* 行高大于 1 时标记就落在输入框中线以下。设成单行高,标记回到中间。
|
|
251
|
+
*/
|
|
252
|
+
:where([list])::-webkit-calendar-picker-indicator {
|
|
253
|
+
line-height: 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
242
256
|
/*
|
|
243
257
|
* 去掉搜索框在 Chrome 和 Safari 里自带的内边距和清除按钮。
|
|
244
258
|
*/
|
package/styles/code.css
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.astryx-code-block {
|
|
33
|
+
/* 页面在这里的方向。代码视口固定从左到右,让代码按写下的样子滚动和换行;行号栏、分隔线和 diff 符号读这个变量,跟着页面镜像。 */
|
|
34
|
+
--_codeblock-direction: ltr;
|
|
33
35
|
position: relative;
|
|
34
36
|
display: flex;
|
|
35
37
|
flex-direction: column;
|
|
@@ -44,6 +46,20 @@
|
|
|
44
46
|
white-space: normal;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
.astryx-code-block:dir(rtl) {
|
|
50
|
+
--_codeblock-direction: rtl;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* 没有标题栏时,复制按钮和调用方的控件排在代码右边自己的一列里,不盖住代码:
|
|
55
|
+
* 滚动、换行、RTL 下都没有哪一行从按钮底下穿过。
|
|
56
|
+
*/
|
|
57
|
+
.astryx-code-block[data-corner] {
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
60
|
+
grid-template-rows: minmax(0, 1fr);
|
|
61
|
+
}
|
|
62
|
+
|
|
47
63
|
.astryx-code-block[data-container='card'] {
|
|
48
64
|
border: var(--astryx-border-width, 1px) solid var(--astryx-code-block-border, #00000014);
|
|
49
65
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
@@ -77,6 +93,31 @@
|
|
|
77
93
|
border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-code-block-border, #00000014);
|
|
78
94
|
}
|
|
79
95
|
|
|
96
|
+
/* 标题栏右边的控件:调用方的内容在前,复制按钮在后。 */
|
|
97
|
+
.astryx-code-block__controls {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* 角落的控件簇和第一行代码等高(上下内边距加一个行盒),控件在里面居中,
|
|
106
|
+
* 所以任何高度的控件都落在第一行上;代码块变高时控件原地不动。
|
|
107
|
+
*/
|
|
108
|
+
.astryx-code-block__corner {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
align-self: start;
|
|
112
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
113
|
+
margin-inline: var(--astryx-spacing-2, 8px);
|
|
114
|
+
block-size: calc(2 * var(--astryx-spacing-3, 12px) + var(--astryx-text-code-size, 0.875rem) * var(--astryx-text-code-leading, 1.4286));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.astryx-code-block__corner[data-size='sm'] {
|
|
118
|
+
block-size: calc(2 * var(--astryx-spacing-3, 12px) + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-code-leading, 1.4286));
|
|
119
|
+
}
|
|
120
|
+
|
|
80
121
|
.astryx-code-block__title-control {
|
|
81
122
|
display: flex;
|
|
82
123
|
align-items: center;
|
|
@@ -110,8 +151,11 @@
|
|
|
110
151
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
111
152
|
font-weight: var(--astryx-font-weight-medium, 500);
|
|
112
153
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
113
|
-
/*
|
|
114
|
-
|
|
154
|
+
/* 根元素是 pre,标题会继承 pre 的 white-space 而不换行,长标题就会压到右边的控件底下;这里让它自己换行。 */
|
|
155
|
+
min-width: 0;
|
|
156
|
+
overflow-wrap: anywhere;
|
|
157
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
158
|
+
white-space: pre-wrap;
|
|
115
159
|
}
|
|
116
160
|
|
|
117
161
|
/*
|
|
@@ -131,6 +175,11 @@
|
|
|
131
175
|
animation: astryx-code-block-chevron-reveal var(--astryx-duration-medium-max, 400ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
132
176
|
}
|
|
133
177
|
|
|
178
|
+
/* 折叠时的箭头指向行末方向,RTL 下镜像。镜像放在这个盒子上,图标自己的旋转动画不受影响。 */
|
|
179
|
+
.astryx-code-block__chevron:dir(rtl) {
|
|
180
|
+
transform: scaleX(-1);
|
|
181
|
+
}
|
|
182
|
+
|
|
134
183
|
.astryx-code-block__chevron-icon {
|
|
135
184
|
transition: transform var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
136
185
|
}
|
|
@@ -186,6 +235,36 @@
|
|
|
186
235
|
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
187
236
|
}
|
|
188
237
|
|
|
238
|
+
/*
|
|
239
|
+
* 手机、平板的滚动条只在滚动时出现,横向藏着内容的那一侧边缘淡出,提示还能滑。
|
|
240
|
+
* 鼠标和触控板看不到淡出;键盘焦点环画在视口里面,所以获得焦点时也不淡出。
|
|
241
|
+
*/
|
|
242
|
+
.astryx-code-block__scroll[data-scrollable-inline='true'] {
|
|
243
|
+
--_scroll-fade-start: 0px;
|
|
244
|
+
--_scroll-fade-end: 0px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not([data-scroll-inline-start='true']) {
|
|
248
|
+
--_scroll-fade-start: var(--_scroll-fade-length, var(--astryx-spacing-8, 32px));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not([data-scroll-inline-end='true']) {
|
|
252
|
+
--_scroll-fade-end: var(--_scroll-fade-length, var(--astryx-spacing-8, 32px));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@media (pointer: coarse) {
|
|
256
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not(:focus-visible) {
|
|
257
|
+
mask-image: linear-gradient(to right, transparent 0, black var(--_scroll-fade-start), black calc(100% - var(--_scroll-fade-end)), transparent 100%);
|
|
258
|
+
scroll-padding-inline: var(--_scroll-fade-start) var(--_scroll-fade-end);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (forced-colors: active) {
|
|
263
|
+
.astryx-code-block__scroll {
|
|
264
|
+
mask-image: none;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
189
268
|
.astryx-code-block__wrap {
|
|
190
269
|
display: flex;
|
|
191
270
|
min-width: fit-content;
|
|
@@ -201,6 +280,8 @@
|
|
|
201
280
|
margin: 0;
|
|
202
281
|
padding-block: var(--astryx-spacing-3, 12px);
|
|
203
282
|
padding-inline: var(--astryx-spacing-4, 16px);
|
|
283
|
+
/* 每行按页面方向排行号栏;每行的代码自己带 dir="auto"。 */
|
|
284
|
+
direction: var(--_codeblock-direction, ltr);
|
|
204
285
|
color: var(--astryx-code-syntax-variable, #111111);
|
|
205
286
|
font-family: var(--astryx-font-family-code, monospace);
|
|
206
287
|
font-size: var(--astryx-text-code-size, 0.875rem);
|
|
@@ -267,7 +348,9 @@
|
|
|
267
348
|
}
|
|
268
349
|
|
|
269
350
|
/* Keeps the tokens of one line in a single grid cell when numbers are on. */
|
|
351
|
+
/* 做成块,让每行靠自己方向的起始边对齐,不受外面一行方向的影响。 */
|
|
270
352
|
.astryx-code-block__line-content {
|
|
353
|
+
display: block;
|
|
271
354
|
min-width: 0;
|
|
272
355
|
}
|
|
273
356
|
|
|
@@ -348,12 +431,6 @@
|
|
|
348
431
|
--astryx-button-ghost-foreground: var(--astryx-code-syntax-comment, #525252);
|
|
349
432
|
}
|
|
350
433
|
|
|
351
|
-
.astryx-code-block .astryx-code-block-copy-button--floating {
|
|
352
|
-
position: absolute;
|
|
353
|
-
top: var(--astryx-spacing-2, 8px);
|
|
354
|
-
inset-inline-end: var(--astryx-spacing-2, 8px);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
434
|
.astryx-token-keyword,
|
|
358
435
|
.astryx-code-block code::highlight(astryx-keyword) {
|
|
359
436
|
color: var(--astryx-code-syntax-keyword, #6b187c);
|
package/styles/date-input.css
CHANGED
|
@@ -294,6 +294,75 @@
|
|
|
294
294
|
background: var(--astryx-color-background-selected, #eef2ff);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
/*
|
|
298
|
+
* 手指下的滚轮(UIPickerView):列不原生滚动,只有一条装着所有行的
|
|
299
|
+
* 长条在动,由动画器写它的 translate。行平排、28px 一行,往列的上下边渐隐。
|
|
300
|
+
*/
|
|
301
|
+
.astryx-picker-wheel-touch {
|
|
302
|
+
position: relative;
|
|
303
|
+
min-width: 0;
|
|
304
|
+
height: calc(6 * 44px);
|
|
305
|
+
overflow: hidden;
|
|
306
|
+
outline: none;
|
|
307
|
+
-webkit-tap-highlight-color: transparent;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.astryx-picker-wheel-touch:focus-visible {
|
|
311
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, #0074e2);
|
|
312
|
+
outline-offset: var(--astryx-focus-outline-offset, 2px);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* 渐隐层在列里面,遮罩不会裁掉列的焦点框。行离选择带四行仍保有足够对比度。 */
|
|
316
|
+
.astryx-picker-wheel-fade {
|
|
317
|
+
position: absolute;
|
|
318
|
+
inset: 0;
|
|
319
|
+
pointer-events: none;
|
|
320
|
+
mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.7), rgb(0 0 0) 50%, rgb(0 0 0 / 0.7));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.astryx-picker-wheel-band,
|
|
324
|
+
.astryx-picker-wheel-strip {
|
|
325
|
+
position: absolute;
|
|
326
|
+
inset-inline: 0;
|
|
327
|
+
top: calc(50% - 14px);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.astryx-picker-wheel-band {
|
|
331
|
+
height: 28px;
|
|
332
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
333
|
+
background: var(--astryx-color-neutral, #0000000f);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.astryx-picker-wheel-row {
|
|
337
|
+
position: absolute;
|
|
338
|
+
inset-inline: 0;
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
justify-content: center;
|
|
342
|
+
box-sizing: border-box;
|
|
343
|
+
height: 28px;
|
|
344
|
+
padding-inline: var(--astryx-spacing-2, 8px);
|
|
345
|
+
overflow: hidden;
|
|
346
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
347
|
+
font-size: var(--astryx-text-large-size, 1.0625rem);
|
|
348
|
+
font-weight: var(--astryx-font-weight-normal, 400);
|
|
349
|
+
line-height: var(--astryx-text-large-leading, 1.5rem);
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
text-overflow: ellipsis;
|
|
352
|
+
user-select: none;
|
|
353
|
+
pointer-events: auto;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* 选择带上的行。标记不做过渡:动画中的颜色或字重每帧都要重排重绘。 */
|
|
357
|
+
.astryx-picker-wheel-row[data-marked] {
|
|
358
|
+
color: var(--astryx-color-text-accent, #0074e2);
|
|
359
|
+
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.astryx-picker-wheel-row[data-disabled] {
|
|
363
|
+
color: var(--astryx-color-text-disabled, #a3a3a3);
|
|
364
|
+
}
|
|
365
|
+
|
|
297
366
|
.astryx-date-touch-save {
|
|
298
367
|
width: 100%;
|
|
299
368
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
package/styles/markdown.css
CHANGED
|
@@ -244,10 +244,10 @@
|
|
|
244
244
|
flex-direction: column;
|
|
245
245
|
gap: var(--astryx-spacing-0-5, 2px);
|
|
246
246
|
margin-block: var(--astryx-spacing-3, 12px);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
width:
|
|
250
|
-
max-width:
|
|
247
|
+
/* 列表待在正文这一栏里:不向两侧外扩,窄屏上也不会把页面撑宽。 */
|
|
248
|
+
margin-inline: 0;
|
|
249
|
+
width: 100%;
|
|
250
|
+
max-width: var(--astryx-markdown-measure, 100%);
|
|
251
251
|
padding: 0;
|
|
252
252
|
list-style: none;
|
|
253
253
|
}
|
|
@@ -275,7 +275,8 @@
|
|
|
275
275
|
gap: var(--astryx-spacing-2, 8px);
|
|
276
276
|
margin: 0;
|
|
277
277
|
padding-block: var(--astryx-spacing-1, 4px);
|
|
278
|
-
|
|
278
|
+
/* 行内不留左右边距,序号、勾选框和文字都落在正文这一栏的边上。 */
|
|
279
|
+
padding-inline: 0;
|
|
279
280
|
list-style: none;
|
|
280
281
|
}
|
|
281
282
|
|
package/styles/progress-bar.css
CHANGED
|
@@ -64,20 +64,9 @@
|
|
|
64
64
|
background: var(--astryx-color-on-accent, #fff);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.astryx-progress-bar[data-variant='warning'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
72
|
-
background: var(--astryx-color-on-warning, #171717);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.astryx-progress-bar[data-variant='error'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
76
|
-
background: var(--astryx-color-on-error, #fff);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.astryx-progress-bar[data-variant='neutral'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
80
|
-
background: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
67
|
+
/* 除 accent 外,填充都是文字角色,主题把它们设成在自己的表面上读得清,所以填充里的标记取表面色。 */
|
|
68
|
+
.astryx-progress-bar:is([data-variant='success'], [data-variant='warning'], [data-variant='error'], [data-variant='neutral'], [data-disabled]) .astryx-progress-bar-mark[data-placement='fill'] {
|
|
69
|
+
background: var(--astryx-color-background-surface, light-dark(#fff, #171717));
|
|
81
70
|
}
|
|
82
71
|
|
|
83
72
|
.astryx-progress-bar-mark:focus-visible {
|
|
@@ -126,15 +115,15 @@
|
|
|
126
115
|
}
|
|
127
116
|
|
|
128
117
|
.astryx-progress-bar[data-variant='success'] .astryx-progress-bar-fill {
|
|
129
|
-
background: var(--astryx-progress-bar-success-fill, var(--astryx-
|
|
118
|
+
background: var(--astryx-progress-bar-success-fill, var(--astryx-color-text-success, light-dark(#2f7d33, #90ca90)));
|
|
130
119
|
}
|
|
131
120
|
|
|
132
121
|
.astryx-progress-bar[data-variant='warning'] .astryx-progress-bar-fill {
|
|
133
|
-
background: var(--astryx-progress-bar-warning-fill, var(--astryx-
|
|
122
|
+
background: var(--astryx-progress-bar-warning-fill, var(--astryx-color-text-warning, light-dark(#836700, #eec448)));
|
|
134
123
|
}
|
|
135
124
|
|
|
136
125
|
.astryx-progress-bar[data-variant='error'] .astryx-progress-bar-fill {
|
|
137
|
-
background: var(--astryx-progress-bar-error-fill, var(--astryx-
|
|
126
|
+
background: var(--astryx-progress-bar-error-fill, var(--astryx-color-text-error, light-dark(#c0262c, #ffaea7)));
|
|
138
127
|
}
|
|
139
128
|
|
|
140
129
|
.astryx-progress-bar[data-variant='accent'] .astryx-progress-bar-fill {
|
|
@@ -145,16 +134,27 @@
|
|
|
145
134
|
background: var(--astryx-progress-bar-info-fill, var(--astryx-input-info, #6d9cfe));
|
|
146
135
|
}
|
|
147
136
|
|
|
148
|
-
/*
|
|
137
|
+
/* 次要文字色在默认轨道上够 3:1;禁用文字色在一些主题里就是深色轨道本身的颜色,会隐形。
|
|
138
|
+
轨道更接近次要文字色的主题,用 --astryx-progress-bar-neutral-fill 换一个更亮的色阶。 */
|
|
149
139
|
.astryx-progress-bar[data-variant='neutral'] .astryx-progress-bar-fill {
|
|
150
|
-
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-
|
|
140
|
+
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3)));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* 禁用的进度条沿用 neutral 的填充,轨道和填充一起降到半透明,和禁用的滑块、开关轨道一样;
|
|
144
|
+
文字和标记另行降一档。标记能获得焦点,所以不跟着变淡,焦点环的对比度才不会掉。
|
|
145
|
+
强制颜色模式会替换填充色,所以用 GrayText 描一圈标出禁用的填充。 */
|
|
146
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-track {
|
|
147
|
+
opacity: 0.5;
|
|
151
148
|
}
|
|
152
149
|
|
|
153
|
-
/* A disabled bar dims everything it draws: the fill drops the variant color
|
|
154
|
-
for the disabled foreground, and the label, value and marks step down to
|
|
155
|
-
the muted ramp. */
|
|
156
150
|
.astryx-progress-bar[data-disabled] .astryx-progress-bar-fill {
|
|
157
|
-
background: var(--astryx-color-text-
|
|
151
|
+
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3)));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@media (forced-colors: active) {
|
|
155
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-fill {
|
|
156
|
+
outline: 1px solid GrayText;
|
|
157
|
+
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.astryx-progress-bar[data-disabled] .astryx-progress-bar-label,
|
|
@@ -162,9 +162,8 @@
|
|
|
162
162
|
color: var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252));
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
/*
|
|
166
|
-
|
|
167
|
-
.astryx-progress-bar[data-disabled] .astryx-progress-bar-mark[data-placement] {
|
|
165
|
+
/* 属性选择器重复一次,这样它也压得过上面「变体加位置」的规则,两者优先级相同。 */
|
|
166
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-mark[data-placement='track'] {
|
|
168
167
|
background: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Fragment, createElementBlock, defineComponent, openBlock, renderList, toDisplayString } from "vue";
|
|
2
|
-
//#region src/DateInput/PickerWheel.vue
|
|
3
|
-
const _hoisted_1 = ["aria-label", "aria-activedescendant"];
|
|
4
|
-
const _hoisted_2 = [
|
|
5
|
-
"id",
|
|
6
|
-
"aria-selected",
|
|
7
|
-
"aria-disabled",
|
|
8
|
-
"disabled",
|
|
9
|
-
"onClick"
|
|
10
|
-
];
|
|
11
|
-
const PAGE_ROWS = 10;
|
|
12
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
13
|
-
__name: "PickerWheel",
|
|
14
|
-
props: {
|
|
15
|
-
label: {},
|
|
16
|
-
options: {},
|
|
17
|
-
modelValue: {}
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:modelValue"],
|
|
20
|
-
setup(__props, { emit: __emit }) {
|
|
21
|
-
const props = __props;
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
function enabled() {
|
|
24
|
-
return props.options.filter((option) => !option.disabled);
|
|
25
|
-
}
|
|
26
|
-
function choose(value, disabled) {
|
|
27
|
-
if (!disabled) emit("update:modelValue", value);
|
|
28
|
-
}
|
|
29
|
-
/** Page Up / Page Down 一次走的行数。 */
|
|
30
|
-
const STEPS = {
|
|
31
|
-
ArrowUp: -1,
|
|
32
|
-
ArrowDown: 1,
|
|
33
|
-
PageUp: -10,
|
|
34
|
-
PageDown: PAGE_ROWS
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* 滚轮是 listbox:方向键走一行,Page 键走十行,Home / End 到头。
|
|
38
|
-
* 只在可选的行之间走,走到头就停在头上,不绕回另一头。
|
|
39
|
-
*/
|
|
40
|
-
function onKeydown(event) {
|
|
41
|
-
const step = STEPS[event.key];
|
|
42
|
-
if (step == null && event.key !== "Home" && event.key !== "End") return;
|
|
43
|
-
event.preventDefault();
|
|
44
|
-
const options = enabled();
|
|
45
|
-
if (options.length === 0) return;
|
|
46
|
-
const last = options.length - 1;
|
|
47
|
-
const current = options.findIndex((option) => option.value === props.modelValue);
|
|
48
|
-
let next;
|
|
49
|
-
if (event.key === "Home") next = 0;
|
|
50
|
-
else if (event.key === "End") next = last;
|
|
51
|
-
else if (current < 0) next = (step ?? 0) > 0 ? 0 : last;
|
|
52
|
-
else next = Math.min(Math.max(current + (step ?? 0), 0), last);
|
|
53
|
-
const option = options[next];
|
|
54
|
-
if (option && option.value !== props.modelValue) emit("update:modelValue", option.value);
|
|
55
|
-
}
|
|
56
|
-
return (_ctx, _cache) => {
|
|
57
|
-
return openBlock(), createElementBlock("div", {
|
|
58
|
-
class: "astryx-picker-wheel",
|
|
59
|
-
role: "listbox",
|
|
60
|
-
tabindex: "0",
|
|
61
|
-
"aria-label": __props.label,
|
|
62
|
-
"aria-activedescendant": __props.modelValue ? `${__props.label}-${__props.modelValue}` : void 0,
|
|
63
|
-
onKeydown
|
|
64
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
65
|
-
return openBlock(), createElementBlock("button", {
|
|
66
|
-
id: `${__props.label}-${option.value}`,
|
|
67
|
-
key: option.value,
|
|
68
|
-
type: "button",
|
|
69
|
-
class: "astryx-picker-wheel-option",
|
|
70
|
-
role: "option",
|
|
71
|
-
"aria-selected": option.value === __props.modelValue,
|
|
72
|
-
"aria-disabled": option.disabled || void 0,
|
|
73
|
-
disabled: option.disabled,
|
|
74
|
-
tabindex: "-1",
|
|
75
|
-
onClick: ($event) => choose(option.value, option.disabled)
|
|
76
|
-
}, toDisplayString(option.label), 9, _hoisted_2);
|
|
77
|
-
}), 128))], 40, _hoisted_1);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
//#endregion
|
|
82
|
-
export { _sfc_main as t };
|