@next-bricks/presentational 1.7.2 → 1.7.4

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.
@@ -64,117 +64,6 @@
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
- },
121
- {
122
- "name": "eo-code-display",
123
- "alias": [
124
- "presentational.code-display"
125
- ],
126
- "properties": [
127
- {
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"
142
- },
143
- {
144
- "name": "maxLines",
145
- "description": "最大行数",
146
- "type": "number"
147
- },
148
- {
149
- "name": "minLines",
150
- "description": "最小行数",
151
- "type": "number"
152
- },
153
- {
154
- "name": "showCopyButton",
155
- "description": "是否显示复制按钮",
156
- "default": "true",
157
- "type": "boolean"
158
- },
159
- {
160
- "name": "showExportButton",
161
- "description": "是否显示导出按钮",
162
- "type": "boolean"
163
- },
164
- {
165
- "name": "exportFileName",
166
- "description": "导出的文件名",
167
- "default": "download.txt",
168
- "type": "string"
169
- }
170
- ],
171
- "events": [],
172
- "slots": [],
173
- "methods": [],
174
- "parts": [],
175
- "description": "代码展示",
176
- "category": "display-component"
177
- },
178
67
  {
179
68
  "name": "eo-card-item",
180
69
  "properties": [
@@ -294,6 +183,48 @@
294
183
  "description": "信息类卡片 —— 通用卡片",
295
184
  "category": "card-info"
296
185
  },
186
+ {
187
+ "name": "eo-divider",
188
+ "properties": [
189
+ {
190
+ "name": "orientation",
191
+ "description": "标题位置,在horizontal类型的分割线中使用",
192
+ "default": "center",
193
+ "attribute": false,
194
+ "type": "OrientationType"
195
+ },
196
+ {
197
+ "name": "dashed",
198
+ "description": "是否虚线",
199
+ "default": "false",
200
+ "type": "boolean"
201
+ },
202
+ {
203
+ "name": "type",
204
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
205
+ "default": "\"horizontal\"",
206
+ "type": "dividerType"
207
+ },
208
+ {
209
+ "name": "proportion",
210
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
211
+ "attribute": false,
212
+ "type": "[number, number]"
213
+ },
214
+ {
215
+ "name": "dividerStyle",
216
+ "description": "分割线自定义样式",
217
+ "attribute": false,
218
+ "type": "CSSProperties"
219
+ }
220
+ ],
221
+ "events": [],
222
+ "slots": [],
223
+ "methods": [],
224
+ "parts": [],
225
+ "description": "分割线",
226
+ "category": "container-display"
227
+ },
297
228
  {
298
229
  "name": "eo-pagination",
299
230
  "properties": [
@@ -344,48 +275,6 @@
344
275
  "description": "分页",
345
276
  "category": "navigation"
346
277
  },
347
- {
348
- "name": "eo-divider",
349
- "properties": [
350
- {
351
- "name": "orientation",
352
- "description": "标题位置,在horizontal类型的分割线中使用",
353
- "default": "center",
354
- "attribute": false,
355
- "type": "OrientationType"
356
- },
357
- {
358
- "name": "dashed",
359
- "description": "是否虚线",
360
- "default": "false",
361
- "type": "boolean"
362
- },
363
- {
364
- "name": "type",
365
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
366
- "default": "\"horizontal\"",
367
- "type": "dividerType"
368
- },
369
- {
370
- "name": "proportion",
371
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
372
- "attribute": false,
373
- "type": "[number, number]"
374
- },
375
- {
376
- "name": "dividerStyle",
377
- "description": "分割线自定义样式",
378
- "attribute": false,
379
- "type": "CSSProperties"
380
- }
381
- ],
382
- "events": [],
383
- "slots": [],
384
- "methods": [],
385
- "parts": [],
386
- "description": "分割线",
387
- "category": "container-display"
388
- },
389
278
  {
390
279
  "name": "eo-info-card-item",
391
280
  "properties": [
@@ -429,6 +318,60 @@
429
318
  "description": "信息卡片",
430
319
  "category": "card-info"
431
320
  },
321
+ {
322
+ "name": "eo-alert",
323
+ "alias": [
324
+ "presentational.general-alert"
325
+ ],
326
+ "properties": [
327
+ {
328
+ "name": "type",
329
+ "description": "警告类型",
330
+ "attribute": false,
331
+ "type": "AlertType"
332
+ },
333
+ {
334
+ "name": "hasTitle",
335
+ "description": "是否显示标题。开启后,可以使用 `title` 插槽",
336
+ "type": "boolean"
337
+ },
338
+ {
339
+ "name": "showIcon",
340
+ "description": "是否显示提示图标",
341
+ "type": "boolean"
342
+ },
343
+ {
344
+ "name": "closable",
345
+ "description": "是否显示关闭按钮",
346
+ "type": "boolean"
347
+ },
348
+ {
349
+ "name": "localStorageKey",
350
+ "description": "以该值和页面 url 作为命名空间,决定是否显示该警告提示",
351
+ "type": "string"
352
+ },
353
+ {
354
+ "name": "disableUrlNamespace",
355
+ "description": "关闭后仅以 `localStorageKey` 作为命名空间",
356
+ "type": "boolean"
357
+ }
358
+ ],
359
+ "events": [],
360
+ "slots": [
361
+ {
362
+ "name": null,
363
+ "description": "内容区"
364
+ },
365
+ {
366
+ "name": "title",
367
+ "description": "标题"
368
+ }
369
+ ],
370
+ "methods": [],
371
+ "parts": [],
372
+ "description": "告警提示",
373
+ "category": "display-component"
374
+ },
432
375
  {
433
376
  "name": "eo-humanize-time",
434
377
  "alias": [
@@ -572,6 +515,63 @@
572
515
  "parts": [],
573
516
  "description": "统计卡片"
574
517
  },
518
+ {
519
+ "name": "eo-code-display",
520
+ "alias": [
521
+ "presentational.code-display"
522
+ ],
523
+ "properties": [
524
+ {
525
+ "name": "value",
526
+ "description": "代码内容",
527
+ "default": "\"\"",
528
+ "type": "string"
529
+ },
530
+ {
531
+ "name": "language",
532
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
533
+ "type": "string"
534
+ },
535
+ {
536
+ "name": "hideLineNumber",
537
+ "description": "是否隐藏行号",
538
+ "type": "boolean"
539
+ },
540
+ {
541
+ "name": "maxLines",
542
+ "description": "最大行数",
543
+ "type": "number"
544
+ },
545
+ {
546
+ "name": "minLines",
547
+ "description": "最小行数",
548
+ "type": "number"
549
+ },
550
+ {
551
+ "name": "showCopyButton",
552
+ "description": "是否显示复制按钮",
553
+ "default": "true",
554
+ "type": "boolean"
555
+ },
556
+ {
557
+ "name": "showExportButton",
558
+ "description": "是否显示导出按钮",
559
+ "type": "boolean"
560
+ },
561
+ {
562
+ "name": "exportFileName",
563
+ "description": "导出的文件名",
564
+ "default": "download.txt",
565
+ "type": "string"
566
+ }
567
+ ],
568
+ "events": [],
569
+ "slots": [],
570
+ "methods": [],
571
+ "parts": [],
572
+ "description": "代码展示",
573
+ "category": "display-component"
574
+ },
575
575
  {
576
576
  "name": "eo-loading-step",
577
577
  "properties": [
package/dist/types.json CHANGED
@@ -1524,6 +1524,85 @@
1524
1524
  "events": [],
1525
1525
  "methods": []
1526
1526
  },
1527
+ "eo-pagination": {
1528
+ "properties": [
1529
+ {
1530
+ "name": "total",
1531
+ "annotation": {
1532
+ "type": "keyword",
1533
+ "value": "number"
1534
+ }
1535
+ },
1536
+ {
1537
+ "name": "page",
1538
+ "annotation": {
1539
+ "type": "keyword",
1540
+ "value": "number"
1541
+ }
1542
+ },
1543
+ {
1544
+ "name": "pageSize",
1545
+ "annotation": {
1546
+ "type": "keyword",
1547
+ "value": "number"
1548
+ }
1549
+ },
1550
+ {
1551
+ "name": "pageSizeOptions",
1552
+ "annotation": {
1553
+ "type": "array",
1554
+ "elementType": {
1555
+ "type": "keyword",
1556
+ "value": "number"
1557
+ }
1558
+ }
1559
+ },
1560
+ {
1561
+ "name": "showSizeChanger",
1562
+ "annotation": {
1563
+ "type": "keyword",
1564
+ "value": "boolean"
1565
+ }
1566
+ }
1567
+ ],
1568
+ "events": [
1569
+ {
1570
+ "name": "change",
1571
+ "detail": {
1572
+ "annotation": {
1573
+ "type": "typeLiteral",
1574
+ "members": [
1575
+ {
1576
+ "type": "propertySignature",
1577
+ "key": {
1578
+ "type": "identifier",
1579
+ "name": "page"
1580
+ },
1581
+ "annotation": {
1582
+ "type": "keyword",
1583
+ "value": "number"
1584
+ },
1585
+ "computed": false
1586
+ },
1587
+ {
1588
+ "type": "propertySignature",
1589
+ "key": {
1590
+ "type": "identifier",
1591
+ "name": "pageSize"
1592
+ },
1593
+ "annotation": {
1594
+ "type": "keyword",
1595
+ "value": "number"
1596
+ },
1597
+ "computed": false
1598
+ }
1599
+ ]
1600
+ }
1601
+ }
1602
+ }
1603
+ ],
1604
+ "methods": []
1605
+ },
1527
1606
  "eo-alert": {
1528
1607
  "properties": [
1529
1608
  {
@@ -1627,147 +1706,6 @@
1627
1706
  }
1628
1707
  ]
1629
1708
  },
1630
- "eo-code-display": {
1631
- "properties": [
1632
- {
1633
- "name": "value",
1634
- "annotation": {
1635
- "type": "keyword",
1636
- "value": "string"
1637
- }
1638
- },
1639
- {
1640
- "name": "language",
1641
- "annotation": {
1642
- "type": "keyword",
1643
- "value": "string"
1644
- }
1645
- },
1646
- {
1647
- "name": "hideLineNumber",
1648
- "annotation": {
1649
- "type": "keyword",
1650
- "value": "boolean"
1651
- }
1652
- },
1653
- {
1654
- "name": "maxLines",
1655
- "annotation": {
1656
- "type": "keyword",
1657
- "value": "number"
1658
- }
1659
- },
1660
- {
1661
- "name": "minLines",
1662
- "annotation": {
1663
- "type": "keyword",
1664
- "value": "number"
1665
- }
1666
- },
1667
- {
1668
- "name": "showCopyButton",
1669
- "annotation": {
1670
- "type": "keyword",
1671
- "value": "boolean"
1672
- }
1673
- },
1674
- {
1675
- "name": "showExportButton",
1676
- "annotation": {
1677
- "type": "keyword",
1678
- "value": "boolean"
1679
- }
1680
- },
1681
- {
1682
- "name": "exportFileName",
1683
- "annotation": {
1684
- "type": "keyword",
1685
- "value": "string"
1686
- }
1687
- }
1688
- ],
1689
- "events": [],
1690
- "methods": []
1691
- },
1692
- "eo-pagination": {
1693
- "properties": [
1694
- {
1695
- "name": "total",
1696
- "annotation": {
1697
- "type": "keyword",
1698
- "value": "number"
1699
- }
1700
- },
1701
- {
1702
- "name": "page",
1703
- "annotation": {
1704
- "type": "keyword",
1705
- "value": "number"
1706
- }
1707
- },
1708
- {
1709
- "name": "pageSize",
1710
- "annotation": {
1711
- "type": "keyword",
1712
- "value": "number"
1713
- }
1714
- },
1715
- {
1716
- "name": "pageSizeOptions",
1717
- "annotation": {
1718
- "type": "array",
1719
- "elementType": {
1720
- "type": "keyword",
1721
- "value": "number"
1722
- }
1723
- }
1724
- },
1725
- {
1726
- "name": "showSizeChanger",
1727
- "annotation": {
1728
- "type": "keyword",
1729
- "value": "boolean"
1730
- }
1731
- }
1732
- ],
1733
- "events": [
1734
- {
1735
- "name": "change",
1736
- "detail": {
1737
- "annotation": {
1738
- "type": "typeLiteral",
1739
- "members": [
1740
- {
1741
- "type": "propertySignature",
1742
- "key": {
1743
- "type": "identifier",
1744
- "name": "page"
1745
- },
1746
- "annotation": {
1747
- "type": "keyword",
1748
- "value": "number"
1749
- },
1750
- "computed": false
1751
- },
1752
- {
1753
- "type": "propertySignature",
1754
- "key": {
1755
- "type": "identifier",
1756
- "name": "pageSize"
1757
- },
1758
- "annotation": {
1759
- "type": "keyword",
1760
- "value": "number"
1761
- },
1762
- "computed": false
1763
- }
1764
- ]
1765
- }
1766
- }
1767
- }
1768
- ],
1769
- "methods": []
1770
- },
1771
1709
  "eo-humanize-time": {
1772
1710
  "properties": [
1773
1711
  {
@@ -1873,5 +1811,67 @@
1873
1811
  ]
1874
1812
  }
1875
1813
  ]
1814
+ },
1815
+ "eo-code-display": {
1816
+ "properties": [
1817
+ {
1818
+ "name": "value",
1819
+ "annotation": {
1820
+ "type": "keyword",
1821
+ "value": "string"
1822
+ }
1823
+ },
1824
+ {
1825
+ "name": "language",
1826
+ "annotation": {
1827
+ "type": "keyword",
1828
+ "value": "string"
1829
+ }
1830
+ },
1831
+ {
1832
+ "name": "hideLineNumber",
1833
+ "annotation": {
1834
+ "type": "keyword",
1835
+ "value": "boolean"
1836
+ }
1837
+ },
1838
+ {
1839
+ "name": "maxLines",
1840
+ "annotation": {
1841
+ "type": "keyword",
1842
+ "value": "number"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "minLines",
1847
+ "annotation": {
1848
+ "type": "keyword",
1849
+ "value": "number"
1850
+ }
1851
+ },
1852
+ {
1853
+ "name": "showCopyButton",
1854
+ "annotation": {
1855
+ "type": "keyword",
1856
+ "value": "boolean"
1857
+ }
1858
+ },
1859
+ {
1860
+ "name": "showExportButton",
1861
+ "annotation": {
1862
+ "type": "keyword",
1863
+ "value": "boolean"
1864
+ }
1865
+ },
1866
+ {
1867
+ "name": "exportFileName",
1868
+ "annotation": {
1869
+ "type": "keyword",
1870
+ "value": "string"
1871
+ }
1872
+ }
1873
+ ],
1874
+ "events": [],
1875
+ "methods": []
1876
1876
  }
1877
1877
  }
@@ -4,7 +4,6 @@ import type { LinkProps } from "@next-bricks/basic/link";
4
4
  import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
5
5
  import type { SimpleActionType, ActionType } from "@next-bricks/basic/mini-actions";
6
6
  import "@next-core/theme";
7
- import "./host-contenxt.css";
8
7
  interface IconAvatar {
9
8
  containerSize?: string;
10
9
  icon: GeneralIconProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.20.9",
37
+ "@next-core/build-next-bricks": "^1.21.0",
38
38
  "@next-core/test-next": "^1.1.1",
39
39
  "babel-plugin-prismjs": "^2.1.0"
40
40
  },
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/containers": "*",
44
44
  "@next-bricks/icons": "*"
45
45
  },
46
- "gitHead": "5eb7b76a27f0f60068247d4dfbd00a088f5abe59"
46
+ "gitHead": "3c022382dfcc985a3754ad947343cd943debb333"
47
47
  }