@next-bricks/presentational 1.21.5 → 1.21.7
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/5045.bd51599d.js.map +1 -1
- package/dist/chunks/eo-descriptions.b8320ca9.js.map +1 -1
- package/dist/chunks/eo-info-card-item.0d15cb28.js.map +1 -1
- package/dist/chunks/eo-loading-step.834e0aa3.js.map +1 -1
- package/dist/chunks/eo-pagination.16fd816a.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/types.json +2 -18
- package/dist-types/descriptions/index.d.ts +2 -2
- package/dist-types/info-card-item/index.d.ts +5 -6
- package/dist-types/jsx.d.ts +49 -0
- package/dist-types/loading-step/index.d.ts +2 -3
- package/dist-types/pagination/index.d.ts +8 -8
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
|
9
9
|
* @author dophijing
|
|
10
10
|
* @category card-info
|
|
11
11
|
*/
|
|
12
|
-
export declare class EoInfoCardItem extends ReactNextElement {
|
|
12
|
+
export declare class EoInfoCardItem extends ReactNextElement implements EoInfoCardItemProps {
|
|
13
13
|
#private;
|
|
14
14
|
/**
|
|
15
15
|
* title
|
|
@@ -47,19 +47,19 @@ export declare class EoInfoCardItem extends ReactNextElement {
|
|
|
47
47
|
accessor hoverable: boolean | undefined;
|
|
48
48
|
render(): React.JSX.Element;
|
|
49
49
|
}
|
|
50
|
-
interface IconAvatar {
|
|
50
|
+
export interface IconAvatar {
|
|
51
51
|
icon: GeneralIconProps;
|
|
52
52
|
color?: string;
|
|
53
53
|
size?: number;
|
|
54
54
|
shape?: "circle" | "square" | "round-square";
|
|
55
55
|
bgColor?: string;
|
|
56
56
|
}
|
|
57
|
-
interface InfoCardDetail {
|
|
57
|
+
export interface InfoCardDetail {
|
|
58
58
|
title?: string;
|
|
59
59
|
desc?: string;
|
|
60
60
|
useBrick?: UseSingleBrickConf;
|
|
61
61
|
}
|
|
62
|
-
interface
|
|
62
|
+
export interface EoInfoCardItemProps {
|
|
63
63
|
url?: string;
|
|
64
64
|
target?: LinkProps["target"];
|
|
65
65
|
cardTitle: string;
|
|
@@ -69,5 +69,4 @@ interface EoInfoCardItemComponentProps {
|
|
|
69
69
|
callback?: Ref<HTMLDivElement>;
|
|
70
70
|
hoverable?: boolean;
|
|
71
71
|
}
|
|
72
|
-
export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, hoverable, }:
|
|
73
|
-
export {};
|
|
72
|
+
export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, hoverable, }: EoInfoCardItemProps): React.JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
2
|
+
import type { DescriptionItem, Descriptions, DescriptionsProps } from "./descriptions";
|
|
3
|
+
import type { GeneralAlert, GeneralAlertProps } from "./general-alert";
|
|
4
|
+
import type { CodeDisplay, CodeDisplayProps } from "./code-display";
|
|
5
|
+
import type { ChangeDetail, EoPagination, EoPaginationProps } from "./pagination";
|
|
6
|
+
import type { EoCardItem, EoCardItemProps } from "./card-item";
|
|
7
|
+
import type { EoDivider, EoDividerProps } from "./divider";
|
|
8
|
+
import type { EoInfoCardItem, EoInfoCardItemProps } from "./info-card-item";
|
|
9
|
+
import type { EoHumanizeTime, EoHumanizeTimeProps } from "./humanize-time";
|
|
10
|
+
import type { EoStatisticsCard, EoStatisticsCardProps } from "./statistics-card";
|
|
11
|
+
import type { EoLoadingStep, EoLoadingStepProps } from "./loading-step";
|
|
12
|
+
import type { EoCurrentTime, CurrentTimeProps } from "./current-time";
|
|
13
|
+
import type { EoCarouselText, EoCarouselTextProps } from "./carousel-text";
|
|
14
|
+
import type { CodeBlock, CodeBlockProps } from "./code-block";
|
|
15
|
+
import type { CodeWrapper, CodeWrapperProps } from "./code-wrapper";
|
|
16
|
+
declare global {
|
|
17
|
+
namespace JSX {
|
|
18
|
+
interface IntrinsicElements {
|
|
19
|
+
"eo-descriptions": DetailedHTMLProps<HTMLAttributes<Descriptions>, Descriptions> & Omit<DescriptionsProps, "list"> & {
|
|
20
|
+
list?: Array<Omit<DescriptionItem, "useBrick"> & {
|
|
21
|
+
render?: (data: any) => React.ReactNode;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
"eo-alert": DetailedHTMLProps<HTMLAttributes<GeneralAlert>, GeneralAlert> & GeneralAlertProps;
|
|
25
|
+
"eo-code-display": DetailedHTMLProps<HTMLAttributes<CodeDisplay>, CodeDisplay> & CodeDisplayProps;
|
|
26
|
+
"eo-pagination": DetailedHTMLProps<HTMLAttributes<EoPagination>, EoPagination> & EoPaginationProps & {
|
|
27
|
+
onChange?: (event: CustomEvent<ChangeDetail>) => void;
|
|
28
|
+
};
|
|
29
|
+
"eo-card-item": DetailedHTMLProps<HTMLAttributes<EoCardItem>, EoCardItem> & EoCardItemProps & {
|
|
30
|
+
onClick?: (event: CustomEvent) => void;
|
|
31
|
+
"onAction.click"?: (event: CustomEvent) => void;
|
|
32
|
+
};
|
|
33
|
+
"eo-divider": DetailedHTMLProps<HTMLAttributes<EoDivider>, EoDivider> & EoDividerProps;
|
|
34
|
+
"eo-info-card-item": DetailedHTMLProps<HTMLAttributes<EoInfoCardItem>, EoInfoCardItem> & EoInfoCardItemProps;
|
|
35
|
+
"eo-humanize-time": DetailedHTMLProps<HTMLAttributes<EoHumanizeTime>, EoHumanizeTime> & EoHumanizeTimeProps;
|
|
36
|
+
"eo-statistics-card": DetailedHTMLProps<HTMLAttributes<EoStatisticsCard>, EoStatisticsCard> & EoStatisticsCardProps & {
|
|
37
|
+
onClick?: (event: CustomEvent) => void;
|
|
38
|
+
};
|
|
39
|
+
"eo-loading-step": DetailedHTMLProps<HTMLAttributes<EoLoadingStep>, EoLoadingStep> & EoLoadingStepProps & {
|
|
40
|
+
onOpen?: (event: CustomEvent<void>) => void;
|
|
41
|
+
onClose?: (event: CustomEvent<void>) => void;
|
|
42
|
+
};
|
|
43
|
+
"eo-current-time": DetailedHTMLProps<HTMLAttributes<EoCurrentTime>, EoCurrentTime> & CurrentTimeProps;
|
|
44
|
+
"eo-carousel-text": DetailedHTMLProps<HTMLAttributes<EoCarouselText>, EoCarouselText> & EoCarouselTextProps;
|
|
45
|
+
"eo-code-block": DetailedHTMLProps<HTMLAttributes<CodeBlock>, CodeBlock> & CodeBlockProps;
|
|
46
|
+
"presentational.code-wrapper": DetailedHTMLProps<HTMLAttributes<CodeWrapper>, CodeWrapper> & CodeWrapperProps;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
interface StepItem {
|
|
4
|
+
export interface StepItem {
|
|
5
5
|
title: string;
|
|
6
6
|
key: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* 加载步骤框
|
|
10
10
|
*/
|
|
11
|
-
export declare class EoLoadingStep extends ReactNextElement {
|
|
11
|
+
export declare class EoLoadingStep extends ReactNextElement implements EoLoadingStepProps {
|
|
12
12
|
#private;
|
|
13
13
|
/**
|
|
14
14
|
* 是否可见
|
|
@@ -50,4 +50,3 @@ export interface EoLoadingStepProps {
|
|
|
50
50
|
curStep: string;
|
|
51
51
|
}
|
|
52
52
|
export declare function EoLoadingStepComponent(props: EoLoadingStepProps): React.JSX.Element;
|
|
53
|
-
export {};
|
|
@@ -2,22 +2,22 @@ import React from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import "./host-context.css";
|
|
5
|
-
interface EoPaginationProps {
|
|
5
|
+
export interface EoPaginationProps {
|
|
6
6
|
type?: "page" | "token";
|
|
7
|
-
total
|
|
8
|
-
page
|
|
9
|
-
pageSize
|
|
7
|
+
total?: number;
|
|
8
|
+
page?: number;
|
|
9
|
+
pageSize?: number;
|
|
10
10
|
pageSizeOptions?: number[];
|
|
11
11
|
showSizeChanger?: boolean;
|
|
12
12
|
nextToken?: string;
|
|
13
13
|
previousToken?: string;
|
|
14
14
|
}
|
|
15
|
-
type ChangeDetail = ChangeDetailOfPage | ChangeDetailOfToken;
|
|
16
|
-
interface ChangeDetailOfPage {
|
|
15
|
+
export type ChangeDetail = ChangeDetailOfPage | ChangeDetailOfToken;
|
|
16
|
+
export interface ChangeDetailOfPage {
|
|
17
17
|
page: number;
|
|
18
18
|
pageSize: number;
|
|
19
19
|
}
|
|
20
|
-
interface ChangeDetailOfToken {
|
|
20
|
+
export interface ChangeDetailOfToken {
|
|
21
21
|
type: "token";
|
|
22
22
|
nextToken: string | undefined;
|
|
23
23
|
pageSize: number;
|
|
@@ -27,7 +27,7 @@ interface ChangeDetailOfToken {
|
|
|
27
27
|
* @author nlicro
|
|
28
28
|
* @category navigation
|
|
29
29
|
*/
|
|
30
|
-
export declare class EoPagination extends ReactNextElement {
|
|
30
|
+
export declare class EoPagination extends ReactNextElement implements EoPaginationProps {
|
|
31
31
|
#private;
|
|
32
32
|
/**
|
|
33
33
|
* @default "page"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.7",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/presentational",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@next-bricks/containers": "*",
|
|
47
47
|
"@next-bricks/icons": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "44ff0a9a170ae911252a2030b9edde16ad229532"
|
|
50
50
|
}
|