@next-bricks/form 1.18.6 → 1.19.0

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 (39) hide show
  1. package/dist/bricks.json +11 -11
  2. package/dist/chunks/1418.af4ae9fa.js +3 -0
  3. package/dist/chunks/1418.af4ae9fa.js.map +1 -0
  4. package/dist/chunks/{149.ff459c34.js → 149.3be7b324.js} +2 -2
  5. package/dist/chunks/149.3be7b324.js.map +1 -0
  6. package/dist/chunks/eo-icon-select.7e1b98a9.js +3 -0
  7. package/dist/chunks/eo-icon-select.7e1b98a9.js.map +1 -0
  8. package/dist/chunks/eo-search.66add2ad.js +2 -0
  9. package/dist/chunks/eo-search.66add2ad.js.map +1 -0
  10. package/dist/chunks/eo-upload-file.04ac63ee.js +3 -0
  11. package/dist/chunks/eo-upload-file.04ac63ee.js.map +1 -0
  12. package/dist/chunks/eo-upload-image.863b4bb0.js +3 -0
  13. package/dist/chunks/eo-upload-image.863b4bb0.js.map +1 -0
  14. package/dist/chunks/{main.6fd1e346.js → main.20d537dc.js} +2 -2
  15. package/dist/chunks/{main.6fd1e346.js.map → main.20d537dc.js.map} +1 -1
  16. package/dist/examples.json +5 -5
  17. package/dist/{index.1ca743c9.js → index.d3b5b77b.js} +2 -2
  18. package/dist/{index.1ca743c9.js.map → index.d3b5b77b.js.map} +1 -1
  19. package/dist/manifest.json +169 -154
  20. package/dist/types.json +172 -124
  21. package/dist-types/icon-select/index.d.ts +3 -0
  22. package/dist-types/upload/Upload.d.ts +1 -0
  23. package/dist-types/upload/upload-image/index.d.ts +6 -0
  24. package/package.json +2 -2
  25. package/dist/chunks/1418.de8ee716.js +0 -3
  26. package/dist/chunks/1418.de8ee716.js.map +0 -1
  27. package/dist/chunks/149.ff459c34.js.map +0 -1
  28. package/dist/chunks/eo-icon-select.55cc1eec.js +0 -3
  29. package/dist/chunks/eo-icon-select.55cc1eec.js.map +0 -1
  30. package/dist/chunks/eo-search.c6749234.js +0 -2
  31. package/dist/chunks/eo-search.c6749234.js.map +0 -1
  32. package/dist/chunks/eo-upload-file.fbd3dc1f.js +0 -3
  33. package/dist/chunks/eo-upload-file.fbd3dc1f.js.map +0 -1
  34. package/dist/chunks/eo-upload-image.5bd2ef86.js +0 -3
  35. package/dist/chunks/eo-upload-image.5bd2ef86.js.map +0 -1
  36. /package/dist/chunks/{1418.de8ee716.js.LICENSE.txt → 1418.af4ae9fa.js.LICENSE.txt} +0 -0
  37. /package/dist/chunks/{eo-icon-select.55cc1eec.js.LICENSE.txt → eo-icon-select.7e1b98a9.js.LICENSE.txt} +0 -0
  38. /package/dist/chunks/{eo-upload-file.fbd3dc1f.js.LICENSE.txt → eo-upload-file.04ac63ee.js.LICENSE.txt} +0 -0
  39. /package/dist/chunks/{eo-upload-image.5bd2ef86.js.LICENSE.txt → eo-upload-image.863b4bb0.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -1,128 +1,4 @@
1
1
  {
2
- "eo-submit-buttons": {
3
- "properties": [
4
- {
5
- "name": "submitText",
6
- "annotation": {
7
- "type": "keyword",
8
- "value": "string"
9
- }
10
- },
11
- {
12
- "name": "cancelText",
13
- "annotation": {
14
- "type": "keyword",
15
- "value": "string"
16
- }
17
- },
18
- {
19
- "name": "disableAfterClick",
20
- "annotation": {
21
- "type": "keyword",
22
- "value": "boolean"
23
- }
24
- },
25
- {
26
- "name": "submitDisabled",
27
- "annotation": {
28
- "type": "keyword",
29
- "value": "boolean"
30
- }
31
- },
32
- {
33
- "name": "submitType",
34
- "annotation": {
35
- "type": "reference",
36
- "typeName": {
37
- "type": "identifier",
38
- "name": "ButtonType"
39
- }
40
- }
41
- },
42
- {
43
- "name": "cancelType",
44
- "annotation": {
45
- "type": "reference",
46
- "typeName": {
47
- "type": "identifier",
48
- "name": "ButtonType"
49
- }
50
- }
51
- },
52
- {
53
- "name": "themeVariant",
54
- "annotation": {
55
- "type": "union",
56
- "types": [
57
- {
58
- "type": "jsLiteral",
59
- "value": "default"
60
- },
61
- {
62
- "type": "jsLiteral",
63
- "value": "elevo"
64
- }
65
- ]
66
- }
67
- }
68
- ],
69
- "events": [
70
- {
71
- "name": "submit",
72
- "detail": {
73
- "annotation": {
74
- "type": "keyword",
75
- "value": "void"
76
- }
77
- }
78
- },
79
- {
80
- "name": "cancel",
81
- "detail": {
82
- "annotation": {
83
- "type": "keyword",
84
- "value": "void"
85
- }
86
- }
87
- }
88
- ],
89
- "methods": [],
90
- "types": [
91
- {
92
- "type": "typeAlias",
93
- "name": "ButtonType",
94
- "annotation": {
95
- "type": "union",
96
- "types": [
97
- {
98
- "type": "jsLiteral",
99
- "value": "primary"
100
- },
101
- {
102
- "type": "jsLiteral",
103
- "value": "default"
104
- },
105
- {
106
- "type": "jsLiteral",
107
- "value": "dashed"
108
- },
109
- {
110
- "type": "jsLiteral",
111
- "value": "ghost"
112
- },
113
- {
114
- "type": "jsLiteral",
115
- "value": "link"
116
- },
117
- {
118
- "type": "jsLiteral",
119
- "value": "text"
120
- }
121
- ]
122
- }
123
- }
124
- ]
125
- },
126
2
  "eo-textarea": {
127
3
  "properties": [
128
4
  {
@@ -327,6 +203,130 @@
327
203
  }
328
204
  ]
329
205
  },
206
+ "eo-submit-buttons": {
207
+ "properties": [
208
+ {
209
+ "name": "submitText",
210
+ "annotation": {
211
+ "type": "keyword",
212
+ "value": "string"
213
+ }
214
+ },
215
+ {
216
+ "name": "cancelText",
217
+ "annotation": {
218
+ "type": "keyword",
219
+ "value": "string"
220
+ }
221
+ },
222
+ {
223
+ "name": "disableAfterClick",
224
+ "annotation": {
225
+ "type": "keyword",
226
+ "value": "boolean"
227
+ }
228
+ },
229
+ {
230
+ "name": "submitDisabled",
231
+ "annotation": {
232
+ "type": "keyword",
233
+ "value": "boolean"
234
+ }
235
+ },
236
+ {
237
+ "name": "submitType",
238
+ "annotation": {
239
+ "type": "reference",
240
+ "typeName": {
241
+ "type": "identifier",
242
+ "name": "ButtonType"
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "cancelType",
248
+ "annotation": {
249
+ "type": "reference",
250
+ "typeName": {
251
+ "type": "identifier",
252
+ "name": "ButtonType"
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "name": "themeVariant",
258
+ "annotation": {
259
+ "type": "union",
260
+ "types": [
261
+ {
262
+ "type": "jsLiteral",
263
+ "value": "default"
264
+ },
265
+ {
266
+ "type": "jsLiteral",
267
+ "value": "elevo"
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ ],
273
+ "events": [
274
+ {
275
+ "name": "submit",
276
+ "detail": {
277
+ "annotation": {
278
+ "type": "keyword",
279
+ "value": "void"
280
+ }
281
+ }
282
+ },
283
+ {
284
+ "name": "cancel",
285
+ "detail": {
286
+ "annotation": {
287
+ "type": "keyword",
288
+ "value": "void"
289
+ }
290
+ }
291
+ }
292
+ ],
293
+ "methods": [],
294
+ "types": [
295
+ {
296
+ "type": "typeAlias",
297
+ "name": "ButtonType",
298
+ "annotation": {
299
+ "type": "union",
300
+ "types": [
301
+ {
302
+ "type": "jsLiteral",
303
+ "value": "primary"
304
+ },
305
+ {
306
+ "type": "jsLiteral",
307
+ "value": "default"
308
+ },
309
+ {
310
+ "type": "jsLiteral",
311
+ "value": "dashed"
312
+ },
313
+ {
314
+ "type": "jsLiteral",
315
+ "value": "ghost"
316
+ },
317
+ {
318
+ "type": "jsLiteral",
319
+ "value": "link"
320
+ },
321
+ {
322
+ "type": "jsLiteral",
323
+ "value": "text"
324
+ }
325
+ ]
326
+ }
327
+ }
328
+ ]
329
+ },
330
330
  "eo-search": {
331
331
  "properties": [
332
332
  {
@@ -2950,6 +2950,22 @@
2950
2950
  ]
2951
2951
  }
2952
2952
  }
2953
+ },
2954
+ {
2955
+ "name": "themeVariant",
2956
+ "annotation": {
2957
+ "type": "union",
2958
+ "types": [
2959
+ {
2960
+ "type": "jsLiteral",
2961
+ "value": "default"
2962
+ },
2963
+ {
2964
+ "type": "jsLiteral",
2965
+ "value": "elevo"
2966
+ }
2967
+ ]
2968
+ }
2953
2969
  }
2954
2970
  ],
2955
2971
  "events": [
@@ -4616,6 +4632,38 @@
4616
4632
  ]
4617
4633
  }
4618
4634
  }
4635
+ },
4636
+ {
4637
+ "name": "variant",
4638
+ "annotation": {
4639
+ "type": "union",
4640
+ "types": [
4641
+ {
4642
+ "type": "jsLiteral",
4643
+ "value": "default"
4644
+ },
4645
+ {
4646
+ "type": "jsLiteral",
4647
+ "value": "avatar"
4648
+ }
4649
+ ]
4650
+ }
4651
+ },
4652
+ {
4653
+ "name": "themeVariant",
4654
+ "annotation": {
4655
+ "type": "union",
4656
+ "types": [
4657
+ {
4658
+ "type": "jsLiteral",
4659
+ "value": "default"
4660
+ },
4661
+ {
4662
+ "type": "jsLiteral",
4663
+ "value": "elevo"
4664
+ }
4665
+ ]
4666
+ }
4619
4667
  }
4620
4668
  ],
4621
4669
  "events": [
@@ -13,6 +13,7 @@ export interface IconSelectProps {
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
15
  message?: Record<string, string>;
16
+ themeVariant?: "default" | "elevo";
16
17
  }
17
18
  /**
18
19
  * 图标选择构件
@@ -45,6 +46,8 @@ export declare class IconSelect extends FormItemElementBase implements IconSelec
45
46
  * 是否必填
46
47
  */
47
48
  accessor message: Record<string, string> | undefined;
49
+ /** 主题变体 */
50
+ accessor themeVariant: "default" | "elevo" | undefined;
48
51
  handleChange: (value?: Icon) => void;
49
52
  render(): React.JSX.Element;
50
53
  }
@@ -20,6 +20,7 @@ export interface UploadProps {
20
20
  multiple?: boolean;
21
21
  maxCount?: number;
22
22
  limitSize?: number;
23
+ variant?: "default" | "avatar";
23
24
  overMaxCountMode?: "ignore" | "replace";
24
25
  beforeUploadValidators?: ((file: File, files: File[]) => Promise<unknown>)[];
25
26
  beforeUploadUserDataProcessor?: (file: File, fileDataList: {
@@ -13,6 +13,8 @@ export interface UploadImageProps {
13
13
  maxCount?: number;
14
14
  multiple?: boolean;
15
15
  limitSize?: number;
16
+ variant?: "default" | "avatar";
17
+ themeVariant?: "default" | "elevo";
16
18
  }
17
19
  /**
18
20
  * 上传图片构件
@@ -57,6 +59,10 @@ export declare class UploadImage extends FormItemElementBase implements UploadIm
57
59
  * 校验文本信息
58
60
  */
59
61
  accessor message: Record<string, string> | undefined;
62
+ /** 变体 */
63
+ accessor variant: "default" | "avatar" | undefined;
64
+ /** 主题变体 */
65
+ accessor themeVariant: "default" | "elevo" | undefined;
60
66
  handleChange: (imageList: ImageData[]) => void;
61
67
  render(): React.JSX.Element;
62
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.18.6",
3
+ "version": "1.19.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/icons": "*",
45
45
  "@next-bricks/illustrations": "*"
46
46
  },
47
- "gitHead": "34a899350f1c7556b0642d33ef12199345fe99d1"
47
+ "gitHead": "84f18bc78f8f819c09f5796d9fd56103b61cbadf"
48
48
  }