@elmethis/core 1.0.0-alpha.183 → 1.0.0-alpha.184

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.
@@ -5,5 +5,5 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Primary: Story;
7
7
  export declare const Svg: Story;
8
- export declare const Modal: Story;
8
+ export declare const LongAlt: Story;
9
9
  export declare const Invalid: Story;
@@ -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-090cf1b2],.v-leave-from[data-v-090cf1b2]{opacity:1}.v-enter-active[data-v-090cf1b2],.v-leave-active[data-v-090cf1b2]{transition:opacity .3s}.v-enter-from[data-v-090cf1b2],.v-leave-to[data-v-090cf1b2]{opacity:0}"));
6
+ elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-67c5b662],.v-leave-from[data-v-67c5b662]{opacity:1}.v-enter-active[data-v-67c5b662],.v-leave-active[data-v-67c5b662]{transition:opacity .3s}.v-enter-from[data-v-67c5b662],.v-leave-to[data-v-67c5b662]{opacity:0}"));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
@@ -16,7 +16,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  const cssModules = {
17
17
  "$style": style0
18
18
  };
19
- const ElmBlockImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-090cf1b2"]]);
19
+ const ElmBlockImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-67c5b662"]]);
20
20
  export {
21
21
  ElmBlockImage as default
22
22
  };
@@ -3,6 +3,7 @@ import ElmRectangleWave from "../fallback/ElmRectangleWave.vue.mjs";
3
3
  import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
4
4
  import { useImage, onKeyStroke } from "@vueuse/core";
5
5
  import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
6
+ import { Icon } from "@iconify/vue";
6
7
  const _hoisted_1 = ["src", "alt"];
7
8
  const _hoisted_2 = ["src", "alt"];
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -61,6 +62,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
62
  _: 1
62
63
  })
63
64
  ], 2),
65
+ createVNode(Transition, null, {
66
+ default: withCtx(() => [
67
+ !unref(isLoading) && _ctx.alt != null ? (openBlock(), createElementBlock("div", {
68
+ key: 0,
69
+ class: normalizeClass(_ctx.$style["alt-container"])
70
+ }, [
71
+ createVNode(unref(Icon), { icon: "material-symbols:image-outline" }),
72
+ createElementVNode("div", {
73
+ class: normalizeClass(_ctx.$style["alt-text"])
74
+ }, [
75
+ createVNode(ElmInlineText, {
76
+ text: _ctx.alt,
77
+ size: "0.8rem"
78
+ }, null, 8, ["text"])
79
+ ], 2)
80
+ ], 2)) : createCommentVNode("", true)
81
+ ]),
82
+ _: 1
83
+ }),
64
84
  createVNode(Transition, null, {
65
85
  default: withCtx(() => [
66
86
  isModalOpen.value ? (openBlock(), createElementBlock("div", {
@@ -3,25 +3,27 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._container_1y2x6_1{width:100%;display:flex;justify-content:center;align-items:center}._image_1y2x6_8{overflow:hidden;border-radius:.25rem;box-shadow:0 0 .25rem #0000004d;display:block;max-width:100%;height:var(--height);opacity:var(--opacity);transition:opacity .4s;cursor:zoom-in}._error_1y2x6_20{display:flex;justify-content:center;align-items:center;gap:1rem;width:100%;height:100%;min-height:10rem;line-height:1.5rem;color:#c56565}._fallback_1y2x6_32{margin-block:1rem;margin:0;padding:0;position:relative;width:100%;z-index:1;display:flex;justify-content:center;align-items:center;aspect-ratio:1200/630}._modal_1y2x6_45{z-index:1000;position:fixed;width:100%;height:100vh;top:0;left:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;cursor:zoom-out}._modal_1y2x6_45 ._modal-image_1y2x6_58{width:100vw;height:100vh;-o-object-fit:contain;object-fit:contain}"));
6
+ elementStyle.appendChild(document.createTextNode("._container_24o6q_1{margin-block:1rem;width:100%;display:flex;justify-content:center;align-items:center}._image_24o6q_9{overflow:hidden;border-radius:.25rem;box-shadow:0 0 .125rem #0000004d;display:block;max-width:100%;height:var(--height);opacity:var(--opacity);transition:opacity .4s;cursor:zoom-in}._alt-container_24o6q_21{margin:1rem;display:flex;justify-content:center;align-items:center;gap:.5rem;color:#6987b8;opacity:.8}._alt-text_24o6q_31{width:-moz-fit-content;width:fit-content}._error_24o6q_35{display:flex;justify-content:center;align-items:center;gap:1rem;width:100%;height:100%;min-height:10rem;line-height:1.5rem;color:#c56565}._fallback_24o6q_47{margin-block:1rem;margin:0;padding:0;position:relative;width:100%;z-index:1;display:flex;justify-content:center;align-items:center;aspect-ratio:1200/630}._modal_24o6q_60{z-index:1000;position:fixed;width:100%;height:100vh;top:0;left:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;cursor:zoom-out}._modal_24o6q_60 ._modal-image_24o6q_73{width:100vw;height:100vh;-o-object-fit:contain;object-fit:contain}"));
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 container = "_container_1y2x6_1";
14
- const image = "_image_1y2x6_8";
15
- const error = "_error_1y2x6_20";
16
- const fallback = "_fallback_1y2x6_32";
17
- const modal = "_modal_1y2x6_45";
13
+ const container = "_container_24o6q_1";
14
+ const image = "_image_24o6q_9";
15
+ const error = "_error_24o6q_35";
16
+ const fallback = "_fallback_24o6q_47";
17
+ const modal = "_modal_24o6q_60";
18
18
  const style0 = {
19
19
  container,
20
20
  image,
21
+ "alt-container": "_alt-container_24o6q_21",
22
+ "alt-text": "_alt-text_24o6q_31",
21
23
  error,
22
24
  fallback,
23
25
  modal,
24
- "modal-image": "_modal-image_1y2x6_58"
26
+ "modal-image": "_modal-image_24o6q_73"
25
27
  };
26
28
  export {
27
29
  container,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/core",
3
- "version": "1.0.0-alpha.183",
3
+ "version": "1.0.0-alpha.184",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },