@elmethis/core 1.0.0-alpha.189 → 1.0.0-alpha.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/badge/ElmTag.vue2.mjs +1 -1
- package/dist/components/code/ElmCodeBlock.stories.d.ts +2 -0
- package/dist/components/code/ElmCodeBlock.vue.d.ts +22 -1
- package/dist/components/code/ElmCodeBlock.vue.mjs +2 -2
- package/dist/components/code/ElmCodeBlock.vue2.mjs +13 -5
- package/dist/components/containments/ElmModal.vue.d.ts +1 -1
- package/dist/components/containments/ElmModal.vue.mjs +2 -2
- package/dist/components/containments/ElmSnackbar.vue2.mjs +1 -1
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +2 -2
- package/dist/components/containments/ElmToggle.vue.d.ts +9 -5
- package/dist/components/containments/ElmToggle.vue.mjs +2 -2
- package/dist/components/containments/ElmToggle.vue2.mjs +35 -3
- package/dist/components/containments/ElmToggle.vue3.mjs +10 -6
- package/dist/components/containments/ElmTooltip.vue.mjs +2 -2
- package/dist/components/containments/useSnackbarState.d.ts +1 -1
- package/dist/components/data/ElmStatusMessage.vue.d.ts +1 -1
- package/dist/components/data/ElmStatusMessage.vue.mjs +2 -2
- package/dist/components/data/ElmStatusMessage.vue2.mjs +1 -1
- package/dist/components/{headings/ElmHeading4.stories.d.ts → fallback/ElmUnsupportedBlock.stories.d.ts} +2 -2
- 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.vue.mjs +2 -2
- package/dist/components/form/ElmCheckbox.vue2.mjs +1 -1
- package/dist/components/form/ElmTextField.vue2.mjs +1 -1
- package/dist/components/icon/ElmArrowIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +1 -1
- package/dist/components/{inline → icon}/ElmInlineIcon.vue.d.ts +6 -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.mjs +2 -2
- package/dist/components/icon/ElmLoginIcon.vue2.mjs +1 -1
- package/dist/components/media/ElmBlockImage.vue.mjs +2 -2
- package/dist/components/media/ElmBlockImage.vue2.mjs +14 -5
- package/dist/components/media/ElmBlockImage.vue3.mjs +10 -9
- package/dist/components/media/ElmFile.vue2.mjs +1 -1
- package/dist/components/media/ElmFile.vue3.mjs +6 -6
- package/dist/components/media/ElmImage.vue.mjs +2 -2
- package/dist/components/media/ElmImage.vue2.mjs +1 -1
- package/dist/components/navigation/ElmBookmark.vue.d.ts +1 -1
- package/dist/components/navigation/ElmBookmark.vue2.mjs +1 -1
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +1 -1
- package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +1 -1
- package/dist/components/others/ElmColorSample.vue.mjs +2 -2
- package/dist/components/others/ElmJsonComponentRenderer.stories.d.ts +23 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +6 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue.mjs +10 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +217 -0
- package/dist/components/others/ElmJsonComponentRenderer.vue3.mjs +21 -0
- package/dist/components/table/ElmTable.vue.d.ts +21 -2
- package/dist/components/table/ElmTable.vue.mjs +5 -14
- package/dist/components/table/ElmTable.vue2.mjs +40 -5
- package/dist/components/table/ElmTable.vue3.mjs +27 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +5 -2
- package/dist/components/table/ElmTableCell.vue.d.ts +5 -2
- package/dist/components/table/ElmTableCell.vue.mjs +2 -2
- package/dist/components/table/ElmTableHeader.vue.d.ts +5 -2
- package/dist/components/table/ElmTableHeader.vue3.mjs +1 -1
- package/dist/components/table/ElmTableRow.vue.d.ts +5 -2
- package/dist/components/table/ElmTableRow.vue.mjs +5 -2
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +1 -0
- package/dist/components/typography/ElmBlockQuote.vue2.mjs +41 -4
- package/dist/components/typography/ElmBlockQuote.vue3.mjs +10 -4
- package/dist/components/typography/ElmCallout.vue.d.ts +1 -1
- package/dist/components/typography/ElmCallout.vue2.mjs +1 -1
- package/dist/components/{headings/ElmHeading1.stories.d.ts → typography/ElmHeading.stories.d.ts} +3 -2
- 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 +2 -0
- package/dist/components/{inline → typography}/ElmInlineText.vue.d.ts +12 -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/hooks/useTyping.d.ts +1 -1
- package/dist/index.d.ts +12 -28
- package/dist/index.mjs +72 -89
- package/dist/node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs +14 -0
- package/package.json +8 -6
- package/dist/components/headings/ElmHeading1.vue.d.ts +0 -28
- package/dist/components/headings/ElmHeading1.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading1.vue2.mjs +0 -43
- package/dist/components/headings/ElmHeading1.vue3.mjs +0 -20
- package/dist/components/headings/ElmHeading2.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading2.vue.d.ts +0 -28
- package/dist/components/headings/ElmHeading2.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading2.vue2.mjs +0 -49
- package/dist/components/headings/ElmHeading2.vue3.mjs +0 -23
- package/dist/components/headings/ElmHeading3.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading3.vue.d.ts +0 -28
- package/dist/components/headings/ElmHeading3.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading3.vue2.mjs +0 -39
- package/dist/components/headings/ElmHeading3.vue3.mjs +0 -20
- package/dist/components/headings/ElmHeading4.vue.d.ts +0 -26
- package/dist/components/headings/ElmHeading4.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading4.vue2.mjs +0 -31
- package/dist/components/headings/ElmHeading4.vue3.mjs +0 -20
- package/dist/components/headings/ElmHeading5.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading5.vue.d.ts +0 -26
- package/dist/components/headings/ElmHeading5.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading5.vue2.mjs +0 -31
- package/dist/components/headings/ElmHeading5.vue3.mjs +0 -20
- package/dist/components/headings/ElmHeading6.stories.d.ts +0 -6
- package/dist/components/headings/ElmHeading6.vue.d.ts +0 -26
- package/dist/components/headings/ElmHeading6.vue.mjs +0 -10
- package/dist/components/headings/ElmHeading6.vue2.mjs +0 -31
- package/dist/components/headings/ElmHeading6.vue3.mjs +0 -20
- package/dist/components/inline/ElmInlineIcon.vue2.mjs +0 -21
- package/dist/components/inline/ElmInlineIcon.vue3.mjs +0 -20
- package/dist/components/inline/ElmInlineLink.stories.d.ts +0 -9
- package/dist/components/inline/ElmInlineLink.vue.d.ts +0 -38
- package/dist/components/inline/ElmInlineLink.vue.mjs +0 -10
- package/dist/components/inline/ElmInlineLink.vue2.mjs +0 -55
- package/dist/components/inline/ElmInlineLink.vue3.mjs +0 -23
- package/dist/components/inline/ElmInlineRuby.stories.d.ts +0 -6
- package/dist/components/inline/ElmInlineRuby.vue.d.ts +0 -19
- package/dist/components/inline/ElmInlineRuby.vue.mjs +0 -29
- package/dist/components/inline/ElmInlineRuby.vue2.mjs +0 -4
- package/dist/components/inline/ElmInlineText.vue2.mjs +0 -57
- package/dist/components/inline/ElmInlineText.vue3.mjs +0 -23
- package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +0 -20
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +0 -200
- package/dist/components/renderer/ElmJsonRenderer.vue.mjs +0 -150
- package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +0 -4
- package/dist/components/typography/ElmBulletedList.stories.d.ts +0 -7
- package/dist/components/typography/ElmBulletedList.vue.d.ts +0 -23
- package/dist/components/typography/ElmBulletedList.vue.mjs +0 -27
- package/dist/components/typography/ElmBulletedList.vue3.mjs +0 -17
- package/dist/components/typography/ElmListItem.stories.d.ts +0 -6
- package/dist/components/typography/ElmListItem.vue.d.ts +0 -19
- package/dist/components/typography/ElmListItem.vue.mjs +0 -10
- package/dist/components/typography/ElmListItem.vue2.mjs +0 -16
- package/dist/components/typography/ElmListItem.vue3.mjs +0 -20
- package/dist/components/typography/ElmNumberedList.stories.d.ts +0 -7
- package/dist/components/typography/ElmNumberedList.vue.d.ts +0 -23
- package/dist/components/typography/ElmNumberedList.vue.mjs +0 -27
- package/dist/components/typography/ElmNumberedList.vue3.mjs +0 -17
- /package/dist/components/{inline → icon}/ElmInlineIcon.stories.d.ts +0 -0
- /package/dist/components/{inline → icon}/ElmInlineIcon.vue.mjs +0 -0
- /package/dist/components/others/{ElmTemplate.stories.d.ts → ElmTyping.stories.d.ts} +0 -0
- /package/dist/components/{headings → typography}/ElmFragmentIdentifier.stories.d.ts +0 -0
- /package/dist/components/{headings → typography}/ElmFragmentIdentifier.vue.d.ts +0 -0
- /package/dist/components/{headings → typography}/ElmFragmentIdentifier.vue.mjs +0 -0
- /package/dist/components/{headings → typography}/ElmFragmentIdentifier.vue2.mjs +0 -0
- /package/dist/components/{headings → typography}/ElmFragmentIdentifier.vue3.mjs +0 -0
- /package/dist/components/{inline → typography}/ElmInlineText.vue.mjs +0 -0
- /package/dist/components/{inline → typography}/ElmTypingAnimation.stories.d.ts +0 -0
- /package/dist/components/{inline → typography}/ElmTypingAnimation.vue.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, createElementVNode, unref } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
|
-
import ElmInlineText from "../
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
4
|
import { getLuminance } from "polished";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "ElmTag",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
+
import { VNode } from 'vue';
|
|
2
3
|
export interface ElmCodeBlockProps {
|
|
3
4
|
/**
|
|
4
5
|
* The code to display.
|
|
@@ -18,10 +19,30 @@ export interface ElmCodeBlockProps {
|
|
|
18
19
|
*/
|
|
19
20
|
margin?: Property.MarginBlock;
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
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
|
+
tooltipRef: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
rootEl: HTMLDivElement;
|
|
34
|
+
};
|
|
35
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmCodeBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCodeBlockProps> & Readonly<{}>, {
|
|
22
37
|
language: string;
|
|
23
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
39
|
target: HTMLDivElement;
|
|
25
40
|
tooltipRef: HTMLDivElement;
|
|
26
41
|
}, HTMLDivElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
43
|
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-17343ed2],.v-leave-from[data-v-17343ed2]{opacity:1}.v-enter-active[data-v-17343ed2],.v-leave-active[data-v-17343ed2]{transition:opacity .15s}.v-enter-from[data-v-17343ed2],.v-leave-to[data-v-17343ed2]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-17343ed2"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmCodeBlock as default
|
|
23
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, ref, useTemplateRef, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, unref, Transition, withCtx, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, defineAsyncComponent, ref, useTemplateRef, useSlots, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, createBlock, resolveDynamicComponent, unref, Transition, withCtx, createCommentVNode, h } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
3
|
import ElmLanguageIcon from "../icon/ElmLanguageIcon.vue.mjs";
|
|
4
|
-
import ElmInlineText from "../
|
|
4
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
5
5
|
import ElmBlockFallback from "../fallback/ElmBlockFallback.vue.mjs";
|
|
6
6
|
import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
|
|
7
7
|
import { useClipboard, useIntersectionObserver, useElementHover } from "@vueuse/core";
|
|
@@ -28,6 +28,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
});
|
|
29
29
|
const tooltipElement = useTemplateRef("tooltipRef");
|
|
30
30
|
const isHovered = useElementHover(tooltipElement);
|
|
31
|
+
const slots = useSlots();
|
|
32
|
+
const renderCaption = () => {
|
|
33
|
+
if (props.caption) {
|
|
34
|
+
return h(ElmInlineText, { text: props.caption });
|
|
35
|
+
} else if (slots.default != null) {
|
|
36
|
+
return slots.default();
|
|
37
|
+
} else {
|
|
38
|
+
return h(ElmInlineText, { text: props.language });
|
|
39
|
+
}
|
|
40
|
+
};
|
|
31
41
|
return (_ctx, _cache) => {
|
|
32
42
|
return openBlock(), createElementBlock("div", {
|
|
33
43
|
ref_key: "target",
|
|
@@ -48,9 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
58
|
language: _ctx.language,
|
|
49
59
|
size: 20
|
|
50
60
|
}, null, 8, ["language"]),
|
|
51
|
-
|
|
52
|
-
text: _ctx.caption ?? _ctx.language
|
|
53
|
-
}, null, 8, ["text"])
|
|
61
|
+
(openBlock(), createBlock(resolveDynamicComponent(() => renderCaption())))
|
|
54
62
|
], 2),
|
|
55
63
|
createElementVNode("div", {
|
|
56
64
|
ref: "tooltipRef",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-83a74154],.v-leave-from[data-v-83a74154]{opacity:1}.v-enter-active[data-v-83a74154],.v-leave-active[data-v-83a74154]{transition:opacity .2s}.v-enter-from[data-v-83a74154],.v-leave-to[data-v-83a74154]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-83a74154"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmModal as default
|
|
23
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, createBlock, createVNode, createElementVNode, resolveDynamicComponent, unref, normalizeStyle } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
|
-
import ElmInlineText from "../
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "ElmSnackbar",
|
|
6
6
|
props: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".fade-enter-active[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".fade-enter-active[data-v-12f55baa],.fade-leave-active[data-v-12f55baa]{transition:all .3s ease}.fade-enter-from[data-v-12f55baa],.fade-leave-to[data-v-12f55baa]{opacity:0;transform:translate(30px)}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmSnackbarContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmSnackbarContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-12f55baa"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmSnackbarContainer as default
|
|
23
23
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
+
import { VNode } from 'vue';
|
|
2
3
|
export interface ElmToggleProps {
|
|
3
4
|
/**
|
|
4
5
|
* The summary of the toggle.
|
|
5
6
|
*/
|
|
6
|
-
summary
|
|
7
|
+
summary?: string;
|
|
7
8
|
/**
|
|
8
9
|
* The margin of the toggle.
|
|
9
10
|
*/
|
|
@@ -11,13 +12,16 @@ export interface ElmToggleProps {
|
|
|
11
12
|
}
|
|
12
13
|
type __VLS_Props = ElmToggleProps;
|
|
13
14
|
type __VLS_PublicProps = {
|
|
14
|
-
|
|
15
|
+
"isOpen"?: boolean;
|
|
15
16
|
} & __VLS_Props;
|
|
16
17
|
declare function __VLS_template(): {
|
|
17
18
|
attrs: Partial<{}>;
|
|
18
|
-
slots: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
slots: Readonly<{
|
|
20
|
+
default: () => VNode[];
|
|
21
|
+
summary?: () => VNode[];
|
|
22
|
+
}> & {
|
|
23
|
+
default: () => VNode[];
|
|
24
|
+
summary?: () => VNode[];
|
|
21
25
|
};
|
|
22
26
|
refs: {};
|
|
23
27
|
rootEl: HTMLDivElement;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-6b2a5911],.v-leave-from[data-v-6b2a5911]{opacity:1}.v-enter-active[data-v-6b2a5911],.v-leave-active[data-v-6b2a5911]{transition:opacity .2s;transform-origin:top}.v-enter-from[data-v-6b2a5911],.v-leave-to[data-v-6b2a5911]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmToggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-6b2a5911"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmToggle as default
|
|
23
23
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, unref, createBlock, renderSlot, Transition, withCtx, createCommentVNode } from "vue";
|
|
2
|
-
import ElmInlineText from "../
|
|
2
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
|
+
import { mdiChevronUp } from "../../node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs";
|
|
4
5
|
const _hoisted_1 = { style: { display: "flex", gap: "0.5rem" } };
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
width: "1.25rem",
|
|
9
|
+
height: "1.25rem"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = ["d"];
|
|
5
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
13
|
__name: "ElmToggle",
|
|
7
14
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -27,7 +34,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
34
|
}, [
|
|
28
35
|
createElementVNode("div", {
|
|
29
36
|
class: normalizeClass(_ctx.$style.summary),
|
|
30
|
-
onClick: handleClick
|
|
37
|
+
onClick: handleClick,
|
|
38
|
+
style: normalizeStyle({
|
|
39
|
+
borderRadius: isOpen.value ? "0.25rem 0.25rem 0rem 0rem" : "0.25rem"
|
|
40
|
+
})
|
|
31
41
|
}, [
|
|
32
42
|
createElementVNode("div", _hoisted_1, [
|
|
33
43
|
createVNode(unref(Icon), {
|
|
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
60
|
"--color": isOpen.value ? "#b36472" : void 0
|
|
51
61
|
})
|
|
52
62
|
}, null, 8, ["class", "style"])
|
|
53
|
-
],
|
|
63
|
+
], 6),
|
|
54
64
|
createVNode(Transition, null, {
|
|
55
65
|
default: withCtx(() => [
|
|
56
66
|
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -61,6 +71,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
71
|
], 2)) : createCommentVNode("", true)
|
|
62
72
|
]),
|
|
63
73
|
_: 3
|
|
74
|
+
}),
|
|
75
|
+
createVNode(Transition, null, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: normalizeClass(_ctx.$style.close),
|
|
80
|
+
onClick: handleClick
|
|
81
|
+
}, [
|
|
82
|
+
createElementVNode("div", {
|
|
83
|
+
class: normalizeClass(_ctx.$style["close-button"])
|
|
84
|
+
}, [
|
|
85
|
+
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
|
86
|
+
createElementVNode("path", { d: unref(mdiChevronUp) }, null, 8, _hoisted_3)
|
|
87
|
+
])),
|
|
88
|
+
createVNode(ElmInlineText, {
|
|
89
|
+
text: "CLOSE",
|
|
90
|
+
color: "#8e3636"
|
|
91
|
+
})
|
|
92
|
+
], 2)
|
|
93
|
+
], 2)) : createCommentVNode("", true)
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
64
96
|
})
|
|
65
97
|
], 6);
|
|
66
98
|
};
|
|
@@ -3,24 +3,28 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._toggle_7zlts_1{margin-block:var(--margin-block)}._summary_7zlts_5{box-sizing:border-box;padding:1rem;width:100%;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:.5rem;border:1px solid rgba(128,128,128,.25);background-color:#00000006}[data-theme=dark] ._summary_7zlts_5{background-color:#ffffff1a}._icon_7zlts_22{width:1.25rem;height:1.25rem;color:#59b57c;color:var(--color, #59b57c);transform:rotate(0);transform:rotate(var(--rotate, 0deg));transition:transform .2s}._content_7zlts_30{margin:0;padding:.75rem;display:block;background-color:#ffffff0d;border:1px solid rgba(128,128,128,.25);border-radius:0 0 .25rem .25rem}._close_7zlts_39{margin-block:.25rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:.25rem}._close-button_7zlts_48{padding:.25rem;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;fill:#c56565;opacity:.7;transition:background-color .1s;border-radius:.25rem}._close-button_7zlts_48:hover{background-color:#c5656526}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
const toggle = "
|
|
14
|
-
const summary = "
|
|
15
|
-
const icon = "
|
|
16
|
-
const content = "
|
|
13
|
+
const toggle = "_toggle_7zlts_1";
|
|
14
|
+
const summary = "_summary_7zlts_5";
|
|
15
|
+
const icon = "_icon_7zlts_22";
|
|
16
|
+
const content = "_content_7zlts_30";
|
|
17
|
+
const close = "_close_7zlts_39";
|
|
17
18
|
const style0 = {
|
|
18
19
|
toggle,
|
|
19
20
|
summary,
|
|
20
21
|
icon,
|
|
21
|
-
content
|
|
22
|
+
content,
|
|
23
|
+
close,
|
|
24
|
+
"close-button": "_close-button_7zlts_48"
|
|
22
25
|
};
|
|
23
26
|
export {
|
|
27
|
+
close,
|
|
24
28
|
content,
|
|
25
29
|
style0 as default,
|
|
26
30
|
icon,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-cd939485],.v-leave-from[data-v-cd939485]{transform:scale(1);opacity:1}.v-enter-active[data-v-cd939485],.v-leave-active[data-v-cd939485]{transition:opacity .1s,transform .2s}.v-enter-from[data-v-cd939485],.v-leave-to[data-v-cd939485]{transform:scale(.5);opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-cd939485"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmTooltip as default
|
|
23
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface ElmStatusMessageProps {
|
|
2
|
-
status:
|
|
2
|
+
status: "success" | "error" | "warning" | "pending";
|
|
3
3
|
message: string;
|
|
4
4
|
}
|
|
5
5
|
declare const _default: import('vue').DefineComponent<ElmStatusMessageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmStatusMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-227d59df],.v-leave-from[data-v-227d59df]{opacity:1}.v-enter-active[data-v-227d59df],.v-leave-active[data-v-227d59df]{transition:opacity .15s}.v-enter-from[data-v-227d59df],.v-leave-to[data-v-227d59df]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmStatusMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmStatusMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-227d59df"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmStatusMessage as default
|
|
23
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createBlock, openBlock, Transition, withCtx, createElementBlock, normalizeClass, createVNode, unref } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
|
-
import ElmInlineText from "../
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "ElmStatusMessage",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as UnsupportedBlock } from './ElmUnsupportedBlock.vue';
|
|
3
|
+
declare const meta: Meta<typeof UnsupportedBlock>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface ElmUnsupportedBlockProps {
|
|
2
|
+
details?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<ElmUnsupportedBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmUnsupportedBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmUnsupportedBlock.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmUnsupportedBlock.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmUnsupportedBlock = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmUnsupportedBlock as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, createVNode, unref } from "vue";
|
|
2
|
+
import { mdiInformation } from "../../node_modules/.pnpm/@mdi_js@7.4.47/node_modules/@mdi/js/mdi.mjs";
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
|
+
const _hoisted_1 = ["d"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ElmUnsupportedBlock",
|
|
7
|
+
props: {
|
|
8
|
+
details: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass(_ctx.$style.unsupported)
|
|
14
|
+
}, [
|
|
15
|
+
createElementVNode("div", {
|
|
16
|
+
class: normalizeClass(_ctx.$style.message)
|
|
17
|
+
}, [
|
|
18
|
+
(openBlock(), createElementBlock("svg", {
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
width: "1.25rem",
|
|
21
|
+
height: "1.25rem",
|
|
22
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
23
|
+
}, [
|
|
24
|
+
createElementVNode("path", { d: unref(mdiInformation) }, null, 8, _hoisted_1)
|
|
25
|
+
], 2)),
|
|
26
|
+
createVNode(ElmInlineText, {
|
|
27
|
+
text: "UNSUPPORTED BLOCK",
|
|
28
|
+
color: "#868e9c"
|
|
29
|
+
})
|
|
30
|
+
], 2),
|
|
31
|
+
_ctx.details ? (openBlock(), createElementBlock("div", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: normalizeClass(_ctx.$style.details)
|
|
34
|
+
}, [
|
|
35
|
+
createVNode(ElmInlineText, {
|
|
36
|
+
text: _ctx.details,
|
|
37
|
+
color: "#868e9c"
|
|
38
|
+
}, null, 8, ["text"])
|
|
39
|
+
], 2)) : createCommentVNode("", true)
|
|
40
|
+
], 2);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_sfc_main as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._unsupported_1imfj_1{box-sizing:border-box;padding:4rem;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;border:1px dashed rgba(134,142,156,.5)}._message_1imfj_12{display:flex;gap:.5rem;justify-content:center;align-items:center}._icon_1imfj_19{fill:#868e9c}._details_1imfj_23{opacity:.75}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const unsupported = "_unsupported_1imfj_1";
|
|
14
|
+
const message = "_message_1imfj_12";
|
|
15
|
+
const icon = "_icon_1imfj_19";
|
|
16
|
+
const details = "_details_1imfj_23";
|
|
17
|
+
const style0 = {
|
|
18
|
+
unsupported,
|
|
19
|
+
message,
|
|
20
|
+
icon,
|
|
21
|
+
details
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
style0 as default,
|
|
25
|
+
details,
|
|
26
|
+
icon,
|
|
27
|
+
message,
|
|
28
|
+
unsupported
|
|
29
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-324befdb],.v-leave-from[data-v-324befdb]{opacity:1}.v-enter-active[data-v-324befdb],.v-leave-active[data-v-324befdb]{transition:opacity .1s}.v-enter-from[data-v-324befdb],.v-leave-to[data-v-324befdb]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-324befdb"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmButton as default
|
|
23
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createCommentVNode, normalizeStyle } from "vue";
|
|
2
|
-
import ElmInlineText from "../
|
|
2
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
3
3
|
const _hoisted_1 = { style: {
|
|
4
4
|
display: "flex",
|
|
5
5
|
alignItems: "center",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, ref, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createBlock, createCommentVNode, unref, toDisplayString, withDirectives, resolveDynamicComponent, vModelDynamic, createVNode } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
|
-
import ElmInlineText from "../
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
4
|
import { nanoid } from "nanoid";
|
|
5
5
|
const _hoisted_1 = ["for"];
|
|
6
6
|
const _hoisted_2 = ["id", "type", "placeholder", "disabled", "aria-required"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, unref, createVNode } from "vue";
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
|
-
import ElmInlineText from "../
|
|
3
|
+
import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
|
|
4
4
|
const _hoisted_1 = ["href"];
|
|
5
5
|
const _hoisted_2 = ["src", "alt"];
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export interface ElmInlineIconProps {
|
|
2
|
+
/**
|
|
3
|
+
* The source URL of the icon.
|
|
4
|
+
*/
|
|
2
5
|
src: string;
|
|
6
|
+
/**
|
|
7
|
+
* The alt text for the icon.
|
|
8
|
+
*/
|
|
3
9
|
alt?: string;
|
|
4
10
|
}
|
|
5
11
|
declare const _default: import('vue').DefineComponent<ElmInlineIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, normalizeClass } from "vue";
|
|
2
|
+
const _hoisted_1 = ["src", "alt"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmInlineIcon",
|
|
5
|
+
props: {
|
|
6
|
+
src: {},
|
|
7
|
+
alt: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const icon = ref(props.src);
|
|
12
|
+
const handleError = () => {
|
|
13
|
+
icon.value = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" d="M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>`;
|
|
14
|
+
};
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("img", {
|
|
17
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
18
|
+
src: icon.value,
|
|
19
|
+
alt: _ctx.alt,
|
|
20
|
+
onError: handleError
|
|
21
|
+
}, null, 42, _hoisted_1);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
_sfc_main as default
|
|
27
|
+
};
|
|
@@ -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("._icon_19pv1_1{margin:0;padding:0;padding-inline:.125rem;display:inline-block;vertical-align:middle;height:1.25em}._icon_19pv1_1::-moz-selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}._icon_19pv1_1::selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}[data-theme=dark] ._icon_19pv1_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._icon_19pv1_1::-moz-selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}[data-theme=dark] ._icon_19pv1_1::selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const icon = "_icon_19pv1_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
icon
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
style0 as default,
|
|
19
|
+
icon
|
|
20
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-a7487e3e],.v-leave-from[data-v-a7487e3e]{opacity:1}.v-enter-active[data-v-a7487e3e],.v-leave-active[data-v-a7487e3e]{transition:opacity .1s}.v-enter-from[data-v-a7487e3e],.v-leave-to[data-v-a7487e3e]{opacity:0}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -17,7 +17,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
17
17
|
const cssModules = {
|
|
18
18
|
"$style": style0
|
|
19
19
|
};
|
|
20
|
-
const ElmLanguageIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-
|
|
20
|
+
const ElmLanguageIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-a7487e3e"]]);
|
|
21
21
|
export {
|
|
22
22
|
ElmLanguageIcon as default
|
|
23
23
|
};
|