@next-bricks/presentational 1.20.0 → 1.21.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 (141) hide show
  1. package/dist/bricks.json +40 -25
  2. package/dist/chunks/1120.a1539fd9.js +2 -0
  3. package/dist/chunks/1120.a1539fd9.js.map +1 -0
  4. package/dist/chunks/114.1cbe662e.js +2 -0
  5. package/dist/chunks/{114.1c7311ae.js.map → 114.1cbe662e.js.map} +1 -1
  6. package/dist/chunks/1215.7e9cfce1.js +2 -0
  7. package/dist/chunks/1215.7e9cfce1.js.map +1 -0
  8. package/dist/chunks/1632.72e283f7.js +2 -0
  9. package/dist/chunks/1632.72e283f7.js.map +1 -0
  10. package/dist/chunks/1889.4559a6f7.js +2 -0
  11. package/dist/chunks/1889.4559a6f7.js.map +1 -0
  12. package/dist/chunks/2449.216a2777.js +2 -0
  13. package/dist/chunks/2449.216a2777.js.map +1 -0
  14. package/dist/chunks/2510.c0cb41a1.js +2 -0
  15. package/dist/chunks/2510.c0cb41a1.js.map +1 -0
  16. package/dist/chunks/2593.1ae05d1e.js +2 -0
  17. package/dist/chunks/2593.1ae05d1e.js.map +1 -0
  18. package/dist/chunks/{3171.ec7ebf74.js → 3171.91e2c51e.js} +2 -2
  19. package/dist/chunks/{3171.ec7ebf74.js.map → 3171.91e2c51e.js.map} +1 -1
  20. package/dist/chunks/3699.6f60864f.js +3 -0
  21. package/dist/chunks/3699.6f60864f.js.map +1 -0
  22. package/dist/chunks/3897.510e7cbb.js +3 -0
  23. package/dist/chunks/3897.510e7cbb.js.LICENSE.txt +9 -0
  24. package/dist/chunks/3897.510e7cbb.js.map +1 -0
  25. package/dist/chunks/3900.9b093658.js +2 -0
  26. package/dist/chunks/3900.9b093658.js.map +1 -0
  27. package/dist/chunks/4190.ed091f3e.js +2 -0
  28. package/dist/chunks/4190.ed091f3e.js.map +1 -0
  29. package/dist/chunks/4306.3e1ac1d3.js +2 -0
  30. package/dist/chunks/4306.3e1ac1d3.js.map +1 -0
  31. package/dist/chunks/4609.4b23d329.js +2 -0
  32. package/dist/chunks/4609.4b23d329.js.map +1 -0
  33. package/dist/chunks/4735.eefcc091.js +2 -0
  34. package/dist/chunks/4735.eefcc091.js.map +1 -0
  35. package/dist/chunks/{4765.eb562592.js → 4765.9d03b0af.js} +2 -2
  36. package/dist/chunks/{4765.eb562592.js.map → 4765.9d03b0af.js.map} +1 -1
  37. package/dist/chunks/{7218.0fbf3fe9.js → 4837.3ae6253e.js} +2 -2
  38. package/dist/chunks/{7218.0fbf3fe9.js.map → 4837.3ae6253e.js.map} +1 -1
  39. package/dist/chunks/5032.380eece1.js +2 -0
  40. package/dist/chunks/5032.380eece1.js.map +1 -0
  41. package/dist/chunks/5065.3c2dbb83.js +2 -0
  42. package/dist/chunks/5065.3c2dbb83.js.map +1 -0
  43. package/dist/chunks/5498.8bf3dbd7.js +2 -0
  44. package/dist/chunks/5498.8bf3dbd7.js.map +1 -0
  45. package/dist/chunks/{5552.4b9552ba.js → 5552.965f0567.js} +2 -2
  46. package/dist/chunks/{5552.4b9552ba.js.map → 5552.965f0567.js.map} +1 -1
  47. package/dist/chunks/{7146.29dad417.js → 7146.2edec8bc.js} +2 -2
  48. package/dist/chunks/{7146.29dad417.js.map → 7146.2edec8bc.js.map} +1 -1
  49. package/dist/chunks/{4837.dc61e345.js → 7218.4acefe69.js} +2 -2
  50. package/dist/chunks/{4837.dc61e345.js.map → 7218.4acefe69.js.map} +1 -1
  51. package/dist/chunks/7733.4dfd8892.js +2 -0
  52. package/dist/chunks/{7733.e71133ff.js.map → 7733.4dfd8892.js.map} +1 -1
  53. package/dist/chunks/{8097.f5a73244.js → 8097.c5283514.js} +2 -2
  54. package/dist/chunks/{8097.f5a73244.js.map → 8097.c5283514.js.map} +1 -1
  55. package/dist/chunks/8263.2d81f44c.js +2 -0
  56. package/dist/chunks/8263.2d81f44c.js.map +1 -0
  57. package/dist/chunks/8311.ac832586.js +2 -0
  58. package/dist/chunks/8311.ac832586.js.map +1 -0
  59. package/dist/chunks/8755.320dc44a.js +2 -0
  60. package/dist/chunks/8755.320dc44a.js.map +1 -0
  61. package/dist/chunks/8757.4825c77f.js +2 -0
  62. package/dist/chunks/8757.4825c77f.js.map +1 -0
  63. package/dist/chunks/948.e1790690.js +3 -0
  64. package/dist/chunks/948.e1790690.js.map +1 -0
  65. package/dist/chunks/code-wrapper.be0d1487.js +3 -0
  66. package/dist/chunks/code-wrapper.be0d1487.js.map +1 -0
  67. package/dist/chunks/{eo-alert.0f3e7944.js → eo-alert.625d5099.js} +3 -3
  68. package/dist/chunks/{eo-alert.0f3e7944.js.map → eo-alert.625d5099.js.map} +1 -1
  69. package/dist/chunks/eo-card-item.225ef485.js +3 -0
  70. package/dist/chunks/{eo-card-item.ff85935a.js.map → eo-card-item.225ef485.js.map} +1 -1
  71. package/dist/chunks/eo-carousel-text.8188b7b7.js +2 -0
  72. package/dist/chunks/{eo-carousel-text.b0e3ca7c.js.map → eo-carousel-text.8188b7b7.js.map} +1 -1
  73. package/dist/chunks/eo-code-block.8853f77b.js +2 -0
  74. package/dist/chunks/eo-code-block.8853f77b.js.map +1 -0
  75. package/dist/chunks/eo-code-display.c457657a.js +2 -0
  76. package/dist/chunks/eo-code-display.c457657a.js.map +1 -0
  77. package/dist/chunks/eo-current-time.c203517c.js +2 -0
  78. package/dist/chunks/{eo-current-time.28667a90.js.map → eo-current-time.c203517c.js.map} +1 -1
  79. package/dist/chunks/{eo-descriptions.4ce01d04.js → eo-descriptions.9da014f3.js} +3 -3
  80. package/dist/chunks/{eo-descriptions.4ce01d04.js.map → eo-descriptions.9da014f3.js.map} +1 -1
  81. package/dist/chunks/eo-divider.7273176b.js +3 -0
  82. package/dist/chunks/{eo-divider.f669534e.js.map → eo-divider.7273176b.js.map} +1 -1
  83. package/dist/chunks/eo-humanize-time.42af69a7.js +2 -0
  84. package/dist/chunks/{eo-humanize-time.6d09bec0.js.map → eo-humanize-time.42af69a7.js.map} +1 -1
  85. package/dist/chunks/{eo-info-card-item.844117a4.js → eo-info-card-item.9c7a6579.js} +3 -3
  86. package/dist/chunks/{eo-info-card-item.844117a4.js.map → eo-info-card-item.9c7a6579.js.map} +1 -1
  87. package/dist/chunks/{eo-loading-step.f189dd21.js → eo-loading-step.7c1cfe82.js} +3 -3
  88. package/dist/chunks/{eo-loading-step.f189dd21.js.map → eo-loading-step.7c1cfe82.js.map} +1 -1
  89. package/dist/chunks/eo-pagination.8f5dcfce.js +3 -0
  90. package/dist/chunks/eo-pagination.8f5dcfce.js.LICENSE.txt +5 -0
  91. package/dist/chunks/{eo-pagination.5f8f5ec7.js.map → eo-pagination.8f5dcfce.js.map} +1 -1
  92. package/dist/chunks/eo-statistics-card.3ef146cb.js +2 -0
  93. package/dist/chunks/{eo-statistics-card.c6317452.js.map → eo-statistics-card.3ef146cb.js.map} +1 -1
  94. package/dist/chunks/main.96df5002.js +2 -0
  95. package/dist/chunks/main.96df5002.js.map +1 -0
  96. package/dist/examples.json +10 -10
  97. package/dist/index.5a0be08d.js +2 -0
  98. package/dist/index.5a0be08d.js.map +1 -0
  99. package/dist/manifest.json +292 -202
  100. package/dist/types.json +350 -215
  101. package/dist-types/bootstrap.d.ts +2 -0
  102. package/dist-types/code-block/index.d.ts +36 -0
  103. package/dist-types/code-block/index.spec.d.ts +2 -0
  104. package/dist-types/code-wrapper/index.d.ts +32 -0
  105. package/dist-types/code-wrapper/index.spec.d.ts +1 -0
  106. package/docs/code-block.md +15 -0
  107. package/package.json +3 -3
  108. package/dist/chunks/114.1c7311ae.js +0 -2
  109. package/dist/chunks/1889.39e890ab.js +0 -2
  110. package/dist/chunks/1889.39e890ab.js.map +0 -1
  111. package/dist/chunks/4306.0c3d1cb1.js +0 -2
  112. package/dist/chunks/4306.0c3d1cb1.js.map +0 -1
  113. package/dist/chunks/5746.69eae993.js +0 -3
  114. package/dist/chunks/5746.69eae993.js.map +0 -1
  115. package/dist/chunks/7082.46145334.js +0 -2
  116. package/dist/chunks/7082.46145334.js.map +0 -1
  117. package/dist/chunks/7733.e71133ff.js +0 -2
  118. package/dist/chunks/9140.13b890b2.js +0 -3
  119. package/dist/chunks/9140.13b890b2.js.map +0 -1
  120. package/dist/chunks/eo-card-item.ff85935a.js +0 -3
  121. package/dist/chunks/eo-carousel-text.b0e3ca7c.js +0 -2
  122. package/dist/chunks/eo-code-display.a3897397.js +0 -2
  123. package/dist/chunks/eo-code-display.a3897397.js.map +0 -1
  124. package/dist/chunks/eo-current-time.28667a90.js +0 -2
  125. package/dist/chunks/eo-divider.f669534e.js +0 -3
  126. package/dist/chunks/eo-humanize-time.6d09bec0.js +0 -2
  127. package/dist/chunks/eo-pagination.5f8f5ec7.js +0 -3
  128. package/dist/chunks/eo-statistics-card.c6317452.js +0 -2
  129. package/dist/chunks/main.12cfdc5c.js +0 -2
  130. package/dist/chunks/main.12cfdc5c.js.map +0 -1
  131. package/dist/index.ea66813e.js +0 -2
  132. package/dist/index.ea66813e.js.map +0 -1
  133. /package/dist/chunks/{5746.69eae993.js.LICENSE.txt → 3699.6f60864f.js.LICENSE.txt} +0 -0
  134. /package/dist/chunks/{9140.13b890b2.js.LICENSE.txt → 948.e1790690.js.LICENSE.txt} +0 -0
  135. /package/dist/chunks/{eo-alert.0f3e7944.js.LICENSE.txt → code-wrapper.be0d1487.js.LICENSE.txt} +0 -0
  136. /package/dist/chunks/{eo-card-item.ff85935a.js.LICENSE.txt → eo-alert.625d5099.js.LICENSE.txt} +0 -0
  137. /package/dist/chunks/{eo-descriptions.4ce01d04.js.LICENSE.txt → eo-card-item.225ef485.js.LICENSE.txt} +0 -0
  138. /package/dist/chunks/{eo-divider.f669534e.js.LICENSE.txt → eo-descriptions.9da014f3.js.LICENSE.txt} +0 -0
  139. /package/dist/chunks/{eo-info-card-item.844117a4.js.LICENSE.txt → eo-divider.7273176b.js.LICENSE.txt} +0 -0
  140. /package/dist/chunks/{eo-loading-step.f189dd21.js.LICENSE.txt → eo-info-card-item.9c7a6579.js.LICENSE.txt} +0 -0
  141. /package/dist/chunks/{eo-pagination.5f8f5ec7.js.LICENSE.txt → eo-loading-step.7c1cfe82.js.LICENSE.txt} +0 -0
@@ -74,6 +74,186 @@
74
74
  "description": "通用描述列表构件",
75
75
  "category": "text"
76
76
  },
77
+ {
78
+ "name": "eo-alert",
79
+ "alias": [
80
+ "presentational.general-alert"
81
+ ],
82
+ "properties": [
83
+ {
84
+ "name": "type",
85
+ "description": "警告类型",
86
+ "attribute": false,
87
+ "type": "AlertType"
88
+ },
89
+ {
90
+ "name": "hasTitle",
91
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
92
+ "type": "boolean"
93
+ },
94
+ {
95
+ "name": "showIcon",
96
+ "description": "是否显示提示图标",
97
+ "type": "boolean"
98
+ },
99
+ {
100
+ "name": "closable",
101
+ "description": "是否显示关闭按钮",
102
+ "type": "boolean"
103
+ },
104
+ {
105
+ "name": "localStorageKey",
106
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
107
+ "type": "string"
108
+ },
109
+ {
110
+ "name": "disableUrlNamespace",
111
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
112
+ "type": "boolean"
113
+ },
114
+ {
115
+ "name": "textContent",
116
+ "type": "string",
117
+ "description": "文本内容"
118
+ }
119
+ ],
120
+ "events": [],
121
+ "slots": [
122
+ {
123
+ "name": null,
124
+ "description": "内容区"
125
+ },
126
+ {
127
+ "name": "title",
128
+ "description": "标题"
129
+ }
130
+ ],
131
+ "methods": [],
132
+ "parts": [],
133
+ "description": "告警提示",
134
+ "category": "display-component"
135
+ },
136
+ {
137
+ "name": "eo-code-display",
138
+ "alias": [
139
+ "presentational.code-display"
140
+ ],
141
+ "properties": [
142
+ {
143
+ "name": "value",
144
+ "description": "代码内容",
145
+ "default": "\"\"",
146
+ "type": "string"
147
+ },
148
+ {
149
+ "name": "language",
150
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
151
+ "type": "string"
152
+ },
153
+ {
154
+ "name": "hideLineNumber",
155
+ "description": "是否隐藏行号",
156
+ "type": "boolean"
157
+ },
158
+ {
159
+ "name": "maxLines",
160
+ "description": "最大行数",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "name": "minLines",
165
+ "description": "最小行数",
166
+ "type": "number"
167
+ },
168
+ {
169
+ "name": "showCopyButton",
170
+ "description": "是否显示复制按钮",
171
+ "default": "true",
172
+ "type": "boolean"
173
+ },
174
+ {
175
+ "name": "showExportButton",
176
+ "description": "是否显示导出按钮",
177
+ "type": "boolean"
178
+ },
179
+ {
180
+ "name": "exportFileName",
181
+ "description": "导出的文件名",
182
+ "default": "download.txt",
183
+ "type": "string"
184
+ }
185
+ ],
186
+ "events": [],
187
+ "slots": [],
188
+ "methods": [],
189
+ "parts": [],
190
+ "description": "代码展示",
191
+ "category": "display-component"
192
+ },
193
+ {
194
+ "name": "eo-pagination",
195
+ "properties": [
196
+ {
197
+ "name": "type",
198
+ "description": "",
199
+ "default": "\"page\"",
200
+ "type": "\"page\" | \"token\""
201
+ },
202
+ {
203
+ "name": "total",
204
+ "description": "数据总数",
205
+ "default": "0",
206
+ "type": "number"
207
+ },
208
+ {
209
+ "name": "page",
210
+ "description": "当前页数",
211
+ "default": "1",
212
+ "type": "number"
213
+ },
214
+ {
215
+ "name": "pageSize",
216
+ "description": "每页条数",
217
+ "default": "20",
218
+ "type": "number"
219
+ },
220
+ {
221
+ "name": "pageSizeOptions",
222
+ "description": "指定每页可以显示多少条",
223
+ "default": "[10, 20, 50, 100]",
224
+ "attribute": false,
225
+ "type": "number[]"
226
+ },
227
+ {
228
+ "name": "showSizeChanger",
229
+ "description": "是否展示`pageSize`分页器",
230
+ "default": "true",
231
+ "type": "boolean"
232
+ },
233
+ {
234
+ "name": "nextToken",
235
+ "type": "string"
236
+ },
237
+ {
238
+ "name": "previousToken",
239
+ "type": "string"
240
+ }
241
+ ],
242
+ "events": [
243
+ {
244
+ "name": "change",
245
+ "description": "页码及每页条数改变事件",
246
+ "detail": {
247
+ "type": "ChangeDetail"
248
+ }
249
+ }
250
+ ],
251
+ "slots": [],
252
+ "methods": [],
253
+ "parts": [],
254
+ "description": "分页",
255
+ "category": "navigation"
256
+ },
77
257
  {
78
258
  "name": "eo-card-item",
79
259
  "properties": [
@@ -250,127 +430,46 @@
250
430
  "category": "card-info"
251
431
  },
252
432
  {
253
- "name": "eo-pagination",
433
+ "name": "eo-divider",
254
434
  "properties": [
255
435
  {
256
- "name": "type",
257
- "description": "",
258
- "default": "\"page\"",
259
- "type": "\"page\" | \"token\""
260
- },
261
- {
262
- "name": "total",
263
- "description": "数据总数",
264
- "default": "0",
265
- "type": "number"
266
- },
267
- {
268
- "name": "page",
269
- "description": "当前页数",
270
- "default": "1",
271
- "type": "number"
272
- },
273
- {
274
- "name": "pageSize",
275
- "description": "每页条数",
276
- "default": "20",
277
- "type": "number"
278
- },
279
- {
280
- "name": "pageSizeOptions",
281
- "description": "指定每页可以显示多少条",
282
- "default": "[10, 20, 50, 100]",
436
+ "name": "orientation",
437
+ "description": "标题位置,在horizontal类型的分割线中使用",
438
+ "default": "center",
283
439
  "attribute": false,
284
- "type": "number[]"
440
+ "type": "OrientationType"
285
441
  },
286
442
  {
287
- "name": "showSizeChanger",
288
- "description": "是否展示`pageSize`分页器",
289
- "default": "true",
443
+ "name": "dashed",
444
+ "description": "是否虚线",
445
+ "default": "false",
290
446
  "type": "boolean"
291
447
  },
292
- {
293
- "name": "nextToken",
294
- "type": "string"
295
- },
296
- {
297
- "name": "previousToken",
298
- "type": "string"
299
- }
300
- ],
301
- "events": [
302
- {
303
- "name": "change",
304
- "description": "页码及每页条数改变事件",
305
- "detail": {
306
- "type": "ChangeDetail"
307
- }
308
- }
309
- ],
310
- "slots": [],
311
- "methods": [],
312
- "parts": [],
313
- "description": "分页",
314
- "category": "navigation"
315
- },
316
- {
317
- "name": "eo-alert",
318
- "alias": [
319
- "presentational.general-alert"
320
- ],
321
- "properties": [
322
448
  {
323
449
  "name": "type",
324
- "description": "警告类型",
325
- "attribute": false,
326
- "type": "AlertType"
327
- },
328
- {
329
- "name": "hasTitle",
330
- "description": "是否显示标题。开启后,可以使用 `title` 插槽",
331
- "type": "boolean"
332
- },
333
- {
334
- "name": "showIcon",
335
- "description": "是否显示提示图标",
336
- "type": "boolean"
337
- },
338
- {
339
- "name": "closable",
340
- "description": "是否显示关闭按钮",
341
- "type": "boolean"
342
- },
343
- {
344
- "name": "localStorageKey",
345
- "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
346
- "type": "string"
450
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
451
+ "default": "\"horizontal\"",
452
+ "type": "dividerType"
347
453
  },
348
454
  {
349
- "name": "disableUrlNamespace",
350
- "description": "关闭后仅以 `localStorageKey` 作为命名空间",
351
- "type": "boolean"
455
+ "name": "proportion",
456
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
457
+ "attribute": false,
458
+ "type": "[number, number]"
352
459
  },
353
460
  {
354
- "name": "textContent",
355
- "type": "string",
356
- "description": "文本内容"
461
+ "name": "dividerStyle",
462
+ "description": "分割线自定义样式",
463
+ "attribute": false,
464
+ "type": "CSSProperties"
357
465
  }
358
466
  ],
359
467
  "events": [],
360
- "slots": [
361
- {
362
- "name": null,
363
- "description": "内容区"
364
- },
365
- {
366
- "name": "title",
367
- "description": "标题"
368
- }
369
- ],
468
+ "slots": [],
370
469
  "methods": [],
371
470
  "parts": [],
372
- "description": "告警提示",
373
- "category": "display-component"
471
+ "description": "分割线",
472
+ "category": "container-display"
374
473
  },
375
474
  {
376
475
  "name": "eo-info-card-item",
@@ -415,48 +514,6 @@
415
514
  "description": "信息卡片",
416
515
  "category": "card-info"
417
516
  },
418
- {
419
- "name": "eo-divider",
420
- "properties": [
421
- {
422
- "name": "orientation",
423
- "description": "标题位置,在horizontal类型的分割线中使用",
424
- "default": "center",
425
- "attribute": false,
426
- "type": "OrientationType"
427
- },
428
- {
429
- "name": "dashed",
430
- "description": "是否虚线",
431
- "default": "false",
432
- "type": "boolean"
433
- },
434
- {
435
- "name": "type",
436
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
437
- "default": "\"horizontal\"",
438
- "type": "dividerType"
439
- },
440
- {
441
- "name": "proportion",
442
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
443
- "attribute": false,
444
- "type": "[number, number]"
445
- },
446
- {
447
- "name": "dividerStyle",
448
- "description": "分割线自定义样式",
449
- "attribute": false,
450
- "type": "CSSProperties"
451
- }
452
- ],
453
- "events": [],
454
- "slots": [],
455
- "methods": [],
456
- "parts": [],
457
- "description": "分割线",
458
- "category": "container-display"
459
- },
460
517
  {
461
518
  "name": "eo-humanize-time",
462
519
  "alias": [
@@ -522,63 +579,6 @@
522
579
  "parts": [],
523
580
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
524
581
  },
525
- {
526
- "name": "eo-code-display",
527
- "alias": [
528
- "presentational.code-display"
529
- ],
530
- "properties": [
531
- {
532
- "name": "value",
533
- "description": "代码内容",
534
- "default": "\"\"",
535
- "type": "string"
536
- },
537
- {
538
- "name": "language",
539
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
540
- "type": "string"
541
- },
542
- {
543
- "name": "hideLineNumber",
544
- "description": "是否隐藏行号",
545
- "type": "boolean"
546
- },
547
- {
548
- "name": "maxLines",
549
- "description": "最大行数",
550
- "type": "number"
551
- },
552
- {
553
- "name": "minLines",
554
- "description": "最小行数",
555
- "type": "number"
556
- },
557
- {
558
- "name": "showCopyButton",
559
- "description": "是否显示复制按钮",
560
- "default": "true",
561
- "type": "boolean"
562
- },
563
- {
564
- "name": "showExportButton",
565
- "description": "是否显示导出按钮",
566
- "type": "boolean"
567
- },
568
- {
569
- "name": "exportFileName",
570
- "description": "导出的文件名",
571
- "default": "download.txt",
572
- "type": "string"
573
- }
574
- ],
575
- "events": [],
576
- "slots": [],
577
- "methods": [],
578
- "parts": [],
579
- "description": "代码展示",
580
- "category": "display-component"
581
- },
582
582
  {
583
583
  "name": "eo-statistics-card",
584
584
  "properties": [
@@ -794,6 +794,96 @@
794
794
  "methods": [],
795
795
  "parts": [],
796
796
  "description": "构件 `eo-carousel-text`"
797
+ },
798
+ {
799
+ "name": "eo-code-block",
800
+ "alias": [
801
+ "presentational.code-block"
802
+ ],
803
+ "properties": [
804
+ {
805
+ "name": "language",
806
+ "type": "string"
807
+ },
808
+ {
809
+ "name": "source",
810
+ "type": "string"
811
+ },
812
+ {
813
+ "name": "theme",
814
+ "description": "",
815
+ "default": "\"auto\"",
816
+ "type": "\"auto\" | \"light-plus\" | \"dark-plus\""
817
+ },
818
+ {
819
+ "name": "themeVariant",
820
+ "description": "主题变体",
821
+ "type": "\"default\" | \"elevo\""
822
+ },
823
+ {
824
+ "name": "showCopyButton",
825
+ "description": "是否展示复制按钮",
826
+ "default": "true",
827
+ "type": "boolean"
828
+ }
829
+ ],
830
+ "events": [],
831
+ "slots": [],
832
+ "methods": [],
833
+ "parts": [
834
+ {
835
+ "name": "pre",
836
+ "description": "包裹代码内容的 `<pre>` 元素"
837
+ },
838
+ {
839
+ "name": "copy",
840
+ "description": "复制按钮"
841
+ },
842
+ {
843
+ "name": "mermaid",
844
+ "description": "Mermaid 图表"
845
+ },
846
+ {
847
+ "name": "wrapper",
848
+ "description": "code-wrapper 构件"
849
+ }
850
+ ],
851
+ "description": "构件 `eo-code-block`"
852
+ },
853
+ {
854
+ "name": "presentational.code-wrapper",
855
+ "properties": [
856
+ {
857
+ "name": "preProps",
858
+ "attribute": false,
859
+ "type": "React.PropsWithChildren<JSX.IntrinsicElements[\"pre\"]>"
860
+ },
861
+ {
862
+ "name": "showCopyButton",
863
+ "description": "是否展示复制按钮",
864
+ "default": "true",
865
+ "type": "boolean"
866
+ },
867
+ {
868
+ "name": "themeVariant",
869
+ "description": "主题变体",
870
+ "type": "\"default\" | \"elevo\""
871
+ }
872
+ ],
873
+ "events": [],
874
+ "slots": [],
875
+ "methods": [],
876
+ "parts": [
877
+ {
878
+ "name": "pre",
879
+ "description": "包裹代码内容的 `<pre>` 元素"
880
+ },
881
+ {
882
+ "name": "copy",
883
+ "description": "复制按钮"
884
+ }
885
+ ],
886
+ "description": "构件 `presentational.code-wrapper`"
797
887
  }
798
888
  ],
799
889
  "providers": []