@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,9 @@
|
|
|
1
|
+
export interface ElmSpinnerProps {
|
|
2
|
+
radius?: number;
|
|
3
|
+
weight?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ElmSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmSpinnerProps> & Readonly<{}>, {
|
|
6
|
+
weight: number;
|
|
7
|
+
radius: number;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmSpinner.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmSpinner.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmSpinner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmSpinner as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, normalizeClass } from "vue";
|
|
2
|
+
const _hoisted_1 = ["height", "width"];
|
|
3
|
+
const _hoisted_2 = ["cx", "cy", "r", "strokeWidth"];
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmSpinner",
|
|
6
|
+
props: {
|
|
7
|
+
radius: { default: 16 },
|
|
8
|
+
weight: { default: 2 }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("svg", {
|
|
13
|
+
height: __props.radius * 2,
|
|
14
|
+
width: __props.radius * 2
|
|
15
|
+
}, [
|
|
16
|
+
createElementVNode("circle", {
|
|
17
|
+
class: normalizeClass(_ctx.$style.circle),
|
|
18
|
+
cx: __props.radius,
|
|
19
|
+
cy: __props.radius,
|
|
20
|
+
r: __props.radius - __props.weight,
|
|
21
|
+
fill: "transparent",
|
|
22
|
+
strokeWidth: __props.weight
|
|
23
|
+
}, null, 10, _hoisted_2)
|
|
24
|
+
], 8, _hoisted_1);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("@keyframes _draw-line_mzcfh_1{0%{stroke-dashoffset:0%}to{stroke-dashoffset:400%}}@keyframes _rotate_mzcfh_1{0%{transform:rotate(180deg)}to{transform:rotate(-180deg)}}._circle_mzcfh_17{stroke-dasharray:200%;animation:_draw-line_mzcfh_1 1.2s infinite ease-in-out,_rotate_mzcfh_1 1.2s infinite linear;transform-origin:center;stroke:#555b67}[data-theme=dark] ._circle_mzcfh_17{stroke:#b0b5be}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const circle = "_circle_mzcfh_17";
|
|
14
|
+
const rotate = "_rotate_mzcfh_1";
|
|
15
|
+
const style0 = {
|
|
16
|
+
circle,
|
|
17
|
+
"draw-line": "_draw-line_mzcfh_1",
|
|
18
|
+
rotate
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
circle,
|
|
22
|
+
style0 as default,
|
|
23
|
+
rotate
|
|
24
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as UnsupportedBlock } from './ElmUnsupportedBlock.vue';
|
|
3
|
+
declare const meta: Meta<typeof UnsupportedBlock>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface ElmUnsupportedBlockProps {
|
|
2
|
+
details?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<ElmUnsupportedBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmUnsupportedBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmUnsupportedBlock.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmUnsupportedBlock.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmUnsupportedBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmUnsupportedBlock as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, createVNode, unref } from "vue";
|
|
2
|
+
import { mdiInformation } from "@mdi/js";
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
|
+
const _hoisted_1 = ["d"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ElmUnsupportedBlock",
|
|
7
|
+
props: {
|
|
8
|
+
details: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass(_ctx.$style.unsupported)
|
|
14
|
+
}, [
|
|
15
|
+
createElementVNode("div", {
|
|
16
|
+
class: normalizeClass(_ctx.$style.message)
|
|
17
|
+
}, [
|
|
18
|
+
(openBlock(), createElementBlock("svg", {
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
width: "1.25rem",
|
|
21
|
+
height: "1.25rem",
|
|
22
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
23
|
+
}, [
|
|
24
|
+
createElementVNode("path", { d: unref(mdiInformation) }, null, 8, _hoisted_1)
|
|
25
|
+
], 2)),
|
|
26
|
+
createVNode(ElmInlineText, {
|
|
27
|
+
text: "UNSUPPORTED BLOCK",
|
|
28
|
+
color: "#868e9c"
|
|
29
|
+
})
|
|
30
|
+
], 2),
|
|
31
|
+
__props.details ? (openBlock(), createElementBlock("div", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: normalizeClass(_ctx.$style.details)
|
|
34
|
+
}, [
|
|
35
|
+
createVNode(ElmInlineText, {
|
|
36
|
+
text: __props.details,
|
|
37
|
+
color: "#868e9c"
|
|
38
|
+
}, null, 8, ["text"])
|
|
39
|
+
], 2)) : createCommentVNode("", true)
|
|
40
|
+
], 2);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_sfc_main as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._unsupported_1imfj_1{box-sizing:border-box;padding:4rem;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;border:1px dashed rgba(134,142,156,.5)}._message_1imfj_12{display:flex;gap:.5rem;justify-content:center;align-items:center}._icon_1imfj_19{fill:#868e9c}._details_1imfj_23{opacity:.75}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const unsupported = "_unsupported_1imfj_1";
|
|
14
|
+
const message = "_message_1imfj_12";
|
|
15
|
+
const icon = "_icon_1imfj_19";
|
|
16
|
+
const details = "_details_1imfj_23";
|
|
17
|
+
const style0 = {
|
|
18
|
+
unsupported,
|
|
19
|
+
message,
|
|
20
|
+
icon,
|
|
21
|
+
details
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
style0 as default,
|
|
25
|
+
details,
|
|
26
|
+
icon,
|
|
27
|
+
message,
|
|
28
|
+
unsupported
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmButton } from './ElmButton.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Block: Story;
|
|
8
|
+
export declare const Loading: Story;
|
|
9
|
+
export declare const Flex: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const WithPrimary: Story;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface ElmButtonProps {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the button is in loading state.
|
|
4
|
+
*/
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the button is block.
|
|
8
|
+
*/
|
|
9
|
+
block?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the button is disabled.
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
color?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the button is primary.
|
|
17
|
+
*/
|
|
18
|
+
primary?: boolean;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: {};
|
|
27
|
+
rootEl: HTMLButtonElement;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmButtonProps> & Readonly<{}>, {
|
|
31
|
+
block: boolean;
|
|
32
|
+
loading: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
primary: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-d15a5efe],.v-leave-from[data-v-d15a5efe]{opacity:1}.v-enter-active[data-v-d15a5efe],.v-leave-active[data-v-d15a5efe]{transition:opacity .1s}.v-enter-from[data-v-d15a5efe],.v-leave-to[data-v-d15a5efe]{opacity:0}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
import _sfc_main from "./ElmButton.vue2.mjs";
|
|
14
|
+
import style0 from "./ElmButton.vue3.mjs";
|
|
15
|
+
|
|
16
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
+
const cssModules = {
|
|
18
|
+
"$style": style0
|
|
19
|
+
};
|
|
20
|
+
const ElmButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-d15a5efe"]]);
|
|
21
|
+
export {
|
|
22
|
+
ElmButton as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent, ref, onUnmounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, createVNode, Transition, withCtx, createBlock, renderSlot } from "vue";
|
|
2
|
+
import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmButton",
|
|
5
|
+
props: {
|
|
6
|
+
loading: { type: Boolean, default: false },
|
|
7
|
+
block: { type: Boolean, default: false },
|
|
8
|
+
disabled: { type: Boolean, default: false },
|
|
9
|
+
color: {},
|
|
10
|
+
primary: { type: Boolean, default: false },
|
|
11
|
+
onClick: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const clicked = ref(false);
|
|
16
|
+
const id = ref();
|
|
17
|
+
const handleClick = () => {
|
|
18
|
+
if (!props.loading && !props.disabled && props.onClick) {
|
|
19
|
+
clicked.value = true;
|
|
20
|
+
id.value = window.setTimeout(() => clicked.value = false, 300);
|
|
21
|
+
props.onClick();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
onUnmounted(() => {
|
|
25
|
+
if (id.value) clearTimeout(id.value);
|
|
26
|
+
});
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("button", {
|
|
29
|
+
class: normalizeClass([
|
|
30
|
+
_ctx.$style.button,
|
|
31
|
+
{
|
|
32
|
+
[_ctx.$style.enable]: !__props.loading && !__props.disabled,
|
|
33
|
+
[_ctx.$style.colored]: __props.color,
|
|
34
|
+
[_ctx.$style.normal]: !__props.color && !__props.primary,
|
|
35
|
+
[_ctx.$style.primary]: !__props.color && __props.primary
|
|
36
|
+
}
|
|
37
|
+
]),
|
|
38
|
+
style: normalizeStyle({
|
|
39
|
+
display: __props.block ? "flex" : "inline-flex",
|
|
40
|
+
width: __props.block ? "100%" : "auto",
|
|
41
|
+
cursor: __props.disabled ? "not-allowed" : __props.loading ? "progress" : "pointer",
|
|
42
|
+
"--opacity": __props.disabled ? 0.6 : void 0,
|
|
43
|
+
"--color": __props.color
|
|
44
|
+
}),
|
|
45
|
+
onClick: handleClick
|
|
46
|
+
}, [
|
|
47
|
+
clicked.value ? (openBlock(), createElementBlock("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: normalizeClass(_ctx.$style.ripple)
|
|
50
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
51
|
+
createVNode(Transition, { mode: "out-in" }, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
__props.loading ? (openBlock(), createBlock(ElmDotLoadingIcon, {
|
|
54
|
+
key: 0,
|
|
55
|
+
size: "1.5rem"
|
|
56
|
+
})) : (openBlock(), createElementBlock("span", {
|
|
57
|
+
key: 1,
|
|
58
|
+
class: normalizeClass(_ctx.$style.flex)
|
|
59
|
+
}, [
|
|
60
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
61
|
+
], 2))
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
})
|
|
65
|
+
], 6);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
_sfc_main as default
|
|
71
|
+
};
|
|
@@ -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("._button_1eklp_1{all:unset;position:relative;overflow:hidden;min-height:2.75rem;justify-content:center;align-items:center;gap:.5rem;border-radius:.25rem;box-sizing:border-box;padding:.5rem 1.5rem;line-height:1.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;transition:opacity .2s,transform .2s;opacity:var(--opacity);box-shadow:0 0 .125rem #0003}[data-theme=dark] ._button_1eklp_1{box-shadow:0 0 .125rem #0009}._normal_1eklp_23{color:#0009;background-color:#fffc}[data-theme=dark] ._normal_1eklp_23,._primary_1eklp_32{color:#fff9;background-color:#3e434b}[data-theme=dark] ._primary_1eklp_32{color:#0009;background-color:#fffc}._colored_1eklp_41{background-color:var(--color)}._enable_1eklp_45{transition:opacity .2s,transform .2s}[data-theme=dark] ._enable_1eklp_45:hover{transform:translate(-1px) translateY(-1px);opacity:.7;opacity:var(--opacity, .7)}[data-theme=dark] ._enable_1eklp_45:active{transform:translate(1px) translateY(1px);opacity:.5;opacity:var(--opacity, .5)}._enable_1eklp_45:hover{transform:translate(-1px) translateY(-1px);opacity:.7;opacity:var(--opacity, .7)}._enable_1eklp_45:active{transform:translate(1px) translateY(1px);opacity:.5;opacity:var(--opacity, .5)}._flex_1eklp_65{display:flex;justify-content:center;align-items:center;gap:.5rem}@keyframes _button-ripple_1eklp_1{0%{transform:scale(0);opacity:1}to{transform:scale(1.2);opacity:0}}._ripple_1eklp_82{position:absolute;pointer-events:none;border-radius:50%;background-color:#80808059;width:100%;aspect-ratio:1/1;transition:none;opacity:0;animation-name:_button-ripple_1eklp_1;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:ease-out}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const button = "_button_1eklp_1";
|
|
14
|
+
const normal = "_normal_1eklp_23";
|
|
15
|
+
const primary = "_primary_1eklp_32";
|
|
16
|
+
const colored = "_colored_1eklp_41";
|
|
17
|
+
const enable = "_enable_1eklp_45";
|
|
18
|
+
const flex = "_flex_1eklp_65";
|
|
19
|
+
const ripple = "_ripple_1eklp_82";
|
|
20
|
+
const style0 = {
|
|
21
|
+
button,
|
|
22
|
+
normal,
|
|
23
|
+
primary,
|
|
24
|
+
colored,
|
|
25
|
+
enable,
|
|
26
|
+
flex,
|
|
27
|
+
ripple,
|
|
28
|
+
"button-ripple": "_button-ripple_1eklp_1"
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
button,
|
|
32
|
+
colored,
|
|
33
|
+
style0 as default,
|
|
34
|
+
enable,
|
|
35
|
+
flex,
|
|
36
|
+
normal,
|
|
37
|
+
primary,
|
|
38
|
+
ripple
|
|
39
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ElmCheckboxProps {
|
|
2
|
+
/**
|
|
3
|
+
* The label displayed.
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the checkbox is in a loading state.
|
|
8
|
+
*/
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the checkbox is disabled.
|
|
12
|
+
*/
|
|
13
|
+
disable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type __VLS_Props = ElmCheckboxProps;
|
|
16
|
+
type __VLS_PublicProps = {
|
|
17
|
+
modelValue?: boolean;
|
|
18
|
+
} & __VLS_Props;
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: boolean) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
loading: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmCheckbox.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmCheckbox.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmCheckbox as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createCommentVNode, normalizeStyle } from "vue";
|
|
2
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
3
|
+
const _hoisted_1 = { style: {
|
|
4
|
+
display: "flex",
|
|
5
|
+
alignItems: "center",
|
|
6
|
+
gap: "0.5rem"
|
|
7
|
+
} };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "ElmCheckbox",
|
|
10
|
+
props: /* @__PURE__ */ mergeModels({
|
|
11
|
+
label: {},
|
|
12
|
+
loading: { type: Boolean, default: false },
|
|
13
|
+
disable: { type: Boolean }
|
|
14
|
+
}, {
|
|
15
|
+
"modelValue": { type: Boolean, ...{} },
|
|
16
|
+
"modelModifiers": {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const isChecked = useModel(__props, "modelValue");
|
|
22
|
+
function toggleCheck() {
|
|
23
|
+
if (!props.loading && !props.disable) {
|
|
24
|
+
isChecked.value = !isChecked.value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", {
|
|
29
|
+
class: normalizeClass([
|
|
30
|
+
_ctx.$style.container,
|
|
31
|
+
{
|
|
32
|
+
[_ctx.$style["container--disable"]]: props.disable
|
|
33
|
+
}
|
|
34
|
+
]),
|
|
35
|
+
onClick: toggleCheck
|
|
36
|
+
}, [
|
|
37
|
+
createElementVNode("div", _hoisted_1, [
|
|
38
|
+
(openBlock(), createElementBlock("svg", {
|
|
39
|
+
width: "24",
|
|
40
|
+
height: "24",
|
|
41
|
+
class: normalizeClass(_ctx.$style.checkbox)
|
|
42
|
+
}, [
|
|
43
|
+
createElementVNode("circle", {
|
|
44
|
+
cx: "0",
|
|
45
|
+
cy: "0",
|
|
46
|
+
r: "2",
|
|
47
|
+
class: normalizeClass(_ctx.$style.loading),
|
|
48
|
+
style: normalizeStyle({ opacity: props.loading ? 1 : 0 })
|
|
49
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
50
|
+
createElementVNode("animate", {
|
|
51
|
+
attributeName: "cx",
|
|
52
|
+
values: "4; 20; 20; 4; 4",
|
|
53
|
+
dur: "1.2s",
|
|
54
|
+
repeatCount: "indefinite",
|
|
55
|
+
keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
|
|
56
|
+
calcMode: "spline"
|
|
57
|
+
}, null, -1),
|
|
58
|
+
createElementVNode("animate", {
|
|
59
|
+
attributeName: "cy",
|
|
60
|
+
values: "4; 4; 20; 20; 4",
|
|
61
|
+
dur: "1.2s",
|
|
62
|
+
repeatCount: "indefinite",
|
|
63
|
+
keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
|
|
64
|
+
calcMode: "spline"
|
|
65
|
+
}, null, -1)
|
|
66
|
+
])], 6),
|
|
67
|
+
createElementVNode("circle", {
|
|
68
|
+
cx: "20",
|
|
69
|
+
cy: "20",
|
|
70
|
+
r: "2",
|
|
71
|
+
class: normalizeClass(_ctx.$style.loading),
|
|
72
|
+
style: normalizeStyle({ opacity: props.loading ? 1 : 0 })
|
|
73
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
74
|
+
createElementVNode("animate", {
|
|
75
|
+
attributeName: "cx",
|
|
76
|
+
values: "20; 4; 4; 20; 20",
|
|
77
|
+
dur: "1.2s",
|
|
78
|
+
repeatCount: "indefinite",
|
|
79
|
+
keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
|
|
80
|
+
calcMode: "spline"
|
|
81
|
+
}, null, -1),
|
|
82
|
+
createElementVNode("animate", {
|
|
83
|
+
attributeName: "cy",
|
|
84
|
+
values: "20; 20; 4; 4; 20",
|
|
85
|
+
dur: "1.2s",
|
|
86
|
+
repeatCount: "indefinite",
|
|
87
|
+
keySplines: "0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1",
|
|
88
|
+
calcMode: "spline"
|
|
89
|
+
}, null, -1)
|
|
90
|
+
])], 6),
|
|
91
|
+
createElementVNode("rect", {
|
|
92
|
+
x: "4",
|
|
93
|
+
y: "4",
|
|
94
|
+
width: "16",
|
|
95
|
+
height: "16",
|
|
96
|
+
class: normalizeClass([
|
|
97
|
+
_ctx.$style.rect,
|
|
98
|
+
{
|
|
99
|
+
[_ctx.$style["rect--checked"]]: isChecked.value,
|
|
100
|
+
[_ctx.$style["rect--loading"]]: props.loading
|
|
101
|
+
}
|
|
102
|
+
]),
|
|
103
|
+
strokeWidth: "0.8"
|
|
104
|
+
}, null, 2),
|
|
105
|
+
isChecked.value ? (openBlock(), createElementBlock("polyline", {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: normalizeClass(_ctx.$style["check-line"]),
|
|
108
|
+
points: "5,12 10,17 19,8",
|
|
109
|
+
strokeWidth: "1.5",
|
|
110
|
+
fill: "transparent"
|
|
111
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
112
|
+
_cache[2] || (_cache[2] = createElementVNode("line", {
|
|
113
|
+
x1: "0",
|
|
114
|
+
y1: "1",
|
|
115
|
+
x2: "4",
|
|
116
|
+
y2: "1",
|
|
117
|
+
strokeWidth: "2",
|
|
118
|
+
fill: "transparent"
|
|
119
|
+
}, null, -1)),
|
|
120
|
+
_cache[3] || (_cache[3] = createElementVNode("line", {
|
|
121
|
+
x1: "4",
|
|
122
|
+
y1: "0",
|
|
123
|
+
x2: "24",
|
|
124
|
+
y2: "0",
|
|
125
|
+
strokeWidth: "1",
|
|
126
|
+
fill: "transparent"
|
|
127
|
+
}, null, -1)),
|
|
128
|
+
_cache[4] || (_cache[4] = createElementVNode("line", {
|
|
129
|
+
x1: "0",
|
|
130
|
+
y1: "4",
|
|
131
|
+
x2: "0",
|
|
132
|
+
y2: "16",
|
|
133
|
+
strokeWidth: "1",
|
|
134
|
+
fill: "transparent"
|
|
135
|
+
}, null, -1)),
|
|
136
|
+
_cache[5] || (_cache[5] = createElementVNode("line", {
|
|
137
|
+
x1: "0",
|
|
138
|
+
y1: "18",
|
|
139
|
+
x2: "0",
|
|
140
|
+
y2: "20",
|
|
141
|
+
strokeWidth: "1",
|
|
142
|
+
fill: "transparent"
|
|
143
|
+
}, null, -1)),
|
|
144
|
+
_cache[6] || (_cache[6] = createElementVNode("line", {
|
|
145
|
+
x1: "0",
|
|
146
|
+
y1: "24",
|
|
147
|
+
x2: "20",
|
|
148
|
+
y2: "24",
|
|
149
|
+
strokeWidth: "1",
|
|
150
|
+
fill: "transparent"
|
|
151
|
+
}, null, -1)),
|
|
152
|
+
_cache[7] || (_cache[7] = createElementVNode("line", {
|
|
153
|
+
x1: "20",
|
|
154
|
+
y1: "23",
|
|
155
|
+
x2: "24",
|
|
156
|
+
y2: "23",
|
|
157
|
+
strokeWidth: "1.5",
|
|
158
|
+
fill: "transparent"
|
|
159
|
+
}, null, -1)),
|
|
160
|
+
_cache[8] || (_cache[8] = createElementVNode("line", {
|
|
161
|
+
x1: "24",
|
|
162
|
+
y1: "4",
|
|
163
|
+
x2: "24",
|
|
164
|
+
y2: "20",
|
|
165
|
+
style: { strokeWidth: 1 },
|
|
166
|
+
fill: "transparent"
|
|
167
|
+
}, null, -1))
|
|
168
|
+
], 2)),
|
|
169
|
+
createVNode(ElmInlineText, { text: __props.label }, null, 8, ["text"])
|
|
170
|
+
])
|
|
171
|
+
], 2);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
export {
|
|
176
|
+
_sfc_main as default
|
|
177
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._container_101ok_1{width:-moz-fit-content;width:fit-content;font-family:sans-serif;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;transition:opacity .2s}._container_101ok_1:hover{opacity:.8}._container--disable_101ok_11{opacity:.45;cursor:not-allowed}._container--disable_101ok_11:hover{opacity:.45}._checkbox_101ok_19{stroke:#000c;fill:transparent}[data-theme=dark] ._checkbox_101ok_19{stroke:#fffc}._rect_101ok_27{transition:all .2s}._rect--loading_101ok_30{opacity:.3}._rect--checked_101ok_33{fill:#000c}[data-theme=dark] ._rect--checked_101ok_33{fill:#fffc}._loading_101ok_40{transition:opacity .2s;fill:#000000b3}[data-theme=dark] ._loading_101ok_40{fill:#ffffffb3}@keyframes _elmethis-checkbox-check-line_101ok_1{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0%}}._check-line_101ok_56{stroke-dasharray:100%;animation-name:_elmethis-checkbox-check-line_101ok_1;animation-duration:.2s;animation-timing-function:ease-in-out;animation-delay:.1s;animation-fill-mode:both;transform-origin:center;stroke:#ffffffe6}[data-theme=dark] ._check-line_101ok_56{stroke:#000000e6}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const container = "_container_101ok_1";
|
|
14
|
+
const checkbox = "_checkbox_101ok_19";
|
|
15
|
+
const rect = "_rect_101ok_27";
|
|
16
|
+
const loading = "_loading_101ok_40";
|
|
17
|
+
const style0 = {
|
|
18
|
+
container,
|
|
19
|
+
"container--disable": "_container--disable_101ok_11",
|
|
20
|
+
checkbox,
|
|
21
|
+
rect,
|
|
22
|
+
"rect--loading": "_rect--loading_101ok_30",
|
|
23
|
+
"rect--checked": "_rect--checked_101ok_33",
|
|
24
|
+
loading,
|
|
25
|
+
"check-line": "_check-line_101ok_56",
|
|
26
|
+
"elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_101ok_1"
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
checkbox,
|
|
30
|
+
container,
|
|
31
|
+
style0 as default,
|
|
32
|
+
loading,
|
|
33
|
+
rect
|
|
34
|
+
};
|