@elmethis/core 1.0.0-alpha.16 → 1.0.0-alpha.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/components/badge/ElmBadge.css +11 -0
- package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
- package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
- package/dist/components/badge/ElmBadge.vue.mjs +10 -0
- package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
- package/dist/components/badge/ElmBadge.vue3.mjs +14 -0
- package/dist/components/badge/ElmTag.css +29 -0
- package/dist/components/badge/ElmTag.stories.d.ts +7 -0
- package/dist/components/badge/ElmTag.vue.d.ts +14 -0
- package/dist/components/badge/ElmTag.vue.mjs +10 -0
- package/dist/components/badge/ElmTag.vue2.mjs +39 -0
- package/dist/components/badge/ElmTag.vue3.mjs +14 -0
- package/dist/components/code/ElmCodeBlock.css +58 -0
- package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
- package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
- package/dist/components/code/ElmCodeBlock.vue2.mjs +86 -0
- package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
- package/dist/components/code/ElmKatex.css +28 -0
- package/dist/components/code/ElmKatex.vue.d.ts +3 -1
- package/dist/components/code/ElmKatex.vue.mjs +10 -0
- package/dist/components/code/ElmKatex.vue2.mjs +62 -0
- package/dist/components/code/ElmKatex.vue3.mjs +8 -0
- package/dist/components/code/ElmShikiHighlighter.css +4 -0
- package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
- package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
- package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
- package/dist/components/code/ElmShikiHighlighter.vue2.mjs +47 -0
- package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
- package/dist/components/code/ElmShikiHighlighter2.css +23 -0
- package/dist/components/code/shikiInstance.d.ts +2 -0
- package/dist/components/code/shikiInstance.mjs +76 -0
- package/dist/components/containments/ElmColumn.css +3 -0
- package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
- package/dist/components/containments/ElmColumn.vue.mjs +10 -0
- package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumn.vue3.mjs +8 -0
- package/dist/components/containments/ElmColumnList.css +5 -0
- package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
- package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
- package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumnList.vue3.mjs +6 -0
- package/dist/components/containments/ElmDesktopWindow.css +27 -0
- package/dist/components/containments/ElmDesktopWindow.vue.d.ts +3 -2
- package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
- package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
- package/dist/components/containments/ElmDesktopWindow.vue3.mjs +14 -0
- package/dist/components/containments/ElmModal.css +12 -0
- package/dist/components/containments/ElmModal.stories.d.ts +6 -0
- package/dist/components/containments/ElmModal.vue.d.ts +35 -0
- package/dist/components/containments/ElmModal.vue.mjs +10 -0
- package/dist/components/containments/ElmModal.vue2.mjs +44 -0
- package/dist/components/containments/ElmModal.vue3.mjs +11 -0
- package/dist/components/containments/ElmModal2.css +33 -0
- package/dist/components/containments/ElmParallax.css +14 -0
- package/dist/components/containments/ElmParallax.vue.mjs +10 -0
- package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
- package/dist/components/containments/ElmParallax.vue3.mjs +8 -0
- package/dist/components/containments/ElmSnackbar.css +56 -0
- package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
- package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
- package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
- package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
- package/dist/components/containments/ElmSnackbar.vue3.mjs +14 -0
- package/dist/components/containments/ElmSnackbarContainer.css +9 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
- package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
- package/dist/components/containments/ElmSnackbarContainer2.css +20 -0
- package/dist/components/containments/ElmToggle.css +13 -0
- package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
- package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
- package/dist/components/containments/ElmToggle.vue.mjs +10 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
- package/dist/components/containments/ElmToggle2.css +43 -0
- package/dist/components/containments/ElmTooltip.css +14 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
- package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
- package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
- package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
- package/dist/components/containments/ElmTooltip2.css +15 -0
- package/dist/components/containments/useSnackbarState.d.ts +28 -0
- package/dist/components/data/ElmMultiProgress.css +23 -0
- package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
- package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
- package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
- package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
- package/dist/components/data/ElmMultiProgress.vue3.mjs +11 -0
- package/dist/components/data/ElmProgress.css +84 -0
- package/dist/components/data/ElmProgress.stories.d.ts +1 -0
- package/dist/components/data/ElmProgress.vue.d.ts +6 -1
- package/dist/components/data/ElmProgress.vue.mjs +10 -0
- package/dist/components/data/ElmProgress.vue2.mjs +53 -0
- package/dist/components/data/ElmProgress.vue3.mjs +20 -0
- package/dist/components/data/ElmStatusMessage.css +12 -0
- package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
- package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
- package/dist/components/data/ElmStatusMessage.vue.mjs +10 -0
- package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
- package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
- package/dist/components/data/ElmStatusMessage2.css +9 -0
- package/dist/components/fallback/ElmBlockFallback.css +7 -0
- package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
- package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
- package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
- package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
- package/dist/components/fallback/ElmBlockFallback.vue3.mjs +6 -0
- package/dist/components/fallback/ElmRectangleWave.css +33 -0
- package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
- package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
- package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
- package/dist/components/fallback/ElmRectangleWave.vue3.mjs +9 -0
- package/dist/components/fallback/ElmSpinner.css +25 -0
- package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
- package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
- package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
- package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
- package/dist/components/fallback/ElmSpinner.vue3.mjs +12 -0
- package/dist/components/form/ElmButton.css +12 -0
- package/dist/components/form/ElmButton.stories.d.ts +11 -0
- package/dist/components/form/ElmButton.vue.d.ts +41 -0
- package/dist/components/form/ElmButton.vue.mjs +10 -0
- package/dist/components/form/ElmButton.vue2.mjs +57 -0
- package/dist/components/form/ElmButton.vue3.mjs +20 -0
- package/dist/components/form/ElmButton2.css +65 -0
- package/dist/components/form/ElmCheckbox.css +67 -0
- package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
- package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
- package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
- package/dist/components/form/ElmCheckbox.vue3.mjs +22 -0
- package/dist/components/form/ElmSwitch.css +42 -0
- package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
- package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
- package/dist/components/form/ElmSwitch.vue.mjs +10 -0
- package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
- package/dist/components/form/ElmSwitch.vue3.mjs +16 -0
- package/dist/components/form/ElmTextField.css +163 -0
- package/dist/components/form/ElmTextField.stories.d.ts +6 -0
- package/dist/components/form/ElmTextField.vue.d.ts +30 -0
- package/dist/components/form/ElmTextField.vue.mjs +10 -0
- package/dist/components/form/ElmTextField.vue2.mjs +124 -0
- package/dist/components/form/ElmTextField.vue3.mjs +34 -0
- package/dist/components/form/ElmTotp.css +60 -0
- package/dist/components/form/ElmTotp.stories.d.ts +6 -0
- package/dist/components/form/ElmTotp.vue.d.ts +12 -0
- package/dist/components/form/ElmTotp.vue.mjs +10 -0
- package/dist/components/form/ElmTotp.vue2.mjs +102 -0
- package/dist/components/form/ElmTotp.vue3.mjs +22 -0
- package/dist/components/headings/ElmFragmentIdentifier.css +20 -0
- package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +54 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
- package/dist/components/headings/ElmHeading1.css +56 -0
- package/dist/components/headings/ElmHeading1.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
- package/dist/components/headings/ElmHeading1.vue3.mjs +8 -0
- package/dist/components/headings/ElmHeading2.css +72 -0
- package/dist/components/headings/ElmHeading2.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
- package/dist/components/headings/ElmHeading2.vue3.mjs +11 -0
- package/dist/components/headings/ElmHeading3.css +42 -0
- package/dist/components/headings/ElmHeading3.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
- package/dist/components/headings/ElmHeading3.vue3.mjs +8 -0
- package/dist/components/headings/ElmHeading4.css +25 -0
- package/dist/components/headings/ElmHeading4.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading4.vue3.mjs +8 -0
- package/dist/components/headings/ElmHeading5.css +25 -0
- package/dist/components/headings/ElmHeading5.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading5.vue3.mjs +8 -0
- package/dist/components/headings/ElmHeading6.css +25 -0
- package/dist/components/headings/ElmHeading6.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading6.vue3.mjs +8 -0
- package/dist/components/icon/ElmArrowIcon.css +44 -0
- package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
- package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
- package/dist/components/icon/ElmArrowIcon.vue3.mjs +17 -0
- package/dist/components/icon/ElmBookmarkIcon.css +40 -0
- package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
- package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
- package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
- package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +15 -0
- package/dist/components/icon/ElmCubeIcon.css +38 -0
- package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
- package/dist/components/icon/ElmCubeIcon.vue3.mjs +12 -0
- package/dist/components/icon/ElmDotLoadingIcon.css +41 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
- package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +14 -0
- package/dist/components/icon/ElmLanguageIcon.css +12 -0
- package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
- package/dist/components/icon/ElmLanguageIcon2.css +9 -0
- package/dist/components/icon/ElmLoginIcon.css +16 -0
- package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
- package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
- package/dist/components/icon/ElmLoginIcon.vue3.mjs +8 -0
- package/dist/components/icon/ElmToggleTheme.css +18 -0
- package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
- package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
- package/dist/components/icon/ElmToggleTheme.vue3.mjs +8 -0
- package/dist/components/icon/languages/Bash.css +6 -0
- package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
- package/dist/{Bash-KV1blS97.js → components/icon/languages/Bash.vue.mjs} +20 -15
- package/dist/components/icon/languages/Bash.vue2.mjs +8 -0
- package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
- package/dist/components/icon/languages/Css.vue.mjs +19 -0
- package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
- package/dist/components/icon/languages/Rust.vue.mjs +17 -0
- package/dist/components/inline/ElmInlineIcon.stories.d.ts +6 -0
- package/dist/components/inline/ElmInlineIcon.vue.d.ts +6 -0
- package/dist/components/inline/ElmInlineLink.css +36 -0
- package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
- package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
- package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -0
- package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
- package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
- package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
- package/dist/components/inline/ElmInlineText.css +41 -0
- package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
- package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
- package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
- package/dist/components/inline/ElmInlineText.vue3.mjs +11 -0
- package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
- package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
- package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
- package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
- package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
- package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
- package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
- package/dist/components/media/ElmFile.css +52 -0
- package/dist/components/media/ElmFile.vue.d.ts +6 -1
- package/dist/components/media/ElmFile.vue.mjs +10 -0
- package/dist/components/media/ElmFile.vue2.mjs +77 -0
- package/dist/components/media/ElmFile.vue3.mjs +14 -0
- package/dist/components/media/ElmImage.css +12 -0
- package/dist/components/media/ElmImage.stories.d.ts +1 -0
- package/dist/components/media/ElmImage.vue.d.ts +5 -0
- package/dist/components/media/ElmImage.vue.mjs +10 -0
- package/dist/components/media/ElmImage.vue2.mjs +91 -0
- package/dist/components/media/ElmImage.vue3.mjs +18 -0
- package/dist/components/media/ElmImage2.css +51 -0
- package/dist/components/navigation/ElmBookmark.css +104 -0
- package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
- package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
- package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
- package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
- package/dist/components/navigation/ElmBookmark.vue3.mjs +32 -0
- package/dist/components/navigation/ElmBreadcrumb.css +46 -0
- package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
- package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
- package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +18 -0
- package/dist/components/navigation/ElmPagetop.css +105 -0
- package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
- package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
- package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
- package/dist/components/navigation/ElmPagetop.vue3.mjs +18 -0
- package/dist/components/navigation/ElmTableOfContents.css +33 -0
- package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
- package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
- package/dist/components/navigation/ElmTableOfContents.vue3.mjs +14 -0
- package/dist/components/others/ElmColorSample.css +12 -0
- package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
- package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
- package/dist/components/others/ElmColorSample.vue.mjs +10 -0
- package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
- package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
- package/dist/components/others/ElmColorSample2.css +34 -0
- package/dist/components/others/ElmColorTable.css +26 -0
- package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
- package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
- package/dist/components/others/ElmColorTable.vue.mjs +10 -0
- package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
- package/dist/components/others/ElmColorTable.vue3.mjs +10 -0
- package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
- package/dist/components/others/ElmTyping.vue.d.ts +4 -0
- package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +39 -8
- package/dist/components/table/ElmTable.css +6 -0
- package/dist/components/table/ElmTable.vue.d.ts +8 -2
- package/dist/components/table/ElmTable.vue.mjs +6 -0
- package/dist/components/table/ElmTable.vue2.mjs +22 -0
- package/dist/components/table/ElmTableBody.css +48 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
- package/dist/components/table/ElmTableBody.vue.mjs +15 -0
- package/dist/components/table/ElmTableBody.vue3.mjs +5 -0
- package/dist/components/table/ElmTableCell.css +16 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
- package/dist/components/table/ElmTableCell.vue.mjs +6 -0
- package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
- package/dist/components/table/ElmTableHeader.css +40 -0
- package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
- package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
- package/dist/components/table/ElmTableHeader.vue3.mjs +5 -0
- package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
- package/dist/components/table/ElmTableRow.vue.mjs +14 -0
- package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
- package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
- package/dist/components/typography/ElmBlockQuote.css +12 -0
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
- package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
- package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
- package/dist/components/typography/ElmBlockQuote.vue3.mjs +8 -0
- package/dist/components/typography/ElmBulletedList.css +21 -0
- package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
- package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
- package/dist/components/typography/ElmBulletedList.vue3.mjs +5 -0
- package/dist/components/typography/ElmCallout.css +33 -0
- package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
- package/dist/components/typography/ElmCallout.vue.mjs +10 -0
- package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
- package/dist/components/typography/ElmCallout.vue3.mjs +14 -0
- package/dist/components/typography/ElmDivider.css +40 -0
- package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
- package/dist/components/typography/ElmDivider.vue.mjs +10 -0
- package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
- package/dist/components/typography/ElmDivider.vue3.mjs +8 -0
- package/dist/components/typography/ElmListItem.css +3 -0
- package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
- package/dist/components/typography/ElmListItem.vue.mjs +10 -0
- package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
- package/dist/components/typography/ElmListItem.vue3.mjs +8 -0
- package/dist/components/typography/ElmNumberedList.css +26 -0
- package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
- package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
- package/dist/components/typography/ElmNumberedList.vue3.mjs +5 -0
- package/dist/components/typography/ElmParagraph.css +25 -0
- package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
- package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
- package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
- package/dist/components/typography/ElmParagraph.vue3.mjs +8 -0
- package/dist/hooks/useElmethisTheme.d.ts +4 -0
- package/dist/hooks/useElmethisTheme.mjs +43 -0
- package/dist/hooks/useTyping.d.ts +17 -0
- package/dist/index.d.ts +122 -45
- package/dist/index.mjs +128 -0
- package/dist/node_modules/.pnpm/katex@0.16.21/node_modules/katex/dist/katex.min.css +1 -0
- package/package.json +38 -30
- package/dist/JavaScript-u46IG0c4.js +0 -22
- package/dist/Rust-Dg96oGSm.js +0 -16
- package/dist/TypeScript-SVZmAXrW.js +0 -22
- package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
- package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
- package/dist/elmethis.js +0 -47
- package/dist/elmethis.umd.cjs +0 -419
- package/dist/index-KH8UFSIm.js +0 -16258
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as ElmBadge } from './ElmBadge.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmBadge>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ElmBadgeProps {
|
|
2
|
+
color: string;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
left?(_: {}): any;
|
|
8
|
+
right?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLSpanElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmBadge.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmBadge.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmBadge as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, unref, renderSlot } from "vue";
|
|
2
|
+
import { getLuminance } from "polished";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmBadge",
|
|
5
|
+
props: {
|
|
6
|
+
color: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("span", {
|
|
11
|
+
class: normalizeClass(_ctx.$style.badge),
|
|
12
|
+
style: normalizeStyle({ "--bg-color": _ctx.color })
|
|
13
|
+
}, [
|
|
14
|
+
createElementVNode("span", {
|
|
15
|
+
class: normalizeClass(_ctx.$style.left),
|
|
16
|
+
style: normalizeStyle({
|
|
17
|
+
color: unref(getLuminance)(_ctx.color) > 0.5 ? "rgba(0,0,0,0.7)" : "rgba(255,255,255,0.7)"
|
|
18
|
+
})
|
|
19
|
+
}, [
|
|
20
|
+
renderSlot(_ctx.$slots, "left")
|
|
21
|
+
], 6),
|
|
22
|
+
createElementVNode("span", {
|
|
23
|
+
class: normalizeClass(_ctx.$style.right)
|
|
24
|
+
}, [
|
|
25
|
+
renderSlot(_ctx.$slots, "right")
|
|
26
|
+
], 2)
|
|
27
|
+
], 6);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
_sfc_main as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
._tag_xg111_1 {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
width: -moz-min-content;
|
|
4
|
+
width: min-content;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
flex-wrap: nowrap;
|
|
7
|
+
justify-content: flex-start;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-width: 1px;
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-radius: 0.25rem;
|
|
12
|
+
border-color: var(--color);
|
|
13
|
+
color: rgba(0, 0, 0, 0.7);
|
|
14
|
+
}
|
|
15
|
+
[data-theme=dark] ._tag_xg111_1 {
|
|
16
|
+
color: rgba(255, 255, 255, 0.7);
|
|
17
|
+
}
|
|
18
|
+
._icon_xg111_18 {
|
|
19
|
+
display: block;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0.25rem;
|
|
23
|
+
color: var(--font-color);
|
|
24
|
+
border-radius: 0.125rem 0 0 0.125rem;
|
|
25
|
+
}
|
|
26
|
+
._text_xg111_27 {
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
padding-inline: 0.5rem;
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmTag } from './ElmTag.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmTag>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Multiple: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ElmTagProps {
|
|
2
|
+
/**
|
|
3
|
+
* The text to display in the tag.
|
|
4
|
+
*/
|
|
5
|
+
text: string;
|
|
6
|
+
/**
|
|
7
|
+
* The color of the tag.
|
|
8
|
+
*/
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<ElmTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTagProps> & Readonly<{}>, {
|
|
12
|
+
color: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmTag.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmTag.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmTag as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, createElementVNode, unref } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
4
|
+
import { getLuminance } from "polished";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ElmTag",
|
|
7
|
+
props: {
|
|
8
|
+
text: {},
|
|
9
|
+
color: { default: "transparent" }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createElementBlock("div", {
|
|
14
|
+
class: normalizeClass(_ctx.$style.tag),
|
|
15
|
+
style: normalizeStyle({ "--color": _ctx.color })
|
|
16
|
+
}, [
|
|
17
|
+
createVNode(unref(Icon), {
|
|
18
|
+
icon: "tabler:tag",
|
|
19
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
20
|
+
style: normalizeStyle({
|
|
21
|
+
backgroundColor: _ctx.color,
|
|
22
|
+
"--font-color": unref(getLuminance)(_ctx.color) > 0.5 ? "rgba(0,0,0,0.7)" : "rgba(255,255,255,0.7)"
|
|
23
|
+
})
|
|
24
|
+
}, null, 8, ["class", "style"]),
|
|
25
|
+
createElementVNode("div", {
|
|
26
|
+
class: normalizeClass(_ctx.$style.text)
|
|
27
|
+
}, [
|
|
28
|
+
createVNode(ElmInlineText, {
|
|
29
|
+
style: { color: "unset" },
|
|
30
|
+
text: _ctx.text
|
|
31
|
+
}, null, 8, ["text"])
|
|
32
|
+
], 2)
|
|
33
|
+
], 6);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
_sfc_main as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
._wrapper_1681m_1 {
|
|
2
|
+
margin-block: var(--margin-block);
|
|
3
|
+
opacity: var(--opacity);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
border-radius: 0.25rem;
|
|
7
|
+
transition: background-color 400ms, opacity 800ms;
|
|
8
|
+
background-color: rgba(255, 255, 255, 0.4);
|
|
9
|
+
box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1);
|
|
10
|
+
}
|
|
11
|
+
[data-theme=dark] ._wrapper_1681m_1 {
|
|
12
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
13
|
+
box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.3);
|
|
14
|
+
}
|
|
15
|
+
._header_1681m_16 {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
padding: 0.25rem 0.5rem 0.5rem 0.5rem;
|
|
18
|
+
margin: 0.5rem;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
font-family: "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
23
|
+
border-bottom: solid 1px rgba(0, 0, 0, 0.2);
|
|
24
|
+
}
|
|
25
|
+
[data-theme=dark] ._header_1681m_16 {
|
|
26
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
27
|
+
}
|
|
28
|
+
._header__left_1681m_30 {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
._copy-icon_1681m_37 {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
padding: 0.125rem;
|
|
37
|
+
width: 26px;
|
|
38
|
+
height: 26px;
|
|
39
|
+
border-radius: 0.125rem;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: background-color 200ms;
|
|
42
|
+
color: rgba(0, 0, 0, 0.7);
|
|
43
|
+
}
|
|
44
|
+
[data-theme=dark] ._copy-icon_1681m_37 {
|
|
45
|
+
color: rgba(255, 255, 255, 0.7);
|
|
46
|
+
}
|
|
47
|
+
._copy-icon_1681m_37:hover {
|
|
48
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
49
|
+
}
|
|
50
|
+
[data-theme=dark] ._copy-icon_1681m_37:hover {
|
|
51
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
52
|
+
}
|
|
53
|
+
._code_1681m_57 {
|
|
54
|
+
padding: 0.25rem 1rem 1rem 1rem;
|
|
55
|
+
overflow-x: auto;
|
|
56
|
+
scrollbar-width: thin;
|
|
57
|
+
scrollbar-color: rgba(105, 135, 184, 0.3) rgba(105, 135, 184, 0.15);
|
|
58
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
export interface ElmCodeBlockProps {
|
|
2
3
|
/**
|
|
3
4
|
* The code to display.
|
|
@@ -12,8 +13,14 @@ export interface ElmCodeBlockProps {
|
|
|
12
13
|
* If not provided, the language will be used.
|
|
13
14
|
*/
|
|
14
15
|
caption?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The margin of the code block.
|
|
18
|
+
*/
|
|
19
|
+
margin?: Property.MarginBlock;
|
|
15
20
|
}
|
|
16
21
|
declare const _default: import('vue').DefineComponent<ElmCodeBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCodeBlockProps> & Readonly<{}>, {
|
|
17
22
|
language: string;
|
|
18
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
target: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement>;
|
|
19
26
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmCodeBlock.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmCodeBlock.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmCodeBlock as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent, defineAsyncComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, withCtx, unref } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmLanguageIcon from "../icon/ElmLanguageIcon.vue.mjs";
|
|
4
|
+
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
5
|
+
import { useClipboard, useIntersectionObserver } from "@vueuse/core";
|
|
6
|
+
import ElmTooltip from "../containments/ElmTooltip.vue.mjs";
|
|
7
|
+
import ElmBlockFallback from "../fallback/ElmBlockFallback.vue.mjs";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "ElmCodeBlock",
|
|
10
|
+
props: {
|
|
11
|
+
code: {},
|
|
12
|
+
language: { default: "txt" },
|
|
13
|
+
caption: {},
|
|
14
|
+
margin: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const AsyncElmShikiHighlighter = defineAsyncComponent({
|
|
19
|
+
loader: () => import("./ElmShikiHighlighter.vue.mjs"),
|
|
20
|
+
loadingComponent: ElmBlockFallback
|
|
21
|
+
});
|
|
22
|
+
const { copy, copied } = useClipboard({ source: props.code });
|
|
23
|
+
const target = ref(null);
|
|
24
|
+
const targetIsVisible = ref(false);
|
|
25
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
26
|
+
targetIsVisible.value = isIntersecting;
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
ref_key: "target",
|
|
31
|
+
ref: target,
|
|
32
|
+
class: normalizeClass(_ctx.$style.wrapper),
|
|
33
|
+
style: normalizeStyle({
|
|
34
|
+
"--margin-block": _ctx.margin,
|
|
35
|
+
"--opacity": targetIsVisible.value ? 1 : 0
|
|
36
|
+
})
|
|
37
|
+
}, [
|
|
38
|
+
createElementVNode("div", {
|
|
39
|
+
class: normalizeClass(_ctx.$style.header)
|
|
40
|
+
}, [
|
|
41
|
+
createElementVNode("div", {
|
|
42
|
+
class: normalizeClass(_ctx.$style.header__left)
|
|
43
|
+
}, [
|
|
44
|
+
createVNode(ElmLanguageIcon, {
|
|
45
|
+
language: _ctx.language,
|
|
46
|
+
size: 20
|
|
47
|
+
}, null, 8, ["language"]),
|
|
48
|
+
createVNode(ElmInlineText, {
|
|
49
|
+
text: _ctx.caption ?? _ctx.language
|
|
50
|
+
}, null, 8, ["text"])
|
|
51
|
+
], 2),
|
|
52
|
+
createVNode(ElmTooltip, null, {
|
|
53
|
+
original: withCtx(() => [
|
|
54
|
+
createVNode(unref(Icon), {
|
|
55
|
+
class: normalizeClass(_ctx.$style["copy-icon"]),
|
|
56
|
+
onClick: _cache[0] || (_cache[0] = () => {
|
|
57
|
+
unref(copy)(_ctx.code);
|
|
58
|
+
}),
|
|
59
|
+
icon: unref(copied) ? "mdi:clipboard-check-multiple-outline" : "mdi:clipboard-multiple-outline"
|
|
60
|
+
}, null, 8, ["class", "icon"])
|
|
61
|
+
]),
|
|
62
|
+
tooltip: withCtx(() => [
|
|
63
|
+
createElementVNode("div", null, [
|
|
64
|
+
createVNode(ElmInlineText, {
|
|
65
|
+
text: unref(copied) ? "Copied to Clipboard!" : "Copy to Clipboard"
|
|
66
|
+
}, null, 8, ["text"])
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
71
|
+
], 2),
|
|
72
|
+
createElementVNode("div", {
|
|
73
|
+
class: normalizeClass(_ctx.$style.code)
|
|
74
|
+
}, [
|
|
75
|
+
createVNode(unref(AsyncElmShikiHighlighter), {
|
|
76
|
+
code: _ctx.code,
|
|
77
|
+
language: _ctx.language
|
|
78
|
+
}, null, 8, ["code", "language"])
|
|
79
|
+
], 2)
|
|
80
|
+
], 6);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
_sfc_main as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const wrapper = "_wrapper_1681m_1";
|
|
2
|
+
const header = "_header_1681m_16";
|
|
3
|
+
const header__left = "_header__left_1681m_30";
|
|
4
|
+
const code = "_code_1681m_57";
|
|
5
|
+
const style0 = {
|
|
6
|
+
wrapper,
|
|
7
|
+
header,
|
|
8
|
+
header__left,
|
|
9
|
+
"copy-icon": "_copy-icon_1681m_37",
|
|
10
|
+
code
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
code,
|
|
14
|
+
style0 as default,
|
|
15
|
+
header,
|
|
16
|
+
header__left,
|
|
17
|
+
wrapper
|
|
18
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
._katex_vrtkg_1 {
|
|
2
|
+
margin-block: var(--margin-block);
|
|
3
|
+
color: rgba(0, 0, 0, 0.7);
|
|
4
|
+
}
|
|
5
|
+
._katex_vrtkg_1::-moz-selection {
|
|
6
|
+
color: rgba(255, 255, 255, 0.7);
|
|
7
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
8
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
9
|
+
}
|
|
10
|
+
._katex_vrtkg_1::selection {
|
|
11
|
+
color: rgba(255, 255, 255, 0.7);
|
|
12
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
13
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
14
|
+
}
|
|
15
|
+
[data-theme=dark] ._katex_vrtkg_1 {
|
|
16
|
+
color: rgba(255, 255, 255, 0.7);
|
|
17
|
+
color: var(--color, rgba(255, 255, 255, 0.7));
|
|
18
|
+
}
|
|
19
|
+
[data-theme=dark] ._katex_vrtkg_1::-moz-selection {
|
|
20
|
+
color: rgba(0, 0, 0, 0.7);
|
|
21
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
22
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
23
|
+
}
|
|
24
|
+
[data-theme=dark] ._katex_vrtkg_1::selection {
|
|
25
|
+
color: rgba(0, 0, 0, 0.7);
|
|
26
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
27
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
28
|
+
}
|
|
@@ -14,5 +14,7 @@ export interface ElmKatexProps {
|
|
|
14
14
|
}
|
|
15
15
|
declare const _default: import('vue').DefineComponent<ElmKatexProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmKatexProps> & Readonly<{}>, {
|
|
16
16
|
block: boolean;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
targetRef: unknown;
|
|
19
|
+
}, any>;
|
|
18
20
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmKatex.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmKatex.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmKatex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmKatex as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, ref, onServerPrefetch, onMounted, onUpdated, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, createElementBlock, toDisplayString } from "vue";
|
|
2
|
+
const _hoisted_1 = ["innerHTML"];
|
|
3
|
+
const _hoisted_2 = { key: 1 };
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmKatex",
|
|
6
|
+
props: {
|
|
7
|
+
expression: {},
|
|
8
|
+
block: { type: Boolean, default: false }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const isRendered = ref(false);
|
|
13
|
+
const html = ref(props.expression);
|
|
14
|
+
let katexRenderToString = null;
|
|
15
|
+
const loadKatex = async () => {
|
|
16
|
+
if (!katexRenderToString) {
|
|
17
|
+
const [{ renderToString }] = await Promise.all([
|
|
18
|
+
import("katex"),
|
|
19
|
+
Promise.resolve({ })
|
|
20
|
+
]);
|
|
21
|
+
katexRenderToString = renderToString;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const render = async () => {
|
|
25
|
+
await loadKatex();
|
|
26
|
+
if (!isRendered.value && katexRenderToString) {
|
|
27
|
+
try {
|
|
28
|
+
html.value = katexRenderToString(props.expression, {
|
|
29
|
+
displayMode: props.block
|
|
30
|
+
});
|
|
31
|
+
isRendered.value = true;
|
|
32
|
+
} catch (err) {
|
|
33
|
+
console.error("KaTeX rendering error:", err);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
onServerPrefetch(render);
|
|
38
|
+
onMounted(render);
|
|
39
|
+
onUpdated(render);
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createBlock(resolveDynamicComponent(props.block ? "div" : "span"), {
|
|
42
|
+
class: normalizeClass(_ctx.$style.katex),
|
|
43
|
+
key: JSON.stringify(props),
|
|
44
|
+
ref: "targetRef",
|
|
45
|
+
style: normalizeStyle({
|
|
46
|
+
"--margin-block": props.block ? "3rem" : void 0
|
|
47
|
+
})
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
isRendered.value ? (openBlock(), createElementBlock("span", {
|
|
51
|
+
key: 0,
|
|
52
|
+
innerHTML: html.value
|
|
53
|
+
}, null, 8, _hoisted_1)) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.expression), 1))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["class", "style"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
_sfc_main as default
|
|
62
|
+
};
|
package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as ElmShikiHighlighter } from './ElmShikiHighlighter.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmShikiHighlighter>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
7
|
-
export declare const Rust: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface ElmShikiHighlighterProps {
|
|
2
2
|
/**
|
|
3
3
|
* The code to display.
|
|
4
4
|
*/
|
|
@@ -8,7 +8,7 @@ export interface ElmPrismHighlighterProps {
|
|
|
8
8
|
*/
|
|
9
9
|
language?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<
|
|
11
|
+
declare const _default: import('vue').DefineComponent<ElmShikiHighlighterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmShikiHighlighterProps> & Readonly<{}>, {
|
|
12
12
|
language: string;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _sfc_main from "./ElmShikiHighlighter.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmShikiHighlighter.vue3.mjs";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const cssModules = {
|
|
6
|
+
"$style": style0
|
|
7
|
+
};
|
|
8
|
+
const ElmShikiHighlighter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
9
|
+
export {
|
|
10
|
+
ElmShikiHighlighter as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onServerPrefetch, createElementBlock, openBlock, normalizeClass, createElementVNode } from "vue";
|
|
2
|
+
import { getHighlighterSingleton } from "./shikiInstance.mjs";
|
|
3
|
+
const _hoisted_1 = ["innerHTML"];
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmShikiHighlighter",
|
|
6
|
+
props: {
|
|
7
|
+
code: {},
|
|
8
|
+
language: { default: "txt" }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const isRendered = ref(false);
|
|
13
|
+
const html = ref(`<pre>${props.code}</pre>`);
|
|
14
|
+
const render = async () => {
|
|
15
|
+
if (!isRendered.value) {
|
|
16
|
+
const highlighter = await getHighlighterSingleton();
|
|
17
|
+
html.value = highlighter.codeToHtml(props.code, {
|
|
18
|
+
lang: props.language,
|
|
19
|
+
themes: {
|
|
20
|
+
dark: "vitesse-dark",
|
|
21
|
+
light: "vitesse-light"
|
|
22
|
+
},
|
|
23
|
+
colorReplacements: {
|
|
24
|
+
"#ffffff": "transparent",
|
|
25
|
+
"#121212": "transparent"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
isRendered.value = true;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
onMounted(render);
|
|
32
|
+
onServerPrefetch(render);
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("div", {
|
|
35
|
+
class: normalizeClass(_ctx.$style.code)
|
|
36
|
+
}, [
|
|
37
|
+
createElementVNode("div", {
|
|
38
|
+
class: "shiki",
|
|
39
|
+
innerHTML: html.value
|
|
40
|
+
}, null, 8, _hoisted_1)
|
|
41
|
+
], 2);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
_sfc_main as default
|
|
47
|
+
};
|