@next-bricks/presentational 1.12.4 → 1.12.6

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 (37) hide show
  1. package/dist/bricks.json +32 -32
  2. package/dist/chunks/4185.a12b48a8.js +3 -0
  3. package/dist/chunks/4185.a12b48a8.js.map +1 -0
  4. package/dist/chunks/7082.77109a1a.js +2 -0
  5. package/dist/chunks/7082.77109a1a.js.map +1 -0
  6. package/dist/chunks/{eo-card-item.e7f1e7e4.js → eo-card-item.d2b19a47.js} +3 -3
  7. package/dist/chunks/{eo-card-item.e7f1e7e4.js.map → eo-card-item.d2b19a47.js.map} +1 -1
  8. package/dist/chunks/{eo-descriptions.ff76ecc8.js → eo-descriptions.2d616ee9.js} +3 -3
  9. package/dist/chunks/{eo-descriptions.ff76ecc8.js.map → eo-descriptions.2d616ee9.js.map} +1 -1
  10. package/dist/chunks/{eo-humanize-time.f638634f.js → eo-humanize-time.b5b9d600.js} +2 -2
  11. package/dist/chunks/eo-humanize-time.b5b9d600.js.map +1 -0
  12. package/dist/chunks/{eo-info-card-item.b348374e.js → eo-info-card-item.95316172.js} +3 -3
  13. package/dist/chunks/{eo-info-card-item.b348374e.js.map → eo-info-card-item.95316172.js.map} +1 -1
  14. package/dist/chunks/{eo-loading-step.505b64b4.js → eo-loading-step.f1c3cda6.js} +3 -3
  15. package/dist/chunks/{eo-loading-step.505b64b4.js.map → eo-loading-step.f1c3cda6.js.map} +1 -1
  16. package/dist/chunks/main.4ae13c92.js +2 -0
  17. package/dist/chunks/main.4ae13c92.js.map +1 -0
  18. package/dist/examples.json +14 -14
  19. package/dist/index.19b5a9e9.js +2 -0
  20. package/dist/index.19b5a9e9.js.map +1 -0
  21. package/dist/manifest.json +315 -315
  22. package/dist/types.json +570 -570
  23. package/package.json +2 -2
  24. package/dist/chunks/4185.d75ff5bd.js +0 -3
  25. package/dist/chunks/4185.d75ff5bd.js.map +0 -1
  26. package/dist/chunks/7082.d6a7b628.js +0 -2
  27. package/dist/chunks/7082.d6a7b628.js.map +0 -1
  28. package/dist/chunks/eo-humanize-time.f638634f.js.map +0 -1
  29. package/dist/chunks/main.66e9c68e.js +0 -2
  30. package/dist/chunks/main.66e9c68e.js.map +0 -1
  31. package/dist/index.dd90f74b.js +0 -2
  32. package/dist/index.dd90f74b.js.map +0 -1
  33. /package/dist/chunks/{4185.d75ff5bd.js.LICENSE.txt → 4185.a12b48a8.js.LICENSE.txt} +0 -0
  34. /package/dist/chunks/{eo-card-item.e7f1e7e4.js.LICENSE.txt → eo-card-item.d2b19a47.js.LICENSE.txt} +0 -0
  35. /package/dist/chunks/{eo-descriptions.ff76ecc8.js.LICENSE.txt → eo-descriptions.2d616ee9.js.LICENSE.txt} +0 -0
  36. /package/dist/chunks/{eo-info-card-item.b348374e.js.LICENSE.txt → eo-info-card-item.95316172.js.LICENSE.txt} +0 -0
  37. /package/dist/chunks/{eo-loading-step.505b64b4.js.LICENSE.txt → eo-loading-step.f1c3cda6.js.LICENSE.txt} +0 -0
@@ -3,67 +3,6 @@
3
3
  "package": "@next-bricks/presentational",
4
4
  "name": "presentational",
5
5
  "bricks": [
6
- {
7
- "name": "eo-descriptions",
8
- "alias": [
9
- "presentational.general-descriptions"
10
- ],
11
- "properties": [
12
- {
13
- "name": "descriptionTitle",
14
- "description": "描述标题",
15
- "type": "string"
16
- },
17
- {
18
- "name": "list",
19
- "description": "描述列表",
20
- "attribute": false,
21
- "type": "DescriptionItem[]"
22
- },
23
- {
24
- "name": "showCard",
25
- "description": "是否展示卡片背景",
26
- "default": "true",
27
- "type": "boolean"
28
- },
29
- {
30
- "name": "column",
31
- "description": "列数",
32
- "attribute": true,
33
- "type": "number"
34
- },
35
- {
36
- "name": "layout",
37
- "description": "布局模式",
38
- "default": "\"horizontal\"",
39
- "type": "Layout"
40
- },
41
- {
42
- "name": "bordered",
43
- "description": "是否展示边框",
44
- "default": "false",
45
- "type": "boolean"
46
- },
47
- {
48
- "name": "hideGroups",
49
- "description": "隐藏的描述列表项",
50
- "attribute": false,
51
- "type": "string | string[]"
52
- },
53
- {
54
- "name": "dataSource",
55
- "description": "数据源",
56
- "attribute": false,
57
- "type": "Record<string, unknown>"
58
- }
59
- ],
60
- "events": [],
61
- "slots": [],
62
- "methods": [],
63
- "parts": [],
64
- "description": "通用描述列表构件",
65
- "category": "text"
66
- },
67
6
  {
68
7
  "name": "eo-alert",
69
8
  "alias": [
@@ -124,210 +63,65 @@
124
63
  "category": "display-component"
125
64
  },
126
65
  {
127
- "name": "eo-code-display",
66
+ "name": "eo-descriptions",
128
67
  "alias": [
129
- "presentational.code-display"
68
+ "presentational.general-descriptions"
130
69
  ],
131
70
  "properties": [
132
71
  {
133
- "name": "value",
134
- "description": "代码内容",
135
- "default": "\"\"",
136
- "type": "string"
137
- },
138
- {
139
- "name": "language",
140
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
141
- "type": "string"
142
- },
143
- {
144
- "name": "hideLineNumber",
145
- "description": "是否隐藏行号",
146
- "type": "boolean"
147
- },
148
- {
149
- "name": "maxLines",
150
- "description": "最大行数",
151
- "type": "number"
152
- },
153
- {
154
- "name": "minLines",
155
- "description": "最小行数",
156
- "type": "number"
157
- },
158
- {
159
- "name": "showCopyButton",
160
- "description": "是否显示复制按钮",
161
- "default": "true",
162
- "type": "boolean"
163
- },
164
- {
165
- "name": "showExportButton",
166
- "description": "是否显示导出按钮",
167
- "type": "boolean"
168
- },
169
- {
170
- "name": "exportFileName",
171
- "description": "导出的文件名",
172
- "default": "download.txt",
72
+ "name": "descriptionTitle",
73
+ "description": "描述标题",
173
74
  "type": "string"
174
- }
175
- ],
176
- "events": [],
177
- "slots": [],
178
- "methods": [],
179
- "parts": [],
180
- "description": "代码展示",
181
- "category": "display-component"
182
- },
183
- {
184
- "name": "eo-pagination",
185
- "properties": [
186
- {
187
- "name": "type",
188
- "description": "",
189
- "default": "\"page\"",
190
- "type": "\"page\" | \"token\""
191
- },
192
- {
193
- "name": "total",
194
- "description": "数据总数",
195
- "default": "0",
196
- "type": "number"
197
75
  },
198
76
  {
199
- "name": "page",
200
- "description": "当前页数",
201
- "default": "1",
202
- "type": "number"
203
- },
204
- {
205
- "name": "pageSize",
206
- "description": "每页条数",
207
- "default": "20",
208
- "type": "number"
209
- },
210
- {
211
- "name": "pageSizeOptions",
212
- "description": "指定每页可以显示多少条",
213
- "default": "[10, 20, 50, 100]",
77
+ "name": "list",
78
+ "description": "描述列表",
214
79
  "attribute": false,
215
- "type": "number[]"
80
+ "type": "DescriptionItem[]"
216
81
  },
217
82
  {
218
- "name": "showSizeChanger",
219
- "description": "是否展示`pageSize`分页器",
83
+ "name": "showCard",
84
+ "description": "是否展示卡片背景",
220
85
  "default": "true",
221
86
  "type": "boolean"
222
87
  },
223
88
  {
224
- "name": "nextToken",
225
- "type": "string"
89
+ "name": "column",
90
+ "description": "列数",
91
+ "attribute": true,
92
+ "type": "number"
226
93
  },
227
94
  {
228
- "name": "previousToken",
229
- "type": "string"
230
- }
231
- ],
232
- "events": [
233
- {
234
- "name": "change",
235
- "description": "页码及每页条数改变事件",
236
- "detail": {
237
- "type": "ChangeDetail"
238
- }
239
- }
240
- ],
241
- "slots": [],
242
- "methods": [],
243
- "parts": [],
244
- "description": "分页",
245
- "category": "navigation"
246
- },
247
- {
248
- "name": "eo-divider",
249
- "properties": [
250
- {
251
- "name": "orientation",
252
- "description": "标题位置,在horizontal类型的分割线中使用",
253
- "default": "center",
254
- "attribute": false,
255
- "type": "OrientationType"
95
+ "name": "layout",
96
+ "description": "布局模式",
97
+ "default": "\"horizontal\"",
98
+ "type": "Layout"
256
99
  },
257
100
  {
258
- "name": "dashed",
259
- "description": "是否虚线",
101
+ "name": "bordered",
102
+ "description": "是否展示边框",
260
103
  "default": "false",
261
104
  "type": "boolean"
262
105
  },
263
106
  {
264
- "name": "type",
265
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
266
- "default": "\"horizontal\"",
267
- "type": "dividerType"
268
- },
269
- {
270
- "name": "proportion",
271
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
272
- "attribute": false,
273
- "type": "[number, number]"
274
- },
275
- {
276
- "name": "dividerStyle",
277
- "description": "分割线自定义样式",
278
- "attribute": false,
279
- "type": "CSSProperties"
280
- }
281
- ],
282
- "events": [],
283
- "slots": [],
284
- "methods": [],
285
- "parts": [],
286
- "description": "分割线",
287
- "category": "container-display"
288
- },
289
- {
290
- "name": "eo-info-card-item",
291
- "properties": [
292
- {
293
- "name": "cardTitle",
294
- "description": "title",
295
- "type": "string"
296
- },
297
- {
298
- "name": "description",
299
- "description": "description",
300
- "type": "string"
301
- },
302
- {
303
- "name": "url",
304
- "description": "链接地址",
305
- "type": "string"
306
- },
307
- {
308
- "name": "cardIcon",
309
- "description": "图标",
107
+ "name": "hideGroups",
108
+ "description": "隐藏的描述列表项",
310
109
  "attribute": false,
311
- "type": "IconAvatar"
110
+ "type": "string | string[]"
312
111
  },
313
112
  {
314
- "name": "detailList",
315
- "description": "详细列表",
113
+ "name": "dataSource",
114
+ "description": "数据源",
316
115
  "attribute": false,
317
- "type": "InfoCardDetail[]"
318
- },
319
- {
320
- "name": "target",
321
- "description": "链接跳转目标",
322
- "type": "LinkProps[\"target\"]"
116
+ "type": "Record<string, unknown>"
323
117
  }
324
118
  ],
325
119
  "events": [],
326
120
  "slots": [],
327
121
  "methods": [],
328
122
  "parts": [],
329
- "description": "信息卡片",
330
- "category": "card-info"
123
+ "description": "通用描述列表构件",
124
+ "category": "text"
331
125
  },
332
126
  {
333
127
  "name": "eo-card-item",
@@ -417,47 +211,196 @@
417
211
  "name": "coverImageSize",
418
212
  "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
419
213
  "attribute": false,
420
- "type": "React.CSSProperties[\"backgroundSize\"]"
214
+ "type": "React.CSSProperties[\"backgroundSize\"]"
215
+ },
216
+ {
217
+ "name": "avatarPosition",
218
+ "description": "图标是否放置在卡片封面",
219
+ "type": "\"content\" | \"cover\""
220
+ },
221
+ {
222
+ "name": "tagConfig",
223
+ "attribute": false,
224
+ "type": "TagConfig"
225
+ },
226
+ {
227
+ "name": "cardStyle",
228
+ "description": "卡片样式",
229
+ "attribute": false,
230
+ "type": "React.CSSProperties"
231
+ }
232
+ ],
233
+ "events": [
234
+ {
235
+ "name": "tag.click",
236
+ "description": "徽标点击事件",
237
+ "detail": {
238
+ "type": "void"
239
+ }
240
+ }
241
+ ],
242
+ "slots": [
243
+ {
244
+ "name": "expanded-area-1",
245
+ "description": "扩展区域 1,通常放置标签信息"
246
+ },
247
+ {
248
+ "name": "expanded-area-2",
249
+ "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
250
+ }
251
+ ],
252
+ "methods": [],
253
+ "parts": [],
254
+ "description": "信息类卡片 —— 通用卡片",
255
+ "category": "card-info"
256
+ },
257
+ {
258
+ "name": "eo-divider",
259
+ "properties": [
260
+ {
261
+ "name": "orientation",
262
+ "description": "标题位置,在horizontal类型的分割线中使用",
263
+ "default": "center",
264
+ "attribute": false,
265
+ "type": "OrientationType"
266
+ },
267
+ {
268
+ "name": "dashed",
269
+ "description": "是否虚线",
270
+ "default": "false",
271
+ "type": "boolean"
272
+ },
273
+ {
274
+ "name": "type",
275
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
276
+ "default": "\"horizontal\"",
277
+ "type": "dividerType"
278
+ },
279
+ {
280
+ "name": "proportion",
281
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
282
+ "attribute": false,
283
+ "type": "[number, number]"
284
+ },
285
+ {
286
+ "name": "dividerStyle",
287
+ "description": "分割线自定义样式",
288
+ "attribute": false,
289
+ "type": "CSSProperties"
290
+ }
291
+ ],
292
+ "events": [],
293
+ "slots": [],
294
+ "methods": [],
295
+ "parts": [],
296
+ "description": "分割线",
297
+ "category": "container-display"
298
+ },
299
+ {
300
+ "name": "eo-pagination",
301
+ "properties": [
302
+ {
303
+ "name": "type",
304
+ "description": "",
305
+ "default": "\"page\"",
306
+ "type": "\"page\" | \"token\""
307
+ },
308
+ {
309
+ "name": "total",
310
+ "description": "数据总数",
311
+ "default": "0",
312
+ "type": "number"
313
+ },
314
+ {
315
+ "name": "page",
316
+ "description": "当前页数",
317
+ "default": "1",
318
+ "type": "number"
319
+ },
320
+ {
321
+ "name": "pageSize",
322
+ "description": "每页条数",
323
+ "default": "20",
324
+ "type": "number"
325
+ },
326
+ {
327
+ "name": "pageSizeOptions",
328
+ "description": "指定每页可以显示多少条",
329
+ "default": "[10, 20, 50, 100]",
330
+ "attribute": false,
331
+ "type": "number[]"
421
332
  },
422
333
  {
423
- "name": "avatarPosition",
424
- "description": "图标是否放置在卡片封面",
425
- "type": "\"content\" | \"cover\""
334
+ "name": "showSizeChanger",
335
+ "description": "是否展示`pageSize`分页器",
336
+ "default": "true",
337
+ "type": "boolean"
426
338
  },
427
339
  {
428
- "name": "tagConfig",
429
- "attribute": false,
430
- "type": "TagConfig"
340
+ "name": "nextToken",
341
+ "type": "string"
431
342
  },
432
343
  {
433
- "name": "cardStyle",
434
- "description": "卡片样式",
435
- "attribute": false,
436
- "type": "React.CSSProperties"
344
+ "name": "previousToken",
345
+ "type": "string"
437
346
  }
438
347
  ],
439
348
  "events": [
440
349
  {
441
- "name": "tag.click",
442
- "description": "徽标点击事件",
350
+ "name": "change",
351
+ "description": "页码及每页条数改变事件",
443
352
  "detail": {
444
- "type": "void"
353
+ "type": "ChangeDetail"
445
354
  }
446
355
  }
447
356
  ],
448
- "slots": [
357
+ "slots": [],
358
+ "methods": [],
359
+ "parts": [],
360
+ "description": "分页",
361
+ "category": "navigation"
362
+ },
363
+ {
364
+ "name": "eo-info-card-item",
365
+ "properties": [
449
366
  {
450
- "name": "expanded-area-1",
451
- "description": "扩展区域 1,通常放置标签信息"
367
+ "name": "cardTitle",
368
+ "description": "title",
369
+ "type": "string"
452
370
  },
453
371
  {
454
- "name": "expanded-area-2",
455
- "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
372
+ "name": "description",
373
+ "description": "description",
374
+ "type": "string"
375
+ },
376
+ {
377
+ "name": "url",
378
+ "description": "链接地址",
379
+ "type": "string"
380
+ },
381
+ {
382
+ "name": "cardIcon",
383
+ "description": "图标",
384
+ "attribute": false,
385
+ "type": "IconAvatar"
386
+ },
387
+ {
388
+ "name": "detailList",
389
+ "description": "详细列表",
390
+ "attribute": false,
391
+ "type": "InfoCardDetail[]"
392
+ },
393
+ {
394
+ "name": "target",
395
+ "description": "链接跳转目标",
396
+ "type": "LinkProps[\"target\"]"
456
397
  }
457
398
  ],
399
+ "events": [],
400
+ "slots": [],
458
401
  "methods": [],
459
402
  "parts": [],
460
- "description": "信息类卡片 —— 通用卡片",
403
+ "description": "信息卡片",
461
404
  "category": "card-info"
462
405
  },
463
406
  {
@@ -525,6 +468,63 @@
525
468
  "parts": [],
526
469
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
527
470
  },
471
+ {
472
+ "name": "eo-code-display",
473
+ "alias": [
474
+ "presentational.code-display"
475
+ ],
476
+ "properties": [
477
+ {
478
+ "name": "value",
479
+ "description": "代码内容",
480
+ "default": "\"\"",
481
+ "type": "string"
482
+ },
483
+ {
484
+ "name": "language",
485
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
486
+ "type": "string"
487
+ },
488
+ {
489
+ "name": "hideLineNumber",
490
+ "description": "是否隐藏行号",
491
+ "type": "boolean"
492
+ },
493
+ {
494
+ "name": "maxLines",
495
+ "description": "最大行数",
496
+ "type": "number"
497
+ },
498
+ {
499
+ "name": "minLines",
500
+ "description": "最小行数",
501
+ "type": "number"
502
+ },
503
+ {
504
+ "name": "showCopyButton",
505
+ "description": "是否显示复制按钮",
506
+ "default": "true",
507
+ "type": "boolean"
508
+ },
509
+ {
510
+ "name": "showExportButton",
511
+ "description": "是否显示导出按钮",
512
+ "type": "boolean"
513
+ },
514
+ {
515
+ "name": "exportFileName",
516
+ "description": "导出的文件名",
517
+ "default": "download.txt",
518
+ "type": "string"
519
+ }
520
+ ],
521
+ "events": [],
522
+ "slots": [],
523
+ "methods": [],
524
+ "parts": [],
525
+ "description": "代码展示",
526
+ "category": "display-component"
527
+ },
528
528
  {
529
529
  "name": "eo-statistics-card",
530
530
  "properties": [
@@ -615,68 +615,6 @@
615
615
  "parts": [],
616
616
  "description": "统计卡片"
617
617
  },
618
- {
619
- "name": "eo-current-time",
620
- "properties": [
621
- {
622
- "name": "format",
623
- "description": "时间格式",
624
- "default": "\"YYYY-MM-DD HH:mm:ss\"",
625
- "type": "string"
626
- },
627
- {
628
- "name": "icon",
629
- "description": "前置图标",
630
- "attribute": false,
631
- "type": "GeneralIconProps"
632
- }
633
- ],
634
- "events": [],
635
- "slots": [],
636
- "methods": [],
637
- "parts": [],
638
- "description": "构件 `eo-current-time`"
639
- },
640
- {
641
- "name": "eo-carousel-text",
642
- "properties": [
643
- {
644
- "name": "text",
645
- "description": "展示内容",
646
- "default": "\"\"",
647
- "type": "string"
648
- },
649
- {
650
- "name": "containerWidth",
651
- "description": "容器宽度",
652
- "default": "\"100%\"",
653
- "type": "CSSProperties[\"width\"]"
654
- },
655
- {
656
- "name": "fontSize",
657
- "description": "字体大小",
658
- "default": "\"var(--normal-font-size)\"",
659
- "type": "CSSProperties[\"fontSize\"]"
660
- },
661
- {
662
- "name": "fontColor",
663
- "description": "字体颜色",
664
- "default": "\"var(--text-color-default)\"",
665
- "type": "CSSProperties[\"color\"]"
666
- },
667
- {
668
- "name": "speed",
669
- "description": "移动速度,单位 px/s",
670
- "default": "100",
671
- "type": "number"
672
- }
673
- ],
674
- "events": [],
675
- "slots": [],
676
- "methods": [],
677
- "parts": [],
678
- "description": "构件 `eo-carousel-text`"
679
- },
680
618
  {
681
619
  "name": "eo-loading-step",
682
620
  "properties": [
@@ -740,6 +678,68 @@
740
678
  ],
741
679
  "parts": [],
742
680
  "description": "加载步骤框"
681
+ },
682
+ {
683
+ "name": "eo-carousel-text",
684
+ "properties": [
685
+ {
686
+ "name": "text",
687
+ "description": "展示内容",
688
+ "default": "\"\"",
689
+ "type": "string"
690
+ },
691
+ {
692
+ "name": "containerWidth",
693
+ "description": "容器宽度",
694
+ "default": "\"100%\"",
695
+ "type": "CSSProperties[\"width\"]"
696
+ },
697
+ {
698
+ "name": "fontSize",
699
+ "description": "字体大小",
700
+ "default": "\"var(--normal-font-size)\"",
701
+ "type": "CSSProperties[\"fontSize\"]"
702
+ },
703
+ {
704
+ "name": "fontColor",
705
+ "description": "字体颜色",
706
+ "default": "\"var(--text-color-default)\"",
707
+ "type": "CSSProperties[\"color\"]"
708
+ },
709
+ {
710
+ "name": "speed",
711
+ "description": "移动速度,单位 px/s",
712
+ "default": "100",
713
+ "type": "number"
714
+ }
715
+ ],
716
+ "events": [],
717
+ "slots": [],
718
+ "methods": [],
719
+ "parts": [],
720
+ "description": "构件 `eo-carousel-text`"
721
+ },
722
+ {
723
+ "name": "eo-current-time",
724
+ "properties": [
725
+ {
726
+ "name": "format",
727
+ "description": "时间格式",
728
+ "default": "\"YYYY-MM-DD HH:mm:ss\"",
729
+ "type": "string"
730
+ },
731
+ {
732
+ "name": "icon",
733
+ "description": "前置图标",
734
+ "attribute": false,
735
+ "type": "GeneralIconProps"
736
+ }
737
+ ],
738
+ "events": [],
739
+ "slots": [],
740
+ "methods": [],
741
+ "parts": [],
742
+ "description": "构件 `eo-current-time`"
743
743
  }
744
744
  ],
745
745
  "providers": []