@elmethis/vue 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 (372) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/dist/components/ag-ui/message/ElmAgUiMessageUser.stories.d.ts +6 -0
  4. package/dist/components/ag-ui/message/ElmAgUiMessageUser.vue.d.ts +8 -0
  5. package/dist/components/code/ElmCodeBlock.stories.d.ts +9 -0
  6. package/dist/components/code/ElmCodeBlock.vue.d.ts +48 -0
  7. package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
  8. package/dist/components/code/ElmCodeBlock.vue2.mjs +134 -0
  9. package/dist/components/code/ElmCodeBlock.vue3.mjs +43 -0
  10. package/dist/components/code/ElmKatex.stories.d.ts +8 -0
  11. package/dist/components/code/ElmKatex.vue.d.ts +20 -0
  12. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  13. package/dist/components/code/ElmKatex.vue2.mjs +68 -0
  14. package/dist/components/code/ElmKatex.vue3.mjs +20 -0
  15. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  16. package/dist/components/code/ElmMermaid.vue.d.ts +7 -0
  17. package/dist/components/code/ElmMermaid.vue.mjs +10 -0
  18. package/dist/components/code/ElmMermaid.vue2.mjs +59 -0
  19. package/dist/components/code/ElmMermaid.vue3.mjs +26 -0
  20. package/dist/components/code/ElmShikiHighlighter.stories.d.ts +6 -0
  21. package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
  22. package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
  23. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +55 -0
  24. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
  25. package/dist/components/code/shikiInstance.d.ts +2 -0
  26. package/dist/components/code/shikiInstance.mjs +76 -0
  27. package/dist/components/containments/ElmColumn.stories.d.ts +6 -0
  28. package/dist/components/containments/ElmColumn.vue.d.ts +19 -0
  29. package/dist/components/containments/ElmColumnList.vue.d.ts +19 -0
  30. package/dist/components/containments/ElmConfirmModal.stories.d.ts +6 -0
  31. package/dist/components/containments/ElmConfirmModal.vue.d.ts +37 -0
  32. package/dist/components/containments/ElmConfirmModal.vue.mjs +10 -0
  33. package/dist/components/containments/ElmConfirmModal.vue2.mjs +98 -0
  34. package/dist/components/containments/ElmConfirmModal.vue3.mjs +23 -0
  35. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  36. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  37. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  38. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  39. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +26 -0
  40. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  41. package/dist/components/containments/ElmModal.vue.d.ts +34 -0
  42. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  43. package/dist/components/containments/ElmModal.vue2.mjs +56 -0
  44. package/dist/components/containments/ElmModal.vue3.mjs +23 -0
  45. package/dist/components/containments/ElmParallax.stories.d.ts +6 -0
  46. package/dist/components/containments/ElmParallax.vue.d.ts +6 -0
  47. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  48. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  49. package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
  50. package/dist/components/containments/ElmSimpleTooltip.stories.d.ts +7 -0
  51. package/dist/components/containments/ElmSimpleTooltip.vue.d.ts +21 -0
  52. package/dist/components/containments/ElmSimpleTooltip.vue.mjs +10 -0
  53. package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +37 -0
  54. package/dist/components/containments/ElmSimpleTooltip.vue3.mjs +26 -0
  55. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  56. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  57. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  58. package/dist/components/containments/ElmSnackbar.vue2.mjs +41 -0
  59. package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
  60. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  61. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +23 -0
  62. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  63. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
  64. package/dist/components/containments/ElmToggle.stories.d.ts +7 -0
  65. package/dist/components/containments/ElmToggle.vue.d.ts +41 -0
  66. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  67. package/dist/components/containments/ElmToggle.vue2.mjs +106 -0
  68. package/dist/components/containments/ElmToggle.vue3.mjs +44 -0
  69. package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
  70. package/dist/components/containments/ElmTooltip.vue.d.ts +40 -0
  71. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  72. package/dist/components/containments/ElmTooltip.vue2.mjs +56 -0
  73. package/dist/components/containments/ElmTooltip.vue3.mjs +26 -0
  74. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  75. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  76. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  77. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  78. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  79. package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
  80. package/dist/components/data/ElmProgress.stories.d.ts +10 -0
  81. package/dist/components/data/ElmProgress.vue.d.ts +38 -0
  82. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  83. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  84. package/dist/components/data/ElmProgress.vue3.mjs +32 -0
  85. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  86. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  87. package/dist/components/data/ElmStatusMessage.vue.mjs +23 -0
  88. package/dist/components/data/ElmStatusMessage.vue2.mjs +76 -0
  89. package/dist/components/data/ElmStatusMessage.vue3.mjs +20 -0
  90. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  91. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  92. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  93. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  94. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
  95. package/dist/components/fallback/ElmRectangleWave.stories.d.ts +6 -0
  96. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +4 -0
  97. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  98. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  99. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
  100. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  101. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  102. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  103. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  104. package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
  105. package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +6 -0
  106. package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +5 -0
  107. package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +10 -0
  108. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +46 -0
  109. package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +29 -0
  110. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  111. package/dist/components/form/ElmButton.vue.d.ts +42 -0
  112. package/dist/components/form/ElmButton.vue.mjs +23 -0
  113. package/dist/components/form/ElmButton.vue2.mjs +71 -0
  114. package/dist/components/form/ElmButton.vue3.mjs +39 -0
  115. package/dist/components/form/ElmCheckbox.stories.d.ts +6 -0
  116. package/dist/components/form/ElmCheckbox.vue.d.ts +26 -0
  117. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  118. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  119. package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
  120. package/dist/components/form/ElmSelect.stories.d.ts +6 -0
  121. package/dist/components/form/ElmSelect.vue.d.ts +48 -0
  122. package/dist/components/form/ElmSelect.vue.mjs +10 -0
  123. package/dist/components/form/ElmSelect.vue2.mjs +145 -0
  124. package/dist/components/form/ElmSelect.vue3.mjs +56 -0
  125. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  126. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  127. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  128. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  129. package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
  130. package/dist/components/form/ElmTextField.stories.d.ts +7 -0
  131. package/dist/components/form/ElmTextField.vue.d.ts +33 -0
  132. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  133. package/dist/components/form/ElmTextField.vue2.mjs +150 -0
  134. package/dist/components/form/ElmTextField.vue3.mjs +49 -0
  135. package/dist/components/form/ElmValidation.stories.d.ts +6 -0
  136. package/dist/components/form/ElmValidation.vue.d.ts +9 -0
  137. package/dist/components/form/ElmValidation.vue.mjs +10 -0
  138. package/dist/components/form/ElmValidation.vue2.mjs +34 -0
  139. package/dist/components/form/ElmValidation.vue3.mjs +20 -0
  140. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  141. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  142. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  143. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  144. package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
  145. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  146. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  147. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  148. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +47 -0
  149. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +26 -0
  150. package/dist/components/icon/ElmCubeIcon.stories.d.ts +6 -0
  151. package/dist/components/icon/ElmCubeIcon.vue.d.ts +10 -0
  152. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  153. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  154. package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
  155. package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +6 -0
  156. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +18 -0
  157. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  158. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  159. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
  160. package/dist/components/icon/ElmInlineIcon.stories.d.ts +6 -0
  161. package/dist/components/icon/ElmInlineIcon.vue.d.ts +12 -0
  162. package/dist/components/icon/ElmInlineIcon.vue.mjs +10 -0
  163. package/dist/components/icon/ElmInlineIcon.vue2.mjs +27 -0
  164. package/dist/components/icon/ElmInlineIcon.vue3.mjs +20 -0
  165. package/dist/components/icon/ElmLanguageIcon.stories.d.ts +6 -0
  166. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +15 -0
  167. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  168. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +147 -0
  169. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +20 -0
  170. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  171. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  172. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  173. package/dist/components/icon/ElmLoginIcon.vue2.mjs +36 -0
  174. package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
  175. package/dist/components/icon/ElmMdiIcon.stories.d.ts +6 -0
  176. package/dist/components/icon/ElmMdiIcon.vue.d.ts +11 -0
  177. package/dist/components/icon/ElmMdiIcon.vue.mjs +10 -0
  178. package/dist/components/icon/ElmMdiIcon.vue2.mjs +34 -0
  179. package/dist/components/icon/ElmMdiIcon.vue3.mjs +20 -0
  180. package/dist/components/icon/ElmSquareLoadingIcon.stories.d.ts +6 -0
  181. package/dist/components/icon/ElmSquareLoadingIcon.vue.d.ts +10 -0
  182. package/dist/components/icon/ElmSquareLoadingIcon.vue.mjs +10 -0
  183. package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +37 -0
  184. package/dist/components/icon/ElmSquareLoadingIcon.vue3.mjs +26 -0
  185. package/dist/components/icon/ElmToggleTheme.stories.d.ts +6 -0
  186. package/dist/components/icon/ElmToggleTheme.vue.d.ts +11 -0
  187. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  188. package/dist/components/icon/ElmToggleTheme.vue2.mjs +41 -0
  189. package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
  190. package/dist/components/icon/languages/Bash.vue.d.ts +7 -0
  191. package/dist/components/icon/languages/Bash.vue.mjs +10 -0
  192. package/dist/components/icon/languages/Bash.vue2.mjs +34 -0
  193. package/dist/components/icon/languages/Bash.vue3.mjs +20 -0
  194. package/dist/components/icon/languages/C.vue.d.ts +7 -0
  195. package/dist/components/icon/languages/C.vue.mjs +34 -0
  196. package/dist/components/icon/languages/C.vue2.mjs +4 -0
  197. package/dist/components/icon/languages/Cplusplus.vue.d.ts +7 -0
  198. package/dist/components/icon/languages/Cplusplus.vue.mjs +38 -0
  199. package/dist/components/icon/languages/Cplusplus.vue2.mjs +4 -0
  200. package/dist/components/icon/languages/Csharp.vue.d.ts +7 -0
  201. package/dist/components/icon/languages/Csharp.vue.mjs +34 -0
  202. package/dist/components/icon/languages/Csharp.vue2.mjs +4 -0
  203. package/dist/components/icon/languages/Css.vue.d.ts +7 -0
  204. package/dist/components/icon/languages/Css.vue.mjs +26 -0
  205. package/dist/components/icon/languages/Css.vue2.mjs +4 -0
  206. package/dist/components/icon/languages/Go.vue.d.ts +7 -0
  207. package/dist/components/icon/languages/Go.vue.mjs +32 -0
  208. package/dist/components/icon/languages/Go.vue2.mjs +4 -0
  209. package/dist/components/icon/languages/Html.vue.d.ts +7 -0
  210. package/dist/components/icon/languages/Html.vue.mjs +38 -0
  211. package/dist/components/icon/languages/Html.vue2.mjs +4 -0
  212. package/dist/components/icon/languages/Java.vue.d.ts +7 -0
  213. package/dist/components/icon/languages/Java.vue.mjs +23 -0
  214. package/dist/components/icon/languages/Java.vue2.mjs +4 -0
  215. package/dist/components/icon/languages/Javascript.vue.d.ts +7 -0
  216. package/dist/components/icon/languages/Javascript.vue.mjs +30 -0
  217. package/dist/components/icon/languages/Javascript.vue2.mjs +4 -0
  218. package/dist/components/icon/languages/Json.vue.d.ts +7 -0
  219. package/dist/components/icon/languages/Json.vue.mjs +23 -0
  220. package/dist/components/icon/languages/Json.vue2.mjs +4 -0
  221. package/dist/components/icon/languages/Kotlin.vue.d.ts +7 -0
  222. package/dist/components/icon/languages/Kotlin.vue.mjs +23 -0
  223. package/dist/components/icon/languages/Kotlin.vue2.mjs +4 -0
  224. package/dist/components/icon/languages/Lua.vue.d.ts +7 -0
  225. package/dist/components/icon/languages/Lua.vue.mjs +34 -0
  226. package/dist/components/icon/languages/Lua.vue2.mjs +4 -0
  227. package/dist/components/icon/languages/Npm.vue.d.ts +7 -0
  228. package/dist/components/icon/languages/Npm.vue.mjs +30 -0
  229. package/dist/components/icon/languages/Npm.vue2.mjs +4 -0
  230. package/dist/components/icon/languages/Python.vue.d.ts +7 -0
  231. package/dist/components/icon/languages/Python.vue.mjs +23 -0
  232. package/dist/components/icon/languages/Python.vue2.mjs +4 -0
  233. package/dist/components/icon/languages/Rust.vue.d.ts +7 -0
  234. package/dist/components/icon/languages/Rust.vue.mjs +24 -0
  235. package/dist/components/icon/languages/Rust.vue2.mjs +4 -0
  236. package/dist/components/icon/languages/Sql.vue.d.ts +7 -0
  237. package/dist/components/icon/languages/Sql.vue.mjs +26 -0
  238. package/dist/components/icon/languages/Sql.vue2.mjs +4 -0
  239. package/dist/components/icon/languages/Terraform.vue.d.ts +7 -0
  240. package/dist/components/icon/languages/Terraform.vue.mjs +36 -0
  241. package/dist/components/icon/languages/Terraform.vue2.mjs +4 -0
  242. package/dist/components/icon/languages/Typescript.vue.d.ts +7 -0
  243. package/dist/components/icon/languages/Typescript.vue.mjs +30 -0
  244. package/dist/components/icon/languages/Typescript.vue2.mjs +4 -0
  245. package/dist/components/media/ElmFile.stories.d.ts +6 -0
  246. package/dist/components/media/ElmFile.vue.d.ts +21 -0
  247. package/dist/components/media/ElmFile.vue.mjs +10 -0
  248. package/dist/components/media/ElmFile.vue2.mjs +79 -0
  249. package/dist/components/media/ElmFile.vue3.mjs +23 -0
  250. package/dist/components/media/ElmImage.stories.d.ts +9 -0
  251. package/dist/components/media/ElmImage.vue.d.ts +27 -0
  252. package/dist/components/media/ElmImage.vue.mjs +10 -0
  253. package/dist/components/media/ElmImage.vue2.mjs +142 -0
  254. package/dist/components/media/ElmImage.vue3.mjs +35 -0
  255. package/dist/components/navigation/ElmBookmark.stories.d.ts +12 -0
  256. package/dist/components/navigation/ElmBookmark.vue.d.ts +53 -0
  257. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  258. package/dist/components/navigation/ElmBookmark.vue2.mjs +116 -0
  259. package/dist/components/navigation/ElmBookmark.vue3.mjs +41 -0
  260. package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +7 -0
  261. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +19 -0
  262. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  263. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +65 -0
  264. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +24 -0
  265. package/dist/components/navigation/ElmPagetop.stories.d.ts +6 -0
  266. package/dist/components/navigation/ElmPagetop.vue.d.ts +10 -0
  267. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  268. package/dist/components/navigation/ElmPagetop.vue2.mjs +52 -0
  269. package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
  270. package/dist/components/navigation/ElmTableOfContents.stories.d.ts +7 -0
  271. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +9 -0
  272. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  273. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +45 -0
  274. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +23 -0
  275. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  276. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  277. package/dist/components/others/ElmColorSample.vue.mjs +23 -0
  278. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  279. package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
  280. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  281. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  282. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  283. package/dist/components/others/ElmColorTable.vue2.mjs +49 -0
  284. package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
  285. package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
  286. package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
  287. package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
  288. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +189 -0
  289. package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
  290. package/dist/components/others/ElmMarkdown.stories.d.ts +6 -0
  291. package/dist/components/others/ElmMarkdown.vue.d.ts +5 -0
  292. package/dist/components/others/ElmMarkdown.vue.mjs +255 -0
  293. package/dist/components/others/ElmMarkdown.vue2.mjs +4 -0
  294. package/dist/components/others/ElmTyping.stories.d.ts +6 -0
  295. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  296. package/dist/components/table/ElmTable.stories.d.ts +6 -0
  297. package/dist/components/table/ElmTable.vue.d.ts +46 -0
  298. package/dist/components/table/ElmTable.vue.mjs +10 -0
  299. package/dist/components/table/ElmTable.vue2.mjs +62 -0
  300. package/dist/components/table/ElmTable.vue3.mjs +27 -0
  301. package/dist/components/table/ElmTableBody.vue.d.ts +22 -0
  302. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  303. package/dist/components/table/ElmTableBody.vue2.mjs +4 -0
  304. package/dist/components/table/ElmTableCell.vue.d.ts +33 -0
  305. package/dist/components/table/ElmTableCell.vue.mjs +10 -0
  306. package/dist/components/table/ElmTableCell.vue2.mjs +28 -0
  307. package/dist/components/table/ElmTableCell.vue3.mjs +26 -0
  308. package/dist/components/table/ElmTableHeader.vue.d.ts +22 -0
  309. package/dist/components/table/ElmTableHeader.vue.mjs +10 -0
  310. package/dist/components/table/ElmTableHeader.vue2.mjs +17 -0
  311. package/dist/components/table/ElmTableHeader.vue3.mjs +20 -0
  312. package/dist/components/table/ElmTableRow.vue.d.ts +22 -0
  313. package/dist/components/table/ElmTableRow.vue.mjs +10 -0
  314. package/dist/components/table/ElmTableRow.vue2.mjs +20 -0
  315. package/dist/components/table/ElmTableRow.vue3.mjs +21 -0
  316. package/dist/components/template/ElmTemplate.stories.d.ts +6 -0
  317. package/dist/components/template/ElmTemplate.vue.d.ts +4 -0
  318. package/dist/components/typography/ElmBlockQuote.stories.d.ts +6 -0
  319. package/dist/components/typography/ElmBlockQuote.vue.d.ts +24 -0
  320. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  321. package/dist/components/typography/ElmBlockQuote.vue2.mjs +64 -0
  322. package/dist/components/typography/ElmBlockQuote.vue3.mjs +26 -0
  323. package/dist/components/typography/ElmCallout.stories.d.ts +11 -0
  324. package/dist/components/typography/ElmCallout.vue.d.ts +30 -0
  325. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  326. package/dist/components/typography/ElmCallout.vue2.mjs +58 -0
  327. package/dist/components/typography/ElmCallout.vue3.mjs +23 -0
  328. package/dist/components/typography/ElmDivider.stories.d.ts +6 -0
  329. package/dist/components/typography/ElmDivider.vue.d.ts +11 -0
  330. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  331. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  332. package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
  333. package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +6 -0
  334. package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +8 -0
  335. package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +10 -0
  336. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +27 -0
  337. package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +20 -0
  338. package/dist/components/typography/ElmHeading.stories.d.ts +7 -0
  339. package/dist/components/typography/ElmHeading.vue.d.ts +49 -0
  340. package/dist/components/typography/ElmHeading.vue.mjs +10 -0
  341. package/dist/components/typography/ElmHeading.vue2.mjs +95 -0
  342. package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
  343. package/dist/components/typography/ElmInlineText.stories.d.ts +12 -0
  344. package/dist/components/typography/ElmInlineText.vue.d.ts +85 -0
  345. package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
  346. package/dist/components/typography/ElmInlineText.vue2.mjs +158 -0
  347. package/dist/components/typography/ElmInlineText.vue3.mjs +35 -0
  348. package/dist/components/typography/ElmList.stories.d.ts +8 -0
  349. package/dist/components/typography/ElmList.vue.d.ts +31 -0
  350. package/dist/components/typography/ElmList.vue.mjs +36 -0
  351. package/dist/components/typography/ElmList.vue3.mjs +17 -0
  352. package/dist/components/typography/ElmParagraph.stories.d.ts +6 -0
  353. package/dist/components/typography/ElmParagraph.vue.d.ts +23 -0
  354. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  355. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  356. package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
  357. package/dist/components/typography/ElmTypingAnimation.stories.d.ts +6 -0
  358. package/dist/components/typography/ElmTypingAnimation.vue.d.ts +21 -0
  359. package/dist/components/typography/ElmTypingAnimation.vue.mjs +10 -0
  360. package/dist/components/typography/ElmTypingAnimation.vue2.mjs +49 -0
  361. package/dist/components/typography/ElmTypingAnimation.vue3.mjs +26 -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/hooks/useTyping.mjs +37 -0
  366. package/dist/index.d.ts +120 -0
  367. package/dist/index.mjs +137 -0
  368. package/dist/node_modules/.pnpm/marked@16.4.1/node_modules/marked/lib/marked.esm.mjs +1099 -0
  369. package/dist/styles/heading.module.scss.mjs +20 -0
  370. package/dist/styles/text.module.scss.mjs +20 -0
  371. package/dist/styles/transition-fade.module.scss.mjs +27 -0
  372. package/package.json +62 -0
@@ -0,0 +1,116 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, createVNode, Fragment, unref } from "vue";
2
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
3
+ import ElmImage from "../media/ElmImage.vue.mjs";
4
+ import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
5
+ import { mdiCalendarMonth, mdiCalendarRefresh } from "@mdi/js";
6
+ const _hoisted_1 = ["href", "target"];
7
+ const _hoisted_2 = ["src"];
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "ElmBookmark",
10
+ props: {
11
+ hideUrl: { type: Boolean, default: false },
12
+ openInNewTab: { type: Boolean, default: true },
13
+ title: {},
14
+ description: { default: "No description provided" },
15
+ image: {},
16
+ url: {},
17
+ createdAt: {},
18
+ updatedAt: {},
19
+ onClick: {},
20
+ margin: {},
21
+ favicon: {}
22
+ },
23
+ setup(__props) {
24
+ const props = __props;
25
+ function handleClick(event) {
26
+ if (props.onClick) {
27
+ event.preventDefault();
28
+ props.onClick();
29
+ }
30
+ }
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createElementBlock("div", {
33
+ class: normalizeClass(_ctx.$style.parent),
34
+ style: normalizeStyle({ "--margin-block": __props.margin })
35
+ }, [
36
+ createElementVNode("a", {
37
+ class: normalizeClass(_ctx.$style.bookmark),
38
+ href: __props.url,
39
+ target: __props.openInNewTab ? "_blank" : void 0,
40
+ rel: "noopener noreferrer",
41
+ onClick: handleClick
42
+ }, [
43
+ __props.image != null ? (openBlock(), createElementBlock("div", {
44
+ key: 0,
45
+ class: normalizeClass(_ctx.$style.image)
46
+ }, [
47
+ createVNode(ElmImage, { src: __props.image }, null, 8, ["src"])
48
+ ], 2)) : createCommentVNode("", true),
49
+ createElementVNode("div", {
50
+ class: normalizeClass(_ctx.$style.typography)
51
+ }, [
52
+ createElementVNode("div", {
53
+ class: normalizeClass(_ctx.$style.title)
54
+ }, [
55
+ createVNode(ElmInlineText, {
56
+ text: __props.title ?? "No title provided",
57
+ bold: ""
58
+ }, null, 8, ["text"])
59
+ ], 2),
60
+ createElementVNode("div", null, [
61
+ createVNode(ElmInlineText, {
62
+ text: __props.description == null ? "No description provided" : __props.description.length > 100 ? __props.description.slice(0, 100) + "..." : __props.description,
63
+ size: ".8rem",
64
+ style: { opacity: 0.6 }
65
+ }, null, 8, ["text"])
66
+ ]),
67
+ __props.createdAt != null || __props.updatedAt != null ? (openBlock(), createElementBlock("div", {
68
+ key: 0,
69
+ class: normalizeClass(_ctx.$style.date)
70
+ }, [
71
+ __props.createdAt != null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
72
+ createVNode(ElmMdiIcon, {
73
+ d: unref(mdiCalendarMonth),
74
+ size: "1em"
75
+ }, null, 8, ["d"]),
76
+ createVNode(ElmInlineText, {
77
+ text: `${__props.createdAt}`,
78
+ size: ".8rem"
79
+ }, null, 8, ["text"])
80
+ ], 64)) : createCommentVNode("", true),
81
+ __props.updatedAt != null ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
82
+ createVNode(ElmMdiIcon, {
83
+ d: unref(mdiCalendarRefresh),
84
+ size: "1em"
85
+ }, null, 8, ["d"]),
86
+ createVNode(ElmInlineText, {
87
+ text: `${__props.updatedAt}`,
88
+ size: ".8rem"
89
+ }, null, 8, ["text"])
90
+ ], 64)) : createCommentVNode("", true)
91
+ ], 2)) : createCommentVNode("", true),
92
+ !__props.hideUrl && __props.url != null ? (openBlock(), createElementBlock("div", {
93
+ key: 1,
94
+ class: normalizeClass(_ctx.$style.link)
95
+ }, [
96
+ __props.favicon ? (openBlock(), createElementBlock("img", {
97
+ key: 0,
98
+ src: __props.favicon,
99
+ alt: "favicon",
100
+ class: normalizeClass(_ctx.$style.favicon)
101
+ }, null, 10, _hoisted_2)) : createCommentVNode("", true),
102
+ createVNode(ElmInlineText, {
103
+ text: `${__props.url}`,
104
+ size: ".8rem",
105
+ color: "#6987b8"
106
+ }, null, 8, ["text"])
107
+ ], 2)) : createCommentVNode("", true)
108
+ ], 2)
109
+ ], 10, _hoisted_1)
110
+ ], 6);
111
+ };
112
+ }
113
+ });
114
+ export {
115
+ _sfc_main as default
116
+ };
@@ -0,0 +1,41 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._parent_1tjtz_1{container-type:inline-size;margin-block:var(--margin-block);border-radius:.25rem;box-shadow:0 0 .125rem #0000001a;overflow:hidden;transition:background-color .2s,transform .2s}._parent_1tjtz_1:hover{background-color:#6987b81a;transform:translate(-.125rem) translateY(-.125rem)}._parent_1tjtz_1:active{background-color:#59b57c1a;transform:translate(0) translateY(0)}._bookmark_1tjtz_18{all:unset;display:flex;cursor:pointer;background-color:#ffffff80}[data-theme=dark] ._bookmark_1tjtz_18{background-color:#0003}._bookmark_1tjtz_18{flex-direction:row;height:120px}@container (max-width: 700px){._bookmark_1tjtz_18{flex-direction:column;height:auto}}._bookmark_1tjtz_18 ._image_1tjtz_37{overflow:hidden;height:100%;opacity:.9;display:flex;justify-content:center;align-items:center;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;aspect-ratio:2/1;min-width:-moz-min-content;min-width:min-content;max-width:35%}@container (max-width: 700px){._bookmark_1tjtz_18 ._image_1tjtz_37{min-width:0;min-width:initial;max-width:none;max-width:initial;width:100%}}._bookmark_1tjtz_18 ._typography_1tjtz_57{overflow:hidden;box-sizing:border-box;padding:.5rem;display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:.25rem}._bookmark_1tjtz_18 ._typography_1tjtz_57 ._title_1tjtz_67{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._bookmark_1tjtz_18 ._typography_1tjtz_57 ._date_1tjtz_74{width:100%;display:flex;justify-content:flex-end;gap:.5rem;white-space:nowrap;text-overflow:ellipsis}._link_1tjtz_83{width:100%;display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;text-overflow:ellipsis;gap:.5rem}._favicon_1tjtz_93{width:16px;height:16px}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const parent = "_parent_1tjtz_1";
14
+ const bookmark = "_bookmark_1tjtz_18";
15
+ const image = "_image_1tjtz_37";
16
+ const typography = "_typography_1tjtz_57";
17
+ const title = "_title_1tjtz_67";
18
+ const date = "_date_1tjtz_74";
19
+ const link = "_link_1tjtz_83";
20
+ const favicon = "_favicon_1tjtz_93";
21
+ const style0 = {
22
+ parent,
23
+ bookmark,
24
+ image,
25
+ typography,
26
+ title,
27
+ date,
28
+ link,
29
+ favicon
30
+ };
31
+ export {
32
+ bookmark,
33
+ date,
34
+ style0 as default,
35
+ favicon,
36
+ image,
37
+ link,
38
+ parent,
39
+ title,
40
+ typography
41
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import { default as ElmBreadcrumb } from './ElmBreadcrumb.vue';
3
+ declare const meta: Meta<typeof ElmBreadcrumb>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Long: Story;
@@ -0,0 +1,19 @@
1
+ export interface ElmBreadcrumbProps {
2
+ /**
3
+ * The links to display.
4
+ */
5
+ links: Array<{
6
+ /**
7
+ * The text to display.
8
+ */
9
+ text: string;
10
+ /**
11
+ * The action to perform when the link is clicked.
12
+ */
13
+ onClick?: () => void;
14
+ }>;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<ElmBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
+ target: HTMLElement;
18
+ }, HTMLElement>;
19
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmBreadcrumb.vue2.mjs";
2
+ import style0 from "./ElmBreadcrumb.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmBreadcrumb as default
10
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, Fragment, renderList, createElementVNode, createBlock, createCommentVNode, createVNode, unref } from "vue";
2
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
3
+ import { useIntersectionObserver } from "@vueuse/core";
4
+ import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
5
+ import { mdiHome, mdiApplicationOutline, mdiFolderOpen, mdiChevronRight } from "@mdi/js";
6
+ const _hoisted_1 = ["onClick"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "ElmBreadcrumb",
9
+ props: {
10
+ links: {}
11
+ },
12
+ setup(__props) {
13
+ const target = ref(null);
14
+ const targetIsVisible = ref(false);
15
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
16
+ targetIsVisible.value = isIntersecting;
17
+ });
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("nav", {
20
+ class: normalizeClass(_ctx.$style.container),
21
+ ref_key: "target",
22
+ ref: target,
23
+ style: normalizeStyle({
24
+ "--opacity": targetIsVisible.value ? 1 : 0
25
+ })
26
+ }, [
27
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.links, (link, index) => {
28
+ return openBlock(), createElementBlock(Fragment, null, [
29
+ createElementVNode("div", {
30
+ class: normalizeClass(_ctx.$style["link-container"]),
31
+ onClick: link.onClick
32
+ }, [
33
+ createVNode(ElmMdiIcon, {
34
+ d: index === 0 ? unref(mdiHome) : index === __props.links.length - 1 ? unref(mdiApplicationOutline) : unref(mdiFolderOpen),
35
+ size: "1.25em",
36
+ class: normalizeClass(_ctx.$style.text),
37
+ style: normalizeStyle({
38
+ "--delay": `${index * 100}ms`
39
+ })
40
+ }, null, 8, ["d", "class", "style"]),
41
+ createVNode(ElmInlineText, {
42
+ text: link.text,
43
+ class: normalizeClass(_ctx.$style.text),
44
+ style: normalizeStyle({
45
+ "--delay": `${index * 100 + 50}ms`
46
+ })
47
+ }, null, 8, ["text", "class", "style"])
48
+ ], 10, _hoisted_1),
49
+ __props.links.length !== index + 1 ? (openBlock(), createBlock(ElmMdiIcon, {
50
+ key: 0,
51
+ d: unref(mdiChevronRight),
52
+ size: "1em",
53
+ color: "#b69545",
54
+ class: normalizeClass(_ctx.$style.text),
55
+ style: normalizeStyle({ "--delay": `${index * 100 + 100}ms` })
56
+ }, null, 8, ["d", "class", "style"])) : createCommentVNode("", true)
57
+ ], 64);
58
+ }), 256))
59
+ ], 6);
60
+ };
61
+ }
62
+ });
63
+ export {
64
+ _sfc_main as default
65
+ };
@@ -0,0 +1,24 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._container_xsa12_1{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}._link-container_xsa12_10{display:flex;flex-direction:row;align-items:center;gap:0;box-sizing:border-box;padding:.25rem;border-radius:.25rem;cursor:pointer;transition:background-color .1s,opacity .1s,transform .1s}._link-container_xsa12_10:hover{background-color:#868e9c33;transform:translate(-1px) translateY(-1px)}._link-container_xsa12_10:active{opacity:.5;transform:translate(1px) translateY(1px)}._text_xsa12_30{opacity:var(--opacity);transition:opacity .2s;transition-delay:var(--delay);padding:0 .25rem}"));
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_xsa12_1";
14
+ const text = "_text_xsa12_30";
15
+ const style0 = {
16
+ container,
17
+ "link-container": "_link-container_xsa12_10",
18
+ text
19
+ };
20
+ export {
21
+ container,
22
+ style0 as default,
23
+ text
24
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import { default as ElmPagetop } from './ElmPagetop.vue';
3
+ declare const meta: Meta<typeof ElmPagetop>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,10 @@
1
+ export interface ElmPagetopProps {
2
+ /**
3
+ * Specifies the position of the button.
4
+ */
5
+ position?: "left" | "right";
6
+ }
7
+ declare const _default: import('vue').DefineComponent<ElmPagetopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmPagetopProps> & Readonly<{}>, {
8
+ position: "left" | "right";
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmPagetop.vue2.mjs";
2
+ import style0 from "./ElmPagetop.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmPagetop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmPagetop as default
10
+ };
@@ -0,0 +1,52 @@
1
+ import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, unref } from "vue";
2
+ import { useWindowScroll } from "@vueuse/core";
3
+ import textStyle from "../../styles/text.module.scss.mjs";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "ElmPagetop",
6
+ props: {
7
+ position: { default: "right" }
8
+ },
9
+ setup(__props) {
10
+ const isVisible = ref(false);
11
+ const { y } = useWindowScroll();
12
+ watch(
13
+ () => y.value,
14
+ () => {
15
+ isVisible.value = y.value > 100;
16
+ }
17
+ );
18
+ const toTop = () => {
19
+ window.scrollTo({ top: 0, behavior: "smooth" });
20
+ };
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createElementBlock("nav", {
23
+ class: normalizeClass([_ctx.$style.wrapper, { [_ctx.$style["wrapper--visible"]]: isVisible.value }]),
24
+ style: normalizeStyle({
25
+ "--size": `${64}px`,
26
+ left: __props.position === "left" ? "0" : "auto",
27
+ right: __props.position === "right" ? "0" : "auto"
28
+ }),
29
+ onClick: toTop
30
+ }, [
31
+ createElementVNode("div", {
32
+ "aria-hidden": "",
33
+ class: normalizeClass(_ctx.$style.partial)
34
+ }, null, 2),
35
+ createElementVNode("div", {
36
+ "aria-hidden": "",
37
+ class: normalizeClass(_ctx.$style.partial)
38
+ }, null, 2),
39
+ createElementVNode("div", {
40
+ "aria-hidden": "",
41
+ class: normalizeClass(_ctx.$style.partial)
42
+ }, null, 2),
43
+ createElementVNode("span", {
44
+ class: normalizeClass([_ctx.$style.text, unref(textStyle).text])
45
+ }, "Back to Top", 2)
46
+ ], 6);
47
+ };
48
+ }
49
+ });
50
+ export {
51
+ _sfc_main as default
52
+ };
@@ -0,0 +1,30 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode('._wrapper_11hrj_1{--const-margin: 1rem;z-index:50;display:block;position:fixed;bottom:0;margin:1rem .5rem;margin:var(--const-margin) .5rem;width:var(--size);height:var(--size);left:auto;left:var(--left, auto);right:auto;right:var(---right, auto);opacity:1;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .7s,opacity .4s;transform-origin:50% 50%;transform:translateY(250%) rotate(180deg)}._wrapper--visible_11hrj_20{transition:transform .7s,opacity .2s;transform:translateY(0) rotate(0)}._wrapper_11hrj_1:hover{opacity:.8}._wrapper_11hrj_1:active{opacity:.4}@keyframes _move_11hrj_1{0%{opacity:0;transform:translateY(600%)}25%{opacity:1;transform:translateY(220%)}42%{opacity:1;transform:translateY(200%)}67%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-50%) scale(.5)}}._wrapper_11hrj_1 ._partial_11hrj_52{position:absolute;width:var(--size);height:20px;opacity:0;transform:scale3d(.5,.5,.5);animation:_move_11hrj_1 3s ease-out infinite}._wrapper_11hrj_1 ._partial_11hrj_52:nth-of-type(1){animation:_move_11hrj_1 3s ease-out 1s infinite}._wrapper_11hrj_1 ._partial_11hrj_52:nth-of-type(2){animation:_move_11hrj_1 3s ease-out 2s infinite}._wrapper_11hrj_1 ._partial_11hrj_52:before,._wrapper_11hrj_1 ._partial_11hrj_52:after{content:"";position:absolute;top:0;height:100%;width:50%;background-color:#494f59}[data-theme=dark] ._wrapper_11hrj_1 ._partial_11hrj_52:before,[data-theme=dark] ._wrapper_11hrj_1 ._partial_11hrj_52:after{background-color:#bec2ca}._wrapper_11hrj_1 ._partial_11hrj_52:before{left:0;transform:skew(0,-30deg)}._wrapper_11hrj_1 ._partial_11hrj_52:after{right:0;transform:skew(0,30deg)}._wrapper_11hrj_1 ._text_11hrj_85{transition:opacity .2s ease .4s;width:100%;text-align:center;font-family:sans-serif;position:absolute;z-index:50;bottom:calc(0px - var(--const-margin));font-size:12px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}'));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const wrapper = "_wrapper_11hrj_1";
14
+ const partial = "_partial_11hrj_52";
15
+ const move = "_move_11hrj_1";
16
+ const text = "_text_11hrj_85";
17
+ const style0 = {
18
+ wrapper,
19
+ "wrapper--visible": "_wrapper--visible_11hrj_20",
20
+ partial,
21
+ move,
22
+ text
23
+ };
24
+ export {
25
+ style0 as default,
26
+ move,
27
+ partial,
28
+ text,
29
+ wrapper
30
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import { default as ElmTableOfContents } from './ElmTableOfContents.vue';
3
+ declare const meta: Meta<typeof ElmTableOfContents>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Deep: Story;
@@ -0,0 +1,9 @@
1
+ export interface ElmTableOfContentsProps {
2
+ headings: Array<{
3
+ level: 1 | 2 | 3 | 4 | 5 | 6;
4
+ text: string;
5
+ id?: string;
6
+ }>;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<ElmTableOfContentsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableOfContentsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
9
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmTableOfContents.vue2.mjs";
2
+ import style0 from "./ElmTableOfContents.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmTableOfContents = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmTableOfContents as default
10
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, createVNode, unref } from "vue";
2
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
3
+ import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
4
+ import { mdiMenuDown } from "@mdi/js";
5
+ const _hoisted_1 = ["href"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "ElmTableOfContents",
8
+ props: {
9
+ headings: {}
10
+ },
11
+ setup(__props) {
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createElementBlock("nav", {
14
+ class: normalizeClass(_ctx.$style.toc)
15
+ }, [
16
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.headings, (heading) => {
17
+ return openBlock(), createElementBlock("a", {
18
+ class: normalizeClass(_ctx.$style.link),
19
+ href: `#${heading.id ?? heading.text}`,
20
+ style: normalizeStyle({ "--padding-left": `${heading.level * 0.5}rem` })
21
+ }, [
22
+ createElementVNode("sup", null, [
23
+ createVNode(ElmInlineText, {
24
+ text: `H${heading.level}`,
25
+ size: "0.6rem",
26
+ color: "#6987b8"
27
+ }, null, 8, ["text"])
28
+ ]),
29
+ createVNode(ElmInlineText, {
30
+ text: heading.text
31
+ }, null, 8, ["text"]),
32
+ createVNode(ElmMdiIcon, {
33
+ d: unref(mdiMenuDown),
34
+ size: "1em",
35
+ color: "#6987b8"
36
+ }, null, 8, ["d"])
37
+ ], 14, _hoisted_1);
38
+ }), 256))
39
+ ], 2);
40
+ };
41
+ }
42
+ });
43
+ export {
44
+ _sfc_main as default
45
+ };
@@ -0,0 +1,23 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._toc_vrpzl_1{box-sizing:border-box;display:flex;flex-direction:column;padding-left:.5rem;border-left-style:solid;border-left-width:.25rem;border-left-color:#0000001a}[data-theme=dark] ._toc_vrpzl_1{border-left-color:#ffffff26}._toc_vrpzl_1 ._link_vrpzl_13{all:unset;box-sizing:border-box;display:flex;justify-content:flex-start;gap:.5rem;border-radius:.25rem;padding:.25rem;padding-left:var(--padding-left, .25rem);transition:background-color .2s;cursor:pointer}._toc_vrpzl_1 ._link_vrpzl_13:hover{background-color:#6987b833}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const toc = "_toc_vrpzl_1";
14
+ const link = "_link_vrpzl_13";
15
+ const style0 = {
16
+ toc,
17
+ link
18
+ };
19
+ export {
20
+ style0 as default,
21
+ link,
22
+ toc
23
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import { default as ElmColorSample } from './ElmColorSample.vue';
3
+ declare const meta: Meta<typeof ElmColorSample>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,8 @@
1
+ export interface ElmColorSampleProps {
2
+ /**
3
+ * The color to display.
4
+ */
5
+ color: string;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<ElmColorSampleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColorSampleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1,23 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode(".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}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ import _sfc_main from "./ElmColorSample.vue2.mjs";
14
+ import style0 from "./ElmColorSample.vue3.mjs";
15
+
16
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
17
+ const cssModules = {
18
+ "$style": style0
19
+ };
20
+ const ElmColorSample = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-4e995755"]]);
21
+ export {
22
+ ElmColorSample as default
23
+ };
@@ -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": __props.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": __props.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-vite';
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;