@jetbrains/kotlin-web-site-ui 4.8.3 → 4.9.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.
|
@@ -19,8 +19,8 @@ const navList = [{
|
|
|
19
19
|
title: 'Issue Tracker',
|
|
20
20
|
isTargetBlank: true
|
|
21
21
|
}, {
|
|
22
|
-
url: 'https://
|
|
23
|
-
title: 'Brand
|
|
22
|
+
url: 'https://kotlinlang.org/docs/kotlin-brand-assets.html',
|
|
23
|
+
title: 'Brand Assets',
|
|
24
24
|
isTargetBlank: true
|
|
25
25
|
}, {
|
|
26
26
|
url: 'https://www.jetbrains.com/careers/jobs/#team=Kotlin',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GitHubIcon, TwitterIcon, SlackIcon, RedditIcon, StackOverflowIcon, YoutubeIcon } from '@rescui/icons';
|
|
1
|
+
import { GitHubIcon, TwitterIcon, BlueskyIcon, SlackIcon, RedditIcon, StackOverflowIcon, YoutubeIcon } from '@rescui/icons';
|
|
2
2
|
const socialList = [{
|
|
3
3
|
url: 'https://github.com/JetBrains/kotlin',
|
|
4
4
|
title: 'Kotlin on GitHub',
|
|
@@ -9,6 +9,11 @@ const socialList = [{
|
|
|
9
9
|
title: 'Kotlin on Twitter',
|
|
10
10
|
logoAlt: 'Twitter logo',
|
|
11
11
|
icon: TwitterIcon
|
|
12
|
+
}, {
|
|
13
|
+
url: 'https://bsky.app/profile/kotlinlang.org',
|
|
14
|
+
title: 'Kotlin on Bluesky',
|
|
15
|
+
logoAlt: 'Bluesky logo',
|
|
16
|
+
icon: BlueskyIcon
|
|
12
17
|
}, {
|
|
13
18
|
url: 'https://surveys.jetbrains.com/s3/kotlin-slack-sign-up',
|
|
14
19
|
title: 'Kotlin Slack',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlueskyIcon } from '@rescui/icons';
|
|
1
2
|
import SvgGithubLogo from './svg/github-logo.svg.js';
|
|
2
3
|
import SvgRedditLogo from './svg/reddit-logo.svg.js';
|
|
3
4
|
import SvgSlackLogo from './svg/slack-logo.svg.js';
|
|
@@ -14,6 +15,11 @@ const socialList = [{
|
|
|
14
15
|
title: 'Kotlin on Twitter',
|
|
15
16
|
logoAlt: 'Twitter logo',
|
|
16
17
|
icon: SvgTwitterLogo
|
|
18
|
+
}, {
|
|
19
|
+
url: 'https://bsky.app/profile/kotlinlang.org',
|
|
20
|
+
title: 'Kotlin on Bluesky',
|
|
21
|
+
logoAlt: 'Bluesky logo',
|
|
22
|
+
icon: BlueskyIcon
|
|
17
23
|
}, {
|
|
18
24
|
url: 'https://surveys.jetbrains.com/s3/kotlin-slack-sign-up',
|
|
19
25
|
title: 'Kotlin Slack',
|
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.
|
|
4
|
+
"version": "4.9.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
7
7
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@rescui/button": "^0.10.0",
|
|
52
52
|
"@rescui/checkbox": "^0.1.0",
|
|
53
53
|
"@rescui/focus-manager": "^0.1.1",
|
|
54
|
-
"@rescui/icons": "^0.
|
|
54
|
+
"@rescui/icons": "^0.16.13",
|
|
55
55
|
"@rescui/input": "^0.4.6",
|
|
56
56
|
"@rescui/menu": "^0.9.4",
|
|
57
57
|
"@rescui/switcher": "^0.2.2",
|
package/CHANGELOG.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
## 4.3.0 (December 1, 2022)
|
|
2
|
-
|
|
3
|
-
### New breakpoints system
|
|
4
|
-
|
|
5
|
-
Add [`break points`](https://github.com/JetBrains/kotlin-web-site-ui/blob/c1b5f8f69c692b9e4041a1b3d1685a818ecef197/src/components/breakpoints/constants.ts#L1-L9) based on different typ devices width:
|
|
6
|
-
- Mobile small (**MS**)
|
|
7
|
-
- Mobile medium (**MM**)
|
|
8
|
-
- Tablet small (**TS**)
|
|
9
|
-
- Tablet medium (**TM**)
|
|
10
|
-
- Tablet large (**TL**)
|
|
11
|
-
- Desktop small (**DS**)
|
|
12
|
-
- Desktop medium (**DM**)
|
|
13
|
-
|
|
14
|
-
* `BREAKPOINTS`, `BREAKPOINTS_MAX_MEDIA` and `BREAKPOINTS_MIN_MEDIA` constants exported for inline JSX usage:
|
|
15
|
-
```jsx
|
|
16
|
-
function FlowerAdaptiveImg () {
|
|
17
|
-
return (
|
|
18
|
-
<picture>
|
|
19
|
-
<source media={BREAKPOINTS_MAX_MEDIA.MM} srcset="flowers-mobile.jpg">
|
|
20
|
-
<source media={BREAKPOINTS_MIN_MEDIA.TS && BREAKPOINTS_MAX_MEDIA.TL} srcset="flowers-tablet.jpg">
|
|
21
|
-
<img src="flowers-desktop.jpg" alt="Flowers">
|
|
22
|
-
</picture>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
* New breakpoint [**hooks**](https://github.com/JetBrains/kotlin-web-site-ui/blob/c1b5f8f69c692b9e4041a1b3d1685a818ecef197/src/components/breakpoints/hooks.ts#L5-L31) provide adaptive browser templates:
|
|
27
|
-
```jsx
|
|
28
|
-
function FlowerAdaptiveImg () {
|
|
29
|
-
const isMM = useMM();
|
|
30
|
-
const size = isMM ? 'small' : 'large';
|
|
31
|
-
return <img src={`flowers-${size}.jpg`} alt="Flowers">;
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### New pages layout
|
|
36
|
-
|
|
37
|
-
Motivation of next layout is reduce type layouts and use fix counts of resolutions without pixel-by-pixel fluid container.
|
|
38
|
-
|
|
39
|
-
* Providing new classes `ktl-layout`, `ktl-layout--center`, `ktl-layout--spacing` for fluid grid. More information in storybook.
|
|
40
|
-
* Providing new postcss `custom media` with device type like:
|
|
41
|
-
```css
|
|
42
|
-
@media (--ktl-ds) {
|
|
43
|
-
// ...
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (--ktl-mm-min) {
|
|
47
|
-
// ...
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
Medias without postfix used `max-width: $size`, medias with `-min` postfix used `min-width: $size`.
|
|
51
|
-
|
|
52
|
-
For use medias in your project it should provide [postcss-custom-media](https://github.com/csstools/postcss-custom-media):
|
|
53
|
-
```js
|
|
54
|
-
require("@webteam/postcss-preset")({
|
|
55
|
-
customMedia: [
|
|
56
|
-
// ...
|
|
57
|
-
'@jetbrains/kotlin-web-site-ui/out/components/breakpoints/media.pcss'
|
|
58
|
-
],
|
|
59
|
-
// ...
|
|
60
|
-
})
|
|
61
|
-
```
|