@jetbrains/kotlin-web-site-ui 4.7.1 → 4.7.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.
@@ -35,7 +35,8 @@ const Header = forwardRef(({
35
35
  isPlayground,
36
36
  isUrlActive,
37
37
  searchConfig,
38
- resultViewType = SearchResultView.Narrow
38
+ resultViewType = SearchResultView.Narrow,
39
+ darkHeader
39
40
  }, forwardedRef) => {
40
41
  const [menuPopupExpanded, setMenuPopupExpanded] = useState(false);
41
42
  const [isSearchBoxVisible, setSearchBoxVisible] = useState(false);
@@ -86,7 +87,8 @@ const Header = forwardRef(({
86
87
  ref: headerRef,
87
88
  className: classNames(styles.headerMenu, className, {
88
89
  [styles.withMenuPopup]: menuPopupExpanded,
89
- [styles.border]: hasBorder || menuPopupExpanded
90
+ [styles.border]: hasBorder || menuPopupExpanded,
91
+ [styles.darkHeader]: darkHeader
90
92
  }),
91
93
  "data-test": 'header'
92
94
  }, isMenuPopupVisible && currentTitle && currentUrl && !menuPopupExpanded ? React__default.createElement(LogoSmall, {
@@ -1,5 +1,6 @@
1
1
  var styles = {
2
2
  "headerMenu": "ktl-header-module_header-menu_wh71L",
3
- "border": "ktl-header-module_border_paN11"
3
+ "border": "ktl-header-module_border_paN11",
4
+ "darkHeader": "ktl-header-module_darkHeader_YLF76"
4
5
  };
5
6
  export { styles as default };
@@ -75,6 +75,11 @@
75
75
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.3);
76
76
  }
77
77
 
78
+ .ktl-header-module_darkHeader_YLF76 {
79
+ background: #19191C;
80
+ box-shadow: none;
81
+ }
82
+
78
83
  @media (max-width: 640px) {
79
84
  .ktl-header-module_header-menu_wh71L {
80
85
  padding: 0 0 0 16px;
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.7.1",
4
+ "version": "4.7.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [