@doyourjob/gravity-ui-page-constructor 5.31.272 → 5.31.274
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/HeaderMinify.css +5 -5
- package/build/cjs/components/Title/TitleItem.d.ts +1 -1
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/cjs/sub-blocks/Divider/Divider.css +36 -0
- package/build/cjs/sub-blocks/Divider/Divider.d.ts +1 -1
- package/build/cjs/sub-blocks/Divider/Divider.js +1 -1
- package/build/cjs/sub-blocks/Divider/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/Divider/schema.js +3 -0
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +5 -5
- package/build/esm/components/Title/TitleItem.d.ts +1 -1
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/esm/sub-blocks/Divider/Divider.css +36 -0
- package/build/esm/sub-blocks/Divider/Divider.d.ts +1 -1
- package/build/esm/sub-blocks/Divider/Divider.js +2 -2
- package/build/esm/sub-blocks/Divider/schema.d.ts +4 -0
- package/build/esm/sub-blocks/Divider/schema.js +3 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +2 -1
- package/widget/index.js +1 -1
|
@@ -118,6 +118,11 @@ unpredictable css rules order in build */
|
|
|
118
118
|
position: relative;
|
|
119
119
|
margin-bottom: 32px;
|
|
120
120
|
}
|
|
121
|
+
@media (max-width: 769px) {
|
|
122
|
+
.pc-header-minify-block__title {
|
|
123
|
+
font-size: 72px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
121
126
|
@media (max-width: 577px) {
|
|
122
127
|
.pc-header-minify-block__title {
|
|
123
128
|
font-size: 36px;
|
|
@@ -125,11 +130,6 @@ unpredictable css rules order in build */
|
|
|
125
130
|
margin-bottom: 16px;
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
|
-
@media (max-width: 769px) {
|
|
129
|
-
.pc-header-minify-block__title {
|
|
130
|
-
font-size: 72px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
133
|
.pc-header-minify-block__description {
|
|
134
134
|
font-size: 24px;
|
|
135
135
|
line-height: 28px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { QAProps, TitleItemProps, TitleTextSize } from '../../models';
|
|
3
|
-
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 |
|
|
3
|
+
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 | 13 | 22 | 24 | 26 | 38 | 20;
|
|
4
4
|
export interface TitleItemFullProps extends TitleItemProps, QAProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
id?: string;
|
|
@@ -65,7 +65,7 @@ export declare const blockMap: {
|
|
|
65
65
|
"whats-new-block": import("react").FC<import("./models").WhatsNewBlockProps>;
|
|
66
66
|
};
|
|
67
67
|
export declare const subBlockMap: {
|
|
68
|
-
divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
|
|
68
|
+
divider: ({ size, border, visibility }: import("./models").DividerProps) => JSX.Element;
|
|
69
69
|
"price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
|
|
70
70
|
"media-card": ({ border, analyticsEvents, label, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
|
|
71
71
|
"banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { ClassNameProps, QuoteType } from '../../models';
|
|
|
2
2
|
import { ThemeSupporting } from '../../utils';
|
|
3
3
|
import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
|
|
4
4
|
import { AnalyticsEventsBase } from '../common';
|
|
5
|
-
import { ContentBlockProps } from './blocks';
|
|
5
|
+
import { ContentBlockProps, VisibilityPreset } from './blocks';
|
|
6
6
|
import { AuthorItem, ButtonProps, CardBaseProps, CardLayoutProps, ContentTheme, DividerSize, ImageCardMargins, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, ServiceLabelProps, TagProps, TextTheme, Themable, ThemedImage, TitleItemBaseProps, TitleTextSize } from './common';
|
|
7
7
|
export declare enum SubBlockType {
|
|
8
8
|
Divider = "divider",
|
|
@@ -52,6 +52,7 @@ export declare const SubBlockTypes: SubBlockType[];
|
|
|
52
52
|
export interface DividerProps {
|
|
53
53
|
size?: DividerSize;
|
|
54
54
|
border?: boolean;
|
|
55
|
+
visibility?: VisibilityPreset;
|
|
55
56
|
}
|
|
56
57
|
export interface HubspotFormProps extends HubspotEventHandlers, AnalyticsEventsBase {
|
|
57
58
|
className?: string;
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-divider-block.pc-divider-block_hidden {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
@media (min-width: 577px) and (max-width: 768px) {
|
|
7
|
+
.pc-divider-block.pc-divider-block_visible-sm {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@media (min-width: 769px) and (max-width: 1080px) {
|
|
12
|
+
.pc-divider-block.pc-divider-block_visible-md {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@media (min-width: 1081px) and (max-width: 1184px) {
|
|
17
|
+
.pc-divider-block.pc-divider-block_visible-lg {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@media (min-width: 1185px) and (max-width: 1247px) {
|
|
22
|
+
.pc-divider-block.pc-divider-block_visible-xl {
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 1248px) {
|
|
27
|
+
.pc-divider-block.pc-divider-block_visible-xxl {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@media (max-width: 576px) {
|
|
32
|
+
.pc-divider-block.pc-divider-block_visible-xs {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
.pc-divider-block_size_xxs {
|
|
2
38
|
padding-top: 12px;
|
|
3
39
|
}
|
|
@@ -4,5 +4,5 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const b = (0, utils_1.block)('divider-block');
|
|
7
|
-
const Divider = ({ size = 'm', border }) => react_1.default.createElement("div", { className: b({ size, border }) });
|
|
7
|
+
const Divider = ({ size = 'm', border, visibility }) => (react_1.default.createElement("div", { className: b(Object.assign({ size, border }, (0, utils_1.getBlockVisibilityClasses)(visibility))) }));
|
|
8
8
|
exports.default = Divider;
|
|
@@ -7,6 +7,9 @@ exports.Divider = {
|
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
properties: Object.assign(Object.assign({}, common_1.BaseProps), { border: {
|
|
9
9
|
type: 'boolean',
|
|
10
|
+
}, visibility: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
enum: ['mobile', 'desktop'],
|
|
10
13
|
}, size: common_1.dividerEnum }),
|
|
11
14
|
},
|
|
12
15
|
};
|
|
@@ -118,6 +118,11 @@ unpredictable css rules order in build */
|
|
|
118
118
|
position: relative;
|
|
119
119
|
margin-bottom: 32px;
|
|
120
120
|
}
|
|
121
|
+
@media (max-width: 769px) {
|
|
122
|
+
.pc-header-minify-block__title {
|
|
123
|
+
font-size: 72px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
121
126
|
@media (max-width: 577px) {
|
|
122
127
|
.pc-header-minify-block__title {
|
|
123
128
|
font-size: 36px;
|
|
@@ -125,11 +130,6 @@ unpredictable css rules order in build */
|
|
|
125
130
|
margin-bottom: 16px;
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
|
-
@media (max-width: 769px) {
|
|
129
|
-
.pc-header-minify-block__title {
|
|
130
|
-
font-size: 72px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
133
|
.pc-header-minify-block__description {
|
|
134
134
|
font-size: 24px;
|
|
135
135
|
line-height: 28px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { QAProps, TitleItemProps, TitleTextSize } from '../../models';
|
|
3
3
|
import './TitleItem.css';
|
|
4
|
-
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 |
|
|
4
|
+
export declare function getArrowSize(size: TitleTextSize, isMobile: boolean): 16 | 13 | 22 | 24 | 26 | 38 | 20;
|
|
5
5
|
export interface TitleItemFullProps extends TitleItemProps, QAProps {
|
|
6
6
|
className?: string;
|
|
7
7
|
id?: string;
|
|
@@ -65,7 +65,7 @@ export declare const blockMap: {
|
|
|
65
65
|
"whats-new-block": import("react").FC<import("./models").WhatsNewBlockProps>;
|
|
66
66
|
};
|
|
67
67
|
export declare const subBlockMap: {
|
|
68
|
-
divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
|
|
68
|
+
divider: ({ size, border, visibility }: import("./models").DividerProps) => JSX.Element;
|
|
69
69
|
"price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
|
|
70
70
|
"media-card": ({ border, analyticsEvents, label, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
|
|
71
71
|
"banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { ClassNameProps, QuoteType } from '../../models';
|
|
|
2
2
|
import { ThemeSupporting } from '../../utils';
|
|
3
3
|
import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
|
|
4
4
|
import { AnalyticsEventsBase } from '../common';
|
|
5
|
-
import { ContentBlockProps } from './blocks';
|
|
5
|
+
import { ContentBlockProps, VisibilityPreset } from './blocks';
|
|
6
6
|
import { AuthorItem, ButtonProps, CardBaseProps, CardLayoutProps, ContentTheme, DividerSize, ImageCardMargins, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, ServiceLabelProps, TagProps, TextTheme, Themable, ThemedImage, TitleItemBaseProps, TitleTextSize } from './common';
|
|
7
7
|
export declare enum SubBlockType {
|
|
8
8
|
Divider = "divider",
|
|
@@ -52,6 +52,7 @@ export declare const SubBlockTypes: SubBlockType[];
|
|
|
52
52
|
export interface DividerProps {
|
|
53
53
|
size?: DividerSize;
|
|
54
54
|
border?: boolean;
|
|
55
|
+
visibility?: VisibilityPreset;
|
|
55
56
|
}
|
|
56
57
|
export interface HubspotFormProps extends HubspotEventHandlers, AnalyticsEventsBase {
|
|
57
58
|
className?: string;
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-divider-block.pc-divider-block_hidden {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
@media (min-width: 577px) and (max-width: 768px) {
|
|
7
|
+
.pc-divider-block.pc-divider-block_visible-sm {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@media (min-width: 769px) and (max-width: 1080px) {
|
|
12
|
+
.pc-divider-block.pc-divider-block_visible-md {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@media (min-width: 1081px) and (max-width: 1184px) {
|
|
17
|
+
.pc-divider-block.pc-divider-block_visible-lg {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@media (min-width: 1185px) and (max-width: 1247px) {
|
|
22
|
+
.pc-divider-block.pc-divider-block_visible-xl {
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 1248px) {
|
|
27
|
+
.pc-divider-block.pc-divider-block_visible-xxl {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@media (max-width: 576px) {
|
|
32
|
+
.pc-divider-block.pc-divider-block_visible-xs {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
.pc-divider-block_size_xxs {
|
|
2
38
|
padding-top: 12px;
|
|
3
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
2
|
+
import { block, getBlockVisibilityClasses } from '../../utils';
|
|
3
3
|
import './Divider.css';
|
|
4
4
|
const b = block('divider-block');
|
|
5
|
-
const Divider = ({ size = 'm', border }) => React.createElement("div", { className: b({ size, border }) });
|
|
5
|
+
const Divider = ({ size = 'm', border, visibility }) => (React.createElement("div", { className: b(Object.assign({ size, border }, getBlockVisibilityClasses(visibility))) }));
|
|
6
6
|
export default Divider;
|