@elmethis/core 0.6.3 → 0.7.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.
Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/code/ElmCodeBlock.vue2.mjs +5 -5
  3. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  4. package/dist/components/code/ElmMermaid.vue.d.ts +7 -0
  5. package/dist/components/code/ElmMermaid.vue.mjs +10 -0
  6. package/dist/components/code/ElmMermaid.vue2.mjs +59 -0
  7. package/dist/components/code/ElmMermaid.vue3.mjs +26 -0
  8. package/dist/components/containments/ElmConfirmModal.vue2.mjs +2 -2
  9. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +1 -1
  10. package/dist/components/containments/ElmModal.vue2.mjs +2 -2
  11. package/dist/components/containments/ElmParallax.vue2.mjs +2 -2
  12. package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +3 -3
  13. package/dist/components/containments/ElmSnackbar.vue2.mjs +2 -2
  14. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +1 -1
  15. package/dist/components/containments/ElmToggle.vue2.mjs +3 -3
  16. package/dist/components/data/ElmMultiProgress.vue2.mjs +2 -2
  17. package/dist/components/data/ElmProgress.vue2.mjs +8 -8
  18. package/dist/components/data/ElmStatusMessage.vue2.mjs +7 -7
  19. package/dist/components/fallback/ElmSpinner.vue2.mjs +6 -6
  20. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +2 -2
  21. package/dist/components/form/ElmButton.vue2.mjs +10 -10
  22. package/dist/components/form/ElmCheckbox.vue2.mjs +1 -1
  23. package/dist/components/form/ElmSelect.vue2.mjs +3 -3
  24. package/dist/components/form/ElmSwitch.vue2.mjs +5 -5
  25. package/dist/components/form/ElmTextField.vue2.mjs +15 -15
  26. package/dist/components/form/ElmValidation.vue2.mjs +5 -5
  27. package/dist/components/icon/ElmArrowIcon.vue2.mjs +5 -5
  28. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +5 -5
  29. package/dist/components/icon/ElmCubeIcon.vue2.mjs +2 -2
  30. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +2 -2
  31. package/dist/components/icon/ElmInlineIcon.vue2.mjs +1 -1
  32. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +2 -2
  33. package/dist/components/icon/ElmLoginIcon.vue2.mjs +4 -4
  34. package/dist/components/icon/ElmMdiIcon.vue2.mjs +5 -5
  35. package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +4 -4
  36. package/dist/components/icon/ElmToggleTheme.vue2.mjs +4 -4
  37. package/dist/components/icon/languages/Bash.vue2.mjs +2 -2
  38. package/dist/components/icon/languages/C.vue2.mjs +2 -2
  39. package/dist/components/icon/languages/Cplusplus.vue2.mjs +2 -2
  40. package/dist/components/icon/languages/Csharp.vue2.mjs +2 -2
  41. package/dist/components/icon/languages/Css.vue2.mjs +2 -2
  42. package/dist/components/icon/languages/Go.vue2.mjs +2 -2
  43. package/dist/components/icon/languages/Html.vue2.mjs +2 -2
  44. package/dist/components/icon/languages/Java.vue2.mjs +2 -2
  45. package/dist/components/icon/languages/Javascript.vue2.mjs +2 -2
  46. package/dist/components/icon/languages/Json.vue2.mjs +2 -2
  47. package/dist/components/icon/languages/Kotlin.vue2.mjs +2 -2
  48. package/dist/components/icon/languages/Lua.vue2.mjs +2 -2
  49. package/dist/components/icon/languages/Npm.vue2.mjs +2 -2
  50. package/dist/components/icon/languages/Python.vue2.mjs +2 -2
  51. package/dist/components/icon/languages/Rust.vue2.mjs +2 -2
  52. package/dist/components/icon/languages/Sql.vue2.mjs +2 -2
  53. package/dist/components/icon/languages/Terraform.vue2.mjs +2 -2
  54. package/dist/components/icon/languages/Typescript copy.vue2.mjs +2 -2
  55. package/dist/components/icon/languages/Typescript.vue2.mjs +2 -2
  56. package/dist/components/media/ElmFile.vue2.mjs +6 -6
  57. package/dist/components/media/ElmImage.vue2.mjs +11 -11
  58. package/dist/components/navigation/ElmBookmark.vue2.mjs +16 -16
  59. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +3 -3
  60. package/dist/components/navigation/ElmPagetop.vue2.mjs +2 -2
  61. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +1 -1
  62. package/dist/components/others/ElmColorSample.vue2.mjs +2 -2
  63. package/dist/components/others/ElmColorTable.vue2.mjs +1 -1
  64. package/dist/components/others/ElmJsonComponentRenderer.vue.d.ts +1 -1
  65. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +25 -10
  66. package/dist/components/others/ElmMarkdown.vue.d.ts +1 -1
  67. package/dist/components/others/ElmMarkdown.vue.mjs +12 -7
  68. package/dist/components/table/ElmTable.vue2.mjs +3 -3
  69. package/dist/components/table/ElmTableCell.vue2.mjs +4 -4
  70. package/dist/components/typography/ElmBlockQuote.vue2.mjs +4 -4
  71. package/dist/components/typography/ElmCallout.vue2.mjs +6 -6
  72. package/dist/components/typography/ElmDivider.vue2.mjs +1 -1
  73. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +1 -1
  74. package/dist/components/typography/ElmHeading.vue2.mjs +6 -6
  75. package/dist/components/typography/ElmInlineText.vue2.mjs +9 -9
  76. package/dist/components/typography/ElmList.vue.mjs +2 -2
  77. package/dist/components/typography/ElmTypingAnimation.vue2.mjs +1 -1
  78. package/dist/node_modules/.pnpm/{marked@16.3.0 → marked@16.4.0}/node_modules/marked/lib/marked.esm.mjs +193 -183
  79. package/package.json +12 -11
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Ikuma Yamashita
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  ref: target,
46
46
  class: normalizeClass(_ctx.$style.wrapper),
47
47
  style: normalizeStyle({
48
- "--margin-block": _ctx.margin,
48
+ "--margin-block": __props.margin,
49
49
  "--opacity": targetIsVisible.value ? 1 : 0
50
50
  })
51
51
  }, [
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  class: normalizeClass(_ctx.$style.header__left)
57
57
  }, [
58
58
  createVNode(ElmLanguageIcon, {
59
- language: _ctx.language,
59
+ language: __props.language,
60
60
  size: 20
61
61
  }, null, 8, ["language"]),
62
62
  createElementVNode("span", {
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  d: unref(copied) ? unref(mdiClipboardCheckMultipleOutline) : unref(mdiClipboardMultipleOutline),
75
75
  class: normalizeClass(_ctx.$style["copy-icon"]),
76
76
  onClick: _cache[0] || (_cache[0] = () => {
77
- unref(copy)(_ctx.code);
77
+ unref(copy)(__props.code);
78
78
  }),
79
79
  icon: unref(copied) ? "mdi:clipboard-check-multiple-outline" : "mdi:clipboard-multiple-outline"
80
80
  }, null, 8, ["d", "class", "icon"]),
@@ -118,8 +118,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  createVNode(unref(AsyncElmShikiHighlighter), {
119
119
  modelValue: isRendered.value,
120
120
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRendered.value = $event),
121
- code: _ctx.code,
122
- language: _ctx.language
121
+ code: __props.code,
122
+ language: __props.language
123
123
  }, null, 8, ["modelValue", "code", "language"])
124
124
  ], 6),
125
125
  createElementVNode("div", {
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import { default as ElmMermaid } from './ElmMermaid.vue';
3
+ declare const meta: Meta<typeof ElmMermaid>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Flowchart: Story;
7
+ export declare const SequenceDiagram: Story;
@@ -0,0 +1,7 @@
1
+ export interface ElmMermaidProps {
2
+ code: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<ElmMermaidProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmMermaidProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
5
+ svgRef: HTMLDivElement;
6
+ }, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./ElmMermaid.vue2.mjs";
2
+ import style0 from "./ElmMermaid.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const cssModules = {
5
+ "$style": style0
6
+ };
7
+ const ElmMermaid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
8
+ export {
9
+ ElmMermaid as default
10
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent, useCssModule, ref, useTemplateRef, watch, onMounted, createElementBlock, openBlock, normalizeClass } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "ElmMermaid",
4
+ props: {
5
+ code: {}
6
+ },
7
+ setup(__props) {
8
+ const props = __props;
9
+ const classes = useCssModule();
10
+ const isRendered = ref(false);
11
+ const elementRef = useTemplateRef("svgRef");
12
+ const renderMermaid = async () => {
13
+ if (!elementRef.value) return;
14
+ isRendered.value = false;
15
+ const { default: mermaid } = await import("mermaid");
16
+ try {
17
+ mermaid.initialize({
18
+ startOnLoad: false,
19
+ theme: "base",
20
+ themeVariables: {
21
+ mainBkg: "#fbfcff",
22
+ lineColor: "#606875",
23
+ primaryColor: "#6c7483",
24
+ secondaryColor: "#e9dec5",
25
+ tertiaryColor: "#f5f6f8",
26
+ tertiaryBorderColor: "#e2d4b2",
27
+ tertiaryTextColor: "#b69545",
28
+ // Sequence Diagram
29
+ signalColor: "#949ba7"
30
+ // default: textColor
31
+ }
32
+ });
33
+ const { svg } = await mermaid.render(classes.mermaid, props.code);
34
+ elementRef.value.innerHTML = svg;
35
+ isRendered.value = true;
36
+ } catch (error) {
37
+ console.error("Mermaid render error:", error);
38
+ elementRef.value.innerHTML = `<pre>${props.code}</pre>`;
39
+ }
40
+ };
41
+ watch(() => props.code, renderMermaid);
42
+ onMounted(renderMermaid);
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createElementBlock("div", {
45
+ ref: "svgRef",
46
+ class: normalizeClass([
47
+ _ctx.$style.mermaid,
48
+ {
49
+ [_ctx.$style.raw]: !isRendered.value,
50
+ [_ctx.$style.rendered]: isRendered.value
51
+ }
52
+ ])
53
+ }, null, 2);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ _sfc_main as default
59
+ };
@@ -0,0 +1,26 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("._mermaid_1r2yy_1{display:block}._mermaid_1r2yy_1::-moz-selection{color:#cccfd5;background-color:#494f59}._mermaid_1r2yy_1::selection{color:#cccfd5;background-color:#494f59}._raw_1r2yy_9{opacity:0}._rendered_1r2yy_13{opacity:1}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ const mermaid = "_mermaid_1r2yy_1";
14
+ const raw = "_raw_1r2yy_9";
15
+ const rendered = "_rendered_1r2yy_13";
16
+ const style0 = {
17
+ mermaid,
18
+ raw,
19
+ rendered
20
+ };
21
+ export {
22
+ style0 as default,
23
+ mermaid,
24
+ raw,
25
+ rendered
26
+ };
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  return openBlock(), createBlock(ElmModal, {
39
39
  modelValue: isOpen.value,
40
40
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpen.value = $event),
41
- "close-on-click-outside": _ctx.closeOnClickOutside
41
+ "close-on-click-outside": __props.closeOnClickOutside
42
42
  }, {
43
43
  default: withCtx(() => [
44
44
  createElementVNode("div", null, [
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  "disable-fragment-identifier": ""
48
48
  }, {
49
49
  default: withCtx(() => [
50
- createTextVNode(toDisplayString(_ctx.title), 1)
50
+ createTextVNode(toDisplayString(__props.title), 1)
51
51
  ]),
52
52
  _: 1
53
53
  }),
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  }, null, 2)
30
30
  ], 2),
31
31
  createElementVNode("div", {
32
- style: normalizeStyle({ minHeight: _ctx.minHeight })
32
+ style: normalizeStyle({ minHeight: __props.minHeight })
33
33
  }, [
34
34
  renderSlot(_ctx.$slots, "default")
35
35
  ], 4)
@@ -30,13 +30,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  key: 0,
31
31
  class: normalizeClass(_ctx.$style.provider),
32
32
  onClick: _cache[1] || (_cache[1] = () => {
33
- if (_ctx.closeOnClickOutside) isOpen.value = false;
33
+ if (__props.closeOnClickOutside) isOpen.value = false;
34
34
  })
35
35
  }, [
36
36
  createElementVNode("div", {
37
37
  class: normalizeClass(_ctx.$style.modal),
38
38
  style: normalizeStyle({
39
- "--width": _ctx.width
39
+ "--width": __props.width
40
40
  }),
41
41
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
42
42
  }, ["stop"]))
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  createElementVNode("div", {
14
14
  class: normalizeClass(_ctx.$style.parallax),
15
15
  style: normalizeStyle({
16
- backgroundImage: `url(${_ctx.imageUrl1})`,
16
+ backgroundImage: `url(${__props.imageUrl1})`,
17
17
  transform: `scale(1.2) translateY(${unref(y) / 400}%)`,
18
18
  transformOrigin: "bottom"
19
19
  })
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  createElementVNode("div", {
22
22
  class: normalizeClass(_ctx.$style.parallax),
23
23
  style: normalizeStyle({
24
- backgroundImage: `url(${_ctx.imageUrl2})`,
24
+ backgroundImage: `url(${__props.imageUrl2})`,
25
25
  transform: `scale(1.2) translateY(${unref(y) / 900}%)`,
26
26
  transformOrigin: "bottom"
27
27
  })
@@ -18,13 +18,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  createElementVNode("div", {
19
19
  class: normalizeClass([_ctx.$style.container, unref(headingStyle).heading])
20
20
  }, [
21
- _ctx.title ? (openBlock(), createElementBlock("div", {
21
+ __props.title ? (openBlock(), createElementBlock("div", {
22
22
  key: 0,
23
23
  class: normalizeClass(_ctx.$style.title)
24
- }, toDisplayString(_ctx.title), 3)) : createCommentVNode("", true),
24
+ }, toDisplayString(__props.title), 3)) : createCommentVNode("", true),
25
25
  createElementVNode("div", {
26
26
  class: normalizeClass([_ctx.$style.text, unref(textStyle).text])
27
- }, toDisplayString(_ctx.text), 3)
27
+ }, toDisplayString(__props.text), 3)
28
28
  ], 2)
29
29
  ]),
30
30
  _: 3
@@ -24,12 +24,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  d: unref(mdiCloseCircleOutline),
25
25
  size: "1em",
26
26
  class: normalizeClass(_ctx.$style.icon),
27
- onClick: _ctx.close
27
+ onClick: __props.close
28
28
  }, null, 8, ["d", "class", "onClick"]),
29
29
  createElementVNode("div", {
30
30
  class: normalizeClass(_ctx.$style.progress),
31
31
  style: normalizeStyle({
32
- animationDuration: `${_ctx.timeout}ms`
32
+ animationDuration: `${__props.timeout}ms`
33
33
  })
34
34
  }, null, 6)
35
35
  ], 2);
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  }, [
16
16
  createVNode(TransitionGroup, { name: "fade" }, {
17
17
  default: withCtx(() => [
18
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.snackbars, (snackbar) => {
18
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.snackbars, (snackbar) => {
19
19
  return openBlock(), createBlock(ElmSnackbar, mergeProps({ ref_for: true }, snackbar, {
20
20
  key: snackbar.id
21
21
  }), null, 16);
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  return (_ctx, _cache) => {
25
25
  return openBlock(), createElementBlock("div", {
26
26
  class: normalizeClass([_ctx.$style.toggle, { [_ctx.$style.open]: isOpen.value }]),
27
- style: normalizeStyle({ "--margin-block": _ctx.margin })
27
+ style: normalizeStyle({ "--margin-block": __props.margin })
28
28
  }, [
29
29
  createElementVNode("div", {
30
30
  class: normalizeClass(_ctx.$style.summary),
@@ -43,9 +43,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  color: "#59b57c"
44
44
  }, null, 8, ["class", "d", "style"]),
45
45
  createElementVNode("div", null, [
46
- _ctx.summary != null ? (openBlock(), createBlock(ElmInlineText, {
46
+ __props.summary != null ? (openBlock(), createBlock(ElmInlineText, {
47
47
  key: 0,
48
- text: _ctx.summary
48
+ text: __props.summary
49
49
  }, null, 8, ["text"])) : renderSlot(_ctx.$slots, "summary", { key: 1 })
50
50
  ])
51
51
  ], 2),
@@ -22,8 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  return openBlock(), createElementBlock("div", {
23
23
  class: normalizeClass(_ctx.$style.container),
24
24
  style: normalizeStyle({
25
- "--weight": _ctx.weight,
26
- "--border-radius": _ctx.round ? "calc(var(--weight) / 2)" : void 0
25
+ "--weight": __props.weight,
26
+ "--border-radius": __props.round ? "calc(var(--weight) / 2)" : void 0
27
27
  })
28
28
  }, [
29
29
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedProgress.value, (p) => {
@@ -16,31 +16,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  return openBlock(), createElementBlock(Fragment, null, [
17
17
  createElementVNode("progress", {
18
18
  class: normalizeClass(_ctx.$style.progress),
19
- value: _ctx.value,
20
- max: _ctx.max
19
+ value: __props.value,
20
+ max: __props.max
21
21
  }, null, 10, _hoisted_1),
22
22
  createElementVNode("div", {
23
23
  class: normalizeClass(_ctx.$style.container),
24
24
  style: normalizeStyle({
25
- "--weight": _ctx.weight,
26
- "--border-radius": _ctx.round ? "calc(var(--weight) / 2)" : void 0,
27
- "--color": _ctx.color
25
+ "--weight": __props.weight,
26
+ "--border-radius": __props.round ? "calc(var(--weight) / 2)" : void 0,
27
+ "--color": __props.color
28
28
  })
29
29
  }, [
30
30
  createElementVNode("div", {
31
31
  class: normalizeClass(_ctx.$style.value),
32
32
  style: normalizeStyle({
33
- "--scale-x": `scaleX(${_ctx.loading ? 0 : _ctx.value / _ctx.max})`
33
+ "--scale-x": `scaleX(${__props.loading ? 0 : __props.value / __props.max})`
34
34
  })
35
35
  }, null, 6),
36
- _ctx.loading ? (openBlock(), createElementBlock("div", {
36
+ __props.loading ? (openBlock(), createElementBlock("div", {
37
37
  key: 0,
38
38
  class: normalizeClass(_ctx.$style.loading)
39
39
  }, null, 2)) : createCommentVNode("", true),
40
40
  createElementVNode("div", {
41
41
  class: normalizeClass(_ctx.$style.buffer),
42
42
  style: normalizeStyle({
43
- "--scale-x": `scaleX(${_ctx.loading ? 0 : _ctx.buffer != null ? _ctx.buffer / _ctx.max : _ctx.value / _ctx.max})`
43
+ "--scale-x": `scaleX(${__props.loading ? 0 : __props.buffer != null ? __props.buffer / __props.max : __props.value / __props.max})`
44
44
  })
45
45
  }, null, 6)
46
46
  ], 6)
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  return (_ctx, _cache) => {
13
13
  return openBlock(), createBlock(Transition, { mode: "out-in" }, {
14
14
  default: withCtx(() => [
15
- _ctx.status === "pending" ? (openBlock(), createElementBlock("div", {
15
+ __props.status === "pending" ? (openBlock(), createElementBlock("div", {
16
16
  key: 0,
17
17
  class: normalizeClass(_ctx.$style.wrapper)
18
18
  }, [
@@ -22,10 +22,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  size: "1em"
23
23
  }, null, 8, ["d"]),
24
24
  createVNode(ElmInlineText, {
25
- text: _ctx.message,
25
+ text: __props.message,
26
26
  color: "#6987b8"
27
27
  }, null, 8, ["text"])
28
- ], 2)) : _ctx.status === "error" ? (openBlock(), createElementBlock("div", {
28
+ ], 2)) : __props.status === "error" ? (openBlock(), createElementBlock("div", {
29
29
  key: 1,
30
30
  class: normalizeClass(_ctx.$style.wrapper)
31
31
  }, [
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  size: "1em"
36
36
  }, null, 8, ["d"]),
37
37
  createVNode(ElmInlineText, {
38
- text: _ctx.message,
38
+ text: __props.message,
39
39
  color: "#c56565"
40
40
  }, null, 8, ["text"])
41
- ], 2)) : _ctx.status === "warning" ? (openBlock(), createElementBlock("div", {
41
+ ], 2)) : __props.status === "warning" ? (openBlock(), createElementBlock("div", {
42
42
  key: 2,
43
43
  class: normalizeClass(_ctx.$style.wrapper)
44
44
  }, [
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  size: "1em"
49
49
  }, null, 8, ["d"]),
50
50
  createVNode(ElmInlineText, {
51
- text: _ctx.message,
51
+ text: __props.message,
52
52
  color: "#cdb57b"
53
53
  }, null, 8, ["text"])
54
54
  ], 2)) : (openBlock(), createElementBlock("div", {
@@ -61,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
61
  size: "1em"
62
62
  }, null, 8, ["d"]),
63
63
  createVNode(ElmInlineText, {
64
- text: _ctx.message,
64
+ text: __props.message,
65
65
  color: "#59b57c"
66
66
  }, null, 8, ["text"])
67
67
  ], 2))
@@ -10,16 +10,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  setup(__props) {
11
11
  return (_ctx, _cache) => {
12
12
  return openBlock(), createElementBlock("svg", {
13
- height: _ctx.radius * 2,
14
- width: _ctx.radius * 2
13
+ height: __props.radius * 2,
14
+ width: __props.radius * 2
15
15
  }, [
16
16
  createElementVNode("circle", {
17
17
  class: normalizeClass(_ctx.$style.circle),
18
- cx: _ctx.radius,
19
- cy: _ctx.radius,
20
- r: _ctx.radius - _ctx.weight,
18
+ cx: __props.radius,
19
+ cy: __props.radius,
20
+ r: __props.radius - __props.weight,
21
21
  fill: "transparent",
22
- strokeWidth: _ctx.weight
22
+ strokeWidth: __props.weight
23
23
  }, null, 10, _hoisted_2)
24
24
  ], 8, _hoisted_1);
25
25
  };
@@ -28,12 +28,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  color: "#868e9c"
29
29
  })
30
30
  ], 2),
31
- _ctx.details ? (openBlock(), createElementBlock("div", {
31
+ __props.details ? (openBlock(), createElementBlock("div", {
32
32
  key: 0,
33
33
  class: normalizeClass(_ctx.$style.details)
34
34
  }, [
35
35
  createVNode(ElmInlineText, {
36
- text: _ctx.details,
36
+ text: __props.details,
37
37
  color: "#868e9c"
38
38
  }, null, 8, ["text"])
39
39
  ], 2)) : createCommentVNode("", true)
@@ -29,18 +29,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  class: normalizeClass([
30
30
  _ctx.$style.button,
31
31
  {
32
- [_ctx.$style.enable]: !_ctx.loading && !_ctx.disabled,
33
- [_ctx.$style.colored]: _ctx.color,
34
- [_ctx.$style.normal]: !_ctx.color && !_ctx.primary,
35
- [_ctx.$style.primary]: !_ctx.color && _ctx.primary
32
+ [_ctx.$style.enable]: !__props.loading && !__props.disabled,
33
+ [_ctx.$style.colored]: __props.color,
34
+ [_ctx.$style.normal]: !__props.color && !__props.primary,
35
+ [_ctx.$style.primary]: !__props.color && __props.primary
36
36
  }
37
37
  ]),
38
38
  style: normalizeStyle({
39
- display: _ctx.block ? "flex" : "inline-flex",
40
- width: _ctx.block ? "100%" : "auto",
41
- cursor: _ctx.disabled ? "not-allowed" : _ctx.loading ? "progress" : "pointer",
42
- "--opacity": _ctx.disabled ? 0.6 : void 0,
43
- "--color": _ctx.color
39
+ display: __props.block ? "flex" : "inline-flex",
40
+ width: __props.block ? "100%" : "auto",
41
+ cursor: __props.disabled ? "not-allowed" : __props.loading ? "progress" : "pointer",
42
+ "--opacity": __props.disabled ? 0.6 : void 0,
43
+ "--color": __props.color
44
44
  }),
45
45
  onClick: handleClick
46
46
  }, [
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  }, null, 2)) : createCommentVNode("", true),
51
51
  createVNode(Transition, { mode: "out-in" }, {
52
52
  default: withCtx(() => [
53
- _ctx.loading ? (openBlock(), createBlock(ElmDotLoadingIcon, {
53
+ __props.loading ? (openBlock(), createBlock(ElmDotLoadingIcon, {
54
54
  key: 0,
55
55
  size: "1.5rem"
56
56
  })) : (openBlock(), createElementBlock("span", {
@@ -166,7 +166,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
166
  fill: "transparent"
167
167
  }, null, -1))
168
168
  ], 2)),
169
- createVNode(ElmInlineText, { text: _ctx.label }, null, 8, ["text"])
169
+ createVNode(ElmInlineText, { text: __props.label }, null, 8, ["text"])
170
170
  ])
171
171
  ], 2);
172
172
  };
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  ref: target,
46
46
  class: normalizeClass([_ctx.$style.wrapper, { [_ctx.$style.active]: isActive.value }]),
47
47
  style: normalizeStyle({
48
- backgroundColor: _ctx.disabled || _ctx.loading ? "rgba(0,0,0,0.15)" : void 0,
48
+ backgroundColor: __props.disabled || __props.loading ? "rgba(0,0,0,0.15)" : void 0,
49
49
  "--highlight-color": isActive.value ? "#bfa056" : void 0
50
50
  }),
51
51
  onClick: handleToggle
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  }, [
56
56
  createElementVNode("span", {
57
57
  class: normalizeClass([_ctx.$style.label, unref(textStyle).text])
58
- }, toDisplayString(_ctx.label), 3)
58
+ }, toDisplayString(__props.label), 3)
59
59
  ], 2),
60
60
  createElementVNode("div", {
61
61
  class: normalizeClass(_ctx.$style.body)
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  class: normalizeClass(_ctx.$style.fallback)
90
90
  }, [
91
91
  createVNode(ElmMdiIcon, { d: unref(mdiArrowDownDropCircleOutline) }, null, 8, ["d"]),
92
- createElementVNode("span", null, toDisplayString(_ctx.placeholder ?? "Select an option"), 1)
92
+ createElementVNode("span", null, toDisplayString(__props.placeholder ?? "Select an option"), 1)
93
93
  ], 2))
94
94
  ]),
95
95
  _: 1
@@ -21,9 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  return openBlock(), createElementBlock("div", {
22
22
  onClick: handleClick,
23
23
  style: normalizeStyle({
24
- "--color": _ctx.color,
24
+ "--color": __props.color,
25
25
  "--padding": "2px",
26
- "--size": _ctx.size,
26
+ "--size": __props.size,
27
27
  "--width": "calc(var(--size) * 2 + var(--padding) * 2)"
28
28
  })
29
29
  }, [
@@ -31,14 +31,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  class: normalizeClass([_ctx.$style.switch]),
32
32
  type: "checkbox",
33
33
  checked: checked.value,
34
- disabled: _ctx.disabled
34
+ disabled: __props.disabled
35
35
  }, null, 10, _hoisted_1),
36
36
  createElementVNode("div", {
37
37
  class: normalizeClass([
38
38
  _ctx.$style.bar,
39
39
  {
40
40
  [_ctx.$style["bar--checked"]]: checked.value,
41
- [_ctx.$style["bar--disabled"]]: _ctx.disabled
41
+ [_ctx.$style["bar--disabled"]]: __props.disabled
42
42
  }
43
43
  ])
44
44
  }, [
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  _ctx.$style.circle,
48
48
  {
49
49
  [_ctx.$style["circle--checked"]]: checked.value,
50
- [_ctx.$style["circle--disabled"]]: _ctx.disabled
50
+ [_ctx.$style["circle--disabled"]]: __props.disabled
51
51
  }
52
52
  ])
53
53
  }, null, 2)