@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,58 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createVNode, renderSlot } from "vue";
|
|
2
|
+
import ElmInlineText from "./ElmInlineText.vue.mjs";
|
|
3
|
+
import { rgba } from "polished";
|
|
4
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
5
|
+
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
6
|
+
import { mdiAlertOctagram, mdiAlert, mdiShieldAlert, mdiLightbulbOn, mdiInformation } from "@mdi/js";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "ElmCallout",
|
|
9
|
+
props: {
|
|
10
|
+
type: { default: "note" }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const colors = {
|
|
14
|
+
note: { code: "#6987b8", icon: mdiInformation },
|
|
15
|
+
tip: { code: "#59b57c", icon: mdiLightbulbOn },
|
|
16
|
+
important: { code: "#9771bd", icon: mdiShieldAlert },
|
|
17
|
+
warning: { code: "#b8a36e", icon: mdiAlert },
|
|
18
|
+
caution: { code: "#b36472", icon: mdiAlertOctagram }
|
|
19
|
+
};
|
|
20
|
+
const target = ref(null);
|
|
21
|
+
const targetIsVisible = ref(false);
|
|
22
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
23
|
+
targetIsVisible.value = isIntersecting;
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("aside", {
|
|
27
|
+
ref_key: "target",
|
|
28
|
+
ref: target,
|
|
29
|
+
class: normalizeClass(_ctx.$style.callout),
|
|
30
|
+
style: normalizeStyle({
|
|
31
|
+
"--border-color": colors[__props.type].code,
|
|
32
|
+
"--bg-color": unref(rgba)(colors[__props.type].code, 0.1),
|
|
33
|
+
"--scale": targetIsVisible.value ? 1 : 0
|
|
34
|
+
})
|
|
35
|
+
}, [
|
|
36
|
+
createElementVNode("div", {
|
|
37
|
+
class: normalizeClass(_ctx.$style.header)
|
|
38
|
+
}, [
|
|
39
|
+
createVNode(ElmMdiIcon, {
|
|
40
|
+
d: colors[__props.type].icon,
|
|
41
|
+
size: "1.25em",
|
|
42
|
+
color: colors[__props.type].code
|
|
43
|
+
}, null, 8, ["d", "color"]),
|
|
44
|
+
createVNode(ElmInlineText, {
|
|
45
|
+
text: __props.type.toUpperCase(),
|
|
46
|
+
color: colors[__props.type].code
|
|
47
|
+
}, null, 8, ["text", "color"])
|
|
48
|
+
], 2),
|
|
49
|
+
createElementVNode("div", null, [
|
|
50
|
+
renderSlot(_ctx.$slots, "default")
|
|
51
|
+
])
|
|
52
|
+
], 6);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
_sfc_main as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._callout_1gvd6_1{margin-block:2rem;position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;border-left:solid 4px var(--border-color)}._callout_1gvd6_1:before{z-index:-1;position:absolute;content:"";left:0;top:0;width:100%;height:100%;background-color:var(--bg-color);transition:transform .8s;transform:scaleX(var(--scale));transform-origin:left;pointer-events:none}._header_1gvd6_26{display:flex;align-items:center;gap:.5rem}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const callout = "_callout_1gvd6_1";
|
|
14
|
+
const header = "_header_1gvd6_26";
|
|
15
|
+
const style0 = {
|
|
16
|
+
callout,
|
|
17
|
+
header
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
callout,
|
|
21
|
+
style0 as default,
|
|
22
|
+
header
|
|
23
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmDividerProps {
|
|
3
|
+
/**
|
|
4
|
+
* The margin of the divider.
|
|
5
|
+
*/
|
|
6
|
+
margin?: Property.MarginBlock;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
target: HTMLHRElement;
|
|
10
|
+
}, HTMLHRElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmDivider.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmDivider.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmDivider as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmDivider",
|
|
5
|
+
props: {
|
|
6
|
+
margin: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const target = ref(null);
|
|
10
|
+
const targetIsVisible = ref(false);
|
|
11
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
12
|
+
targetIsVisible.value = isIntersecting;
|
|
13
|
+
});
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("hr", {
|
|
16
|
+
ref_key: "target",
|
|
17
|
+
ref: target,
|
|
18
|
+
class: normalizeClass(_ctx.$style.divider),
|
|
19
|
+
style: normalizeStyle({
|
|
20
|
+
"--scale": targetIsVisible.value ? 1 : 0,
|
|
21
|
+
"--margin-block": __props.margin
|
|
22
|
+
})
|
|
23
|
+
}, null, 6);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_sfc_main as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._divider_10gwr_1{margin-block:var(--margin-block);position:relative;display:block;width:100%;overflow:visible;border:none;border-bottom:1px solid #555b67;transform:scaleX(var(--scale));transition:transform 1.2s}[data-theme=dark] ._divider_10gwr_1{border-bottom-color:#bec2ca}._divider_10gwr_1:before{position:absolute;content:"";height:5px;width:5px;top:-2px;border-radius:50%;background-color:#555b67}[data-theme=dark] ._divider_10gwr_1:before{background-color:#bec2ca}._divider_10gwr_1:before{left:0}._divider_10gwr_1:after{position:absolute;content:"";height:5px;width:5px;top:-2px;border-radius:50%;background-color:#555b67}[data-theme=dark] ._divider_10gwr_1:after{background-color:#bec2ca}._divider_10gwr_1:after{right:0}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const divider = "_divider_10gwr_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
divider
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
divider
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmFragmentIdentifier } from './ElmFragmentIdentifier.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmFragmentIdentifier>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ElmFragmentIdentifierProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the heading element.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<ElmFragmentIdentifierProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFragmentIdentifierProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmFragmentIdentifier.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmFragmentIdentifier.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmFragmentIdentifier = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmFragmentIdentifier as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmFragmentIdentifier",
|
|
4
|
+
props: {
|
|
5
|
+
id: {}
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const handleHashClick = (id) => {
|
|
9
|
+
const url = new URL(window.location.href);
|
|
10
|
+
url.hash = id;
|
|
11
|
+
window.history.replaceState(null, "", url.toString());
|
|
12
|
+
const target = document.getElementById(id);
|
|
13
|
+
if (target != null) {
|
|
14
|
+
target.scrollIntoView({ behavior: "smooth" });
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("span", {
|
|
19
|
+
class: normalizeClass(_ctx.$style.fragment),
|
|
20
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleHashClick(__props.id))
|
|
21
|
+
}, "#", 2);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
_sfc_main as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._fragment_1kofp_1{font-size:1rem;width:1rem;height:1rem;padding:.125rem;margin-inline-start:.5rem;border-radius:.125rem;display:inline-flex;justify-content:center;align-items:center;color:#b69545;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:1;transition:background-color .2s,opacity .1s,transform .1s}._fragment_1kofp_1:hover{background-color:#868e9c33}._fragment_1kofp_1:active{opacity:.5;transform:translate(1px) translateY(1px)}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const fragment = "_fragment_1kofp_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
fragment
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
fragment
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmHeading } from './ElmHeading.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmHeading>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Slot: Story;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
export interface ElmHeadingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Text to display
|
|
6
|
+
*/
|
|
7
|
+
text?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Font size of the text. Default is `'1.5rem'`.
|
|
10
|
+
*/
|
|
11
|
+
size?: Property.FontSize;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the heading element.
|
|
14
|
+
* Default is kebab-cased `text`. (using lodash)
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to disable fragment identifier.
|
|
19
|
+
* Default is `false`.
|
|
20
|
+
*/
|
|
21
|
+
disableFragmentIdentifier?: boolean;
|
|
22
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
23
|
+
}
|
|
24
|
+
declare function __VLS_template(): {
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
slots: Readonly<{
|
|
27
|
+
default?: () => VNode[];
|
|
28
|
+
}> & {
|
|
29
|
+
default?: () => VNode[];
|
|
30
|
+
};
|
|
31
|
+
refs: {
|
|
32
|
+
target: unknown;
|
|
33
|
+
};
|
|
34
|
+
rootEl: any;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmHeadingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmHeadingProps> & Readonly<{}>, {
|
|
38
|
+
disableFragmentIdentifier: boolean;
|
|
39
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
target: unknown;
|
|
42
|
+
}, any>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmHeading.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmHeading.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmHeading as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent, ref, useSlots, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, unref, normalizeClass, withCtx, createCommentVNode, createElementBlock, h, isVNode } from "vue";
|
|
2
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
3
|
+
import { kebabCase } from "lodash-es";
|
|
4
|
+
import ElmFragmentIdentifier from "./ElmFragmentIdentifier.vue.mjs";
|
|
5
|
+
import headingStyle from "../../styles/heading.module.scss.mjs";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ElmHeading",
|
|
8
|
+
props: {
|
|
9
|
+
text: {},
|
|
10
|
+
size: {},
|
|
11
|
+
id: {},
|
|
12
|
+
disableFragmentIdentifier: { type: Boolean, default: false },
|
|
13
|
+
level: { default: 1 }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const SIZE_MAP = Object.freeze({
|
|
17
|
+
1: 1.5,
|
|
18
|
+
2: 1.4,
|
|
19
|
+
3: 1.3,
|
|
20
|
+
4: 1.2,
|
|
21
|
+
5: 1.15,
|
|
22
|
+
6: 1.1
|
|
23
|
+
});
|
|
24
|
+
const props = __props;
|
|
25
|
+
const target = ref(null);
|
|
26
|
+
const targetIsVisible = ref(false);
|
|
27
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
28
|
+
targetIsVisible.value = isIntersecting;
|
|
29
|
+
});
|
|
30
|
+
const slots = useSlots();
|
|
31
|
+
const renderSlots = () => {
|
|
32
|
+
if (slots.default != null) {
|
|
33
|
+
return slots.default();
|
|
34
|
+
} else if (props.text != null) {
|
|
35
|
+
return h("span", {}, props.text);
|
|
36
|
+
} else {
|
|
37
|
+
return h("span");
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const extractTextFromVNode = (vnodes) => {
|
|
41
|
+
const nodes = Array.isArray(vnodes) ? vnodes : [vnodes];
|
|
42
|
+
const extract = (node) => {
|
|
43
|
+
if (typeof node.children === "string") {
|
|
44
|
+
return node.children;
|
|
45
|
+
}
|
|
46
|
+
if (Array.isArray(node.children)) {
|
|
47
|
+
return node.children.map((child) => {
|
|
48
|
+
return isVNode(child) ? extract(child) : typeof child === "string" ? child : "";
|
|
49
|
+
}).join("");
|
|
50
|
+
}
|
|
51
|
+
return "";
|
|
52
|
+
};
|
|
53
|
+
return nodes.map(extract).join("");
|
|
54
|
+
};
|
|
55
|
+
const extractId = () => {
|
|
56
|
+
if (props.id) return props.id;
|
|
57
|
+
if (slots.default) return kebabCase(extractTextFromVNode(slots.default()));
|
|
58
|
+
return kebabCase(props.text);
|
|
59
|
+
};
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return openBlock(), createBlock(resolveDynamicComponent(`h${__props.level}`), {
|
|
62
|
+
ref_key: "target",
|
|
63
|
+
ref: target,
|
|
64
|
+
class: normalizeClass([
|
|
65
|
+
_ctx.$style[`h${__props.level}`],
|
|
66
|
+
_ctx.$style["heading-common"],
|
|
67
|
+
unref(headingStyle).heading
|
|
68
|
+
]),
|
|
69
|
+
id: __props.id ?? unref(kebabCase)(__props.text),
|
|
70
|
+
style: normalizeStyle({
|
|
71
|
+
"--font-size": __props.size ?? `${unref(SIZE_MAP)[__props.level]}rem`,
|
|
72
|
+
"--scale": targetIsVisible.value ? 1 : 0,
|
|
73
|
+
"--opacity": targetIsVisible.value ? 1 : 0
|
|
74
|
+
})
|
|
75
|
+
}, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
(openBlock(), createBlock(resolveDynamicComponent(() => renderSlots()))),
|
|
78
|
+
!__props.disableFragmentIdentifier ? (openBlock(), createBlock(ElmFragmentIdentifier, {
|
|
79
|
+
key: 0,
|
|
80
|
+
id: extractId()
|
|
81
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
82
|
+
__props.level === 2 ? (openBlock(), createElementBlock("span", {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: normalizeClass(_ctx.$style["h2__underline"]),
|
|
85
|
+
"aria-hidden": ""
|
|
86
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["class", "id", "style"]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
_sfc_main as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._heading-common_1sxzn_1{margin-block:1.5rem;position:relative;font-size:var(--font-size);line-height:var(--font-size);opacity:var(--opacity);transition:color .4s,opacity .8s}._h1_1sxzn_10:after{position:absolute;content:"";bottom:-10px;left:0;width:100%;height:.25px;background-color:#00000080;transition:transform .8s;transform:scaleX(var(--scale))}[data-theme=dark] ._h1_1sxzn_10:after{background-color:#ffffff80}._h1_1sxzn_10:before{position:absolute;content:"";bottom:-12px;left:45%;width:10%;height:2px;background-color:#0009;transition:transform .8s;transform:scaleY(var(--scale));transform-origin:top}[data-theme=dark] ._h1_1sxzn_10:before{background-color:#fff9}._h2_1sxzn_40:after{position:absolute;content:"";right:2px;bottom:-4px;width:6px;height:8px;opacity:.8;transform:skew(-25deg);background-color:#000c}[data-theme=dark] ._h2_1sxzn_40:after{background-color:#fffc}._h2_1sxzn_40:before{position:absolute;content:"";right:10px;bottom:-4px;width:6px;height:8px;opacity:.8;transform:skew(-25deg);background-color:#000c}[data-theme=dark] ._h2_1sxzn_40:before{background-color:#fffc}._h2__underline_1sxzn_68{overflow:hidden;position:absolute;content:"";bottom:-6px;left:0;width:100%;height:.25px;background-color:#00000080;transition:transform .8s;transform:scaleX(var(--scale));transform-origin:left}[data-theme=dark] ._h2__underline_1sxzn_68{background-color:#ffffff80}._h3_1sxzn_85{box-sizing:border-box;padding-left:.75rem}._h3_1sxzn_85:after{position:absolute;content:"";width:3px;height:50%;top:25%;left:0;background-color:#000c}[data-theme=dark] ._h3_1sxzn_85:after{background-color:#fffc}._h4_1sxzn_102,._h5_1sxzn_106,._h6_1sxzn_110{position:relative}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const h1 = "_h1_1sxzn_10";
|
|
14
|
+
const h2 = "_h2_1sxzn_40";
|
|
15
|
+
const h2__underline = "_h2__underline_1sxzn_68";
|
|
16
|
+
const h3 = "_h3_1sxzn_85";
|
|
17
|
+
const h4 = "_h4_1sxzn_102";
|
|
18
|
+
const h5 = "_h5_1sxzn_106";
|
|
19
|
+
const h6 = "_h6_1sxzn_110";
|
|
20
|
+
const style0 = {
|
|
21
|
+
"heading-common": "_heading-common_1sxzn_1",
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h2__underline,
|
|
25
|
+
h3,
|
|
26
|
+
h4,
|
|
27
|
+
h5,
|
|
28
|
+
h6
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
style0 as default,
|
|
32
|
+
h1,
|
|
33
|
+
h2,
|
|
34
|
+
h2__underline,
|
|
35
|
+
h3,
|
|
36
|
+
h4,
|
|
37
|
+
h5,
|
|
38
|
+
h6
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmInlineText } from './ElmInlineText.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmInlineText>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Colored: Story;
|
|
8
|
+
export declare const Kbd: Story;
|
|
9
|
+
export declare const Background: Story;
|
|
10
|
+
export declare const Ruby: Story;
|
|
11
|
+
export declare const Link: Story;
|
|
12
|
+
export declare const LinkWithOgp: Story;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
3
|
+
export interface ElmInlineTextProps {
|
|
4
|
+
/**
|
|
5
|
+
* The text to display.
|
|
6
|
+
*/
|
|
7
|
+
text?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the color of the text.
|
|
10
|
+
*
|
|
11
|
+
* e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`
|
|
12
|
+
*/
|
|
13
|
+
color?: Property.Color;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the font size of the text.
|
|
16
|
+
*/
|
|
17
|
+
size?: Property.FontSize;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies whether the text should be bold.
|
|
20
|
+
*/
|
|
21
|
+
bold?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies whether the text should be italic.
|
|
24
|
+
*/
|
|
25
|
+
italic?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies whether the text should be underlined.
|
|
28
|
+
*/
|
|
29
|
+
underline?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies whether the text should be strikethrough.
|
|
32
|
+
*/
|
|
33
|
+
strikethrough?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies whether the text should be displayed as code.
|
|
36
|
+
*/
|
|
37
|
+
code?: boolean;
|
|
38
|
+
kbd?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the background color of the text.
|
|
41
|
+
*/
|
|
42
|
+
backgroundColor?: Property.BackgroundColor;
|
|
43
|
+
/**
|
|
44
|
+
* The ruby text to display.
|
|
45
|
+
*/
|
|
46
|
+
ruby?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The URL to navigate to.
|
|
49
|
+
*
|
|
50
|
+
* e.g. `https://example.com`
|
|
51
|
+
*/
|
|
52
|
+
href?: string;
|
|
53
|
+
favicon?: string;
|
|
54
|
+
ogp?: {
|
|
55
|
+
title: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
image?: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
declare function __VLS_template(): {
|
|
61
|
+
attrs: Partial<{}>;
|
|
62
|
+
slots: Readonly<{
|
|
63
|
+
default?: () => VNodeChild;
|
|
64
|
+
}> & {
|
|
65
|
+
default?: () => VNodeChild;
|
|
66
|
+
};
|
|
67
|
+
refs: {};
|
|
68
|
+
rootEl: any;
|
|
69
|
+
};
|
|
70
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
71
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmInlineTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineTextProps> & Readonly<{}>, {
|
|
72
|
+
size: Property.FontSize;
|
|
73
|
+
code: boolean;
|
|
74
|
+
bold: boolean;
|
|
75
|
+
italic: boolean;
|
|
76
|
+
underline: boolean;
|
|
77
|
+
strikethrough: boolean;
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
79
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
80
|
+
export default _default;
|
|
81
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmInlineText.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmInlineText.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmInlineText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmInlineText as default
|
|
10
|
+
};
|