@elmethis/core 1.0.0-alpha.16 → 1.0.0-alpha.160

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 (376) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  2. package/dist/components/badge/ElmBadge.css +11 -0
  3. package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  4. package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
  5. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  6. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  7. package/dist/components/badge/ElmBadge.vue3.mjs +14 -0
  8. package/dist/components/badge/ElmTag.css +29 -0
  9. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  10. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  11. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  12. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  13. package/dist/components/badge/ElmTag.vue3.mjs +14 -0
  14. package/dist/components/code/ElmCodeBlock.css +58 -0
  15. package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
  16. package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
  17. package/dist/components/code/ElmCodeBlock.vue2.mjs +86 -0
  18. package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
  19. package/dist/components/code/ElmKatex.css +28 -0
  20. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  21. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  22. package/dist/components/code/ElmKatex.vue2.mjs +62 -0
  23. package/dist/components/code/ElmKatex.vue3.mjs +8 -0
  24. package/dist/components/code/ElmShikiHighlighter.css +4 -0
  25. package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
  26. package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
  27. package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
  28. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +47 -0
  29. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
  30. package/dist/components/code/ElmShikiHighlighter2.css +23 -0
  31. package/dist/components/code/shikiInstance.d.ts +2 -0
  32. package/dist/components/code/shikiInstance.mjs +76 -0
  33. package/dist/components/containments/ElmColumn.css +3 -0
  34. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  35. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  36. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  37. package/dist/components/containments/ElmColumn.vue3.mjs +8 -0
  38. package/dist/components/containments/ElmColumnList.css +5 -0
  39. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  40. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  41. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  42. package/dist/components/containments/ElmColumnList.vue3.mjs +6 -0
  43. package/dist/components/containments/ElmDesktopWindow.css +27 -0
  44. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +3 -2
  45. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  46. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  47. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +14 -0
  48. package/dist/components/containments/ElmModal.css +12 -0
  49. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  50. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  51. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  52. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  53. package/dist/components/containments/ElmModal.vue3.mjs +11 -0
  54. package/dist/components/containments/ElmModal2.css +33 -0
  55. package/dist/components/containments/ElmParallax.css +14 -0
  56. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  57. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  58. package/dist/components/containments/ElmParallax.vue3.mjs +8 -0
  59. package/dist/components/containments/ElmSnackbar.css +56 -0
  60. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  61. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  62. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  63. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  64. package/dist/components/containments/ElmSnackbar.vue3.mjs +14 -0
  65. package/dist/components/containments/ElmSnackbarContainer.css +9 -0
  66. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  67. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
  68. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  69. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
  70. package/dist/components/containments/ElmSnackbarContainer2.css +20 -0
  71. package/dist/components/containments/ElmToggle.css +13 -0
  72. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  73. package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
  74. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  75. package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
  76. package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
  77. package/dist/components/containments/ElmToggle2.css +43 -0
  78. package/dist/components/containments/ElmTooltip.css +14 -0
  79. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  80. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  81. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  82. package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
  83. package/dist/components/containments/ElmTooltip2.css +15 -0
  84. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  85. package/dist/components/data/ElmMultiProgress.css +23 -0
  86. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  87. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  88. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  89. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  90. package/dist/components/data/ElmMultiProgress.vue3.mjs +11 -0
  91. package/dist/components/data/ElmProgress.css +84 -0
  92. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  93. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  94. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  95. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  96. package/dist/components/data/ElmProgress.vue3.mjs +20 -0
  97. package/dist/components/data/ElmStatusMessage.css +12 -0
  98. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  99. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  100. package/dist/components/data/ElmStatusMessage.vue.mjs +10 -0
  101. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  102. package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
  103. package/dist/components/data/ElmStatusMessage2.css +9 -0
  104. package/dist/components/fallback/ElmBlockFallback.css +7 -0
  105. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  106. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  107. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  108. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  109. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +6 -0
  110. package/dist/components/fallback/ElmRectangleWave.css +33 -0
  111. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  112. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  113. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  114. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +9 -0
  115. package/dist/components/fallback/ElmSpinner.css +25 -0
  116. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  117. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  118. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  119. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  120. package/dist/components/fallback/ElmSpinner.vue3.mjs +12 -0
  121. package/dist/components/form/ElmButton.css +12 -0
  122. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  123. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  124. package/dist/components/form/ElmButton.vue.mjs +10 -0
  125. package/dist/components/form/ElmButton.vue2.mjs +57 -0
  126. package/dist/components/form/ElmButton.vue3.mjs +20 -0
  127. package/dist/components/form/ElmButton2.css +65 -0
  128. package/dist/components/form/ElmCheckbox.css +67 -0
  129. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  130. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  131. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  132. package/dist/components/form/ElmCheckbox.vue3.mjs +22 -0
  133. package/dist/components/form/ElmSwitch.css +42 -0
  134. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  135. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  136. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  137. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  138. package/dist/components/form/ElmSwitch.vue3.mjs +16 -0
  139. package/dist/components/form/ElmTextField.css +163 -0
  140. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  141. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  142. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  143. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  144. package/dist/components/form/ElmTextField.vue3.mjs +34 -0
  145. package/dist/components/form/ElmTotp.css +60 -0
  146. package/dist/components/form/ElmTotp.stories.d.ts +6 -0
  147. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  148. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  149. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  150. package/dist/components/form/ElmTotp.vue3.mjs +22 -0
  151. package/dist/components/headings/ElmFragmentIdentifier.css +20 -0
  152. package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
  153. package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
  154. package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
  155. package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +54 -0
  156. package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
  157. package/dist/components/headings/ElmHeading1.css +56 -0
  158. package/dist/components/headings/ElmHeading1.vue.d.ts +9 -1
  159. package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
  160. package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
  161. package/dist/components/headings/ElmHeading1.vue3.mjs +8 -0
  162. package/dist/components/headings/ElmHeading2.css +72 -0
  163. package/dist/components/headings/ElmHeading2.vue.d.ts +9 -1
  164. package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
  165. package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
  166. package/dist/components/headings/ElmHeading2.vue3.mjs +11 -0
  167. package/dist/components/headings/ElmHeading3.css +42 -0
  168. package/dist/components/headings/ElmHeading3.vue.d.ts +9 -1
  169. package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
  170. package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
  171. package/dist/components/headings/ElmHeading3.vue3.mjs +8 -0
  172. package/dist/components/headings/ElmHeading4.css +25 -0
  173. package/dist/components/headings/ElmHeading4.vue.d.ts +6 -0
  174. package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
  175. package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
  176. package/dist/components/headings/ElmHeading4.vue3.mjs +8 -0
  177. package/dist/components/headings/ElmHeading5.css +25 -0
  178. package/dist/components/headings/ElmHeading5.vue.d.ts +6 -0
  179. package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
  180. package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
  181. package/dist/components/headings/ElmHeading5.vue3.mjs +8 -0
  182. package/dist/components/headings/ElmHeading6.css +25 -0
  183. package/dist/components/headings/ElmHeading6.vue.d.ts +6 -0
  184. package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
  185. package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
  186. package/dist/components/headings/ElmHeading6.vue3.mjs +8 -0
  187. package/dist/components/icon/ElmArrowIcon.css +44 -0
  188. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  189. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  190. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  191. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  192. package/dist/components/icon/ElmArrowIcon.vue3.mjs +17 -0
  193. package/dist/components/icon/ElmBookmarkIcon.css +40 -0
  194. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  195. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  196. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  197. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  198. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +15 -0
  199. package/dist/components/icon/ElmCubeIcon.css +38 -0
  200. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  201. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  202. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  203. package/dist/components/icon/ElmCubeIcon.vue3.mjs +12 -0
  204. package/dist/components/icon/ElmDotLoadingIcon.css +41 -0
  205. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  206. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  207. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  208. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +14 -0
  209. package/dist/components/icon/ElmLanguageIcon.css +12 -0
  210. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  211. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  212. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  213. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
  214. package/dist/components/icon/ElmLanguageIcon2.css +9 -0
  215. package/dist/components/icon/ElmLoginIcon.css +16 -0
  216. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  217. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  218. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  219. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  220. package/dist/components/icon/ElmLoginIcon.vue3.mjs +8 -0
  221. package/dist/components/icon/ElmToggleTheme.css +18 -0
  222. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  223. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  224. package/dist/components/icon/ElmToggleTheme.vue3.mjs +8 -0
  225. package/dist/components/icon/languages/Bash.css +6 -0
  226. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  227. package/dist/{Bash-KV1blS97.js → components/icon/languages/Bash.vue.mjs} +20 -15
  228. package/dist/components/icon/languages/Bash.vue2.mjs +8 -0
  229. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  230. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  231. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  232. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  233. package/dist/components/inline/ElmInlineIcon.stories.d.ts +6 -0
  234. package/dist/components/inline/ElmInlineIcon.vue.d.ts +6 -0
  235. package/dist/components/inline/ElmInlineLink.css +36 -0
  236. package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
  237. package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
  238. package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
  239. package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -0
  240. package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
  241. package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
  242. package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
  243. package/dist/components/inline/ElmInlineText.css +41 -0
  244. package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
  245. package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
  246. package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
  247. package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
  248. package/dist/components/inline/ElmInlineText.vue3.mjs +11 -0
  249. package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
  250. package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
  251. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  252. package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
  253. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  254. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  255. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  256. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  257. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  258. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  259. package/dist/components/media/ElmFile.css +52 -0
  260. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  261. package/dist/components/media/ElmFile.vue.mjs +10 -0
  262. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  263. package/dist/components/media/ElmFile.vue3.mjs +14 -0
  264. package/dist/components/media/ElmImage.css +12 -0
  265. package/dist/components/media/ElmImage.stories.d.ts +1 -0
  266. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  267. package/dist/components/media/ElmImage.vue.mjs +10 -0
  268. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  269. package/dist/components/media/ElmImage.vue3.mjs +18 -0
  270. package/dist/components/media/ElmImage2.css +51 -0
  271. package/dist/components/navigation/ElmBookmark.css +104 -0
  272. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  273. package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
  274. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  275. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  276. package/dist/components/navigation/ElmBookmark.vue3.mjs +32 -0
  277. package/dist/components/navigation/ElmBreadcrumb.css +46 -0
  278. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  279. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  280. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  281. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +18 -0
  282. package/dist/components/navigation/ElmPagetop.css +105 -0
  283. package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
  284. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  285. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  286. package/dist/components/navigation/ElmPagetop.vue3.mjs +18 -0
  287. package/dist/components/navigation/ElmTableOfContents.css +33 -0
  288. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  289. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  290. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  291. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +14 -0
  292. package/dist/components/others/ElmColorSample.css +12 -0
  293. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  294. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  295. package/dist/components/others/ElmColorSample.vue.mjs +10 -0
  296. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  297. package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
  298. package/dist/components/others/ElmColorSample2.css +34 -0
  299. package/dist/components/others/ElmColorTable.css +26 -0
  300. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  301. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  302. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  303. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  304. package/dist/components/others/ElmColorTable.vue3.mjs +10 -0
  305. package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
  306. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  307. package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
  308. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +39 -8
  309. package/dist/components/table/ElmTable.css +6 -0
  310. package/dist/components/table/ElmTable.vue.d.ts +8 -2
  311. package/dist/components/table/ElmTable.vue.mjs +6 -0
  312. package/dist/components/table/ElmTable.vue2.mjs +22 -0
  313. package/dist/components/table/ElmTableBody.css +48 -0
  314. package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
  315. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  316. package/dist/components/table/ElmTableBody.vue3.mjs +5 -0
  317. package/dist/components/table/ElmTableCell.css +16 -0
  318. package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
  319. package/dist/components/table/ElmTableCell.vue.mjs +6 -0
  320. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  321. package/dist/components/table/ElmTableHeader.css +40 -0
  322. package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
  323. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  324. package/dist/components/table/ElmTableHeader.vue3.mjs +5 -0
  325. package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
  326. package/dist/components/table/ElmTableRow.vue.mjs +14 -0
  327. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  328. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  329. package/dist/components/typography/ElmBlockQuote.css +12 -0
  330. package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
  331. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  332. package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
  333. package/dist/components/typography/ElmBlockQuote.vue3.mjs +8 -0
  334. package/dist/components/typography/ElmBulletedList.css +21 -0
  335. package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
  336. package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
  337. package/dist/components/typography/ElmBulletedList.vue3.mjs +5 -0
  338. package/dist/components/typography/ElmCallout.css +33 -0
  339. package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
  340. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  341. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  342. package/dist/components/typography/ElmCallout.vue3.mjs +14 -0
  343. package/dist/components/typography/ElmDivider.css +40 -0
  344. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  345. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  346. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  347. package/dist/components/typography/ElmDivider.vue3.mjs +8 -0
  348. package/dist/components/typography/ElmListItem.css +3 -0
  349. package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
  350. package/dist/components/typography/ElmListItem.vue.mjs +10 -0
  351. package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
  352. package/dist/components/typography/ElmListItem.vue3.mjs +8 -0
  353. package/dist/components/typography/ElmNumberedList.css +26 -0
  354. package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
  355. package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
  356. package/dist/components/typography/ElmNumberedList.vue3.mjs +5 -0
  357. package/dist/components/typography/ElmParagraph.css +25 -0
  358. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  359. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  360. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  361. package/dist/components/typography/ElmParagraph.vue3.mjs +8 -0
  362. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  363. package/dist/hooks/useElmethisTheme.mjs +43 -0
  364. package/dist/hooks/useTyping.d.ts +17 -0
  365. package/dist/index.d.ts +122 -45
  366. package/dist/index.mjs +128 -0
  367. package/dist/node_modules/.pnpm/katex@0.16.21/node_modules/katex/dist/katex.min.css +1 -0
  368. package/package.json +38 -30
  369. package/dist/JavaScript-u46IG0c4.js +0 -22
  370. package/dist/Rust-Dg96oGSm.js +0 -16
  371. package/dist/TypeScript-SVZmAXrW.js +0 -22
  372. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  373. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
  374. package/dist/elmethis.js +0 -47
  375. package/dist/elmethis.umd.cjs +0 -419
  376. package/dist/index-KH8UFSIm.js +0 -16258
@@ -1,16 +1,19 @@
1
1
  export interface ElmBulletedListProps {
2
2
  }
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {
8
9
  target: HTMLUListElement;
9
10
  };
10
- attrs: Partial<{}>;
11
+ rootEl: HTMLUListElement;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<ElmBulletedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBulletedListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_component: import('vue').DefineComponent<ElmBulletedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBulletedListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ target: HTMLUListElement;
16
+ }, HTMLUListElement>;
14
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
18
  export default _default;
16
19
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,27 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
2
+ import { useIntersectionObserver } from "@vueuse/core";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmBulletedList",
5
+ setup(__props) {
6
+ const target = ref(null);
7
+ const targetIsVisible = ref(false);
8
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
9
+ targetIsVisible.value = isIntersecting;
10
+ });
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("ul", {
13
+ ref_key: "target",
14
+ ref: target,
15
+ class: "elmethis-bulleted-list",
16
+ style: normalizeStyle({
17
+ "--opacity": targetIsVisible.value ? 1 : 0
18
+ })
19
+ }, [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ], 4);
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ _sfc_main as default
27
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./ElmBulletedList.vue.mjs";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,33 @@
1
+ ._callout_s5qh4_1 {
2
+ z-index: 1;
3
+ margin-block: 2rem;
4
+ position: relative;
5
+ box-sizing: border-box;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 0.5rem;
9
+ padding: 0.75rem 1rem;
10
+ border-left: solid 4px var(--border-color);
11
+ }
12
+ ._callout_s5qh4_1::after {
13
+ position: absolute;
14
+ content: "";
15
+ left: 0;
16
+ top: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ background-color: var(--bg-color);
20
+ transition: transform 800ms;
21
+ transform: scaleX(var(--scale));
22
+ transform-origin: left;
23
+ }
24
+ ._header_s5qh4_25 {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 0.5rem;
28
+ }
29
+ ._icon_s5qh4_31 {
30
+ width: 20px;
31
+ height: 20px;
32
+ color: var(--icon-color);
33
+ }
@@ -6,18 +6,21 @@ export interface ElmCalloutProps {
6
6
  type?: AlertType;
7
7
  }
8
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
9
10
  slots: {
10
11
  default?(_: {}): any;
11
12
  };
12
13
  refs: {
13
14
  target: HTMLElement;
14
15
  };
15
- attrs: Partial<{}>;
16
+ rootEl: HTMLElement;
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
19
  declare const __VLS_component: import('vue').DefineComponent<ElmCalloutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCalloutProps> & Readonly<{}>, {
19
20
  type: AlertType;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
+ target: HTMLElement;
23
+ }, HTMLElement>;
21
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
25
  export default _default;
23
26
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmCallout.vue2.mjs";
2
+ import style0 from "./ElmCallout.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmCallout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmCallout as default
10
+ };
@@ -0,0 +1,57 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createVNode, renderSlot } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
4
+ import { rgba } from "polished";
5
+ import { useIntersectionObserver } from "@vueuse/core";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "ElmCallout",
8
+ props: {
9
+ type: { default: "note" }
10
+ },
11
+ setup(__props) {
12
+ const colors = {
13
+ note: { code: "#6987b8", icon: "mdi:information-slab-box-outline" },
14
+ tip: { code: "#59b57c", icon: "heroicons:light-bulb" },
15
+ important: { code: "#9771bd", icon: "heroicons:shield-exclamation" },
16
+ warning: { code: "#b8a36e", icon: "heroicons:exclamation-triangle" },
17
+ caution: { code: "#b36472", icon: "heroicons:x-circle" }
18
+ };
19
+ const target = ref(null);
20
+ const targetIsVisible = ref(false);
21
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
22
+ targetIsVisible.value = isIntersecting;
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("aside", {
26
+ ref_key: "target",
27
+ ref: target,
28
+ class: normalizeClass(_ctx.$style.callout),
29
+ style: normalizeStyle({
30
+ "--border-color": colors[_ctx.type].code,
31
+ "--bg-color": unref(rgba)(colors[_ctx.type].code, 0.1),
32
+ "--scale": targetIsVisible.value ? 1 : 0
33
+ })
34
+ }, [
35
+ createElementVNode("div", {
36
+ class: normalizeClass(_ctx.$style.header)
37
+ }, [
38
+ createVNode(unref(Icon), {
39
+ icon: colors[_ctx.type].icon,
40
+ class: normalizeClass(_ctx.$style.icon),
41
+ style: normalizeStyle({ "--icon-color": colors[_ctx.type].code })
42
+ }, null, 8, ["icon", "class", "style"]),
43
+ createVNode(ElmInlineText, {
44
+ text: _ctx.type.toUpperCase(),
45
+ color: colors[_ctx.type].code
46
+ }, null, 8, ["text", "color"])
47
+ ], 2),
48
+ createElementVNode("div", null, [
49
+ renderSlot(_ctx.$slots, "default")
50
+ ])
51
+ ], 6);
52
+ };
53
+ }
54
+ });
55
+ export {
56
+ _sfc_main as default
57
+ };
@@ -0,0 +1,14 @@
1
+ const callout = "_callout_s5qh4_1";
2
+ const header = "_header_s5qh4_25";
3
+ const icon = "_icon_s5qh4_31";
4
+ const style0 = {
5
+ callout,
6
+ header,
7
+ icon
8
+ };
9
+ export {
10
+ callout,
11
+ style0 as default,
12
+ header,
13
+ icon
14
+ };
@@ -0,0 +1,40 @@
1
+ ._divider_z5wle_1 {
2
+ margin-block: var(--margin-block);
3
+ position: relative;
4
+ display: block;
5
+ width: 100%;
6
+ overflow: visible;
7
+ border: none;
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.3);
9
+ transform: scaleX(var(--scale));
10
+ transition: transform 1200ms;
11
+ }
12
+ [data-theme=dark] ._divider_z5wle_1 {
13
+ border-bottom-color: rgba(255, 255, 255, 0.3);
14
+ }
15
+ ._divider_z5wle_1::before {
16
+ position: absolute;
17
+ content: "";
18
+ height: 5px;
19
+ width: 5px;
20
+ top: -2px;
21
+ border-radius: 50%;
22
+ background-color: rgba(0, 0, 0, 0.6);
23
+ left: 0;
24
+ }
25
+ [data-theme=dark] ._divider_z5wle_1::before {
26
+ background-color: rgba(255, 255, 255, 0.6);
27
+ }
28
+ ._divider_z5wle_1::after {
29
+ position: absolute;
30
+ content: "";
31
+ height: 5px;
32
+ width: 5px;
33
+ top: -2px;
34
+ border-radius: 50%;
35
+ background-color: rgba(0, 0, 0, 0.6);
36
+ right: 0;
37
+ }
38
+ [data-theme=dark] ._divider_z5wle_1::after {
39
+ background-color: rgba(255, 255, 255, 0.6);
40
+ }
@@ -1,4 +1,11 @@
1
+ import { Property } from 'csstype';
1
2
  export interface ElmDividerProps {
3
+ /**
4
+ * The margin of the divider.
5
+ */
6
+ margin?: Property.MarginBlock;
2
7
  }
3
- declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
9
+ target: HTMLHRElement;
10
+ }, HTMLHRElement>;
4
11
  export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmDivider.vue2.mjs";
2
+ import style0 from "./ElmDivider.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmDivider as default
10
+ };
@@ -0,0 +1,29 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass } from "vue";
2
+ import { useIntersectionObserver } from "@vueuse/core";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmDivider",
5
+ props: {
6
+ margin: {}
7
+ },
8
+ setup(__props) {
9
+ const target = ref(null);
10
+ const targetIsVisible = ref(false);
11
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
12
+ targetIsVisible.value = isIntersecting;
13
+ });
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("hr", {
16
+ ref_key: "target",
17
+ ref: target,
18
+ class: normalizeClass(_ctx.$style.divider),
19
+ style: normalizeStyle({
20
+ "--scale": targetIsVisible.value ? 1 : 0,
21
+ "--margin-block": _ctx.margin
22
+ })
23
+ }, null, 6);
24
+ };
25
+ }
26
+ });
27
+ export {
28
+ _sfc_main as default
29
+ };
@@ -0,0 +1,8 @@
1
+ const divider = "_divider_z5wle_1";
2
+ const style0 = {
3
+ divider
4
+ };
5
+ export {
6
+ style0 as default,
7
+ divider
8
+ };
@@ -0,0 +1,3 @@
1
+ ._li_s1eaw_1 {
2
+ margin-block: 1.5rem;
3
+ }
@@ -1,14 +1,15 @@
1
1
  export interface ElmListItemProps {
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: HTMLLIElement;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<ElmListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_component: import('vue').DefineComponent<ElmListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
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 & {
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmListItem.vue2.mjs";
2
+ import style0 from "./ElmListItem.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmListItem as default
10
+ };
@@ -0,0 +1,16 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "ElmListItem",
4
+ setup(__props) {
5
+ return (_ctx, _cache) => {
6
+ return openBlock(), createElementBlock("li", {
7
+ class: normalizeClass(_ctx.$style.li)
8
+ }, [
9
+ renderSlot(_ctx.$slots, "default")
10
+ ], 2);
11
+ };
12
+ }
13
+ });
14
+ export {
15
+ _sfc_main as default
16
+ };
@@ -0,0 +1,8 @@
1
+ const li = "_li_s1eaw_1";
2
+ const style0 = {
3
+ li
4
+ };
5
+ export {
6
+ style0 as default,
7
+ li
8
+ };
@@ -0,0 +1,26 @@
1
+ .elmethis-numbered-list {
2
+ margin-block: 2rem;
3
+ opacity: var(--opacity);
4
+ transition: opacity 800ms;
5
+ box-sizing: border-box;
6
+ padding-left: 1.25rem;
7
+ }
8
+ .elmethis-numbered-list li {
9
+ box-sizing: border-box;
10
+ padding-left: 0.25rem;
11
+ margin-block: 0.75rem;
12
+ margin-left: 0.25rem;
13
+ list-style-type: decimal;
14
+ }
15
+ .elmethis-numbered-list li::marker {
16
+ color: #9771bd;
17
+ }
18
+ .elmethis-numbered-list li ol li {
19
+ list-style-type: lower-alpha;
20
+ }
21
+ .elmethis-numbered-list li ol li ol li {
22
+ list-style-type: lower-roman;
23
+ }
24
+ .elmethis-numbered-list li ol li ol li ol li {
25
+ list-style-type: lower-greek;
26
+ }
@@ -1,16 +1,19 @@
1
1
  export interface ElmNumberedListProps {
2
2
  }
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {
8
9
  target: HTMLOListElement;
9
10
  };
10
- attrs: Partial<{}>;
11
+ rootEl: HTMLOListElement;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<ElmNumberedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmNumberedListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_component: import('vue').DefineComponent<ElmNumberedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmNumberedListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ target: HTMLOListElement;
16
+ }, HTMLOListElement>;
14
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
18
  export default _default;
16
19
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,27 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
2
+ import { useIntersectionObserver } from "@vueuse/core";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmNumberedList",
5
+ setup(__props) {
6
+ const target = ref(null);
7
+ const targetIsVisible = ref(false);
8
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
9
+ targetIsVisible.value = isIntersecting;
10
+ });
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("ol", {
13
+ ref_key: "target",
14
+ ref: target,
15
+ class: "elmethis-numbered-list",
16
+ style: normalizeStyle({
17
+ "--opacity": targetIsVisible.value ? 1 : 0
18
+ })
19
+ }, [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ], 4);
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ _sfc_main as default
27
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./ElmNumberedList.vue.mjs";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,25 @@
1
+ ._paragraph_19lcl_1 {
2
+ margin-block: 2rem;
3
+ opacity: var(--opacity);
4
+ transition: opacity 800ms;
5
+ color: rgba(0, 0, 0, 0.7);
6
+ }
7
+ ._paragraph_19lcl_1::-moz-selection {
8
+ color: rgba(255, 255, 255, 0.7);
9
+ background-color: rgba(0, 0, 0, 0.7);
10
+ }
11
+ ._paragraph_19lcl_1::selection {
12
+ color: rgba(255, 255, 255, 0.7);
13
+ background-color: rgba(0, 0, 0, 0.7);
14
+ }
15
+ [data-theme=dark] ._paragraph_19lcl_1 {
16
+ color: rgba(255, 255, 255, 0.7);
17
+ }
18
+ [data-theme=dark] ._paragraph_19lcl_1::-moz-selection {
19
+ color: rgba(0, 0, 0, 0.7);
20
+ background-color: rgba(255, 255, 255, 0.7);
21
+ }
22
+ [data-theme=dark] ._paragraph_19lcl_1::selection {
23
+ color: rgba(0, 0, 0, 0.7);
24
+ background-color: rgba(255, 255, 255, 0.7);
25
+ }
@@ -1,16 +1,19 @@
1
1
  export interface ElmParagraphProps {
2
2
  }
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {
8
9
  target: HTMLParagraphElement;
9
10
  };
10
- attrs: Partial<{}>;
11
+ rootEl: HTMLParagraphElement;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<ElmParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmParagraphProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_component: import('vue').DefineComponent<ElmParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmParagraphProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ target: HTMLParagraphElement;
16
+ }, HTMLParagraphElement>;
14
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
18
  export default _default;
16
19
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmParagraph.vue2.mjs";
2
+ import style0 from "./ElmParagraph.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmParagraph = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmParagraph as default
10
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot } from "vue";
2
+ import { useIntersectionObserver } from "@vueuse/core";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmParagraph",
5
+ setup(__props) {
6
+ const target = ref(null);
7
+ const targetIsVisible = ref(false);
8
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
9
+ targetIsVisible.value = isIntersecting;
10
+ });
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("p", {
13
+ ref_key: "target",
14
+ ref: target,
15
+ class: normalizeClass(_ctx.$style.paragraph),
16
+ style: normalizeStyle({
17
+ "--opacity": targetIsVisible.value ? 1 : 0
18
+ })
19
+ }, [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ], 6);
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ _sfc_main as default
27
+ };
@@ -0,0 +1,8 @@
1
+ const paragraph = "_paragraph_19lcl_1";
2
+ const style0 = {
3
+ paragraph
4
+ };
5
+ export {
6
+ style0 as default,
7
+ paragraph
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useElmethisTheme(): {
2
+ isDarkTheme: import('vue').Ref<boolean, boolean>;
3
+ toggleTheme: () => void;
4
+ };
@@ -0,0 +1,43 @@
1
+ import { ref, watch, onMounted } from "vue";
2
+ const LOCAL_STORAGE_KEY = "elmethis-theme";
3
+ function useElmethisTheme() {
4
+ const isDarkTheme = ref(false);
5
+ const toggleTheme = () => {
6
+ isDarkTheme.value = !isDarkTheme.value;
7
+ };
8
+ watch(isDarkTheme, () => {
9
+ if (typeof document !== "undefined") {
10
+ document.documentElement.setAttribute(
11
+ "data-theme",
12
+ isDarkTheme.value ? "dark" : "light"
13
+ );
14
+ const body = document.querySelector("body");
15
+ if (body != null) {
16
+ body.style.colorScheme = isDarkTheme.value ? "dark" : "light";
17
+ }
18
+ if (localStorage != null) {
19
+ localStorage.setItem(
20
+ LOCAL_STORAGE_KEY,
21
+ isDarkTheme.value ? "dark" : "light"
22
+ );
23
+ }
24
+ }
25
+ });
26
+ onMounted(() => {
27
+ if (typeof document !== "undefined") {
28
+ const currentTheme = document.documentElement.getAttribute("data-theme");
29
+ if (currentTheme != null) {
30
+ isDarkTheme.value = currentTheme === "dark";
31
+ } else {
32
+ const localStorageTheme = localStorage.getItem(LOCAL_STORAGE_KEY);
33
+ if (localStorageTheme != null) {
34
+ isDarkTheme.value = localStorageTheme === "dark";
35
+ }
36
+ }
37
+ }
38
+ });
39
+ return { isDarkTheme, toggleTheme };
40
+ }
41
+ export {
42
+ useElmethisTheme
43
+ };
@@ -0,0 +1,17 @@
1
+ interface Target {
2
+ char: string;
3
+ status: 'typed' | 'incorrect' | 'current' | 'default';
4
+ }
5
+ export declare function useTyping(): {
6
+ start: (target: string) => void;
7
+ targetArray: import('vue').Ref<{
8
+ char: string;
9
+ status: "typed" | "incorrect" | "current" | "default";
10
+ }[], Target[] | {
11
+ char: string;
12
+ status: "typed" | "incorrect" | "current" | "default";
13
+ }[]>;
14
+ isFinished: import('vue').Ref<boolean, boolean>;
15
+ mistakes: import('vue').Ref<number, number>;
16
+ };
17
+ export {};