@builder.io/sdk-solid 0.0.8-21 → 0.0.8-22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "0.0.8-21",
3
+ "version": "0.0.8-22",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/solid-index.jsx",
@@ -1,8 +1,13 @@
1
1
  import { Show } from "solid-js";
2
+ import { css } from "solid-styled-components";
2
3
 
3
4
  function Button(props) {
4
5
  return <>
5
- <Show fallback={<span {...props.attributes}>{props.text}</span>} when={props.link}>
6
+ <Show fallback={<button class={css({
7
+ all: "unset"
8
+ })} {...props.attributes}>
9
+ {props.text}
10
+ </button>} when={props.link}>
6
11
  <a {...props.attributes} role="button" href={props.link} target={props.openLinkInNewTab ? "_blank" : undefined}>
7
12
  {props.text}
8
13
  </a>
@@ -55,7 +55,7 @@ function Columns(props) {
55
55
  display: "flex",
56
56
  alignItems: "stretch",
57
57
  lineHeight: "normal",
58
- "@media (max-width: 999px)": {
58
+ "@media (max-width: 991px)": {
59
59
  flexDirection: "var(--flex-dir-tablet)"
60
60
  },
61
61
  "@media (max-width: 639px)": {
@@ -68,7 +68,7 @@ function Columns(props) {
68
68
 
69
69
  return <div class={"builder-column " + css({
70
70
  flexGrow: "1",
71
- "@media (max-width: 999px)": {
71
+ "@media (max-width: 991px)": {
72
72
  width: "var(--column-width-tablet) !important",
73
73
  marginLeft: "var(--column-margin-left-tablet) !important"
74
74
  },
@@ -81,7 +81,7 @@ function Columns(props) {
81
81
  "margin-left": `${index === 0 ? 0 : state.getGutterSize()}px`,
82
82
  ...state.columnCssVars
83
83
  }} key={index}>
84
- <RenderBlocks blocks={column.blocks}></RenderBlocks>
84
+ <RenderBlocks blocks={column.blocks} path={`component.options.columns.${index}.blocks`} parent={props.builderBlock.id}></RenderBlocks>
85
85
  </div>;
86
86
  }}
87
87
  </For>