@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-2.esm.js
CHANGED
|
@@ -1188,9 +1188,7 @@ const EmbedBlock = ({
|
|
|
1188
1188
|
return /*#__PURE__*/React.createElement("div", {
|
|
1189
1189
|
className: styles$r.object
|
|
1190
1190
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1191
|
-
className:
|
|
1192
|
-
// [styles.isYoutube, provider === 'youtube' && isProportional]
|
|
1193
|
-
]),
|
|
1191
|
+
className: styles$r.wrapper,
|
|
1194
1192
|
style: style
|
|
1195
1193
|
}, /*#__PURE__*/React.createElement(DangerousHTML, {
|
|
1196
1194
|
className: styles$r.objectWrap,
|
|
@@ -1199,12 +1197,6 @@ const EmbedBlock = ({
|
|
|
1199
1197
|
}
|
|
1200
1198
|
}
|
|
1201
1199
|
};
|
|
1202
|
-
// if (isProportional && provider !== 'youtube') {
|
|
1203
|
-
// style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
|
|
1204
|
-
// style.height = 0
|
|
1205
|
-
// } else if (isProportional && provider === 'youtube') {
|
|
1206
|
-
// style.aspectRatio = `${block.data.width} / ${block.data.height}`
|
|
1207
|
-
// }
|
|
1208
1200
|
if (isProportional) {
|
|
1209
1201
|
style.aspectRatio = `${block.data.width} / ${block.data.height}`;
|
|
1210
1202
|
}
|
|
@@ -1224,9 +1216,7 @@ const EmbedBlock = ({
|
|
|
1224
1216
|
}, children && ( /*#__PURE__*/React.createElement("div", {
|
|
1225
1217
|
className: styles$r.object
|
|
1226
1218
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1227
|
-
className:
|
|
1228
|
-
// [styles.isYoutube, provider === 'youtube' && isProportional]
|
|
1229
|
-
]),
|
|
1219
|
+
className: styles$r.wrapper,
|
|
1230
1220
|
style: style
|
|
1231
1221
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1232
1222
|
className: styles$r.objectWrap
|