@jetbrains/kotlin-web-site-ui 4.4.1 → 4.4.3
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.
|
@@ -106,6 +106,7 @@ const Header = forwardRef(({
|
|
|
106
106
|
theme: dropdownTheme,
|
|
107
107
|
linkHandler: linkHandler
|
|
108
108
|
}), !menuPopupExpanded && React__default.createElement(SearchButton, {
|
|
109
|
+
isMobile: isMenuPopupVisible,
|
|
109
110
|
onClick: handleSearchButtonClick,
|
|
110
111
|
isActive: hasSearch
|
|
111
112
|
}), isMenuPopupVisible && React__default.createElement(MenuPopup, {
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
53
53
|
height: 64px;
|
|
54
|
+
width: 100%;
|
|
55
|
+
box-sizing: border-box;
|
|
54
56
|
justify-content: space-between;
|
|
55
57
|
z-index: var(--ktl-header-z-index);
|
|
56
58
|
}
|
|
@@ -210,7 +212,7 @@
|
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
214
|
|
|
213
|
-
@media (max-width:
|
|
215
|
+
@media (max-width: 640px) {
|
|
214
216
|
.ktl-horizontal-menu-module_nav_gbA7M {
|
|
215
217
|
display: none;
|
|
216
218
|
}
|
|
@@ -268,18 +270,6 @@
|
|
|
268
270
|
color: #ffffff;
|
|
269
271
|
}
|
|
270
272
|
|
|
271
|
-
@media (max-width: 640px) {
|
|
272
|
-
.ktl-search-button-module_button_YHJPv {
|
|
273
|
-
display: none;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
@media (min-width: 641px) {
|
|
278
|
-
.ktl-search-button-module_mobileButton_KT2YP {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
273
|
.ktl-result-module_result_EKhUw {
|
|
284
274
|
box-sizing: border-box;
|
|
285
275
|
display: block;
|
|
@@ -8,9 +8,17 @@ const DATA_TEST_HEADER_SEARCH_BUTTON = 'header-search-button';
|
|
|
8
8
|
|
|
9
9
|
const SearchButton = ({
|
|
10
10
|
onClick,
|
|
11
|
-
isActive
|
|
11
|
+
isActive,
|
|
12
|
+
isMobile
|
|
12
13
|
}) => {
|
|
13
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(
|
|
14
|
+
return React__default.createElement(React__default.Fragment, null, isMobile ? React__default.createElement(Button, {
|
|
15
|
+
"data-test": DATA_TEST_HEADER_SEARCH_BUTTON,
|
|
16
|
+
"aria-label": "Search",
|
|
17
|
+
onClick: onClick,
|
|
18
|
+
mode: 'clear',
|
|
19
|
+
size: 'l',
|
|
20
|
+
icon: React__default.createElement(SearchIcon, null)
|
|
21
|
+
}) : React__default.createElement("button", {
|
|
14
22
|
type: "button",
|
|
15
23
|
className: classNames(styles.button, {
|
|
16
24
|
[styles.active]: isActive
|
|
@@ -18,16 +26,7 @@ const SearchButton = ({
|
|
|
18
26
|
"data-test": DATA_TEST_HEADER_SEARCH_BUTTON,
|
|
19
27
|
"aria-label": "Search",
|
|
20
28
|
onClick: onClick
|
|
21
|
-
}, React__default.createElement(SvgSearch, null))
|
|
22
|
-
className: styles.mobileButton
|
|
23
|
-
}, React__default.createElement(Button, {
|
|
24
|
-
"data-test": DATA_TEST_HEADER_SEARCH_BUTTON,
|
|
25
|
-
"aria-label": "Search",
|
|
26
|
-
onClick: onClick,
|
|
27
|
-
mode: 'clear',
|
|
28
|
-
size: 'l',
|
|
29
|
-
icon: React__default.createElement(SearchIcon, null)
|
|
30
|
-
})));
|
|
29
|
+
}, React__default.createElement(SvgSearch, null)));
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
export { DATA_TEST_HEADER_SEARCH_BUTTON, SearchButton };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"button": "ktl-search-button-module_button_YHJPv",
|
|
3
|
-
"active": "ktl-search-button-module_active_lUmdh"
|
|
4
|
-
"mobileButton": "ktl-search-button-module_mobileButton_KT2YP"
|
|
3
|
+
"active": "ktl-search-button-module_active_lUmdh"
|
|
5
4
|
};
|
|
6
5
|
export { styles as default };
|