@gravity-ui/page-constructor 5.7.1 → 5.7.2
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,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributeAnchorTarget, PropsWithChildren } from 'react';
|
|
2
|
-
import { AnalyticsEventsBase, CardBaseProps as CardBaseParams, ImageProps
|
|
3
|
-
|
|
2
|
+
import { AnalyticsEventsBase, CardBaseProps as CardBaseParams, ImageProps } from '../../models';
|
|
3
|
+
interface CardBaseProps extends AnalyticsEventsBase, CardBaseParams {
|
|
4
4
|
className?: string;
|
|
5
5
|
bodyClassName?: string;
|
|
6
6
|
contentClassName?: string;
|
|
@@ -10,6 +10,7 @@ export interface CardBaseProps extends AnalyticsEventsBase, CardBaseParams, Prop
|
|
|
10
10
|
qa?: string;
|
|
11
11
|
extraProps?: React.HTMLAttributes<HTMLElement>;
|
|
12
12
|
}
|
|
13
|
+
export type CardBasePropsType = PropsWithChildren<CardBaseProps>;
|
|
13
14
|
export interface CardHeaderBaseProps {
|
|
14
15
|
className?: string;
|
|
15
16
|
image?: ImageProps | null;
|
|
@@ -18,11 +19,11 @@ export interface CardFooterBaseProps {
|
|
|
18
19
|
className?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare const Layout: {
|
|
21
|
-
(props:
|
|
22
|
-
Header: React.FC<
|
|
22
|
+
(props: CardBasePropsType): JSX.Element;
|
|
23
|
+
Header: React.FC<React.PropsWithChildren<CardHeaderBaseProps>>;
|
|
23
24
|
Content: React.FC<{
|
|
24
25
|
children?: React.ReactNode;
|
|
25
26
|
}>;
|
|
26
|
-
Footer: React.FC<
|
|
27
|
+
Footer: React.FC<React.PropsWithChildren<CardFooterBaseProps>>;
|
|
27
28
|
};
|
|
28
29
|
export default Layout;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributeAnchorTarget, PropsWithChildren } from 'react';
|
|
2
|
-
import { AnalyticsEventsBase, CardBaseProps as CardBaseParams, ImageProps
|
|
2
|
+
import { AnalyticsEventsBase, CardBaseProps as CardBaseParams, ImageProps } from '../../models';
|
|
3
3
|
import './CardBase.css';
|
|
4
|
-
|
|
4
|
+
interface CardBaseProps extends AnalyticsEventsBase, CardBaseParams {
|
|
5
5
|
className?: string;
|
|
6
6
|
bodyClassName?: string;
|
|
7
7
|
contentClassName?: string;
|
|
@@ -11,6 +11,7 @@ export interface CardBaseProps extends AnalyticsEventsBase, CardBaseParams, Prop
|
|
|
11
11
|
qa?: string;
|
|
12
12
|
extraProps?: React.HTMLAttributes<HTMLElement>;
|
|
13
13
|
}
|
|
14
|
+
export type CardBasePropsType = PropsWithChildren<CardBaseProps>;
|
|
14
15
|
export interface CardHeaderBaseProps {
|
|
15
16
|
className?: string;
|
|
16
17
|
image?: ImageProps | null;
|
|
@@ -19,11 +20,11 @@ export interface CardFooterBaseProps {
|
|
|
19
20
|
className?: string;
|
|
20
21
|
}
|
|
21
22
|
export declare const Layout: {
|
|
22
|
-
(props:
|
|
23
|
-
Header: React.FC<
|
|
23
|
+
(props: CardBasePropsType): JSX.Element;
|
|
24
|
+
Header: React.FC<React.PropsWithChildren<CardHeaderBaseProps>>;
|
|
24
25
|
Content: React.FC<{
|
|
25
26
|
children?: React.ReactNode;
|
|
26
27
|
}>;
|
|
27
|
-
Footer: React.FC<
|
|
28
|
+
Footer: React.FC<React.PropsWithChildren<CardFooterBaseProps>>;
|
|
28
29
|
};
|
|
29
30
|
export default Layout;
|