@builder.io/sdk-svelte 0.12.2 → 0.12.3

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.
@@ -29,16 +29,11 @@ function mitosis_styling(node, vars) {
29
29
  {:else}
30
30
  <button
31
31
  use:mitosis_styling={attributes.style}
32
+ role="button"
32
33
  {...filterAttrs(attributes, "on:", false)}
33
- class={attributes.class + " button"}
34
+ class={`builder-button ${attributes.class}`}
34
35
  use:setAttrs={filterAttrs(attributes, "on:", true)}
35
36
  >
36
37
  {text}
37
38
  </button>
38
- {/if}
39
-
40
- <style>
41
- .button {
42
- all: unset;
43
- }
44
- </style>
39
+ {/if}
@@ -14,6 +14,10 @@ ${getFontCss({
14
14
  customFonts: customFonts,
15
15
  })}
16
16
 
17
+ .builder-button {
18
+ all: unset;
19
+ }
20
+
17
21
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
18
22
  margin: 0;
19
23
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.12.2";
1
+ export declare const SDK_VERSION = "0.12.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.12.2";
1
+ export const SDK_VERSION = "0.12.3";
@@ -29,16 +29,11 @@ function mitosis_styling(node, vars) {
29
29
  {:else}
30
30
  <button
31
31
  use:mitosis_styling={attributes.style}
32
+ role="button"
32
33
  {...filterAttrs(attributes, "on:", false)}
33
- class={attributes.class + " button"}
34
+ class={`builder-button ${attributes.class}`}
34
35
  use:setAttrs={filterAttrs(attributes, "on:", true)}
35
36
  >
36
37
  {text}
37
38
  </button>
38
- {/if}
39
-
40
- <style>
41
- .button {
42
- all: unset;
43
- }
44
- </style>
39
+ {/if}
@@ -14,6 +14,10 @@ ${getFontCss({
14
14
  customFonts: customFonts,
15
15
  })}
16
16
 
17
+ .builder-button {
18
+ all: unset;
19
+ }
20
+
17
21
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
18
22
  margin: 0;
19
23
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.12.2";
1
+ export declare const SDK_VERSION = "0.12.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.12.2";
1
+ export const SDK_VERSION = "0.12.3";
@@ -29,16 +29,11 @@ function mitosis_styling(node, vars) {
29
29
  {:else}
30
30
  <button
31
31
  use:mitosis_styling={attributes.style}
32
+ role="button"
32
33
  {...filterAttrs(attributes, "on:", false)}
33
- class={attributes.class + " button"}
34
+ class={`builder-button ${attributes.class}`}
34
35
  use:setAttrs={filterAttrs(attributes, "on:", true)}
35
36
  >
36
37
  {text}
37
38
  </button>
38
- {/if}
39
-
40
- <style>
41
- .button {
42
- all: unset;
43
- }
44
- </style>
39
+ {/if}
@@ -14,6 +14,10 @@ ${getFontCss({
14
14
  customFonts: customFonts,
15
15
  })}
16
16
 
17
+ .builder-button {
18
+ all: unset;
19
+ }
20
+
17
21
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
18
22
  margin: 0;
19
23
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.12.2";
1
+ export declare const SDK_VERSION = "0.12.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.12.2";
1
+ export const SDK_VERSION = "0.12.3";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "0.12.2",
4
+ "version": "0.12.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "lib",
@@ -32,16 +32,11 @@
32
32
  {:else}
33
33
  <button
34
34
  use:mitosis_styling={attributes.style}
35
+ role="button"
35
36
  {...filterAttrs(attributes, "on:", false)}
36
- class={attributes.class + " button"}
37
+ class={`builder-button ${attributes.class}`}
37
38
  use:setAttrs={filterAttrs(attributes, "on:", true)}
38
39
  >
39
40
  {text}
40
41
  </button>
41
- {/if}
42
-
43
- <style>
44
- .button {
45
- all: unset;
46
- }
47
- </style>
42
+ {/if}
@@ -24,6 +24,10 @@ ${getFontCss({
24
24
  customFonts: customFonts,
25
25
  })}
26
26
 
27
+ .builder-button {
28
+ all: unset;
29
+ }
30
+
27
31
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
28
32
  margin: 0;
29
33
  }
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.12.2"
1
+ export const SDK_VERSION = "0.12.3"