luna-one 3.1.339 → 3.1.343
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/luna/components/CtaWithHeader/CtaWithHeader.scss +2 -2
- package/dist/luna/components/MobileNav/MobileNav.js +2 -2
- package/dist/luna/components/UnboundedCard/UnboundedCard.js +10 -1
- package/dist/luna/heroes/FullBackgroundHero/FullBackgroundHero.js +5 -3
- package/dist/luna/heroes/FullBackgroundHero/FullBackgroundHero.scss +25 -1
- package/dist/luna/heroes/SuperHero/SuperHero.scss +19 -0
- package/dist/luna/heroes/SuperHero/SuperHeroMethods.js +8 -6
- package/package.json +2 -2
|
@@ -41,7 +41,7 @@ var MobileNav = function MobileNav(props) {
|
|
|
41
41
|
rightLinks = props.rightLinks,
|
|
42
42
|
disableLogin = props.disableLogin,
|
|
43
43
|
login = props.login,
|
|
44
|
-
|
|
44
|
+
disableLanguageRegion = props.disableLanguageRegion,
|
|
45
45
|
disableSectorFlyOut = props.disableSectorFlyOut,
|
|
46
46
|
handleSectorFlyoutDeployed = props.handleSectorFlyoutDeployed,
|
|
47
47
|
sectorFlyoutLabel = props.sectorFlyoutLabel,
|
|
@@ -169,7 +169,7 @@ var MobileNav = function MobileNav(props) {
|
|
|
169
169
|
login: login,
|
|
170
170
|
mouse: mouse,
|
|
171
171
|
hamburgerIsOpen: hamburgerIsOpen,
|
|
172
|
-
|
|
172
|
+
disableLanguageRegion: disableLanguageRegion,
|
|
173
173
|
languageSelectorData: languageSelectorData,
|
|
174
174
|
languageSelectorDeployed: languageSelectorDeployed,
|
|
175
175
|
handleLanguageSelectorDeployed: handleLanguageSelectorDeployed,
|
|
@@ -47,13 +47,22 @@ var UnboundedCard = function UnboundedCard(_ref) {
|
|
|
47
47
|
cardLink.type = "ter-button--primary--2";
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
var componentText = text !== null && text !== void 0 && text.data && text !== null && text !== void 0 && text.typename && (text === null || text === void 0 ? void 0 : text.typename) === "ContentfulRichTextContent" ? /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: "ter-bounded-card__text"
|
|
52
|
+
}, text === null || text === void 0 ? void 0 : text.data) : text && /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
+
className: "ter-bounded-card__text",
|
|
54
|
+
dangerouslySetInnerHTML: {
|
|
55
|
+
__html: text
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
50
59
|
var componentBody = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _UnboundedCardMethods.renderCardImage)(image === null || image === void 0 ? void 0 : image.focalPointImage, imageSizes, modalContent, modalType, deployModal, hideModal, modalDeployed), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
60
|
className: "ter-bounded-card__body"
|
|
52
61
|
}, eyebrow && /*#__PURE__*/_react.default.createElement("div", {
|
|
53
62
|
className: "ter-bounded-card__eyebrow"
|
|
54
63
|
}, eyebrow), header && /*#__PURE__*/_react.default.createElement("h4", {
|
|
55
64
|
className: "ter-bounded-card__header"
|
|
56
|
-
}, header),
|
|
65
|
+
}, header), componentText, cardLink && displayButton && /*#__PURE__*/_react.default.createElement("div", {
|
|
57
66
|
className: "ter-bounded-card__link-holder"
|
|
58
67
|
}, (0, _UnboundedCardMethods.renderButton)(cardLink, Link)), cardLink && !displayButton && /*#__PURE__*/_react.default.createElement("div", {
|
|
59
68
|
className: "ter-bounded-card__link-holder"
|
|
@@ -45,7 +45,8 @@ var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
|
45
45
|
var themes = (0, _checkForThemeProps.checkForThemeProps)(theme);
|
|
46
46
|
|
|
47
47
|
var _useStyles = (0, _useStyles2.default)(themes),
|
|
48
|
-
backgroundColor = _useStyles.backgroundColor
|
|
48
|
+
backgroundColor = _useStyles.backgroundColor,
|
|
49
|
+
color = _useStyles.color;
|
|
49
50
|
|
|
50
51
|
var twoByTwoModifier = "";
|
|
51
52
|
|
|
@@ -56,7 +57,8 @@ var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
|
56
57
|
return /*#__PURE__*/_react.default.createElement("section", {
|
|
57
58
|
className: "\n luna-full-background-hero \n luna-full-background-hero-".concat(variant, " ").concat(paddingClass, " \n ").concat(twoByTwoModifier, "\n "),
|
|
58
59
|
style: {
|
|
59
|
-
background: backgroundColor
|
|
60
|
+
background: backgroundColor,
|
|
61
|
+
color: color
|
|
60
62
|
}
|
|
61
63
|
}, /*#__PURE__*/_react.default.createElement("section", {
|
|
62
64
|
className: "\n luna-full-background-hero__image-wrapper \n luna-full-background-hero__image-wrapper-".concat(variant)
|
|
@@ -80,7 +82,7 @@ var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
|
80
82
|
gridTemplateRows: "1fr"
|
|
81
83
|
}
|
|
82
84
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
className: "\n luna-full-background-hero__content-wrapper-left \n luna-full-background-hero__content-wrapper-left-".concat(variant, " \n ").concat(!rightContent ? "luna-full-background-hero__content-wrapper-left-".concat(variant, "--full") : "", "\n ").concat(rightImage ? "luna-full-background-hero__content-wrapper-left-".concat(variant, "--image") : "", "\n ").concat(!rightContent && !rightImage ? "luna-full-background-hero__content-wrapper-left--no-bottom-margin" : "", "\n ")
|
|
85
|
+
className: "\n luna-full-background-hero__content-wrapper-left \n luna-full-background-hero__content-wrapper-left-".concat(variant, " \n ").concat(backgroundColor === "#FFFFFF" ? "luna-full-background-hero__white-bg" : "", "\n ").concat(!rightContent ? "luna-full-background-hero__content-wrapper-left-".concat(variant, "--full") : "", "\n ").concat(rightImage ? "luna-full-background-hero__content-wrapper-left-".concat(variant, "--image") : "", "\n ").concat(!rightContent && !rightImage ? "luna-full-background-hero__content-wrapper-left--no-bottom-margin" : "", "\n ")
|
|
84
86
|
}, leftContent), /*#__PURE__*/_react.default.createElement("div", {
|
|
85
87
|
className: "\n luna-full-background-hero__content-wrapper-right \n luna-full-background-hero__content-wrapper-right-".concat(variant, " ").concat(!rightContent && !rightImage ? "luna-full-background-hero__content-wrapper-right--no-content" : "")
|
|
86
88
|
}, (variant === "variant-1" || variant === "variant-2-inset") && rightContent, variant === "variant-2" && rightImage && (0, _FullBackgroundHeroMethods.renderShape)(shapeBorderColor, rightImage, shapeType), variant === "variant-3" && rightImage && (0, _FullBackgroundHeroMethods.renderContentImage)(rightImage)))));
|
|
@@ -79,6 +79,12 @@
|
|
|
79
79
|
@media screen and (max-width: $breakpoint-sm) {
|
|
80
80
|
grid-template-rows: repeat(8, 1fr);
|
|
81
81
|
min-height: 480px;
|
|
82
|
+
.default-layout {
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
&__grid {
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
@media screen and (max-width: $breakpoint-xs) {
|
|
@@ -164,6 +170,7 @@
|
|
|
164
170
|
|
|
165
171
|
@media screen and (max-width: $breakpoint-xs) {
|
|
166
172
|
height: 280px;
|
|
173
|
+
overflow: hidden;
|
|
167
174
|
}
|
|
168
175
|
}
|
|
169
176
|
|
|
@@ -193,6 +200,7 @@
|
|
|
193
200
|
|
|
194
201
|
@media screen and (max-width: 700px) {
|
|
195
202
|
height: 280px;
|
|
203
|
+
overflow: hidden;
|
|
196
204
|
}
|
|
197
205
|
}
|
|
198
206
|
|
|
@@ -203,12 +211,12 @@
|
|
|
203
211
|
|
|
204
212
|
@media screen and (max-width: $breakpoint-xs) {
|
|
205
213
|
height: 280px;
|
|
214
|
+
overflow: hidden;
|
|
206
215
|
}
|
|
207
216
|
}
|
|
208
217
|
|
|
209
218
|
&-variant-3 {
|
|
210
219
|
height: 100%;
|
|
211
|
-
overflow: hidden;
|
|
212
220
|
|
|
213
221
|
@media screen and (max-width: $breakpoint-sm) {
|
|
214
222
|
min-height: 480px;
|
|
@@ -217,6 +225,7 @@
|
|
|
217
225
|
@media screen and (max-width: $breakpoint-xs) {
|
|
218
226
|
height: 280px;
|
|
219
227
|
min-height: 280px;
|
|
228
|
+
overflow: hidden;
|
|
220
229
|
}
|
|
221
230
|
}
|
|
222
231
|
}
|
|
@@ -251,6 +260,11 @@
|
|
|
251
260
|
|
|
252
261
|
@media screen and (max-width: $breakpoint-sm) {
|
|
253
262
|
padding: 0;
|
|
263
|
+
.default-layout,
|
|
264
|
+
.default-layout__grid {
|
|
265
|
+
margin: 0;
|
|
266
|
+
padding-top: 0;
|
|
267
|
+
}
|
|
254
268
|
}
|
|
255
269
|
|
|
256
270
|
&-variant-1 {
|
|
@@ -578,4 +592,14 @@
|
|
|
578
592
|
}
|
|
579
593
|
}
|
|
580
594
|
}
|
|
595
|
+
&__white-bg {
|
|
596
|
+
@media screen and (max-width: $breakpoint-sm){
|
|
597
|
+
.ter-button--secondary--1 {
|
|
598
|
+
border-color: $trimble-blue;
|
|
599
|
+
}
|
|
600
|
+
.ter-button--secondary--2 {
|
|
601
|
+
background-color: $trimble-blue;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
581
605
|
}
|
|
@@ -441,6 +441,12 @@
|
|
|
441
441
|
.luna-super-hero-variant_7-left {
|
|
442
442
|
@media screen and (max-width: $breakpoint-sm) {
|
|
443
443
|
padding-bottom: spacing("xs");
|
|
444
|
+
.default-layout {
|
|
445
|
+
margin-bottom: 0;
|
|
446
|
+
&__grid {
|
|
447
|
+
margin: 0;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
444
450
|
}
|
|
445
451
|
}
|
|
446
452
|
|
|
@@ -754,3 +760,16 @@
|
|
|
754
760
|
font-size: $heading-3-size;
|
|
755
761
|
@include benton-very-bold();
|
|
756
762
|
}
|
|
763
|
+
|
|
764
|
+
.super-hero-no-margin .default-layout {
|
|
765
|
+
@media screen and (max-width: $breakpoint-sm){
|
|
766
|
+
margin: 0;
|
|
767
|
+
padding: 0;
|
|
768
|
+
}
|
|
769
|
+
&__children.space-top-bottom {
|
|
770
|
+
@media screen and (max-width: $breakpoint-sm){
|
|
771
|
+
margin: 0;
|
|
772
|
+
padding: 0;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
@@ -225,8 +225,8 @@ var imageSizes = {
|
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
mobile: {
|
|
228
|
-
width:
|
|
229
|
-
height:
|
|
228
|
+
width: 640,
|
|
229
|
+
height: 245,
|
|
230
230
|
ratio: {
|
|
231
231
|
width: 80,
|
|
232
232
|
height: 49
|
|
@@ -277,8 +277,8 @@ var imageSizes = {
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
mobile: {
|
|
280
|
-
width:
|
|
281
|
-
height:
|
|
280
|
+
width: 640,
|
|
281
|
+
height: 640,
|
|
282
282
|
ratio: {
|
|
283
283
|
width: 3,
|
|
284
284
|
height: 2
|
|
@@ -381,7 +381,8 @@ var renderVariantsOneToSeven = function renderVariantsOneToSeven(variant, conten
|
|
|
381
381
|
return /*#__PURE__*/_react.default.createElement("section", {
|
|
382
382
|
className: "luna-super-hero luna-super-hero-".concat(variant, "-").concat(contentSide, " ").concat(paddingClass),
|
|
383
383
|
style: {
|
|
384
|
-
background: backgroundColor
|
|
384
|
+
background: backgroundColor,
|
|
385
|
+
color: color
|
|
385
386
|
}
|
|
386
387
|
}, /*#__PURE__*/_react.default.createElement("aside", {
|
|
387
388
|
className: "luna-super-hero__image-wrapper luna-super-hero__image-wrapper-".concat(variant, "-").concat(contentSide, " ").concat(alignmentClass)
|
|
@@ -440,7 +441,8 @@ var renderVariantEightToTen = function renderVariantEightToTen(variant, ContentC
|
|
|
440
441
|
return /*#__PURE__*/_react.default.createElement("section", {
|
|
441
442
|
className: "super-hero-fullscreen super-hero-fullscreen-".concat(variant, " ").concat(dataPoints !== null && dataPoints !== void 0 && dataPoints.length ? "super-hero-fullscreen--data-points" : ""),
|
|
442
443
|
style: {
|
|
443
|
-
backgroundColor: (theme === null || theme === void 0 ? void 0 : theme.backgroundColor) || "#F8F8FB"
|
|
444
|
+
backgroundColor: (theme === null || theme === void 0 ? void 0 : theme.backgroundColor) || "#F8F8FB",
|
|
445
|
+
color: color
|
|
444
446
|
}
|
|
445
447
|
}, /*#__PURE__*/_react.default.createElement(_reactAwesomeReveal.Fade, {
|
|
446
448
|
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)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luna-one",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.343",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@storybook/addon-knobs": "^6.3.1",
|
|
6
6
|
"@testing-library/jest-dom": "^5.11.9",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react-scroll": "^1.7.14",
|
|
24
24
|
"react-slidedown": "^2.4.5",
|
|
25
25
|
"smoothscroll-polyfill": "^0.4.4",
|
|
26
|
-
"terra-one": "~3.0.
|
|
26
|
+
"terra-one": "~3.0.115"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"node-sass": "^4.12.0",
|