@jetbrains/kotlin-web-site-ui 4.8.0-alpha.5 → 4.8.0-alpha.7
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/footer/footer.js +6 -11
- package/out/components/footer/footer.module.pcss.js +0 -2
- package/out/components/footer/index.css +11 -16
- package/out/components/header/index.css +6 -0
- package/out/components/top-menu/index.css +2 -0
- package/out/components/typography/index.css +7 -1
- package/out/components/youtube-player/index.css +1 -0
- package/package.json +4 -4
- package/out/components/nav-item/index.css +0 -46
- package/out/components/nav-item/index.js +0 -34
- package/out/components/nav-item/nav-item.module.pcss.js +0 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { useTheme } from '@rescui/ui-contexts';
|
|
3
2
|
import { SocialList } from './social-list/social-list.js';
|
|
4
3
|
import { NavList } from './nav/nav-list.js';
|
|
5
4
|
import { Logo } from './logo/logo.js';
|
|
@@ -12,15 +11,11 @@ const Footer = ({
|
|
|
12
11
|
className
|
|
13
12
|
}) => {
|
|
14
13
|
const textCn = useTextStyles();
|
|
15
|
-
const theme = useTheme();
|
|
16
14
|
const linkClass = textCn('rs-link', {
|
|
17
|
-
hardness: 'hard'
|
|
18
|
-
mode: 'clear'
|
|
15
|
+
hardness: 'hard'
|
|
19
16
|
});
|
|
20
17
|
return React__default.createElement("footer", {
|
|
21
|
-
className: classNames(styles.footer, className,
|
|
22
|
-
[styles.footerDarkTheme]: theme === 'dark'
|
|
23
|
-
}),
|
|
18
|
+
className: classNames(styles.footer, className),
|
|
24
19
|
ref: forwardedRef
|
|
25
20
|
}, React__default.createElement("div", {
|
|
26
21
|
className: 'ktl-layout ktl-layout--center'
|
|
@@ -37,18 +32,18 @@ const Footer = ({
|
|
|
37
32
|
}, React__default.createElement("div", {
|
|
38
33
|
className: styles.motto
|
|
39
34
|
}, "Supported and developed by\u00A0", React__default.createElement("a", {
|
|
40
|
-
className: classNames(linkClass
|
|
35
|
+
className: classNames(linkClass),
|
|
41
36
|
href: "https://www.jetbrains.com/",
|
|
42
37
|
target: "_blank"
|
|
43
38
|
}, "JetBrains"), "."), React__default.createElement("div", {
|
|
44
39
|
className: styles.copyright
|
|
45
40
|
}, "Kotlin\u2122 is\u00A0protected under the", ' ', React__default.createElement("a", {
|
|
46
|
-
className: classNames(linkClass
|
|
41
|
+
className: classNames(linkClass),
|
|
47
42
|
href: "https://kotlinlang.org/foundation/kotlin-foundation.html"
|
|
48
43
|
}, "Kotlin\u00A0Foundation"), ' ', React__default.createElement("br", {
|
|
49
44
|
className: styles.copyrightBreakLine
|
|
50
|
-
}), "and
|
|
51
|
-
className: classNames(linkClass
|
|
45
|
+
}), "and\u00A0licensed under the", ' ', React__default.createElement("a", {
|
|
46
|
+
className: classNames(linkClass),
|
|
52
47
|
target: "_blank",
|
|
53
48
|
href: "https://github.com/JetBrains/kotlin-web-site/blob/master/LICENSE"
|
|
54
49
|
}, "Apache 2\u00A0license"), "."))));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"footer": "ktl-footer-module_footer_m67Up",
|
|
3
|
-
"footerDarkTheme": "ktl-footer-module_footer-dark-theme_YUAFI",
|
|
4
|
-
"underlinedLink": "ktl-footer-module_underlined-link_G0wkq",
|
|
5
3
|
"socialListArea": "ktl-footer-module_social-list-area_bS3eE",
|
|
6
4
|
"socialListTitle": "ktl-footer-module_social-list-title_HPzIP",
|
|
7
5
|
"textArea": "ktl-footer-module_text-area_flccc",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
--ktl-header-height-mobile: 52px;
|
|
42
42
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
43
43
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
44
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
:root {
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
--ktl-header-height-mobile: 52px;
|
|
107
108
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
108
109
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
110
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
:root {
|
|
@@ -136,9 +138,9 @@
|
|
|
136
138
|
right: 0;
|
|
137
139
|
top: 50%;
|
|
138
140
|
width: 1px;
|
|
139
|
-
height:
|
|
141
|
+
height: var(--ktl-box-section-s);
|
|
140
142
|
transform: translateY(-50%);
|
|
141
|
-
background-color: rgba(
|
|
143
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
.ktl-nav-item-module_nav-item_isoyN:last-child {
|
|
@@ -191,6 +193,7 @@
|
|
|
191
193
|
--ktl-header-height-mobile: 52px;
|
|
192
194
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
193
195
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
196
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
194
197
|
}
|
|
195
198
|
|
|
196
199
|
:root {
|
|
@@ -208,7 +211,7 @@
|
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
.ktl-footer-module_footer_m67Up {
|
|
211
|
-
background: var(--ktl-
|
|
214
|
+
background: var(--ktl-dark-100);
|
|
212
215
|
padding: var(--ktl-box-page-m) 0;
|
|
213
216
|
min-width: 320px;
|
|
214
217
|
box-sizing: border-box;
|
|
@@ -218,14 +221,6 @@
|
|
|
218
221
|
-moz-osx-font-smoothing:grayscale;
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
.ktl-footer-module_footer-dark-theme_YUAFI {
|
|
222
|
-
background: var(--ktl-dark-100);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.ktl-footer-module_footer-dark-theme_YUAFI .ktl-footer-module_underlined-link_G0wkq {
|
|
226
|
-
border-color: inherit;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
224
|
.ktl-footer-module_social-list-area_bS3eE {
|
|
230
225
|
display: flex;
|
|
231
226
|
align-items: center;
|
|
@@ -247,10 +242,6 @@
|
|
|
247
242
|
display: inline;
|
|
248
243
|
}
|
|
249
244
|
|
|
250
|
-
.ktl-footer-module_underlined-link_G0wkq {
|
|
251
|
-
border-color: var(--ktl-light-dark-20);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
245
|
.ktl-footer-module_copyrightBreakLine_0hI7E {
|
|
255
246
|
display: none;
|
|
256
247
|
}
|
|
@@ -277,7 +268,11 @@
|
|
|
277
268
|
|
|
278
269
|
@media (max-width: 472px) {
|
|
279
270
|
.ktl-footer-module_footer_m67Up {
|
|
280
|
-
padding: var(--ktl-box-section-s) 0;
|
|
271
|
+
padding: var(--ktl-box-section-s) 0 var(--ktl-box-section-l);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ktl-footer-module_copyrightBreakLine_0hI7E {
|
|
275
|
+
display: none;
|
|
281
276
|
}
|
|
282
277
|
}
|
|
283
278
|
.ktl-layout {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--ktl-header-height-mobile: 52px;
|
|
43
43
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
44
44
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
45
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
:root {
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
--ktl-header-height-mobile: 52px;
|
|
108
109
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
109
110
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
111
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
:root {
|
|
@@ -271,6 +273,7 @@
|
|
|
271
273
|
--ktl-header-height-mobile: 52px;
|
|
272
274
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
273
275
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
276
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
274
277
|
}
|
|
275
278
|
|
|
276
279
|
:root {
|
|
@@ -749,6 +752,7 @@
|
|
|
749
752
|
--ktl-header-height-mobile: 52px;
|
|
750
753
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
751
754
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
755
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
752
756
|
}
|
|
753
757
|
|
|
754
758
|
:root {
|
|
@@ -827,6 +831,7 @@
|
|
|
827
831
|
--ktl-header-height-mobile: 52px;
|
|
828
832
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
829
833
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
834
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
830
835
|
}
|
|
831
836
|
|
|
832
837
|
:root {
|
|
@@ -900,6 +905,7 @@
|
|
|
900
905
|
--ktl-header-height-mobile: 52px;
|
|
901
906
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
902
907
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
908
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
903
909
|
}
|
|
904
910
|
|
|
905
911
|
:root {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--ktl-header-height-mobile: 52px;
|
|
19
19
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
20
20
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
21
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
:root {
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
--ktl-header-height-mobile: 52px;
|
|
111
112
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
112
113
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
114
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
:root {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--ktl-header-height-mobile: 52px;
|
|
19
19
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
20
20
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
21
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
:root {
|
|
@@ -189,4 +190,9 @@
|
|
|
189
190
|
|
|
190
191
|
.ktl-text-3_theme_dark {
|
|
191
192
|
color: #fff;
|
|
192
|
-
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:focus-visible, :focus[data-focus-method=key] {
|
|
196
|
+
outline: none;
|
|
197
|
+
box-shadow: var(--ktl-focus-outline);
|
|
198
|
+
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--ktl-header-height-mobile: 52px;
|
|
19
19
|
--ktl-font-family-inter: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
20
20
|
--rs-font-family-ui: var(--ktl-font-family-inter);
|
|
21
|
+
--ktl-focus-outline: rgba(107,87,255,.8) 0 0 0 4px;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
:root {
|
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.8.0-alpha.
|
|
4
|
+
"version": "4.8.0-alpha.7",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@babel/preset-typescript": "^7.13.0",
|
|
49
49
|
"@babel/register": "^7.11.5",
|
|
50
50
|
"@react-hook/resize-observer": "^1.2.5",
|
|
51
|
-
"@rescui/button": "^0.
|
|
51
|
+
"@rescui/button": "^0.10.0",
|
|
52
52
|
"@rescui/checkbox": "^0.1.0",
|
|
53
53
|
"@rescui/focus-manager": "^0.1.1",
|
|
54
54
|
"@rescui/icons": "^0.12.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@rescui/menu": "^0.9.4",
|
|
57
57
|
"@rescui/switcher": "^0.2.2",
|
|
58
58
|
"@rescui/tooltip": "^0.1.2",
|
|
59
|
-
"@rescui/typography": "^0.
|
|
60
|
-
"@rescui/ui-contexts": "^0.
|
|
59
|
+
"@rescui/typography": "^0.11.0",
|
|
60
|
+
"@rescui/ui-contexts": "^0.4.3",
|
|
61
61
|
"@rollup/plugin-babel": "^5.3.1",
|
|
62
62
|
"@rollup/plugin-json": "^4.1.0",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
.ktl-nav-item-module_navItem_gRy22:hover {
|
|
14
|
-
background: rgba(255, 255, 255, 0.10);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ktl-nav-item-module_rightIcon_XlxMF {
|
|
18
|
-
flex-direction: row-reverse;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ktl-nav-item-module_navItemActive_gI8Nv::after {
|
|
22
|
-
content: '';
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 2px;
|
|
25
|
-
background: #ffffff;
|
|
26
|
-
position: absolute;
|
|
27
|
-
bottom: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ktl-nav-item-module_title_9VXwr {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ktl-nav-item-module_titleWithIcon_CVqpS {
|
|
36
|
-
margin-left: 8px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ktl-nav-item-module_titleWithIconRight_FwEnm {
|
|
40
|
-
margin-left: 0;
|
|
41
|
-
margin-right: 8px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ktl-nav-item-module_titleWithoutIcon_XgnMl {
|
|
45
|
-
margin: 0;
|
|
46
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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("div", {
|
|
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 };
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|