@jetbrains/kotlin-web-site-ui 4.8.0-alpha.10 → 4.8.0-alpha.13

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.
@@ -0,0 +1,8 @@
1
+ :focus-visible, :focus[data-focus-method=key] {
2
+ outline: none;
3
+ box-shadow: var(--ktl-focus-outline);
4
+ }
5
+ :root {
6
+ --rs-h2-font-size-mobile: var(--rs-h2-font-size, 35px);
7
+ --rs-h2-line-height-mobile: var(--rs-h2-line-height, 42px);
8
+ }
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -1,11 +1,5 @@
1
1
  .ktl-cta-block-module_wrapper_U-RIE {
2
- background: radial-gradient(
3
- 89.53% 145.96% at 0.34% 100.79%,
4
- #EF4857 0%,
5
- #DE4970 17.58%,
6
- #B44DB0 50.31%,
7
- #7F52FF 97.03%
8
- );
2
+ background: linear-gradient(90deg, #E54857 0%, #C811E2 50%, #7F52FF 100%);
9
3
 
10
4
  padding: var(--ktl-box-page-m) 0;
11
5
  }
@@ -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 };
@@ -99,6 +99,14 @@
99
99
  background: var(--ktl-color-primary-light-theme);
100
100
  }
101
101
 
102
+ .ktl-youtube-player-module_play-button_inversed_ENTdT {
103
+ background: #19191C;
104
+ }
105
+
106
+ .ktl-youtube-player-module_play-button_inversed_ENTdT svg {
107
+ fill: #ffffff;
108
+ }
109
+
102
110
  .ktl-youtube-player-module_hide_w9Dr2 {
103
111
  display: none;
104
112
  }
@@ -10,6 +10,7 @@ var YoutubePlayButtonMode;
10
10
  YoutubePlayButtonMode[YoutubePlayButtonMode["White"] = 0] = "White";
11
11
  YoutubePlayButtonMode[YoutubePlayButtonMode["Black"] = 1] = "Black";
12
12
  YoutubePlayButtonMode[YoutubePlayButtonMode["Primary"] = 2] = "Primary";
13
+ YoutubePlayButtonMode[YoutubePlayButtonMode["Inversed"] = 3] = "Inversed";
13
14
  })(YoutubePlayButtonMode || (YoutubePlayButtonMode = {}));
14
15
 
15
16
  var YoutubePlayerMode;
@@ -132,7 +133,8 @@ const YoutubePlayer = ({
132
133
  [styles.hide]: showVideo && !videoLoading,
133
134
  [styles.playButtonWhite]: playButtonMode === YoutubePlayButtonMode.White,
134
135
  [styles.playButtonBlack]: playButtonMode === YoutubePlayButtonMode.Black,
135
- [styles.playButtonPrimary]: playButtonMode === YoutubePlayButtonMode.Primary
136
+ [styles.playButtonPrimary]: playButtonMode === YoutubePlayButtonMode.Primary,
137
+ [styles.playButtonInversed]: playButtonMode === YoutubePlayButtonMode.Inversed
136
138
  })
137
139
  }, videoLoading ? React__default.createElement(SvgLoading24, {
138
140
  className: styles.iconLoading
@@ -7,6 +7,7 @@ var styles = {
7
7
  "playButtonWhite": "ktl-youtube-player-module_play-button_white_jsj-J",
8
8
  "playButtonBlack": "ktl-youtube-player-module_play-button_black_N4JvM",
9
9
  "playButtonPrimary": "ktl-youtube-player-module_play-button_primary_rk5oW",
10
+ "playButtonInversed": "ktl-youtube-player-module_play-button_inversed_ENTdT",
10
11
  "hide": "ktl-youtube-player-module_hide_w9Dr2",
11
12
  "imagePreview": "ktl-youtube-player-module_image-preview_qXCFf",
12
13
  "showVideo": "ktl-youtube-player-module_show-video_Y1Ri-",
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.10",
4
+ "version": "4.8.0-alpha.13",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [