@doyourjob/gravity-ui-page-constructor 5.31.280 → 5.31.282
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/HeaderMinify/Button/Button.css +2 -2
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +1 -1
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +2 -2
- package/build/cjs/blocks/HeaderMinify/schema.d.ts +10 -0
- package/build/cjs/blocks/HeaderMinify/schema.js +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
- package/build/esm/blocks/HeaderMinify/Button/Button.css +2 -2
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +1 -1
- package/build/esm/blocks/HeaderMinify/HeaderMinify.js +2 -2
- package/build/esm/blocks/HeaderMinify/schema.d.ts +10 -0
- package/build/esm/blocks/HeaderMinify/schema.js +2 -1
- package/build/esm/models/constructor-items/blocks.d.ts +1 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -0
- package/widget/index.js +1 -1
|
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
|
|
|
6
6
|
justify-content: center;
|
|
7
7
|
padding: 0 24px;
|
|
8
8
|
border-radius: 12px;
|
|
9
|
-
background:
|
|
9
|
+
background: var(--g-color-base-brand);
|
|
10
10
|
color: #ffffff;
|
|
11
11
|
height: 44px;
|
|
12
12
|
font-size: 15px;
|
|
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
|
|
|
23
23
|
}
|
|
24
24
|
.pc-header-minify-button_outline {
|
|
25
25
|
background: rgba(5, 43, 66, 0.05);
|
|
26
|
-
color:
|
|
26
|
+
color: var(--g-color-base-brand);
|
|
27
27
|
}
|
|
28
28
|
@media (hover: hover) and (pointer: fine) {
|
|
29
29
|
.pc-header-minify-button:hover {
|
|
@@ -9,9 +9,9 @@ const grid_1 = require("../../grid");
|
|
|
9
9
|
const utils_2 = require("../../utils");
|
|
10
10
|
const Button_1 = tslib_1.__importDefault(require("./Button/Button"));
|
|
11
11
|
const b = (0, utils_2.block)('header-minify-block');
|
|
12
|
-
const
|
|
12
|
+
const DEFAULT_COL_SIZES = { all: 12, md: 9 };
|
|
13
13
|
const HeaderMinifyBlock = (props) => {
|
|
14
|
-
const { title, description, buttons, image, video, headerSpace, verticalOffset, verticalOffsetTop, verticalOffsetBottom, } = props;
|
|
14
|
+
const { title, description, buttons, image, video, headerSpace, verticalOffset, verticalOffsetTop, verticalOffsetBottom, colSizes = DEFAULT_COL_SIZES, } = props;
|
|
15
15
|
return (react_1.default.createElement("header", { className: b({
|
|
16
16
|
['header-space']: headerSpace,
|
|
17
17
|
'vertical-offset': verticalOffset,
|
|
@@ -8,6 +8,11 @@ export declare const HeaderMinifyProperties: {
|
|
|
8
8
|
contentType: string;
|
|
9
9
|
inputType: string;
|
|
10
10
|
};
|
|
11
|
+
colSizes: {
|
|
12
|
+
type: string;
|
|
13
|
+
additionalProperties: boolean;
|
|
14
|
+
properties: {};
|
|
15
|
+
};
|
|
11
16
|
buttons: {
|
|
12
17
|
type: string;
|
|
13
18
|
items: {
|
|
@@ -63,6 +68,11 @@ export declare const HeaderMinifyBlock: {
|
|
|
63
68
|
contentType: string;
|
|
64
69
|
inputType: string;
|
|
65
70
|
};
|
|
71
|
+
colSizes: {
|
|
72
|
+
type: string;
|
|
73
|
+
additionalProperties: boolean;
|
|
74
|
+
properties: {};
|
|
75
|
+
};
|
|
66
76
|
buttons: {
|
|
67
77
|
type: string;
|
|
68
78
|
items: {
|
|
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
|
|
|
6
6
|
justify-content: center;
|
|
7
7
|
padding: 0 24px;
|
|
8
8
|
border-radius: 12px;
|
|
9
|
-
background:
|
|
9
|
+
background: var(--g-color-base-brand);
|
|
10
10
|
color: #ffffff;
|
|
11
11
|
height: 44px;
|
|
12
12
|
font-size: 15px;
|
|
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
|
|
|
23
23
|
}
|
|
24
24
|
.pc-header-minify-button_outline {
|
|
25
25
|
background: rgba(5, 43, 66, 0.05);
|
|
26
|
-
color:
|
|
26
|
+
color: var(--g-color-base-brand);
|
|
27
27
|
}
|
|
28
28
|
@media (hover: hover) and (pointer: fine) {
|
|
29
29
|
.pc-header-minify-button:hover {
|
|
@@ -6,9 +6,9 @@ import { block } from '../../utils';
|
|
|
6
6
|
import Button from './Button/Button';
|
|
7
7
|
import './HeaderMinify.css';
|
|
8
8
|
const b = block('header-minify-block');
|
|
9
|
-
const
|
|
9
|
+
const DEFAULT_COL_SIZES = { all: 12, md: 9 };
|
|
10
10
|
export const HeaderMinifyBlock = (props) => {
|
|
11
|
-
const { title, description, buttons, image, video, headerSpace, verticalOffset, verticalOffsetTop, verticalOffsetBottom, } = props;
|
|
11
|
+
const { title, description, buttons, image, video, headerSpace, verticalOffset, verticalOffsetTop, verticalOffsetBottom, colSizes = DEFAULT_COL_SIZES, } = props;
|
|
12
12
|
return (React.createElement("header", { className: b({
|
|
13
13
|
['header-space']: headerSpace,
|
|
14
14
|
'vertical-offset': verticalOffset,
|
|
@@ -8,6 +8,11 @@ export declare const HeaderMinifyProperties: {
|
|
|
8
8
|
contentType: string;
|
|
9
9
|
inputType: string;
|
|
10
10
|
};
|
|
11
|
+
colSizes: {
|
|
12
|
+
type: string;
|
|
13
|
+
additionalProperties: boolean;
|
|
14
|
+
properties: {};
|
|
15
|
+
};
|
|
11
16
|
buttons: {
|
|
12
17
|
type: string;
|
|
13
18
|
items: {
|
|
@@ -63,6 +68,11 @@ export declare const HeaderMinifyBlock: {
|
|
|
63
68
|
contentType: string;
|
|
64
69
|
inputType: string;
|
|
65
70
|
};
|
|
71
|
+
colSizes: {
|
|
72
|
+
type: string;
|
|
73
|
+
additionalProperties: boolean;
|
|
74
|
+
properties: {};
|
|
75
|
+
};
|
|
66
76
|
buttons: {
|
|
67
77
|
type: string;
|
|
68
78
|
items: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockBaseProps } from '../../schema/validators/common';
|
|
1
|
+
import { BlockBaseProps, containerSizesObject } from '../../schema/validators/common';
|
|
2
2
|
export const HeaderMinifyProperties = {
|
|
3
3
|
title: {
|
|
4
4
|
type: 'string',
|
|
@@ -9,6 +9,7 @@ export const HeaderMinifyProperties = {
|
|
|
9
9
|
contentType: 'yfm',
|
|
10
10
|
inputType: 'textarea',
|
|
11
11
|
},
|
|
12
|
+
colSizes: containerSizesObject,
|
|
12
13
|
buttons: {
|
|
13
14
|
type: 'array',
|
|
14
15
|
items: {
|