@meduza/ui-kit-2 0.8.704 → 0.9.0
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 +2 -12
- 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 -12
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +0 -9
- package/dist/ui-kit.css +0 -9
- package/package.json +1 -1
- package/src/EmbedBlock/EmbedBlock.module.css +0 -9
- package/src/EmbedBlock/EmbedBlock.tsx +2 -21
- 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
|
@@ -2759,15 +2759,6 @@
|
|
|
2759
2759
|
position: static;
|
|
2760
2760
|
}
|
|
2761
2761
|
|
|
2762
|
-
/* .isYoutube {
|
|
2763
|
-
width: 100%;
|
|
2764
|
-
max-height: 70vh;
|
|
2765
|
-
|
|
2766
|
-
@media $landscapeTablet {
|
|
2767
|
-
max-height: 90vh;
|
|
2768
|
-
}
|
|
2769
|
-
} */
|
|
2770
|
-
|
|
2771
2762
|
/* DEVICES */
|
|
2772
2763
|
|
|
2773
2764
|
@media only screen and (min-width: 32em) {
|
package/dist/ui-kit.css
CHANGED
|
@@ -2759,15 +2759,6 @@
|
|
|
2759
2759
|
position: static;
|
|
2760
2760
|
}
|
|
2761
2761
|
|
|
2762
|
-
/* .isYoutube {
|
|
2763
|
-
width: 100%;
|
|
2764
|
-
max-height: 70vh;
|
|
2765
|
-
|
|
2766
|
-
@media $landscapeTablet {
|
|
2767
|
-
max-height: 90vh;
|
|
2768
|
-
}
|
|
2769
|
-
} */
|
|
2770
|
-
|
|
2771
2762
|
/* DEVICES */
|
|
2772
2763
|
|
|
2773
2764
|
@media only screen and (min-width: 32em) {
|
package/package.json
CHANGED
|
@@ -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.isYoutube, provider === 'youtube' && 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,13 +107,6 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
|
|
|
113
107
|
}
|
|
114
108
|
}
|
|
115
109
|
|
|
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') {
|
|
120
|
-
// style.aspectRatio = `${block.data.width} / ${block.data.height}`
|
|
121
|
-
// }
|
|
122
|
-
|
|
123
110
|
if (isProportional) {
|
|
124
111
|
style.aspectRatio = `${block.data.width} / ${block.data.height}`
|
|
125
112
|
}
|
|
@@ -154,13 +141,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
|
|
|
154
141
|
<figure className={makeClassName(classNames)}>
|
|
155
142
|
{children && (
|
|
156
143
|
<div className={styles.object}>
|
|
157
|
-
<div
|
|
158
|
-
className={makeClassName([
|
|
159
|
-
[styles.wrapper, true]
|
|
160
|
-
// [styles.isYoutube, provider === 'youtube' && isProportional]
|
|
161
|
-
])}
|
|
162
|
-
style={style}
|
|
163
|
-
>
|
|
144
|
+
<div className={styles.wrapper} style={style}>
|
|
164
145
|
<div className={styles.objectWrap}>{children}</div>
|
|
165
146
|
</div>
|
|
166
147
|
</div>
|