luna-one 3.1.401 → 3.1.402
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/index.js +2 -10
- package/dist/luna/components/MegaMenu/menu-generators/FeatureSection.js +2 -1
- package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +2 -1
- package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +2 -2
- package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +2 -1
- package/dist/luna/components/UnboundedCard/UnboundedCardMethods.js +3 -5
- package/dist/luna/images/downArrow.svg +1 -1
- package/dist/luna/images/up-arrow.svg +1 -1
- package/dist/luna/images/user-profile.svg +1 -1
- package/dist/luna/other-organisms/Footer/GlobalFooter.js +2 -1
- package/dist/luna/other-organisms/Footer/SectorFooter.js +2 -1
- package/dist/luna/utils/generateLinks.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -380,7 +380,7 @@ Object.defineProperty(exports, "TwoByTwo", {
|
|
|
380
380
|
Object.defineProperty(exports, "UnboundedCard", {
|
|
381
381
|
enumerable: true,
|
|
382
382
|
get: function get() {
|
|
383
|
-
return _UnboundedCard.
|
|
383
|
+
return _UnboundedCard.UnboundedCard;
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "VideoComponent", {
|
|
@@ -395,12 +395,6 @@ Object.defineProperty(exports, "formatContentSections", {
|
|
|
395
395
|
return _formatContentSections.default;
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
Object.defineProperty(exports, "formatFooterDataMethods", {
|
|
399
|
-
enumerable: true,
|
|
400
|
-
get: function get() {
|
|
401
|
-
return _formatFooterDataMethods.default;
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
398
|
Object.defineProperty(exports, "formatMenuSiteData", {
|
|
405
399
|
enumerable: true,
|
|
406
400
|
get: function get() {
|
|
@@ -628,7 +622,7 @@ var _HTMLEmbed = _interopRequireDefault(require("./luna/components/HTMLEmbed/HTM
|
|
|
628
622
|
|
|
629
623
|
var _OverlayNotice = _interopRequireDefault(require("./luna/components/OverlayNotice/OverlayNotice"));
|
|
630
624
|
|
|
631
|
-
var _UnboundedCard =
|
|
625
|
+
var _UnboundedCard = require("./luna/components/UnboundedCard/UnboundedCard");
|
|
632
626
|
|
|
633
627
|
var _Video = _interopRequireDefault(require("./luna/components/Video/Video"));
|
|
634
628
|
|
|
@@ -686,8 +680,6 @@ var _useSiteData = _interopRequireDefault(require("./application/hooks/useSiteDa
|
|
|
686
680
|
|
|
687
681
|
var _formatContentSections = _interopRequireDefault(require("./application/methods/formatContentSections"));
|
|
688
682
|
|
|
689
|
-
var _formatFooterDataMethods = _interopRequireDefault(require("./application/methods/formatFooterDataMethods"));
|
|
690
|
-
|
|
691
683
|
var _formatMenus = _interopRequireDefault(require("./application/methods/formatMenus"));
|
|
692
684
|
|
|
693
685
|
var _formatMenuSiteData = _interopRequireDefault(require("./application/methods/formatMenuSiteData"));
|
|
@@ -45,7 +45,8 @@ var FeatureSection = function FeatureSection(props) {
|
|
|
45
45
|
to: link.url,
|
|
46
46
|
onClick: mouseLeave,
|
|
47
47
|
id: (0, _formatID.default)("".concat(link.text, "-mega-menu-title-link")),
|
|
48
|
-
Link: Link
|
|
48
|
+
Link: Link,
|
|
49
|
+
target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
|
|
49
50
|
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
50
51
|
id: (0, _formatID.default)("".concat(link.text, "-mega-menu-title-link-text")),
|
|
51
52
|
className: "ter-feature-section__link--underline ".concat(hoveredFeature === link.text ? "ter-feature-section__link--underline--is-open" : "")
|
|
@@ -46,7 +46,8 @@ var PartialSubMenu = function PartialSubMenu(props) {
|
|
|
46
46
|
className: "ter-mega-menu__left-title ter-mega-menu__left-title--link ".concat(deployedSubsection === category.text ? "ter-mega-menu__left-title--is-open" : "", " ").concat(mouse ? "" : "tabFocus"),
|
|
47
47
|
onClick: function onClick() {
|
|
48
48
|
mouseLeave();
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
target: typeof (category === null || category === void 0 ? void 0 : category.external) === 'boolean' ? category !== null && category !== void 0 && category.external ? "_blank" : "_self" : null
|
|
50
51
|
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
51
52
|
id: (0, _formatID.default)("".concat(category.text, "-mega-menu-title-link-text")),
|
|
52
53
|
className: " ter-mega-menu__left-title--text ".concat(deployedSubsection === category.text ? "ter-mega-menu__left-title--text--is-open" : "", " ")
|
|
@@ -156,7 +156,7 @@ var SubMenu = function SubMenu(props) {
|
|
|
156
156
|
Link: Link,
|
|
157
157
|
id: _lodash.default.uniqueId("id-"),
|
|
158
158
|
tabIndex: mouse ? "" : "0"
|
|
159
|
-
}, (0, _defineProperty2.default)(_React$createElement2, "id", (0, _formatID.default)("".concat(link.text, "-right-section-link"))), (0, _defineProperty2.default)(_React$createElement2, "to", link === null || link === void 0 ? void 0 : link.url), (0, _defineProperty2.default)(_React$createElement2, "href", link === null || link === void 0 ? void 0 : link.href), (0, _defineProperty2.default)(_React$createElement2, "className", "ter-right-section__link ".concat(childOpen === link.text ? "ter-right-section__link--is-open" : "", " ").concat(mouse ? "" : "tabFocus", "\n ")), (0, _defineProperty2.default)(_React$createElement2, "onClick", closeAllDropDowns), _React$createElement2), /*#__PURE__*/_react.default.createElement("p", {
|
|
159
|
+
}, (0, _defineProperty2.default)(_React$createElement2, "id", (0, _formatID.default)("".concat(link.text, "-right-section-link"))), (0, _defineProperty2.default)(_React$createElement2, "to", link === null || link === void 0 ? void 0 : link.url), (0, _defineProperty2.default)(_React$createElement2, "href", link === null || link === void 0 ? void 0 : link.href), (0, _defineProperty2.default)(_React$createElement2, "className", "ter-right-section__link ".concat(childOpen === link.text ? "ter-right-section__link--is-open" : "", " ").concat(mouse ? "" : "tabFocus", "\n ")), (0, _defineProperty2.default)(_React$createElement2, "onClick", closeAllDropDowns), (0, _defineProperty2.default)(_React$createElement2, "target", typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null), _React$createElement2), /*#__PURE__*/_react.default.createElement("p", {
|
|
160
160
|
id: (0, _formatID.default)("".concat(link === null || link === void 0 ? void 0 : link.text, "-mega-menu-item-link-text")),
|
|
161
161
|
className: "ter-right-section__link--underline ".concat(childOpen === link.text ? "ter-right-section__link--underline--is-open" : "")
|
|
162
162
|
}, link === null || link === void 0 ? void 0 : link.text)));
|
|
@@ -79,9 +79,9 @@ var TertiaryMenu = function TertiaryMenu(props) {
|
|
|
79
79
|
id: _lodash.default.uniqueId("id-"),
|
|
80
80
|
tabIndex: mouse ? "" : "0",
|
|
81
81
|
depth: 4
|
|
82
|
-
}, (0, _defineProperty2.default)(_React$createElement, "id", (0, _formatID.default)("".concat(link.text, "-right-section-link"))), (0, _defineProperty2.default)(_React$createElement, "to", link === null || link === void 0 ? void 0 : link.url), (0, _defineProperty2.default)(_React$createElement, "href", link === null || link === void 0 ? void 0 : link.href), (0, _defineProperty2.default)(_React$createElement, "className", "ter-right-section__link ".concat(open === link.text ? "ter-right-section__link--is-open" : "", " ").concat(mouse ? "" : "tabFocus", "\n
|
|
82
|
+
}, (0, _defineProperty2.default)(_React$createElement, "id", (0, _formatID.default)("".concat(link.text, "-right-section-link"))), (0, _defineProperty2.default)(_React$createElement, "to", link === null || link === void 0 ? void 0 : link.url), (0, _defineProperty2.default)(_React$createElement, "href", link === null || link === void 0 ? void 0 : link.href), (0, _defineProperty2.default)(_React$createElement, "className", "ter-right-section__link ".concat(open === link.text ? "ter-right-section__link--is-open" : "", " ").concat(mouse ? "" : "tabFocus", "\n ")), (0, _defineProperty2.default)(_React$createElement, "onClick", function onClick() {
|
|
83
83
|
return mouseLeave("click");
|
|
84
|
-
}), (0, _defineProperty2.default)(_React$createElement, "target", link.external ? "_blank" : "_self"), _React$createElement), /*#__PURE__*/_react.default.createElement("p", {
|
|
84
|
+
}), (0, _defineProperty2.default)(_React$createElement, "target", typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null), _React$createElement), /*#__PURE__*/_react.default.createElement("p", {
|
|
85
85
|
id: (0, _formatID.default)("".concat(link === null || link === void 0 ? void 0 : link.text, "-mega-menu-item-link-text")),
|
|
86
86
|
className: "ter-right-section__link--underline ".concat(open === link.text ? "ter-right-section__link--underline--is-open" : "")
|
|
87
87
|
}, link === null || link === void 0 ? void 0 : link.text)));
|
|
@@ -58,7 +58,8 @@ var UncollapsedLinks = function UncollapsedLinks(props) {
|
|
|
58
58
|
id: (0, _formatID.default)("".concat(link.text, "-mega-menu-title-link")),
|
|
59
59
|
Link: Link,
|
|
60
60
|
tabIndex: mouse ? "" : "0",
|
|
61
|
-
className: "ter-mega-menu__left-title ter-mega-menu__left-title".concat(link.imageUrl ? "--image" : "--link", " ").concat(link.imageUrl ? "ter-mega-menu__left-title--image-content" : "", " ").concat(mouse ? "" : "tabFocus")
|
|
61
|
+
className: "ter-mega-menu__left-title ter-mega-menu__left-title".concat(link.imageUrl ? "--image" : "--link", " ").concat(link.imageUrl ? "ter-mega-menu__left-title--image-content" : "", " ").concat(mouse ? "" : "tabFocus"),
|
|
62
|
+
target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
|
|
62
63
|
}, link.imageUrl && /*#__PURE__*/_react.default.createElement("img", {
|
|
63
64
|
src: link.imageUrl,
|
|
64
65
|
alt: link.altText ? link.altText : "",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
4
|
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11,10 +9,10 @@ exports.renderCardImage = exports.renderButton = void 0;
|
|
|
11
9
|
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
|
-
var _terraOne = _interopRequireWildcard(require("terra-one"));
|
|
15
|
-
|
|
16
12
|
var _Video = _interopRequireDefault(require("../Video/Video"));
|
|
17
13
|
|
|
14
|
+
var _terraOne = require("terra-one");
|
|
15
|
+
|
|
18
16
|
var renderCardImage = function renderCardImage(image, imageSizes, modalContent, modalType, deployModal, hideModal, modalDeployed) {
|
|
19
17
|
if (image && modalContent !== null && modalContent !== void 0 && modalContent.video && modalType && modalType !== "No Modal") {
|
|
20
18
|
return /*#__PURE__*/_react.default.createElement("figure", {
|
|
@@ -84,7 +82,7 @@ var renderModal = function renderModal(modalType, imageSizes, modalContent, moda
|
|
|
84
82
|
};
|
|
85
83
|
|
|
86
84
|
var renderButton = function renderButton(buttonContent, Link) {
|
|
87
|
-
return /*#__PURE__*/_react.default.createElement(_terraOne.
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_terraOne.Button, {
|
|
88
86
|
name: (buttonContent === null || buttonContent === void 0 ? void 0 : buttonContent.name) || null,
|
|
89
87
|
text: (buttonContent === null || buttonContent === void 0 ? void 0 : buttonContent.text) || null,
|
|
90
88
|
className: (buttonContent === null || buttonContent === void 0 ? void 0 : buttonContent.type) || "ter-button--primary--1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" xmlnsSvgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 284.929 284.929" style="enable-background:new 0 0 512 512" xmlSpace="preserve" class=""><g transform="matrix(-1,-1.2246467991473532e-16,1.2246467991473532e-16,-1,284.927978515625,284.9290008544922)">
|
|
3
3
|
<g xmlns="http://www.w3.org/2000/svg">
|
|
4
4
|
<path d="M282.082,195.285L149.028,62.24c-1.901-1.903-4.088-2.856-6.562-2.856s-4.665,0.953-6.567,2.856L2.856,195.285 C0.95,197.191,0,199.378,0,201.853c0,2.474,0.953,4.664,2.856,6.566l14.272,14.271c1.903,1.903,4.093,2.854,6.567,2.854 c2.474,0,4.664-0.951,6.567-2.854l112.204-112.202l112.208,112.209c1.902,1.903,4.093,2.848,6.563,2.848 c2.478,0,4.668-0.951,6.57-2.848l14.274-14.277c1.902-1.902,2.847-4.093,2.847-6.566 C284.929,199.378,283.984,197.188,282.082,195.285z" fill="#005f9e" data-original="#000000" style="" class=""/>
|
|
5
5
|
</g>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" xmlnsSvgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 284.929 284.929" style="enable-background:new 0 0 512 512" xmlSpace="preserve" class=""><g>
|
|
3
3
|
<g xmlns="http://www.w3.org/2000/svg">
|
|
4
4
|
<path d="M282.082,195.285L149.028,62.24c-1.901-1.903-4.088-2.856-6.562-2.856s-4.665,0.953-6.567,2.856L2.856,195.285 C0.95,197.191,0,199.378,0,201.853c0,2.474,0.953,4.664,2.856,6.566l14.272,14.271c1.903,1.903,4.093,2.854,6.567,2.854 c2.474,0,4.664-0.951,6.567-2.854l112.204-112.202l112.208,112.209c1.902,1.903,4.093,2.848,6.563,2.848 c2.478,0,4.668-0.951,6.57-2.848l14.274-14.277c1.902-1.902,2.847-4.093,2.847-6.566 C284.929,199.378,283.984,197.188,282.082,195.285z" fill="#005f9e" data-original="#000000" style="" class=""/>
|
|
5
5
|
</g>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" xmlnsSvgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 19.738 19.738" style="enable-background:new 0 0 512 512" xmlSpace="preserve"><g>
|
|
3
3
|
<g xmlns="http://www.w3.org/2000/svg">
|
|
4
4
|
<path style="" d="M18.18,19.738h-2c0-3.374-2.83-6.118-6.311-6.118s-6.31,2.745-6.31,6.118h-2 c0-4.478,3.729-8.118,8.311-8.118C14.451,11.62,18.18,15.26,18.18,19.738z" fill="#005f9e" data-original="#010002"/>
|
|
5
5
|
<path style="" d="M9.87,10.97c-3.023,0-5.484-2.462-5.484-5.485C4.385,2.461,6.846,0,9.87,0 c3.025,0,5.486,2.46,5.486,5.485S12.895,10.97,9.87,10.97z M9.87,2C7.948,2,6.385,3.563,6.385,5.485S7.948,8.97,9.87,8.97 c1.923,0,3.486-1.563,3.486-3.485S11.791,2,9.87,2z" fill="#005f9e" data-original="#010002"/>
|
|
@@ -62,7 +62,8 @@ var GlobalFooter = function GlobalFooter(_ref) {
|
|
|
62
62
|
className: "ter-footer__legal-stuff-link",
|
|
63
63
|
href: link === null || link === void 0 ? void 0 : link.url,
|
|
64
64
|
rel: link.external === false ? "" : "noopener noreferrer",
|
|
65
|
-
tabIndex: "0"
|
|
65
|
+
tabIndex: "0",
|
|
66
|
+
target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
|
|
66
67
|
}, link.text), !link.url && /*#__PURE__*/_react.default.createElement("p", {
|
|
67
68
|
className: "ter-footer__legal-stuff-link"
|
|
68
69
|
}, link === null || link === void 0 ? void 0 : link.text));
|
|
@@ -37,7 +37,8 @@ var SectorFooter = function SectorFooter(_ref) {
|
|
|
37
37
|
className: "ter-footer__callout callout",
|
|
38
38
|
href: link === null || link === void 0 ? void 0 : link.url,
|
|
39
39
|
rel: "noopener noreferrer",
|
|
40
|
-
tabIndex: "0"
|
|
40
|
+
tabIndex: "0",
|
|
41
|
+
target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
|
|
41
42
|
}, link.icon && /*#__PURE__*/_react.default.createElement("img", {
|
|
42
43
|
src: link === null || link === void 0 ? void 0 : link.icon,
|
|
43
44
|
alt: (link === null || link === void 0 ? void 0 : link.title) + " icon",
|
|
@@ -77,7 +77,7 @@ var generateSingleLinkFunctionless = function generateSingleLinkFunctionless(lin
|
|
|
77
77
|
},
|
|
78
78
|
className: className,
|
|
79
79
|
Link: Link,
|
|
80
|
-
|
|
80
|
+
target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
|
|
81
81
|
}, text) : null;
|
|
82
82
|
};
|
|
83
83
|
|