@micromag/screen-urbania-recommendation 0.3.700 → 0.3.703
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 +54 -54
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -176,9 +176,9 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
176
176
|
visualModalTransitioning = _useState8[0],
|
|
177
177
|
setVisualModalTransitioning = _useState8[1];
|
|
178
178
|
var _useState9 = useState(false),
|
|
179
|
-
|
|
180
|
-
visualModalOpened =
|
|
181
|
-
setVisualModalOpened =
|
|
179
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
180
|
+
visualModalOpened = _useState0[0],
|
|
181
|
+
setVisualModalOpened = _useState0[1];
|
|
182
182
|
var visualModalClosed = !visualModalTransitioning && !visualModalOpened;
|
|
183
183
|
var _ref6 = background || {},
|
|
184
184
|
_ref6$text = _ref6.text,
|
|
@@ -305,76 +305,76 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
305
305
|
var _ref9 = title || {},
|
|
306
306
|
_ref9$textStyle = _ref9.textStyle,
|
|
307
307
|
finalTitleTextStyle = _ref9$textStyle === void 0 ? null : _ref9$textStyle;
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
titleStyleColor =
|
|
311
|
-
|
|
312
|
-
titleFontFamily =
|
|
313
|
-
|
|
314
|
-
titleFontStyles =
|
|
308
|
+
var _ref0 = finalTitleTextStyle || {},
|
|
309
|
+
_ref0$color = _ref0.color,
|
|
310
|
+
titleStyleColor = _ref0$color === void 0 ? null : _ref0$color,
|
|
311
|
+
_ref0$fontFamily = _ref0.fontFamily,
|
|
312
|
+
titleFontFamily = _ref0$fontFamily === void 0 ? null : _ref0$fontFamily,
|
|
313
|
+
_ref0$fontStyle = _ref0.fontStyle,
|
|
314
|
+
titleFontStyles = _ref0$fontStyle === void 0 ? null : _ref0$fontStyle;
|
|
315
315
|
var finalTitleColor = getColorAsString(titleStyleColor);
|
|
316
316
|
var finalTitleFontWeight = titleFontFamily === null ? 700 : null;
|
|
317
317
|
var finalTextTransform = titleFontFamily === null ? 'uppercase' : null;
|
|
318
318
|
var finalTitleFontStyle = titleFontFamily === null ? _objectSpread(_objectSpread({}, titleFontStyles), {}, {
|
|
319
319
|
transform: 'uppercase'
|
|
320
320
|
}) : titleFontStyles;
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
finalCategoryTextStyle =
|
|
324
|
-
var
|
|
325
|
-
|
|
326
|
-
categoryFontFamily =
|
|
327
|
-
|
|
328
|
-
categoryFontStyles =
|
|
321
|
+
var _ref1 = category || {},
|
|
322
|
+
_ref1$textStyle = _ref1.textStyle,
|
|
323
|
+
finalCategoryTextStyle = _ref1$textStyle === void 0 ? null : _ref1$textStyle;
|
|
324
|
+
var _ref10 = finalCategoryTextStyle || {},
|
|
325
|
+
_ref10$fontFamily = _ref10.fontFamily,
|
|
326
|
+
categoryFontFamily = _ref10$fontFamily === void 0 ? null : _ref10$fontFamily,
|
|
327
|
+
_ref10$fontStyle = _ref10.fontStyle,
|
|
328
|
+
categoryFontStyles = _ref10$fontStyle === void 0 ? null : _ref10$fontStyle;
|
|
329
329
|
var finalCategoryFontWeight = categoryFontFamily === null ? 900 : null;
|
|
330
330
|
var finalCategoryFontStyle = categoryFontFamily === null ? _objectSpread(_objectSpread({}, categoryFontStyles), {}, {
|
|
331
331
|
transform: 'uppercase'
|
|
332
332
|
}) : categoryFontStyles;
|
|
333
|
-
var
|
|
333
|
+
var _ref11 = description || {},
|
|
334
|
+
_ref11$textStyle = _ref11.textStyle,
|
|
335
|
+
finalDescriptionTextStyle = _ref11$textStyle === void 0 ? null : _ref11$textStyle;
|
|
336
|
+
var _ref12 = finalDescriptionTextStyle || {},
|
|
337
|
+
_ref12$fontFamily = _ref12.fontFamily,
|
|
338
|
+
descriptionFontFamily = _ref12$fontFamily === void 0 ? null : _ref12$fontFamily;
|
|
339
|
+
var finalDescriptionFontWeight = descriptionFontFamily === null ? 300 : null;
|
|
340
|
+
var _ref13 = date || {},
|
|
334
341
|
_ref13$textStyle = _ref13.textStyle,
|
|
335
|
-
|
|
336
|
-
var _ref14 =
|
|
342
|
+
finalDateTextStyle = _ref13$textStyle === void 0 ? null : _ref13$textStyle;
|
|
343
|
+
var _ref14 = finalDateTextStyle || {},
|
|
337
344
|
_ref14$fontFamily = _ref14.fontFamily,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
345
|
+
dateFontFamily = _ref14$fontFamily === void 0 ? null : _ref14$fontFamily,
|
|
346
|
+
_ref14$fontStyle = _ref14.fontStyle,
|
|
347
|
+
dateFontStyles = _ref14$fontStyle === void 0 ? null : _ref14$fontStyle;
|
|
348
|
+
var finalDateFontStyle = dateFontFamily === null ? _objectSpread(_objectSpread({}, dateFontStyles), {}, {
|
|
349
|
+
transform: 'uppercase'
|
|
350
|
+
}) : dateFontStyles;
|
|
351
|
+
var _ref15 = location || {},
|
|
341
352
|
_ref15$textStyle = _ref15.textStyle,
|
|
342
|
-
|
|
343
|
-
var _ref16 =
|
|
353
|
+
finalLocationTextStyle = _ref15$textStyle === void 0 ? null : _ref15$textStyle;
|
|
354
|
+
var _ref16 = finalLocationTextStyle || {},
|
|
344
355
|
_ref16$fontFamily = _ref16.fontFamily,
|
|
345
|
-
|
|
356
|
+
locationFontFamily = _ref16$fontFamily === void 0 ? null : _ref16$fontFamily,
|
|
346
357
|
_ref16$fontStyle = _ref16.fontStyle,
|
|
347
|
-
|
|
348
|
-
var
|
|
358
|
+
locationFontStyles = _ref16$fontStyle === void 0 ? null : _ref16$fontStyle;
|
|
359
|
+
var finalLocationFontStyle = locationFontFamily === null ? _objectSpread(_objectSpread({}, locationFontStyles), {}, {
|
|
349
360
|
transform: 'uppercase'
|
|
350
|
-
}) :
|
|
351
|
-
var _ref17 =
|
|
361
|
+
}) : locationFontStyles;
|
|
362
|
+
var _ref17 = sponsor || {},
|
|
352
363
|
_ref17$textStyle = _ref17.textStyle,
|
|
353
|
-
|
|
354
|
-
var _ref18 =
|
|
364
|
+
finalSponsorTextStyle = _ref17$textStyle === void 0 ? null : _ref17$textStyle;
|
|
365
|
+
var _ref18 = finalSponsorTextStyle || {},
|
|
355
366
|
_ref18$fontFamily = _ref18.fontFamily,
|
|
356
|
-
|
|
367
|
+
sponsorFontFamily = _ref18$fontFamily === void 0 ? null : _ref18$fontFamily,
|
|
357
368
|
_ref18$fontStyle = _ref18.fontStyle,
|
|
358
|
-
|
|
359
|
-
var finalLocationFontStyle = locationFontFamily === null ? _objectSpread(_objectSpread({}, locationFontStyles), {}, {
|
|
360
|
-
transform: 'uppercase'
|
|
361
|
-
}) : locationFontStyles;
|
|
362
|
-
var _ref19 = sponsor || {},
|
|
363
|
-
_ref19$textStyle = _ref19.textStyle,
|
|
364
|
-
finalSponsorTextStyle = _ref19$textStyle === void 0 ? null : _ref19$textStyle;
|
|
365
|
-
var _ref20 = finalSponsorTextStyle || {},
|
|
366
|
-
_ref20$fontFamily = _ref20.fontFamily,
|
|
367
|
-
sponsorFontFamily = _ref20$fontFamily === void 0 ? null : _ref20$fontFamily,
|
|
368
|
-
_ref20$fontStyle = _ref20.fontStyle,
|
|
369
|
-
sponsorFontStyles = _ref20$fontStyle === void 0 ? null : _ref20$fontStyle;
|
|
369
|
+
sponsorFontStyles = _ref18$fontStyle === void 0 ? null : _ref18$fontStyle;
|
|
370
370
|
var finalSponsorFontStyle = sponsorFontFamily === null ? _objectSpread(_objectSpread({}, sponsorFontStyles), {}, {
|
|
371
371
|
transform: 'uppercase'
|
|
372
372
|
}) : sponsorFontStyles;
|
|
373
|
-
var
|
|
374
|
-
|
|
375
|
-
backgroundFontFamily =
|
|
376
|
-
|
|
377
|
-
backgroundFontStyles =
|
|
373
|
+
var _ref19 = backgroundTextStyle || {},
|
|
374
|
+
_ref19$fontFamily = _ref19.fontFamily,
|
|
375
|
+
backgroundFontFamily = _ref19$fontFamily === void 0 ? null : _ref19$fontFamily,
|
|
376
|
+
_ref19$fontStyle = _ref19.fontStyle,
|
|
377
|
+
backgroundFontStyles = _ref19$fontStyle === void 0 ? null : _ref19$fontStyle;
|
|
378
378
|
var finalBackgroundFontStyle = backgroundFontFamily === null ? _objectSpread(_objectSpread({}, backgroundFontStyles), {}, {
|
|
379
379
|
transform: 'uppercase'
|
|
380
380
|
}) : backgroundFontStyles;
|
|
@@ -415,9 +415,9 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
415
415
|
sponsorFontStyle = _useMemo.sponsorFontStyle,
|
|
416
416
|
backgroundFontStyle = _useMemo.backgroundFontStyle;
|
|
417
417
|
var layoutStyle = !isPlaceholder ? getStyleFromBox(cardBoxStyle) : null;
|
|
418
|
-
var
|
|
419
|
-
|
|
420
|
-
layoutBorderRadius =
|
|
418
|
+
var _ref20 = layoutStyle || {},
|
|
419
|
+
_ref20$borderRadius = _ref20.borderRadius,
|
|
420
|
+
layoutBorderRadius = _ref20$borderRadius === void 0 ? null : _ref20$borderRadius;
|
|
421
421
|
var withoutCorners = layoutBorderRadius === 0;
|
|
422
422
|
var finalBorderColor = useMemo(function () {
|
|
423
423
|
return lineColor !== null ? getColorAsString(lineColor) : titleColor;
|
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.703",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-button": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-heading": "^0.3.
|
|
70
|
-
"@micromag/element-layout": "^0.3.
|
|
71
|
-
"@micromag/element-scroll": "^0.3.
|
|
72
|
-
"@micromag/element-text": "^0.3.
|
|
73
|
-
"@micromag/element-visual": "^0.3.
|
|
74
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.703",
|
|
64
|
+
"@micromag/element-background": "^0.3.703",
|
|
65
|
+
"@micromag/element-button": "^0.3.703",
|
|
66
|
+
"@micromag/element-container": "^0.3.703",
|
|
67
|
+
"@micromag/element-footer": "^0.3.703",
|
|
68
|
+
"@micromag/element-header": "^0.3.703",
|
|
69
|
+
"@micromag/element-heading": "^0.3.703",
|
|
70
|
+
"@micromag/element-layout": "^0.3.703",
|
|
71
|
+
"@micromag/element-scroll": "^0.3.703",
|
|
72
|
+
"@micromag/element-text": "^0.3.703",
|
|
73
|
+
"@micromag/element-visual": "^0.3.703",
|
|
74
|
+
"@micromag/transforms": "^0.3.703",
|
|
75
75
|
"classnames": "^2.2.6",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
77
|
"prop-types": "^15.7.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "15a0df01ed9d05f47a056fb2ff078aded803d33d"
|
|
86
86
|
}
|