@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,55 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useModel, ref, onMounted, onServerPrefetch, createElementBlock, openBlock, normalizeClass, createElementVNode } from "vue";
|
|
2
|
+
import { getHighlighterSingleton } from "./shikiInstance.mjs";
|
|
3
|
+
const _hoisted_1 = ["innerHTML"];
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmShikiHighlighter",
|
|
6
|
+
props: /* @__PURE__ */ mergeModels({
|
|
7
|
+
code: {},
|
|
8
|
+
language: { default: "txt" }
|
|
9
|
+
}, {
|
|
10
|
+
"modelValue": { type: Boolean, ...{ default: false } },
|
|
11
|
+
"modelModifiers": {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const isRendered = useModel(__props, "modelValue");
|
|
17
|
+
const html = ref(`<pre>${props.code}</pre>`);
|
|
18
|
+
const render = async () => {
|
|
19
|
+
if (!isRendered.value) {
|
|
20
|
+
const highlighter = await getHighlighterSingleton();
|
|
21
|
+
try {
|
|
22
|
+
html.value = highlighter.codeToHtml(props.code, {
|
|
23
|
+
lang: props.language,
|
|
24
|
+
themes: {
|
|
25
|
+
dark: "vitesse-dark",
|
|
26
|
+
light: "vitesse-light"
|
|
27
|
+
},
|
|
28
|
+
colorReplacements: {
|
|
29
|
+
"#ffffff": "transparent",
|
|
30
|
+
"#121212": "transparent"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
} catch {
|
|
34
|
+
} finally {
|
|
35
|
+
isRendered.value = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
onMounted(render);
|
|
40
|
+
onServerPrefetch(render);
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(_ctx.$style.code)
|
|
44
|
+
}, [
|
|
45
|
+
createElementVNode("div", {
|
|
46
|
+
class: "shiki",
|
|
47
|
+
innerHTML: html.value
|
|
48
|
+
}, null, 8, _hoisted_1)
|
|
49
|
+
], 2);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
_sfc_main as default
|
|
55
|
+
};
|
|
@@ -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("._code_1pggw_1{font-size:16px;line-height:24px}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const code = "_code_1pggw_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
code
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
code,
|
|
19
|
+
style0 as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createHighlighter } from "shiki";
|
|
2
|
+
let highlighterPromise = null;
|
|
3
|
+
function getHighlighterSingleton() {
|
|
4
|
+
if (!highlighterPromise) {
|
|
5
|
+
highlighterPromise = createHighlighter({
|
|
6
|
+
langs: [
|
|
7
|
+
"abap",
|
|
8
|
+
"bash",
|
|
9
|
+
"c",
|
|
10
|
+
"clojure",
|
|
11
|
+
"coffeescript",
|
|
12
|
+
"c++",
|
|
13
|
+
"c#",
|
|
14
|
+
"css",
|
|
15
|
+
"dart",
|
|
16
|
+
"diff",
|
|
17
|
+
"docker",
|
|
18
|
+
"elixir",
|
|
19
|
+
"elm",
|
|
20
|
+
"erlang",
|
|
21
|
+
"f#",
|
|
22
|
+
"gherkin",
|
|
23
|
+
"glsl",
|
|
24
|
+
"go",
|
|
25
|
+
"graphql",
|
|
26
|
+
"groovy",
|
|
27
|
+
"haskell",
|
|
28
|
+
"html",
|
|
29
|
+
"java",
|
|
30
|
+
"javascript",
|
|
31
|
+
"json",
|
|
32
|
+
"julia",
|
|
33
|
+
"kotlin",
|
|
34
|
+
"latex",
|
|
35
|
+
"less",
|
|
36
|
+
"lisp",
|
|
37
|
+
"lua",
|
|
38
|
+
"makefile",
|
|
39
|
+
"markdown",
|
|
40
|
+
"matlab",
|
|
41
|
+
"mermaid",
|
|
42
|
+
"nix",
|
|
43
|
+
"objective-c",
|
|
44
|
+
"ocaml",
|
|
45
|
+
"pascal",
|
|
46
|
+
"perl",
|
|
47
|
+
"php",
|
|
48
|
+
"plaintext",
|
|
49
|
+
"powershell",
|
|
50
|
+
"prolog",
|
|
51
|
+
"protobuf",
|
|
52
|
+
"python",
|
|
53
|
+
"r",
|
|
54
|
+
"ruby",
|
|
55
|
+
"rust",
|
|
56
|
+
"sass",
|
|
57
|
+
"scala",
|
|
58
|
+
"scheme",
|
|
59
|
+
"scss",
|
|
60
|
+
"shell",
|
|
61
|
+
"sql",
|
|
62
|
+
"swift",
|
|
63
|
+
"toml",
|
|
64
|
+
"typescript",
|
|
65
|
+
"wasm",
|
|
66
|
+
"xml",
|
|
67
|
+
"yaml"
|
|
68
|
+
],
|
|
69
|
+
themes: ["vitesse-light", "vitesse-dark"]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return highlighterPromise;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
getHighlighterSingleton
|
|
76
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmColumnList } from './ElmColumnList.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmColumnList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ElmColumnProps {
|
|
2
|
+
}
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmColumnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColumnProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ElmColumnListProps {
|
|
2
|
+
}
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmColumnListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColumnListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmConfirmModal } from './ElmConfirmModal.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmConfirmModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface ElmConfirmModalProps {
|
|
3
|
+
title: string;
|
|
4
|
+
closeOnClickOutside?: boolean;
|
|
5
|
+
onConfirm: () => void | Promise<void>;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
onError?: (error: unknown) => void;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = ElmConfirmModalProps;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: Readonly<{
|
|
16
|
+
default?: () => VNode;
|
|
17
|
+
}> & {
|
|
18
|
+
default?: () => VNode;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: boolean) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
closeOnClickOutside: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmConfirmModal.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmConfirmModal.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmConfirmModal as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useModel, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, normalizeClass, renderSlot, unref } from "vue";
|
|
2
|
+
import ElmButton from "../form/ElmButton.vue.mjs";
|
|
3
|
+
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
4
|
+
import { mdiArrowLeft, mdiCheckCircle } from "@mdi/js";
|
|
5
|
+
import ElmHeading from "../typography/ElmHeading.vue.mjs";
|
|
6
|
+
import ElmModal from "./ElmModal.vue.mjs";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "ElmConfirmModal",
|
|
9
|
+
props: /* @__PURE__ */ mergeModels({
|
|
10
|
+
title: {},
|
|
11
|
+
closeOnClickOutside: { type: Boolean, default: true },
|
|
12
|
+
onConfirm: {},
|
|
13
|
+
onSuccess: {},
|
|
14
|
+
onError: {}
|
|
15
|
+
}, {
|
|
16
|
+
"modelValue": { type: Boolean, ...{ default: false } },
|
|
17
|
+
"modelModifiers": {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const isOpen = useModel(__props, "modelValue");
|
|
23
|
+
const loading = ref(false);
|
|
24
|
+
const handleConfirm = async () => {
|
|
25
|
+
loading.value = true;
|
|
26
|
+
try {
|
|
27
|
+
await props.onConfirm();
|
|
28
|
+
loading.value = false;
|
|
29
|
+
isOpen.value = false;
|
|
30
|
+
if (props.onSuccess) props.onSuccess();
|
|
31
|
+
} catch (e) {
|
|
32
|
+
if (props.onError) props.onError(e);
|
|
33
|
+
loading.value = false;
|
|
34
|
+
isOpen.value = false;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createBlock(ElmModal, {
|
|
39
|
+
modelValue: isOpen.value,
|
|
40
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpen.value = $event),
|
|
41
|
+
"close-on-click-outside": __props.closeOnClickOutside
|
|
42
|
+
}, {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
createElementVNode("div", null, [
|
|
45
|
+
createVNode(ElmHeading, {
|
|
46
|
+
level: 2,
|
|
47
|
+
"disable-fragment-identifier": ""
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}),
|
|
54
|
+
createElementVNode("div", {
|
|
55
|
+
class: normalizeClass(_ctx.$style.body)
|
|
56
|
+
}, [
|
|
57
|
+
renderSlot(_ctx.$slots, "default")
|
|
58
|
+
], 2),
|
|
59
|
+
createElementVNode("div", {
|
|
60
|
+
class: normalizeClass(_ctx.$style.button)
|
|
61
|
+
}, [
|
|
62
|
+
createVNode(ElmButton, {
|
|
63
|
+
block: "",
|
|
64
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = false),
|
|
65
|
+
loading: loading.value
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
createVNode(ElmMdiIcon, { d: unref(mdiArrowLeft) }, null, 8, ["d"]),
|
|
69
|
+
_cache[2] || (_cache[2] = createElementVNode("span", null, "Cancel", -1))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["loading"]),
|
|
73
|
+
createVNode(ElmButton, {
|
|
74
|
+
block: "",
|
|
75
|
+
onClick: handleConfirm,
|
|
76
|
+
primary: "",
|
|
77
|
+
loading: loading.value
|
|
78
|
+
}, {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createVNode(ElmMdiIcon, {
|
|
81
|
+
d: unref(mdiCheckCircle),
|
|
82
|
+
color: "currentColor"
|
|
83
|
+
}, null, 8, ["d"]),
|
|
84
|
+
_cache[3] || (_cache[3] = createElementVNode("span", null, " Confirm ", -1))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["loading"])
|
|
88
|
+
], 2)
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 8, ["modelValue", "close-on-click-outside"]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
_sfc_main as default
|
|
98
|
+
};
|
|
@@ -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("._body_1xnif_1{margin-block:3rem}._button_1xnif_5{width:100%;display:flex;flex-direction:row;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 body = "_body_1xnif_1";
|
|
14
|
+
const button = "_button_1xnif_5";
|
|
15
|
+
const style0 = {
|
|
16
|
+
body,
|
|
17
|
+
button
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
body,
|
|
21
|
+
button,
|
|
22
|
+
style0 as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmDesktopWindow } from './ElmDesktopWindow.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmDesktopWindow>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmDesktopWindowProps {
|
|
3
|
+
/**
|
|
4
|
+
* The minimum height of the window.
|
|
5
|
+
* @default '6rem'
|
|
6
|
+
*/
|
|
7
|
+
minHeight?: Property.MinHeight;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmDesktopWindowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDesktopWindowProps> & Readonly<{}>, {
|
|
19
|
+
minHeight: Property.MinHeight;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmDesktopWindow.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmDesktopWindow.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmDesktopWindow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmDesktopWindow as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmDesktopWindow",
|
|
4
|
+
props: {
|
|
5
|
+
minHeight: { default: "6rem" }
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("div", {
|
|
10
|
+
class: normalizeClass(_ctx.$style.window)
|
|
11
|
+
}, [
|
|
12
|
+
createElementVNode("div", {
|
|
13
|
+
class: normalizeClass(_ctx.$style.header)
|
|
14
|
+
}, [
|
|
15
|
+
createElementVNode("div", {
|
|
16
|
+
"aria-hidden": "",
|
|
17
|
+
class: normalizeClass(_ctx.$style.dot),
|
|
18
|
+
style: { "--bg": "#c48691" }
|
|
19
|
+
}, null, 2),
|
|
20
|
+
createElementVNode("div", {
|
|
21
|
+
"aria-hidden": "",
|
|
22
|
+
class: normalizeClass(_ctx.$style.dot),
|
|
23
|
+
style: { "--bg": "#c9b990" }
|
|
24
|
+
}, null, 2),
|
|
25
|
+
createElementVNode("div", {
|
|
26
|
+
"aria-hidden": "",
|
|
27
|
+
class: normalizeClass(_ctx.$style.dot),
|
|
28
|
+
style: { "--bg": "#7cc598" }
|
|
29
|
+
}, null, 2)
|
|
30
|
+
], 2),
|
|
31
|
+
createElementVNode("div", {
|
|
32
|
+
style: normalizeStyle({ minHeight: __props.minHeight })
|
|
33
|
+
}, [
|
|
34
|
+
renderSlot(_ctx.$slots, "default")
|
|
35
|
+
], 4)
|
|
36
|
+
], 2);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_sfc_main as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._window_1y8zq_1{border-radius:.25rem;overflow:hidden;transition:background-color .4s;box-shadow:0 0 .25rem #00000026;background-color:#0000000d}[data-theme=dark] ._window_1y8zq_1{box-shadow:0 0 .25rem #00000059;background-color:#ffffff0d}._window_1y8zq_1 ._header_1y8zq_12{box-sizing:border-box;padding:.5rem .75rem;display:flex;justify-content:flex-start;align-items:center;gap:.5rem;height:2rem;background-color:#0000001a}._window_1y8zq_1 ._header_1y8zq_12 ._dot_1y8zq_22{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--bg)}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const window = "_window_1y8zq_1";
|
|
14
|
+
const header = "_header_1y8zq_12";
|
|
15
|
+
const dot = "_dot_1y8zq_22";
|
|
16
|
+
const style0 = {
|
|
17
|
+
window,
|
|
18
|
+
header,
|
|
19
|
+
dot
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
style0 as default,
|
|
23
|
+
dot,
|
|
24
|
+
header,
|
|
25
|
+
window
|
|
26
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface ElmModalProps {
|
|
3
|
+
width?: string;
|
|
4
|
+
closeOnClickOutside?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = ElmModalProps;
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: Readonly<{
|
|
13
|
+
default?: () => VNode;
|
|
14
|
+
}> & {
|
|
15
|
+
default?: () => VNode;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
closeOnClickOutside: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmModal.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmModal.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmModal as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useSlots, useModel, createBlock, openBlock, Teleport, createVNode, Transition, unref, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, withModifiers, normalizeStyle, renderSlot } from "vue";
|
|
2
|
+
import fadeStyle from "../../styles/transition-fade.module.scss.mjs";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmModal",
|
|
5
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6
|
+
width: {},
|
|
7
|
+
closeOnClickOutside: { type: Boolean, default: true }
|
|
8
|
+
}, {
|
|
9
|
+
"modelValue": { type: Boolean, ...{
|
|
10
|
+
default: false
|
|
11
|
+
} },
|
|
12
|
+
"modelModifiers": {}
|
|
13
|
+
}),
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(__props) {
|
|
16
|
+
useSlots();
|
|
17
|
+
const isOpen = useModel(__props, "modelValue");
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
20
|
+
createVNode(Transition, {
|
|
21
|
+
"leave-from-class": unref(fadeStyle)["fade-leave-from"],
|
|
22
|
+
"enter-to-class": unref(fadeStyle)["fade-enter-to"],
|
|
23
|
+
"enter-active-class": unref(fadeStyle)["fade-enter-active"],
|
|
24
|
+
"leave-active-class": unref(fadeStyle)["fade-leave-active"],
|
|
25
|
+
"enter-from-class": unref(fadeStyle)["fade-enter-from"],
|
|
26
|
+
"leave-to-class": unref(fadeStyle)["fade-leave-to"]
|
|
27
|
+
}, {
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: normalizeClass(_ctx.$style.provider),
|
|
32
|
+
onClick: _cache[1] || (_cache[1] = () => {
|
|
33
|
+
if (__props.closeOnClickOutside) isOpen.value = false;
|
|
34
|
+
})
|
|
35
|
+
}, [
|
|
36
|
+
createElementVNode("div", {
|
|
37
|
+
class: normalizeClass(_ctx.$style.modal),
|
|
38
|
+
style: normalizeStyle({
|
|
39
|
+
"--width": __props.width
|
|
40
|
+
}),
|
|
41
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
42
|
+
}, ["stop"]))
|
|
43
|
+
}, [
|
|
44
|
+
renderSlot(_ctx.$slots, "default")
|
|
45
|
+
], 6)
|
|
46
|
+
], 2)) : createCommentVNode("", true)
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["leave-from-class", "enter-to-class", "enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
|
|
50
|
+
]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
_sfc_main as default
|
|
56
|
+
};
|
|
@@ -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("._provider_iydma_1{margin:0;padding:0;position:fixed;left:0;top:0;z-index:100;width:100%;height:100vh;display:flex;justify-content:center;align-items:center;transition:opacity .4s;background-color:#23262acc}._provider_iydma_1 ._modal_iydma_16{box-sizing:border-box;max-width:min(500px,100vw - 1rem);width:100%;width:var(--width, 100%);padding:.5rem;border-radius:.25rem;background-color:#fffc}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const provider = "_provider_iydma_1";
|
|
14
|
+
const modal = "_modal_iydma_16";
|
|
15
|
+
const style0 = {
|
|
16
|
+
provider,
|
|
17
|
+
modal
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
style0 as default,
|
|
21
|
+
modal,
|
|
22
|
+
provider
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface ElmParallaxProps {
|
|
2
|
+
imageUrl1: string;
|
|
3
|
+
imageUrl2: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ElmParallaxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmParallaxProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmParallax.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmParallax.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmParallax = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmParallax as default
|
|
10
|
+
};
|