@elmethis/core 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/dist/_virtual/_plugin-vue_export-helper.mjs +10 -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 +40 -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 +67 -0
- package/dist/components/code/ElmKatex.vue3.mjs +20 -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/ElmColumn.vue.mjs +10 -0
- package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumn.vue3.mjs +20 -0
- package/dist/components/containments/ElmColumnList.vue.d.ts +19 -0
- package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
- package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumnList.vue3.mjs +18 -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 +35 -0
- package/dist/components/containments/ElmModal.vue.mjs +23 -0
- package/dist/components/containments/ElmModal.vue2.mjs +44 -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/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 +23 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +99 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +34 -0
- package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +24 -0
- package/dist/components/containments/ElmTooltip.vue.mjs +23 -0
- package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
- package/dist/components/containments/ElmTooltip.vue3.mjs +20 -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 +41 -0
- package/dist/components/form/ElmButton.vue.mjs +23 -0
- package/dist/components/form/ElmButton.vue2.mjs +68 -0
- package/dist/components/form/ElmButton.vue3.mjs +36 -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/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 +6 -0
- package/dist/components/form/ElmTextField.vue.d.ts +29 -0
- package/dist/components/form/ElmTextField.vue.mjs +10 -0
- package/dist/components/form/ElmTextField.vue2.mjs +143 -0
- package/dist/components/form/ElmTextField.vue3.mjs +46 -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 +14 -0
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +23 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +202 -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/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 +4 -0
- package/dist/components/icon/languages/C.vue2.mjs +34 -0
- package/dist/components/icon/languages/Cplusplus.vue.d.ts +7 -0
- package/dist/components/icon/languages/Cplusplus.vue.mjs +4 -0
- package/dist/components/icon/languages/Cplusplus.vue2.mjs +38 -0
- package/dist/components/icon/languages/Csharp.vue.d.ts +7 -0
- package/dist/components/icon/languages/Csharp.vue.mjs +4 -0
- package/dist/components/icon/languages/Csharp.vue2.mjs +34 -0
- package/dist/components/icon/languages/Css.vue.d.ts +7 -0
- package/dist/components/icon/languages/Css.vue.mjs +4 -0
- package/dist/components/icon/languages/Css.vue2.mjs +26 -0
- package/dist/components/icon/languages/Go.vue.d.ts +7 -0
- package/dist/components/icon/languages/Go.vue.mjs +4 -0
- package/dist/components/icon/languages/Go.vue2.mjs +32 -0
- package/dist/components/icon/languages/Html.vue.d.ts +7 -0
- package/dist/components/icon/languages/Html.vue.mjs +4 -0
- package/dist/components/icon/languages/Html.vue2.mjs +38 -0
- package/dist/components/icon/languages/Java.vue.d.ts +7 -0
- package/dist/components/icon/languages/Java.vue.mjs +4 -0
- package/dist/components/icon/languages/Java.vue2.mjs +23 -0
- package/dist/components/icon/languages/Javascript.vue.d.ts +7 -0
- package/dist/components/icon/languages/Javascript.vue.mjs +4 -0
- package/dist/components/icon/languages/Javascript.vue2.mjs +30 -0
- package/dist/components/icon/languages/Json.vue.d.ts +7 -0
- package/dist/components/icon/languages/Json.vue.mjs +4 -0
- package/dist/components/icon/languages/Json.vue2.mjs +23 -0
- package/dist/components/icon/languages/Kotlin.vue.d.ts +7 -0
- package/dist/components/icon/languages/Kotlin.vue.mjs +4 -0
- package/dist/components/icon/languages/Kotlin.vue2.mjs +23 -0
- package/dist/components/icon/languages/Lua.vue.d.ts +7 -0
- package/dist/components/icon/languages/Lua.vue.mjs +4 -0
- package/dist/components/icon/languages/Lua.vue2.mjs +34 -0
- package/dist/components/icon/languages/Npm.vue.d.ts +7 -0
- package/dist/components/icon/languages/Npm.vue.mjs +4 -0
- package/dist/components/icon/languages/Npm.vue2.mjs +30 -0
- package/dist/components/icon/languages/Python.vue.d.ts +7 -0
- package/dist/components/icon/languages/Python.vue.mjs +4 -0
- package/dist/components/icon/languages/Python.vue2.mjs +23 -0
- package/dist/components/icon/languages/Rust.vue.d.ts +7 -0
- package/dist/components/icon/languages/Rust.vue.mjs +4 -0
- package/dist/components/icon/languages/Rust.vue2.mjs +24 -0
- package/dist/components/icon/languages/Sql.vue.d.ts +7 -0
- package/dist/components/icon/languages/Sql.vue.mjs +4 -0
- package/dist/components/icon/languages/Sql.vue2.mjs +26 -0
- package/dist/components/icon/languages/Terraform.vue.d.ts +7 -0
- package/dist/components/icon/languages/Terraform.vue.mjs +4 -0
- package/dist/components/icon/languages/Terraform.vue2.mjs +36 -0
- package/dist/components/icon/languages/Typescript.vue.d.ts +7 -0
- package/dist/components/icon/languages/Typescript.vue.mjs +4 -0
- package/dist/components/icon/languages/Typescript.vue2.mjs +30 -0
- package/dist/components/media/ElmBlockImage.stories.d.ts +9 -0
- package/dist/components/media/ElmBlockImage.vue.d.ts +12 -0
- package/dist/components/media/ElmBlockImage.vue.mjs +23 -0
- package/dist/components/media/ElmBlockImage.vue2.mjs +117 -0
- package/dist/components/media/ElmBlockImage.vue3.mjs +36 -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 +23 -0
- package/dist/components/media/ElmImage.vue.mjs +23 -0
- package/dist/components/media/ElmImage.vue2.mjs +91 -0
- package/dist/components/media/ElmImage.vue3.mjs +30 -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 +51 -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 +45 -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 +240 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -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 +61 -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 +10 -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 +62 -0
- package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +23 -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 +72 -0
- package/dist/components/typography/ElmHeading.vue3.mjs +39 -0
- package/dist/components/typography/ElmInlineText.stories.d.ts +10 -0
- package/dist/components/typography/ElmInlineText.vue.d.ts +61 -0
- package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
- package/dist/components/typography/ElmInlineText.vue2.mjs +98 -0
- package/dist/components/typography/ElmInlineText.vue3.mjs +26 -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/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 +108 -0
- package/dist/index.mjs +124 -0
- package/package.json +60 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
export interface ElmToggleProps {
|
|
4
|
+
/**
|
|
5
|
+
* The summary of the toggle.
|
|
6
|
+
*/
|
|
7
|
+
summary?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The margin of the toggle.
|
|
10
|
+
*/
|
|
11
|
+
margin?: Property.MarginBlock;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = ElmToggleProps;
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
"isOpen"?: boolean;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: Readonly<{
|
|
20
|
+
default: () => VNode[];
|
|
21
|
+
summary?: () => VNode[];
|
|
22
|
+
}> & {
|
|
23
|
+
default: () => VNode[];
|
|
24
|
+
summary?: () => VNode[];
|
|
25
|
+
};
|
|
26
|
+
refs: {};
|
|
27
|
+
rootEl: HTMLDivElement;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
"update:isOpen": (value: boolean) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -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-3d63d491],.v-leave-from[data-v-3d63d491]{opacity:1}.v-enter-active[data-v-3d63d491],.v-leave-active[data-v-3d63d491]{transition:opacity .2s;transform-origin:top}.v-enter-from[data-v-3d63d491],.v-leave-to[data-v-3d63d491]{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 "./ElmToggle.vue2.mjs";
|
|
14
|
+
import style0 from "./ElmToggle.vue3.mjs";
|
|
15
|
+
|
|
16
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
+
const cssModules = {
|
|
18
|
+
"$style": style0
|
|
19
|
+
};
|
|
20
|
+
const ElmToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-3d63d491"]]);
|
|
21
|
+
export {
|
|
22
|
+
ElmToggle as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, unref, createBlock, renderSlot, Transition, withCtx, createCommentVNode } from "vue";
|
|
2
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
3
|
+
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
4
|
+
import { mdiChevronRight, mdiPlus, mdiChevronUp } from "@mdi/js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ElmToggle",
|
|
7
|
+
props: /* @__PURE__ */ mergeModels({
|
|
8
|
+
summary: {},
|
|
9
|
+
margin: {}
|
|
10
|
+
}, {
|
|
11
|
+
"isOpen": { type: Boolean, ...{
|
|
12
|
+
default: false
|
|
13
|
+
} },
|
|
14
|
+
"isOpenModifiers": {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:isOpen"],
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const isOpen = useModel(__props, "isOpen");
|
|
19
|
+
const handleClick = (event) => {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
isOpen.value = !isOpen.value;
|
|
22
|
+
};
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createElementBlock("div", {
|
|
25
|
+
class: normalizeClass(_ctx.$style.toggle),
|
|
26
|
+
style: normalizeStyle({ "--margin-block": _ctx.margin })
|
|
27
|
+
}, [
|
|
28
|
+
createElementVNode("div", {
|
|
29
|
+
class: normalizeClass(_ctx.$style.summary),
|
|
30
|
+
onClick: handleClick,
|
|
31
|
+
style: normalizeStyle({
|
|
32
|
+
borderRadius: isOpen.value ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"
|
|
33
|
+
})
|
|
34
|
+
}, [
|
|
35
|
+
createElementVNode("div", {
|
|
36
|
+
class: normalizeClass(_ctx.$style["summary-left"])
|
|
37
|
+
}, [
|
|
38
|
+
createVNode(ElmMdiIcon, {
|
|
39
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
40
|
+
d: unref(mdiChevronRight),
|
|
41
|
+
style: normalizeStyle({ "--rotate": isOpen.value ? "90deg" : "0deg" }),
|
|
42
|
+
color: "#59b57c"
|
|
43
|
+
}, null, 8, ["class", "d", "style"]),
|
|
44
|
+
createElementVNode("div", null, [
|
|
45
|
+
_ctx.summary != null ? (openBlock(), createBlock(ElmInlineText, {
|
|
46
|
+
key: 0,
|
|
47
|
+
text: _ctx.summary
|
|
48
|
+
}, null, 8, ["text"])) : renderSlot(_ctx.$slots, "summary", { key: 1 }, void 0, true)
|
|
49
|
+
])
|
|
50
|
+
], 2),
|
|
51
|
+
createVNode(ElmMdiIcon, {
|
|
52
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
53
|
+
d: unref(mdiPlus),
|
|
54
|
+
style: normalizeStyle({ "--rotate": isOpen.value ? "135deg" : "0deg" }),
|
|
55
|
+
color: isOpen.value ? "#b36472" : "#59b57c"
|
|
56
|
+
}, null, 8, ["class", "d", "style", "color"])
|
|
57
|
+
], 6),
|
|
58
|
+
createVNode(Transition, null, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: normalizeClass(_ctx.$style.content)
|
|
63
|
+
}, [
|
|
64
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
65
|
+
], 2)) : createCommentVNode("", true)
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}),
|
|
69
|
+
createVNode(Transition, null, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: normalizeClass(_ctx.$style.close),
|
|
74
|
+
onClick: handleClick
|
|
75
|
+
}, [
|
|
76
|
+
createElementVNode("div", {
|
|
77
|
+
class: normalizeClass(_ctx.$style["close-button"])
|
|
78
|
+
}, [
|
|
79
|
+
createVNode(ElmMdiIcon, {
|
|
80
|
+
d: unref(mdiChevronUp),
|
|
81
|
+
size: "1.25em",
|
|
82
|
+
color: "#c56565"
|
|
83
|
+
}, null, 8, ["d"]),
|
|
84
|
+
createVNode(ElmInlineText, {
|
|
85
|
+
text: "CLOSE",
|
|
86
|
+
color: "#8e3636"
|
|
87
|
+
})
|
|
88
|
+
], 2)
|
|
89
|
+
], 2)) : createCommentVNode("", true)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
], 6);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
_sfc_main as default
|
|
99
|
+
};
|
|
@@ -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("._toggle_vxu3h_1{margin-block:var(--margin-block)}._summary_vxu3h_5{box-sizing:border-box;padding:1rem;width:100%;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:.5rem;border:1px solid rgba(128,128,128,.25);background-color:#00000006}[data-theme=dark] ._summary_vxu3h_5{background-color:#ffffff1a}._summary-left_vxu3h_22{display:flex;gap:.5rem;align-items:center}._icon_vxu3h_28{transform:rotate(0);transform:rotate(var(--rotate, 0deg));transition:transform .2s}._content_vxu3h_33{margin:0;padding:.75rem;display:block;background-color:#ffffff0d;border:1px solid rgba(128,128,128,.25);border-radius:0 0 .25rem .25rem}._close_vxu3h_42{margin-block:.25rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:.25rem}._close-button_vxu3h_51{padding:.25rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;opacity:.7;transition:background-color .1s;border-radius:.25rem}._close-button_vxu3h_51:hover{background-color:#c5656526}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const toggle = "_toggle_vxu3h_1";
|
|
14
|
+
const summary = "_summary_vxu3h_5";
|
|
15
|
+
const icon = "_icon_vxu3h_28";
|
|
16
|
+
const content = "_content_vxu3h_33";
|
|
17
|
+
const close = "_close_vxu3h_42";
|
|
18
|
+
const style0 = {
|
|
19
|
+
toggle,
|
|
20
|
+
summary,
|
|
21
|
+
"summary-left": "_summary-left_vxu3h_22",
|
|
22
|
+
icon,
|
|
23
|
+
content,
|
|
24
|
+
close,
|
|
25
|
+
"close-button": "_close-button_vxu3h_51"
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
close,
|
|
29
|
+
content,
|
|
30
|
+
style0 as default,
|
|
31
|
+
icon,
|
|
32
|
+
summary,
|
|
33
|
+
toggle
|
|
34
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ElmTooltipProps {
|
|
2
|
+
}
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
original?(_: {}): any;
|
|
7
|
+
tooltip?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
el: HTMLSpanElement;
|
|
11
|
+
};
|
|
12
|
+
rootEl: HTMLSpanElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
el: HTMLSpanElement;
|
|
17
|
+
}, HTMLSpanElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -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-cd939485],.v-leave-from[data-v-cd939485]{transform:scale(1);opacity:1}.v-enter-active[data-v-cd939485],.v-leave-active[data-v-cd939485]{transition:opacity .1s,transform .2s}.v-enter-from[data-v-cd939485],.v-leave-to[data-v-cd939485]{transform:scale(.5);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 "./ElmTooltip.vue2.mjs";
|
|
14
|
+
import style0 from "./ElmTooltip.vue3.mjs";
|
|
15
|
+
|
|
16
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
+
const cssModules = {
|
|
18
|
+
"$style": style0
|
|
19
|
+
};
|
|
20
|
+
const ElmTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-cd939485"]]);
|
|
21
|
+
export {
|
|
22
|
+
ElmTooltip as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, renderSlot, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, unref } from "vue";
|
|
2
|
+
import { useElementBounding, useWindowSize } from "@vueuse/core";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmTooltip",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
const el = ref(null);
|
|
7
|
+
const { x, y, width, height } = useElementBounding(el);
|
|
8
|
+
const windowSize = useWindowSize();
|
|
9
|
+
const isHover = ref(false);
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("span", {
|
|
12
|
+
ref_key: "el",
|
|
13
|
+
ref: el,
|
|
14
|
+
class: normalizeClass(_ctx.$style.original),
|
|
15
|
+
onMouseover: _cache[0] || (_cache[0] = () => {
|
|
16
|
+
isHover.value = true;
|
|
17
|
+
}),
|
|
18
|
+
onMouseleave: _cache[1] || (_cache[1] = () => {
|
|
19
|
+
isHover.value = false;
|
|
20
|
+
})
|
|
21
|
+
}, [
|
|
22
|
+
renderSlot(_ctx.$slots, "original", {}, void 0, true),
|
|
23
|
+
createVNode(Transition, null, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
isHover.value ? (openBlock(), createElementBlock("div", {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: normalizeClass(_ctx.$style.tooltip),
|
|
28
|
+
style: normalizeStyle(
|
|
29
|
+
unref(x) > unref(windowSize).width.value / 2 ? {
|
|
30
|
+
top: `${unref(y) + unref(height)}px`,
|
|
31
|
+
right: `${unref(windowSize).width.value - unref(x) - unref(width)}px`
|
|
32
|
+
} : {
|
|
33
|
+
top: `${unref(y) + unref(height)}px`,
|
|
34
|
+
left: `${unref(x)}px`
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
}, [
|
|
38
|
+
renderSlot(_ctx.$slots, "tooltip", {}, void 0, true)
|
|
39
|
+
], 6)) : createCommentVNode("", true)
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
})
|
|
43
|
+
], 34);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -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("._tooltip_1tyuh_1{position:fixed;z-index:1000;box-sizing:border-box;padding:.25rem .5rem;border-radius:.25rem;box-shadow:0 0 .25rem #0000001a;color:#000000b3;background-color:#ffffffe6;transform-origin:top}[data-theme=dark] ._tooltip_1tyuh_1{color:#ffffffb3;background-color:#000000e6}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const tooltip = "_tooltip_1tyuh_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
tooltip
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
tooltip
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export declare function useSnackbarState(): {
|
|
3
|
+
snackbars: import('vue').Ref<{
|
|
4
|
+
id: string;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
timeout: number;
|
|
7
|
+
children?: VNode | undefined;
|
|
8
|
+
close: () => void;
|
|
9
|
+
}[], {
|
|
10
|
+
id: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
timeout: number;
|
|
13
|
+
children?: VNode;
|
|
14
|
+
close: () => void;
|
|
15
|
+
}[] | {
|
|
16
|
+
id: string;
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
timeout: number;
|
|
19
|
+
children?: VNode | undefined;
|
|
20
|
+
close: () => void;
|
|
21
|
+
}[]>;
|
|
22
|
+
push: ({ label, timeout, children, }: {
|
|
23
|
+
label?: string;
|
|
24
|
+
timeout?: number;
|
|
25
|
+
children?: VNode;
|
|
26
|
+
}) => string;
|
|
27
|
+
remove: (id: string) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmMultiProgress } from './ElmMultiProgress.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmMultiProgress>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmMultiProgressProps {
|
|
3
|
+
progress: Array<{
|
|
4
|
+
/**
|
|
5
|
+
* The current value of the progress.
|
|
6
|
+
*/
|
|
7
|
+
value: number;
|
|
8
|
+
/**
|
|
9
|
+
* The buffer value of the progress.
|
|
10
|
+
*/
|
|
11
|
+
buffer?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The color of the progress.
|
|
14
|
+
*/
|
|
15
|
+
color: string;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* The weight of the progress.
|
|
19
|
+
*/
|
|
20
|
+
weight?: Property.Height<string | number>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the progress should be round.
|
|
23
|
+
*/
|
|
24
|
+
round?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import('vue').DefineComponent<ElmMultiProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmMultiProgressProps> & Readonly<{}>, {
|
|
27
|
+
weight: Property.Height<string | number>;
|
|
28
|
+
round: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmMultiProgress.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmMultiProgress.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmMultiProgress = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmMultiProgress as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, Fragment, renderList } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmMultiProgress",
|
|
4
|
+
props: {
|
|
5
|
+
progress: {},
|
|
6
|
+
weight: { default: "4px" },
|
|
7
|
+
round: { type: Boolean, default: true }
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const max = computed(() => props.progress.reduce((p, n) => p + n.value, 0));
|
|
12
|
+
const computedProgress = computed(() => {
|
|
13
|
+
let cumulative = 0;
|
|
14
|
+
return props.progress.map((p) => {
|
|
15
|
+
const scale = p.value / max.value * 100;
|
|
16
|
+
const start = cumulative;
|
|
17
|
+
cumulative += scale;
|
|
18
|
+
return { ...p, scale: scale / 100, start };
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createElementBlock("div", {
|
|
23
|
+
class: normalizeClass(_ctx.$style.container),
|
|
24
|
+
style: normalizeStyle({
|
|
25
|
+
"--weight": _ctx.weight,
|
|
26
|
+
"--border-radius": _ctx.round ? "calc(var(--weight) / 2)" : void 0
|
|
27
|
+
})
|
|
28
|
+
}, [
|
|
29
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(computedProgress.value, (p) => {
|
|
30
|
+
return openBlock(), createElementBlock("div", {
|
|
31
|
+
key: _ctx.index,
|
|
32
|
+
class: normalizeClass(_ctx.$style.bar),
|
|
33
|
+
style: normalizeStyle({
|
|
34
|
+
"--transform": `translateX(${p.start}%) scaleX(${p.scale})`,
|
|
35
|
+
"--color": p.color
|
|
36
|
+
})
|
|
37
|
+
}, null, 6);
|
|
38
|
+
}), 128))
|
|
39
|
+
], 6);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
_sfc_main as default
|
|
45
|
+
};
|
|
@@ -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('._container_1xl4h_1{width:100%;height:var(--weight);position:relative;border-radius:var(--border-radius);overflow:hidden;background-color:#0000001a}[data-theme=dark] ._container_1xl4h_1{background-color:#ffffff1a}._bar_1xl4h_13{position:absolute;content:"";width:100%;height:100%;transition:transform .8s;transform:scaleX(0);transform:var(--transform, scaleX(0));transform-origin:left;background-color:red;background-color:var(--color, red)}'));
|
|
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_1xl4h_1";
|
|
14
|
+
const bar = "_bar_1xl4h_13";
|
|
15
|
+
const style0 = {
|
|
16
|
+
container,
|
|
17
|
+
bar
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
bar,
|
|
21
|
+
container,
|
|
22
|
+
style0 as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmProgress } from './ElmProgress.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmProgress>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const WithBuffer: Story;
|
|
8
|
+
export declare const Bold: Story;
|
|
9
|
+
export declare const WithColor: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmProgressProps {
|
|
3
|
+
/**
|
|
4
|
+
* The current value of the progress.
|
|
5
|
+
*/
|
|
6
|
+
value: number;
|
|
7
|
+
/**
|
|
8
|
+
* The buffer value of the progress.
|
|
9
|
+
*/
|
|
10
|
+
buffer?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value of the progress.
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The weight of the progress.
|
|
17
|
+
*/
|
|
18
|
+
weight?: Property.Height<string | number>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the progress should be round.
|
|
21
|
+
*/
|
|
22
|
+
round?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The color of the progress.
|
|
25
|
+
*/
|
|
26
|
+
color?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the progress is loading.
|
|
29
|
+
*/
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
}
|
|
32
|
+
declare const _default: import('vue').DefineComponent<ElmProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmProgressProps> & Readonly<{}>, {
|
|
33
|
+
max: number;
|
|
34
|
+
weight: Property.Height<string | number>;
|
|
35
|
+
round: boolean;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmProgress.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmProgress.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmProgress = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmProgress as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, normalizeClass, normalizeStyle, createCommentVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["value", "max"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmProgress",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
buffer: {},
|
|
8
|
+
max: { default: 100 },
|
|
9
|
+
weight: { default: "4px" },
|
|
10
|
+
round: { type: Boolean, default: true },
|
|
11
|
+
color: {},
|
|
12
|
+
loading: { type: Boolean, default: false }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
17
|
+
createElementVNode("progress", {
|
|
18
|
+
class: normalizeClass(_ctx.$style.progress),
|
|
19
|
+
value: _ctx.value,
|
|
20
|
+
max: _ctx.max
|
|
21
|
+
}, null, 10, _hoisted_1),
|
|
22
|
+
createElementVNode("div", {
|
|
23
|
+
class: normalizeClass(_ctx.$style.container),
|
|
24
|
+
style: normalizeStyle({
|
|
25
|
+
"--weight": _ctx.weight,
|
|
26
|
+
"--border-radius": _ctx.round ? "calc(var(--weight) / 2)" : void 0,
|
|
27
|
+
"--color": _ctx.color
|
|
28
|
+
})
|
|
29
|
+
}, [
|
|
30
|
+
createElementVNode("div", {
|
|
31
|
+
class: normalizeClass(_ctx.$style.value),
|
|
32
|
+
style: normalizeStyle({
|
|
33
|
+
"--scale-x": `scaleX(${_ctx.loading ? 0 : _ctx.value / _ctx.max})`
|
|
34
|
+
})
|
|
35
|
+
}, null, 6),
|
|
36
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: normalizeClass(_ctx.$style.loading)
|
|
39
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
40
|
+
createElementVNode("div", {
|
|
41
|
+
class: normalizeClass(_ctx.$style.buffer),
|
|
42
|
+
style: normalizeStyle({
|
|
43
|
+
"--scale-x": `scaleX(${_ctx.loading ? 0 : _ctx.buffer != null ? _ctx.buffer / _ctx.max : _ctx.value / _ctx.max})`
|
|
44
|
+
})
|
|
45
|
+
}, null, 6)
|
|
46
|
+
], 6)
|
|
47
|
+
], 64);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
_sfc_main as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._progress_17sza_1{display:none}@keyframes _loading_17sza_23{0%{transform:scaleX(0);transform-origin:left}49%{transform:scaleX(1);transform-origin:left}51%{transform:scaleX(1);transform-origin:right}to{transform:scaleX(0);transform-origin:right}}._loading_17sza_23{position:absolute;content:"";width:100%;height:100%;transition:transform .8s;transform:scaleX(0);transform:var(--scale-x, scaleX(0));transform-origin:left;background-color:#000c;background-color:var(--color, rgba(0, 0, 0, .8));animation-name:_loading_17sza_23;animation-duration:1.6s;animation-iteration-count:infinite}[data-theme=dark] ._loading_17sza_23{background-color:#fffc;background-color:var(--color, rgba(255, 255, 255, .8))}._container_17sza_40{width:100%;height:var(--weight);position:relative;border-radius:var(--border-radius);overflow:hidden;background-color:#0000001a}[data-theme=dark] ._container_17sza_40{background-color:#ffffff1a}._container_17sza_40 ._value_17sza_51{position:absolute;content:"";width:100%;height:100%;transition:transform .8s;transform:scaleX(0);transform:var(--scale-x, scaleX(0));transform-origin:left;background-color:#000c;background-color:var(--color, rgba(0, 0, 0, .8))}[data-theme=dark] ._container_17sza_40 ._value_17sza_51{background-color:#fffc;background-color:var(--color, rgba(255, 255, 255, .8))}._container_17sza_40 ._buffer_17sza_64{position:absolute;content:"";width:100%;height:100%;transition:transform .4s;transform:scaleX(0);transform:var(--scale-x, scaleX(0));transform-origin:left;background-color:#000c;background-color:var(--color, rgba(0, 0, 0, .8));opacity:.25}[data-theme=dark] ._container_17sza_40 ._buffer_17sza_64{background-color:#fffc;background-color:var(--color, rgba(255, 255, 255, .8))}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const progress = "_progress_17sza_1";
|
|
14
|
+
const loading = "_loading_17sza_23";
|
|
15
|
+
const container = "_container_17sza_40";
|
|
16
|
+
const value = "_value_17sza_51";
|
|
17
|
+
const buffer = "_buffer_17sza_64";
|
|
18
|
+
const style0 = {
|
|
19
|
+
progress,
|
|
20
|
+
loading,
|
|
21
|
+
container,
|
|
22
|
+
value,
|
|
23
|
+
buffer
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
buffer,
|
|
27
|
+
container,
|
|
28
|
+
style0 as default,
|
|
29
|
+
loading,
|
|
30
|
+
progress,
|
|
31
|
+
value
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmStatusMessage } from './ElmStatusMessage.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmStatusMessage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Success: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const Warning: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface ElmStatusMessageProps {
|
|
2
|
+
status: "success" | "error" | "warning" | "pending";
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ElmStatusMessageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmStatusMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|