@onesy/ui-react 1.0.34 → 1.0.36

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 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/Share/Share.js CHANGED
@@ -266,7 +266,7 @@ const Share = react_1.default.forwardRef((props_, ref) => {
266
266
  startAlign: 'center',
267
267
  primary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: item.name })))
268
268
  }))
269
- .map((item, index) => ((0, jsx_runtime_1.jsx)(MenuItem, Object.assign({ onClick: (event) => onClick(item.value, event), menuCloseOnClick: true, button: true }, item, itemProps === null || itemProps === void 0 ? void 0 : itemProps(item, index), MenuItemProps), index)));
269
+ .map((item, index) => ((0, jsx_runtime_1.jsx)(MenuItem, Object.assign({ onClick: (event) => onClick(item.value, event), noBackground: true, menuCloseOnClick: true, button: true }, item, itemProps === null || itemProps === void 0 ? void 0 : itemProps(item, index), MenuItemProps), index)));
270
270
  if (version === 'menu-items')
271
271
  return menuItemsMoreOptions;
272
272
  const AppendProps = {};
@@ -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
@@ -363,6 +363,7 @@ const Share = /*#__PURE__*/React.forwardRef((props_, ref) => {
363
363
  })).map((item, index) => /*#__PURE__*/React.createElement(MenuItem, _extends({
364
364
  key: index,
365
365
  onClick: event => onClick(item.value, event),
366
+ noBackground: true,
366
367
  menuCloseOnClick: true,
367
368
  button: true
368
369
  }, item, itemProps?.(item, index), MenuItemProps)));
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.34
1
+ /** @license UiReact v1.0.36
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",