@elmethis/core 1.0.0-alpha.19 → 1.0.0-alpha.190

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 (311) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  2. package/dist/components/{headings/ElmHeading4.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  3. package/dist/components/{typography/ElmBulletedList.vue.d.ts → badge/ElmBadge.vue.d.ts} +8 -7
  4. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  5. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  6. package/dist/components/badge/ElmBadge.vue3.mjs +26 -0
  7. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  8. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  9. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  10. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  11. package/dist/components/badge/ElmTag.vue3.mjs +26 -0
  12. package/dist/components/code/ElmCodeBlock.stories.d.ts +2 -0
  13. package/dist/components/code/ElmCodeBlock.vue.d.ts +31 -2
  14. package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
  15. package/dist/components/code/ElmCodeBlock.vue2.mjs +127 -0
  16. package/dist/components/code/ElmCodeBlock.vue3.mjs +42 -0
  17. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  18. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  19. package/dist/components/code/ElmKatex.vue2.mjs +67 -0
  20. package/dist/components/code/ElmKatex.vue3.mjs +20 -0
  21. package/dist/components/code/ElmShikiHighlighter.stories.d.ts +6 -0
  22. package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
  23. package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
  24. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +55 -0
  25. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
  26. package/dist/components/code/shikiInstance.d.ts +2 -0
  27. package/dist/components/code/shikiInstance.mjs +76 -0
  28. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  29. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  30. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  31. package/dist/components/containments/ElmColumn.vue3.mjs +20 -0
  32. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  33. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  34. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  35. package/dist/components/containments/ElmColumnList.vue3.mjs +18 -0
  36. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +3 -2
  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.vue.d.ts +8 -7
  41. package/dist/components/containments/ElmModal.vue.mjs +23 -0
  42. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  43. package/dist/components/containments/ElmModal.vue3.mjs +23 -0
  44. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  45. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  46. package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
  47. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  48. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  49. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  50. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  51. package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
  52. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  53. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +23 -0
  54. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  55. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
  56. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  57. package/dist/components/containments/ElmToggle.vue.d.ts +21 -10
  58. package/dist/components/containments/ElmToggle.vue.mjs +23 -0
  59. package/dist/components/containments/ElmToggle.vue2.mjs +103 -0
  60. package/dist/components/containments/ElmToggle.vue3.mjs +33 -0
  61. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  62. package/dist/components/containments/ElmTooltip.vue.mjs +23 -0
  63. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  64. package/dist/components/containments/ElmTooltip.vue3.mjs +20 -0
  65. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  66. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  67. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  68. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  69. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  70. package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
  71. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  72. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  73. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  74. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  75. package/dist/components/data/ElmProgress.vue3.mjs +32 -0
  76. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  77. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  78. package/dist/components/data/ElmStatusMessage.vue.mjs +23 -0
  79. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  80. package/dist/components/data/ElmStatusMessage.vue3.mjs +23 -0
  81. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  83. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  84. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  85. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  87. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  88. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  89. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
  90. package/dist/components/{headings/ElmHeading1.stories.d.ts → fallback/ElmSpinner.stories.d.ts} +2 -2
  91. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  92. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  93. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  94. package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
  95. package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +6 -0
  96. package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +5 -0
  97. package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +10 -0
  98. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +46 -0
  99. package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +29 -0
  100. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  101. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  102. package/dist/components/form/ElmButton.vue.mjs +23 -0
  103. package/dist/components/form/ElmButton.vue2.mjs +68 -0
  104. package/dist/components/form/ElmButton.vue3.mjs +36 -0
  105. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  106. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  107. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  108. package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
  109. package/dist/components/{headings/ElmHeading2.stories.d.ts → form/ElmSwitch.stories.d.ts} +2 -2
  110. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  111. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  112. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  113. package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
  114. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  115. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  116. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  117. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  118. package/dist/components/form/ElmTextField.vue3.mjs +46 -0
  119. package/dist/components/{headings/ElmHeading3.stories.d.ts → form/ElmTotp.stories.d.ts} +2 -2
  120. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  121. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  122. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  123. package/dist/components/form/ElmTotp.vue3.mjs +34 -0
  124. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  125. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  126. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  127. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  128. package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
  129. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  130. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  131. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  132. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  133. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +27 -0
  134. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  135. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  136. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  137. package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
  138. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  139. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  140. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  141. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
  142. package/dist/components/icon/ElmInlineIcon.stories.d.ts +6 -0
  143. package/dist/components/icon/ElmInlineIcon.vue.d.ts +12 -0
  144. package/dist/components/icon/ElmInlineIcon.vue.mjs +10 -0
  145. package/dist/components/icon/ElmInlineIcon.vue2.mjs +27 -0
  146. package/dist/components/icon/ElmInlineIcon.vue3.mjs +20 -0
  147. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  148. package/dist/components/icon/ElmLanguageIcon.vue.mjs +23 -0
  149. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  150. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +23 -0
  151. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  152. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  153. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  154. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  155. package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
  156. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  157. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  158. package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
  159. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  160. package/dist/{Bash-mlA01V07.js → components/icon/languages/Bash.vue.mjs} +20 -15
  161. package/dist/components/icon/languages/Bash.vue2.mjs +20 -0
  162. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  163. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  164. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  165. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  166. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  167. package/dist/components/{typography/ElmListItem.vue.d.ts → jsonschema/ElmChildContainer.vue.d.ts} +6 -3
  168. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  169. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  170. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  171. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  172. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  173. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  174. package/dist/components/media/ElmBlockImage.stories.d.ts +9 -0
  175. package/dist/components/media/ElmBlockImage.vue.d.ts +12 -0
  176. package/dist/components/media/ElmBlockImage.vue.mjs +23 -0
  177. package/dist/components/media/ElmBlockImage.vue2.mjs +117 -0
  178. package/dist/components/media/ElmBlockImage.vue3.mjs +36 -0
  179. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  180. package/dist/components/media/ElmFile.vue.mjs +10 -0
  181. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  182. package/dist/components/media/ElmFile.vue3.mjs +26 -0
  183. package/dist/components/media/ElmImage.stories.d.ts +2 -0
  184. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  185. package/dist/components/media/ElmImage.vue.mjs +23 -0
  186. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  187. package/dist/components/media/ElmImage.vue3.mjs +30 -0
  188. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  189. package/dist/components/navigation/ElmBookmark.vue.d.ts +14 -10
  190. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  191. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  192. package/dist/components/navigation/ElmBookmark.vue3.mjs +44 -0
  193. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  194. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  195. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  196. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +30 -0
  197. package/dist/components/navigation/ElmPagetop.vue.d.ts +2 -2
  198. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  199. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  200. package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
  201. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  202. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  203. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  204. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +26 -0
  205. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  206. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  207. package/dist/components/others/ElmColorSample.vue.mjs +23 -0
  208. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  209. package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
  210. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  211. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  212. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  213. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  214. package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
  215. package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
  216. package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
  217. package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
  218. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +217 -0
  219. package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
  220. package/dist/components/others/ElmTyping.stories.d.ts +6 -0
  221. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  222. package/dist/components/table/ElmTable.vue.d.ts +29 -4
  223. package/dist/components/table/ElmTable.vue.mjs +10 -0
  224. package/dist/components/table/ElmTable.vue2.mjs +57 -0
  225. package/dist/components/table/ElmTable.vue3.mjs +27 -0
  226. package/dist/components/table/ElmTableBody.vue.d.ts +8 -4
  227. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  228. package/dist/components/table/ElmTableBody.vue3.mjs +17 -0
  229. package/dist/components/table/ElmTableCell.vue.d.ts +7 -3
  230. package/dist/components/table/ElmTableCell.vue.mjs +19 -0
  231. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  232. package/dist/components/table/ElmTableHeader.vue.d.ts +8 -4
  233. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  234. package/dist/components/table/ElmTableHeader.vue3.mjs +17 -0
  235. package/dist/components/table/ElmTableRow.vue.d.ts +8 -4
  236. package/dist/components/table/ElmTableRow.vue.mjs +17 -0
  237. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  238. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  239. package/dist/components/typography/ElmBlockQuote.vue.d.ts +6 -2
  240. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  241. package/dist/components/typography/ElmBlockQuote.vue2.mjs +64 -0
  242. package/dist/components/typography/ElmBlockQuote.vue3.mjs +26 -0
  243. package/dist/components/typography/ElmCallout.vue.d.ts +6 -3
  244. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  245. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  246. package/dist/components/typography/ElmCallout.vue3.mjs +26 -0
  247. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  248. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  249. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  250. package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
  251. package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +6 -0
  252. package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +8 -0
  253. package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +10 -0
  254. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +57 -0
  255. package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +23 -0
  256. package/dist/components/typography/ElmHeading.stories.d.ts +7 -0
  257. package/dist/components/typography/ElmHeading.vue.d.ts +49 -0
  258. package/dist/components/typography/ElmHeading.vue.mjs +10 -0
  259. package/dist/components/typography/ElmHeading.vue2.mjs +72 -0
  260. package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
  261. package/dist/components/{inline → typography}/ElmInlineText.stories.d.ts +3 -0
  262. package/dist/components/{inline → typography}/ElmInlineText.vue.d.ts +22 -1
  263. package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
  264. package/dist/components/typography/ElmInlineText.vue2.mjs +95 -0
  265. package/dist/components/typography/ElmInlineText.vue3.mjs +29 -0
  266. package/dist/components/typography/ElmList.stories.d.ts +8 -0
  267. package/dist/components/typography/ElmList.vue.d.ts +31 -0
  268. package/dist/components/typography/ElmList.vue.mjs +36 -0
  269. package/dist/components/typography/ElmList.vue3.mjs +17 -0
  270. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  271. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  272. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  273. package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
  274. package/dist/components/typography/ElmTypingAnimation.stories.d.ts +6 -0
  275. package/dist/components/typography/ElmTypingAnimation.vue.d.ts +21 -0
  276. package/dist/hooks/useElmethisTheme.mjs +43 -0
  277. package/dist/hooks/useTyping.d.ts +17 -0
  278. package/dist/hooks/useTyping.mjs +37 -0
  279. package/dist/index.d.ts +112 -46
  280. package/dist/index.mjs +130 -0
  281. package/dist/node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs +14 -0
  282. package/package.json +32 -32
  283. package/dist/JavaScript-stKTLCvS.js +0 -22
  284. package/dist/Rust-PU5XwTn1.js +0 -16
  285. package/dist/TypeScript-ViBgqhx7.js +0 -22
  286. package/dist/components/code/ElmPrismHighlighter.stories.d.ts +0 -7
  287. package/dist/components/code/ElmPrismHighlighter.vue.d.ts +0 -14
  288. package/dist/components/headings/ElmHeading1.vue.d.ts +0 -20
  289. package/dist/components/headings/ElmHeading2.vue.d.ts +0 -20
  290. package/dist/components/headings/ElmHeading3.vue.d.ts +0 -20
  291. package/dist/components/headings/ElmHeading4.vue.d.ts +0 -20
  292. package/dist/components/headings/ElmHeading5.stories.d.ts +0 -6
  293. package/dist/components/headings/ElmHeading5.vue.d.ts +0 -20
  294. package/dist/components/headings/ElmHeading6.stories.d.ts +0 -6
  295. package/dist/components/headings/ElmHeading6.vue.d.ts +0 -20
  296. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  297. package/dist/components/inline/ElmInlineCode.stories.d.ts +0 -6
  298. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
  299. package/dist/components/inline/ElmInlineLink.stories.d.ts +0 -9
  300. package/dist/components/inline/ElmInlineLink.vue.d.ts +0 -37
  301. package/dist/components/inline/ElmInlineRuby.stories.d.ts +0 -6
  302. package/dist/components/inline/ElmInlineRuby.vue.d.ts +0 -19
  303. package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +0 -19
  304. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +0 -163
  305. package/dist/components/typography/ElmBulletedList.stories.d.ts +0 -7
  306. package/dist/components/typography/ElmListItem.stories.d.ts +0 -6
  307. package/dist/components/typography/ElmNumberedList.stories.d.ts +0 -7
  308. package/dist/components/typography/ElmNumberedList.vue.d.ts +0 -20
  309. package/dist/elmethis.js +0 -48
  310. package/dist/elmethis.umd.cjs +0 -419
  311. package/dist/index-DvtsYpwQ.js +0 -16274
@@ -1,8 +1,5 @@
1
+ import { Property } from 'csstype';
1
2
  export interface ElmBookmarkProps {
2
- /**
3
- * Whether to display the bookmark horizontally.
4
- */
5
- isHorizontal?: boolean;
6
3
  /**
7
4
  * Whether to hide the URL.
8
5
  */
@@ -15,7 +12,7 @@ export interface ElmBookmarkProps {
15
12
  /**
16
13
  * The title of the bookmark.
17
14
  */
18
- title: string;
15
+ title?: string;
19
16
  /**
20
17
  * The description of the bookmark.
21
18
  */
@@ -24,11 +21,11 @@ export interface ElmBookmarkProps {
24
21
  * The image to display.
25
22
  * This can be a URL or a base64-encoded image.
26
23
  */
27
- image: string;
24
+ image?: string;
28
25
  /**
29
26
  * The URL to navigate to.
30
27
  */
31
- url: string;
28
+ url?: string;
32
29
  /**
33
30
  * The date the bookmark was created.
34
31
  */
@@ -39,11 +36,18 @@ export interface ElmBookmarkProps {
39
36
  * If provided, the default behavior (navigating to the URL) is prevented.
40
37
  */
41
38
  onClick?: () => void;
39
+ /**
40
+ * The margin of the bookmark.
41
+ */
42
+ margin?: Property.MarginBlock;
43
+ /**
44
+ * The URL of the favicon.
45
+ */
46
+ favicon?: string;
42
47
  }
43
48
  declare const _default: import('vue').DefineComponent<ElmBookmarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBookmarkProps> & Readonly<{}>, {
44
- openInNewTab: boolean;
45
- isHorizontal: boolean;
46
49
  hideUrl: boolean;
50
+ openInNewTab: boolean;
47
51
  description: string;
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
49
53
  export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmBookmark.vue2.mjs";
2
+ import style0 from "./ElmBookmark.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmBookmark = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmBookmark as default
10
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, createVNode, Fragment, unref } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
4
+ import ElmImage from "../media/ElmImage.vue.mjs";
5
+ const _hoisted_1 = ["href", "target"];
6
+ const _hoisted_2 = ["src"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "ElmBookmark",
9
+ props: {
10
+ hideUrl: { type: Boolean, default: false },
11
+ openInNewTab: { type: Boolean, default: true },
12
+ title: {},
13
+ description: { default: "No description provided" },
14
+ image: {},
15
+ url: {},
16
+ createdAt: {},
17
+ updatedAt: {},
18
+ onClick: {},
19
+ margin: {},
20
+ favicon: {}
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ function handleClick(event) {
25
+ if (props.onClick) {
26
+ event.preventDefault();
27
+ props.onClick();
28
+ }
29
+ }
30
+ return (_ctx, _cache) => {
31
+ return openBlock(), createElementBlock("div", {
32
+ class: normalizeClass(_ctx.$style.parent),
33
+ style: normalizeStyle({ "--margin-block": _ctx.margin })
34
+ }, [
35
+ createElementVNode("a", {
36
+ class: normalizeClass(_ctx.$style.bookmark),
37
+ href: _ctx.url,
38
+ target: _ctx.openInNewTab ? "_blank" : void 0,
39
+ rel: "noopener noreferrer",
40
+ onClick: handleClick
41
+ }, [
42
+ _ctx.image != null ? (openBlock(), createElementBlock("div", {
43
+ key: 0,
44
+ class: normalizeClass(_ctx.$style.image)
45
+ }, [
46
+ createVNode(ElmImage, { src: _ctx.image }, null, 8, ["src"])
47
+ ], 2)) : createCommentVNode("", true),
48
+ createElementVNode("div", {
49
+ class: normalizeClass(_ctx.$style.typography)
50
+ }, [
51
+ createElementVNode("div", {
52
+ class: normalizeClass(_ctx.$style.title)
53
+ }, [
54
+ createVNode(ElmInlineText, {
55
+ text: _ctx.title ?? "No title provided",
56
+ bold: ""
57
+ }, null, 8, ["text"])
58
+ ], 2),
59
+ createElementVNode("div", null, [
60
+ createVNode(ElmInlineText, {
61
+ text: _ctx.description == null ? "No description provided" : _ctx.description.length > 100 ? _ctx.description.slice(0, 100) + "..." : _ctx.description,
62
+ size: ".8rem",
63
+ style: { opacity: 0.6 }
64
+ }, null, 8, ["text"])
65
+ ]),
66
+ _ctx.createdAt != null || _ctx.updatedAt != null ? (openBlock(), createElementBlock("div", {
67
+ key: 0,
68
+ class: normalizeClass(_ctx.$style.date)
69
+ }, [
70
+ _ctx.createdAt != null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
71
+ createVNode(unref(Icon), {
72
+ icon: "mdi:calendar-month",
73
+ class: normalizeClass(_ctx.$style.icon)
74
+ }, null, 8, ["class"]),
75
+ createVNode(ElmInlineText, {
76
+ text: `${_ctx.createdAt}`,
77
+ size: ".8rem"
78
+ }, null, 8, ["text"])
79
+ ], 64)) : createCommentVNode("", true),
80
+ _ctx.updatedAt != null ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
81
+ createVNode(unref(Icon), {
82
+ icon: "mdi:calendar-refresh",
83
+ class: normalizeClass(_ctx.$style.icon)
84
+ }, null, 8, ["class"]),
85
+ createVNode(ElmInlineText, {
86
+ text: `${_ctx.updatedAt}`,
87
+ size: ".8rem"
88
+ }, null, 8, ["text"])
89
+ ], 64)) : createCommentVNode("", true)
90
+ ], 2)) : createCommentVNode("", true),
91
+ !_ctx.hideUrl && _ctx.url != null ? (openBlock(), createElementBlock("div", {
92
+ key: 1,
93
+ class: normalizeClass(_ctx.$style.link)
94
+ }, [
95
+ _ctx.favicon ? (openBlock(), createElementBlock("img", {
96
+ key: 0,
97
+ src: _ctx.favicon,
98
+ alt: "favicon",
99
+ class: normalizeClass(_ctx.$style.favicon)
100
+ }, null, 10, _hoisted_2)) : createCommentVNode("", true),
101
+ createVNode(ElmInlineText, {
102
+ text: `${_ctx.url}`,
103
+ size: ".8rem",
104
+ color: "#6987b8"
105
+ }, null, 8, ["text"])
106
+ ], 2)) : createCommentVNode("", true)
107
+ ], 2)
108
+ ], 10, _hoisted_1)
109
+ ], 6);
110
+ };
111
+ }
112
+ });
113
+ export {
114
+ _sfc_main as default
115
+ };
@@ -0,0 +1,44 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._parent_1yb8i_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_1yb8i_1:hover{background-color:#6987b81a;transform:translate(-.125rem) translateY(-.125rem)}._parent_1yb8i_1:active{background-color:#59b57c1a;transform:translate(0) translateY(0)}._bookmark_1yb8i_18{all:unset;display:flex;cursor:pointer;background-color:#ffffff80;flex-direction:row;height:120px}[data-theme=dark] ._bookmark_1yb8i_18{background-color:#0003}@container (max-width: 700px){._bookmark_1yb8i_18{flex-direction:column;height:auto}}._bookmark_1yb8i_18 ._image_1yb8i_35{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_1yb8i_18 ._image_1yb8i_35{min-width:0;min-width:initial;max-width:none;max-width:initial;width:100%}}._bookmark_1yb8i_18 ._typography_1yb8i_55{overflow:hidden;box-sizing:border-box;padding:.5rem;display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:.25rem}._bookmark_1yb8i_18 ._typography_1yb8i_55 ._title_1yb8i_65{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._bookmark_1yb8i_18 ._typography_1yb8i_55 ._date_1yb8i_72{width:100%;display:flex;justify-content:flex-end;gap:.5rem;white-space:nowrap;text-overflow:ellipsis}._bookmark_1yb8i_18 ._icon_1yb8i_80{width:16px;height:16px;color:#000000b3}[data-theme=dark] ._bookmark_1yb8i_18 ._icon_1yb8i_80{color:#ffffffb3}._link_1yb8i_89{width:100%;display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;text-overflow:ellipsis;gap:.5rem}._favicon_1yb8i_99{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_1yb8i_1";
14
+ const bookmark = "_bookmark_1yb8i_18";
15
+ const image = "_image_1yb8i_35";
16
+ const typography = "_typography_1yb8i_55";
17
+ const title = "_title_1yb8i_65";
18
+ const date = "_date_1yb8i_72";
19
+ const icon = "_icon_1yb8i_80";
20
+ const link = "_link_1yb8i_89";
21
+ const favicon = "_favicon_1yb8i_99";
22
+ const style0 = {
23
+ parent,
24
+ bookmark,
25
+ image,
26
+ typography,
27
+ title,
28
+ date,
29
+ icon,
30
+ link,
31
+ favicon
32
+ };
33
+ export {
34
+ bookmark,
35
+ date,
36
+ style0 as default,
37
+ favicon,
38
+ icon,
39
+ image,
40
+ link,
41
+ parent,
42
+ title,
43
+ typography
44
+ };
@@ -13,5 +13,7 @@ export interface ElmBreadcrumbProps {
13
13
  onClick?: () => void;
14
14
  }>;
15
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, {}, any>;
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>;
17
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,63 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, Fragment, renderList, createElementVNode, createBlock, createCommentVNode, createVNode, unref } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
4
+ import { useIntersectionObserver } from "@vueuse/core";
5
+ const _hoisted_1 = ["onClick"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "ElmBreadcrumb",
8
+ props: {
9
+ links: {}
10
+ },
11
+ setup(__props) {
12
+ const target = ref(null);
13
+ const targetIsVisible = ref(false);
14
+ useIntersectionObserver(target, ([{ isIntersecting }], _) => {
15
+ targetIsVisible.value = isIntersecting;
16
+ });
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("nav", {
19
+ class: normalizeClass(_ctx.$style.container),
20
+ ref_key: "target",
21
+ ref: target,
22
+ style: normalizeStyle({
23
+ "--opacity": targetIsVisible.value ? 1 : 0
24
+ })
25
+ }, [
26
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link, index) => {
27
+ return openBlock(), createElementBlock(Fragment, null, [
28
+ createElementVNode("div", {
29
+ class: normalizeClass(_ctx.$style["link-container"]),
30
+ onClick: link.onClick
31
+ }, [
32
+ createVNode(unref(Icon), {
33
+ class: normalizeClass([_ctx.$style.icon, _ctx.$style.fade]),
34
+ icon: index === 0 ? "mdi:home" : index === _ctx.links.length - 1 ? "mdi:file-document-multiple-outline" : "mdi:folder-open-outline",
35
+ style: normalizeStyle({
36
+ "--delay": `${index * 100}ms`
37
+ })
38
+ }, null, 8, ["class", "icon", "style"]),
39
+ createVNode(ElmInlineText, {
40
+ text: link.text,
41
+ class: normalizeClass(_ctx.$style.fade),
42
+ style: normalizeStyle({
43
+ "--delay": `${index * 100 + 50}ms`
44
+ })
45
+ }, null, 8, ["text", "class", "style"])
46
+ ], 10, _hoisted_1),
47
+ _ctx.links.length !== index + 1 ? (openBlock(), createBlock(unref(Icon), {
48
+ key: 0,
49
+ icon: "mdi:chevron-right",
50
+ class: normalizeClass([_ctx.$style.chevron, _ctx.$style.fade]),
51
+ style: normalizeStyle({
52
+ "--delay": `${index * 100 + 100}ms`
53
+ })
54
+ }, null, 8, ["class", "style"])) : createCommentVNode("", true)
55
+ ], 64);
56
+ }), 256))
57
+ ], 6);
58
+ };
59
+ }
60
+ });
61
+ export {
62
+ _sfc_main as default
63
+ };
@@ -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("._container_941di_1{display:flex;flex-direction:row;align-items:center;gap:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}._container_941di_1 ._icon_941di_8{width:20px;height:20px;color:#000000b3}[data-theme=dark] ._container_941di_1 ._icon_941di_8{color:#ffffffb3}._container_941di_1 ._chevron_941di_16{width:16px;height:16px;color:gray}._container_941di_1 ._link-container_941di_21{display:flex;flex-direction:row;align-items:center;gap:.5rem;box-sizing:border-box;padding:.25rem;border-radius:.25rem;cursor:pointer;transition:background-color .2s,transform .2s}._container_941di_1 ._link-container_941di_21:hover{background-color:#6987b833;transform:translate(-1px) translateY(-1px)}._container_941di_1 ._link-container_941di_21:active{background-color:#59b57c33;transform:translate(1px) translateY(1px)}._fade_941di_41{opacity:var(--opacity);transition:opacity .2s;transition-delay:var(--delay)}"));
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_941di_1";
14
+ const icon = "_icon_941di_8";
15
+ const chevron = "_chevron_941di_16";
16
+ const fade = "_fade_941di_41";
17
+ const style0 = {
18
+ container,
19
+ icon,
20
+ chevron,
21
+ "link-container": "_link-container_941di_21",
22
+ fade
23
+ };
24
+ export {
25
+ chevron,
26
+ container,
27
+ style0 as default,
28
+ fade,
29
+ icon
30
+ };
@@ -2,9 +2,9 @@ export interface ElmPagetopProps {
2
2
  /**
3
3
  * Specifies the position of the button.
4
4
  */
5
- position?: 'left' | 'right';
5
+ position?: "left" | "right";
6
6
  }
7
7
  declare const _default: import('vue').DefineComponent<ElmPagetopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmPagetopProps> & Readonly<{}>, {
8
8
  position: "left" | "right";
9
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
10
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,51 @@
1
+ import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode } from "vue";
2
+ import { useWindowScroll } from "@vueuse/core";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "ElmPagetop",
5
+ props: {
6
+ position: { default: "right" }
7
+ },
8
+ setup(__props) {
9
+ const isVisible = ref(false);
10
+ const { y } = useWindowScroll();
11
+ watch(
12
+ () => y.value,
13
+ () => {
14
+ isVisible.value = y.value > 100;
15
+ }
16
+ );
17
+ const toTop = () => {
18
+ window.scrollTo({ top: 0, behavior: "smooth" });
19
+ };
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createElementBlock("nav", {
22
+ class: normalizeClass([_ctx.$style.wrapper, { [_ctx.$style["wrapper--visible"]]: isVisible.value }]),
23
+ style: normalizeStyle({
24
+ "--size": `${64}px`,
25
+ left: _ctx.position === "left" ? "0" : "auto",
26
+ right: _ctx.position === "right" ? "0" : "auto"
27
+ }),
28
+ onClick: toTop
29
+ }, [
30
+ createElementVNode("div", {
31
+ "aria-hidden": "",
32
+ class: normalizeClass(_ctx.$style.partial)
33
+ }, null, 2),
34
+ createElementVNode("div", {
35
+ "aria-hidden": "",
36
+ class: normalizeClass(_ctx.$style.partial)
37
+ }, null, 2),
38
+ createElementVNode("div", {
39
+ "aria-hidden": "",
40
+ class: normalizeClass(_ctx.$style.partial)
41
+ }, null, 2),
42
+ createElementVNode("span", {
43
+ class: normalizeClass(_ctx.$style.text)
44
+ }, "Back to Top", 2)
45
+ ], 6);
46
+ };
47
+ }
48
+ });
49
+ export {
50
+ _sfc_main as default
51
+ };
@@ -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_q0z76_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_q0z76_20{transition:transform .7s,opacity .2s;transform:translateY(0) rotate(0)}._wrapper_q0z76_1:hover{opacity:.8}._wrapper_q0z76_1:active{opacity:.4}@keyframes _move_q0z76_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_q0z76_1 ._partial_q0z76_52{position:absolute;width:var(--size);height:20px;opacity:0;transform:scale3d(.5,.5,.5);animation:_move_q0z76_1 3s ease-out infinite}._wrapper_q0z76_1 ._partial_q0z76_52:nth-of-type(1){animation:_move_q0z76_1 3s ease-out 1s infinite}._wrapper_q0z76_1 ._partial_q0z76_52:nth-of-type(2){animation:_move_q0z76_1 3s ease-out 2s infinite}._wrapper_q0z76_1 ._partial_q0z76_52:before,._wrapper_q0z76_1 ._partial_q0z76_52:after{content:"";position:absolute;top:0;height:100%;width:50%;background-color:#000000b3}[data-theme=dark] ._wrapper_q0z76_1 ._partial_q0z76_52:before,[data-theme=dark] ._wrapper_q0z76_1 ._partial_q0z76_52:after{background-color:#ffffffb3}._wrapper_q0z76_1 ._partial_q0z76_52:before{left:0;transform:skew(0,-30deg)}._wrapper_q0z76_1 ._partial_q0z76_52:after{right:0;transform:skew(0,30deg)}._wrapper_q0z76_1 ._text_q0z76_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;color:#000000b3}[data-theme=dark] ._wrapper_q0z76_1 ._text_q0z76_85{color:#ffffffb3}'));
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_q0z76_1";
14
+ const partial = "_partial_q0z76_52";
15
+ const move = "_move_q0z76_1";
16
+ const text = "_text_q0z76_85";
17
+ const style0 = {
18
+ wrapper,
19
+ "wrapper--visible": "_wrapper--visible_q0z76_20",
20
+ partial,
21
+ move,
22
+ text
23
+ };
24
+ export {
25
+ style0 as default,
26
+ move,
27
+ partial,
28
+ text,
29
+ wrapper
30
+ };
@@ -5,5 +5,5 @@ export interface ElmTableOfContentsProps {
5
5
  id?: string;
6
6
  }>;
7
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, {}, any>;
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
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,43 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, createVNode, unref } from "vue";
2
+ import { Icon } from "@iconify/vue";
3
+ import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
4
+ const _hoisted_1 = ["href"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "ElmTableOfContents",
7
+ props: {
8
+ headings: {}
9
+ },
10
+ setup(__props) {
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("nav", {
13
+ class: normalizeClass(_ctx.$style.toc)
14
+ }, [
15
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headings, (heading) => {
16
+ return openBlock(), createElementBlock("a", {
17
+ class: normalizeClass(_ctx.$style.link),
18
+ href: `#${heading.id ?? heading.text}`,
19
+ style: normalizeStyle({ "--padding-left": `${heading.level * 0.5}rem` })
20
+ }, [
21
+ createElementVNode("sup", null, [
22
+ createVNode(ElmInlineText, {
23
+ text: `H${heading.level}`,
24
+ size: "0.6rem",
25
+ color: "#6987b8"
26
+ }, null, 8, ["text"])
27
+ ]),
28
+ createVNode(ElmInlineText, {
29
+ text: heading.text
30
+ }, null, 8, ["text"]),
31
+ createVNode(unref(Icon), {
32
+ icon: "heroicons:bars-arrow-down",
33
+ class: normalizeClass(_ctx.$style.icon)
34
+ }, null, 8, ["class"])
35
+ ], 14, _hoisted_1);
36
+ }), 256))
37
+ ], 2);
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ _sfc_main as default
43
+ };
@@ -0,0 +1,26 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._toc_gvfxl_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_gvfxl_1{border-left-color:#ffffff26}._toc_gvfxl_1 ._link_gvfxl_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_gvfxl_1 ._link_gvfxl_13:hover{background-color:#6987b833}._toc_gvfxl_1 ._link_gvfxl_13 ._icon_gvfxl_28{width:12px;height:12px;color:#6987b8}"));
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_gvfxl_1";
14
+ const link = "_link_gvfxl_13";
15
+ const icon = "_icon_gvfxl_28";
16
+ const style0 = {
17
+ toc,
18
+ link,
19
+ icon
20
+ };
21
+ export {
22
+ style0 as default,
23
+ icon,
24
+ link,
25
+ toc
26
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
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-061854af],.v-leave-from[data-v-061854af]{opacity:1}.v-enter-active[data-v-061854af],.v-leave-active[data-v-061854af]{transition:opacity .3s}.v-enter-from[data-v-061854af],.v-leave-to[data-v-061854af]{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-061854af"]]);
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 { Icon } from "@iconify/vue";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "ElmColorSample",
8
+ props: {
9
+ color: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const { blue, green, red } = parseToRgb(props.color);
14
+ const { hue, saturation, lightness } = parseToHsl(props.color);
15
+ const hex = rgbToColorString(parseToRgb(props.color));
16
+ const rgb = `rgb(${red}, ${green}, ${blue})`;
17
+ const hsl = `hsl(${Math.floor(hue)}, ${Math.floor(saturation * 100)}%, ${Math.floor(lightness * 100)}%)`;
18
+ const { copy, copied } = useClipboard();
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createElementBlock("div", {
21
+ style: normalizeStyle({ "--color": _ctx.color })
22
+ }, [
23
+ createVNode(ElmTooltip, null, {
24
+ original: withCtx(() => [
25
+ createElementVNode("div", {
26
+ class: normalizeClass(_ctx.$style["color-bg"]),
27
+ style: normalizeStyle({
28
+ "--background-color": _ctx.color
29
+ }),
30
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(copy)(unref(hex)))
31
+ }, [
32
+ createVNode(Transition, null, {
33
+ default: withCtx(() => [
34
+ unref(copied) ? (openBlock(), createBlock(unref(Icon), {
35
+ key: 0,
36
+ icon: "heroicons:check",
37
+ style: { color: "white" },
38
+ width: "16",
39
+ height: "16"
40
+ })) : createCommentVNode("", true)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ], 6),
45
+ createElementVNode("div", {
46
+ class: normalizeClass(_ctx.$style.text),
47
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(copy)(unref(hex)))
48
+ }, toDisplayString(unref(hex)), 3)
49
+ ]),
50
+ tooltip: withCtx(() => [
51
+ createElementVNode("div", {
52
+ class: normalizeClass(_ctx.$style.text),
53
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(copy)(unref(hex)))
54
+ }, toDisplayString(unref(hex)), 3),
55
+ createElementVNode("div", {
56
+ class: normalizeClass(_ctx.$style.text),
57
+ onClick: _cache[3] || (_cache[3] = ($event) => unref(copy)(rgb))
58
+ }, toDisplayString(rgb), 2),
59
+ createElementVNode("div", {
60
+ class: normalizeClass(_ctx.$style.text),
61
+ onClick: _cache[4] || (_cache[4] = ($event) => unref(copy)(hsl))
62
+ }, toDisplayString(hsl), 2)
63
+ ]),
64
+ _: 1
65
+ })
66
+ ], 4);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main as default
72
+ };