@doyourjob/gravity-ui-page-constructor-addons 2.1.39 → 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.
@@ -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: section.mode === 'run' ? undefined : `repeat(${section.columns || 3}, 1fr)`,
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, _b, _c;
33
+ var _a;
34
34
  if (section.mode === 'run') {
35
- return (react_1.default.createElement("div", { className: b('wrap', { mode: 'run' }) },
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 })))),
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
6
6
  top: 0;
7
7
  left: 0;
8
8
  z-index: 1000;
9
- height: 100vh;
9
+ height: 100%;
10
10
  background-color: var(--g-color-base-background);
11
11
  box-shadow: none;
12
12
  }
@@ -63,6 +63,7 @@ unpredictable css rules order in build */
63
63
 
64
64
  .pc-addons-nh-navigation-popup-item__container {
65
65
  align-self: center;
66
+ flex: 1;
66
67
  }
67
68
 
68
69
  .pc-addons-nh-navigation-popup-item__title {
@@ -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: section.mode === 'run' ? undefined : `repeat(${section.columns || 3}, 1fr)`,
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, _b, _c;
30
+ var _a;
31
31
  if (section.mode === 'run') {
32
- return (React.createElement("div", { className: b('wrap', { mode: 'run' }) },
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 })))),
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
6
6
  top: 0;
7
7
  left: 0;
8
8
  z-index: 1000;
9
- height: 100vh;
9
+ height: 100%;
10
10
  background-color: var(--g-color-base-background);
11
11
  box-shadow: none;
12
12
  }
@@ -63,6 +63,7 @@ unpredictable css rules order in build */
63
63
 
64
64
  .pc-addons-nh-navigation-popup-item__container {
65
65
  align-self: center;
66
+ flex: 1;
66
67
  }
67
68
 
68
69
  .pc-addons-nh-navigation-popup-item__title {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor-addons",
3
- "version": "2.1.39",
3
+ "version": "2.1.41",
4
4
  "description": "Components and plugins for @doyourjob/gravity-ui-page-constructor",
5
5
  "license": "MIT",
6
6
  "repository": {