@elmethis/qwik 0.0.29 → 0.0.31

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.
@@ -723,7 +723,8 @@ const ElmInlineText = qwik.component$((props) => {
723
723
  style: {
724
724
  "--color": props.color,
725
725
  "--font-size": size,
726
- "--background-color": props.backgroundColor
726
+ "--background-color": props.backgroundColor,
727
+ ...props.style
727
728
  },
728
729
  children: vnode
729
730
  });
@@ -3223,13 +3224,14 @@ const renderByToken = (tokens) => {
3223
3224
  }
3224
3225
  return results;
3225
3226
  };
3226
- const ElmMarkdown = qwik.component$(({ markdown }) => {
3227
+ const ElmMarkdown = qwik.component$(({ markdown, style }) => {
3227
3228
  const tokens = marked.marked.setOptions({
3228
3229
  gfm: true
3229
3230
  }).lexer(markdown);
3230
3231
  const elements = renderByToken(tokens);
3231
3232
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
3232
3233
  class: styles["markdown-body"],
3234
+ style,
3233
3235
  children: elements
3234
3236
  });
3235
3237
  });
@@ -721,7 +721,8 @@ const ElmInlineText = component$((props) => {
721
721
  style: {
722
722
  "--color": props.color,
723
723
  "--font-size": size,
724
- "--background-color": props.backgroundColor
724
+ "--background-color": props.backgroundColor,
725
+ ...props.style
725
726
  },
726
727
  children: vnode
727
728
  });
@@ -3221,13 +3222,14 @@ const renderByToken = (tokens) => {
3221
3222
  }
3222
3223
  return results;
3223
3224
  };
3224
- const ElmMarkdown = component$(({ markdown }) => {
3225
+ const ElmMarkdown = component$(({ markdown, style }) => {
3225
3226
  const tokens = marked.setOptions({
3226
3227
  gfm: true
3227
3228
  }).lexer(markdown);
3228
3229
  const elements = renderByToken(tokens);
3229
3230
  return /* @__PURE__ */ jsx("div", {
3230
3231
  class: styles["markdown-body"],
3232
+ style,
3231
3233
  children: elements
3232
3234
  });
3233
3235
  });
@@ -1,5 +1,6 @@
1
1
  import { type CSSProperties } from "@builder.io/qwik";
2
2
  export interface ElmInlineTextProps {
3
+ style?: CSSProperties;
3
4
  /**
4
5
  * The text to display.
5
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/qwik",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },