@pisell/materials 1.0.244 → 1.0.245

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.
@@ -200,7 +200,7 @@ const ButtonMeta: ComponentMetadata = {
200
200
  },
201
201
  propType: {
202
202
  type: "oneOf",
203
- value: ["primary", "ghost", "dashed", "danger", "link", "text"],
203
+ value: ["primary", "default", "ghost", "dashed", "danger", "link", "text"],
204
204
  },
205
205
  setter: [
206
206
  {
@@ -211,6 +211,10 @@ const ButtonMeta: ComponentMetadata = {
211
211
  title: "primary button",
212
212
  value: "primary",
213
213
  },
214
+ {
215
+ title: "default button",
216
+ value: "default",
217
+ },
214
218
  {
215
219
  title: "dashed button",
216
220
  value: "dashed",
@@ -220,7 +224,7 @@ const ButtonMeta: ComponentMetadata = {
220
224
  value: "danger",
221
225
  },
222
226
  {
223
- title: "link butto",
227
+ title: "link button",
224
228
  value: "link",
225
229
  },
226
230
  {
@@ -305,8 +309,8 @@ const ButtonMeta: ComponentMetadata = {
305
309
  },
306
310
  tip: "icon | Set the icon component of the button",
307
311
  },
308
- propType: "node",
309
- setter: {
312
+ propType: { type: "oneOfType", value: ["node"] },
313
+ setter: [{
310
314
  componentName: "SlotSetter",
311
315
  initialValue: {
312
316
  type: "JSSlot",
@@ -322,7 +326,8 @@ const ButtonMeta: ComponentMetadata = {
322
326
  },
323
327
  ],
324
328
  },
325
- },
329
+ defaultValue: null
330
+ }],
326
331
  },
327
332
  {
328
333
  name: "block",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.244",
3
+ "version": "1.0.245",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -63,8 +63,8 @@
63
63
  "react-virtualized-auto-sizer": "^1.0.20",
64
64
  "crypto-js": "^4.2.0",
65
65
  "@pisell/utils": "1.0.23",
66
- "@pisell/date-picker": "1.0.69",
67
- "@pisell/icon": "0.0.8"
66
+ "@pisell/icon": "0.0.8",
67
+ "@pisell/date-picker": "1.0.69"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",