@doyourjob/gravity-ui-page-constructor-addons 2.1.25 → 2.1.27
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/Navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +2 -2
- package/build/cjs/components/NewHeader/NewHeader.css +190 -0
- package/build/cjs/components/NewHeader/NewHeader.d.ts +13 -0
- package/build/cjs/components/NewHeader/NewHeader.js +72 -0
- package/build/cjs/components/NewHeader/components/ChevronDown.d.ts +2 -0
- package/build/cjs/components/NewHeader/components/ChevronDown.js +8 -0
- package/build/cjs/components/NewHeader/components/ChevronUp.d.ts +2 -0
- package/build/cjs/components/NewHeader/components/ChevronUp.js +8 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +30 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +20 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +86 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +22 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.css +19 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.js +52 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +51 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +12 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +8 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +17 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css +52 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.d.ts +14 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.js +25 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.css +75 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.js +30 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +55 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts +9 -0
- package/build/cjs/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.js +47 -0
- package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.css +23 -0
- 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/NHNavigationItem/NHNavigationItem.css +66 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +12 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +34 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +13 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.d.ts +9 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.js +18 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.css +107 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +12 -0
- package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.js +28 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +124 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +65 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +209 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +42 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +48 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +20 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.css +21 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +6 -0
- package/build/cjs/components/NewHeader/components/NHTag/NHTag.js +22 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +80 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +3 -0
- package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +21 -0
- package/build/cjs/components/NewHeader/constants.d.ts +7 -0
- package/build/cjs/components/NewHeader/constants.js +11 -0
- package/build/cjs/components/NewHeader/contexts/route-change.d.ts +3 -0
- package/build/cjs/components/NewHeader/contexts/route-change.js +6 -0
- package/build/cjs/components/NewHeader/models.d.ts +202 -0
- package/build/cjs/components/NewHeader/models.js +20 -0
- package/build/cjs/components/NewHeader/styles/mixins.css +0 -0
- package/build/cjs/components/NewHeader/styles/variables.css +5 -0
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/components/index.js +1 -0
- package/build/esm/components/Navigation/components/Navigation/Navigation.d.ts +2 -2
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +2 -2
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +2 -2
- package/build/esm/components/NewHeader/NewHeader.css +190 -0
- package/build/esm/components/NewHeader/NewHeader.d.ts +14 -0
- package/build/esm/components/NewHeader/NewHeader.js +68 -0
- package/build/esm/components/NewHeader/components/ChevronDown.d.ts +2 -0
- package/build/esm/components/NewHeader/components/ChevronDown.js +3 -0
- package/build/esm/components/NewHeader/components/ChevronUp.d.ts +2 -0
- package/build/esm/components/NewHeader/components/ChevronUp.js +3 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +30 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +16 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +86 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +18 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.css +19 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +11 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.js +48 -0
- package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +51 -0
- 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/NHMediumPopup/NHMediumPopup.css +8 -0
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +13 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.css +52 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.d.ts +15 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigation/NHMobileNavigation.js +21 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.css +75 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationItem/NHMobileNavigationItem.js +26 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.css +55 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.d.ts +10 -0
- package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.js +43 -0
- package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.css +23 -0
- 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/NHNavigationItem/NHNavigationItem.css +66 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +13 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +30 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +13 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.d.ts +10 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.js +14 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.css +107 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +13 -0
- package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.js +24 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +124 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +61 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +209 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +38 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +48 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +16 -0
- package/build/esm/components/NewHeader/components/NHTag/NHTag.css +21 -0
- 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/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +80 -0
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +4 -0
- package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +17 -0
- package/build/esm/components/NewHeader/constants.d.ts +7 -0
- package/build/esm/components/NewHeader/constants.js +8 -0
- package/build/esm/components/NewHeader/contexts/route-change.d.ts +3 -0
- package/build/esm/components/NewHeader/contexts/route-change.js +2 -0
- package/build/esm/components/NewHeader/models.d.ts +202 -0
- package/build/esm/components/NewHeader/models.js +17 -0
- package/build/esm/components/NewHeader/styles/mixins.css +0 -0
- package/build/esm/components/NewHeader/styles/variables.css +5 -0
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/components/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-mobile-navigation-popup {
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
z-index: 99;
|
|
8
|
+
padding: 48px 0 32px;
|
|
9
|
+
background-color: var(--g-color-base-background);
|
|
10
|
+
border-radius: 0 0 var(--pc-border-radius, 24px) var(--pc-border-radius, 24px);
|
|
11
|
+
box-shadow: 0 3px 10px var(--g-color-base-generic);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-mobile-navigation-popup__transition-enter {
|
|
15
|
+
transform: translateY(-30px);
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pc-addons-nh-mobile-navigation-popup__transition-enter-active {
|
|
20
|
+
transform: translateY(0);
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transition: transform 0.4s, opacity 0.4s;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pc-addons-nh-mobile-navigation-popup__transition-exit {
|
|
26
|
+
transform: translateY(0);
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pc-addons-nh-mobile-navigation-popup__transition-exit .pc-addons-nh-mobile-navigation-popup__container {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pc-addons-nh-mobile-navigation-popup__transition-exit-active {
|
|
35
|
+
transform: translateY(-30px);
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transition: transform 0.4s, opacity 0.4s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pc-addons-nh-mobile-navigation-popup__no-scroll {
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pc-addons-nh-mobile-navigation-popup__container {
|
|
45
|
+
padding: 4px 48px 0;
|
|
46
|
+
overflow: scroll;
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (max-width: 576px) {
|
|
51
|
+
.pc-addons-nh-mobile-navigation-popup__container {
|
|
52
|
+
padding-left: 24px;
|
|
53
|
+
padding-right: 24px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './NHMobileNavigationPopup.css';
|
|
3
|
+
interface MobileNavigationPopupProps {
|
|
4
|
+
isOpened: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
onMenuScroll: (scrollTop: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const NHMobileNavigationPopup: ({ isOpened, onClose, children, onMenuScroll, }: MobileNavigationPopupProps) => React.ReactPortal | null;
|
|
10
|
+
export {};
|
package/build/esm/components/NewHeader/components/NHMobileNavigationPopup/NHMobileNavigationPopup.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { OutsideClick } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { useBodyScrollLock } from '@gravity-ui/uikit';
|
|
4
|
+
import ReactDOM from 'react-dom';
|
|
5
|
+
import { CSSTransition } from 'react-transition-group';
|
|
6
|
+
import { block } from '../../../../utils/cn';
|
|
7
|
+
import './NHMobileNavigationPopup.css';
|
|
8
|
+
const b = block('nh-mobile-navigation-popup');
|
|
9
|
+
const TRANSITION_TIME = 400;
|
|
10
|
+
const POPUP_MARGIN = 80;
|
|
11
|
+
const HEADER_HEIGHT = 68;
|
|
12
|
+
export const NHMobileNavigationPopup = ({ isOpened, onClose, children, onMenuScroll, }) => {
|
|
13
|
+
const [body, setBody] = useState();
|
|
14
|
+
const ref = useRef(null);
|
|
15
|
+
const [containerHeight, setContainerHeight] = useState(0);
|
|
16
|
+
const handleScroll = useCallback(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
const containerScrollTop = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollTop;
|
|
19
|
+
if (typeof containerScrollTop !== 'undefined') {
|
|
20
|
+
onMenuScroll(containerScrollTop);
|
|
21
|
+
}
|
|
22
|
+
}, [onMenuScroll]);
|
|
23
|
+
useBodyScrollLock({ enabled: isOpened });
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
setBody(document.body);
|
|
26
|
+
setContainerHeight((window === null || window === void 0 ? void 0 : window.innerHeight) - POPUP_MARGIN - HEADER_HEIGHT);
|
|
27
|
+
const element = ref.current;
|
|
28
|
+
if (element) {
|
|
29
|
+
element.addEventListener('scroll', handleScroll);
|
|
30
|
+
}
|
|
31
|
+
return () => {
|
|
32
|
+
if (element) {
|
|
33
|
+
element.removeEventListener('scroll', handleScroll);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}, [handleScroll, isOpened]);
|
|
37
|
+
if (!body) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return ReactDOM.createPortal(React.createElement(CSSTransition, { in: isOpened, classNames: b('transition'), unmountOnExit: true, timeout: TRANSITION_TIME },
|
|
41
|
+
React.createElement(OutsideClick, { className: b(), onOutsideClick: onClose },
|
|
42
|
+
React.createElement("div", { ref: ref, className: b('container'), style: { maxHeight: `${containerHeight}px` } }, children))), body);
|
|
43
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-navigation {
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
list-style: none;
|
|
7
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
8
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (max-width: 768px) {
|
|
15
|
+
.pc-addons-nh-navigation {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@media (max-width: 1081px) {
|
|
20
|
+
.pc-addons-nh-navigation {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NHNavigationItemData, SetupRouteChangeHandler } from '../../models';
|
|
4
|
+
import './NHNavigation.css';
|
|
5
|
+
interface NavigationProps {
|
|
6
|
+
data: NHNavigationItemData[];
|
|
7
|
+
headerRef?: RefObject<HTMLDivElement>;
|
|
8
|
+
setupRouteChangeHandler?: SetupRouteChangeHandler;
|
|
9
|
+
}
|
|
10
|
+
export declare const NHNavigation: ({ data, headerRef, setupRouteChangeHandler }: NavigationProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { block } from '../../../../utils/cn';
|
|
3
|
+
import { NO_MENU_TAB_SELECTED, SWITCH_MENU_TAB_TIMEOUT } from '../../constants';
|
|
4
|
+
import { NHNavigationItemType, } from '../../models';
|
|
5
|
+
import { NHCompanyPopup } from '../NHCompanyPopup/NHCompanyPopup';
|
|
6
|
+
import { NHInvestorPopup } from '../NHInvestorPopup/NHInvestorPopup';
|
|
7
|
+
import { NHMediumPopup } from '../NHMediumPopup/NHMediumPopup';
|
|
8
|
+
import { NHNavigationItem } from '../NHNavigationItem/NHNavigationItem';
|
|
9
|
+
import { NHNavigationPopup } from '../NHNavigationPopup/NHNavigationPopup';
|
|
10
|
+
import { NHProductsPopup } from '../NHProductsPopup/NHProductsPopup';
|
|
11
|
+
import { NHResourcesPopup } from '../NHResourcesPopup/NHResourcesPopup';
|
|
12
|
+
import { NHSolutionsPopup } from '../NHSolutionsPopup/NHSolutionsPopup';
|
|
13
|
+
import { NHWhyPopup } from '../NHWhyPopup/NHWhyPopup';
|
|
14
|
+
import './NHNavigation.css';
|
|
15
|
+
const b = block('nh-navigation');
|
|
16
|
+
const tooltipPrefixId = 'navigation-item-key';
|
|
17
|
+
const getPopupContent = (sectionData) => {
|
|
18
|
+
const { type, data } = sectionData;
|
|
19
|
+
switch (type) {
|
|
20
|
+
case NHNavigationItemType.NHMediumPopup:
|
|
21
|
+
return React.createElement(NHMediumPopup, Object.assign({}, data));
|
|
22
|
+
case NHNavigationItemType.NHProductsPopup:
|
|
23
|
+
return React.createElement(NHProductsPopup, Object.assign({}, data));
|
|
24
|
+
case NHNavigationItemType.NHSolutionsPopup:
|
|
25
|
+
return React.createElement(NHSolutionsPopup, Object.assign({}, data));
|
|
26
|
+
case NHNavigationItemType.NHWhyPopup:
|
|
27
|
+
return React.createElement(NHWhyPopup, Object.assign({}, data));
|
|
28
|
+
case NHNavigationItemType.NHResourcesPopup:
|
|
29
|
+
return React.createElement(NHResourcesPopup, Object.assign({}, data));
|
|
30
|
+
case NHNavigationItemType.NHCompanyPopup:
|
|
31
|
+
return React.createElement(NHCompanyPopup, Object.assign({}, data));
|
|
32
|
+
case NHNavigationItemType.NHInvestorPopup:
|
|
33
|
+
return React.createElement(NHInvestorPopup, Object.assign({}, data));
|
|
34
|
+
default:
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export const NHNavigation = ({ data, headerRef, setupRouteChangeHandler }) => {
|
|
39
|
+
const [activeTab, setActiveTab] = useState(NO_MENU_TAB_SELECTED);
|
|
40
|
+
const [pretendentActiveTab, setPretendentAciveTab] = useState(NO_MENU_TAB_SELECTED);
|
|
41
|
+
const [previouslyFocusedElement, setPreviouslyFocusedElement] = useState(null);
|
|
42
|
+
const handleActiveTab = useCallback((currentIndex) => {
|
|
43
|
+
setPreviouslyFocusedElement(document.activeElement);
|
|
44
|
+
setPretendentAciveTab(currentIndex);
|
|
45
|
+
}, []);
|
|
46
|
+
const onEscapeKeyDown = useCallback((event) => {
|
|
47
|
+
if (event.key === 'Escape') {
|
|
48
|
+
setActiveTab(NO_MENU_TAB_SELECTED);
|
|
49
|
+
setPretendentAciveTab(NO_MENU_TAB_SELECTED);
|
|
50
|
+
previouslyFocusedElement === null || previouslyFocusedElement === void 0 ? void 0 : previouslyFocusedElement.focus({ preventScroll: true });
|
|
51
|
+
}
|
|
52
|
+
}, [previouslyFocusedElement]);
|
|
53
|
+
useEffect(() => setupRouteChangeHandler === null || setupRouteChangeHandler === void 0 ? void 0 : setupRouteChangeHandler(() => {
|
|
54
|
+
handleActiveTab(NO_MENU_TAB_SELECTED);
|
|
55
|
+
}), [setupRouteChangeHandler, handleActiveTab]);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const timerId = setTimeout(() => {
|
|
58
|
+
setActiveTab(pretendentActiveTab);
|
|
59
|
+
}, SWITCH_MENU_TAB_TIMEOUT);
|
|
60
|
+
return () => clearTimeout(timerId);
|
|
61
|
+
}, [activeTab, pretendentActiveTab]);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
document.addEventListener('keydown', onEscapeKeyDown);
|
|
64
|
+
return () => {
|
|
65
|
+
document.removeEventListener('keydown', onEscapeKeyDown);
|
|
66
|
+
};
|
|
67
|
+
}, [onEscapeKeyDown]);
|
|
68
|
+
return (React.createElement("nav", null,
|
|
69
|
+
React.createElement("ul", { className: b() }, data.map((item, i) => (React.createElement(NHNavigationItem, { key: item.title, item: item, handleActiveTab: handleActiveTab, index: i, isActive: activeTab === i, tooltipId: `${tooltipPrefixId}-${i}` }, activeTab === i && item.type !== NHNavigationItemType.Link && (React.createElement(NHNavigationPopup, { headerRef: headerRef, id: `${tooltipPrefixId}-${i}` }, getPopupContent(item)))))))));
|
|
70
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-navigation-item {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
color: var(--g-color-text-primary);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pc-addons-nh-navigation-item:hover .pc-addons-nh-navigation-item__text {
|
|
9
|
+
background-color: rgb(245, 246, 247);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pc-addons-nh-navigation-item_disable {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pc-addons-nh-navigation-item__popup {
|
|
17
|
+
--yc-popup-border-width: 0;
|
|
18
|
+
--yc-popup-border-color: none;
|
|
19
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
20
|
+
box-shadow: 0 3px 10px var(--g-color-base-generic-hover);
|
|
21
|
+
--yc-popover-max-width: 1296px;
|
|
22
|
+
--yc-popover-padding: 20px;
|
|
23
|
+
width: var(--yc-popover-max-width);
|
|
24
|
+
left: 0;
|
|
25
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic-hover), 0 2px 8px var(--g-color-base-generic-hover);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (max-width: 1248px) {
|
|
29
|
+
.pc-addons-nh-navigation-item__icon {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.pc-addons-nh-navigation-item__text {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
font: inherit;
|
|
38
|
+
border: none;
|
|
39
|
+
outline: none;
|
|
40
|
+
color: inherit;
|
|
41
|
+
background: none;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
color: inherit;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
padding: 8px;
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
color: var(--g-color-text-primary);
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pc-addons-nh-navigation-item__text_cursor_default {
|
|
55
|
+
cursor: default;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pc-addons-nh-navigation-item:first-child .pc-addons-nh-navigation-item__text {
|
|
59
|
+
margin-left: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: 1296px) {
|
|
63
|
+
.pc-addons-nh-navigation-item__popup {
|
|
64
|
+
--yc-popover-max-width: calc(100% - 32px);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import { NHNavigationItemData } from '../../models';
|
|
3
|
+
import './NHNavigationItem.css';
|
|
4
|
+
interface NavigationItemOwnProps {
|
|
5
|
+
index: number;
|
|
6
|
+
item: NHNavigationItemData;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
handleActiveTab: (currentIndex: number) => void;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
tooltipId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const NHNavigationItem: FC<NavigationItemOwnProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { useCallback, useContext, useEffect } from 'react';
|
|
2
|
+
import { getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { Icon } from '@gravity-ui/uikit';
|
|
4
|
+
import { block } from '../../../../utils/cn';
|
|
5
|
+
import { NO_MENU_TAB_SELECTED } from '../../constants';
|
|
6
|
+
import { RouteChangeHandlerContext } from '../../contexts/route-change';
|
|
7
|
+
import { NHNavigationItemType } from '../../models';
|
|
8
|
+
import { ChevronDown } from '../ChevronDown';
|
|
9
|
+
import { ChevronUp } from '../ChevronUp';
|
|
10
|
+
import './NHNavigationItem.css';
|
|
11
|
+
const b = block('nh-navigation-item');
|
|
12
|
+
export const NHNavigationItem = ({ item, isActive, handleActiveTab, index, children, tooltipId, }) => {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
const setupRouteChangeHandler = useContext(RouteChangeHandlerContext);
|
|
15
|
+
const handleMouseEnter = useCallback(() => handleActiveTab(index), [handleActiveTab, index]);
|
|
16
|
+
const handleMouseLeave = useCallback(() => handleActiveTab(NO_MENU_TAB_SELECTED), [handleActiveTab]);
|
|
17
|
+
useEffect(() => setupRouteChangeHandler === null || setupRouteChangeHandler === void 0 ? void 0 : setupRouteChangeHandler(() => {
|
|
18
|
+
handleMouseLeave();
|
|
19
|
+
}), [handleMouseLeave, setupRouteChangeHandler]);
|
|
20
|
+
if (item.type === NHNavigationItemType.Link) {
|
|
21
|
+
return (React.createElement("li", { key: item.title, className: b({ disable: !((_a = item.data) === null || _a === void 0 ? void 0 : _a.url) }), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
22
|
+
React.createElement("a", Object.assign({ className: b('text', { active: isActive }), href: (_b = item.data) === null || _b === void 0 ? void 0 : _b.url }, getLinkProps(((_c = item.data) === null || _c === void 0 ? void 0 : _c.url) || '', undefined, (_d = item.data) === null || _d === void 0 ? void 0 : _d.target)), item.title),
|
|
23
|
+
children));
|
|
24
|
+
}
|
|
25
|
+
return (React.createElement("li", { key: item.title, className: b({}), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
26
|
+
React.createElement("button", { className: b('text', { active: isActive, cursor: 'default' }), onClick: handleMouseEnter, "aria-expanded": isActive, "aria-controls": tooltipId },
|
|
27
|
+
item.title,
|
|
28
|
+
React.createElement(Icon, { className: b('icon'), data: isActive ? ChevronUp : ChevronDown, size: 16 })),
|
|
29
|
+
children));
|
|
30
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './NHNavigationPopup.css';
|
|
4
|
+
interface NavigationPopupProps {
|
|
5
|
+
headerRef?: RefObject<HTMLDivElement>;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const NHNavigationPopup: ({ headerRef, children, id }: NavigationPopupProps) => React.ReactPortal | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import { FocusTrap } from '../../../../utils/FocusTrap';
|
|
4
|
+
import { block } from '../../../../utils/cn';
|
|
5
|
+
import './NHNavigationPopup.css';
|
|
6
|
+
const b = block('nh-navigation-popup');
|
|
7
|
+
export const NHNavigationPopup = ({ headerRef, children, id }) => {
|
|
8
|
+
return (headerRef === null || headerRef === void 0 ? void 0 : headerRef.current)
|
|
9
|
+
? ReactDOM.createPortal(React.createElement(FocusTrap, { enabled: true },
|
|
10
|
+
React.createElement("div", {
|
|
11
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
12
|
+
tabIndex: 0, className: b(), id: id }, children)), headerRef.current)
|
|
13
|
+
: null;
|
|
14
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-navigation-popup-item {
|
|
4
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
5
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
6
|
+
margin-bottom: 2px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pc-addons-nh-navigation-popup-item__content {
|
|
10
|
+
outline: none;
|
|
11
|
+
color: inherit;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
display: flex;
|
|
14
|
+
border-radius: var(--g-border-radius-xl);
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.utilityfocus .pc-addons-nh-navigation-popup-item__content:focus {
|
|
19
|
+
outline: 2px solid #ffdb4d;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pc-addons-nh-navigation-popup-item__content:focus {
|
|
23
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
24
|
+
outline-offset: -2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pc-addons-nh-navigation-popup-item__content:focus:not(:focus-visible) {
|
|
28
|
+
outline: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pc-addons-nh-navigation-popup-item__content_padding_default {
|
|
32
|
+
padding: 12px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pc-addons-nh-navigation-popup-item__content_padding_s {
|
|
36
|
+
padding: 6px 12px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pc-addons-nh-navigation-popup-item__content_hover:hover, .pc-addons-nh-navigation-popup-item__content_hover:active {
|
|
40
|
+
color: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pc-addons-nh-navigation-popup-item__content_hover:hover {
|
|
44
|
+
background-color: var(--g-color-base-simple-hover);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pc-addons-nh-navigation-popup-item__content_disable {
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pc-addons-nh-navigation-popup-item__icon {
|
|
52
|
+
color: var(--g-color-base-brand);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pc-addons-nh-navigation-popup-item__icon-container {
|
|
56
|
+
position: absolute;
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pc-addons-nh-navigation-popup-item__container_with-margin {
|
|
65
|
+
margin-left: 28px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pc-addons-nh-navigation-popup-item__description {
|
|
69
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
70
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
71
|
+
display: block;
|
|
72
|
+
margin-top: 2px;
|
|
73
|
+
color: var(--g-color-text-secondary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pc-addons-nh-navigation-popup-item__tag {
|
|
77
|
+
position: relative;
|
|
78
|
+
top: -2px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pc-addons-nh-navigation-popup-item__image {
|
|
82
|
+
display: block;
|
|
83
|
+
position: relative;
|
|
84
|
+
top: 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pc-addons-nh-navigation-popup-item__image_size_m {
|
|
88
|
+
width: 18px;
|
|
89
|
+
height: 18px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pc-addons-nh-navigation-popup-item__image_size_xm {
|
|
93
|
+
width: 16px;
|
|
94
|
+
height: 16px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pc-addons-nh-navigation-popup-item__image_size_s {
|
|
98
|
+
width: 14px;
|
|
99
|
+
height: 14px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pc-addons-nh-navigation-popup-item__image-container {
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
min-width: 20px;
|
|
106
|
+
margin-right: 8px;
|
|
107
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GridColumnSizesType } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { NHPopupItemData } from '../../models';
|
|
4
|
+
import './NHPopupItem.css';
|
|
5
|
+
export interface NHPopupItemProps extends Partial<NHPopupItemData> {
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
sizes?: GridColumnSizesType;
|
|
8
|
+
className?: string;
|
|
9
|
+
padding?: 'default' | 's';
|
|
10
|
+
imageSize?: 's' | 'xm' | 'm';
|
|
11
|
+
target?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const NHPopupItem: (props: NHPopupItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col, HTML, Image, getLinkProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { Icon } from '@gravity-ui/uikit';
|
|
4
|
+
import { block } from '../../../../utils/cn';
|
|
5
|
+
import { DefaultCategorizedItemSizes } from '../../constants';
|
|
6
|
+
import { NHNavigationTag } from '../NHTag/NHTag';
|
|
7
|
+
import './NHPopupItem.css';
|
|
8
|
+
const b = block('nh-navigation-popup-item');
|
|
9
|
+
export const NHPopupItem = (props) => {
|
|
10
|
+
const { icon, url, target, title, tag, description, image, imageSize = 'm', hover, className, sizes = DefaultCategorizedItemSizes, padding = 'default', } = props;
|
|
11
|
+
const navigationTag = tag && React.createElement(NHNavigationTag, Object.assign({ className: b('tag'), size: "s" }, tag));
|
|
12
|
+
return (React.createElement(Col, { className: b(null, className), sizes: sizes },
|
|
13
|
+
React.createElement("a", Object.assign({ className: b('content', { hover, padding, disable: !url }), href: url }, getLinkProps(url || '', undefined, target)),
|
|
14
|
+
icon && (React.createElement("div", { className: b('icon-container') },
|
|
15
|
+
React.createElement(Icon, { className: b('icon'), data: icon, size: 16 }))),
|
|
16
|
+
image && (React.createElement("div", { className: b('image-container') },
|
|
17
|
+
React.createElement(Image, { className: b('image', { size: imageSize }), src: image }))),
|
|
18
|
+
React.createElement("div", { className: b('container', { 'with-margin': Boolean(icon) }) },
|
|
19
|
+
React.createElement("div", { className: b('title-tag-wrapper') },
|
|
20
|
+
React.createElement("span", { className: b('title') }, title),
|
|
21
|
+
"\u00A0",
|
|
22
|
+
navigationTag),
|
|
23
|
+
description && React.createElement(HTML, { className: b('description') }, description)))));
|
|
24
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-products-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
10
|
+
scrollbar-width: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pc-addons-nh-products-popup::-webkit-scrollbar {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pc-addons-nh-products-popup__container {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pc-addons-nh-products-popup > div + div {
|
|
22
|
+
border-top: 1px solid #e4ebf0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pc-addons-nh-products-popup__wrap {
|
|
26
|
+
padding: 24px;
|
|
27
|
+
gap: 24px;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.pc-addons-nh-products-popup__title {
|
|
33
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
34
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
35
|
+
padding: 24px;
|
|
36
|
+
max-width: 108px;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
background-color: #e0e0e0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pc-addons-nh-products-popup__subtitle {
|
|
42
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
43
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
color: #e0e0e0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pc-addons-nh-products-popup__powered-card {
|
|
49
|
+
color: inherit;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
52
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
background-color: #f2f6f9;
|
|
55
|
+
border-radius: 16px;
|
|
56
|
+
padding: 16px;
|
|
57
|
+
display: flex;
|
|
58
|
+
gap: 24px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pc-addons-nh-products-popup__powered-card-wrap {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
flex: 1;
|
|
66
|
+
gap: 20px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pc-addons-nh-products-popup__powered-card-description {
|
|
70
|
+
color: #9fb1bd;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pc-addons-nh-products-popup__powered-card-container-image {
|
|
74
|
+
flex: 1;
|
|
75
|
+
max-width: 140px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pc-addons-nh-products-popup__powered-card-image {
|
|
79
|
+
width: 100%;
|
|
80
|
+
aspect-ratio: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pc-addons-nh-products-popup__powered-card:hover {
|
|
84
|
+
background-color: var(--g-color-base-simple-hover);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pc-addons-nh-products-popup__run-card {
|
|
88
|
+
color: inherit;
|
|
89
|
+
text-decoration: none;
|
|
90
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
91
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
border-radius: 16px;
|
|
94
|
+
background-color: #f2f6f9;
|
|
95
|
+
padding: 16px;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
gap: 20px;
|
|
99
|
+
height: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pc-addons-nh-products-popup__run-card_border {
|
|
103
|
+
border: 1px solid #e4ebf0;
|
|
104
|
+
background-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pc-addons-nh-products-popup__run-card-wrap {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
flex: 1;
|
|
111
|
+
gap: 4px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.pc-addons-nh-products-popup__run-card-description {
|
|
115
|
+
color: #9fb1bd;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pc-addons-nh-products-popup__run-card-image {
|
|
119
|
+
height: 40px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.pc-addons-nh-products-popup__run-card:hover {
|
|
123
|
+
background-color: var(--g-color-base-simple-hover);
|
|
124
|
+
}
|