@doyourjob/gravity-ui-page-constructor-addons 2.1.30 → 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.
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +55 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.css +1 -1
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.js +5 -21
- package/build/cjs/components/NewHeader/components/NHPopupItem/ArrowRight.d.ts +2 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/ArrowRight.js +8 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.css +50 -55
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +1 -7
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.js +12 -17
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +55 -61
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +1 -1
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +27 -49
- package/build/cjs/components/NewHeader/models.d.ts +45 -114
- package/build/cjs/components/NewHeader/models.js +2 -13
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +51 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.css +1 -1
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.js +6 -22
- package/build/esm/components/NewHeader/components/NHPopupItem/ArrowRight.d.ts +2 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/ArrowRight.js +3 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.css +50 -55
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +1 -7
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.js +13 -18
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +55 -61
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +1 -1
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +28 -50
- package/build/esm/components/NewHeader/models.d.ts +45 -114
- package/build/esm/components/NewHeader/models.js +1 -12
- package/package.json +1 -1
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -20
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -22
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -17
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -42
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -20
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.css +0 -21
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +0 -6
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.js +0 -22
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -21
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -16
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -18
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -13
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -38
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -16
- package/build/esm/components/NewHeader/components/NHTag/NHTag.css +0 -21
- package/build/esm/components/NewHeader/components/NHTag/NHTag.d.ts +0 -7
- package/build/esm/components/NewHeader/components/NHTag/NHTag.js +0 -18
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -17
|
@@ -14,111 +14,105 @@ unpredictable css rules order in build */
|
|
|
14
14
|
display: none;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.pc-addons-nh-products-
|
|
18
|
-
|
|
17
|
+
.pc-addons-nh-products-popup > div + div {
|
|
18
|
+
border-top: 1px solid var(--g-color-line-generic-solid);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.pc-addons-nh-products-
|
|
22
|
-
|
|
21
|
+
.pc-addons-nh-products-popup__section {
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: 24px 32px;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
.pc-addons-nh-products-
|
|
26
|
-
padding: 24px;
|
|
27
|
-
gap: 24px;
|
|
26
|
+
.pc-addons-nh-products-popup__section-head {
|
|
28
27
|
display: flex;
|
|
29
28
|
flex-direction: column;
|
|
29
|
+
width: 200px;
|
|
30
|
+
padding-right: 32px;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
gap: 2px;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
.pc-addons-nh-products-popup__title {
|
|
33
|
-
font-size: var(--g-text-
|
|
34
|
-
line-height: var(--g-text-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
font-weight: 600;
|
|
38
|
-
background-color: #e0e0e0;
|
|
36
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
37
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
38
|
+
color: var(--g-color-text-primary);
|
|
39
|
+
font-weight: 500;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
.pc-addons-nh-products-popup__subtitle {
|
|
42
|
-
font-size: var(--g-text-
|
|
43
|
-
line-height: var(--g-text-
|
|
44
|
-
|
|
45
|
-
color: #e0e0e0;
|
|
43
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
44
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
45
|
+
color: var(--g-color-text-secondary);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.pc-addons-nh-products-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
53
|
-
font-weight: 500;
|
|
54
|
-
background-color: #f2f6f9;
|
|
55
|
-
border-radius: 16px;
|
|
56
|
-
padding: 16px;
|
|
57
|
-
display: flex;
|
|
58
|
-
gap: 24px;
|
|
48
|
+
.pc-addons-nh-products-popup__wrap, .pc-addons-nh-products-popup__wrap-scale {
|
|
49
|
+
display: grid;
|
|
50
|
+
gap: 24px 40px;
|
|
51
|
+
align-items: flex-start;
|
|
59
52
|
}
|
|
60
53
|
|
|
61
|
-
.pc-addons-nh-products-
|
|
62
|
-
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
flex: 1;
|
|
66
|
-
gap: 20px;
|
|
54
|
+
.pc-addons-nh-products-popup__wrap {
|
|
55
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
67
56
|
}
|
|
68
57
|
|
|
69
|
-
.pc-addons-nh-products-
|
|
70
|
-
|
|
58
|
+
.pc-addons-nh-products-popup__wrap-scale {
|
|
59
|
+
grid-template-columns: repeat(12, 1fr);
|
|
71
60
|
}
|
|
72
61
|
|
|
73
|
-
.pc-addons-nh-products-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
.pc-addons-nh-products-popup__wrap-scale > a {
|
|
63
|
+
grid-column: span 4;
|
|
64
|
+
grid-row: 1;
|
|
76
65
|
}
|
|
77
66
|
|
|
78
|
-
.pc-addons-nh-products-
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
.pc-addons-nh-products-popup__wrap-scale > .pc-addons-nh-products-popup__wrap:empty {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pc-addons-nh-products-popup__wrap-scale > a + .pc-addons-nh-products-popup__wrap {
|
|
72
|
+
grid-column: span 8;
|
|
81
73
|
}
|
|
82
74
|
|
|
83
|
-
.pc-addons-nh-products-
|
|
84
|
-
|
|
75
|
+
.pc-addons-nh-products-popup__wrap-scale > .pc-addons-nh-products-popup__wrap:last-child {
|
|
76
|
+
grid-column: span 12;
|
|
85
77
|
}
|
|
86
78
|
|
|
87
|
-
.pc-addons-nh-products-
|
|
79
|
+
.pc-addons-nh-products-popup__banner {
|
|
88
80
|
color: inherit;
|
|
89
81
|
text-decoration: none;
|
|
90
|
-
|
|
91
|
-
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
92
|
-
font-weight: 500;
|
|
82
|
+
grid-area: 1/3/3/4;
|
|
93
83
|
border-radius: 16px;
|
|
94
|
-
background-color: #f2f6f9;
|
|
95
84
|
padding: 16px;
|
|
96
85
|
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
86
|
gap: 20px;
|
|
99
|
-
|
|
87
|
+
background: var(--nh-products-banner-background, transparent);
|
|
100
88
|
}
|
|
101
89
|
|
|
102
|
-
.pc-addons-nh-products-
|
|
103
|
-
border: 1px solid
|
|
104
|
-
background-color: transparent;
|
|
90
|
+
.pc-addons-nh-products-popup__banner_border {
|
|
91
|
+
border: 1px solid var(--g-color-line-generic-solid);
|
|
105
92
|
}
|
|
106
93
|
|
|
107
|
-
.pc-addons-nh-products-
|
|
94
|
+
.pc-addons-nh-products-popup__banner-wrap {
|
|
108
95
|
display: flex;
|
|
109
96
|
flex-direction: column;
|
|
110
97
|
flex: 1;
|
|
111
98
|
gap: 4px;
|
|
112
99
|
}
|
|
113
100
|
|
|
114
|
-
.pc-addons-nh-products-
|
|
115
|
-
|
|
101
|
+
.pc-addons-nh-products-popup__banner-title {
|
|
102
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
103
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
104
|
+
color: var(--nh-products-banner-color, var(--g-color-text-primary));
|
|
105
|
+
font-weight: 600;
|
|
116
106
|
}
|
|
117
107
|
|
|
118
|
-
.pc-addons-nh-products-
|
|
119
|
-
|
|
108
|
+
.pc-addons-nh-products-popup__banner-description {
|
|
109
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
110
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
111
|
+
color: var(--nh-products-banner-color, var(--g-color-text-secondary));
|
|
120
112
|
}
|
|
121
113
|
|
|
122
|
-
.pc-addons-nh-products-
|
|
123
|
-
|
|
114
|
+
.pc-addons-nh-products-popup__banner-image {
|
|
115
|
+
display: block;
|
|
116
|
+
width: 86px;
|
|
117
|
+
aspect-ratio: 1;
|
|
124
118
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NHProductsPopupData } from '../../models';
|
|
3
3
|
import './NHProductsPopup.css';
|
|
4
|
-
export declare const NHProductsPopup: ({ sections,
|
|
4
|
+
export declare const NHProductsPopup: ({ sections, primaryColor, primaryColorHover, }: NHProductsPopupData) => React.JSX.Element;
|
|
@@ -1,61 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Image, getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../../../utils/cn';
|
|
4
4
|
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
5
|
import './NHProductsPopup.css';
|
|
6
6
|
const b = block('nh-products-popup');
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const NHBanner = ({ title, description, image, url, background, color, border, }) => {
|
|
8
|
+
const styles = useMemo(() => (Object.assign(Object.assign({}, (background ? { '--nh-products-banner-background': background } : {})), (color ? { '--nh-products-banner-color': color } : {}))), [background, color]);
|
|
9
|
+
return (React.createElement("a", Object.assign({ href: url, className: b('banner', { border }), style: styles }, getLinkProps(url)),
|
|
10
|
+
React.createElement(Image, { className: b('banner-image'), src: image }),
|
|
11
|
+
React.createElement("div", { className: b('banner-wrap') },
|
|
12
|
+
React.createElement("div", { className: b('banner-title') }, title),
|
|
13
|
+
React.createElement("div", { className: b('banner-description') }, description))));
|
|
13
14
|
};
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
React.createElement(Image, { className: b('run-card-image'), src: image }),
|
|
17
|
-
React.createElement("div", { className: b('run-card-wrap') },
|
|
18
|
-
React.createElement("div", { className: b('run-card-title') }, title),
|
|
19
|
-
React.createElement("div", { className: b('run-card-description') }, description))));
|
|
20
|
-
};
|
|
21
|
-
export const NHProductsPopup = ({ sections, poweredCard }) => (React.createElement(Grid, { className: b(), containerClass: b('container') }, sections.map((section, index) => {
|
|
22
|
-
var _a, _b, _c;
|
|
23
|
-
const isScaleSection = index === 2; // "Scale" section is usually the 3rd one
|
|
24
|
-
const isRunSection = section.runCards && section.runCards.length > 0;
|
|
15
|
+
export const NHProductsPopup = ({ sections, primaryColor, primaryColorHover, }) => (React.createElement("div", { className: b() }, sections.map((section) => {
|
|
16
|
+
var _a, _b, _c, _d, _e;
|
|
25
17
|
let content;
|
|
26
|
-
if (
|
|
27
|
-
content = (React.createElement(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} },
|
|
32
|
-
React.createElement(RunCard, Object.assign({}, card))))))));
|
|
18
|
+
if ('mode' in section && section.mode === 'run') {
|
|
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], { 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 })))))));
|
|
33
23
|
}
|
|
34
|
-
else if (
|
|
35
|
-
content = (React.createElement(
|
|
36
|
-
React.createElement(
|
|
37
|
-
|
|
38
|
-
[GridColumnSize.All]: 12,
|
|
39
|
-
} },
|
|
40
|
-
React.createElement(Row, null, (_b = section.items) === null || _b === void 0 ? void 0 : _b.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}` }, item, { hover: true, sizes: {
|
|
41
|
-
[GridColumnSize.Md]: 6,
|
|
42
|
-
[GridColumnSize.All]: 12,
|
|
43
|
-
} })))))),
|
|
44
|
-
React.createElement(Col, { sizes: {
|
|
45
|
-
[GridColumnSize.Md]: 4,
|
|
46
|
-
[GridColumnSize.All]: 12,
|
|
47
|
-
} }, poweredCard && React.createElement(PoweredCard, Object.assign({}, poweredCard)))));
|
|
24
|
+
else if ('mode' in section && section.mode === 'scale') {
|
|
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)))),
|
|
27
|
+
section.banner && React.createElement(NHBanner, Object.assign({}, section.banner))));
|
|
48
28
|
}
|
|
49
29
|
else {
|
|
50
|
-
content = (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} }))));
|
|
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)))),
|
|
32
|
+
' '));
|
|
54
33
|
}
|
|
55
|
-
return (React.createElement(
|
|
56
|
-
React.createElement(
|
|
57
|
-
|
|
58
|
-
React.createElement(
|
|
59
|
-
|
|
60
|
-
React.createElement(Row, null, content))));
|
|
34
|
+
return (React.createElement("div", { className: b('section'), key: section.title },
|
|
35
|
+
React.createElement("div", { className: b('section-head') },
|
|
36
|
+
React.createElement("div", { className: b('title') }, section.title),
|
|
37
|
+
React.createElement("div", { className: b('subtitle') }, section.subtitle)),
|
|
38
|
+
content));
|
|
61
39
|
})));
|
|
@@ -1,134 +1,85 @@
|
|
|
1
1
|
import type { ButtonProps, LinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
2
2
|
export declare enum NHNavigationItemType {
|
|
3
|
-
NHMediumPopup = "medium-popup",
|
|
4
3
|
NHProductsPopup = "products-popup",
|
|
5
|
-
|
|
6
|
-
NHWhyPopup = "why-popup",
|
|
7
|
-
NHResourcesPopup = "resources-popup",
|
|
8
|
-
NHCompanyPopup = "company-popup",
|
|
9
|
-
NHInvestorPopup = "investor-popup",
|
|
4
|
+
NHDefaultPopup = "default-popup",
|
|
10
5
|
Link = "link"
|
|
11
6
|
}
|
|
12
|
-
export declare enum NHNavigationTagColor {
|
|
13
|
-
Green = "green",
|
|
14
|
-
Yellow = "yellow",
|
|
15
|
-
Blue = "blue"
|
|
16
|
-
}
|
|
17
7
|
export interface NHLogoData {
|
|
18
8
|
href?: string;
|
|
19
9
|
src?: string;
|
|
20
10
|
alt?: string;
|
|
21
11
|
}
|
|
22
|
-
export interface NHNavigationTag {
|
|
23
|
-
text: string;
|
|
24
|
-
color?: string;
|
|
25
|
-
textColor?: string;
|
|
26
|
-
size?: 's' | 'm';
|
|
27
|
-
}
|
|
28
12
|
export interface NHPopupItemData {
|
|
29
13
|
title: string;
|
|
30
14
|
url: string;
|
|
31
15
|
slug?: string;
|
|
32
16
|
description?: string;
|
|
33
|
-
icon?: string;
|
|
34
17
|
image?: string | null;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
title?: string;
|
|
39
|
-
items: NHPopupItemData[];
|
|
40
|
-
imageSize?: 's' | 'xm' | 'm';
|
|
41
|
-
url?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface NHMediumPopupData {
|
|
44
|
-
groups: NHCategoryGroupData[];
|
|
18
|
+
imageColor?: string;
|
|
19
|
+
imageColorHover?: string;
|
|
20
|
+
target?: string;
|
|
45
21
|
}
|
|
46
|
-
export interface
|
|
22
|
+
export interface NHProductBannerData {
|
|
47
23
|
title: string;
|
|
48
24
|
description: string;
|
|
49
25
|
image: string;
|
|
50
26
|
url: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
title: string;
|
|
54
|
-
description: string;
|
|
55
|
-
image: string;
|
|
27
|
+
background?: string;
|
|
28
|
+
color?: string;
|
|
56
29
|
border?: boolean;
|
|
57
|
-
url: string;
|
|
58
30
|
}
|
|
59
|
-
export interface
|
|
31
|
+
export interface NHProductsPopupSectionBase {
|
|
60
32
|
title: string;
|
|
61
33
|
subtitle: string;
|
|
62
34
|
items?: NHPopupItemData[];
|
|
63
|
-
runCards?: NHRunCardData[];
|
|
64
35
|
}
|
|
36
|
+
export interface NHProductsPopupSectionRun extends NHProductsPopupSectionBase {
|
|
37
|
+
mode: 'run';
|
|
38
|
+
}
|
|
39
|
+
export interface NHProductsPopupSectionScale extends NHProductsPopupSectionBase {
|
|
40
|
+
mode: 'scale';
|
|
41
|
+
banner?: NHProductBannerData;
|
|
42
|
+
}
|
|
43
|
+
export type NHProductsPopupSection = NHProductsPopupSectionRun | NHProductsPopupSectionScale | NHProductsPopupSectionBase;
|
|
65
44
|
export interface NHProductsPopupData {
|
|
45
|
+
primaryColor?: string;
|
|
46
|
+
primaryColorHover?: string;
|
|
66
47
|
sections: NHProductsPopupSection[];
|
|
67
|
-
poweredCard: NHSpecialCardData;
|
|
68
48
|
}
|
|
69
|
-
export interface
|
|
49
|
+
export interface NHDefaultPopupSection {
|
|
70
50
|
title: string;
|
|
71
51
|
subtitle: string;
|
|
72
52
|
items: NHPopupItemData[];
|
|
53
|
+
columns?: number;
|
|
73
54
|
}
|
|
74
|
-
export interface
|
|
75
|
-
sections: NHSolutionsPopupSection[];
|
|
76
|
-
}
|
|
77
|
-
export interface NHWhyPopupGroup {
|
|
78
|
-
title: string;
|
|
79
|
-
items: NHPopupItemData[];
|
|
80
|
-
}
|
|
81
|
-
export interface NHWhyPopupData {
|
|
82
|
-
groups: NHWhyPopupGroup[];
|
|
83
|
-
card: NHSpecialCardData;
|
|
84
|
-
}
|
|
85
|
-
export interface NHBannerData {
|
|
55
|
+
export interface NHStoryCardData {
|
|
86
56
|
title: string;
|
|
87
57
|
description: string;
|
|
88
58
|
image: string;
|
|
89
|
-
icon: string;
|
|
90
59
|
url: string;
|
|
91
60
|
}
|
|
92
61
|
export interface NHEventCardData {
|
|
93
|
-
url: string;
|
|
94
|
-
tag: string;
|
|
95
62
|
title: string;
|
|
96
|
-
|
|
63
|
+
caption: string;
|
|
64
|
+
description: string;
|
|
97
65
|
image: string;
|
|
98
|
-
location: string;
|
|
99
|
-
}
|
|
100
|
-
export interface NHResourcesPopupGroup {
|
|
101
|
-
title: string;
|
|
102
|
-
subtitle: string;
|
|
103
66
|
url: string;
|
|
104
|
-
items: NHPopupItemData[];
|
|
105
|
-
}
|
|
106
|
-
export interface NHResourcesPopupData {
|
|
107
|
-
groups: NHResourcesPopupGroup[];
|
|
108
|
-
banner: NHBannerData;
|
|
109
|
-
events: {
|
|
110
|
-
title: string;
|
|
111
|
-
items: NHEventCardData[];
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export interface NHCompanyPopupSection {
|
|
115
|
-
title: string;
|
|
116
|
-
items: NHPopupItemData[];
|
|
117
|
-
}
|
|
118
|
-
export interface NHCompanyPopupData {
|
|
119
|
-
sections: NHCompanyPopupSection[];
|
|
120
67
|
}
|
|
121
68
|
export interface NHStockData {
|
|
122
69
|
title: string;
|
|
123
|
-
|
|
70
|
+
value: string;
|
|
124
71
|
date: string;
|
|
72
|
+
background?: string;
|
|
125
73
|
}
|
|
126
|
-
export interface
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
74
|
+
export interface NHDefaultPopupData {
|
|
75
|
+
sections: NHDefaultPopupSection[];
|
|
76
|
+
maxWidth?: number;
|
|
77
|
+
right?: {
|
|
78
|
+
title: string;
|
|
79
|
+
stories?: NHStoryCardData[];
|
|
80
|
+
events?: NHEventCardData[];
|
|
81
|
+
stock?: NHStockData;
|
|
82
|
+
};
|
|
132
83
|
}
|
|
133
84
|
export interface NHLoginItemData {
|
|
134
85
|
title: string;
|
|
@@ -137,7 +88,7 @@ export interface NHLoginItemData {
|
|
|
137
88
|
}
|
|
138
89
|
export interface NHLoginPopupData {
|
|
139
90
|
text: string;
|
|
140
|
-
items:
|
|
91
|
+
items: NHPopupItemData[];
|
|
141
92
|
}
|
|
142
93
|
export interface NHNavigationDefaultData {
|
|
143
94
|
title: string;
|
|
@@ -146,35 +97,15 @@ export interface NHNavigationLinkData extends NHNavigationDefaultData {
|
|
|
146
97
|
type: NHNavigationItemType.Link;
|
|
147
98
|
data: LinkProps;
|
|
148
99
|
}
|
|
149
|
-
export interface NHNavigationMediumPopupData extends NHNavigationDefaultData {
|
|
150
|
-
type: NHNavigationItemType.NHMediumPopup;
|
|
151
|
-
data: NHMediumPopupData;
|
|
152
|
-
}
|
|
153
100
|
export interface NHNavigationProductsPopupData extends NHNavigationDefaultData {
|
|
154
101
|
type: NHNavigationItemType.NHProductsPopup;
|
|
155
102
|
data: NHProductsPopupData;
|
|
156
103
|
}
|
|
157
|
-
export interface
|
|
158
|
-
type: NHNavigationItemType.
|
|
159
|
-
data:
|
|
160
|
-
}
|
|
161
|
-
export interface NHNavigationWhyPopupData extends NHNavigationDefaultData {
|
|
162
|
-
type: NHNavigationItemType.NHWhyPopup;
|
|
163
|
-
data: NHWhyPopupData;
|
|
164
|
-
}
|
|
165
|
-
export interface NHNavigationResourcesPopupData extends NHNavigationDefaultData {
|
|
166
|
-
type: NHNavigationItemType.NHResourcesPopup;
|
|
167
|
-
data: NHResourcesPopupData;
|
|
168
|
-
}
|
|
169
|
-
export interface NHNavigationCompanyPopupData extends NHNavigationDefaultData {
|
|
170
|
-
type: NHNavigationItemType.NHCompanyPopup;
|
|
171
|
-
data: NHCompanyPopupData;
|
|
172
|
-
}
|
|
173
|
-
export interface NHNavigationInvestorPopupData extends NHNavigationDefaultData {
|
|
174
|
-
type: NHNavigationItemType.NHInvestorPopup;
|
|
175
|
-
data: NHInvestorPopupData;
|
|
104
|
+
export interface NHNavigationDefaultPopupData extends NHNavigationDefaultData {
|
|
105
|
+
type: NHNavigationItemType.NHDefaultPopup;
|
|
106
|
+
data: NHDefaultPopupData;
|
|
176
107
|
}
|
|
177
|
-
export type NHNavigationItemData = NHNavigationLinkData |
|
|
108
|
+
export type NHNavigationItemData = NHNavigationLinkData | NHNavigationProductsPopupData | NHNavigationDefaultPopupData;
|
|
178
109
|
export interface NHMobileNavigationDefaultData {
|
|
179
110
|
title: string;
|
|
180
111
|
}
|
|
@@ -192,11 +123,11 @@ export interface NHMobileNavigationGroupData extends NHMobileNavigationDefaultDa
|
|
|
192
123
|
}
|
|
193
124
|
export type NHMobileNavigationItemData = NHMobileNavigationLinkData | NHMobileNavigationGroupData;
|
|
194
125
|
export interface NHNavigationData {
|
|
195
|
-
left
|
|
196
|
-
right
|
|
197
|
-
mobile
|
|
198
|
-
login
|
|
199
|
-
logo
|
|
200
|
-
buttons
|
|
126
|
+
left?: NHNavigationItemData[];
|
|
127
|
+
right?: NHNavigationItemData[];
|
|
128
|
+
mobile?: NHMobileNavigationItemData[];
|
|
129
|
+
login?: NHLoginPopupData;
|
|
130
|
+
logo?: NHLogoData;
|
|
131
|
+
buttons?: ButtonProps[];
|
|
201
132
|
}
|
|
202
133
|
export type SetupRouteChangeHandler = (handler: () => void) => void;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
export var NHNavigationItemType;
|
|
2
2
|
(function (NHNavigationItemType) {
|
|
3
|
-
NHNavigationItemType["NHMediumPopup"] = "medium-popup";
|
|
4
3
|
NHNavigationItemType["NHProductsPopup"] = "products-popup";
|
|
5
|
-
NHNavigationItemType["
|
|
6
|
-
NHNavigationItemType["NHWhyPopup"] = "why-popup";
|
|
7
|
-
NHNavigationItemType["NHResourcesPopup"] = "resources-popup";
|
|
8
|
-
NHNavigationItemType["NHCompanyPopup"] = "company-popup";
|
|
9
|
-
NHNavigationItemType["NHInvestorPopup"] = "investor-popup";
|
|
4
|
+
NHNavigationItemType["NHDefaultPopup"] = "default-popup";
|
|
10
5
|
NHNavigationItemType["Link"] = "link";
|
|
11
6
|
})(NHNavigationItemType || (NHNavigationItemType = {}));
|
|
12
|
-
export var NHNavigationTagColor;
|
|
13
|
-
(function (NHNavigationTagColor) {
|
|
14
|
-
NHNavigationTagColor["Green"] = "green";
|
|
15
|
-
NHNavigationTagColor["Yellow"] = "yellow";
|
|
16
|
-
NHNavigationTagColor["Blue"] = "blue";
|
|
17
|
-
})(NHNavigationTagColor || (NHNavigationTagColor = {}));
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
|
2
|
-
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-nh-company-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
|
-
max-width: 900px;
|
|
9
|
-
margin-left: auto;
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-radius: var(--pc-border-radius, 24px);
|
|
12
|
-
scrollbar-width: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.pc-addons-nh-company-popup::-webkit-scrollbar {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.pc-addons-nh-company-popup__container {
|
|
20
|
-
padding: 20px;
|
|
21
|
-
display: flex;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.pc-addons-nh-company-popup__title {
|
|
25
|
-
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
26
|
-
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
27
|
-
padding: 12px;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
color: #9fb1bd;
|
|
30
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NHCompanyPopup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
-
const cn_1 = require("../../../../utils/cn");
|
|
8
|
-
const NHPopupItem_1 = require("../NHPopupItem/NHPopupItem");
|
|
9
|
-
const b = (0, cn_1.block)('nh-company-popup');
|
|
10
|
-
const NHCompanyPopup = ({ sections }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') },
|
|
11
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, sections.map((section, index) => (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { key: section.title, sizes: index === 0
|
|
12
|
-
? { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 4 }
|
|
13
|
-
: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 8 } },
|
|
14
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
15
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
16
|
-
react_1.default.createElement("div", { className: b('title') }, section.title))),
|
|
17
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, section.items.map((item) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: item.title, hover: true }, item, { sizes: index === 0
|
|
18
|
-
? { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12 }
|
|
19
|
-
: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 6 } })))))))))));
|
|
20
|
-
exports.NHCompanyPopup = NHCompanyPopup;
|