@jetbrains/kotlin-web-site-ui 4.8.0-alpha.4 → 4.8.0-alpha.6
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/nav-item/index.css +6 -0
- package/out/components/nav-item/index.js +1 -1
- package/out/components/sidebar-menu/index.css +1 -109
- package/out/components/sidebar-menu/{sidebar-menu/menu-header.js → menu-header.js} +2 -2
- package/out/components/sidebar-menu/{sidebar-menu/sidebar-menu.js → sidebar-menu.js} +1 -2
- package/package.json +1 -1
- package/out/components/sidebar-menu/sidebar/sidebar.js +0 -11
- /package/out/components/sidebar-menu/{sidebar-menu/index.js → index.js} +0 -0
- /package/out/components/sidebar-menu/{sidebar-menu/menu-header.module.css.js → menu-header.module.css.js} +0 -0
- /package/out/components/sidebar-menu/{sidebar-menu/menu-item.js → menu-item.js} +0 -0
- /package/out/components/sidebar-menu/{sidebar-menu/popup.module.css.js → popup.module.css.js} +0 -0
|
@@ -10,10 +10,16 @@
|
|
|
10
10
|
background: none;
|
|
11
11
|
color: #ffffff;
|
|
12
12
|
}
|
|
13
|
+
|
|
13
14
|
.ktl-nav-item-module_navItem_gRy22:hover {
|
|
14
15
|
background: rgba(255, 255, 255, 0.10);
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
.ktl-nav-item-module_navItem_gRy22:focus {
|
|
19
|
+
box-shadow: #8979ff 0 0 0 4px;
|
|
20
|
+
outline: none
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
.ktl-nav-item-module_rightIcon_XlxMF {
|
|
18
24
|
flex-direction: row-reverse;
|
|
19
25
|
}
|
|
@@ -21,7 +21,7 @@ const NavItem = ({
|
|
|
21
21
|
[styles.titleWithIconRight]: iconPosition === 'right',
|
|
22
22
|
[styles.titleWithoutIcon]: !children
|
|
23
23
|
});
|
|
24
|
-
return React.createElement("
|
|
24
|
+
return React.createElement("button", {
|
|
25
25
|
className: navItemClass,
|
|
26
26
|
onClick: onClick
|
|
27
27
|
}, icon ? icon : null, React.createElement("div", {
|
|
@@ -33,112 +33,4 @@
|
|
|
33
33
|
border-radius: 50%;
|
|
34
34
|
width: 52px;
|
|
35
35
|
height: 52px;
|
|
36
|
-
}
|
|
37
|
-
.ktl-sidebar-module_popup_bidR1 {
|
|
38
|
-
position: fixed;
|
|
39
|
-
top: 0;
|
|
40
|
-
left: 0;
|
|
41
|
-
right: 0;
|
|
42
|
-
bottom: 0;
|
|
43
|
-
z-index: 910;
|
|
44
|
-
|
|
45
|
-
--ktf-header-animation-timing: 250ms;
|
|
46
|
-
--ktf-header-animation-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ktl-sidebar-module_popup_bidR1::before {
|
|
50
|
-
display: block;
|
|
51
|
-
content: '';
|
|
52
|
-
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 0;
|
|
55
|
-
bottom: 0;
|
|
56
|
-
right: 0;
|
|
57
|
-
left: 0;
|
|
58
|
-
|
|
59
|
-
visibility: visible;
|
|
60
|
-
-webkit-backdrop-filter: blur(4px);
|
|
61
|
-
backdrop-filter: blur(4px);
|
|
62
|
-
|
|
63
|
-
transition: background-color var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
64
|
-
visibility var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
65
|
-
-webkit-backdrop-filter var(--ktf-header-animation-function) var(--ktf-header-animation-timing);
|
|
66
|
-
|
|
67
|
-
transition: background-color var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
68
|
-
visibility var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
69
|
-
backdrop-filter var(--ktf-header-animation-function) var(--ktf-header-animation-timing);
|
|
70
|
-
|
|
71
|
-
transition: background-color var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
72
|
-
visibility var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
73
|
-
backdrop-filter var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
74
|
-
-webkit-backdrop-filter var(--ktf-header-animation-function) var(--ktf-header-animation-timing);
|
|
75
|
-
will-change: background-color, visible;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ktl-sidebar-module_popup_bidR1.ktl-sidebar-module_tabletMode_vcf0T {
|
|
79
|
-
--ktl-sidebar-width: 320px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ktl-sidebar-module_popup_bidR1.ktl-sidebar-module_mobileMode_yCmFY {
|
|
83
|
-
--ktl-sidebar-width: 100%;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (min-width: 473px) {
|
|
87
|
-
|
|
88
|
-
.ktl-sidebar-module_popup_bidR1:not(:is(.ktl-sidebar-module_tabletMode_vcf0T, .ktl-sidebar-module_mobileMode_yCmFY)) {
|
|
89
|
-
--ktl-sidebar-width: 320px
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@media (max-width: 472px) {
|
|
94
|
-
|
|
95
|
-
.ktl-sidebar-module_popup_bidR1:not(:is(.ktl-sidebar-module_tabletMode_vcf0T, .ktl-sidebar-module_mobileMode_yCmFY)) {
|
|
96
|
-
--ktl-sidebar-width: 100%
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ktl-sidebar-module_content_SzdiT {
|
|
101
|
-
margin-left: auto;
|
|
102
|
-
height: 100%;
|
|
103
|
-
max-width: 100%;
|
|
104
|
-
width: var(--ktl-sidebar-width, auto);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.ktl-sidebar-module_dark_GNaUl::before {
|
|
108
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.ktl-sidebar-module_dark_GNaUl > .ktl-sidebar-module_content_SzdiT {
|
|
112
|
-
background-color: var(--ktl-dark-100);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ktl-sidebar-module_light_OnGcf::before {
|
|
116
|
-
background-color: rgba(0, 0, 0, 0.62);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ktl-sidebar-module_light_OnGcf > .ktl-sidebar-module_content_SzdiT {
|
|
120
|
-
background-color: #fff;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ktl-sidebar-module_popup_bidR1 > .ktl-sidebar-module_content_SzdiT {
|
|
124
|
-
transform: translateX(0);
|
|
125
|
-
|
|
126
|
-
transition: transform var(--ktf-header-animation-function) var(--ktf-header-animation-timing),
|
|
127
|
-
visibility var(--ktf-header-animation-function) var(--ktf-header-animation-timing);
|
|
128
|
-
will-change: transform;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ktl-sidebar-module_close_lN33m {
|
|
132
|
-
--ktf-header-animation-timing: 300ms;
|
|
133
|
-
pointer-events: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ktl-sidebar-module_close_lN33m::before {
|
|
137
|
-
background: rgba(0, 0, 0, 0);
|
|
138
|
-
visibility: hidden;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ktl-sidebar-module_close_lN33m > .ktl-sidebar-module_content_SzdiT {
|
|
142
|
-
transform: translateX(100%);
|
|
143
|
-
visibility: hidden;
|
|
144
|
-
}
|
|
36
|
+
}
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { useTheme } from '@rescui/ui-contexts';
|
|
4
4
|
import { CloseIcon } from '@rescui/icons';
|
|
5
|
-
import Button from '@rescui/button';
|
|
5
|
+
import { Button } from '@rescui/button';
|
|
6
|
+
import { useSidebarContext } from '@jetbrains/kotlin-web-site-ui/out/components/sidebar';
|
|
6
7
|
import styles from './menu-header.module.css.js';
|
|
7
|
-
import { useSidebarContext } from '../sidebar/sidebar.js';
|
|
8
8
|
|
|
9
9
|
function SidebarMenuHeader({
|
|
10
10
|
className,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Menu } from '@rescui/menu';
|
|
4
|
-
import { Sidebar } from '@jetbrains/kotlin-web-site-ui/out/components/sidebar
|
|
4
|
+
import { Sidebar } from '@jetbrains/kotlin-web-site-ui/out/components/sidebar';
|
|
5
5
|
import { SidebarMenuItem } from './menu-item.js';
|
|
6
6
|
import styles from './popup.module.css.js';
|
|
7
7
|
import '@rescui/ui-contexts';
|
|
8
8
|
import '@rescui/icons';
|
|
9
9
|
import '@rescui/button';
|
|
10
|
-
import '../sidebar/sidebar.js';
|
|
11
10
|
|
|
12
11
|
function SidebarMenu({
|
|
13
12
|
className,
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import 'react-remove-scroll-bar';
|
|
4
|
-
import '@rescui/ui-contexts';
|
|
5
|
-
const SidebarContext = createContext({});
|
|
6
|
-
|
|
7
|
-
function useSidebarContext() {
|
|
8
|
-
return useContext(SidebarContext);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { SidebarContext, useSidebarContext };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/out/components/sidebar-menu/{sidebar-menu/popup.module.css.js → popup.module.css.js}
RENAMED
|
File without changes
|