@doyourjob/gravity-ui-page-constructor-addons 2.1.25 → 2.1.26
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 +169 -0
- package/build/cjs/components/NewHeader/NewHeader.d.ts +13 -0
- package/build/cjs/components/NewHeader/NewHeader.js +80 -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 +16 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +10 -0
- package/build/cjs/components/NewHeader/components/NHLoginButton/NHLoginButton.js +51 -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 +47 -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 +63 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +12 -0
- package/build/cjs/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +33 -0
- package/build/cjs/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +10 -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 +125 -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 +210 -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 +49 -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 +81 -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 +169 -0
- package/build/esm/components/NewHeader/NewHeader.d.ts +14 -0
- package/build/esm/components/NewHeader/NewHeader.js +76 -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 +16 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.d.ts +11 -0
- package/build/esm/components/NewHeader/components/NHLoginButton/NHLoginButton.js +47 -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 +47 -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 +63 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.d.ts +13 -0
- package/build/esm/components/NewHeader/components/NHNavigationItem/NHNavigationItem.js +29 -0
- package/build/esm/components/NewHeader/components/NHNavigationPopup/NHNavigationPopup.css +10 -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 +125 -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 +210 -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 +49 -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 +81 -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,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,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GridColumnSizesType } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { NHPopupItemData } from '../../models';
|
|
4
|
+
export interface NHPopupItemProps extends Partial<NHPopupItemData> {
|
|
5
|
+
hover?: boolean;
|
|
6
|
+
sizes?: GridColumnSizesType;
|
|
7
|
+
className?: string;
|
|
8
|
+
padding?: 'default' | 's';
|
|
9
|
+
imageSize?: 's' | 'xm' | 'm';
|
|
10
|
+
target?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const NHPopupItem: (props: NHPopupItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NHPopupItem = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
|
+
const cn_1 = require("../../../../utils/cn");
|
|
9
|
+
const constants_1 = require("../../constants");
|
|
10
|
+
const NHTag_1 = require("../NHTag/NHTag");
|
|
11
|
+
const b = (0, cn_1.block)('nh-navigation-popup-item');
|
|
12
|
+
const NHPopupItem = (props) => {
|
|
13
|
+
const { icon, url, target, title, tag, description, image, imageSize = 'm', hover, className, sizes = constants_1.DefaultCategorizedItemSizes, padding = 'default', } = props;
|
|
14
|
+
const navigationTag = tag && react_1.default.createElement(NHTag_1.NHNavigationTag, Object.assign({ className: b('tag'), size: "s" }, tag));
|
|
15
|
+
return (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b(null, className), sizes: sizes },
|
|
16
|
+
react_1.default.createElement("a", Object.assign({ className: b('content', { hover, padding, disable: !url }), href: url }, (0, gravity_ui_page_constructor_1.getLinkProps)(url || '', undefined, target)),
|
|
17
|
+
icon && (react_1.default.createElement("div", { className: b('icon-container') },
|
|
18
|
+
react_1.default.createElement(uikit_1.Icon, { className: b('icon'), data: icon, size: 16 }))),
|
|
19
|
+
image && (react_1.default.createElement("div", { className: b('image-container') },
|
|
20
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('image', { size: imageSize }), src: image }))),
|
|
21
|
+
react_1.default.createElement("div", { className: b('container', { 'with-margin': Boolean(icon) }) },
|
|
22
|
+
react_1.default.createElement("div", { className: b('title-tag-wrapper') },
|
|
23
|
+
react_1.default.createElement("span", { className: b('title') }, title),
|
|
24
|
+
"\u00A0",
|
|
25
|
+
navigationTag),
|
|
26
|
+
description && react_1.default.createElement(gravity_ui_page_constructor_1.HTML, { className: b('description') }, description)))));
|
|
27
|
+
};
|
|
28
|
+
exports.NHPopupItem = NHPopupItem;
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
max-width: 1200px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-products-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-products-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pc-addons-nh-products-popup > div + div {
|
|
23
|
+
border-top: 1px solid #e4ebf0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pc-addons-nh-products-popup__wrap {
|
|
27
|
+
padding: 24px;
|
|
28
|
+
gap: 24px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-nh-products-popup__title {
|
|
34
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
35
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
36
|
+
padding: 24px;
|
|
37
|
+
max-width: 108px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
background-color: #e0e0e0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pc-addons-nh-products-popup__subtitle {
|
|
43
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
44
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
color: #e0e0e0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pc-addons-nh-products-popup__powered-card {
|
|
50
|
+
color: inherit;
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
53
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
background-color: #f2f6f9;
|
|
56
|
+
border-radius: 16px;
|
|
57
|
+
padding: 16px;
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 24px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pc-addons-nh-products-popup__powered-card-wrap {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
flex: 1;
|
|
67
|
+
gap: 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pc-addons-nh-products-popup__powered-card-description {
|
|
71
|
+
color: #9fb1bd;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pc-addons-nh-products-popup__powered-card-container-image {
|
|
75
|
+
flex: 1;
|
|
76
|
+
max-width: 140px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pc-addons-nh-products-popup__powered-card-image {
|
|
80
|
+
width: 100%;
|
|
81
|
+
aspect-ratio: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pc-addons-nh-products-popup__powered-card:hover {
|
|
85
|
+
background-color: var(--g-color-base-simple-hover);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pc-addons-nh-products-popup__run-card {
|
|
89
|
+
color: inherit;
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
92
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
border-radius: 16px;
|
|
95
|
+
background-color: #f2f6f9;
|
|
96
|
+
padding: 16px;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 20px;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.pc-addons-nh-products-popup__run-card_border {
|
|
104
|
+
border: 1px solid #e4ebf0;
|
|
105
|
+
background-color: transparent;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.pc-addons-nh-products-popup__run-card-wrap {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
flex: 1;
|
|
112
|
+
gap: 4px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pc-addons-nh-products-popup__run-card-description {
|
|
116
|
+
color: #9fb1bd;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pc-addons-nh-products-popup__run-card-image {
|
|
120
|
+
height: 40px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pc-addons-nh-products-popup__run-card:hover {
|
|
124
|
+
background-color: var(--g-color-base-simple-hover);
|
|
125
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NHProductsPopup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../utils/cn");
|
|
8
|
+
const NHPopupItem_1 = require("../NHPopupItem/NHPopupItem");
|
|
9
|
+
const b = (0, cn_1.block)('nh-products-popup');
|
|
10
|
+
const PoweredCard = ({ title, description, image, url }) => {
|
|
11
|
+
return (react_1.default.createElement("a", Object.assign({ href: url, className: b('powered-card') }, (0, gravity_ui_page_constructor_1.getLinkProps)(url)),
|
|
12
|
+
react_1.default.createElement("div", { className: b('powered-card-wrap') },
|
|
13
|
+
react_1.default.createElement("div", { className: b('powered-card-title') }, title),
|
|
14
|
+
react_1.default.createElement("div", { className: b('powered-card-description') }, description)),
|
|
15
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('powered-card-image'), containerClassName: b('powered-card-container-image'), src: image })));
|
|
16
|
+
};
|
|
17
|
+
const RunCard = ({ title, description, image, border, url }) => {
|
|
18
|
+
return (react_1.default.createElement("a", Object.assign({ href: url, className: b('run-card', { border: border }) }, (0, gravity_ui_page_constructor_1.getLinkProps)(url)),
|
|
19
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('run-card-image'), src: image }),
|
|
20
|
+
react_1.default.createElement("div", { className: b('run-card-wrap') },
|
|
21
|
+
react_1.default.createElement("div", { className: b('run-card-title') }, title),
|
|
22
|
+
react_1.default.createElement("div", { className: b('run-card-description') }, description))));
|
|
23
|
+
};
|
|
24
|
+
const NHProductsPopup = ({ sections, poweredCard }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') }, sections.map((section, index) => {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
const isScaleSection = index === 2; // "Scale" section is usually the 3rd one
|
|
27
|
+
const isRunSection = section.runCards && section.runCards.length > 0;
|
|
28
|
+
let content;
|
|
29
|
+
if (isRunSection) {
|
|
30
|
+
content = (react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
31
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, (_a = section.runCards) === null || _a === void 0 ? void 0 : _a.map((card, cardIndex) => (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { key: `${card.title}-${cardIndex}`, sizes: {
|
|
32
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 3,
|
|
33
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
34
|
+
} },
|
|
35
|
+
react_1.default.createElement(RunCard, Object.assign({}, card))))))));
|
|
36
|
+
}
|
|
37
|
+
else if (isScaleSection) {
|
|
38
|
+
content = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
39
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: {
|
|
40
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 8,
|
|
41
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
42
|
+
} },
|
|
43
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, (_b = section.items) === null || _b === void 0 ? void 0 : _b.map((item, itemIndex) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}` }, item, { hover: true, sizes: {
|
|
44
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 6,
|
|
45
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
46
|
+
} })))))),
|
|
47
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: {
|
|
48
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
49
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
50
|
+
} }, poweredCard && react_1.default.createElement(PoweredCard, Object.assign({}, poweredCard)))));
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
content = (_c = section.items) === null || _c === void 0 ? void 0 : _c.map((item, itemIndex) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: `${item.title}-${itemIndex}` }, item, { hover: true, sizes: {
|
|
54
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
55
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
56
|
+
} }))));
|
|
57
|
+
}
|
|
58
|
+
return (react_1.default.createElement(gravity_ui_page_constructor_1.Row, { key: section.title },
|
|
59
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('title') }, section.title),
|
|
60
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('wrap') },
|
|
61
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
62
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('subtitle') }, section.subtitle)),
|
|
63
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, content))));
|
|
64
|
+
})));
|
|
65
|
+
exports.NHProductsPopup = NHProductsPopup;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-resources-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
max-width: 1200px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-resources-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-resources-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pc-addons-nh-resources-popup__wrap {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
flex: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pc-addons-nh-resources-popup__wrap > div + div {
|
|
30
|
+
border-top: 1px solid #e4ebf0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-nh-resources-popup__group {
|
|
34
|
+
padding: 32px 20px;
|
|
35
|
+
flex: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pc-addons-nh-resources-popup__title {
|
|
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
|
+
color: inherit;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
display: flex;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
margin-bottom: 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pc-addons-nh-resources-popup__title:hover {
|
|
52
|
+
color: var(--g-color-text-link-hover);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pc-addons-nh-resources-popup__subtitle {
|
|
56
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
57
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
color: #9fb1bd;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pc-addons-nh-resources-popup__events {
|
|
63
|
+
width: 300px;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
padding: 32px;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
background-color: #f2f6f9;
|
|
69
|
+
gap: 8px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pc-addons-nh-resources-popup__events-title {
|
|
73
|
+
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
74
|
+
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
color: #9fb1bd;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pc-addons-nh-resources-popup__banner {
|
|
80
|
+
color: inherit;
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
background-color: #f2f6f9;
|
|
83
|
+
border-radius: 16px;
|
|
84
|
+
display: flex;
|
|
85
|
+
padding: 16px;
|
|
86
|
+
gap: 24px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pc-addons-nh-resources-popup__banner-container-image {
|
|
90
|
+
width: 263px;
|
|
91
|
+
height: 148px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pc-addons-nh-resources-popup__banner-image {
|
|
95
|
+
display: block;
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
object-fit: cover;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.pc-addons-nh-resources-popup__banner-container-icon {
|
|
102
|
+
height: 20px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.pc-addons-nh-resources-popup__banner-icon {
|
|
106
|
+
display: block;
|
|
107
|
+
height: 100%;
|
|
108
|
+
object-fit: contain;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pc-addons-nh-resources-popup__banner-wrap {
|
|
112
|
+
flex: 1;
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
justify-content: space-between;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pc-addons-nh-resources-popup__banner-content {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 8px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pc-addons-nh-resources-popup__banner-title {
|
|
125
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
126
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
127
|
+
font-weight: 500;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.pc-addons-nh-resources-popup__banner-description {
|
|
131
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
132
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
color: #9fb1bd;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.pc-addons-nh-resources-popup__banner:hover {
|
|
138
|
+
background-color: var(--g-color-base-simple-hover);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.pc-addons-nh-resources-popup__event-card {
|
|
142
|
+
color: inherit;
|
|
143
|
+
text-decoration: none;
|
|
144
|
+
position: relative;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
border-radius: 16px;
|
|
148
|
+
border: 1px solid #e4ebf0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.pc-addons-nh-resources-popup__event-card-tag {
|
|
152
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
153
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 12px;
|
|
156
|
+
left: 12px;
|
|
157
|
+
padding: 8px 12px;
|
|
158
|
+
border-radius: 8px;
|
|
159
|
+
background-color: #ffffff;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.pc-addons-nh-resources-popup__event-card-container-image {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: 150px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.pc-addons-nh-resources-popup__event-card-image {
|
|
168
|
+
display: block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 100%;
|
|
171
|
+
object-fit: cover;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.pc-addons-nh-resources-popup__event-card-wrap {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
gap: 4px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.pc-addons-nh-resources-popup__event-card-content {
|
|
181
|
+
padding: 16px;
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
gap: 16px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.pc-addons-nh-resources-popup__event-card-title {
|
|
189
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
190
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
191
|
+
font-weight: 500;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.pc-addons-nh-resources-popup__event-card-date {
|
|
195
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
196
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
color: #9fb1bd;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.pc-addons-nh-resources-popup__event-card-location {
|
|
202
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
203
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
204
|
+
font-weight: 500;
|
|
205
|
+
color: #9fb1bd;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.pc-addons-nh-resources-popup__event-card:hover {
|
|
209
|
+
background-color: var(--g-color-base-simple-hover);
|
|
210
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NHResourcesPopup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../utils/cn");
|
|
8
|
+
const NHPopupItem_1 = require("../NHPopupItem/NHPopupItem");
|
|
9
|
+
const b = (0, cn_1.block)('nh-resources-popup');
|
|
10
|
+
const EventCard = ({ url, tag, image, date, title, location }) => {
|
|
11
|
+
return (react_1.default.createElement("a", Object.assign({ href: url, className: b('event-card') }, (0, gravity_ui_page_constructor_1.getLinkProps)(url)),
|
|
12
|
+
react_1.default.createElement("div", { className: b('event-card-tag') }, tag),
|
|
13
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('event-card-image'), containerClassName: b('event-card-container-image'), src: image }),
|
|
14
|
+
react_1.default.createElement("div", { className: b('event-card-content') },
|
|
15
|
+
react_1.default.createElement("div", { className: b('event-card-wrap') },
|
|
16
|
+
react_1.default.createElement("div", { className: b('event-card-date') }, date),
|
|
17
|
+
react_1.default.createElement("div", { className: b('event-card-title') }, title)),
|
|
18
|
+
react_1.default.createElement("div", { className: b('event-card-location') }, location))));
|
|
19
|
+
};
|
|
20
|
+
const NHResourcesPopup = ({ groups, banner, events }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') },
|
|
21
|
+
react_1.default.createElement("div", { className: b('wrap') },
|
|
22
|
+
groups.map((group) => (react_1.default.createElement("div", { className: b('group'), key: group.title },
|
|
23
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
24
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: { [gravity_ui_page_constructor_1.GridColumnSize.Md]: 8, [gravity_ui_page_constructor_1.GridColumnSize.All]: 12 } },
|
|
25
|
+
react_1.default.createElement("a", Object.assign({ href: group.url, className: b('title') }, (0, gravity_ui_page_constructor_1.getLinkProps)(group.url)), group.title),
|
|
26
|
+
react_1.default.createElement("div", { className: b('subtitle') }, group.subtitle)),
|
|
27
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: { [gravity_ui_page_constructor_1.GridColumnSize.Md]: 4, [gravity_ui_page_constructor_1.GridColumnSize.All]: 12 } })),
|
|
28
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, group.items.map((item) => (react_1.default.createElement(NHPopupItem_1.NHPopupItem, Object.assign({ key: item.title, hover: true }, item)))))))),
|
|
29
|
+
banner && (react_1.default.createElement("div", { className: b('group') },
|
|
30
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
31
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
|
|
32
|
+
react_1.default.createElement("a", Object.assign({ href: banner.url, className: b('banner') }, (0, gravity_ui_page_constructor_1.getLinkProps)(banner.url)),
|
|
33
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('banner-image'), containerClassName: b('banner-container-image'), src: banner.image }),
|
|
34
|
+
react_1.default.createElement("div", { className: b('banner-wrap') },
|
|
35
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Image, { className: b('banner-icon'), containerClassName: b('banner-container-icon'), src: banner.icon }),
|
|
36
|
+
react_1.default.createElement("div", { className: b('banner-content') },
|
|
37
|
+
react_1.default.createElement("div", { className: b('banner-title') }, banner.title),
|
|
38
|
+
react_1.default.createElement("div", { className: b('banner-description') }, banner.description))))))))),
|
|
39
|
+
events && (react_1.default.createElement("div", { className: b('events') },
|
|
40
|
+
react_1.default.createElement("div", { className: b('events-title') }, events.title),
|
|
41
|
+
events.items.map((event) => (react_1.default.createElement(EventCard, Object.assign({ key: event.title }, event))))))));
|
|
42
|
+
exports.NHResourcesPopup = NHResourcesPopup;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-nh-solutions-popup {
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
box-shadow: 0 4px 24px var(--g-color-base-generic), 0 2px 8px var(--g-color-base-generic);
|
|
6
|
+
max-height: calc(100vh - 64px - 64px);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
max-width: 1200px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-radius: var(--pc-border-radius, 24px);
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pc-addons-nh-solutions-popup::-webkit-scrollbar {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pc-addons-nh-solutions-popup__container {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pc-addons-nh-solutions-popup > div + div {
|
|
23
|
+
border-top: 1px solid #e4ebf0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pc-addons-nh-solutions-popup__wrap {
|
|
27
|
+
padding: 24px;
|
|
28
|
+
gap: 24px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-nh-solutions-popup__head {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pc-addons-nh-solutions-popup__title {
|
|
39
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
40
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pc-addons-nh-solutions-popup__subtitle {
|
|
45
|
+
font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
|
|
46
|
+
line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
|
|
47
|
+
font-weight: 700;
|
|
48
|
+
color: #e0e0e0;
|
|
49
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NHSolutionsPopup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../utils/cn");
|
|
8
|
+
const NHPopupItem_1 = require("../NHPopupItem/NHPopupItem");
|
|
9
|
+
const b = (0, cn_1.block)('nh-solutions-popup');
|
|
10
|
+
const NHSolutionsPopup = ({ sections }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { className: b(), containerClass: b('container') }, sections.map((section) => (react_1.default.createElement(gravity_ui_page_constructor_1.Row, { key: section.title },
|
|
11
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('wrap') },
|
|
12
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
13
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('head') },
|
|
14
|
+
react_1.default.createElement("div", { className: b('title') }, section.title),
|
|
15
|
+
react_1.default.createElement("div", { className: b('subtitle') }, section.subtitle))),
|
|
16
|
+
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, { hover: true, sizes: {
|
|
17
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
18
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
19
|
+
} })))))))))));
|
|
20
|
+
exports.NHSolutionsPopup = NHSolutionsPopup;
|