@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,72 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, createVNode, withCtx, createElementVNode, unref, normalizeClass, toDisplayString, Transition, createBlock, createCommentVNode } from "vue";
2
+ import { parseToRgb, parseToHsl, rgbToColorString } from "polished";
3
+ import ElmTooltip from "../containments/ElmTooltip.vue.mjs";
4
+ import { useClipboard } from "@vueuse/core";
5
+ import { Icon } from "@iconify/vue";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "ElmColorSample",
8
+ props: {
9
+ color: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const { blue, green, red } = parseToRgb(props.color);
14
+ const { hue, saturation, lightness } = parseToHsl(props.color);
15
+ const hex = rgbToColorString(parseToRgb(props.color));
16
+ const rgb = `rgb(${red}, ${green}, ${blue})`;
17
+ const hsl = `hsl(${Math.floor(hue)}, ${Math.floor(saturation * 100)}%, ${Math.floor(lightness * 100)}%)`;
18
+ const { copy, copied } = useClipboard();
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createElementBlock("div", {
21
+ style: normalizeStyle({ "--color": _ctx.color })
22
+ }, [
23
+ createVNode(ElmTooltip, null, {
24
+ original: withCtx(() => [
25
+ createElementVNode("div", {
26
+ class: normalizeClass(_ctx.$style["color-bg"]),
27
+ style: normalizeStyle({
28
+ "--background-color": _ctx.color
29
+ }),
30
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(copy)(unref(hex)))
31
+ }, [
32
+ createVNode(Transition, null, {
33
+ default: withCtx(() => [
34
+ unref(copied) ? (openBlock(), createBlock(unref(Icon), {
35
+ key: 0,
36
+ icon: "heroicons:check",
37
+ style: { color: "white" },
38
+ width: "16",
39
+ height: "16"
40
+ })) : createCommentVNode("", true)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ], 6),
45
+ createElementVNode("div", {
46
+ class: normalizeClass(_ctx.$style.text),
47
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(copy)(unref(hex)))
48
+ }, toDisplayString(unref(hex)), 3)
49
+ ]),
50
+ tooltip: withCtx(() => [
51
+ createElementVNode("div", {
52
+ class: normalizeClass(_ctx.$style.text),
53
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(copy)(unref(hex)))
54
+ }, toDisplayString(unref(hex)), 3),
55
+ createElementVNode("div", {
56
+ class: normalizeClass(_ctx.$style.text),
57
+ onClick: _cache[3] || (_cache[3] = ($event) => unref(copy)(rgb))
58
+ }, toDisplayString(rgb), 2),
59
+ createElementVNode("div", {
60
+ class: normalizeClass(_ctx.$style.text),
61
+ onClick: _cache[4] || (_cache[4] = ($event) => unref(copy)(hsl))
62
+ }, toDisplayString(hsl), 2)
63
+ ]),
64
+ _: 1
65
+ })
66
+ ], 4);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main as default
72
+ };
@@ -0,0 +1,21 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._color-bg_819fg_1{width:5rem;height:2rem;border-radius:.25rem;background-color:var(--background-color);cursor:pointer;transition:opacity .1s}._color-bg_819fg_1:active{opacity:.5}._text_819fg_13{margin-block:.125rem;padding:.125rem;border-radius:.125rem;transition:color .1s,background-color .1s,opacity .1s;color:var(--color);cursor:pointer}._text_819fg_13:hover{color:#fff;background-color:var(--color)}._text_819fg_13:active{opacity:.5}._text_819fg_13::-moz-selection{color:#fff;background-color:var(--color)}._text_819fg_13::selection{color:#fff;background-color:var(--color)}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const text = "_text_819fg_13";
14
+ const style0 = {
15
+ "color-bg": "_color-bg_819fg_1",
16
+ text
17
+ };
18
+ export {
19
+ style0 as default,
20
+ text
21
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmColorTable } from './ElmColorTable.vue';
3
+ declare const meta: Meta<typeof ElmColorTable>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,11 @@
1
+ export interface ElmColorTableProps {
2
+ /**
3
+ * The colors to display.
4
+ */
5
+ colors: {
6
+ name: string;
7
+ code: string;
8
+ }[];
9
+ }
10
+ declare const _default: import('vue').DefineComponent<ElmColorTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColorTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmColorTable.vue2.mjs";
2
+ import style0 from "./ElmColorTable.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmColorTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmColorTable as default
10
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, Fragment, renderList, createElementVNode, normalizeStyle, toDisplayString, createVNode, unref } from "vue";
2
+ import { darken } from "polished";
3
+ import ElmColorSample from "./ElmColorSample.vue.mjs";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "ElmColorTable",
6
+ props: {
7
+ colors: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("div", {
12
+ class: normalizeClass(_ctx.$style.container)
13
+ }, [
14
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.colors, (color) => {
15
+ return openBlock(), createElementBlock("div", {
16
+ class: normalizeClass(_ctx.$style["row-container"])
17
+ }, [
18
+ createElementVNode("div", {
19
+ class: normalizeClass(_ctx.$style["color-name"]),
20
+ style: normalizeStyle({ "--color": color.code })
21
+ }, toDisplayString(color.name), 7),
22
+ (openBlock(), createElementBlock(Fragment, null, renderList([
23
+ -0.2,
24
+ -0.15,
25
+ -0.1,
26
+ -0.05,
27
+ 0,
28
+ 0.05,
29
+ 0.1,
30
+ 0.15,
31
+ 0.2
32
+ ], (darkness) => {
33
+ return createVNode(ElmColorSample, {
34
+ color: unref(darken)(darkness, color.code)
35
+ }, null, 8, ["color"]);
36
+ }), 64))
37
+ ], 2);
38
+ }), 256))
39
+ ], 2);
40
+ };
41
+ }
42
+ });
43
+ export {
44
+ _sfc_main as default
45
+ };
@@ -0,0 +1,22 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._container_2ivef_1{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:.25rem}._container_2ivef_1 ._row-container_2ivef_8{display:flex;justify-content:flex-start;align-items:flex-start;flex-direction:row;gap:.25rem}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15{width:6rem;color:var(--color)}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15::-moz-selection{background-color:var(--color);color:#fff}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15::selection{background-color:var(--color);color:#fff}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const container = "_container_2ivef_1";
14
+ const style0 = {
15
+ container,
16
+ "row-container": "_row-container_2ivef_8",
17
+ "color-name": "_color-name_2ivef_15"
18
+ };
19
+ export {
20
+ container,
21
+ style0 as default
22
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmTyping } from './ElmTyping.vue';
3
+ declare const meta: Meta<typeof ElmTyping>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,4 @@
1
+ export interface ElmTypingProps {
2
+ }
3
+ declare const _default: import('vue').DefineComponent<ElmTypingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTypingProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ export default _default;
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof ElmJsonRenderer>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Primary: Story;
7
+ export declare const InlineIcon: Story;
7
8
  export declare const Callout: Story;
8
9
  export declare const BulletedList: Story;
9
10
  export declare const NumberedList: Story;
@@ -1,6 +1,6 @@
1
1
  import { ElmInlineTextProps } from '../inline/ElmInlineText.vue';
2
- import { ElmInlineCodeProps } from '../inline/ElmInlineCode.vue';
3
2
  import { ElmInlineLinkProps } from '../inline/ElmInlineLink.vue';
3
+ import { ElmInlineIconProps } from '../inline/ElmInlineIcon.vue';
4
4
  import { ElmCalloutProps } from '../typography/ElmCallout.vue';
5
5
  import { ElmBulletedListProps } from '../typography/ElmBulletedList.vue';
6
6
  import { ElmNumberedListProps } from '../typography/ElmNumberedList.vue';
@@ -22,140 +22,177 @@ import { ElmTableRowProps } from '../table/ElmTableRow.vue';
22
22
  import { ElmTableCellProps } from '../table/ElmTableCell.vue';
23
23
  import { ElmKatexProps } from '../code/ElmKatex.vue';
24
24
  import { ElmImageProps } from '../media/ElmImage.vue';
25
+ import { ElmBlockImageProps } from '../media/ElmBlockImage.vue';
25
26
  import { ElmBookmarkProps } from '../navigation/ElmBookmark.vue';
26
27
  import { ElmToggleProps } from '../containments/ElmToggle.vue';
27
28
  import { ElmCheckboxProps } from '../form/ElmCheckbox.vue';
28
29
  import { ElmFileProps } from '../media/ElmFile.vue';
29
30
  import { ElmColumnProps } from '../containments/ElmColumn.vue';
30
31
  import { ElmColumnListProps } from '../containments/ElmColumnList.vue';
31
- type ComponentType = 'ElmInlineText' | 'ElmInlineCode' | 'ElmInlineLink' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
32
- type ComponentProps = ElmInlineTextProps | ElmInlineCodeProps | ElmInlineLinkProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
32
+ type ComponentType = 'ElmInlineText' | 'ElmInlineLink' | 'ElmInlineIcon' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBlockImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
33
+ type ComponentProps = ElmInlineTextProps | ElmInlineLinkProps | ElmInlineIconProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBlockImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
33
34
  interface JsonComponentBase {
34
35
  type: ComponentType;
36
+ id?: string;
35
37
  props?: ComponentProps;
36
38
  children?: JsonComponent[];
37
39
  }
38
40
  interface ElmInlineTextJsonComponent extends JsonComponentBase {
39
41
  type: 'ElmInlineText';
42
+ id?: string;
40
43
  props?: ElmInlineTextProps;
41
44
  }
42
- interface ElmInlineCodeJsonComponent extends JsonComponentBase {
43
- type: 'ElmInlineCode';
44
- props?: ElmInlineCodeProps;
45
- }
46
45
  interface ElmInlineLinkJsonComponent extends JsonComponentBase {
47
46
  type: 'ElmInlineLink';
47
+ id?: string;
48
48
  props?: ElmInlineLinkProps;
49
49
  }
50
+ interface ElmInlineIconJsonComponent extends JsonComponentBase {
51
+ type: 'ElmInlineIcon';
52
+ id?: string;
53
+ props?: ElmInlineIconProps;
54
+ }
50
55
  interface ElmCalloutJsonComponent extends JsonComponentBase {
51
56
  type: 'ElmCallout';
57
+ id?: string;
52
58
  props?: ElmCalloutProps;
53
59
  }
54
60
  interface ElmBulletedListJsonComponent extends JsonComponentBase {
55
61
  type: 'ElmBulletedList';
62
+ id?: string;
56
63
  props?: ElmBulletedListProps;
57
64
  }
58
65
  interface ElmNumberedListJsonComponent extends JsonComponentBase {
59
66
  type: 'ElmNumberedList';
67
+ id?: string;
60
68
  props?: ElmNumberedListProps;
61
69
  }
62
70
  interface ElmListItemJsonComponent extends JsonComponentBase {
63
71
  type: 'ElmListItem';
72
+ id?: string;
64
73
  props?: ElmListItemProps;
65
74
  }
66
75
  interface ElmBlockQuoteJsonComponent extends JsonComponentBase {
67
76
  type: 'ElmBlockQuote';
77
+ id?: string;
68
78
  props?: ElmBlockQuoteProps;
69
79
  }
70
80
  interface ElmDividerJsonComponent extends JsonComponentBase {
71
81
  type: 'ElmDivider';
82
+ id?: string;
72
83
  props?: ElmDividerProps;
73
84
  }
74
85
  interface ElmHeading1JsonComponent extends JsonComponentBase {
75
86
  type: 'ElmHeading1';
87
+ id?: string;
76
88
  props?: ElmHeading1Props;
77
89
  }
78
90
  interface ElmHeading2JsonComponent extends JsonComponentBase {
79
91
  type: 'ElmHeading2';
92
+ id?: string;
80
93
  props?: ElmHeading2Props;
81
94
  }
82
95
  interface ElmHeading3JsonComponent extends JsonComponentBase {
83
96
  type: 'ElmHeading3';
97
+ id?: string;
84
98
  props?: ElmHeading3Props;
85
99
  }
86
100
  interface ElmHeading4JsonComponent extends JsonComponentBase {
87
101
  type: 'ElmHeading4';
102
+ id?: string;
88
103
  props?: ElmHeading4Props;
89
104
  }
90
105
  interface ElmHeading5JsonComponent extends JsonComponentBase {
91
106
  type: 'ElmHeading5';
107
+ id?: string;
92
108
  props?: ElmHeading5Props;
93
109
  }
94
110
  interface ElmHeading6JsonComponent extends JsonComponentBase {
95
111
  type: 'ElmHeading6';
112
+ id?: string;
96
113
  props?: ElmHeading6Props;
97
114
  }
98
115
  interface ElmCodeBlockJsonComponent extends JsonComponentBase {
99
116
  type: 'ElmCodeBlock';
117
+ id?: string;
100
118
  props?: ElmCodeBlockProps;
101
119
  }
102
120
  interface ElmParagraphJsonComponent extends JsonComponentBase {
103
121
  type: 'ElmParagraph';
122
+ id?: string;
104
123
  props?: ElmParagraphProps;
105
124
  }
106
125
  interface ElmTableJsonComponent extends JsonComponentBase {
107
126
  type: 'ElmTable';
127
+ id?: string;
108
128
  props?: ElmTableProps;
109
129
  }
110
130
  interface ElmTableHeaderJsonComponent extends JsonComponentBase {
111
131
  type: 'ElmTableHeader';
132
+ id?: string;
112
133
  props?: ElmTableHeaderProps;
113
134
  }
114
135
  interface ElmTableBodyJsonComponent extends JsonComponentBase {
115
136
  type: 'ElmTableBody';
137
+ id?: string;
116
138
  props?: ElmTableBodyProps;
117
139
  }
118
140
  interface ElmTableRowJsonComponent extends JsonComponentBase {
119
141
  type: 'ElmTableRow';
142
+ id?: string;
120
143
  props?: ElmTableRowProps;
121
144
  }
122
145
  interface ElmTableCellJsonComponent extends JsonComponentBase {
123
146
  type: 'ElmTableCell';
147
+ id?: string;
124
148
  props?: ElmTableCellProps;
125
149
  }
126
150
  interface ElmKatexJsonComponent extends JsonComponentBase {
127
151
  type: 'ElmKatex';
152
+ id?: string;
128
153
  props?: ElmKatexProps;
129
154
  }
130
155
  interface ElmImageJsonComponent extends JsonComponentBase {
131
156
  type: 'ElmImage';
157
+ id?: string;
132
158
  props?: ElmImageProps;
133
159
  }
160
+ interface ElmBlockImageJsonComponent extends JsonComponentBase {
161
+ type: 'ElmBlockImage';
162
+ id?: string;
163
+ props?: ElmBlockImageProps;
164
+ }
134
165
  interface ElmBookmarkJsonComponent extends JsonComponentBase {
135
166
  type: 'ElmBookmark';
167
+ id?: string;
136
168
  props?: ElmBookmarkProps;
137
169
  }
138
170
  interface ElmToggleJsonComponent extends JsonComponentBase {
139
171
  type: 'ElmToggle';
172
+ id?: string;
140
173
  props?: ElmToggleProps;
141
174
  }
142
175
  interface ElmCheckboxJsonComponent extends JsonComponentBase {
143
176
  type: 'ElmCheckbox';
177
+ id?: string;
144
178
  props?: ElmCheckboxProps;
145
179
  }
146
180
  interface ElmFileJsonComponent extends JsonComponentBase {
147
181
  type: 'ElmFile';
182
+ id?: string;
148
183
  props?: ElmFileProps;
149
184
  }
150
185
  interface ElmColumnJsonComponent extends JsonComponentBase {
151
186
  type: 'ElmColumn';
187
+ id?: string;
152
188
  props?: ElmColumnProps;
153
189
  }
154
190
  interface ElmColumnListJsonComponent extends JsonComponentBase {
155
191
  type: 'ElmColumnList';
192
+ id?: string;
156
193
  props?: ElmColumnListProps;
157
194
  }
158
- type JsonComponent = ElmInlineTextJsonComponent | ElmInlineCodeJsonComponent | ElmInlineLinkJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
195
+ type JsonComponent = ElmInlineTextJsonComponent | ElmInlineLinkJsonComponent | ElmInlineIconJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBlockImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
159
196
  export interface ElmJsonRendererProps {
160
197
  json: JsonComponent[];
161
198
  }
@@ -0,0 +1,150 @@
1
+ import { defineComponent, defineAsyncComponent, markRaw, createBlock, openBlock, resolveDynamicComponent, h } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "ElmJsonRenderer",
4
+ props: {
5
+ json: {}
6
+ },
7
+ setup(__props) {
8
+ const ElmInlineText = defineAsyncComponent(
9
+ () => import("../inline/ElmInlineText.vue.mjs")
10
+ );
11
+ const ElmInlineLink = defineAsyncComponent(
12
+ () => import("../inline/ElmInlineLink.vue.mjs")
13
+ );
14
+ const ElmInlineIcon = defineAsyncComponent(
15
+ () => import("../inline/ElmInlineIcon.vue.mjs")
16
+ );
17
+ const ElmCallout = defineAsyncComponent(
18
+ () => import("../typography/ElmCallout.vue.mjs")
19
+ );
20
+ const ElmBulletedList = defineAsyncComponent(
21
+ () => import("../typography/ElmBulletedList.vue3.mjs")
22
+ );
23
+ const ElmNumberedList = defineAsyncComponent(
24
+ () => import("../typography/ElmNumberedList.vue3.mjs")
25
+ );
26
+ const ElmListItem = defineAsyncComponent(
27
+ () => import("../typography/ElmListItem.vue.mjs")
28
+ );
29
+ const ElmBlockQuote = defineAsyncComponent(
30
+ () => import("../typography/ElmBlockQuote.vue.mjs")
31
+ );
32
+ const ElmDivider = defineAsyncComponent(
33
+ () => import("../typography/ElmDivider.vue.mjs")
34
+ );
35
+ const ElmHeading1 = defineAsyncComponent(
36
+ () => import("../headings/ElmHeading1.vue.mjs")
37
+ );
38
+ const ElmHeading2 = defineAsyncComponent(
39
+ () => import("../headings/ElmHeading2.vue.mjs")
40
+ );
41
+ const ElmHeading3 = defineAsyncComponent(
42
+ () => import("../headings/ElmHeading3.vue.mjs")
43
+ );
44
+ const ElmHeading4 = defineAsyncComponent(
45
+ () => import("../headings/ElmHeading4.vue.mjs")
46
+ );
47
+ const ElmHeading5 = defineAsyncComponent(
48
+ () => import("../headings/ElmHeading5.vue.mjs")
49
+ );
50
+ const ElmHeading6 = defineAsyncComponent(
51
+ () => import("../headings/ElmHeading6.vue.mjs")
52
+ );
53
+ const ElmCodeBlock = defineAsyncComponent(
54
+ () => import("../code/ElmCodeBlock.vue.mjs")
55
+ );
56
+ const ElmParagraph = defineAsyncComponent(
57
+ () => import("../typography/ElmParagraph.vue.mjs")
58
+ );
59
+ const ElmTable = defineAsyncComponent(() => import("../table/ElmTable.vue.mjs"));
60
+ const ElmTableHeader = defineAsyncComponent(
61
+ () => import("../table/ElmTableHeader.vue3.mjs")
62
+ );
63
+ const ElmTableBody = defineAsyncComponent(
64
+ () => import("../table/ElmTableBody.vue3.mjs")
65
+ );
66
+ const ElmTableRow = defineAsyncComponent(
67
+ () => import("../table/ElmTableRow.vue2.mjs")
68
+ );
69
+ const ElmTableCell = defineAsyncComponent(
70
+ () => import("../table/ElmTableCell.vue.mjs")
71
+ );
72
+ const ElmKatex = defineAsyncComponent(() => import("../code/ElmKatex.vue.mjs"));
73
+ const ElmImage = defineAsyncComponent(() => import("../media/ElmImage.vue.mjs"));
74
+ const ElmBlockImage = defineAsyncComponent(
75
+ () => import("../media/ElmBlockImage.vue.mjs")
76
+ );
77
+ const ElmBookmark = defineAsyncComponent(
78
+ () => import("../navigation/ElmBookmark.vue.mjs")
79
+ );
80
+ const ElmToggle = defineAsyncComponent(
81
+ () => import("../containments/ElmToggle.vue.mjs")
82
+ );
83
+ const ElmCheckbox = defineAsyncComponent(
84
+ () => import("../form/ElmCheckbox.vue.mjs")
85
+ );
86
+ const ElmFile = defineAsyncComponent(() => import("../media/ElmFile.vue.mjs"));
87
+ const ElmColumn = defineAsyncComponent(
88
+ () => import("../containments/ElmColumn.vue.mjs")
89
+ );
90
+ const ElmColumnList = defineAsyncComponent(
91
+ () => import("../containments/ElmColumnList.vue.mjs")
92
+ );
93
+ const componentMap = {
94
+ ElmInlineText: markRaw(ElmInlineText),
95
+ ElmInlineLink: markRaw(ElmInlineLink),
96
+ ElmInlineIcon: markRaw(ElmInlineIcon),
97
+ ElmCallout: markRaw(ElmCallout),
98
+ ElmBulletedList: markRaw(ElmBulletedList),
99
+ ElmNumberedList: markRaw(ElmNumberedList),
100
+ ElmListItem: markRaw(ElmListItem),
101
+ ElmBlockQuote: markRaw(ElmBlockQuote),
102
+ ElmDivider: markRaw(ElmDivider),
103
+ ElmHeading1: markRaw(ElmHeading1),
104
+ ElmHeading2: markRaw(ElmHeading2),
105
+ ElmHeading3: markRaw(ElmHeading3),
106
+ ElmHeading4: markRaw(ElmHeading4),
107
+ ElmHeading5: markRaw(ElmHeading5),
108
+ ElmHeading6: markRaw(ElmHeading6),
109
+ ElmCodeBlock: markRaw(ElmCodeBlock),
110
+ ElmParagraph: markRaw(ElmParagraph),
111
+ ElmTable: markRaw(ElmTable),
112
+ ElmTableHeader: markRaw(ElmTableHeader),
113
+ ElmTableBody: markRaw(ElmTableBody),
114
+ ElmTableRow: markRaw(ElmTableRow),
115
+ ElmTableCell: markRaw(ElmTableCell),
116
+ ElmKatex: markRaw(ElmKatex),
117
+ ElmImage: markRaw(ElmImage),
118
+ ElmBlockImage: markRaw(ElmBlockImage),
119
+ ElmBookmark: markRaw(ElmBookmark),
120
+ ElmToggle: markRaw(ElmToggle),
121
+ ElmCheckbox: markRaw(ElmCheckbox),
122
+ ElmFile: markRaw(ElmFile),
123
+ ElmColumn: markRaw(ElmColumn),
124
+ ElmColumnList: markRaw(ElmColumnList)
125
+ };
126
+ const render = (json) => {
127
+ const vnodes = [];
128
+ for (const component of json) {
129
+ vnodes.push(
130
+ h(
131
+ componentMap[component.type],
132
+ { ...component.props, key: component.id },
133
+ () => {
134
+ if (component.children != null) {
135
+ return render(component.children);
136
+ }
137
+ }
138
+ )
139
+ );
140
+ }
141
+ return vnodes;
142
+ };
143
+ return (_ctx, _cache) => {
144
+ return openBlock(), createBlock(resolveDynamicComponent(() => render(_ctx.json)));
145
+ };
146
+ }
147
+ });
148
+ export {
149
+ _sfc_main as default
150
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./ElmJsonRenderer.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,14 +1,20 @@
1
+ import { Property } from 'csstype';
1
2
  export interface ElmTableProps {
3
+ /**
4
+ * The margin of the table.
5
+ */
6
+ margin?: Property.MarginBlock;
2
7
  }
3
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
4
10
  slots: {
5
11
  default?(_: {}): any;
6
12
  };
7
13
  refs: {};
8
- attrs: Partial<{}>;
14
+ rootEl: HTMLTableElement;
9
15
  };
10
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableElement>;
12
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
19
  export default _default;
14
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,18 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode(".table[data-v-6ed1a868]{margin-block:var(--margin-block);border-collapse:collapse;border-spacing:0;box-shadow:0 0 .125rem #0000001a}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ import _sfc_main from "./ElmTable.vue2.mjs";
14
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
15
+ const ElmTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6ed1a868"]]);
16
+ export {
17
+ ElmTable as default
18
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "ElmTable",
4
+ props: {
5
+ margin: {}
6
+ },
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ return openBlock(), createElementBlock("table", {
10
+ class: "table",
11
+ style: normalizeStyle({
12
+ "--margin-block": _ctx.margin
13
+ })
14
+ }, [
15
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
16
+ ], 4);
17
+ };
18
+ }
19
+ });
20
+ export {
21
+ _sfc_main as default
22
+ };
@@ -1,14 +1,15 @@
1
1
  export interface ElmTableBodyProps {
2
2
  }
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {};
8
- attrs: Partial<{}>;
9
+ rootEl: HTMLTableSectionElement;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<ElmTableBodyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableBodyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableSectionElement>;
12
13
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
14
  export default _default;
14
15
  type __VLS_WithTemplateSlots<T, S> = T & {