@elmethis/qwik 0.0.26 → 0.0.27

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.
@@ -776,7 +776,7 @@ const ElmShikiHighlighter = qwik.component$(({ code: code2, language = "txt" })
776
776
  dangerouslySetInnerHTML: rawHtml.value
777
777
  });
778
778
  });
779
- const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption: caption2, margin }) => {
779
+ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption: caption2, style }) => {
780
780
  const timerId = qwik.useSignal(null);
781
781
  const copyToClipboard = qwik.$(async () => {
782
782
  if (timerId.value !== null) {
@@ -792,9 +792,7 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
792
792
  });
793
793
  return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
794
794
  class: styles$z["code-block"],
795
- style: {
796
- margin
797
- },
795
+ style,
798
796
  children: [
799
797
  /* @__PURE__ */ jsxRuntime.jsx("span", {
800
798
  class: styles$z["language-icon"],
@@ -869,31 +867,31 @@ const ElmParallax = qwik.component$(({ images }) => {
869
867
  ]
870
868
  });
871
869
  });
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";
870
+ const toggle = "_toggle_pbyu8_1";
871
+ const summary = "_summary_pbyu8_14";
872
+ const content$2 = "_content_pbyu8_60";
873
+ const footer = "_footer_pbyu8_80";
876
874
  const styles$s = {
877
875
  toggle,
878
- "toggle-closed": "_toggle-closed_nwv84_7",
879
- "toggle-open": "_toggle-open_nwv84_10",
876
+ "toggle-closed": "_toggle-closed_pbyu8_7",
877
+ "toggle-open": "_toggle-open_pbyu8_10",
880
878
  summary,
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",
879
+ "summary-open": "_summary-open_pbyu8_29",
880
+ "summary-closed": "_summary-closed_pbyu8_33",
881
+ "chevron-icon": "_chevron-icon_pbyu8_37",
882
+ "chevron-icon-open": "_chevron-icon-open_pbyu8_40",
883
+ "chevron-icon-closed": "_chevron-icon-closed_pbyu8_43",
884
+ "plus-icon": "_plus-icon_pbyu8_47",
885
+ "plus-icon-open": "_plus-icon-open_pbyu8_53",
886
+ "plus-icon-closed": "_plus-icon-closed_pbyu8_56",
889
887
  content: content$2,
890
- "content-open": "_content-open_nwv84_73",
891
- "content-closed": "_content-closed_nwv84_76",
888
+ "content-open": "_content-open_pbyu8_73",
889
+ "content-closed": "_content-closed_pbyu8_76",
892
890
  footer,
893
- "footer-line": "_footer-line_nwv84_99",
894
- "footer-cross-icon": "_footer-cross-icon_nwv84_105"
891
+ "footer-line": "_footer-line_pbyu8_99",
892
+ "footer-cross-icon": "_footer-cross-icon_pbyu8_105"
895
893
  };
896
- const ElmToggle = qwik.component$(({ summary: summary2 }) => {
894
+ const ElmToggle = qwik.component$(({ summary: summary2, style }) => {
897
895
  const isOpen = qwik.useSignal(false);
898
896
  const toggle2 = qwik.$(() => {
899
897
  isOpen.value = !isOpen.value;
@@ -906,6 +904,7 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
906
904
  [styles$s["toggle-closed"]]: !isOpen.value
907
905
  }
908
906
  ],
907
+ style,
909
908
  children: [
910
909
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
911
910
  class: [
@@ -2176,17 +2175,17 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
2176
2175
  })
2177
2176
  });
2178
2177
  });
2179
- const image$1 = "_image_5s2ag_11";
2180
- const fallback = "_fallback_5s2ag_33";
2178
+ const image$1 = "_image_sf1wj_12";
2179
+ const fallback = "_fallback_sf1wj_34";
2181
2180
  const styles$h = {
2182
- "block-image": "_block-image_5s2ag_1",
2183
- "image-container": "_image-container_5s2ag_11",
2181
+ "block-image": "_block-image_sf1wj_1",
2182
+ "image-container": "_image-container_sf1wj_12",
2184
2183
  image: image$1,
2185
2184
  fallback,
2186
- "caption-box": "_caption-box_5s2ag_43",
2187
- "modal-container": "_modal-container_5s2ag_55"
2185
+ "caption-box": "_caption-box_sf1wj_44",
2186
+ "modal-container": "_modal-container_sf1wj_56"
2188
2187
  };
2189
- const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true }) => {
2188
+ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
2190
2189
  const isLoading = qwik.useSignal(true);
2191
2190
  const isShowModal = qwik.useSignal(false);
2192
2191
  const handleImageLoad = qwik.$(() => {
@@ -2201,6 +2200,8 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
2201
2200
  class: styles$h.image,
2202
2201
  src,
2203
2202
  alt: alt ?? caption2 ?? "Image",
2203
+ srcset,
2204
+ sizes,
2204
2205
  width,
2205
2206
  height,
2206
2207
  onLoad$: handleImageLoad,
@@ -2221,6 +2222,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
2221
2222
  });
2222
2223
  return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
2223
2224
  class: styles$h["block-image"],
2225
+ style,
2224
2226
  children: [
2225
2227
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
2226
2228
  class: styles$h["image-container"],
@@ -2262,18 +2264,18 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
2262
2264
  ]
2263
2265
  });
2264
2266
  });
2265
- const file = "_file_14a0w_1";
2267
+ const file = "_file_eqa3m_1";
2266
2268
  const styles$g = {
2267
2269
  file,
2268
- "file-size": "_file-size_14a0w_16",
2269
- "download-icon": "_download-icon_14a0w_21"
2270
+ "file-size": "_file-size_eqa3m_16",
2271
+ "download-icon": "_download-icon_eqa3m_21"
2270
2272
  };
2271
2273
  function getLastPathSegmentWithoutQueryOrHash(urlString) {
2272
2274
  const cleanedUrl = urlString.split(/[?#]/)[0];
2273
2275
  const pathSegments = cleanedUrl.split("/").filter(Boolean);
2274
2276
  return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
2275
2277
  }
2276
- const ElmFile = qwik.component$(({ name, src, filesize }) => {
2278
+ const ElmFile = qwik.component$(({ name, src, filesize, style }) => {
2277
2279
  const downloadFile = qwik.$(async () => {
2278
2280
  let link2;
2279
2281
  try {
@@ -2292,6 +2294,7 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
2292
2294
  });
2293
2295
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
2294
2296
  class: styles$g.file,
2297
+ style,
2295
2298
  children: [
2296
2299
  /* @__PURE__ */ jsxRuntime.jsx("div", {
2297
2300
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
@@ -2321,13 +2324,13 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
2321
2324
  ]
2322
2325
  });
2323
2326
  });
2324
- const bookmark = "_bookmark_rgq1s_1";
2325
- const container$1 = "_container_rgq1s_19";
2326
- const image = "_image_rgq1s_32";
2327
- const content$1 = "_content_rgq1s_53";
2328
- const title = "_title_rgq1s_73";
2329
- const description = "_description_rgq1s_76";
2330
- const link = "_link_rgq1s_80";
2327
+ const bookmark = "_bookmark_xxvle_1";
2328
+ const container$1 = "_container_xxvle_20";
2329
+ const image = "_image_xxvle_33";
2330
+ const content$1 = "_content_xxvle_54";
2331
+ const title = "_title_xxvle_74";
2332
+ const description = "_description_xxvle_77";
2333
+ const link = "_link_xxvle_81";
2331
2334
  const styles$f = {
2332
2335
  bookmark,
2333
2336
  container: container$1,
@@ -2337,7 +2340,7 @@ const styles$f = {
2337
2340
  description,
2338
2341
  link
2339
2342
  };
2340
- const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
2343
+ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon, style }) => {
2341
2344
  const isError = qwik.useSignal(false);
2342
2345
  const handleImageOnError = qwik.$(() => {
2343
2346
  isError.value = true;
@@ -2348,6 +2351,7 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
2348
2351
  };
2349
2352
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
2350
2353
  class: styles$f.bookmark,
2354
+ style,
2351
2355
  children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
2352
2356
  class: styles$f.container,
2353
2357
  href: url,
@@ -2513,21 +2517,22 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
2513
2517
  ]
2514
2518
  });
2515
2519
  });
2516
- const blockquote = "_blockquote_b5jd8_1";
2517
- const body = "_body_b5jd8_18";
2518
- const icon = "_icon_b5jd8_23";
2520
+ const blockquote = "_blockquote_1s60i_1";
2521
+ const body = "_body_1s60i_19";
2522
+ const icon = "_icon_1s60i_24";
2519
2523
  const styles$c = {
2520
2524
  blockquote,
2521
2525
  body,
2522
2526
  icon
2523
2527
  };
2524
- const ElmBlockQuote = qwik.component$(({ cite }) => {
2528
+ const ElmBlockQuote = qwik.component$(({ cite, style }) => {
2525
2529
  return /* @__PURE__ */ jsxRuntime.jsxs("blockquote", {
2526
2530
  class: [
2527
2531
  styles$c.blockquote,
2528
2532
  textStyles.text
2529
2533
  ],
2530
2534
  cite,
2535
+ style,
2531
2536
  children: [
2532
2537
  /* @__PURE__ */ jsxRuntime.jsx("div", {
2533
2538
  class: styles$c.icon,
@@ -2554,9 +2559,9 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
2554
2559
  ]
2555
2560
  });
2556
2561
  });
2557
- const callout = "_callout_1d8l2_1";
2558
- const header = "_header_1d8l2_25";
2559
- const content = "_content_1d8l2_31";
2562
+ const callout = "_callout_ov76x_1";
2563
+ const header = "_header_ov76x_26";
2564
+ const content = "_content_ov76x_32";
2560
2565
  const styles$b = {
2561
2566
  callout,
2562
2567
  header,
@@ -2584,11 +2589,12 @@ const COLOR_MAP = Object.freeze({
2584
2589
  icon: js.mdiAlertOctagram
2585
2590
  }
2586
2591
  });
2587
- const ElmCallout = qwik.component$(({ type = "note" }) => {
2592
+ const ElmCallout = qwik.component$(({ type = "note", style }) => {
2588
2593
  return /* @__PURE__ */ jsxRuntime.jsxs("aside", {
2589
2594
  class: styles$b.callout,
2590
2595
  style: {
2591
- "--callout-color": COLOR_MAP[type].code
2596
+ "--callout-color": COLOR_MAP[type].code,
2597
+ ...style
2592
2598
  },
2593
2599
  children: [
2594
2600
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
@@ -2611,16 +2617,14 @@ const ElmCallout = qwik.component$(({ type = "note" }) => {
2611
2617
  ]
2612
2618
  });
2613
2619
  });
2614
- const hr = "_hr_1g58p_1";
2620
+ const hr = "_hr_b790w_1";
2615
2621
  const styles$a = {
2616
2622
  hr
2617
2623
  };
2618
- const ElmDivider = qwik.component$(({ margin }) => {
2624
+ const ElmDivider = qwik.component$(({ style }) => {
2619
2625
  return /* @__PURE__ */ jsxRuntime.jsx("hr", {
2620
2626
  class: styles$a.hr,
2621
- style: {
2622
- marginBlock: margin
2623
- }
2627
+ style
2624
2628
  });
2625
2629
  });
2626
2630
  const fragment = "_fragment_1kofp_1";
@@ -2645,15 +2649,15 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
2645
2649
  children: "#"
2646
2650
  });
2647
2651
  });
2648
- const h1 = "_h1_16jof_10";
2649
- const h2 = "_h2_16jof_40";
2650
- const h2__underline = "_h2__underline_16jof_68";
2651
- const h3 = "_h3_16jof_85";
2652
- const h4 = "_h4_16jof_102";
2653
- const h5 = "_h5_16jof_106";
2654
- const h6 = "_h6_16jof_110";
2652
+ const h1 = "_h1_1c1xr_10";
2653
+ const h2 = "_h2_1c1xr_40";
2654
+ const h2__underline = "_h2__underline_1c1xr_68";
2655
+ const h3 = "_h3_1c1xr_85";
2656
+ const h4 = "_h4_1c1xr_102";
2657
+ const h5 = "_h5_1c1xr_106";
2658
+ const h6 = "_h6_1c1xr_110";
2655
2659
  const styles$8 = {
2656
- "heading-common": "_heading-common_16jof_1",
2660
+ "heading-common": "_heading-common_1c1xr_1",
2657
2661
  h1,
2658
2662
  h2,
2659
2663
  h2__underline,
@@ -2670,7 +2674,7 @@ const SIZE_MAP = Object.freeze({
2670
2674
  5: 1.15,
2671
2675
  6: 1.1
2672
2676
  });
2673
- const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
2677
+ const ElmHeading = qwik.component$(({ level, text: text2, id, style }) => {
2674
2678
  const Tag = `h${level}`;
2675
2679
  return /* @__PURE__ */ jsxRuntime.jsxs(Tag, {
2676
2680
  class: [
@@ -2679,7 +2683,8 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
2679
2683
  styles$8[`h${level}`]
2680
2684
  ],
2681
2685
  style: {
2682
- "--font-size": `${SIZE_MAP[level]}em`
2686
+ "--font-size": `${SIZE_MAP[level]}em`,
2687
+ ...style
2683
2688
  },
2684
2689
  children: [
2685
2690
  /* @__PURE__ */ jsxRuntime.jsx("span", {
@@ -2702,11 +2707,11 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
2702
2707
  });
2703
2708
  });
2704
2709
  const styles$7 = {
2705
- "elmethis-list-common": "_elmethis-list-common_14epx_1",
2706
- "elmethis-bulleted-list": "_elmethis-bulleted-list_14epx_9",
2707
- "elmethis-numbered-list": "_elmethis-numbered-list_14epx_24"
2710
+ "elmethis-list-common": "_elmethis-list-common_6g6c5_1",
2711
+ "elmethis-bulleted-list": "_elmethis-bulleted-list_6g6c5_9",
2712
+ "elmethis-numbered-list": "_elmethis-numbered-list_6g6c5_24"
2708
2713
  };
2709
- const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
2714
+ const ElmList = qwik.component$(({ listStyle = "unordered", style }) => {
2710
2715
  if (listStyle === "ordered") {
2711
2716
  return /* @__PURE__ */ jsxRuntime.jsx("ol", {
2712
2717
  class: [
@@ -2714,6 +2719,7 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
2714
2719
  styles$7["elmethis-list-common"],
2715
2720
  styles$7["elmethis-numbered-list"]
2716
2721
  ],
2722
+ style,
2717
2723
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
2718
2724
  });
2719
2725
  } else {
@@ -2727,7 +2733,7 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
2727
2733
  });
2728
2734
  }
2729
2735
  });
2730
- const paragraph = "_paragraph_jz10s_1";
2736
+ const paragraph = "_paragraph_1klqe_1";
2731
2737
  const styles$6 = {
2732
2738
  paragraph
2733
2739
  };
@@ -2777,7 +2783,7 @@ const styles$5 = {
2777
2783
  };
2778
2784
  const HasRowHeaderContext = qwik.createContextId("HasRowHeaderContext");
2779
2785
  const ElmTable = qwik.component$((props) => {
2780
- const { margin, caption: caption2, hasRowHeader = false } = props;
2786
+ const { caption: caption2, hasRowHeader = false, style } = props;
2781
2787
  const hasRowHeaderComputed = qwik.useComputed$(() => hasRowHeader);
2782
2788
  qwik.useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
2783
2789
  return /* @__PURE__ */ jsxRuntime.jsxs("table", {
@@ -2786,7 +2792,7 @@ const ElmTable = qwik.component$((props) => {
2786
2792
  textStyles.text
2787
2793
  ],
2788
2794
  style: {
2789
- "--margin-block": margin
2795
+ ...style
2790
2796
  },
2791
2797
  children: [
2792
2798
  caption2 && /* @__PURE__ */ jsxRuntime.jsx("caption", {
@@ -2884,10 +2890,9 @@ const ElmTableCell = qwik.component$((props) => {
2884
2890
  })
2885
2891
  });
2886
2892
  });
2887
- const column = "_column_1l2bp_7";
2893
+ const column = "_column_1yujg_1";
2888
2894
  const styles$1 = {
2889
- "jarkup-body": "_jarkup-body_1l2bp_1",
2890
- "column-list": "_column-list_1l2bp_7",
2895
+ "column-list": "_column-list_1yujg_1",
2891
2896
  column
2892
2897
  };
2893
2898
  const convertInlineComponentsToPlainText = (inlineComponents) => {
@@ -3053,7 +3058,10 @@ const ElmJarkup = qwik.component$((props) => {
3053
3058
  });
3054
3059
  };
3055
3060
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
3056
- class: styles$1["jarkup-body"],
3061
+ style: {
3062
+ "--margin-block": "3rem",
3063
+ ...props.style
3064
+ },
3057
3065
  children: render(props.jsonComponents)
3058
3066
  });
3059
3067
  });