@elmethis/qwik 0.0.24 → 0.0.26

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.
@@ -869,30 +869,29 @@ const ElmParallax = qwik.component$(({ images }) => {
869
869
  ]
870
870
  });
871
871
  });
872
- const toggle = "_toggle_1nxqa_1";
873
- const summary = "_summary_1nxqa_14";
874
- const content$2 = "_content_1nxqa_60";
875
- const footer = "_footer_1nxqa_80";
872
+ const toggle = "_toggle_nwv84_1";
873
+ const summary = "_summary_nwv84_14";
874
+ const content$2 = "_content_nwv84_60";
875
+ const footer = "_footer_nwv84_80";
876
876
  const styles$s = {
877
877
  toggle,
878
- "toggle-closed": "_toggle-closed_1nxqa_7",
879
- "toggle-open": "_toggle-open_1nxqa_10",
878
+ "toggle-closed": "_toggle-closed_nwv84_7",
879
+ "toggle-open": "_toggle-open_nwv84_10",
880
880
  summary,
881
- "summary-open": "_summary-open_1nxqa_29",
882
- "summary-closed": "_summary-closed_1nxqa_33",
883
- "chevron-icon": "_chevron-icon_1nxqa_37",
884
- "chevron-icon-open": "_chevron-icon-open_1nxqa_40",
885
- "chevron-icon-closed": "_chevron-icon-closed_1nxqa_43",
886
- "plus-icon": "_plus-icon_1nxqa_47",
887
- "plus-icon-open": "_plus-icon-open_1nxqa_53",
888
- "plus-icon-closed": "_plus-icon-closed_1nxqa_56",
881
+ "summary-open": "_summary-open_nwv84_29",
882
+ "summary-closed": "_summary-closed_nwv84_33",
883
+ "chevron-icon": "_chevron-icon_nwv84_37",
884
+ "chevron-icon-open": "_chevron-icon-open_nwv84_40",
885
+ "chevron-icon-closed": "_chevron-icon-closed_nwv84_43",
886
+ "plus-icon": "_plus-icon_nwv84_47",
887
+ "plus-icon-open": "_plus-icon-open_nwv84_53",
888
+ "plus-icon-closed": "_plus-icon-closed_nwv84_56",
889
889
  content: content$2,
890
- "content-open": "_content-open_1nxqa_73",
891
- "content-closed": "_content-closed_1nxqa_76",
890
+ "content-open": "_content-open_nwv84_73",
891
+ "content-closed": "_content-closed_nwv84_76",
892
892
  footer,
893
- "footer-line": "_footer-line_1nxqa_99",
894
- "footer-cross-icon": "_footer-cross-icon_1nxqa_106",
895
- "footer-chevron-icon": "_footer-chevron-icon_1nxqa_109"
893
+ "footer-line": "_footer-line_nwv84_99",
894
+ "footer-cross-icon": "_footer-cross-icon_nwv84_105"
896
895
  };
897
896
  const ElmToggle = qwik.component$(({ summary: summary2 }) => {
898
897
  const isOpen = qwik.useSignal(false);
@@ -967,7 +966,6 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
967
966
  onClick$: toggle2,
968
967
  children: [
969
968
  /* @__PURE__ */ jsxRuntime.jsx("span", {
970
- class: styles$s["footer-chevron-icon"],
971
969
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
972
970
  d: js.mdiChevronRight,
973
971
  color: "gray"
@@ -997,7 +995,9 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
997
995
  class: styles$s["footer-line"]
998
996
  }),
999
997
  /* @__PURE__ */ jsxRuntime.jsx("span", {
1000
- class: styles$s["footer-chevron-icon"],
998
+ style: {
999
+ rotate: "180deg"
1000
+ },
1001
1001
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
1002
1002
  d: js.mdiChevronRight,
1003
1003
  color: "gray"
@@ -2338,6 +2338,14 @@ const styles$f = {
2338
2338
  link
2339
2339
  };
2340
2340
  const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
2341
+ const isError = qwik.useSignal(false);
2342
+ const handleImageOnError = qwik.$(() => {
2343
+ isError.value = true;
2344
+ });
2345
+ const hiddenStyle = {
2346
+ visibility: "hidden",
2347
+ width: "0"
2348
+ };
2341
2349
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
2342
2350
  class: styles$f.bookmark,
2343
2351
  children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
@@ -2349,7 +2357,9 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
2349
2357
  /* @__PURE__ */ jsxRuntime.jsx("img", {
2350
2358
  class: styles$f.image,
2351
2359
  src: image2,
2352
- alt: "OGP Image"
2360
+ alt: "OGP Image",
2361
+ onError$: handleImageOnError,
2362
+ style: isError.value || image2 == null ? hiddenStyle : {}
2353
2363
  }),
2354
2364
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
2355
2365
  class: styles$f.content,
@@ -867,30 +867,29 @@ const ElmParallax = component$(({ images }) => {
867
867
  ]
868
868
  });
869
869
  });
870
- const toggle = "_toggle_1nxqa_1";
871
- const summary = "_summary_1nxqa_14";
872
- const content$2 = "_content_1nxqa_60";
873
- const footer = "_footer_1nxqa_80";
870
+ const toggle = "_toggle_nwv84_1";
871
+ const summary = "_summary_nwv84_14";
872
+ const content$2 = "_content_nwv84_60";
873
+ const footer = "_footer_nwv84_80";
874
874
  const styles$s = {
875
875
  toggle,
876
- "toggle-closed": "_toggle-closed_1nxqa_7",
877
- "toggle-open": "_toggle-open_1nxqa_10",
876
+ "toggle-closed": "_toggle-closed_nwv84_7",
877
+ "toggle-open": "_toggle-open_nwv84_10",
878
878
  summary,
879
- "summary-open": "_summary-open_1nxqa_29",
880
- "summary-closed": "_summary-closed_1nxqa_33",
881
- "chevron-icon": "_chevron-icon_1nxqa_37",
882
- "chevron-icon-open": "_chevron-icon-open_1nxqa_40",
883
- "chevron-icon-closed": "_chevron-icon-closed_1nxqa_43",
884
- "plus-icon": "_plus-icon_1nxqa_47",
885
- "plus-icon-open": "_plus-icon-open_1nxqa_53",
886
- "plus-icon-closed": "_plus-icon-closed_1nxqa_56",
879
+ "summary-open": "_summary-open_nwv84_29",
880
+ "summary-closed": "_summary-closed_nwv84_33",
881
+ "chevron-icon": "_chevron-icon_nwv84_37",
882
+ "chevron-icon-open": "_chevron-icon-open_nwv84_40",
883
+ "chevron-icon-closed": "_chevron-icon-closed_nwv84_43",
884
+ "plus-icon": "_plus-icon_nwv84_47",
885
+ "plus-icon-open": "_plus-icon-open_nwv84_53",
886
+ "plus-icon-closed": "_plus-icon-closed_nwv84_56",
887
887
  content: content$2,
888
- "content-open": "_content-open_1nxqa_73",
889
- "content-closed": "_content-closed_1nxqa_76",
888
+ "content-open": "_content-open_nwv84_73",
889
+ "content-closed": "_content-closed_nwv84_76",
890
890
  footer,
891
- "footer-line": "_footer-line_1nxqa_99",
892
- "footer-cross-icon": "_footer-cross-icon_1nxqa_106",
893
- "footer-chevron-icon": "_footer-chevron-icon_1nxqa_109"
891
+ "footer-line": "_footer-line_nwv84_99",
892
+ "footer-cross-icon": "_footer-cross-icon_nwv84_105"
894
893
  };
895
894
  const ElmToggle = component$(({ summary: summary2 }) => {
896
895
  const isOpen = useSignal(false);
@@ -965,7 +964,6 @@ const ElmToggle = component$(({ summary: summary2 }) => {
965
964
  onClick$: toggle2,
966
965
  children: [
967
966
  /* @__PURE__ */ jsx("span", {
968
- class: styles$s["footer-chevron-icon"],
969
967
  children: /* @__PURE__ */ jsx(ElmMdiIcon, {
970
968
  d: mdiChevronRight,
971
969
  color: "gray"
@@ -995,7 +993,9 @@ const ElmToggle = component$(({ summary: summary2 }) => {
995
993
  class: styles$s["footer-line"]
996
994
  }),
997
995
  /* @__PURE__ */ jsx("span", {
998
- class: styles$s["footer-chevron-icon"],
996
+ style: {
997
+ rotate: "180deg"
998
+ },
999
999
  children: /* @__PURE__ */ jsx(ElmMdiIcon, {
1000
1000
  d: mdiChevronRight,
1001
1001
  color: "gray"
@@ -2336,6 +2336,14 @@ const styles$f = {
2336
2336
  link
2337
2337
  };
2338
2338
  const ElmBookmark = component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
2339
+ const isError = useSignal(false);
2340
+ const handleImageOnError = $(() => {
2341
+ isError.value = true;
2342
+ });
2343
+ const hiddenStyle = {
2344
+ visibility: "hidden",
2345
+ width: "0"
2346
+ };
2339
2347
  return /* @__PURE__ */ jsx("div", {
2340
2348
  class: styles$f.bookmark,
2341
2349
  children: /* @__PURE__ */ jsxs("a", {
@@ -2347,7 +2355,9 @@ const ElmBookmark = component$(({ url, image: image2, title: title2, description
2347
2355
  /* @__PURE__ */ jsx("img", {
2348
2356
  class: styles$f.image,
2349
2357
  src: image2,
2350
- alt: "OGP Image"
2358
+ alt: "OGP Image",
2359
+ onError$: handleImageOnError,
2360
+ style: isError.value || image2 == null ? hiddenStyle : {}
2351
2361
  }),
2352
2362
  /* @__PURE__ */ jsxs("div", {
2353
2363
  class: styles$f.content,
package/lib/style.css CHANGED
@@ -240,20 +240,20 @@
240
240
  }
241
241
  [data-theme=dark] ._parallax_1kb0k_1 {
242
242
  opacity: 0.1;
243
- }._toggle_1nxqa_1 {
243
+ }._toggle_nwv84_1 {
244
244
  margin: 0;
245
245
  display: grid;
246
246
  transition: grid 200ms;
247
247
  overflow: hidden;
248
248
  }
249
- ._toggle_1nxqa_1._toggle-closed_1nxqa_7 {
249
+ ._toggle_nwv84_1._toggle-closed_nwv84_7 {
250
250
  grid-template-rows: 3.5rem 0fr 0rem;
251
251
  }
252
- ._toggle_1nxqa_1._toggle-open_1nxqa_10 {
252
+ ._toggle_nwv84_1._toggle-open_nwv84_10 {
253
253
  grid-template-rows: 3.5rem 1fr 3rem;
254
254
  }
255
255
 
256
- ._summary_1nxqa_14 {
256
+ ._summary_nwv84_14 {
257
257
  box-sizing: border-box;
258
258
  padding-inline: 1rem;
259
259
  display: grid;
@@ -264,42 +264,42 @@
264
264
  border: 1px solid rgba(0, 0, 0, 0.125);
265
265
  background-color: rgba(62, 67, 75, 0.05);
266
266
  }
267
- [data-theme=dark] ._summary_1nxqa_14 {
267
+ [data-theme=dark] ._summary_nwv84_14 {
268
268
  border: 1px solid rgba(255, 255, 255, 0.125);
269
269
  background-color: rgba(190, 194, 202, 0.1);
270
270
  }
271
- ._summary_1nxqa_14._summary-open_1nxqa_29 {
271
+ ._summary_nwv84_14._summary-open_nwv84_29 {
272
272
  border-radius: 0.25rem 0.25rem 0 0;
273
273
  border-bottom-color: transparent;
274
274
  }
275
- ._summary_1nxqa_14._summary-closed_1nxqa_33 {
275
+ ._summary_nwv84_14._summary-closed_nwv84_33 {
276
276
  border-radius: 0.25rem;
277
277
  }
278
278
 
279
- ._chevron-icon_1nxqa_37 {
279
+ ._chevron-icon_nwv84_37 {
280
280
  transition: transform 200ms;
281
281
  }
282
- ._chevron-icon_1nxqa_37._chevron-icon-open_1nxqa_40 {
282
+ ._chevron-icon_nwv84_37._chevron-icon-open_nwv84_40 {
283
283
  transform: rotate(90deg);
284
284
  }
285
- ._chevron-icon_1nxqa_37._chevron-icon-closed_1nxqa_43 {
285
+ ._chevron-icon_nwv84_37._chevron-icon-closed_nwv84_43 {
286
286
  transform: rotate(0deg);
287
287
  }
288
288
 
289
- ._plus-icon_1nxqa_47 {
289
+ ._plus-icon_nwv84_47 {
290
290
  height: 1rem;
291
291
  width: 1rem;
292
292
  transform-origin: center;
293
293
  transition: transform 200ms;
294
294
  }
295
- ._plus-icon_1nxqa_47._plus-icon-open_1nxqa_53 {
295
+ ._plus-icon_nwv84_47._plus-icon-open_nwv84_53 {
296
296
  transform: rotate(135deg);
297
297
  }
298
- ._plus-icon_1nxqa_47._plus-icon-closed_1nxqa_56 {
298
+ ._plus-icon_nwv84_47._plus-icon-closed_nwv84_56 {
299
299
  transform: rotate(0deg);
300
300
  }
301
301
 
302
- ._content_1nxqa_60 {
302
+ ._content_nwv84_60 {
303
303
  box-sizing: border-box;
304
304
  padding: 1rem;
305
305
  overflow: hidden;
@@ -308,21 +308,21 @@
308
308
  border-radius: 0 0 0.25rem 0.25rem;
309
309
  background-color: rgba(62, 67, 75, 0.0125);
310
310
  }
311
- [data-theme=dark] ._content_1nxqa_60 {
311
+ [data-theme=dark] ._content_nwv84_60 {
312
312
  border-color: rgba(255, 255, 255, 0.125);
313
313
  background-color: rgba(190, 194, 202, 0.025);
314
314
  }
315
- ._content_1nxqa_60._content-open_1nxqa_73 {
315
+ ._content_nwv84_60._content-open_nwv84_73 {
316
316
  opacity: 1;
317
317
  }
318
- ._content_1nxqa_60._content-closed_1nxqa_76 {
318
+ ._content_nwv84_60._content-closed_nwv84_76 {
319
319
  opacity: 0;
320
320
  }
321
321
 
322
- ._footer_1nxqa_80 {
322
+ ._footer_nwv84_80 {
323
323
  box-sizing: border-box;
324
324
  margin: 0.25rem 0rem;
325
- padding: 0.5rem;
325
+ padding: 0.5rem 0.25rem;
326
326
  color: #c56565;
327
327
  font-family: monospace;
328
328
  display: flex;
@@ -334,22 +334,18 @@
334
334
  border-radius: 0.25rem;
335
335
  transition: opacity 200ms, background-color 200ms;
336
336
  }
337
- ._footer_1nxqa_80:hover {
337
+ ._footer_nwv84_80:hover {
338
338
  opacity: 0.5;
339
339
  background-color: rgba(96, 104, 117, 0.1);
340
340
  }
341
- ._footer_1nxqa_80._footer-line_1nxqa_99 {
341
+ ._footer_nwv84_80 ._footer-line_nwv84_99 {
342
342
  box-sizing: border-box;
343
- margin: 0 0.25rem;
344
- flex-grow: 1;
343
+ flex: 1;
345
344
  border: none;
346
- border-bottom: solid 1px rgba(128, 128, 128, 0.3);
345
+ border-bottom: 1px solid rgba(128, 128, 128, 0.3);
347
346
  }
348
- ._footer_1nxqa_80._footer-cross-icon_1nxqa_106 {
347
+ ._footer_nwv84_80 ._footer-cross-icon_nwv84_105 {
349
348
  transform: rotate(45deg);
350
- }
351
- ._footer_1nxqa_80._footer-chevron-icon_1nxqa_109 {
352
- transform: rotate(-90deg);
353
349
  }._block-fallback_rt986_1 {
354
350
  position: relative;
355
351
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/qwik",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,10 +38,9 @@
38
38
  "devDependencies": {
39
39
  "@builder.io/qwik": "1.19.0",
40
40
  "@eslint/js": "latest",
41
- "@storybook/addon-docs": "8",
42
- "@storybook/addon-essentials": "8",
41
+ "@storybook/addon-docs": "8.6.17",
42
+ "@storybook/addon-essentials": "8.6.17",
43
43
  "@types/lodash-es": "^4.17.12",
44
- "@types/marked": "^6.0.0",
45
44
  "@types/node": "20.19.0",
46
45
  "eslint": "10.0.2",
47
46
  "eslint-plugin-qwik": "1.19.1",
@@ -55,7 +54,7 @@
55
54
  "typescript": "5.4.5",
56
55
  "typescript-eslint": "8.56.1",
57
56
  "undici": "*",
58
- "vite": "7.3.1",
57
+ "vite": "^6.4.1",
59
58
  "vite-tsconfig-paths": "^6.1.1"
60
59
  },
61
60
  "dependencies": {