@elmethis/core 0.6.3 → 0.6.4

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 (74) 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/containments/ElmConfirmModal.vue2.mjs +2 -2
  6. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +1 -1
  7. package/dist/components/containments/ElmModal.vue2.mjs +2 -2
  8. package/dist/components/containments/ElmParallax.vue2.mjs +2 -2
  9. package/dist/components/containments/ElmSimpleTooltip.vue2.mjs +3 -3
  10. package/dist/components/containments/ElmSnackbar.vue2.mjs +2 -2
  11. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +1 -1
  12. package/dist/components/containments/ElmToggle.vue2.mjs +3 -3
  13. package/dist/components/data/ElmMultiProgress.vue2.mjs +2 -2
  14. package/dist/components/data/ElmProgress.vue2.mjs +8 -8
  15. package/dist/components/data/ElmStatusMessage.vue2.mjs +7 -7
  16. package/dist/components/fallback/ElmSpinner.vue2.mjs +6 -6
  17. package/dist/components/fallback/ElmUnsupportedBlock.vue2.mjs +2 -2
  18. package/dist/components/form/ElmButton.vue2.mjs +10 -10
  19. package/dist/components/form/ElmCheckbox.vue2.mjs +1 -1
  20. package/dist/components/form/ElmSelect.vue2.mjs +3 -3
  21. package/dist/components/form/ElmSwitch.vue2.mjs +5 -5
  22. package/dist/components/form/ElmTextField.vue2.mjs +15 -15
  23. package/dist/components/form/ElmValidation.vue2.mjs +5 -5
  24. package/dist/components/icon/ElmArrowIcon.vue2.mjs +5 -5
  25. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +5 -5
  26. package/dist/components/icon/ElmCubeIcon.vue2.mjs +2 -2
  27. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +2 -2
  28. package/dist/components/icon/ElmInlineIcon.vue2.mjs +1 -1
  29. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +2 -2
  30. package/dist/components/icon/ElmLoginIcon.vue2.mjs +4 -4
  31. package/dist/components/icon/ElmMdiIcon.vue2.mjs +5 -5
  32. package/dist/components/icon/ElmSquareLoadingIcon.vue2.mjs +4 -4
  33. package/dist/components/icon/ElmToggleTheme.vue2.mjs +4 -4
  34. package/dist/components/icon/languages/Bash.vue2.mjs +2 -2
  35. package/dist/components/icon/languages/C.vue2.mjs +2 -2
  36. package/dist/components/icon/languages/Cplusplus.vue2.mjs +2 -2
  37. package/dist/components/icon/languages/Csharp.vue2.mjs +2 -2
  38. package/dist/components/icon/languages/Css.vue2.mjs +2 -2
  39. package/dist/components/icon/languages/Go.vue2.mjs +2 -2
  40. package/dist/components/icon/languages/Html.vue2.mjs +2 -2
  41. package/dist/components/icon/languages/Java.vue2.mjs +2 -2
  42. package/dist/components/icon/languages/Javascript.vue2.mjs +2 -2
  43. package/dist/components/icon/languages/Json.vue2.mjs +2 -2
  44. package/dist/components/icon/languages/Kotlin.vue2.mjs +2 -2
  45. package/dist/components/icon/languages/Lua.vue2.mjs +2 -2
  46. package/dist/components/icon/languages/Npm.vue2.mjs +2 -2
  47. package/dist/components/icon/languages/Python.vue2.mjs +2 -2
  48. package/dist/components/icon/languages/Rust.vue2.mjs +2 -2
  49. package/dist/components/icon/languages/Sql.vue2.mjs +2 -2
  50. package/dist/components/icon/languages/Terraform.vue2.mjs +2 -2
  51. package/dist/components/icon/languages/Typescript copy.vue2.mjs +2 -2
  52. package/dist/components/icon/languages/Typescript.vue2.mjs +2 -2
  53. package/dist/components/media/ElmFile.vue2.mjs +6 -6
  54. package/dist/components/media/ElmImage.vue2.mjs +11 -11
  55. package/dist/components/navigation/ElmBookmark.vue2.mjs +16 -16
  56. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +3 -3
  57. package/dist/components/navigation/ElmPagetop.vue2.mjs +2 -2
  58. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +1 -1
  59. package/dist/components/others/ElmColorSample.vue2.mjs +2 -2
  60. package/dist/components/others/ElmColorTable.vue2.mjs +1 -1
  61. package/dist/components/others/ElmJsonComponentRenderer.vue2.mjs +1 -1
  62. package/dist/components/others/ElmMarkdown.vue.mjs +10 -7
  63. package/dist/components/table/ElmTable.vue2.mjs +3 -3
  64. package/dist/components/table/ElmTableCell.vue2.mjs +4 -4
  65. package/dist/components/typography/ElmBlockQuote.vue2.mjs +4 -4
  66. package/dist/components/typography/ElmCallout.vue2.mjs +6 -6
  67. package/dist/components/typography/ElmDivider.vue2.mjs +1 -1
  68. package/dist/components/typography/ElmFragmentIdentifier.vue2.mjs +1 -1
  69. package/dist/components/typography/ElmHeading.vue2.mjs +6 -6
  70. package/dist/components/typography/ElmInlineText.vue2.mjs +9 -9
  71. package/dist/components/typography/ElmList.vue.mjs +2 -2
  72. package/dist/components/typography/ElmTypingAnimation.vue2.mjs +1 -1
  73. package/dist/node_modules/.pnpm/{marked@16.3.0 → marked@16.4.0}/node_modules/marked/lib/marked.esm.mjs +193 -183
  74. 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;
@@ -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)
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  return openBlock(), createElementBlock("div", {
59
59
  class: normalizeClass([_ctx.$style.wrapper, { [_ctx.$style.active]: isFocused.value }]),
60
60
  style: normalizeStyle({
61
- backgroundColor: _ctx.disabled || _ctx.loading ? "rgba(0,0,0,0.15)" : void 0,
61
+ backgroundColor: __props.disabled || __props.loading ? "rgba(0,0,0,0.15)" : void 0,
62
62
  "--highlight-color": isFocused.value ? "#bfa056" : void 0
63
63
  })
64
64
  }, [
@@ -69,25 +69,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  for: unref(id),
70
70
  class: normalizeClass(_ctx.$style.label)
71
71
  }, [
72
- createElementVNode("span", null, toDisplayString(_ctx.label), 1),
73
- _ctx.required ? (openBlock(), createElementBlock("span", {
72
+ createElementVNode("span", null, toDisplayString(__props.label), 1),
73
+ __props.required ? (openBlock(), createElementBlock("span", {
74
74
  key: 0,
75
75
  class: normalizeClass(_ctx.$style.requierd)
76
76
  }, "*", 2)) : createCommentVNode("", true)
77
77
  ], 10, _hoisted_1),
78
- _ctx.maxLength != null ? (openBlock(), createBlock(ElmInlineText, {
78
+ __props.maxLength != null ? (openBlock(), createBlock(ElmInlineText, {
79
79
  key: 0,
80
- text: `${input.value.length} / ${_ctx.maxLength}`,
81
- color: input.value.length > _ctx.maxLength ? "#c56565" : "gray",
80
+ text: `${input.value.length} / ${__props.maxLength}`,
81
+ color: input.value.length > __props.maxLength ? "#c56565" : "gray",
82
82
  size: "0.75rem"
83
83
  }, null, 8, ["text", "color"])) : createCommentVNode("", true)
84
84
  ], 2),
85
85
  createElementVNode("div", {
86
86
  class: normalizeClass(_ctx.$style.body)
87
87
  }, [
88
- _ctx.icon ? (openBlock(), createBlock(ElmMdiIcon, {
88
+ __props.icon ? (openBlock(), createBlock(ElmMdiIcon, {
89
89
  key: 0,
90
- d: iconMap[_ctx.icon],
90
+ d: iconMap[__props.icon],
91
91
  size: "1.5rem",
92
92
  color: "gray"
93
93
  }, null, 8, ["d"])) : createCommentVNode("", true),
@@ -96,14 +96,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => input.value = $event),
97
97
  type: type.value,
98
98
  class: normalizeClass(_ctx.$style.input),
99
- placeholder: _ctx.placeholder,
99
+ placeholder: __props.placeholder,
100
100
  onFocus: _cache[1] || (_cache[1] = ($event) => isFocused.value = true),
101
101
  onBlur: _cache[2] || (_cache[2] = ($event) => isFocused.value = false),
102
- disabled: _ctx.disabled || _ctx.loading,
102
+ disabled: __props.disabled || __props.loading,
103
103
  style: normalizeStyle({
104
- cursor: _ctx.disabled ? "not-allowed" : _ctx.loading ? "progress" : "auto"
104
+ cursor: __props.disabled ? "not-allowed" : __props.loading ? "progress" : "auto"
105
105
  }),
106
- "aria-required": _ctx.required,
106
+ "aria-required": __props.required,
107
107
  ref: "target"
108
108
  }, null, 46, _hoisted_2), [
109
109
  [vModelDynamic, input.value]
@@ -114,9 +114,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
114
  createElementVNode("span", {
115
115
  class: normalizeClass(_ctx.$style.suffix)
116
116
  }, [
117
- _ctx.suffix != null ? (openBlock(), createBlock(ElmInlineText, {
117
+ __props.suffix != null ? (openBlock(), createBlock(ElmInlineText, {
118
118
  key: 0,
119
- text: _ctx.suffix
119
+ text: __props.suffix
120
120
  }, null, 8, ["text"])) : createCommentVNode("", true)
121
121
  ], 2),
122
122
  createVNode(ElmMdiIcon, {
@@ -138,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
138
  createElementVNode("div", {
139
139
  class: normalizeClass(_ctx.$style.loading),
140
140
  style: normalizeStyle({
141
- opacity: _ctx.loading ? 0.2 : 0
141
+ opacity: __props.loading ? 0.2 : 0
142
142
  })
143
143
  }, null, 6)
144
144
  ], 6);
@@ -14,16 +14,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  return openBlock(), createElementBlock("div", {
15
15
  class: normalizeClass(_ctx.$style.validation),
16
16
  style: normalizeStyle({
17
- "--opacity": _ctx.isValid ? 1 : 0.5
17
+ "--opacity": __props.isValid ? 1 : 0.5
18
18
  })
19
19
  }, [
20
20
  createVNode(ElmMdiIcon, {
21
- d: _ctx.isValid ? unref(mdiCheckCircle) : unref(mdiCheckCircleOutline),
22
- color: _ctx.isValid ? _ctx.validColor : void 0
21
+ d: __props.isValid ? unref(mdiCheckCircle) : unref(mdiCheckCircleOutline),
22
+ color: __props.isValid ? __props.validColor : void 0
23
23
  }, null, 8, ["d", "color"]),
24
24
  createVNode(ElmInlineText, {
25
- text: _ctx.text,
26
- color: _ctx.isValid ? _ctx.validColor : void 0
25
+ text: __props.text,
26
+ color: __props.isValid ? __props.validColor : void 0
27
27
  }, null, 8, ["text", "color"])
28
28
  ], 6);
29
29
  };
@@ -13,14 +13,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  class: normalizeClass([
14
14
  _ctx.$style.arrow,
15
15
  {
16
- [_ctx.$style.normal]: !_ctx.loading && !_ctx.pending,
17
- [_ctx.$style.loading]: _ctx.loading,
18
- [_ctx.$style.pending]: !_ctx.loading && _ctx.pending
16
+ [_ctx.$style.normal]: !__props.loading && !__props.pending,
17
+ [_ctx.$style.loading]: __props.loading,
18
+ [_ctx.$style.pending]: !__props.loading && __props.pending
19
19
  }
20
20
  ]),
21
21
  style: normalizeStyle({
22
- "--size": _ctx.size,
23
- transform: _ctx.direction === "up" ? "rotate(270deg)" : _ctx.direction === "down" ? "rotate(90deg)" : _ctx.direction === "left" ? "rotate(180deg)" : "rotate(0deg)"
22
+ "--size": __props.size,
23
+ transform: __props.direction === "up" ? "rotate(270deg)" : __props.direction === "down" ? "rotate(90deg)" : __props.direction === "left" ? "rotate(180deg)" : "rotate(0deg)"
24
24
  })
25
25
  }, null, 6);
26
26
  };
@@ -15,15 +15,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  return (_ctx, _cache) => {
16
16
  return openBlock(), createElementBlock("a", {
17
17
  class: normalizeClass(_ctx.$style.wrapper),
18
- href: _ctx.href,
18
+ href: __props.href,
19
19
  target: "_blank",
20
20
  rel: "noopener noreferrer"
21
21
  }, [
22
- _ctx.favicon != null ? (openBlock(), createElementBlock("img", {
22
+ __props.favicon != null ? (openBlock(), createElementBlock("img", {
23
23
  key: 0,
24
24
  class: normalizeClass(_ctx.$style.favicon),
25
- src: _ctx.favicon,
26
- alt: `favicon of ${_ctx.name ?? _ctx.href}`
25
+ src: __props.favicon,
26
+ alt: `favicon of ${__props.name ?? __props.href}`
27
27
  }, null, 10, _hoisted_2)) : (openBlock(), createBlock(ElmMdiIcon, {
28
28
  key: 1,
29
29
  d: unref(mdiEarth),
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  class: normalizeClass(_ctx.$style.text)
35
35
  }, [
36
36
  createVNode(ElmInlineText, {
37
- text: _ctx.name ?? _ctx.href,
37
+ text: __props.name ?? __props.href,
38
38
  size: ".6rem"
39
39
  }, null, 8, ["text"])
40
40
  ], 2)
@@ -19,8 +19,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  return openBlock(), createElementBlock("div", {
20
20
  class: normalizeClass(_ctx.$style.cube),
21
21
  style: normalizeStyle({
22
- width: `${_ctx.size}px`,
23
- height: `${_ctx.size}px`
22
+ width: `${__props.size}px`,
23
+ height: `${__props.size}px`
24
24
  })
25
25
  }, [
26
26
  (openBlock(), createElementBlock(Fragment, null, renderList(faces, (face) => {