@elmethis/qwik 0.0.32 → 0.0.34

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.
@@ -739,7 +739,8 @@ const ElmInlineText = qwik.component$((props) => {
739
739
  rel: "noopener noreferrer",
740
740
  children: [
741
741
  props.favicon && /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
742
- src: props.favicon
742
+ src: props.favicon,
743
+ alt: `Favicon of ${props.text}`
743
744
  }),
744
745
  wrappedVnode
745
746
  ]
@@ -2200,30 +2201,24 @@ const ElmSquareLoadingIcon = qwik.component$(({ size = "3rem", dimensions = 4 })
2200
2201
  }, `${rowIndex}-${columnIndex}`)))
2201
2202
  });
2202
2203
  });
2203
- const image$1 = "_image_9cxd1_12";
2204
- const fallback = "_fallback_9cxd1_36";
2204
+ const image$1 = "_image_sf1wj_12";
2205
+ const fallback = "_fallback_sf1wj_34";
2205
2206
  const styles$h = {
2206
- "block-image": "_block-image_9cxd1_1",
2207
- "image-container": "_image-container_9cxd1_12",
2207
+ "block-image": "_block-image_sf1wj_1",
2208
+ "image-container": "_image-container_sf1wj_12",
2208
2209
  image: image$1,
2209
2210
  fallback,
2210
- "caption-box": "_caption-box_9cxd1_46",
2211
- "modal-container": "_modal-container_9cxd1_58"
2211
+ "caption-box": "_caption-box_sf1wj_44",
2212
+ "modal-container": "_modal-container_sf1wj_56"
2212
2213
  };
2213
2214
  const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
2214
2215
  const isLoading = qwik.useSignal(true);
2215
2216
  const isShowModal = qwik.useSignal(false);
2216
- const modalRef = qwik.useSignal();
2217
2217
  const handleImageLoad = qwik.$(() => {
2218
2218
  isLoading.value = false;
2219
2219
  });
2220
2220
  const handleToggleModal = qwik.$(() => {
2221
2221
  if (enableModal && !isLoading.value) {
2222
- if (isShowModal.value) {
2223
- modalRef.value?.hidePopover();
2224
- } else {
2225
- modalRef.value?.showPopover();
2226
- }
2227
2222
  isShowModal.value = !isShowModal.value;
2228
2223
  }
2229
2224
  });
@@ -2243,10 +2238,12 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
2243
2238
  }
2244
2239
  });
2245
2240
  const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
2246
- ref: modalRef,
2247
2241
  class: styles$h["modal-container"],
2242
+ style: {
2243
+ pointerEvents: isShowModal.value ? "auto" : "none",
2244
+ "--opacity": isShowModal.value ? 1 : 0
2245
+ },
2248
2246
  onClick$: handleToggleModal,
2249
- popover: "manual",
2250
2247
  children: ImageComponent
2251
2248
  });
2252
2249
  return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
@@ -737,7 +737,8 @@ const ElmInlineText = component$((props) => {
737
737
  rel: "noopener noreferrer",
738
738
  children: [
739
739
  props.favicon && /* @__PURE__ */ jsx(ElmInlineIcon, {
740
- src: props.favicon
740
+ src: props.favicon,
741
+ alt: `Favicon of ${props.text}`
741
742
  }),
742
743
  wrappedVnode
743
744
  ]
@@ -2198,30 +2199,24 @@ const ElmSquareLoadingIcon = component$(({ size = "3rem", dimensions = 4 }) => {
2198
2199
  }, `${rowIndex}-${columnIndex}`)))
2199
2200
  });
2200
2201
  });
2201
- const image$1 = "_image_9cxd1_12";
2202
- const fallback = "_fallback_9cxd1_36";
2202
+ const image$1 = "_image_sf1wj_12";
2203
+ const fallback = "_fallback_sf1wj_34";
2203
2204
  const styles$h = {
2204
- "block-image": "_block-image_9cxd1_1",
2205
- "image-container": "_image-container_9cxd1_12",
2205
+ "block-image": "_block-image_sf1wj_1",
2206
+ "image-container": "_image-container_sf1wj_12",
2206
2207
  image: image$1,
2207
2208
  fallback,
2208
- "caption-box": "_caption-box_9cxd1_46",
2209
- "modal-container": "_modal-container_9cxd1_58"
2209
+ "caption-box": "_caption-box_sf1wj_44",
2210
+ "modal-container": "_modal-container_sf1wj_56"
2210
2211
  };
2211
2212
  const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
2212
2213
  const isLoading = useSignal(true);
2213
2214
  const isShowModal = useSignal(false);
2214
- const modalRef = useSignal();
2215
2215
  const handleImageLoad = $(() => {
2216
2216
  isLoading.value = false;
2217
2217
  });
2218
2218
  const handleToggleModal = $(() => {
2219
2219
  if (enableModal && !isLoading.value) {
2220
- if (isShowModal.value) {
2221
- modalRef.value?.hidePopover();
2222
- } else {
2223
- modalRef.value?.showPopover();
2224
- }
2225
2220
  isShowModal.value = !isShowModal.value;
2226
2221
  }
2227
2222
  });
@@ -2241,10 +2236,12 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
2241
2236
  }
2242
2237
  });
2243
2238
  const Modal = /* @__PURE__ */ jsx("div", {
2244
- ref: modalRef,
2245
2239
  class: styles$h["modal-container"],
2240
+ style: {
2241
+ pointerEvents: isShowModal.value ? "auto" : "none",
2242
+ "--opacity": isShowModal.value ? 1 : 0
2243
+ },
2246
2244
  onClick$: handleToggleModal,
2247
- popover: "manual",
2248
2245
  children: ImageComponent
2249
2246
  });
2250
2247
  return /* @__PURE__ */ jsxs("figure", {
package/lib/style.css CHANGED
@@ -995,7 +995,7 @@
995
995
  }
996
996
  [data-theme=dark] ._square_13xd3_24 {
997
997
  background-color: #b0b5be;
998
- }._block-image_9cxd1_1 {
998
+ }._block-image_sf1wj_1 {
999
999
  margin-block: var(--margin-block, 0);
1000
1000
  margin-inline: 0;
1001
1001
  display: flex;
@@ -1006,31 +1006,29 @@
1006
1006
  width: 100%;
1007
1007
  }
1008
1008
 
1009
- ._image-container_9cxd1_12 {
1009
+ ._image-container_sf1wj_12 {
1010
1010
  width: 100%;
1011
1011
  height: 100%;
1012
1012
  position: relative;
1013
-
1014
1013
  display: flex;
1015
1014
  justify-content: center;
1016
1015
  align-items: center;
1017
1016
  }
1018
1017
 
1019
- ._image_9cxd1_12 {
1018
+ ._image_sf1wj_12 {
1020
1019
  max-width: 100%;
1021
1020
  max-height: min(100%, 100vh);
1022
1021
  height: auto;
1023
1022
  border-radius: 0.25rem;
1024
- box-shadow: 0 0 0.125rem oklch(from black l c h / 0.1);
1023
+ box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.1);
1025
1024
  transition: opacity 400ms;
1026
1025
  opacity: var(--opacity, 1);
1027
1026
  user-select: none;
1028
1027
  aspect-ratio: var(--aspect-ratio, auto);
1029
-
1030
1028
  cursor: var(--cursor);
1031
1029
  }
1032
1030
 
1033
- ._fallback_9cxd1_36 {
1031
+ ._fallback_sf1wj_34 {
1034
1032
  width: 100%;
1035
1033
  height: 100%;
1036
1034
  inset: 0 0 auto auto;
@@ -1040,7 +1038,7 @@
1040
1038
  pointer-events: none;
1041
1039
  }
1042
1040
 
1043
- ._caption-box_9cxd1_46 {
1041
+ ._caption-box_sf1wj_44 {
1044
1042
  box-sizing: border-box;
1045
1043
  padding: 0rem 1rem;
1046
1044
  display: flex;
@@ -1052,53 +1050,20 @@
1052
1050
  transition: opacity 400ms;
1053
1051
  }
1054
1052
 
1055
- ._modal-container_9cxd1_58 {
1056
- opacity: 0;
1057
- transform: scale(0.95);
1058
- background-color: transparent;
1059
- border: none;
1060
- padding: 0;
1061
- margin: auto;
1062
- pointer-events: none;
1063
- transition:
1064
- opacity 200ms,
1065
- transform 200ms,
1066
- display 200ms allow-discrete,
1067
- overlay 200ms allow-discrete;
1068
-
1069
- &::backdrop {
1070
- background-color: oklch(from #23262a l c h / 0.8);
1071
- opacity: 0;
1072
-
1073
- transition:
1074
- background-color 200ms,
1075
- opacity 200ms,
1076
- display 200ms allow-discrete,
1077
- overlay 200ms allow-discrete;
1078
- }
1079
-
1080
- &:popover-open {
1081
- opacity: 1;
1082
- transform: scale(1);
1083
- pointer-events: auto;
1084
-
1085
- &::backdrop {
1086
- opacity: 1;
1087
- }
1088
- }
1089
- }
1090
-
1091
- @starting-style {
1092
- ._modal-container_9cxd1_58:popover-open {
1093
- opacity: 0;
1094
- transform: scale(0.95);
1095
-
1096
- &::backdrop {
1097
- opacity: 0;
1098
- }
1099
- }
1100
- }
1101
- ._file_eqa3m_1 {
1053
+ ._modal-container_sf1wj_56 {
1054
+ width: 100vw;
1055
+ height: 100vh;
1056
+ display: flex;
1057
+ justify-content: center;
1058
+ align-items: center;
1059
+ position: fixed;
1060
+ inset: 0 0 auto auto;
1061
+ z-index: 100;
1062
+ background-color: rgba(35, 38, 42, 0.8);
1063
+ cursor: zoom-out;
1064
+ opacity: var(--opacity, 1);
1065
+ transition: opacity 200ms;
1066
+ }._file_eqa3m_1 {
1102
1067
  margin-block: var(--margin-block, 0);
1103
1068
  padding: 1rem;
1104
1069
  display: grid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/qwik",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,30 +38,30 @@
38
38
  "devDependencies": {
39
39
  "@builder.io/qwik": "1.19.0",
40
40
  "@eslint/js": "latest",
41
- "@storybook/addon-docs": "8.6.17",
42
- "@storybook/addon-essentials": "8.6.17",
41
+ "@storybook/addon-docs": "8",
42
+ "@storybook/addon-essentials": "8.6.18",
43
43
  "@types/lodash-es": "^4.17.12",
44
- "@types/node": "20.19.0",
45
- "eslint": "10.0.2",
46
- "eslint-plugin-qwik": "1.19.1",
44
+ "@types/node": "25.5.0",
45
+ "eslint": "10.0.3",
46
+ "eslint-plugin-qwik": "1.19.2",
47
47
  "globals": "17.4.0",
48
- "jarkup-ts": "^0.8.0",
48
+ "jarkup-ts": "^0.9.0",
49
49
  "np": "^11.0.2",
50
50
  "prettier": "3.6.2",
51
51
  "sass": "^1.97.3",
52
52
  "storybook": "8",
53
53
  "storybook-framework-qwik": "^0.4.0",
54
54
  "typescript": "5.4.5",
55
- "typescript-eslint": "8.56.1",
55
+ "typescript-eslint": "8.57.1",
56
56
  "undici": "*",
57
57
  "vite": "^6.4.1",
58
58
  "vite-tsconfig-paths": "^6.1.1"
59
59
  },
60
60
  "dependencies": {
61
61
  "@mdi/js": "^7.4.47",
62
- "katex": "^0.16.33",
62
+ "katex": "^0.16.38",
63
63
  "lodash-es": "^4.17.23",
64
- "marked": "^17.0.3",
64
+ "marked": "^17.0.4",
65
65
  "polished": "^4.3.1",
66
66
  "shiki": "^4.0.1"
67
67
  },