@weaverse/react 0.4.0 → 0.4.1

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/dist/index.js CHANGED
@@ -77,19 +77,14 @@ var base_default = BaseElement;
77
77
  // src/elements/button.tsx
78
78
  var React2 = __toESM(require("react"));
79
79
  var Button = React2.forwardRef((props, ref) => {
80
- const _a = props, { style } = _a, rest = __objRest(_a, ["style"]);
80
+ const _a = props, { style, buttonType, css } = _a, rest = __objRest(_a, ["style", "buttonType", "css"]);
81
81
  return /* @__PURE__ */ React2.createElement("button", __spreadValues({
82
82
  ref,
83
83
  style
84
84
  }, rest), props.value);
85
85
  });
86
86
  Button.defaultProps = {
87
- value: "Click me",
88
- style: {
89
- borderRadius: "9999px",
90
- fontSize: "13px",
91
- padding: "10px 15px"
92
- }
87
+ value: "Click me"
93
88
  };
94
89
  var schema2 = {
95
90
  title: "Button",
@@ -114,6 +109,16 @@ var schema2 = {
114
109
  key: "applyOverlay",
115
110
  label: "Apply Overlay",
116
111
  type: "switch"
112
+ },
113
+ {
114
+ binding: "data",
115
+ key: "buttonType",
116
+ label: "Button Type",
117
+ type: "select",
118
+ options: [
119
+ { value: 1, label: "One" },
120
+ { value: 2, label: "Two" }
121
+ ]
117
122
  }
118
123
  ]
119
124
  },
@@ -147,7 +152,16 @@ var schema2 = {
147
152
  ]
148
153
  }
149
154
  ],
150
- toolbar: []
155
+ toolbar: [],
156
+ data: {
157
+ css: {
158
+ "@desktop": {
159
+ borderRadius: "9999px",
160
+ fontSize: "13px",
161
+ padding: "10px 15px"
162
+ }
163
+ }
164
+ }
151
165
  };
152
166
  var button_default = Button;
153
167
 
package/dist/index.mjs CHANGED
@@ -50,19 +50,14 @@ var base_default = BaseElement;
50
50
  // src/elements/button.tsx
51
51
  import * as React2 from "react";
52
52
  var Button = React2.forwardRef((props, ref) => {
53
- const _a = props, { style } = _a, rest = __objRest(_a, ["style"]);
53
+ const _a = props, { style, buttonType, css } = _a, rest = __objRest(_a, ["style", "buttonType", "css"]);
54
54
  return /* @__PURE__ */ React2.createElement("button", __spreadValues({
55
55
  ref,
56
56
  style
57
57
  }, rest), props.value);
58
58
  });
59
59
  Button.defaultProps = {
60
- value: "Click me",
61
- style: {
62
- borderRadius: "9999px",
63
- fontSize: "13px",
64
- padding: "10px 15px"
65
- }
60
+ value: "Click me"
66
61
  };
67
62
  var schema2 = {
68
63
  title: "Button",
@@ -87,6 +82,16 @@ var schema2 = {
87
82
  key: "applyOverlay",
88
83
  label: "Apply Overlay",
89
84
  type: "switch"
85
+ },
86
+ {
87
+ binding: "data",
88
+ key: "buttonType",
89
+ label: "Button Type",
90
+ type: "select",
91
+ options: [
92
+ { value: 1, label: "One" },
93
+ { value: 2, label: "Two" }
94
+ ]
90
95
  }
91
96
  ]
92
97
  },
@@ -120,7 +125,16 @@ var schema2 = {
120
125
  ]
121
126
  }
122
127
  ],
123
- toolbar: []
128
+ toolbar: [],
129
+ data: {
130
+ css: {
131
+ "@desktop": {
132
+ borderRadius: "9999px",
133
+ fontSize: "13px",
134
+ padding: "10px 15px"
135
+ }
136
+ }
137
+ }
124
138
  };
125
139
  var button_default = Button;
126
140
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.4.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -31,6 +31,6 @@
31
31
  "name": "@weaverse/react",
32
32
  "author": "Weaverse Team",
33
33
  "dependencies": {
34
- "@weaverse/core": "^0.4.0"
34
+ "@weaverse/core": "^0.4.1"
35
35
  }
36
36
  }