@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,24 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Rust",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 128 128",
|
|
13
|
+
fill: "#a84f33",
|
|
14
|
+
width: __props.size,
|
|
15
|
+
height: __props.size
|
|
16
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
17
|
+
createElementVNode("path", { d: "M62.96.242c-.232.135-1.203 1.528-2.16 3.097c-2.4 3.94-2.426 3.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916 1.612-1.504 3.183c-1.346 3.6-1.41 3.715-2.156 3.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291 0-1.655.706-2.27 4.4c-.78 4.697-.754 4.681-4.988 2.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475 4.246l.178 3.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692 2.964c.38 1.63.745 3.2.814 3.487c.067.287-.05.746-.26 1.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51 5.3c.718 1.56 1.305 2.98 1.305 3.15c0 .898-.717 1.224-3.794 1.727c-1.722.28-3.218.51-3.326.51c-.107 0-.43.235-.717.522c-.937.936-.671 1.816 1.453 4.814c2.646 3.735 2.642 3.75-1.73 5.421c-4.971 1.902-5.072 2.37-1.287 5.96c3.525 3.344 3.53 3.295-.461 5.804C.208 62.8.162 62.846.085 63.876c-.093 1.253-.071 1.275 3.538 3.48c3.57 2.18 3.57 2.246.067 5.56C-.078 76.48.038 77 5.013 78.877c4.347 1.64 4.353 1.66 1.702 5.394c-1.502 2.117-1.981 3-1.981 3.653c0 1.223.637 1.535 4.44 2.174c3.206.54 3.92.857 3.92 1.741c0 .182-.588 1.612-1.307 3.177c-2.236 4.87-1.981 5.275 3.31 5.275c4.93 0 4.799-.15 3.737 4.294c-.8 3.35-.813 3.992-.088 4.715c.554.556 1.6.494 4.87-.289c2.499-.596 2.937-.637 3.516-.328l.66.354l-.177 3.594c-.178 3.593-.177 3.595.475 4.248c.358.36.884.652 1.165.652s1.903-.63 3.604-1.404c4.22-1.916 4.194-1.932 4.973 2.75c.617 3.711.977 4.4 2.294 4.4c.327 0 1.83-.88 3.34-1.958c2.654-1.893 3.342-2.19 4.049-1.74c.182.115.89 1.67 1.572 3.455c1.003 2.625 1.37 3.31 1.929 3.576c1.062.51 1.72.1 4.218-2.62c3.016-3.286 3.14-3.27 5.602.72c2.72 4.406 3.424 4.396 6.212-.089c2.402-3.864 2.374-3.862 5.621-.47c2.157 2.25 2.616 2.61 3.343 2.61c.464 0 1.019-.175 1.23-.388c.214-.213.92-1.786 1.568-3.496c.649-1.71 1.321-3.2 1.495-3.31c.687-.436 1.398-.13 4.048 1.752c1.56 1.108 3.028 1.96 3.377 1.96c1.296 0 1.764-.92 2.302-4.535c.46-3.082.554-3.378 1.16-3.685c.596-.302.954-.2 3.75 1.07c1.701.77 3.323 1.402 3.604 1.402s.816-.302 1.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486 3.615.204c3.656.835 4.338.857 5.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19 3.78-4.19c3.374 0 3.75-.049 4.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227 4.065-1.767c2.033-.329 3.553-.71 3.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738 1.599-5.297c5.064-1.866 5.209-2.488 1.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853 4.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593 3.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18 1.982-2.903 1.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574 1.307-3.113c1.406-3.013 1.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27 0-1.884.64-3.583 1.421c-2.838 1.306-3.143 1.393-3.757 1.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311 0-1.853.925-3.426 2.055c-2.584 1.856-2.93 2.032-3.574 1.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637 0-1.213.458-3.28 2.604c-3.25 3.375-3.261 3.374-5.65-.545C66.073 1.78 65.075.382 64.81.24c-.597-.32-1.3-.32-1.85.002m2.96 11.798c2.83 2.014 1.326 6.75-2.144 6.75c-3.368 0-5.064-4.057-2.66-6.36c1.358-1.3 3.304-1.459 4.805-.39m-3.558 12.507c1.855.705 2.616.282 6.852-3.8l3.182-3.07l1.347.18c4.225.56 12.627 4.25 17.455 7.666c4.436 3.14 10.332 9.534 12.845 13.93l.537.942l-2.38 5.364c-1.31 2.95-2.382 5.673-2.382 6.053c0 .878.576 2.267 1.13 2.726c.234.195 2.457 1.265 4.939 2.378l4.51 2.025l.178 1.148c.23 1.495.26 5.167.052 6.21l-.163.816h-2.575c-2.987 0-2.756-.267-2.918 3.396c-.118 2.656-.76 4.124-2.22 5.075c-2.377 1.551-6.304 1.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915 2.145-1.803c4.298-3.24 6.77-7.012 7.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057 0-25.56-.092-25.56-.204c0-.263 3.125-3.295 4.965-4.816c5.054-4.178 11.618-7.465 18.417-9.22l2.35-.61l3.34 3.387c1.839 1.863 3.64 3.5 4.003 3.637M20.3 46.34c1.539 1.008 2.17 3.54 1.26 5.062c-1.405 2.356-4.966 2.455-6.373.178c-2.046-3.309 1.895-7.349 5.113-5.24m90.672.13c4.026 2.454.906 8.493-3.404 6.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6 2.523-.579 3.56.053M32.163 61.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283 4.706-2.262 4.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39 47.132c2.843.74 4.345 2.245 4.349 4.355c.002 1.55-.765 2.52-2.67 3.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078 0 8.112.086 9.288.393m-2.934 21.554c1.41.392 3.076 1.616 3.93 2.888c.898 1.337 1.423 3.076 2.667 8.836c1.05 4.87 1.727 6.46 3.62 8.532c2.345 2.566 1.8 2.466 13.514 2.466c5.61 0 10.198.09 10.198.2c0 .197-3.863 4.764-4.03 4.764c-.048 0-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642 6.032l-1.008 4.702l-.91.448c-1.518.75-6.453 2.292-9.01 2.82c-4.228.87-8.828 1.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248 0-3.923-4.249-3.923-4.535c0-.09 8.728-.194 19.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002 7.02.12 7.539.264M37.57 100.02c3.084 1.88 1.605 6.804-2.043 6.8c-3.74 0-5.127-4.88-1.94-6.826c1.055-.643 2.908-.63 3.983.026m56.48.206c1.512 1.108 2.015 3.413 1.079 4.95c-2.46 4.034-8.612.827-6.557-3.419c1.01-2.085 3.695-2.837 5.478-1.53" }, null, -1)
|
|
18
|
+
])], 8, _hoisted_1);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Sql",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
width: __props.size,
|
|
13
|
+
height: __props.size,
|
|
14
|
+
viewBox: "0 0 128 128"
|
|
15
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
16
|
+
createElementVNode("path", {
|
|
17
|
+
fill: "#00618a",
|
|
18
|
+
d: "M117.688 98.242c-6.973-.191-12.297.461-16.852 2.379c-1.293.547-3.355.559-3.566 2.18c.711.746.82 1.859 1.387 2.777c1.086 1.754 2.922 4.113 4.559 5.352c1.789 1.348 3.633 2.793 5.551 3.961c3.414 2.082 7.223 3.27 10.504 5.352c1.938 1.23 3.859 2.777 5.75 4.164c.934.684 1.563 1.75 2.773 2.18v-.195c-.637-.812-.801-1.93-1.387-2.777l-2.578-2.578c-2.52-3.344-5.719-6.281-9.117-8.719c-2.711-1.949-8.781-4.578-9.91-7.73l-.199-.199c1.922-.219 4.172-.914 5.949-1.391c2.98-.797 5.645-.59 8.719-1.387l4.164-1.187v-.793c-1.555-1.594-2.664-3.707-4.359-5.152c-4.441-3.781-9.285-7.555-14.273-10.703c-2.766-1.746-6.184-2.883-9.117-4.363c-.988-.496-2.719-.758-3.371-1.586c-1.539-1.961-2.379-4.449-3.566-6.738c-2.488-4.793-4.93-10.023-7.137-15.066c-1.504-3.437-2.484-6.828-4.359-9.91c-9-14.797-18.687-23.73-33.695-32.508c-3.195-1.867-7.039-2.605-11.102-3.57l-6.543-.395c-1.332-.555-2.715-2.184-3.965-2.977C16.977 3.52 4.223-3.312.539 5.672C-1.785 11.34 4.016 16.871 6.09 19.746c1.457 2.012 3.32 4.273 4.359 6.539c.688 1.492.805 2.984 1.391 4.559c1.438 3.883 2.695 8.109 4.559 11.695c.941 1.816 1.98 3.727 3.172 5.352c.727.996 1.98 1.438 2.18 2.973c-1.227 1.715-1.297 4.375-1.984 6.543c-3.098 9.77-1.926 21.91 2.578 29.137c1.383 2.223 4.641 6.98 9.117 5.156c3.918-1.598 3.043-6.539 4.164-10.902c.254-.988.098-1.715.594-2.379v.199l3.57 7.133c2.641 4.254 7.324 8.699 11.297 11.699c2.059 1.555 3.68 4.242 6.344 5.152v-.199h-.199c-.516-.805-1.324-1.137-1.98-1.781c-1.551-1.523-3.277-3.414-4.559-5.156c-3.613-4.902-6.805-10.27-9.711-15.855c-1.391-2.668-2.598-5.609-3.77-8.324c-.453-1.047-.445-2.633-1.387-3.172c-1.281 1.988-3.172 3.598-4.164 5.945c-1.582 3.754-1.789 8.336-2.375 13.082c-.348.125-.195.039-.398.199c-2.762-.668-3.73-3.508-4.758-5.949c-2.594-6.164-3.078-16.09-.793-23.191c.59-1.836 3.262-7.617 2.18-9.316c-.516-1.691-2.219-2.672-3.172-3.965c-1.18-1.598-2.355-3.703-3.172-5.551c-2.125-4.805-3.113-10.203-5.352-15.062c-1.07-2.324-2.875-4.676-4.359-6.738c-1.645-2.289-3.484-3.977-4.758-6.742c-.453-.984-1.066-2.559-.398-3.566c.215-.684.516-.969 1.191-1.191c1.148-.887 4.352.297 5.547.793c3.18 1.32 5.832 2.578 8.527 4.363c1.289.855 2.598 2.512 4.16 2.973h1.785c2.789.641 5.914.195 8.523.988c4.609 1.402 8.738 3.582 12.488 5.949c11.422 7.215 20.766 17.48 27.156 29.734c1.027 1.973 1.473 3.852 2.379 5.945c1.824 4.219 4.125 8.559 5.941 12.688c1.816 4.113 3.582 8.27 6.148 11.695c1.348 1.801 6.551 2.766 8.918 3.766c1.66.699 4.379 1.43 5.949 2.379c3 1.809 5.906 3.965 8.723 5.945c1.402.992 5.73 3.168 5.945 4.957zm-88.605-75.52c-1.453-.027-2.48.156-3.566.395v.199h.195c.695 1.422 1.918 2.34 2.777 3.566l1.98 4.164l.199-.195c1.227-.867 1.789-2.25 1.781-4.363c-.492-.52-.562-1.164-.992-1.785c-.562-.824-1.66-1.289-2.375-1.98zm0 0"
|
|
19
|
+
}, null, -1)
|
|
20
|
+
])], 8, _hoisted_1);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
_sfc_main as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Terraform",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
width: __props.size,
|
|
13
|
+
height: __props.size,
|
|
14
|
+
viewBox: "0 0 128 128"
|
|
15
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
16
|
+
createElementVNode("g", { "fill-rule": "evenodd" }, [
|
|
17
|
+
createElementVNode("path", {
|
|
18
|
+
fill: "#5c4ee5",
|
|
19
|
+
d: "M77.941 44.5v36.836L46.324 62.918V26.082zm0 0"
|
|
20
|
+
}),
|
|
21
|
+
createElementVNode("path", {
|
|
22
|
+
fill: "#4040b2",
|
|
23
|
+
d: "m81.41 81.336l31.633-18.418V26.082L81.41 44.5zm0 0"
|
|
24
|
+
}),
|
|
25
|
+
createElementVNode("path", {
|
|
26
|
+
fill: "#5c4ee5",
|
|
27
|
+
d: "M11.242 42.36L42.86 60.776V23.941L11.242 5.523zm66.699 43.015L46.324 66.957v36.82l31.617 18.418zm0 0"
|
|
28
|
+
})
|
|
29
|
+
], -1)
|
|
30
|
+
])], 8, _hoisted_1);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
_sfc_main as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["width", "height"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Typescript",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: 24 }
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
width: __props.size,
|
|
13
|
+
height: __props.size,
|
|
14
|
+
viewBox: "0 0 128 128"
|
|
15
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
16
|
+
createElementVNode("path", {
|
|
17
|
+
fill: "#fff",
|
|
18
|
+
d: "M22.67 47h99.67v73.67H22.67z"
|
|
19
|
+
}, null, -1),
|
|
20
|
+
createElementVNode("path", {
|
|
21
|
+
fill: "#007acc",
|
|
22
|
+
d: "M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 0 1 7.82 4.5a20.6 20.6 0 0 1 3 4c0 .16-5.4 3.81-8.69 5.85c-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 0 0-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.6 4.6 0 0 0 .54 2.34c.83 1.73 2.38 2.76 7.24 4.86c8.95 3.85 12.78 6.39 15.16 10c2.66 4 3.25 10.46 1.45 15.24c-2 5.2-6.9 8.73-13.83 9.9a38.3 38.3 0 0 1-9.52-.1a23 23 0 0 1-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9 9 0 0 1 1.15-.73L82 101l3.59-2.08l.75 1.11a16.8 16.8 0 0 0 4.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 0 0 .69-6.92c-1-1.39-3-2.56-8.59-5c-6.45-2.78-9.23-4.5-11.77-7.24a16.5 16.5 0 0 1-3.43-6.25a25 25 0 0 1-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.7 31.7 0 0 1 9.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49 49 0 0 1 .12-5.17C29.08 59 39 59 51 59h21.83z"
|
|
23
|
+
}, null, -1)
|
|
24
|
+
])], 8, _hoisted_1);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmFileProps {
|
|
3
|
+
/**
|
|
4
|
+
* The name of the file.
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The source of the file.
|
|
9
|
+
*/
|
|
10
|
+
src: string;
|
|
11
|
+
/**
|
|
12
|
+
* The size of the file in bytes.
|
|
13
|
+
*/
|
|
14
|
+
filesize?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The margin of the file.
|
|
17
|
+
*/
|
|
18
|
+
margin?: Property.MarginBlock;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<ElmFileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFileProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmFile.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmFile.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmFile = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmFile as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, unref, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
3
|
+
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
4
|
+
import { mdiFileOutline, mdiDownload } from "@mdi/js";
|
|
5
|
+
const _hoisted_1 = { style: { opacity: 0.6 } };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ElmFile",
|
|
8
|
+
props: {
|
|
9
|
+
name: {},
|
|
10
|
+
src: {},
|
|
11
|
+
filesize: {},
|
|
12
|
+
margin: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
16
|
+
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
17
|
+
const pathSegments = cleanedUrl.split("/").filter(Boolean);
|
|
18
|
+
return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
|
|
19
|
+
}
|
|
20
|
+
async function downloadFile(url, filename) {
|
|
21
|
+
let link;
|
|
22
|
+
try {
|
|
23
|
+
const response = await fetch(url);
|
|
24
|
+
if (!response.ok) throw new Error("Failed to download file");
|
|
25
|
+
const blob = await response.blob();
|
|
26
|
+
link = document.createElement("a");
|
|
27
|
+
link.href = URL.createObjectURL(blob);
|
|
28
|
+
link.download = filename;
|
|
29
|
+
link.click();
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.error("ERROR:", error);
|
|
32
|
+
} finally {
|
|
33
|
+
if (link) URL.revokeObjectURL(link.href);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", {
|
|
38
|
+
class: normalizeClass(_ctx.$style.file),
|
|
39
|
+
style: normalizeStyle({ "--margin-block": __props.margin })
|
|
40
|
+
}, [
|
|
41
|
+
createElementVNode("div", {
|
|
42
|
+
class: normalizeClass(_ctx.$style["left-container"])
|
|
43
|
+
}, [
|
|
44
|
+
createVNode(ElmMdiIcon, {
|
|
45
|
+
d: unref(mdiFileOutline),
|
|
46
|
+
size: "1.25em"
|
|
47
|
+
}, null, 8, ["d"]),
|
|
48
|
+
createVNode(ElmInlineText, {
|
|
49
|
+
text: __props.name ?? getLastPathSegmentWithoutQueryOrHash(__props.src) ?? "unknown file"
|
|
50
|
+
}, null, 8, ["text"])
|
|
51
|
+
], 2),
|
|
52
|
+
createElementVNode("div", {
|
|
53
|
+
class: normalizeClass(_ctx.$style["right-container"])
|
|
54
|
+
}, [
|
|
55
|
+
createElementVNode("span", _hoisted_1, [
|
|
56
|
+
__props.filesize ? (openBlock(), createBlock(ElmInlineText, {
|
|
57
|
+
key: 0,
|
|
58
|
+
text: __props.filesize
|
|
59
|
+
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
60
|
+
]),
|
|
61
|
+
createVNode(ElmMdiIcon, {
|
|
62
|
+
d: unref(mdiDownload),
|
|
63
|
+
class: normalizeClass(_ctx.$style["download-icon"]),
|
|
64
|
+
size: "1.25em",
|
|
65
|
+
onClick: _cache[0] || (_cache[0] = () => {
|
|
66
|
+
downloadFile(
|
|
67
|
+
__props.src,
|
|
68
|
+
__props.name ?? getLastPathSegmentWithoutQueryOrHash(__props.src) ?? "unknown file"
|
|
69
|
+
);
|
|
70
|
+
})
|
|
71
|
+
}, null, 8, ["d", "class"])
|
|
72
|
+
], 2)
|
|
73
|
+
], 6);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
_sfc_main as default
|
|
79
|
+
};
|
|
@@ -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("._file_1j0l6_1{margin-block:var(--margin-block);box-sizing:border-box;width:100%;padding:1rem;box-shadow:0 0 .125rem #0003;border-radius:.25rem;display:flex;justify-content:space-between;align-items:center;background-color:#fff3}[data-theme=dark] ._file_1j0l6_1{background-color:#0003}._file_1j0l6_1 ._left-container_1j0l6_16{display:flex;justify-content:flex-start;align-items:center;gap:.75rem}._file_1j0l6_1 ._right-container_1j0l6_22{display:flex;justify-content:flex-end;align-items:center;gap:.75rem}._file_1j0l6_1 ._right-container_1j0l6_22 ._download-icon_1j0l6_28{padding:.125rem;cursor:pointer;transition:color .2s,background-color .2s}._file_1j0l6_1 ._right-container_1j0l6_22 ._download-icon_1j0l6_28:hover{background-color:#0000001a}[data-theme=dark] ._file_1j0l6_1 ._right-container_1j0l6_22 ._download-icon_1j0l6_28:hover{background-color:#ffffff1a}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const file = "_file_1j0l6_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
file,
|
|
16
|
+
"left-container": "_left-container_1j0l6_16",
|
|
17
|
+
"right-container": "_right-container_1j0l6_22",
|
|
18
|
+
"download-icon": "_download-icon_1j0l6_28"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
style0 as default,
|
|
22
|
+
file
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmImage } from './ElmImage.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmImage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Svg: Story;
|
|
8
|
+
export declare const LongAlt: Story;
|
|
9
|
+
export declare const Invalid: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmImageProps {
|
|
3
|
+
/**
|
|
4
|
+
* Image source URL
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* Image alt text
|
|
9
|
+
*/
|
|
10
|
+
alt?: string;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Enable modal on image click. Default: `false`
|
|
14
|
+
*/
|
|
15
|
+
enableModal?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The margin of the image.
|
|
18
|
+
*/
|
|
19
|
+
margin?: Property.MarginBlock;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import('vue').DefineComponent<ElmImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmImageProps> & Readonly<{}>, {
|
|
22
|
+
block: boolean;
|
|
23
|
+
enableModal: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
target: HTMLDivElement;
|
|
26
|
+
}, HTMLDivElement>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmImage.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmImage.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmImage as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, createVNode, Transition, unref, withCtx, normalizeStyle, createElementVNode, createCommentVNode } from "vue";
|
|
2
|
+
import ElmRectangleWave from "../fallback/ElmRectangleWave.vue.mjs";
|
|
3
|
+
import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
|
|
4
|
+
import { useImage, onKeyStroke, useIntersectionObserver } from "@vueuse/core";
|
|
5
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
6
|
+
import fadeStyle from "../../styles/transition-fade.module.scss.mjs";
|
|
7
|
+
import { mdiMessageImageOutline } from "@mdi/js";
|
|
8
|
+
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
9
|
+
const _hoisted_1 = ["src", "alt"];
|
|
10
|
+
const _hoisted_2 = ["src", "alt"];
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "ElmImage",
|
|
13
|
+
props: {
|
|
14
|
+
src: {},
|
|
15
|
+
alt: {},
|
|
16
|
+
block: { type: Boolean, default: false },
|
|
17
|
+
enableModal: { type: Boolean, default: false },
|
|
18
|
+
margin: {}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const { isLoading, error } = useImage({ src: props.src });
|
|
23
|
+
const isModalOpen = ref(false);
|
|
24
|
+
onKeyStroke("Escape", (e) => {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
isModalOpen.value = false;
|
|
27
|
+
});
|
|
28
|
+
const target = ref(null);
|
|
29
|
+
const targetIsVisible = ref(false);
|
|
30
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
31
|
+
if (props.block) targetIsVisible.value = isIntersecting;
|
|
32
|
+
});
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("div", {
|
|
35
|
+
class: normalizeClass(_ctx.$style.wrapper),
|
|
36
|
+
ref_key: "target",
|
|
37
|
+
ref: target
|
|
38
|
+
}, [
|
|
39
|
+
createVNode(Transition, {
|
|
40
|
+
mode: "out-in",
|
|
41
|
+
"enter-from-class": unref(fadeStyle)["fade-enter-from"],
|
|
42
|
+
"enter-active-class": unref(fadeStyle)["fade-enter-active"],
|
|
43
|
+
"enter-to-class": unref(fadeStyle)["fade-fast-enter-to"],
|
|
44
|
+
"leave-from-class": unref(fadeStyle)["fade-fast-leave-from"],
|
|
45
|
+
"leave-active-class": unref(fadeStyle)["fade-fast-leave-active"],
|
|
46
|
+
"leave-to-class": unref(fadeStyle)["fade-fast-leave-to"]
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [
|
|
49
|
+
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: normalizeClass(_ctx.$style.error)
|
|
52
|
+
}, [
|
|
53
|
+
createVNode(ElmInlineText, {
|
|
54
|
+
text: "Error loading image",
|
|
55
|
+
color: "#c56565",
|
|
56
|
+
size: "1.5rem"
|
|
57
|
+
})
|
|
58
|
+
], 2)) : unref(isLoading) ? (openBlock(), createElementBlock("div", {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: normalizeClass(_ctx.$style.fallback),
|
|
61
|
+
style: normalizeStyle({ "--margin-block": __props.margin })
|
|
62
|
+
}, [
|
|
63
|
+
createVNode(ElmRectangleWave),
|
|
64
|
+
createElementVNode("div", null, [
|
|
65
|
+
createVNode(ElmDotLoadingIcon)
|
|
66
|
+
])
|
|
67
|
+
], 6)) : (openBlock(), createElementBlock("img", {
|
|
68
|
+
key: 2,
|
|
69
|
+
class: normalizeClass(__props.block ? _ctx.$style["image-block"] : _ctx.$style.image),
|
|
70
|
+
src: __props.src,
|
|
71
|
+
alt: __props.alt,
|
|
72
|
+
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
73
|
+
if (__props.enableModal) isModalOpen.value = true;
|
|
74
|
+
}),
|
|
75
|
+
style: normalizeStyle({
|
|
76
|
+
"--cursor": __props.enableModal ? "zoom-in" : void 0,
|
|
77
|
+
"--margin-block": __props.margin
|
|
78
|
+
})
|
|
79
|
+
}, null, 14, _hoisted_1))
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, ["enter-from-class", "enter-active-class", "enter-to-class", "leave-from-class", "leave-active-class", "leave-to-class"]),
|
|
83
|
+
createVNode(Transition, {
|
|
84
|
+
"enter-from-class": unref(fadeStyle)["fade-enter-from"],
|
|
85
|
+
"enter-active-class": unref(fadeStyle)["fade-enter-active"],
|
|
86
|
+
"enter-to-class": unref(fadeStyle)["fade-enter-to"],
|
|
87
|
+
"leave-from-class": unref(fadeStyle)["fade-leave-from"],
|
|
88
|
+
"leave-active-class": unref(fadeStyle)["fade-leave-active"],
|
|
89
|
+
"leave-to-class": unref(fadeStyle)["fade-leave-to"]
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [
|
|
92
|
+
__props.block && !unref(isLoading) && __props.alt != null && __props.alt.trim() !== "" ? (openBlock(), createElementBlock("div", {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: normalizeClass(_ctx.$style["alt-container"])
|
|
95
|
+
}, [
|
|
96
|
+
createVNode(ElmMdiIcon, {
|
|
97
|
+
d: unref(mdiMessageImageOutline),
|
|
98
|
+
color: "#6987b8",
|
|
99
|
+
style: { "flex-shrink": "0" }
|
|
100
|
+
}, null, 8, ["d"]),
|
|
101
|
+
createElementVNode("div", {
|
|
102
|
+
class: normalizeClass(_ctx.$style["alt-text"])
|
|
103
|
+
}, [
|
|
104
|
+
createVNode(ElmInlineText, {
|
|
105
|
+
text: __props.alt,
|
|
106
|
+
size: "0.8rem"
|
|
107
|
+
}, null, 8, ["text"])
|
|
108
|
+
], 2)
|
|
109
|
+
], 2)) : createCommentVNode("", true)
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["enter-from-class", "enter-active-class", "enter-to-class", "leave-from-class", "leave-active-class", "leave-to-class"]),
|
|
113
|
+
createVNode(Transition, {
|
|
114
|
+
"enter-from-class": unref(fadeStyle)["fade-enter-from"],
|
|
115
|
+
"enter-active-class": unref(fadeStyle)["fade-enter-active"],
|
|
116
|
+
"enter-to-class": unref(fadeStyle)["fade-enter-to"],
|
|
117
|
+
"leave-from-class": unref(fadeStyle)["fade-leave-from"],
|
|
118
|
+
"leave-active-class": unref(fadeStyle)["fade-leave-active"],
|
|
119
|
+
"leave-to-class": unref(fadeStyle)["fade-leave-to"]
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
isModalOpen.value ? (openBlock(), createElementBlock("div", {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: normalizeClass(_ctx.$style.modal),
|
|
125
|
+
onClick: _cache[1] || (_cache[1] = ($event) => isModalOpen.value = false)
|
|
126
|
+
}, [
|
|
127
|
+
createElementVNode("img", {
|
|
128
|
+
class: normalizeClass(_ctx.$style["modal-image"]),
|
|
129
|
+
src: __props.src,
|
|
130
|
+
alt: __props.alt
|
|
131
|
+
}, null, 10, _hoisted_2)
|
|
132
|
+
], 2)) : createCommentVNode("", true)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["enter-from-class", "enter-active-class", "enter-to-class", "leave-from-class", "leave-active-class", "leave-to-class"])
|
|
136
|
+
], 2);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
export {
|
|
141
|
+
_sfc_main as default
|
|
142
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._wrapper_5m5jq_1{width:100%;display:flex;flex-direction:column;align-items:center;opacity:var(--opacity);transition:opacity .4s}._image_5m5jq_10{display:block;margin-block:var(--margin-block);max-width:100%;max-height:100vh;cursor:var(--cursor)}._error_5m5jq_18{display:flex;justify-content:center;align-items:center;gap:1rem;width:100%;height:100%;min-height:10rem;line-height:1.5rem;color:#c56565}._fallback_5m5jq_30{margin-block:var(--margin-block);margin:0;padding:0;position:relative;width:100%;z-index:1;display:flex;justify-content:center;align-items:center;aspect-ratio:1200/630}._image-block_5m5jq_43{overflow:hidden;border-radius:.25rem;box-shadow:0 0 .125rem #0000004d;display:block;max-width:100%;max-height:100vh;cursor:var(--cursor)}._alt-container_5m5jq_53{max-width:80%;margin:1rem;display:flex;justify-content:center;align-items:center;gap:1rem;color:#6987b8;opacity:.8}._modal_5m5jq_64{position:fixed;z-index:10;top:0;left:0;width:100%;height:100vh;display:flex;justify-content:center;align-items:center;background-color:#23262acc;cursor:zoom-out}._modal-image_5m5jq_78{display:block;max-width:100%;cursor:zoom-out}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const wrapper = "_wrapper_5m5jq_1";
|
|
14
|
+
const image = "_image_5m5jq_10";
|
|
15
|
+
const error = "_error_5m5jq_18";
|
|
16
|
+
const fallback = "_fallback_5m5jq_30";
|
|
17
|
+
const modal = "_modal_5m5jq_64";
|
|
18
|
+
const style0 = {
|
|
19
|
+
wrapper,
|
|
20
|
+
image,
|
|
21
|
+
error,
|
|
22
|
+
fallback,
|
|
23
|
+
"image-block": "_image-block_5m5jq_43",
|
|
24
|
+
"alt-container": "_alt-container_5m5jq_53",
|
|
25
|
+
modal,
|
|
26
|
+
"modal-image": "_modal-image_5m5jq_78"
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
style0 as default,
|
|
30
|
+
error,
|
|
31
|
+
fallback,
|
|
32
|
+
image,
|
|
33
|
+
modal,
|
|
34
|
+
wrapper
|
|
35
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { default as ElmBookmark } from './ElmBookmark.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmBookmark>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const WithoutDate: Story;
|
|
8
|
+
export declare const Card: Story;
|
|
9
|
+
export declare const Square: Story;
|
|
10
|
+
export declare const SquareCard: Story;
|
|
11
|
+
export declare const InvalidImage: Story;
|
|
12
|
+
export declare const NoImage: Story;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmBookmarkProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to hide the URL.
|
|
5
|
+
*/
|
|
6
|
+
hideUrl?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to open the link in a new tab.
|
|
9
|
+
* Defaults to `true`.
|
|
10
|
+
*/
|
|
11
|
+
openInNewTab?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The title of the bookmark.
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The description of the bookmark.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The image to display.
|
|
22
|
+
* This can be a URL or a base64-encoded image.
|
|
23
|
+
*/
|
|
24
|
+
image?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The URL to navigate to.
|
|
27
|
+
*/
|
|
28
|
+
url?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The date the bookmark was created.
|
|
31
|
+
*/
|
|
32
|
+
createdAt?: string;
|
|
33
|
+
updatedAt?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The function to call when the link is clicked.
|
|
36
|
+
* If provided, the default behavior (navigating to the URL) is prevented.
|
|
37
|
+
*/
|
|
38
|
+
onClick?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* The margin of the bookmark.
|
|
41
|
+
*/
|
|
42
|
+
margin?: Property.MarginBlock;
|
|
43
|
+
/**
|
|
44
|
+
* The URL of the favicon.
|
|
45
|
+
*/
|
|
46
|
+
favicon?: string;
|
|
47
|
+
}
|
|
48
|
+
declare const _default: import('vue').DefineComponent<ElmBookmarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBookmarkProps> & Readonly<{}>, {
|
|
49
|
+
description: string;
|
|
50
|
+
hideUrl: boolean;
|
|
51
|
+
openInNewTab: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmBookmark.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmBookmark.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmBookmark = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmBookmark as default
|
|
10
|
+
};
|