@elmethis/core 1.0.0-alpha.18 → 1.0.0-alpha.181

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 (315) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  2. package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  3. package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
  4. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  5. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  6. package/dist/components/badge/ElmBadge.vue3.mjs +26 -0
  7. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  8. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  9. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  10. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  11. package/dist/components/badge/ElmTag.vue3.mjs +26 -0
  12. package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
  13. package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
  14. package/dist/components/code/ElmCodeBlock.vue2.mjs +105 -0
  15. package/dist/components/code/ElmCodeBlock.vue3.mjs +37 -0
  16. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  17. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  18. package/dist/components/code/ElmKatex.vue2.mjs +67 -0
  19. package/dist/components/code/ElmKatex.vue3.mjs +20 -0
  20. package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
  21. package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
  22. package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
  23. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +51 -0
  24. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
  25. package/dist/components/code/shikiInstance.d.ts +2 -0
  26. package/dist/components/code/shikiInstance.mjs +76 -0
  27. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  28. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  29. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  30. package/dist/components/containments/ElmColumn.vue3.mjs +20 -0
  31. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  32. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  33. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  34. package/dist/components/containments/ElmColumnList.vue3.mjs +18 -0
  35. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +3 -2
  36. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  37. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  38. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +26 -0
  39. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  40. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  41. package/dist/components/containments/ElmModal.vue.mjs +22 -0
  42. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  43. package/dist/components/containments/ElmModal.vue3.mjs +23 -0
  44. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  45. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  46. package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
  47. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  48. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  49. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  50. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  51. package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
  52. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  53. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +22 -0
  54. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  55. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
  56. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  57. package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
  58. package/dist/components/containments/ElmToggle.vue.mjs +22 -0
  59. package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
  60. package/dist/components/containments/ElmToggle.vue3.mjs +29 -0
  61. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  62. package/dist/components/containments/ElmTooltip.vue.mjs +22 -0
  63. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  64. package/dist/components/containments/ElmTooltip.vue3.mjs +20 -0
  65. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  66. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  67. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  68. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  69. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  70. package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
  71. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  72. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  73. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  74. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  75. package/dist/components/data/ElmProgress.vue3.mjs +32 -0
  76. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  77. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  78. package/dist/components/data/ElmStatusMessage.vue.mjs +22 -0
  79. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  80. package/dist/components/data/ElmStatusMessage.vue3.mjs +23 -0
  81. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  83. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  84. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  85. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  87. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  88. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  89. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
  90. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  91. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  92. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  93. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  94. package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
  95. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  96. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  97. package/dist/components/form/ElmButton.vue.mjs +22 -0
  98. package/dist/components/form/ElmButton.vue2.mjs +57 -0
  99. package/dist/components/form/ElmButton.vue3.mjs +32 -0
  100. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  101. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  102. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  103. package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
  104. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  105. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  106. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  107. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  108. package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
  109. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  110. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  111. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  112. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  113. package/dist/components/form/ElmTextField.vue3.mjs +46 -0
  114. package/dist/components/form/ElmTotp.stories.d.ts +6 -0
  115. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  116. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  117. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  118. package/dist/components/form/ElmTotp.vue3.mjs +34 -0
  119. package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
  120. package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
  121. package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
  122. package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +57 -0
  123. package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +23 -0
  124. package/dist/components/headings/ElmHeading1.vue.d.ts +9 -1
  125. package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
  126. package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
  127. package/dist/components/headings/ElmHeading1.vue3.mjs +20 -0
  128. package/dist/components/headings/ElmHeading2.vue.d.ts +9 -1
  129. package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
  130. package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
  131. package/dist/components/headings/ElmHeading2.vue3.mjs +23 -0
  132. package/dist/components/headings/ElmHeading3.vue.d.ts +9 -1
  133. package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
  134. package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
  135. package/dist/components/headings/ElmHeading3.vue3.mjs +20 -0
  136. package/dist/components/headings/ElmHeading4.vue.d.ts +6 -0
  137. package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
  138. package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
  139. package/dist/components/headings/ElmHeading4.vue3.mjs +20 -0
  140. package/dist/components/headings/ElmHeading5.vue.d.ts +6 -0
  141. package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
  142. package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
  143. package/dist/components/headings/ElmHeading5.vue3.mjs +20 -0
  144. package/dist/components/headings/ElmHeading6.vue.d.ts +6 -0
  145. package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
  146. package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
  147. package/dist/components/headings/ElmHeading6.vue3.mjs +20 -0
  148. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  149. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  150. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  151. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  152. package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
  153. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  154. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  155. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  156. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  157. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +27 -0
  158. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  159. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  160. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  161. package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
  162. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  163. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  164. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  165. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
  166. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  167. package/dist/components/icon/ElmLanguageIcon.vue.mjs +22 -0
  168. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  169. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +23 -0
  170. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  171. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  172. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  173. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  174. package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
  175. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  176. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  177. package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
  178. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  179. package/dist/{Bash-mlA01V07.js → components/icon/languages/Bash.vue.mjs} +20 -15
  180. package/dist/components/icon/languages/Bash.vue2.mjs +20 -0
  181. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  182. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  183. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  184. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  185. package/dist/components/inline/ElmInlineIcon.stories.d.ts +6 -0
  186. package/dist/components/inline/ElmInlineIcon.vue.d.ts +6 -0
  187. package/dist/components/inline/ElmInlineIcon.vue.mjs +10 -0
  188. package/dist/components/inline/ElmInlineIcon.vue2.mjs +21 -0
  189. package/dist/components/inline/ElmInlineIcon.vue3.mjs +20 -0
  190. package/dist/components/inline/ElmInlineLink.vue.d.ts +3 -2
  191. package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
  192. package/dist/components/inline/ElmInlineLink.vue2.mjs +55 -0
  193. package/dist/components/inline/ElmInlineLink.vue3.mjs +23 -0
  194. package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
  195. package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
  196. package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
  197. package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
  198. package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
  199. package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
  200. package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
  201. package/dist/components/inline/ElmInlineText.vue3.mjs +23 -0
  202. package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
  203. package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
  204. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  205. package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
  206. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  207. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  208. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  209. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  210. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  211. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  212. package/dist/components/media/ElmBlockImage.stories.d.ts +9 -0
  213. package/dist/components/media/ElmBlockImage.vue.d.ts +10 -0
  214. package/dist/components/media/ElmBlockImage.vue.mjs +10 -0
  215. package/dist/components/media/ElmBlockImage.vue2.mjs +33 -0
  216. package/dist/components/media/ElmBlockImage.vue3.mjs +20 -0
  217. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  218. package/dist/components/media/ElmFile.vue.mjs +10 -0
  219. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  220. package/dist/components/media/ElmFile.vue3.mjs +26 -0
  221. package/dist/components/media/ElmImage.stories.d.ts +2 -0
  222. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  223. package/dist/components/media/ElmImage.vue.mjs +22 -0
  224. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  225. package/dist/components/media/ElmImage.vue3.mjs +30 -0
  226. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  227. package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
  228. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  229. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  230. package/dist/components/navigation/ElmBookmark.vue3.mjs +44 -0
  231. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  232. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  233. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  234. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +30 -0
  235. package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
  236. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  237. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  238. package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
  239. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  240. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  241. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  242. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +26 -0
  243. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  244. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  245. package/dist/components/others/ElmColorSample.vue.mjs +22 -0
  246. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  247. package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
  248. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  249. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  250. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  251. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  252. package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
  253. package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
  254. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  255. package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
  256. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +45 -8
  257. package/dist/components/renderer/ElmJsonRenderer.vue.mjs +150 -0
  258. package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
  259. package/dist/components/table/ElmTable.vue.d.ts +8 -2
  260. package/dist/components/table/ElmTable.vue.mjs +18 -0
  261. package/dist/components/table/ElmTable.vue2.mjs +22 -0
  262. package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
  263. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  264. package/dist/components/table/ElmTableBody.vue3.mjs +17 -0
  265. package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
  266. package/dist/components/table/ElmTableCell.vue.mjs +18 -0
  267. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  268. package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
  269. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  270. package/dist/components/table/ElmTableHeader.vue3.mjs +17 -0
  271. package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
  272. package/dist/components/table/ElmTableRow.vue.mjs +14 -0
  273. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  274. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  275. package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
  276. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  277. package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
  278. package/dist/components/typography/ElmBlockQuote.vue3.mjs +20 -0
  279. package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
  280. package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
  281. package/dist/components/typography/ElmBulletedList.vue3.mjs +17 -0
  282. package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
  283. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  284. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  285. package/dist/components/typography/ElmCallout.vue3.mjs +26 -0
  286. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  287. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  288. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  289. package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
  290. package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
  291. package/dist/components/typography/ElmListItem.vue.mjs +10 -0
  292. package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
  293. package/dist/components/typography/ElmListItem.vue3.mjs +20 -0
  294. package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
  295. package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
  296. package/dist/components/typography/ElmNumberedList.vue3.mjs +17 -0
  297. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  298. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  299. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  300. package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
  301. package/dist/hooks/useElmethisTheme.mjs +43 -0
  302. package/dist/hooks/useTyping.d.ts +17 -0
  303. package/dist/hooks/useTyping.mjs +37 -0
  304. package/dist/index.d.ts +128 -46
  305. package/dist/index.mjs +147 -0
  306. package/package.json +38 -29
  307. package/dist/JavaScript-stKTLCvS.js +0 -22
  308. package/dist/Rust-PU5XwTn1.js +0 -16
  309. package/dist/TypeScript-ViBgqhx7.js +0 -22
  310. package/dist/components/code/ElmPrismHighlighter.vue.d.ts +0 -14
  311. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  312. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
  313. package/dist/elmethis.js +0 -48
  314. package/dist/elmethis.umd.cjs +0 -419
  315. package/dist/index-DvtsYpwQ.js +0 -16274
@@ -0,0 +1,148 @@
1
+ import { defineComponent, useCssModule, h, ref, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, Transition, withCtx, createBlock, unref, defineAsyncComponent } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmLanguageIcon",
5
+ props: {
6
+ size: { default: 24 },
7
+ language: {}
8
+ },
9
+ setup(__props) {
10
+ const props = __props;
11
+ const style = useCssModule();
12
+ const Fallback = h(Icon, { icon: "mdi:terminal-line", class: style.icon });
13
+ const render = () => {
14
+ switch (props.language.toLowerCase()) {
15
+ case "rust":
16
+ case "rs":
17
+ return defineAsyncComponent({
18
+ loader: () => import("./languages/Rust.vue.mjs"),
19
+ loadingComponent: Fallback
20
+ });
21
+ case "javascript":
22
+ case "js":
23
+ return h(Icon, {
24
+ icon: "devicon:javascript",
25
+ class: style.icon
26
+ });
27
+ case "typescript":
28
+ case "ts":
29
+ return h(Icon, {
30
+ icon: "devicon:typescript",
31
+ class: style.icon
32
+ });
33
+ case "bash":
34
+ case "sh":
35
+ case "shell":
36
+ return defineAsyncComponent({
37
+ loader: () => import("./languages/Bash.vue.mjs"),
38
+ loadingComponent: Fallback
39
+ });
40
+ case "tf":
41
+ case "terraform":
42
+ case "hcl":
43
+ return h(Icon, {
44
+ icon: "devicon:terraform",
45
+ class: style.icon
46
+ });
47
+ case "html":
48
+ return h(Icon, {
49
+ icon: "devicon:html5",
50
+ class: style.icon
51
+ });
52
+ case "css":
53
+ return defineAsyncComponent({
54
+ loader: () => import("./languages/Css.vue.mjs"),
55
+ loadingComponent: Fallback
56
+ });
57
+ case "npm":
58
+ return h(Icon, {
59
+ icon: "devicon:npm",
60
+ class: style.icon
61
+ });
62
+ case "java":
63
+ return h(Icon, {
64
+ icon: "devicon:java",
65
+ class: style.icon
66
+ });
67
+ case "kotlin":
68
+ case "kt":
69
+ return h(Icon, {
70
+ icon: "devicon:kotlin",
71
+ class: style.icon
72
+ });
73
+ case "go":
74
+ case "golang":
75
+ return h(Icon, {
76
+ icon: "logos:go",
77
+ class: style.icon
78
+ });
79
+ case "python":
80
+ case "py":
81
+ return h(Icon, {
82
+ icon: "devicon:python",
83
+ class: style.icon
84
+ });
85
+ case "sql":
86
+ return h(Icon, {
87
+ icon: "vscode-icons:file-type-sql",
88
+ class: style.icon
89
+ });
90
+ case "json":
91
+ return h(Icon, {
92
+ icon: "devicon:json",
93
+ class: style.icon
94
+ });
95
+ case "lua":
96
+ return h(Icon, {
97
+ icon: "devicon:lua",
98
+ class: style.icon
99
+ });
100
+ case "cs":
101
+ case "csharp":
102
+ return h(Icon, {
103
+ icon: "devicon:csharp",
104
+ class: style.icon
105
+ });
106
+ case "cpp":
107
+ case "c++":
108
+ return h(Icon, {
109
+ icon: "devicon:cplusplus",
110
+ class: style.icon
111
+ });
112
+ case "c":
113
+ return h(Icon, {
114
+ icon: "devicon:c",
115
+ class: style.icon
116
+ });
117
+ default:
118
+ return Fallback;
119
+ }
120
+ };
121
+ const Icon$1 = ref(render());
122
+ watch(
123
+ () => props.language,
124
+ () => {
125
+ Icon$1.value = render();
126
+ }
127
+ );
128
+ return (_ctx, _cache) => {
129
+ return openBlock(), createElementBlock("div", {
130
+ class: normalizeClass(_ctx.$style.block),
131
+ style: normalizeStyle({ "--size": `${_ctx.size}px` })
132
+ }, [
133
+ createVNode(Transition, { mode: "out-in" }, {
134
+ default: withCtx(() => [
135
+ (openBlock(), createBlock(unref(Icon$1), {
136
+ class: normalizeClass(_ctx.$style.icon),
137
+ key: _ctx.language
138
+ }, null, 8, ["class"]))
139
+ ]),
140
+ _: 1
141
+ })
142
+ ], 6);
143
+ };
144
+ }
145
+ });
146
+ export {
147
+ _sfc_main as default
148
+ };
@@ -0,0 +1,23 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._block_fz7i5_1{display:inline-block;height:var(--size);width:var(--size)}._icon_fz7i5_7{height:var(--size);width:var(--size)}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const block = "_block_fz7i5_1";
14
+ const icon = "_icon_fz7i5_7";
15
+ const style0 = {
16
+ block,
17
+ icon
18
+ };
19
+ export {
20
+ block,
21
+ style0 as default,
22
+ icon
23
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmLoginIcon } from './ElmLoginIcon.vue';
3
+ declare const meta: Meta<typeof ElmLoginIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,18 @@
1
+ export interface ElmLoginIconProps {
2
+ /**
3
+ * Specifies the width of the icon.
4
+ */
5
+ size?: string;
6
+ /**
7
+ * Specifies whether the icon is for login or logout.
8
+ */
9
+ isLogin?: boolean;
10
+ /**
11
+ * Specifies whether the icon is loading.
12
+ */
13
+ isLoading?: boolean;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<ElmLoginIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmLoginIconProps> & Readonly<{}>, {
16
+ size: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
18
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmLoginIcon.vue2.mjs";
2
+ import style0 from "./ElmLoginIcon.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmLoginIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmLoginIcon as default
10
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, normalizeStyle, normalizeClass } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ import ElmTooltip from "../containments/ElmTooltip.vue.mjs";
4
+ import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "ElmLoginIcon",
7
+ props: {
8
+ size: { default: "2rem" },
9
+ isLogin: { type: Boolean },
10
+ isLoading: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createBlock(ElmTooltip, null, {
15
+ original: withCtx(() => [
16
+ createVNode(unref(Icon), {
17
+ class: normalizeClass(_ctx.$style.icon),
18
+ style: normalizeStyle({
19
+ "--width": _ctx.size,
20
+ "--color": _ctx.isLoading ? "gray" : _ctx.isLogin ? "#b36472" : "#6987b8"
21
+ }),
22
+ icon: _ctx.isLoading ? "svg-spinners:ring-resize" : _ctx.isLogin ? "mdi:logout-variant" : "mdi:login-variant"
23
+ }, null, 8, ["class", "style", "icon"])
24
+ ]),
25
+ tooltip: withCtx(() => [
26
+ createVNode(ElmInlineText, {
27
+ text: _ctx.isLoading ? "Loading..." : _ctx.isLogin ? "Logout" : "Login"
28
+ }, null, 8, ["text"])
29
+ ]),
30
+ _: 1
31
+ });
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ _sfc_main as default
37
+ };
@@ -0,0 +1,20 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._icon_1rb0v_1{box-sizing:border-box;width:var(--width);height:var(--width);padding:.25rem;border-radius:.25rem;color:var(--color);cursor:pointer;transition:background-color .2s}._icon_1rb0v_1:hover{background-color:#0000001a}[data-theme=dark] ._icon_1rb0v_1:hover{background-color:#ffffff1a}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const icon = "_icon_1rb0v_1";
14
+ const style0 = {
15
+ icon
16
+ };
17
+ export {
18
+ style0 as default,
19
+ icon
20
+ };
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmToggleTheme.vue2.mjs";
2
+ import style0 from "./ElmToggleTheme.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmToggleTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmToggleTheme as default
10
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent, createBlock, unref, openBlock, normalizeClass } from "vue";
2
+ import { useElmethisTheme } from "../../hooks/useElmethisTheme.mjs";
3
+ import { Icon } from "@iconify/vue";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "ElmToggleTheme",
6
+ props: {
7
+ size: { default: "2rem" }
8
+ },
9
+ setup(__props) {
10
+ const { isDarkTheme, toggleTheme } = useElmethisTheme();
11
+ return (_ctx, _cache) => {
12
+ return !unref(isDarkTheme) ? (openBlock(), createBlock(unref(Icon), {
13
+ key: 0,
14
+ icon: "line-md:moon-to-sunny-outline-loop-transition",
15
+ class: normalizeClass(_ctx.$style.icon),
16
+ width: _ctx.size,
17
+ onClick: unref(toggleTheme)
18
+ }, null, 8, ["class", "width", "onClick"])) : (openBlock(), createBlock(unref(Icon), {
19
+ key: 1,
20
+ icon: "line-md:sunny-outline-to-moon-loop-transition",
21
+ class: normalizeClass(_ctx.$style.icon),
22
+ width: _ctx.size,
23
+ onClick: unref(toggleTheme)
24
+ }, null, 8, ["class", "width", "onClick"]));
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ _sfc_main as default
30
+ };
@@ -0,0 +1,20 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._icon_15e2g_1{box-sizing:border-box;padding:.25rem;color:#000c;border-radius:50%;cursor:pointer;box-shadow:0 0 .125rem #0000004d;background-color:#fff3}[data-theme=dark] ._icon_15e2g_1{box-shadow:0 0 .125rem #0009;background-color:#0003;box-sizing:border-box;padding:.25rem;color:#fffc;border-radius:50%;cursor:pointer}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const icon = "_icon_15e2g_1";
14
+ const style0 = {
15
+ icon
16
+ };
17
+ export {
18
+ style0 as default,
19
+ icon
20
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
2
  export default _default;
@@ -1,26 +1,31 @@
1
- import { openBlock as t, createElementBlock as e, createElementVNode as c } from "vue";
2
- import { _ as o } from "./index-DvtsYpwQ.js";
3
- const n = {}, s = {
1
+ import { createElementBlock, openBlock, createElementVNode, normalizeClass } from "vue";
2
+ import style0 from "./Bash.vue2.mjs";
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = {
4
6
  xmlns: "http://www.w3.org/2000/svg",
5
7
  viewBox: "0 0 128 128"
6
8
  };
7
- function a(r, l) {
8
- return t(), e("svg", s, l[0] || (l[0] = [
9
- c("path", {
9
+ function _sfc_render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, [
11
+ _cache[0] || (_cache[0] = createElementVNode("path", {
10
12
  fill: "none",
11
13
  d: "M4.24 4.24h119.53v119.53H4.24z"
12
- }, null, -1),
13
- c("path", {
14
- class: "path",
14
+ }, null, -1)),
15
+ createElementVNode("path", {
16
+ class: normalizeClass(_ctx.$style.path),
15
17
  d: "M109.01 28.64L71.28 6.24c-2.25-1.33-4.77-2-7.28-2s-5.03.67-7.28 2.01l-37.74 22.4c-4.5 2.67-7.28 7.61-7.28 12.96v44.8c0 5.35 2.77 10.29 7.28 12.96l37.73 22.4c2.25 1.34 4.76 2 7.28 2c2.51 0 5.03-.67 7.28-2l37.74-22.4c4.5-2.67 7.28-7.62 7.28-12.96V41.6c0-5.34-2.77-10.29-7.28-12.96M79.79 98.59l.06 3.22c0 .39-.25.83-.55.99l-1.91 1.1c-.3.15-.56-.03-.56-.42l-.03-3.17c-1.63.68-3.29.84-4.34.42c-.2-.08-.29-.37-.21-.71l.69-2.91c.06-.23.18-.46.34-.6c.06-.06.12-.1.18-.13c.11-.06.22-.07.31-.03c1.14.38 2.59.2 3.99-.5c1.78-.9 2.97-2.72 2.95-4.52c-.02-1.64-.9-2.31-3.05-2.33c-2.74.01-5.3-.53-5.34-4.57c-.03-3.32 1.69-6.78 4.43-8.96l-.03-3.25c0-.4.24-.84.55-1l1.85-1.18c.3-.15.56.04.56.43l.03 3.25c1.36-.54 2.54-.69 3.61-.44c.23.06.34.38.24.75l-.72 2.88c-.06.22-.18.44-.33.58a.8.8 0 0 1-.19.14c-.1.05-.19.06-.28.05c-.49-.11-1.65-.36-3.48.56c-1.92.97-2.59 2.64-2.58 3.88c.02 1.48.77 1.93 3.39 1.97c3.49.06 4.99 1.58 5.03 5.09c.05 3.44-1.79 7.15-4.61 9.41m26.34-60.5l-35.7 22.05c-4.45 2.6-7.73 5.52-7.74 10.89v43.99c0 3.21 1.3 5.29 3.29 5.9c-.65.11-1.32.19-1.98.19c-2.09 0-4.15-.57-5.96-1.64l-37.73-22.4c-3.69-2.19-5.98-6.28-5.98-10.67V41.6c0-4.39 2.29-8.48 5.98-10.67l37.74-22.4c1.81-1.07 3.87-1.64 5.96-1.64s4.15.57 5.96 1.64l37.74 22.4c3.11 1.85 5.21 5.04 5.8 8.63c-1.27-2.67-4.09-3.39-7.38-1.47"
16
- }, null, -1),
17
- c("path", {
18
+ }, null, 2),
19
+ _cache[1] || (_cache[1] = createElementVNode("path", {
18
20
  fill: "#4fa847",
19
21
  d: "m99.12 90.73l-9.4 5.62c-.25.15-.43.31-.43.61v2.46c0 .3.2.43.45.28l9.54-5.8c.25-.15.29-.42.29-.72v-2.17c0-.3-.2-.42-.45-.28"
20
- }, null, -1)
21
- ]));
22
+ }, null, -1))
23
+ ]);
22
24
  }
23
- const _ = /* @__PURE__ */ o(n, [["render", a], ["__scopeId", "data-v-6cc1bd46"]]);
25
+ const cssModules = {
26
+ "$style": style0
27
+ };
28
+ const Bash = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
24
29
  export {
25
- _ as default
30
+ Bash as default
26
31
  };
@@ -0,0 +1,20 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._path_1ccs2_1{fill:#293138}[data-theme=dark] ._path_1ccs2_1{fill:#d2dbe3}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const path = "_path_1ccs2_1";
14
+ const style0 = {
15
+ path
16
+ };
17
+ export {
18
+ style0 as default,
19
+ path
20
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
2
  export default _default;
@@ -0,0 +1,19 @@
1
+ import { createElementBlock, openBlock, createElementVNode } from "vue";
2
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
3
+ const _sfc_main = {};
4
+ const _hoisted_1 = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ viewBox: "0 0 24 24"
7
+ };
8
+ function _sfc_render(_ctx, _cache) {
9
+ return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", {
11
+ fill: "#3f9de9",
12
+ d: "m5 3l-.65 3.34h13.59L17.5 8.5H3.92l-.66 3.33h13.59l-.76 3.81l-5.48 1.81l-4.75-1.81l.33-1.64H2.85l-.79 4l7.85 3l9.05-3l1.2-6.03l.24-1.21L21.94 3z"
13
+ }, null, -1)
14
+ ]));
15
+ }
16
+ const Css = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
17
+ export {
18
+ Css as default
19
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
2
  export default _default;
@@ -0,0 +1,17 @@
1
+ import { createElementBlock, openBlock, createElementVNode } from "vue";
2
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
3
+ const _sfc_main = {};
4
+ const _hoisted_1 = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ viewBox: "0 0 128 128",
7
+ fill: "#a84f33"
8
+ };
9
+ function _sfc_render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
11
+ createElementVNode("path", { d: "M62.96.242c-.232.135-1.203 1.528-2.16 3.097c-2.4 3.94-2.426 3.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916 1.612-1.504 3.183c-1.346 3.6-1.41 3.715-2.156 3.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291 0-1.655.706-2.27 4.4c-.78 4.697-.754 4.681-4.988 2.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475 4.246l.178 3.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692 2.964c.38 1.63.745 3.2.814 3.487c.067.287-.05.746-.26 1.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51 5.3c.718 1.56 1.305 2.98 1.305 3.15c0 .898-.717 1.224-3.794 1.727c-1.722.28-3.218.51-3.326.51c-.107 0-.43.235-.717.522c-.937.936-.671 1.816 1.453 4.814c2.646 3.735 2.642 3.75-1.73 5.421c-4.971 1.902-5.072 2.37-1.287 5.96c3.525 3.344 3.53 3.295-.461 5.804C.208 62.8.162 62.846.085 63.876c-.093 1.253-.071 1.275 3.538 3.48c3.57 2.18 3.57 2.246.067 5.56C-.078 76.48.038 77 5.013 78.877c4.347 1.64 4.353 1.66 1.702 5.394c-1.502 2.117-1.981 3-1.981 3.653c0 1.223.637 1.535 4.44 2.174c3.206.54 3.92.857 3.92 1.741c0 .182-.588 1.612-1.307 3.177c-2.236 4.87-1.981 5.275 3.31 5.275c4.93 0 4.799-.15 3.737 4.294c-.8 3.35-.813 3.992-.088 4.715c.554.556 1.6.494 4.87-.289c2.499-.596 2.937-.637 3.516-.328l.66.354l-.177 3.594c-.178 3.593-.177 3.595.475 4.248c.358.36.884.652 1.165.652s1.903-.63 3.604-1.404c4.22-1.916 4.194-1.932 4.973 2.75c.617 3.711.977 4.4 2.294 4.4c.327 0 1.83-.88 3.34-1.958c2.654-1.893 3.342-2.19 4.049-1.74c.182.115.89 1.67 1.572 3.455c1.003 2.625 1.37 3.31 1.929 3.576c1.062.51 1.72.1 4.218-2.62c3.016-3.286 3.14-3.27 5.602.72c2.72 4.406 3.424 4.396 6.212-.089c2.402-3.864 2.374-3.862 5.621-.47c2.157 2.25 2.616 2.61 3.343 2.61c.464 0 1.019-.175 1.23-.388c.214-.213.92-1.786 1.568-3.496c.649-1.71 1.321-3.2 1.495-3.31c.687-.436 1.398-.13 4.048 1.752c1.56 1.108 3.028 1.96 3.377 1.96c1.296 0 1.764-.92 2.302-4.535c.46-3.082.554-3.378 1.16-3.685c.596-.302.954-.2 3.75 1.07c1.701.77 3.323 1.402 3.604 1.402s.816-.302 1.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486 3.615.204c3.656.835 4.338.857 5.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19 3.78-4.19c3.374 0 3.75-.049 4.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227 4.065-1.767c2.033-.329 3.553-.71 3.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738 1.599-5.297c5.064-1.866 5.209-2.488 1.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853 4.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593 3.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18 1.982-2.903 1.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574 1.307-3.113c1.406-3.013 1.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27 0-1.884.64-3.583 1.421c-2.838 1.306-3.143 1.393-3.757 1.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311 0-1.853.925-3.426 2.055c-2.584 1.856-2.93 2.032-3.574 1.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637 0-1.213.458-3.28 2.604c-3.25 3.375-3.261 3.374-5.65-.545C66.073 1.78 65.075.382 64.81.24c-.597-.32-1.3-.32-1.85.002m2.96 11.798c2.83 2.014 1.326 6.75-2.144 6.75c-3.368 0-5.064-4.057-2.66-6.36c1.358-1.3 3.304-1.459 4.805-.39m-3.558 12.507c1.855.705 2.616.282 6.852-3.8l3.182-3.07l1.347.18c4.225.56 12.627 4.25 17.455 7.666c4.436 3.14 10.332 9.534 12.845 13.93l.537.942l-2.38 5.364c-1.31 2.95-2.382 5.673-2.382 6.053c0 .878.576 2.267 1.13 2.726c.234.195 2.457 1.265 4.939 2.378l4.51 2.025l.178 1.148c.23 1.495.26 5.167.052 6.21l-.163.816h-2.575c-2.987 0-2.756-.267-2.918 3.396c-.118 2.656-.76 4.124-2.22 5.075c-2.377 1.551-6.304 1.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915 2.145-1.803c4.298-3.24 6.77-7.012 7.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057 0-25.56-.092-25.56-.204c0-.263 3.125-3.295 4.965-4.816c5.054-4.178 11.618-7.465 18.417-9.22l2.35-.61l3.34 3.387c1.839 1.863 3.64 3.5 4.003 3.637M20.3 46.34c1.539 1.008 2.17 3.54 1.26 5.062c-1.405 2.356-4.966 2.455-6.373.178c-2.046-3.309 1.895-7.349 5.113-5.24m90.672.13c4.026 2.454.906 8.493-3.404 6.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6 2.523-.579 3.56.053M32.163 61.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283 4.706-2.262 4.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39 47.132c2.843.74 4.345 2.245 4.349 4.355c.002 1.55-.765 2.52-2.67 3.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078 0 8.112.086 9.288.393m-2.934 21.554c1.41.392 3.076 1.616 3.93 2.888c.898 1.337 1.423 3.076 2.667 8.836c1.05 4.87 1.727 6.46 3.62 8.532c2.345 2.566 1.8 2.466 13.514 2.466c5.61 0 10.198.09 10.198.2c0 .197-3.863 4.764-4.03 4.764c-.048 0-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642 6.032l-1.008 4.702l-.91.448c-1.518.75-6.453 2.292-9.01 2.82c-4.228.87-8.828 1.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248 0-3.923-4.249-3.923-4.535c0-.09 8.728-.194 19.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002 7.02.12 7.539.264M37.57 100.02c3.084 1.88 1.605 6.804-2.043 6.8c-3.74 0-5.127-4.88-1.94-6.826c1.055-.643 2.908-.63 3.983.026m56.48.206c1.512 1.108 2.015 3.413 1.079 4.95c-2.46 4.034-8.612.827-6.557-3.419c1.01-2.085 3.695-2.837 5.478-1.53" }, null, -1)
12
+ ]));
13
+ }
14
+ const Rust = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
15
+ export {
16
+ Rust as default
17
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmInlineIcon } from './ElmInlineIcon.vue';
3
+ declare const meta: Meta<typeof ElmInlineIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,6 @@
1
+ export interface ElmInlineIconProps {
2
+ src: string;
3
+ alt?: string;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<ElmInlineIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmInlineIcon.vue2.mjs";
2
+ import style0 from "./ElmInlineIcon.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmInlineIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmInlineIcon as default
10
+ };
@@ -0,0 +1,21 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass } from "vue";
2
+ const _hoisted_1 = ["src", "alt"];
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmInlineIcon",
5
+ props: {
6
+ src: {},
7
+ alt: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("img", {
12
+ class: normalizeClass(_ctx.$style.icon),
13
+ src: _ctx.src,
14
+ alt: _ctx.alt
15
+ }, null, 10, _hoisted_1);
16
+ };
17
+ }
18
+ });
19
+ export {
20
+ _sfc_main as default
21
+ };
@@ -0,0 +1,20 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._icon_egf7j_1{margin:0;padding:0;padding-inline:.125rem;display:inline-block;vertical-align:middle;height:1.5em}._icon_egf7j_1::-moz-selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}._icon_egf7j_1::selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}[data-theme=dark] ._icon_egf7j_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._icon_egf7j_1::-moz-selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}[data-theme=dark] ._icon_egf7j_1::selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const icon = "_icon_egf7j_1";
14
+ const style0 = {
15
+ icon
16
+ };
17
+ export {
18
+ style0 as default,
19
+ icon
20
+ };
@@ -9,7 +9,8 @@ export interface ElmInlineLinkProps {
9
9
  *
10
10
  * e.g. `https://example.com`
11
11
  */
12
- href?: string;
12
+ href: string;
13
+ favicon?: string;
13
14
  /**
14
15
  * Specifies the font size of the text.
15
16
  */
@@ -33,5 +34,5 @@ export interface ElmInlineLinkProps {
33
34
  declare const _default: import('vue').DefineComponent<ElmInlineLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineLinkProps> & Readonly<{}>, {
34
35
  size: Property.FontSize;
35
36
  openInNewTab: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
37
38
  export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmInlineLink.vue2.mjs";
2
+ import style0 from "./ElmInlineLink.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmInlineLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmInlineLink as default
10
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, createTextVNode, createVNode, toDisplayString, unref } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ const _hoisted_1 = ["href", "target"];
4
+ const _hoisted_2 = ["src"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "ElmInlineLink",
7
+ props: {
8
+ text: {},
9
+ href: {},
10
+ favicon: {},
11
+ size: { default: "1rem" },
12
+ openInNewTab: { type: Boolean, default: true },
13
+ iconType: {},
14
+ onClick: {}
15
+ },
16
+ setup(__props) {
17
+ const props = __props;
18
+ function handleClick(event) {
19
+ if (props.onClick) {
20
+ event.preventDefault();
21
+ props.onClick();
22
+ }
23
+ }
24
+ const faviconSrc = ref(props.favicon);
25
+ const handleError = () => {
26
+ faviconSrc.value = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" d="M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>`;
27
+ };
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createElementBlock("a", {
30
+ class: normalizeClass(_ctx.$style.link),
31
+ href: _ctx.href,
32
+ style: normalizeStyle({ "--font-size": _ctx.size }),
33
+ target: _ctx.openInNewTab ? "_blank" : void 0,
34
+ rel: "noopener noreferrer",
35
+ onClick: handleClick
36
+ }, [
37
+ faviconSrc.value ? (openBlock(), createElementBlock("img", {
38
+ key: 0,
39
+ src: faviconSrc.value,
40
+ alt: "favicon",
41
+ onError: handleError,
42
+ class: normalizeClass(_ctx.$style.icon)
43
+ }, null, 42, _hoisted_2)) : createCommentVNode("", true),
44
+ createTextVNode(" " + toDisplayString(_ctx.text ?? _ctx.href) + " ", 1),
45
+ createVNode(unref(Icon), {
46
+ icon: _ctx.iconType != null ? _ctx.iconType === "internal" ? "mdi:chevron-right" : "mdi:external-link" : _ctx.openInNewTab ? "mdi:external-link" : "mdi:chevron-right",
47
+ class: normalizeClass(_ctx.$style.icon)
48
+ }, null, 8, ["icon", "class"])
49
+ ], 14, _hoisted_1);
50
+ };
51
+ }
52
+ });
53
+ export {
54
+ _sfc_main as default
55
+ };
@@ -0,0 +1,23 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._link_eebb0_1{all:unset;box-sizing:border-box;padding:0 .25rem;font-size:var(--font-size);display:inline-flex;align-items:center;gap:.25rem;cursor:pointer;color:#6987b8;border-radius:.125rem .125rem 0 0;border-bottom:dashed 1px #6987b8;transition:background-color .2s,color .2s}._link_eebb0_1:hover{background-color:#6987b833}._link_eebb0_1:active{color:#59b57c;background-color:#59b57c33}._link_eebb0_1:visited{color:#9771bd;border-bottom:dashed 1px #9771bd}._link_eebb0_1:visited:hover{background-color:#9771bd33}._link_eebb0_1:visited:active{color:#59b57c;background-color:#59b57c33}._link_eebb0_1 ._icon_eebb0_33{width:var(--font-size);height:var(--font-size)}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const link = "_link_eebb0_1";
14
+ const icon = "_icon_eebb0_33";
15
+ const style0 = {
16
+ link,
17
+ icon
18
+ };
19
+ export {
20
+ style0 as default,
21
+ icon,
22
+ link
23
+ };