@next-bricks/presentational 1.6.1 → 1.6.3

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 (32) hide show
  1. package/dist/bricks.json +24 -24
  2. package/dist/chunks/{2612.2b2da56b.js → 2612.f4249c34.js} +2 -2
  3. package/dist/chunks/{2612.2b2da56b.js.map → 2612.f4249c34.js.map} +1 -1
  4. package/dist/chunks/{7115.0436a779.js → 7115.ad5a8a02.js} +2 -2
  5. package/dist/chunks/{7115.0436a779.js.map → 7115.ad5a8a02.js.map} +1 -1
  6. package/dist/chunks/{875.6a5e7649.js → 875.77fb39ee.js} +2 -2
  7. package/dist/chunks/875.77fb39ee.js.map +1 -0
  8. package/dist/chunks/{9496.70cc0256.js → 9496.c95e3af1.js} +2 -2
  9. package/dist/chunks/{9496.70cc0256.js.map → 9496.c95e3af1.js.map} +1 -1
  10. package/dist/chunks/{eo-descriptions.fddab3d8.js → eo-descriptions.3aacd58f.js} +3 -3
  11. package/dist/chunks/{eo-descriptions.fddab3d8.js.map → eo-descriptions.3aacd58f.js.map} +1 -1
  12. package/dist/chunks/eo-humanize-time.c0cf527e.js.map +1 -1
  13. package/dist/chunks/{eo-info-card-item.3f0a0732.js → eo-info-card-item.98679003.js} +3 -3
  14. package/dist/chunks/{eo-info-card-item.3f0a0732.js.map → eo-info-card-item.98679003.js.map} +1 -1
  15. package/dist/chunks/{eo-loading-step.d86042fd.js → eo-loading-step.15db26ba.js} +3 -3
  16. package/dist/chunks/{eo-loading-step.d86042fd.js.map → eo-loading-step.15db26ba.js.map} +1 -1
  17. package/dist/chunks/main.e2b6b8ef.js +2 -0
  18. package/dist/chunks/{main.6a678ab7.js.map → main.e2b6b8ef.js.map} +1 -1
  19. package/dist/examples.json +9 -9
  20. package/dist/index.dd274a3e.js +2 -0
  21. package/dist/index.dd274a3e.js.map +1 -0
  22. package/dist/manifest.json +220 -221
  23. package/dist/types.json +820 -820
  24. package/dist-types/humanize-time/index.d.ts +1 -3
  25. package/package.json +2 -2
  26. package/dist/chunks/875.6a5e7649.js.map +0 -1
  27. package/dist/chunks/main.6a678ab7.js +0 -2
  28. package/dist/index.365df5a9.js +0 -2
  29. package/dist/index.365df5a9.js.map +0 -1
  30. /package/dist/chunks/{eo-descriptions.fddab3d8.js.LICENSE.txt → eo-descriptions.3aacd58f.js.LICENSE.txt} +0 -0
  31. /package/dist/chunks/{eo-info-card-item.3f0a0732.js.LICENSE.txt → eo-info-card-item.98679003.js.LICENSE.txt} +0 -0
  32. /package/dist/chunks/{eo-loading-step.d86042fd.js.LICENSE.txt → eo-loading-step.15db26ba.js.LICENSE.txt} +0 -0
@@ -64,6 +64,60 @@
64
64
  "description": "通用描述列表构件",
65
65
  "category": "text"
66
66
  },
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
+ },
67
121
  {
68
122
  "name": "eo-pagination",
69
123
  "properties": [
@@ -115,100 +169,217 @@
115
169
  "category": "navigation"
116
170
  },
117
171
  {
118
- "name": "eo-divider",
172
+ "name": "eo-card-item",
119
173
  "properties": [
120
174
  {
121
- "name": "orientation",
122
- "description": "标题位置,在horizontal类型的分割线中使用",
123
- "default": "center",
175
+ "name": "hasHeader",
176
+ "description": "是否有顶部小标题",
177
+ "type": "boolean"
178
+ },
179
+ {
180
+ "name": "cardTitle",
181
+ "description": "卡片标题",
182
+ "type": "string"
183
+ },
184
+ {
185
+ "name": "description",
186
+ "description": "描述信息",
187
+ "type": "string"
188
+ },
189
+ {
190
+ "name": "auxiliaryText",
191
+ "description": "顶部辅助文字",
192
+ "type": "string"
193
+ },
194
+ {
195
+ "name": "avatar",
196
+ "description": "图标",
124
197
  "attribute": false,
125
- "type": "OrientationType"
198
+ "type": "IconAvatar | ImgAvatar"
126
199
  },
127
200
  {
128
- "name": "dashed",
129
- "description": "是否虚线",
130
- "default": "false",
201
+ "name": "href",
202
+ "description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
203
+ "type": "LinkProps[\"href\"]"
204
+ },
205
+ {
206
+ "name": "url",
207
+ "description": "链接地址",
208
+ "attribute": false,
209
+ "type": "LinkProps[\"url\"]"
210
+ },
211
+ {
212
+ "name": "target",
213
+ "description": "链接跳转目标",
214
+ "type": "LinkProps[\"target\"]"
215
+ },
216
+ {
217
+ "name": "actions",
218
+ "description": "操作按钮组",
219
+ "attribute": false,
220
+ "type": "ActionType[]"
221
+ },
222
+ {
223
+ "name": "styleType",
224
+ "description": "卡片样式类型",
225
+ "type": "\"grayish\""
226
+ },
227
+ {
228
+ "name": "hasCover",
229
+ "description": "是否使用卡片封面",
131
230
  "type": "boolean"
132
231
  },
133
232
  {
134
- "name": "type",
135
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
136
- "default": "\"horizontal\"",
137
- "type": "dividerType"
233
+ "name": "coverImage",
234
+ "description": "卡片封面背景图片",
235
+ "attribute": false,
236
+ "type": "string"
138
237
  },
139
238
  {
140
- "name": "proportion",
141
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
239
+ "name": "coverColor",
240
+ "description": "卡片封面背景颜色(使用纯色背景)",
142
241
  "attribute": false,
143
- "type": "[number, number]"
242
+ "type": "string"
144
243
  },
145
244
  {
146
- "name": "dividerStyle",
147
- "description": "分割线自定义样式",
245
+ "name": "coverImageSize",
246
+ "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
148
247
  "attribute": false,
149
- "type": "CSSProperties"
248
+ "type": "React.CSSProperties[\"backgroundSize\"]"
249
+ },
250
+ {
251
+ "name": "avatarPosition",
252
+ "description": "图标是否放置在卡片封面",
253
+ "type": "\"content\" | \"cover\""
254
+ },
255
+ {
256
+ "name": "tagConfig",
257
+ "attribute": false,
258
+ "type": "TagConfig"
259
+ }
260
+ ],
261
+ "events": [
262
+ {
263
+ "name": "tag.click",
264
+ "description": "徽标点击事件",
265
+ "detail": {
266
+ "type": "void"
267
+ }
268
+ }
269
+ ],
270
+ "slots": [
271
+ {
272
+ "name": "expanded-area-1",
273
+ "description": "扩展区域 1,通常放置标签信息"
274
+ },
275
+ {
276
+ "name": "expanded-area-2",
277
+ "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
150
278
  }
151
279
  ],
152
- "events": [],
153
- "slots": [],
154
280
  "methods": [],
155
281
  "parts": [],
156
- "description": "分割线",
157
- "category": "container-display"
282
+ "description": "信息类卡片 —— 通用卡片",
283
+ "category": "card-info"
158
284
  },
159
285
  {
160
- "name": "eo-alert",
286
+ "name": "eo-code-display",
161
287
  "alias": [
162
- "presentational.general-alert"
288
+ "presentational.code-display"
163
289
  ],
164
290
  "properties": [
165
291
  {
166
- "name": "type",
167
- "description": "警告类型",
168
- "attribute": false,
169
- "type": "AlertType"
292
+ "name": "value",
293
+ "description": "代码内容",
294
+ "default": "\"\"",
295
+ "type": "string"
170
296
  },
171
297
  {
172
- "name": "hasTitle",
173
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
174
- "type": "boolean"
298
+ "name": "language",
299
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
300
+ "type": "string"
175
301
  },
176
302
  {
177
- "name": "showIcon",
178
- "description": "是否显示提示图标",
303
+ "name": "hideLineNumber",
304
+ "description": "是否隐藏行号",
179
305
  "type": "boolean"
180
306
  },
181
307
  {
182
- "name": "closable",
183
- "description": "是否显示关闭按钮",
184
- "type": "boolean"
308
+ "name": "maxLines",
309
+ "description": "最大行数",
310
+ "type": "number"
185
311
  },
186
312
  {
187
- "name": "localStorageKey",
188
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
189
- "type": "string"
313
+ "name": "minLines",
314
+ "description": "最小行数",
315
+ "type": "number"
190
316
  },
191
317
  {
192
- "name": "disableUrlNamespace",
193
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
318
+ "name": "showCopyButton",
319
+ "description": "是否显示复制按钮",
320
+ "default": "true",
321
+ "type": "boolean"
322
+ },
323
+ {
324
+ "name": "showExportButton",
325
+ "description": "是否显示导出按钮",
194
326
  "type": "boolean"
327
+ },
328
+ {
329
+ "name": "exportFileName",
330
+ "description": "导出的文件名",
331
+ "default": "download.txt",
332
+ "type": "string"
195
333
  }
196
334
  ],
197
335
  "events": [],
198
- "slots": [
336
+ "slots": [],
337
+ "methods": [],
338
+ "parts": [],
339
+ "description": "代码展示",
340
+ "category": "display-component"
341
+ },
342
+ {
343
+ "name": "eo-divider",
344
+ "properties": [
199
345
  {
200
- "name": null,
201
- "description": "内容区"
346
+ "name": "orientation",
347
+ "description": "标题位置,在horizontal类型的分割线中使用",
348
+ "default": "center",
349
+ "attribute": false,
350
+ "type": "OrientationType"
202
351
  },
203
352
  {
204
- "name": "title",
205
- "description": "标题"
353
+ "name": "dashed",
354
+ "description": "是否虚线",
355
+ "default": "false",
356
+ "type": "boolean"
357
+ },
358
+ {
359
+ "name": "type",
360
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
361
+ "default": "\"horizontal\"",
362
+ "type": "dividerType"
363
+ },
364
+ {
365
+ "name": "proportion",
366
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
367
+ "attribute": false,
368
+ "type": "[number, number]"
369
+ },
370
+ {
371
+ "name": "dividerStyle",
372
+ "description": "分割线自定义样式",
373
+ "attribute": false,
374
+ "type": "CSSProperties"
206
375
  }
207
376
  ],
377
+ "events": [],
378
+ "slots": [],
208
379
  "methods": [],
209
380
  "parts": [],
210
- "description": "告警提示",
211
- "category": "display-component"
381
+ "description": "分割线",
382
+ "category": "container-display"
212
383
  },
213
384
  {
214
385
  "name": "eo-info-card-item",
@@ -304,65 +475,7 @@
304
475
  "slots": [],
305
476
  "methods": [],
306
477
  "parts": [],
307
- "description": "人性化时间展示",
308
- "category": "text"
309
- },
310
- {
311
- "name": "eo-code-display",
312
- "alias": [
313
- "presentational.code-display"
314
- ],
315
- "properties": [
316
- {
317
- "name": "value",
318
- "description": "代码内容",
319
- "default": "\"\"",
320
- "type": "string"
321
- },
322
- {
323
- "name": "language",
324
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
325
- "type": "string"
326
- },
327
- {
328
- "name": "hideLineNumber",
329
- "description": "是否隐藏行号",
330
- "type": "boolean"
331
- },
332
- {
333
- "name": "maxLines",
334
- "description": "最大行数",
335
- "type": "number"
336
- },
337
- {
338
- "name": "minLines",
339
- "description": "最小行数",
340
- "type": "number"
341
- },
342
- {
343
- "name": "showCopyButton",
344
- "description": "是否显示复制按钮",
345
- "default": "true",
346
- "type": "boolean"
347
- },
348
- {
349
- "name": "showExportButton",
350
- "description": "是否显示导出按钮",
351
- "type": "boolean"
352
- },
353
- {
354
- "name": "exportFileName",
355
- "description": "导出的文件名",
356
- "default": "download.txt",
357
- "type": "string"
358
- }
359
- ],
360
- "events": [],
361
- "slots": [],
362
- "methods": [],
363
- "parts": [],
364
- "description": "代码展示",
365
- "category": "display-component"
478
+ "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
366
479
  },
367
480
  {
368
481
  "name": "eo-statistics-card",
@@ -518,120 +631,6 @@
518
631
  "parts": [],
519
632
  "description": "加载步骤框"
520
633
  },
521
- {
522
- "name": "eo-card-item",
523
- "properties": [
524
- {
525
- "name": "hasHeader",
526
- "description": "是否有顶部小标题",
527
- "type": "boolean"
528
- },
529
- {
530
- "name": "cardTitle",
531
- "description": "卡片标题",
532
- "type": "string"
533
- },
534
- {
535
- "name": "description",
536
- "description": "描述信息",
537
- "type": "string"
538
- },
539
- {
540
- "name": "auxiliaryText",
541
- "description": "顶部辅助文字",
542
- "type": "string"
543
- },
544
- {
545
- "name": "avatar",
546
- "description": "图标",
547
- "attribute": false,
548
- "type": "IconAvatar | ImgAvatar"
549
- },
550
- {
551
- "name": "href",
552
- "description": "设置 `href` 时将使用原生 `<a>` 标签,通常用于外链的跳转",
553
- "type": "LinkProps[\"href\"]"
554
- },
555
- {
556
- "name": "url",
557
- "description": "链接地址",
558
- "attribute": false,
559
- "type": "LinkProps[\"url\"]"
560
- },
561
- {
562
- "name": "target",
563
- "description": "链接跳转目标",
564
- "type": "LinkProps[\"target\"]"
565
- },
566
- {
567
- "name": "actions",
568
- "description": "操作按钮组",
569
- "attribute": false,
570
- "type": "ActionType[]"
571
- },
572
- {
573
- "name": "styleType",
574
- "description": "卡片样式类型",
575
- "type": "\"grayish\""
576
- },
577
- {
578
- "name": "hasCover",
579
- "description": "是否使用卡片封面",
580
- "type": "boolean"
581
- },
582
- {
583
- "name": "coverImage",
584
- "description": "卡片封面背景图片",
585
- "attribute": false,
586
- "type": "string"
587
- },
588
- {
589
- "name": "coverColor",
590
- "description": "卡片封面背景颜色(使用纯色背景)",
591
- "attribute": false,
592
- "type": "string"
593
- },
594
- {
595
- "name": "coverImageSize",
596
- "description": "卡片封面图片尺寸 ,配置参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size",
597
- "attribute": false,
598
- "type": "React.CSSProperties[\"backgroundSize\"]"
599
- },
600
- {
601
- "name": "avatarPosition",
602
- "description": "图标是否放置在卡片封面",
603
- "type": "\"content\" | \"cover\""
604
- },
605
- {
606
- "name": "tagConfig",
607
- "attribute": false,
608
- "type": "TagConfig"
609
- }
610
- ],
611
- "events": [
612
- {
613
- "name": "tag.click",
614
- "description": "徽标点击事件",
615
- "detail": {
616
- "type": "void"
617
- }
618
- }
619
- ],
620
- "slots": [
621
- {
622
- "name": "expanded-area-1",
623
- "description": "扩展区域 1,通常放置标签信息"
624
- },
625
- {
626
- "name": "expanded-area-2",
627
- "description": "扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)"
628
- }
629
- ],
630
- "methods": [],
631
- "parts": [],
632
- "description": "信息类卡片 —— 通用卡片",
633
- "category": "card-info"
634
- },
635
634
  {
636
635
  "name": "eo-current-time",
637
636
  "properties": [