@doyourjob/gravity-ui-page-constructor-addons 2.1.31 → 2.1.32

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.
Files changed (67) hide show
  1. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
  2. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +3 -0
  3. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +55 -0
  4. package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
  5. package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
  6. package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.js +5 -21
  7. package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.css +19 -3
  8. package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
  9. package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
  10. package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
  11. package/build/cjs/components/NewHeader/models.d.ts +31 -109
  12. package/build/cjs/components/NewHeader/models.js +2 -13
  13. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
  14. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +4 -0
  15. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +51 -0
  16. package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
  17. package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
  18. package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.js +6 -22
  19. package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.css +19 -3
  20. package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
  21. package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
  22. package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
  23. package/build/esm/components/NewHeader/models.d.ts +31 -109
  24. package/build/esm/components/NewHeader/models.js +1 -12
  25. package/package.json +1 -1
  26. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
  27. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -3
  28. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -18
  29. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
  30. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -3
  31. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -22
  32. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
  33. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -3
  34. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -13
  35. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
  36. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -3
  37. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -42
  38. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
  39. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -3
  40. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -17
  41. package/build/cjs/components/NewHeader/components/NHTag/NHTag.css +0 -21
  42. package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +0 -6
  43. package/build/cjs/components/NewHeader/components/NHTag/NHTag.js +0 -22
  44. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
  45. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -3
  46. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -21
  47. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
  48. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -4
  49. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -14
  50. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
  51. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -4
  52. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -18
  53. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
  54. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -4
  55. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -9
  56. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
  57. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -4
  58. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -38
  59. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
  60. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -4
  61. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -13
  62. package/build/esm/components/NewHeader/components/NHTag/NHTag.css +0 -21
  63. package/build/esm/components/NewHeader/components/NHTag/NHTag.d.ts +0 -7
  64. package/build/esm/components/NewHeader/components/NHTag/NHTag.js +0 -18
  65. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
  66. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -4
  67. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -17
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NHNavigationTagColor = exports.NHNavigationItemType = void 0;
3
+ exports.NHNavigationItemType = void 0;
4
4
  var NHNavigationItemType;
5
5
  (function (NHNavigationItemType) {
6
- NHNavigationItemType["NHMediumPopup"] = "medium-popup";
7
6
  NHNavigationItemType["NHProductsPopup"] = "products-popup";
8
- NHNavigationItemType["NHSolutionsPopup"] = "solutions-popup";
9
- NHNavigationItemType["NHWhyPopup"] = "why-popup";
10
- NHNavigationItemType["NHResourcesPopup"] = "resources-popup";
11
- NHNavigationItemType["NHCompanyPopup"] = "company-popup";
12
- NHNavigationItemType["NHInvestorPopup"] = "investor-popup";
7
+ NHNavigationItemType["NHDefaultPopup"] = "default-popup";
13
8
  NHNavigationItemType["Link"] = "link";
14
9
  })(NHNavigationItemType = exports.NHNavigationItemType || (exports.NHNavigationItemType = {}));
15
- var NHNavigationTagColor;
16
- (function (NHNavigationTagColor) {
17
- NHNavigationTagColor["Green"] = "green";
18
- NHNavigationTagColor["Yellow"] = "yellow";
19
- NHNavigationTagColor["Blue"] = "blue";
20
- })(NHNavigationTagColor = exports.NHNavigationTagColor || (exports.NHNavigationTagColor = {}));
@@ -0,0 +1,166 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .pc-addons-nh-default-popup {
4
+ background: var(--g-color-base-float);
5
+ box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
6
+ max-height: calc(100vh - 64px - 64px);
7
+ overflow: auto;
8
+ width: 100%;
9
+ border-radius: var(--pc-border-radius, 24px);
10
+ scrollbar-width: none;
11
+ display: flex;
12
+ }
13
+
14
+ .pc-addons-nh-default-popup::-webkit-scrollbar {
15
+ display: none;
16
+ }
17
+
18
+ .pc-addons-nh-default-popup__head {
19
+ display: flex;
20
+ align-items: baseline;
21
+ column-gap: 12px;
22
+ row-gap: 2px;
23
+ flex-wrap: wrap;
24
+ }
25
+
26
+ .pc-addons-nh-default-popup__title {
27
+ font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
28
+ line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
29
+ color: var(--g-color-text-primary);
30
+ font-weight: 500;
31
+ }
32
+
33
+ .pc-addons-nh-default-popup__subtitle {
34
+ font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
35
+ line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
36
+ color: var(--g-color-text-secondary);
37
+ }
38
+
39
+ .pc-addons-nh-default-popup__left {
40
+ flex: 1;
41
+ }
42
+
43
+ .pc-addons-nh-default-popup__left > div + div {
44
+ border-top: 1px solid var(--g-color-line-generic-solid);
45
+ }
46
+
47
+ .pc-addons-nh-default-popup__section {
48
+ display: flex;
49
+ padding: 24px 32px;
50
+ flex-direction: column;
51
+ gap: 24px;
52
+ }
53
+
54
+ .pc-addons-nh-default-popup__wrap {
55
+ display: grid;
56
+ gap: 24px 40px;
57
+ align-items: flex-start;
58
+ }
59
+
60
+ .pc-addons-nh-default-popup__right {
61
+ width: 100%;
62
+ max-width: 320px;
63
+ flex-shrink: 0;
64
+ border-left: 1px solid var(--g-color-line-generic-solid);
65
+ display: flex;
66
+ flex-direction: column;
67
+ padding: 24px 32px;
68
+ gap: 20px;
69
+ }
70
+
71
+ .pc-addons-nh-default-popup__cards {
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: 24px;
75
+ }
76
+
77
+ .pc-addons-nh-default-popup__card {
78
+ color: inherit;
79
+ text-decoration: none;
80
+ border-radius: 16px;
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: 12px;
84
+ cursor: pointer;
85
+ transition: opacity 0.2s;
86
+ }
87
+
88
+ .pc-addons-nh-default-popup__card:hover {
89
+ opacity: 0.8;
90
+ }
91
+
92
+ .pc-addons-nh-default-popup__card-wrap {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 4px;
96
+ }
97
+
98
+ .pc-addons-nh-default-popup__card-caption {
99
+ font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
100
+ line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
101
+ color: var(--g-color-text-secondary);
102
+ }
103
+
104
+ .pc-addons-nh-default-popup__card-title {
105
+ font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
106
+ line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
107
+ color: var(--g-color-text-primary);
108
+ font-weight: 600;
109
+ }
110
+
111
+ .pc-addons-nh-default-popup__card-description {
112
+ font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
113
+ line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
114
+ color: var(--g-color-text-secondary);
115
+ }
116
+
117
+ .pc-addons-nh-default-popup__card-image {
118
+ display: block;
119
+ width: 100%;
120
+ aspect-ratio: 16/9;
121
+ object-fit: cover;
122
+ }
123
+
124
+ .pc-addons-nh-default-popup__stock {
125
+ position: relative;
126
+ padding: 20px;
127
+ display: flex;
128
+ flex-direction: column;
129
+ min-height: 310px;
130
+ border-radius: 8px;
131
+ }
132
+
133
+ .pc-addons-nh-default-popup__stock-background {
134
+ position: absolute;
135
+ top: 0;
136
+ left: 0;
137
+ width: 100%;
138
+ height: 100%;
139
+ object-fit: cover;
140
+ display: block;
141
+ }
142
+
143
+ .pc-addons-nh-default-popup__stock-title {
144
+ font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
145
+ line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
146
+ color: var(--g-color-text-primary);
147
+ font-weight: 600;
148
+ margin-bottom: auto;
149
+ z-index: 1;
150
+ }
151
+
152
+ .pc-addons-nh-default-popup__stock-value {
153
+ color: var(--g-color-text-primary);
154
+ font-size: 36px;
155
+ line-height: 48px;
156
+ font-weight: 600;
157
+ margin-bottom: 4px;
158
+ z-index: 1;
159
+ }
160
+
161
+ .pc-addons-nh-default-popup__stock-date {
162
+ font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
163
+ line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
164
+ color: var(--g-color-text-secondary);
165
+ z-index: 1;
166
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NHDefaultPopupData } from '../../models';
3
+ import './NHDefaultPopup.css';
4
+ export declare const NHDefaultPopup: ({ sections, right, maxWidth }: NHDefaultPopupData) => React.JSX.Element;
@@ -0,0 +1,51 @@
1
+ import React, { useMemo } from 'react';
2
+ import { Image, getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
3
+ import { block } from '../../../../utils/cn';
4
+ import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
5
+ import './NHDefaultPopup.css';
6
+ const b = block('nh-default-popup');
7
+ const NHStoryCard = ({ title, description, image, url }) => (React.createElement("a", Object.assign({ href: url, className: b('card') }, getLinkProps(url)),
8
+ React.createElement(Image, { className: b('card-image'), src: image }),
9
+ React.createElement("div", { className: b('card-wrap') },
10
+ React.createElement("div", { className: b('card-title') }, title),
11
+ React.createElement("div", { className: b('card-description') }, description))));
12
+ const NHEventCard = ({ title, caption, description, image, url }) => (React.createElement("a", Object.assign({ href: url, className: b('card') }, getLinkProps(url)),
13
+ React.createElement(Image, { className: b('card-image'), src: image }),
14
+ React.createElement("div", { className: b('card-wrap') },
15
+ React.createElement("div", { className: b('card-caption') }, caption),
16
+ React.createElement("div", { className: b('card-title') }, title),
17
+ React.createElement("div", { className: b('card-description') }, description))));
18
+ export const NHDefaultPopup = ({ sections, right, maxWidth }) => {
19
+ const rootStyle = useMemo(() => maxWidth
20
+ ? {
21
+ marginLeft: 'auto',
22
+ maxWidth,
23
+ }
24
+ : undefined, [maxWidth]);
25
+ const wrapsStyle = useMemo(() => sections.map((section) => ({
26
+ gridTemplateColumns: `repeat(${section.columns || 3}, 1fr)`,
27
+ })), [sections]);
28
+ const cards = useMemo(() => {
29
+ if (right === null || right === void 0 ? void 0 : right.stories) {
30
+ return right.stories.map((card, index) => React.createElement(NHStoryCard, Object.assign({ key: index }, card)));
31
+ }
32
+ if (right === null || right === void 0 ? void 0 : right.events) {
33
+ return right.events.map((card, index) => React.createElement(NHEventCard, Object.assign({ key: index }, card)));
34
+ }
35
+ return null;
36
+ }, [right]);
37
+ return (React.createElement("div", { className: b(), style: rootStyle },
38
+ React.createElement("div", { className: b('left') }, sections.map((section, index) => (React.createElement("div", { key: index, className: b('section') },
39
+ section.title || section.subtitle ? (React.createElement("div", { className: b('head') },
40
+ React.createElement("div", { className: b('title') }, section.title),
41
+ React.createElement("div", { className: b('subtitle') }, section.subtitle))) : null,
42
+ React.createElement("div", { className: b('wrap'), style: wrapsStyle[index] }, section.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item))))))))),
43
+ right && (React.createElement("div", { className: b('right') },
44
+ React.createElement("div", { className: b('title') }, right.title),
45
+ cards && React.createElement("div", { className: b('cards') }, cards),
46
+ right.stock && (React.createElement("div", { className: b('stock') },
47
+ right.stock.background ? (React.createElement("img", { className: b('stock-background'), src: right.stock.background, alt: "Stock background" })) : null,
48
+ React.createElement("div", { className: b('stock-title') }, right.stock.title),
49
+ React.createElement("div", { className: b('stock-value') }, right.stock.value),
50
+ React.createElement("div", { className: b('stock-date') }, right.stock.date)))))));
51
+ };
@@ -6,9 +6,9 @@ unpredictable css rules order in build */
6
6
  box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
7
7
  max-height: calc(100vh - 64px - 64px);
8
8
  overflow: auto;
9
- max-width: 260px;
10
9
  margin-left: auto;
11
- width: 100%;
10
+ width: max-content;
11
+ min-width: 212px;
12
12
  scrollbar-width: none;
13
13
  }
14
14
 
@@ -16,36 +16,10 @@ unpredictable css rules order in build */
16
16
  display: none;
17
17
  }
18
18
 
19
- .pc-addons-nh-login-popup__container {
20
- padding: 8px;
21
- gap: 8px;
22
- display: flex;
23
- flex-direction: column;
19
+ .pc-addons-nh-login-popup > div + div {
20
+ border-top: 1px solid var(--g-color-line-generic-solid);
24
21
  }
25
22
 
26
23
  .pc-addons-nh-login-popup__item {
27
- padding: 8px;
28
- display: flex;
29
- flex-direction: column;
30
- gap: 4px;
31
- width: 100%;
32
- border-radius: 8px;
33
- cursor: pointer;
34
- }
35
-
36
- .pc-addons-nh-login-popup__item:hover {
37
- background: var(--g-color-private-black-50);
38
- }
39
-
40
- .pc-addons-nh-login-popup__title {
41
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
42
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
43
- font-weight: 500;
44
- }
45
-
46
- .pc-addons-nh-login-popup__subtitle {
47
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
48
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
49
- font-weight: 500;
50
- color: #9fb1bd;
24
+ padding: 16px;
51
25
  }
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { Grid, getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
3
2
  import { block } from '../../../../utils/cn';
3
+ import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
4
4
  import './NHLoginPopup.css';
5
5
  const b = block('nh-login-popup');
6
- export const NHLoginPopup = ({ items }) => (React.createElement(Grid, { className: b(), containerClass: b('container') }, items.map((item) => (React.createElement("a", Object.assign({ href: item.url, className: b('item'), key: item.title }, getLinkProps(item.url || '')),
7
- React.createElement("div", { className: b('title') }, item.title),
8
- React.createElement("div", { className: b('subtitle') }, item.subtitle))))));
6
+ export const NHLoginPopup = ({ items }) => (React.createElement("div", { className: b() }, items.map((item, index) => (React.createElement("div", { key: index, className: b('item') },
7
+ React.createElement(NHPopupItem, Object.assign({}, item)))))));
@@ -1,36 +1,20 @@
1
1
  import React, { useCallback, useEffect, useState } from 'react';
2
2
  import { block } from '../../../../utils/cn';
3
3
  import { NO_MENU_TAB_SELECTED, SWITCH_MENU_TAB_TIMEOUT } from '../../constants';
4
- import { NHNavigationItemType, } from '../../models';
5
- import { NHCompanyPopup } from '../NHCompanyPopup/NHCompanyPopup';
6
- import { NHInvestorPopup } from '../NHInvestorPopup/NHInvestorPopup';
7
- import { NHMediumPopup } from '../NHMediumPopup/NHMediumPopup';
4
+ import { NHNavigationItemType } from '../../models';
5
+ import { NHDefaultPopup } from '../NHDefaultPopup/NHDefaultPopup';
8
6
  import { NHNavigationItem } from '../NHNavigationItem/NHNavigationItem';
9
7
  import { NHNavigationPopup } from '../NHNavigationPopup/NHNavigationPopup';
10
8
  import { NHProductsPopup } from '../NHProductsPopup/NHProductsPopup';
11
- import { NHResourcesPopup } from '../NHResourcesPopup/NHResourcesPopup';
12
- import { NHSolutionsPopup } from '../NHSolutionsPopup/NHSolutionsPopup';
13
- import { NHWhyPopup } from '../NHWhyPopup/NHWhyPopup';
14
9
  import './NHNavigation.css';
15
10
  const b = block('nh-navigation');
16
11
  const tooltipPrefixId = 'navigation-item-key';
17
12
  const getPopupContent = (sectionData) => {
18
- const { type, data } = sectionData;
19
- switch (type) {
20
- case NHNavigationItemType.NHMediumPopup:
21
- return React.createElement(NHMediumPopup, Object.assign({}, data));
13
+ switch (sectionData.type) {
22
14
  case NHNavigationItemType.NHProductsPopup:
23
- return React.createElement(NHProductsPopup, Object.assign({}, data));
24
- case NHNavigationItemType.NHSolutionsPopup:
25
- return React.createElement(NHSolutionsPopup, Object.assign({}, data));
26
- case NHNavigationItemType.NHWhyPopup:
27
- return React.createElement(NHWhyPopup, Object.assign({}, data));
28
- case NHNavigationItemType.NHResourcesPopup:
29
- return React.createElement(NHResourcesPopup, Object.assign({}, data));
30
- case NHNavigationItemType.NHCompanyPopup:
31
- return React.createElement(NHCompanyPopup, Object.assign({}, data));
32
- case NHNavigationItemType.NHInvestorPopup:
33
- return React.createElement(NHInvestorPopup, Object.assign({}, data));
15
+ return React.createElement(NHProductsPopup, Object.assign({}, sectionData.data));
16
+ case NHNavigationItemType.NHDefaultPopup:
17
+ return React.createElement(NHDefaultPopup, Object.assign({}, sectionData.data));
34
18
  default:
35
19
  return null;
36
20
  }
@@ -26,6 +26,10 @@ unpredictable css rules order in build */
26
26
  border: none;
27
27
  }
28
28
 
29
+ .pc-addons-nh-navigation-popup-item_column .pc-addons-nh-navigation-popup-item__container {
30
+ align-self: initial;
31
+ }
32
+
29
33
  .pc-addons-nh-navigation-popup-item:hover .pc-addons-nh-navigation-popup-item__description, .pc-addons-nh-navigation-popup-item:active .pc-addons-nh-navigation-popup-item__description {
30
34
  color: var(--g-color-text-primary);
31
35
  }
@@ -35,14 +39,20 @@ unpredictable css rules order in build */
35
39
  }
36
40
 
37
41
  .pc-addons-nh-navigation-popup-item:hover .pc-addons-nh-navigation-popup-item__title > svg, .pc-addons-nh-navigation-popup-item:active .pc-addons-nh-navigation-popup-item__title > svg {
38
- display: inline-block;
42
+ pointer-events: initial;
43
+ opacity: 1;
39
44
  }
40
45
 
41
46
  .pc-addons-nh-navigation-popup-item_disable {
42
47
  pointer-events: none;
43
48
  }
44
49
 
50
+ .pc-addons-nh-navigation-popup-item__container {
51
+ align-self: center;
52
+ }
53
+
45
54
  .pc-addons-nh-navigation-popup-item__title {
55
+ position: relative;
46
56
  font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
47
57
  line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
48
58
  font-weight: 600;
@@ -50,13 +60,18 @@ unpredictable css rules order in build */
50
60
  }
51
61
 
52
62
  .pc-addons-nh-navigation-popup-item__title > svg {
53
- display: none;
54
- vertical-align: sub;
63
+ display: inline-block;
64
+ position: absolute;
65
+ margin-top: 3px;
66
+ transition: opacity 0.2s;
67
+ opacity: 0;
68
+ pointer-events: none;
55
69
  }
56
70
 
57
71
  .pc-addons-nh-navigation-popup-item__description {
58
72
  font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
59
73
  line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
74
+ transition: color 0.2s;
60
75
  display: block;
61
76
  margin-top: 1px;
62
77
  color: var(--g-color-text-secondary);
@@ -77,6 +92,7 @@ unpredictable css rules order in build */
77
92
  padding: 8px;
78
93
  border-radius: 8px;
79
94
  background: var(--nh-popup-item-color);
95
+ transition: background 0.2s;
80
96
  }
81
97
 
82
98
  .pc-addons-nh-navigation-popup-item__image-container_no-bg {
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { NHPopupItemData } from '../../models';
3
3
  import './NHPopupItem.css';
4
4
  export interface NHPopupItemProps extends Partial<NHPopupItemData> {
5
- hover?: boolean;
6
5
  column?: boolean;
7
- target?: string;
8
6
  }
9
7
  export declare const NHPopupItem: (props: NHPopupItemProps) => React.JSX.Element;
@@ -15,7 +15,7 @@ unpredictable css rules order in build */
15
15
  }
16
16
 
17
17
  .pc-addons-nh-products-popup > div + div {
18
- border-top: 1px solid #e4ebf0;
18
+ border-top: 1px solid var(--g-color-line-generic-solid);
19
19
  }
20
20
 
21
21
  .pc-addons-nh-products-popup__section {
@@ -80,7 +80,6 @@ unpredictable css rules order in build */
80
80
  color: inherit;
81
81
  text-decoration: none;
82
82
  grid-area: 1/3/3/4;
83
- font-weight: 500;
84
83
  border-radius: 16px;
85
84
  padding: 16px;
86
85
  display: flex;
@@ -17,18 +17,18 @@ export const NHProductsPopup = ({ sections, primaryColor, primaryColorHover, })
17
17
  let content;
18
18
  if ('mode' in section && section.mode === 'run') {
19
19
  content = (React.createElement("div", { className: b('wrap-scale') },
20
- ((_a = section.items) === null || _a === void 0 ? void 0 : _a[0]) && React.createElement(NHPopupItem, Object.assign({}, section.items[0], { hover: true, column: true })),
21
- React.createElement("div", { className: b('wrap') }, (_b = section.items) === null || _b === void 0 ? void 0 : _b.slice(1, 4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${cardIndex + 1}` }, item, { hover: true, column: true }))))),
22
- React.createElement("div", { className: b('wrap') }, (_c = section.items) === null || _c === void 0 ? void 0 : _c.slice(4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${cardIndex + 4}` }, item, { hover: true, column: true })))))));
20
+ ((_a = section.items) === null || _a === void 0 ? void 0 : _a[0]) && React.createElement(NHPopupItem, Object.assign({}, section.items[0], { column: true })),
21
+ React.createElement("div", { className: b('wrap') }, (_b = section.items) === null || _b === void 0 ? void 0 : _b.slice(1, 4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${cardIndex + 1}` }, item, { column: true }))))),
22
+ React.createElement("div", { className: b('wrap') }, (_c = section.items) === null || _c === void 0 ? void 0 : _c.slice(4).map((item, cardIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${cardIndex + 4}` }, item, { column: true })))))));
23
23
  }
24
24
  else if ('mode' in section && section.mode === 'scale') {
25
25
  content = (React.createElement("div", { className: b('wrap') }, (_d = section.items) === null || _d === void 0 ? void 0 :
26
- _d.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}`, imageColor: primaryColor, imageColorHover: primaryColorHover }, item, { hover: true })))),
26
+ _d.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}`, imageColor: primaryColor, imageColorHover: primaryColorHover }, item)))),
27
27
  section.banner && React.createElement(NHBanner, Object.assign({}, section.banner))));
28
28
  }
29
29
  else {
30
30
  content = (React.createElement("div", { className: b('wrap') }, (_e = section.items) === null || _e === void 0 ? void 0 :
31
- _e.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}`, imageColor: primaryColor, imageColorHover: primaryColorHover }, item, { hover: true })))),
31
+ _e.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}`, imageColor: primaryColor, imageColorHover: primaryColorHover }, item)))),
32
32
  ' '));
33
33
  }
34
34
  return (React.createElement("div", { className: b('section'), key: section.title },