@astryx-vue/core 0.2.5 → 0.3.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/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
- package/dist/AvatarGroup/index.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup-B--NQSB3.js +98 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
- package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
- package/dist/CommandPalette/index.d.ts +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-DT518j5E.js +841 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
- package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
- package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +2 -2
- package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
- package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
- package/dist/FieldLabel-BNeXRuGH.js +95 -0
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/FileInput-BpdiO1V8.js +285 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard-ycY50pRN.js +492 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +2 -0
- package/dist/InternationalizationProvider/index.js +2 -0
- package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
- package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
- package/dist/LayerProvider/index.d.ts +2 -0
- package/dist/LayerProvider/index.js +3 -0
- package/dist/LayerProvider-D9NsQFzL.js +73 -0
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
- package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
- package/dist/LinkProvider/index.d.ts +2 -0
- package/dist/LinkProvider/index.js +3 -0
- package/dist/LinkProvider-Qsps9_mL.js +17 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
- package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
- package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
- package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-AZ9x3oja.js +473 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/Popover-DJf8POzL.js +308 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/Section/index.d.ts +2 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
- package/dist/Stack/index.d.ts +2 -2
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
- package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-BPUhMOff.js +45 -0
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
- package/dist/TimeField-CoHDGmsP.js +435 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
- package/dist/Toast/index.d.ts +3 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/Tokenizer-B5C_qY7t.js +585 -0
- package/dist/Toolbar/index.d.ts +2 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tooltip-C4Vaqd3G.js +320 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/Typeahead-JP9RT87x.js +656 -0
- package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +12 -7
- package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
- package/dist/context-C_peZbXf.js +16 -0
- package/dist/context-M-er0-Rk.js +99 -0
- package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
- package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
- package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
- package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
- package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-B7yhzGUT.d.ts +171 -0
- package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
- package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
- package/dist/index-BTK7aStw.d.ts +88 -0
- package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
- package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
- package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
- package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
- package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
- package/dist/index-CEv_AvOg.d.ts +17 -0
- package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
- package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
- package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
- package/dist/index-CitZGSn0.d.ts +39 -0
- package/dist/index-CkKPMIeX.d.ts +55 -0
- package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
- package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
- package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
- package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
- package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
- package/dist/index-Cyb9Du5Z.d.ts +76 -0
- package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
- package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
- package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
- package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
- package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
- package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
- package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
- package/dist/index-DVmgNb78.d.ts +143 -0
- package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
- package/dist/index-DXpSFlPG.d.ts +78 -0
- package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
- package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
- package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
- package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
- package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
- package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
- package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
- package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
- package/dist/index.d.ts +80 -76
- package/dist/index.js +127 -113
- package/dist/link-C4_WogdF.js +18 -0
- package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
- package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
- package/dist/locale/index.d.ts +3 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-DgkZEMTn.js +105 -0
- package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
- package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
- package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
- package/dist/types-BRfVvZTH.d.ts +108 -0
- package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
- package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
- package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
- package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
- package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
- package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
- package/dist/useDevWarning-DznOpOHT.js +36 -0
- package/dist/useInputContainer-CpgDe2-4.js +51 -0
- package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
- package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
- package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
- package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
- package/dist/useMergedRefs-CfHHlCsn.js +109 -0
- package/dist/useNumberField-4-dIGVed.js +128 -0
- package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
- package/dist/useResizable-DDwPpPe6.d.ts +409 -0
- package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
- package/dist/utils-D33VQDnk.js +58 -0
- package/locales/SOURCE.json +1 -1
- package/locales/en.json +445 -1
- package/package.json +19 -2
- package/styles/avatar-group.css +19 -1
- package/styles/avatar.css +34 -13
- package/styles/chat.css +17 -1
- package/styles/dialog-header.css +5 -1
- package/styles/field.css +11 -0
- package/styles/heading.css +9 -0
- package/styles/indicator-focus-ring.css +18 -0
- package/styles/number-input.css +33 -0
- package/styles/pressable.css +44 -0
- package/styles/progress-bar.css +18 -0
- package/styles/scrollbars.css +28 -0
- package/styles/side-nav.css +20 -6
- package/styles/stack.css +4 -2
- package/styles/status-dot.css +18 -0
- package/styles/tab-list.css +38 -2
- package/styles/table.css +66 -6
- package/styles/text.css +9 -0
- package/styles/time-input.css +41 -0
- package/styles/top-nav.css +46 -19
- package/styles/typeahead.css +31 -0
- package/styles.css +2 -0
- package/dist/AvatarGroup-QyzSrpYA.js +0 -60
- package/dist/DateInput-D4XFAEMp.js +0 -743
- package/dist/FieldLabel-DmmJyX7w.js +0 -184
- package/dist/FileInput-DuNwdbAo.js +0 -238
- package/dist/HoverCard-EhbWaGOW.js +0 -443
- package/dist/NumberInput-B4IL3s_8.js +0 -210
- package/dist/Popover-D7zqpFwU.js +0 -215
- package/dist/StatusDot-CaoIapp4.js +0 -27
- package/dist/TimeField-Biiuv0hB.js +0 -214
- package/dist/Tokenizer-rwzamZg4.js +0 -473
- package/dist/Tooltip-C2fh9anJ.js +0 -271
- package/dist/Typeahead-_V11btpv.js +0 -499
- package/dist/index-Blm197N_.d.ts +0 -82
- package/dist/index-Bt7ewoz2.d.ts +0 -119
- package/dist/index-C1HIqW_H.d.ts +0 -38
- package/dist/index-CngORuiq.d.ts +0 -387
- package/dist/index-D4I_obqR.d.ts +0 -58
- package/dist/link-CdcUSxAj.js +0 -12
- package/dist/size-BuTzpgnR.d.ts +0 -14
- package/dist/types-Cp4liug-.d.ts +0 -170
- package/dist/useDismiss-Cj8x_51F.js +0 -62
- package/dist/useNumberField-DL-Radsp.js +0 -49
- package/dist/useResizable-CUoNPmUw.d.ts +0 -72
- package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
- package/dist/utils-C9r3UD_y.js +0 -16
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { a as useAstryxLocale, i as provideAstryxLocale, r as normalizeLocale, s as astryxMessages } from "./context-iABt_ueM.js";
|
|
2
|
+
import { i as icuPlaceholderNames, n as upstreamMessageMap, r as formatIcu, t as loadAstryxCatalog } from "./loadCatalog-CXKqEB9s.js";
|
|
3
|
+
import { computed, defineComponent, inject, provide, renderSlot } from "vue";
|
|
4
|
+
//#region src/InternationalizationProvider/catalog.ts
|
|
5
|
+
/** 内置文案只有这两种语言,其余语言都从英文兜底。 */
|
|
6
|
+
const BUILT_IN_LOCALES = /* @__PURE__ */ new Set(["en", "zh-CN"]);
|
|
7
|
+
/**
|
|
8
|
+
* 把 `messages` 和 `overrides` 合成本次渲染要用的文案树。
|
|
9
|
+
*
|
|
10
|
+
* 先取该 locale 的底层文案:`messages` 里有就用目录映射出来的结果,否则用内置文案。
|
|
11
|
+
* 再把 `overrides` 逐键叠在上面。两者都没有时直接返回内置文案,不新建对象。
|
|
12
|
+
*/
|
|
13
|
+
function resolveProviderMessages(locale, messages, overrides) {
|
|
14
|
+
const tag = normalizeLocale(locale);
|
|
15
|
+
const baseLanguage = tag.split("-")[0] ?? tag;
|
|
16
|
+
const catalog = pickLocale(messages, tag, baseLanguage);
|
|
17
|
+
const sparse = pickLocale(overrides, tag, baseLanguage);
|
|
18
|
+
if (catalog == null && sparse == null) return defaultMessages(tag);
|
|
19
|
+
const base = catalog == null ? defaultMessages(tag) : loadAstryxCatalog(tag, catalog).messages;
|
|
20
|
+
return sparse == null ? base : applyCatalog(base, tag, sparse);
|
|
21
|
+
}
|
|
22
|
+
/** 先找完全同名的 locale,再找它的基础语言,例如 `fr-FR` 找 `fr`。 */
|
|
23
|
+
function pickLocale(map, tag, baseLanguage) {
|
|
24
|
+
if (map == null) return void 0;
|
|
25
|
+
return map[tag] ?? (baseLanguage === tag ? void 0 : map[baseLanguage]);
|
|
26
|
+
}
|
|
27
|
+
function defaultMessages(tag) {
|
|
28
|
+
return BUILT_IN_LOCALES.has(tag) ? astryxMessages[tag] : astryxMessages.en;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 把一份稀疏目录写到已有的文案树上,返回副本。
|
|
32
|
+
* 键没有对应字段、占位符对不上、ICU 解析不了时跳过该键,其余字段保持原样。
|
|
33
|
+
*/
|
|
34
|
+
function applyCatalog(base, locale, catalog) {
|
|
35
|
+
const tree = cloneValue(base);
|
|
36
|
+
for (const key of Object.keys(catalog).sort()) {
|
|
37
|
+
const targets = upstreamMessageMap[key];
|
|
38
|
+
if (targets == null) continue;
|
|
39
|
+
const message = readMessage(catalog[key]);
|
|
40
|
+
if (message == null) continue;
|
|
41
|
+
let names;
|
|
42
|
+
try {
|
|
43
|
+
names = icuPlaceholderNames(message);
|
|
44
|
+
} catch {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
for (const target of targets) {
|
|
48
|
+
const args = target.args ?? [];
|
|
49
|
+
if (names.some((name) => !args.includes(name))) continue;
|
|
50
|
+
try {
|
|
51
|
+
writePath(tree, target.path, args.length === 0 ? formatIcu(message, {}, locale) : bindMessage(message, args, locale));
|
|
52
|
+
} catch {}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return tree;
|
|
56
|
+
}
|
|
57
|
+
function readMessage(entry) {
|
|
58
|
+
if (typeof entry === "string") return entry;
|
|
59
|
+
if (entry != null && typeof entry === "object" && typeof entry.defaultMessage === "string") return entry.defaultMessage;
|
|
60
|
+
}
|
|
61
|
+
function bindMessage(message, args, locale) {
|
|
62
|
+
return (...values) => {
|
|
63
|
+
const bag = {};
|
|
64
|
+
args.forEach((name, index) => {
|
|
65
|
+
const value = values[index];
|
|
66
|
+
bag[name] = typeof value === "number" || typeof value === "string" ? value : void 0;
|
|
67
|
+
});
|
|
68
|
+
return formatIcu(message, bag, locale).replace(/[ \t]{2,}/g, " ").trim();
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function cloneValue(value) {
|
|
72
|
+
if (typeof value === "function" || value == null || typeof value !== "object") return value;
|
|
73
|
+
const copy = {};
|
|
74
|
+
for (const [key, child] of Object.entries(value)) copy[key] = cloneValue(child);
|
|
75
|
+
return copy;
|
|
76
|
+
}
|
|
77
|
+
function writePath(tree, path, value) {
|
|
78
|
+
const parts = path.split(".");
|
|
79
|
+
let cursor = tree;
|
|
80
|
+
for (const part of parts.slice(0, -1)) {
|
|
81
|
+
const next = cursor[part];
|
|
82
|
+
if (next == null || typeof next === "function" || typeof next === "string") throw new Error(`消息路径不存在:${path}`);
|
|
83
|
+
cursor = next;
|
|
84
|
+
}
|
|
85
|
+
const leaf = parts[parts.length - 1];
|
|
86
|
+
if (leaf == null || !Object.hasOwn(cursor, leaf)) throw new Error(`消息路径不存在:${path}`);
|
|
87
|
+
cursor[leaf] = value;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/InternationalizationProvider/direction.ts
|
|
91
|
+
/**
|
|
92
|
+
* 从右往左书写的语言。运行时拿不到 `Intl.Locale#getTextInfo` 时用它兜底,
|
|
93
|
+
* 例如较老的浏览器和部分测试环境。
|
|
94
|
+
*/
|
|
95
|
+
const RTL_LANGUAGES = /* @__PURE__ */ new Set([
|
|
96
|
+
"ar",
|
|
97
|
+
"arc",
|
|
98
|
+
"ckb",
|
|
99
|
+
"dv",
|
|
100
|
+
"fa",
|
|
101
|
+
"he",
|
|
102
|
+
"iw",
|
|
103
|
+
"ji",
|
|
104
|
+
"ks",
|
|
105
|
+
"ku",
|
|
106
|
+
"ps",
|
|
107
|
+
"sd",
|
|
108
|
+
"ug",
|
|
109
|
+
"ur",
|
|
110
|
+
"yi"
|
|
111
|
+
]);
|
|
112
|
+
/**
|
|
113
|
+
* 由语言标签推导书写方向。`ar-SA`、`he` 这类语言得到 `rtl`,其余得到 `ltr`。
|
|
114
|
+
* 解析不了的标签按 `ltr` 处理。
|
|
115
|
+
*/
|
|
116
|
+
function getLocaleDirection(locale) {
|
|
117
|
+
const tag = locale.trim();
|
|
118
|
+
if (tag === "") return "ltr";
|
|
119
|
+
let parsed;
|
|
120
|
+
try {
|
|
121
|
+
parsed = new Intl.Locale(tag);
|
|
122
|
+
} catch {
|
|
123
|
+
return "ltr";
|
|
124
|
+
}
|
|
125
|
+
const readTextInfo = parsed.getTextInfo;
|
|
126
|
+
if (typeof readTextInfo === "function") {
|
|
127
|
+
const direction = readTextInfo.call(parsed).direction;
|
|
128
|
+
if (direction === "rtl" || direction === "ltr") return direction;
|
|
129
|
+
}
|
|
130
|
+
return RTL_LANGUAGES.has(parsed.language.toLowerCase()) ? "rtl" : "ltr";
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/InternationalizationProvider/context.ts
|
|
134
|
+
/** 最近的 `InternationalizationProvider` 定下的书写方向。 */
|
|
135
|
+
const astryxDirectionKey = Symbol("astryx-direction");
|
|
136
|
+
/**
|
|
137
|
+
* 子树当前的书写方向。有 provider 时用它的 `dir`,否则按最近的 locale 推导。
|
|
138
|
+
* 它只描述 Astryx 组件读数用的方向;DOM 的 `dir` 属性要自己设。
|
|
139
|
+
*/
|
|
140
|
+
function useLocaleDirection() {
|
|
141
|
+
const provided = inject(astryxDirectionKey, null);
|
|
142
|
+
if (provided != null) return provided;
|
|
143
|
+
const locale = useAstryxLocale();
|
|
144
|
+
return computed(() => getLocaleDirection(locale.value));
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/InternationalizationProvider/InternationalizationProvider.vue
|
|
148
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
149
|
+
name: "AstryxInternationalizationProvider",
|
|
150
|
+
inheritAttrs: false,
|
|
151
|
+
__name: "InternationalizationProvider",
|
|
152
|
+
props: {
|
|
153
|
+
locale: {},
|
|
154
|
+
messages: {},
|
|
155
|
+
overrides: {},
|
|
156
|
+
dir: {}
|
|
157
|
+
},
|
|
158
|
+
setup(__props) {
|
|
159
|
+
const props = __props;
|
|
160
|
+
const messages = computed(() => resolveProviderMessages(props.locale, props.messages, props.overrides));
|
|
161
|
+
const direction = computed(() => props.dir ?? getLocaleDirection(props.locale));
|
|
162
|
+
provideAstryxLocale(() => props.locale, messages);
|
|
163
|
+
provide(astryxDirectionKey, direction);
|
|
164
|
+
return (_ctx, _cache) => {
|
|
165
|
+
return renderSlot(_ctx.$slots, "default");
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
//#endregion
|
|
170
|
+
export { resolveProviderMessages as a, getLocaleDirection as i, astryxDirectionKey as n, useLocaleDirection as r, _sfc_main as t };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
+
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx, withModifiers } from "vue";
|
|
2
4
|
import "../styles/list.css";
|
|
3
5
|
//#region src/List/context.ts
|
|
4
6
|
const listContextKey = Symbol("astryx-list-context");
|
|
@@ -270,6 +272,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
270
272
|
},
|
|
271
273
|
setup(__props, { expose: __expose }) {
|
|
272
274
|
const props = __props;
|
|
275
|
+
const linkComponent = useLinkComponent();
|
|
273
276
|
const ARIA_SELECTED_ROLES = /* @__PURE__ */ new Set([
|
|
274
277
|
"option",
|
|
275
278
|
"tab",
|
|
@@ -331,7 +334,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
331
334
|
const ariaCurrent = computed(() => attrs["aria-current"] ?? (props.isSelected && !allowsAriaSelected.value ? true : void 0));
|
|
332
335
|
const isDelegate = computed(() => props.interactiveRef != null);
|
|
333
336
|
const isInteractive = computed(() => props.onClick != null || props.href != null || isDelegate.value);
|
|
334
|
-
|
|
337
|
+
/** 链接内容用的根组件:`as` 写了组件就用它,否则用 LinkProvider 给的默认值。 */
|
|
338
|
+
const customLink = computed(() => typeof props.as === "string" ? linkComponent.value : props.as);
|
|
339
|
+
const isLinkContent = computed(() => props.href != null && customLink.value != null);
|
|
335
340
|
const resolvedTarget = computed(() => props.target);
|
|
336
341
|
const resolvedRel = computed(() => {
|
|
337
342
|
const tokens = new Set((props.rel ?? "").split(/\s+/).filter(Boolean));
|
|
@@ -358,17 +363,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
358
363
|
const labelStyle = computed(() => clampStyle(labelClamp.value));
|
|
359
364
|
const descriptionClasses = computed(() => clampClass(descriptionClamp.value));
|
|
360
365
|
const descriptionStyle = computed(() => clampStyle(descriptionClamp.value));
|
|
366
|
+
const contentRole = useInteractiveRole({
|
|
367
|
+
href: () => hasParentRole.value || isDelegate.value ? void 0 : props.href,
|
|
368
|
+
hasOnClick: () => !hasParentRole.value && !isDelegate.value && props.onClick != null
|
|
369
|
+
});
|
|
361
370
|
const contentTag = computed(() => {
|
|
362
|
-
if (
|
|
363
|
-
|
|
364
|
-
return props.onClick != null ? "button" : "span";
|
|
371
|
+
if (contentRole.role.value === "link") return isLinkContent.value ? toRaw(customLink.value) : "a";
|
|
372
|
+
return contentRole.role.value === "button" ? "button" : "span";
|
|
365
373
|
});
|
|
366
374
|
function handleContentClick(event) {
|
|
367
375
|
props.onClick?.(event);
|
|
368
376
|
}
|
|
369
377
|
const contentAttrs = computed(() => {
|
|
370
|
-
if (
|
|
378
|
+
if (props.href != null && !hasParentRole.value && !isDelegate.value) return {
|
|
371
379
|
"href": props.href,
|
|
380
|
+
"to": isLinkContent.value ? props.href : void 0,
|
|
372
381
|
"rel": resolvedRel.value,
|
|
373
382
|
"target": resolvedTarget.value,
|
|
374
383
|
"aria-disabled": props.isDisabled || void 0,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ResolvedLayerInset, c as useLayerConfig, d as LayerProviderProps, f as LayerProviderSlots, i as LayerContextValue, l as useLayerGutter, n as mergeInset, o as layerContextKey, p as LayerToastConfig, r as resolveInset, s as layerNestingKey, t as _default, u as LayerInset } from "../index-BTK7aStw.js";
|
|
2
|
+
export { type LayerContextValue, type LayerInset, _default as LayerProvider, type LayerProviderProps, type LayerProviderSlots, type LayerToastConfig, type ResolvedLayerInset, layerContextKey, layerNestingKey, mergeInset, resolveInset, useLayerConfig, useLayerGutter };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as useLayerGutter, n as layerNestingKey, r as useLayerConfig, t as layerContextKey } from "../context-M-er0-Rk.js";
|
|
2
|
+
import { n as mergeInset, r as resolveInset, t as _sfc_main } from "../LayerProvider-D9NsQFzL.js";
|
|
3
|
+
export { _sfc_main as LayerProvider, layerContextKey, layerNestingKey, mergeInset, resolveInset, useLayerConfig, useLayerGutter };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { a as measureLength, n as layerNestingKey, o as resetLayerSafeArea, t as layerContextKey } from "./context-M-er0-Rk.js";
|
|
2
|
+
import { computed, defineComponent, inject, onBeforeUnmount, onMounted, provide, ref, renderSlot } from "vue";
|
|
3
|
+
//#region src/LayerProvider/inset.ts
|
|
4
|
+
const EDGES = [
|
|
5
|
+
"blockStart",
|
|
6
|
+
"blockEnd",
|
|
7
|
+
"inlineStart",
|
|
8
|
+
"inlineEnd"
|
|
9
|
+
];
|
|
10
|
+
/** 把写出来的偏移换成 px。数字原样用,字符串按 CSS 长度量。 */
|
|
11
|
+
function resolveInset(inset) {
|
|
12
|
+
if (inset == null) return void 0;
|
|
13
|
+
const resolved = {};
|
|
14
|
+
for (const edge of EDGES) {
|
|
15
|
+
const raw = inset[edge];
|
|
16
|
+
if (raw == null) continue;
|
|
17
|
+
resolved[edge] = typeof raw === "number" ? raw : measureLength(raw);
|
|
18
|
+
}
|
|
19
|
+
return resolved;
|
|
20
|
+
}
|
|
21
|
+
/** 逐边合并:`primary` 写了的边用它,没写的边用 `fallback`。 */
|
|
22
|
+
function mergeInset(primary, fallback) {
|
|
23
|
+
const above = resolveInset(primary);
|
|
24
|
+
const below = resolveInset(fallback);
|
|
25
|
+
const merged = {};
|
|
26
|
+
for (const edge of EDGES) {
|
|
27
|
+
const value = above?.[edge] ?? below?.[edge];
|
|
28
|
+
if (value != null) merged[edge] = value;
|
|
29
|
+
}
|
|
30
|
+
return merged;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/LayerProvider/LayerProvider.vue
|
|
34
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
35
|
+
name: "AstryxLayerProvider",
|
|
36
|
+
inheritAttrs: false,
|
|
37
|
+
__name: "LayerProvider",
|
|
38
|
+
props: {
|
|
39
|
+
toast: {},
|
|
40
|
+
inset: {}
|
|
41
|
+
},
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const isNested = inject(layerNestingKey, false);
|
|
45
|
+
const measureVersion = ref(0);
|
|
46
|
+
function remeasure() {
|
|
47
|
+
resetLayerSafeArea();
|
|
48
|
+
measureVersion.value += 1;
|
|
49
|
+
}
|
|
50
|
+
onMounted(() => window.addEventListener("resize", remeasure));
|
|
51
|
+
onBeforeUnmount(() => window.removeEventListener("resize", remeasure));
|
|
52
|
+
const config = computed(() => {
|
|
53
|
+
measureVersion.value;
|
|
54
|
+
return {
|
|
55
|
+
inset: resolveInset(props.inset) ?? {},
|
|
56
|
+
toast: {
|
|
57
|
+
position: props.toast?.position,
|
|
58
|
+
maxVisible: props.toast?.maxVisible,
|
|
59
|
+
inset: mergeInset(props.toast?.inset, props.inset)
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
if (!isNested) {
|
|
64
|
+
provide(layerNestingKey, true);
|
|
65
|
+
provide(layerContextKey, config);
|
|
66
|
+
}
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return renderSlot(_ctx.$slots, "default");
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { mergeInset as n, resolveInset as r, _sfc_main as t };
|
package/dist/Layout/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as LayoutHeight, a as _default, c as LayoutFooterProps, d as LayoutHeaderSlots, f as LayoutPanelProps, g as LayoutArea, h as LayoutSlots, i as _default$1, l as LayoutFooterSlots, m as LayoutProps, n as _default$3, o as LayoutContentProps, p as LayoutPanelSlots, r as _default$2, s as LayoutContentSlots, t as _default$4, u as LayoutHeaderProps } from "../index-
|
|
1
|
+
import { _ as LayoutHeight, a as _default, c as LayoutFooterProps, d as LayoutHeaderSlots, f as LayoutPanelProps, g as LayoutArea, h as LayoutSlots, i as _default$1, l as LayoutFooterSlots, m as LayoutProps, n as _default$3, o as LayoutContentProps, p as LayoutPanelSlots, r as _default$2, s as LayoutContentSlots, t as _default$4, u as LayoutHeaderProps } from "../index-DWh2WC8W.js";
|
|
2
2
|
export { _default as Layout, type LayoutArea, _default$1 as LayoutContent, type LayoutContentProps, type LayoutContentSlots, _default$2 as LayoutFooter, type LayoutFooterProps, type LayoutFooterSlots, _default$3 as LayoutHeader, type LayoutHeaderProps, type LayoutHeaderSlots, type LayoutHeight, _default$4 as LayoutPanel, type LayoutPanelProps, type LayoutPanelSlots, type LayoutProps, type LayoutSlots };
|
package/dist/Layout/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-
|
|
2
|
-
import { t as _sfc_main$2 } from "../Layout-
|
|
1
|
+
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-DXOsaeQb.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "../Layout-C6RHllr-.js";
|
|
3
3
|
export { _sfc_main as Layout, _sfc_main$1 as LayoutContent, _sfc_main$2 as LayoutFooter, _sfc_main$3 as LayoutHeader, _sfc_main$4 as LayoutPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as regionPaddingStyle, o as useLayoutDividers } from "./LayoutPanel-DXOsaeQb.js";
|
|
2
|
+
import { t as formatSize } from "./size-Cpn_wzXi.js";
|
|
3
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/layout.css";
|
|
5
5
|
//#region src/Layout/LayoutFooter.vue
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
|
+
import { a as supportsInternalContentWidth, i as spacingVariable, t as formatSize } from "./size-Cpn_wzXi.js";
|
|
2
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeProps, normalizeStyle, openBlock, provide, renderSlot, unref, useAttrs, useSlots, useTemplateRef, withCtx } from "vue";
|
|
3
4
|
import "../styles/layout.css";
|
|
4
5
|
//#region src/Layout/context.ts
|
|
@@ -200,6 +201,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
200
201
|
const props = __props;
|
|
201
202
|
const attrs = useAttrs();
|
|
202
203
|
const root = useTemplateRef("root");
|
|
204
|
+
useScrollbars(root, { enabled: () => props.isScrollable });
|
|
203
205
|
const slots = useLayoutSlots();
|
|
204
206
|
__expose({ element: root });
|
|
205
207
|
const panels = computed(() => {
|
|
@@ -321,6 +323,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
321
323
|
const props = __props;
|
|
322
324
|
const attrs = useAttrs();
|
|
323
325
|
const root = useTemplateRef("root");
|
|
326
|
+
useScrollbars(root, { enabled: () => props.isScrollable });
|
|
324
327
|
const area = useLayoutArea();
|
|
325
328
|
const slots = useLayoutSlots();
|
|
326
329
|
__expose({ element: root });
|
package/dist/Lightbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useLightbox } from "../Lightbox-
|
|
1
|
+
import { n as _sfc_main, t as useLightbox } from "../Lightbox-DTF9EdTG.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as _sfc_main$1 } from "./IconButton-DDNgNl7B.js";
|
|
3
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
4
|
import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
|
|
4
|
-
import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
|
|
5
5
|
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/lightbox.css";
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as LinkWeight, i as LinkSize, n as LinkProps, r as LinkRoot, t as LinkColor } from "../types-
|
|
2
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { a as LinkWeight, i as LinkSize, n as LinkProps, r as LinkRoot, t as LinkColor } from "../types-BnNTzEnd.js";
|
|
2
|
+
import { t as _default } from "../index-BULhhnGf.js";
|
|
3
3
|
export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkWeight };
|
package/dist/Link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Link-
|
|
1
|
+
import { t as _sfc_main } from "../Link-BqHCtiyt.js";
|
|
2
2
|
export { _sfc_main as Link };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
1
2
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { o as useAstryxMessages } from "./context-
|
|
3
|
-
import { t as _sfc_main$2 } from "./Tooltip-
|
|
3
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./Tooltip-C4Vaqd3G.js";
|
|
4
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, withCtx } from "vue";
|
|
5
6
|
import "../styles/link.css";
|
|
6
7
|
//#region src/Link/Link.vue
|
|
@@ -39,6 +40,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
39
40
|
target: {},
|
|
40
41
|
rel: {},
|
|
41
42
|
download: { type: [String, Boolean] },
|
|
43
|
+
referrerPolicy: {},
|
|
42
44
|
tooltip: {},
|
|
43
45
|
isStandalone: {
|
|
44
46
|
type: Boolean,
|
|
@@ -53,11 +55,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
53
55
|
const props = __props;
|
|
54
56
|
const emit = __emit;
|
|
55
57
|
const messages = useAstryxMessages();
|
|
58
|
+
const linkComponent = useLinkComponent();
|
|
59
|
+
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
|
|
60
|
+
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
56
61
|
const isButton = computed(() => props.href == null || props.href === "");
|
|
57
|
-
const isCustomLink = computed(() => !isButton.value && !props.isDisabled &&
|
|
62
|
+
const isCustomLink = computed(() => !isButton.value && !props.isDisabled && customLink.value != null);
|
|
58
63
|
const root = computed(() => {
|
|
59
|
-
if (isButton.value || props.isDisabled ||
|
|
60
|
-
return toRaw(
|
|
64
|
+
if (isButton.value || props.isDisabled || customLink.value == null) return isButton.value ? "button" : "a";
|
|
65
|
+
return toRaw(customLink.value);
|
|
61
66
|
});
|
|
62
67
|
const computedTarget = computed(() => {
|
|
63
68
|
return props.isExternalLink ? "_blank" : props.target;
|
|
@@ -98,6 +103,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
98
103
|
});
|
|
99
104
|
const newTabText = computed(() => props.newTabLabel || messages.value.nav.opensInNewTab);
|
|
100
105
|
const showNewTab = computed(() => props.isExternalLink && !isButton.value);
|
|
106
|
+
/**
|
|
107
|
+
* `download` 只有三种写法:没有、空属性(= 用服务器给的文件名)、指定文件名。
|
|
108
|
+
* `false` 不能落到 DOM 上变成 `download="false"`,那样会被当成文件名。
|
|
109
|
+
*/
|
|
110
|
+
const downloadAttribute = computed(() => {
|
|
111
|
+
if (isButton.value || props.isDisabled) return void 0;
|
|
112
|
+
if (props.download === true) return "";
|
|
113
|
+
if (props.download === false) return void 0;
|
|
114
|
+
return props.download;
|
|
115
|
+
});
|
|
101
116
|
function handleClick(event) {
|
|
102
117
|
if (props.isDisabled) {
|
|
103
118
|
event.preventDefault();
|
|
@@ -116,7 +131,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
116
131
|
to: isCustomLink.value ? __props.href : void 0,
|
|
117
132
|
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
118
133
|
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
119
|
-
download:
|
|
134
|
+
download: downloadAttribute.value,
|
|
135
|
+
referrerpolicy: !isButton.value ? __props.referrerPolicy : void 0,
|
|
120
136
|
type: isButton.value ? "button" : void 0,
|
|
121
137
|
disabled: isButton.value ? __props.isDisabled : void 0,
|
|
122
138
|
role: __props.isDisabled && !isButton.value ? "link" : void 0,
|
|
@@ -143,6 +159,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
143
159
|
"target",
|
|
144
160
|
"rel",
|
|
145
161
|
"download",
|
|
162
|
+
"referrerpolicy",
|
|
146
163
|
"type",
|
|
147
164
|
"disabled",
|
|
148
165
|
"role",
|
|
@@ -156,7 +173,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
156
173
|
to: isCustomLink.value ? __props.href : void 0,
|
|
157
174
|
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
158
175
|
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
159
|
-
download:
|
|
176
|
+
download: downloadAttribute.value,
|
|
177
|
+
referrerpolicy: !isButton.value ? __props.referrerPolicy : void 0,
|
|
160
178
|
type: isButton.value ? "button" : void 0,
|
|
161
179
|
disabled: isButton.value ? __props.isDisabled : void 0,
|
|
162
180
|
role: __props.isDisabled && !isButton.value ? "link" : void 0,
|
|
@@ -183,6 +201,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
183
201
|
"target",
|
|
184
202
|
"rel",
|
|
185
203
|
"download",
|
|
204
|
+
"referrerpolicy",
|
|
186
205
|
"type",
|
|
187
206
|
"disabled",
|
|
188
207
|
"role",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as linkComponentKey, i as LinkProviderSlots, n as LinkComponentType, o as useLinkComponent, r as LinkProviderProps, t as _default } from "../index-CitZGSn0.js";
|
|
2
|
+
export { type LinkComponentType, _default as LinkProvider, type LinkProviderProps, type LinkProviderSlots, linkComponentKey, useLinkComponent };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as linkComponentKey } from "./context-C_peZbXf.js";
|
|
2
|
+
import { defineComponent, markRaw, provide, renderSlot } from "vue";
|
|
3
|
+
//#region src/LinkProvider/LinkProvider.vue
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
|
+
name: "AstryxLinkProvider",
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
__name: "LinkProvider",
|
|
8
|
+
props: { component: {} },
|
|
9
|
+
setup(__props) {
|
|
10
|
+
provide(linkComponentKey, markRaw(__props.component));
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return renderSlot(_ctx.$slots, "default");
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _sfc_main as t };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as ListItemSlots, a as ItemLayout, b as ListSlots, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListItemProps, h as ListEdgeCompensation, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListMarkerStyle, y as ListProps } from "../types-DGYHIu4I.js";
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-GI9xIV9l.js";
|
|
3
3
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
|
package/dist/List/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main } from "../Item-
|
|
2
|
-
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-
|
|
1
|
+
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main } from "../Item-KhFKX9St.js";
|
|
2
|
+
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-8RWT8XAG.js";
|
|
3
3
|
export { _sfc_main as Item, _sfc_main$1 as List, _sfc_main$2 as ListItem, useItemDescriptionId, useListContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as useListContext, n as listContextKey, t as _sfc_main$2 } from "./Item-
|
|
1
|
+
import { i as useListContext, n as listContextKey, t as _sfc_main$2 } from "./Item-KhFKX9St.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
import "../styles/list.css";
|
|
4
4
|
//#region src/List/List.vue
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as MarkdownPlugin, D as applyMarkdownPlugins, E as applyInlinePlugins, O as defineMarkdownPlugin, S as MarkdownInlinePlugin, T as MarkdownTransformContext, _ as MarkdownLinkProps, a as _default, b as MarkdownSlots, c as MarkdownCitationStyle, d as MarkdownDensity, f as MarkdownDisplay, g as MarkdownInlineCodeProps, h as MarkdownImageProps, i as parseMarkdown, k as isMarkdownExtensionNode, l as MarkdownCodeProps, m as MarkdownHeadingProps, n as uniqueSlug, o as MarkdownAlign, p as MarkdownHeadingLevel, r as ParseMarkdownOptions, s as MarkdownAutolink, t as slugify, u as MarkdownComponents, v as MarkdownListProps, w as MarkdownPluginRenderContext, x as MarkdownSource, y as MarkdownProps } from "../index-
|
|
1
|
+
import { C as MarkdownPlugin, D as applyMarkdownPlugins, E as applyInlinePlugins, O as defineMarkdownPlugin, S as MarkdownInlinePlugin, T as MarkdownTransformContext, _ as MarkdownLinkProps, a as _default, b as MarkdownSlots, c as MarkdownCitationStyle, d as MarkdownDensity, f as MarkdownDisplay, g as MarkdownInlineCodeProps, h as MarkdownImageProps, i as parseMarkdown, k as isMarkdownExtensionNode, l as MarkdownCodeProps, m as MarkdownHeadingProps, n as uniqueSlug, o as MarkdownAlign, p as MarkdownHeadingLevel, r as ParseMarkdownOptions, s as MarkdownAutolink, t as slugify, u as MarkdownComponents, v as MarkdownListProps, w as MarkdownPluginRenderContext, x as MarkdownSource, y as MarkdownProps } from "../index-B1WJxt-n.js";
|
|
2
2
|
export { _default as Markdown, type MarkdownAlign, type MarkdownAutolink, type MarkdownCitationStyle, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownInlinePlugin, type MarkdownLinkProps, type MarkdownListProps, type MarkdownPlugin, type MarkdownPluginRenderContext, type MarkdownProps, type MarkdownSlots, type MarkdownSource, type MarkdownTransformContext, type ParseMarkdownOptions, applyInlinePlugins, applyMarkdownPlugins, defineMarkdownPlugin, isMarkdownExtensionNode, parseMarkdown, slugify, uniqueSlug };
|
package/dist/Markdown/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as applyMarkdownPlugins, c as isMarkdownExtensionNode, i as applyInlinePlugins, n as slugify, o as defineMarkdownPlugin, r as uniqueSlug, s as parseMarkdown, t as _sfc_main } from "../Markdown-
|
|
1
|
+
import { a as applyMarkdownPlugins, c as isMarkdownExtensionNode, i as applyInlinePlugins, n as slugify, o as defineMarkdownPlugin, r as uniqueSlug, s as parseMarkdown, t as _sfc_main } from "../Markdown-CvtN7HnF.js";
|
|
2
2
|
export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, defineMarkdownPlugin, isMarkdownExtensionNode, parseMarkdown, slugify, uniqueSlug };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { o as useAstryxMessages } from "./context-
|
|
3
|
-
import { t as _sfc_main$2 } from "./Heading-
|
|
2
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Heading-BnwWEWkp.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Blockquote-DFqBv_oJ.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./CheckboxIndicator-D37cm2Rh.js";
|
|
6
6
|
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
7
|
-
import { d as _sfc_main$5, s as parseFenceLanguage, t as _sfc_main$6 } from "./CodeBlock-
|
|
8
|
-
import { t as _sfc_main$7 } from "./Link-
|
|
7
|
+
import { d as _sfc_main$5, s as parseFenceLanguage, t as _sfc_main$6 } from "./CodeBlock-D0BFubut.js";
|
|
8
|
+
import { t as _sfc_main$7 } from "./Link-BqHCtiyt.js";
|
|
9
9
|
import { Fragment, computed, defineComponent, h, ref } from "vue";
|
|
10
10
|
import { fromMarkdown } from "mdast-util-from-markdown";
|
|
11
11
|
import { gfmFromMarkdown } from "mdast-util-gfm";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-B-OelQlt.js";
|
|
2
2
|
export { _sfc_main as MetadataList, _sfc_main$1 as MetadataListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useAstryxMessages } from "./context-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
2
|
import { Comment, Fragment, computed, defineComponent, h, inject, provide, ref, useId, useSlots } from "vue";
|
|
3
3
|
import "../styles/metadata-list.css";
|
|
4
4
|
//#region src/MetadataList/context.ts
|
package/dist/MobileNav/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-
|
|
1
|
+
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-DxGz0xKA.js";
|
|
2
2
|
export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-
|
|
2
|
-
import { o as useAstryxMessages } from "./context-
|
|
3
|
-
import {
|
|
1
|
+
import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-Djw9RUIf.js";
|
|
2
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
4
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch } from "vue";
|
|
4
5
|
import "../styles/mobile-nav.css";
|
|
5
6
|
//#region src/MobileNav/context.ts
|
|
6
7
|
/** 内容渲染在移动导航抽屉里时为 true。菜单在这里改成内联折叠,不再弹出。 */
|
|
@@ -15,7 +16,10 @@ const _hoisted_1$1 = [
|
|
|
15
16
|
const _hoisted_2 = { class: "astryx-mobile-nav__drawer" };
|
|
16
17
|
const _hoisted_3 = ["id"];
|
|
17
18
|
const _hoisted_4 = ["aria-label"];
|
|
18
|
-
const _hoisted_5 = {
|
|
19
|
+
const _hoisted_5 = {
|
|
20
|
+
ref: "body",
|
|
21
|
+
class: "astryx-mobile-nav__body"
|
|
22
|
+
};
|
|
19
23
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
20
24
|
name: "AstryxMobileNav",
|
|
21
25
|
__name: "MobileNav",
|
|
@@ -39,6 +43,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
39
43
|
const messages = useAstryxMessages();
|
|
40
44
|
const isOpen = useModel(__props, "isOpen");
|
|
41
45
|
const dialogRef = ref(null);
|
|
46
|
+
const bodyEl = useTemplateRef("body");
|
|
47
|
+
useScrollbars(bodyEl);
|
|
42
48
|
const resolvedSide = ref(props.side === "end" ? "end" : "start");
|
|
43
49
|
const generatedId = `astryx-mobile-nav-${useId()}`;
|
|
44
50
|
const dialogId = computed(() => props.id || generatedId);
|
|
@@ -130,7 +136,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
130
136
|
}, [..._cache[1] || (_cache[1] = [createElementVNode("span", {
|
|
131
137
|
class: "astryx-mobile-nav__close-glyph",
|
|
132
138
|
"aria-hidden": "true"
|
|
133
|
-
}, null, -1)])], 8, _hoisted_4)], 2), createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])])], 46, _hoisted_1$1)], 2112);
|
|
139
|
+
}, null, -1)])], 8, _hoisted_4)], 2), createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")], 512)])], 46, _hoisted_1$1)], 2112);
|
|
134
140
|
};
|
|
135
141
|
}
|
|
136
142
|
});
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as MoreMenuEmits, Qr as MoreMenuDivider, Zr as _default, ai as MoreMenuPresentation, ci as MoreMenuSection, ei as MoreMenuIcon, ii as MoreMenuOption, li as MoreMenuSlots, ni as MoreMenuItem, oi as MoreMenuProps, ri as MoreMenuItemVariant, si as MoreMenuResolvedPresentation, ti as MoreMenuInitialFocus } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
package/dist/MoreMenu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../MoreMenu-
|
|
1
|
+
import { t as _sfc_main } from "../MoreMenu-Dlb7MLlW.js";
|
|
2
2
|
export { _sfc_main as MoreMenu };
|