@gravity-ui/page-constructor 4.36.0-alpha.0 → 4.36.0
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/Companies/Companies.css +0 -16
- package/build/cjs/blocks/Companies/Companies.d.ts +1 -1
- package/build/cjs/blocks/Companies/Companies.js +2 -2
- package/build/cjs/blocks/Form/Form.css +1 -6
- package/build/cjs/blocks/Form/Form.js +2 -4
- package/build/cjs/blocks/Tabs/Tabs.css +33 -3
- package/build/cjs/blocks/Tabs/Tabs.js +18 -21
- package/build/cjs/components/Image/Image.d.ts +1 -2
- package/build/cjs/components/Image/Image.js +2 -2
- package/build/cjs/components/ImageBase/ImageBase.d.ts +1 -2
- package/build/cjs/components/Media/Image/Image.d.ts +0 -1
- package/build/cjs/components/Media/Image/Image.js +2 -2
- package/build/cjs/components/Media/Media.js +3 -4
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +0 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +2 -2
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
- package/build/cjs/text-transform/config.js +1 -0
- package/build/esm/blocks/Companies/Companies.css +0 -16
- package/build/esm/blocks/Companies/Companies.d.ts +1 -1
- package/build/esm/blocks/Companies/Companies.js +3 -3
- package/build/esm/blocks/Form/Form.css +1 -6
- package/build/esm/blocks/Form/Form.js +2 -4
- package/build/esm/blocks/Tabs/Tabs.css +33 -3
- package/build/esm/blocks/Tabs/Tabs.js +19 -22
- package/build/esm/components/Image/Image.d.ts +1 -2
- package/build/esm/components/Image/Image.js +3 -3
- package/build/esm/components/ImageBase/ImageBase.d.ts +1 -2
- package/build/esm/components/Media/Image/Image.d.ts +0 -1
- package/build/esm/components/Media/Image/Image.js +2 -2
- package/build/esm/components/Media/Media.js +3 -4
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +0 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +2 -2
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +1 -0
- package/build/esm/text-transform/config.js +1 -0
- package/package.json +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -0
- package/server/text-transform/config.js +1 -0
- package/widget/index.js +1 -1
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.css +0 -20
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +0 -10
- package/build/cjs/blocks/Tabs/TabsTextContent/TabsTextContent.js +0 -17
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.css +0 -20
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.d.ts +0 -11
- package/build/esm/blocks/Tabs/TabsTextContent/TabsTextContent.js +0 -13
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
|
2
|
-
unpredictable css rules order in build */
|
|
3
|
-
.pc-tabs-block-text-content {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
7
|
-
.pc-tabs-block-text-content_centered {
|
|
8
|
-
margin: 0 auto;
|
|
9
|
-
}
|
|
10
|
-
.pc-tabs-block-text-content__wrapper_regular {
|
|
11
|
-
margin: 24px 0 0 32px;
|
|
12
|
-
}
|
|
13
|
-
.pc-tabs-block-text-content__wrapper_reverse {
|
|
14
|
-
margin: 24px 32px 0 0;
|
|
15
|
-
}
|
|
16
|
-
@media (max-width: 769px) {
|
|
17
|
-
.pc-tabs-block-text-content__wrapper_margin {
|
|
18
|
-
margin: 0 0 32px 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ImageDeviceProps, ImageObjectProps, TabsBlockItem, TabsBlockProps } from '../../../models';
|
|
2
|
-
interface TextContentProps extends Pick<TabsBlockProps, 'centered' | 'contentSize'> {
|
|
3
|
-
showMedia: boolean;
|
|
4
|
-
isReverse: boolean;
|
|
5
|
-
data: TabsBlockItem;
|
|
6
|
-
centered?: boolean;
|
|
7
|
-
imageProps?: ImageObjectProps | ImageDeviceProps;
|
|
8
|
-
}
|
|
9
|
-
export declare const TabsTextContent: ({ centered, contentSize, showMedia, data, imageProps, isReverse, }: TextContentProps) => JSX.Element;
|
|
10
|
-
export default TabsTextContent;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TabsTextContent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const grid_1 = require("../../../grid");
|
|
7
|
-
const sub_blocks_1 = require("../../../sub-blocks");
|
|
8
|
-
const utils_1 = require("../../../utils");
|
|
9
|
-
const b = (0, utils_1.block)('tabs-block-text-content');
|
|
10
|
-
const TabsTextContent = ({ centered, contentSize = 's', showMedia, data, imageProps, isReverse, }) => (react_1.default.createElement(grid_1.Col, { sizes: { all: 12, md: showMedia ? 4 : 8 }, className: b({ centered: centered }) },
|
|
11
|
-
react_1.default.createElement("div", { className: b('wrapper', {
|
|
12
|
-
reverse: isReverse,
|
|
13
|
-
regular: Boolean(((data === null || data === void 0 ? void 0 : data.media) || imageProps) && !isReverse),
|
|
14
|
-
}) },
|
|
15
|
-
react_1.default.createElement(sub_blocks_1.Content, { title: data.title, text: data.text, additionalInfo: data.additionalInfo, size: contentSize, links: [...(data.link ? [data.link] : []), ...(data.links || [])], buttons: data.buttons, colSizes: { all: 12 } }))));
|
|
16
|
-
exports.TabsTextContent = TabsTextContent;
|
|
17
|
-
exports.default = exports.TabsTextContent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
|
2
|
-
unpredictable css rules order in build */
|
|
3
|
-
.pc-tabs-block-text-content {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
7
|
-
.pc-tabs-block-text-content_centered {
|
|
8
|
-
margin: 0 auto;
|
|
9
|
-
}
|
|
10
|
-
.pc-tabs-block-text-content__wrapper_regular {
|
|
11
|
-
margin: 24px 0 0 32px;
|
|
12
|
-
}
|
|
13
|
-
.pc-tabs-block-text-content__wrapper_reverse {
|
|
14
|
-
margin: 24px 32px 0 0;
|
|
15
|
-
}
|
|
16
|
-
@media (max-width: 769px) {
|
|
17
|
-
.pc-tabs-block-text-content__wrapper_margin {
|
|
18
|
-
margin: 0 0 32px 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ImageDeviceProps, ImageObjectProps, TabsBlockItem, TabsBlockProps } from '../../../models';
|
|
2
|
-
import './TabsTextContent.css';
|
|
3
|
-
interface TextContentProps extends Pick<TabsBlockProps, 'centered' | 'contentSize'> {
|
|
4
|
-
showMedia: boolean;
|
|
5
|
-
isReverse: boolean;
|
|
6
|
-
data: TabsBlockItem;
|
|
7
|
-
centered?: boolean;
|
|
8
|
-
imageProps?: ImageObjectProps | ImageDeviceProps;
|
|
9
|
-
}
|
|
10
|
-
export declare const TabsTextContent: ({ centered, contentSize, showMedia, data, imageProps, isReverse, }: TextContentProps) => JSX.Element;
|
|
11
|
-
export default TabsTextContent;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Col } from '../../../grid';
|
|
3
|
-
import { Content } from '../../../sub-blocks';
|
|
4
|
-
import { block } from '../../../utils';
|
|
5
|
-
import './TabsTextContent.css';
|
|
6
|
-
const b = block('tabs-block-text-content');
|
|
7
|
-
export const TabsTextContent = ({ centered, contentSize = 's', showMedia, data, imageProps, isReverse, }) => (React.createElement(Col, { sizes: { all: 12, md: showMedia ? 4 : 8 }, className: b({ centered: centered }) },
|
|
8
|
-
React.createElement("div", { className: b('wrapper', {
|
|
9
|
-
reverse: isReverse,
|
|
10
|
-
regular: Boolean(((data === null || data === void 0 ? void 0 : data.media) || imageProps) && !isReverse),
|
|
11
|
-
}) },
|
|
12
|
-
React.createElement(Content, { title: data.title, text: data.text, additionalInfo: data.additionalInfo, size: contentSize, links: [...(data.link ? [data.link] : []), ...(data.links || [])], buttons: data.buttons, colSizes: { all: 12 } }))));
|
|
13
|
-
export default TabsTextContent;
|