@jetbrains/kotlin-web-site-ui 4.13.0 → 4.14.0
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/out/components/header/header.js +1 -1
- package/out/components/header/horizontal-menu/horizontal-menu.js +2 -1
- package/out/components/header/index.css +14 -12
- package/out/components/layout-v2/index.css +6 -6
- package/out/components/quotes-slider/quotes-slider.js +1 -1
- package/out/components/top-menu/index.css +5 -1
- package/out/components/top-menu/top-menu.js +1 -1
- package/out/components/top-menu/vertical-menu/vertical-menu.js +4 -1
- package/out/components/top-menu/vertical-menu/vertical-menu.module.pcss.js +1 -0
- package/package.json +6 -6
|
@@ -22,7 +22,7 @@ var SearchResultView;
|
|
|
22
22
|
SearchResultView[SearchResultView["Wide"] = 1] = "Wide";
|
|
23
23
|
})(SearchResultView || (SearchResultView = {}));
|
|
24
24
|
|
|
25
|
-
const MENU_POPUP_BREAKPOINT =
|
|
25
|
+
const MENU_POPUP_BREAKPOINT = 960;
|
|
26
26
|
const Header = forwardRef(({
|
|
27
27
|
productWebUrl,
|
|
28
28
|
hasSearch = false,
|
|
@@ -2,6 +2,7 @@ import classNames from 'classnames';
|
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import styles from './horizontal-menu.module.pcss.js';
|
|
4
4
|
import { useTextStyles } from '@rescui/typography';
|
|
5
|
+
import { DownOutlineIcon } from '@rescui/icons';
|
|
5
6
|
|
|
6
7
|
const DropdownMenu = ({
|
|
7
8
|
items,
|
|
@@ -57,7 +58,7 @@ const HorizontalMenuItem = ({
|
|
|
57
58
|
[styles.itemActive]: item.isActive,
|
|
58
59
|
[styles.expanded]: isExpanded && !!item.items?.length
|
|
59
60
|
})
|
|
60
|
-
}, item.title), !!item.items?.length && React__default.createElement(DropdownMenu, {
|
|
61
|
+
}, item.title, !!item.items?.length && React__default.createElement(DownOutlineIcon, null)), !!item.items?.length && React__default.createElement(DropdownMenu, {
|
|
61
62
|
items: item.items,
|
|
62
63
|
isExpanded: isExpanded,
|
|
63
64
|
alignRight: isLast,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
box-shadow: none;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
@media (max-width:
|
|
91
|
+
@media (max-width: 960px) {
|
|
92
92
|
.ktl-header-module_header-menu_wh71L {
|
|
93
93
|
padding: 0 0 0 16px;
|
|
94
94
|
height: var(--ktl-header-height-mobile);
|
|
@@ -157,7 +157,9 @@
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.ktl-horizontal-menu-module_menu-item_CXDEW {
|
|
160
|
-
display:
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 4px;
|
|
161
163
|
line-height: 60px !important;
|
|
162
164
|
color: rgba(255, 255, 255, 0.75);
|
|
163
165
|
border-top: 2px solid transparent;
|
|
@@ -261,7 +263,7 @@
|
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
|
|
264
|
-
@media (max-width:
|
|
266
|
+
@media (max-width: 960px) {
|
|
265
267
|
.ktl-horizontal-menu-module_nav_gbA7M {
|
|
266
268
|
display: none;
|
|
267
269
|
}
|
|
@@ -341,7 +343,7 @@
|
|
|
341
343
|
color: #ffffff;
|
|
342
344
|
}
|
|
343
345
|
|
|
344
|
-
@media (max-width:
|
|
346
|
+
@media (max-width: 960px) {
|
|
345
347
|
|
|
346
348
|
.ktl-search-button-module_button_YHJPv {
|
|
347
349
|
display: none
|
|
@@ -379,7 +381,7 @@
|
|
|
379
381
|
overflow: hidden;
|
|
380
382
|
}
|
|
381
383
|
|
|
382
|
-
@media (min-width:
|
|
384
|
+
@media (min-width: 961px) {
|
|
383
385
|
.ktl-result-module_result_EKhUw {
|
|
384
386
|
padding: 16px 32px;
|
|
385
387
|
}
|
|
@@ -425,7 +427,7 @@
|
|
|
425
427
|
overflow: hidden;
|
|
426
428
|
}
|
|
427
429
|
|
|
428
|
-
@media (min-width:
|
|
430
|
+
@media (min-width: 961px) {
|
|
429
431
|
.ktl-list-module_results_LlxqY {
|
|
430
432
|
max-height: 434px;
|
|
431
433
|
}
|
|
@@ -452,7 +454,7 @@
|
|
|
452
454
|
overflow-wrap: break-word;
|
|
453
455
|
}
|
|
454
456
|
|
|
455
|
-
@media (min-width:
|
|
457
|
+
@media (min-width: 961px) {
|
|
456
458
|
.ktl-empty-module_empty_xh1i- {
|
|
457
459
|
padding: 32px;
|
|
458
460
|
}
|
|
@@ -491,7 +493,7 @@
|
|
|
491
493
|
}*/
|
|
492
494
|
|
|
493
495
|
|
|
494
|
-
@media (min-width:
|
|
496
|
+
@media (min-width: 961px) {
|
|
495
497
|
.ktl-quick-search-module_wrapper_kkbQQ {
|
|
496
498
|
left: 0;
|
|
497
499
|
right: 0;
|
|
@@ -499,7 +501,7 @@
|
|
|
499
501
|
}
|
|
500
502
|
|
|
501
503
|
|
|
502
|
-
@media (min-width:
|
|
504
|
+
@media (min-width: 961px) and (max-width: 1024px) {
|
|
503
505
|
.ktl-quick-search-module_apiReferenceWrapper_jv98t {
|
|
504
506
|
width: calc(100vw - 64px);
|
|
505
507
|
left: auto;
|
|
@@ -669,7 +671,7 @@
|
|
|
669
671
|
margin-top: 14px;
|
|
670
672
|
}
|
|
671
673
|
|
|
672
|
-
@media (min-width:
|
|
674
|
+
@media (min-width: 961px) {
|
|
673
675
|
.ktl-full-search-module_fullSearch_MTU8t {
|
|
674
676
|
display: block;
|
|
675
677
|
}
|
|
@@ -734,7 +736,7 @@
|
|
|
734
736
|
opacity: 1;
|
|
735
737
|
}
|
|
736
738
|
|
|
737
|
-
@media (max-width:
|
|
739
|
+
@media (max-width: 960px) {
|
|
738
740
|
.ktl-search-box-module_searchBox_0SgE9 {
|
|
739
741
|
background: var(--ktl-dark-100);
|
|
740
742
|
width: auto;
|
|
@@ -747,7 +749,7 @@
|
|
|
747
749
|
}
|
|
748
750
|
}
|
|
749
751
|
|
|
750
|
-
@media (min-width:
|
|
752
|
+
@media (min-width: 961px) {
|
|
751
753
|
.ktl-search-box-module_searchMobileClose_fBF7e {
|
|
752
754
|
display: none;
|
|
753
755
|
}
|
|
@@ -5,42 +5,42 @@
|
|
|
5
5
|
--ktl-layout-width: 1144px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
@media (
|
|
8
|
+
@media (width <= 1190px) {.ktl-layout-v2,
|
|
9
9
|
.ktl-layout-to-2 .ktl-layout,
|
|
10
10
|
.ktl-layout-to-2 .ktl-layout {
|
|
11
11
|
--ktl-layout-width: 952px;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (
|
|
15
|
+
@media (width <= 808px) {.ktl-layout-v2,
|
|
16
16
|
.ktl-layout-to-2 .ktl-layout,
|
|
17
17
|
.ktl-layout-to-2 .ktl-layout {
|
|
18
18
|
--ktl-layout-spacing: 48px;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@media (
|
|
22
|
+
@media (width <= 1000px) {.ktl-layout-v2,
|
|
23
23
|
.ktl-layout-to-2 .ktl-layout,
|
|
24
24
|
.ktl-layout-to-2 .ktl-layout {
|
|
25
25
|
--ktl-layout-width: 760px;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@media (
|
|
29
|
+
@media (width <= 808px) {.ktl-layout-v2,
|
|
30
30
|
.ktl-layout-to-2 .ktl-layout,
|
|
31
31
|
.ktl-layout-to-2 .ktl-layout {
|
|
32
32
|
--ktl-layout-width: 568px;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@media (
|
|
36
|
+
@media (width <= 640px) {.ktl-layout-v2,
|
|
37
37
|
.ktl-layout-to-2 .ktl-layout,
|
|
38
38
|
.ktl-layout-to-2 .ktl-layout {
|
|
39
39
|
--ktl-layout-width: 424px;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@media (
|
|
43
|
+
@media (width <= 472px) {.ktl-layout-v2,
|
|
44
44
|
.ktl-layout-to-2 .ktl-layout,
|
|
45
45
|
.ktl-layout-to-2 .ktl-layout {
|
|
46
46
|
--ktl-layout-width: 312px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useCallback } from 'react';
|
|
2
|
-
import SwipeableViews from 'react-swipeable-views';
|
|
2
|
+
import SwipeableViews from 'react-swipeable-views-react-18-fix';
|
|
3
3
|
import { ArrowLeftIcon, ArrowRightIcon } from '@rescui/icons';
|
|
4
4
|
import { useTheme } from '@rescui/ui-contexts';
|
|
5
5
|
import { useTextStyles } from '@rescui/typography';
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
justify-self: flex-start;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
@media (max-width:
|
|
72
|
+
@media (max-width: 960px) {
|
|
73
73
|
.ktl-top-menu-module_top-menu_PRX9X {
|
|
74
74
|
height: var(--ktl-header-height-mobile);
|
|
75
75
|
padding: 0 6px 0 4px;
|
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
color: black;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
.ktl-vertical-menu-module_icon-dark-theme_mwAfx {
|
|
185
|
+
color: white;
|
|
186
|
+
}
|
|
187
|
+
|
|
184
188
|
.ktl-vertical-menu-module_dropdown-header_77lTy {
|
|
185
189
|
/* workaround */
|
|
186
190
|
margin-top: calc(var(--ktl-header-height-mobile) * -1);
|
|
@@ -6,7 +6,7 @@ import { useTextStyles } from '@rescui/typography';
|
|
|
6
6
|
import { HorizontalMenu } from './horizontal-menu/horizontal-menu.js';
|
|
7
7
|
import { VerticalMenu } from './vertical-menu/vertical-menu.js';
|
|
8
8
|
import useResizeObserver from '@react-hook/resize-observer';
|
|
9
|
-
const BREAKPOINT_XS =
|
|
9
|
+
const BREAKPOINT_XS = 960;
|
|
10
10
|
const TopMenu = forwardRef(({
|
|
11
11
|
homeUrl,
|
|
12
12
|
title,
|
|
@@ -20,6 +20,7 @@ const VerticalMenu = ({
|
|
|
20
20
|
topMenuRef
|
|
21
21
|
}) => {
|
|
22
22
|
const textCn = useTextStyles();
|
|
23
|
+
const theme = useTheme();
|
|
23
24
|
|
|
24
25
|
const _items = (mobileOverview ? [{
|
|
25
26
|
title: mobileTitle,
|
|
@@ -55,7 +56,9 @@ const VerticalMenu = ({
|
|
|
55
56
|
hardness: 'hard'
|
|
56
57
|
})
|
|
57
58
|
}, activeItem.title), React__default.createElement(SvgArrowDropdownIcon, {
|
|
58
|
-
className: styles.icon
|
|
59
|
+
className: classNames(styles.icon, {
|
|
60
|
+
[styles.iconDarkTheme]: theme === 'dark'
|
|
61
|
+
})
|
|
59
62
|
})), !!portalRoot && isExpanded && createPortal(React__default.createElement(VerticalMenuDropDown, {
|
|
60
63
|
title: title,
|
|
61
64
|
activeIndex: _activeIndex,
|
|
@@ -3,6 +3,7 @@ var styles = {
|
|
|
3
3
|
"button": "ktl-vertical-menu-module_button_zqr20",
|
|
4
4
|
"buttonText": "ktl-vertical-menu-module_button-text_aXith",
|
|
5
5
|
"icon": "ktl-vertical-menu-module_icon_-Ieat",
|
|
6
|
+
"iconDarkTheme": "ktl-vertical-menu-module_icon-dark-theme_mwAfx",
|
|
6
7
|
"dropdownHeader": "ktl-vertical-menu-module_dropdown-header_77lTy",
|
|
7
8
|
"stickyHeader": "ktl-vertical-menu-module_sticky-header_BlLzL",
|
|
8
9
|
"dropdownList": "ktl-vertical-menu-module_dropdown-list_N3KWV",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/kotlin-web-site-ui",
|
|
3
3
|
"description": "UI components for Kotlin web sites development",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.14.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"files": [
|
|
@@ -25,19 +25,18 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@rescui/checkbox": "0.x",
|
|
27
27
|
"@rescui/focus-manager": "0.x",
|
|
28
|
-
"@rescui/icons": "
|
|
28
|
+
"@rescui/icons": "1.x",
|
|
29
29
|
"@rescui/input": "0.x",
|
|
30
30
|
"@rescui/tooltip": "0.x",
|
|
31
31
|
"@rescui/typography": "0.x",
|
|
32
32
|
"@rescui/ui-contexts": "0.x",
|
|
33
33
|
"algoliasearch": "4.x",
|
|
34
34
|
"formik": "2.x",
|
|
35
|
-
"react": ">= 16.8.6
|
|
36
|
-
"react-dom": ">= 16.8.6
|
|
35
|
+
"react": ">= 16.8.6",
|
|
36
|
+
"react-dom": ">= 16.8.6",
|
|
37
37
|
"react-outside-click-handler": "1.x",
|
|
38
38
|
"react-remove-scroll-bar": "2.x",
|
|
39
39
|
"react-scrollbar-size": "5.x",
|
|
40
|
-
"react-swipeable-views": "0.x",
|
|
41
40
|
"sha.js": "2.x"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@rescui/button": "^0.10.0",
|
|
52
51
|
"@rescui/checkbox": "^0.1.0",
|
|
53
52
|
"@rescui/focus-manager": "^0.1.1",
|
|
54
|
-
"@rescui/icons": "^
|
|
53
|
+
"@rescui/icons": "^1.6.2",
|
|
55
54
|
"@rescui/input": "^0.4.6",
|
|
56
55
|
"@rescui/menu": "^0.9.4",
|
|
57
56
|
"@rescui/switcher": "^0.2.2",
|
|
@@ -124,6 +123,7 @@
|
|
|
124
123
|
"react-remove-scroll-bar": "^2.2.0",
|
|
125
124
|
"react-scrollbar-size": "^5.0.0",
|
|
126
125
|
"react-swipeable-views": "^0.14.0",
|
|
126
|
+
"react-swipeable-views-react-18-fix": "^0.14.1",
|
|
127
127
|
"require-from-string": "^2.0.2",
|
|
128
128
|
"rollup": "^2.70.1",
|
|
129
129
|
"rollup-plugin-node-externals": "^4.0.0",
|