@next-bricks/presentational 1.2.6 → 1.4.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 (74) hide show
  1. package/dist/bricks.json +32 -27
  2. package/dist/chunks/1972.e005885d.js +2 -0
  3. package/dist/chunks/{1972.c6807389.js.map → 1972.e005885d.js.map} +1 -1
  4. package/dist/chunks/253.245fcab0.js +2 -0
  5. package/dist/chunks/253.245fcab0.js.map +1 -0
  6. package/dist/chunks/3208.b234c0ec.js +2 -0
  7. package/dist/chunks/3208.b234c0ec.js.map +1 -0
  8. package/dist/chunks/{8728.ae47241c.js → 8728.7ed60e93.js} +3 -3
  9. package/dist/chunks/{8728.ae47241c.js.map → 8728.7ed60e93.js.map} +1 -1
  10. package/dist/chunks/9591.d4fc1ca8.js +2 -0
  11. package/dist/chunks/{9591.4cb0d3f3.js.map → 9591.d4fc1ca8.js.map} +1 -1
  12. package/dist/chunks/eo-alert.e9d3d369.js +3 -0
  13. package/dist/chunks/{eo-alert.fa465aa9.js.map → eo-alert.e9d3d369.js.map} +1 -1
  14. package/dist/chunks/eo-card-item.2ca4b7e6.js +3 -0
  15. package/dist/chunks/eo-card-item.2ca4b7e6.js.map +1 -0
  16. package/dist/chunks/eo-code-display.082d27e6.js +2 -0
  17. package/dist/chunks/{eo-code-display.3781058a.js.map → eo-code-display.082d27e6.js.map} +1 -1
  18. package/dist/chunks/eo-descriptions.988ca8a8.js +3 -0
  19. package/dist/chunks/{eo-descriptions.caf49b56.js.map → eo-descriptions.988ca8a8.js.map} +1 -1
  20. package/dist/chunks/eo-divider.29e95bbe.js +3 -0
  21. package/dist/chunks/{eo-divider.b80414c6.js.map → eo-divider.29e95bbe.js.map} +1 -1
  22. package/dist/chunks/eo-humanize-time.d449cb7b.js +2 -0
  23. package/dist/chunks/{eo-humanize-time.88d58e1e.js.map → eo-humanize-time.d449cb7b.js.map} +1 -1
  24. package/dist/chunks/eo-info-card-item.9f88287a.js +3 -0
  25. package/dist/chunks/{eo-info-card-item.a353e6d3.js.map → eo-info-card-item.9f88287a.js.map} +1 -1
  26. package/dist/chunks/eo-loading-step.386d1e87.js +3 -0
  27. package/dist/chunks/eo-loading-step.386d1e87.js.map +1 -0
  28. package/dist/chunks/eo-pagination.eb9fd2a7.js +3 -0
  29. package/dist/chunks/eo-pagination.eb9fd2a7.js.LICENSE.txt +5 -0
  30. package/dist/chunks/{eo-pagination.7ffa2e23.js.map → eo-pagination.eb9fd2a7.js.map} +1 -1
  31. package/dist/chunks/eo-statistics-card.af80d51d.js +2 -0
  32. package/dist/chunks/{eo-statistics-card.ca340f9e.js.map → eo-statistics-card.af80d51d.js.map} +1 -1
  33. package/dist/chunks/main.2070f9b4.js +2 -0
  34. package/dist/chunks/main.2070f9b4.js.map +1 -0
  35. package/dist/examples.json +14 -11
  36. package/dist/images/88ea39ab.png +0 -0
  37. package/dist/images/f011d56b.png +0 -0
  38. package/dist/index.d36164a8.js +2 -0
  39. package/dist/index.d36164a8.js.map +1 -0
  40. package/dist/manifest.json +251 -181
  41. package/dist/types.json +319 -186
  42. package/dist-types/bootstrap.d.ts +1 -0
  43. package/dist-types/card-item/index.d.ts +5 -0
  44. package/dist-types/loading-step/index.d.ts +53 -0
  45. package/dist-types/loading-step/index.spec.d.ts +1 -0
  46. package/docs/eo-loading-step.md +24 -0
  47. package/package.json +2 -2
  48. package/dist/chunks/1972.c6807389.js +0 -2
  49. package/dist/chunks/2508.44c57626.js +0 -2
  50. package/dist/chunks/2508.44c57626.js.map +0 -1
  51. package/dist/chunks/3208.44bb4993.js +0 -2
  52. package/dist/chunks/3208.44bb4993.js.map +0 -1
  53. package/dist/chunks/9591.4cb0d3f3.js +0 -2
  54. package/dist/chunks/eo-alert.fa465aa9.js +0 -3
  55. package/dist/chunks/eo-card-item.f41ac580.js +0 -3
  56. package/dist/chunks/eo-card-item.f41ac580.js.map +0 -1
  57. package/dist/chunks/eo-code-display.3781058a.js +0 -2
  58. package/dist/chunks/eo-descriptions.caf49b56.js +0 -3
  59. package/dist/chunks/eo-divider.b80414c6.js +0 -3
  60. package/dist/chunks/eo-humanize-time.88d58e1e.js +0 -2
  61. package/dist/chunks/eo-info-card-item.a353e6d3.js +0 -3
  62. package/dist/chunks/eo-pagination.7ffa2e23.js +0 -3
  63. package/dist/chunks/eo-statistics-card.ca340f9e.js +0 -2
  64. package/dist/chunks/main.35b48217.js +0 -2
  65. package/dist/chunks/main.35b48217.js.map +0 -1
  66. package/dist/index.75cca05d.js +0 -2
  67. package/dist/index.75cca05d.js.map +0 -1
  68. /package/dist/chunks/{8728.ae47241c.js.LICENSE.txt → 8728.7ed60e93.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{eo-alert.fa465aa9.js.LICENSE.txt → eo-alert.e9d3d369.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{eo-card-item.f41ac580.js.LICENSE.txt → eo-card-item.2ca4b7e6.js.LICENSE.txt} +0 -0
  71. /package/dist/chunks/{eo-descriptions.caf49b56.js.LICENSE.txt → eo-descriptions.988ca8a8.js.LICENSE.txt} +0 -0
  72. /package/dist/chunks/{eo-divider.b80414c6.js.LICENSE.txt → eo-divider.29e95bbe.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{eo-info-card-item.a353e6d3.js.LICENSE.txt → eo-info-card-item.9f88287a.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-pagination.7ffa2e23.js.LICENSE.txt → eo-loading-step.386d1e87.js.LICENSE.txt} +0 -0
@@ -65,115 +65,54 @@
65
65
  "category": "text"
66
66
  },
67
67
  {
68
- "name": "eo-alert",
69
- "alias": [
70
- "presentational.general-alert"
71
- ],
72
- "properties": [
73
- {
74
- "name": "type",
75
- "description": "警告类型",
76
- "attribute": false,
77
- "type": "AlertType"
78
- },
79
- {
80
- "name": "hasTitle",
81
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
82
- "type": "boolean"
83
- },
84
- {
85
- "name": "showIcon",
86
- "description": "是否显示提示图标",
87
- "type": "boolean"
88
- },
89
- {
90
- "name": "closable",
91
- "description": "是否显示关闭按钮",
92
- "type": "boolean"
93
- },
94
- {
95
- "name": "localStorageKey",
96
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
97
- "type": "string"
98
- },
99
- {
100
- "name": "disableUrlNamespace",
101
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
102
- "type": "boolean"
103
- }
104
- ],
105
- "events": [],
106
- "slots": [
107
- {
108
- "name": null,
109
- "description": "内容区"
110
- },
111
- {
112
- "name": "title",
113
- "description": "标题"
114
- }
115
- ],
116
- "methods": [],
117
- "parts": [],
118
- "description": "告警提示",
119
- "category": "display-component"
120
- },
121
- {
122
- "name": "eo-code-display",
123
- "alias": [
124
- "presentational.code-display"
125
- ],
68
+ "name": "eo-pagination",
126
69
  "properties": [
127
70
  {
128
- "name": "value",
129
- "description": "代码内容",
130
- "default": "\"\"",
131
- "type": "string"
132
- },
133
- {
134
- "name": "language",
135
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
136
- "type": "string"
137
- },
138
- {
139
- "name": "hideLineNumber",
140
- "description": "是否隐藏行号",
141
- "type": "boolean"
71
+ "name": "total",
72
+ "description": "数据总数",
73
+ "default": "0",
74
+ "type": "number"
142
75
  },
143
76
  {
144
- "name": "maxLines",
145
- "description": "最大行数",
77
+ "name": "page",
78
+ "description": "当前页数",
79
+ "default": "1",
146
80
  "type": "number"
147
81
  },
148
82
  {
149
- "name": "minLines",
150
- "description": "最小行数",
83
+ "name": "pageSize",
84
+ "description": "每页条数",
85
+ "default": "20",
151
86
  "type": "number"
152
87
  },
153
88
  {
154
- "name": "showCopyButton",
155
- "description": "是否显示复制按钮",
156
- "default": "true",
157
- "type": "boolean"
89
+ "name": "pageSizeOptions",
90
+ "description": "指定每页可以显示多少条",
91
+ "default": "[10, 20, 50, 100]",
92
+ "attribute": false,
93
+ "type": "number[]"
158
94
  },
159
95
  {
160
- "name": "showExportButton",
161
- "description": "是否显示导出按钮",
96
+ "name": "showSizeChanger",
97
+ "description": "是否展示`pageSize`分页器",
98
+ "default": "true",
162
99
  "type": "boolean"
163
- },
100
+ }
101
+ ],
102
+ "events": [
164
103
  {
165
- "name": "exportFileName",
166
- "description": "导出的文件名",
167
- "default": "download.txt",
168
- "type": "string"
104
+ "name": "change",
105
+ "description": "页码及每页条数改变事件",
106
+ "detail": {
107
+ "type": "{ page: number; pageSize: number }"
108
+ }
169
109
  }
170
110
  ],
171
- "events": [],
172
111
  "slots": [],
173
112
  "methods": [],
174
113
  "parts": [],
175
- "description": "代码展示",
176
- "category": "display-component"
114
+ "description": "分页",
115
+ "category": "navigation"
177
116
  },
178
117
  {
179
118
  "name": "eo-card-item",
@@ -248,6 +187,12 @@
248
187
  "attribute": false,
249
188
  "type": "string"
250
189
  },
190
+ {
191
+ "name": "coverImageSize",
192
+ "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
193
+ "attribute": false,
194
+ "type": "React.CSSProperties[\"backgroundSize\"]"
195
+ },
251
196
  {
252
197
  "name": "avatarPosition",
253
198
  "description": "图标是否放置在卡片封面",
@@ -284,139 +229,104 @@
284
229
  "category": "card-info"
285
230
  },
286
231
  {
287
- "name": "eo-pagination",
232
+ "name": "eo-info-card-item",
288
233
  "properties": [
289
234
  {
290
- "name": "total",
291
- "description": "数据总数",
292
- "default": "0",
293
- "type": "number"
294
- },
295
- {
296
- "name": "page",
297
- "description": "当前页数",
298
- "default": "1",
299
- "type": "number"
235
+ "name": "cardTitle",
236
+ "description": "title",
237
+ "type": "string"
300
238
  },
301
239
  {
302
- "name": "pageSize",
303
- "description": "每页条数",
304
- "default": "20",
305
- "type": "number"
240
+ "name": "description",
241
+ "description": "description",
242
+ "type": "string"
306
243
  },
307
244
  {
308
- "name": "pageSizeOptions",
309
- "description": "指定每页可以显示多少条",
310
- "default": "[10, 20, 50, 100]",
311
- "attribute": false,
312
- "type": "number[]"
245
+ "name": "url",
246
+ "description": "链接地址",
247
+ "type": "string"
313
248
  },
314
249
  {
315
- "name": "showSizeChanger",
316
- "description": "是否展示`pageSize`分页器",
317
- "default": "true",
318
- "type": "boolean"
319
- }
320
- ],
321
- "events": [
322
- {
323
- "name": "change",
324
- "description": "页码及每页条数改变事件",
325
- "detail": {
326
- "type": "{ page: number; pageSize: number }"
327
- }
328
- }
329
- ],
330
- "slots": [],
331
- "methods": [],
332
- "parts": [],
333
- "description": "分页",
334
- "category": "navigation"
335
- },
336
- {
337
- "name": "eo-divider",
338
- "properties": [
339
- {
340
- "name": "orientation",
341
- "description": "标题位置,在horizontal类型的分割线中使用",
342
- "default": "center",
250
+ "name": "cardIcon",
251
+ "description": "图标",
343
252
  "attribute": false,
344
- "type": "OrientationType"
345
- },
346
- {
347
- "name": "dashed",
348
- "description": "是否虚线",
349
- "default": "false",
350
- "type": "boolean"
351
- },
352
- {
353
- "name": "type",
354
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
355
- "default": "\"horizontal\"",
356
- "type": "dividerType"
253
+ "type": "IconAvatar"
357
254
  },
358
255
  {
359
- "name": "proportion",
360
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
256
+ "name": "detailList",
257
+ "description": "详细列表",
361
258
  "attribute": false,
362
- "type": "[number, number]"
259
+ "type": "InfoCardDetail[]"
363
260
  },
364
261
  {
365
- "name": "dividerStyle",
366
- "description": "分割线自定义样式",
367
- "attribute": false,
368
- "type": "CSSProperties"
262
+ "name": "target",
263
+ "description": "链接跳转目标",
264
+ "type": "LinkProps[\"target\"]"
369
265
  }
370
266
  ],
371
267
  "events": [],
372
268
  "slots": [],
373
269
  "methods": [],
374
270
  "parts": [],
375
- "description": "分割线",
376
- "category": "container-display"
271
+ "description": "信息卡片",
272
+ "category": "card-info"
377
273
  },
378
274
  {
379
- "name": "eo-info-card-item",
275
+ "name": "eo-code-display",
276
+ "alias": [
277
+ "presentational.code-display"
278
+ ],
380
279
  "properties": [
381
280
  {
382
- "name": "cardTitle",
383
- "description": "title",
281
+ "name": "value",
282
+ "description": "代码内容",
283
+ "default": "\"\"",
384
284
  "type": "string"
385
285
  },
386
286
  {
387
- "name": "description",
388
- "description": "description",
287
+ "name": "language",
288
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
389
289
  "type": "string"
390
290
  },
391
291
  {
392
- "name": "url",
393
- "description": "链接地址",
394
- "type": "string"
292
+ "name": "hideLineNumber",
293
+ "description": "是否隐藏行号",
294
+ "type": "boolean"
395
295
  },
396
296
  {
397
- "name": "cardIcon",
398
- "description": "图标",
399
- "attribute": false,
400
- "type": "IconAvatar"
297
+ "name": "maxLines",
298
+ "description": "最大行数",
299
+ "type": "number"
401
300
  },
402
301
  {
403
- "name": "detailList",
404
- "description": "详细列表",
405
- "attribute": false,
406
- "type": "InfoCardDetail[]"
302
+ "name": "minLines",
303
+ "description": "最小行数",
304
+ "type": "number"
407
305
  },
408
306
  {
409
- "name": "target",
410
- "description": "链接跳转目标",
411
- "type": "LinkProps[\"target\"]"
307
+ "name": "showCopyButton",
308
+ "description": "是否显示复制按钮",
309
+ "default": "true",
310
+ "type": "boolean"
311
+ },
312
+ {
313
+ "name": "showExportButton",
314
+ "description": "是否显示导出按钮",
315
+ "type": "boolean"
316
+ },
317
+ {
318
+ "name": "exportFileName",
319
+ "description": "导出的文件名",
320
+ "default": "download.txt",
321
+ "type": "string"
412
322
  }
413
323
  ],
414
324
  "events": [],
415
325
  "slots": [],
416
326
  "methods": [],
417
327
  "parts": [],
418
- "description": "信息卡片",
419
- "category": "card-info"
328
+ "description": "代码展示",
329
+ "category": "display-component"
420
330
  },
421
331
  {
422
332
  "name": "eo-humanize-time",
@@ -472,6 +382,60 @@
472
382
  "description": "人性化时间展示",
473
383
  "category": "text"
474
384
  },
385
+ {
386
+ "name": "eo-alert",
387
+ "alias": [
388
+ "presentational.general-alert"
389
+ ],
390
+ "properties": [
391
+ {
392
+ "name": "type",
393
+ "description": "警告类型",
394
+ "attribute": false,
395
+ "type": "AlertType"
396
+ },
397
+ {
398
+ "name": "hasTitle",
399
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
400
+ "type": "boolean"
401
+ },
402
+ {
403
+ "name": "showIcon",
404
+ "description": "是否显示提示图标",
405
+ "type": "boolean"
406
+ },
407
+ {
408
+ "name": "closable",
409
+ "description": "是否显示关闭按钮",
410
+ "type": "boolean"
411
+ },
412
+ {
413
+ "name": "localStorageKey",
414
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
415
+ "type": "string"
416
+ },
417
+ {
418
+ "name": "disableUrlNamespace",
419
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
420
+ "type": "boolean"
421
+ }
422
+ ],
423
+ "events": [],
424
+ "slots": [
425
+ {
426
+ "name": null,
427
+ "description": "内容区"
428
+ },
429
+ {
430
+ "name": "title",
431
+ "description": "标题"
432
+ }
433
+ ],
434
+ "methods": [],
435
+ "parts": [],
436
+ "description": "告警提示",
437
+ "category": "display-component"
438
+ },
475
439
  {
476
440
  "name": "eo-statistics-card",
477
441
  "properties": [
@@ -561,6 +525,112 @@
561
525
  "methods": [],
562
526
  "parts": [],
563
527
  "description": "统计卡片"
528
+ },
529
+ {
530
+ "name": "eo-divider",
531
+ "properties": [
532
+ {
533
+ "name": "orientation",
534
+ "description": "标题位置,在horizontal类型的分割线中使用",
535
+ "default": "center",
536
+ "attribute": false,
537
+ "type": "OrientationType"
538
+ },
539
+ {
540
+ "name": "dashed",
541
+ "description": "是否虚线",
542
+ "default": "false",
543
+ "type": "boolean"
544
+ },
545
+ {
546
+ "name": "type",
547
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
548
+ "default": "\"horizontal\"",
549
+ "type": "dividerType"
550
+ },
551
+ {
552
+ "name": "proportion",
553
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
554
+ "attribute": false,
555
+ "type": "[number, number]"
556
+ },
557
+ {
558
+ "name": "dividerStyle",
559
+ "description": "分割线自定义样式",
560
+ "attribute": false,
561
+ "type": "CSSProperties"
562
+ }
563
+ ],
564
+ "events": [],
565
+ "slots": [],
566
+ "methods": [],
567
+ "parts": [],
568
+ "description": "分割线",
569
+ "category": "container-display"
570
+ },
571
+ {
572
+ "name": "eo-loading-step",
573
+ "properties": [
574
+ {
575
+ "name": "visible",
576
+ "description": "是否可见",
577
+ "type": "boolean"
578
+ },
579
+ {
580
+ "name": "width",
581
+ "description": "宽度",
582
+ "type": "string"
583
+ },
584
+ {
585
+ "name": "stepTitle",
586
+ "description": "步骤标题",
587
+ "type": "string"
588
+ },
589
+ {
590
+ "name": "stepList",
591
+ "description": "步骤列表",
592
+ "attribute": false,
593
+ "type": "StepItem[]"
594
+ },
595
+ {
596
+ "name": "curStep",
597
+ "description": "当前步骤",
598
+ "type": "string"
599
+ }
600
+ ],
601
+ "events": [
602
+ {
603
+ "name": "open",
604
+ "description": "打开事件",
605
+ "detail": {
606
+ "type": "void"
607
+ }
608
+ },
609
+ {
610
+ "name": "close",
611
+ "description": "关闭事件",
612
+ "detail": {
613
+ "type": "void"
614
+ }
615
+ }
616
+ ],
617
+ "slots": [],
618
+ "methods": [
619
+ {
620
+ "name": "open",
621
+ "params": [],
622
+ "description": "打开",
623
+ "returns": {}
624
+ },
625
+ {
626
+ "name": "close",
627
+ "params": [],
628
+ "description": "关闭",
629
+ "returns": {}
630
+ }
631
+ ],
632
+ "parts": [],
633
+ "description": "加载步骤框"
564
634
  }
565
635
  ],
566
636
  "providers": []