@jetbrains/kotlin-web-site-ui 4.8.0-alpha.4 → 4.8.0-alpha.5

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.
@@ -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/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,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",
4
+ "version": "4.8.0-alpha.5",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [
@@ -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 };