@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.
Files changed (288) hide show
  1. package/README.md +28 -26
  2. package/THIRD_PARTY_NOTICES.md +2 -0
  3. package/dist/AlertDialog/index.js +1 -1
  4. package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/BottomSheet/index.d.ts +2 -2
  13. package/dist/BottomSheet/index.js +3 -2
  14. package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
  15. package/dist/BottomSheet-o7xw-TOi.js +153 -0
  16. package/dist/Breadcrumbs/index.d.ts +2 -2
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.d.ts +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
  24. package/dist/Carousel/index.js +1 -1
  25. package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
  26. package/dist/Chat/index.js +1 -1
  27. package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
  28. package/dist/CheckboxInput/index.d.ts +1 -1
  29. package/dist/CheckboxList/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.js +1 -1
  31. package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
  32. package/dist/Citation/index.js +1 -1
  33. package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/Code/index.d.ts +3 -3
  36. package/dist/Code/index.js +4 -4
  37. package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
  38. package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
  39. package/dist/CommandPalette/index.js +1 -1
  40. package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
  41. package/dist/ComplexSelector/index.js +1 -1
  42. package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
  43. package/dist/ContextMenu/index.d.ts +2 -2
  44. package/dist/ContextMenu/index.js +2 -2
  45. package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
  46. package/dist/DateInput/index.d.ts +1 -1
  47. package/dist/DateInput/index.js +1 -1
  48. package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
  49. package/dist/DateRangeInput/index.d.ts +1 -1
  50. package/dist/DateRangeInput/index.js +1 -1
  51. package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
  52. package/dist/DateTimeInput/index.d.ts +1 -1
  53. package/dist/DateTimeInput/index.js +1 -1
  54. package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
  55. package/dist/DropdownMenu/index.d.ts +2 -2
  56. package/dist/DropdownMenu/index.js +3 -3
  57. package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
  58. package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
  59. package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  62. package/dist/FileInput/index.d.ts +1 -1
  63. package/dist/FileInput/index.js +1 -1
  64. package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
  65. package/dist/Grid/index.d.ts +1 -1
  66. package/dist/Heading/index.d.ts +2 -2
  67. package/dist/Heading/index.js +1 -1
  68. package/dist/Heading-B9C3LZlS.js +94 -0
  69. package/dist/Indicator/index.d.ts +2 -2
  70. package/dist/InputGroup/index.d.ts +1 -1
  71. package/dist/Item-DrYJL1TG.js +590 -0
  72. package/dist/Lightbox/index.js +1 -1
  73. package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
  74. package/dist/Link/index.d.ts +3 -2
  75. package/dist/Link/index.js +1 -1
  76. package/dist/Link-DCZ6922-.js +196 -0
  77. package/dist/List/index.d.ts +3 -3
  78. package/dist/List/index.js +2 -2
  79. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  80. package/dist/Markdown/index.d.ts +2 -2
  81. package/dist/Markdown/index.js +2 -2
  82. package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
  83. package/dist/MetadataList/index.js +1 -1
  84. package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
  85. package/dist/MobileNav/index.js +1 -1
  86. package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  87. package/dist/MoreMenu/index.d.ts +1 -1
  88. package/dist/MoreMenu/index.js +1 -1
  89. package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
  90. package/dist/MultiSelector/index.d.ts +1 -1
  91. package/dist/MultiSelector/index.js +1 -1
  92. package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
  93. package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
  94. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  95. package/dist/NavItem/index.d.ts +1 -1
  96. package/dist/NavMenu/index.d.ts +2 -2
  97. package/dist/NavMenu/index.js +4 -3
  98. package/dist/NavMenu-ClIgMaxE.js +176 -0
  99. package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
  100. package/dist/NumberInput/index.d.ts +1 -1
  101. package/dist/NumberInput/index.js +1 -1
  102. package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
  103. package/dist/Outline/index.js +1 -1
  104. package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
  105. package/dist/OverflowList/index.d.ts +1 -1
  106. package/dist/OverflowList/index.js +1 -1
  107. package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
  108. package/dist/Pagination/index.d.ts +1 -1
  109. package/dist/Pagination/index.js +1 -1
  110. package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
  111. package/dist/Popover/index.d.ts +1 -1
  112. package/dist/PowerSearch/index.d.ts +1 -1
  113. package/dist/PowerSearch/index.js +1 -1
  114. package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
  115. package/dist/ProgressBar/index.d.ts +2 -2
  116. package/dist/ProgressBar/index.js +1 -1
  117. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  118. package/dist/Radio/index.d.ts +1 -1
  119. package/dist/RadioList/index.d.ts +1 -1
  120. package/dist/Resizable/index.d.ts +1 -1
  121. package/dist/Resizable/index.js +1 -1
  122. package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
  123. package/dist/ScrollableArea/index.d.ts +1 -1
  124. package/dist/SelectableCard/index.d.ts +1 -1
  125. package/dist/Selector/index.d.ts +1 -1
  126. package/dist/Selector/index.js +1 -1
  127. package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
  128. package/dist/SideNav/index.d.ts +2 -2
  129. package/dist/SideNav/index.js +1 -1
  130. package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
  131. package/dist/Stack/index.d.ts +1 -1
  132. package/dist/Stepper/index.js +1 -1
  133. package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
  134. package/dist/Switch/index.d.ts +1 -1
  135. package/dist/Table/index.js +1 -1
  136. package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
  137. package/dist/Text/index.d.ts +3 -3
  138. package/dist/Text/index.js +1 -1
  139. package/dist/Text-DIzZw6FA.js +86 -0
  140. package/dist/TextArea/index.d.ts +1 -1
  141. package/dist/TextInput/index.d.ts +1 -1
  142. package/dist/Theme/index.d.ts +3 -3
  143. package/dist/Theme/index.js +2 -2
  144. package/dist/Theme-CtaUWo4g.js +1246 -0
  145. package/dist/Thumbnail/index.js +1 -1
  146. package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
  147. package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
  148. package/dist/TimeInput/index.d.ts +1 -1
  149. package/dist/TimeInput/index.js +1 -1
  150. package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
  151. package/dist/Timer/index.d.ts +1 -1
  152. package/dist/Timer/index.js +1 -1
  153. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  154. package/dist/Timestamp/index.d.ts +1 -1
  155. package/dist/Timestamp/index.js +1 -1
  156. package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
  157. package/dist/ToggleButton/index.d.ts +1 -1
  158. package/dist/Token/index.d.ts +1 -1
  159. package/dist/Token/index.js +1 -1
  160. package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
  161. package/dist/Tokenizer/index.js +1 -1
  162. package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
  163. package/dist/Toolbar/index.d.ts +1 -1
  164. package/dist/Tooltip/index.d.ts +1 -1
  165. package/dist/Tooltip/index.js +1 -1
  166. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  167. package/dist/TopNav/index.d.ts +1 -1
  168. package/dist/TopNav/index.js +1 -1
  169. package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
  170. package/dist/TreeList/index.js +1 -1
  171. package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
  172. package/dist/Typeahead/index.d.ts +2 -2
  173. package/dist/Typeahead/index.js +3 -2
  174. package/dist/Typeahead-_V11btpv.js +499 -0
  175. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  176. package/dist/composables/index.d.ts +2 -2
  177. package/dist/composables/index.js +4 -4
  178. package/dist/composables-CWw6t-RJ.js +520 -0
  179. package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
  180. package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
  181. package/dist/{index-D1Twv_fL.d.ts → index-4TRnFGxv.d.ts} +6 -6
  182. package/dist/{index-BTAgQRP0.d.ts → index-B9rqmYxh.d.ts} +150 -62
  183. package/dist/index-BBtJt5_A.d.ts +26 -0
  184. package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
  185. package/dist/{index-C2sfHfBw.d.ts → index-BK9T1TPZ.d.ts} +4 -4
  186. package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
  187. package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
  188. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  189. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  190. package/dist/{index-MPcg1Pm4.d.ts → index-BpH4wvsg.d.ts} +2 -2
  191. package/dist/{index-BMn9ghAX.d.ts → index-C1HIqW_H.d.ts} +2 -2
  192. package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
  193. package/dist/{index-DkVEBdWa.d.ts → index-CB9Srua5.d.ts} +1 -1
  194. package/dist/{index-C8wDPDcP.d.ts → index-CLmKfnqf.d.ts} +49 -7
  195. package/dist/{index-DMQG6kdM.d.ts → index-CPwzSbQQ.d.ts} +2 -2
  196. package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
  197. package/dist/{index-foQMNKZO.d.ts → index-D5N9ikrS.d.ts} +48 -2
  198. package/dist/{index-D8o50qOE.d.ts → index-DFbvnBlf.d.ts} +31 -2
  199. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  200. package/dist/{index-ViSV0RBx.d.ts → index-DjMwF8ET.d.ts} +11 -1
  201. package/dist/{index-nCEmW6wa.d.ts → index-DtePJ_w_.d.ts} +1 -1
  202. package/dist/index-DxR1FChm.d.ts +158 -0
  203. package/dist/{index-f4NGT-e2.d.ts → index-EFqQF2Bx.d.ts} +1 -1
  204. package/dist/{index-BB5yVIN-.d.ts → index-JL4auphT.d.ts} +2 -2
  205. package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
  206. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  207. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  208. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  209. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  210. package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
  211. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  212. package/dist/index.d.ts +80 -79
  213. package/dist/index.js +118 -115
  214. package/dist/locale/index.d.ts +2 -2
  215. package/dist/locale/index.js +3 -3
  216. package/dist/locale-sLw5Caia.js +917 -0
  217. package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
  218. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  219. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  220. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  221. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  222. package/dist/types-D_J66aPN.d.ts +85 -0
  223. package/dist/types-gKsEkk2g.d.ts +320 -0
  224. package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
  225. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  226. package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
  227. package/dist/useTruncation-B5qXQzAP.js +53 -0
  228. package/locales/SOURCE.json +37 -0
  229. package/locales/af-ZA.json +1482 -0
  230. package/locales/ar-SA.json +1482 -0
  231. package/locales/ca-ES.json +1482 -0
  232. package/locales/cs-CZ.json +1482 -0
  233. package/locales/da-DK.json +1482 -0
  234. package/locales/de-DE.json +1482 -0
  235. package/locales/el-GR.json +1482 -0
  236. package/locales/en.json +1646 -0
  237. package/locales/es-ES.json +1482 -0
  238. package/locales/fi-FI.json +1482 -0
  239. package/locales/fr-FR.json +1482 -0
  240. package/locales/he-IL.json +1482 -0
  241. package/locales/hu-HU.json +1482 -0
  242. package/locales/it-IT.json +1482 -0
  243. package/locales/ja-JP.json +1482 -0
  244. package/locales/ko-KR.json +1482 -0
  245. package/locales/nl-NL.json +1482 -0
  246. package/locales/no-NO.json +1482 -0
  247. package/locales/pl-PL.json +1482 -0
  248. package/locales/pt-BR.json +1482 -0
  249. package/locales/pt-PT.json +1482 -0
  250. package/locales/ro-RO.json +1482 -0
  251. package/locales/ru-RU.json +1482 -0
  252. package/locales/sr-SP.json +1482 -0
  253. package/locales/sv-SE.json +1482 -0
  254. package/locales/tr-TR.json +1482 -0
  255. package/locales/uk-UA.json +1482 -0
  256. package/locales/vi-VN.json +1482 -0
  257. package/locales/zh-CN.json +1482 -0
  258. package/locales/zh-TW.json +1482 -0
  259. package/package.json +4 -2
  260. package/styles/bottom-sheet.css +27 -0
  261. package/styles/code.css +62 -0
  262. package/styles/container-reveal.css +104 -0
  263. package/styles/heading.css +47 -0
  264. package/styles/keyboard-hint.css +28 -0
  265. package/styles/link.css +34 -0
  266. package/styles/list.css +88 -1
  267. package/styles/markdown.css +12 -0
  268. package/styles/pagination.css +30 -0
  269. package/styles/progress-bar.css +49 -0
  270. package/styles/side-nav.css +36 -1
  271. package/styles/text.css +18 -0
  272. package/styles/top-nav.css +145 -6
  273. package/styles/typeahead.css +24 -0
  274. package/styles.css +2 -0
  275. package/dist/Heading-Dugosn6j.js +0 -43
  276. package/dist/Item-C1z6gXn8.js +0 -289
  277. package/dist/Link-DqdQZ37C.js +0 -141
  278. package/dist/Text-BHVghsWo.js +0 -53
  279. package/dist/Theme-CejS9MHm.js +0 -447
  280. package/dist/Typeahead-DQ3tmqYe.js +0 -375
  281. package/dist/index-Bqb_Fyju.d.ts +0 -80
  282. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  283. package/dist/locale-CCwVnyMZ.js +0 -42
  284. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  285. package/dist/types-jmqqnkKA.d.ts +0 -163
  286. package/dist/useHotkeys-dABSK1o9.js +0 -80
  287. package/dist/useLongPress-Cyxwa73s.js +0 -60
  288. 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 };
@@ -1,3 +1,3 @@
1
- import { a as ItemLayout, c as ItemTarget, d as ListEdgeCompensation, f as ListItemProps, g as ListSlots, h as ListProps, i as ItemLabel, l as ItemText, m as ListMarkerStyle, n as ItemDensity, o as ItemProps, p as ListItemSlots, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ListDensity } from "../types-CAZY4Xua.js";
2
- import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-BB5yVIN-.js";
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 };
@@ -1,3 +1,3 @@
1
- import { i as useListContext, r as useItemDescriptionId, t as _sfc_main } from "../Item-C1z6gXn8.js";
2
- import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-pGxvn6QJ.js";
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-C1z6gXn8.js";
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
  ]);
@@ -1,2 +1,2 @@
1
- import { _ as MarkdownSlots, a as MarkdownAlign, c as MarkdownDensity, d as MarkdownHeadingProps, f as MarkdownImageProps, g as MarkdownProps, h as MarkdownListProps, i as _default, l as MarkdownDisplay, m as MarkdownLinkProps, n as uniqueSlug, o as MarkdownCodeProps, p as MarkdownInlineCodeProps, r as parseMarkdown, s as MarkdownComponents, t as slugify, u as MarkdownHeadingLevel } from "../index-DfgHJE7H.js";
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 };
@@ -1,2 +1,2 @@
1
- import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main } from "../Markdown-B6tSqenv.js";
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 };