@builder.io/sdk-qwik 0.0.8 → 0.0.9

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.
Files changed (106) hide show
  1. package/README.md +65 -2
  2. package/lib/index.qwik.cjs +104 -7
  3. package/lib/index.qwik.mjs +104 -7
  4. package/package.json +1 -1
  5. package/src/blocks/button/button.jsx +197 -0
  6. package/src/blocks/button/component-info.js +41 -0
  7. package/src/blocks/columns/columns.jsx +267 -0
  8. package/src/blocks/columns/component-info.js +242 -0
  9. package/src/blocks/custom-code/component-info.js +31 -0
  10. package/src/blocks/custom-code/custom-code.jsx +130 -0
  11. package/src/blocks/embed/component-info.js +44 -0
  12. package/src/blocks/embed/embed.jsx +130 -0
  13. package/src/blocks/embed/helpers.js +9 -0
  14. package/src/blocks/form/builder-blocks.jsx +86 -0
  15. package/src/blocks/form/component-info.js +262 -0
  16. package/src/blocks/form/form.jsx +782 -0
  17. package/src/blocks/fragment/component-info.js +11 -0
  18. package/src/blocks/fragment/fragment.jsx +59 -0
  19. package/src/blocks/image/component-info.js +151 -0
  20. package/src/blocks/image/image.helpers.js +48 -0
  21. package/src/blocks/image/image.jsx +554 -0
  22. package/src/blocks/img/component-info.js +20 -0
  23. package/src/blocks/img/img.jsx +76 -0
  24. package/src/blocks/input/component-info.js +74 -0
  25. package/src/blocks/input/input.jsx +87 -0
  26. package/src/blocks/raw-text/component-info.js +16 -0
  27. package/src/blocks/raw-text/raw-text.jsx +53 -0
  28. package/src/blocks/section/component-info.js +49 -0
  29. package/src/blocks/section/section.jsx +97 -0
  30. package/src/blocks/select/component-info.js +59 -0
  31. package/src/blocks/select/select.jsx +149 -0
  32. package/src/blocks/submit-button/component-info.js +28 -0
  33. package/src/blocks/submit-button/submit-button.jsx +87 -0
  34. package/src/blocks/symbol/component-info.js +43 -0
  35. package/src/blocks/symbol/symbol.jsx +211 -0
  36. package/src/blocks/text/component-info.js +24 -0
  37. package/src/blocks/text/text.jsx +46 -0
  38. package/src/blocks/textarea/component-info.js +47 -0
  39. package/src/blocks/textarea/textarea.jsx +65 -0
  40. package/src/blocks/util.js +7 -0
  41. package/src/blocks/video/component-info.js +106 -0
  42. package/src/blocks/video/video.jsx +103 -0
  43. package/src/components/render-block/block-styles.jsx +174 -0
  44. package/src/components/render-block/render-block.helpers.js +23 -0
  45. package/src/components/render-block/render-block.jsx +733 -0
  46. package/src/components/render-block/render-component.jsx +245 -0
  47. package/src/components/render-block/render-repeated-block.jsx +104 -0
  48. package/src/components/render-block/types.js +0 -0
  49. package/src/components/render-blocks.jsx +387 -0
  50. package/src/components/render-content/components/render-styles.jsx +126 -0
  51. package/src/components/render-content/index.js +4 -0
  52. package/src/components/render-content/render-content.jsx +650 -0
  53. package/src/components/render-inlined-styles.jsx +141 -0
  54. package/src/constants/builder-registered-components.js +48 -0
  55. package/src/constants/device-sizes.js +21 -0
  56. package/src/constants/target.js +4 -0
  57. package/src/context/builder.context.js +5 -0
  58. package/src/functions/camel-to-kebab-case.js +4 -0
  59. package/src/functions/convert-style-object.js +6 -0
  60. package/src/functions/evaluate.js +28 -0
  61. package/src/functions/event-handler-name.js +7 -0
  62. package/src/functions/get-block-actions.js +23 -0
  63. package/src/functions/get-block-component-options.js +28 -0
  64. package/src/functions/get-block-properties.js +29 -0
  65. package/src/functions/get-block-styles.js +34 -0
  66. package/src/functions/get-block-tag.js +6 -0
  67. package/src/functions/get-builder-search-params/fn.test.js +13 -0
  68. package/src/functions/get-builder-search-params/index.js +33 -0
  69. package/src/functions/get-content/ab-testing.js +38 -0
  70. package/src/functions/get-content/fn.test.js +31 -0
  71. package/src/functions/get-content/index.js +96 -0
  72. package/src/functions/get-content/types.js +0 -0
  73. package/src/functions/get-fetch.js +34 -0
  74. package/src/functions/get-global-this.js +18 -0
  75. package/src/functions/get-processed-block.js +53 -0
  76. package/src/functions/get-processed-block.test.js +32 -0
  77. package/src/functions/if-target.js +15 -0
  78. package/src/functions/is-browser.js +6 -0
  79. package/src/functions/is-editing.js +7 -0
  80. package/src/functions/is-iframe.js +7 -0
  81. package/src/functions/is-previewing.js +14 -0
  82. package/src/functions/on-change.js +27 -0
  83. package/src/functions/on-change.test.js +19 -0
  84. package/src/functions/register-component.js +72 -0
  85. package/src/functions/register.js +29 -0
  86. package/src/functions/sanitize-styles.js +5 -0
  87. package/src/functions/set-editor-settings.js +15 -0
  88. package/src/functions/set.js +11 -0
  89. package/src/functions/set.test.js +16 -0
  90. package/src/functions/track.js +22 -0
  91. package/src/functions/transform-block.js +6 -0
  92. package/src/helpers/css.js +12 -0
  93. package/src/helpers/flatten.js +34 -0
  94. package/src/index-helpers/blocks-exports.js +22 -0
  95. package/src/index-helpers/top-of-file.js +4 -0
  96. package/src/index.js +10 -0
  97. package/src/scripts/init-editing.js +79 -0
  98. package/src/types/builder-block.js +0 -0
  99. package/src/types/builder-content.js +0 -0
  100. package/src/types/components.js +0 -0
  101. package/src/types/deep-partial.js +0 -0
  102. package/src/types/element.js +0 -0
  103. package/src/types/targets.js +0 -0
  104. package/src/types/typescript.js +0 -0
  105. package/types.d.ts +7 -12
  106. package/root.json +0 -1176
@@ -0,0 +1,74 @@
1
+ const componentInfo = {
2
+ name: "Form:Input",
3
+ builtIn: true,
4
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
5
+ inputs: [
6
+ {
7
+ name: "type",
8
+ type: "text",
9
+ enum: [
10
+ "text",
11
+ "number",
12
+ "email",
13
+ "url",
14
+ "checkbox",
15
+ "radio",
16
+ "range",
17
+ "date",
18
+ "datetime-local",
19
+ "search",
20
+ "tel",
21
+ "time",
22
+ "file",
23
+ "month",
24
+ "week",
25
+ "password",
26
+ "color",
27
+ "hidden"
28
+ ],
29
+ defaultValue: "text"
30
+ },
31
+ {
32
+ name: "name",
33
+ type: "string",
34
+ required: true,
35
+ helperText: 'Every input in a form needs a unique name describing what it takes, e.g. "email"'
36
+ },
37
+ {
38
+ name: "placeholder",
39
+ type: "string",
40
+ defaultValue: "Hello there",
41
+ helperText: "Text to display when there is no value"
42
+ },
43
+ {
44
+ name: "defaultValue",
45
+ type: "string"
46
+ },
47
+ {
48
+ name: "value",
49
+ type: "string",
50
+ advanced: true
51
+ },
52
+ {
53
+ name: "required",
54
+ type: "boolean",
55
+ helperText: "Is this input required to be filled out to submit a form",
56
+ defaultValue: false
57
+ }
58
+ ],
59
+ noWrap: true,
60
+ static: true,
61
+ defaultStyles: {
62
+ paddingTop: "10px",
63
+ paddingBottom: "10px",
64
+ paddingLeft: "10px",
65
+ paddingRight: "10px",
66
+ borderRadius: "3px",
67
+ borderWidth: "1px",
68
+ borderStyle: "solid",
69
+ borderColor: "#ccc"
70
+ }
71
+ };
72
+ export {
73
+ componentInfo
74
+ };
@@ -0,0 +1,87 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { isEditing } from "../../functions/is-editing.js";
4
+ import { Fragment, Host, component$, h } from "@builder.io/qwik";
5
+ export const FormInputComponent = component$(
6
+ (props) => {
7
+ return (
8
+ <Host
9
+ {...props.attributes}
10
+ key={
11
+ isEditing() && props.defaultValue ? props.defaultValue : "default-key"
12
+ }
13
+ placeholder={props.placeholder}
14
+ type={props.type}
15
+ name={props.name}
16
+ value={props.value}
17
+ defaultValue={props.defaultValue}
18
+ required={props.required}
19
+ ></Host>
20
+ );
21
+ },
22
+ { tagName: "input" }
23
+ );
24
+ export default FormInputComponent;
25
+ export const COMPONENT = {
26
+ "@type": "@builder.io/mitosis/component",
27
+ imports: [
28
+ {
29
+ imports: {
30
+ isEditing: "isEditing",
31
+ },
32
+ path: "../../functions/is-editing.js",
33
+ },
34
+ ],
35
+ exports: {},
36
+ inputs: [],
37
+ meta: {},
38
+ refs: {},
39
+ state: {},
40
+ children: [
41
+ {
42
+ "@type": "@builder.io/mitosis/node",
43
+ name: "Host",
44
+ meta: {},
45
+ scope: {},
46
+ properties: {},
47
+ bindings: {
48
+ _spread: {
49
+ code: "props.attributes",
50
+ },
51
+ key: {
52
+ code: "isEditing() && props.defaultValue ? props.defaultValue : 'default-key'",
53
+ },
54
+ placeholder: {
55
+ code: "props.placeholder",
56
+ },
57
+ type: {
58
+ code: "props.type",
59
+ },
60
+ name: {
61
+ code: "props.name",
62
+ },
63
+ value: {
64
+ code: "props.value",
65
+ },
66
+ defaultValue: {
67
+ code: "props.defaultValue",
68
+ },
69
+ required: {
70
+ code: "props.required",
71
+ },
72
+ },
73
+ children: [],
74
+ },
75
+ ],
76
+ hooks: {},
77
+ context: {
78
+ get: {},
79
+ set: {},
80
+ },
81
+ name: "FormInputComponent",
82
+ subComponents: [],
83
+ interfaces: [
84
+ "export interface FormInputProps {\n type?: string;\n attributes?: any;\n name?: string;\n value?: string;\n placeholder?: string;\n defaultValue?: string;\n required?: boolean;\n}",
85
+ ],
86
+ propsTypeRef: "FormInputProps",
87
+ };
@@ -0,0 +1,16 @@
1
+ const componentInfo = {
2
+ name: "Builder:RawText",
3
+ hideFromInsertMenu: true,
4
+ builtIn: true,
5
+ inputs: [
6
+ {
7
+ name: "text",
8
+ bubble: true,
9
+ type: "longText",
10
+ required: true
11
+ }
12
+ ]
13
+ };
14
+ export {
15
+ componentInfo
16
+ };
@@ -0,0 +1,53 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { Fragment, Host, component$, h } from "@builder.io/qwik";
4
+ export const RawText = component$(
5
+ (props) => {
6
+ return (
7
+ <Host
8
+ class={props.attributes?.class || props.attributes?.className}
9
+ dangerouslySetInnerHTML={props.text || ""}
10
+ ></Host>
11
+ );
12
+ },
13
+ { tagName: "span" }
14
+ );
15
+ export default RawText;
16
+ export const COMPONENT = {
17
+ "@type": "@builder.io/mitosis/component",
18
+ imports: [],
19
+ exports: {},
20
+ inputs: [],
21
+ meta: {},
22
+ refs: {},
23
+ state: {},
24
+ children: [
25
+ {
26
+ "@type": "@builder.io/mitosis/node",
27
+ name: "Host",
28
+ meta: {},
29
+ scope: {},
30
+ properties: {},
31
+ bindings: {
32
+ class: {
33
+ code: "props.attributes?.class || props.attributes?.className",
34
+ },
35
+ innerHTML: {
36
+ code: "props.text || ''",
37
+ },
38
+ },
39
+ children: [],
40
+ },
41
+ ],
42
+ hooks: {},
43
+ context: {
44
+ get: {},
45
+ set: {},
46
+ },
47
+ name: "RawText",
48
+ subComponents: [],
49
+ interfaces: [
50
+ "export interface RawTextProps {\n attributes?: any;\n text?: string; // builderBlock?: any;\n\n}",
51
+ ],
52
+ propsTypeRef: "RawTextProps",
53
+ };
@@ -0,0 +1,49 @@
1
+ const componentInfo = {
2
+ name: "Core:Section",
3
+ static: true,
4
+ builtIn: true,
5
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
6
+ inputs: [
7
+ {
8
+ name: "maxWidth",
9
+ type: "number",
10
+ defaultValue: 1200
11
+ },
12
+ {
13
+ name: "lazyLoad",
14
+ type: "boolean",
15
+ defaultValue: false,
16
+ advanced: true,
17
+ description: "Only render this section when in view"
18
+ }
19
+ ],
20
+ defaultStyles: {
21
+ paddingLeft: "20px",
22
+ paddingRight: "20px",
23
+ paddingTop: "50px",
24
+ paddingBottom: "50px",
25
+ marginTop: "0px",
26
+ width: "100vw",
27
+ marginLeft: "calc(50% - 50vw)"
28
+ },
29
+ canHaveChildren: true,
30
+ defaultChildren: [
31
+ {
32
+ "@type": "@builder.io/sdk:Element",
33
+ responsiveStyles: {
34
+ large: {
35
+ textAlign: "center"
36
+ }
37
+ },
38
+ component: {
39
+ name: "Text",
40
+ options: {
41
+ text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
42
+ }
43
+ }
44
+ }
45
+ ]
46
+ };
47
+ export {
48
+ componentInfo
49
+ };
@@ -0,0 +1,97 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { Fragment, Host, Slot, component$, h } from "@builder.io/qwik";
4
+ export const SectionComponent = component$(
5
+ (props) => {
6
+ return (
7
+ <Host
8
+ {...props.attributes}
9
+ style={(() => {
10
+ props.maxWidth && typeof props.maxWidth === "number"
11
+ ? {
12
+ maxWidth: props.maxWidth,
13
+ }
14
+ : undefined;
15
+ })()}
16
+ >
17
+ <Slot></Slot>
18
+ </Host>
19
+ );
20
+ },
21
+ { tagName: "section" }
22
+ );
23
+ export default SectionComponent;
24
+ export const COMPONENT = {
25
+ "@type": "@builder.io/mitosis/component",
26
+ imports: [],
27
+ exports: {},
28
+ inputs: [],
29
+ meta: {},
30
+ refs: {},
31
+ state: {},
32
+ children: [
33
+ {
34
+ "@type": "@builder.io/mitosis/node",
35
+ name: "Host",
36
+ meta: {},
37
+ scope: {},
38
+ properties: {},
39
+ bindings: {
40
+ _spread: {
41
+ code: "props.attributes",
42
+ },
43
+ style: {
44
+ code: "props.maxWidth && typeof props.maxWidth === 'number' ? {\n maxWidth: props.maxWidth\n} : undefined",
45
+ },
46
+ },
47
+ children: [
48
+ {
49
+ "@type": "@builder.io/mitosis/node",
50
+ name: "div",
51
+ meta: {},
52
+ scope: {},
53
+ properties: {
54
+ _text: "\n ",
55
+ },
56
+ bindings: {},
57
+ children: [],
58
+ },
59
+ {
60
+ "@type": "@builder.io/mitosis/node",
61
+ name: "div",
62
+ meta: {},
63
+ scope: {},
64
+ properties: {},
65
+ bindings: {
66
+ _text: {
67
+ code: "props.children",
68
+ },
69
+ },
70
+ children: [],
71
+ },
72
+ {
73
+ "@type": "@builder.io/mitosis/node",
74
+ name: "div",
75
+ meta: {},
76
+ scope: {},
77
+ properties: {
78
+ _text: "\n ",
79
+ },
80
+ bindings: {},
81
+ children: [],
82
+ },
83
+ ],
84
+ },
85
+ ],
86
+ hooks: {},
87
+ context: {
88
+ get: {},
89
+ set: {},
90
+ },
91
+ name: "SectionComponent",
92
+ subComponents: [],
93
+ interfaces: [
94
+ "export interface SectionProps {\n maxWidth?: number;\n attributes?: any;\n children?: any;\n builderBlock?: any;\n}",
95
+ ],
96
+ propsTypeRef: "SectionProps",
97
+ };
@@ -0,0 +1,59 @@
1
+ const componentInfo = {
2
+ name: "Form:Select",
3
+ builtIn: true,
4
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
5
+ defaultStyles: {
6
+ alignSelf: "flex-start"
7
+ },
8
+ inputs: [
9
+ {
10
+ name: "options",
11
+ type: "list",
12
+ required: true,
13
+ subFields: [
14
+ {
15
+ name: "value",
16
+ type: "text",
17
+ required: true
18
+ },
19
+ {
20
+ name: "name",
21
+ type: "text"
22
+ }
23
+ ],
24
+ defaultValue: [
25
+ {
26
+ value: "option 1"
27
+ },
28
+ {
29
+ value: "option 2"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ name: "name",
35
+ type: "string",
36
+ required: true,
37
+ helperText: 'Every select in a form needs a unique name describing what it gets, e.g. "email"'
38
+ },
39
+ {
40
+ name: "defaultValue",
41
+ type: "string"
42
+ },
43
+ {
44
+ name: "value",
45
+ type: "string",
46
+ advanced: true
47
+ },
48
+ {
49
+ name: "required",
50
+ type: "boolean",
51
+ defaultValue: false
52
+ }
53
+ ],
54
+ static: true,
55
+ noWrap: true
56
+ };
57
+ export {
58
+ componentInfo
59
+ };
@@ -0,0 +1,149 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { isEditing } from "../../functions/is-editing.js";
4
+ import { Fragment, Host, component$, h } from "@builder.io/qwik";
5
+ export const SelectComponent = component$(
6
+ (props) => {
7
+ return (
8
+ <Host
9
+ {...props.attributes}
10
+ value={props.value}
11
+ key={
12
+ isEditing() && props.defaultValue ? props.defaultValue : "default-key"
13
+ }
14
+ defaultValue={props.defaultValue}
15
+ name={props.name}
16
+ >
17
+ {(props.options || []).map((option) => {
18
+ return (
19
+ <option value={option.value}>{option.name || option.value}</option>
20
+ );
21
+ })}
22
+ </Host>
23
+ );
24
+ },
25
+ { tagName: "select" }
26
+ );
27
+ export default SelectComponent;
28
+ export const COMPONENT = {
29
+ "@type": "@builder.io/mitosis/component",
30
+ imports: [
31
+ {
32
+ imports: {
33
+ isEditing: "isEditing",
34
+ },
35
+ path: "../../functions/is-editing.js",
36
+ },
37
+ ],
38
+ exports: {},
39
+ inputs: [],
40
+ meta: {},
41
+ refs: {},
42
+ state: {},
43
+ children: [
44
+ {
45
+ "@type": "@builder.io/mitosis/node",
46
+ name: "Host",
47
+ meta: {},
48
+ scope: {},
49
+ properties: {},
50
+ bindings: {
51
+ _spread: {
52
+ code: "props.attributes",
53
+ },
54
+ value: {
55
+ code: "props.value",
56
+ },
57
+ key: {
58
+ code: "isEditing() && props.defaultValue ? props.defaultValue : 'default-key'",
59
+ },
60
+ defaultValue: {
61
+ code: "props.defaultValue",
62
+ },
63
+ name: {
64
+ code: "props.name",
65
+ },
66
+ },
67
+ children: [
68
+ {
69
+ "@type": "@builder.io/mitosis/node",
70
+ name: "div",
71
+ meta: {},
72
+ scope: {},
73
+ properties: {
74
+ _text: "\n ",
75
+ },
76
+ bindings: {},
77
+ children: [],
78
+ },
79
+ {
80
+ "@type": "@builder.io/mitosis/node",
81
+ name: "For",
82
+ meta: {},
83
+ scope: {
84
+ For: ["option"],
85
+ },
86
+ properties: {
87
+ _forName: "option",
88
+ },
89
+ bindings: {
90
+ each: {
91
+ code: "props.options",
92
+ },
93
+ },
94
+ children: [
95
+ {
96
+ "@type": "@builder.io/mitosis/node",
97
+ name: "option",
98
+ meta: {},
99
+ scope: {},
100
+ properties: {},
101
+ bindings: {
102
+ value: {
103
+ code: "option.value",
104
+ },
105
+ },
106
+ children: [
107
+ {
108
+ "@type": "@builder.io/mitosis/node",
109
+ name: "div",
110
+ meta: {},
111
+ scope: {},
112
+ properties: {},
113
+ bindings: {
114
+ _text: {
115
+ code: "option.name || option.value",
116
+ },
117
+ },
118
+ children: [],
119
+ },
120
+ ],
121
+ },
122
+ ],
123
+ },
124
+ {
125
+ "@type": "@builder.io/mitosis/node",
126
+ name: "div",
127
+ meta: {},
128
+ scope: {},
129
+ properties: {
130
+ _text: "\n ",
131
+ },
132
+ bindings: {},
133
+ children: [],
134
+ },
135
+ ],
136
+ },
137
+ ],
138
+ hooks: {},
139
+ context: {
140
+ get: {},
141
+ set: {},
142
+ },
143
+ name: "SelectComponent",
144
+ subComponents: [],
145
+ interfaces: [
146
+ "export interface FormSelectProps {\n options?: {\n name?: string;\n value: string;\n }[];\n attributes?: any;\n name?: string;\n value?: string;\n defaultValue?: string;\n}",
147
+ ],
148
+ propsTypeRef: "FormSelectProps",
149
+ };
@@ -0,0 +1,28 @@
1
+ const componentInfo = {
2
+ name: "Form:SubmitButton",
3
+ builtIn: true,
4
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
5
+ defaultStyles: {
6
+ appearance: "none",
7
+ paddingTop: "15px",
8
+ paddingBottom: "15px",
9
+ paddingLeft: "25px",
10
+ paddingRight: "25px",
11
+ backgroundColor: "#3898EC",
12
+ color: "white",
13
+ borderRadius: "4px",
14
+ cursor: "pointer"
15
+ },
16
+ inputs: [
17
+ {
18
+ name: "text",
19
+ type: "text",
20
+ defaultValue: "Click me"
21
+ }
22
+ ],
23
+ static: true,
24
+ noWrap: true
25
+ };
26
+ export {
27
+ componentInfo
28
+ };
@@ -0,0 +1,87 @@
1
+ // GENERATED BY MITOSIS
2
+
3
+ import { Fragment, Host, component$, h } from "@builder.io/qwik";
4
+ export const SubmitButton = component$(
5
+ (props) => {
6
+ return (
7
+ <Host type="submit" {...props.attributes}>
8
+ <>{props.text}</>
9
+ </Host>
10
+ );
11
+ },
12
+ { tagName: "button" }
13
+ );
14
+ export default SubmitButton;
15
+ export const COMPONENT = {
16
+ "@type": "@builder.io/mitosis/component",
17
+ imports: [],
18
+ exports: {},
19
+ inputs: [],
20
+ meta: {},
21
+ refs: {},
22
+ state: {},
23
+ children: [
24
+ {
25
+ "@type": "@builder.io/mitosis/node",
26
+ name: "Host",
27
+ meta: {},
28
+ scope: {},
29
+ properties: {
30
+ type: "submit",
31
+ },
32
+ bindings: {
33
+ _spread: {
34
+ code: "props.attributes",
35
+ },
36
+ },
37
+ children: [
38
+ {
39
+ "@type": "@builder.io/mitosis/node",
40
+ name: "div",
41
+ meta: {},
42
+ scope: {},
43
+ properties: {
44
+ _text: "\n ",
45
+ },
46
+ bindings: {},
47
+ children: [],
48
+ },
49
+ {
50
+ "@type": "@builder.io/mitosis/node",
51
+ name: "div",
52
+ meta: {},
53
+ scope: {},
54
+ properties: {},
55
+ bindings: {
56
+ _text: {
57
+ code: "props.text",
58
+ },
59
+ },
60
+ children: [],
61
+ },
62
+ {
63
+ "@type": "@builder.io/mitosis/node",
64
+ name: "div",
65
+ meta: {},
66
+ scope: {},
67
+ properties: {
68
+ _text: "\n ",
69
+ },
70
+ bindings: {},
71
+ children: [],
72
+ },
73
+ ],
74
+ },
75
+ ],
76
+ hooks: {},
77
+ context: {
78
+ get: {},
79
+ set: {},
80
+ },
81
+ name: "SubmitButton",
82
+ subComponents: [],
83
+ interfaces: [
84
+ "export interface ButtonProps {\n attributes?: any;\n text?: string;\n}",
85
+ ],
86
+ propsTypeRef: "ButtonProps",
87
+ };