@meduza/ui-kit-2 0.1.16 → 0.1.18
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/dist/ui-kit-2.cjs.development.js +2 -2
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +2 -2
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +653 -631
- package/package.json +1 -1
- package/src/Button/Button.module.css +19 -29
- package/src/DotsOnImage/index.tsx +4 -2
- package/src/MaterialNote/MaterialNote.module.css +1 -1
- package/src/SourceBlock/SourceBlock.module.css +3 -3
- package/src/Spoiler/Spoiler.module.css +29 -10
package/package.json
CHANGED
|
@@ -5,21 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
padding: 0;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
line-height: 1;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
user-select: none;
|
|
10
|
+
transition: background-color 0.15s ease-out;
|
|
12
11
|
text-align: center;
|
|
13
12
|
|
|
13
|
+
color: #fff;
|
|
14
14
|
border-width: 0;
|
|
15
15
|
outline: none;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
transition: background-color 0.15s ease-out;
|
|
17
|
+
font-family: $secondaryFont;
|
|
18
|
+
line-height: 1;
|
|
20
19
|
|
|
21
20
|
appearance: none;
|
|
22
|
-
user-select: none;
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
.root::-moz-focus-inner {
|
|
@@ -28,10 +26,9 @@
|
|
|
28
26
|
|
|
29
27
|
.root[disabled] {
|
|
30
28
|
cursor: default;
|
|
29
|
+
pointer-events: none;
|
|
31
30
|
|
|
32
31
|
opacity: 0.5;
|
|
33
|
-
|
|
34
|
-
pointer-events: none;
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
.root > span:first-child {
|
|
@@ -64,7 +61,6 @@
|
|
|
64
61
|
|
|
65
62
|
.gray {
|
|
66
63
|
color: #000;
|
|
67
|
-
|
|
68
64
|
background-color: #f0f0f0;
|
|
69
65
|
}
|
|
70
66
|
|
|
@@ -106,7 +102,6 @@
|
|
|
106
102
|
|
|
107
103
|
.dark {
|
|
108
104
|
color: #adadad;
|
|
109
|
-
|
|
110
105
|
background-color: #3a3a3a;
|
|
111
106
|
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.4);
|
|
112
107
|
}
|
|
@@ -129,7 +124,6 @@
|
|
|
129
124
|
|
|
130
125
|
.light {
|
|
131
126
|
color: #000;
|
|
132
|
-
|
|
133
127
|
background-color: #fff;
|
|
134
128
|
}
|
|
135
129
|
|
|
@@ -151,7 +145,6 @@
|
|
|
151
145
|
|
|
152
146
|
.black {
|
|
153
147
|
color: #7e7d7b;
|
|
154
|
-
|
|
155
148
|
background-color: #000;
|
|
156
149
|
}
|
|
157
150
|
|
|
@@ -194,18 +187,17 @@
|
|
|
194
187
|
.default {
|
|
195
188
|
width: 100%;
|
|
196
189
|
height: 42px;
|
|
197
|
-
padding:
|
|
198
|
-
|
|
199
|
-
font-weight: 600;
|
|
200
|
-
|
|
201
|
-
font-size: 12px;
|
|
202
|
-
line-height: 22px;
|
|
190
|
+
padding: 6px 18px;
|
|
203
191
|
|
|
204
192
|
letter-spacing: 1px;
|
|
205
193
|
text-transform: uppercase;
|
|
206
194
|
|
|
207
195
|
border-radius: 8px;
|
|
208
196
|
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
font-weight: 600;
|
|
199
|
+
line-height: 22px;
|
|
200
|
+
|
|
209
201
|
@media $landscapeTablet {
|
|
210
202
|
font-size: 14px;
|
|
211
203
|
line-height: 16px;
|
|
@@ -218,16 +210,15 @@
|
|
|
218
210
|
}
|
|
219
211
|
|
|
220
212
|
.ghost {
|
|
221
|
-
|
|
222
|
-
color: inherit;
|
|
223
|
-
font-weight: inherit;
|
|
224
|
-
font-size: inherit;
|
|
225
|
-
|
|
226
|
-
font-family: inherit;
|
|
227
213
|
letter-spacing: inherit;
|
|
228
214
|
text-transform: none;
|
|
229
215
|
|
|
216
|
+
color: inherit;
|
|
230
217
|
background-color: transparent;
|
|
218
|
+
|
|
219
|
+
font-family: inherit;
|
|
220
|
+
font-size: inherit;
|
|
221
|
+
font-weight: inherit;
|
|
231
222
|
}
|
|
232
223
|
|
|
233
224
|
.isInDropdown {
|
|
@@ -242,12 +233,11 @@
|
|
|
242
233
|
/* LOADING */
|
|
243
234
|
|
|
244
235
|
.root.isLoading {
|
|
236
|
+
cursor: default;
|
|
237
|
+
pointer-events: none;
|
|
245
238
|
|
|
246
239
|
background-color: transparent;
|
|
247
240
|
box-shadow: none;
|
|
248
|
-
cursor: default;
|
|
249
|
-
|
|
250
|
-
pointer-events: none;
|
|
251
241
|
}
|
|
252
242
|
|
|
253
243
|
.loader {
|
|
@@ -126,7 +126,9 @@ export const DotsOnImage: React.FC<DotsOnImageProps> = ({
|
|
|
126
126
|
style={{
|
|
127
127
|
top: `${dot.position.y}%`,
|
|
128
128
|
left: `${dot.position.x}%`,
|
|
129
|
-
transform: `scale(${ratio}) translate(
|
|
129
|
+
transform: `scale(${ratio}) translate(-${50 / ratio}%, -${
|
|
130
|
+
50 / ratio
|
|
131
|
+
}%)`
|
|
130
132
|
}}
|
|
131
133
|
>
|
|
132
134
|
<button
|
|
@@ -136,7 +138,7 @@ export const DotsOnImage: React.FC<DotsOnImageProps> = ({
|
|
|
136
138
|
])}
|
|
137
139
|
type="button"
|
|
138
140
|
style={{
|
|
139
|
-
backgroundColor: dot.icon.color
|
|
141
|
+
backgroundColor: dot.icon.color
|
|
140
142
|
}}
|
|
141
143
|
onClick={(): void => handleDotClick(dot)}
|
|
142
144
|
>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
display: block;
|
|
5
5
|
|
|
6
6
|
margin: 18px 0 15px;
|
|
7
|
-
padding: 12px 11px
|
|
7
|
+
padding: 12px 11px 17px;
|
|
8
8
|
|
|
9
9
|
color: #000;
|
|
10
|
-
border-left: 4px solid $gold;
|
|
11
10
|
border-radius: 2px 8px 8px 2px;
|
|
12
11
|
background-color: $platinum;
|
|
12
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 4px 0 0 0 #b78b5c;
|
|
13
13
|
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
line-height: 20px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@media $portraitTablet {
|
|
18
18
|
margin-top: 25px;
|
|
19
19
|
margin-bottom: 25px;
|
|
20
|
-
padding: 18px 16px
|
|
20
|
+
padding: 18px 16px 16px;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -35,9 +35,10 @@
|
|
|
35
35
|
margin-top: 0;
|
|
36
36
|
margin-bottom: 18px;
|
|
37
37
|
|
|
38
|
-
font-family: $secondaryFont;
|
|
39
|
-
font-size: 21px;
|
|
40
38
|
font-weight: 700;
|
|
39
|
+
font-size: 21px;
|
|
40
|
+
|
|
41
|
+
font-family: $secondaryFont;
|
|
41
42
|
line-height: 26px;
|
|
42
43
|
|
|
43
44
|
@media $mobile {
|
|
@@ -66,6 +67,10 @@
|
|
|
66
67
|
|
|
67
68
|
.spoiled {
|
|
68
69
|
min-height: auto;
|
|
70
|
+
|
|
71
|
+
@media $mobileMax {
|
|
72
|
+
padding-bottom: 0;
|
|
73
|
+
}
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
.spoiled .body {
|
|
@@ -78,16 +83,16 @@
|
|
|
78
83
|
|
|
79
84
|
.spoiled .footer {
|
|
80
85
|
position: sticky;
|
|
81
|
-
z-index: 10;
|
|
82
86
|
bottom: 0;
|
|
87
|
+
z-index: 10;
|
|
83
88
|
|
|
84
89
|
margin-right: -20px;
|
|
85
90
|
margin-left: -20px;
|
|
86
91
|
padding: 12px 20px 20px;
|
|
87
92
|
|
|
88
|
-
|
|
93
|
+
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 64%);
|
|
89
94
|
|
|
90
|
-
|
|
95
|
+
animation: spoilerSticky 500ms ease both;
|
|
91
96
|
|
|
92
97
|
@media $mobile {
|
|
93
98
|
position: static;
|
|
@@ -96,25 +101,27 @@
|
|
|
96
101
|
margin-left: 0;
|
|
97
102
|
padding: 0;
|
|
98
103
|
|
|
99
|
-
animation: none;
|
|
100
|
-
|
|
101
104
|
background-image: none;
|
|
105
|
+
|
|
106
|
+
animation: none;
|
|
102
107
|
}
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
.spoiled .footer::after {
|
|
106
111
|
position: absolute;
|
|
107
|
-
z-index: -1;
|
|
108
112
|
top: 100%;
|
|
109
113
|
right: 0;
|
|
110
114
|
left: 0;
|
|
115
|
+
z-index: -1;
|
|
111
116
|
|
|
112
117
|
height: 16px;
|
|
113
118
|
|
|
114
|
-
content: '';
|
|
115
|
-
|
|
116
119
|
background-color: #fff;
|
|
117
120
|
|
|
121
|
+
animation: spoilerStickyBg 1ms ease both 500ms;
|
|
122
|
+
|
|
123
|
+
content: '';
|
|
124
|
+
|
|
118
125
|
@media $mobile {
|
|
119
126
|
content: none;
|
|
120
127
|
}
|
|
@@ -144,14 +151,26 @@
|
|
|
144
151
|
0% {
|
|
145
152
|
transform: translateY(62px);
|
|
146
153
|
}
|
|
154
|
+
|
|
147
155
|
50% {
|
|
148
156
|
transform: translateY(-16px);
|
|
149
157
|
}
|
|
158
|
+
|
|
150
159
|
100% {
|
|
151
160
|
transform: translateY(0);
|
|
152
161
|
}
|
|
153
162
|
}
|
|
154
163
|
|
|
164
|
+
@keyframes spoilerStickyBg {
|
|
165
|
+
0% {
|
|
166
|
+
background-color: #fff;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
100% {
|
|
170
|
+
background-color: transparent;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
155
174
|
[data-gdpr-panel='true'] .spoiled .footer {
|
|
156
175
|
bottom: 45px;
|
|
157
176
|
|