@elmethis/core 0.1.0

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 (339) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  2. package/dist/components/code/ElmCodeBlock.stories.d.ts +9 -0
  3. package/dist/components/code/ElmCodeBlock.vue.d.ts +48 -0
  4. package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
  5. package/dist/components/code/ElmCodeBlock.vue2.mjs +134 -0
  6. package/dist/components/code/ElmCodeBlock.vue3.mjs +40 -0
  7. package/dist/components/code/ElmKatex.stories.d.ts +8 -0
  8. package/dist/components/code/ElmKatex.vue.d.ts +20 -0
  9. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  10. package/dist/components/code/ElmKatex.vue2.mjs +67 -0
  11. package/dist/components/code/ElmKatex.vue3.mjs +20 -0
  12. package/dist/components/code/ElmShikiHighlighter.stories.d.ts +6 -0
  13. package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
  14. package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
  15. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +55 -0
  16. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
  17. package/dist/components/code/shikiInstance.d.ts +2 -0
  18. package/dist/components/code/shikiInstance.mjs +76 -0
  19. package/dist/components/containments/ElmColumn.stories.d.ts +6 -0
  20. package/dist/components/containments/ElmColumn.vue.d.ts +19 -0
  21. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  22. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  23. package/dist/components/containments/ElmColumn.vue3.mjs +20 -0
  24. package/dist/components/containments/ElmColumnList.vue.d.ts +19 -0
  25. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  26. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  27. package/dist/components/containments/ElmColumnList.vue3.mjs +18 -0
  28. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  29. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  30. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  31. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  32. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +26 -0
  33. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  34. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  35. package/dist/components/containments/ElmModal.vue.mjs +23 -0
  36. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  37. package/dist/components/containments/ElmModal.vue3.mjs +23 -0
  38. package/dist/components/containments/ElmParallax.stories.d.ts +6 -0
  39. package/dist/components/containments/ElmParallax.vue.d.ts +6 -0
  40. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  41. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  42. package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
  43. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  44. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  45. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  46. package/dist/components/containments/ElmSnackbar.vue2.mjs +41 -0
  47. package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
  48. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  49. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +23 -0
  50. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  51. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
  52. package/dist/components/containments/ElmToggle.stories.d.ts +7 -0
  53. package/dist/components/containments/ElmToggle.vue.d.ts +41 -0
  54. package/dist/components/containments/ElmToggle.vue.mjs +23 -0
  55. package/dist/components/containments/ElmToggle.vue2.mjs +99 -0
  56. package/dist/components/containments/ElmToggle.vue3.mjs +34 -0
  57. package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
  58. package/dist/components/containments/ElmTooltip.vue.d.ts +24 -0
  59. package/dist/components/containments/ElmTooltip.vue.mjs +23 -0
  60. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  61. package/dist/components/containments/ElmTooltip.vue3.mjs +20 -0
  62. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  63. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  64. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  65. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  66. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  67. package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
  68. package/dist/components/data/ElmProgress.stories.d.ts +10 -0
  69. package/dist/components/data/ElmProgress.vue.d.ts +38 -0
  70. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  71. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  72. package/dist/components/data/ElmProgress.vue3.mjs +32 -0
  73. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  74. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  75. package/dist/components/data/ElmStatusMessage.vue.mjs +23 -0
  76. package/dist/components/data/ElmStatusMessage.vue2.mjs +76 -0
  77. package/dist/components/data/ElmStatusMessage.vue3.mjs +20 -0
  78. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  79. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  80. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  81. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
  83. package/dist/components/fallback/ElmRectangleWave.stories.d.ts +6 -0
  84. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +4 -0
  85. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  87. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
  88. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  89. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  90. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  91. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  92. package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
  93. package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +6 -0
  94. package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +5 -0
  95. package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +10 -0
  96. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +46 -0
  97. package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +29 -0
  98. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  99. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  100. package/dist/components/form/ElmButton.vue.mjs +23 -0
  101. package/dist/components/form/ElmButton.vue2.mjs +68 -0
  102. package/dist/components/form/ElmButton.vue3.mjs +36 -0
  103. package/dist/components/form/ElmCheckbox.stories.d.ts +6 -0
  104. package/dist/components/form/ElmCheckbox.vue.d.ts +26 -0
  105. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  106. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  107. package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
  108. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  109. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  110. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  111. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  112. package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
  113. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  114. package/dist/components/form/ElmTextField.vue.d.ts +29 -0
  115. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  116. package/dist/components/form/ElmTextField.vue2.mjs +143 -0
  117. package/dist/components/form/ElmTextField.vue3.mjs +46 -0
  118. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  119. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  120. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  121. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  122. package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
  123. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  124. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  125. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  126. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +47 -0
  127. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +26 -0
  128. package/dist/components/icon/ElmCubeIcon.stories.d.ts +6 -0
  129. package/dist/components/icon/ElmCubeIcon.vue.d.ts +10 -0
  130. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  131. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  132. package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
  133. package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +6 -0
  134. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +18 -0
  135. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  136. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  137. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
  138. package/dist/components/icon/ElmInlineIcon.stories.d.ts +6 -0
  139. package/dist/components/icon/ElmInlineIcon.vue.d.ts +12 -0
  140. package/dist/components/icon/ElmInlineIcon.vue.mjs +10 -0
  141. package/dist/components/icon/ElmInlineIcon.vue2.mjs +27 -0
  142. package/dist/components/icon/ElmInlineIcon.vue3.mjs +20 -0
  143. package/dist/components/icon/ElmLanguageIcon.stories.d.ts +6 -0
  144. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +14 -0
  145. package/dist/components/icon/ElmLanguageIcon.vue.mjs +23 -0
  146. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +202 -0
  147. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +20 -0
  148. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  149. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  150. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  151. package/dist/components/icon/ElmLoginIcon.vue2.mjs +36 -0
  152. package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
  153. package/dist/components/icon/ElmMdiIcon.stories.d.ts +6 -0
  154. package/dist/components/icon/ElmMdiIcon.vue.d.ts +11 -0
  155. package/dist/components/icon/ElmMdiIcon.vue.mjs +10 -0
  156. package/dist/components/icon/ElmMdiIcon.vue2.mjs +34 -0
  157. package/dist/components/icon/ElmMdiIcon.vue3.mjs +20 -0
  158. package/dist/components/icon/ElmToggleTheme.stories.d.ts +6 -0
  159. package/dist/components/icon/ElmToggleTheme.vue.d.ts +11 -0
  160. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  161. package/dist/components/icon/ElmToggleTheme.vue2.mjs +41 -0
  162. package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
  163. package/dist/components/icon/languages/Bash.vue.d.ts +7 -0
  164. package/dist/components/icon/languages/Bash.vue.mjs +10 -0
  165. package/dist/components/icon/languages/Bash.vue2.mjs +34 -0
  166. package/dist/components/icon/languages/Bash.vue3.mjs +20 -0
  167. package/dist/components/icon/languages/C.vue.d.ts +7 -0
  168. package/dist/components/icon/languages/C.vue.mjs +4 -0
  169. package/dist/components/icon/languages/C.vue2.mjs +34 -0
  170. package/dist/components/icon/languages/Cplusplus.vue.d.ts +7 -0
  171. package/dist/components/icon/languages/Cplusplus.vue.mjs +4 -0
  172. package/dist/components/icon/languages/Cplusplus.vue2.mjs +38 -0
  173. package/dist/components/icon/languages/Csharp.vue.d.ts +7 -0
  174. package/dist/components/icon/languages/Csharp.vue.mjs +4 -0
  175. package/dist/components/icon/languages/Csharp.vue2.mjs +34 -0
  176. package/dist/components/icon/languages/Css.vue.d.ts +7 -0
  177. package/dist/components/icon/languages/Css.vue.mjs +4 -0
  178. package/dist/components/icon/languages/Css.vue2.mjs +26 -0
  179. package/dist/components/icon/languages/Go.vue.d.ts +7 -0
  180. package/dist/components/icon/languages/Go.vue.mjs +4 -0
  181. package/dist/components/icon/languages/Go.vue2.mjs +32 -0
  182. package/dist/components/icon/languages/Html.vue.d.ts +7 -0
  183. package/dist/components/icon/languages/Html.vue.mjs +4 -0
  184. package/dist/components/icon/languages/Html.vue2.mjs +38 -0
  185. package/dist/components/icon/languages/Java.vue.d.ts +7 -0
  186. package/dist/components/icon/languages/Java.vue.mjs +4 -0
  187. package/dist/components/icon/languages/Java.vue2.mjs +23 -0
  188. package/dist/components/icon/languages/Javascript.vue.d.ts +7 -0
  189. package/dist/components/icon/languages/Javascript.vue.mjs +4 -0
  190. package/dist/components/icon/languages/Javascript.vue2.mjs +30 -0
  191. package/dist/components/icon/languages/Json.vue.d.ts +7 -0
  192. package/dist/components/icon/languages/Json.vue.mjs +4 -0
  193. package/dist/components/icon/languages/Json.vue2.mjs +23 -0
  194. package/dist/components/icon/languages/Kotlin.vue.d.ts +7 -0
  195. package/dist/components/icon/languages/Kotlin.vue.mjs +4 -0
  196. package/dist/components/icon/languages/Kotlin.vue2.mjs +23 -0
  197. package/dist/components/icon/languages/Lua.vue.d.ts +7 -0
  198. package/dist/components/icon/languages/Lua.vue.mjs +4 -0
  199. package/dist/components/icon/languages/Lua.vue2.mjs +34 -0
  200. package/dist/components/icon/languages/Npm.vue.d.ts +7 -0
  201. package/dist/components/icon/languages/Npm.vue.mjs +4 -0
  202. package/dist/components/icon/languages/Npm.vue2.mjs +30 -0
  203. package/dist/components/icon/languages/Python.vue.d.ts +7 -0
  204. package/dist/components/icon/languages/Python.vue.mjs +4 -0
  205. package/dist/components/icon/languages/Python.vue2.mjs +23 -0
  206. package/dist/components/icon/languages/Rust.vue.d.ts +7 -0
  207. package/dist/components/icon/languages/Rust.vue.mjs +4 -0
  208. package/dist/components/icon/languages/Rust.vue2.mjs +24 -0
  209. package/dist/components/icon/languages/Sql.vue.d.ts +7 -0
  210. package/dist/components/icon/languages/Sql.vue.mjs +4 -0
  211. package/dist/components/icon/languages/Sql.vue2.mjs +26 -0
  212. package/dist/components/icon/languages/Terraform.vue.d.ts +7 -0
  213. package/dist/components/icon/languages/Terraform.vue.mjs +4 -0
  214. package/dist/components/icon/languages/Terraform.vue2.mjs +36 -0
  215. package/dist/components/icon/languages/Typescript.vue.d.ts +7 -0
  216. package/dist/components/icon/languages/Typescript.vue.mjs +4 -0
  217. package/dist/components/icon/languages/Typescript.vue2.mjs +30 -0
  218. package/dist/components/media/ElmBlockImage.stories.d.ts +9 -0
  219. package/dist/components/media/ElmBlockImage.vue.d.ts +12 -0
  220. package/dist/components/media/ElmBlockImage.vue.mjs +23 -0
  221. package/dist/components/media/ElmBlockImage.vue2.mjs +117 -0
  222. package/dist/components/media/ElmBlockImage.vue3.mjs +36 -0
  223. package/dist/components/media/ElmFile.stories.d.ts +6 -0
  224. package/dist/components/media/ElmFile.vue.d.ts +21 -0
  225. package/dist/components/media/ElmFile.vue.mjs +10 -0
  226. package/dist/components/media/ElmFile.vue2.mjs +79 -0
  227. package/dist/components/media/ElmFile.vue3.mjs +23 -0
  228. package/dist/components/media/ElmImage.stories.d.ts +9 -0
  229. package/dist/components/media/ElmImage.vue.d.ts +23 -0
  230. package/dist/components/media/ElmImage.vue.mjs +23 -0
  231. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  232. package/dist/components/media/ElmImage.vue3.mjs +30 -0
  233. package/dist/components/navigation/ElmBookmark.stories.d.ts +12 -0
  234. package/dist/components/navigation/ElmBookmark.vue.d.ts +53 -0
  235. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  236. package/dist/components/navigation/ElmBookmark.vue2.mjs +116 -0
  237. package/dist/components/navigation/ElmBookmark.vue3.mjs +41 -0
  238. package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +7 -0
  239. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +19 -0
  240. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  241. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +65 -0
  242. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +24 -0
  243. package/dist/components/navigation/ElmPagetop.stories.d.ts +6 -0
  244. package/dist/components/navigation/ElmPagetop.vue.d.ts +10 -0
  245. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  246. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  247. package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
  248. package/dist/components/navigation/ElmTableOfContents.stories.d.ts +7 -0
  249. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +9 -0
  250. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  251. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +45 -0
  252. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +23 -0
  253. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  254. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  255. package/dist/components/others/ElmColorSample.vue.mjs +23 -0
  256. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  257. package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
  258. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  259. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  260. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  261. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  262. package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
  263. package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
  264. package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
  265. package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
  266. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +240 -0
  267. package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
  268. package/dist/components/others/ElmTyping.stories.d.ts +6 -0
  269. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  270. package/dist/components/table/ElmTable.stories.d.ts +6 -0
  271. package/dist/components/table/ElmTable.vue.d.ts +46 -0
  272. package/dist/components/table/ElmTable.vue.mjs +10 -0
  273. package/dist/components/table/ElmTable.vue2.mjs +61 -0
  274. package/dist/components/table/ElmTable.vue3.mjs +27 -0
  275. package/dist/components/table/ElmTableBody.vue.d.ts +22 -0
  276. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  277. package/dist/components/table/ElmTableBody.vue2.mjs +4 -0
  278. package/dist/components/table/ElmTableCell.vue.d.ts +33 -0
  279. package/dist/components/table/ElmTableCell.vue.mjs +10 -0
  280. package/dist/components/table/ElmTableCell.vue2.mjs +28 -0
  281. package/dist/components/table/ElmTableCell.vue3.mjs +26 -0
  282. package/dist/components/table/ElmTableHeader.vue.d.ts +22 -0
  283. package/dist/components/table/ElmTableHeader.vue.mjs +10 -0
  284. package/dist/components/table/ElmTableHeader.vue2.mjs +17 -0
  285. package/dist/components/table/ElmTableHeader.vue3.mjs +20 -0
  286. package/dist/components/table/ElmTableRow.vue.d.ts +22 -0
  287. package/dist/components/table/ElmTableRow.vue.mjs +10 -0
  288. package/dist/components/table/ElmTableRow.vue2.mjs +20 -0
  289. package/dist/components/table/ElmTableRow.vue3.mjs +21 -0
  290. package/dist/components/template/ElmTemplate.stories.d.ts +6 -0
  291. package/dist/components/template/ElmTemplate.vue.d.ts +4 -0
  292. package/dist/components/typography/ElmBlockQuote.stories.d.ts +6 -0
  293. package/dist/components/typography/ElmBlockQuote.vue.d.ts +24 -0
  294. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  295. package/dist/components/typography/ElmBlockQuote.vue2.mjs +64 -0
  296. package/dist/components/typography/ElmBlockQuote.vue3.mjs +26 -0
  297. package/dist/components/typography/ElmCallout.stories.d.ts +10 -0
  298. package/dist/components/typography/ElmCallout.vue.d.ts +30 -0
  299. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  300. package/dist/components/typography/ElmCallout.vue2.mjs +58 -0
  301. package/dist/components/typography/ElmCallout.vue3.mjs +23 -0
  302. package/dist/components/typography/ElmDivider.stories.d.ts +6 -0
  303. package/dist/components/typography/ElmDivider.vue.d.ts +11 -0
  304. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  305. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  306. package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
  307. package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +6 -0
  308. package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +8 -0
  309. package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +10 -0
  310. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +62 -0
  311. package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +23 -0
  312. package/dist/components/typography/ElmHeading.stories.d.ts +7 -0
  313. package/dist/components/typography/ElmHeading.vue.d.ts +49 -0
  314. package/dist/components/typography/ElmHeading.vue.mjs +10 -0
  315. package/dist/components/typography/ElmHeading.vue2.mjs +72 -0
  316. package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
  317. package/dist/components/typography/ElmInlineText.stories.d.ts +10 -0
  318. package/dist/components/typography/ElmInlineText.vue.d.ts +61 -0
  319. package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
  320. package/dist/components/typography/ElmInlineText.vue2.mjs +98 -0
  321. package/dist/components/typography/ElmInlineText.vue3.mjs +26 -0
  322. package/dist/components/typography/ElmList.stories.d.ts +8 -0
  323. package/dist/components/typography/ElmList.vue.d.ts +31 -0
  324. package/dist/components/typography/ElmList.vue.mjs +36 -0
  325. package/dist/components/typography/ElmList.vue3.mjs +17 -0
  326. package/dist/components/typography/ElmParagraph.stories.d.ts +6 -0
  327. package/dist/components/typography/ElmParagraph.vue.d.ts +23 -0
  328. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  329. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  330. package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
  331. package/dist/components/typography/ElmTypingAnimation.stories.d.ts +6 -0
  332. package/dist/components/typography/ElmTypingAnimation.vue.d.ts +21 -0
  333. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  334. package/dist/hooks/useElmethisTheme.mjs +43 -0
  335. package/dist/hooks/useTyping.d.ts +17 -0
  336. package/dist/hooks/useTyping.mjs +37 -0
  337. package/dist/index.d.ts +108 -0
  338. package/dist/index.mjs +124 -0
  339. package/package.json +60 -0
@@ -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 ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
6
+ import { mdiCheck } from "@mdi/js";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "ElmColorSample",
9
+ props: {
10
+ color: {}
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const { blue, green, red } = parseToRgb(props.color);
15
+ const { hue, saturation, lightness } = parseToHsl(props.color);
16
+ const hex = rgbToColorString(parseToRgb(props.color));
17
+ const rgb = `rgb(${red}, ${green}, ${blue})`;
18
+ const hsl = `hsl(${Math.floor(hue)}, ${Math.floor(saturation * 100)}%, ${Math.floor(lightness * 100)}%)`;
19
+ const { copy, copied } = useClipboard();
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createElementBlock("div", {
22
+ style: normalizeStyle({ "--color": _ctx.color })
23
+ }, [
24
+ createVNode(ElmTooltip, null, {
25
+ original: withCtx(() => [
26
+ createElementVNode("div", {
27
+ class: normalizeClass(_ctx.$style["color-bg"]),
28
+ style: normalizeStyle({
29
+ "--background-color": _ctx.color
30
+ }),
31
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(copy)(unref(hex)))
32
+ }, [
33
+ createVNode(Transition, null, {
34
+ default: withCtx(() => [
35
+ unref(copied) ? (openBlock(), createBlock(ElmMdiIcon, {
36
+ key: 0,
37
+ d: unref(mdiCheck),
38
+ size: "1em",
39
+ color: "white"
40
+ }, null, 8, ["d"])) : 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,23 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmJsonComponentRenderer } from './ElmJsonComponentRenderer.vue';
3
+ declare const meta: Meta<typeof ElmJsonComponentRenderer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const InlineIcon: Story;
8
+ export declare const InlineKatex: Story;
9
+ export declare const Heading: Story;
10
+ export declare const UnorderedList: Story;
11
+ export declare const OrderedList: Story;
12
+ export declare const BlockQuote: Story;
13
+ export declare const Callout: Story;
14
+ export declare const Divider: Story;
15
+ export declare const Toggle: Story;
16
+ export declare const Bookmark: Story;
17
+ export declare const File: Story;
18
+ export declare const Image: Story;
19
+ export declare const CodeBlock: Story;
20
+ export declare const Katex: Story;
21
+ export declare const Table: Story;
22
+ export declare const ColumnList: Story;
23
+ export declare const Unsupported: Story;
@@ -0,0 +1,6 @@
1
+ import { Component } from 'jarkup-ts';
2
+ export interface ElmJsonComponentRendererProps {
3
+ jsonComponents: Component[];
4
+ }
5
+ declare const _default: import('vue').DefineComponent<ElmJsonComponentRendererProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmJsonComponentRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmJsonComponentRenderer.vue2.mjs";
2
+ import style0 from "./ElmJsonComponentRenderer.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmJsonComponentRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmJsonComponentRenderer as default
10
+ };
@@ -0,0 +1,240 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-610548e5],.v-leave-from[data-v-610548e5]{opacity:1}.v-enter-active[data-v-610548e5],.v-leave-active[data-v-610548e5]{transition:opacity .1s}.v-enter-from[data-v-610548e5],.v-leave-to[data-v-610548e5]{opacity:0}\n.v-enter-to[data-v-ad203f10],.v-leave-from[data-v-ad203f10]{opacity:1}.v-enter-active[data-v-ad203f10],.v-leave-active[data-v-ad203f10]{transition:opacity .15s}.v-enter-from[data-v-ad203f10],.v-leave-to[data-v-ad203f10]{opacity:0}\n.v-enter-to[data-v-83a74154],.v-leave-from[data-v-83a74154]{opacity:1}.v-enter-active[data-v-83a74154],.v-leave-active[data-v-83a74154]{transition:opacity .2s}.v-enter-from[data-v-83a74154],.v-leave-to[data-v-83a74154]{opacity:0}\n.fade-enter-active[data-v-12f55baa],.fade-leave-active[data-v-12f55baa]{transition:all .3s ease}.fade-enter-from[data-v-12f55baa],.fade-leave-to[data-v-12f55baa]{opacity:0;transform:translate(30px)}\n.v-enter-to[data-v-3d63d491],.v-leave-from[data-v-3d63d491]{opacity:1}.v-enter-active[data-v-3d63d491],.v-leave-active[data-v-3d63d491]{transition:opacity .2s;transform-origin:top}.v-enter-from[data-v-3d63d491],.v-leave-to[data-v-3d63d491]{opacity:0}\n.v-enter-to[data-v-cd939485],.v-leave-from[data-v-cd939485]{transform:scale(1);opacity:1}.v-enter-active[data-v-cd939485],.v-leave-active[data-v-cd939485]{transition:opacity .1s,transform .2s}.v-enter-from[data-v-cd939485],.v-leave-to[data-v-cd939485]{transform:scale(.5);opacity:0}\n.v-enter-to[data-v-84bc9c5d],.v-leave-from[data-v-84bc9c5d]{opacity:1}.v-enter-active[data-v-84bc9c5d],.v-leave-active[data-v-84bc9c5d]{transition:opacity .15s}.v-enter-from[data-v-84bc9c5d],.v-leave-to[data-v-84bc9c5d]{opacity:0}\n.v-enter-to[data-v-324befdb],.v-leave-from[data-v-324befdb]{opacity:1}.v-enter-active[data-v-324befdb],.v-leave-active[data-v-324befdb]{transition:opacity .1s}.v-enter-from[data-v-324befdb],.v-leave-to[data-v-324befdb]{opacity:0}\n.v-enter-to[data-v-a6508d78],.v-leave-from[data-v-a6508d78]{opacity:1}.v-enter-active[data-v-a6508d78],.v-leave-active[data-v-a6508d78]{transition:opacity .3s}.v-enter-from[data-v-a6508d78],.v-leave-to[data-v-a6508d78]{opacity:0}\n.v-enter-to[data-v-4e995755],.v-leave-from[data-v-4e995755]{opacity:1}.v-enter-active[data-v-4e995755],.v-leave-active[data-v-4e995755]{transition:opacity .3s}.v-enter-from[data-v-4e995755],.v-leave-to[data-v-4e995755]{opacity:0}\n.elmethis-list-common{margin-block:1rem;opacity:var(--opacity);transition:opacity .8s;box-sizing:border-box;padding-left:1.25rem}.elmethis-bulleted-list li{box-sizing:border-box;padding-left:.5rem;margin-block:.75rem}.elmethis-bulleted-list li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMTYgMTYnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICA+CiAgICA8cGF0aAogICAgICBmaWxsPScjNDQ5NzYzJwogICAgICBvcGFjaXR5PScwLjgnCiAgICAgIGQ9J00zIDMuNzMyYTEuNSAxLjUgMCAwIDEgMi4zMDUtMS4yNjVsNi43MDYgNC4yNjdhMS41IDEuNSAwIDAgMSAwIDIuNTMxbC02LjcwNiA0LjI2OEExLjUgMS41IDAgMCAxIDMgMTIuMjY3VjMuNzMyWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjQgMjQnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9J3RyYW5zcGFyZW50JwogID4KICAgIDxwYXRoCiAgICAgIHN0cm9rZUxpbmVjYXA9J3JvdW5kJwogICAgICBzdHJva2VMaW5lam9pbj0ncm91bmQnCiAgICAgIGQ9J001LjI1IDUuNjUzYzAtLjg1Ni45MTctMS4zOTggMS42NjctLjk4NmwxMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMSAwIDEuOTcybC0xMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMS0xLjY2Ny0uOTg2VjUuNjUzWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjAgMjAnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9JyM0NDk3NjMnCiAgPgogICAgPHBhdGgKICAgICAgZmlsbFJ1bGU9J2V2ZW5vZGQnCiAgICAgIGQ9J004LjIyIDUuMjJhLjc1Ljc1IDAgMCAxIDEuMDYgMGw0LjI1IDQuMjVhLjc1Ljc1IDAgMCAxIDAgMS4wNmwtNC4yNSA0LjI1YS43NS43NSAwIDAgMS0xLjA2LTEuMDZMMTEuOTQgMTAgOC4yMiA2LjI4YS43NS43NSAwIDAgMSAwLTEuMDZaJwogICAgICBjbGlwUnVsZT0nZXZlbm9kZCcKICAgIC8+CiAgPC9zdmc+)}.elmethis-numbered-list li{box-sizing:border-box;padding-left:.25rem;margin-block:.75rem;margin-left:.25rem;list-style-type:decimal}.elmethis-numbered-list li::marker{font-weight:700;color:#9771bd}.elmethis-numbered-list li ol li{list-style-type:lower-alpha}.elmethis-numbered-list li ol li ol li{list-style-type:lower-roman}.elmethis-numbered-list li ol li ol li ol li{list-style-type:lower-greek}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ import { defineComponent, useCssModule, defineAsyncComponent, createBlock, openBlock, resolveDynamicComponent, unref, h } from "vue";
14
+ import "@mdi/js";
15
+
16
+ import "polished";
17
+ import ElmBlockFallback from "../fallback/ElmBlockFallback.vue.mjs";
18
+ import "@vueuse/core";
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+ import "nanoid";
27
+ import "lodash-es";
28
+
29
+
30
+
31
+ const _sfc_main = /* @__PURE__ */ defineComponent({
32
+ __name: "ElmJsonComponentRenderer",
33
+ props: {
34
+ jsonComponents: {}
35
+ },
36
+ setup(__props) {
37
+ const props = __props;
38
+ const style = useCssModule();
39
+ const AsyncElmInlineText = defineAsyncComponent({
40
+ loader: () => import("../typography/ElmInlineText.vue.mjs")
41
+ });
42
+ const AsyncElmKatex = defineAsyncComponent({
43
+ loader: () => import("../code/ElmKatex.vue.mjs")
44
+ });
45
+ const AsyncElmInlineIcon = defineAsyncComponent({
46
+ loader: () => import("../icon/ElmInlineIcon.vue.mjs")
47
+ });
48
+ const AsyncElmHeading = defineAsyncComponent({
49
+ loader: () => import("../typography/ElmHeading.vue.mjs"),
50
+ loadingComponent: ElmBlockFallback
51
+ });
52
+ const AsyncElmParagraph = defineAsyncComponent({
53
+ loader: () => import("../typography/ElmParagraph.vue.mjs"),
54
+ loadingComponent: ElmBlockFallback
55
+ });
56
+ const AsyncElmList = defineAsyncComponent({
57
+ loader: () => import("../typography/ElmList.vue3.mjs"),
58
+ loadingComponent: ElmBlockFallback
59
+ });
60
+ const AsyncElmBlockQuote = defineAsyncComponent({
61
+ loader: () => import("../typography/ElmBlockQuote.vue.mjs"),
62
+ loadingComponent: ElmBlockFallback
63
+ });
64
+ const AsyncElmCallout = defineAsyncComponent({
65
+ loader: () => import("../typography/ElmCallout.vue.mjs"),
66
+ loadingComponent: ElmBlockFallback
67
+ });
68
+ const AsyncElmDivider = defineAsyncComponent({
69
+ loader: () => import("../typography/ElmDivider.vue.mjs"),
70
+ loadingComponent: ElmBlockFallback
71
+ });
72
+ const AsyncElmToggle = defineAsyncComponent({
73
+ loader: () => import("../containments/ElmToggle.vue.mjs"),
74
+ loadingComponent: ElmBlockFallback
75
+ });
76
+ const AsyncElmBookmark = defineAsyncComponent({
77
+ loader: () => import("../navigation/ElmBookmark.vue.mjs"),
78
+ loadingComponent: ElmBlockFallback
79
+ });
80
+ const AsyncElmFile = defineAsyncComponent({
81
+ loader: () => import("../media/ElmFile.vue.mjs"),
82
+ loadingComponent: ElmBlockFallback
83
+ });
84
+ const AsyncElmBlockImage = defineAsyncComponent({
85
+ loader: () => import("../media/ElmBlockImage.vue.mjs"),
86
+ loadingComponent: ElmBlockFallback
87
+ });
88
+ const AsyncElmCodeBlock = defineAsyncComponent({
89
+ loader: () => import("../code/ElmCodeBlock.vue.mjs"),
90
+ loadingComponent: ElmBlockFallback
91
+ });
92
+ const AsyncElmTable = defineAsyncComponent({
93
+ loader: () => import("../table/ElmTable.vue.mjs"),
94
+ loadingComponent: ElmBlockFallback
95
+ });
96
+ const AsyncElmTableHeader = defineAsyncComponent({
97
+ loader: () => import("../table/ElmTableHeader.vue.mjs"),
98
+ loadingComponent: ElmBlockFallback
99
+ });
100
+ const AsyncElmTableBody = defineAsyncComponent({
101
+ loader: () => import("../table/ElmTableBody.vue2.mjs"),
102
+ loadingComponent: ElmBlockFallback
103
+ });
104
+ const AsyncElmTableRow = defineAsyncComponent({
105
+ loader: () => import("../table/ElmTableRow.vue.mjs"),
106
+ loadingComponent: ElmBlockFallback
107
+ });
108
+ const AsyncElmTableCell = defineAsyncComponent({
109
+ loader: () => import("../table/ElmTableCell.vue.mjs"),
110
+ loadingComponent: ElmBlockFallback
111
+ });
112
+ const AsyncElmUnsupportedBlock = defineAsyncComponent({
113
+ loader: () => import("../fallback/ElmUnsupportedBlock.vue.mjs"),
114
+ loadingComponent: ElmBlockFallback
115
+ });
116
+ const defaultRenderFunctionMap = (render2) => {
117
+ return {
118
+ Text: ({ props: props2 }) => {
119
+ if (props2.katex) {
120
+ return h(AsyncElmKatex, { expression: props2.text, block: false });
121
+ } else {
122
+ return h(AsyncElmInlineText, {
123
+ text: props2.text,
124
+ color: props2.color,
125
+ backgroundColor: props2.backgroundColor,
126
+ bold: props2.bold,
127
+ italic: props2.italic,
128
+ underline: props2.underline,
129
+ strikethrough: props2.strikethrough,
130
+ code: props2.code,
131
+ ruby: props2.ruby,
132
+ href: props2.href,
133
+ favicon: props2.favicon
134
+ });
135
+ }
136
+ },
137
+ Icon: ({ props: props2 }) => h(AsyncElmInlineIcon, { src: props2.src, alt: props2.alt }),
138
+ Heading: ({ props: props2, slots }) => h(
139
+ AsyncElmHeading,
140
+ {
141
+ level: props2.level
142
+ },
143
+ { default: () => render2(slots.default) }
144
+ ),
145
+ Paragraph: ({ slots }) => h(AsyncElmParagraph, {}, { default: () => render2(slots.default) }),
146
+ ListItem: ({ slots }) => h("li", {}, { default: () => render2(slots.default) }),
147
+ List: ({ props: props2, slots }) => h(
148
+ AsyncElmList,
149
+ {
150
+ listStyle: (props2 == null ? void 0 : props2.listStyle) === "unordered" ? "unordered" : "ordered"
151
+ },
152
+ { default: () => render2(slots.default) }
153
+ ),
154
+ BlockQuote: ({ props: props2, slots }) => h(
155
+ AsyncElmBlockQuote,
156
+ { cite: props2 == null ? void 0 : props2.cite },
157
+ { default: () => render2(slots.default) }
158
+ ),
159
+ Callout: ({ props: props2, slots }) => h(
160
+ AsyncElmCallout,
161
+ { type: props2 == null ? void 0 : props2.type },
162
+ { default: () => render2(slots.default) }
163
+ ),
164
+ Divider: ({}) => h(AsyncElmDivider, {}),
165
+ Toggle: ({ slots }) => h(
166
+ AsyncElmToggle,
167
+ {},
168
+ {
169
+ default: () => render2(slots.default),
170
+ summary: () => render2(slots.summary)
171
+ }
172
+ ),
173
+ Bookmark: ({ props: props2 }) => h(AsyncElmBookmark, {
174
+ url: props2.url,
175
+ title: props2.title,
176
+ description: props2.description,
177
+ image: props2.image
178
+ }),
179
+ File: ({ props: props2 }) => h(AsyncElmFile, { src: props2.src, name: props2.name }),
180
+ Image: ({ props: props2 }) => h(AsyncElmBlockImage, {
181
+ src: props2.src,
182
+ alt: props2.alt
183
+ }),
184
+ CodeBlock: ({ props: props2, slots }) => slots != null ? h(
185
+ AsyncElmCodeBlock,
186
+ { code: props2.code, language: props2.language },
187
+ { default: () => render2(slots.default) }
188
+ ) : h(AsyncElmCodeBlock, { code: props2.code, language: props2.language }),
189
+ Katex: ({ props: props2 }) => h(AsyncElmKatex, { expression: props2.expression, block: true }),
190
+ Table: ({ props: props2, slots }) => {
191
+ let header = void 0;
192
+ if (slots.header != null) {
193
+ const headerSlot = slots.header;
194
+ header = h(
195
+ AsyncElmTableHeader,
196
+ {},
197
+ { default: () => render2(headerSlot) }
198
+ );
199
+ }
200
+ return h(
201
+ AsyncElmTable,
202
+ { caption: props2 == null ? void 0 : props2.caption, hasRowHeader: props2 == null ? void 0 : props2.hasRowHeader },
203
+ {
204
+ body: () => h(AsyncElmTableBody, {}, { default: () => render2(slots.body) }),
205
+ header: header ? () => header : void 0
206
+ }
207
+ );
208
+ },
209
+ TableRow: ({ slots }) => h(AsyncElmTableRow, {}, { default: () => render2(slots.default) }),
210
+ TableCell: ({ slots }) => h(AsyncElmTableCell, {}, { default: () => render2(slots.default) }),
211
+ ColumnList: ({ slots }) => h(
212
+ "div",
213
+ { class: style["column-list"] },
214
+ { default: () => render2(slots.default) }
215
+ ),
216
+ Column: ({ slots }) => h(
217
+ "div",
218
+ { class: style.column },
219
+ { default: () => render2(slots.default) }
220
+ ),
221
+ Unsupported: ({ props: props2 }) => h(AsyncElmUnsupportedBlock, { details: props2 == null ? void 0 : props2.details })
222
+ };
223
+ };
224
+ const render = (jsonComponents) => {
225
+ const results = [];
226
+ for (const component of jsonComponents) {
227
+ const renderFunction = defaultRenderFunctionMap(render)[component.type];
228
+ results.push(renderFunction(component));
229
+ }
230
+ return results;
231
+ };
232
+ const renderResult = render(props.jsonComponents);
233
+ return (_ctx, _cache) => {
234
+ return openBlock(), createBlock(resolveDynamicComponent(() => unref(renderResult)));
235
+ };
236
+ }
237
+ });
238
+ export {
239
+ _sfc_main as default
240
+ };
@@ -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("._column-list_1at6s_1{box-sizing:content-box;padding-block:.25rem;width:100%;display:flex;flex-direction:row;gap:.5rem;justify-content:space-around;overflow:auto}._column_1at6s_1{flex:1}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const column = "_column_1at6s_1";
14
+ const style0 = {
15
+ "column-list": "_column-list_1at6s_1",
16
+ column
17
+ };
18
+ export {
19
+ column,
20
+ style0 as default
21
+ };
@@ -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;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmTable } from './ElmTable.vue';
3
+ declare const meta: Meta<typeof ElmTable>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,46 @@
1
+ import { default as ElmTableHeader } from './ElmTableHeader.vue';
2
+ import { default as ElmTableBody } from './ElmTableBody.vue';
3
+ import { Property } from 'csstype';
4
+ export interface ElmTableProps {
5
+ /**
6
+ * The margin of the table.
7
+ */
8
+ margin?: Property.MarginBlock;
9
+ caption?: string;
10
+ hasRowHeader?: boolean;
11
+ }
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: Readonly<{
15
+ /**
16
+ * (Optional) The header slot of the table.
17
+ */
18
+ header?: InstanceType<typeof ElmTableHeader>;
19
+ /**
20
+ * The body slot of the table.
21
+ */
22
+ body: InstanceType<typeof ElmTableBody>;
23
+ }> & {
24
+ /**
25
+ * (Optional) The header slot of the table.
26
+ */
27
+ header?: InstanceType<typeof ElmTableHeader>;
28
+ /**
29
+ * The body slot of the table.
30
+ */
31
+ body: InstanceType<typeof ElmTableBody>;
32
+ };
33
+ refs: {};
34
+ rootEl: HTMLTableElement;
35
+ };
36
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {
38
+ hasRowHeader: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableElement>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
+ export default _default;
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmTable.vue2.mjs";
2
+ import style0 from "./ElmTable.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmTable as default
10
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent, computed, provide, useSlots, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, createElementVNode, createVNode, unref } from "vue";
2
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
3
+ import { mdiTable } from "@mdi/js";
4
+ const _hoisted_1 = { key: 0 };
5
+ const _hoisted_2 = {
6
+ viewBox: "0 0 24 24",
7
+ width: "1rem",
8
+ height: "1rem"
9
+ };
10
+ const _hoisted_3 = ["d"];
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "ElmTable",
13
+ props: {
14
+ margin: {},
15
+ caption: {},
16
+ hasRowHeader: { type: Boolean, default: false }
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const hasRowHeader = computed(() => props.hasRowHeader);
21
+ provide("hasRowHeader", hasRowHeader);
22
+ const slots = useSlots();
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("table", {
25
+ class: normalizeClass(_ctx.$style.table),
26
+ style: normalizeStyle({
27
+ "--margin-block": _ctx.margin
28
+ })
29
+ }, [
30
+ _ctx.caption != null ? (openBlock(), createElementBlock("caption", _hoisted_1, [
31
+ createElementVNode("span", {
32
+ class: normalizeClass(_ctx.$style["caption"])
33
+ }, [
34
+ createElementVNode("span", {
35
+ class: normalizeClass(_ctx.$style.spacing)
36
+ }, null, 2),
37
+ createElementVNode("span", {
38
+ class: normalizeClass(_ctx.$style["caption-inner"])
39
+ }, [
40
+ (openBlock(), createElementBlock("svg", _hoisted_2, [
41
+ createElementVNode("path", {
42
+ d: unref(mdiTable),
43
+ fill: "#6987b8"
44
+ }, null, 8, _hoisted_3)
45
+ ])),
46
+ createVNode(ElmInlineText, { text: _ctx.caption }, null, 8, ["text"])
47
+ ], 2),
48
+ createElementVNode("span", {
49
+ class: normalizeClass(_ctx.$style.spacing)
50
+ }, null, 2)
51
+ ], 2)
52
+ ])) : createCommentVNode("", true),
53
+ slots.header != null ? renderSlot(_ctx.$slots, "header", { key: 1 }) : createCommentVNode("", true),
54
+ renderSlot(_ctx.$slots, "body")
55
+ ], 6);
56
+ };
57
+ }
58
+ });
59
+ export {
60
+ _sfc_main as default
61
+ };