luna-one 3.1.456 → 3.1.459
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/dist/global-styles/global-vars.scss +1 -0
- package/dist/luna/components/LinkList/LinkList.js +1 -3
- package/dist/luna/heroes/FullBackgroundHero/FullBackgroundHero.scss +5 -2
- package/dist/luna/heroes/SuperHero/SuperHero.scss +13 -0
- package/dist/luna/heroes/SuperHero/SuperHeroMethods.js +17 -12
- package/package.json +1 -1
|
@@ -50,12 +50,10 @@ var LinkList = function LinkList(_ref) {
|
|
|
50
50
|
var _useMouse = (0, _useMouse2["default"])(),
|
|
51
51
|
mouse = _useMouse.mouse;
|
|
52
52
|
|
|
53
|
-
console.log("meeeeee", visible);
|
|
54
53
|
return /*#__PURE__*/_react["default"].createElement(_reactAwesomeReveal.Fade, {
|
|
55
54
|
className: "luna-link-list ".concat(paddingClass, " ").concat(visible),
|
|
56
55
|
style: {
|
|
57
|
-
backgroundColor: (theme === null || theme === void 0 ? void 0 : theme.backgroundColor) || "#ffffff"
|
|
58
|
-
|
|
56
|
+
backgroundColor: (theme === null || theme === void 0 ? void 0 : theme.backgroundColor) || "#ffffff"
|
|
59
57
|
}
|
|
60
58
|
}, links && links.map(function (link, i) {
|
|
61
59
|
return /*#__PURE__*/_react["default"].createElement(SingleLink, {
|
|
@@ -314,7 +314,6 @@
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
&-variant-2,
|
|
317
|
-
&-variant-2-inset,
|
|
318
317
|
&-variant-3 {
|
|
319
318
|
align-items: flex-start;
|
|
320
319
|
}
|
|
@@ -367,7 +366,7 @@
|
|
|
367
366
|
|
|
368
367
|
&-variant-2-inset {
|
|
369
368
|
grid-column: 2 / span 6;
|
|
370
|
-
margin-top:
|
|
369
|
+
margin-top: 60px;
|
|
371
370
|
|
|
372
371
|
@media screen and (max-width: $breakpoint-sm) {
|
|
373
372
|
grid-column: 2 / span 6;
|
|
@@ -377,6 +376,10 @@
|
|
|
377
376
|
grid-column: 2 / span 14;
|
|
378
377
|
margin: 50px 0px;
|
|
379
378
|
}
|
|
379
|
+
|
|
380
|
+
@media screen and (min-width: $breakpoint-xl) {
|
|
381
|
+
margin-top: 150px;
|
|
382
|
+
}
|
|
380
383
|
}
|
|
381
384
|
|
|
382
385
|
&-variant-3 {
|
|
@@ -478,6 +478,12 @@
|
|
|
478
478
|
|
|
479
479
|
&--data-points {
|
|
480
480
|
position: relative;
|
|
481
|
+
@media screen and (max-width: $breakpoint-sm){
|
|
482
|
+
.super-hero-fullscreen__hero-image-variant_8-right {
|
|
483
|
+
min-height: auto;
|
|
484
|
+
max-height: 100%;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
481
487
|
}
|
|
482
488
|
|
|
483
489
|
&__eyebrow {
|
|
@@ -667,6 +673,13 @@
|
|
|
667
673
|
}
|
|
668
674
|
}
|
|
669
675
|
|
|
676
|
+
&__hero-image-variant_8-right .super-hero-fullscreen__hero-image-wrapper {
|
|
677
|
+
@media screen and (max-width: $breakpoint-xs) {
|
|
678
|
+
display: flex;
|
|
679
|
+
flex-direction: column;
|
|
680
|
+
height: 100%;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
670
683
|
&__container {
|
|
671
684
|
display: flex;
|
|
672
685
|
flex-direction: column;
|
|
@@ -81,7 +81,7 @@ var ctaRowOrColumn = function ctaRowOrColumn(ctas, variant) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
if (ctas !== null && ctas !== void 0 && (_ctas$ctaOne = ctas.ctaOne) !== null && _ctas$ctaOne !== void 0 && _ctas$ctaOne.video || ctas !== null && ctas !== void 0 && (_ctas$ctaTwo = ctas.ctaTwo) !== null && _ctas$ctaTwo !== void 0 && _ctas$ctaTwo.video) {
|
|
84
|
-
ctas
|
|
84
|
+
ctas["VideoComponent"] = VideoComponent;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
var findRowVariant = function findRowVariant() {
|
|
@@ -479,6 +479,10 @@ var renderVariantsOneToSeven = function renderVariantsOneToSeven(variant, conten
|
|
|
479
479
|
Link: Link,
|
|
480
480
|
url: cta.url,
|
|
481
481
|
text: cta.text,
|
|
482
|
+
VideoComponent: VideoComponent,
|
|
483
|
+
video: cta === null || cta === void 0 ? void 0 : cta.video,
|
|
484
|
+
override: override,
|
|
485
|
+
setOverride: setOverride,
|
|
482
486
|
className: // TODO this will change once we have themes and button styling/themes confirmed
|
|
483
487
|
theme !== null && theme !== void 0 && theme.ctaOne ? "ter-button--".concat(theme === null || theme === void 0 ? void 0 : theme.ctaOne) : "ter-button--primary--1"
|
|
484
488
|
}), ctas && /*#__PURE__*/_react["default"].createElement(CTASection, {
|
|
@@ -504,17 +508,9 @@ var renderVariantEightToTen = function renderVariantEightToTen(variant, ContentC
|
|
|
504
508
|
}, /*#__PURE__*/_react["default"].createElement(Fade, {
|
|
505
509
|
className: "super-hero-fullscreen__hero-image super-hero-fullscreen__hero-image-".concat(variant, "-").concat(contentSide, " super-hero-fullscreen--focused super-hero-fullscreen--focused-").concat(variant, "-").concat(contentSide)
|
|
506
510
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
507
|
-
tabIndex: mouse ? "" : "0"
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}, /*#__PURE__*/_react["default"].createElement(DataPoint, {
|
|
511
|
-
points: dataPoints,
|
|
512
|
-
variant: "variant_2A",
|
|
513
|
-
theme: {
|
|
514
|
-
color: "#ffffff",
|
|
515
|
-
backgroundColor: "#0063A3"
|
|
516
|
-
}
|
|
517
|
-
})), /*#__PURE__*/_react["default"].createElement(FocusedImage, {
|
|
511
|
+
tabIndex: mouse ? "" : "0",
|
|
512
|
+
className: "super-hero-fullscreen__hero-image-wrapper"
|
|
513
|
+
}, /*#__PURE__*/_react["default"].createElement(FocusedImage, {
|
|
518
514
|
focalPointImage: focusedImage === null || focusedImage === void 0 ? void 0 : focusedImage.focalPointImage,
|
|
519
515
|
alt: focusedImage === null || focusedImage === void 0 ? void 0 : (_focusedImage$focalPo2 = focusedImage.focalPointImage) === null || _focusedImage$focalPo2 === void 0 ? void 0 : _focusedImage$focalPo2.title,
|
|
520
516
|
fullHeightWrapper: true,
|
|
@@ -566,6 +562,15 @@ var renderVariantEightToTen = function renderVariantEightToTen(variant, ContentC
|
|
|
566
562
|
className: theme !== null && theme !== void 0 && theme.ctaOne ? "ter-button--".concat(theme === null || theme === void 0 ? void 0 : theme.ctaOne) : "ter-button--primary--1"
|
|
567
563
|
}), ctas && /*#__PURE__*/_react["default"].createElement(CTASection, {
|
|
568
564
|
ctas: ctas
|
|
565
|
+
})), (dataPoints === null || dataPoints === void 0 ? void 0 : dataPoints.length) && /*#__PURE__*/_react["default"].createElement(Fade, {
|
|
566
|
+
className: "super-hero-fullscreen__data-points super-hero-fullscreen__data-points--mobile"
|
|
567
|
+
}, /*#__PURE__*/_react["default"].createElement(DataPoint, {
|
|
568
|
+
points: dataPoints,
|
|
569
|
+
variant: "variant_2A",
|
|
570
|
+
theme: {
|
|
571
|
+
color: "#ffffff",
|
|
572
|
+
backgroundColor: "#0063A3"
|
|
573
|
+
}
|
|
569
574
|
})))));
|
|
570
575
|
} else {
|
|
571
576
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|