@jetbrains/kotlin-web-site-ui 4.14.0 → 4.14.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.
@@ -2,6 +2,7 @@ import React__default, { useCallback } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import styles from './horizontal-menu.module.pcss.js';
4
4
  import { useTextStyles } from '@rescui/typography';
5
+ import { useTheme } from '@rescui/ui-contexts';
5
6
 
6
7
  const HorizontalMenuItem = ({
7
8
  item,
@@ -9,10 +10,13 @@ const HorizontalMenuItem = ({
9
10
  linkHandler
10
11
  }) => {
11
12
  const textCn = useTextStyles();
13
+ const theme = useTheme();
12
14
  const handleLink = useCallback(event => linkHandler(event, item.url), [item]);
13
15
  return isActive ? React__default.createElement("span", {
14
16
  key: item.url,
15
- className: styles.itemActive
17
+ className: classNames(styles.itemActive, {
18
+ [styles.itemActiveDark]: theme === 'dark'
19
+ })
16
20
  }, item.title) : React__default.createElement("a", {
17
21
  href: item.url,
18
22
  key: item.url,
@@ -1,6 +1,7 @@
1
1
  var styles = {
2
2
  "horizontalMenu": "ktl-horizontal-menu-module_horizontal-menu_pB2-S",
3
3
  "item": "ktl-horizontal-menu-module_item_yv0RR",
4
- "itemActive": "ktl-horizontal-menu-module_item-active_Dot-8"
4
+ "itemActive": "ktl-horizontal-menu-module_item-active_Dot-8",
5
+ "itemActiveDark": "ktl-horizontal-menu-module_item-active-dark_m2Dys"
5
6
  };
6
7
  export { styles as default };
@@ -98,6 +98,10 @@
98
98
  color: var(--ktl-color-primary-light-theme);
99
99
  }
100
100
 
101
+ .ktl-horizontal-menu-module_item-active-dark_m2Dys {
102
+ color: #fff;
103
+ }
104
+
101
105
  :root {
102
106
  --ktl-light-grey: #f4f4f4;
103
107
  --ktl-dark-100: rgba(39, 40, 44, 1);
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.14.0",
4
+ "version": "4.14.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [