@elmethis/core 1.0.0-alpha.19 → 1.0.0-alpha.191
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 +214 -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 +32 -4
- package/dist/components/table/ElmTable.vue.mjs +10 -0
- package/dist/components/table/ElmTable.vue2.mjs +61 -0
- package/dist/components/table/ElmTable.vue3.mjs +27 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +8 -4
- package/dist/components/table/ElmTableBody.vue.mjs +14 -0
- package/dist/components/table/ElmTableBody.vue2.mjs +4 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +7 -3
- 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 +8 -4
- 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 +8 -4
- 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.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 +128 -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,28 @@
|
|
|
1
|
+
import { defineComponent, inject, createBlock, openBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmTableCell",
|
|
4
|
+
props: {
|
|
5
|
+
hasHeader: { type: Boolean, default: false },
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const hasHeaderInjected = inject("hasHeader");
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.hasHeader || unref(hasHeaderInjected) ? "th" : "td"), {
|
|
12
|
+
class: normalizeClass([
|
|
13
|
+
_ctx.$style.common,
|
|
14
|
+
_ctx.hasHeader || unref(hasHeaderInjected) ? _ctx.$style.th : _ctx.$style.td
|
|
15
|
+
])
|
|
16
|
+
}, {
|
|
17
|
+
default: withCtx(() => [
|
|
18
|
+
_ctx.text == null ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
19
|
+
createTextVNode(" " + toDisplayString(_ctx.text), 1)
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 8, ["class"]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
_sfc_main as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._common_1puhv_1{padding:.75rem 1rem;color:#000000b3;border-right:1px dotted rgba(0,0,0,.15)}._common_1puhv_1::-moz-selection{color:#ffffffb3;background-color:#000000b3}._common_1puhv_1::selection{color:#ffffffb3;background-color:#000000b3}[data-theme=dark] ._common_1puhv_1{color:#ffffffb3}[data-theme=dark] ._common_1puhv_1::-moz-selection{color:#000000b3;background-color:#ffffffb3}[data-theme=dark] ._common_1puhv_1::selection{color:#000000b3;background-color:#ffffffb3}[data-theme=dark] ._common_1puhv_1{border-right:1px dotted rgba(255,255,255,.15)}._common_1puhv_1:last-child{border-right:none}._td_1puhv_24{border-top:1px solid rgba(0,0,0,.15)}[data-theme=dark] ._td_1puhv_24{border-top-color:#ffffff26}._th_1puhv_31{background-color:#80808026}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const common = "_common_1puhv_1";
|
|
14
|
+
const td = "_td_1puhv_24";
|
|
15
|
+
const th = "_th_1puhv_31";
|
|
16
|
+
const style0 = {
|
|
17
|
+
common,
|
|
18
|
+
td,
|
|
19
|
+
th
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
common,
|
|
23
|
+
style0 as default,
|
|
24
|
+
td,
|
|
25
|
+
th
|
|
26
|
+
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { default as ElmTableRow } from './ElmTableRow.vue';
|
|
1
2
|
export interface ElmTableHeaderProps {
|
|
2
3
|
}
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: Readonly<{
|
|
7
|
+
default: InstanceType<typeof ElmTableRow> | InstanceType<typeof ElmTableRow>[];
|
|
8
|
+
}> & {
|
|
9
|
+
default: InstanceType<typeof ElmTableRow> | InstanceType<typeof ElmTableRow>[];
|
|
6
10
|
};
|
|
7
11
|
refs: {};
|
|
8
|
-
|
|
12
|
+
rootEl: HTMLTableSectionElement;
|
|
9
13
|
};
|
|
10
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableSectionElement>;
|
|
12
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
17
|
export default _default;
|
|
14
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmTableHeader.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmTableHeader.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmTableHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmTableHeader as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent, provide, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmTableHeader",
|
|
4
|
+
setup(__props) {
|
|
5
|
+
provide("hasHeader", true);
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
return openBlock(), createElementBlock("thead", {
|
|
8
|
+
class: normalizeClass(_ctx.$style.thead)
|
|
9
|
+
}, [
|
|
10
|
+
renderSlot(_ctx.$slots, "default")
|
|
11
|
+
], 2);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
_sfc_main as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._thead_1brzu_1{text-align:left;transition:background-color .4s,color .4s;border-bottom:2px solid rgba(128,128,128,.5)}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const thead = "_thead_1brzu_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
thead
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
thead
|
|
20
|
+
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { default as ElmTableCell } from './ElmTableCell.vue';
|
|
1
2
|
export interface ElmTableRowProps {
|
|
2
3
|
}
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: Readonly<{
|
|
7
|
+
default: InstanceType<typeof ElmTableCell>[];
|
|
8
|
+
}> & {
|
|
9
|
+
default: InstanceType<typeof ElmTableCell>[];
|
|
6
10
|
};
|
|
7
11
|
refs: {};
|
|
8
|
-
|
|
12
|
+
rootEl: HTMLTableRowElement;
|
|
9
13
|
};
|
|
10
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
12
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
17
|
export default _default;
|
|
14
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmTableRow.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmTableRow.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmTableRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmTableRow as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent, useSlots, inject, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createVNode, resolveDynamicComponent } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmTableRow",
|
|
4
|
+
setup(__props) {
|
|
5
|
+
const slots = useSlots();
|
|
6
|
+
const hasRowHeader = inject("hasRowHeader");
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createElementBlock("tr", {
|
|
9
|
+
class: normalizeClass([_ctx.$style.tr, { [_ctx.$style["has-row-header"]]: unref(hasRowHeader) }])
|
|
10
|
+
}, [
|
|
11
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(slots, (cell) => {
|
|
12
|
+
return createVNode(resolveDynamicComponent(cell));
|
|
13
|
+
}), 64))
|
|
14
|
+
], 2);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
_sfc_main as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._tr_2ogbz_1{transition:background-color .2s}._tr_2ogbz_1:nth-child(odd){background-color:transparent}._tr_2ogbz_1:nth-child(2n){background-color:#00000004}[data-theme=dark] ._tr_2ogbz_1:nth-child(2n){background-color:#ffffff04}._tr_2ogbz_1:hover,[data-theme=dark] ._tr_2ogbz_1:hover{background-color:#6987b826}._has-row-header_2ogbz_20 td:first-child,._has-row-header_2ogbz_20 tr:first-child{background-color:#80808026}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const tr = "_tr_2ogbz_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
tr,
|
|
16
|
+
"has-row-header": "_has-row-header_2ogbz_20"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
style0 as default,
|
|
20
|
+
tr
|
|
21
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface ElmTemplateProps {
|
|
2
2
|
}
|
|
3
|
-
declare const _default: import('vue').DefineComponent<ElmTemplateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTemplateProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
3
|
+
declare const _default: import('vue').DefineComponent<ElmTemplateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTemplateProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
export interface ElmBlockQuoteProps {
|
|
2
|
+
cite?: string;
|
|
2
3
|
}
|
|
3
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
4
6
|
slots: {
|
|
5
7
|
default?(_: {}): any;
|
|
6
8
|
};
|
|
7
9
|
refs: {
|
|
8
10
|
target: HTMLQuoteElement;
|
|
9
11
|
};
|
|
10
|
-
|
|
12
|
+
rootEl: HTMLQuoteElement;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmBlockQuoteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBlockQuoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmBlockQuoteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBlockQuoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
target: HTMLQuoteElement;
|
|
17
|
+
}, HTMLQuoteElement>;
|
|
14
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
19
|
export default _default;
|
|
16
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmBlockQuote.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmBlockQuote.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmBlockQuote = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmBlockQuote as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, createElementVNode, toDisplayString, unref } from "vue";
|
|
2
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
3
|
+
import { mdiFormatQuoteOpen, mdiFormatQuoteClose } from "../../node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs";
|
|
4
|
+
const _hoisted_1 = ["cite"];
|
|
5
|
+
const _hoisted_2 = ["href"];
|
|
6
|
+
const _hoisted_3 = ["d"];
|
|
7
|
+
const _hoisted_4 = ["d"];
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "ElmBlockQuote",
|
|
10
|
+
props: {
|
|
11
|
+
cite: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const target = ref(null);
|
|
15
|
+
const targetIsVisible = ref(false);
|
|
16
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
17
|
+
targetIsVisible.value = isIntersecting;
|
|
18
|
+
});
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("blockquote", {
|
|
21
|
+
ref_key: "target",
|
|
22
|
+
ref: target,
|
|
23
|
+
class: normalizeClass(_ctx.$style.blockquote),
|
|
24
|
+
style: normalizeStyle({
|
|
25
|
+
"--opacity": targetIsVisible.value ? 1 : 0
|
|
26
|
+
}),
|
|
27
|
+
cite: _ctx.cite
|
|
28
|
+
}, [
|
|
29
|
+
renderSlot(_ctx.$slots, "default"),
|
|
30
|
+
_ctx.cite ? (openBlock(), createElementBlock("cite", {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: normalizeClass(_ctx.$style.cite)
|
|
33
|
+
}, [
|
|
34
|
+
createElementVNode("a", {
|
|
35
|
+
href: _ctx.cite,
|
|
36
|
+
target: "_blank",
|
|
37
|
+
rel: "noopener noreferrer"
|
|
38
|
+
}, toDisplayString(_ctx.cite), 9, _hoisted_2)
|
|
39
|
+
], 2)) : createCommentVNode("", true),
|
|
40
|
+
(openBlock(), createElementBlock("svg", {
|
|
41
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
42
|
+
style: { "top": "0.25rem", "left": "0.25rem" },
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
width: "1rem",
|
|
45
|
+
height: "1rem"
|
|
46
|
+
}, [
|
|
47
|
+
createElementVNode("path", { d: unref(mdiFormatQuoteOpen) }, null, 8, _hoisted_3)
|
|
48
|
+
], 2)),
|
|
49
|
+
(openBlock(), createElementBlock("svg", {
|
|
50
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
51
|
+
style: { "bottom": "0.25rem", "right": "0.25rem" },
|
|
52
|
+
viewBox: "0 0 24 24",
|
|
53
|
+
width: "1rem",
|
|
54
|
+
height: "1rem"
|
|
55
|
+
}, [
|
|
56
|
+
createElementVNode("path", { d: unref(mdiFormatQuoteClose) }, null, 8, _hoisted_4)
|
|
57
|
+
], 2))
|
|
58
|
+
], 14, _hoisted_1);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
_sfc_main as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._blockquote_jhmbg_1{position:relative;margin-block:2rem;opacity:var(--opacity);transition:opacity .8s;box-sizing:border-box;margin:0;padding:1.5rem .5rem 1.5rem 1.5rem;background-color:#868e9c0d;border-left:4px solid rgba(0,0,0,.2)}[data-theme=dark] ._blockquote_jhmbg_1{border-left-color:#fff3}._cite_jhmbg_16{position:absolute;font-size:.75rem;line-height:.75rem;bottom:.5rem;right:2rem}._cite_jhmbg_16 a{all:unset;color:#6987b8;padding:0 .25rem;border-radius:.125rem;cursor:pointer;transition:background-color .1s}._cite_jhmbg_16 a:hover{background-color:#6987b826}._icon_jhmbg_35{position:absolute;padding:0;margin:0;width:1rem;height:1rem;fill:#868e9c}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const blockquote = "_blockquote_jhmbg_1";
|
|
14
|
+
const cite = "_cite_jhmbg_16";
|
|
15
|
+
const icon = "_icon_jhmbg_35";
|
|
16
|
+
const style0 = {
|
|
17
|
+
blockquote,
|
|
18
|
+
cite,
|
|
19
|
+
icon
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
blockquote,
|
|
23
|
+
cite,
|
|
24
|
+
style0 as default,
|
|
25
|
+
icon
|
|
26
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AlertType =
|
|
1
|
+
export type AlertType = "note" | "tip" | "important" | "warning" | "caution";
|
|
2
2
|
export interface ElmCalloutProps {
|
|
3
3
|
/**
|
|
4
4
|
* Type of alert
|
|
@@ -6,18 +6,21 @@ export interface ElmCalloutProps {
|
|
|
6
6
|
type?: AlertType;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
9
10
|
slots: {
|
|
10
11
|
default?(_: {}): any;
|
|
11
12
|
};
|
|
12
13
|
refs: {
|
|
13
14
|
target: HTMLElement;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
rootEl: HTMLElement;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: import('vue').DefineComponent<ElmCalloutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCalloutProps> & Readonly<{}>, {
|
|
19
20
|
type: AlertType;
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
target: HTMLElement;
|
|
23
|
+
}, HTMLElement>;
|
|
21
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
25
|
export default _default;
|
|
23
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmCallout.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmCallout.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmCallout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmCallout as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createVNode, renderSlot } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmInlineText from "./ElmInlineText.vue.mjs";
|
|
4
|
+
import { rgba } from "polished";
|
|
5
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ElmCallout",
|
|
8
|
+
props: {
|
|
9
|
+
type: { default: "note" }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const colors = {
|
|
13
|
+
note: { code: "#6987b8", icon: "mdi:information-slab-box-outline" },
|
|
14
|
+
tip: { code: "#59b57c", icon: "heroicons:light-bulb" },
|
|
15
|
+
important: { code: "#9771bd", icon: "heroicons:shield-exclamation" },
|
|
16
|
+
warning: { code: "#b8a36e", icon: "heroicons:exclamation-triangle" },
|
|
17
|
+
caution: { code: "#b36472", icon: "heroicons:x-circle" }
|
|
18
|
+
};
|
|
19
|
+
const target = ref(null);
|
|
20
|
+
const targetIsVisible = ref(false);
|
|
21
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
22
|
+
targetIsVisible.value = isIntersecting;
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock("aside", {
|
|
26
|
+
ref_key: "target",
|
|
27
|
+
ref: target,
|
|
28
|
+
class: normalizeClass(_ctx.$style.callout),
|
|
29
|
+
style: normalizeStyle({
|
|
30
|
+
"--border-color": colors[_ctx.type].code,
|
|
31
|
+
"--bg-color": unref(rgba)(colors[_ctx.type].code, 0.1),
|
|
32
|
+
"--scale": targetIsVisible.value ? 1 : 0
|
|
33
|
+
})
|
|
34
|
+
}, [
|
|
35
|
+
createElementVNode("div", {
|
|
36
|
+
class: normalizeClass(_ctx.$style.header)
|
|
37
|
+
}, [
|
|
38
|
+
createVNode(unref(Icon), {
|
|
39
|
+
icon: colors[_ctx.type].icon,
|
|
40
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
41
|
+
style: normalizeStyle({ "--icon-color": colors[_ctx.type].code })
|
|
42
|
+
}, null, 8, ["icon", "class", "style"]),
|
|
43
|
+
createVNode(ElmInlineText, {
|
|
44
|
+
text: _ctx.type.toUpperCase(),
|
|
45
|
+
color: colors[_ctx.type].code
|
|
46
|
+
}, null, 8, ["text", "color"])
|
|
47
|
+
], 2),
|
|
48
|
+
createElementVNode("div", null, [
|
|
49
|
+
renderSlot(_ctx.$slots, "default")
|
|
50
|
+
])
|
|
51
|
+
], 6);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
_sfc_main as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._callout_s5qh4_1{z-index:1;margin-block:2rem;position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;border-left:solid 4px var(--border-color)}._callout_s5qh4_1:after{position:absolute;content:"";left:0;top:0;width:100%;height:100%;background-color:var(--bg-color);transition:transform .8s;transform:scaleX(var(--scale));transform-origin:left}._header_s5qh4_25{display:flex;align-items:center;gap:.5rem}._icon_s5qh4_31{width:20px;height:20px;color:var(--icon-color)}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const callout = "_callout_s5qh4_1";
|
|
14
|
+
const header = "_header_s5qh4_25";
|
|
15
|
+
const icon = "_icon_s5qh4_31";
|
|
16
|
+
const style0 = {
|
|
17
|
+
callout,
|
|
18
|
+
header,
|
|
19
|
+
icon
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
callout,
|
|
23
|
+
style0 as default,
|
|
24
|
+
header,
|
|
25
|
+
icon
|
|
26
|
+
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
export interface ElmDividerProps {
|
|
3
|
+
/**
|
|
4
|
+
* The margin of the divider.
|
|
5
|
+
*/
|
|
6
|
+
margin?: Property.MarginBlock;
|
|
2
7
|
}
|
|
3
|
-
declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
target: HTMLHRElement;
|
|
10
|
+
}, HTMLHRElement>;
|
|
4
11
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmDivider.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmDivider.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmDivider as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
+
import { useIntersectionObserver } from "@vueuse/core";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmDivider",
|
|
5
|
+
props: {
|
|
6
|
+
margin: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const target = ref(null);
|
|
10
|
+
const targetIsVisible = ref(false);
|
|
11
|
+
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
12
|
+
targetIsVisible.value = isIntersecting;
|
|
13
|
+
});
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("hr", {
|
|
16
|
+
ref_key: "target",
|
|
17
|
+
ref: target,
|
|
18
|
+
class: normalizeClass(_ctx.$style.divider),
|
|
19
|
+
style: normalizeStyle({
|
|
20
|
+
"--scale": targetIsVisible.value ? 1 : 0,
|
|
21
|
+
"--margin-block": _ctx.margin
|
|
22
|
+
})
|
|
23
|
+
}, null, 6);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_sfc_main as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._divider_z5wle_1{margin-block:var(--margin-block);position:relative;display:block;width:100%;overflow:visible;border:none;border-bottom:1px solid rgba(0,0,0,.3);transform:scaleX(var(--scale));transition:transform 1.2s}[data-theme=dark] ._divider_z5wle_1{border-bottom-color:#ffffff4d}._divider_z5wle_1:before{position:absolute;content:"";height:5px;width:5px;top:-2px;border-radius:50%;background-color:#0009;left:0}[data-theme=dark] ._divider_z5wle_1:before{background-color:#fff9}._divider_z5wle_1:after{position:absolute;content:"";height:5px;width:5px;top:-2px;border-radius:50%;background-color:#0009;right:0}[data-theme=dark] ._divider_z5wle_1:after{background-color:#fff9}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const divider = "_divider_z5wle_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
divider
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
divider
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmFragmentIdentifier } from './ElmFragmentIdentifier.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmFragmentIdentifier>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ElmFragmentIdentifierProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the heading element.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<ElmFragmentIdentifierProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFragmentIdentifierProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmFragmentIdentifier.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmFragmentIdentifier.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmFragmentIdentifier = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmFragmentIdentifier as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent, onMounted, nextTick, createElementBlock, openBlock, normalizeClass, createVNode, unref } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import { useClipboard } from "@vueuse/core";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmFragmentIdentifier",
|
|
6
|
+
props: {
|
|
7
|
+
id: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const handleHashClick = (id) => {
|
|
11
|
+
const url = new URL(window.location.href);
|
|
12
|
+
url.hash = id;
|
|
13
|
+
window.history.replaceState(null, "", url.toString());
|
|
14
|
+
const target = document.getElementById(id);
|
|
15
|
+
if (target != null) {
|
|
16
|
+
target.scrollIntoView({ behavior: "smooth" });
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const handleLinkClick = (id) => {
|
|
20
|
+
const url = new URL(window.location.href);
|
|
21
|
+
url.hash = id;
|
|
22
|
+
window.history.replaceState(null, "", url.toString());
|
|
23
|
+
copy(window.location.href);
|
|
24
|
+
};
|
|
25
|
+
const { copy } = useClipboard();
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
nextTick(() => {
|
|
28
|
+
const hash = window.location.hash;
|
|
29
|
+
if (hash && hash.startsWith("#")) {
|
|
30
|
+
const element = document.querySelector(hash);
|
|
31
|
+
if (element) {
|
|
32
|
+
element.scrollIntoView({ behavior: "smooth" });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock("div", {
|
|
39
|
+
class: normalizeClass(_ctx.$style.fragment)
|
|
40
|
+
}, [
|
|
41
|
+
createVNode(unref(Icon), {
|
|
42
|
+
icon: "material-symbols:anchor",
|
|
43
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
44
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleHashClick(_ctx.id))
|
|
45
|
+
}, null, 8, ["class"]),
|
|
46
|
+
createVNode(unref(Icon), {
|
|
47
|
+
icon: "mingcute:link-line",
|
|
48
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
49
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleLinkClick(_ctx.id))
|
|
50
|
+
}, null, 8, ["class"])
|
|
51
|
+
], 2);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
_sfc_main as default
|
|
57
|
+
};
|