@jetbrains/kotlin-web-site-ui 4.8.0-alpha.10 → 4.8.0-alpha.12
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.
- package/out/components/common/index.css +8 -0
- package/out/components/common/index.js +1 -0
- package/out/components/footer/index.css +0 -5
- package/out/components/nav-item/index.css +52 -0
- package/out/components/nav-item/index.js +34 -0
- package/out/components/nav-item/nav-item.module.pcss.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|
|
@@ -217,11 +217,6 @@
|
|
|
217
217
|
-moz-osx-font-smoothing:grayscale;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
.ktl-footer-module_footer_m67Up :focus-visible, .ktl-footer-module_footer_m67Up :focus[data-focus-method=key] {
|
|
221
|
-
outline: none;
|
|
222
|
-
box-shadow: var(--ktl-focus-outline);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
220
|
.ktl-footer-module_social-list-area_bS3eE {
|
|
226
221
|
display: flex;
|
|
227
222
|
align-items: center;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.ktl-nav-item-module_navItem_gRy22 {
|
|
2
|
+
padding: 0 12px;
|
|
3
|
+
height: 52px;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
border: 0;
|
|
10
|
+
background: none;
|
|
11
|
+
color: #ffffff;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ktl-nav-item-module_navItem_gRy22:hover {
|
|
15
|
+
background: rgba(255, 255, 255, 0.10);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ktl-nav-item-module_navItem_gRy22:active {
|
|
19
|
+
box-shadow: #8979ff 0 0 0 4px;
|
|
20
|
+
outline: none
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ktl-nav-item-module_rightIcon_XlxMF {
|
|
24
|
+
flex-direction: row-reverse;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ktl-nav-item-module_navItemActive_gI8Nv::after {
|
|
28
|
+
content: '';
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 2px;
|
|
31
|
+
background: #ffffff;
|
|
32
|
+
position: absolute;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ktl-nav-item-module_title_9VXwr {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ktl-nav-item-module_titleWithIcon_CVqpS {
|
|
42
|
+
margin-left: 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ktl-nav-item-module_titleWithIconRight_FwEnm {
|
|
46
|
+
margin-left: 0;
|
|
47
|
+
margin-right: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ktl-nav-item-module_titleWithoutIcon_XgnMl {
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import styles from './nav-item.module.pcss.js';
|
|
5
|
+
import { useTextStyles } from '@rescui/typography';
|
|
6
|
+
|
|
7
|
+
const NavItem = ({
|
|
8
|
+
children,
|
|
9
|
+
icon,
|
|
10
|
+
active,
|
|
11
|
+
iconPosition,
|
|
12
|
+
onClick
|
|
13
|
+
}) => {
|
|
14
|
+
const textCn = useTextStyles();
|
|
15
|
+
const navItemClass = cn(styles.navItem, {
|
|
16
|
+
[styles.navItemActive]: active,
|
|
17
|
+
[styles.rightIcon]: iconPosition === 'right'
|
|
18
|
+
});
|
|
19
|
+
const textStyles = cn(styles.title, {
|
|
20
|
+
[styles.titleWithIcon]: icon,
|
|
21
|
+
[styles.titleWithIconRight]: iconPosition === 'right',
|
|
22
|
+
[styles.titleWithoutIcon]: !children
|
|
23
|
+
});
|
|
24
|
+
return React.createElement("button", {
|
|
25
|
+
className: navItemClass,
|
|
26
|
+
onClick: onClick
|
|
27
|
+
}, icon ? icon : null, React.createElement("div", {
|
|
28
|
+
className: cn(textCn('rs-text-2', {
|
|
29
|
+
hardness: 'hard'
|
|
30
|
+
}), textStyles)
|
|
31
|
+
}, children));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { NavItem, NavItem as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"navItem": "ktl-nav-item-module_navItem_gRy22",
|
|
3
|
+
"rightIcon": "ktl-nav-item-module_rightIcon_XlxMF",
|
|
4
|
+
"navItemActive": "ktl-nav-item-module_navItemActive_gI8Nv",
|
|
5
|
+
"title": "ktl-nav-item-module_title_9VXwr",
|
|
6
|
+
"titleWithIcon": "ktl-nav-item-module_titleWithIcon_CVqpS",
|
|
7
|
+
"titleWithIconRight": "ktl-nav-item-module_titleWithIconRight_FwEnm",
|
|
8
|
+
"titleWithoutIcon": "ktl-nav-item-module_titleWithoutIcon_XgnMl"
|
|
9
|
+
};
|
|
10
|
+
export { styles as default };
|
package/package.json
CHANGED