@doyourjob/gravity-ui-page-constructor-addons 2.1.31 → 2.1.33
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 +167 -0
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +63 -0
- 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/NHPopupItem.css +29 -3
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.js +5 -3
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
- package/build/cjs/components/NewHeader/models.d.ts +31 -111
- package/build/cjs/components/NewHeader/models.js +2 -13
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +167 -0
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +59 -0
- 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/NHPopupItem.css +29 -3
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.js +5 -3
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
- package/build/esm/components/NewHeader/models.d.ts +31 -111
- package/build/esm/components/NewHeader/models.js +1 -12
- package/package.json +2 -2
- 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 -18
- 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 -13
- 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 -17
- 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 -14
- 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 -9
- 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 -13
- 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
|
@@ -6,11 +6,13 @@ import { ArrowRight } from './ArrowRight';
|
|
|
6
6
|
import './NHPopupItem.css';
|
|
7
7
|
const b = block('nh-navigation-popup-item');
|
|
8
8
|
export const NHPopupItem = (props) => {
|
|
9
|
-
const { url, target, title, description, image, imageColor, imageColorHover, column } = props;
|
|
9
|
+
const { url, target, title, description, image, imageMobile, imageColor, imageColorHover, column, } = props;
|
|
10
10
|
const styleImageContainer = useMemo(() => (Object.assign(Object.assign({}, (imageColor ? { '--nh-popup-item-color': imageColor } : {})), (imageColorHover ? { '--nh-popup-item-color-hover': imageColorHover } : {}))), [imageColor, imageColorHover]);
|
|
11
|
+
const hasImage = image || imageMobile;
|
|
11
12
|
return (React.createElement("a", Object.assign({ className: b({ disable: !url, column }), href: url }, getLinkProps(url || '', undefined, target)),
|
|
12
|
-
|
|
13
|
-
React.createElement(Image, { className: b('image'), src: image }))
|
|
13
|
+
hasImage && (React.createElement("div", { className: b('image-container', { 'no-bg': !imageColor }), style: styleImageContainer },
|
|
14
|
+
image && (React.createElement(Image, { className: b('image', { desktop: Boolean(imageMobile) }), src: image })),
|
|
15
|
+
imageMobile && (React.createElement(Image, { className: b('image', { mobile: true }), src: imageMobile })))),
|
|
14
16
|
React.createElement("div", { className: b('container') },
|
|
15
17
|
React.createElement("div", { className: b('title') },
|
|
16
18
|
title,
|
|
@@ -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
|
|
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], {
|
|
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, {
|
|
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, {
|
|
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
|
|
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
|
|
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 },
|
|
@@ -1,53 +1,24 @@
|
|
|
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
17
|
image?: string | null;
|
|
18
|
+
imageMobile?: string | null;
|
|
34
19
|
imageColor?: string;
|
|
35
20
|
imageColorHover?: string;
|
|
36
|
-
|
|
37
|
-
export interface NHCategoryGroupData {
|
|
38
|
-
title?: string;
|
|
39
|
-
items: NHPopupItemData[];
|
|
40
|
-
imageSize?: 's' | 'xm' | 'm';
|
|
41
|
-
url?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface NHMediumPopupData {
|
|
44
|
-
groups: NHCategoryGroupData[];
|
|
45
|
-
}
|
|
46
|
-
export interface NHBannerData {
|
|
47
|
-
title: string;
|
|
48
|
-
description: string;
|
|
49
|
-
image: string;
|
|
50
|
-
url: string;
|
|
21
|
+
target?: string;
|
|
51
22
|
}
|
|
52
23
|
export interface NHProductBannerData {
|
|
53
24
|
title: string;
|
|
@@ -70,75 +41,44 @@ export interface NHProductsPopupSectionScale extends NHProductsPopupSectionBase
|
|
|
70
41
|
mode: 'scale';
|
|
71
42
|
banner?: NHProductBannerData;
|
|
72
43
|
}
|
|
44
|
+
export type NHProductsPopupSection = NHProductsPopupSectionRun | NHProductsPopupSectionScale | NHProductsPopupSectionBase;
|
|
73
45
|
export interface NHProductsPopupData {
|
|
74
46
|
primaryColor?: string;
|
|
75
47
|
primaryColorHover?: string;
|
|
76
|
-
sections:
|
|
48
|
+
sections: NHProductsPopupSection[];
|
|
77
49
|
}
|
|
78
|
-
export interface
|
|
50
|
+
export interface NHDefaultPopupSection {
|
|
79
51
|
title: string;
|
|
80
52
|
subtitle: string;
|
|
81
53
|
items: NHPopupItemData[];
|
|
54
|
+
columns?: number;
|
|
82
55
|
}
|
|
83
|
-
export interface
|
|
84
|
-
sections: NHSolutionsPopupSection[];
|
|
85
|
-
}
|
|
86
|
-
export interface NHWhyPopupGroup {
|
|
87
|
-
title: string;
|
|
88
|
-
items: NHPopupItemData[];
|
|
89
|
-
}
|
|
90
|
-
export interface NHWhyPopupData {
|
|
91
|
-
groups: NHWhyPopupGroup[];
|
|
92
|
-
card: NHBannerData;
|
|
93
|
-
}
|
|
94
|
-
export interface NHBannerData {
|
|
56
|
+
export interface NHStoryCardData {
|
|
95
57
|
title: string;
|
|
96
58
|
description: string;
|
|
97
59
|
image: string;
|
|
98
|
-
icon: string;
|
|
99
60
|
url: string;
|
|
100
61
|
}
|
|
101
62
|
export interface NHEventCardData {
|
|
102
|
-
url: string;
|
|
103
|
-
tag: string;
|
|
104
63
|
title: string;
|
|
105
|
-
|
|
64
|
+
caption: string;
|
|
65
|
+
description: string;
|
|
106
66
|
image: string;
|
|
107
|
-
location: string;
|
|
108
|
-
}
|
|
109
|
-
export interface NHResourcesPopupGroup {
|
|
110
|
-
title: string;
|
|
111
|
-
subtitle: string;
|
|
112
67
|
url: string;
|
|
113
|
-
items: NHPopupItemData[];
|
|
114
68
|
}
|
|
115
|
-
export interface
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
69
|
+
export interface NHDefaultPopupData {
|
|
70
|
+
sections: NHDefaultPopupSection[];
|
|
71
|
+
maxWidth?: number;
|
|
72
|
+
primaryColor?: string;
|
|
73
|
+
primaryColorHover?: string;
|
|
74
|
+
right?: {
|
|
119
75
|
title: string;
|
|
120
|
-
|
|
76
|
+
stories?: NHStoryCardData[];
|
|
77
|
+
events?: NHEventCardData[];
|
|
78
|
+
stock?: boolean;
|
|
79
|
+
stockImage?: string;
|
|
121
80
|
};
|
|
122
81
|
}
|
|
123
|
-
export interface NHCompanyPopupSection {
|
|
124
|
-
title: string;
|
|
125
|
-
items: NHPopupItemData[];
|
|
126
|
-
}
|
|
127
|
-
export interface NHCompanyPopupData {
|
|
128
|
-
sections: NHCompanyPopupSection[];
|
|
129
|
-
}
|
|
130
|
-
export interface NHStockData {
|
|
131
|
-
title: string;
|
|
132
|
-
price: string;
|
|
133
|
-
date: string;
|
|
134
|
-
}
|
|
135
|
-
export interface NHInvestorPopupData {
|
|
136
|
-
title: string;
|
|
137
|
-
subtitle: string;
|
|
138
|
-
url: string;
|
|
139
|
-
items: NHPopupItemData[];
|
|
140
|
-
stock: NHStockData;
|
|
141
|
-
}
|
|
142
82
|
export interface NHLoginItemData {
|
|
143
83
|
title: string;
|
|
144
84
|
subtitle: string;
|
|
@@ -146,7 +86,7 @@ export interface NHLoginItemData {
|
|
|
146
86
|
}
|
|
147
87
|
export interface NHLoginPopupData {
|
|
148
88
|
text: string;
|
|
149
|
-
items:
|
|
89
|
+
items: NHPopupItemData[];
|
|
150
90
|
}
|
|
151
91
|
export interface NHNavigationDefaultData {
|
|
152
92
|
title: string;
|
|
@@ -155,35 +95,15 @@ export interface NHNavigationLinkData extends NHNavigationDefaultData {
|
|
|
155
95
|
type: NHNavigationItemType.Link;
|
|
156
96
|
data: LinkProps;
|
|
157
97
|
}
|
|
158
|
-
export interface NHNavigationMediumPopupData extends NHNavigationDefaultData {
|
|
159
|
-
type: NHNavigationItemType.NHMediumPopup;
|
|
160
|
-
data: NHMediumPopupData;
|
|
161
|
-
}
|
|
162
98
|
export interface NHNavigationProductsPopupData extends NHNavigationDefaultData {
|
|
163
99
|
type: NHNavigationItemType.NHProductsPopup;
|
|
164
100
|
data: NHProductsPopupData;
|
|
165
101
|
}
|
|
166
|
-
export interface
|
|
167
|
-
type: NHNavigationItemType.
|
|
168
|
-
data:
|
|
169
|
-
}
|
|
170
|
-
export interface NHNavigationWhyPopupData extends NHNavigationDefaultData {
|
|
171
|
-
type: NHNavigationItemType.NHWhyPopup;
|
|
172
|
-
data: NHWhyPopupData;
|
|
173
|
-
}
|
|
174
|
-
export interface NHNavigationResourcesPopupData extends NHNavigationDefaultData {
|
|
175
|
-
type: NHNavigationItemType.NHResourcesPopup;
|
|
176
|
-
data: NHResourcesPopupData;
|
|
177
|
-
}
|
|
178
|
-
export interface NHNavigationCompanyPopupData extends NHNavigationDefaultData {
|
|
179
|
-
type: NHNavigationItemType.NHCompanyPopup;
|
|
180
|
-
data: NHCompanyPopupData;
|
|
181
|
-
}
|
|
182
|
-
export interface NHNavigationInvestorPopupData extends NHNavigationDefaultData {
|
|
183
|
-
type: NHNavigationItemType.NHInvestorPopup;
|
|
184
|
-
data: NHInvestorPopupData;
|
|
102
|
+
export interface NHNavigationDefaultPopupData extends NHNavigationDefaultData {
|
|
103
|
+
type: NHNavigationItemType.NHDefaultPopup;
|
|
104
|
+
data: NHDefaultPopupData;
|
|
185
105
|
}
|
|
186
|
-
export type NHNavigationItemData = NHNavigationLinkData |
|
|
106
|
+
export type NHNavigationItemData = NHNavigationLinkData | NHNavigationProductsPopupData | NHNavigationDefaultPopupData;
|
|
187
107
|
export interface NHMobileNavigationDefaultData {
|
|
188
108
|
title: string;
|
|
189
109
|
}
|
|
@@ -201,11 +121,11 @@ export interface NHMobileNavigationGroupData extends NHMobileNavigationDefaultDa
|
|
|
201
121
|
}
|
|
202
122
|
export type NHMobileNavigationItemData = NHMobileNavigationLinkData | NHMobileNavigationGroupData;
|
|
203
123
|
export interface NHNavigationData {
|
|
204
|
-
left
|
|
205
|
-
right
|
|
206
|
-
mobile
|
|
207
|
-
login
|
|
208
|
-
logo
|
|
209
|
-
buttons
|
|
124
|
+
left?: NHNavigationItemData[];
|
|
125
|
+
right?: NHNavigationItemData[];
|
|
126
|
+
mobile?: NHMobileNavigationItemData[];
|
|
127
|
+
login?: NHLoginPopupData;
|
|
128
|
+
logo?: NHLogoData;
|
|
129
|
+
buttons?: ButtonProps[];
|
|
210
130
|
}
|
|
211
131
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doyourjob/gravity-ui-page-constructor-addons",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.33",
|
|
4
4
|
"description": "Components and plugins for @doyourjob/gravity-ui-page-constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-transition-group": "^4.4.5"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@doyourjob/gravity-ui-page-constructor": "^5.31.
|
|
75
|
+
"@doyourjob/gravity-ui-page-constructor": "^5.31.256",
|
|
76
76
|
"@gravity-ui/uikit": "^6.23.1",
|
|
77
77
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
78
78
|
},
|
|
@@ -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,18 +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)))))))))));
|
|
18
|
-
exports.NHCompanyPopup = NHCompanyPopup;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
|
2
|
-
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-nh-investor-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-investor-popup::-webkit-scrollbar {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.pc-addons-nh-investor-popup__container {
|
|
20
|
-
padding: 32px;
|
|
21
|
-
display: flex;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.pc-addons-nh-investor-popup__wrap {
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
gap: 24px;
|
|
28
|
-
padding: 0;
|
|
29
|
-
flex: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pc-addons-nh-investor-popup__title {
|
|
33
|
-
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
34
|
-
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
35
|
-
color: inherit;
|
|
36
|
-
text-decoration: none;
|
|
37
|
-
display: flex;
|
|
38
|
-
font-weight: 600;
|
|
39
|
-
margin-bottom: 8px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.pc-addons-nh-investor-popup__title:hover {
|
|
43
|
-
color: var(--g-color-text-link-hover);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.pc-addons-nh-investor-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;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.pc-addons-nh-investor-popup__card {
|
|
54
|
-
background-color: #f2f4f5;
|
|
55
|
-
border-radius: 8px;
|
|
56
|
-
width: 268px;
|
|
57
|
-
padding: 20px;
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.pc-addons-nh-investor-popup__card-title {
|
|
64
|
-
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
65
|
-
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.pc-addons-nh-investor-popup__card-wrap {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
gap: 4px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.pc-addons-nh-investor-popup__card-price {
|
|
76
|
-
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
77
|
-
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
78
|
-
font-weight: 700;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.pc-addons-nh-investor-popup__card-date {
|
|
82
|
-
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
83
|
-
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
84
|
-
font-weight: 500;
|
|
85
|
-
color: #9fb1bd;
|
|
86
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NHInvestorPopup = 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-investor-popup');
|
|
10
|
-
const NHInvestorPopup = ({ title, subtitle, url, items, stock }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') },
|
|
11
|
-
react_1.default.createElement("div", { className: b('wrap') },
|
|
12
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
13
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
14
|
-
react_1.default.createElement("a", Object.assign({ href: url, className: b('title') }, (0, gravity_ui_page_constructor_1.getLinkProps)(url)), title),
|
|
15
|
-
react_1.default.createElement("div", { className: b('subtitle') }, subtitle))),
|
|
16
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, items.map((item) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: item.title, hover: true }, item)))))),
|
|
17
|
-
stock && (react_1.default.createElement("div", { className: b('card') },
|
|
18
|
-
react_1.default.createElement("div", { className: b('card-title') }, stock.title),
|
|
19
|
-
react_1.default.createElement("div", { className: b('card-wrap') },
|
|
20
|
-
react_1.default.createElement("div", { className: b('card-price') }, stock.price),
|
|
21
|
-
react_1.default.createElement("div", { className: b('card-date') }, stock.date))))));
|
|
22
|
-
exports.NHInvestorPopup = NHInvestorPopup;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NHMediumPopup = 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-medium-popup');
|
|
10
|
-
const NHMediumPopup = ({ groups }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, null,
|
|
11
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
12
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b() }, groups.map((dataItem) => dataItem.items.map((item) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({}, item, { key: item.title, hover: true })))))))));
|
|
13
|
-
exports.NHMediumPopup = NHMediumPopup;
|