@astryx-vue/core 0.2.2 → 0.2.4
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 +4 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DmTeM7PO.js +656 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-D4XFAEMp.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
- package/dist/DropdownMenu-6E9jFdFe.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-5N-hq2nF.js +618 -0
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -2
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
- package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -7
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
- package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
- package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
- package/dist/index-BPwD6aBv.d.ts +83 -0
- package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
- package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
- package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/index-XuAAcYiP.d.ts +77 -0
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +82 -80
- package/dist/index.js +127 -116
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/searchResultMessage-CCnq-_ce.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +7 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/heading.css +47 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/multi-selector.css +26 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +4 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-BuUiiJNr.js +0 -429
- package/dist/Typeahead-P7cCqtaQ.js +0 -375
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/index-jdjcb3Js.d.ts +0 -80
- package/dist/locale-Cpk_nrLA.js +0 -18
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { n as useButtonTooltip } from "./Button-DrqeomlE.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./ButtonTooltip-nWWrth8j.js";
|
|
3
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, openBlock, unref, useId, useTemplateRef, withModifiers } from "vue";
|
|
6
|
+
//#region src/Field/StatusGlyph.vue
|
|
7
|
+
const _hoisted_1 = ["data-status", "aria-label"];
|
|
8
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "StatusGlyph",
|
|
10
|
+
props: {
|
|
11
|
+
type: {},
|
|
12
|
+
message: {},
|
|
13
|
+
tooltip: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const messages = useAstryxMessages();
|
|
18
|
+
const button = useTemplateRef("button");
|
|
19
|
+
const anchor = computed(() => button.value);
|
|
20
|
+
const tooltipId = `astryx-status-tooltip-${useId()}`;
|
|
21
|
+
const showsTooltip = computed(() => props.tooltip === true && Boolean(props.message));
|
|
22
|
+
const tooltip = useButtonTooltip(showsTooltip);
|
|
23
|
+
const label = computed(() => {
|
|
24
|
+
if (props.type === "warning") return messages.value.input.statusWarning;
|
|
25
|
+
if (props.type === "success") return messages.value.input.statusSuccess;
|
|
26
|
+
return messages.value.input.statusError;
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock(Fragment, null, [showsTooltip.value ? (openBlock(), createElementBlock("button", {
|
|
30
|
+
key: 0,
|
|
31
|
+
ref_key: "button",
|
|
32
|
+
ref: button,
|
|
33
|
+
type: "button",
|
|
34
|
+
class: "astryx-field-status-glyph",
|
|
35
|
+
"data-status": __props.type,
|
|
36
|
+
"aria-label": label.value,
|
|
37
|
+
"aria-describedby": tooltipId,
|
|
38
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
39
|
+
onFocus: _cache[1] || (_cache[1] = (...args) => unref(tooltip).onTooltipPointerEnter && unref(tooltip).onTooltipPointerEnter(...args)),
|
|
40
|
+
onBlur: _cache[2] || (_cache[2] = (...args) => unref(tooltip).hideImmediately && unref(tooltip).hideImmediately(...args)),
|
|
41
|
+
onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
|
|
42
|
+
onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args))
|
|
43
|
+
}, [createVNode(_sfc_main$2, {
|
|
44
|
+
icon: __props.type,
|
|
45
|
+
size: "sm"
|
|
46
|
+
}, null, 8, ["icon"])], 40, _hoisted_1)) : (openBlock(), createBlock(_sfc_main$2, {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "astryx-field-status-glyph",
|
|
49
|
+
icon: __props.type,
|
|
50
|
+
size: "sm",
|
|
51
|
+
"data-status": __props.type
|
|
52
|
+
}, null, 8, ["icon", "data-status"])), showsTooltip.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
53
|
+
key: 2,
|
|
54
|
+
id: tooltipId,
|
|
55
|
+
anchor: anchor.value,
|
|
56
|
+
open: unref(tooltip).isOpen.value,
|
|
57
|
+
text: __props.message ?? "",
|
|
58
|
+
onPointerEnter: unref(tooltip).onTooltipPointerEnter,
|
|
59
|
+
onPointerLeave: unref(tooltip).onPointerLeave
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"anchor",
|
|
62
|
+
"open",
|
|
63
|
+
"text",
|
|
64
|
+
"onPointerEnter",
|
|
65
|
+
"onPointerLeave"
|
|
66
|
+
])) : createCommentVNode("v-if", true)], 64);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/Field/statusPlacement.ts
|
|
72
|
+
/**
|
|
73
|
+
* Ghost selectors detach an attached status message so the toolbar stays one line.
|
|
74
|
+
* Tooltip and an explicit detached placement stay as given.
|
|
75
|
+
*/
|
|
76
|
+
function fieldStatusPlacement(variant, statusVariant) {
|
|
77
|
+
return variant === "ghost" && statusVariant === "attached" ? "detached" : statusVariant;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/Selector/searchResultMessage.ts
|
|
81
|
+
/**
|
|
82
|
+
* 面板打开时要说的那句话。
|
|
83
|
+
* 加载中什么都不说,因为选项还没到,不能断言「没有选项」或「没有结果」。
|
|
84
|
+
* 创建行本身算一条结果,所以这时不报空。
|
|
85
|
+
*/
|
|
86
|
+
function searchResultMessage(input) {
|
|
87
|
+
if (!input.isOpen || input.isLoading) return "";
|
|
88
|
+
const searching = input.query.trim() !== "";
|
|
89
|
+
if (input.matchCount === 0 && !input.hasCreateRow) return searching ? input.emptySearchText : input.emptyText;
|
|
90
|
+
if (!searching) return "";
|
|
91
|
+
return input.resultCount(input.matchCount + (input.hasCreateRow ? 1 : 0));
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { fieldStatusPlacement as n, _sfc_main as r, searchResultMessage as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region src/Icon/semantic.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Semantic name to Iconify id.
|
|
4
|
+
*
|
|
5
|
+
* The names describe the job (close, search, check). The id is the drawing.
|
|
6
|
+
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
7
|
+
* its own keys, through `defineTheme({ icons })`.
|
|
8
|
+
*
|
|
9
|
+
* The drawing is used only after that collection is registered. Until then
|
|
10
|
+
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
11
|
+
*/
|
|
12
|
+
declare const defaultSemanticIcons: {
|
|
13
|
+
readonly close: "lucide:x";
|
|
14
|
+
readonly chevronDown: "lucide:chevron-down";
|
|
15
|
+
readonly chevronLeft: "lucide:chevron-left";
|
|
16
|
+
readonly chevronRight: "lucide:chevron-right";
|
|
17
|
+
readonly chevronsLeft: "lucide:chevrons-left";
|
|
18
|
+
readonly chevronsRight: "lucide:chevrons-right";
|
|
19
|
+
readonly check: "lucide:check";
|
|
20
|
+
readonly success: "lucide:circle-check";
|
|
21
|
+
readonly error: "lucide:circle-x";
|
|
22
|
+
readonly warning: "lucide:triangle-alert";
|
|
23
|
+
readonly info: "lucide:info";
|
|
24
|
+
readonly calendar: "lucide:calendar";
|
|
25
|
+
readonly clock: "lucide:clock";
|
|
26
|
+
readonly externalLink: "lucide:external-link";
|
|
27
|
+
readonly menu: "lucide:menu";
|
|
28
|
+
readonly moreHorizontal: "lucide:ellipsis";
|
|
29
|
+
readonly search: "lucide:search";
|
|
30
|
+
readonly upload: "lucide:upload";
|
|
31
|
+
readonly arrowUp: "lucide:arrow-up";
|
|
32
|
+
readonly arrowDown: "lucide:arrow-down";
|
|
33
|
+
readonly arrowsUpDown: "lucide:arrow-up-down";
|
|
34
|
+
readonly funnel: "lucide:funnel";
|
|
35
|
+
readonly eyeSlash: "lucide:eye-off";
|
|
36
|
+
readonly viewColumns: "lucide:columns-3";
|
|
37
|
+
readonly copy: "lucide:copy";
|
|
38
|
+
readonly checkDouble: "lucide:check-check";
|
|
39
|
+
readonly wrench: "lucide:wrench";
|
|
40
|
+
readonly stop: "lucide:square";
|
|
41
|
+
readonly microphone: "lucide:mic";
|
|
42
|
+
readonly image: "lucide:image";
|
|
43
|
+
};
|
|
44
|
+
type SemanticIconMap = Readonly<Record<string, string>>;
|
|
45
|
+
/**
|
|
46
|
+
* The Iconify id for a semantic name.
|
|
47
|
+
*
|
|
48
|
+
* Theme entries win, including keys the package does not ship. An unknown
|
|
49
|
+
* name with no theme entry returns undefined, so a CSS class can still pass
|
|
50
|
+
* through `icon`.
|
|
51
|
+
*/
|
|
52
|
+
declare function resolveSemanticIcon(name: string | undefined, icons?: SemanticIconMap): string | undefined;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { defaultSemanticIcons as n, resolveSemanticIcon as r, SemanticIconMap as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/Code/syntaxTheme.d.ts
|
|
2
|
+
declare const SYNTAX_TOKEN_KEYS: readonly ["keyword", "string", "comment", "number", "function", "type", "variable", "operator", "constant", "tag", "attribute", "property", "punctuation", "background"];
|
|
3
|
+
type SyntaxTokenKey = (typeof SYNTAX_TOKEN_KEYS)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Diff row slots. Optional on a syntax theme. The names continue
|
|
6
|
+
* `--astryx-code-syntax-*`: `added` is `--astryx-code-syntax-added`.
|
|
7
|
+
* A theme that omits them keeps the page theme's row tints, and takes its
|
|
8
|
+
* own punctuation color for the markers and no extra header paint.
|
|
9
|
+
*/
|
|
10
|
+
declare const DIFF_SYNTAX_TOKEN_KEYS: readonly ["added", "removed", "diff-header", "added-marker", "removed-marker"];
|
|
11
|
+
type SyntaxDiffTokenKey = (typeof DIFF_SYNTAX_TOKEN_KEYS)[number];
|
|
12
|
+
interface SyntaxThemeTokens {
|
|
13
|
+
'keyword': string;
|
|
14
|
+
'string': string;
|
|
15
|
+
'comment': string;
|
|
16
|
+
'number': string;
|
|
17
|
+
'function': string;
|
|
18
|
+
'type': string;
|
|
19
|
+
'variable': string;
|
|
20
|
+
'operator': string;
|
|
21
|
+
'constant': string;
|
|
22
|
+
'tag': string;
|
|
23
|
+
'attribute': string;
|
|
24
|
+
'property': string;
|
|
25
|
+
'punctuation': string;
|
|
26
|
+
'background': string;
|
|
27
|
+
/** Whole-row tint behind an added line. */
|
|
28
|
+
'added'?: string;
|
|
29
|
+
/** Whole-row tint behind a removed line. */
|
|
30
|
+
'removed'?: string;
|
|
31
|
+
/** Whole-row paint behind a hunk or file header. */
|
|
32
|
+
'diff-header'?: string;
|
|
33
|
+
/** Line number and `+` glyph on an added row. */
|
|
34
|
+
'added-marker'?: string;
|
|
35
|
+
/** Line number and `-` glyph on a removed row. */
|
|
36
|
+
'removed-marker'?: string;
|
|
37
|
+
}
|
|
38
|
+
/** A string is used as written. A tuple is the light stop, then the dark stop. */
|
|
39
|
+
type SyntaxTokenValue = string | readonly [string, string];
|
|
40
|
+
interface SyntaxThemeDefinition {
|
|
41
|
+
name: string;
|
|
42
|
+
tokens: SyntaxThemeTokens;
|
|
43
|
+
}
|
|
44
|
+
interface SyntaxThemeInput {
|
|
45
|
+
name: string;
|
|
46
|
+
tokens: { [K in SyntaxTokenKey]: SyntaxTokenValue; } & { [K in SyntaxDiffTokenKey]?: SyntaxTokenValue; };
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create a syntax theme. The 14 color tokens are required.
|
|
50
|
+
* Diff row slots are optional and use the same `--astryx-code-syntax-*` names.
|
|
51
|
+
* `[light, dark]` tuples are stored as `light-dark()`.
|
|
52
|
+
*/
|
|
53
|
+
declare function defineSyntaxTheme(theme: SyntaxThemeInput): SyntaxThemeDefinition;
|
|
54
|
+
/** GitHub Dark (GitHub Primer team), MIT. */
|
|
55
|
+
declare const githubDark: SyntaxThemeDefinition;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { SyntaxThemeInput as a, SyntaxTokenValue as c, SyntaxThemeDefinition as i, defineSyntaxTheme as l, SYNTAX_TOKEN_KEYS as n, SyntaxThemeTokens as o, SyntaxDiffTokenKey as r, SyntaxTokenKey as s, DIFF_SYNTAX_TOKEN_KEYS as t, githubDark as u };
|
|
@@ -15,12 +15,26 @@ const SYNTAX_TOKEN_KEYS = [
|
|
|
15
15
|
"punctuation",
|
|
16
16
|
"background"
|
|
17
17
|
];
|
|
18
|
+
/**
|
|
19
|
+
* Diff row slots. Optional on a syntax theme. The names continue
|
|
20
|
+
* `--astryx-code-syntax-*`: `added` is `--astryx-code-syntax-added`.
|
|
21
|
+
* A theme that omits them keeps the page theme's row tints, and takes its
|
|
22
|
+
* own punctuation color for the markers and no extra header paint.
|
|
23
|
+
*/
|
|
24
|
+
const DIFF_SYNTAX_TOKEN_KEYS = [
|
|
25
|
+
"added",
|
|
26
|
+
"removed",
|
|
27
|
+
"diff-header",
|
|
28
|
+
"added-marker",
|
|
29
|
+
"removed-marker"
|
|
30
|
+
];
|
|
18
31
|
function resolveSyntaxToken(value) {
|
|
19
32
|
if (typeof value === "string") return value;
|
|
20
33
|
return `light-dark(${value[0]}, ${value[1]})`;
|
|
21
34
|
}
|
|
22
35
|
/**
|
|
23
|
-
* Create a syntax theme.
|
|
36
|
+
* Create a syntax theme. The 14 color tokens are required.
|
|
37
|
+
* Diff row slots are optional and use the same `--astryx-code-syntax-*` names.
|
|
24
38
|
* `[light, dark]` tuples are stored as `light-dark()`.
|
|
25
39
|
*/
|
|
26
40
|
function defineSyntaxTheme(theme) {
|
|
@@ -31,6 +45,10 @@ function defineSyntaxTheme(theme) {
|
|
|
31
45
|
const value = theme.tokens[key];
|
|
32
46
|
if (value != null) tokens[key] = resolveSyntaxToken(value);
|
|
33
47
|
}
|
|
48
|
+
for (const key of DIFF_SYNTAX_TOKEN_KEYS) {
|
|
49
|
+
const value = theme.tokens[key];
|
|
50
|
+
if (value != null) tokens[key] = resolveSyntaxToken(value);
|
|
51
|
+
}
|
|
34
52
|
return {
|
|
35
53
|
name: theme.name,
|
|
36
54
|
tokens
|
|
@@ -66,10 +84,13 @@ function syntaxThemeStyle(theme) {
|
|
|
66
84
|
const blue = value & 255;
|
|
67
85
|
if ((red * 299 + green * 587 + blue * 114) / 1e3 < 140) style["--astryx-code-block-border"] = "rgb(255 255 255 / 12%)";
|
|
68
86
|
for (const [key, color] of Object.entries(theme.tokens)) {
|
|
69
|
-
if (key === "background") continue;
|
|
87
|
+
if (key === "background" || color == null) continue;
|
|
70
88
|
style[`--astryx-code-syntax-${key}`] = color;
|
|
71
89
|
}
|
|
90
|
+
if (theme.tokens["added-marker"] == null) style["--astryx-code-syntax-added-marker"] = "var(--astryx-code-syntax-punctuation)";
|
|
91
|
+
if (theme.tokens["removed-marker"] == null) style["--astryx-code-syntax-removed-marker"] = "var(--astryx-code-syntax-punctuation)";
|
|
92
|
+
if (theme.tokens["diff-header"] == null) style["--astryx-code-syntax-diff-header"] = "transparent";
|
|
72
93
|
return style;
|
|
73
94
|
}
|
|
74
95
|
//#endregion
|
|
75
|
-
export { syntaxThemeStyle as i,
|
|
96
|
+
export { syntaxThemeStyle as a, githubDark as i, SYNTAX_TOKEN_KEYS as n, defineSyntaxTheme as r, DIFF_SYNTAX_TOKEN_KEYS as t };
|
|
@@ -28,14 +28,14 @@ interface IconColorMap {
|
|
|
28
28
|
}
|
|
29
29
|
type IconColor = Extract<keyof IconColorMap, string>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Semantic names shared by the components.
|
|
32
32
|
*
|
|
33
|
-
* A name
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
33
|
+
* A name is the job, not one drawing. `defineTheme({ icons })` points the name
|
|
34
|
+
* at an Iconify id, and every component that asks for that name follows.
|
|
35
|
+
* `name` on Icon is still a direct Iconify id. `icon` accepts one of these
|
|
36
|
+
* names, a CSS class, or a component.
|
|
37
37
|
*/
|
|
38
|
-
type IconName = 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'check' | '
|
|
38
|
+
type IconName = 'close' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronsLeft' | 'chevronsRight' | 'check' | 'success' | 'error' | 'warning' | 'info' | 'calendar' | 'clock' | 'externalLink' | 'menu' | 'moreHorizontal' | 'search' | 'upload' | 'arrowUp' | 'arrowDown' | 'arrowsUpDown' | 'funnel' | 'eyeSlash' | 'viewColumns' | 'copy' | 'checkDouble' | 'wrench' | 'stop' | 'microphone' | 'image';
|
|
39
39
|
/**
|
|
40
40
|
* A built-in name, or any other string.
|
|
41
41
|
*
|
|
@@ -61,11 +61,12 @@ interface IconProps {
|
|
|
61
61
|
/**
|
|
62
62
|
* The icon to render. Three forms are accepted:
|
|
63
63
|
*
|
|
64
|
-
* - a
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
64
|
+
* - a semantic name such as `search` or `close`. The nearest theme decides
|
|
65
|
+
* which Iconify icon that name draws. Until that icon is registered, the
|
|
66
|
+
* built-in glyph is used;
|
|
67
|
+
* - a CSS icon class you provide, such as an UnoCSS class. The class paints
|
|
68
|
+
* the inside of the sized box, so a utility that sets `width`/`height:
|
|
69
|
+
* 100%` fills the icon instead of replacing its size;
|
|
69
70
|
* - a component, rendered as it is.
|
|
70
71
|
*
|
|
71
72
|
* Omit it when `name` or the default slot provides the artwork instead.
|
|
@@ -7,6 +7,8 @@ type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
|
7
7
|
type TextWordBreak = 'normal' | 'break-word' | 'break-all';
|
|
8
8
|
type TextDisplay = 'block' | 'inline';
|
|
9
9
|
type TextAs = 'span' | 'p' | 'div' | 'label';
|
|
10
|
+
type TextJustify = 'start' | 'center' | 'end';
|
|
11
|
+
type TextTruncateTooltip = boolean | 'above' | 'below' | 'start' | 'end';
|
|
10
12
|
interface TextProps {
|
|
11
13
|
/**
|
|
12
14
|
* Semantic text type. Determines size, weight, and line-height.
|
|
@@ -54,12 +56,23 @@ interface TextProps {
|
|
|
54
56
|
* @default 'span'
|
|
55
57
|
*/
|
|
56
58
|
as?: TextAs;
|
|
59
|
+
/**
|
|
60
|
+
* Text alignment. `start` and `end` follow the writing direction.
|
|
61
|
+
* @default 'start'
|
|
62
|
+
*/
|
|
63
|
+
justify?: TextJustify;
|
|
57
64
|
/**
|
|
58
65
|
* Maximum lines before truncation. 0 means no truncation.
|
|
59
66
|
* A positive value forces block layout so the ellipsis has a width.
|
|
60
67
|
* @default 0
|
|
61
68
|
*/
|
|
62
69
|
maxLines?: number;
|
|
70
|
+
/**
|
|
71
|
+
* 截断之后要不要把全文放进提示。`true` 出现在上方,方位字符串指定位置,`false` 关掉。
|
|
72
|
+
* 没被截断时不会弹出。
|
|
73
|
+
* @default true
|
|
74
|
+
*/
|
|
75
|
+
hasTruncateTooltip?: TextTruncateTooltip;
|
|
63
76
|
}
|
|
64
77
|
//#endregion
|
|
65
|
-
export {
|
|
78
|
+
export { TextProps as a, TextType as c, TextWrap as d, TextJustify as i, TextWeight as l, TextColor as n, TextSize as o, TextDisplay as r, TextTruncateTooltip as s, TextAs as t, TextWordBreak as u };
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { Component, MaybeRefOrGetter, VNodeChild } from "vue";
|
|
2
2
|
//#region src/List/types.d.ts
|
|
3
|
+
/** 滑动露出的一侧。`leading` 是往行内末尾拖,`trailing` 是往行内开头拖。 */
|
|
4
|
+
type ItemSwipeSide = 'leading' | 'trailing';
|
|
5
|
+
/** `reveal` 松手后停开;`commit` 越过阈值就滑出并触发最外侧,一侧只适合一个操作。 */
|
|
6
|
+
type ItemSwipeBehavior = 'reveal' | 'commit';
|
|
7
|
+
/** 横滑露出的一个操作。数组里越靠后越靠外。 */
|
|
8
|
+
interface ItemSwipeAction {
|
|
9
|
+
id?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon?: Component;
|
|
12
|
+
onActivate: () => void;
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
variant?: 'neutral' | 'accent' | 'destructive';
|
|
15
|
+
/** 触发后行停在滑出的位置,不再弹回。行本身不会被删掉。 */
|
|
16
|
+
hasRemoval?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface ItemSwipeActions {
|
|
19
|
+
leading?: ItemSwipeAction[];
|
|
20
|
+
trailing?: ItemSwipeAction[];
|
|
21
|
+
}
|
|
3
22
|
/**
|
|
4
23
|
* Spacing density for list rows.
|
|
5
24
|
*
|
|
@@ -124,6 +143,16 @@ interface ListItemProps {
|
|
|
124
143
|
* @default false
|
|
125
144
|
*/
|
|
126
145
|
isSelected?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* 触摸横滑露出的操作。鼠标不会开始这次拖动。
|
|
148
|
+
* 每个操作还要在行自己的内容里能点到,否则键盘和鼠标够不着。
|
|
149
|
+
*/
|
|
150
|
+
swipeActions?: ItemSwipeActions;
|
|
151
|
+
/**
|
|
152
|
+
* 松手之后怎么收场。
|
|
153
|
+
* @default 'reveal'
|
|
154
|
+
*/
|
|
155
|
+
swipeBehavior?: ItemSwipeBehavior;
|
|
127
156
|
}
|
|
128
157
|
interface ListItemSlots {
|
|
129
158
|
/** Leading content before the label: an icon, an avatar, a checkbox. */
|
|
@@ -178,4 +207,4 @@ interface ItemSlots extends ListItemSlots {
|
|
|
178
207
|
marker?: () => VNodeChild;
|
|
179
208
|
}
|
|
180
209
|
//#endregion
|
|
181
|
-
export { ItemLayout as a,
|
|
210
|
+
export { ListItemSlots as _, ItemLayout as a, ListSlots as b, ItemSwipeAction as c, ItemSwipeSide as d, ItemTarget as f, ListItemProps as g, ListEdgeCompensation as h, ItemLabel as i, ItemSwipeActions as l, ListDensity as m, ItemDensity as n, ItemProps as o, ItemText as p, ItemElement as r, ItemSlots as s, ItemAlign as t, ItemSwipeBehavior as u, ListMarkerStyle as v, ListProps as y };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { l as TextWeight, o as TextSize } from "./types-D9nP_X-c.js";
|
|
2
|
+
import { Component } from "vue";
|
|
3
|
+
//#region src/Link/types.d.ts
|
|
4
|
+
type LinkColor = 'primary' | 'secondary' | 'accent' | 'inherit';
|
|
5
|
+
type LinkSize = TextSize;
|
|
6
|
+
type LinkWeight = TextWeight;
|
|
7
|
+
/** Custom root used instead of `<a>` when `href` is set. Pass `RouterLink` or another component that accepts `href` and `to`. */
|
|
8
|
+
type LinkRoot = string | Component;
|
|
9
|
+
interface LinkProps {
|
|
10
|
+
/**
|
|
11
|
+
* Custom root used instead of `<a>` when `href` is set and the link is enabled.
|
|
12
|
+
* The component receives `href` and `to`. Disabled links stay a plain anchor.
|
|
13
|
+
*/
|
|
14
|
+
as?: LinkRoot;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible name. Set this when the visible content is not the name,
|
|
17
|
+
* for example an icon-only link. It replaces the link text for assistive technology.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Link destination URL.
|
|
22
|
+
*/
|
|
23
|
+
href?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the link opens in a new tab and shows an external indicator.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
isExternalLink?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Screen-reader text after an external link. Defaults to the current locale.
|
|
31
|
+
*/
|
|
32
|
+
newTabLabel?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the link always shows an underline.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
hasUnderline?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Text color.
|
|
40
|
+
* @default 'accent'
|
|
41
|
+
*/
|
|
42
|
+
color?: LinkColor;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the link is disabled.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
isDisabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* HTML target attribute.
|
|
50
|
+
*/
|
|
51
|
+
target?: string;
|
|
52
|
+
/**
|
|
53
|
+
* HTML rel attribute.
|
|
54
|
+
*/
|
|
55
|
+
rel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Causes the browser to download the linked URL.
|
|
58
|
+
*/
|
|
59
|
+
download?: string | boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Tooltip text shown on hover and keyboard focus.
|
|
62
|
+
*/
|
|
63
|
+
tooltip?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the link stands alone, rather than sitting inside body text.
|
|
66
|
+
* Applies body font size and line height.
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
isStandalone?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Font size. Uses the same steps as Text.
|
|
72
|
+
*/
|
|
73
|
+
size?: LinkSize;
|
|
74
|
+
/**
|
|
75
|
+
* Font weight. `normal` is the same as `regular`.
|
|
76
|
+
*/
|
|
77
|
+
weight?: LinkWeight;
|
|
78
|
+
/**
|
|
79
|
+
* Maximum lines before the label truncates. `0` does not truncate.
|
|
80
|
+
* @default 0
|
|
81
|
+
*/
|
|
82
|
+
maxLines?: number;
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { LinkWeight as a, LinkSize as i, LinkProps as n, LinkRoot as r, LinkColor as t };
|