luna-one 3.1.490 → 3.1.493

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.
@@ -67,6 +67,10 @@ var CtaWithHeader = function CtaWithHeader(_ref) {
67
67
  var linksClass = "links-light";
68
68
  var buttonsVarians = buttonsLight;
69
69
 
70
+ if (variant === "light") {
71
+ variantClass = variant;
72
+ }
73
+
70
74
  if (variant === "dark") {
71
75
  variantClass = variant;
72
76
  buttonsVarians = buttonsDark;
@@ -5,6 +5,10 @@
5
5
  font-family: "Benton Sans for Trimble W05";
6
6
  color: $trimble-dark-gray;
7
7
 
8
+ &.light {
9
+ color: white;
10
+ }
11
+
8
12
  &.dark {
9
13
  color: white;
10
14
  background-color: $trimble-blue;
@@ -113,7 +113,7 @@ var ShortDescriptionCardWrapper = function ShortDescriptionCardWrapper(_ref2) {
113
113
  var link = _ref2.link,
114
114
  ariaLabel = _ref2.ariaLabel,
115
115
  children = _ref2.children;
116
- return link ? /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
116
+ return link && link !== null && link !== void 0 && link.url ? /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
117
117
  to: link === null || link === void 0 ? void 0 : link.url,
118
118
  ariaLabel: ariaLabel,
119
119
  className: "card"
@@ -136,7 +136,7 @@ var ShortDescriptionCard = function ShortDescriptionCard(_ref3) {
136
136
  }, header && /*#__PURE__*/_react["default"].createElement("div", {
137
137
  className: "heading-container"
138
138
  }, /*#__PURE__*/_react["default"].createElement("div", {
139
- className: "heading ".concat(link && (0, _checkForExternalLink["default"])(link === null || link === void 0 ? void 0 : link.url) ? "has-link-external" : link ? "has-link" : ""),
139
+ className: "heading ".concat(link && link !== null && link !== void 0 && link.url && (0, _checkForExternalLink["default"])(link === null || link === void 0 ? void 0 : link.url) ? "has-link-external" : link && link !== null && link !== void 0 && link.url ? "has-link" : ""),
140
140
  dangerouslySetInnerHTML: (0, _formatSpecialCharText["default"])(header)
141
141
  })), (category || role) && /*#__PURE__*/_react["default"].createElement("div", {
142
142
  className: "subhead-container"
@@ -27,7 +27,6 @@
27
27
  display: flex;
28
28
  flex-direction: row;
29
29
  margin-bottom: 24px;
30
-
31
30
  &-icon {
32
31
  padding-right: 12px;
33
32
 
@@ -89,9 +88,15 @@
89
88
  }
90
89
  }
91
90
  }
92
-
93
91
  &--extra-padding {
94
- padding: 20px;
92
+ padding: 50px;
93
+ .ter-icon-text-list__item:last-child {
94
+ margin-bottom: 0;
95
+ .ter-icon-text-list__item-text-body > *:last-child {
96
+ // prevents excessive spacing when component is nested and has extra-padding class
97
+ margin-bottom: 0;
98
+ }
99
+ }
95
100
  }
96
101
 
97
102
  &__bullet-theme {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-one",
3
- "version": "3.1.490",
3
+ "version": "3.1.493",
4
4
  "peerDependencies": {
5
5
  "react": "^17.0.2",
6
6
  "react-dom": "^17.0.2",
Binary file