@micromag/screen-urbania-recommendation 0.3.619 → 0.3.625
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 +17 -2
- 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,9 +491,20 @@ 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
|
-
className: classNames([styles.visualContainer, _defineProperty({}, styles.modalOpened, visualModalTransitioning || visualModalOpened)])
|
|
498
|
+
className: classNames([styles.visualContainer, _defineProperty({}, styles.modalOpened, visualModalTransitioning || visualModalOpened)]),
|
|
499
|
+
style:
|
|
500
|
+
// eslint-disable-next-line no-nested-ternary
|
|
501
|
+
layoutBorderRadius !== null ? layout === 'bottom' ? {
|
|
502
|
+
borderBottomLeftRadius: layoutBorderRadius,
|
|
503
|
+
borderBottomRightRadius: layoutBorderRadius
|
|
504
|
+
} : {
|
|
505
|
+
borderTopLeftRadius: layoutBorderRadius,
|
|
506
|
+
borderTopRightRadius: layoutBorderRadius
|
|
507
|
+
} : null
|
|
493
508
|
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
494
509
|
key: "visual",
|
|
495
510
|
placeholder: /*#__PURE__*/React.createElement(PlaceholderImage, {
|
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.625",
|
|
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": "52a75afce3eaf952e9cdc86f22ef11d189b36e06"
|
|
86
86
|
}
|