@elmethis/core 1.0.0-alpha.19 → 1.0.0-alpha.190
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/{headings/ElmHeading4.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
- package/dist/components/{typography/ElmBulletedList.vue.d.ts → badge/ElmBadge.vue.d.ts} +8 -7
- package/dist/components/badge/ElmBadge.vue.mjs +10 -0
- package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
- package/dist/components/badge/ElmBadge.vue3.mjs +26 -0
- package/dist/components/badge/ElmTag.stories.d.ts +7 -0
- package/dist/components/badge/ElmTag.vue.d.ts +14 -0
- package/dist/components/badge/ElmTag.vue.mjs +10 -0
- package/dist/components/badge/ElmTag.vue2.mjs +39 -0
- package/dist/components/badge/ElmTag.vue3.mjs +26 -0
- package/dist/components/code/ElmCodeBlock.stories.d.ts +2 -0
- package/dist/components/code/ElmCodeBlock.vue.d.ts +31 -2
- package/dist/components/code/ElmCodeBlock.vue.mjs +23 -0
- package/dist/components/code/ElmCodeBlock.vue2.mjs +127 -0
- package/dist/components/code/ElmCodeBlock.vue3.mjs +42 -0
- package/dist/components/code/ElmKatex.vue.d.ts +3 -1
- 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.vue.d.ts +3 -2
- 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 +3 -2
- 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.vue.d.ts +3 -2
- 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.vue.d.ts +8 -7
- 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.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 +39 -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 +1 -0
- package/dist/components/containments/ElmToggle.vue.d.ts +21 -10
- package/dist/components/containments/ElmToggle.vue.mjs +23 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +103 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +33 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
- 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 +1 -0
- package/dist/components/data/ElmProgress.vue.d.ts +6 -1
- 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 +75 -0
- package/dist/components/data/ElmStatusMessage.vue3.mjs +23 -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.vue.d.ts +1 -1
- 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/{headings/ElmHeading1.stories.d.ts → fallback/ElmSpinner.stories.d.ts} +2 -2
- 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.vue.d.ts +16 -6
- 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/{headings/ElmHeading2.stories.d.ts → form/ElmSwitch.stories.d.ts} +2 -2
- 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 +30 -0
- package/dist/components/form/ElmTextField.vue.mjs +10 -0
- package/dist/components/form/ElmTextField.vue2.mjs +124 -0
- package/dist/components/form/ElmTextField.vue3.mjs +46 -0
- package/dist/components/{headings/ElmHeading3.stories.d.ts → form/ElmTotp.stories.d.ts} +2 -2
- package/dist/components/form/ElmTotp.vue.d.ts +12 -0
- package/dist/components/form/ElmTotp.vue.mjs +10 -0
- package/dist/components/form/ElmTotp.vue2.mjs +102 -0
- package/dist/components/form/ElmTotp.vue3.mjs +34 -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 +45 -0
- package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +27 -0
- package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
- 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.vue.d.ts +2 -2
- 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.vue.d.ts +1 -1
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +23 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +23 -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 +37 -0
- package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
- package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
- package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
- package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
- package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
- package/dist/{Bash-mlA01V07.js → components/icon/languages/Bash.vue.mjs} +20 -15
- package/dist/components/icon/languages/Bash.vue2.mjs +20 -0
- package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
- package/dist/components/icon/languages/Css.vue.mjs +19 -0
- package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
- package/dist/components/icon/languages/Rust.vue.mjs +17 -0
- package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
- package/dist/components/{typography/ElmListItem.vue.d.ts → jsonschema/ElmChildContainer.vue.d.ts} +6 -3
- package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
- package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
- package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -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.vue.d.ts +6 -1
- package/dist/components/media/ElmFile.vue.mjs +10 -0
- package/dist/components/media/ElmFile.vue2.mjs +77 -0
- package/dist/components/media/ElmFile.vue3.mjs +26 -0
- package/dist/components/media/ElmImage.stories.d.ts +2 -0
- package/dist/components/media/ElmImage.vue.d.ts +5 -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 +2 -0
- package/dist/components/navigation/ElmBookmark.vue.d.ts +14 -10
- package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
- package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
- package/dist/components/navigation/ElmBookmark.vue3.mjs +44 -0
- package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
- package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
- package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +30 -0
- package/dist/components/navigation/ElmPagetop.vue.d.ts +2 -2
- 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.vue.d.ts +1 -1
- package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
- package/dist/components/navigation/ElmTableOfContents.vue3.mjs +26 -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 +217 -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.vue.d.ts +29 -4
- package/dist/components/table/ElmTable.vue.mjs +10 -0
- package/dist/components/table/ElmTable.vue2.mjs +57 -0
- package/dist/components/table/ElmTable.vue3.mjs +27 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +8 -4
- package/dist/components/table/ElmTableBody.vue.mjs +15 -0
- package/dist/components/table/ElmTableBody.vue3.mjs +17 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +7 -3
- package/dist/components/table/ElmTableCell.vue.mjs +19 -0
- package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
- package/dist/components/table/ElmTableHeader.vue.d.ts +8 -4
- package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
- package/dist/components/table/ElmTableHeader.vue3.mjs +17 -0
- package/dist/components/table/ElmTableRow.vue.d.ts +8 -4
- package/dist/components/table/ElmTableRow.vue.mjs +17 -0
- package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
- package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +6 -2
- 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.vue.d.ts +6 -3
- package/dist/components/typography/ElmCallout.vue.mjs +10 -0
- package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
- package/dist/components/typography/ElmCallout.vue3.mjs +26 -0
- package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
- 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 +57 -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/{inline → typography}/ElmInlineText.stories.d.ts +3 -0
- package/dist/components/{inline → typography}/ElmInlineText.vue.d.ts +22 -1
- package/dist/components/typography/ElmInlineText.vue.mjs +10 -0
- package/dist/components/typography/ElmInlineText.vue2.mjs +95 -0
- package/dist/components/typography/ElmInlineText.vue3.mjs +29 -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.vue.d.ts +5 -2
- 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.mjs +43 -0
- package/dist/hooks/useTyping.d.ts +17 -0
- package/dist/hooks/useTyping.mjs +37 -0
- package/dist/index.d.ts +112 -46
- package/dist/index.mjs +130 -0
- package/dist/node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs +14 -0
- package/package.json +32 -32
- package/dist/JavaScript-stKTLCvS.js +0 -22
- package/dist/Rust-PU5XwTn1.js +0 -16
- package/dist/TypeScript-ViBgqhx7.js +0 -22
- package/dist/components/code/ElmPrismHighlighter.stories.d.ts +0 -7
- package/dist/components/code/ElmPrismHighlighter.vue.d.ts +0 -14
- package/dist/components/headings/ElmHeading1.vue.d.ts +0 -20
- package/dist/components/headings/ElmHeading2.vue.d.ts +0 -20
- package/dist/components/headings/ElmHeading3.vue.d.ts +0 -20
- package/dist/components/headings/ElmHeading4.vue.d.ts +0 -20
- package/dist/components/headings/ElmHeading5.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading5.vue.d.ts +0 -20
- package/dist/components/headings/ElmHeading6.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading6.vue.d.ts +0 -20
- package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
- package/dist/components/inline/ElmInlineCode.stories.d.ts +0 -6
- package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
- package/dist/components/inline/ElmInlineLink.stories.d.ts +0 -9
- package/dist/components/inline/ElmInlineLink.vue.d.ts +0 -37
- package/dist/components/inline/ElmInlineRuby.stories.d.ts +0 -6
- package/dist/components/inline/ElmInlineRuby.vue.d.ts +0 -19
- package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +0 -19
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +0 -163
- package/dist/components/typography/ElmBulletedList.stories.d.ts +0 -7
- package/dist/components/typography/ElmListItem.stories.d.ts +0 -6
- package/dist/components/typography/ElmNumberedList.stories.d.ts +0 -7
- package/dist/components/typography/ElmNumberedList.vue.d.ts +0 -20
- package/dist/elmethis.js +0 -48
- package/dist/elmethis.umd.cjs +0 -419
- package/dist/index-DvtsYpwQ.js +0 -16274
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent, mergeModels, ref, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createBlock, createCommentVNode, unref, toDisplayString, withDirectives, resolveDynamicComponent, vModelDynamic, createVNode } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
|
+
import { nanoid } from "nanoid";
|
|
5
|
+
const _hoisted_1 = ["for"];
|
|
6
|
+
const _hoisted_2 = ["id", "type", "placeholder", "disabled", "aria-required"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "ElmTextField",
|
|
9
|
+
props: /* @__PURE__ */ mergeModels({
|
|
10
|
+
label: {},
|
|
11
|
+
maxLength: {},
|
|
12
|
+
suffix: {},
|
|
13
|
+
placeholder: {},
|
|
14
|
+
disabled: { type: Boolean, default: false },
|
|
15
|
+
loading: { type: Boolean, default: false },
|
|
16
|
+
icon: {},
|
|
17
|
+
isPassword: { type: Boolean, default: false },
|
|
18
|
+
required: { type: Boolean, default: false }
|
|
19
|
+
}, {
|
|
20
|
+
"modelValue": { default: "" },
|
|
21
|
+
"modelModifiers": {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const id = nanoid();
|
|
26
|
+
const isFocused = ref(false);
|
|
27
|
+
const props = __props;
|
|
28
|
+
const input = useModel(__props, "modelValue");
|
|
29
|
+
const type = ref(props.isPassword ? "password" : "text");
|
|
30
|
+
const handleDelete = () => {
|
|
31
|
+
if (!props.loading && !props.disabled) input.value = "";
|
|
32
|
+
};
|
|
33
|
+
const handleVisibleSwitch = () => {
|
|
34
|
+
if (!props.loading && !props.disabled)
|
|
35
|
+
type.value = type.value === "text" ? "password" : "text";
|
|
36
|
+
};
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock("div", {
|
|
39
|
+
class: normalizeClass(_ctx.$style.wrapper),
|
|
40
|
+
style: normalizeStyle({
|
|
41
|
+
"--border-color": isFocused.value ? "#59b57c" : "transparent",
|
|
42
|
+
backgroundColor: _ctx.disabled || _ctx.loading ? "rgba(0,0,0,0.15)" : void 0
|
|
43
|
+
})
|
|
44
|
+
}, [
|
|
45
|
+
createElementVNode("div", {
|
|
46
|
+
class: normalizeClass(_ctx.$style.header)
|
|
47
|
+
}, [
|
|
48
|
+
createElementVNode("label", {
|
|
49
|
+
for: unref(id),
|
|
50
|
+
class: normalizeClass(_ctx.$style.label),
|
|
51
|
+
style: normalizeStyle({ "--color": isFocused.value ? "#59b57c" : void 0 })
|
|
52
|
+
}, [
|
|
53
|
+
createElementVNode("span", null, toDisplayString(_ctx.label), 1),
|
|
54
|
+
_ctx.required ? (openBlock(), createElementBlock("span", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: normalizeClass(_ctx.$style.requierd)
|
|
57
|
+
}, "*", 2)) : createCommentVNode("", true)
|
|
58
|
+
], 14, _hoisted_1),
|
|
59
|
+
_ctx.maxLength != null ? (openBlock(), createBlock(ElmInlineText, {
|
|
60
|
+
key: 0,
|
|
61
|
+
text: `${input.value.length} / ${_ctx.maxLength}`,
|
|
62
|
+
color: input.value.length > _ctx.maxLength ? "#c56565" : "gray",
|
|
63
|
+
size: "0.75rem"
|
|
64
|
+
}, null, 8, ["text", "color"])) : createCommentVNode("", true)
|
|
65
|
+
], 2),
|
|
66
|
+
createElementVNode("div", {
|
|
67
|
+
class: normalizeClass(_ctx.$style.body)
|
|
68
|
+
}, [
|
|
69
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
70
|
+
class: normalizeClass(_ctx.$style["left-icon"])
|
|
71
|
+
}, null, 8, ["class"])),
|
|
72
|
+
withDirectives(createElementVNode("input", {
|
|
73
|
+
id: unref(id),
|
|
74
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => input.value = $event),
|
|
75
|
+
type: type.value,
|
|
76
|
+
class: normalizeClass(_ctx.$style.input),
|
|
77
|
+
placeholder: _ctx.placeholder,
|
|
78
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => isFocused.value = true),
|
|
79
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => isFocused.value = false),
|
|
80
|
+
disabled: _ctx.disabled || _ctx.loading,
|
|
81
|
+
style: normalizeStyle({
|
|
82
|
+
cursor: _ctx.disabled ? "not-allowed" : _ctx.loading ? "progress" : "auto"
|
|
83
|
+
}),
|
|
84
|
+
"aria-required": _ctx.required
|
|
85
|
+
}, null, 46, _hoisted_2), [
|
|
86
|
+
[vModelDynamic, input.value]
|
|
87
|
+
]),
|
|
88
|
+
createElementVNode("div", {
|
|
89
|
+
class: normalizeClass(_ctx.$style["icon-box"])
|
|
90
|
+
}, [
|
|
91
|
+
createElementVNode("span", {
|
|
92
|
+
class: normalizeClass(_ctx.$style.suffix)
|
|
93
|
+
}, [
|
|
94
|
+
_ctx.suffix != null ? (openBlock(), createBlock(ElmInlineText, {
|
|
95
|
+
key: 0,
|
|
96
|
+
text: _ctx.suffix
|
|
97
|
+
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
98
|
+
], 2),
|
|
99
|
+
_ctx.isPassword ? (openBlock(), createBlock(unref(Icon), {
|
|
100
|
+
key: 0,
|
|
101
|
+
icon: type.value === "text" ? "heroicons:eye" : "heroicons:eye-slash",
|
|
102
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
103
|
+
onClick: handleVisibleSwitch
|
|
104
|
+
}, null, 8, ["icon", "class"])) : createCommentVNode("", true),
|
|
105
|
+
createVNode(unref(Icon), {
|
|
106
|
+
icon: "heroicons:backspace-16-solid",
|
|
107
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
108
|
+
onClick: handleDelete
|
|
109
|
+
}, null, 8, ["class"])
|
|
110
|
+
], 2)
|
|
111
|
+
], 2),
|
|
112
|
+
createElementVNode("div", {
|
|
113
|
+
class: normalizeClass(_ctx.$style.loading),
|
|
114
|
+
style: normalizeStyle({
|
|
115
|
+
opacity: _ctx.loading ? 0.2 : 0
|
|
116
|
+
})
|
|
117
|
+
}, null, 6)
|
|
118
|
+
], 6);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
_sfc_main as default
|
|
124
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("@keyframes _loading_bthl1_19{0%{transform-origin:0%;transform:scaleX(0)}40%{transform-origin:0%;transform:scaleX(1)}60%{transform-origin:100%;transform:scaleX(1)}to{transform-origin:100%;transform:scaleX(0)}}._loading_bthl1_19{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#6987b8;transition:opacity .2s;pointer-events:none;animation-name:_loading_bthl1_19;animation-iteration-count:infinite;animation-duration:1.6s}._wrapper_bthl1_33{overflow:hidden;position:relative;box-sizing:border-box;width:100%;padding:.25rem;border-radius:.25rem;display:flex;flex-direction:column;justify-content:space-between;transition:border-color .2s,background-color .2s;border-style:solid;border-width:1px;border-color:var(--border-color);background-color:#fffc;box-shadow:0 0 .25rem #00000026}[data-theme=dark] ._wrapper_bthl1_33{background-color:#ffffff26;box-shadow:0 0 .25rem #000000bf}._header_bthl1_55{box-sizing:border-box;height:.75rem;padding:0 .25rem;display:flex;justify-content:space-between}._label_bthl1_63{display:inline;margin:0;padding:0;font-size:.75rem;line-height:.75rem;height:.75rem;vertical-align:top;transition:color .2s;color:#000000a6;color:var(--color, rgba(0, 0, 0, .65))}[data-theme=dark] ._label_bthl1_63{color:#ffffffa6;color:var(--color, rgba(255, 255, 255, .65))}._requierd_bthl1_78{padding-inline:.25rem;color:#c56565;font-weight:700}._body_bthl1_84{display:flex;justify-content:space-between;align-items:center;padding-right:.5rem}._left-icon_bthl1_91{margin:auto .25rem;width:24px;height:24px;display:flex;justify-content:center;align-items:center;opacity:.7}[data-theme=dark] ._left-icon_bthl1_91{filter:invert(1)}._input_bthl1_104{all:unset;box-sizing:border-box;padding:.5rem;width:100%;color:#000000b3;caret-color:#000000b3}._input_bthl1_104::-moz-placeholder{opacity:.5}._input_bthl1_104::placeholder{opacity:.5}[data-theme=dark] ._input_bthl1_104::-moz-placeholder{opacity:.7}[data-theme=dark] ._input_bthl1_104::placeholder{opacity:.7}._input_bthl1_104::-moz-selection{background-color:#000000b3;color:#ffffffb3}._input_bthl1_104::selection{background-color:#000000b3;color:#ffffffb3}[data-theme=dark] ._input_bthl1_104{color:#ffffffb3;caret-color:#ffffffb3}[data-theme=dark] ._input_bthl1_104::-moz-selection{background-color:#ffffffb3;color:#000000b3}[data-theme=dark] ._input_bthl1_104::selection{background-color:#ffffffb3;color:#000000b3}._icon-box_bthl1_131{display:flex;justify-content:space-between;align-items:center}._icon_bthl1_131{box-sizing:border-box;border-radius:50%;padding:.25rem;width:28px;height:28px;transition:background-color .2s;color:gray;cursor:pointer}._icon_bthl1_131:hover{background-color:#80808033}._suffix_bthl1_151{opacity:.6;padding:0 .5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const loading = "_loading_bthl1_19";
|
|
14
|
+
const wrapper = "_wrapper_bthl1_33";
|
|
15
|
+
const header = "_header_bthl1_55";
|
|
16
|
+
const label = "_label_bthl1_63";
|
|
17
|
+
const requierd = "_requierd_bthl1_78";
|
|
18
|
+
const body = "_body_bthl1_84";
|
|
19
|
+
const input = "_input_bthl1_104";
|
|
20
|
+
const icon = "_icon_bthl1_131";
|
|
21
|
+
const suffix = "_suffix_bthl1_151";
|
|
22
|
+
const style0 = {
|
|
23
|
+
loading,
|
|
24
|
+
wrapper,
|
|
25
|
+
header,
|
|
26
|
+
label,
|
|
27
|
+
requierd,
|
|
28
|
+
body,
|
|
29
|
+
"left-icon": "_left-icon_bthl1_91",
|
|
30
|
+
input,
|
|
31
|
+
"icon-box": "_icon-box_bthl1_131",
|
|
32
|
+
icon,
|
|
33
|
+
suffix
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
body,
|
|
37
|
+
style0 as default,
|
|
38
|
+
header,
|
|
39
|
+
icon,
|
|
40
|
+
input,
|
|
41
|
+
label,
|
|
42
|
+
loading,
|
|
43
|
+
requierd,
|
|
44
|
+
suffix,
|
|
45
|
+
wrapper
|
|
46
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as ElmTotp } from './ElmTotp.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmTotp>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ElmTotpProps {
|
|
2
|
+
length: number;
|
|
3
|
+
focusOnMount?: boolean;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<ElmTotpProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTotpProps> & Readonly<{}>, {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
focusOnMount: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
targetRef: HTMLInputElement;
|
|
11
|
+
}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmTotp.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmTotp.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmTotp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmTotp as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, createElementBlock, openBlock, createElementVNode, withDirectives, normalizeClass, createVNode, Fragment, renderList, unref, createCommentVNode, toDisplayString, vModelText } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import { useFocus } from "@vueuse/core";
|
|
4
|
+
const _hoisted_1 = ["onClick"];
|
|
5
|
+
const _hoisted_2 = ["maxlength", "disabled"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ElmTotp",
|
|
8
|
+
props: {
|
|
9
|
+
length: {},
|
|
10
|
+
focusOnMount: { type: Boolean, default: true },
|
|
11
|
+
loading: { type: Boolean, default: false }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const inputModel = ref("");
|
|
16
|
+
const paddedInputRef = computed(() => {
|
|
17
|
+
return inputModel.value.padEnd(props.length, " ");
|
|
18
|
+
});
|
|
19
|
+
const targetRef = ref(null);
|
|
20
|
+
const { focused } = useFocus(targetRef);
|
|
21
|
+
const selectedIndex = ref(0);
|
|
22
|
+
const select = (index) => {
|
|
23
|
+
selectText(index);
|
|
24
|
+
selectedIndex.value = index;
|
|
25
|
+
};
|
|
26
|
+
const selectText = (index) => {
|
|
27
|
+
if (targetRef.value) {
|
|
28
|
+
targetRef.value.focus();
|
|
29
|
+
targetRef.value.setSelectionRange(index, index + 1);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const handleInput = () => {
|
|
33
|
+
if (focused.value && selectedIndex.value !== null) {
|
|
34
|
+
if (selectedIndex.value < props.length - 1) {
|
|
35
|
+
select(selectedIndex.value + 1);
|
|
36
|
+
} else {
|
|
37
|
+
select(0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const onInputChange = () => {
|
|
42
|
+
var _a;
|
|
43
|
+
const inputValue = ((_a = targetRef.value) == null ? void 0 : _a.value) ?? "";
|
|
44
|
+
inputModel.value = inputValue.slice(0, props.length);
|
|
45
|
+
handleInput();
|
|
46
|
+
};
|
|
47
|
+
const reset = () => {
|
|
48
|
+
inputModel.value = "";
|
|
49
|
+
nextTick(() => select(0));
|
|
50
|
+
};
|
|
51
|
+
onMounted(() => {
|
|
52
|
+
inputModel.value = "";
|
|
53
|
+
if (props.focusOnMount) nextTick(() => select(0));
|
|
54
|
+
});
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createElementBlock("div", null, [
|
|
57
|
+
createElementVNode("div", {
|
|
58
|
+
class: normalizeClass(_ctx.$style.container)
|
|
59
|
+
}, [
|
|
60
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(paddedInputRef.value.split(""), (char, index) => {
|
|
61
|
+
return openBlock(), createElementBlock("div", {
|
|
62
|
+
class: normalizeClass([
|
|
63
|
+
_ctx.$style["char-box"],
|
|
64
|
+
{
|
|
65
|
+
[_ctx.$style.focused]: unref(focused) && selectedIndex.value === index,
|
|
66
|
+
[_ctx.$style.loading]: _ctx.loading
|
|
67
|
+
}
|
|
68
|
+
]),
|
|
69
|
+
onClick: ($event) => select(index)
|
|
70
|
+
}, [
|
|
71
|
+
char !== " " ? (openBlock(), createElementBlock("span", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: normalizeClass(_ctx.$style.char)
|
|
74
|
+
}, toDisplayString(char), 3)) : createCommentVNode("", true)
|
|
75
|
+
], 10, _hoisted_1);
|
|
76
|
+
}), 256)),
|
|
77
|
+
createVNode(unref(Icon), {
|
|
78
|
+
icon: "heroicons:backspace",
|
|
79
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
80
|
+
onClick: reset
|
|
81
|
+
}, null, 8, ["class"])
|
|
82
|
+
], 2),
|
|
83
|
+
withDirectives(createElementVNode("input", {
|
|
84
|
+
"aria-hidden": "",
|
|
85
|
+
type: "text",
|
|
86
|
+
class: normalizeClass(_ctx.$style["dummy-input"]),
|
|
87
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputModel.value = $event),
|
|
88
|
+
ref_key: "targetRef",
|
|
89
|
+
ref: targetRef,
|
|
90
|
+
maxlength: _ctx.length,
|
|
91
|
+
onInput: onInputChange,
|
|
92
|
+
disabled: _ctx.loading
|
|
93
|
+
}, null, 42, _hoisted_2), [
|
|
94
|
+
[vModelText, inputModel.value]
|
|
95
|
+
])
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
_sfc_main as default
|
|
102
|
+
};
|
|
@@ -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("._dummy-input_gewi2_1{all:unset;height:0px}._container_gewi2_6{display:flex;align-items:center;gap:.5rem;cursor:pointer}._char-box_gewi2_13{display:flex;justify-content:center;align-items:center;width:3.5rem;height:4rem;border:solid 1px #ccc;border-radius:.25rem;transition:border-color .1s,background-color .1s,opacity .1s;background-color:#00000006}[data-theme=dark] ._char-box_gewi2_13{background-color:#ffffff06}._focused_gewi2_28{border-color:#6987b8;background-color:#6987b80d}._loading_gewi2_33{opacity:.5;background-color:#0003}[data-theme=dark] ._loading_gewi2_33{background-color:#fff3}._char_gewi2_13{font-size:1.75rem;font-family:monospace;color:#000000b3}[data-theme=dark] ._char_gewi2_13{color:#ffffffb3}._icon_gewi2_50{width:24px;height:24px;padding:.5rem;border-radius:50%;transition:background-color .2s;color:#000000b3}._icon_gewi2_50:hover{background-color:#0000000d}[data-theme=dark] ._icon_gewi2_50{color:#ffffffb3}[data-theme=dark] ._icon_gewi2_50:hover{background-color:#ffffff0d}"));
|
|
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_gewi2_6";
|
|
14
|
+
const focused = "_focused_gewi2_28";
|
|
15
|
+
const loading = "_loading_gewi2_33";
|
|
16
|
+
const char = "_char_gewi2_13";
|
|
17
|
+
const icon = "_icon_gewi2_50";
|
|
18
|
+
const style0 = {
|
|
19
|
+
"dummy-input": "_dummy-input_gewi2_1",
|
|
20
|
+
container,
|
|
21
|
+
"char-box": "_char-box_gewi2_13",
|
|
22
|
+
focused,
|
|
23
|
+
loading,
|
|
24
|
+
char,
|
|
25
|
+
icon
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
char,
|
|
29
|
+
container,
|
|
30
|
+
style0 as default,
|
|
31
|
+
focused,
|
|
32
|
+
icon,
|
|
33
|
+
loading
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmArrowIconProps {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the direction of the arrow.
|
|
5
|
+
*/
|
|
6
|
+
direction?: "up" | "down" | "left" | "right";
|
|
7
|
+
/**
|
|
8
|
+
* Specifies whether the arrow is in loading state.
|
|
9
|
+
*/
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies whether the arrow is in pending state.
|
|
13
|
+
*/
|
|
14
|
+
pending?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the size of the arrow.
|
|
17
|
+
*/
|
|
18
|
+
size?: Property.Height;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<ElmArrowIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmArrowIconProps> & Readonly<{}>, {
|
|
21
|
+
size: Property.Height;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
pending: boolean;
|
|
24
|
+
direction: "up" | "down" | "left" | "right";
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmArrowIcon.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmArrowIcon.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmArrowIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmArrowIcon as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmArrowIcon",
|
|
4
|
+
props: {
|
|
5
|
+
direction: { default: "right" },
|
|
6
|
+
loading: { type: Boolean, default: false },
|
|
7
|
+
pending: { type: Boolean, default: false },
|
|
8
|
+
size: { default: "2rem" }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass([
|
|
14
|
+
_ctx.$style.arrow,
|
|
15
|
+
{
|
|
16
|
+
[_ctx.$style.normal]: !_ctx.loading && !_ctx.pending,
|
|
17
|
+
[_ctx.$style.loading]: _ctx.loading,
|
|
18
|
+
[_ctx.$style.pending]: !_ctx.loading && _ctx.pending
|
|
19
|
+
}
|
|
20
|
+
]),
|
|
21
|
+
style: normalizeStyle({
|
|
22
|
+
"--size": _ctx.size,
|
|
23
|
+
transform: _ctx.direction === "up" ? "rotate(270deg)" : _ctx.direction === "down" ? "rotate(90deg)" : _ctx.direction === "left" ? "rotate(180deg)" : "rotate(0deg)"
|
|
24
|
+
})
|
|
25
|
+
}, null, 6);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
_sfc_main as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("@keyframes _loading_hcczr_27{0%{background-position:200% 0%}33%{background-position:100% 0%}66%{background-position:100% 0%}to{background-position:0% 0%}}._arrow_hcczr_15{width:var(--size);height:var(--size);background:linear-gradient(to right,#000000b3 0,#000000b3 50%,#0003 50%);background-size:200% 100%;clip-path:polygon(50% 33%,0% 33%,0% 66%,50% 66%,50% 100%,100% 50%,50% 0%)}[data-theme=dark] ._arrow_hcczr_15{background:linear-gradient(to right,#ffffffb3 0,#ffffffb3 50%,#fff3 50%);background-size:200% 100%}._loading_hcczr_27{animation-name:_loading_hcczr_27;animation-duration:1.6s;animation-iteration-count:infinite}._normal_hcczr_33{background:#000000b3;transition:background .4s}[data-theme=dark] ._normal_hcczr_33{background:#ffffffb3}._pending_hcczr_41{background:#0003;transition:background .4s}[data-theme=dark] ._pending_hcczr_41{background:#fff3}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const arrow = "_arrow_hcczr_15";
|
|
14
|
+
const loading = "_loading_hcczr_27";
|
|
15
|
+
const normal = "_normal_hcczr_33";
|
|
16
|
+
const pending = "_pending_hcczr_41";
|
|
17
|
+
const style0 = {
|
|
18
|
+
arrow,
|
|
19
|
+
loading,
|
|
20
|
+
normal,
|
|
21
|
+
pending
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
arrow,
|
|
25
|
+
style0 as default,
|
|
26
|
+
loading,
|
|
27
|
+
normal,
|
|
28
|
+
pending
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmBookmarkIcon } from './ElmBookmarkIcon.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmBookmarkIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Long: Story;
|
|
8
|
+
export declare const NoFavicon: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ElmBookmarkIconProps {
|
|
2
|
+
name?: string;
|
|
3
|
+
href: string;
|
|
4
|
+
favicon?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<ElmBookmarkIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBookmarkIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmBookmarkIcon.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmBookmarkIcon.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmBookmarkIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmBookmarkIcon as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, unref, createVNode } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
|
+
const _hoisted_1 = ["href"];
|
|
5
|
+
const _hoisted_2 = ["src", "alt"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ElmBookmarkIcon",
|
|
8
|
+
props: {
|
|
9
|
+
name: {},
|
|
10
|
+
href: {},
|
|
11
|
+
favicon: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("a", {
|
|
16
|
+
class: normalizeClass(_ctx.$style.wrapper),
|
|
17
|
+
href: _ctx.href,
|
|
18
|
+
target: "_blank",
|
|
19
|
+
rel: "noopener noreferrer"
|
|
20
|
+
}, [
|
|
21
|
+
_ctx.favicon != null ? (openBlock(), createElementBlock("img", {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: normalizeClass(_ctx.$style.favicon),
|
|
24
|
+
src: _ctx.favicon,
|
|
25
|
+
alt: `favicon of ${_ctx.name ?? _ctx.href}`
|
|
26
|
+
}, null, 10, _hoisted_2)) : (openBlock(), createBlock(unref(Icon), {
|
|
27
|
+
key: 1,
|
|
28
|
+
icon: "mdi:globe",
|
|
29
|
+
class: normalizeClass(_ctx.$style["favicon-svg"])
|
|
30
|
+
}, null, 8, ["class"])),
|
|
31
|
+
createElementVNode("div", {
|
|
32
|
+
class: normalizeClass(_ctx.$style.text)
|
|
33
|
+
}, [
|
|
34
|
+
createVNode(ElmInlineText, {
|
|
35
|
+
text: _ctx.name ?? _ctx.href,
|
|
36
|
+
size: ".6rem"
|
|
37
|
+
}, null, 8, ["text"])
|
|
38
|
+
], 2)
|
|
39
|
+
], 10, _hoisted_1);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
_sfc_main as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._wrapper_19n7v_1{all:unset;box-sizing:border-box;padding:.5rem;width:5rem;height:5.5rem;border-radius:.25rem;display:flex;flex-direction:column;align-items:center;justify-content:space-around;cursor:pointer;transition:background-color .1s}._wrapper_19n7v_1:hover{background-color:#0000001a}[data-theme=dark] ._wrapper_19n7v_1:hover{background-color:#ffffff1a}._favicon_19n7v_22{width:2.5rem;height:2.5rem}._favicon-svg_19n7v_27{width:2.5rem;height:2.5rem;color:#000000b3}[data-theme=dark] ._favicon-svg_19n7v_27{color:#ffffffb3}._text_19n7v_36{width:4rem;text-align:center;vertical-align:middle;line-height:.75rem;overflow:hidden;text-overflow:ellipsis}"));
|
|
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_19n7v_1";
|
|
14
|
+
const favicon = "_favicon_19n7v_22";
|
|
15
|
+
const text = "_text_19n7v_36";
|
|
16
|
+
const style0 = {
|
|
17
|
+
wrapper,
|
|
18
|
+
favicon,
|
|
19
|
+
"favicon-svg": "_favicon-svg_19n7v_27",
|
|
20
|
+
text
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
style0 as default,
|
|
24
|
+
favicon,
|
|
25
|
+
text,
|
|
26
|
+
wrapper
|
|
27
|
+
};
|
|
@@ -6,5 +6,5 @@ export interface ElmCubeIconProps {
|
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import('vue').DefineComponent<ElmCubeIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCubeIconProps> & Readonly<{}>, {
|
|
8
8
|
size: number;
|
|
9
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
10
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmCubeIcon.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmCubeIcon.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmCubeIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmCubeIcon as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, Fragment, renderList, createElementVNode } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmCubeIcon",
|
|
4
|
+
props: {
|
|
5
|
+
size: { default: 128 }
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const props = __props;
|
|
9
|
+
const commonTranslateZ = computed(() => `translateZ(${props.size / 2}px)`);
|
|
10
|
+
const faces = [
|
|
11
|
+
{ name: "front", rotate: "" },
|
|
12
|
+
{ name: "back", rotate: "rotateY(180deg)" },
|
|
13
|
+
{ name: "left", rotate: "rotateY(-90deg)" },
|
|
14
|
+
{ name: "right", rotate: "rotateY(90deg)" },
|
|
15
|
+
{ name: "top", rotate: "rotateX(90deg)" },
|
|
16
|
+
{ name: "bottom", rotate: "rotateX(-90deg)" }
|
|
17
|
+
];
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
class: normalizeClass(_ctx.$style.cube),
|
|
21
|
+
style: normalizeStyle({
|
|
22
|
+
width: `${_ctx.size}px`,
|
|
23
|
+
height: `${_ctx.size}px`
|
|
24
|
+
})
|
|
25
|
+
}, [
|
|
26
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(faces, (face) => {
|
|
27
|
+
return createElementVNode("div", {
|
|
28
|
+
key: face.name,
|
|
29
|
+
class: normalizeClass(_ctx.$style.face),
|
|
30
|
+
style: normalizeStyle({
|
|
31
|
+
transform: `${face.rotate} ${commonTranslateZ.value}`
|
|
32
|
+
})
|
|
33
|
+
}, null, 6);
|
|
34
|
+
}), 64))
|
|
35
|
+
], 6);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
_sfc_main as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._cube_oh6hr_1{position:relative;transform-style:preserve-3d;transform:rotateX(-30deg) rotateY(-45deg);animation:_elmethis-cube-icon-rotate_oh6hr_1 1.5s infinite linear}._face_oh6hr_8{position:absolute;width:100%;height:100%;border-radius:2px;display:flex;justify-content:center;align-items:center;font-weight:700;backface-visibility:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-style:solid;border-width:1px;border-color:#000000b3;background-color:#fff3}[data-theme=dark] ._face_oh6hr_8{border-color:#ffffffb3;background-color:#0003}@keyframes _elmethis-cube-icon-rotate_oh6hr_1{0%{transform:rotateX(-30deg) rotateY(-45deg) rotate(0)}to{transform:rotateX(-30deg) rotateY(315deg) rotate(360deg)}}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const cube = "_cube_oh6hr_1";
|
|
14
|
+
const face = "_face_oh6hr_8";
|
|
15
|
+
const style0 = {
|
|
16
|
+
cube,
|
|
17
|
+
"elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_oh6hr_1",
|
|
18
|
+
face
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
cube,
|
|
22
|
+
style0 as default,
|
|
23
|
+
face
|
|
24
|
+
};
|
|
@@ -12,7 +12,7 @@ export interface ElmDotLoadingIconProps {
|
|
|
12
12
|
size?: Property.Width<string | number>;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<ElmDotLoadingIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDotLoadingIconProps> & Readonly<{}>, {
|
|
15
|
-
size: Property.Width<string | number>;
|
|
16
15
|
color: Property.BackgroundColor;
|
|
17
|
-
|
|
16
|
+
size: Property.Width<string | number>;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
18
|
export default _default;
|