@doyourjob/gravity-ui-page-constructor-addons 2.1.31 → 2.1.32

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.
Files changed (67) hide show
  1. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
  2. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +3 -0
  3. package/build/cjs/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +55 -0
  4. package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
  5. package/build/cjs/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
  6. package/build/cjs/components/NewHeader/components/NHNavigation/NHNavigation.js +5 -21
  7. package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.css +19 -3
  8. package/build/cjs/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
  9. package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
  10. package/build/cjs/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
  11. package/build/cjs/components/NewHeader/models.d.ts +31 -109
  12. package/build/cjs/components/NewHeader/models.js +2 -13
  13. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.css +166 -0
  14. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.d.ts +4 -0
  15. package/build/esm/components/NewHeader/components/NHDefaultPopup/NHDefaultPopup.js +51 -0
  16. package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.css +5 -31
  17. package/build/esm/components/NewHeader/components/NHLoginPopup/NHLoginPopup.js +3 -4
  18. package/build/esm/components/NewHeader/components/NHNavigation/NHNavigation.js +6 -22
  19. package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.css +19 -3
  20. package/build/esm/components/NewHeader/components/NHPopupItem/NHPopupItem.d.ts +0 -2
  21. package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.css +1 -2
  22. package/build/esm/components/NewHeader/components/NHProductsPopup/NHProductsPopup.js +5 -5
  23. package/build/esm/components/NewHeader/models.d.ts +31 -109
  24. package/build/esm/components/NewHeader/models.js +1 -12
  25. package/package.json +1 -1
  26. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
  27. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -3
  28. package/build/cjs/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -18
  29. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
  30. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -3
  31. package/build/cjs/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -22
  32. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
  33. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -3
  34. package/build/cjs/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -13
  35. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
  36. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -3
  37. package/build/cjs/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -42
  38. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
  39. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -3
  40. package/build/cjs/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -17
  41. package/build/cjs/components/NewHeader/components/NHTag/NHTag.css +0 -21
  42. package/build/cjs/components/NewHeader/components/NHTag/NHTag.d.ts +0 -6
  43. package/build/cjs/components/NewHeader/components/NHTag/NHTag.js +0 -22
  44. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
  45. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -3
  46. package/build/cjs/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -21
  47. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.css +0 -30
  48. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.d.ts +0 -4
  49. package/build/esm/components/NewHeader/components/NHCompanyPopup/NHCompanyPopup.js +0 -14
  50. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.css +0 -86
  51. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.d.ts +0 -4
  52. package/build/esm/components/NewHeader/components/NHInvestorPopup/NHInvestorPopup.js +0 -18
  53. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.css +0 -8
  54. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.d.ts +0 -4
  55. package/build/esm/components/NewHeader/components/NHMediumPopup/NHMediumPopup.js +0 -9
  56. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.css +0 -209
  57. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.d.ts +0 -4
  58. package/build/esm/components/NewHeader/components/NHResourcesPopup/NHResourcesPopup.js +0 -38
  59. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.css +0 -48
  60. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.d.ts +0 -4
  61. package/build/esm/components/NewHeader/components/NHSolutionsPopup/NHSolutionsPopup.js +0 -13
  62. package/build/esm/components/NewHeader/components/NHTag/NHTag.css +0 -21
  63. package/build/esm/components/NewHeader/components/NHTag/NHTag.d.ts +0 -7
  64. package/build/esm/components/NewHeader/components/NHTag/NHTag.js +0 -18
  65. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.css +0 -80
  66. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.d.ts +0 -4
  67. package/build/esm/components/NewHeader/components/NHWhyPopup/NHWhyPopup.js +0 -17
@@ -1,209 +0,0 @@
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
- width: 100%;
9
- border-radius: var(--pc-border-radius, 24px);
10
- scrollbar-width: none;
11
- }
12
-
13
- .pc-addons-nh-resources-popup::-webkit-scrollbar {
14
- display: none;
15
- }
16
-
17
- .pc-addons-nh-resources-popup__container {
18
- padding: 0;
19
- display: flex;
20
- }
21
-
22
- .pc-addons-nh-resources-popup__wrap {
23
- display: flex;
24
- flex-direction: column;
25
- flex: 1;
26
- }
27
-
28
- .pc-addons-nh-resources-popup__wrap > div + div {
29
- border-top: 1px solid #e4ebf0;
30
- }
31
-
32
- .pc-addons-nh-resources-popup__group {
33
- padding: 32px 20px;
34
- flex: 1;
35
- display: flex;
36
- flex-direction: column;
37
- gap: 24px;
38
- }
39
-
40
- .pc-addons-nh-resources-popup__title {
41
- font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
42
- line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
43
- color: inherit;
44
- text-decoration: none;
45
- display: flex;
46
- font-weight: 600;
47
- margin-bottom: 8px;
48
- }
49
-
50
- .pc-addons-nh-resources-popup__title:hover {
51
- color: var(--g-color-text-link-hover);
52
- }
53
-
54
- .pc-addons-nh-resources-popup__subtitle {
55
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
56
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
57
- font-weight: 500;
58
- color: #9fb1bd;
59
- }
60
-
61
- .pc-addons-nh-resources-popup__events {
62
- width: 300px;
63
- flex-shrink: 0;
64
- padding: 32px;
65
- display: flex;
66
- flex-direction: column;
67
- background-color: #f2f6f9;
68
- gap: 8px;
69
- }
70
-
71
- .pc-addons-nh-resources-popup__events-title {
72
- font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
73
- line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
74
- font-weight: 500;
75
- color: #9fb1bd;
76
- }
77
-
78
- .pc-addons-nh-resources-popup__banner {
79
- color: inherit;
80
- text-decoration: none;
81
- background-color: #f2f6f9;
82
- border-radius: 16px;
83
- display: flex;
84
- padding: 16px;
85
- gap: 24px;
86
- }
87
-
88
- .pc-addons-nh-resources-popup__banner-container-image {
89
- width: 263px;
90
- height: 148px;
91
- }
92
-
93
- .pc-addons-nh-resources-popup__banner-image {
94
- display: block;
95
- width: 100%;
96
- height: 100%;
97
- object-fit: cover;
98
- }
99
-
100
- .pc-addons-nh-resources-popup__banner-container-icon {
101
- height: 20px;
102
- }
103
-
104
- .pc-addons-nh-resources-popup__banner-icon {
105
- display: block;
106
- height: 100%;
107
- object-fit: contain;
108
- }
109
-
110
- .pc-addons-nh-resources-popup__banner-wrap {
111
- flex: 1;
112
- display: flex;
113
- flex-direction: column;
114
- justify-content: space-between;
115
- }
116
-
117
- .pc-addons-nh-resources-popup__banner-content {
118
- display: flex;
119
- flex-direction: column;
120
- gap: 8px;
121
- }
122
-
123
- .pc-addons-nh-resources-popup__banner-title {
124
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
125
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
126
- font-weight: 500;
127
- }
128
-
129
- .pc-addons-nh-resources-popup__banner-description {
130
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
131
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
132
- font-weight: 500;
133
- color: #9fb1bd;
134
- }
135
-
136
- .pc-addons-nh-resources-popup__banner:hover {
137
- background-color: var(--g-color-base-simple-hover);
138
- }
139
-
140
- .pc-addons-nh-resources-popup__event-card {
141
- color: inherit;
142
- text-decoration: none;
143
- position: relative;
144
- display: flex;
145
- flex-direction: column;
146
- border-radius: 16px;
147
- border: 1px solid #e4ebf0;
148
- }
149
-
150
- .pc-addons-nh-resources-popup__event-card-tag {
151
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
152
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
153
- position: absolute;
154
- top: 12px;
155
- left: 12px;
156
- padding: 8px 12px;
157
- border-radius: 8px;
158
- background-color: #ffffff;
159
- }
160
-
161
- .pc-addons-nh-resources-popup__event-card-container-image {
162
- width: 100%;
163
- height: 150px;
164
- }
165
-
166
- .pc-addons-nh-resources-popup__event-card-image {
167
- display: block;
168
- width: 100%;
169
- height: 100%;
170
- object-fit: cover;
171
- }
172
-
173
- .pc-addons-nh-resources-popup__event-card-wrap {
174
- display: flex;
175
- flex-direction: column;
176
- gap: 4px;
177
- }
178
-
179
- .pc-addons-nh-resources-popup__event-card-content {
180
- padding: 16px;
181
- display: flex;
182
- flex-direction: column;
183
- justify-content: center;
184
- gap: 16px;
185
- }
186
-
187
- .pc-addons-nh-resources-popup__event-card-title {
188
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
189
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
190
- font-weight: 500;
191
- }
192
-
193
- .pc-addons-nh-resources-popup__event-card-date {
194
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
195
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
196
- font-weight: 500;
197
- color: #9fb1bd;
198
- }
199
-
200
- .pc-addons-nh-resources-popup__event-card-location {
201
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
202
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
203
- font-weight: 500;
204
- color: #9fb1bd;
205
- }
206
-
207
- .pc-addons-nh-resources-popup__event-card:hover {
208
- background-color: var(--g-color-base-simple-hover);
209
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { NHResourcesPopupData } from '../../models';
3
- import './NHResourcesPopup.css';
4
- export declare const NHResourcesPopup: ({ groups, banner, events }: NHResourcesPopupData) => React.JSX.Element;
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import { Col, Grid, GridColumnSize, Image, Row, getLinkProps, } from '@doyourjob/gravity-ui-page-constructor';
3
- import { block } from '../../../../utils/cn';
4
- import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
5
- import './NHResourcesPopup.css';
6
- const b = block('nh-resources-popup');
7
- const EventCard = ({ url, tag, image, date, title, location }) => {
8
- return (React.createElement("a", Object.assign({ href: url, className: b('event-card') }, getLinkProps(url)),
9
- React.createElement("div", { className: b('event-card-tag') }, tag),
10
- React.createElement(Image, { className: b('event-card-image'), containerClassName: b('event-card-container-image'), src: image }),
11
- React.createElement("div", { className: b('event-card-content') },
12
- React.createElement("div", { className: b('event-card-wrap') },
13
- React.createElement("div", { className: b('event-card-date') }, date),
14
- React.createElement("div", { className: b('event-card-title') }, title)),
15
- React.createElement("div", { className: b('event-card-location') }, location))));
16
- };
17
- export const NHResourcesPopup = ({ groups, banner, events }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
18
- React.createElement("div", { className: b('wrap') },
19
- groups.map((group) => (React.createElement("div", { className: b('group'), key: group.title },
20
- React.createElement(Row, null,
21
- React.createElement(Col, { sizes: { [GridColumnSize.Md]: 8, [GridColumnSize.All]: 12 } },
22
- React.createElement("a", Object.assign({ href: group.url, className: b('title') }, getLinkProps(group.url)), group.title),
23
- React.createElement("div", { className: b('subtitle') }, group.subtitle)),
24
- React.createElement(Col, { sizes: { [GridColumnSize.Md]: 4, [GridColumnSize.All]: 12 } })),
25
- React.createElement(Row, null, group.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title, hover: true }, item)))))))),
26
- banner && (React.createElement("div", { className: b('group') },
27
- React.createElement(Row, null,
28
- React.createElement(Col, null,
29
- React.createElement("a", Object.assign({ href: banner.url, className: b('banner') }, getLinkProps(banner.url)),
30
- React.createElement(Image, { className: b('banner-image'), containerClassName: b('banner-container-image'), src: banner.image }),
31
- React.createElement("div", { className: b('banner-wrap') },
32
- React.createElement(Image, { className: b('banner-icon'), containerClassName: b('banner-container-icon'), src: banner.icon }),
33
- React.createElement("div", { className: b('banner-content') },
34
- React.createElement("div", { className: b('banner-title') }, banner.title),
35
- React.createElement("div", { className: b('banner-description') }, banner.description))))))))),
36
- events && (React.createElement("div", { className: b('events') },
37
- React.createElement("div", { className: b('events-title') }, events.title),
38
- events.items.map((event) => (React.createElement(EventCard, Object.assign({ key: event.title }, event))))))));
@@ -1,48 +0,0 @@
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
- width: 100%;
9
- border-radius: var(--pc-border-radius, 24px);
10
- scrollbar-width: none;
11
- }
12
-
13
- .pc-addons-nh-solutions-popup::-webkit-scrollbar {
14
- display: none;
15
- }
16
-
17
- .pc-addons-nh-solutions-popup__container {
18
- padding: 0;
19
- }
20
-
21
- .pc-addons-nh-solutions-popup > div + div {
22
- border-top: 1px solid #e4ebf0;
23
- }
24
-
25
- .pc-addons-nh-solutions-popup__wrap {
26
- padding: 24px;
27
- gap: 24px;
28
- display: flex;
29
- flex-direction: column;
30
- }
31
-
32
- .pc-addons-nh-solutions-popup__head {
33
- display: flex;
34
- gap: 24px;
35
- }
36
-
37
- .pc-addons-nh-solutions-popup__title {
38
- font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
39
- line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
40
- font-weight: 600;
41
- }
42
-
43
- .pc-addons-nh-solutions-popup__subtitle {
44
- font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
45
- line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
46
- font-weight: 700;
47
- color: #e0e0e0;
48
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { NHSolutionsPopupData } from '../../models';
3
- import './NHSolutionsPopup.css';
4
- export declare const NHSolutionsPopup: ({ sections }: NHSolutionsPopupData) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { Col, Grid, Row } from '@doyourjob/gravity-ui-page-constructor';
3
- import { block } from '../../../../utils/cn';
4
- import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
5
- import './NHSolutionsPopup.css';
6
- const b = block('nh-solutions-popup');
7
- export const NHSolutionsPopup = ({ sections }) => (React.createElement(Grid, { className: b(), containerClass: b('container') }, sections.map((section) => (React.createElement(Row, { key: section.title },
8
- React.createElement(Col, { className: b('wrap') },
9
- React.createElement(Row, null,
10
- React.createElement(Col, { className: b('head') },
11
- React.createElement("div", { className: b('title') }, section.title),
12
- React.createElement("div", { className: b('subtitle') }, section.subtitle))),
13
- React.createElement(Row, null, section.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { hover: true })))))))))));
@@ -1,21 +0,0 @@
1
- /* use this for style redefinitions to awoid problems with
2
- unpredictable css rules order in build */
3
- .pc-addons-nh-navigation-tag {
4
- font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
5
- line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
6
- display: inline-block;
7
- padding: 0 8px;
8
- border-radius: 2px;
9
- height: 20px;
10
- line-height: 20px;
11
- border-radius: 4px;
12
- text-transform: capitalize;
13
- }
14
-
15
- .pc-addons-nh-navigation-tag_size_s {
16
- font-size: var(--g-text-caption-2-font-size, var(--pc-text-caption-2-font-size));
17
- line-height: var(--g-text-caption-2-line-height, var(--pc-text-caption-2-line-height));
18
- padding: 0 4px;
19
- height: 16px;
20
- line-height: 16px;
21
- }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ClassNameProps } from '@doyourjob/gravity-ui-page-constructor';
3
- import { NHNavigationTag as NHNavigationTagModel } from '../../models';
4
- import './NHTag.css';
5
- export interface NHNavigationTagProps extends NHNavigationTagModel, ClassNameProps {
6
- }
7
- export declare const NHNavigationTag: ({ text, color, textColor, className, size, }: NHNavigationTagProps) => React.JSX.Element;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { block } from '../../../../utils/cn';
3
- import { NHNavigationTagColor } from '../../models';
4
- import './NHTag.css';
5
- const b = block('nh-navigation-tag');
6
- const getColor = (color) => {
7
- switch (color) {
8
- case NHNavigationTagColor.Yellow:
9
- return 'var(--pc-addons-navigation-color-tag-yellow)';
10
- case NHNavigationTagColor.Blue:
11
- return 'var(--pc-addons-navigation-color-tag-blue)';
12
- case NHNavigationTagColor.Green:
13
- return 'var(--pc-addons-navigation-color-tag-green)';
14
- default:
15
- return color;
16
- }
17
- };
18
- export const NHNavigationTag = ({ text, color = NHNavigationTagColor.Yellow, textColor, className, size = 'm', }) => (React.createElement("div", { className: b({ size }, className), style: { backgroundColor: getColor(color), color: textColor } }, text));
@@ -1,80 +0,0 @@
1
- /* use this for style redefinitions to awoid problems with
2
- unpredictable css rules order in build */
3
- .pc-addons-nh-why-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-why-popup::-webkit-scrollbar {
14
- display: none;
15
- }
16
-
17
- .pc-addons-nh-why-popup__container {
18
- padding: 0;
19
- display: flex;
20
- }
21
-
22
- .pc-addons-nh-why-popup__wrap {
23
- padding: 20px;
24
- display: flex;
25
- gap: 16px;
26
- flex: 1;
27
- }
28
-
29
- .pc-addons-nh-why-popup__group {
30
- flex: 1;
31
- }
32
-
33
- .pc-addons-nh-why-popup__title {
34
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
35
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
36
- padding: 12px;
37
- font-weight: 500;
38
- color: #9fb1bd;
39
- }
40
-
41
- .pc-addons-nh-why-popup__card {
42
- font-weight: 500;
43
- width: 300px;
44
- flex-shrink: 0;
45
- padding: 0;
46
- display: flex;
47
- flex-direction: column;
48
- background-color: #f2f6f9;
49
- }
50
-
51
- .pc-addons-nh-why-popup__card-wrap {
52
- display: flex;
53
- flex-direction: column;
54
- justify-content: center;
55
- padding: 24px;
56
- gap: 20px;
57
- }
58
-
59
- .pc-addons-nh-why-popup__card-title {
60
- font-size: var(--g-text-header-1-font-size, var(--pc-text-header-1-font-size));
61
- line-height: var(--g-text-header-1-line-height, var(--pc-text-header-1-line-height));
62
- color: #9fb1bd;
63
- }
64
-
65
- .pc-addons-nh-why-popup__card-description {
66
- font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
67
- line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
68
- color: #9fb1bd;
69
- }
70
-
71
- .pc-addons-nh-why-popup__card-container-image {
72
- width: 100%;
73
- }
74
-
75
- .pc-addons-nh-why-popup__card-image {
76
- width: 100%;
77
- aspect-ratio: 300/244;
78
- background-color: #99a5ae;
79
- display: block;
80
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { NHWhyPopupData } from '../../models';
3
- import './NHWhyPopup.css';
4
- export declare const NHWhyPopup: ({ groups, card }: NHWhyPopupData) => React.JSX.Element;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { Col, Grid, Image, Row } from '@doyourjob/gravity-ui-page-constructor';
3
- import { block } from '../../../../utils/cn';
4
- import { NHPopupItem } from '../NHPopupItem/NHPopupItem';
5
- import './NHWhyPopup.css';
6
- const b = block('nh-why-popup');
7
- export const NHWhyPopup = ({ groups, card }) => (React.createElement(Grid, { className: b(), containerClass: b('container') },
8
- React.createElement("div", { className: b('wrap') }, groups.map((group) => (React.createElement("div", { className: b('group'), key: group.title },
9
- React.createElement(Row, null,
10
- React.createElement(Col, null,
11
- React.createElement("div", { className: b('title') }, group.title))),
12
- React.createElement(Row, null, group.items.map((item) => (React.createElement(NHPopupItem, Object.assign({ key: item.title }, item, { hover: true }))))))))),
13
- card && (React.createElement("div", { className: b('card') },
14
- React.createElement(Image, { className: b('card-image'), containerClassName: b('card-container-image'), src: card.image }),
15
- React.createElement("div", { className: b('card-wrap') },
16
- React.createElement("div", { className: b('card-title') }, card.title),
17
- React.createElement("div", { className: b('card-description') }, card.description))))));