@meduza/ui-kit-2 0.8.693 → 0.8.702

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.
@@ -242,13 +242,6 @@
242
242
  }
243
243
  }
244
244
 
245
- .Button-module_isInToolbar__84SG- {
246
- display: flex;
247
- width: 100%;
248
- justify-content: space-between;
249
- align-items: center;
250
- }
251
-
252
245
  .Button-module_isInSpoiler__pGp-w svg {
253
246
  margin-top: -2px;
254
247
  margin-left: 6px;
@@ -519,6 +512,9 @@
519
512
  }
520
513
 
521
514
  .SvgSymbol-module_bookmark__JPKyG {
515
+ width: 17px;
516
+ height: auto;
517
+
522
518
  cursor: pointer;
523
519
 
524
520
  stroke-width: 2px;
@@ -527,6 +523,8 @@
527
523
  @media only screen and (min-width: 40.625em) {
528
524
 
529
525
  .SvgSymbol-module_bookmark__JPKyG {
526
+ width: 14px;
527
+
530
528
  stroke-width: 1.5px;
531
529
  }
532
530
  }
@@ -759,12 +757,6 @@
759
757
  height: 100%;
760
758
  }
761
759
 
762
- .Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
763
- position: static;
764
- width: 100%;
765
- height: 100%;
766
- }
767
-
768
760
  .Image-module_isStatic__TmQ1V img {
769
761
  position: relative;
770
762
  max-height: 160px;
@@ -1368,24 +1360,6 @@
1368
1360
  }
1369
1361
  }
1370
1362
 
1371
- .Tag-module_isInDynamicBlock__WNleF {
1372
- opacity: 0.5;
1373
- }
1374
-
1375
- .Tag-module_isInPodcastPlayer__H4sK9 {
1376
- font-size: 12px;
1377
- line-height: 12px;
1378
- opacity: 1;
1379
- margin-bottom: 6px;
1380
- }
1381
-
1382
- @media only screen and (min-width: 32em) {
1383
-
1384
- .Tag-module_isInPodcastPlayer__H4sK9 {
1385
- margin-bottom: 6px;
1386
- }
1387
- }
1388
-
1389
1363
  @media only screen and (min-width: 32em) {
1390
1364
 
1391
1365
  .Tag-module_mobile__19oMH {
@@ -2098,7 +2072,6 @@
2098
2072
  }
2099
2073
 
2100
2074
  .Dropdown-module_root__Wv7S- {
2101
- width: 100%;
2102
2075
  position: relative;
2103
2076
  z-index: auto;
2104
2077
 
@@ -2167,16 +2140,23 @@
2167
2140
  .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL {
2168
2141
  right: 0;
2169
2142
  left: auto;
2170
- transform: translate(-50%, -100%);
2171
2143
  }
2172
2144
 
2145
+ @media only screen and (min-width: 40.625em) {
2146
+
2147
+ .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL {
2148
+ right: auto;
2149
+ left: 0;
2150
+ }
2151
+ }
2152
+
2173
2153
  .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL ul {
2174
2154
  width: 162px;
2175
2155
  }
2176
2156
 
2177
2157
  .Dropdown-module_menu__11IQL {
2178
2158
  position: absolute;
2179
- z-index: 2;
2159
+ z-index: 1;
2180
2160
  top: 100%;
2181
2161
  left: 0;
2182
2162
 
@@ -2393,7 +2373,6 @@
2393
2373
  display: flex;
2394
2374
  flex-flow: row wrap;
2395
2375
  align-items: center;
2396
- justify-content: center;
2397
2376
 
2398
2377
  text-align: center;
2399
2378
  }
@@ -2766,22 +2745,22 @@
2766
2745
  position: relative;
2767
2746
  }
2768
2747
 
2769
- .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2748
+ .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
+ position: static;
2750
+ }
2751
+
2752
+ .EmbedBlock-module_isYoutube__WpBkS {
2770
2753
  width: 100%;
2771
2754
  max-height: 70vh;
2772
2755
  }
2773
2756
 
2774
2757
  @media only screen and (min-width: 40.625em) {
2775
2758
 
2776
- .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2759
+ .EmbedBlock-module_isYoutube__WpBkS {
2777
2760
  max-height: 90vh;
2778
2761
  }
2779
2762
  }
2780
2763
 
2781
- .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2782
- position: static;
2783
- }
2784
-
2785
2764
  /* DEVICES */
2786
2765
 
2787
2766
  @media only screen and (min-width: 32em) {
@@ -3267,40 +3246,6 @@
3267
3246
  }
3268
3247
  }
3269
3248
 
3270
- .RichTitle-module_root__U5XQu.RichTitle-module_isInDynamicBlock__J-gM6 {
3271
- margin: 0 0 28px;
3272
- }
3273
-
3274
- @media only screen and (min-width: 40.625em) {
3275
-
3276
- .RichTitle-module_root__U5XQu.RichTitle-module_isInDynamicBlock__J-gM6 {
3277
- font-size: 37px;
3278
- line-height: 42px;
3279
- }
3280
- }
3281
-
3282
- .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3283
- font-size: 19px;
3284
- line-height: 23px;
3285
- margin: 0 0 20px;
3286
- }
3287
-
3288
- @media only screen and (min-width: 40.625em) {
3289
-
3290
- .RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
3291
- font-size: 37px;
3292
- line-height: 42px;
3293
- }
3294
- }
3295
-
3296
- @media only screen and (min-width: 40.625em) {
3297
-
3298
- .RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
3299
- font-size: 1.3rem;
3300
- line-height: 1.6rem;
3301
- }
3302
- }
3303
-
3304
3249
  @media only screen and (min-width: 32em) {
3305
3250
 
3306
3251
  .RichTitle-module_mobile__W5L9E {
package/dist/ui-kit.css CHANGED
@@ -242,13 +242,6 @@
242
242
  }
243
243
  }
244
244
 
245
- .Button-module_isInToolbar__84SG- {
246
- display: flex;
247
- width: 100%;
248
- justify-content: space-between;
249
- align-items: center;
250
- }
251
-
252
245
  .Button-module_isInSpoiler__pGp-w svg {
253
246
  margin-top: -2px;
254
247
  margin-left: 6px;
@@ -519,6 +512,9 @@
519
512
  }
520
513
 
521
514
  .SvgSymbol-module_bookmark__JPKyG {
515
+ width: 17px;
516
+ height: auto;
517
+
522
518
  cursor: pointer;
523
519
 
524
520
  stroke-width: 2px;
@@ -527,6 +523,8 @@
527
523
  @media only screen and (min-width: 64em) {
528
524
 
529
525
  .SvgSymbol-module_bookmark__JPKyG {
526
+ width: 14px;
527
+
530
528
  stroke-width: 1.5px;
531
529
  }
532
530
  }
@@ -759,12 +757,6 @@
759
757
  height: 100%;
760
758
  }
761
759
 
762
- .Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
763
- position: static;
764
- width: 100%;
765
- height: 100%;
766
- }
767
-
768
760
  .Image-module_isStatic__TmQ1V img {
769
761
  position: relative;
770
762
  max-height: 160px;
@@ -1368,24 +1360,6 @@
1368
1360
  }
1369
1361
  }
1370
1362
 
1371
- .Tag-module_isInDynamicBlock__WNleF {
1372
- opacity: 0.5;
1373
- }
1374
-
1375
- .Tag-module_isInPodcastPlayer__H4sK9 {
1376
- font-size: 12px;
1377
- line-height: 12px;
1378
- opacity: 1;
1379
- margin-bottom: 6px;
1380
- }
1381
-
1382
- @media only screen and (min-width: 32em) {
1383
-
1384
- .Tag-module_isInPodcastPlayer__H4sK9 {
1385
- margin-bottom: 6px;
1386
- }
1387
- }
1388
-
1389
1363
  @media only screen and (min-width: 32em) {
1390
1364
 
1391
1365
  .Tag-module_mobile__19oMH {
@@ -2098,7 +2072,6 @@
2098
2072
  }
2099
2073
 
2100
2074
  .Dropdown-module_root__Wv7S- {
2101
- width: 100%;
2102
2075
  position: relative;
2103
2076
  z-index: auto;
2104
2077
 
@@ -2167,16 +2140,23 @@
2167
2140
  .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL {
2168
2141
  right: 0;
2169
2142
  left: auto;
2170
- transform: translate(-50%, -100%);
2171
2143
  }
2172
2144
 
2145
+ @media only screen and (min-width: 64em) {
2146
+
2147
+ .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL {
2148
+ right: auto;
2149
+ left: 0;
2150
+ }
2151
+ }
2152
+
2173
2153
  .Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL ul {
2174
2154
  width: 162px;
2175
2155
  }
2176
2156
 
2177
2157
  .Dropdown-module_menu__11IQL {
2178
2158
  position: absolute;
2179
- z-index: 2;
2159
+ z-index: 1;
2180
2160
  top: 100%;
2181
2161
  left: 0;
2182
2162
 
@@ -2393,7 +2373,6 @@
2393
2373
  display: flex;
2394
2374
  flex-flow: row wrap;
2395
2375
  align-items: center;
2396
- justify-content: center;
2397
2376
 
2398
2377
  text-align: center;
2399
2378
  }
@@ -2766,22 +2745,22 @@
2766
2745
  position: relative;
2767
2746
  }
2768
2747
 
2769
- .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2748
+ .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
+ position: static;
2750
+ }
2751
+
2752
+ .EmbedBlock-module_isYoutube__WpBkS {
2770
2753
  width: 100%;
2771
2754
  max-height: 70vh;
2772
2755
  }
2773
2756
 
2774
2757
  @media only screen and (min-width: 64em) {
2775
2758
 
2776
- .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2759
+ .EmbedBlock-module_isYoutube__WpBkS {
2777
2760
  max-height: 90vh;
2778
2761
  }
2779
2762
  }
2780
2763
 
2781
- .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2782
- position: static;
2783
- }
2784
-
2785
2764
  /* DEVICES */
2786
2765
 
2787
2766
  @media only screen and (min-width: 32em) {
@@ -3267,40 +3246,6 @@
3267
3246
  }
3268
3247
  }
3269
3248
 
3270
- .RichTitle-module_root__U5XQu.RichTitle-module_isInDynamicBlock__J-gM6 {
3271
- margin: 0 0 28px;
3272
- }
3273
-
3274
- @media only screen and (min-width: 64em) {
3275
-
3276
- .RichTitle-module_root__U5XQu.RichTitle-module_isInDynamicBlock__J-gM6 {
3277
- font-size: 37px;
3278
- line-height: 42px;
3279
- }
3280
- }
3281
-
3282
- .RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
3283
- font-size: 19px;
3284
- line-height: 23px;
3285
- margin: 0 0 20px;
3286
- }
3287
-
3288
- @media only screen and (min-width: 48em) {
3289
-
3290
- .RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
3291
- font-size: 37px;
3292
- line-height: 42px;
3293
- }
3294
- }
3295
-
3296
- @media only screen and (min-width: 64em) {
3297
-
3298
- .RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
3299
- font-size: 1.3rem;
3300
- line-height: 1.6rem;
3301
- }
3302
- }
3303
-
3304
3249
  @media only screen and (min-width: 32em) {
3305
3250
 
3306
3251
  .RichTitle-module_mobile__W5L9E {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.693",
2
+ "version": "0.8.702",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -212,13 +212,6 @@
212
212
  }
213
213
  }
214
214
 
215
- .isInToolbar {
216
- display: flex;
217
- width: 100%;
218
- justify-content: space-between;
219
- align-items: center;
220
- }
221
-
222
215
  .isInSpoiler svg {
223
216
  margin-top: -2px;
224
217
  margin-left: 6px;
@@ -1,5 +1,4 @@
1
1
  .root {
2
- width: 100%;
3
2
  position: relative;
4
3
  z-index: auto;
5
4
 
@@ -65,7 +64,11 @@
65
64
  .isInAudioPanel .menu {
66
65
  right: 0;
67
66
  left: auto;
68
- transform: translate(-50%, -100%);
67
+
68
+ @media $landscapeTablet {
69
+ right: auto;
70
+ left: 0;
71
+ }
69
72
  }
70
73
 
71
74
  .isInAudioPanel .menu ul {
@@ -74,7 +77,7 @@
74
77
 
75
78
  .menu {
76
79
  position: absolute;
77
- z-index: 2;
80
+ z-index: 1;
78
81
  top: 100%;
79
82
  left: 0;
80
83
 
@@ -250,7 +250,11 @@
250
250
  position: relative;
251
251
  }
252
252
 
253
- .wrapper.isProportional {
253
+ .wrapper .objectWrap {
254
+ position: static;
255
+ }
256
+
257
+ .isYoutube {
254
258
  width: 100%;
255
259
  max-height: 70vh;
256
260
 
@@ -259,10 +263,6 @@
259
263
  }
260
264
  }
261
265
 
262
- .wrapper .objectWrap {
263
- position: static;
264
- }
265
-
266
266
  /* DEVICES */
267
267
  .mobile {
268
268
  @media $mobile {
@@ -98,13 +98,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
98
98
  default: {
99
99
  return (
100
100
  <div className={styles.object}>
101
- <div
102
- className={makeClassName([
103
- [styles.wrapper, true],
104
- [styles.isProportional, isProportional]
105
- ])}
106
- style={style}
107
- >
101
+ <div className={styles.wrapper} style={style}>
108
102
  <DangerousHTML className={styles.objectWrap} html={html} />
109
103
  </div>
110
104
  </div>
@@ -113,7 +107,10 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
113
107
  }
114
108
  }
115
109
 
116
- if (isProportional) {
110
+ if (isProportional && provider !== 'youtube') {
111
+ style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
112
+ style.height = 0
113
+ } else if (isProportional && provider === 'youtube') {
117
114
  style.aspectRatio = `${block.data.width} / ${block.data.height}`
118
115
  }
119
116
 
@@ -150,7 +147,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
150
147
  <div
151
148
  className={makeClassName([
152
149
  [styles.wrapper, true],
153
- [styles.isProportional, isProportional]
150
+ [styles.isYoutube, true]
154
151
  ])}
155
152
  style={style}
156
153
  >
@@ -22,12 +22,6 @@
22
22
  height: 100%;
23
23
  }
24
24
 
25
- .root.fullRatio img {
26
- position: static;
27
- width: 100%;
28
- height: 100%;
29
- }
30
-
31
25
  .isStatic img {
32
26
  position: relative;
33
27
  max-height: 160px;
@@ -38,8 +38,7 @@ export const Image: React.FC<ImageProps> = ({
38
38
  }
39
39
 
40
40
  const pictureStyles = {
41
- paddingBottom:
42
- ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
41
+ paddingBottom: `${100 / (ratio || width / height)}%`
43
42
  }
44
43
 
45
44
  /* fallback w325 url until w6 was released */
@@ -54,8 +53,7 @@ export const Image: React.FC<ImageProps> = ({
54
53
  [
55
54
  styles.fullscreen,
56
55
  lightBox && optimized && optimized.original && fullscreen
57
- ],
58
- [styles.fullRatio, ratio === null]
56
+ ]
59
57
  ]
60
58
 
61
59
  if (styleContext) {
@@ -56,7 +56,6 @@
56
56
  display: flex;
57
57
  flex-flow: row wrap;
58
58
  align-items: center;
59
- justify-content: center;
60
59
 
61
60
  text-align: center;
62
61
  }
@@ -73,9 +73,7 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
73
73
  return (
74
74
  <MetaItem hasSource={hasSource} bullets key={component.id}>
75
75
  <>
76
- {styleContext !== 'isInDynamicBlock' && (
77
- <SvgSymbol icon="podcast" size="small" />
78
- )}
76
+ <SvgSymbol icon="podcast" size="small" />
79
77
  {component.text}
80
78
  </>
81
79
  </MetaItem>
@@ -113,35 +113,6 @@
113
113
  }
114
114
  }
115
115
 
116
- .root.isInDynamicBlock {
117
- margin: 0 0 28px;
118
-
119
- @media $landscapeTablet {
120
- font-size: 37px;
121
- line-height: 42px;
122
- }
123
- }
124
-
125
- .root.isInPodcastPlayer {
126
- font-size: 19px;
127
- line-height: 23px;
128
- margin: 0 0 20px;
129
- }
130
-
131
- .root.large {
132
- @media $portraitTablet {
133
- font-size: 37px;
134
- line-height: 42px;
135
- }
136
- }
137
-
138
- .root.medium {
139
- @media $landscapeTablet {
140
- font-size: 1.3rem;
141
- line-height: 1.6rem;
142
- }
143
- }
144
-
145
116
  .mobile {
146
117
  @media $mobile {
147
118
  display: none;
@@ -9,5 +9,4 @@ export interface RichTitleProps {
9
9
  }
10
10
  }
11
11
  styleContext?: string[] | string
12
- size?: string
13
12
  }
@@ -10,14 +10,12 @@ export const RichTitle: React.FC<RichTitleProps> = ({
10
10
  only_on: onlyOn,
11
11
  data: { featured, first, second, as: TagName = 'h1' }
12
12
  },
13
- styleContext,
14
- size = 'default'
13
+ styleContext
15
14
  }) => {
16
15
  let classNames: ClassNames = [
17
16
  [styles.root, true],
18
17
  [styles[onlyOn], true],
19
- [styles.featured, !!featured],
20
- [styles[size], !!size]
18
+ [styles.featured, !!featured]
21
19
  ]
22
20
 
23
21
  if (styleContext) {
@@ -194,11 +194,16 @@
194
194
  }
195
195
 
196
196
  .bookmark {
197
+ width: 17px;
198
+ height: auto;
199
+
197
200
  cursor: pointer;
198
201
 
199
202
  stroke-width: 2px;
200
203
 
201
204
  @media $landscapeTablet {
205
+ width: 14px;
206
+
202
207
  stroke-width: 1.5px;
203
208
  }
204
209
  }
@@ -20,20 +20,19 @@ export type Icons =
20
20
  | 'menu'
21
21
  | 'fb'
22
22
  | 'tw'
23
+ | 'vk'
24
+ | 'ok'
23
25
  | 'tg'
24
26
  | 'chat'
25
27
  | 'magic'
26
28
  | 'backward'
27
29
  | 'forward'
28
30
  | 'download'
29
- | 'episodeDownload'
30
31
  | 'play'
31
32
  | 'pause'
32
33
  | 'shareBookmark'
33
34
  | 'speedHalf'
34
- | 'speedThreeQuarters'
35
35
  | 'speedOne'
36
- | 'speedOneQuarter'
37
36
  | 'speedOneHalf'
38
37
  | 'speedTwo'
39
38
  | 'podcastBookmark'