@jetbrains/kotlin-web-site-ui 4.5.1 → 4.6.0

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.
@@ -1,3 +1,30 @@
1
1
  import './index.css';
2
- import { CtaBlock } from './cta-block.js';
3
- export { CtaBlock as default } from './cta-block.js';
2
+ import React from 'react';
3
+ import styles from './cta-block.module.pcss.js';
4
+
5
+ const CtaBlock = ({
6
+ topTitle,
7
+ mainTitle,
8
+ children,
9
+ buttons
10
+ }) => {
11
+ return React.createElement("div", {
12
+ className: styles.wrapper
13
+ }, React.createElement("div", {
14
+ className: "ktl-container"
15
+ }, topTitle && React.createElement("div", {
16
+ className: styles.topTitle
17
+ }, React.createElement("div", {
18
+ className: "ktl-text-2 ktl-text-2_theme_dark"
19
+ }, topTitle)), React.createElement("div", {
20
+ className: styles.mainTitle
21
+ }, React.createElement("h2", {
22
+ className: "ktl-hero ktl-hero_theme_dark"
23
+ }, mainTitle)), children && React.createElement("div", {
24
+ className: styles.content
25
+ }, children), React.createElement("div", null), buttons && React.createElement("div", {
26
+ className: styles.buttons
27
+ }, buttons)));
28
+ };
29
+
30
+ export { CtaBlock };
@@ -0,0 +1,9 @@
1
+ var styles = {
2
+ "wrapper": "ktl-cta-block-module_wrapper_U-RIE",
3
+ "topTitle": "ktl-cta-block-module_top-title_ve70f",
4
+ "mainTitle": "ktl-cta-block-module_main-title_JbxBG",
5
+ "content": "ktl-cta-block-module_content_lCnnn",
6
+ "buttons": "ktl-cta-block-module_buttons_ObAIt",
7
+ "layout": "ktl-cta-block-module_layout_J-jWe"
8
+ };
9
+ export { styles as default };
@@ -0,0 +1,20 @@
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
+ );
9
+
10
+ padding: var(--ktl-box-page-m) 0;
11
+ }
12
+
13
+ .ktl-cta-block-module_top-title_ve70f, .ktl-cta-block-module_main-title_JbxBG, .ktl-cta-block-module_content_lCnnn, .ktl-cta-block-module_buttons_ObAIt {
14
+ margin-top: 0;
15
+ margin-bottom: var(--ktl-box-section-s);
16
+ }
17
+
18
+ .ktl-cta-block-module_layout_J-jWe > .ktl-cta-block-module_top-title_ve70f:last-child, .ktl-cta-block-module_layout_J-jWe > .ktl-cta-block-module_main-title_JbxBG:last-child, .ktl-cta-block-module_layout_J-jWe > .ktl-cta-block-module_content_lCnnn:last-child, .ktl-cta-block-module_layout_J-jWe > .ktl-cta-block-module_buttons_ObAIt:last-child {
19
+ margin-bottom: 0;
20
+ }
@@ -0,0 +1,47 @@
1
+ import './index.css';
2
+ import React from 'react';
3
+ import cn from 'classnames';
4
+ import { ThemeProvider } from '@rescui/ui-contexts';
5
+ import { useTextStyles } from '@rescui/typography';
6
+ import styles from './cta-block.module.pcss.js';
7
+
8
+ function Cta({
9
+ className,
10
+ classTopTitle,
11
+ topTitle,
12
+ classMainTitle,
13
+ mainTitle,
14
+ classContent,
15
+ children,
16
+ classButtons,
17
+ buttons
18
+ }) {
19
+ const textCn = useTextStyles();
20
+ return React.createElement("div", {
21
+ className: cn(className, styles.wrapper)
22
+ }, React.createElement("div", {
23
+ className: cn(styles.layout, 'ktl-layout ktl-layout--center')
24
+ }, topTitle && React.createElement("div", {
25
+ className: cn(classTopTitle, styles.topTitle, textCn('rs-text-2', {
26
+ hardness: 'hard'
27
+ }))
28
+ }, topTitle), React.createElement("h2", {
29
+ className: cn(classMainTitle, styles.mainTitle, textCn('rs-h2'))
30
+ }, mainTitle), children && React.createElement("div", {
31
+ className: cn(classContent, styles.content)
32
+ }, children), buttons && React.createElement("div", {
33
+ className: cn(classButtons, styles.buttons)
34
+ }, buttons)));
35
+ }
36
+
37
+ function CtaBlock({
38
+ theme,
39
+ ...props
40
+ }) {
41
+ return React.createElement(ThemeProvider, {
42
+ theme: theme || 'dark'
43
+ }, React.createElement(Cta, { ...props
44
+ }));
45
+ }
46
+
47
+ export { CtaBlock };
@@ -36,6 +36,20 @@
36
36
  --rs-font-family-ui: var(--ktl-font-family-inter);
37
37
  }
38
38
 
39
+ :root {
40
+ --ktl-box-block-s: 4px;
41
+ --ktl-box-block-m: 8px;
42
+ --ktl-box-block-l: 16px;
43
+
44
+ --ktl-box-section-s: 24px;
45
+ --ktl-box-section-m: 32px;
46
+ --ktl-box-section-l: 48px;
47
+
48
+ --ktl-box-page-s: 64px;
49
+ --ktl-box-page-m: 72px;
50
+ --ktl-box-page-l: 96px;
51
+ }
52
+
39
53
  .ktl-social-item-module_social-item_GpKEF {
40
54
  width: 36px;
41
55
  height: 36px;
@@ -94,6 +108,20 @@
94
108
  --rs-font-family-ui: var(--ktl-font-family-inter);
95
109
  }
96
110
 
111
+ :root {
112
+ --ktl-box-block-s: 4px;
113
+ --ktl-box-block-m: 8px;
114
+ --ktl-box-block-l: 16px;
115
+
116
+ --ktl-box-section-s: 24px;
117
+ --ktl-box-section-m: 32px;
118
+ --ktl-box-section-l: 48px;
119
+
120
+ --ktl-box-page-s: 64px;
121
+ --ktl-box-page-m: 72px;
122
+ --ktl-box-page-l: 96px;
123
+ }
124
+
97
125
  .ktl-nav-item-module_nav-item_isoyN {
98
126
  padding-right: 12px;
99
127
  margin-right: 12px;
@@ -152,6 +180,20 @@
152
180
  --rs-font-family-ui: var(--ktl-font-family-inter);
153
181
  }
154
182
 
183
+ :root {
184
+ --ktl-box-block-s: 4px;
185
+ --ktl-box-block-m: 8px;
186
+ --ktl-box-block-l: 16px;
187
+
188
+ --ktl-box-section-s: 24px;
189
+ --ktl-box-section-m: 32px;
190
+ --ktl-box-section-l: 48px;
191
+
192
+ --ktl-box-page-s: 64px;
193
+ --ktl-box-page-m: 72px;
194
+ --ktl-box-page-l: 96px;
195
+ }
196
+
155
197
  .ktl-footer-module_footer_m67Up {
156
198
  background: var(--ktl-light-grey);
157
199
  padding: 32px 16px 16px;
@@ -44,6 +44,20 @@
44
44
  --rs-font-family-ui: var(--ktl-font-family-inter);
45
45
  }
46
46
 
47
+ :root {
48
+ --ktl-box-block-s: 4px;
49
+ --ktl-box-block-m: 8px;
50
+ --ktl-box-block-l: 16px;
51
+
52
+ --ktl-box-section-s: 24px;
53
+ --ktl-box-section-m: 32px;
54
+ --ktl-box-section-l: 48px;
55
+
56
+ --ktl-box-page-s: 64px;
57
+ --ktl-box-page-m: 72px;
58
+ --ktl-box-page-l: 96px;
59
+ }
60
+
47
61
  .ktl-header-module_header-menu_wh71L {
48
62
  position: relative;
49
63
  padding: 0 32px;
@@ -90,6 +104,20 @@
90
104
  --rs-font-family-ui: var(--ktl-font-family-inter);
91
105
  }
92
106
 
107
+ :root {
108
+ --ktl-box-block-s: 4px;
109
+ --ktl-box-block-m: 8px;
110
+ --ktl-box-block-l: 16px;
111
+
112
+ --ktl-box-section-s: 24px;
113
+ --ktl-box-section-m: 32px;
114
+ --ktl-box-section-l: 48px;
115
+
116
+ --ktl-box-page-s: 64px;
117
+ --ktl-box-page-m: 72px;
118
+ --ktl-box-page-l: 96px;
119
+ }
120
+
93
121
  .ktl-horizontal-menu-module_nav_gbA7M {
94
122
  display: block;
95
123
  }
@@ -240,6 +268,20 @@
240
268
  --rs-font-family-ui: var(--ktl-font-family-inter);
241
269
  }
242
270
 
271
+ :root {
272
+ --ktl-box-block-s: 4px;
273
+ --ktl-box-block-m: 8px;
274
+ --ktl-box-block-l: 16px;
275
+
276
+ --ktl-box-section-s: 24px;
277
+ --ktl-box-section-m: 32px;
278
+ --ktl-box-section-l: 48px;
279
+
280
+ --ktl-box-page-s: 64px;
281
+ --ktl-box-page-m: 72px;
282
+ --ktl-box-page-l: 96px;
283
+ }
284
+
243
285
  .ktl-search-button-module_button_YHJPv {
244
286
  display: flex;
245
287
  visibility: hidden;
@@ -704,6 +746,20 @@
704
746
  --rs-font-family-ui: var(--ktl-font-family-inter);
705
747
  }
706
748
 
749
+ :root {
750
+ --ktl-box-block-s: 4px;
751
+ --ktl-box-block-m: 8px;
752
+ --ktl-box-block-l: 16px;
753
+
754
+ --ktl-box-section-s: 24px;
755
+ --ktl-box-section-m: 32px;
756
+ --ktl-box-section-l: 48px;
757
+
758
+ --ktl-box-page-s: 64px;
759
+ --ktl-box-page-m: 72px;
760
+ --ktl-box-page-l: 96px;
761
+ }
762
+
707
763
  .ktl-menu-popup-module_menu-popup_Q68IE {
708
764
  display: none;
709
765
  padding: 8px 0 56px 0;
@@ -768,6 +824,20 @@
768
824
  --rs-font-family-ui: var(--ktl-font-family-inter);
769
825
  }
770
826
 
827
+ :root {
828
+ --ktl-box-block-s: 4px;
829
+ --ktl-box-block-m: 8px;
830
+ --ktl-box-block-l: 16px;
831
+
832
+ --ktl-box-section-s: 24px;
833
+ --ktl-box-section-m: 32px;
834
+ --ktl-box-section-l: 48px;
835
+
836
+ --ktl-box-page-s: 64px;
837
+ --ktl-box-page-m: 72px;
838
+ --ktl-box-page-l: 96px;
839
+ }
840
+
771
841
  .ktl-menu-list-item-module_menu-item_Aruue {
772
842
  --level: 0;
773
843
  display: flex;
@@ -827,6 +897,20 @@
827
897
  --rs-font-family-ui: var(--ktl-font-family-inter);
828
898
  }
829
899
 
900
+ :root {
901
+ --ktl-box-block-s: 4px;
902
+ --ktl-box-block-m: 8px;
903
+ --ktl-box-block-l: 16px;
904
+
905
+ --ktl-box-section-s: 24px;
906
+ --ktl-box-section-m: 32px;
907
+ --ktl-box-section-l: 48px;
908
+
909
+ --ktl-box-page-s: 64px;
910
+ --ktl-box-page-m: 72px;
911
+ --ktl-box-page-l: 96px;
912
+ }
913
+
830
914
  .ktl-menu-list-module_menu-item-group_mFvUE {
831
915
  margin: 8px 0 8px 0;
832
916
  padding: 4px 0 8px 0;
@@ -20,6 +20,20 @@
20
20
  --rs-font-family-ui: var(--ktl-font-family-inter);
21
21
  }
22
22
 
23
+ :root {
24
+ --ktl-box-block-s: 4px;
25
+ --ktl-box-block-m: 8px;
26
+ --ktl-box-block-l: 16px;
27
+
28
+ --ktl-box-section-s: 24px;
29
+ --ktl-box-section-m: 32px;
30
+ --ktl-box-section-l: 48px;
31
+
32
+ --ktl-box-page-s: 64px;
33
+ --ktl-box-page-m: 72px;
34
+ --ktl-box-page-l: 96px;
35
+ }
36
+
23
37
  .ktl-top-menu-module_top-menu_PRX9X {
24
38
  position: relative;
25
39
  display: grid;
@@ -98,6 +112,20 @@
98
112
  --rs-font-family-ui: var(--ktl-font-family-inter);
99
113
  }
100
114
 
115
+ :root {
116
+ --ktl-box-block-s: 4px;
117
+ --ktl-box-block-m: 8px;
118
+ --ktl-box-block-l: 16px;
119
+
120
+ --ktl-box-section-s: 24px;
121
+ --ktl-box-section-m: 32px;
122
+ --ktl-box-section-l: 48px;
123
+
124
+ --ktl-box-page-s: 64px;
125
+ --ktl-box-page-m: 72px;
126
+ --ktl-box-page-l: 96px;
127
+ }
128
+
101
129
  .ktl-vertical-menu-module_vertical-menu_aLIbw {
102
130
  display: block;
103
131
  height: 100%;
@@ -1,6 +1,6 @@
1
1
  import { useTheme } from '@rescui/ui-contexts';
2
2
  import { createTextCn } from './create-text-cn.js';
3
3
 
4
- const useTextStyles = () => createTextCn(useTheme());
4
+ const useTextStyles = theme => createTextCn(useTheme(theme));
5
5
 
6
6
  export { useTextStyles };
@@ -20,6 +20,20 @@
20
20
  --rs-font-family-ui: var(--ktl-font-family-inter);
21
21
  }
22
22
 
23
+ :root {
24
+ --ktl-box-block-s: 4px;
25
+ --ktl-box-block-m: 8px;
26
+ --ktl-box-block-l: 16px;
27
+
28
+ --ktl-box-section-s: 24px;
29
+ --ktl-box-section-m: 32px;
30
+ --ktl-box-section-l: 48px;
31
+
32
+ --ktl-box-page-s: 64px;
33
+ --ktl-box-page-m: 72px;
34
+ --ktl-box-page-l: 96px;
35
+ }
36
+
23
37
  .ktl-hero {
24
38
  font-family: var(--ktl-font-family-inter);
25
39
  color: var(--ktl-light-text-hard);
@@ -20,6 +20,20 @@
20
20
  --rs-font-family-ui: var(--ktl-font-family-inter);
21
21
  }
22
22
 
23
+ :root {
24
+ --ktl-box-block-s: 4px;
25
+ --ktl-box-block-m: 8px;
26
+ --ktl-box-block-l: 16px;
27
+
28
+ --ktl-box-section-s: 24px;
29
+ --ktl-box-section-m: 32px;
30
+ --ktl-box-section-l: 48px;
31
+
32
+ --ktl-box-page-s: 64px;
33
+ --ktl-box-page-m: 72px;
34
+ --ktl-box-page-l: 96px;
35
+ }
36
+
23
37
  .ktl-youtube-player-module_youtube-player_aSb0a {
24
38
  position: relative;
25
39
  width: 100%;
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.5.1",
4
+ "version": "4.6.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import styles from './cta-block.module.pcss.js';
3
-
4
- const CtaBlock = ({
5
- topTitle,
6
- mainTitle,
7
- children,
8
- buttons
9
- }) => {
10
- return React.createElement("div", {
11
- className: styles.wrapper
12
- }, React.createElement("div", {
13
- className: 'ktl-container'
14
- }, topTitle && React.createElement("div", {
15
- className: styles.topTitle
16
- }, React.createElement("div", {
17
- className: 'ktl-text-2 ktl-text-2_theme_dark'
18
- }, topTitle)), React.createElement("div", {
19
- className: styles.mainTitle
20
- }, React.createElement("h2", {
21
- className: 'ktl-hero ktl-hero_theme_dark'
22
- }, mainTitle)), children && React.createElement("div", {
23
- className: styles.content
24
- }, children), React.createElement("div", null), buttons && React.createElement("div", {
25
- className: styles.buttons
26
- }, buttons)));
27
- };
28
-
29
- export { CtaBlock };