luna-one 3.1.475 → 3.1.478

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.
@@ -331,7 +331,7 @@
331
331
  word-break: break-all;
332
332
  line-height: 14.4px;
333
333
  white-space: nowrap;
334
-
334
+ pointer-events: none;
335
335
  &--is-open {
336
336
  color: $trimble-dark-gray;
337
337
 
@@ -59,7 +59,8 @@ var UncollapsedLinks = function UncollapsedLinks(props) {
59
59
  Link: Link,
60
60
  tabIndex: mouse ? "" : "0",
61
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
+ target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null,
63
+ depth: 3
63
64
  }, link.imageUrl && /*#__PURE__*/_react["default"].createElement("img", {
64
65
  src: link.imageUrl,
65
66
  alt: link.altText ? link.altText : "",
@@ -178,6 +178,7 @@ var MobileMegaMenu = function MobileMegaMenu(props) {
178
178
  }, /*#__PURE__*/_react["default"].createElement("p", {
179
179
  id: (0, _formatID["default"])("".concat(megaMenuContent.text, "-mega-menu-name")),
180
180
  className: "ter-mobile-mega-menu__name ".concat(currentOpenMenu || !hamburgerIsOpen ? "" : "ter-mobile-mega-menu__name--open-parent"),
181
+ "data-depth": 1,
181
182
  tabIndex: mouseSet ? "" : "0",
182
183
  onClick: function onClick() {
183
184
  toggleDropDown(megaMenuContent.text);
@@ -219,6 +219,9 @@
219
219
  }
220
220
  }
221
221
  }
222
+ &> *:not(a) {
223
+ pointer-events: none;
224
+ }
222
225
  }
223
226
 
224
227
  &__single-link {
@@ -85,7 +85,7 @@ var MobileMegaMenuCategory = function MobileMegaMenuCategory(_ref) {
85
85
  className: "ter-mobile-mega-menu-category__name",
86
86
  key: "".concat(link.text, "-").concat(name, "-").concat(index),
87
87
  onClick: closeDropDown
88
- }, (0, _generateLinks.generateSingleLink)(link, "ter-mobile-mega-menu-category__name", closeDropDown, openSubCategory === null, mouse, Link));
88
+ }, (0, _generateLinks.generateSingleLink)(link, "ter-mobile-mega-menu-category__name", closeDropDown, openSubCategory === null, mouse, Link, 3));
89
89
  }
90
90
  });
91
91
  };
@@ -137,7 +137,8 @@ var MobileMegaMenuCategory = function MobileMegaMenuCategory(_ref) {
137
137
  className: "ter-mobile-mega-menu__name ".concat(isOpen && !openSubCategory ? "ter-mobile-mega-menu__name--open" : "", " ").concat(mouse ? "" : "tabFocus"),
138
138
  "aria-haspopup": "menu",
139
139
  "aria-expanded": isOpen && !openSubCategory,
140
- ref: uncollapsedMenu
140
+ ref: uncollapsedMenu,
141
+ "data-depth": 2
141
142
  }, name, /*#__PURE__*/_react["default"].createElement("img", {
142
143
  id: _lodash["default"].uniqueId("id-"),
143
144
  className: "ter-mobile-mega-menu__caret ".concat(isOpen && !openSubCategory ? "ter-mobile-mega-menu__caret--up" : "ter-mobile-mega-menu__caret--down"),
@@ -158,6 +159,7 @@ var MobileMegaMenuCategory = function MobileMegaMenuCategory(_ref) {
158
159
  return toggleCategoryWithEnter(e, name, "close");
159
160
  },
160
161
  className: "ter-mobile-mega-menu-category__name ".concat(parentOpen ? "" : "ter-mobile-mega-menu-category__name--hidden", " ").concat(mouse ? "" : "tabFocus"),
162
+ "data-depth": 2,
161
163
  "aria-haspopup": "menu",
162
164
  "aria-expanded": !(isOpen && !openSubCategory),
163
165
  ref: collapsedMenu
@@ -34,7 +34,7 @@ var MobileMegaMenuPartialCategory = function MobileMegaMenuPartialCategory(_ref)
34
34
  }, /*#__PURE__*/_react["default"].createElement("p", {
35
35
  id: _lodash["default"].uniqueId("id-"),
36
36
  className: "ter-mobile-mega-menu-category__name--single"
37
- }, (0, _generateLinks.generateMobileLink)(linkObj, "ter-mobile-mega-menu-category__single-link", closeDropDown, mouse, Link)));
37
+ }, (0, _generateLinks.generateMobileLink)(linkObj, "ter-mobile-mega-menu-category__single-link", closeDropDown, mouse, Link, 2)));
38
38
  };
39
39
 
40
40
  var _default = MobileMegaMenuPartialCategory;
@@ -53,7 +53,7 @@ var MobileMegaMenuSubCategory = function MobileMegaMenuSubCategory(_ref) {
53
53
  setUncollapsedMenu = _useFocus4[1];
54
54
 
55
55
  var generateTertiaryMenu = function generateTertiaryMenu() {
56
- return (0, _generateLinks["default"])(links, "ter-mobile-mega-menu-category__name", closeDropDown, name, mouse, Link);
56
+ return (0, _generateLinks["default"])(links, "ter-mobile-mega-menu-category__name", closeDropDown, name, mouse, Link, 4);
57
57
  };
58
58
 
59
59
  var toggleCategoryWithEnter = function toggleCategoryWithEnter(event, name, direction) {
@@ -102,7 +102,7 @@ var MobileMegaMenuSubCategory = function MobileMegaMenuSubCategory(_ref) {
102
102
  return handleClick(name);
103
103
  }), (0, _defineProperty2["default"])(_React$createElement2, "onKeyDown", function onKeyDown(e) {
104
104
  return toggleCategoryWithEnter(e, name, "close");
105
- }), (0, _defineProperty2["default"])(_React$createElement2, "className", "ter-mobile-mega-menu-category__name ".concat(isOpen ? "ter-mobile-mega-menu-category__name--hidden" : "", " ").concat(mouse ? "" : "tabFocus")), (0, _defineProperty2["default"])(_React$createElement2, "aria-haspopup", "menu"), (0, _defineProperty2["default"])(_React$createElement2, "aria-expanded", !isOpen), (0, _defineProperty2["default"])(_React$createElement2, "ref", collapsedMenu), _React$createElement2), name, /*#__PURE__*/_react["default"].createElement("img", {
105
+ }), (0, _defineProperty2["default"])(_React$createElement2, "className", "ter-mobile-mega-menu-category__name ".concat(isOpen ? "ter-mobile-mega-menu-category__name--hidden" : "", " ").concat(mouse ? "" : "tabFocus")), (0, _defineProperty2["default"])(_React$createElement2, "aria-haspopup", "menu"), (0, _defineProperty2["default"])(_React$createElement2, "aria-expanded", !isOpen), (0, _defineProperty2["default"])(_React$createElement2, "ref", collapsedMenu), (0, _defineProperty2["default"])(_React$createElement2, "data-depth", 3), _React$createElement2), name, /*#__PURE__*/_react["default"].createElement("img", {
106
106
  id: _lodash["default"].uniqueId("id-"),
107
107
  className: "ter-mobile-mega-menu-category__caret",
108
108
  src: _downCaretDarkBlue["default"],
@@ -45,7 +45,7 @@ var MobileMenu = function MobileMenu(_ref) {
45
45
  setUncollapsedMenu = _useFocus4[1];
46
46
 
47
47
  var generateMenuLinks = function generateMenuLinks() {
48
- return (0, _generateLinks["default"])(links, "ter-mobile-menu__link", closeDropDown, text, mouse, Link);
48
+ return (0, _generateLinks["default"])(links, "ter-mobile-menu__link", closeDropDown, text, mouse, Link, 2);
49
49
  };
50
50
 
51
51
  var toggleWithEnter = function toggleWithEnter(e, name, direction) {
@@ -75,7 +75,8 @@ var MobileMenu = function MobileMenu(_ref) {
75
75
  },
76
76
  "aria-haspopup": "menu",
77
77
  "aria-expanded": isOpen,
78
- ref: uncollapsedMenu
78
+ ref: uncollapsedMenu,
79
+ "data-depth": 1
79
80
  }, text, /*#__PURE__*/_react["default"].createElement("img", {
80
81
  className: "ter-mobile-menu__caret ".concat(isOpen ? "ter-mobile-menu__caret--up" : "ter-mobile-menu__caret--down"),
81
82
  src: _rightCaretLightGray["default"],
@@ -96,7 +97,8 @@ var MobileMenu = function MobileMenu(_ref) {
96
97
  tabIndex: mouse ? "" : "0",
97
98
  "aria-haspopup": "menu",
98
99
  "aria-expanded": !isOpen,
99
- ref: collapsedMenu
100
+ ref: collapsedMenu,
101
+ "data-depth": 1
100
102
  }, text, /*#__PURE__*/_react["default"].createElement("img", {
101
103
  className: "ter-mobile-menu__caret ".concat(isOpen ? "ter-mobile-menu__caret--up" : "ter-mobile-menu__caret--down"),
102
104
  src: _rightCaretLightGray["default"],
@@ -175,7 +175,7 @@ var Tabs = function Tabs(_ref3) {
175
175
  numberOfTabs: tabs.length
176
176
  });
177
177
  })), /*#__PURE__*/_react["default"].createElement("div", {
178
- className: "content-entries",
178
+ className: "content-entries ".concat(orientationClass),
179
179
  id: size === "tablet" ? contentID : "",
180
180
  role: "tabpanel",
181
181
  "aria-labelledby": contentID
@@ -256,7 +256,7 @@
256
256
  min-width: 70px;
257
257
  width: 70px;
258
258
  height: 70px;
259
- margin-right: 25px;
259
+ margin-right: 16px;
260
260
  border-radius: 100%;
261
261
  overflow: hidden;
262
262
 
@@ -271,7 +271,7 @@
271
271
  .nav-title {
272
272
  margin: 0;
273
273
  font-size: 16px;
274
- line-height: 24px;
274
+ line-height: 20px;
275
275
  font-family: $bold-font-family;
276
276
 
277
277
  @media screen and (max-width: $breakpoint-sm) {
@@ -281,7 +281,7 @@
281
281
 
282
282
  .nav-subtitle {
283
283
  margin: 6px 0 0 0;
284
- font-size: $body-font-size;
284
+ font-size: 14px;
285
285
  line-height: 19px;
286
286
 
287
287
  @media screen and (max-width: $breakpoint-sm) {
@@ -700,6 +700,38 @@
700
700
  }
701
701
  }
702
702
 
703
+ .content-entries.top,
704
+ .content-entries.bottom {
705
+ .ter-block-list-items {
706
+ margin: 5px auto;
707
+ }
708
+
709
+ .ter-bounded-cards {
710
+ margin: 0 auto;
711
+ max-width: 1110px !important;
712
+ display: flex;
713
+ flex-wrap: wrap;
714
+
715
+ @media screen and (max-width: $breakpoint-md) {
716
+ max-width: 1000px !important;
717
+ }
718
+
719
+ @media screen and (max-width: 1200px) {
720
+ max-width: 900px !important;
721
+ grid-gap: 20px;
722
+ }
723
+
724
+ @media screen and (max-width: 1100px) {
725
+ max-width: 800px !important;
726
+ grid-gap: 20px;
727
+ }
728
+
729
+ @media screen and (max-width: $breakpoint-sm) {
730
+ margin: 5px;
731
+ }
732
+ }
733
+ }
734
+
703
735
  .content-entries {
704
736
  width: 100%;
705
737
  max-width: 100%;
@@ -277,7 +277,7 @@ var PullQuote = function PullQuote(props) {
277
277
  style: {
278
278
  color: color
279
279
  }
280
- }, quoteSourceTitle), (content === null || content === void 0 ? void 0 : (_content$cta = content.cta) === null || _content$cta === void 0 ? void 0 : _content$cta.url) && (content === null || content === void 0 ? void 0 : (_content$cta2 = content.cta) === null || _content$cta2 === void 0 ? void 0 : _content$cta2.text) || (content === null || content === void 0 ? void 0 : (_content$cta3 = content.cta) === null || _content$cta3 === void 0 ? void 0 : _content$cta3.text) && (content === null || content === void 0 ? void 0 : (_content$cta4 = content.cta) === null || _content$cta4 === void 0 ? void 0 : _content$cta4.video) && /*#__PURE__*/_react["default"].createElement(Button, {
280
+ }, quoteSourceTitle), ((content === null || content === void 0 ? void 0 : (_content$cta = content.cta) === null || _content$cta === void 0 ? void 0 : _content$cta.url) && (content === null || content === void 0 ? void 0 : (_content$cta2 = content.cta) === null || _content$cta2 === void 0 ? void 0 : _content$cta2.text) || (content === null || content === void 0 ? void 0 : (_content$cta3 = content.cta) === null || _content$cta3 === void 0 ? void 0 : _content$cta3.text) && (content === null || content === void 0 ? void 0 : (_content$cta4 = content.cta) === null || _content$cta4 === void 0 ? void 0 : _content$cta4.video)) && /*#__PURE__*/_react["default"].createElement(Button, {
281
281
  Link: content === null || content === void 0 ? void 0 : content.Link,
282
282
  url: content === null || content === void 0 ? void 0 : (_content$cta5 = content.cta) === null || _content$cta5 === void 0 ? void 0 : _content$cta5.url,
283
283
  text: content === null || content === void 0 ? void 0 : (_content$cta6 = content.cta) === null || _content$cta6 === void 0 ? void 0 : _content$cta6.text,
@@ -263,6 +263,7 @@
263
263
  display: inline;
264
264
  word-break: break-all;
265
265
  line-height: 14.4px;
266
+ pointer-events: none;
266
267
 
267
268
  &--is-open {
268
269
  color: $white;
@@ -13,7 +13,7 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _formatID = _interopRequireDefault(require("./formatID"));
15
15
 
16
- var generateLinks = function generateLinks(links, className, closeDropDown, name, mouse, Link) {
16
+ var generateLinks = function generateLinks(links, className, closeDropDown, name, mouse, Link, depth) {
17
17
  var _links$filter;
18
18
 
19
19
  return links === null || links === void 0 ? void 0 : (_links$filter = links.filter(function (link) {
@@ -35,7 +35,8 @@ var generateLinks = function generateLinks(links, className, closeDropDown, name
35
35
  },
36
36
  className: "".concat(className, " ").concat(mouse ? "" : "tabFocus"),
37
37
  rel: link !== null && link !== void 0 && link.external ? "noopener" : "",
38
- Link: Link
38
+ Link: Link,
39
+ depth: depth && depth
39
40
  }, text));
40
41
  });
41
42
  };
@@ -43,7 +44,7 @@ var generateLinks = function generateLinks(links, className, closeDropDown, name
43
44
  var _default = generateLinks;
44
45
  exports["default"] = _default;
45
46
 
46
- var generateSingleLink = function generateSingleLink(link, className, closeDropDown, parentOpen, mouse, Link) {
47
+ var generateSingleLink = function generateSingleLink(link, className, closeDropDown, parentOpen, mouse, Link, depth) {
47
48
  var url = link.url,
48
49
  text = link.text;
49
50
  return /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
@@ -58,13 +59,14 @@ var generateSingleLink = function generateSingleLink(link, className, closeDropD
58
59
  Link: Link,
59
60
  style: {
60
61
  textDecoration: "none"
61
- }
62
+ },
63
+ depth: depth && depth
62
64
  }, text);
63
65
  };
64
66
 
65
67
  exports.generateSingleLink = generateSingleLink;
66
68
 
67
- var generateSingleLinkFunctionless = function generateSingleLinkFunctionless(link, className, index, Link) {
69
+ var generateSingleLinkFunctionless = function generateSingleLinkFunctionless(link, className, index, Link, depth) {
68
70
  var url = link === null || link === void 0 ? void 0 : link.url;
69
71
  var text = link === null || link === void 0 ? void 0 : link.text;
70
72
  return url ? /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
@@ -77,13 +79,14 @@ var generateSingleLinkFunctionless = function generateSingleLinkFunctionless(lin
77
79
  },
78
80
  className: className,
79
81
  Link: Link,
80
- target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null
82
+ target: typeof (link === null || link === void 0 ? void 0 : link.external) === 'boolean' ? link !== null && link !== void 0 && link.external ? "_blank" : "_self" : null,
83
+ depth: depth && depth
81
84
  }, text) : null;
82
85
  };
83
86
 
84
87
  exports.generateSingleLinkFunctionless = generateSingleLinkFunctionless;
85
88
 
86
- var generateMobileLink = function generateMobileLink(link, className, closeDropDown, mouse, Link) {
89
+ var generateMobileLink = function generateMobileLink(link, className, closeDropDown, mouse, Link, depth) {
87
90
  var url = link.url,
88
91
  text = link.text;
89
92
  return /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
@@ -98,7 +101,8 @@ var generateMobileLink = function generateMobileLink(link, className, closeDropD
98
101
  className: "".concat(className, " ").concat(mouse ? "" : "tabFocus"),
99
102
  onClick: closeDropDown,
100
103
  Link: Link,
101
- rel: link !== null && link !== void 0 && link.external ? "noopener" : ""
104
+ rel: link !== null && link !== void 0 && link.external ? "noopener" : "",
105
+ depth: depth && depth
102
106
  }, text);
103
107
  };
104
108
 
@@ -111,14 +115,16 @@ var IconLink = function IconLink(_ref) {
111
115
  external = _ref.external,
112
116
  _ref$className = _ref.className,
113
117
  className = _ref$className === void 0 ? "icon-link" : _ref$className,
114
- Link = _ref.Link;
118
+ Link = _ref.Link,
119
+ depth = _ref.depth;
115
120
  return /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
116
121
  id: (0, _formatID["default"])("".concat(className, "-").concat(url, "-link")),
117
122
  to: url,
118
123
  onClick: onClick ? onClick : function () {},
119
124
  target: external ? "_blank" : "_self",
120
125
  Link: Link,
121
- rel: Link !== null && Link !== void 0 && Link.external ? "noopener" : ""
126
+ rel: Link !== null && Link !== void 0 && Link.external ? "noopener" : "",
127
+ depth: depth && depth
122
128
  }, children);
123
129
  };
124
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-one",
3
- "version": "3.1.475",
3
+ "version": "3.1.478",
4
4
  "peerDependencies": {
5
5
  "react": "^17.0.2",
6
6
  "react-dom": "^17.0.2",