@next-bricks/presentational 0.15.28 → 0.15.30

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.
@@ -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";
@@ -83,11 +83,11 @@ export declare class EoCardItem extends ReactNextElement implements EoCardItemPr
83
83
  * @internal
84
84
  */
85
85
  accessor hasExpandedArea2: boolean | undefined;
86
- render(): JSX.Element;
86
+ render(): React.JSX.Element;
87
87
  }
88
88
  interface EoCardItemComponentProps extends EoCardItemProps {
89
89
  callback?: Ref<HTMLDivElement>;
90
90
  onActionClick?: (action: ActionType) => void;
91
91
  }
92
- export declare function EoCardItemComponent(props: EoCardItemComponentProps): JSX.Element;
92
+ export declare function EoCardItemComponent(props: EoCardItemComponentProps): React.JSX.Element;
93
93
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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 {
@@ -48,6 +48,6 @@ export declare class CodeDisplay extends ReactNextElement implements CodeDisplay
48
48
  * @default download.txt
49
49
  */
50
50
  accessor exportFileName: string | undefined;
51
- render(): JSX.Element;
51
+ render(): React.JSX.Element;
52
52
  }
53
- export declare function CodeDisplayComponent(props: CodeDisplayProps): JSX.Element;
53
+ export declare function CodeDisplayComponent(props: CodeDisplayProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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";
@@ -60,7 +60,7 @@ declare class Descriptions extends ReactNextElement {
60
60
  * 数据源
61
61
  */
62
62
  accessor dataSource: Record<string, unknown> | undefined;
63
- render(): JSX.Element;
63
+ render(): React.JSX.Element;
64
64
  }
65
- export declare function DescriptionsComponent(props: DescriptionsProps): JSX.Element;
65
+ export declare function DescriptionsComponent(props: DescriptionsProps): React.JSX.Element;
66
66
  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";
@@ -38,7 +38,7 @@ export declare class EoDivider extends ReactNextElement {
38
38
  * 分割线自定义样式
39
39
  */
40
40
  accessor dividerStyle: CSSProperties | undefined;
41
- render(): JSX.Element;
41
+ render(): React.JSX.Element;
42
42
  }
43
- export declare function EoDividerComponent(props: EoDividerProps): JSX.Element;
43
+ export declare function EoDividerComponent(props: EoDividerProps): React.JSX.Element;
44
44
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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";
@@ -37,6 +37,6 @@ export declare class GeneralAlert extends ReactNextElement implements GeneralAle
37
37
  * 关闭后仅以 `localStorageKey` 作为命名空间
38
38
  */
39
39
  accessor disableUrlNamespace: boolean | undefined;
40
- render(): JSX.Element;
40
+ render(): React.JSX.Element;
41
41
  }
42
- export declare function GeneralAlertComponent(props: GeneralAlertProps): JSX.Element;
42
+ export declare function GeneralAlertComponent(props: GeneralAlertProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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";
@@ -52,6 +52,6 @@ export declare class EoHumanizeTime extends ReactNextElement {
52
52
  */
53
53
  accessor link: LinkInfo;
54
54
  connectedCallback(): void;
55
- render(): JSX.Element;
55
+ render(): React.JSX.Element;
56
56
  }
57
- export declare function HumanizeTimeComponent({ value, isMicrosecond, inputFormat, outputFormat, isCostTime, formatter, link, }: EoHumanizeTimeProps): JSX.Element;
57
+ export declare function HumanizeTimeComponent({ value, isMicrosecond, inputFormat, outputFormat, isCostTime, formatter, link, }: EoHumanizeTimeProps): React.JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +1,4 @@
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";
@@ -38,7 +38,7 @@ export declare class EoInfoCardItem extends ReactNextElement {
38
38
  * @internal
39
39
  */
40
40
  accessor hasIcon: boolean | undefined;
41
- render(): JSX.Element;
41
+ render(): React.JSX.Element;
42
42
  }
43
43
  interface IconAvatar {
44
44
  icon: GeneralIconProps;
@@ -61,5 +61,5 @@ interface EoInfoCardItemComponentProps {
61
61
  detailList?: InfoCardDetail[];
62
62
  callback?: Ref<HTMLDivElement>;
63
63
  }
64
- export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, }: EoInfoCardItemComponentProps): JSX.Element;
64
+ export declare function EoInfoCardItemComponent({ url, target, cardTitle, description, cardIcon, detailList, callback, }: EoInfoCardItemComponentProps): React.JSX.Element;
65
65
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
4
  interface EoPaginationProps {
@@ -34,7 +34,7 @@ export declare class EoPagination extends ReactNextElement {
34
34
  * @default true
35
35
  */
36
36
  accessor showSizeChanger: boolean | undefined;
37
- render(): JSX.Element;
37
+ render(): React.JSX.Element;
38
38
  }
39
39
  interface EoPaginationComponentProps extends EoPaginationProps {
40
40
  onChange?: (data: {
@@ -42,5 +42,5 @@ interface EoPaginationComponentProps extends EoPaginationProps {
42
42
  pageSize: number;
43
43
  }) => void;
44
44
  }
45
- export declare function EoPaginationComponent(props: EoPaginationComponentProps): JSX.Element;
45
+ export declare function EoPaginationComponent(props: EoPaginationComponentProps): React.JSX.Element;
46
46
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "0.15.28",
3
+ "version": "0.15.30",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,9 +34,9 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.15.0",
37
+ "@next-core/build-next-bricks": "^1.15.1",
38
38
  "@next-core/test-next": "^1.0.11",
39
39
  "babel-plugin-prismjs": "^2.1.0"
40
40
  },
41
- "gitHead": "8854bf9e27fdca24a160487a5fd1a4117ed9b058"
41
+ "gitHead": "e5f7b9c399ddebee6c5ccbdf8e374adb15b53fdd"
42
42
  }