@elmethis/vue 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/lib/index.vue.cjs +2 -0
- package/lib/index.vue.mjs +4387 -0
- package/lib/style.css +2 -0
- package/lib-types/components/a2ui/catalog/basic-catalog.d.ts +3 -0
- package/lib-types/components/a2ui/catalog/basic-catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/block-catalog.d.ts +8 -0
- package/lib-types/components/a2ui/catalog/block-catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts +19 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/catalog.d.ts +109 -0
- package/lib-types/components/a2ui/catalog/catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/component-host.d.ts +76 -0
- package/lib-types/components/a2ui/component-host.d.ts.map +1 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts +115 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts +14 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -0
- package/lib-types/components/code/elm-code-block.d.ts +47 -0
- package/lib-types/components/code/elm-code-block.d.ts.map +1 -0
- package/lib-types/components/code/elm-katex.d.ts +37 -0
- package/lib-types/components/code/elm-katex.d.ts.map +1 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts +33 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -0
- package/lib-types/components/containments/elm-collapse.d.ts +38 -0
- package/lib-types/components/containments/elm-collapse.d.ts.map +1 -0
- package/lib-types/components/containments/elm-modal.d.ts +43 -0
- package/lib-types/components/containments/elm-modal.d.ts.map +1 -0
- package/lib-types/components/containments/elm-parallax.d.ts +16 -0
- package/lib-types/components/containments/elm-parallax.d.ts.map +1 -0
- package/lib-types/components/containments/elm-tabs.d.ts +79 -0
- package/lib-types/components/containments/elm-tabs.d.ts.map +1 -0
- package/lib-types/components/containments/elm-toggle.d.ts +57 -0
- package/lib-types/components/containments/elm-toggle.d.ts.map +1 -0
- package/lib-types/components/containments/elm-tooltip.d.ts +4 -0
- package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -0
- package/lib-types/components/containments/tabs-context.d.ts +17 -0
- package/lib-types/components/containments/tabs-context.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-block-fallback.d.ts +18 -0
- package/lib-types/components/fallback/elm-block-fallback.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts +4 -0
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-unsupported-block.d.ts +18 -0
- package/lib-types/components/fallback/elm-unsupported-block.d.ts.map +1 -0
- package/lib-types/components/form/elm-button.d.ts +70 -0
- package/lib-types/components/form/elm-button.d.ts.map +1 -0
- package/lib-types/components/form/elm-checkbox.d.ts +75 -0
- package/lib-types/components/form/elm-checkbox.d.ts.map +1 -0
- package/lib-types/components/form/elm-select.d.ts +108 -0
- package/lib-types/components/form/elm-select.d.ts.map +1 -0
- package/lib-types/components/form/elm-switch.d.ts +62 -0
- package/lib-types/components/form/elm-switch.d.ts.map +1 -0
- package/lib-types/components/form/elm-text-area.d.ts +108 -0
- package/lib-types/components/form/elm-text-area.d.ts.map +1 -0
- package/lib-types/components/form/elm-text-field.d.ts +113 -0
- package/lib-types/components/form/elm-text-field.d.ts.map +1 -0
- package/lib-types/components/form/elm-validation.d.ts +36 -0
- package/lib-types/components/form/elm-validation.d.ts.map +1 -0
- package/lib-types/components/icon/elm-copy-icon.d.ts +19 -0
- package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts +21 -0
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts +63 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-language-icon.d.ts +36 -0
- package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-mdi-icon.d.ts +73 -0
- package/lib-types/components/icon/elm-mdi-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-square-loading-icon.d.ts +28 -0
- package/lib-types/components/icon/elm-square-loading-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-toggle-theme.d.ts +21 -0
- package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -0
- package/lib-types/components/icon/languages/bash.d.ts +14 -0
- package/lib-types/components/icon/languages/bash.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c-plus-plus.d.ts +14 -0
- package/lib-types/components/icon/languages/c-plus-plus.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c-sharp.d.ts +14 -0
- package/lib-types/components/icon/languages/c-sharp.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c.d.ts +14 -0
- package/lib-types/components/icon/languages/c.d.ts.map +1 -0
- package/lib-types/components/icon/languages/css.d.ts +14 -0
- package/lib-types/components/icon/languages/css.d.ts.map +1 -0
- package/lib-types/components/icon/languages/go.d.ts +14 -0
- package/lib-types/components/icon/languages/go.d.ts.map +1 -0
- package/lib-types/components/icon/languages/html.d.ts +14 -0
- package/lib-types/components/icon/languages/html.d.ts.map +1 -0
- package/lib-types/components/icon/languages/java.d.ts +14 -0
- package/lib-types/components/icon/languages/java.d.ts.map +1 -0
- package/lib-types/components/icon/languages/javascript.d.ts +14 -0
- package/lib-types/components/icon/languages/javascript.d.ts.map +1 -0
- package/lib-types/components/icon/languages/json.d.ts +14 -0
- package/lib-types/components/icon/languages/json.d.ts.map +1 -0
- package/lib-types/components/icon/languages/kotlin.d.ts +14 -0
- package/lib-types/components/icon/languages/kotlin.d.ts.map +1 -0
- package/lib-types/components/icon/languages/language-interface.d.ts +7 -0
- package/lib-types/components/icon/languages/language-interface.d.ts.map +1 -0
- package/lib-types/components/icon/languages/lua.d.ts +14 -0
- package/lib-types/components/icon/languages/lua.d.ts.map +1 -0
- package/lib-types/components/icon/languages/npm.d.ts +14 -0
- package/lib-types/components/icon/languages/npm.d.ts.map +1 -0
- package/lib-types/components/icon/languages/python.d.ts +14 -0
- package/lib-types/components/icon/languages/python.d.ts.map +1 -0
- package/lib-types/components/icon/languages/rust.d.ts +14 -0
- package/lib-types/components/icon/languages/rust.d.ts.map +1 -0
- package/lib-types/components/icon/languages/sql.d.ts +14 -0
- package/lib-types/components/icon/languages/sql.d.ts.map +1 -0
- package/lib-types/components/icon/languages/terraform.d.ts +14 -0
- package/lib-types/components/icon/languages/terraform.d.ts.map +1 -0
- package/lib-types/components/icon/languages/typescript.d.ts +14 -0
- package/lib-types/components/icon/languages/typescript.d.ts.map +1 -0
- package/lib-types/components/media/elm-block-image.d.ts +93 -0
- package/lib-types/components/media/elm-block-image.d.ts.map +1 -0
- package/lib-types/components/media/elm-file.d.ts +46 -0
- package/lib-types/components/media/elm-file.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts +74 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts +26 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-page-top.d.ts +21 -0
- package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -0
- package/lib-types/components/others/elm-color-primitive-sample.d.ts +4 -0
- package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -0
- package/lib-types/components/others/elm-color-semantic-sample.d.ts +4 -0
- package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -0
- package/lib-types/components/others/elm-markdown.d.ts +31 -0
- package/lib-types/components/others/elm-markdown.d.ts.map +1 -0
- package/lib-types/components/others/use-wordle.d.ts +26 -0
- package/lib-types/components/others/use-wordle.d.ts.map +1 -0
- package/lib-types/components/others/wordle/validGuesses.d.ts +2 -0
- package/lib-types/components/others/wordle/validGuesses.d.ts.map +1 -0
- package/lib-types/components/others/wordle/wordlist.d.ts +2 -0
- package/lib-types/components/others/wordle/wordlist.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-body.d.ts +4 -0
- package/lib-types/components/table/elm-table-body.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-cell.d.ts +58 -0
- package/lib-types/components/table/elm-table-cell.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-header.d.ts +4 -0
- package/lib-types/components/table/elm-table-header.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-row.d.ts +4 -0
- package/lib-types/components/table/elm-table-row.d.ts.map +1 -0
- package/lib-types/components/table/elm-table.d.ts +28 -0
- package/lib-types/components/table/elm-table.d.ts.map +1 -0
- package/lib-types/components/table/index.d.ts +7 -0
- package/lib-types/components/table/index.d.ts.map +1 -0
- package/lib-types/components/table/table-context.d.ts +22 -0
- package/lib-types/components/table/table-context.d.ts.map +1 -0
- package/lib-types/components/typography/elm-block-quote.d.ts +4 -0
- package/lib-types/components/typography/elm-block-quote.d.ts.map +1 -0
- package/lib-types/components/typography/elm-callout.d.ts +22 -0
- package/lib-types/components/typography/elm-callout.d.ts.map +1 -0
- package/lib-types/components/typography/elm-divider.d.ts +4 -0
- package/lib-types/components/typography/elm-divider.d.ts.map +1 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts +19 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts.map +1 -0
- package/lib-types/components/typography/elm-heading.d.ts +38 -0
- package/lib-types/components/typography/elm-heading.d.ts.map +1 -0
- package/lib-types/components/typography/elm-inline-text.d.ts +172 -0
- package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -0
- package/lib-types/components/typography/elm-list.d.ts +19 -0
- package/lib-types/components/typography/elm-list.d.ts.map +1 -0
- package/lib-types/components/typography/elm-paragraph.d.ts +28 -0
- package/lib-types/components/typography/elm-paragraph.d.ts.map +1 -0
- package/lib-types/hooks/use-bindable-signal.d.ts +44 -0
- package/lib-types/hooks/use-bindable-signal.d.ts.map +1 -0
- package/lib-types/hooks/use-clipboard.d.ts +24 -0
- package/lib-types/hooks/use-clipboard.d.ts.map +1 -0
- package/lib-types/hooks/use-elmethis-theme.d.ts +47 -0
- package/lib-types/hooks/use-elmethis-theme.d.ts.map +1 -0
- package/lib-types/hooks/use-modal.d.ts +25 -0
- package/lib-types/hooks/use-modal.d.ts.map +1 -0
- package/lib-types/index.d.ts +53 -0
- package/lib-types/index.d.ts.map +1 -0
- package/package.json +85 -45
- package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -10
- package/dist/components/ag-ui/message/ElmAgUiMessageUser.stories.d.ts +0 -6
- package/dist/components/ag-ui/message/ElmAgUiMessageUser.vue.d.ts +0 -8
- package/dist/components/code/ElmCodeBlock.stories.d.ts +0 -9
- package/dist/components/code/ElmCodeBlock.vue.d.ts +0 -46
- package/dist/components/code/ElmCodeBlock.vue.mjs +0 -23
- package/dist/components/code/ElmCodeBlock.vue2.mjs +0 -104
- package/dist/components/code/ElmCodeBlock.vue3.mjs +0 -40
- package/dist/components/code/ElmKatex.stories.d.ts +0 -8
- package/dist/components/code/ElmKatex.vue.d.ts +0 -20
- package/dist/components/code/ElmKatex.vue.mjs +0 -10
- package/dist/components/code/ElmKatex.vue2.mjs +0 -68
- package/dist/components/code/ElmKatex.vue3.mjs +0 -20
- package/dist/components/code/ElmMermaid.stories.d.ts +0 -7
- package/dist/components/code/ElmMermaid.vue.d.ts +0 -7
- package/dist/components/code/ElmMermaid.vue.mjs +0 -10
- package/dist/components/code/ElmMermaid.vue2.mjs +0 -95
- package/dist/components/code/ElmMermaid.vue3.mjs +0 -26
- package/dist/components/code/ElmShikiHighlighter.stories.d.ts +0 -6
- package/dist/components/code/ElmShikiHighlighter.vue.d.ts +0 -22
- package/dist/components/code/ElmShikiHighlighter.vue.mjs +0 -23
- package/dist/components/code/ElmShikiHighlighter.vue2.mjs +0 -55
- package/dist/components/code/ElmShikiHighlighter.vue3.mjs +0 -20
- package/dist/components/code/shikiInstance.d.ts +0 -2
- package/dist/components/code/shikiInstance.mjs +0 -76
- package/dist/components/containments/ElmColumn.stories.d.ts +0 -6
- package/dist/components/containments/ElmColumn.vue.d.ts +0 -19
- package/dist/components/containments/ElmColumnList.vue.d.ts +0 -19
- package/dist/components/containments/ElmConfirmModal.stories.d.ts +0 -6
- package/dist/components/containments/ElmConfirmModal.vue.d.ts +0 -37
- package/dist/components/containments/ElmConfirmModal.vue.mjs +0 -10
- package/dist/components/containments/ElmConfirmModal.vue2.mjs +0 -98
- package/dist/components/containments/ElmConfirmModal.vue3.mjs +0 -23
- package/dist/components/containments/ElmDesktopWindow.stories.d.ts +0 -6
- package/dist/components/containments/ElmDesktopWindow.vue.d.ts +0 -27
- package/dist/components/containments/ElmDesktopWindow.vue.mjs +0 -10
- package/dist/components/containments/ElmDesktopWindow.vue2.mjs +0 -42
- package/dist/components/containments/ElmDesktopWindow.vue3.mjs +0 -26
- package/dist/components/containments/ElmModal.stories.d.ts +0 -6
- package/dist/components/containments/ElmModal.vue.d.ts +0 -34
- package/dist/components/containments/ElmModal.vue.mjs +0 -10
- package/dist/components/containments/ElmModal.vue2.mjs +0 -56
- package/dist/components/containments/ElmModal.vue3.mjs +0 -23
- package/dist/components/containments/ElmParallax.stories.d.ts +0 -6
- package/dist/components/containments/ElmParallax.vue.d.ts +0 -6
- package/dist/components/containments/ElmParallax.vue.mjs +0 -10
- package/dist/components/containments/ElmParallax.vue2.mjs +0 -35
- package/dist/components/containments/ElmParallax.vue3.mjs +0 -20
- package/dist/components/containments/ElmSimpleTooltip.stories.d.ts +0 -7
- package/dist/components/containments/ElmSimpleTooltip.vue.d.ts +0 -21
- package/dist/components/containments/ElmSimpleTooltip.vue.mjs +0 -10
- package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +0 -37
- package/dist/components/containments/ElmSimpleTooltip.vue3.mjs +0 -26
- package/dist/components/containments/ElmSnackbar.stories.d.ts +0 -6
- package/dist/components/containments/ElmSnackbar.vue.d.ts +0 -11
- package/dist/components/containments/ElmSnackbar.vue.mjs +0 -10
- package/dist/components/containments/ElmSnackbar.vue2.mjs +0 -41
- package/dist/components/containments/ElmSnackbar.vue3.mjs +0 -26
- package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +0 -10
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +0 -23
- package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +0 -33
- package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +0 -19
- package/dist/components/containments/ElmToggle.stories.d.ts +0 -7
- package/dist/components/containments/ElmToggle.vue.d.ts +0 -41
- package/dist/components/containments/ElmToggle.vue.mjs +0 -10
- package/dist/components/containments/ElmToggle.vue2.mjs +0 -106
- package/dist/components/containments/ElmToggle.vue3.mjs +0 -44
- package/dist/components/containments/ElmTooltip.stories.d.ts +0 -6
- package/dist/components/containments/ElmTooltip.vue.d.ts +0 -40
- package/dist/components/containments/ElmTooltip.vue.mjs +0 -10
- package/dist/components/containments/ElmTooltip.vue2.mjs +0 -56
- package/dist/components/containments/ElmTooltip.vue3.mjs +0 -26
- package/dist/components/containments/useSnackbarState.d.ts +0 -28
- package/dist/components/data/ElmMultiProgress.stories.d.ts +0 -6
- package/dist/components/data/ElmMultiProgress.vue.d.ts +0 -30
- package/dist/components/data/ElmMultiProgress.vue.mjs +0 -10
- package/dist/components/data/ElmMultiProgress.vue2.mjs +0 -44
- package/dist/components/data/ElmMultiProgress.vue3.mjs +0 -23
- package/dist/components/data/ElmProgress.stories.d.ts +0 -10
- package/dist/components/data/ElmProgress.vue.d.ts +0 -38
- package/dist/components/data/ElmProgress.vue.mjs +0 -10
- package/dist/components/data/ElmProgress.vue2.mjs +0 -53
- package/dist/components/data/ElmProgress.vue3.mjs +0 -32
- package/dist/components/data/ElmStatusMessage.stories.d.ts +0 -9
- package/dist/components/data/ElmStatusMessage.vue.d.ts +0 -6
- package/dist/components/data/ElmStatusMessage.vue.mjs +0 -23
- package/dist/components/data/ElmStatusMessage.vue2.mjs +0 -76
- package/dist/components/data/ElmStatusMessage.vue3.mjs +0 -20
- package/dist/components/embed/ElmOEmbed.stories.d.ts +0 -9
- package/dist/components/embed/ElmOEmbed.vue.d.ts +0 -40
- package/dist/components/embed/ElmOEmbed.vue.mjs +0 -57
- package/dist/components/embed/ElmOEmbed.vue2.mjs +0 -4
- package/dist/components/fallback/ElmBlockFallback.stories.d.ts +0 -6
- package/dist/components/fallback/ElmBlockFallback.vue.d.ts +0 -4
- package/dist/components/fallback/ElmBlockFallback.vue.mjs +0 -10
- package/dist/components/fallback/ElmBlockFallback.vue2.mjs +0 -17
- package/dist/components/fallback/ElmBlockFallback.vue3.mjs +0 -18
- package/dist/components/fallback/ElmRectangleWave.stories.d.ts +0 -6
- package/dist/components/fallback/ElmRectangleWave.vue.d.ts +0 -4
- package/dist/components/fallback/ElmRectangleWave.vue.mjs +0 -10
- package/dist/components/fallback/ElmRectangleWave.vue2.mjs +0 -15
- package/dist/components/fallback/ElmRectangleWave.vue3.mjs +0 -21
- package/dist/components/fallback/ElmSpinner.stories.d.ts +0 -6
- package/dist/components/fallback/ElmSpinner.vue.d.ts +0 -9
- package/dist/components/fallback/ElmSpinner.vue.mjs +0 -10
- package/dist/components/fallback/ElmSpinner.vue2.mjs +0 -30
- package/dist/components/fallback/ElmSpinner.vue3.mjs +0 -24
- package/dist/components/fallback/ElmUnsupportedBlock.stories.d.ts +0 -6
- package/dist/components/fallback/ElmUnsupportedBlock.vue.d.ts +0 -5
- package/dist/components/fallback/ElmUnsupportedBlock.vue.mjs +0 -10
- package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +0 -46
- package/dist/components/fallback/ElmUnsupportedBlock.vue3.mjs +0 -29
- package/dist/components/form/ElmButton.stories.d.ts +0 -11
- package/dist/components/form/ElmButton.vue.d.ts +0 -42
- package/dist/components/form/ElmButton.vue.mjs +0 -23
- package/dist/components/form/ElmButton.vue2.mjs +0 -74
- package/dist/components/form/ElmButton.vue3.mjs +0 -40
- package/dist/components/form/ElmCheckbox.stories.d.ts +0 -6
- package/dist/components/form/ElmCheckbox.vue.d.ts +0 -26
- package/dist/components/form/ElmCheckbox.vue.mjs +0 -10
- package/dist/components/form/ElmCheckbox.vue2.mjs +0 -177
- package/dist/components/form/ElmCheckbox.vue3.mjs +0 -34
- package/dist/components/form/ElmSelect.stories.d.ts +0 -6
- package/dist/components/form/ElmSelect.vue.d.ts +0 -48
- package/dist/components/form/ElmSelect.vue.mjs +0 -10
- package/dist/components/form/ElmSelect.vue2.mjs +0 -145
- package/dist/components/form/ElmSelect.vue3.mjs +0 -56
- package/dist/components/form/ElmSwitch.stories.d.ts +0 -6
- package/dist/components/form/ElmSwitch.vue.d.ts +0 -32
- package/dist/components/form/ElmSwitch.vue.mjs +0 -10
- package/dist/components/form/ElmSwitch.vue2.mjs +0 -61
- package/dist/components/form/ElmSwitch.vue3.mjs +0 -28
- package/dist/components/form/ElmTextField.stories.d.ts +0 -7
- package/dist/components/form/ElmTextField.vue.d.ts +0 -33
- package/dist/components/form/ElmTextField.vue.mjs +0 -10
- package/dist/components/form/ElmTextField.vue2.mjs +0 -150
- package/dist/components/form/ElmTextField.vue3.mjs +0 -49
- package/dist/components/form/ElmValidation.stories.d.ts +0 -6
- package/dist/components/form/ElmValidation.vue.d.ts +0 -9
- package/dist/components/form/ElmValidation.vue.mjs +0 -10
- package/dist/components/form/ElmValidation.vue2.mjs +0 -34
- package/dist/components/form/ElmValidation.vue3.mjs +0 -20
- package/dist/components/icon/ElmArrowIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmArrowIcon.vue.d.ts +0 -26
- package/dist/components/icon/ElmArrowIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmArrowIcon.vue2.mjs +0 -31
- package/dist/components/icon/ElmArrowIcon.vue3.mjs +0 -29
- package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +0 -8
- package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +0 -7
- package/dist/components/icon/ElmBookmarkIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +0 -47
- package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +0 -26
- package/dist/components/icon/ElmCubeIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmCubeIcon.vue.d.ts +0 -10
- package/dist/components/icon/ElmCubeIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmCubeIcon.vue2.mjs +0 -41
- package/dist/components/icon/ElmCubeIcon.vue3.mjs +0 -24
- package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +0 -18
- package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +0 -28
- package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +0 -26
- package/dist/components/icon/ElmInlineIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmInlineIcon.vue.d.ts +0 -12
- package/dist/components/icon/ElmInlineIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmInlineIcon.vue2.mjs +0 -27
- package/dist/components/icon/ElmInlineIcon.vue3.mjs +0 -20
- package/dist/components/icon/ElmLanguageIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmLanguageIcon.vue.d.ts +0 -15
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +0 -147
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +0 -20
- package/dist/components/icon/ElmLoginIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmLoginIcon.vue.d.ts +0 -18
- package/dist/components/icon/ElmLoginIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmLoginIcon.vue2.mjs +0 -36
- package/dist/components/icon/ElmLoginIcon.vue3.mjs +0 -20
- package/dist/components/icon/ElmMdiIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmMdiIcon.vue.d.ts +0 -11
- package/dist/components/icon/ElmMdiIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmMdiIcon.vue2.mjs +0 -34
- package/dist/components/icon/ElmMdiIcon.vue3.mjs +0 -20
- package/dist/components/icon/ElmSquareLoadingIcon.stories.d.ts +0 -6
- package/dist/components/icon/ElmSquareLoadingIcon.vue.d.ts +0 -10
- package/dist/components/icon/ElmSquareLoadingIcon.vue.mjs +0 -10
- package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +0 -37
- package/dist/components/icon/ElmSquareLoadingIcon.vue3.mjs +0 -26
- package/dist/components/icon/ElmToggleTheme.stories.d.ts +0 -6
- package/dist/components/icon/ElmToggleTheme.vue.d.ts +0 -11
- package/dist/components/icon/ElmToggleTheme.vue.mjs +0 -10
- package/dist/components/icon/ElmToggleTheme.vue2.mjs +0 -41
- package/dist/components/icon/ElmToggleTheme.vue3.mjs +0 -20
- package/dist/components/icon/languages/Bash.vue.d.ts +0 -7
- package/dist/components/icon/languages/Bash.vue.mjs +0 -10
- package/dist/components/icon/languages/Bash.vue2.mjs +0 -34
- package/dist/components/icon/languages/Bash.vue3.mjs +0 -20
- package/dist/components/icon/languages/C.vue.d.ts +0 -7
- package/dist/components/icon/languages/C.vue.mjs +0 -34
- package/dist/components/icon/languages/C.vue2.mjs +0 -4
- package/dist/components/icon/languages/Cplusplus.vue.d.ts +0 -7
- package/dist/components/icon/languages/Cplusplus.vue.mjs +0 -38
- package/dist/components/icon/languages/Cplusplus.vue2.mjs +0 -4
- package/dist/components/icon/languages/Csharp.vue.d.ts +0 -7
- package/dist/components/icon/languages/Csharp.vue.mjs +0 -34
- package/dist/components/icon/languages/Csharp.vue2.mjs +0 -4
- package/dist/components/icon/languages/Css.vue.d.ts +0 -7
- package/dist/components/icon/languages/Css.vue.mjs +0 -26
- package/dist/components/icon/languages/Css.vue2.mjs +0 -4
- package/dist/components/icon/languages/Go.vue.d.ts +0 -7
- package/dist/components/icon/languages/Go.vue.mjs +0 -32
- package/dist/components/icon/languages/Go.vue2.mjs +0 -4
- package/dist/components/icon/languages/Html.vue.d.ts +0 -7
- package/dist/components/icon/languages/Html.vue.mjs +0 -38
- package/dist/components/icon/languages/Html.vue2.mjs +0 -4
- package/dist/components/icon/languages/Java.vue.d.ts +0 -7
- package/dist/components/icon/languages/Java.vue.mjs +0 -23
- package/dist/components/icon/languages/Java.vue2.mjs +0 -4
- package/dist/components/icon/languages/Javascript.vue.d.ts +0 -7
- package/dist/components/icon/languages/Javascript.vue.mjs +0 -30
- package/dist/components/icon/languages/Javascript.vue2.mjs +0 -4
- package/dist/components/icon/languages/Json.vue.d.ts +0 -7
- package/dist/components/icon/languages/Json.vue.mjs +0 -23
- package/dist/components/icon/languages/Json.vue2.mjs +0 -4
- package/dist/components/icon/languages/Kotlin.vue.d.ts +0 -7
- package/dist/components/icon/languages/Kotlin.vue.mjs +0 -23
- package/dist/components/icon/languages/Kotlin.vue2.mjs +0 -4
- package/dist/components/icon/languages/Lua.vue.d.ts +0 -7
- package/dist/components/icon/languages/Lua.vue.mjs +0 -34
- package/dist/components/icon/languages/Lua.vue2.mjs +0 -4
- package/dist/components/icon/languages/Npm.vue.d.ts +0 -7
- package/dist/components/icon/languages/Npm.vue.mjs +0 -30
- package/dist/components/icon/languages/Npm.vue2.mjs +0 -4
- package/dist/components/icon/languages/Python.vue.d.ts +0 -7
- package/dist/components/icon/languages/Python.vue.mjs +0 -23
- package/dist/components/icon/languages/Python.vue2.mjs +0 -4
- package/dist/components/icon/languages/Rust.vue.d.ts +0 -7
- package/dist/components/icon/languages/Rust.vue.mjs +0 -24
- package/dist/components/icon/languages/Rust.vue2.mjs +0 -4
- package/dist/components/icon/languages/Sql.vue.d.ts +0 -7
- package/dist/components/icon/languages/Sql.vue.mjs +0 -26
- package/dist/components/icon/languages/Sql.vue2.mjs +0 -4
- package/dist/components/icon/languages/Terraform.vue.d.ts +0 -7
- package/dist/components/icon/languages/Terraform.vue.mjs +0 -36
- package/dist/components/icon/languages/Terraform.vue2.mjs +0 -4
- package/dist/components/icon/languages/Typescript.vue.d.ts +0 -7
- package/dist/components/icon/languages/Typescript.vue.mjs +0 -30
- package/dist/components/icon/languages/Typescript.vue2.mjs +0 -4
- package/dist/components/media/ElmFile.stories.d.ts +0 -6
- package/dist/components/media/ElmFile.vue.d.ts +0 -21
- package/dist/components/media/ElmFile.vue.mjs +0 -10
- package/dist/components/media/ElmFile.vue2.mjs +0 -79
- package/dist/components/media/ElmFile.vue3.mjs +0 -23
- package/dist/components/media/ElmImage.stories.d.ts +0 -12
- package/dist/components/media/ElmImage.vue.d.ts +0 -29
- package/dist/components/media/ElmImage.vue.mjs +0 -10
- package/dist/components/media/ElmImage.vue2.mjs +0 -179
- package/dist/components/media/ElmImage.vue3.mjs +0 -34
- package/dist/components/navigation/ElmBookmark.stories.d.ts +0 -12
- package/dist/components/navigation/ElmBookmark.vue.d.ts +0 -53
- package/dist/components/navigation/ElmBookmark.vue.mjs +0 -10
- package/dist/components/navigation/ElmBookmark.vue2.mjs +0 -116
- package/dist/components/navigation/ElmBookmark.vue3.mjs +0 -41
- package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +0 -7
- package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +0 -19
- package/dist/components/navigation/ElmBreadcrumb.vue.mjs +0 -10
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +0 -65
- package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +0 -24
- package/dist/components/navigation/ElmPagetop.stories.d.ts +0 -6
- package/dist/components/navigation/ElmPagetop.vue.d.ts +0 -10
- package/dist/components/navigation/ElmPagetop.vue.mjs +0 -10
- package/dist/components/navigation/ElmPagetop.vue2.mjs +0 -52
- package/dist/components/navigation/ElmPagetop.vue3.mjs +0 -30
- package/dist/components/navigation/ElmTableOfContents.stories.d.ts +0 -7
- package/dist/components/navigation/ElmTableOfContents.vue.d.ts +0 -9
- package/dist/components/navigation/ElmTableOfContents.vue.mjs +0 -10
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +0 -45
- package/dist/components/navigation/ElmTableOfContents.vue3.mjs +0 -23
- package/dist/components/others/ElmColorSample.stories.d.ts +0 -6
- package/dist/components/others/ElmColorSample.vue.d.ts +0 -8
- package/dist/components/others/ElmColorSample.vue.mjs +0 -23
- package/dist/components/others/ElmColorSample.vue2.mjs +0 -72
- package/dist/components/others/ElmColorSample.vue3.mjs +0 -21
- package/dist/components/others/ElmColorTable.stories.d.ts +0 -6
- package/dist/components/others/ElmColorTable.vue.d.ts +0 -11
- package/dist/components/others/ElmColorTable.vue.mjs +0 -10
- package/dist/components/others/ElmColorTable.vue2.mjs +0 -49
- package/dist/components/others/ElmColorTable.vue3.mjs +0 -22
- package/dist/components/others/ElmCommandPalette.stories.d.ts +0 -6
- package/dist/components/others/ElmCommandPalette.vue.d.ts +0 -46
- package/dist/components/others/ElmCommandPalette.vue.mjs +0 -23
- package/dist/components/others/ElmCommandPalette.vue2.mjs +0 -188
- package/dist/components/others/ElmCommandPalette.vue3.mjs +0 -41
- package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +0 -25
- package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +0 -6
- package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +0 -10
- package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +0 -208
- package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +0 -22
- package/dist/components/others/ElmMarkdown.stories.d.ts +0 -7
- package/dist/components/others/ElmMarkdown.vue.d.ts +0 -5
- package/dist/components/others/ElmMarkdown.vue.mjs +0 -10
- package/dist/components/others/ElmMarkdown.vue2.mjs +0 -257
- package/dist/components/others/ElmMarkdown.vue3.mjs +0 -18
- package/dist/components/others/ElmTyping.stories.d.ts +0 -6
- package/dist/components/others/ElmTyping.vue.d.ts +0 -4
- package/dist/components/table/ElmTable.stories.d.ts +0 -6
- package/dist/components/table/ElmTable.vue.d.ts +0 -46
- package/dist/components/table/ElmTable.vue.mjs +0 -10
- package/dist/components/table/ElmTable.vue2.mjs +0 -62
- package/dist/components/table/ElmTable.vue3.mjs +0 -27
- package/dist/components/table/ElmTableBody.vue.d.ts +0 -22
- package/dist/components/table/ElmTableBody.vue.mjs +0 -15
- package/dist/components/table/ElmTableBody.vue2.mjs +0 -4
- package/dist/components/table/ElmTableCell.vue.d.ts +0 -33
- package/dist/components/table/ElmTableCell.vue.mjs +0 -10
- package/dist/components/table/ElmTableCell.vue2.mjs +0 -28
- package/dist/components/table/ElmTableCell.vue3.mjs +0 -26
- package/dist/components/table/ElmTableHeader.vue.d.ts +0 -22
- package/dist/components/table/ElmTableHeader.vue.mjs +0 -10
- package/dist/components/table/ElmTableHeader.vue2.mjs +0 -17
- package/dist/components/table/ElmTableHeader.vue3.mjs +0 -20
- package/dist/components/table/ElmTableRow.vue.d.ts +0 -22
- package/dist/components/table/ElmTableRow.vue.mjs +0 -10
- package/dist/components/table/ElmTableRow.vue2.mjs +0 -20
- package/dist/components/table/ElmTableRow.vue3.mjs +0 -21
- package/dist/components/template/ElmTemplate.stories.d.ts +0 -6
- package/dist/components/template/ElmTemplate.vue.d.ts +0 -4
- package/dist/components/typography/ElmBlockQuote.stories.d.ts +0 -6
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +0 -24
- package/dist/components/typography/ElmBlockQuote.vue.mjs +0 -10
- package/dist/components/typography/ElmBlockQuote.vue2.mjs +0 -64
- package/dist/components/typography/ElmBlockQuote.vue3.mjs +0 -26
- package/dist/components/typography/ElmCallout.stories.d.ts +0 -11
- package/dist/components/typography/ElmCallout.vue.d.ts +0 -30
- package/dist/components/typography/ElmCallout.vue.mjs +0 -10
- package/dist/components/typography/ElmCallout.vue2.mjs +0 -58
- package/dist/components/typography/ElmCallout.vue3.mjs +0 -23
- package/dist/components/typography/ElmDivider.stories.d.ts +0 -6
- package/dist/components/typography/ElmDivider.vue.d.ts +0 -11
- package/dist/components/typography/ElmDivider.vue.mjs +0 -10
- package/dist/components/typography/ElmDivider.vue2.mjs +0 -29
- package/dist/components/typography/ElmDivider.vue3.mjs +0 -20
- package/dist/components/typography/ElmFragmentIdentifier.stories.d.ts +0 -6
- package/dist/components/typography/ElmFragmentIdentifier.vue.d.ts +0 -8
- package/dist/components/typography/ElmFragmentIdentifier.vue.mjs +0 -10
- package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +0 -27
- package/dist/components/typography/ElmFragmentIdentifier.vue3.mjs +0 -20
- package/dist/components/typography/ElmHeading.stories.d.ts +0 -7
- package/dist/components/typography/ElmHeading.vue.d.ts +0 -49
- package/dist/components/typography/ElmHeading.vue.mjs +0 -10
- package/dist/components/typography/ElmHeading.vue2.mjs +0 -95
- package/dist/components/typography/ElmHeading.vue3.mjs +0 -39
- package/dist/components/typography/ElmInlineText.stories.d.ts +0 -12
- package/dist/components/typography/ElmInlineText.vue.d.ts +0 -85
- package/dist/components/typography/ElmInlineText.vue.mjs +0 -10
- package/dist/components/typography/ElmInlineText.vue2.mjs +0 -155
- package/dist/components/typography/ElmInlineText.vue3.mjs +0 -35
- package/dist/components/typography/ElmList.stories.d.ts +0 -8
- package/dist/components/typography/ElmList.vue.d.ts +0 -31
- package/dist/components/typography/ElmList.vue.mjs +0 -36
- package/dist/components/typography/ElmList.vue3.mjs +0 -17
- package/dist/components/typography/ElmParagraph.stories.d.ts +0 -8
- package/dist/components/typography/ElmParagraph.vue.d.ts +0 -25
- package/dist/components/typography/ElmParagraph.vue.mjs +0 -10
- package/dist/components/typography/ElmParagraph.vue2.mjs +0 -33
- package/dist/components/typography/ElmParagraph.vue3.mjs +0 -20
- package/dist/components/typography/ElmTypingAnimation.stories.d.ts +0 -6
- package/dist/components/typography/ElmTypingAnimation.vue.d.ts +0 -21
- package/dist/components/typography/ElmTypingAnimation.vue.mjs +0 -10
- package/dist/components/typography/ElmTypingAnimation.vue2.mjs +0 -49
- package/dist/components/typography/ElmTypingAnimation.vue3.mjs +0 -26
- package/dist/hooks/useElmethisTheme.d.ts +0 -4
- package/dist/hooks/useElmethisTheme.mjs +0 -43
- package/dist/hooks/useTyping.d.ts +0 -17
- package/dist/hooks/useTyping.mjs +0 -37
- package/dist/index.d.ts +0 -124
- package/dist/index.mjs +0 -141
- package/dist/styles/heading.module.scss.mjs +0 -20
- package/dist/styles/text.module.scss.mjs +0 -20
- package/dist/styles/transition-fade.module.scss.mjs +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-bindable-signal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE;IAC3E,+CAA+C;IAC/C,KAAK,EAAE,CAAC,CAAC;IACT,2EAA2E;IAC3E,GAAG,EAAE,CAAC,CAAC;IACP,wEAAwE;IACxE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,MAAM,GAAG,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrE,yDAAyD;IACzD,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACjC,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAGvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Component, type CSSProperties } from "vue";
|
|
2
|
+
type ClipboardItemParameter = ConstructorParameters<typeof ClipboardItem>[0];
|
|
3
|
+
export interface UseClipboardOptions {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
content: string | ClipboardItemParameter[];
|
|
7
|
+
delay?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Vue port of qwik's `useClipboard`. Returns a `copy` callback and a
|
|
11
|
+
* `CopyButton` component whose icon swaps to the check variant for `delay` ms
|
|
12
|
+
* after a successful copy.
|
|
13
|
+
*
|
|
14
|
+
* Official-first: the copy + auto-resetting `copied` state come from `@vueuse`
|
|
15
|
+
* (`useClipboard` for text, `useClipboardItems` for rich `ClipboardItem[]`),
|
|
16
|
+
* which also handles the "re-press cancels the previous reset" timer. `copied`
|
|
17
|
+
* merges both paths.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useClipboard: (options: UseClipboardOptions) => {
|
|
20
|
+
copy: () => Promise<void>;
|
|
21
|
+
CopyButton: Component;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=use-clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-clipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/use-clipboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,KAAK,CAAC;AAWb,KAAK,sBAAsB,GAAG,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,mBAAmB,KAC3B;IAAE,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,UAAU,EAAE,SAAS,CAAA;CAwCpD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* Same-tab broadcast channel. Fired on `window` by `applyTheme` after every
|
|
4
|
+
* theme mutation. Each `useElmethisTheme()` call owns an independent piece of
|
|
5
|
+
* state, and the `storage` event only fires in *other* tabs — so without this
|
|
6
|
+
* event, sibling components in the same tab would never see a toggle.
|
|
7
|
+
* `detail` carries the new `Theme | null` (`null` = reverted to OS auto).
|
|
8
|
+
*/
|
|
9
|
+
export declare const THEME_CHANGE_EVENT = "elmethis-theme-change";
|
|
10
|
+
type Theme = "light" | "dark";
|
|
11
|
+
/**
|
|
12
|
+
* Coerce a raw storage value into an explicit Theme, or `null` when no
|
|
13
|
+
* explicit choice is stored. `null` means "follow the OS" — i.e. fall back
|
|
14
|
+
* to the `color-scheme: light dark` default, which tracks
|
|
15
|
+
* `prefers-color-scheme`.
|
|
16
|
+
*
|
|
17
|
+
* Exported so the (otherwise inline) decision rule can be regression-tested
|
|
18
|
+
* directly without having to dispatch a real `StorageEvent`.
|
|
19
|
+
*
|
|
20
|
+
* Only the literal strings `"dark"` and `"light"` are explicit choices;
|
|
21
|
+
* anything else — including `null` (the key was cleared in another tab) and
|
|
22
|
+
* unknown strings — resolves to `null` (auto / OS).
|
|
23
|
+
*/
|
|
24
|
+
export declare const parseTheme: (raw: string | null) => Theme | null;
|
|
25
|
+
/**
|
|
26
|
+
* Pin or release the Elmethis theme natively via `color-scheme` + `data-theme`
|
|
27
|
+
* on `<html>`, with cross-tab (`storage`) and same-tab (`CustomEvent`) sync.
|
|
28
|
+
*
|
|
29
|
+
* Vue port of qwik's `useElmethisTheme`: where qwik returns a `Signal<boolean>`
|
|
30
|
+
* plus a `QRL`, this returns a `Ref<boolean>` (read via `.value`) plus a plain
|
|
31
|
+
* `() => void`.
|
|
32
|
+
*
|
|
33
|
+
* Listeners are wired by hand in `onMounted` / `onBeforeUnmount` (mirroring the
|
|
34
|
+
* react port's `useEffect`): the custom `THEME_CHANGE_EVENT` and the
|
|
35
|
+
* `MediaQueryList` target don't fit `@vueuse`'s typed `useEventListener`
|
|
36
|
+
* overloads, so it would add casts rather than remove code.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* const { isDarkTheme, toggleTheme } = useElmethisTheme();
|
|
40
|
+
* // <button @click="toggleTheme">{{ isDarkTheme ? "🌙" : "☀️" }}</button>
|
|
41
|
+
*/
|
|
42
|
+
export declare function useElmethisTheme(): {
|
|
43
|
+
isDarkTheme: Ref<boolean>;
|
|
44
|
+
toggleTheme: () => void;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=use-elmethis-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-elmethis-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-elmethis-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAIhE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,KAAK,GAAG,IACI,CAAC;AAqD7D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,IAAI;IAClC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CA+DA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Component, type Ref } from "vue";
|
|
2
|
+
export interface UseModalOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Delay in **milliseconds** of the open/close fade animation.
|
|
5
|
+
*/
|
|
6
|
+
delay?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Imperative sugar over {@link ElmModal}. Owns a single `isOpen` intent and
|
|
10
|
+
* returns `show` / `hide` / `toggle` to drive it, plus a `Modal` component that
|
|
11
|
+
* renders the native `<dialog>` (open/animate/close lifecycle and timer cleanup
|
|
12
|
+
* all live in `ElmModal`).
|
|
13
|
+
*
|
|
14
|
+
* Unlike the react twin, no stable-identity ref hack is needed: a composable
|
|
15
|
+
* runs once in `setup`, so `Modal` is created once and reads the reactive
|
|
16
|
+
* `isOpen` by closure.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useModal: (options?: UseModalOptions) => {
|
|
19
|
+
Modal: Component;
|
|
20
|
+
isOpen: Ref<boolean>;
|
|
21
|
+
show: () => void;
|
|
22
|
+
hide: () => void;
|
|
23
|
+
toggle: () => void;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=use-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-modal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,GACnB,UAAS,eAAoB,KAC5B;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CA0BpB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "@elmethis/core/tokens.css";
|
|
2
|
+
export { ElmA2ui, type ElmA2uiProps, A2uiSurface, type A2uiSurfaceProps, } from "./components/a2ui/elm-a2ui";
|
|
3
|
+
export { basicCatalog } from "./components/a2ui/catalog/basic-catalog";
|
|
4
|
+
export { blockCatalog } from "./components/a2ui/catalog/block-catalog";
|
|
5
|
+
export { CatalogRenderer, defineRenderer, type RenderArgs, type RenderFn, type RendererEntry, type ChildRef, } from "./components/a2ui/catalog/catalog";
|
|
6
|
+
export { ElmCodeBlock, type ElmCodeBlockProps, } from "./components/code/elm-code-block";
|
|
7
|
+
export { ElmKatex, type ElmKatexProps } from "./components/code/elm-katex";
|
|
8
|
+
export { ElmShikiHighlighter, type ElmShikiHighlighterProps, } from "./components/code/elm-shiki-highlighter";
|
|
9
|
+
export { ElmCollapse, type ElmCollapseProps, } from "./components/containments/elm-collapse";
|
|
10
|
+
export { ElmModal, type ElmModalProps, } from "./components/containments/elm-modal";
|
|
11
|
+
export { ElmParallax, type ElmParallaxProps, } from "./components/containments/elm-parallax";
|
|
12
|
+
export { ElmTab, ElmTabList, ElmTabPanel, ElmTabs, type ElmTabListProps, type ElmTabPanelProps, type ElmTabProps, type ElmTabsProps, } from "./components/containments/elm-tabs";
|
|
13
|
+
export { ElmToggle, type ElmToggleProps, } from "./components/containments/elm-toggle";
|
|
14
|
+
export { ElmTooltip, type ElmTooltipProps, } from "./components/containments/elm-tooltip";
|
|
15
|
+
export { ElmBlockFallback, type ElmBlockFallbackProps, } from "./components/fallback/elm-block-fallback";
|
|
16
|
+
export { ElmRectangleWave, type ElmRectangleWaveProps, } from "./components/fallback/elm-rectangle-wave";
|
|
17
|
+
export { ElmUnsupportedBlock, type ElmUnsupportedBlockProps, } from "./components/fallback/elm-unsupported-block";
|
|
18
|
+
export { ElmButton, type ElmButtonProps } from "./components/form/elm-button";
|
|
19
|
+
export { ElmCheckbox, type ElmCheckboxProps, } from "./components/form/elm-checkbox";
|
|
20
|
+
export { ElmSelect, type ElmSelectOption, type ElmSelectProps, } from "./components/form/elm-select";
|
|
21
|
+
export { ElmSwitch, type ElmSwitchProps } from "./components/form/elm-switch";
|
|
22
|
+
export { ElmTextArea, type ElmTextAreaProps, } from "./components/form/elm-text-area";
|
|
23
|
+
export { ElmTextField, type ElmTextFieldProps, } from "./components/form/elm-text-field";
|
|
24
|
+
export { ElmValidation, type ElmValidationProps, } from "./components/form/elm-validation";
|
|
25
|
+
export { ElmDotLoadingIcon, type ElmDotLoadingIconProps, } from "./components/icon/elm-dot-loading-icon";
|
|
26
|
+
export { ElmCopyIcon, type ElmCopyIconProps, } from "./components/icon/elm-copy-icon";
|
|
27
|
+
export { ElmInlineIcon, type ElmInlineIconProps, } from "./components/icon/elm-inline-icon";
|
|
28
|
+
export { ElmLanguageIcon, LANGUAGES, type Language, type ElmLanguageIconProps, } from "./components/icon/elm-language-icon";
|
|
29
|
+
export { ElmMdiIcon, type ElmMdiIconProps, } from "./components/icon/elm-mdi-icon";
|
|
30
|
+
export { ElmSquareLoadingIcon, type ElmSquareLoadingIconProps, } from "./components/icon/elm-square-loading-icon";
|
|
31
|
+
export { ElmToggleTheme, type ElmToggleThemeProps, } from "./components/icon/elm-toggle-theme";
|
|
32
|
+
export { ElmBlockImage, type ElmBlockImageProps, } from "./components/media/elm-block-image";
|
|
33
|
+
export { ElmFile, type ElmFileProps } from "./components/media/elm-file";
|
|
34
|
+
export { ElmBookmark, type ElmBookmarkProps, } from "./components/navigation/elm-bookmark";
|
|
35
|
+
export { ElmBreadcrumb, type ElmBreadcrumbLink, type ElmBreadcrumbProps, } from "./components/navigation/elm-breadcrumb";
|
|
36
|
+
export { ElmPageTop, type ElmPageTopProps, } from "./components/navigation/elm-page-top";
|
|
37
|
+
export { ElmColorPrimitiveSample, type ElmColorPrimitiveSampleProps, } from "./components/others/elm-color-primitive-sample";
|
|
38
|
+
export { ElmColorSemanticSample, type ElmColorSemanticSampleProps, } from "./components/others/elm-color-semantic-sample";
|
|
39
|
+
export { ElmMarkdown, type ElmMarkdownProps, } from "./components/others/elm-markdown";
|
|
40
|
+
export { useWordle, type UseWordleOptions, type UseWordleReturn, type LetterResult, type LetterStatus, type GameStatus, } from "./components/others/use-wordle";
|
|
41
|
+
export * from "./components/table";
|
|
42
|
+
export { ElmBlockQuote, type ElmBlockQuoteProps, } from "./components/typography/elm-block-quote";
|
|
43
|
+
export { ElmCallout, type AlertType, type ElmCalloutProps, } from "./components/typography/elm-callout";
|
|
44
|
+
export { ElmDivider, type ElmDividerProps, } from "./components/typography/elm-divider";
|
|
45
|
+
export { ElmHeading, type ElmHeadingProps, } from "./components/typography/elm-heading";
|
|
46
|
+
export { ElmFragmentIdentifier, type ElmFragmentIdentifierProps, } from "./components/typography/elm-fragment-identifier";
|
|
47
|
+
export { ElmInlineText, type ElmInlineTextProps, } from "./components/typography/elm-inline-text";
|
|
48
|
+
export { ElmList, type ElmListProps } from "./components/typography/elm-list";
|
|
49
|
+
export { ElmParagraph, type ElmParagraphProps, } from "./components/typography/elm-paragraph";
|
|
50
|
+
export { useClipboard, type UseClipboardOptions } from "./hooks/use-clipboard";
|
|
51
|
+
export { THEME_CHANGE_EVENT, useElmethisTheme, } from "./hooks/use-elmethis-theme";
|
|
52
|
+
export { useModal, type UseModalOptions } from "./hooks/use-modal";
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAC;AAMnC,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EACL,eAAe,EACf,cAAc,EACd,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,QAAQ,GACd,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,GACnB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,MAAM,EACN,UAAU,EACV,WAAW,EACX,OAAO,EACP,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGzE,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,UAAU,GAChB,MAAM,gCAAgC,CAAC;AAGxC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Vue 3 component library for elmethis.",
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"access": "public"
|
|
6
7
|
},
|
|
8
|
+
"private": false,
|
|
7
9
|
"type": "module",
|
|
8
10
|
"author": "Ikuma Yamashita",
|
|
9
11
|
"repository": {
|
|
@@ -11,60 +13,98 @@
|
|
|
11
13
|
"url": "git@github.com:46ki75/elmethis.git"
|
|
12
14
|
},
|
|
13
15
|
"homepage": "https://46ki75.github.io/elmethis",
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
18
|
-
"module": "./dist/index.mjs",
|
|
16
|
+
"main": "./lib/index.vue.mjs",
|
|
17
|
+
"module": "./lib/index.vue.mjs",
|
|
18
|
+
"types": "./lib-types/index.d.ts",
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"types": "./
|
|
22
|
-
"
|
|
21
|
+
"types": "./lib-types/index.d.ts",
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./lib-types/index.d.ts",
|
|
24
|
+
"default": "./lib/index.vue.mjs"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./lib-types/index.d.ts",
|
|
28
|
+
"default": "./lib/index.vue.cjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"./style.css": {
|
|
32
|
+
"default": "./lib/style.css"
|
|
23
33
|
}
|
|
24
34
|
},
|
|
35
|
+
"files": [
|
|
36
|
+
"lib",
|
|
37
|
+
"lib-types"
|
|
38
|
+
],
|
|
39
|
+
"sideEffects": [
|
|
40
|
+
"**/*.css"
|
|
41
|
+
],
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"vue": "^3.4.0"
|
|
47
|
+
},
|
|
25
48
|
"dependencies": {
|
|
49
|
+
"@46ki75/ikuma-theme": "^0.0.10",
|
|
50
|
+
"@a2ui/web_core": "^0.10.0",
|
|
51
|
+
"@formkit/auto-animate": "^0.9.0",
|
|
26
52
|
"@mdi/js": "^7.4.47",
|
|
27
|
-
"@vueuse/core": "^14.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
53
|
+
"@vueuse/core": "^14.3.0",
|
|
54
|
+
"clsx": "^2.1.1",
|
|
55
|
+
"dompurify": "^3.4.2",
|
|
56
|
+
"es-toolkit": "^1.47.1",
|
|
57
|
+
"katex": "^0.17.0",
|
|
58
|
+
"marked": "^18.0.5",
|
|
59
|
+
"shiki": "^4.2.0",
|
|
60
|
+
"zod": "^3",
|
|
61
|
+
"@elmethis/core": "^0.10.0"
|
|
36
62
|
},
|
|
37
63
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@storybook/
|
|
41
|
-
"@storybook/vue3-vite": "10.2.13",
|
|
42
|
-
"@types/json-schema": "^7.0.15",
|
|
64
|
+
"@eslint/js": "latest",
|
|
65
|
+
"@storybook/addon-docs": "^10.4.4",
|
|
66
|
+
"@storybook/vue3-vite": "^10.4.4",
|
|
43
67
|
"@types/katex": "^0.16.8",
|
|
44
|
-
"@types/
|
|
45
|
-
"@
|
|
46
|
-
"@vitejs/plugin-vue": "^
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
68
|
+
"@types/node": "^25.7.0",
|
|
69
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
70
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
71
|
+
"@vitest/browser-playwright": "^4.1.8",
|
|
72
|
+
"@vitest/ui": "^4.1.8",
|
|
73
|
+
"@vue/test-utils": "^2.4.11",
|
|
74
|
+
"concurrently": "^10.0.3",
|
|
75
|
+
"eslint": "^10.4.1",
|
|
76
|
+
"globals": "^17.6.0",
|
|
77
|
+
"happy-dom": "^20.10.2",
|
|
78
|
+
"playwright": "^1.60.0",
|
|
79
|
+
"prettier": "3.8.4",
|
|
80
|
+
"storybook": "^10.4.4",
|
|
81
|
+
"stylelint": "^17.13.0",
|
|
82
|
+
"stylelint-config-css-modules": "^4.6.0",
|
|
83
|
+
"stylelint-config-standard": "^40.0.0",
|
|
84
|
+
"stylelint-value-no-unknown-custom-properties": "^6.1.1",
|
|
85
|
+
"typescript": "~6.0.3",
|
|
86
|
+
"typescript-eslint": "^8.61.0",
|
|
87
|
+
"vite": "^8.0.4",
|
|
88
|
+
"vitest": "^4.1.8",
|
|
89
|
+
"vitest-browser-vue": "^2.1.0",
|
|
90
|
+
"vue": "^3.5.38",
|
|
91
|
+
"vue-tsc": "^3.3.4"
|
|
63
92
|
},
|
|
64
93
|
"scripts": {
|
|
65
|
-
"build": "
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"build-storybook": "storybook build"
|
|
94
|
+
"build": "pnpm run build.lib && pnpm run build.types",
|
|
95
|
+
"build.lib": "vite build",
|
|
96
|
+
"build.types": "vue-tsc --project tsconfig.lib.json",
|
|
97
|
+
"build-storybook": "storybook build",
|
|
98
|
+
"dev": "storybook dev -p 19231 --no-open",
|
|
99
|
+
"fmt": "prettier --write ./src",
|
|
100
|
+
"fmt.check": "prettier --check ./src",
|
|
101
|
+
"lint": "eslint \"src/**/*.ts*\"",
|
|
102
|
+
"lint.css": "stylelint \"src/**/*.css\"",
|
|
103
|
+
"test": "pnpm run test.unit && pnpm run test.browser",
|
|
104
|
+
"test.unit": "vitest --run",
|
|
105
|
+
"test.browser": "vitest --run --config vitest.browser.config.ts",
|
|
106
|
+
"test.build": "pnpm run build && pnpm run build-storybook",
|
|
107
|
+
"check": "concurrently -g \"pnpm:fmt.check\" \"pnpm:lint\" \"pnpm:lint.css\" \"pnpm:build.types\" \"pnpm:test.unit\" \"pnpm:test.browser\"",
|
|
108
|
+
"check.ci": "concurrently -g \"pnpm:check\" \"pnpm:test.build\""
|
|
69
109
|
}
|
|
70
110
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
-
import { default as ElmAgUiMessageUser } from './ElmAgUiMessageUser.vue';
|
|
3
|
-
declare const meta: Meta<typeof ElmAgUiMessageUser>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Primary: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Message } from '@ag-ui/core';
|
|
2
|
-
export interface ElmAgUiMessageSystemProps {
|
|
3
|
-
message: Extract<Message, {
|
|
4
|
-
role: "user";
|
|
5
|
-
}>;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<ElmAgUiMessageSystemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmAgUiMessageSystemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
-
import { default as ElmCodeBlock } from './ElmCodeBlock.vue';
|
|
3
|
-
declare const meta: Meta<typeof ElmCodeBlock>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const Rust: Story;
|
|
8
|
-
export declare const Caption: Story;
|
|
9
|
-
export declare const CaptionSlot: Story;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface ElmCodeBlockProps {
|
|
4
|
-
/**
|
|
5
|
-
* The code to display.
|
|
6
|
-
*/
|
|
7
|
-
code: string;
|
|
8
|
-
/**
|
|
9
|
-
* The language of the code.
|
|
10
|
-
*/
|
|
11
|
-
language?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The caption of the code block.
|
|
14
|
-
* If not provided, the language will be used.
|
|
15
|
-
*/
|
|
16
|
-
caption?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The margin of the code block.
|
|
19
|
-
*/
|
|
20
|
-
margin?: Property.MarginBlock;
|
|
21
|
-
}
|
|
22
|
-
declare function __VLS_template(): {
|
|
23
|
-
attrs: Partial<{}>;
|
|
24
|
-
slots: Readonly<{
|
|
25
|
-
default?: () => VNode[];
|
|
26
|
-
}> & {
|
|
27
|
-
default?: () => VNode[];
|
|
28
|
-
};
|
|
29
|
-
refs: {
|
|
30
|
-
target: HTMLDivElement;
|
|
31
|
-
};
|
|
32
|
-
rootEl: HTMLDivElement;
|
|
33
|
-
};
|
|
34
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmCodeBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCodeBlockProps> & Readonly<{}>, {
|
|
36
|
-
language: string;
|
|
37
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
|
-
target: HTMLDivElement;
|
|
39
|
-
}, HTMLDivElement>;
|
|
40
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
-
new (): {
|
|
44
|
-
$slots: S;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
"use strict";
|
|
3
|
-
try {
|
|
4
|
-
if (typeof document != "undefined") {
|
|
5
|
-
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-514e4afd],.v-leave-from[data-v-514e4afd]{opacity:1}.v-enter-active[data-v-514e4afd],.v-leave-active[data-v-514e4afd]{transition:opacity .15s}.v-enter-from[data-v-514e4afd],.v-leave-to[data-v-514e4afd]{opacity:0}"));
|
|
7
|
-
document.head.appendChild(elementStyle);
|
|
8
|
-
}
|
|
9
|
-
} catch (e) {
|
|
10
|
-
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
-
}
|
|
12
|
-
})();
|
|
13
|
-
import _sfc_main from "./ElmCodeBlock.vue2.mjs";
|
|
14
|
-
import style0 from "./ElmCodeBlock.vue3.mjs";
|
|
15
|
-
|
|
16
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
-
const cssModules = {
|
|
18
|
-
"$style": style0
|
|
19
|
-
};
|
|
20
|
-
const ElmCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-514e4afd"]]);
|
|
21
|
-
export {
|
|
22
|
-
ElmCodeBlock as default
|
|
23
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, useSlots, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, createBlock, resolveDynamicComponent, unref, h } from "vue";
|
|
2
|
-
import ElmLanguageIcon from "../icon/ElmLanguageIcon.vue.mjs";
|
|
3
|
-
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
|
-
import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
|
|
5
|
-
import { useClipboard, useIntersectionObserver } from "@vueuse/core";
|
|
6
|
-
import { mdiClipboardCheckMultipleOutline, mdiClipboardMultipleOutline } from "@mdi/js";
|
|
7
|
-
import ElmMdiIcon from "../icon/ElmMdiIcon.vue.mjs";
|
|
8
|
-
import ElmShikiHighlighter from "./ElmShikiHighlighter.vue.mjs";
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "ElmCodeBlock",
|
|
11
|
-
props: {
|
|
12
|
-
code: {},
|
|
13
|
-
language: { default: "txt" },
|
|
14
|
-
caption: {},
|
|
15
|
-
margin: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const isRendered = ref(false);
|
|
20
|
-
const { copy, copied } = useClipboard({ source: props.code });
|
|
21
|
-
const target = ref(null);
|
|
22
|
-
const targetIsVisible = ref(false);
|
|
23
|
-
useIntersectionObserver(target, ([{ isIntersecting }], _) => {
|
|
24
|
-
targetIsVisible.value = isIntersecting;
|
|
25
|
-
});
|
|
26
|
-
const slots = useSlots();
|
|
27
|
-
const renderCaption = () => {
|
|
28
|
-
if (props.caption) {
|
|
29
|
-
return h(ElmInlineText, { text: props.caption });
|
|
30
|
-
} else if (slots.default != null) {
|
|
31
|
-
return slots.default();
|
|
32
|
-
} else {
|
|
33
|
-
return h(ElmInlineText, { text: props.language });
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", {
|
|
38
|
-
ref_key: "target",
|
|
39
|
-
ref: target,
|
|
40
|
-
class: normalizeClass(_ctx.$style.wrapper),
|
|
41
|
-
style: normalizeStyle({
|
|
42
|
-
"--margin-block": __props.margin,
|
|
43
|
-
"--opacity": targetIsVisible.value ? 1 : 0
|
|
44
|
-
})
|
|
45
|
-
}, [
|
|
46
|
-
createElementVNode("div", {
|
|
47
|
-
class: normalizeClass(_ctx.$style.header)
|
|
48
|
-
}, [
|
|
49
|
-
createElementVNode("div", {
|
|
50
|
-
class: normalizeClass(_ctx.$style.header__left)
|
|
51
|
-
}, [
|
|
52
|
-
createVNode(ElmLanguageIcon, {
|
|
53
|
-
language: __props.language,
|
|
54
|
-
size: 20
|
|
55
|
-
}, null, 8, ["language"]),
|
|
56
|
-
createElementVNode("span", {
|
|
57
|
-
class: normalizeClass(_ctx.$style.caption)
|
|
58
|
-
}, [
|
|
59
|
-
(openBlock(), createBlock(resolveDynamicComponent(() => renderCaption())))
|
|
60
|
-
], 2)
|
|
61
|
-
], 2),
|
|
62
|
-
createElementVNode("div", {
|
|
63
|
-
class: normalizeClass(_ctx.$style.header__right)
|
|
64
|
-
}, [
|
|
65
|
-
createVNode(ElmMdiIcon, {
|
|
66
|
-
size: "1.25em",
|
|
67
|
-
d: unref(copied) ? unref(mdiClipboardCheckMultipleOutline) : unref(mdiClipboardMultipleOutline),
|
|
68
|
-
class: normalizeClass(_ctx.$style["copy-icon"]),
|
|
69
|
-
onClick: _cache[0] || (_cache[0] = () => {
|
|
70
|
-
unref(copy)(__props.code);
|
|
71
|
-
}),
|
|
72
|
-
icon: unref(copied) ? "mdi:clipboard-check-multiple-outline" : "mdi:clipboard-multiple-outline",
|
|
73
|
-
color: unref(copied) ? "#b69545" : void 0
|
|
74
|
-
}, null, 8, ["d", "class", "icon", "color"])
|
|
75
|
-
], 2)
|
|
76
|
-
], 2),
|
|
77
|
-
createElementVNode("div", {
|
|
78
|
-
class: normalizeClass(_ctx.$style.code)
|
|
79
|
-
}, [
|
|
80
|
-
createElementVNode("div", {
|
|
81
|
-
class: normalizeClass(_ctx.$style["code-body"]),
|
|
82
|
-
style: normalizeStyle({ opacity: isRendered.value ? 1 : 0 })
|
|
83
|
-
}, [
|
|
84
|
-
createVNode(ElmShikiHighlighter, {
|
|
85
|
-
modelValue: isRendered.value,
|
|
86
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRendered.value = $event),
|
|
87
|
-
code: __props.code,
|
|
88
|
-
language: __props.language
|
|
89
|
-
}, null, 8, ["modelValue", "code", "language"])
|
|
90
|
-
], 6),
|
|
91
|
-
createElementVNode("div", {
|
|
92
|
-
style: normalizeStyle({ opacity: !isRendered.value ? 1 : 0 }),
|
|
93
|
-
class: normalizeClass(_ctx.$style.fallback)
|
|
94
|
-
}, [
|
|
95
|
-
createVNode(ElmDotLoadingIcon, { size: "48px" })
|
|
96
|
-
], 6)
|
|
97
|
-
], 2)
|
|
98
|
-
], 6);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
export {
|
|
103
|
-
_sfc_main as default
|
|
104
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
"use strict";
|
|
3
|
-
try {
|
|
4
|
-
if (typeof document != "undefined") {
|
|
5
|
-
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode("._wrapper_9uvgf_1{margin-block:var(--margin-block);opacity:var(--opacity);display:flex;flex-direction:column;border-radius:.25rem;transition:background-color .4s,opacity .8s;background-color:#fff6;box-shadow:0 0 .125rem #3e434b4d}[data-theme=dark] ._wrapper_9uvgf_1{background-color:#2c3037e6;box-shadow:0 0 .125rem #0006}._header_9uvgf_16{box-sizing:border-box;width:calc(100% - 1rem);padding:.25rem .5rem .5rem;margin:.5rem;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;font-family:Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;border-bottom:solid 1px rgba(62,67,75,.3)}[data-theme=dark] ._header_9uvgf_16{border-color:#bec2ca4d}._header__left_9uvgf_32{width:calc(100% - 2rem);display:flex;flex-direction:row;align-items:center;gap:.5rem}._caption_9uvgf_40{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._copy-icon_9uvgf_46{box-sizing:border-box;padding:.125rem;width:26px;height:26px;border-radius:.125rem;cursor:pointer;transition:background-color .2s;color:#000000b3}[data-theme=dark] ._copy-icon_9uvgf_46{color:#ffffffb3}._copy-icon_9uvgf_46:hover{background-color:#0000001a}[data-theme=dark] ._copy-icon_9uvgf_46:hover{background-color:#ffffff1a}._header__right_9uvgf_66{position:relative;display:flex;flex-direction:row;align-items:center;gap:.5rem}._code_9uvgf_74{position:relative;padding:.25rem 1rem 1rem;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(105,135,184,.3) rgba(105,135,184,.15)}._code-body_9uvgf_82{transition:opacity .2s}._fallback_9uvgf_86{position:absolute;top:0;left:0;height:100%;width:100%;box-sizing:border-box;padding:auto;display:flex;justify-content:center;align-items:center;transition:opacity .2s;pointer-events:none}"));
|
|
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_9uvgf_1";
|
|
14
|
-
const header = "_header_9uvgf_16";
|
|
15
|
-
const header__left = "_header__left_9uvgf_32";
|
|
16
|
-
const caption = "_caption_9uvgf_40";
|
|
17
|
-
const header__right = "_header__right_9uvgf_66";
|
|
18
|
-
const code = "_code_9uvgf_74";
|
|
19
|
-
const fallback = "_fallback_9uvgf_86";
|
|
20
|
-
const style0 = {
|
|
21
|
-
wrapper,
|
|
22
|
-
header,
|
|
23
|
-
header__left,
|
|
24
|
-
caption,
|
|
25
|
-
"copy-icon": "_copy-icon_9uvgf_46",
|
|
26
|
-
header__right,
|
|
27
|
-
code,
|
|
28
|
-
"code-body": "_code-body_9uvgf_82",
|
|
29
|
-
fallback
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
caption,
|
|
33
|
-
code,
|
|
34
|
-
style0 as default,
|
|
35
|
-
fallback,
|
|
36
|
-
header,
|
|
37
|
-
header__left,
|
|
38
|
-
header__right,
|
|
39
|
-
wrapper
|
|
40
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
-
import { default as ElmKatex } from './ElmKatex.vue';
|
|
3
|
-
declare const meta: Meta<typeof ElmKatex>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Inline: Story;
|
|
7
|
-
export declare const Block: Story;
|
|
8
|
-
export declare const Complex: Story;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface ElmKatexProps {
|
|
2
|
-
/**
|
|
3
|
-
* The KaTex expression.
|
|
4
|
-
*/
|
|
5
|
-
expression: string;
|
|
6
|
-
/**
|
|
7
|
-
* Whether to render the equation in block mode.
|
|
8
|
-
* - If `true`, the equation will be rendered in block mode.
|
|
9
|
-
* - If `false`, the equation will be rendered in inline mode.
|
|
10
|
-
*
|
|
11
|
-
* Default is `false`.
|
|
12
|
-
*/
|
|
13
|
-
block?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: import('vue').DefineComponent<ElmKatexProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmKatexProps> & Readonly<{}>, {
|
|
16
|
-
block: boolean;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
-
targetRef: HTMLSpanElement;
|
|
19
|
-
}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./ElmKatex.vue2.mjs";
|
|
2
|
-
import style0 from "./ElmKatex.vue3.mjs";
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const cssModules = {
|
|
5
|
-
"$style": style0
|
|
6
|
-
};
|
|
7
|
-
const ElmKatex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
-
export {
|
|
9
|
-
ElmKatex as default
|
|
10
|
-
};
|