@elmethis/vue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/components/ag-ui/message/ElmAgUiMessageUser.stories.d.ts +6 -0
- package/dist/components/ag-ui/message/ElmAgUiMessageUser.vue.d.ts +8 -0
- package/dist/components/code/ElmCodeBlock.stories.d.ts +9 -0
- package/dist/components/code/ElmCodeBlock.vue.d.ts +48 -0
- package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
- package/dist/components/code/ElmCodeBlock.vue2.mjs +134 -0
- package/dist/components/code/ElmCodeBlock.vue3.mjs +43 -0
- package/dist/components/code/ElmKatex.stories.d.ts +8 -0
- package/dist/components/code/ElmKatex.vue.d.ts +20 -0
- package/dist/components/code/ElmKatex.vue.mjs +10 -0
- package/dist/components/code/ElmKatex.vue2.mjs +68 -0
- package/dist/components/code/ElmKatex.vue3.mjs +20 -0
- package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
- package/dist/components/code/ElmMermaid.vue.d.ts +7 -0
- package/dist/components/code/ElmMermaid.vue.mjs +10 -0
- package/dist/components/code/ElmMermaid.vue2.mjs +59 -0
- package/dist/components/code/ElmMermaid.vue3.mjs +26 -0
- package/dist/components/code/ElmShikiHighlighter.stories.d.ts +6 -0
- package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
- package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
- package/dist/components/code/ElmShikiHighlighter.vue2.mjs +55 -0
- package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
- package/dist/components/code/shikiInstance.d.ts +2 -0
- package/dist/components/code/shikiInstance.mjs +76 -0
- package/dist/components/containments/ElmColumn.stories.d.ts +6 -0
- package/dist/components/containments/ElmColumn.vue.d.ts +19 -0
- package/dist/components/containments/ElmColumnList.vue.d.ts +19 -0
- package/dist/components/containments/ElmConfirmModal.stories.d.ts +6 -0
- package/dist/components/containments/ElmConfirmModal.vue.d.ts +37 -0
- package/dist/components/containments/ElmConfirmModal.vue.mjs +10 -0
- package/dist/components/containments/ElmConfirmModal.vue2.mjs +98 -0
- package/dist/components/containments/ElmConfirmModal.vue3.mjs +23 -0
- package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
- package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
- 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 +26 -0
- package/dist/components/containments/ElmModal.stories.d.ts +6 -0
- package/dist/components/containments/ElmModal.vue.d.ts +34 -0
- package/dist/components/containments/ElmModal.vue.mjs +10 -0
- package/dist/components/containments/ElmModal.vue2.mjs +56 -0
- package/dist/components/containments/ElmModal.vue3.mjs +23 -0
- package/dist/components/containments/ElmParallax.stories.d.ts +6 -0
- package/dist/components/containments/ElmParallax.vue.d.ts +6 -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 +20 -0
- package/dist/components/containments/ElmSimpleTooltip.stories.d.ts +7 -0
- package/dist/components/containments/ElmSimpleTooltip.vue.d.ts +21 -0
- package/dist/components/containments/ElmSimpleTooltip.vue.mjs +10 -0
- package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +37 -0
- package/dist/components/containments/ElmSimpleTooltip.vue3.mjs +26 -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 +41 -0
- package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +23 -0
- package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
- package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
- package/dist/components/containments/ElmToggle.stories.d.ts +7 -0
- package/dist/components/containments/ElmToggle.vue.d.ts +41 -0
- package/dist/components/containments/ElmToggle.vue.mjs +10 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +106 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +44 -0
- package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +40 -0
- package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
- package/dist/components/containments/ElmTooltip.vue2.mjs +56 -0
- package/dist/components/containments/ElmTooltip.vue3.mjs +26 -0
- package/dist/components/containments/useSnackbarState.d.ts +28 -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 +23 -0
- package/dist/components/data/ElmProgress.stories.d.ts +10 -0
- package/dist/components/data/ElmProgress.vue.d.ts +38 -0
- 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 +32 -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 +23 -0
- package/dist/components/data/ElmStatusMessage.vue2.mjs +76 -0
- package/dist/components/data/ElmStatusMessage.vue3.mjs +20 -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 +18 -0
- package/dist/components/fallback/ElmRectangleWave.stories.d.ts +6 -0
- package/dist/components/fallback/ElmRectangleWave.vue.d.ts +4 -0
- 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 +21 -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 +24 -0
- package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +6 -0
- package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +5 -0
- package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +10 -0
- package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +46 -0
- package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +29 -0
- package/dist/components/form/ElmButton.stories.d.ts +11 -0
- package/dist/components/form/ElmButton.vue.d.ts +42 -0
- package/dist/components/form/ElmButton.vue.mjs +23 -0
- package/dist/components/form/ElmButton.vue2.mjs +71 -0
- package/dist/components/form/ElmButton.vue3.mjs +39 -0
- package/dist/components/form/ElmCheckbox.stories.d.ts +6 -0
- package/dist/components/form/ElmCheckbox.vue.d.ts +26 -0
- 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 +34 -0
- package/dist/components/form/ElmSelect.stories.d.ts +6 -0
- package/dist/components/form/ElmSelect.vue.d.ts +48 -0
- package/dist/components/form/ElmSelect.vue.mjs +10 -0
- package/dist/components/form/ElmSelect.vue2.mjs +145 -0
- package/dist/components/form/ElmSelect.vue3.mjs +56 -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 +28 -0
- package/dist/components/form/ElmTextField.stories.d.ts +7 -0
- package/dist/components/form/ElmTextField.vue.d.ts +33 -0
- package/dist/components/form/ElmTextField.vue.mjs +10 -0
- package/dist/components/form/ElmTextField.vue2.mjs +150 -0
- package/dist/components/form/ElmTextField.vue3.mjs +49 -0
- package/dist/components/form/ElmValidation.stories.d.ts +6 -0
- package/dist/components/form/ElmValidation.vue.d.ts +9 -0
- package/dist/components/form/ElmValidation.vue.mjs +10 -0
- package/dist/components/form/ElmValidation.vue2.mjs +34 -0
- package/dist/components/form/ElmValidation.vue3.mjs +20 -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 +29 -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 +47 -0
- package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +26 -0
- package/dist/components/icon/ElmCubeIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmCubeIcon.vue.d.ts +10 -0
- 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 +24 -0
- package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +18 -0
- 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 +26 -0
- package/dist/components/icon/ElmInlineIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmInlineIcon.vue.d.ts +12 -0
- package/dist/components/icon/ElmInlineIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmInlineIcon.vue2.mjs +27 -0
- package/dist/components/icon/ElmInlineIcon.vue3.mjs +20 -0
- package/dist/components/icon/ElmLanguageIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmLanguageIcon.vue.d.ts +15 -0
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +147 -0
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +20 -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 +36 -0
- package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
- package/dist/components/icon/ElmMdiIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmMdiIcon.vue.d.ts +11 -0
- package/dist/components/icon/ElmMdiIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmMdiIcon.vue2.mjs +34 -0
- package/dist/components/icon/ElmMdiIcon.vue3.mjs +20 -0
- package/dist/components/icon/ElmSquareLoadingIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmSquareLoadingIcon.vue.d.ts +10 -0
- package/dist/components/icon/ElmSquareLoadingIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +37 -0
- package/dist/components/icon/ElmSquareLoadingIcon.vue3.mjs +26 -0
- package/dist/components/icon/ElmToggleTheme.stories.d.ts +6 -0
- package/dist/components/icon/ElmToggleTheme.vue.d.ts +11 -0
- package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
- package/dist/components/icon/ElmToggleTheme.vue2.mjs +41 -0
- package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
- package/dist/components/icon/languages/Bash.vue.d.ts +7 -0
- package/dist/components/icon/languages/Bash.vue.mjs +10 -0
- package/dist/components/icon/languages/Bash.vue2.mjs +34 -0
- package/dist/components/icon/languages/Bash.vue3.mjs +20 -0
- package/dist/components/icon/languages/C.vue.d.ts +7 -0
- package/dist/components/icon/languages/C.vue.mjs +34 -0
- package/dist/components/icon/languages/C.vue2.mjs +4 -0
- package/dist/components/icon/languages/Cplusplus.vue.d.ts +7 -0
- package/dist/components/icon/languages/Cplusplus.vue.mjs +38 -0
- package/dist/components/icon/languages/Cplusplus.vue2.mjs +4 -0
- package/dist/components/icon/languages/Csharp.vue.d.ts +7 -0
- package/dist/components/icon/languages/Csharp.vue.mjs +34 -0
- package/dist/components/icon/languages/Csharp.vue2.mjs +4 -0
- package/dist/components/icon/languages/Css.vue.d.ts +7 -0
- package/dist/components/icon/languages/Css.vue.mjs +26 -0
- package/dist/components/icon/languages/Css.vue2.mjs +4 -0
- package/dist/components/icon/languages/Go.vue.d.ts +7 -0
- package/dist/components/icon/languages/Go.vue.mjs +32 -0
- package/dist/components/icon/languages/Go.vue2.mjs +4 -0
- package/dist/components/icon/languages/Html.vue.d.ts +7 -0
- package/dist/components/icon/languages/Html.vue.mjs +38 -0
- package/dist/components/icon/languages/Html.vue2.mjs +4 -0
- package/dist/components/icon/languages/Java.vue.d.ts +7 -0
- package/dist/components/icon/languages/Java.vue.mjs +23 -0
- package/dist/components/icon/languages/Java.vue2.mjs +4 -0
- package/dist/components/icon/languages/Javascript.vue.d.ts +7 -0
- package/dist/components/icon/languages/Javascript.vue.mjs +30 -0
- package/dist/components/icon/languages/Javascript.vue2.mjs +4 -0
- package/dist/components/icon/languages/Json.vue.d.ts +7 -0
- package/dist/components/icon/languages/Json.vue.mjs +23 -0
- package/dist/components/icon/languages/Json.vue2.mjs +4 -0
- package/dist/components/icon/languages/Kotlin.vue.d.ts +7 -0
- package/dist/components/icon/languages/Kotlin.vue.mjs +23 -0
- package/dist/components/icon/languages/Kotlin.vue2.mjs +4 -0
- package/dist/components/icon/languages/Lua.vue.d.ts +7 -0
- package/dist/components/icon/languages/Lua.vue.mjs +34 -0
- package/dist/components/icon/languages/Lua.vue2.mjs +4 -0
- package/dist/components/icon/languages/Npm.vue.d.ts +7 -0
- package/dist/components/icon/languages/Npm.vue.mjs +30 -0
- package/dist/components/icon/languages/Npm.vue2.mjs +4 -0
- package/dist/components/icon/languages/Python.vue.d.ts +7 -0
- package/dist/components/icon/languages/Python.vue.mjs +23 -0
- package/dist/components/icon/languages/Python.vue2.mjs +4 -0
- package/dist/components/icon/languages/Rust.vue.d.ts +7 -0
- package/dist/components/icon/languages/Rust.vue.mjs +24 -0
- package/dist/components/icon/languages/Rust.vue2.mjs +4 -0
- package/dist/components/icon/languages/Sql.vue.d.ts +7 -0
- package/dist/components/icon/languages/Sql.vue.mjs +26 -0
- package/dist/components/icon/languages/Sql.vue2.mjs +4 -0
- package/dist/components/icon/languages/Terraform.vue.d.ts +7 -0
- package/dist/components/icon/languages/Terraform.vue.mjs +36 -0
- package/dist/components/icon/languages/Terraform.vue2.mjs +4 -0
- package/dist/components/icon/languages/Typescript.vue.d.ts +7 -0
- package/dist/components/icon/languages/Typescript.vue.mjs +30 -0
- package/dist/components/icon/languages/Typescript.vue2.mjs +4 -0
- package/dist/components/media/ElmFile.stories.d.ts +6 -0
- package/dist/components/media/ElmFile.vue.d.ts +21 -0
- package/dist/components/media/ElmFile.vue.mjs +10 -0
- package/dist/components/media/ElmFile.vue2.mjs +79 -0
- package/dist/components/media/ElmFile.vue3.mjs +23 -0
- package/dist/components/media/ElmImage.stories.d.ts +9 -0
- package/dist/components/media/ElmImage.vue.d.ts +27 -0
- package/dist/components/media/ElmImage.vue.mjs +10 -0
- package/dist/components/media/ElmImage.vue2.mjs +142 -0
- package/dist/components/media/ElmImage.vue3.mjs +35 -0
- package/dist/components/navigation/ElmBookmark.stories.d.ts +12 -0
- package/dist/components/navigation/ElmBookmark.vue.d.ts +53 -0
- package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
- package/dist/components/navigation/ElmBookmark.vue2.mjs +116 -0
- package/dist/components/navigation/ElmBookmark.vue3.mjs +41 -0
- package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +7 -0
- package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +19 -0
- package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +65 -0
- package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +24 -0
- package/dist/components/navigation/ElmPagetop.stories.d.ts +6 -0
- package/dist/components/navigation/ElmPagetop.vue.d.ts +10 -0
- package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
- package/dist/components/navigation/ElmPagetop.vue2.mjs +52 -0
- package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
- package/dist/components/navigation/ElmTableOfContents.stories.d.ts +7 -0
- package/dist/components/navigation/ElmTableOfContents.vue.d.ts +9 -0
- package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +45 -0
- package/dist/components/navigation/ElmTableOfContents.vue3.mjs +23 -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 +23 -0
- package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
- package/dist/components/others/ElmColorSample.vue3.mjs +21 -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 +49 -0
- package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
- package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +189 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
- package/dist/components/others/ElmMarkdown.stories.d.ts +6 -0
- package/dist/components/others/ElmMarkdown.vue.d.ts +5 -0
- package/dist/components/others/ElmMarkdown.vue.mjs +255 -0
- package/dist/components/others/ElmMarkdown.vue2.mjs +4 -0
- package/dist/components/others/ElmTyping.stories.d.ts +6 -0
- package/dist/components/others/ElmTyping.vue.d.ts +4 -0
- package/dist/components/table/ElmTable.stories.d.ts +6 -0
- package/dist/components/table/ElmTable.vue.d.ts +46 -0
- package/dist/components/table/ElmTable.vue.mjs +10 -0
- package/dist/components/table/ElmTable.vue2.mjs +62 -0
- package/dist/components/table/ElmTable.vue3.mjs +27 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +22 -0
- package/dist/components/table/ElmTableBody.vue.mjs +15 -0
- package/dist/components/table/ElmTableBody.vue2.mjs +4 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +33 -0
- package/dist/components/table/ElmTableCell.vue.mjs +10 -0
- package/dist/components/table/ElmTableCell.vue2.mjs +28 -0
- package/dist/components/table/ElmTableCell.vue3.mjs +26 -0
- package/dist/components/table/ElmTableHeader.vue.d.ts +22 -0
- package/dist/components/table/ElmTableHeader.vue.mjs +10 -0
- package/dist/components/table/ElmTableHeader.vue2.mjs +17 -0
- package/dist/components/table/ElmTableHeader.vue3.mjs +20 -0
- package/dist/components/table/ElmTableRow.vue.d.ts +22 -0
- package/dist/components/table/ElmTableRow.vue.mjs +10 -0
- package/dist/components/table/ElmTableRow.vue2.mjs +20 -0
- package/dist/components/table/ElmTableRow.vue3.mjs +21 -0
- package/dist/components/template/ElmTemplate.stories.d.ts +6 -0
- package/dist/components/template/ElmTemplate.vue.d.ts +4 -0
- package/dist/components/typography/ElmBlockQuote.stories.d.ts +6 -0
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +24 -0
- package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
- package/dist/components/typography/ElmBlockQuote.vue2.mjs +64 -0
- package/dist/components/typography/ElmBlockQuote.vue3.mjs +26 -0
- package/dist/components/typography/ElmCallout.stories.d.ts +11 -0
- package/dist/components/typography/ElmCallout.vue.d.ts +30 -0
- package/dist/components/typography/ElmCallout.vue.mjs +10 -0
- package/dist/components/typography/ElmCallout.vue2.mjs +58 -0
- package/dist/components/typography/ElmCallout.vue3.mjs +23 -0
- package/dist/components/typography/ElmDivider.stories.d.ts +6 -0
- package/dist/components/typography/ElmDivider.vue.d.ts +11 -0
- 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 +20 -0
- package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +6 -0
- package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +8 -0
- package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +10 -0
- package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +27 -0
- package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +20 -0
- package/dist/components/typography/ElmHeading.stories.d.ts +7 -0
- package/dist/components/typography/ElmHeading.vue.d.ts +49 -0
- package/dist/components/typography/ElmHeading.vue.mjs +10 -0
- package/dist/components/typography/ElmHeading.vue2.mjs +95 -0
- package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
- package/dist/components/typography/ElmInlineText.stories.d.ts +12 -0
- package/dist/components/typography/ElmInlineText.vue.d.ts +85 -0
- package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
- package/dist/components/typography/ElmInlineText.vue2.mjs +158 -0
- package/dist/components/typography/ElmInlineText.vue3.mjs +35 -0
- package/dist/components/typography/ElmList.stories.d.ts +8 -0
- package/dist/components/typography/ElmList.vue.d.ts +31 -0
- package/dist/components/typography/ElmList.vue.mjs +36 -0
- package/dist/components/typography/ElmList.vue3.mjs +17 -0
- package/dist/components/typography/ElmParagraph.stories.d.ts +6 -0
- package/dist/components/typography/ElmParagraph.vue.d.ts +23 -0
- 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 +20 -0
- package/dist/components/typography/ElmTypingAnimation.stories.d.ts +6 -0
- package/dist/components/typography/ElmTypingAnimation.vue.d.ts +21 -0
- package/dist/components/typography/ElmTypingAnimation.vue.mjs +10 -0
- package/dist/components/typography/ElmTypingAnimation.vue2.mjs +49 -0
- package/dist/components/typography/ElmTypingAnimation.vue3.mjs +26 -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/hooks/useTyping.mjs +37 -0
- package/dist/index.d.ts +120 -0
- package/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/marked@16.4.1/node_modules/marked/lib/marked.esm.mjs +1099 -0
- package/dist/styles/heading.module.scss.mjs +20 -0
- package/dist/styles/text.module.scss.mjs +20 -0
- package/dist/styles/transition-fade.module.scss.mjs +27 -0
- package/package.json +62 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ElmColorTableProps {
|
|
2
|
+
/**
|
|
3
|
+
* The colors to display.
|
|
4
|
+
*/
|
|
5
|
+
colors: {
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<ElmColorTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColorTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmColorTable.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmColorTable.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmColorTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmColorTable as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, Fragment, renderList, createElementVNode, normalizeStyle, toDisplayString, createVNode, unref } from "vue";
|
|
2
|
+
import { darken } from "polished";
|
|
3
|
+
import ElmColorSample from "./ElmColorSample.vue.mjs";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmColorTable",
|
|
6
|
+
props: {
|
|
7
|
+
colors: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("div", {
|
|
12
|
+
class: normalizeClass(_ctx.$style.container)
|
|
13
|
+
}, [
|
|
14
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.colors, (color) => {
|
|
15
|
+
return openBlock(), createElementBlock("div", {
|
|
16
|
+
class: normalizeClass(_ctx.$style["row-container"])
|
|
17
|
+
}, [
|
|
18
|
+
createElementVNode("div", {
|
|
19
|
+
class: normalizeClass(_ctx.$style["color-name"]),
|
|
20
|
+
style: normalizeStyle({ "--color": color.code })
|
|
21
|
+
}, toDisplayString(color.name), 7),
|
|
22
|
+
(openBlock(), createElementBlock(Fragment, null, renderList([
|
|
23
|
+
-3,
|
|
24
|
+
-0.25,
|
|
25
|
+
-0.2,
|
|
26
|
+
-0.15,
|
|
27
|
+
-0.1,
|
|
28
|
+
-0.05,
|
|
29
|
+
0,
|
|
30
|
+
0.05,
|
|
31
|
+
0.1,
|
|
32
|
+
0.15,
|
|
33
|
+
0.2,
|
|
34
|
+
0.25,
|
|
35
|
+
0.3
|
|
36
|
+
], (darkness) => {
|
|
37
|
+
return createVNode(ElmColorSample, {
|
|
38
|
+
color: unref(darken)(darkness, color.code)
|
|
39
|
+
}, null, 8, ["color"]);
|
|
40
|
+
}), 64))
|
|
41
|
+
], 2);
|
|
42
|
+
}), 256))
|
|
43
|
+
], 2);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._container_2ivef_1{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:.25rem}._container_2ivef_1 ._row-container_2ivef_8{display:flex;justify-content:flex-start;align-items:flex-start;flex-direction:row;gap:.25rem}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15{width:6rem;color:var(--color)}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15::-moz-selection{background-color:var(--color);color:#fff}._container_2ivef_1 ._row-container_2ivef_8 ._color-name_2ivef_15::selection{background-color:var(--color);color:#fff}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const container = "_container_2ivef_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
container,
|
|
16
|
+
"row-container": "_row-container_2ivef_8",
|
|
17
|
+
"color-name": "_color-name_2ivef_15"
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
container,
|
|
21
|
+
style0 as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmJsonComponentRenderer } from './ElmJsonComponentRenderer.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmJsonComponentRenderer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const InlineIcon: Story;
|
|
8
|
+
export declare const InlineKatex: Story;
|
|
9
|
+
export declare const Heading: Story;
|
|
10
|
+
export declare const UnorderedList: Story;
|
|
11
|
+
export declare const OrderedList: Story;
|
|
12
|
+
export declare const BlockQuote: Story;
|
|
13
|
+
export declare const Callout: Story;
|
|
14
|
+
export declare const Divider: Story;
|
|
15
|
+
export declare const Toggle: Story;
|
|
16
|
+
export declare const Bookmark: Story;
|
|
17
|
+
export declare const File: Story;
|
|
18
|
+
export declare const Image: Story;
|
|
19
|
+
export declare const CodeBlock: Story;
|
|
20
|
+
export declare const Katex: Story;
|
|
21
|
+
export declare const Table: Story;
|
|
22
|
+
export declare const ColumnList: Story;
|
|
23
|
+
export declare const Unsupported: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Component } from 'jarkup-ts';
|
|
2
|
+
export interface ElmJsonComponentRendererProps {
|
|
3
|
+
jsonComponents: Component[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ElmJsonComponentRendererProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmJsonComponentRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmJsonComponentRenderer.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmJsonComponentRenderer.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmJsonComponentRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmJsonComponentRenderer as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".elmethis-list-common{margin-block:1rem;opacity:var(--opacity);transition:opacity .8s;box-sizing:border-box;padding-left:1.25rem}.elmethis-bulleted-list li{box-sizing:border-box;padding-left:.5rem;margin-block:.75rem}.elmethis-bulleted-list li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMTYgMTYnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICA+CiAgICA8cGF0aAogICAgICBmaWxsPScjNDQ5NzYzJwogICAgICBvcGFjaXR5PScwLjgnCiAgICAgIGQ9J00zIDMuNzMyYTEuNSAxLjUgMCAwIDEgMi4zMDUtMS4yNjVsNi43MDYgNC4yNjdhMS41IDEuNSAwIDAgMSAwIDIuNTMxbC02LjcwNiA0LjI2OEExLjUgMS41IDAgMCAxIDMgMTIuMjY3VjMuNzMyWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjQgMjQnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9J3RyYW5zcGFyZW50JwogID4KICAgIDxwYXRoCiAgICAgIHN0cm9rZUxpbmVjYXA9J3JvdW5kJwogICAgICBzdHJva2VMaW5lam9pbj0ncm91bmQnCiAgICAgIGQ9J001LjI1IDUuNjUzYzAtLjg1Ni45MTctMS4zOTggMS42NjctLjk4NmwxMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMSAwIDEuOTcybC0xMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMS0xLjY2Ny0uOTg2VjUuNjUzWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjAgMjAnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9JyM0NDk3NjMnCiAgPgogICAgPHBhdGgKICAgICAgZmlsbFJ1bGU9J2V2ZW5vZGQnCiAgICAgIGQ9J004LjIyIDUuMjJhLjc1Ljc1IDAgMCAxIDEuMDYgMGw0LjI1IDQuMjVhLjc1Ljc1IDAgMCAxIDAgMS4wNmwtNC4yNSA0LjI1YS43NS43NSAwIDAgMS0xLjA2LTEuMDZMMTEuOTQgMTAgOC4yMiA2LjI4YS43NS43NSAwIDAgMSAwLTEuMDZaJwogICAgICBjbGlwUnVsZT0nZXZlbm9kZCcKICAgIC8+CiAgPC9zdmc+)}.elmethis-numbered-list li{box-sizing:border-box;padding-left:.25rem;margin-block:.75rem;margin-left:.25rem;list-style-type:decimal}.elmethis-numbered-list li::marker{font-weight:700;color:#9771bd}.elmethis-numbered-list li ol li{list-style-type:lower-alpha}.elmethis-numbered-list li ol li ol li{list-style-type:lower-roman}.elmethis-numbered-list li ol li ol li ol li{list-style-type:lower-greek}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
import { defineComponent, useCssModule, ref, computed, watch, createElementBlock, openBlock, createBlock, resolveDynamicComponent, h } from "vue";
|
|
14
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
15
|
+
import ElmKatex from "../code/ElmKatex.vue.mjs";
|
|
16
|
+
import ElmMermaid from "../code/ElmMermaid.vue.mjs";
|
|
17
|
+
import ElmInlineIcon from "../icon/ElmInlineIcon.vue.mjs";
|
|
18
|
+
import ElmHeading from "../typography/ElmHeading.vue.mjs";
|
|
19
|
+
import ElmParagraph from "../typography/ElmParagraph.vue.mjs";
|
|
20
|
+
import _sfc_main$2 from "../typography/ElmList.vue.mjs";
|
|
21
|
+
|
|
22
|
+
import ElmBlockQuote from "../typography/ElmBlockQuote.vue.mjs";
|
|
23
|
+
import ElmCallout from "../typography/ElmCallout.vue.mjs";
|
|
24
|
+
import ElmDivider from "../typography/ElmDivider.vue.mjs";
|
|
25
|
+
import ElmToggle from "../containments/ElmToggle.vue.mjs";
|
|
26
|
+
import ElmBookmark from "../navigation/ElmBookmark.vue.mjs";
|
|
27
|
+
import ElmFile from "../media/ElmFile.vue.mjs";
|
|
28
|
+
import ElmImage from "../media/ElmImage.vue.mjs";
|
|
29
|
+
import ElmCodeBlock from "../code/ElmCodeBlock.vue.mjs";
|
|
30
|
+
import ElmTable from "../table/ElmTable.vue.mjs";
|
|
31
|
+
import ElmTableHeader from "../table/ElmTableHeader.vue.mjs";
|
|
32
|
+
import _sfc_main$1 from "../table/ElmTableBody.vue.mjs";
|
|
33
|
+
import ElmTableRow from "../table/ElmTableRow.vue.mjs";
|
|
34
|
+
import ElmTableCell from "../table/ElmTableCell.vue.mjs";
|
|
35
|
+
import ElmUnsupportedBlock from "../fallback/ElmUnsupportedBlock.vue.mjs";
|
|
36
|
+
import { kebabCase } from "lodash-es";
|
|
37
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
|
+
__name: "ElmJsonComponentRenderer",
|
|
39
|
+
props: {
|
|
40
|
+
jsonComponents: {}
|
|
41
|
+
},
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const style = useCssModule();
|
|
45
|
+
const convertInlineComponentsToPlainText = (inlineComponents) => {
|
|
46
|
+
return inlineComponents.map((component) => {
|
|
47
|
+
if (component.type === "Text") {
|
|
48
|
+
return component.props.text;
|
|
49
|
+
} else {
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
}).join("");
|
|
53
|
+
};
|
|
54
|
+
const defaultRenderFunctionMap = (render2) => {
|
|
55
|
+
return {
|
|
56
|
+
Text: ({ props: props2 }) => {
|
|
57
|
+
if (props2.katex) {
|
|
58
|
+
return h(ElmKatex, { expression: props2.text, block: false });
|
|
59
|
+
} else {
|
|
60
|
+
return h(ElmInlineText, {
|
|
61
|
+
text: props2.text,
|
|
62
|
+
color: props2.color,
|
|
63
|
+
backgroundColor: props2.backgroundColor,
|
|
64
|
+
bold: props2.bold,
|
|
65
|
+
italic: props2.italic,
|
|
66
|
+
underline: props2.underline,
|
|
67
|
+
strikethrough: props2.strikethrough,
|
|
68
|
+
code: props2.code,
|
|
69
|
+
ruby: props2.ruby,
|
|
70
|
+
href: props2.href,
|
|
71
|
+
favicon: props2.favicon
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
Icon: ({ props: props2 }) => h(ElmInlineIcon, { src: props2.src, alt: props2.alt }),
|
|
76
|
+
Heading: ({ props: props2, slots }) => h(
|
|
77
|
+
ElmHeading,
|
|
78
|
+
{
|
|
79
|
+
level: props2.level,
|
|
80
|
+
id: kebabCase(convertInlineComponentsToPlainText(slots.default))
|
|
81
|
+
},
|
|
82
|
+
{ default: () => render2(slots.default) }
|
|
83
|
+
),
|
|
84
|
+
Paragraph: ({ slots }) => h(ElmParagraph, {}, { default: () => render2(slots.default) }),
|
|
85
|
+
ListItem: ({ slots }) => h("li", {}, { default: () => render2(slots.default) }),
|
|
86
|
+
List: ({ props: props2, slots }) => h(
|
|
87
|
+
_sfc_main$2,
|
|
88
|
+
{
|
|
89
|
+
listStyle: props2?.listStyle === "unordered" ? "unordered" : "ordered"
|
|
90
|
+
},
|
|
91
|
+
{ default: () => render2(slots.default) }
|
|
92
|
+
),
|
|
93
|
+
BlockQuote: ({ props: props2, slots }) => h(
|
|
94
|
+
ElmBlockQuote,
|
|
95
|
+
{ cite: props2?.cite },
|
|
96
|
+
{ default: () => render2(slots.default) }
|
|
97
|
+
),
|
|
98
|
+
Callout: ({ props: props2, slots }) => h(
|
|
99
|
+
ElmCallout,
|
|
100
|
+
{ type: props2?.type },
|
|
101
|
+
{ default: () => render2(slots.default) }
|
|
102
|
+
),
|
|
103
|
+
Divider: ({}) => h(ElmDivider, {}),
|
|
104
|
+
Toggle: ({ slots }) => h(
|
|
105
|
+
ElmToggle,
|
|
106
|
+
{},
|
|
107
|
+
{
|
|
108
|
+
default: () => render2(slots.default),
|
|
109
|
+
summary: () => render2(slots.summary)
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
Bookmark: ({ props: props2 }) => h(ElmBookmark, {
|
|
113
|
+
url: props2.url,
|
|
114
|
+
title: props2.title,
|
|
115
|
+
description: props2.description,
|
|
116
|
+
image: props2.image
|
|
117
|
+
}),
|
|
118
|
+
File: ({ props: props2 }) => h(ElmFile, { src: props2.src, name: props2.name }),
|
|
119
|
+
Image: ({ props: props2 }) => h(ElmImage, {
|
|
120
|
+
src: props2.src,
|
|
121
|
+
alt: props2.alt,
|
|
122
|
+
block: true,
|
|
123
|
+
enableModal: true
|
|
124
|
+
}),
|
|
125
|
+
CodeBlock: ({ props: props2, slots }) => slots != null ? h(
|
|
126
|
+
ElmCodeBlock,
|
|
127
|
+
{ code: props2.code, language: props2.language },
|
|
128
|
+
{ default: () => render2(slots.default) }
|
|
129
|
+
) : h(ElmCodeBlock, { code: props2.code, language: props2.language }),
|
|
130
|
+
Katex: ({ props: props2 }) => h(ElmKatex, { expression: props2.expression, block: true }),
|
|
131
|
+
Mermaid: ({ props: props2 }) => h(ElmMermaid, { code: props2.code }),
|
|
132
|
+
Table: ({ props: props2, slots }) => {
|
|
133
|
+
let header = void 0;
|
|
134
|
+
if (slots.header != null) {
|
|
135
|
+
const headerSlot = slots.header;
|
|
136
|
+
header = h(ElmTableHeader, {}, { default: () => render2(headerSlot) });
|
|
137
|
+
}
|
|
138
|
+
return h(
|
|
139
|
+
ElmTable,
|
|
140
|
+
{ caption: props2?.caption, hasRowHeader: props2?.hasRowHeader },
|
|
141
|
+
{
|
|
142
|
+
body: () => h(_sfc_main$1, {}, { default: () => render2(slots.body) }),
|
|
143
|
+
header: header ? () => header : void 0
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
},
|
|
147
|
+
TableRow: ({ slots }) => h(ElmTableRow, {}, { default: () => render2(slots.default) }),
|
|
148
|
+
TableCell: ({ slots }) => h(ElmTableCell, {}, { default: () => render2(slots.default) }),
|
|
149
|
+
ColumnList: ({ slots }) => h(
|
|
150
|
+
"div",
|
|
151
|
+
{ class: style["column-list"] },
|
|
152
|
+
{ default: () => render2(slots.default) }
|
|
153
|
+
),
|
|
154
|
+
Column: ({ slots }) => h(
|
|
155
|
+
"div",
|
|
156
|
+
{ class: style.column },
|
|
157
|
+
{ default: () => render2(slots.default) }
|
|
158
|
+
),
|
|
159
|
+
Unsupported: ({ props: props2 }) => h(ElmUnsupportedBlock, { details: props2?.details })
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
const render = (jsonComponents) => {
|
|
163
|
+
const results = [];
|
|
164
|
+
for (const component of jsonComponents) {
|
|
165
|
+
const renderFunction = defaultRenderFunctionMap(render)[component.type];
|
|
166
|
+
results.push(renderFunction(component));
|
|
167
|
+
}
|
|
168
|
+
return results;
|
|
169
|
+
};
|
|
170
|
+
const renderResult = ref(render(props.jsonComponents));
|
|
171
|
+
const components = computed(() => ({
|
|
172
|
+
render: () => renderResult.value
|
|
173
|
+
}));
|
|
174
|
+
watch(
|
|
175
|
+
() => props.jsonComponents,
|
|
176
|
+
(newComponents) => {
|
|
177
|
+
renderResult.value = render(newComponents);
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
return (_ctx, _cache) => {
|
|
181
|
+
return openBlock(), createElementBlock("div", null, [
|
|
182
|
+
(openBlock(), createBlock(resolveDynamicComponent(components.value)))
|
|
183
|
+
]);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
export {
|
|
188
|
+
_sfc_main as default
|
|
189
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._column-list_1at6s_1{box-sizing:content-box;padding-block:.25rem;width:100%;display:flex;flex-direction:row;gap:.5rem;justify-content:space-around;overflow:auto}._column_1at6s_1{flex:1}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const column = "_column_1at6s_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
"column-list": "_column-list_1at6s_1",
|
|
16
|
+
column
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
column,
|
|
20
|
+
style0 as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface ElmMarkdownProps {
|
|
2
|
+
markdown: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<ElmMarkdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmMarkdownProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".elmethis-list-common{margin-block:1rem;opacity:var(--opacity);transition:opacity .8s;box-sizing:border-box;padding-left:1.25rem}.elmethis-bulleted-list li{box-sizing:border-box;padding-left:.5rem;margin-block:.75rem}.elmethis-bulleted-list li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMTYgMTYnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICA+CiAgICA8cGF0aAogICAgICBmaWxsPScjNDQ5NzYzJwogICAgICBvcGFjaXR5PScwLjgnCiAgICAgIGQ9J00zIDMuNzMyYTEuNSAxLjUgMCAwIDEgMi4zMDUtMS4yNjVsNi43MDYgNC4yNjdhMS41IDEuNSAwIDAgMSAwIDIuNTMxbC02LjcwNiA0LjI2OEExLjUgMS41IDAgMCAxIDMgMTIuMjY3VjMuNzMyWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjQgMjQnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9J3RyYW5zcGFyZW50JwogID4KICAgIDxwYXRoCiAgICAgIHN0cm9rZUxpbmVjYXA9J3JvdW5kJwogICAgICBzdHJva2VMaW5lam9pbj0ncm91bmQnCiAgICAgIGQ9J001LjI1IDUuNjUzYzAtLjg1Ni45MTctMS4zOTggMS42NjctLjk4NmwxMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMSAwIDEuOTcybC0xMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMS0xLjY2Ny0uOTg2VjUuNjUzWicKICAgIC8+CiAgPC9zdmc+)}.elmethis-bulleted-list li ul li ul li::marker{content:url(data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjAgMjAnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9JyM0NDk3NjMnCiAgPgogICAgPHBhdGgKICAgICAgZmlsbFJ1bGU9J2V2ZW5vZGQnCiAgICAgIGQ9J004LjIyIDUuMjJhLjc1Ljc1IDAgMCAxIDEuMDYgMGw0LjI1IDQuMjVhLjc1Ljc1IDAgMCAxIDAgMS4wNmwtNC4yNSA0LjI1YS43NS43NSAwIDAgMS0xLjA2LTEuMDZMMTEuOTQgMTAgOC4yMiA2LjI4YS43NS43NSAwIDAgMSAwLTEuMDZaJwogICAgICBjbGlwUnVsZT0nZXZlbm9kZCcKICAgIC8+CiAgPC9zdmc+)}.elmethis-numbered-list li{box-sizing:border-box;padding-left:.25rem;margin-block:.75rem;margin-left:.25rem;list-style-type:decimal}.elmethis-numbered-list li::marker{font-weight:700;color:#9771bd}.elmethis-numbered-list li ol li{list-style-type:lower-alpha}.elmethis-numbered-list li ol li ol li{list-style-type:lower-roman}.elmethis-numbered-list li ol li ol li ol li{list-style-type:lower-greek}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
import { defineComponent, ref, computed, watch, createElementBlock, openBlock, Fragment, renderList, createBlock, resolveDynamicComponent, h } from "vue";
|
|
14
|
+
import { marked as k } from "../../node_modules/.pnpm/marked@16.4.1/node_modules/marked/lib/marked.esm.mjs";
|
|
15
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
16
|
+
import ElmHeading from "../typography/ElmHeading.vue.mjs";
|
|
17
|
+
import ElmParagraph from "../typography/ElmParagraph.vue.mjs";
|
|
18
|
+
import _sfc_main$2 from "../typography/ElmList.vue.mjs";
|
|
19
|
+
|
|
20
|
+
import ElmBlockQuote from "../typography/ElmBlockQuote.vue.mjs";
|
|
21
|
+
import ElmDivider from "../typography/ElmDivider.vue.mjs";
|
|
22
|
+
import ElmImage from "../media/ElmImage.vue.mjs";
|
|
23
|
+
import ElmCodeBlock from "../code/ElmCodeBlock.vue.mjs";
|
|
24
|
+
import ElmTable from "../table/ElmTable.vue.mjs";
|
|
25
|
+
import ElmTableHeader from "../table/ElmTableHeader.vue.mjs";
|
|
26
|
+
import _sfc_main$1 from "../table/ElmTableBody.vue.mjs";
|
|
27
|
+
import ElmTableRow from "../table/ElmTableRow.vue.mjs";
|
|
28
|
+
import ElmTableCell from "../table/ElmTableCell.vue.mjs";
|
|
29
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "ElmMarkdown",
|
|
31
|
+
props: {
|
|
32
|
+
markdown: {}
|
|
33
|
+
},
|
|
34
|
+
setup(__props) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const renderByToken = ({ tokens }) => {
|
|
37
|
+
const results = [];
|
|
38
|
+
for (const token of tokens) {
|
|
39
|
+
switch (token.type) {
|
|
40
|
+
case "blockquote":
|
|
41
|
+
if (token.tokens != null && token.tokens.length !== 0) {
|
|
42
|
+
results.push(
|
|
43
|
+
h(
|
|
44
|
+
ElmBlockQuote,
|
|
45
|
+
{},
|
|
46
|
+
{
|
|
47
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case "br":
|
|
54
|
+
results.push(h("br"));
|
|
55
|
+
break;
|
|
56
|
+
case "code":
|
|
57
|
+
results.push(
|
|
58
|
+
h(ElmCodeBlock, {
|
|
59
|
+
code: token.text.trim(),
|
|
60
|
+
language: token.lang
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
break;
|
|
64
|
+
case "codespan":
|
|
65
|
+
results.push(h(ElmInlineText, { text: token.text, code: true }));
|
|
66
|
+
break;
|
|
67
|
+
case "def":
|
|
68
|
+
h("span", "aaa");
|
|
69
|
+
break;
|
|
70
|
+
case "del":
|
|
71
|
+
results.push(
|
|
72
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
73
|
+
ElmInlineText,
|
|
74
|
+
{ strikethrough: true },
|
|
75
|
+
{
|
|
76
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
77
|
+
}
|
|
78
|
+
) : h(ElmInlineText, { text: token.text, strikethrough: true })
|
|
79
|
+
);
|
|
80
|
+
break;
|
|
81
|
+
case "em":
|
|
82
|
+
results.push(
|
|
83
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
84
|
+
ElmInlineText,
|
|
85
|
+
{ italic: true },
|
|
86
|
+
{
|
|
87
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
88
|
+
}
|
|
89
|
+
) : h(ElmInlineText, { text: token.text, italic: true })
|
|
90
|
+
);
|
|
91
|
+
break;
|
|
92
|
+
case "escape":
|
|
93
|
+
break;
|
|
94
|
+
case "heading":
|
|
95
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
96
|
+
results.push(
|
|
97
|
+
h(
|
|
98
|
+
ElmHeading,
|
|
99
|
+
{ level: token.depth },
|
|
100
|
+
{
|
|
101
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
} else {
|
|
106
|
+
results.push(h(ElmHeading, { level: token.depth, text: token.text }));
|
|
107
|
+
}
|
|
108
|
+
break;
|
|
109
|
+
case "hr":
|
|
110
|
+
results.push(h(ElmDivider));
|
|
111
|
+
break;
|
|
112
|
+
case "html":
|
|
113
|
+
break;
|
|
114
|
+
case "image":
|
|
115
|
+
results.push(
|
|
116
|
+
h(ElmImage, {
|
|
117
|
+
block: true,
|
|
118
|
+
enableModal: true,
|
|
119
|
+
src: token.href,
|
|
120
|
+
alt: token.text
|
|
121
|
+
})
|
|
122
|
+
);
|
|
123
|
+
break;
|
|
124
|
+
case "link":
|
|
125
|
+
results.push(
|
|
126
|
+
token.tokens != null && token.tokens.length !== 0 ? h(ElmInlineText, {
|
|
127
|
+
text: token.text,
|
|
128
|
+
href: token.href
|
|
129
|
+
}) : h(ElmInlineText, { text: token.text, href: token.href })
|
|
130
|
+
);
|
|
131
|
+
break;
|
|
132
|
+
case "list":
|
|
133
|
+
const listItems = token.items.map(
|
|
134
|
+
(item) => h("li", {}, renderByToken({ tokens: item.tokens }))
|
|
135
|
+
);
|
|
136
|
+
results.push(
|
|
137
|
+
h(
|
|
138
|
+
_sfc_main$2,
|
|
139
|
+
{
|
|
140
|
+
listStyle: token.ordered ? "ordered" : "unordered"
|
|
141
|
+
},
|
|
142
|
+
{ default: () => listItems }
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
break;
|
|
146
|
+
case "list_item":
|
|
147
|
+
results.push(
|
|
148
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
149
|
+
"li",
|
|
150
|
+
{},
|
|
151
|
+
{
|
|
152
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
153
|
+
}
|
|
154
|
+
) : h("li", { text: token.text })
|
|
155
|
+
);
|
|
156
|
+
break;
|
|
157
|
+
case "paragraph":
|
|
158
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
159
|
+
results.push(
|
|
160
|
+
h(
|
|
161
|
+
ElmParagraph,
|
|
162
|
+
{},
|
|
163
|
+
{
|
|
164
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case "space":
|
|
171
|
+
break;
|
|
172
|
+
case "strong":
|
|
173
|
+
results.push(
|
|
174
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
175
|
+
ElmInlineText,
|
|
176
|
+
{ bold: true },
|
|
177
|
+
{
|
|
178
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
179
|
+
}
|
|
180
|
+
) : h(ElmInlineText, { text: token.text, bold: true })
|
|
181
|
+
);
|
|
182
|
+
break;
|
|
183
|
+
case "table":
|
|
184
|
+
const renderTableCells = ({
|
|
185
|
+
cells
|
|
186
|
+
}) => cells.map(
|
|
187
|
+
(cell) => h(
|
|
188
|
+
ElmTableCell,
|
|
189
|
+
{},
|
|
190
|
+
{ default: () => renderByToken({ tokens: cell.tokens }) }
|
|
191
|
+
)
|
|
192
|
+
);
|
|
193
|
+
const headerRow = h(
|
|
194
|
+
ElmTableRow,
|
|
195
|
+
{},
|
|
196
|
+
{ default: () => renderTableCells({ cells: token.header }) }
|
|
197
|
+
);
|
|
198
|
+
const bodyRows = token.rows.map(
|
|
199
|
+
(row) => h(
|
|
200
|
+
ElmTableRow,
|
|
201
|
+
{},
|
|
202
|
+
{ default: () => renderTableCells({ cells: row }) }
|
|
203
|
+
)
|
|
204
|
+
);
|
|
205
|
+
const table = h(
|
|
206
|
+
ElmTable,
|
|
207
|
+
{},
|
|
208
|
+
{
|
|
209
|
+
header: () => h(ElmTableHeader, {}, { default: () => headerRow }),
|
|
210
|
+
body: () => h(_sfc_main$1, {}, { default: () => bodyRows })
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
results.push(table);
|
|
214
|
+
break;
|
|
215
|
+
case "text":
|
|
216
|
+
results.push(
|
|
217
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
218
|
+
ElmInlineText,
|
|
219
|
+
{},
|
|
220
|
+
{
|
|
221
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
222
|
+
}
|
|
223
|
+
) : h(ElmInlineText, { text: token.text })
|
|
224
|
+
);
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return results;
|
|
229
|
+
};
|
|
230
|
+
const renderMarkdown = ({ markdown }) => {
|
|
231
|
+
const tokens = k.setOptions({ gfm: true }).lexer(markdown);
|
|
232
|
+
return renderByToken({ tokens });
|
|
233
|
+
};
|
|
234
|
+
const renderResult = ref(renderMarkdown({ markdown: props.markdown }));
|
|
235
|
+
const components = computed(() => ({
|
|
236
|
+
render: () => renderResult.value
|
|
237
|
+
}));
|
|
238
|
+
watch(
|
|
239
|
+
() => props.markdown,
|
|
240
|
+
(md) => {
|
|
241
|
+
if (md != null) renderResult.value = renderMarkdown({ markdown: md });
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
return (_ctx, _cache) => {
|
|
245
|
+
return openBlock(), createElementBlock("div", null, [
|
|
246
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(components.value, (component) => {
|
|
247
|
+
return openBlock(), createBlock(resolveDynamicComponent(component));
|
|
248
|
+
}), 256))
|
|
249
|
+
]);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
export {
|
|
254
|
+
_sfc_main as default
|
|
255
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export interface ElmTypingProps {
|
|
2
|
+
}
|
|
3
|
+
declare const _default: import('vue').DefineComponent<ElmTypingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTypingProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
export default _default;
|