@jetbrains/kotlin-web-site-ui 4.4.0 → 4.4.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.
|
@@ -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, {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
@media (max-width:
|
|
213
|
+
@media (max-width: 640px) {
|
|
214
214
|
.ktl-horizontal-menu-module_nav_gbA7M {
|
|
215
215
|
display: none;
|
|
216
216
|
}
|
|
@@ -268,18 +268,6 @@
|
|
|
268
268
|
color: #ffffff;
|
|
269
269
|
}
|
|
270
270
|
|
|
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
271
|
.ktl-result-module_result_EKhUw {
|
|
284
272
|
box-sizing: border-box;
|
|
285
273
|
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 };
|
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.
|
|
4
|
+
"version": "4.4.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"files": [
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"react": ">= 16.8.6 < 18",
|
|
36
36
|
"react-dom": ">= 16.8.6 < 18",
|
|
37
37
|
"react-outside-click-handler": "1.x",
|
|
38
|
+
"react-remove-scroll-bar": "2.x",
|
|
38
39
|
"react-scrollbar-size": "5.x",
|
|
39
40
|
"react-swipeable-views": "0.x",
|
|
40
41
|
"sha.js": "2.x"
|