@next-bricks/presentational 0.15.29 → 0.15.31
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.
- package/dist/chunks/4930.125ca49c.js.map +1 -1
- package/dist/chunks/eo-alert.907672e5.js.map +1 -1
- package/dist/chunks/eo-card-item.52553d39.js.map +1 -1
- package/dist/chunks/eo-code-display.d024c7d8.js.map +1 -1
- package/dist/chunks/eo-descriptions.6647628b.js.map +1 -1
- package/dist/chunks/eo-divider.4329af6c.js.map +1 -1
- package/dist/chunks/eo-humanize-time.1e81ee8c.js.map +1 -1
- package/dist/chunks/eo-info-card-item.1780bf49.js.map +1 -1
- package/dist/chunks/eo-pagination.e62d0218.js.map +1 -1
- package/dist/manifest.json +16 -8
- package/dist-types/card-item/index.d.ts +4 -3
- package/dist-types/code-display/index.d.ts +5 -3
- package/dist-types/descriptions/index.d.ts +4 -3
- package/dist-types/divider/index.d.ts +5 -4
- package/dist-types/general-alert/index.d.ts +5 -3
- package/dist-types/humanize-time/index.d.ts +4 -3
- package/dist-types/index.d.ts +0 -1
- package/dist-types/info-card-item/index.d.ts +6 -4
- package/dist-types/pagination/index.d.ts +5 -3
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, Ref } from "react";
|
|
1
|
+
import React, { CSSProperties, Ref } from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import type { LinkProps } from "@next-bricks/basic/link";
|
|
4
4
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
@@ -34,6 +34,7 @@ export interface EoCardItemProps {
|
|
|
34
34
|
* 信息类卡片 —— 通用卡片
|
|
35
35
|
* @slot expanded-area-1 - 扩展区域 1,通常放置标签信息
|
|
36
36
|
* @slot expanded-area-2 - 扩展区域 2,通常放置操作和其他属性信息(图标/头像/小字描述/统计信息)
|
|
37
|
+
* @category card-info
|
|
37
38
|
*/
|
|
38
39
|
export declare class EoCardItem extends ReactNextElement implements EoCardItemProps {
|
|
39
40
|
#private;
|
|
@@ -83,11 +84,11 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
|
|
|
83
84
|
* @internal
|
|
84
85
|
*/
|
|
85
86
|
accessor hasExpandedArea2: boolean | undefined;
|
|
86
|
-
render(): JSX.Element;
|
|
87
|
+
render(): React.JSX.Element;
|
|
87
88
|
}
|
|
88
89
|
interface EoCardItemComponentProps extends EoCardItemProps {
|
|
89
90
|
callback?: Ref<HTMLDivElement>;
|
|
90
91
|
onActionClick?: (action: ActionType) => void;
|
|
91
92
|
}
|
|
92
|
-
export declare function EoCardItemComponent(props: EoCardItemComponentProps): JSX.Element;
|
|
93
|
+
export declare function EoCardItemComponent(props: EoCardItemComponentProps): React.JSX.Element;
|
|
93
94
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
export interface CodeDisplayProps {
|
|
@@ -13,6 +13,8 @@ export interface CodeDisplayProps {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* 代码展示
|
|
16
|
+
* @author nlicro
|
|
17
|
+
* @category display-component
|
|
16
18
|
*/
|
|
17
19
|
export declare class CodeDisplay extends ReactNextElement implements CodeDisplayProps {
|
|
18
20
|
/**
|
|
@@ -48,6 +50,6 @@ export declare class CodeDisplay extends ReactNextElement implements CodeDisplay
|
|
|
48
50
|
* @default download.txt
|
|
49
51
|
*/
|
|
50
52
|
accessor exportFileName: string | undefined;
|
|
51
|
-
render(): JSX.Element;
|
|
53
|
+
render(): React.JSX.Element;
|
|
52
54
|
}
|
|
53
|
-
export declare function CodeDisplayComponent(props: CodeDisplayProps): JSX.Element;
|
|
55
|
+
export declare function CodeDisplayComponent(props: CodeDisplayProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import { UseSingleBrickConf } from "@next-core/types";
|
|
@@ -23,6 +23,7 @@ export interface DescriptionsProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* 通用描述列表构件
|
|
25
25
|
* @author sailor
|
|
26
|
+
* @category text
|
|
26
27
|
*/
|
|
27
28
|
declare class Descriptions extends ReactNextElement {
|
|
28
29
|
/**
|
|
@@ -60,7 +61,7 @@ declare class Descriptions extends ReactNextElement {
|
|
|
60
61
|
* 数据源
|
|
61
62
|
*/
|
|
62
63
|
accessor dataSource: Record<string, unknown> | undefined;
|
|
63
|
-
render(): JSX.Element;
|
|
64
|
+
render(): React.JSX.Element;
|
|
64
65
|
}
|
|
65
|
-
export declare function DescriptionsComponent(props: DescriptionsProps): JSX.Element;
|
|
66
|
+
export declare function DescriptionsComponent(props: DescriptionsProps): React.JSX.Element;
|
|
66
67
|
export { Descriptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
type OrientationType = "left" | "center" | "right";
|
|
@@ -11,8 +11,9 @@ export interface EoDividerProps {
|
|
|
11
11
|
dividerStyle?: CSSProperties;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 分割线
|
|
15
15
|
* @author zhendonghuang
|
|
16
|
+
* @category container-display
|
|
16
17
|
*/
|
|
17
18
|
export declare class EoDivider extends ReactNextElement {
|
|
18
19
|
/**
|
|
@@ -38,7 +39,7 @@ export declare class EoDivider extends ReactNextElement {
|
|
|
38
39
|
* 分割线自定义样式
|
|
39
40
|
*/
|
|
40
41
|
accessor dividerStyle: CSSProperties | undefined;
|
|
41
|
-
render(): JSX.Element;
|
|
42
|
+
render(): React.JSX.Element;
|
|
42
43
|
}
|
|
43
|
-
export declare function EoDividerComponent(props: EoDividerProps): JSX.Element;
|
|
44
|
+
export declare function EoDividerComponent(props: EoDividerProps): React.JSX.Element;
|
|
44
45
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import { AlertType } from "./constants.js";
|
|
@@ -12,8 +12,10 @@ export interface GeneralAlertProps {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* 告警提示
|
|
15
|
+
* @author nlicro
|
|
15
16
|
* @slot - 内容区
|
|
16
17
|
* @slot title - 标题
|
|
18
|
+
* @category display-component
|
|
17
19
|
*/
|
|
18
20
|
export declare class GeneralAlert extends ReactNextElement implements GeneralAlertProps {
|
|
19
21
|
#private;
|
|
@@ -37,6 +39,6 @@ export declare class GeneralAlert extends ReactNextElement implements GeneralAle
|
|
|
37
39
|
* 关闭后仅以 `localStorageKey` 作为命名空间
|
|
38
40
|
*/
|
|
39
41
|
accessor disableUrlNamespace: boolean | undefined;
|
|
40
|
-
render(): JSX.Element;
|
|
42
|
+
render(): React.JSX.Element;
|
|
41
43
|
}
|
|
42
|
-
export declare function GeneralAlertComponent(props: GeneralAlertProps): JSX.Element;
|
|
44
|
+
export declare function GeneralAlertComponent(props: GeneralAlertProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import { Target } from "../interface.js";
|
|
@@ -19,6 +19,7 @@ export interface EoHumanizeTimeProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* 人性化时间展示
|
|
21
21
|
* @author ice
|
|
22
|
+
* @category text
|
|
22
23
|
*/
|
|
23
24
|
export declare class EoHumanizeTime extends ReactNextElement {
|
|
24
25
|
/**
|
|
@@ -52,6 +53,6 @@ export declare class EoHumanizeTime extends ReactNextElement {
|
|
|
52
53
|
*/
|
|
53
54
|
accessor link: LinkInfo;
|
|
54
55
|
connectedCallback(): void;
|
|
55
|
-
render(): JSX.Element;
|
|
56
|
+
render(): React.JSX.Element;
|
|
56
57
|
}
|
|
57
|
-
export declare function HumanizeTimeComponent({ value, isMicrosecond, inputFormat, outputFormat, isCostTime, formatter, link, }: EoHumanizeTimeProps): JSX.Element;
|
|
58
|
+
export declare function HumanizeTimeComponent({ value, isMicrosecond, inputFormat, outputFormat, isCostTime, formatter, link, }: EoHumanizeTimeProps): React.JSX.Element;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { Ref } from "react";
|
|
1
|
+
import React, { Ref } from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import { UseSingleBrickConf } from "@next-core/types";
|
|
4
4
|
import "@next-core/theme";
|
|
5
5
|
import type { LinkProps } from "@next-bricks/basic/link";
|
|
6
6
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 信息卡片
|
|
9
|
+
* @author dophijing
|
|
10
|
+
* @category card-info
|
|
9
11
|
*/
|
|
10
12
|
export declare class EoInfoCardItem extends ReactNextElement {
|
|
11
13
|
#private;
|
|
@@ -38,7 +40,7 @@ export declare class EoInfoCardItem extends ReactNextElement {
|
|
|
38
40
|
* @internal
|
|
39
41
|
*/
|
|
40
42
|
accessor hasIcon: boolean | undefined;
|
|
41
|
-
render(): JSX.Element;
|
|
43
|
+
render(): React.JSX.Element;
|
|
42
44
|
}
|
|
43
45
|
interface IconAvatar {
|
|
44
46
|
icon: GeneralIconProps;
|
|
@@ -61,5 +63,5 @@ interface EoInfoCardItemComponentProps {
|
|
|
61
63
|
detailList?: InfoCardDetail[];
|
|
62
64
|
callback?: Ref<HTMLDivElement>;
|
|
63
65
|
}
|
|
64
|
-
export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, }: EoInfoCardItemComponentProps): JSX.Element;
|
|
66
|
+
export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, }: EoInfoCardItemComponentProps): React.JSX.Element;
|
|
65
67
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
interface EoPaginationProps {
|
|
@@ -10,6 +10,8 @@ interface EoPaginationProps {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* 分页
|
|
13
|
+
* @author nlicro
|
|
14
|
+
* @category navigation
|
|
13
15
|
*/
|
|
14
16
|
export declare class EoPagination extends ReactNextElement {
|
|
15
17
|
#private;
|
|
@@ -34,7 +36,7 @@ export declare class EoPagination extends ReactNextElement {
|
|
|
34
36
|
* @default true
|
|
35
37
|
*/
|
|
36
38
|
accessor showSizeChanger: boolean | undefined;
|
|
37
|
-
render(): JSX.Element;
|
|
39
|
+
render(): React.JSX.Element;
|
|
38
40
|
}
|
|
39
41
|
interface EoPaginationComponentProps extends EoPaginationProps {
|
|
40
42
|
onChange?: (data: {
|
|
@@ -42,5 +44,5 @@ interface EoPaginationComponentProps extends EoPaginationProps {
|
|
|
42
44
|
pageSize: number;
|
|
43
45
|
}) => void;
|
|
44
46
|
}
|
|
45
|
-
export declare function EoPaginationComponent(props: EoPaginationComponentProps): JSX.Element;
|
|
47
|
+
export declare function EoPaginationComponent(props: EoPaginationComponentProps): React.JSX.Element;
|
|
46
48
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.31",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@next-core/test-next": "^1.0.11",
|
|
39
39
|
"babel-plugin-prismjs": "^2.1.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d649b3489b123aaa283c3ada33a7dc76522fda04"
|
|
42
42
|
}
|