@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
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
2
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, watch } from "vue";
|
|
2
3
|
import "../styles/toast.css";
|
|
4
|
+
//#region src/Toast/options.ts
|
|
5
|
+
/** 这条提示会不会自己消失。`error` 默认不消失。 */
|
|
6
|
+
function resolveAutoHide(options) {
|
|
7
|
+
return options.isAutoHide ?? options.autoClose ?? options.type !== "error";
|
|
8
|
+
}
|
|
9
|
+
/** 自动消失的时长,单位毫秒。 */
|
|
10
|
+
function resolveAutoHideDuration(options) {
|
|
11
|
+
return options.autoHideDuration ?? options.duration ?? 5e3;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
3
14
|
//#region src/Toast/Toast.vue
|
|
4
15
|
const _hoisted_1$1 = ["role", "aria-live"];
|
|
5
16
|
const _hoisted_2 = { class: "astryx-toast__body" };
|
|
@@ -7,16 +18,22 @@ const _hoisted_3 = {
|
|
|
7
18
|
key: 0,
|
|
8
19
|
class: "astryx-toast__end"
|
|
9
20
|
};
|
|
21
|
+
const MIN_REMAINING_MS = 1e3;
|
|
10
22
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
11
23
|
__name: "Toast",
|
|
12
24
|
props: {
|
|
13
25
|
type: { default: "info" },
|
|
14
26
|
body: {},
|
|
27
|
+
isAutoHide: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
autoHideDuration: {},
|
|
15
32
|
autoClose: {
|
|
16
33
|
type: Boolean,
|
|
17
|
-
default:
|
|
34
|
+
default: void 0
|
|
18
35
|
},
|
|
19
|
-
duration: {
|
|
36
|
+
duration: {},
|
|
20
37
|
uniqueID: {},
|
|
21
38
|
collisionBehavior: {},
|
|
22
39
|
endContent: {},
|
|
@@ -25,11 +42,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
25
42
|
default: false
|
|
26
43
|
}
|
|
27
44
|
},
|
|
28
|
-
emits: ["close"],
|
|
45
|
+
emits: ["dismiss", "close"],
|
|
29
46
|
setup(__props, { emit: __emit }) {
|
|
30
47
|
const props = __props;
|
|
31
48
|
const emit = __emit;
|
|
32
|
-
const
|
|
49
|
+
const duration = computed(() => resolveAutoHideDuration(props));
|
|
50
|
+
const autoHide = computed(() => resolveAutoHide(props));
|
|
51
|
+
const remaining = ref(duration.value);
|
|
33
52
|
const isPaused = ref(false);
|
|
34
53
|
const timer = ref(null);
|
|
35
54
|
const startTime = ref(null);
|
|
@@ -41,16 +60,28 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
41
60
|
`astryx-toast--type-${props.type}`,
|
|
42
61
|
{ "astryx-toast--exiting": props.isExiting }
|
|
43
62
|
]);
|
|
63
|
+
const contentScope = computed(() => ({
|
|
64
|
+
body: props.body,
|
|
65
|
+
endContent: props.endContent,
|
|
66
|
+
type: props.type,
|
|
67
|
+
isAutoHide: autoHide.value,
|
|
68
|
+
autoHideDuration: duration.value,
|
|
69
|
+
dismiss: () => dismiss("manual")
|
|
70
|
+
}));
|
|
71
|
+
function dismiss(reason) {
|
|
72
|
+
emit("dismiss", reason);
|
|
73
|
+
emit("close");
|
|
74
|
+
}
|
|
44
75
|
function startTimer() {
|
|
45
|
-
if (!
|
|
76
|
+
if (!autoHide.value || isPaused.value) return;
|
|
46
77
|
if (timer.value) clearTimeout(timer.value);
|
|
47
78
|
startTime.value = Date.now();
|
|
48
79
|
timer.value = setTimeout(() => {
|
|
49
|
-
|
|
80
|
+
dismiss("auto");
|
|
50
81
|
}, remaining.value);
|
|
51
82
|
}
|
|
52
83
|
function pauseTimer() {
|
|
53
|
-
if (!
|
|
84
|
+
if (!autoHide.value || isPaused.value) return;
|
|
54
85
|
isPaused.value = true;
|
|
55
86
|
if (timer.value) {
|
|
56
87
|
clearTimeout(timer.value);
|
|
@@ -58,27 +89,43 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
58
89
|
}
|
|
59
90
|
if (startTime.value != null) {
|
|
60
91
|
const elapsed = Date.now() - startTime.value;
|
|
61
|
-
remaining.value = Math.max(remaining.value - elapsed,
|
|
92
|
+
remaining.value = Math.max(remaining.value - elapsed, MIN_REMAINING_MS);
|
|
62
93
|
}
|
|
63
94
|
}
|
|
64
95
|
function resumeTimer() {
|
|
65
|
-
if (!
|
|
96
|
+
if (!autoHide.value || !isPaused.value) return;
|
|
66
97
|
isPaused.value = false;
|
|
67
98
|
startTimer();
|
|
68
99
|
}
|
|
69
100
|
function handleClose() {
|
|
70
|
-
|
|
101
|
+
dismiss("manual");
|
|
102
|
+
}
|
|
103
|
+
function onWindowBlur() {
|
|
104
|
+
pauseTimer();
|
|
105
|
+
}
|
|
106
|
+
function onWindowFocus() {
|
|
107
|
+
resumeTimer();
|
|
71
108
|
}
|
|
72
109
|
watch(() => props.isExiting, (exiting) => {
|
|
73
110
|
if (!exiting || !timer.value) return;
|
|
74
111
|
clearTimeout(timer.value);
|
|
75
112
|
timer.value = null;
|
|
76
113
|
});
|
|
114
|
+
watch(duration, (next) => {
|
|
115
|
+
remaining.value = next;
|
|
116
|
+
startTimer();
|
|
117
|
+
});
|
|
77
118
|
onMounted(() => {
|
|
78
119
|
startTimer();
|
|
120
|
+
if (autoHide.value) {
|
|
121
|
+
window.addEventListener("blur", onWindowBlur);
|
|
122
|
+
window.addEventListener("focus", onWindowFocus);
|
|
123
|
+
}
|
|
79
124
|
});
|
|
80
125
|
onUnmounted(() => {
|
|
81
126
|
if (timer.value) clearTimeout(timer.value);
|
|
127
|
+
window.removeEventListener("blur", onWindowBlur);
|
|
128
|
+
window.removeEventListener("focus", onWindowFocus);
|
|
82
129
|
});
|
|
83
130
|
return (_ctx, _cache) => {
|
|
84
131
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- toast pauses auto-dismiss on hover/focus "), createElementVNode("div", {
|
|
@@ -90,7 +137,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
90
137
|
onMouseleave: resumeTimer,
|
|
91
138
|
onFocusin: pauseTimer,
|
|
92
139
|
onFocusout: resumeTimer
|
|
93
|
-
}, [
|
|
140
|
+
}, [_ctx.$slots.content ? renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps(contentScope.value)), void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
94
141
|
createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.body), 1)])]),
|
|
95
142
|
__props.endContent || _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "end", {}, () => [__props.endContent ? (openBlock(), createBlock(resolveDynamicComponent(__props.endContent), { key: 0 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true),
|
|
96
143
|
createElementVNode("button", {
|
|
@@ -99,7 +146,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
99
146
|
"aria-label": "Close",
|
|
100
147
|
onClick: handleClose
|
|
101
148
|
}, " × ")
|
|
102
|
-
], 42, _hoisted_1$1)], 2112);
|
|
149
|
+
], 64))], 42, _hoisted_1$1)], 2112);
|
|
103
150
|
};
|
|
104
151
|
}
|
|
105
152
|
});
|
|
@@ -111,38 +158,46 @@ const toastStore = reactive({
|
|
|
111
158
|
toasts: [],
|
|
112
159
|
add(options) {
|
|
113
160
|
const endContent = options.endContent ? markRaw(options.endContent) : void 0;
|
|
161
|
+
const resolved = {
|
|
162
|
+
type: options.type ?? "info",
|
|
163
|
+
body: options.body,
|
|
164
|
+
isAutoHide: resolveAutoHide(options),
|
|
165
|
+
autoHideDuration: resolveAutoHideDuration(options),
|
|
166
|
+
endContent,
|
|
167
|
+
onDismiss: options.onDismiss,
|
|
168
|
+
onHide: options.onHide
|
|
169
|
+
};
|
|
114
170
|
if (options.uniqueID) {
|
|
115
171
|
const existing = this.toasts.find((toast) => toast.uniqueID === options.uniqueID && !toast.isExiting);
|
|
116
172
|
const behavior = options.collisionBehavior ?? "overwrite";
|
|
117
173
|
if (existing && behavior === "ignore") return null;
|
|
118
174
|
if (existing) {
|
|
119
|
-
existing
|
|
120
|
-
existing.body = options.body;
|
|
121
|
-
existing.autoClose = options.autoClose ?? true;
|
|
122
|
-
existing.duration = options.duration ?? 5e3;
|
|
123
|
-
existing.endContent = endContent;
|
|
175
|
+
Object.assign(existing, resolved);
|
|
124
176
|
return existing.id;
|
|
125
177
|
}
|
|
126
178
|
}
|
|
127
179
|
const id = `astryx-toast-${++idCounter}`;
|
|
128
180
|
this.toasts.push({
|
|
129
181
|
id,
|
|
130
|
-
type: options.type ?? "info",
|
|
131
|
-
body: options.body,
|
|
132
|
-
autoClose: options.autoClose ?? true,
|
|
133
|
-
duration: options.duration ?? 5e3,
|
|
134
182
|
uniqueID: options.uniqueID,
|
|
135
|
-
|
|
136
|
-
|
|
183
|
+
isExiting: false,
|
|
184
|
+
...resolved
|
|
137
185
|
});
|
|
138
186
|
return id;
|
|
139
187
|
},
|
|
140
|
-
requestClose(id) {
|
|
188
|
+
requestClose(id, reason = "manual") {
|
|
141
189
|
const item = this.toasts.find((t) => t.id === id);
|
|
142
190
|
if (!item || item.isExiting) return;
|
|
143
191
|
item.isExiting = true;
|
|
192
|
+
item.onHide?.(reason);
|
|
144
193
|
setTimeout(() => this.finalize(id), EXIT_FALLBACK_MS);
|
|
145
194
|
},
|
|
195
|
+
dismissFromCard(id, reason) {
|
|
196
|
+
const item = this.toasts.find((t) => t.id === id);
|
|
197
|
+
if (!item || item.isExiting) return;
|
|
198
|
+
item.onDismiss?.(reason);
|
|
199
|
+
this.requestClose(id, reason);
|
|
200
|
+
},
|
|
146
201
|
finalize(id) {
|
|
147
202
|
const index = this.toasts.findIndex((t) => t.id === id);
|
|
148
203
|
if (index >= 0) this.toasts.splice(index, 1);
|
|
@@ -156,11 +211,53 @@ const toastStore = reactive({
|
|
|
156
211
|
const _hoisted_1 = ["onTransitionend"];
|
|
157
212
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
158
213
|
__name: "ToastViewport",
|
|
159
|
-
props: { placement: {
|
|
214
|
+
props: { placement: {} },
|
|
160
215
|
setup(__props) {
|
|
161
216
|
const props = __props;
|
|
162
|
-
const
|
|
163
|
-
const
|
|
217
|
+
const layer = useLayerConfig();
|
|
218
|
+
const placement = computed(() => props.placement ?? layer?.value.toast.position ?? "bottom-end");
|
|
219
|
+
const isTopPlacement = computed(() => placement.value.startsWith("top"));
|
|
220
|
+
const classes = computed(() => ["astryx-toast-viewport", `astryx-toast-viewport--placement-${placement.value}`]);
|
|
221
|
+
/** 超出可见上限时只渲染最新的几条。 */
|
|
222
|
+
const visibleToasts = computed(() => {
|
|
223
|
+
const max = layer?.value.toast.maxVisible;
|
|
224
|
+
const toasts = toastStore.toasts;
|
|
225
|
+
if (max == null || max < 0 || toasts.length <= max) return toasts;
|
|
226
|
+
return toasts.slice(toasts.length - max);
|
|
227
|
+
});
|
|
228
|
+
const INSET_EDGES = [
|
|
229
|
+
[
|
|
230
|
+
"padding-block-start",
|
|
231
|
+
"blockStart",
|
|
232
|
+
"top"
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
"padding-block-end",
|
|
236
|
+
"blockEnd",
|
|
237
|
+
"bottom"
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
"padding-inline-start",
|
|
241
|
+
"inlineStart",
|
|
242
|
+
"left"
|
|
243
|
+
],
|
|
244
|
+
[
|
|
245
|
+
"padding-inline-end",
|
|
246
|
+
"inlineEnd",
|
|
247
|
+
"right"
|
|
248
|
+
]
|
|
249
|
+
];
|
|
250
|
+
/**
|
|
251
|
+
* 逐边偏移叠在基础内边距上。基础内边距取间距第 4 档和设备安全区的较大者,
|
|
252
|
+
* 和锚定浮层的视口空隙保持一致。没有 provider 时不写内联样式,保持原来的样子。
|
|
253
|
+
*/
|
|
254
|
+
const viewportStyle = computed(() => {
|
|
255
|
+
const inset = layer?.value.toast.inset;
|
|
256
|
+
if (inset == null) return void 0;
|
|
257
|
+
const style = {};
|
|
258
|
+
for (const [property, edge, areaEdge] of INSET_EDGES) style[property] = `calc(max(var(--astryx-spacing-4, 16px), env(safe-area-inset-${areaEdge}, 0px)) + ${inset[edge] ?? 0}px)`;
|
|
259
|
+
return style;
|
|
260
|
+
});
|
|
164
261
|
const settled = reactive(/* @__PURE__ */ new Set());
|
|
165
262
|
function handleRowTransitionEnd(id, event) {
|
|
166
263
|
if (event.target !== event.currentTarget || event.propertyName !== "grid-template-rows") return;
|
|
@@ -169,9 +266,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
169
266
|
if (item.isExiting) toastStore.finalize(id);
|
|
170
267
|
else settled.add(id);
|
|
171
268
|
}
|
|
172
|
-
function
|
|
269
|
+
function handleDismiss(id, reason) {
|
|
173
270
|
settled.delete(id);
|
|
174
|
-
toastStore.
|
|
271
|
+
toastStore.dismissFromCard(id, reason);
|
|
175
272
|
}
|
|
176
273
|
watch(() => toastStore.toasts.map((t) => t.id).join(","), () => {
|
|
177
274
|
const live = new Set(toastStore.toasts.map((t) => t.id));
|
|
@@ -180,9 +277,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
180
277
|
return (_ctx, _cache) => {
|
|
181
278
|
return openBlock(), createBlock(Teleport, { to: "body" }, [createElementVNode("div", {
|
|
182
279
|
class: normalizeClass(classes.value),
|
|
280
|
+
style: normalizeStyle(viewportStyle.value),
|
|
183
281
|
"aria-live": "polite",
|
|
184
282
|
"aria-atomic": "false"
|
|
185
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
283
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleToasts.value, (toast) => {
|
|
186
284
|
return openBlock(), createElementBlock("div", {
|
|
187
285
|
key: toast.id,
|
|
188
286
|
class: normalizeClass(["astryx-toast-viewport__row", [isTopPlacement.value ? "astryx-toast-viewport__row--from-top" : "astryx-toast-viewport__row--from-bottom", { "astryx-toast-viewport__row--exiting": toast.isExiting }]]),
|
|
@@ -190,21 +288,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
190
288
|
}, [createElementVNode("div", { class: normalizeClass(["astryx-toast-viewport__clip", { "astryx-toast-viewport__clip--settled": settled.has(toast.id) }]) }, [createVNode(_sfc_main$1, {
|
|
191
289
|
type: toast.type,
|
|
192
290
|
body: toast.body,
|
|
193
|
-
"auto-
|
|
194
|
-
duration: toast.
|
|
291
|
+
"is-auto-hide": toast.isAutoHide,
|
|
292
|
+
"auto-hide-duration": toast.autoHideDuration,
|
|
195
293
|
"end-content": toast.endContent,
|
|
196
294
|
"is-exiting": toast.isExiting,
|
|
197
|
-
|
|
295
|
+
onDismiss: ($event) => handleDismiss(toast.id, $event)
|
|
198
296
|
}, null, 8, [
|
|
199
297
|
"type",
|
|
200
298
|
"body",
|
|
201
|
-
"auto-
|
|
202
|
-
"duration",
|
|
299
|
+
"is-auto-hide",
|
|
300
|
+
"auto-hide-duration",
|
|
203
301
|
"end-content",
|
|
204
302
|
"is-exiting",
|
|
205
|
-
"
|
|
303
|
+
"onDismiss"
|
|
206
304
|
])], 2)], 42, _hoisted_1);
|
|
207
|
-
}), 128))],
|
|
305
|
+
}), 128))], 6)]);
|
|
208
306
|
};
|
|
209
307
|
}
|
|
210
308
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-B-C-Q7XP.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
1
|
+
import { t as _sfc_main$2 } from "./Button-B6Hj_O_s.js";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, inject, mergeModels, openBlock, provide, renderSlot, shallowRef, toDisplayString, useModel, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
import "../styles/toggle-button.css";
|
|
4
4
|
//#region src/ToggleButton/context.ts
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-i0tNFWfz.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
package/dist/Token/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
+
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
3
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useAttrs, withCtx } from "vue";
|
|
3
5
|
import "../styles/visually-hidden-utility.css";
|
|
4
6
|
import "../styles/token.css";
|
|
5
7
|
//#region src/Token/Token.vue
|
|
@@ -8,13 +10,8 @@ const _hoisted_1 = {
|
|
|
8
10
|
class: "astryx-token-icon",
|
|
9
11
|
"aria-hidden": "true"
|
|
10
12
|
};
|
|
11
|
-
const _hoisted_2 = [
|
|
12
|
-
|
|
13
|
-
"aria-disabled",
|
|
14
|
-
"tabindex"
|
|
15
|
-
];
|
|
16
|
-
const _hoisted_3 = ["disabled"];
|
|
17
|
-
const _hoisted_4 = ["aria-label", "disabled"];
|
|
13
|
+
const _hoisted_2 = ["disabled"];
|
|
14
|
+
const _hoisted_3 = ["aria-label", "disabled"];
|
|
18
15
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
19
16
|
name: "AstryxToken",
|
|
20
17
|
inheritAttrs: false,
|
|
@@ -44,13 +41,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
44
41
|
const emit = __emit;
|
|
45
42
|
const attrs = useAttrs();
|
|
46
43
|
const messages = useAstryxMessages();
|
|
44
|
+
const linkComponent = useLinkComponent();
|
|
45
|
+
/** 有链接时用的根组件,没有 provider 时还是 `<a>`。 */
|
|
46
|
+
const linkRoot = computed(() => linkComponent.value == null ? "a" : toRaw(linkComponent.value));
|
|
47
47
|
const removeLabel = computed(() => messages.value.token.remove(props.label));
|
|
48
48
|
const clickable = computed(() => typeof attrs.onClick === "function");
|
|
49
49
|
const linked = computed(() => Boolean(props.href));
|
|
50
50
|
const interactive = computed(() => clickable.value || linked.value || props.removable);
|
|
51
51
|
const rootIsLink = computed(() => linked.value && !props.removable);
|
|
52
|
-
|
|
53
|
-
const
|
|
52
|
+
/** 删除按钮旁边那个动作元素是什么,由 `useInteractiveRole` 统一排序。 */
|
|
53
|
+
const actionRole = useInteractiveRole({
|
|
54
|
+
href: () => props.removable ? props.href : void 0,
|
|
55
|
+
hasOnClick: () => clickable.value && !linked.value
|
|
56
|
+
});
|
|
57
|
+
const actionIsLink = computed(() => actionRole.role.value === "link");
|
|
58
|
+
const actionIsButton = computed(() => actionRole.role.value === "button");
|
|
54
59
|
const rootAttrs = computed(() => {
|
|
55
60
|
return Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "onClick"));
|
|
56
61
|
});
|
|
@@ -71,13 +76,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
71
76
|
emit("remove", event);
|
|
72
77
|
}
|
|
73
78
|
return (_ctx, _cache) => {
|
|
74
|
-
return openBlock(), createBlock(resolveDynamicComponent(rootIsLink.value ?
|
|
79
|
+
return openBlock(), createBlock(resolveDynamicComponent(rootIsLink.value ? linkRoot.value : "span"), mergeProps(rootAttrs.value, {
|
|
75
80
|
class: ["astryx-token", [`size-${props.size}`, {
|
|
76
81
|
"is-interactive": interactive.value,
|
|
77
82
|
"is-disabled": props.disabled
|
|
78
83
|
}]],
|
|
79
84
|
"data-color": props.color,
|
|
80
85
|
href: rootIsLink.value && !props.disabled ? props.href : void 0,
|
|
86
|
+
to: rootIsLink.value && !props.disabled && linkRoot.value !== "a" ? props.href : void 0,
|
|
81
87
|
"aria-disabled": props.disabled && (rootIsLink.value || actionIsLink.value) ? "true" : void 0,
|
|
82
88
|
"aria-label": props.labelHidden ? props.label : void 0,
|
|
83
89
|
"aria-description": props.description,
|
|
@@ -86,23 +92,32 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
86
92
|
}), {
|
|
87
93
|
default: withCtx(() => [
|
|
88
94
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
89
|
-
actionIsLink.value ? (openBlock(),
|
|
95
|
+
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(actionIsLink.value ? linkRoot.value : "a"), {
|
|
90
96
|
key: 1,
|
|
91
97
|
class: "astryx-token-action",
|
|
92
98
|
href: props.disabled ? void 0 : props.href,
|
|
99
|
+
to: props.disabled || linkRoot.value === "a" ? void 0 : props.href,
|
|
93
100
|
"aria-disabled": props.disabled || void 0,
|
|
94
101
|
tabindex: props.disabled ? -1 : void 0
|
|
95
|
-
},
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": props.labelHidden }]) }, toDisplayString(props.label), 3)]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, [
|
|
106
|
+
"href",
|
|
107
|
+
"to",
|
|
108
|
+
"aria-disabled",
|
|
109
|
+
"tabindex"
|
|
110
|
+
])) : actionIsButton.value ? (openBlock(), createElementBlock("button", {
|
|
96
111
|
key: 2,
|
|
97
112
|
type: "button",
|
|
98
113
|
class: "astryx-token-action",
|
|
99
114
|
disabled: props.disabled,
|
|
100
115
|
onClick: runClick
|
|
101
|
-
}, [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": props.labelHidden }]) }, toDisplayString(props.label), 3)], 8,
|
|
116
|
+
}, [createElementVNode("span", { class: normalizeClass(["astryx-token-label", { "is-hidden": props.labelHidden }]) }, toDisplayString(props.label), 3)], 8, _hoisted_2)) : (openBlock(), createElementBlock("span", {
|
|
102
117
|
key: 3,
|
|
103
118
|
class: normalizeClass(["astryx-token-label", { "is-hidden": props.labelHidden }])
|
|
104
119
|
}, toDisplayString(props.label), 3)),
|
|
105
|
-
renderSlot(_ctx.$slots, "end"),
|
|
120
|
+
renderSlot(_ctx.$slots, "end", {}, () => [renderSlot(_ctx.$slots, "endContent")]),
|
|
106
121
|
props.removable ? (openBlock(), createElementBlock("button", {
|
|
107
122
|
key: 4,
|
|
108
123
|
type: "button",
|
|
@@ -121,13 +136,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
121
136
|
stroke: "currentColor",
|
|
122
137
|
"stroke-width": "1.5",
|
|
123
138
|
"stroke-linecap": "round"
|
|
124
|
-
})], -1)])], 8,
|
|
139
|
+
})], -1)])], 8, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
125
140
|
]),
|
|
126
141
|
_: 3
|
|
127
142
|
}, 16, [
|
|
128
143
|
"class",
|
|
129
144
|
"data-color",
|
|
130
145
|
"href",
|
|
146
|
+
"to",
|
|
131
147
|
"aria-disabled",
|
|
132
148
|
"aria-label",
|
|
133
149
|
"aria-description",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-ClNU2Th8.js";
|
|
2
2
|
export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-B5C_qY7t.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|