@doyourjob/gravity-ui-page-constructor 5.31.149 → 5.31.151
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/build/cjs/blocks/Table/Table.css +3 -0
- package/build/cjs/blocks/Table/Table.js +16 -2
- package/build/cjs/blocks/Table/schema.d.ts +4 -0
- package/build/cjs/blocks/Table/schema.js +3 -0
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +12 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +6 -2
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.js +3 -0
- package/build/esm/blocks/Table/Table.css +3 -0
- package/build/esm/blocks/Table/Table.js +16 -2
- package/build/esm/blocks/Table/schema.d.ts +4 -0
- package/build/esm/blocks/Table/schema.js +4 -1
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +2 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +12 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +6 -2
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +4 -0
- package/build/esm/sub-blocks/LayoutItem/schema.js +3 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +2 -1
- package/server/models/constructor-items/sub-blocks.d.ts +1 -0
- package/widget/index.js +1 -1
|
@@ -10,8 +10,22 @@ const utils_1 = require("../../utils");
|
|
|
10
10
|
const b = (0, utils_1.block)('table-block');
|
|
11
11
|
const bTable = (0, utils_1.block)('table');
|
|
12
12
|
const bScrollbar = (0, utils_1.block)('table-scrollbar');
|
|
13
|
+
function getTitleVariant(titleSize) {
|
|
14
|
+
switch (titleSize) {
|
|
15
|
+
case 'xs':
|
|
16
|
+
return 'header-1';
|
|
17
|
+
case 's':
|
|
18
|
+
return 'header-2';
|
|
19
|
+
case 'l':
|
|
20
|
+
case 'xl':
|
|
21
|
+
return 'display-3';
|
|
22
|
+
case 'm':
|
|
23
|
+
default:
|
|
24
|
+
return 'display-2';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
13
27
|
const TableBlock = (props) => {
|
|
14
|
-
const { title, table, description, links = [], buttons = [] } = props;
|
|
28
|
+
const { title, titleSize, table, description, links = [], buttons = [] } = props;
|
|
15
29
|
const tableRef = (0, react_1.useRef)(null);
|
|
16
30
|
(0, react_1.useEffect)(() => {
|
|
17
31
|
var _a;
|
|
@@ -43,7 +57,7 @@ const TableBlock = (props) => {
|
|
|
43
57
|
react_1.default.createElement(grid_1.Grid, { className: b('content') },
|
|
44
58
|
react_1.default.createElement(grid_1.Row, { className: b('row') },
|
|
45
59
|
react_1.default.createElement(grid_1.Col, { className: b('lhs'), sizes: { [grid_1.GridColumnSize.Md]: 3, [grid_1.GridColumnSize.All]: 12 }, alignSelf: grid_1.GridColumnAlignSelf.Start },
|
|
46
|
-
react_1.default.createElement(uikit_1.Text, { variant:
|
|
60
|
+
react_1.default.createElement(uikit_1.Text, { variant: getTitleVariant(titleSize) }, title),
|
|
47
61
|
description && (react_1.default.createElement("div", { className: b('description') },
|
|
48
62
|
react_1.default.createElement(uikit_1.Text, { variant: "body-2" },
|
|
49
63
|
react_1.default.createElement(components_1.HTML, null, description)))),
|
|
@@ -10,6 +10,9 @@ exports.TableBlock = {
|
|
|
10
10
|
properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { title: {
|
|
11
11
|
type: 'string',
|
|
12
12
|
contentType: 'text',
|
|
13
|
+
}, titleSize: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: common_1.titleTextSize,
|
|
13
16
|
}, description: {
|
|
14
17
|
type: 'string',
|
|
15
18
|
}, links: (0, utils_1.filteredArray)(common_1.LinkProps), buttons: (0, utils_1.filteredArray)(common_1.ButtonBlock), table: {
|
|
@@ -53,7 +53,7 @@ export declare const subBlockMap: {
|
|
|
53
53
|
"price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
|
|
54
54
|
"media-card": ({ border, analyticsEvents, label, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
|
|
55
55
|
"banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
|
|
56
|
-
"layout-item": ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, }: import("./models").LayoutItemProps) => JSX.Element;
|
|
56
|
+
"layout-item": ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, paddingBottom, }: import("./models").LayoutItemProps) => JSX.Element;
|
|
57
57
|
"background-card": (props: import("./models").BackgroundCardProps) => JSX.Element;
|
|
58
58
|
"basic-card": import("react").MemoExoticComponent<(props: import("./models").BasicCardProps) => JSX.Element>;
|
|
59
59
|
content: (props: import("./sub-blocks/Content/Content").ContentProps) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ButtonSize } from '@gravity-ui/uikit';
|
|
|
3
3
|
import { GridColumnSize, GridColumnSizesType, IndentValue } from '../../grid/types';
|
|
4
4
|
import { BlockBackgroundType, ThemeSupporting } from '../../utils';
|
|
5
5
|
import { AnalyticsEventsBase } from '../common';
|
|
6
|
-
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, MediaView, ReportFileType, TagProps, TextSize, TextTheme, Themable, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, WithBorder, YandexFormProps } from './common';
|
|
6
|
+
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, MediaView, ReportFileType, TagProps, TextSize, TextTheme, Themable, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, TitleTextSize, WithBorder, YandexFormProps } from './common';
|
|
7
7
|
import { BannerCardProps, HubspotFormProps, SubBlock, SubBlockModels } from './sub-blocks';
|
|
8
8
|
export declare enum BlockType {
|
|
9
9
|
AdvantagesBlock = "advantages-block",
|
|
@@ -394,6 +394,7 @@ export interface TableBlockProps {
|
|
|
394
394
|
description?: string;
|
|
395
395
|
links?: LinkProps[];
|
|
396
396
|
buttons?: ButtonProps[];
|
|
397
|
+
titleSize?: TitleTextSize;
|
|
397
398
|
}
|
|
398
399
|
export interface FormWallBlockProps {
|
|
399
400
|
formData: FormBlockHubspotData;
|
|
@@ -181,6 +181,7 @@ export interface LayoutItemProps extends ClassNameProps, CardLayoutProps, Analyt
|
|
|
181
181
|
jumpOnHover?: boolean;
|
|
182
182
|
backgroundColor?: string;
|
|
183
183
|
background?: ThemeSupporting<ImageObjectProps>;
|
|
184
|
+
paddingBottom?: 's' | 'm' | 'l' | 'xl';
|
|
184
185
|
}
|
|
185
186
|
export interface ImageCardProps extends CardBaseProps, CardLayoutProps, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'controlPosition'> {
|
|
186
187
|
image: ThemeSupporting<ImageProps>;
|
|
@@ -9,6 +9,18 @@ unpredictable css rules order in build */
|
|
|
9
9
|
.pc-layout-item_with-image {
|
|
10
10
|
padding: 16px;
|
|
11
11
|
}
|
|
12
|
+
.pc-layout-item_paddingBottom_s {
|
|
13
|
+
padding-bottom: 80px;
|
|
14
|
+
}
|
|
15
|
+
.pc-layout-item_paddingBottom_m {
|
|
16
|
+
padding-bottom: 160px;
|
|
17
|
+
}
|
|
18
|
+
.pc-layout-item_paddingBottom_l {
|
|
19
|
+
padding-bottom: 240px;
|
|
20
|
+
}
|
|
21
|
+
.pc-layout-item_paddingBottom_xl {
|
|
22
|
+
padding-bottom: 320px;
|
|
23
|
+
}
|
|
12
24
|
.pc-layout-item__wrap {
|
|
13
25
|
margin-bottom: 16px;
|
|
14
26
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LayoutItemProps } from '../../models';
|
|
2
|
-
declare const LayoutItem: ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, }: LayoutItemProps) => JSX.Element;
|
|
2
|
+
declare const LayoutItem: ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, paddingBottom, }: LayoutItemProps) => JSX.Element;
|
|
3
3
|
export default LayoutItem;
|
|
@@ -12,7 +12,7 @@ const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
|
12
12
|
const utils_3 = require("./utils");
|
|
13
13
|
const b = (0, utils_2.block)('layout-item');
|
|
14
14
|
const LayoutItem = (_a) => {
|
|
15
|
-
var { title, afterTitle, summary, rightSpace = true } = _a, _b = _a.content, { links } = _b, content = tslib_1.__rest(_b, ["links"]), { metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition = 'content', label, jumpOnHover, background, backgroundColor } = _a;
|
|
15
|
+
var { title, afterTitle, summary, rightSpace = true } = _a, _b = _a.content, { links } = _b, content = tslib_1.__rest(_b, ["links"]), { metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition = 'content', label, jumpOnHover, background, backgroundColor, paddingBottom } = _a;
|
|
16
16
|
const normalizedLinks = (0, react_1.useMemo)(() => (0, utils_3.getLayoutItemLinks)(links), [links]);
|
|
17
17
|
const areControlsInFooter = controlPosition === 'footer';
|
|
18
18
|
const theme = (0, theme_1.useTheme)();
|
|
@@ -35,7 +35,11 @@ const LayoutItem = (_a) => {
|
|
|
35
35
|
return (react_1.default.createElement(components_1.Media, Object.assign({}, mediaWithMicrodata, fullscreenMediaProps, { className: b('media', { border }, mediaClassName), analyticsEvents: analyticsEvents })));
|
|
36
36
|
})) : (react_1.default.createElement(components_1.Media, Object.assign({}, themedMedia, { className: b('media', { border }), analyticsEvents: analyticsEvents })));
|
|
37
37
|
};
|
|
38
|
-
return (react_1.default.createElement("div", { className: b({
|
|
38
|
+
return (react_1.default.createElement("div", { className: b({
|
|
39
|
+
jumpOnHover,
|
|
40
|
+
paddingBottom,
|
|
41
|
+
'with-image': Boolean(background || backgroundColor),
|
|
42
|
+
}, className) },
|
|
39
43
|
react_1.default.createElement(components_1.BackgroundImage, Object.assign({ className: b('image') }, backgroundProps, { style: { backgroundColor } })),
|
|
40
44
|
label && react_1.default.createElement(components_1.Tag, Object.assign({}, label)),
|
|
41
45
|
(title || afterTitle) && (react_1.default.createElement("div", { className: b('wrap', { right: rightSpace }) },
|
|
@@ -7,8 +7,22 @@ import './Table.css';
|
|
|
7
7
|
const b = block('table-block');
|
|
8
8
|
const bTable = block('table');
|
|
9
9
|
const bScrollbar = block('table-scrollbar');
|
|
10
|
+
function getTitleVariant(titleSize) {
|
|
11
|
+
switch (titleSize) {
|
|
12
|
+
case 'xs':
|
|
13
|
+
return 'header-1';
|
|
14
|
+
case 's':
|
|
15
|
+
return 'header-2';
|
|
16
|
+
case 'l':
|
|
17
|
+
case 'xl':
|
|
18
|
+
return 'display-3';
|
|
19
|
+
case 'm':
|
|
20
|
+
default:
|
|
21
|
+
return 'display-2';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
10
24
|
export const TableBlock = (props) => {
|
|
11
|
-
const { title, table, description, links = [], buttons = [] } = props;
|
|
25
|
+
const { title, titleSize, table, description, links = [], buttons = [] } = props;
|
|
12
26
|
const tableRef = useRef(null);
|
|
13
27
|
useEffect(() => {
|
|
14
28
|
var _a;
|
|
@@ -40,7 +54,7 @@ export const TableBlock = (props) => {
|
|
|
40
54
|
React.createElement(Grid, { className: b('content') },
|
|
41
55
|
React.createElement(Row, { className: b('row') },
|
|
42
56
|
React.createElement(Col, { className: b('lhs'), sizes: { [GridColumnSize.Md]: 3, [GridColumnSize.All]: 12 }, alignSelf: GridColumnAlignSelf.Start },
|
|
43
|
-
React.createElement(Text, { variant:
|
|
57
|
+
React.createElement(Text, { variant: getTitleVariant(titleSize) }, title),
|
|
44
58
|
description && (React.createElement("div", { className: b('description') },
|
|
45
59
|
React.createElement(Text, { variant: "body-2" },
|
|
46
60
|
React.createElement(HTML, null, description)))),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseProps, BlockBaseProps, ButtonBlock, JustifyProps, LinkProps, } from '../../schema/validators/common';
|
|
1
|
+
import { BaseProps, BlockBaseProps, ButtonBlock, JustifyProps, LinkProps, titleTextSize, } from '../../schema/validators/common';
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
export const TableBlock = {
|
|
4
4
|
'table-block': {
|
|
@@ -7,6 +7,9 @@ export const TableBlock = {
|
|
|
7
7
|
properties: Object.assign(Object.assign({}, BlockBaseProps), { title: {
|
|
8
8
|
type: 'string',
|
|
9
9
|
contentType: 'text',
|
|
10
|
+
}, titleSize: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
enum: titleTextSize,
|
|
10
13
|
}, description: {
|
|
11
14
|
type: 'string',
|
|
12
15
|
}, links: filteredArray(LinkProps), buttons: filteredArray(ButtonBlock), table: {
|
|
@@ -53,7 +53,7 @@ export declare const subBlockMap: {
|
|
|
53
53
|
"price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
|
|
54
54
|
"media-card": ({ border, analyticsEvents, label, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
|
|
55
55
|
"banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
|
|
56
|
-
"layout-item": ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, }: import("./models").LayoutItemProps) => JSX.Element;
|
|
56
|
+
"layout-item": ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, paddingBottom, }: import("./models").LayoutItemProps) => JSX.Element;
|
|
57
57
|
"background-card": (props: import("./models").BackgroundCardProps) => JSX.Element;
|
|
58
58
|
"basic-card": import("react").MemoExoticComponent<(props: import("./models").BasicCardProps) => JSX.Element>;
|
|
59
59
|
content: (props: import("./sub-blocks/Content/Content").ContentProps) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ButtonSize } from '@gravity-ui/uikit';
|
|
|
3
3
|
import { GridColumnSize, GridColumnSizesType, IndentValue } from '../../grid/types';
|
|
4
4
|
import { BlockBackgroundType, ThemeSupporting } from '../../utils';
|
|
5
5
|
import { AnalyticsEventsBase } from '../common';
|
|
6
|
-
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, MediaView, ReportFileType, TagProps, TextSize, TextTheme, Themable, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, WithBorder, YandexFormProps } from './common';
|
|
6
|
+
import { AnchorProps, Animatable, BackgroundImageProps, ButtonProps, CardBorder, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, ImageProps, Justify, LegendTableMarkerType, LinkProps, MapProps, MediaDirection, MediaProps, MediaView, ReportFileType, TagProps, TextSize, TextTheme, Themable, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleItemBaseProps, TitleItemProps, TitleTextSize, WithBorder, YandexFormProps } from './common';
|
|
7
7
|
import { BannerCardProps, HubspotFormProps, SubBlock, SubBlockModels } from './sub-blocks';
|
|
8
8
|
export declare enum BlockType {
|
|
9
9
|
AdvantagesBlock = "advantages-block",
|
|
@@ -394,6 +394,7 @@ export interface TableBlockProps {
|
|
|
394
394
|
description?: string;
|
|
395
395
|
links?: LinkProps[];
|
|
396
396
|
buttons?: ButtonProps[];
|
|
397
|
+
titleSize?: TitleTextSize;
|
|
397
398
|
}
|
|
398
399
|
export interface FormWallBlockProps {
|
|
399
400
|
formData: FormBlockHubspotData;
|
|
@@ -181,6 +181,7 @@ export interface LayoutItemProps extends ClassNameProps, CardLayoutProps, Analyt
|
|
|
181
181
|
jumpOnHover?: boolean;
|
|
182
182
|
backgroundColor?: string;
|
|
183
183
|
background?: ThemeSupporting<ImageObjectProps>;
|
|
184
|
+
paddingBottom?: 's' | 'm' | 'l' | 'xl';
|
|
184
185
|
}
|
|
185
186
|
export interface ImageCardProps extends CardBaseProps, CardLayoutProps, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'controlPosition'> {
|
|
186
187
|
image: ThemeSupporting<ImageProps>;
|
|
@@ -9,6 +9,18 @@ unpredictable css rules order in build */
|
|
|
9
9
|
.pc-layout-item_with-image {
|
|
10
10
|
padding: 16px;
|
|
11
11
|
}
|
|
12
|
+
.pc-layout-item_paddingBottom_s {
|
|
13
|
+
padding-bottom: 80px;
|
|
14
|
+
}
|
|
15
|
+
.pc-layout-item_paddingBottom_m {
|
|
16
|
+
padding-bottom: 160px;
|
|
17
|
+
}
|
|
18
|
+
.pc-layout-item_paddingBottom_l {
|
|
19
|
+
padding-bottom: 240px;
|
|
20
|
+
}
|
|
21
|
+
.pc-layout-item_paddingBottom_xl {
|
|
22
|
+
padding-bottom: 320px;
|
|
23
|
+
}
|
|
12
24
|
.pc-layout-item__wrap {
|
|
13
25
|
margin-bottom: 16px;
|
|
14
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutItemProps } from '../../models';
|
|
2
2
|
import './LayoutItem.css';
|
|
3
|
-
declare const LayoutItem: ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, }: LayoutItemProps) => JSX.Element;
|
|
3
|
+
declare const LayoutItem: ({ title, afterTitle, summary, rightSpace, content: { links, ...content }, metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition, label, jumpOnHover, background, backgroundColor, paddingBottom, }: LayoutItemProps) => JSX.Element;
|
|
4
4
|
export default LayoutItem;
|
|
@@ -11,7 +11,7 @@ import { getLayoutItemLinks, hasFullscreen, showFullscreenIcon } from './utils';
|
|
|
11
11
|
import './LayoutItem.css';
|
|
12
12
|
const b = block('layout-item');
|
|
13
13
|
const LayoutItem = (_a) => {
|
|
14
|
-
var { title, afterTitle, summary, rightSpace = true } = _a, _b = _a.content, { links } = _b, content = __rest(_b, ["links"]), { metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition = 'content', label, jumpOnHover, background, backgroundColor } = _a;
|
|
14
|
+
var { title, afterTitle, summary, rightSpace = true } = _a, _b = _a.content, { links } = _b, content = __rest(_b, ["links"]), { metaInfo, media, mediaLink, border, fullscreen, icon, className, analyticsEvents, controlPosition = 'content', label, jumpOnHover, background, backgroundColor, paddingBottom } = _a;
|
|
15
15
|
const normalizedLinks = useMemo(() => getLayoutItemLinks(links), [links]);
|
|
16
16
|
const areControlsInFooter = controlPosition === 'footer';
|
|
17
17
|
const theme = useTheme();
|
|
@@ -34,7 +34,11 @@ const LayoutItem = (_a) => {
|
|
|
34
34
|
return (React.createElement(Media, Object.assign({}, mediaWithMicrodata, fullscreenMediaProps, { className: b('media', { border }, mediaClassName), analyticsEvents: analyticsEvents })));
|
|
35
35
|
})) : (React.createElement(Media, Object.assign({}, themedMedia, { className: b('media', { border }), analyticsEvents: analyticsEvents })));
|
|
36
36
|
};
|
|
37
|
-
return (React.createElement("div", { className: b({
|
|
37
|
+
return (React.createElement("div", { className: b({
|
|
38
|
+
jumpOnHover,
|
|
39
|
+
paddingBottom,
|
|
40
|
+
'with-image': Boolean(background || backgroundColor),
|
|
41
|
+
}, className) },
|
|
38
42
|
React.createElement(BackgroundImage, Object.assign({ className: b('image') }, backgroundProps, { style: { backgroundColor } })),
|
|
39
43
|
label && React.createElement(Tag, Object.assign({}, label)),
|
|
40
44
|
(title || afterTitle) && (React.createElement("div", { className: b('wrap', { right: rightSpace }) },
|