@jetbrains/kotlin-web-site-ui 4.14.5 → 4.14.6-alpha.2
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React__default, { forwardRef, useState, useMemo, useRef, useImperativeHandle, useLayoutEffect, useCallback, useEffect } from 'react';
|
|
2
2
|
import { ThemeProvider } from '@rescui/ui-contexts';
|
|
3
3
|
import FocusManager from '@rescui/focus-manager';
|
|
4
|
+
import { Button } from '@rescui/button';
|
|
4
5
|
import useResizeObserver from '@react-hook/resize-observer';
|
|
5
6
|
import OutsideClickHandler from 'react-outside-click-handler';
|
|
6
7
|
import { LogoLarge } from './logo-large/logo-large.js';
|
|
@@ -22,7 +23,7 @@ var SearchResultView;
|
|
|
22
23
|
SearchResultView[SearchResultView["Wide"] = 1] = "Wide";
|
|
23
24
|
})(SearchResultView || (SearchResultView = {}));
|
|
24
25
|
|
|
25
|
-
const MENU_POPUP_BREAKPOINT =
|
|
26
|
+
const MENU_POPUP_BREAKPOINT = 1130;
|
|
26
27
|
const Header = forwardRef(({
|
|
27
28
|
productWebUrl,
|
|
28
29
|
hasSearch = false,
|
|
@@ -121,6 +122,12 @@ const Header = forwardRef(({
|
|
|
121
122
|
isExpanded: menuPopupExpanded,
|
|
122
123
|
headerRef: headerRef,
|
|
123
124
|
linkHandler: linkHandler
|
|
124
|
-
}))
|
|
125
|
+
})), React__default.createElement(Button, {
|
|
126
|
+
size: 'm',
|
|
127
|
+
mode: 'classic',
|
|
128
|
+
"data-testid": 'ab-hero-button',
|
|
129
|
+
href: '/docs/getting-started.html',
|
|
130
|
+
className: styles.abTestButton
|
|
131
|
+
}, "Get started"))));
|
|
125
132
|
});
|
|
126
133
|
export { Header, SearchResultView };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"headerMenu": "ktl-header-module_header-menu_wh71L",
|
|
3
3
|
"border": "ktl-header-module_border_paN11",
|
|
4
|
-
"darkHeader": "ktl-header-module_darkHeader_YLF76"
|
|
4
|
+
"darkHeader": "ktl-header-module_darkHeader_YLF76",
|
|
5
|
+
"abTestButton": "ktl-header-module_abTestButton_Jeac8"
|
|
5
6
|
};
|
|
6
7
|
export { styles as default };
|
|
@@ -88,7 +88,12 @@
|
|
|
88
88
|
box-shadow: none;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
.ktl-header-module_abTestButton_Jeac8 {
|
|
92
|
+
display: none !important;
|
|
93
|
+
margin-left: 30px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (max-width: 1130px) {
|
|
92
97
|
.ktl-header-module_header-menu_wh71L {
|
|
93
98
|
padding: 0 0 0 16px;
|
|
94
99
|
height: var(--ktl-header-height-mobile);
|
|
@@ -263,7 +268,7 @@
|
|
|
263
268
|
}
|
|
264
269
|
}
|
|
265
270
|
|
|
266
|
-
@media (max-width:
|
|
271
|
+
@media (max-width: 1130px) {
|
|
267
272
|
.ktl-horizontal-menu-module_nav_gbA7M {
|
|
268
273
|
display: none;
|
|
269
274
|
}
|
|
@@ -343,7 +348,7 @@
|
|
|
343
348
|
color: #ffffff;
|
|
344
349
|
}
|
|
345
350
|
|
|
346
|
-
@media (max-width:
|
|
351
|
+
@media (max-width: 1130px) {
|
|
347
352
|
|
|
348
353
|
.ktl-search-button-module_button_YHJPv {
|
|
349
354
|
display: none
|
|
@@ -381,7 +386,7 @@
|
|
|
381
386
|
overflow: hidden;
|
|
382
387
|
}
|
|
383
388
|
|
|
384
|
-
@media (min-width:
|
|
389
|
+
@media (min-width: 1131px) {
|
|
385
390
|
.ktl-result-module_result_EKhUw {
|
|
386
391
|
padding: 16px 32px;
|
|
387
392
|
}
|
|
@@ -427,7 +432,7 @@
|
|
|
427
432
|
overflow: hidden;
|
|
428
433
|
}
|
|
429
434
|
|
|
430
|
-
@media (min-width:
|
|
435
|
+
@media (min-width: 1131px) {
|
|
431
436
|
.ktl-list-module_results_LlxqY {
|
|
432
437
|
max-height: 434px;
|
|
433
438
|
}
|
|
@@ -454,7 +459,7 @@
|
|
|
454
459
|
overflow-wrap: break-word;
|
|
455
460
|
}
|
|
456
461
|
|
|
457
|
-
@media (min-width:
|
|
462
|
+
@media (min-width: 1131px) {
|
|
458
463
|
.ktl-empty-module_empty_xh1i- {
|
|
459
464
|
padding: 32px;
|
|
460
465
|
}
|
|
@@ -493,7 +498,7 @@
|
|
|
493
498
|
}*/
|
|
494
499
|
|
|
495
500
|
|
|
496
|
-
@media (min-width:
|
|
501
|
+
@media (min-width: 1131px) {
|
|
497
502
|
.ktl-quick-search-module_wrapper_kkbQQ {
|
|
498
503
|
left: 0;
|
|
499
504
|
right: 0;
|
|
@@ -501,7 +506,7 @@
|
|
|
501
506
|
}
|
|
502
507
|
|
|
503
508
|
|
|
504
|
-
@media (min-width:
|
|
509
|
+
@media (min-width: 1131px) and (max-width: 1024px) {
|
|
505
510
|
.ktl-quick-search-module_apiReferenceWrapper_jv98t {
|
|
506
511
|
width: calc(100vw - 64px);
|
|
507
512
|
left: auto;
|
|
@@ -671,7 +676,7 @@
|
|
|
671
676
|
margin-top: 14px;
|
|
672
677
|
}
|
|
673
678
|
|
|
674
|
-
@media (min-width:
|
|
679
|
+
@media (min-width: 1131px) {
|
|
675
680
|
.ktl-full-search-module_fullSearch_MTU8t {
|
|
676
681
|
display: block;
|
|
677
682
|
}
|
|
@@ -736,7 +741,7 @@
|
|
|
736
741
|
opacity: 1;
|
|
737
742
|
}
|
|
738
743
|
|
|
739
|
-
@media (max-width:
|
|
744
|
+
@media (max-width: 1130px) {
|
|
740
745
|
.ktl-search-box-module_searchBox_0SgE9 {
|
|
741
746
|
background: var(--ktl-dark-100);
|
|
742
747
|
width: auto;
|
|
@@ -749,7 +754,7 @@
|
|
|
749
754
|
}
|
|
750
755
|
}
|
|
751
756
|
|
|
752
|
-
@media (min-width:
|
|
757
|
+
@media (min-width: 1131px) {
|
|
753
758
|
.ktl-search-box-module_searchMobileClose_fBF7e {
|
|
754
759
|
display: none;
|
|
755
760
|
}
|
|
@@ -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 = 1130;
|
|
10
10
|
const TopMenu = forwardRef(({
|
|
11
11
|
homeUrl,
|
|
12
12
|
title,
|