@meduza/ui-kit-2 0.9.3 → 0.9.4
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/RichTitle/RichTitle.types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +6 -6
- 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 +6 -6
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +14 -8
- package/dist/ui-kit.css +14 -8
- package/package.json +1 -1
- package/src/Image/Image.module.css +6 -0
- package/src/Image/index.tsx +3 -4
- package/src/RichTitle/RichTitle.module.css +8 -8
- package/src/RichTitle/RichTitle.types.ts +1 -1
- package/src/RichTitle/index.tsx +2 -3
package/dist/ui-kit-game.css
CHANGED
|
@@ -759,6 +759,12 @@
|
|
|
759
759
|
height: 100%;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
.Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
|
|
763
|
+
position: static;
|
|
764
|
+
width: 100%;
|
|
765
|
+
height: 100%;
|
|
766
|
+
}
|
|
767
|
+
|
|
762
768
|
.Image-module_isStatic__TmQ1V img {
|
|
763
769
|
position: relative;
|
|
764
770
|
max-height: 160px;
|
|
@@ -3273,9 +3279,15 @@
|
|
|
3273
3279
|
}
|
|
3274
3280
|
}
|
|
3275
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
|
+
|
|
3276
3288
|
@media only screen and (min-width: 40.625em) {
|
|
3277
3289
|
|
|
3278
|
-
.RichTitle-module_root__U5XQu.RichTitle-
|
|
3290
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
|
|
3279
3291
|
font-size: 37px;
|
|
3280
3292
|
line-height: 42px;
|
|
3281
3293
|
}
|
|
@@ -3283,18 +3295,12 @@
|
|
|
3283
3295
|
|
|
3284
3296
|
@media only screen and (min-width: 40.625em) {
|
|
3285
3297
|
|
|
3286
|
-
.RichTitle-module_root__U5XQu.RichTitle-
|
|
3298
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
|
|
3287
3299
|
font-size: 1.3rem;
|
|
3288
3300
|
line-height: 1.6rem;
|
|
3289
3301
|
}
|
|
3290
3302
|
}
|
|
3291
3303
|
|
|
3292
|
-
.RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
|
|
3293
|
-
font-size: 19px;
|
|
3294
|
-
line-height: 23px;
|
|
3295
|
-
margin: 0 0 20px;
|
|
3296
|
-
}
|
|
3297
|
-
|
|
3298
3304
|
@media only screen and (min-width: 32em) {
|
|
3299
3305
|
|
|
3300
3306
|
.RichTitle-module_mobile__W5L9E {
|
package/dist/ui-kit.css
CHANGED
|
@@ -759,6 +759,12 @@
|
|
|
759
759
|
height: 100%;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
.Image-module_root__H5wAh.Image-module_fullRatio__q7QPa img {
|
|
763
|
+
position: static;
|
|
764
|
+
width: 100%;
|
|
765
|
+
height: 100%;
|
|
766
|
+
}
|
|
767
|
+
|
|
762
768
|
.Image-module_isStatic__TmQ1V img {
|
|
763
769
|
position: relative;
|
|
764
770
|
max-height: 160px;
|
|
@@ -3273,9 +3279,15 @@
|
|
|
3273
3279
|
}
|
|
3274
3280
|
}
|
|
3275
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
|
+
|
|
3276
3288
|
@media only screen and (min-width: 48em) {
|
|
3277
3289
|
|
|
3278
|
-
.RichTitle-module_root__U5XQu.RichTitle-
|
|
3290
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_large__n2URP {
|
|
3279
3291
|
font-size: 37px;
|
|
3280
3292
|
line-height: 42px;
|
|
3281
3293
|
}
|
|
@@ -3283,18 +3295,12 @@
|
|
|
3283
3295
|
|
|
3284
3296
|
@media only screen and (min-width: 64em) {
|
|
3285
3297
|
|
|
3286
|
-
.RichTitle-module_root__U5XQu.RichTitle-
|
|
3298
|
+
.RichTitle-module_root__U5XQu.RichTitle-module_medium__KkBLJ {
|
|
3287
3299
|
font-size: 1.3rem;
|
|
3288
3300
|
line-height: 1.6rem;
|
|
3289
3301
|
}
|
|
3290
3302
|
}
|
|
3291
3303
|
|
|
3292
|
-
.RichTitle-module_root__U5XQu.RichTitle-module_isInPodcastPlayer__kvEPH {
|
|
3293
|
-
font-size: 19px;
|
|
3294
|
-
line-height: 23px;
|
|
3295
|
-
margin: 0 0 20px;
|
|
3296
|
-
}
|
|
3297
|
-
|
|
3298
3304
|
@media only screen and (min-width: 32em) {
|
|
3299
3305
|
|
|
3300
3306
|
.RichTitle-module_mobile__W5L9E {
|
package/package.json
CHANGED
package/src/Image/index.tsx
CHANGED
|
@@ -39,9 +39,7 @@ export const Image: React.FC<ImageProps> = ({
|
|
|
39
39
|
|
|
40
40
|
const pictureStyles = {
|
|
41
41
|
paddingBottom:
|
|
42
|
-
|
|
43
|
-
? '100%'
|
|
44
|
-
: `${100 / (ratio || width / height)}%`
|
|
42
|
+
ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
/* fallback w325 url until w6 was released */
|
|
@@ -56,7 +54,8 @@ export const Image: React.FC<ImageProps> = ({
|
|
|
56
54
|
[
|
|
57
55
|
styles.fullscreen,
|
|
58
56
|
lightBox && optimized && optimized.original && fullscreen
|
|
59
|
-
]
|
|
57
|
+
],
|
|
58
|
+
[styles.fullRatio, ratio === null]
|
|
60
59
|
]
|
|
61
60
|
|
|
62
61
|
if (styleContext) {
|
|
@@ -122,26 +122,26 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.root.
|
|
125
|
+
.root.isInPodcastPlayer {
|
|
126
|
+
font-size: 19px;
|
|
127
|
+
line-height: 23px;
|
|
128
|
+
margin: 0 0 20px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.root.large {
|
|
126
132
|
@media $portraitTablet {
|
|
127
133
|
font-size: 37px;
|
|
128
134
|
line-height: 42px;
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
137
|
|
|
132
|
-
.root.
|
|
138
|
+
.root.medium {
|
|
133
139
|
@media $landscapeTablet {
|
|
134
140
|
font-size: 1.3rem;
|
|
135
141
|
line-height: 1.6rem;
|
|
136
142
|
}
|
|
137
143
|
}
|
|
138
144
|
|
|
139
|
-
.root.isInPodcastPlayer {
|
|
140
|
-
font-size: 19px;
|
|
141
|
-
line-height: 23px;
|
|
142
|
-
margin: 0 0 20px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
145
|
.mobile {
|
|
146
146
|
@media $mobile {
|
|
147
147
|
display: none;
|
package/src/RichTitle/index.tsx
CHANGED
|
@@ -11,14 +11,13 @@ export const RichTitle: React.FC<RichTitleProps> = ({
|
|
|
11
11
|
data: { featured, first, second, as: TagName = 'h1' }
|
|
12
12
|
},
|
|
13
13
|
styleContext,
|
|
14
|
-
|
|
14
|
+
size = 'default'
|
|
15
15
|
}) => {
|
|
16
16
|
let classNames: ClassNames = [
|
|
17
17
|
[styles.root, true],
|
|
18
18
|
[styles[onlyOn], true],
|
|
19
19
|
[styles.featured, !!featured],
|
|
20
|
-
[styles
|
|
21
|
-
[styles.episodeInEmbed, type === 'isEmbeded']
|
|
20
|
+
[styles[size], !!size]
|
|
22
21
|
]
|
|
23
22
|
|
|
24
23
|
if (styleContext) {
|