@micromag/screen-urbania-recommendation 0.3.619 → 0.3.624
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/es/index.js +7 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -447,6 +447,10 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
447
447
|
sponsorFontStyle = _useMemo.sponsorFontStyle,
|
|
448
448
|
backgroundFontStyle = _useMemo.backgroundFontStyle;
|
|
449
449
|
var layoutStyle = !isPlaceholder ? getStyleFromBox(cardBoxStyle) : null;
|
|
450
|
+
var _ref23 = layoutStyle || {},
|
|
451
|
+
_ref23$borderRadius = _ref23.borderRadius,
|
|
452
|
+
layoutBorderRadius = _ref23$borderRadius === undefined ? null : _ref23$borderRadius;
|
|
453
|
+
var withoutCorners = layoutBorderRadius === 0;
|
|
450
454
|
return /*#__PURE__*/React.createElement("div", {
|
|
451
455
|
className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.isPlaceholder, isPlaceholder)]),
|
|
452
456
|
"data-screen-ready": true
|
|
@@ -487,7 +491,9 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
487
491
|
className: styles.closeIcon
|
|
488
492
|
})) : null, hasTextCard || isPlaceholder || isEdit ? /*#__PURE__*/React.createElement(Container, {
|
|
489
493
|
className: classNames([styles.textCard, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.isPlaceholder, isPlaceholder), styles.visualBottom, layout === 'bottom'), styles.appear, backgroundAnimationStarted), styles.modalOpened, visualModalTransitioning || visualModalOpened), styles.hidden, !current && isView && !isPreview)]),
|
|
490
|
-
style: layoutStyle
|
|
494
|
+
style: _objectSpread(_objectSpread({}, layoutStyle), withoutCorners ? {
|
|
495
|
+
borderRadius: 0
|
|
496
|
+
} : null)
|
|
491
497
|
}, /*#__PURE__*/React.createElement("div", {
|
|
492
498
|
className: classNames([styles.visualContainer, _defineProperty({}, styles.modalOpened, visualModalTransitioning || visualModalOpened)])
|
|
493
499
|
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-recommendation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.624",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "dae93d8ee83abe0aa8f51a31a94e32f7b5ad9104"
|
|
86
86
|
}
|