@doyourjob/gravity-ui-page-constructor-addons 2.1.25-dev.0 → 2.1.25-dev.1
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/NewHeader.d.ts +2 -2
- package/build/cjs/components/NewHeader/NewHeader.js +7 -7
- package/build/cjs/components/NewHeader/components/{CompanyPopup/CompanyPopup.css → NHCompanyPopup/NHCompanyPopup.css} +4 -4
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{CompanyPopup/CompanyPopup.js → NHCompanyPopup/NHCompanyPopup.js} +6 -6
- package/build/{esm/components/NewHeader/components/InvestorPopup/InvestorPopup.css → cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css} +11 -11
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{InvestorPopup/InvestorPopup.js → NHInvestorPopup/NHInvestorPopup.js} +6 -6
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/{LoginButton/LoginButton.js → NHLoginButton/NHLoginButton.js} +7 -7
- package/build/cjs/components/NewHeader/components/{LoginPopup/LoginPopup.css → NHLoginPopup/NHLoginPopup.css} +6 -6
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{LoginPopup/LoginPopup.js → NHLoginPopup/NHLoginPopup.js} +4 -4
- package/build/cjs/components/NewHeader/components/{MediumPopup/MediumPopup.css → NHMediumPopup/NHMediumPopup.css} +1 -1
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{MediumPopup/MediumPopup.js → NHMediumPopup/NHMediumPopup.js} +6 -6
- package/build/{esm/components/NewHeader/components/MobileNavigation/MobileNavigation.css → cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css} +10 -10
- package/build/cjs/components/NewHeader/components/{MobileNavigation/MobileNavigation.d.ts → NHMobileNavigation/NHMobileNavigation.d.ts} +3 -3
- package/build/cjs/components/NewHeader/components/{MobileNavigation/MobileNavigation.js → NHMobileNavigation/NHMobileNavigation.js} +8 -8
- package/build/cjs/components/NewHeader/components/{MobileNavigationItem/MobileNavigationItem.css → NHMobileNavigationItem/NHMobileNavigationItem.css} +11 -11
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{MobileNavigationItem/MobileNavigationItem.js → NHMobileNavigationItem/NHMobileNavigationItem.js} +5 -5
- package/build/{esm/components/NewHeader/components/MobileNavigationPopup/MobileNavigationPopup.css → cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css} +9 -9
- package/build/cjs/components/NewHeader/components/{MobileNavigationPopup/MobileNavigationPopup.d.ts → NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts} +1 -1
- package/build/cjs/components/NewHeader/components/{MobileNavigationPopup/MobileNavigationPopup.js → NHMobileNavigationPopup/NHMobileNavigationPopup.js} +4 -4
- package/build/cjs/components/NewHeader/components/{Navigation/Navigation.css → NHNavigation/NHNavigation.css} +3 -3
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.js +74 -0
- package/build/cjs/components/NewHeader/components/{NavigationItem/NavigationItem.css → NHNavigationItem/NHNavigationItem.css} +11 -11
- package/build/cjs/components/NewHeader/components/{NavigationItem/NavigationItem.d.ts → NHNavigationItem/NHNavigationItem.d.ts} +3 -3
- package/build/cjs/components/NewHeader/components/{NavigationItem/NavigationItem.js → NHNavigationItem/NHNavigationItem.js} +5 -5
- package/build/cjs/components/NewHeader/components/{NavigationPopup/NavigationPopup.css → NHNavigationPopup/NHNavigationPopup.css} +2 -2
- package/build/cjs/components/NewHeader/components/{NavigationPopup/NavigationPopup.d.ts → NHNavigationPopup/NHNavigationPopup.d.ts} +1 -1
- package/build/cjs/components/NewHeader/components/{NavigationPopup/NavigationPopup.js → NHNavigationPopup/NHNavigationPopup.js} +4 -4
- package/build/cjs/components/NewHeader/components/{PopupItem/PopupItem.css → NHPopupItem/NHPopupItem.css} +21 -21
- package/build/cjs/components/NewHeader/components/{PopupItem/PopupItem.d.ts → NHPopupItem/NHPopupItem.d.ts} +3 -3
- package/build/cjs/components/NewHeader/components/{PopupItem/PopupItem.js → NHPopupItem/NHPopupItem.js} +6 -6
- package/build/{esm/components/NewHeader/components/ProductsPopup/ProductsPopup.css → cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css} +17 -17
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{ProductsPopup/ProductsPopup.js → NHProductsPopup/NHProductsPopup.js} +7 -7
- package/build/{esm/components/NewHeader/components/ResourcesPopup/ResourcesPopup.css → cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css} +28 -28
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{ResourcesPopup/ResourcesPopup.js → NHResourcesPopup/NHResourcesPopup.js} +6 -6
- package/build/{esm/components/NewHeader/components/SolutionsPopup/SolutionsPopup.css → cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css} +8 -8
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{SolutionsPopup/SolutionsPopup.js → NHSolutionsPopup/NHSolutionsPopup.js} +6 -6
- package/build/cjs/components/NewHeader/components/{Tag/Tag.css → NHTag/NHTag.css} +2 -2
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +6 -0
- package/build/cjs/components/NewHeader/components/{Tag/Tag.js → NHTag/NHTag.js} +7 -7
- package/build/{esm/components/NewHeader/components/WhyPopup/WhyPopup.css → cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css} +12 -12
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/{WhyPopup/WhyPopup.js → NHWhyPopup/NHWhyPopup.js} +6 -6
- package/build/cjs/components/NewHeader/models.d.ts +88 -88
- package/build/cjs/components/NewHeader/models.js +18 -18
- package/build/esm/components/NewHeader/NewHeader.d.ts +2 -2
- package/build/esm/components/NewHeader/NewHeader.js +7 -7
- package/build/esm/components/NewHeader/components/{CompanyPopup/CompanyPopup.css → NHCompanyPopup/NHCompanyPopup.css} +4 -4
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{CompanyPopup/CompanyPopup.js → NHCompanyPopup/NHCompanyPopup.js} +5 -5
- package/build/{cjs/components/NewHeader/components/InvestorPopup/InvestorPopup.css → esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css} +11 -11
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{InvestorPopup/InvestorPopup.js → NHInvestorPopup/NHInvestorPopup.js} +5 -5
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/esm/components/NewHeader/components/{LoginButton/LoginButton.js → NHLoginButton/NHLoginButton.js} +5 -5
- package/build/esm/components/NewHeader/components/{LoginPopup/LoginPopup.css → NHLoginPopup/NHLoginPopup.css} +6 -6
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +8 -0
- package/build/esm/components/NewHeader/components/{MediumPopup/MediumPopup.css → NHMediumPopup/NHMediumPopup.css} +1 -1
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{MediumPopup/MediumPopup.js → NHMediumPopup/NHMediumPopup.js} +5 -5
- package/build/{cjs/components/NewHeader/components/MobileNavigation/MobileNavigation.css → esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css} +10 -10
- package/build/esm/components/NewHeader/components/{MobileNavigation/MobileNavigation.d.ts → NHMobileNavigation/NHMobileNavigation.d.ts} +4 -4
- package/build/esm/components/NewHeader/components/{MobileNavigation/MobileNavigation.js → NHMobileNavigation/NHMobileNavigation.js} +7 -7
- package/build/esm/components/NewHeader/components/{MobileNavigationItem/MobileNavigationItem.css → NHMobileNavigationItem/NHMobileNavigationItem.css} +11 -11
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{MobileNavigationItem/MobileNavigationItem.js → NHMobileNavigationItem/NHMobileNavigationItem.js} +4 -4
- package/build/{cjs/components/NewHeader/components/MobileNavigationPopup/MobileNavigationPopup.css → esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css} +9 -9
- package/build/esm/components/NewHeader/components/{MobileNavigationPopup/MobileNavigationPopup.d.ts → NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts} +2 -2
- package/build/esm/components/NewHeader/components/{MobileNavigationPopup/MobileNavigationPopup.js → NHMobileNavigationPopup/NHMobileNavigationPopup.js} +3 -3
- package/build/esm/components/NewHeader/components/{Navigation/Navigation.css → NHNavigation/NHNavigation.css} +3 -3
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.d.ts +11 -0
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.js +70 -0
- package/build/esm/components/NewHeader/components/{NavigationItem/NavigationItem.css → NHNavigationItem/NHNavigationItem.css} +11 -11
- package/build/esm/components/NewHeader/components/{NavigationItem/NavigationItem.d.ts → NHNavigationItem/NHNavigationItem.d.ts} +4 -4
- package/build/esm/components/NewHeader/components/{NavigationItem/NavigationItem.js → NHNavigationItem/NHNavigationItem.js} +5 -5
- package/build/esm/components/NewHeader/components/{NavigationPopup/NavigationPopup.css → NHNavigationPopup/NHNavigationPopup.css} +2 -2
- package/build/esm/components/NewHeader/components/{NavigationPopup/NavigationPopup.d.ts → NHNavigationPopup/NHNavigationPopup.d.ts} +2 -2
- package/build/esm/components/NewHeader/components/{NavigationPopup/NavigationPopup.js → NHNavigationPopup/NHNavigationPopup.js} +3 -3
- package/build/esm/components/NewHeader/components/{PopupItem/PopupItem.css → NHPopupItem/NHPopupItem.css} +21 -21
- package/build/esm/components/NewHeader/components/{PopupItem/PopupItem.d.ts → NHPopupItem/NHPopupItem.d.ts} +4 -4
- package/build/esm/components/NewHeader/components/{PopupItem/PopupItem.js → NHPopupItem/NHPopupItem.js} +5 -5
- package/build/{cjs/components/NewHeader/components/ProductsPopup/ProductsPopup.css → esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css} +17 -17
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{ProductsPopup/ProductsPopup.js → NHProductsPopup/NHProductsPopup.js} +6 -6
- package/build/{cjs/components/NewHeader/components/ResourcesPopup/ResourcesPopup.css → esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css} +28 -28
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{ResourcesPopup/ResourcesPopup.js → NHResourcesPopup/NHResourcesPopup.js} +5 -5
- package/build/{cjs/components/NewHeader/components/SolutionsPopup/SolutionsPopup.css → esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css} +8 -8
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{SolutionsPopup/SolutionsPopup.js → NHSolutionsPopup/NHSolutionsPopup.js} +5 -5
- package/build/esm/components/NewHeader/components/{Tag/Tag.css → NHTag/NHTag.css} +2 -2
- package/build/esm/components/NewHeader/components/NHTag/NHTag.d.ts +7 -0
- package/build/esm/components/NewHeader/components/NHTag/NHTag.js +18 -0
- package/build/{cjs/components/NewHeader/components/WhyPopup/WhyPopup.css → esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css} +12 -12
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/{WhyPopup/WhyPopup.js → NHWhyPopup/NHWhyPopup.js} +5 -5
- package/build/esm/components/NewHeader/models.d.ts +88 -88
- package/build/esm/components/NewHeader/models.js +17 -17
- package/package.json +1 -1
- package/build/cjs/components/NewHeader/components/CompanyPopup/CompanyPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/InvestorPopup/InvestorPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/LoginButton/LoginButton.d.ts +0 -10
- package/build/cjs/components/NewHeader/components/LoginPopup/LoginPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/MediumPopup/MediumPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/MobileNavigationItem/MobileNavigationItem.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/Navigation/Navigation.d.ts +0 -10
- package/build/cjs/components/NewHeader/components/Navigation/Navigation.js +0 -74
- package/build/cjs/components/NewHeader/components/ProductsPopup/ProductsPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/ResourcesPopup/ResourcesPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/SolutionsPopup/SolutionsPopup.d.ts +0 -3
- package/build/cjs/components/NewHeader/components/Tag/Tag.d.ts +0 -6
- package/build/cjs/components/NewHeader/components/WhyPopup/WhyPopup.d.ts +0 -3
- package/build/esm/components/NewHeader/components/CompanyPopup/CompanyPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/InvestorPopup/InvestorPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/LoginButton/LoginButton.d.ts +0 -10
- package/build/esm/components/NewHeader/components/LoginPopup/LoginPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/LoginPopup/LoginPopup.js +0 -8
- package/build/esm/components/NewHeader/components/MediumPopup/MediumPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/MobileNavigationItem/MobileNavigationItem.d.ts +0 -4
- package/build/esm/components/NewHeader/components/Navigation/Navigation.d.ts +0 -11
- package/build/esm/components/NewHeader/components/Navigation/Navigation.js +0 -70
- package/build/esm/components/NewHeader/components/ProductsPopup/ProductsPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/ResourcesPopup/ResourcesPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/SolutionsPopup/SolutionsPopup.d.ts +0 -4
- package/build/esm/components/NewHeader/components/Tag/Tag.d.ts +0 -7
- package/build/esm/components/NewHeader/components/Tag/Tag.js +0 -18
- package/build/esm/components/NewHeader/components/WhyPopup/WhyPopup.d.ts +0 -4
package/build/cjs/components/NewHeader/components/{WhyPopup/WhyPopup.js → NHWhyPopup/NHWhyPopup.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHWhyPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
7
|
const cn_1 = require("../../../../utils/cn");
|
|
8
|
-
const
|
|
9
|
-
const b = (0, cn_1.block)('why-popup');
|
|
10
|
-
const
|
|
8
|
+
const NHPopupItem_1 = require("../NHPopupItem/NHPopupItem");
|
|
9
|
+
const b = (0, cn_1.block)('nh-why-popup');
|
|
10
|
+
const NHWhyPopup = ({ groups, card }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') },
|
|
11
11
|
react_1.default.createElement("div", { className: b('wrap') }, groups.map((group) => (react_1.default.createElement("div", { className: b('group'), key: group.title },
|
|
12
12
|
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
13
13
|
react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
14
14
|
react_1.default.createElement("div", { className: b('title') }, group.title))),
|
|
15
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, group.items.map((item) => (react_1.default.createElement(
|
|
15
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, group.items.map((item) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: item.title }, item, { sizes: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12 } }))))))))),
|
|
16
16
|
card && (react_1.default.createElement("div", { className: b('card') },
|
|
17
17
|
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('card-image'), containerClassName: b('card-container-image'), src: card.image }),
|
|
18
18
|
react_1.default.createElement("div", { className: b('card-wrap') },
|
|
19
19
|
react_1.default.createElement("div", { className: b('card-title') }, card.title),
|
|
20
20
|
react_1.default.createElement("div", { className: b('card-description') }, card.description))))));
|
|
21
|
-
exports.
|
|
21
|
+
exports.NHWhyPopup = NHWhyPopup;
|
|
@@ -1,184 +1,184 @@
|
|
|
1
1
|
import type { ButtonProps, LinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
2
|
-
export declare enum
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
export declare enum NHNavigationItemType {
|
|
3
|
+
NHMediumPopup = "medium-popup",
|
|
4
|
+
NHProductsPopup = "products-popup",
|
|
5
|
+
NHSolutionsPopup = "solutions-popup",
|
|
6
|
+
NHWhyPopup = "why-popup",
|
|
7
|
+
NHResourcesPopup = "resources-popup",
|
|
8
|
+
NHCompanyPopup = "company-popup",
|
|
9
|
+
NHInvestorPopup = "investor-popup",
|
|
10
10
|
Link = "link"
|
|
11
11
|
}
|
|
12
|
-
export declare enum
|
|
12
|
+
export declare enum NHNavigationTagColor {
|
|
13
13
|
Green = "green",
|
|
14
14
|
Yellow = "yellow",
|
|
15
15
|
Blue = "blue"
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface NHLogoData {
|
|
18
18
|
href?: string;
|
|
19
19
|
src?: string;
|
|
20
20
|
alt?: string;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface NHNavigationTag {
|
|
23
23
|
text: string;
|
|
24
24
|
color?: string;
|
|
25
25
|
textColor?: string;
|
|
26
26
|
size?: 's' | 'm';
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface NHPopupItemData {
|
|
29
29
|
title: string;
|
|
30
30
|
url: string;
|
|
31
31
|
slug?: string;
|
|
32
32
|
description?: string;
|
|
33
33
|
icon?: string;
|
|
34
34
|
image?: string | null;
|
|
35
|
-
tag?:
|
|
35
|
+
tag?: NHNavigationTag;
|
|
36
36
|
}
|
|
37
|
-
export interface
|
|
37
|
+
export interface NHCategoryGroupData {
|
|
38
38
|
title?: string;
|
|
39
|
-
items:
|
|
39
|
+
items: NHPopupItemData[];
|
|
40
40
|
imageSize?: 's' | 'xm' | 'm';
|
|
41
41
|
url?: string;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
groups:
|
|
43
|
+
export interface NHMediumPopupData {
|
|
44
|
+
groups: NHCategoryGroupData[];
|
|
45
45
|
}
|
|
46
|
-
export interface
|
|
46
|
+
export interface NHSpecialCardData {
|
|
47
47
|
title: string;
|
|
48
48
|
description: string;
|
|
49
49
|
image: string;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface NHRunCardData {
|
|
52
52
|
title: string;
|
|
53
53
|
description: string;
|
|
54
54
|
image: string;
|
|
55
55
|
border?: boolean;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface NHProductsPopupSection {
|
|
58
58
|
title: string;
|
|
59
59
|
subtitle: string;
|
|
60
|
-
items?:
|
|
61
|
-
runCards?:
|
|
60
|
+
items?: NHPopupItemData[];
|
|
61
|
+
runCards?: NHRunCardData[];
|
|
62
62
|
}
|
|
63
|
-
export interface
|
|
64
|
-
sections:
|
|
65
|
-
poweredCard:
|
|
63
|
+
export interface NHProductsPopupData {
|
|
64
|
+
sections: NHProductsPopupSection[];
|
|
65
|
+
poweredCard: NHSpecialCardData;
|
|
66
66
|
}
|
|
67
|
-
export interface
|
|
67
|
+
export interface NHSolutionsPopupSection {
|
|
68
68
|
title: string;
|
|
69
69
|
subtitle: string;
|
|
70
|
-
items:
|
|
70
|
+
items: NHPopupItemData[];
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
73
|
-
sections:
|
|
72
|
+
export interface NHSolutionsPopupData {
|
|
73
|
+
sections: NHSolutionsPopupSection[];
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface NHWhyPopupGroup {
|
|
76
76
|
title: string;
|
|
77
|
-
items:
|
|
77
|
+
items: NHPopupItemData[];
|
|
78
78
|
}
|
|
79
|
-
export interface
|
|
80
|
-
groups:
|
|
81
|
-
card:
|
|
79
|
+
export interface NHWhyPopupData {
|
|
80
|
+
groups: NHWhyPopupGroup[];
|
|
81
|
+
card: NHSpecialCardData;
|
|
82
82
|
}
|
|
83
|
-
export interface
|
|
83
|
+
export interface NHBannerData {
|
|
84
84
|
title: string;
|
|
85
85
|
description: string;
|
|
86
86
|
image: string;
|
|
87
87
|
icon: string;
|
|
88
88
|
url: string;
|
|
89
89
|
}
|
|
90
|
-
export interface
|
|
90
|
+
export interface NHEventCardData {
|
|
91
91
|
tag: string;
|
|
92
92
|
title: string;
|
|
93
93
|
date: string;
|
|
94
94
|
image: string;
|
|
95
95
|
location: string;
|
|
96
96
|
}
|
|
97
|
-
export interface
|
|
97
|
+
export interface NHResourcesPopupGroup {
|
|
98
98
|
title: string;
|
|
99
99
|
subtitle: string;
|
|
100
100
|
url: string;
|
|
101
|
-
items:
|
|
101
|
+
items: NHPopupItemData[];
|
|
102
102
|
}
|
|
103
|
-
export interface
|
|
104
|
-
groups:
|
|
105
|
-
banner:
|
|
103
|
+
export interface NHResourcesPopupData {
|
|
104
|
+
groups: NHResourcesPopupGroup[];
|
|
105
|
+
banner: NHBannerData;
|
|
106
106
|
events: {
|
|
107
107
|
title: string;
|
|
108
|
-
items:
|
|
108
|
+
items: NHEventCardData[];
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
export interface
|
|
111
|
+
export interface NHCompanyPopupSection {
|
|
112
112
|
title: string;
|
|
113
|
-
items:
|
|
113
|
+
items: NHPopupItemData[];
|
|
114
114
|
}
|
|
115
|
-
export interface
|
|
116
|
-
sections:
|
|
115
|
+
export interface NHCompanyPopupData {
|
|
116
|
+
sections: NHCompanyPopupSection[];
|
|
117
117
|
}
|
|
118
|
-
export interface
|
|
118
|
+
export interface NHStockData {
|
|
119
119
|
title: string;
|
|
120
120
|
price: string;
|
|
121
121
|
date: string;
|
|
122
122
|
}
|
|
123
|
-
export interface
|
|
123
|
+
export interface NHInvestorPopupData {
|
|
124
124
|
title: string;
|
|
125
125
|
subtitle: string;
|
|
126
126
|
url: string;
|
|
127
|
-
items:
|
|
128
|
-
stock:
|
|
127
|
+
items: NHPopupItemData[];
|
|
128
|
+
stock: NHStockData;
|
|
129
129
|
}
|
|
130
|
-
export interface
|
|
130
|
+
export interface NHLoginItemData {
|
|
131
131
|
title: string;
|
|
132
132
|
subtitle: string;
|
|
133
133
|
url?: string;
|
|
134
134
|
}
|
|
135
|
-
export interface
|
|
135
|
+
export interface NHLoginPopupData {
|
|
136
136
|
text: string;
|
|
137
|
-
items:
|
|
137
|
+
items: NHLoginItemData[];
|
|
138
138
|
}
|
|
139
|
-
export interface
|
|
139
|
+
export interface NHNavigationDefaultData {
|
|
140
140
|
title: string;
|
|
141
141
|
}
|
|
142
|
-
export interface
|
|
143
|
-
type:
|
|
142
|
+
export interface NHNavigationLinkData extends NHNavigationDefaultData {
|
|
143
|
+
type: NHNavigationItemType.Link;
|
|
144
144
|
data: LinkProps;
|
|
145
145
|
}
|
|
146
|
-
export interface
|
|
147
|
-
type:
|
|
148
|
-
data:
|
|
146
|
+
export interface NHNavigationMediumPopupData extends NHNavigationDefaultData {
|
|
147
|
+
type: NHNavigationItemType.NHMediumPopup;
|
|
148
|
+
data: NHMediumPopupData;
|
|
149
149
|
}
|
|
150
|
-
export interface
|
|
151
|
-
type:
|
|
152
|
-
data:
|
|
150
|
+
export interface NHNavigationProductsPopupData extends NHNavigationDefaultData {
|
|
151
|
+
type: NHNavigationItemType.NHProductsPopup;
|
|
152
|
+
data: NHProductsPopupData;
|
|
153
153
|
}
|
|
154
|
-
export interface
|
|
155
|
-
type:
|
|
156
|
-
data:
|
|
154
|
+
export interface NHNavigationSolutionsPopupData extends NHNavigationDefaultData {
|
|
155
|
+
type: NHNavigationItemType.NHSolutionsPopup;
|
|
156
|
+
data: NHSolutionsPopupData;
|
|
157
157
|
}
|
|
158
|
-
export interface
|
|
159
|
-
type:
|
|
160
|
-
data:
|
|
158
|
+
export interface NHNavigationWhyPopupData extends NHNavigationDefaultData {
|
|
159
|
+
type: NHNavigationItemType.NHWhyPopup;
|
|
160
|
+
data: NHWhyPopupData;
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
163
|
-
type:
|
|
164
|
-
data:
|
|
162
|
+
export interface NHNavigationResourcesPopupData extends NHNavigationDefaultData {
|
|
163
|
+
type: NHNavigationItemType.NHResourcesPopup;
|
|
164
|
+
data: NHResourcesPopupData;
|
|
165
165
|
}
|
|
166
|
-
export interface
|
|
167
|
-
type:
|
|
168
|
-
data:
|
|
166
|
+
export interface NHNavigationCompanyPopupData extends NHNavigationDefaultData {
|
|
167
|
+
type: NHNavigationItemType.NHCompanyPopup;
|
|
168
|
+
data: NHCompanyPopupData;
|
|
169
169
|
}
|
|
170
|
-
export interface
|
|
171
|
-
type:
|
|
172
|
-
data:
|
|
170
|
+
export interface NHNavigationInvestorPopupData extends NHNavigationDefaultData {
|
|
171
|
+
type: NHNavigationItemType.NHInvestorPopup;
|
|
172
|
+
data: NHInvestorPopupData;
|
|
173
173
|
}
|
|
174
|
-
export type
|
|
175
|
-
export interface
|
|
174
|
+
export type NHNavigationItemData = NHNavigationLinkData | NHNavigationMediumPopupData | NHNavigationProductsPopupData | NHNavigationSolutionsPopupData | NHNavigationWhyPopupData | NHNavigationResourcesPopupData | NHNavigationCompanyPopupData | NHNavigationInvestorPopupData;
|
|
175
|
+
export interface NHMobileNavigationDefaultData {
|
|
176
176
|
title: string;
|
|
177
177
|
}
|
|
178
|
-
export interface
|
|
178
|
+
export interface NHMobileNavigationLinkData extends NHMobileNavigationDefaultData {
|
|
179
179
|
link: LinkProps;
|
|
180
180
|
}
|
|
181
|
-
export interface
|
|
181
|
+
export interface NHMobileNavigationGroupData extends NHMobileNavigationDefaultData {
|
|
182
182
|
data: {
|
|
183
183
|
title?: string;
|
|
184
184
|
items: {
|
|
@@ -187,13 +187,13 @@ export interface MobileNavigationGroupData extends MobileNavigationDefaultData {
|
|
|
187
187
|
}[];
|
|
188
188
|
}[];
|
|
189
189
|
}
|
|
190
|
-
export type
|
|
191
|
-
export interface
|
|
192
|
-
left:
|
|
193
|
-
right:
|
|
194
|
-
mobile:
|
|
195
|
-
login:
|
|
196
|
-
logo:
|
|
190
|
+
export type NHMobileNavigationItemData = NHMobileNavigationLinkData | NHMobileNavigationGroupData;
|
|
191
|
+
export interface NHNavigationData {
|
|
192
|
+
left: NHNavigationItemData[];
|
|
193
|
+
right: NHNavigationItemData[];
|
|
194
|
+
mobile: NHMobileNavigationItemData[];
|
|
195
|
+
login: NHLoginPopupData;
|
|
196
|
+
logo: NHLogoData;
|
|
197
197
|
buttons: ButtonProps[];
|
|
198
198
|
}
|
|
199
199
|
export type SetupRouteChangeHandler = (handler: () => void) => void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})(
|
|
15
|
-
var
|
|
16
|
-
(function (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})(
|
|
3
|
+
exports.NHNavigationTagColor = exports.NHNavigationItemType = void 0;
|
|
4
|
+
var NHNavigationItemType;
|
|
5
|
+
(function (NHNavigationItemType) {
|
|
6
|
+
NHNavigationItemType["NHMediumPopup"] = "medium-popup";
|
|
7
|
+
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";
|
|
13
|
+
NHNavigationItemType["Link"] = "link";
|
|
14
|
+
})(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 = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ClassNameProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
-
import {
|
|
3
|
+
import { NHNavigationData, SetupRouteChangeHandler } from './models';
|
|
4
4
|
import './NewHeader.css';
|
|
5
5
|
export declare const MOBILE_ICON_SIZE = 24;
|
|
6
6
|
export interface NewHeaderProps extends ClassNameProps {
|
|
7
|
-
data:
|
|
7
|
+
data: NHNavigationData;
|
|
8
8
|
renderSearch?: (props: {
|
|
9
9
|
onActiveToggle: (isActive: boolean) => void;
|
|
10
10
|
}) => ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { Button as PCButton, getLinkProps, } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { NHLoginButton } from './components/NHLoginButton/NHLoginButton';
|
|
5
|
+
import { NHMobileNavigation } from './components/NHMobileNavigation/NHMobileNavigation';
|
|
6
|
+
import { NHNavigation } from './components/NHNavigation/NHNavigation';
|
|
7
7
|
import { RouteChangeHandlerContext } from './contexts/route-change';
|
|
8
8
|
import './NewHeader.css';
|
|
9
9
|
const b = block('new-header');
|
|
@@ -63,13 +63,13 @@ export const NewHeader = ({ data, setupRouteChangeHandler, renderSearch, classNa
|
|
|
63
63
|
React.createElement("div", { className: b('left') },
|
|
64
64
|
logo && (React.createElement("a", Object.assign({ href: logo.href, className: b('logo') }, getLinkProps(logo.href || '')), logo.src && (React.createElement("img", { className: b('logo-img'), alt: logo.alt, src: logo.src })))),
|
|
65
65
|
left ? (React.createElement("div", { className: b('navigation') },
|
|
66
|
-
React.createElement(
|
|
66
|
+
React.createElement(NHNavigation, { data: left, headerRef: headerRef }))) : null),
|
|
67
67
|
React.createElement("div", { className: b('right') },
|
|
68
68
|
right ? (React.createElement("div", { className: b('navigation') },
|
|
69
|
-
React.createElement(
|
|
69
|
+
React.createElement(NHNavigation, { data: right, headerRef: headerRef }))) : null,
|
|
70
70
|
React.createElement("div", { className: b('icons-container') }, renderSearch && renderSearch({ onActiveToggle: toggleSearch })),
|
|
71
71
|
showButtonsContainer &&
|
|
72
72
|
(buttons === null || buttons === void 0 ? void 0 : buttons.map((button) => (React.createElement(PCButton, Object.assign({}, button, { size: "l", key: button.text }))))),
|
|
73
|
-
login && React.createElement(
|
|
74
|
-
mobile ? (React.createElement(
|
|
73
|
+
login && React.createElement(NHLoginButton, { data: login, headerRef: headerRef }),
|
|
74
|
+
mobile ? (React.createElement(NHMobileNavigation, { toogleOpen: toggleMobileNavigationPopup, isOpened: isMobileNavigationOpen, isSearchOpen: isSearchMode, data: mobile, buttons: buttons, onMenuScroll: onMenuScroll, popupClassName: b('user-popup') })) : null)))));
|
|
75
75
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-company-popup {
|
|
3
|
+
.pc-addons-nh-company-popup {
|
|
4
4
|
background: var(--g-color-base-float);
|
|
5
5
|
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
6
|
max-height: calc(100vh - 64px - 64px);
|
|
@@ -12,16 +12,16 @@ unpredictable css rules order in build */
|
|
|
12
12
|
scrollbar-width: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.pc-addons-company-popup::-webkit-scrollbar {
|
|
15
|
+
.pc-addons-nh-company-popup::-webkit-scrollbar {
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-addons-company-popup__container {
|
|
19
|
+
.pc-addons-nh-company-popup__container {
|
|
20
20
|
padding: 20px;
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.pc-addons-company-popup__title {
|
|
24
|
+
.pc-addons-nh-company-popup__title {
|
|
25
25
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
26
26
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
27
27
|
padding: 12px;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Col, Grid, GridColumnSize, Row } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
const b = block('company-popup');
|
|
7
|
-
export const
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHCompanyPopup.css';
|
|
6
|
+
const b = block('nh-company-popup');
|
|
7
|
+
export const NHCompanyPopup = ({ sections }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
|
|
8
8
|
React.createElement(Row, null, sections.map((section, index) => (React.createElement(Col, { key: section.title, sizes: index === 0
|
|
9
9
|
? { [GridColumnSize.All]: 12, [GridColumnSize.Md]: 4 }
|
|
10
10
|
: { [GridColumnSize.All]: 12, [GridColumnSize.Md]: 8 } },
|
|
11
11
|
React.createElement(Row, null,
|
|
12
12
|
React.createElement(Col, null,
|
|
13
13
|
React.createElement("div", { className: b('title') }, section.title))),
|
|
14
|
-
React.createElement(Row, null, section.items.map((item) => (React.createElement(
|
|
14
|
+
React.createElement(Row, null, section.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { sizes: index === 0
|
|
15
15
|
? { [GridColumnSize.All]: 12 }
|
|
16
16
|
: { [GridColumnSize.All]: 12, [GridColumnSize.Md]: 6 } })))))))))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-investor-popup {
|
|
3
|
+
.pc-addons-nh-investor-popup {
|
|
4
4
|
background: var(--g-color-base-float);
|
|
5
5
|
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
6
|
max-height: calc(100vh - 64px - 64px);
|
|
@@ -12,16 +12,16 @@ unpredictable css rules order in build */
|
|
|
12
12
|
scrollbar-width: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.pc-addons-investor-popup::-webkit-scrollbar {
|
|
15
|
+
.pc-addons-nh-investor-popup::-webkit-scrollbar {
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-addons-investor-popup__container {
|
|
19
|
+
.pc-addons-nh-investor-popup__container {
|
|
20
20
|
padding: 32px;
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.pc-addons-investor-popup__wrap {
|
|
24
|
+
.pc-addons-nh-investor-popup__wrap {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
gap: 24px;
|
|
@@ -29,21 +29,21 @@ unpredictable css rules order in build */
|
|
|
29
29
|
flex: 1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.pc-addons-investor-popup__title {
|
|
32
|
+
.pc-addons-nh-investor-popup__title {
|
|
33
33
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
34
34
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
35
35
|
font-weight: 600;
|
|
36
36
|
margin-bottom: 8px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.pc-addons-investor-popup__subtitle {
|
|
39
|
+
.pc-addons-nh-investor-popup__subtitle {
|
|
40
40
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
41
41
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
42
42
|
font-weight: 500;
|
|
43
43
|
color: #9fb1bd;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.pc-addons-investor-popup__card {
|
|
46
|
+
.pc-addons-nh-investor-popup__card {
|
|
47
47
|
background-color: #f2f4f5;
|
|
48
48
|
border-radius: 8px;
|
|
49
49
|
width: 268px;
|
|
@@ -53,25 +53,25 @@ unpredictable css rules order in build */
|
|
|
53
53
|
justify-content: space-between;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.pc-addons-investor-popup__card-title {
|
|
56
|
+
.pc-addons-nh-investor-popup__card-title {
|
|
57
57
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
58
58
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
59
59
|
font-weight: 500;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.pc-addons-investor-popup__card-wrap {
|
|
62
|
+
.pc-addons-nh-investor-popup__card-wrap {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
65
65
|
gap: 4px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.pc-addons-investor-popup__card-price {
|
|
68
|
+
.pc-addons-nh-investor-popup__card-price {
|
|
69
69
|
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
70
70
|
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
71
71
|
font-weight: 700;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.pc-addons-investor-popup__card-date {
|
|
74
|
+
.pc-addons-nh-investor-popup__card-date {
|
|
75
75
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
76
76
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
77
77
|
font-weight: 500;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Col, Grid, GridColumnSize, Row, getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
const b = block('investor-popup');
|
|
7
|
-
export const
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHInvestorPopup.css';
|
|
6
|
+
const b = block('nh-investor-popup');
|
|
7
|
+
export const NHInvestorPopup = ({ title, subtitle, url, items, stock }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
|
|
8
8
|
React.createElement("div", { className: b('wrap') },
|
|
9
9
|
React.createElement(Row, null,
|
|
10
10
|
React.createElement(Col, null,
|
|
11
11
|
React.createElement("a", Object.assign({ href: url, className: b('title') }, getLinkProps(url)), title),
|
|
12
12
|
React.createElement("div", { className: b('subtitle') }, subtitle))),
|
|
13
|
-
React.createElement(Row, null, items.map((item) => (React.createElement(
|
|
13
|
+
React.createElement(Row, null, items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { sizes: { [GridColumnSize.All]: 12, [GridColumnSize.Md]: 6 } })))))),
|
|
14
14
|
stock && (React.createElement("div", { className: b('card') },
|
|
15
15
|
React.createElement("div", { className: b('card-title') }, stock.title),
|
|
16
16
|
React.createElement("div", { className: b('card-wrap') },
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NHLoginPopupData, SetupRouteChangeHandler } from '../../models';
|
|
4
|
+
interface LoginButtonProps {
|
|
5
|
+
data: NHLoginPopupData;
|
|
6
|
+
headerRef?: RefObject<HTMLDivElement>;
|
|
7
|
+
setupRouteChangeHandler?: SetupRouteChangeHandler;
|
|
8
|
+
}
|
|
9
|
+
export declare const NHLoginButton: ({ data, headerRef, setupRouteChangeHandler }: LoginButtonProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { SWITCH_MENU_TAB_TIMEOUT } from '../../constants';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export const
|
|
3
|
+
import { NHLoginPopup } from '../NHLoginPopup/NHLoginPopup';
|
|
4
|
+
import { NHNavigationPopup } from '../NHNavigationPopup/NHNavigationPopup';
|
|
5
|
+
export const NHLoginButton = ({ data, headerRef, setupRouteChangeHandler }) => {
|
|
6
6
|
const [isActive, setIsActive] = useState(false);
|
|
7
7
|
const [pretendentActiveTab, setPretendentAciveTab] = useState(false);
|
|
8
8
|
const [previouslyFocusedElement, setPreviouslyFocusedElement] = useState(null);
|
|
@@ -36,6 +36,6 @@ export const LoginButton = ({ data, headerRef, setupRouteChangeHandler }) => {
|
|
|
36
36
|
}), [handleMouseLeave, setupRouteChangeHandler]);
|
|
37
37
|
return (React.createElement("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
38
38
|
data.text,
|
|
39
|
-
isActive && (React.createElement(
|
|
40
|
-
React.createElement(
|
|
39
|
+
isActive && (React.createElement(NHNavigationPopup, { headerRef: headerRef },
|
|
40
|
+
React.createElement(NHLoginPopup, Object.assign({}, data))))));
|
|
41
41
|
};
|