@doyourjob/gravity-ui-page-constructor-addons 2.1.40 → 2.1.41
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/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +1 -28
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +3 -6
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +1 -1
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +1 -28
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +3 -6
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +1 -1
- package/package.json +1 -1
|
@@ -69,34 +69,7 @@ unpredictable css rules order in build */
|
|
|
69
69
|
display: grid;
|
|
70
70
|
gap: 24px 40px;
|
|
71
71
|
align-items: flex-start;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.pc-addons-nh-default-popup__wrap_mode_run {
|
|
75
|
-
grid-template-columns: repeat(12, 1fr);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.pc-addons-nh-default-popup__wrap_mode_run > a {
|
|
79
|
-
grid-column: span 4;
|
|
80
|
-
grid-row: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.pc-addons-nh-default-popup__wrap_mode_run > .pc-addons-nh-default-popup__inner-wrap:empty {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.pc-addons-nh-default-popup__wrap_mode_run > a + .pc-addons-nh-default-popup__inner-wrap {
|
|
88
|
-
grid-column: span 8;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.pc-addons-nh-default-popup__wrap_mode_run > .pc-addons-nh-default-popup__inner-wrap:last-child {
|
|
92
|
-
grid-column: span 12;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.pc-addons-nh-default-popup__inner-wrap {
|
|
96
|
-
display: grid;
|
|
97
|
-
gap: 24px 40px;
|
|
98
|
-
align-items: flex-start;
|
|
99
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
72
|
+
flex: 1;
|
|
100
73
|
}
|
|
101
74
|
|
|
102
75
|
.pc-addons-nh-default-popup__right {
|
|
@@ -18,7 +18,7 @@ const NHDefaultPopup = ({ sections, right, maxWidth, primaryColor, primaryColorH
|
|
|
18
18
|
}
|
|
19
19
|
: undefined, [maxWidth]);
|
|
20
20
|
const wrapsStyle = (0, react_1.useMemo)(() => sections.map((section) => ({
|
|
21
|
-
gridTemplateColumns:
|
|
21
|
+
gridTemplateColumns: `repeat(${section.columns || 3}, 1fr)`,
|
|
22
22
|
})), [sections]);
|
|
23
23
|
const cards = (0, react_1.useMemo)(() => {
|
|
24
24
|
if (right === null || right === void 0 ? void 0 : right.stories) {
|
|
@@ -30,12 +30,9 @@ const NHDefaultPopup = ({ sections, right, maxWidth, primaryColor, primaryColorH
|
|
|
30
30
|
return null;
|
|
31
31
|
}, [right]);
|
|
32
32
|
const renderSectionContent = (section, index) => {
|
|
33
|
-
var _a
|
|
33
|
+
var _a;
|
|
34
34
|
if (section.mode === 'run') {
|
|
35
|
-
return (react_1.default.createElement("div", { className: b('wrap', {
|
|
36
|
-
((_a = section.items) === null || _a === void 0 ? void 0 : _a[0]) && react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({}, section.items[0], { column: true })),
|
|
37
|
-
react_1.default.createElement("div", { className: b('inner-wrap') }, (_b = section.items) === null || _b === void 0 ? void 0 : _b.slice(1, 4).map((item, cardIndex) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true }))))),
|
|
38
|
-
react_1.default.createElement("div", { className: b('inner-wrap') }, (_c = section.items) === null || _c === void 0 ? void 0 : _c.slice(4).map((item, cardIndex) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true })))))));
|
|
35
|
+
return (react_1.default.createElement("div", { className: b('wrap'), style: wrapsStyle[index] }, (_a = section.items) === null || _a === void 0 ? void 0 : _a.map((item, cardIndex) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true }))))));
|
|
39
36
|
}
|
|
40
37
|
return (react_1.default.createElement("div", { className: b('wrap'), style: wrapsStyle[index] },
|
|
41
38
|
section.items.map((item, idx) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: idx }, item, { imageColor: primaryColor, imageColorHover: primaryColorHover })))),
|
|
@@ -69,34 +69,7 @@ unpredictable css rules order in build */
|
|
|
69
69
|
display: grid;
|
|
70
70
|
gap: 24px 40px;
|
|
71
71
|
align-items: flex-start;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.pc-addons-nh-default-popup__wrap_mode_run {
|
|
75
|
-
grid-template-columns: repeat(12, 1fr);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.pc-addons-nh-default-popup__wrap_mode_run > a {
|
|
79
|
-
grid-column: span 4;
|
|
80
|
-
grid-row: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.pc-addons-nh-default-popup__wrap_mode_run > .pc-addons-nh-default-popup__inner-wrap:empty {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.pc-addons-nh-default-popup__wrap_mode_run > a + .pc-addons-nh-default-popup__inner-wrap {
|
|
88
|
-
grid-column: span 8;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.pc-addons-nh-default-popup__wrap_mode_run > .pc-addons-nh-default-popup__inner-wrap:last-child {
|
|
92
|
-
grid-column: span 12;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.pc-addons-nh-default-popup__inner-wrap {
|
|
96
|
-
display: grid;
|
|
97
|
-
gap: 24px 40px;
|
|
98
|
-
align-items: flex-start;
|
|
99
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
72
|
+
flex: 1;
|
|
100
73
|
}
|
|
101
74
|
|
|
102
75
|
.pc-addons-nh-default-popup__right {
|
|
@@ -15,7 +15,7 @@ export const NHDefaultPopup = ({ sections, right, maxWidth, primaryColor, primar
|
|
|
15
15
|
}
|
|
16
16
|
: undefined, [maxWidth]);
|
|
17
17
|
const wrapsStyle = useMemo(() => sections.map((section) => ({
|
|
18
|
-
gridTemplateColumns:
|
|
18
|
+
gridTemplateColumns: `repeat(${section.columns || 3}, 1fr)`,
|
|
19
19
|
})), [sections]);
|
|
20
20
|
const cards = useMemo(() => {
|
|
21
21
|
if (right === null || right === void 0 ? void 0 : right.stories) {
|
|
@@ -27,12 +27,9 @@ export const NHDefaultPopup = ({ sections, right, maxWidth, primaryColor, primar
|
|
|
27
27
|
return null;
|
|
28
28
|
}, [right]);
|
|
29
29
|
const renderSectionContent = (section, index) => {
|
|
30
|
-
var _a
|
|
30
|
+
var _a;
|
|
31
31
|
if (section.mode === 'run') {
|
|
32
|
-
return (React.createElement("div", { className: b('wrap', {
|
|
33
|
-
((_a = section.items) === null || _a === void 0 ? void 0 : _a[0]) && React.createElement(NHPopupItem, Object.assign({}, section.items[0], { column: true })),
|
|
34
|
-
React.createElement("div", { className: b('inner-wrap') }, (_b = section.items) === null || _b === void 0 ? void 0 : _b.slice(1, 4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true }))))),
|
|
35
|
-
React.createElement("div", { className: b('inner-wrap') }, (_c = section.items) === null || _c === void 0 ? void 0 : _c.slice(4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true })))))));
|
|
32
|
+
return (React.createElement("div", { className: b('wrap'), style: wrapsStyle[index] }, (_a = section.items) === null || _a === void 0 ? void 0 : _a.map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: cardIndex }, item, { column: true }))))));
|
|
36
33
|
}
|
|
37
34
|
return (React.createElement("div", { className: b('wrap'), style: wrapsStyle[index] },
|
|
38
35
|
section.items.map((item, idx) => (React.createElement(NHPopupItem, Object.assign({ key: idx }, item, { imageColor: primaryColor, imageColorHover: primaryColorHover })))),
|