@astryx-vue/core 0.2.3 → 0.2.5
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/README.md +28 -26
- package/THIRD_PARTY_NOTICES.md +2 -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-Dd-D4bA2.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 +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
- package/dist/Button/index.d.ts +1 -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-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
- 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-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
- package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
- package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
- package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
- 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-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
- 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/Indicator/index.d.ts +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
- 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-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
- package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavItem/index.d.ts +1 -1
- 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-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-FMh7r-r_.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-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
- 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/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-CXpvj1TZ.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 +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
- 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 -3
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
- package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BHQ_LKGm.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-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
- 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-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
- 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-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
- 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/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -4
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
- package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
- package/dist/{index-D1Twv_fL.d.ts → index-4TRnFGxv.d.ts} +6 -6
- package/dist/{index-BTAgQRP0.d.ts → index-B9rqmYxh.d.ts} +150 -62
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
- package/dist/{index-C2sfHfBw.d.ts → index-BK9T1TPZ.d.ts} +4 -4
- package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
- package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -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-MPcg1Pm4.d.ts → index-BpH4wvsg.d.ts} +2 -2
- package/dist/{index-BMn9ghAX.d.ts → index-C1HIqW_H.d.ts} +2 -2
- package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
- package/dist/{index-DkVEBdWa.d.ts → index-CB9Srua5.d.ts} +1 -1
- package/dist/{index-C8wDPDcP.d.ts → index-CLmKfnqf.d.ts} +49 -7
- package/dist/{index-DMQG6kdM.d.ts → index-CPwzSbQQ.d.ts} +2 -2
- package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
- package/dist/{index-foQMNKZO.d.ts → index-D5N9ikrS.d.ts} +48 -2
- package/dist/{index-D8o50qOE.d.ts → index-DFbvnBlf.d.ts} +31 -2
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/{index-ViSV0RBx.d.ts → index-DjMwF8ET.d.ts} +11 -1
- package/dist/{index-nCEmW6wa.d.ts → index-DtePJ_w_.d.ts} +1 -1
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-f4NGT-e2.d.ts → index-EFqQF2Bx.d.ts} +1 -1
- package/dist/{index-BB5yVIN-.d.ts → index-JL4auphT.d.ts} +2 -2
- package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
- 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-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +80 -79
- package/dist/index.js +118 -115
- 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-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- 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/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
- 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 +4 -2
- package/styles/bottom-sheet.css +27 -0
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/heading.css +47 -0
- 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/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- 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 +2 -0
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-CejS9MHm.js +0 -447
- package/dist/Typeahead-DQ3tmqYe.js +0 -375
- package/dist/index-Bqb_Fyju.d.ts +0 -80
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/locale-CCwVnyMZ.js +0 -42
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-jmqqnkKA.d.ts +0 -163
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BXkNZF3q.d.ts → index-CpiWVbRZ.d.ts} +1 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Tooltip-C2fh9anJ.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, withCtx } from "vue";
|
|
5
|
+
import "../styles/link.css";
|
|
6
|
+
//#region src/Link/Link.vue
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "astryx-link__external",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "astryx-link__external",
|
|
15
|
+
"aria-hidden": "true"
|
|
16
|
+
};
|
|
17
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
18
|
+
name: "AstryxLink",
|
|
19
|
+
inheritAttrs: false,
|
|
20
|
+
__name: "Link",
|
|
21
|
+
props: {
|
|
22
|
+
as: {},
|
|
23
|
+
label: {},
|
|
24
|
+
href: {},
|
|
25
|
+
isExternalLink: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
newTabLabel: {},
|
|
30
|
+
hasUnderline: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
color: { default: "accent" },
|
|
35
|
+
isDisabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
target: {},
|
|
40
|
+
rel: {},
|
|
41
|
+
download: { type: [String, Boolean] },
|
|
42
|
+
tooltip: {},
|
|
43
|
+
isStandalone: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
size: {},
|
|
48
|
+
weight: {},
|
|
49
|
+
maxLines: { default: 0 }
|
|
50
|
+
},
|
|
51
|
+
emits: ["click"],
|
|
52
|
+
setup(__props, { emit: __emit }) {
|
|
53
|
+
const props = __props;
|
|
54
|
+
const emit = __emit;
|
|
55
|
+
const messages = useAstryxMessages();
|
|
56
|
+
const isButton = computed(() => props.href == null || props.href === "");
|
|
57
|
+
const isCustomLink = computed(() => !isButton.value && !props.isDisabled && props.as != null);
|
|
58
|
+
const root = computed(() => {
|
|
59
|
+
if (isButton.value || props.isDisabled || props.as == null) return isButton.value ? "button" : "a";
|
|
60
|
+
return toRaw(props.as);
|
|
61
|
+
});
|
|
62
|
+
const computedTarget = computed(() => {
|
|
63
|
+
return props.isExternalLink ? "_blank" : props.target;
|
|
64
|
+
});
|
|
65
|
+
const computedRel = computed(() => {
|
|
66
|
+
const parts = new Set((props.rel ?? "").split(" ").filter(Boolean));
|
|
67
|
+
if (props.isExternalLink || computedTarget.value === "_blank") {
|
|
68
|
+
parts.add("noopener");
|
|
69
|
+
parts.add("noreferrer");
|
|
70
|
+
}
|
|
71
|
+
return parts.size > 0 ? Array.from(parts).join(" ") : void 0;
|
|
72
|
+
});
|
|
73
|
+
const weightClass = computed(() => {
|
|
74
|
+
if (props.weight == null) return void 0;
|
|
75
|
+
return props.weight === "normal" ? "regular" : props.weight;
|
|
76
|
+
});
|
|
77
|
+
const classes = computed(() => [
|
|
78
|
+
"astryx-link",
|
|
79
|
+
`astryx-link--color-${props.color}`,
|
|
80
|
+
props.hasUnderline && "astryx-link--underlined",
|
|
81
|
+
props.isDisabled && "astryx-link--disabled",
|
|
82
|
+
props.isExternalLink && "astryx-link--external",
|
|
83
|
+
props.isStandalone && "astryx-link--standalone",
|
|
84
|
+
props.size && `astryx-link--size-${props.size}`,
|
|
85
|
+
weightClass.value && `astryx-link--weight-${weightClass.value}`,
|
|
86
|
+
props.maxLines > 0 && "astryx-link--lines"
|
|
87
|
+
]);
|
|
88
|
+
const labelClass = computed(() => [
|
|
89
|
+
"astryx-link__label",
|
|
90
|
+
props.maxLines === 1 && "astryx-link__label--single",
|
|
91
|
+
props.maxLines > 1 && "astryx-link__label--clamp"
|
|
92
|
+
]);
|
|
93
|
+
const labelStyle = computed(() => {
|
|
94
|
+
if (props.maxLines > 1) return { "--astryx-link-max-lines": String(props.maxLines) };
|
|
95
|
+
});
|
|
96
|
+
const tooltipText = computed(() => {
|
|
97
|
+
return props.tooltip?.trim() || void 0;
|
|
98
|
+
});
|
|
99
|
+
const newTabText = computed(() => props.newTabLabel || messages.value.nav.opensInNewTab);
|
|
100
|
+
const showNewTab = computed(() => props.isExternalLink && !isButton.value);
|
|
101
|
+
function handleClick(event) {
|
|
102
|
+
if (props.isDisabled) {
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
emit("click", event);
|
|
107
|
+
}
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return tooltipText.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
110
|
+
key: 0,
|
|
111
|
+
content: tooltipText.value
|
|
112
|
+
}, {
|
|
113
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps(_ctx.$attrs, {
|
|
114
|
+
class: ["astryx-link", classes.value],
|
|
115
|
+
href: !isButton.value && !__props.isDisabled ? __props.href : void 0,
|
|
116
|
+
to: isCustomLink.value ? __props.href : void 0,
|
|
117
|
+
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
118
|
+
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
119
|
+
download: !isButton.value && !__props.isDisabled ? __props.download : void 0,
|
|
120
|
+
type: isButton.value ? "button" : void 0,
|
|
121
|
+
disabled: isButton.value ? __props.isDisabled : void 0,
|
|
122
|
+
role: __props.isDisabled && !isButton.value ? "link" : void 0,
|
|
123
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
124
|
+
"aria-label": __props.label || void 0,
|
|
125
|
+
onClick: handleClick
|
|
126
|
+
}), {
|
|
127
|
+
default: withCtx(() => [
|
|
128
|
+
createElementVNode("span", {
|
|
129
|
+
class: normalizeClass(labelClass.value),
|
|
130
|
+
style: normalizeStyle(labelStyle.value)
|
|
131
|
+
}, [renderSlot(_ctx.$slots, "default")], 6),
|
|
132
|
+
showNewTab.value ? (openBlock(), createElementBlock("span", _hoisted_1, "↗")) : createCommentVNode("v-if", true),
|
|
133
|
+
showNewTab.value ? (openBlock(), createBlock(_sfc_main$1, { key: 1 }, {
|
|
134
|
+
default: withCtx(() => [createTextVNode(toDisplayString(newTabText.value), 1)]),
|
|
135
|
+
_: 1
|
|
136
|
+
})) : createCommentVNode("v-if", true)
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 16, [
|
|
140
|
+
"class",
|
|
141
|
+
"href",
|
|
142
|
+
"to",
|
|
143
|
+
"target",
|
|
144
|
+
"rel",
|
|
145
|
+
"download",
|
|
146
|
+
"type",
|
|
147
|
+
"disabled",
|
|
148
|
+
"role",
|
|
149
|
+
"aria-disabled",
|
|
150
|
+
"aria-label"
|
|
151
|
+
]))]),
|
|
152
|
+
_: 3
|
|
153
|
+
}, 8, ["content"])) : (openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
154
|
+
class: ["astryx-link", classes.value],
|
|
155
|
+
href: !isButton.value && !__props.isDisabled ? __props.href : void 0,
|
|
156
|
+
to: isCustomLink.value ? __props.href : void 0,
|
|
157
|
+
target: !isButton.value && !__props.isDisabled ? computedTarget.value : void 0,
|
|
158
|
+
rel: !isButton.value && !__props.isDisabled ? computedRel.value : void 0,
|
|
159
|
+
download: !isButton.value && !__props.isDisabled ? __props.download : void 0,
|
|
160
|
+
type: isButton.value ? "button" : void 0,
|
|
161
|
+
disabled: isButton.value ? __props.isDisabled : void 0,
|
|
162
|
+
role: __props.isDisabled && !isButton.value ? "link" : void 0,
|
|
163
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
164
|
+
"aria-label": __props.label || void 0,
|
|
165
|
+
onClick: handleClick
|
|
166
|
+
}), {
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
createElementVNode("span", {
|
|
169
|
+
class: normalizeClass(labelClass.value),
|
|
170
|
+
style: normalizeStyle(labelStyle.value)
|
|
171
|
+
}, [renderSlot(_ctx.$slots, "default")], 6),
|
|
172
|
+
showNewTab.value ? (openBlock(), createElementBlock("span", _hoisted_2, "↗")) : createCommentVNode("v-if", true),
|
|
173
|
+
showNewTab.value ? (openBlock(), createBlock(_sfc_main$1, { key: 1 }, {
|
|
174
|
+
default: withCtx(() => [createTextVNode(toDisplayString(newTabText.value), 1)]),
|
|
175
|
+
_: 1
|
|
176
|
+
})) : createCommentVNode("v-if", true)
|
|
177
|
+
]),
|
|
178
|
+
_: 3
|
|
179
|
+
}, 16, [
|
|
180
|
+
"class",
|
|
181
|
+
"href",
|
|
182
|
+
"to",
|
|
183
|
+
"target",
|
|
184
|
+
"rel",
|
|
185
|
+
"download",
|
|
186
|
+
"type",
|
|
187
|
+
"disabled",
|
|
188
|
+
"role",
|
|
189
|
+
"aria-disabled",
|
|
190
|
+
"aria-label"
|
|
191
|
+
]));
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
//#endregion
|
|
196
|
+
export { _sfc_main as t };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ItemLayout, c as
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
3
|
-
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, 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 };
|
|
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-JL4auphT.js";
|
|
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-DrYJL1TG.js";
|
|
2
|
+
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-CcRHWuEm.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-DrYJL1TG.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
|
|
@@ -101,7 +101,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
101
101
|
target: {},
|
|
102
102
|
rel: {},
|
|
103
103
|
isDisabled: { type: Boolean },
|
|
104
|
-
isSelected: { type: Boolean }
|
|
104
|
+
isSelected: { type: Boolean },
|
|
105
|
+
swipeActions: {},
|
|
106
|
+
swipeBehavior: {}
|
|
105
107
|
},
|
|
106
108
|
setup(__props) {
|
|
107
109
|
const props = __props;
|
|
@@ -124,6 +126,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
124
126
|
"is-selected": __props.isSelected,
|
|
125
127
|
label: __props.label,
|
|
126
128
|
"on-click": __props.onClick,
|
|
129
|
+
"swipe-actions": __props.swipeActions,
|
|
130
|
+
"swipe-behavior": __props.swipeBehavior,
|
|
127
131
|
rel: __props.rel,
|
|
128
132
|
target: __props.target
|
|
129
133
|
}, createSlots({ _: 2 }, [
|
|
@@ -168,6 +172,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
168
172
|
"is-selected",
|
|
169
173
|
"label",
|
|
170
174
|
"on-click",
|
|
175
|
+
"swipe-actions",
|
|
176
|
+
"swipe-behavior",
|
|
171
177
|
"rel",
|
|
172
178
|
"target"
|
|
173
179
|
]);
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { _default as Markdown, type MarkdownAlign, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownLinkProps, type MarkdownListProps, type MarkdownProps, type MarkdownSlots, parseMarkdown, slugify, uniqueSlug };
|
|
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-z3uLM1O6.js";
|
|
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 { i as
|
|
2
|
-
export { _sfc_main as Markdown, parseMarkdown, slugify, uniqueSlug };
|
|
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-Bz0R3kNj.js";
|
|
2
|
+
export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, defineMarkdownPlugin, isMarkdownExtensionNode, parseMarkdown, slugify, uniqueSlug };
|