@meduza/ui-kit-2 0.8.704 → 0.8.801
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/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +4 -13
- 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 +4 -13
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +0 -19
- package/dist/ui-kit.css +0 -19
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/EmbedBlock/EmbedBlock.module.css +2 -9
- package/src/EmbedBlock/EmbedBlock.tsx +8 -12
- package/src/SvgSymbol/SvgSymbol.types.ts +0 -2
- package/src/Switcher/Switcher.stories.tsx +0 -1
- package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
- package/src/types.ts +0 -3
package/dist/ui-kit-game.css
CHANGED
|
@@ -2743,31 +2743,12 @@
|
|
|
2743
2743
|
|
|
2744
2744
|
.EmbedBlock-module_wrapper__ynT7R {
|
|
2745
2745
|
position: relative;
|
|
2746
|
-
|
|
2747
|
-
width: 100%;
|
|
2748
|
-
max-height: 70vh;
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
@media only screen and (min-width: 40.625em) {
|
|
2752
|
-
|
|
2753
|
-
.EmbedBlock-module_wrapper__ynT7R {
|
|
2754
|
-
max-height: 90vh;
|
|
2755
2746
|
}
|
|
2756
|
-
}
|
|
2757
2747
|
|
|
2758
2748
|
.EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
|
|
2759
2749
|
position: static;
|
|
2760
2750
|
}
|
|
2761
2751
|
|
|
2762
|
-
/* .isYoutube {
|
|
2763
|
-
width: 100%;
|
|
2764
|
-
max-height: 70vh;
|
|
2765
|
-
|
|
2766
|
-
@media $landscapeTablet {
|
|
2767
|
-
max-height: 90vh;
|
|
2768
|
-
}
|
|
2769
|
-
} */
|
|
2770
|
-
|
|
2771
2752
|
/* DEVICES */
|
|
2772
2753
|
|
|
2773
2754
|
@media only screen and (min-width: 32em) {
|
package/dist/ui-kit.css
CHANGED
|
@@ -2743,31 +2743,12 @@
|
|
|
2743
2743
|
|
|
2744
2744
|
.EmbedBlock-module_wrapper__ynT7R {
|
|
2745
2745
|
position: relative;
|
|
2746
|
-
|
|
2747
|
-
width: 100%;
|
|
2748
|
-
max-height: 70vh;
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
@media only screen and (min-width: 64em) {
|
|
2752
|
-
|
|
2753
|
-
.EmbedBlock-module_wrapper__ynT7R {
|
|
2754
|
-
max-height: 90vh;
|
|
2755
2746
|
}
|
|
2756
|
-
}
|
|
2757
2747
|
|
|
2758
2748
|
.EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
|
|
2759
2749
|
position: static;
|
|
2760
2750
|
}
|
|
2761
2751
|
|
|
2762
|
-
/* .isYoutube {
|
|
2763
|
-
width: 100%;
|
|
2764
|
-
max-height: 70vh;
|
|
2765
|
-
|
|
2766
|
-
@media $landscapeTablet {
|
|
2767
|
-
max-height: 90vh;
|
|
2768
|
-
}
|
|
2769
|
-
} */
|
|
2770
|
-
|
|
2771
2752
|
/* DEVICES */
|
|
2772
2753
|
|
|
2773
2754
|
@media only screen and (min-width: 32em) {
|
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
@@ -248,27 +248,20 @@
|
|
|
248
248
|
|
|
249
249
|
.wrapper {
|
|
250
250
|
position: relative;
|
|
251
|
-
|
|
252
|
-
width: 100%;
|
|
253
|
-
max-height: 70vh;
|
|
254
|
-
|
|
255
|
-
@media $landscapeTablet {
|
|
256
|
-
max-height: 90vh;
|
|
257
|
-
}
|
|
258
251
|
}
|
|
259
252
|
|
|
260
253
|
.wrapper .objectWrap {
|
|
261
254
|
position: static;
|
|
262
255
|
}
|
|
263
256
|
|
|
264
|
-
|
|
257
|
+
.isYoutube {
|
|
265
258
|
width: 100%;
|
|
266
259
|
max-height: 70vh;
|
|
267
260
|
|
|
268
261
|
@media $landscapeTablet {
|
|
269
262
|
max-height: 90vh;
|
|
270
263
|
}
|
|
271
|
-
}
|
|
264
|
+
}
|
|
272
265
|
|
|
273
266
|
/* DEVICES */
|
|
274
267
|
.mobile {
|
|
@@ -100,8 +100,8 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
|
|
|
100
100
|
<div className={styles.object}>
|
|
101
101
|
<div
|
|
102
102
|
className={makeClassName([
|
|
103
|
-
[styles.wrapper, true]
|
|
104
|
-
|
|
103
|
+
[styles.wrapper, true],
|
|
104
|
+
[styles.isYoutube, provider === 'youtube' && isProportional]
|
|
105
105
|
])}
|
|
106
106
|
style={style}
|
|
107
107
|
>
|
|
@@ -113,14 +113,10 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// style.aspectRatio = `${block.data.width} / ${block.data.height}`
|
|
121
|
-
// }
|
|
122
|
-
|
|
123
|
-
if (isProportional) {
|
|
116
|
+
if (isProportional && provider !== 'youtube') {
|
|
117
|
+
style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
|
|
118
|
+
style.height = 0
|
|
119
|
+
} else if (isProportional && provider === 'youtube') {
|
|
124
120
|
style.aspectRatio = `${block.data.width} / ${block.data.height}`
|
|
125
121
|
}
|
|
126
122
|
|
|
@@ -156,8 +152,8 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
|
|
|
156
152
|
<div className={styles.object}>
|
|
157
153
|
<div
|
|
158
154
|
className={makeClassName([
|
|
159
|
-
[styles.wrapper, true]
|
|
160
|
-
|
|
155
|
+
[styles.wrapper, true],
|
|
156
|
+
[styles.isYoutube, provider === 'youtube' && isProportional]
|
|
161
157
|
])}
|
|
162
158
|
style={style}
|
|
163
159
|
>
|