@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
|
@@ -1,9 +1,9 @@
|
|
|
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
|
export declare const MOBILE_ICON_SIZE = 24;
|
|
5
5
|
export interface NewHeaderProps extends ClassNameProps {
|
|
6
|
-
data:
|
|
6
|
+
data: NHNavigationData;
|
|
7
7
|
renderSearch?: (props: {
|
|
8
8
|
onActiveToggle: (isActive: boolean) => void;
|
|
9
9
|
}) => ReactNode;
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(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
|
|
10
|
-
const
|
|
8
|
+
const NHLoginButton_1 = require("./components/NHLoginButton/NHLoginButton");
|
|
9
|
+
const NHMobileNavigation_1 = require("./components/NHMobileNavigation/NHMobileNavigation");
|
|
10
|
+
const NHNavigation_1 = require("./components/NHNavigation/NHNavigation");
|
|
11
11
|
const route_change_1 = require("./contexts/route-change");
|
|
12
12
|
const b = (0, cn_1.block)('new-header');
|
|
13
13
|
exports.MOBILE_ICON_SIZE = 24;
|
|
@@ -66,14 +66,14 @@ const NewHeader = ({ data, setupRouteChangeHandler, renderSearch, className, scr
|
|
|
66
66
|
react_1.default.createElement("div", { className: b('left') },
|
|
67
67
|
logo && (react_1.default.createElement("a", Object.assign({ href: logo.href, className: b('logo') }, (0, gravity_ui_page_constructor_1.getLinkProps)(logo.href || '')), logo.src && (react_1.default.createElement("img", { className: b('logo-img'), alt: logo.alt, src: logo.src })))),
|
|
68
68
|
left ? (react_1.default.createElement("div", { className: b('navigation') },
|
|
69
|
-
react_1.default.createElement(
|
|
69
|
+
react_1.default.createElement(NHNavigation_1.NHNavigation, { data: left, headerRef: headerRef }))) : null),
|
|
70
70
|
react_1.default.createElement("div", { className: b('right') },
|
|
71
71
|
right ? (react_1.default.createElement("div", { className: b('navigation') },
|
|
72
|
-
react_1.default.createElement(
|
|
72
|
+
react_1.default.createElement(NHNavigation_1.NHNavigation, { data: right, headerRef: headerRef }))) : null,
|
|
73
73
|
react_1.default.createElement("div", { className: b('icons-container') }, renderSearch && renderSearch({ onActiveToggle: toggleSearch })),
|
|
74
74
|
showButtonsContainer &&
|
|
75
75
|
(buttons === null || buttons === void 0 ? void 0 : buttons.map((button) => (react_1.default.createElement(gravity_ui_page_constructor_1.Button, Object.assign({}, button, { size: "l", key: button.text }))))),
|
|
76
|
-
login && react_1.default.createElement(
|
|
77
|
-
mobile ? (react_1.default.createElement(
|
|
76
|
+
login && react_1.default.createElement(NHLoginButton_1.NHLoginButton, { data: login, headerRef: headerRef }),
|
|
77
|
+
mobile ? (react_1.default.createElement(NHMobileNavigation_1.NHMobileNavigation, { toogleOpen: toggleMobileNavigationPopup, isOpened: isMobileNavigationOpen, isSearchOpen: isSearchMode, data: mobile, buttons: buttons, onMenuScroll: onMenuScroll, popupClassName: b('user-popup') })) : null)))));
|
|
78
78
|
};
|
|
79
79
|
exports.NewHeader = NewHeader;
|
|
@@ -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,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHCompanyPopup = 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)('company-popup');
|
|
10
|
-
const
|
|
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
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
12
|
? { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 4 }
|
|
13
13
|
: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 8 } },
|
|
14
14
|
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
15
15
|
react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
16
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(
|
|
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 }, item, { sizes: index === 0
|
|
18
18
|
? { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12 }
|
|
19
19
|
: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 6 } })))))))))));
|
|
20
|
-
exports.
|
|
20
|
+
exports.NHCompanyPopup = NHCompanyPopup;
|
|
@@ -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,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHInvestorPopup = 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)('investor-popup');
|
|
10
|
-
const
|
|
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
11
|
react_1.default.createElement("div", { className: b('wrap') },
|
|
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("a", Object.assign({ href: url, className: b('title') }, (0, gravity_ui_page_constructor_1.getLinkProps)(url)), title),
|
|
15
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(
|
|
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 }, item, { sizes: { [gravity_ui_page_constructor_1.GridColumnSize.All]: 12, [gravity_ui_page_constructor_1.GridColumnSize.Md]: 6 } })))))),
|
|
17
17
|
stock && (react_1.default.createElement("div", { className: b('card') },
|
|
18
18
|
react_1.default.createElement("div", { className: b('card-title') }, stock.title),
|
|
19
19
|
react_1.default.createElement("div", { className: b('card-wrap') },
|
|
20
20
|
react_1.default.createElement("div", { className: b('card-price') }, stock.price),
|
|
21
21
|
react_1.default.createElement("div", { className: b('card-date') }, stock.date))))));
|
|
22
|
-
exports.
|
|
22
|
+
exports.NHInvestorPopup = NHInvestorPopup;
|
|
@@ -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,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHLoginButton = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
7
|
+
const NHLoginPopup_1 = require("../NHLoginPopup/NHLoginPopup");
|
|
8
|
+
const NHNavigationPopup_1 = require("../NHNavigationPopup/NHNavigationPopup");
|
|
9
|
+
const NHLoginButton = ({ data, headerRef, setupRouteChangeHandler }) => {
|
|
10
10
|
const [isActive, setIsActive] = (0, react_1.useState)(false);
|
|
11
11
|
const [pretendentActiveTab, setPretendentAciveTab] = (0, react_1.useState)(false);
|
|
12
12
|
const [previouslyFocusedElement, setPreviouslyFocusedElement] = (0, react_1.useState)(null);
|
|
@@ -40,7 +40,7 @@ const LoginButton = ({ data, headerRef, setupRouteChangeHandler }) => {
|
|
|
40
40
|
}), [handleMouseLeave, setupRouteChangeHandler]);
|
|
41
41
|
return (react_1.default.createElement("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
42
42
|
data.text,
|
|
43
|
-
isActive && (react_1.default.createElement(
|
|
44
|
-
react_1.default.createElement(
|
|
43
|
+
isActive && (react_1.default.createElement(NHNavigationPopup_1.NHNavigationPopup, { headerRef: headerRef },
|
|
44
|
+
react_1.default.createElement(NHLoginPopup_1.NHLoginPopup, Object.assign({}, data))))));
|
|
45
45
|
};
|
|
46
|
-
exports.
|
|
46
|
+
exports.NHLoginButton = NHLoginButton;
|
|
@@ -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-login-popup {
|
|
3
|
+
.pc-addons-nh-login-popup {
|
|
4
4
|
border-radius: 16px;
|
|
5
5
|
background: var(--g-color-base-float);
|
|
6
6
|
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
@@ -12,18 +12,18 @@ unpredictable css rules order in build */
|
|
|
12
12
|
scrollbar-width: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.pc-addons-login-popup::-webkit-scrollbar {
|
|
15
|
+
.pc-addons-nh-login-popup::-webkit-scrollbar {
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-addons-login-popup__container {
|
|
19
|
+
.pc-addons-nh-login-popup__container {
|
|
20
20
|
padding: 8px;
|
|
21
21
|
gap: 8px;
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.pc-addons-login-popup__item {
|
|
26
|
+
.pc-addons-nh-login-popup__item {
|
|
27
27
|
padding: 8px;
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
@@ -31,13 +31,13 @@ unpredictable css rules order in build */
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.pc-addons-login-popup__title {
|
|
34
|
+
.pc-addons-nh-login-popup__title {
|
|
35
35
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
36
36
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
37
37
|
font-weight: 500;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.pc-addons-login-popup__subtitle {
|
|
40
|
+
.pc-addons-nh-login-popup__subtitle {
|
|
41
41
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
42
42
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
43
43
|
font-weight: 500;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHLoginPopup = 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 b = (0, cn_1.block)('login-popup');
|
|
9
|
-
const
|
|
8
|
+
const b = (0, cn_1.block)('nh-login-popup');
|
|
9
|
+
const NHLoginPopup = ({ items }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') }, items.map((item) => (react_1.default.createElement("a", Object.assign({ href: item.url, className: b('item'), key: item.title }, (0, gravity_ui_page_constructor_1.getLinkProps)(item.url || '')),
|
|
10
10
|
react_1.default.createElement("div", { className: b('title') }, item.title),
|
|
11
11
|
react_1.default.createElement("div", { className: b('subtitle') }, item.subtitle))))));
|
|
12
|
-
exports.
|
|
12
|
+
exports.NHLoginPopup = NHLoginPopup;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHMediumPopup = 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)('medium-popup');
|
|
10
|
-
const
|
|
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
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(
|
|
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, imageSize: dataItem.imageSize, sizes: {
|
|
13
13
|
[gravity_ui_page_constructor_1.GridColumnSize.Xl]: 3,
|
|
14
14
|
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
15
15
|
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
16
16
|
} })))))))));
|
|
17
|
-
exports.
|
|
17
|
+
exports.NHMediumPopup = NHMediumPopup;
|
|
@@ -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-mobile-navigation {
|
|
3
|
+
.pc-addons-nh-mobile-navigation {
|
|
4
4
|
margin: 0;
|
|
5
5
|
padding: 0;
|
|
6
6
|
list-style: none;
|
|
@@ -8,40 +8,40 @@ unpredictable css rules order in build */
|
|
|
8
8
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pc-addons-mobile-navigation__icon {
|
|
11
|
+
.pc-addons-nh-mobile-navigation__icon {
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.pc-addons-mobile-navigation__icon:hover:before {
|
|
15
|
+
.pc-addons-nh-mobile-navigation__icon:hover:before {
|
|
16
16
|
background: none;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-addons-mobile-navigation__icon:hover .pc-addons-mobile-navigation__icon {
|
|
19
|
+
.pc-addons-nh-mobile-navigation__icon:hover .pc-addons-nh-mobile-navigation__icon {
|
|
20
20
|
color: var(--g-color-text-complementary);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.pc-addons-mobile-navigation__icon-icon {
|
|
23
|
+
.pc-addons-nh-mobile-navigation__icon-icon {
|
|
24
24
|
position: relative;
|
|
25
25
|
top: 3px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.pc-addons-mobile-navigation__icon_hidden {
|
|
28
|
+
.pc-addons-nh-mobile-navigation__icon_hidden {
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.pc-addons-mobile-navigation__user {
|
|
32
|
+
.pc-addons-nh-mobile-navigation__user {
|
|
33
33
|
margin-top: 24px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.pc-addons-mobile-navigation__buttons {
|
|
36
|
+
.pc-addons-nh-mobile-navigation__buttons {
|
|
37
37
|
margin-top: 8px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@media (max-width: 769px) {
|
|
41
|
-
.pc-addons-mobile-navigation__icon {
|
|
41
|
+
.pc-addons-nh-mobile-navigation__icon {
|
|
42
42
|
display: block;
|
|
43
43
|
}
|
|
44
|
-
.pc-addons-mobile-navigation__icon_hidden {
|
|
44
|
+
.pc-addons-nh-mobile-navigation__icon_hidden {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ButtonProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
-
import {
|
|
3
|
+
import { NHMobileNavigationItemData } from '../../models';
|
|
4
4
|
interface MobileNavigationProps {
|
|
5
5
|
isOpened: boolean;
|
|
6
6
|
toogleOpen: (isOpened: boolean) => void;
|
|
7
7
|
isSearchOpen: boolean;
|
|
8
|
-
data:
|
|
8
|
+
data: NHMobileNavigationItemData[];
|
|
9
9
|
onMenuScroll: (scrollTop: number) => void;
|
|
10
10
|
popupClassName?: string;
|
|
11
11
|
buttons?: ButtonProps[];
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const NHMobileNavigation: ({ isOpened, toogleOpen, isSearchOpen, data, buttons, onMenuScroll, }: MobileNavigationProps) => React.JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHMobileNavigation = 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 icons_1 = require("@gravity-ui/icons");
|
|
8
8
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
9
9
|
const cn_1 = require("../../../../utils/cn");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const b = (0, cn_1.block)('mobile-navigation');
|
|
13
|
-
const
|
|
10
|
+
const NHMobileNavigationItem_1 = require("../NHMobileNavigationItem/NHMobileNavigationItem");
|
|
11
|
+
const NHMobileNavigationPopup_1 = require("../NHMobileNavigationPopup/NHMobileNavigationPopup");
|
|
12
|
+
const b = (0, cn_1.block)('nh-mobile-navigation');
|
|
13
|
+
const NHMobileNavigation = ({ isOpened, toogleOpen, isSearchOpen, data, buttons, onMenuScroll, }) => (react_1.default.createElement("div", { className: b() },
|
|
14
14
|
react_1.default.createElement(uikit_1.Button, { view: "flat", size: "l", className: b('icon', { hidden: isSearchOpen }), onClick: (e) => {
|
|
15
15
|
e.stopPropagation();
|
|
16
16
|
toogleOpen(!isOpened);
|
|
17
17
|
} },
|
|
18
18
|
react_1.default.createElement(uikit_1.Icon, { data: isOpened ? icons_1.Xmark : icons_1.Bars, size: 24 })),
|
|
19
|
-
react_1.default.createElement(
|
|
19
|
+
react_1.default.createElement(NHMobileNavigationPopup_1.NHMobileNavigationPopup, { isOpened: isOpened, onClose: () => toogleOpen(false), onMenuScroll: onMenuScroll },
|
|
20
20
|
react_1.default.createElement("nav", null,
|
|
21
21
|
react_1.default.createElement("ul", { className: b() }, data.map((item) => (react_1.default.createElement("li", { className: b(), key: item.title },
|
|
22
|
-
react_1.default.createElement(
|
|
22
|
+
react_1.default.createElement(NHMobileNavigationItem_1.NHMobileNavigationItem, Object.assign({}, item)))))),
|
|
23
23
|
buttons &&
|
|
24
24
|
(buttons === null || buttons === void 0 ? void 0 : buttons.map((button) => react_1.default.createElement(gravity_ui_page_constructor_1.Button, Object.assign({}, button, { size: "l", key: button.text }))))))));
|
|
25
|
-
exports.
|
|
25
|
+
exports.NHMobileNavigation = NHMobileNavigation;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-mobile-navigation-item {
|
|
3
|
+
.pc-addons-nh-mobile-navigation-item {
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: space-between;
|
|
6
6
|
position: relative;
|
|
7
7
|
padding: 12px 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.pc-addons-mobile-navigation-item_type_link {
|
|
10
|
+
.pc-addons-nh-mobile-navigation-item_type_link {
|
|
11
11
|
color: inherit;
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
display: block;
|
|
14
14
|
color: var(--g-color-text-primary);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.pc-addons-mobile-navigation-item__arrow {
|
|
17
|
+
.pc-addons-nh-mobile-navigation-item__arrow {
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
align-items: center;
|
|
@@ -23,34 +23,34 @@ unpredictable css rules order in build */
|
|
|
23
23
|
min-width: 20px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.pc-addons-mobile-navigation-item__text {
|
|
26
|
+
.pc-addons-nh-mobile-navigation-item__text {
|
|
27
27
|
padding-right: 20px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.pc-addons-mobile-navigation-item__list {
|
|
30
|
+
.pc-addons-nh-mobile-navigation-item__list {
|
|
31
31
|
padding: 10px 20px;
|
|
32
32
|
background-color: var(--g-color-base-generic);
|
|
33
33
|
border-radius: var(--g-border-radius-l);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.pc-addons-mobile-navigation-item__list:not(:first-child) {
|
|
36
|
+
.pc-addons-nh-mobile-navigation-item__list:not(:first-child) {
|
|
37
37
|
margin-top: 12px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.pc-addons-mobile-navigation-item__list-items {
|
|
40
|
+
.pc-addons-nh-mobile-navigation-item__list-items {
|
|
41
41
|
margin: 0;
|
|
42
42
|
padding: 0;
|
|
43
43
|
list-style: none;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.pc-addons-mobile-navigation-item__list-title {
|
|
46
|
+
.pc-addons-nh-mobile-navigation-item__list-title {
|
|
47
47
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
48
48
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
49
49
|
margin: 0;
|
|
50
50
|
padding: 10px 0;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.pc-addons-mobile-navigation-item__list-item {
|
|
53
|
+
.pc-addons-nh-mobile-navigation-item__list-item {
|
|
54
54
|
color: inherit;
|
|
55
55
|
text-decoration: none;
|
|
56
56
|
display: block;
|
|
@@ -58,12 +58,12 @@ unpredictable css rules order in build */
|
|
|
58
58
|
padding: 10px 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.pc-addons-mobile-navigation-item__list-item:hover, .pc-addons-mobile-navigation-item__list-item:active {
|
|
61
|
+
.pc-addons-nh-mobile-navigation-item__list-item:hover, .pc-addons-nh-mobile-navigation-item__list-item:active {
|
|
62
62
|
--pc-text-header-color: inherit;
|
|
63
63
|
color: inherit;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.pc-addons-mobile-navigation-item__list-link {
|
|
66
|
+
.pc-addons-nh-mobile-navigation-item__list-link {
|
|
67
67
|
color: inherit;
|
|
68
68
|
text-decoration: none;
|
|
69
69
|
outline: none;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NHMobileNavigationItem = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(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 b = (0, cn_1.block)('mobile-navigation-item');
|
|
9
|
-
const
|
|
8
|
+
const b = (0, cn_1.block)('nh-mobile-navigation-item');
|
|
9
|
+
const NHMobileNavigationItem = (props) => {
|
|
10
10
|
const [isOpened, setIsOpened] = (0, react_1.useState)(false);
|
|
11
11
|
const toggleOpen = (0, react_1.useCallback)(() => {
|
|
12
12
|
setIsOpened(!isOpened);
|
|
@@ -20,11 +20,11 @@ const MobileNavigationItem = (props) => {
|
|
|
20
20
|
react_1.default.createElement("div", { className: b('text') }, props.title),
|
|
21
21
|
react_1.default.createElement("div", { className: b('arrow') },
|
|
22
22
|
react_1.default.createElement(gravity_ui_page_constructor_1.ToggleArrow, { size: 12, type: "vertical", open: isOpened, iconType: "navigation" }))),
|
|
23
|
-
react_1.default.createElement(gravity_ui_page_constructor_1.Foldable, { isOpened: isOpened }, props.data.map(({ title: itemTitle, items }) => (react_1.default.createElement("div", { className: b('list'), key: items[0].title },
|
|
23
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Foldable, { isOpened: isOpened }, props.data.map(({ title: itemTitle, items, }) => (react_1.default.createElement("div", { className: b('list'), key: items[0].title },
|
|
24
24
|
itemTitle && react_1.default.createElement("h5", { className: b('list-title') }, itemTitle),
|
|
25
25
|
react_1.default.createElement("ul", { className: b('list-items') }, items.map((linkItem) => (react_1.default.createElement("li", { className: b('li'), key: linkItem.title },
|
|
26
26
|
react_1.default.createElement("a", Object.assign({ href: linkItem.url, className: b('list-item') }, (0, gravity_ui_page_constructor_1.getLinkProps)(linkItem.url || '')), linkItem.title)))))))))));
|
|
27
27
|
}
|
|
28
28
|
return null;
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
30
|
+
exports.NHMobileNavigationItem = NHMobileNavigationItem;
|