@onesy/ui-react 1.0.34 → 1.0.35
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/Medias/Medias.js +4 -1
- package/esm/Medias/Medias.js +4 -0
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/Medias/Medias.js
CHANGED
@@ -143,6 +143,9 @@ const useStyle = (0, style_react_1.style)(theme => ({
|
|
143
143
|
aspectRatioTiktok: {
|
144
144
|
aspectRatio: '3 / 6.84',
|
145
145
|
width: '324px'
|
146
|
+
},
|
147
|
+
customEmbed: {
|
148
|
+
maxWidth: '750px'
|
146
149
|
}
|
147
150
|
}), { name: 'onesy-Medias' });
|
148
151
|
const Medias = react_1.default.forwardRef((props_, ref) => {
|
@@ -246,7 +249,7 @@ const Medias = react_1.default.forwardRef((props_, ref) => {
|
|
246
249
|
return ((0, jsx_runtime_1.jsx)(Link, Object.assign({}, otherProps, { href: item === null || item === void 0 ? void 0 : item.urlEmbed, target: 'blank' }, { children: item.name || item.urlEmbed })));
|
247
250
|
}
|
248
251
|
// custom embed code
|
249
|
-
return ((0, jsx_runtime_1.jsx)(Line, Object.assign({}, otherProps, { fullWidth: true, dangerouslySetInnerHTML: {
|
252
|
+
return ((0, jsx_runtime_1.jsx)(Line, Object.assign({}, otherProps, { className: classes.customEmbed, fullWidth: true, dangerouslySetInnerHTML: {
|
250
253
|
__html: urlEmbed
|
251
254
|
} })));
|
252
255
|
}, []);
|
package/esm/Medias/Medias.js
CHANGED
@@ -132,6 +132,9 @@ const useStyle = styleMethod(theme => ({
|
|
132
132
|
aspectRatioTiktok: {
|
133
133
|
aspectRatio: '3 / 6.84',
|
134
134
|
width: '324px'
|
135
|
+
},
|
136
|
+
customEmbed: {
|
137
|
+
maxWidth: '750px'
|
135
138
|
}
|
136
139
|
}), {
|
137
140
|
name: 'onesy-Medias'
|
@@ -269,6 +272,7 @@ const Medias = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
269
272
|
|
270
273
|
// custom embed code
|
271
274
|
return /*#__PURE__*/React.createElement(Line, _extends({}, otherProps, {
|
275
|
+
className: classes.customEmbed,
|
272
276
|
fullWidth: true,
|
273
277
|
dangerouslySetInnerHTML: {
|
274
278
|
__html: urlEmbed
|
package/esm/index.js
CHANGED