@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-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,14 +1197,9 @@ 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
|
-
style.
|
|
1201
|
+
style.paddingBottom = `${block.data.height / block.data.width * 100}%`;
|
|
1202
|
+
style.height = 0;
|
|
1210
1203
|
}
|
|
1211
1204
|
let classNames = [[styles$r.root, true], [styles$r.cc, cc], [styles$r[display], !!display && styles$r[display]], [styles$r[provider], !!provider && !!styles$r[provider]], [styles$r[onlyOn], !!onlyOn && styles$r[onlyOn]], [styles$r.mobileFullwidth, mobileFullwidth], [styles$r.proportional, isProportional]];
|
|
1212
1205
|
// Убираем из контекста все, что не начинается с приставки isIn,
|
|
@@ -1224,9 +1217,7 @@ const EmbedBlock = ({
|
|
|
1224
1217
|
}, children && ( /*#__PURE__*/React.createElement("div", {
|
|
1225
1218
|
className: styles$r.object
|
|
1226
1219
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1227
|
-
className:
|
|
1228
|
-
// [styles.isYoutube, provider === 'youtube' && isProportional]
|
|
1229
|
-
]),
|
|
1220
|
+
className: styles$r.wrapper,
|
|
1230
1221
|
style: style
|
|
1231
1222
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1232
1223
|
className: styles$r.objectWrap
|