@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,10 +1,10 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import './
|
|
3
|
+
import './NHNavigationPopup.css';
|
|
4
4
|
interface NavigationPopupProps {
|
|
5
5
|
headerRef?: RefObject<HTMLDivElement>;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
id?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const NHNavigationPopup: ({ headerRef, children, id }: NavigationPopupProps) => React.ReactPortal | null;
|
|
10
10
|
export {};
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import { FocusTrap } from '../../../../utils/FocusTrap';
|
|
4
4
|
import { block } from '../../../../utils/cn';
|
|
5
|
-
import './
|
|
6
|
-
const b = block('navigation-popup');
|
|
7
|
-
export const
|
|
5
|
+
import './NHNavigationPopup.css';
|
|
6
|
+
const b = block('nh-navigation-popup');
|
|
7
|
+
export const NHNavigationPopup = ({ headerRef, children, id }) => {
|
|
8
8
|
return (headerRef === null || headerRef === void 0 ? void 0 : headerRef.current)
|
|
9
9
|
? ReactDOM.createPortal(React.createElement(FocusTrap, { enabled: true },
|
|
10
10
|
React.createElement("div", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
|
-
.pc-addons-navigation-popup-item {
|
|
3
|
+
.pc-addons-nh-navigation-popup-item {
|
|
4
4
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
5
5
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
6
6
|
margin-bottom: 2px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.pc-addons-navigation-popup-item__content {
|
|
9
|
+
.pc-addons-nh-navigation-popup-item__content {
|
|
10
10
|
outline: none;
|
|
11
11
|
color: inherit;
|
|
12
12
|
text-decoration: none;
|
|
@@ -15,48 +15,48 @@ unpredictable css rules order in build */
|
|
|
15
15
|
height: 100%;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.utilityfocus .pc-addons-navigation-popup-item__content:focus {
|
|
18
|
+
.utilityfocus .pc-addons-nh-navigation-popup-item__content:focus {
|
|
19
19
|
outline: 2px solid #ffdb4d;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.pc-addons-navigation-popup-item__content:focus {
|
|
22
|
+
.pc-addons-nh-navigation-popup-item__content:focus {
|
|
23
23
|
outline: 2px solid var(--g-color-line-focus);
|
|
24
24
|
outline-offset: -2px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.pc-addons-navigation-popup-item__content:focus:not(:focus-visible) {
|
|
27
|
+
.pc-addons-nh-navigation-popup-item__content:focus:not(:focus-visible) {
|
|
28
28
|
outline: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.pc-addons-navigation-popup-item__content_padding_default {
|
|
31
|
+
.pc-addons-nh-navigation-popup-item__content_padding_default {
|
|
32
32
|
padding: 12px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.pc-addons-navigation-popup-item__content_padding_s {
|
|
35
|
+
.pc-addons-nh-navigation-popup-item__content_padding_s {
|
|
36
36
|
padding: 6px 12px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.pc-addons-navigation-popup-item__content:hover, .pc-addons-navigation-popup-item__content:active {
|
|
39
|
+
.pc-addons-nh-navigation-popup-item__content:hover, .pc-addons-nh-navigation-popup-item__content:active {
|
|
40
40
|
color: var(--g-color-base-brand);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.pc-addons-navigation-popup-item__content_hover:hover, .pc-addons-navigation-popup-item__content_hover:active {
|
|
43
|
+
.pc-addons-nh-navigation-popup-item__content_hover:hover, .pc-addons-nh-navigation-popup-item__content_hover:active {
|
|
44
44
|
color: inherit;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.pc-addons-navigation-popup-item__content_hover:hover {
|
|
47
|
+
.pc-addons-nh-navigation-popup-item__content_hover:hover {
|
|
48
48
|
background-color: var(--g-color-base-simple-hover);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.pc-addons-navigation-popup-item__content_disable {
|
|
51
|
+
.pc-addons-nh-navigation-popup-item__content_disable {
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.pc-addons-navigation-popup-item__icon {
|
|
55
|
+
.pc-addons-nh-navigation-popup-item__icon {
|
|
56
56
|
color: var(--g-color-base-brand);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.pc-addons-navigation-popup-item__icon-container {
|
|
59
|
+
.pc-addons-nh-navigation-popup-item__icon-container {
|
|
60
60
|
position: absolute;
|
|
61
61
|
width: 20px;
|
|
62
62
|
height: 20px;
|
|
@@ -65,11 +65,11 @@ unpredictable css rules order in build */
|
|
|
65
65
|
align-items: center;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.pc-addons-navigation-popup-item__container_with-margin {
|
|
68
|
+
.pc-addons-nh-navigation-popup-item__container_with-margin {
|
|
69
69
|
margin-left: 28px;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.pc-addons-navigation-popup-item__description {
|
|
72
|
+
.pc-addons-nh-navigation-popup-item__description {
|
|
73
73
|
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
74
74
|
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
75
75
|
display: block;
|
|
@@ -77,33 +77,33 @@ unpredictable css rules order in build */
|
|
|
77
77
|
color: var(--g-color-text-secondary);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.pc-addons-navigation-popup-item__tag {
|
|
80
|
+
.pc-addons-nh-navigation-popup-item__tag {
|
|
81
81
|
position: relative;
|
|
82
82
|
top: -2px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.pc-addons-navigation-popup-item__image {
|
|
85
|
+
.pc-addons-nh-navigation-popup-item__image {
|
|
86
86
|
display: block;
|
|
87
87
|
position: relative;
|
|
88
88
|
top: 2px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.pc-addons-navigation-popup-item__image_size_m {
|
|
91
|
+
.pc-addons-nh-navigation-popup-item__image_size_m {
|
|
92
92
|
width: 18px;
|
|
93
93
|
height: 18px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.pc-addons-navigation-popup-item__image_size_xm {
|
|
96
|
+
.pc-addons-nh-navigation-popup-item__image_size_xm {
|
|
97
97
|
width: 16px;
|
|
98
98
|
height: 16px;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.pc-addons-navigation-popup-item__image_size_s {
|
|
101
|
+
.pc-addons-nh-navigation-popup-item__image_size_s {
|
|
102
102
|
width: 14px;
|
|
103
103
|
height: 14px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.pc-addons-navigation-popup-item__image-container {
|
|
106
|
+
.pc-addons-nh-navigation-popup-item__image-container {
|
|
107
107
|
display: flex;
|
|
108
108
|
justify-content: center;
|
|
109
109
|
min-width: 20px;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GridColumnSizesType } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
-
import {
|
|
4
|
-
import './
|
|
5
|
-
export interface
|
|
3
|
+
import { NHPopupItemData } from '../../models';
|
|
4
|
+
import './NHPopupItem.css';
|
|
5
|
+
export interface NHPopupItemProps extends Partial<NHPopupItemData> {
|
|
6
6
|
hover?: boolean;
|
|
7
7
|
sizes?: GridColumnSizesType;
|
|
8
8
|
className?: string;
|
|
@@ -10,4 +10,4 @@ export interface PopupItemProps extends Partial<PopupItemData> {
|
|
|
10
10
|
imageSize?: 's' | 'xm' | 'm';
|
|
11
11
|
target?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const NHPopupItem: (props: NHPopupItemProps) => React.JSX.Element;
|
|
@@ -3,12 +3,12 @@ import { Col, HTML, Image, getLinkProps } from '@doyourjob/gravity-ui-page-const
|
|
|
3
3
|
import { Icon } from '@gravity-ui/uikit';
|
|
4
4
|
import { block } from '../../../../utils/cn';
|
|
5
5
|
import { DefaultCategorizedItemSizes } from '../../constants';
|
|
6
|
-
import {
|
|
7
|
-
import './
|
|
8
|
-
const b = block('navigation-popup-item');
|
|
9
|
-
export const
|
|
6
|
+
import { NHNavigationTag } from '../NHTag/NHTag';
|
|
7
|
+
import './NHPopupItem.css';
|
|
8
|
+
const b = block('nh-navigation-popup-item');
|
|
9
|
+
export const NHPopupItem = (props) => {
|
|
10
10
|
const { icon, url, target, title, tag, description, image, imageSize = 'm', hover, className, sizes = DefaultCategorizedItemSizes, padding = 'default', } = props;
|
|
11
|
-
const navigationTag = tag && React.createElement(
|
|
11
|
+
const navigationTag = tag && React.createElement(NHNavigationTag, Object.assign({ className: b('tag'), size: "s" }, tag));
|
|
12
12
|
return (React.createElement(Col, { className: b(null, className), sizes: sizes },
|
|
13
13
|
React.createElement("a", Object.assign({ className: b('content', { hover, padding, disable: !url }), href: url }, getLinkProps(url || '', undefined, target)),
|
|
14
14
|
icon && (React.createElement("div", { className: b('icon-container') },
|
|
@@ -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-products-popup {
|
|
3
|
+
.pc-addons-nh-products-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);
|
|
@@ -11,26 +11,26 @@ unpredictable css rules order in build */
|
|
|
11
11
|
scrollbar-width: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.pc-addons-products-popup::-webkit-scrollbar {
|
|
14
|
+
.pc-addons-nh-products-popup::-webkit-scrollbar {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.pc-addons-products-popup__container {
|
|
18
|
+
.pc-addons-nh-products-popup__container {
|
|
19
19
|
padding: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.pc-addons-products-popup > div + div {
|
|
22
|
+
.pc-addons-nh-products-popup > div + div {
|
|
23
23
|
border-top: 1px solid #e4ebf0;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.pc-addons-products-popup__wrap {
|
|
26
|
+
.pc-addons-nh-products-popup__wrap {
|
|
27
27
|
padding: 24px;
|
|
28
28
|
gap: 24px;
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.pc-addons-products-popup__title {
|
|
33
|
+
.pc-addons-nh-products-popup__title {
|
|
34
34
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
35
35
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
36
36
|
padding: 24px;
|
|
@@ -39,14 +39,14 @@ unpredictable css rules order in build */
|
|
|
39
39
|
background-color: #e0e0e0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.pc-addons-products-popup__subtitle {
|
|
42
|
+
.pc-addons-nh-products-popup__subtitle {
|
|
43
43
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
44
44
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
45
45
|
font-weight: 700;
|
|
46
46
|
color: #e0e0e0;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.pc-addons-products-popup__powered-card {
|
|
49
|
+
.pc-addons-nh-products-popup__powered-card {
|
|
50
50
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
51
51
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
52
52
|
font-weight: 500;
|
|
@@ -57,7 +57,7 @@ unpredictable css rules order in build */
|
|
|
57
57
|
gap: 24px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.pc-addons-products-popup__powered-card-wrap {
|
|
60
|
+
.pc-addons-nh-products-popup__powered-card-wrap {
|
|
61
61
|
display: flex;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
justify-content: center;
|
|
@@ -65,21 +65,21 @@ unpredictable css rules order in build */
|
|
|
65
65
|
gap: 20px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.pc-addons-products-popup__powered-card-description {
|
|
68
|
+
.pc-addons-nh-products-popup__powered-card-description {
|
|
69
69
|
color: #9fb1bd;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.pc-addons-products-popup__powered-card-container-image {
|
|
72
|
+
.pc-addons-nh-products-popup__powered-card-container-image {
|
|
73
73
|
flex: 1;
|
|
74
74
|
max-width: 140px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.pc-addons-products-popup__powered-card-image {
|
|
77
|
+
.pc-addons-nh-products-popup__powered-card-image {
|
|
78
78
|
width: 100%;
|
|
79
79
|
aspect-ratio: 1;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.pc-addons-products-popup__run-card {
|
|
82
|
+
.pc-addons-nh-products-popup__run-card {
|
|
83
83
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
84
84
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
85
85
|
font-weight: 500;
|
|
@@ -92,22 +92,22 @@ unpredictable css rules order in build */
|
|
|
92
92
|
height: 100%;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.pc-addons-products-popup__run-card_border {
|
|
95
|
+
.pc-addons-nh-products-popup__run-card_border {
|
|
96
96
|
border: 1px solid #e4ebf0;
|
|
97
97
|
background-color: transparent;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.pc-addons-products-popup__run-card-wrap {
|
|
100
|
+
.pc-addons-nh-products-popup__run-card-wrap {
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
flex: 1;
|
|
104
104
|
gap: 4px;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.pc-addons-products-popup__run-card-description {
|
|
107
|
+
.pc-addons-nh-products-popup__run-card-description {
|
|
108
108
|
color: #9fb1bd;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.pc-addons-products-popup__run-card-image {
|
|
111
|
+
.pc-addons-nh-products-popup__run-card-image {
|
|
112
112
|
height: 40px;
|
|
113
113
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Col, Grid, GridColumnSize, Image, Row } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
const b = block('products-popup');
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHProductsPopup.css';
|
|
6
|
+
const b = block('nh-products-popup');
|
|
7
7
|
const PoweredCard = ({ title, description, image }) => {
|
|
8
8
|
return (React.createElement("div", { className: b('powered-card') },
|
|
9
9
|
React.createElement("div", { className: b('powered-card-wrap') },
|
|
@@ -18,7 +18,7 @@ const RunCard = ({ title, description, image, border }) => {
|
|
|
18
18
|
React.createElement("div", { className: b('run-card-title') }, title),
|
|
19
19
|
React.createElement("div", { className: b('run-card-description') }, description))));
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const NHProductsPopup = ({ sections, poweredCard }) => (React.createElement(Grid, { className: b(), containerClass: b('container') }, sections.map((section, index) => {
|
|
22
22
|
var _a, _b, _c;
|
|
23
23
|
const isScaleSection = index === 2; // "Scale" section is usually the 3rd one
|
|
24
24
|
const isRunSection = section.runCards && section.runCards.length > 0;
|
|
@@ -37,7 +37,7 @@ export const ProductsPopup = ({ sections, poweredCard }) => (React.createElement
|
|
|
37
37
|
[GridColumnSize.Md]: 8,
|
|
38
38
|
[GridColumnSize.All]: 12,
|
|
39
39
|
} },
|
|
40
|
-
React.createElement(Row, null, (_b = section.items) === null || _b === void 0 ? void 0 : _b.map((item, itemIndex) => (React.createElement(
|
|
40
|
+
React.createElement(Row, null, (_b = section.items) === null || _b === void 0 ? void 0 : _b.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}` }, item, { hover: true, sizes: {
|
|
41
41
|
[GridColumnSize.Md]: 6,
|
|
42
42
|
[GridColumnSize.All]: 12,
|
|
43
43
|
} })))))),
|
|
@@ -47,7 +47,7 @@ export const ProductsPopup = ({ sections, poweredCard }) => (React.createElement
|
|
|
47
47
|
} }, poweredCard && React.createElement(PoweredCard, Object.assign({}, poweredCard)))));
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
|
-
content = (_c = section.items) === null || _c === void 0 ? void 0 : _c.map((item, itemIndex) => (React.createElement(
|
|
50
|
+
content = (_c = section.items) === null || _c === void 0 ? void 0 : _c.map((item, itemIndex) => (React.createElement(NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}` }, item, { hover: true, sizes: {
|
|
51
51
|
[GridColumnSize.Md]: 4,
|
|
52
52
|
[GridColumnSize.All]: 12,
|
|
53
53
|
} }))));
|
|
@@ -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-resources-popup {
|
|
3
|
+
.pc-addons-nh-resources-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);
|
|
@@ -11,26 +11,26 @@ unpredictable css rules order in build */
|
|
|
11
11
|
scrollbar-width: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.pc-addons-resources-popup::-webkit-scrollbar {
|
|
14
|
+
.pc-addons-nh-resources-popup::-webkit-scrollbar {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.pc-addons-resources-popup__container {
|
|
18
|
+
.pc-addons-nh-resources-popup__container {
|
|
19
19
|
padding: 0;
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.pc-addons-resources-popup__wrap {
|
|
23
|
+
.pc-addons-nh-resources-popup__wrap {
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
flex: 1;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.pc-addons-resources-popup__wrap > div + div {
|
|
29
|
+
.pc-addons-nh-resources-popup__wrap > div + div {
|
|
30
30
|
border-top: 1px solid #e4ebf0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.pc-addons-resources-popup__group {
|
|
33
|
+
.pc-addons-nh-resources-popup__group {
|
|
34
34
|
padding: 32px 20px;
|
|
35
35
|
flex: 1;
|
|
36
36
|
display: flex;
|
|
@@ -38,21 +38,21 @@ unpredictable css rules order in build */
|
|
|
38
38
|
gap: 24px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.pc-addons-resources-popup__title {
|
|
41
|
+
.pc-addons-nh-resources-popup__title {
|
|
42
42
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
43
43
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
44
44
|
font-weight: 600;
|
|
45
45
|
margin-bottom: 8px;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.pc-addons-resources-popup__subtitle {
|
|
48
|
+
.pc-addons-nh-resources-popup__subtitle {
|
|
49
49
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
50
50
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
51
51
|
font-weight: 500;
|
|
52
52
|
color: #9fb1bd;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.pc-addons-resources-popup__events {
|
|
55
|
+
.pc-addons-nh-resources-popup__events {
|
|
56
56
|
width: 300px;
|
|
57
57
|
flex-shrink: 0;
|
|
58
58
|
padding: 32px;
|
|
@@ -62,14 +62,14 @@ unpredictable css rules order in build */
|
|
|
62
62
|
gap: 8px;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.pc-addons-resources-popup__events-title {
|
|
65
|
+
.pc-addons-nh-resources-popup__events-title {
|
|
66
66
|
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
67
67
|
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
68
68
|
font-weight: 500;
|
|
69
69
|
color: #9fb1bd;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.pc-addons-resources-popup__banner {
|
|
72
|
+
.pc-addons-nh-resources-popup__banner {
|
|
73
73
|
background-color: #f2f6f9;
|
|
74
74
|
border-radius: 16px;
|
|
75
75
|
display: flex;
|
|
@@ -77,55 +77,55 @@ unpredictable css rules order in build */
|
|
|
77
77
|
gap: 24px;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.pc-addons-resources-popup__banner-container-image {
|
|
80
|
+
.pc-addons-nh-resources-popup__banner-container-image {
|
|
81
81
|
width: 263px;
|
|
82
82
|
height: 148px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.pc-addons-resources-popup__banner-image {
|
|
85
|
+
.pc-addons-nh-resources-popup__banner-image {
|
|
86
86
|
display: block;
|
|
87
87
|
width: 100%;
|
|
88
88
|
height: 100%;
|
|
89
89
|
object-fit: cover;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.pc-addons-resources-popup__banner-container-icon {
|
|
92
|
+
.pc-addons-nh-resources-popup__banner-container-icon {
|
|
93
93
|
height: 20px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.pc-addons-resources-popup__banner-icon {
|
|
96
|
+
.pc-addons-nh-resources-popup__banner-icon {
|
|
97
97
|
display: block;
|
|
98
98
|
height: 100%;
|
|
99
99
|
object-fit: contain;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.pc-addons-resources-popup__banner-wrap {
|
|
102
|
+
.pc-addons-nh-resources-popup__banner-wrap {
|
|
103
103
|
flex: 1;
|
|
104
104
|
display: flex;
|
|
105
105
|
flex-direction: column;
|
|
106
106
|
justify-content: space-between;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.pc-addons-resources-popup__banner-content {
|
|
109
|
+
.pc-addons-nh-resources-popup__banner-content {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
112
112
|
gap: 8px;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.pc-addons-resources-popup__banner-title {
|
|
115
|
+
.pc-addons-nh-resources-popup__banner-title {
|
|
116
116
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
117
117
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
118
118
|
font-weight: 500;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.pc-addons-resources-popup__banner-description {
|
|
121
|
+
.pc-addons-nh-resources-popup__banner-description {
|
|
122
122
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
123
123
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
124
124
|
font-weight: 500;
|
|
125
125
|
color: #9fb1bd;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
.pc-addons-resources-popup__event-card {
|
|
128
|
+
.pc-addons-nh-resources-popup__event-card {
|
|
129
129
|
position: relative;
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
@@ -133,7 +133,7 @@ unpredictable css rules order in build */
|
|
|
133
133
|
border: 1px solid #e4ebf0;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.pc-addons-resources-popup__event-card-tag {
|
|
136
|
+
.pc-addons-nh-resources-popup__event-card-tag {
|
|
137
137
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
138
138
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
139
139
|
position: absolute;
|
|
@@ -144,25 +144,25 @@ unpredictable css rules order in build */
|
|
|
144
144
|
background-color: #ffffff;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.pc-addons-resources-popup__event-card-container-image {
|
|
147
|
+
.pc-addons-nh-resources-popup__event-card-container-image {
|
|
148
148
|
width: 100%;
|
|
149
149
|
height: 150px;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
.pc-addons-resources-popup__event-card-image {
|
|
152
|
+
.pc-addons-nh-resources-popup__event-card-image {
|
|
153
153
|
display: block;
|
|
154
154
|
width: 100%;
|
|
155
155
|
height: 100%;
|
|
156
156
|
object-fit: cover;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.pc-addons-resources-popup__event-card-wrap {
|
|
159
|
+
.pc-addons-nh-resources-popup__event-card-wrap {
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: column;
|
|
162
162
|
gap: 4px;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.pc-addons-resources-popup__event-card-content {
|
|
165
|
+
.pc-addons-nh-resources-popup__event-card-content {
|
|
166
166
|
padding: 16px;
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-direction: column;
|
|
@@ -170,20 +170,20 @@ unpredictable css rules order in build */
|
|
|
170
170
|
gap: 16px;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.pc-addons-resources-popup__event-card-title {
|
|
173
|
+
.pc-addons-nh-resources-popup__event-card-title {
|
|
174
174
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
175
175
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
176
176
|
font-weight: 500;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.pc-addons-resources-popup__event-card-date {
|
|
179
|
+
.pc-addons-nh-resources-popup__event-card-date {
|
|
180
180
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
181
181
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
182
182
|
font-weight: 500;
|
|
183
183
|
color: #9fb1bd;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.pc-addons-resources-popup__event-card-location {
|
|
186
|
+
.pc-addons-nh-resources-popup__event-card-location {
|
|
187
187
|
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
188
188
|
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
189
189
|
font-weight: 500;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Col, Grid, GridColumnSize, Image, Row, getLinkProps, } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
3
|
import { block } from '../../../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
const b = block('resources-popup');
|
|
4
|
+
import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
|
|
5
|
+
import './NHResourcesPopup.css';
|
|
6
|
+
const b = block('nh-resources-popup');
|
|
7
7
|
const EventCard = ({ tag, image, date, title, location }) => {
|
|
8
8
|
return (React.createElement("div", { className: b('event-card') },
|
|
9
9
|
React.createElement("div", { className: b('event-card-tag') }, tag),
|
|
@@ -14,7 +14,7 @@ const EventCard = ({ tag, image, date, title, location }) => {
|
|
|
14
14
|
React.createElement("div", { className: b('event-card-title') }, title)),
|
|
15
15
|
React.createElement("div", { className: b('event-card-location') }, location))));
|
|
16
16
|
};
|
|
17
|
-
export const
|
|
17
|
+
export const NHResourcesPopup = ({ groups, banner, events }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
|
|
18
18
|
React.createElement("div", { className: b('wrap') },
|
|
19
19
|
groups.map((group) => (React.createElement("div", { className: b('group'), key: group.title },
|
|
20
20
|
React.createElement(Row, null,
|
|
@@ -22,7 +22,7 @@ export const ResourcesPopup = ({ groups, banner, events }) => (React.createEleme
|
|
|
22
22
|
React.createElement("a", Object.assign({ href: group.url, className: b('title') }, getLinkProps(group.url)), group.title),
|
|
23
23
|
React.createElement("div", { className: b('subtitle') }, group.subtitle)),
|
|
24
24
|
React.createElement(Col, { sizes: { [GridColumnSize.Md]: 4, [GridColumnSize.All]: 12 } })),
|
|
25
|
-
React.createElement(Row, null, group.items.map((item) => (React.createElement(
|
|
25
|
+
React.createElement(Row, null, group.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item)))))))),
|
|
26
26
|
banner && (React.createElement("div", { className: b('group') },
|
|
27
27
|
React.createElement(Row, null,
|
|
28
28
|
React.createElement(Col, null,
|
|
@@ -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-solutions-popup {
|
|
3
|
+
.pc-addons-nh-solutions-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);
|
|
@@ -11,37 +11,37 @@ unpredictable css rules order in build */
|
|
|
11
11
|
scrollbar-width: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.pc-addons-solutions-popup::-webkit-scrollbar {
|
|
14
|
+
.pc-addons-nh-solutions-popup::-webkit-scrollbar {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.pc-addons-solutions-popup__container {
|
|
18
|
+
.pc-addons-nh-solutions-popup__container {
|
|
19
19
|
padding: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.pc-addons-solutions-popup > div + div {
|
|
22
|
+
.pc-addons-nh-solutions-popup > div + div {
|
|
23
23
|
border-top: 1px solid #e4ebf0;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.pc-addons-solutions-popup__wrap {
|
|
26
|
+
.pc-addons-nh-solutions-popup__wrap {
|
|
27
27
|
padding: 24px;
|
|
28
28
|
gap: 24px;
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.pc-addons-solutions-popup__head {
|
|
33
|
+
.pc-addons-nh-solutions-popup__head {
|
|
34
34
|
display: flex;
|
|
35
35
|
gap: 24px;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.pc-addons-solutions-popup__title {
|
|
38
|
+
.pc-addons-nh-solutions-popup__title {
|
|
39
39
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
40
40
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
41
41
|
font-weight: 600;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.pc-addons-solutions-popup__subtitle {
|
|
44
|
+
.pc-addons-nh-solutions-popup__subtitle {
|
|
45
45
|
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
46
46
|
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
47
47
|
font-weight: 700;
|