luna-one 3.1.442 → 3.1.443

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.
@@ -40,7 +40,8 @@ var BioBlocks = function BioBlocks(_ref) {
40
40
  link: block === null || block === void 0 ? void 0 : block.link,
41
41
  text: block === null || block === void 0 ? void 0 : block.text,
42
42
  image: block === null || block === void 0 ? void 0 : block.image,
43
- color: block === null || block === void 0 ? void 0 : block.color
43
+ color: block === null || block === void 0 ? void 0 : block.color,
44
+ Link: content === null || content === void 0 ? void 0 : content.Link
44
45
  };
45
46
 
46
47
  if (blockContent !== null && blockContent !== void 0 && blockContent.link) {
@@ -40,7 +40,8 @@ var IconListItemBlocks = function IconListItemBlocks(_ref) {
40
40
  text: block === null || block === void 0 ? void 0 : block.text,
41
41
  type: block === null || block === void 0 ? void 0 : block.icon,
42
42
  backgroundColor: block === null || block === void 0 ? void 0 : block.backgroundColor,
43
- color: block === null || block === void 0 ? void 0 : block.color
43
+ color: block === null || block === void 0 ? void 0 : block.color,
44
+ Link: content === null || content === void 0 ? void 0 : content.Link
44
45
  };
45
46
 
46
47
  if (blockContent !== null && blockContent !== void 0 && blockContent.link) {
@@ -42,7 +42,8 @@ var IconMiniBlocks = function IconMiniBlocks(_ref) {
42
42
  backgroundColor: block === null || block === void 0 ? void 0 : block.backgroundColor,
43
43
  color: block === null || block === void 0 ? void 0 : block.color,
44
44
  alignment: content === null || content === void 0 ? void 0 : content.alignment,
45
- largeBlock: content === null || content === void 0 ? void 0 : content.largeBlock
45
+ largeBlock: content === null || content === void 0 ? void 0 : content.largeBlock,
46
+ Link: content === null || content === void 0 ? void 0 : content.Link
46
47
  };
47
48
 
48
49
  if (blockContent !== null && blockContent !== void 0 && blockContent.link) {
@@ -101,7 +101,7 @@ var UnboundedCards = function UnboundedCards(_ref) {
101
101
  cardLink: card === null || card === void 0 ? void 0 : card.cardLink,
102
102
  text: card === null || card === void 0 ? void 0 : card.text,
103
103
  GatsbyImage: GatsbyImage,
104
- Link: Link,
104
+ Link: content === null || content === void 0 ? void 0 : content.Link,
105
105
  cardAlignment: content === null || content === void 0 ? void 0 : content.cardAlignment,
106
106
  buttonSecondary: content === null || content === void 0 ? void 0 : content.buttonSecondary,
107
107
  modalType: card === null || card === void 0 ? void 0 : card.modalType,
@@ -76,7 +76,17 @@ var UnboundedCard = function UnboundedCard(_ref) {
76
76
  className: "ter-bounded-card__link-holder"
77
77
  }, (0, _UnboundedCardMethods.renderButton)(cardLink, Link)), cardLink && !displayButton && /*#__PURE__*/_react["default"].createElement("div", {
78
78
  className: "ter-bounded-card__link-holder"
79
- }, /*#__PURE__*/_react["default"].createElement("a", {
79
+ }, Link && (cardLink === null || cardLink === void 0 ? void 0 : cardLink.external) === false && /*#__PURE__*/_react["default"].createElement(Link, {
80
+ target: "_self",
81
+ className: "ter-bounded-card__link",
82
+ to: cardLink === null || cardLink === void 0 ? void 0 : cardLink.url,
83
+ rel: "noreferrer noopener"
84
+ }, /*#__PURE__*/_react["default"].createElement("span", {
85
+ className: "ter-bounded-card__link-text"
86
+ }, cardLink === null || cardLink === void 0 ? void 0 : cardLink.text), /*#__PURE__*/_react["default"].createElement(_CardLinkIcon.CardLinkIcon, {
87
+ iconClass: "ter-bounded-card__link-icon",
88
+ external: cardLink === null || cardLink === void 0 ? void 0 : cardLink.external
89
+ })), (!Link || (cardLink === null || cardLink === void 0 ? void 0 : cardLink.external) === true) && /*#__PURE__*/_react["default"].createElement("a", {
80
90
  target: (cardLink === null || cardLink === void 0 ? void 0 : cardLink.external) === true ? "_blank" : "_self",
81
91
  className: "ter-bounded-card__link",
82
92
  href: cardLink === null || cardLink === void 0 ? void 0 : cardLink.url,
@@ -30,7 +30,6 @@ var Carousel = function Carousel(_ref) {
30
30
  paddingClass = _ref.paddingClass,
31
31
  motion = _ref.motion;
32
32
  var GatsbyImage = content === null || content === void 0 ? void 0 : content.GatsbyImage;
33
- var Link = content === null || content === void 0 ? void 0 : content.Link;
34
33
  var carouselWrapper = (0, _react.useRef)();
35
34
 
36
35
  var _useState = (0, _react.useState)(false),
@@ -166,7 +165,7 @@ var Carousel = function Carousel(_ref) {
166
165
  bgColor: !(card !== null && card !== void 0 && card.image) ? "grey" : "",
167
166
  text: card === null || card === void 0 ? void 0 : card.text,
168
167
  GatsbyImage: GatsbyImage,
169
- Link: Link,
168
+ Link: content === null || content === void 0 ? void 0 : content.Link,
170
169
  cardAlignment: content === null || content === void 0 ? void 0 : content.cardAlignment
171
170
  };
172
171
  return /*#__PURE__*/_react["default"].createElement(_terraOne.BoundedCard, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-one",
3
- "version": "3.1.442",
3
+ "version": "3.1.443",
4
4
  "peerDependencies": {
5
5
  "react": "^17.0.2",
6
6
  "react-dom": "^17.0.2",
@@ -51,7 +51,7 @@
51
51
  "react-scroll": "^1.8.7",
52
52
  "react-slidedown": "^2.4.7",
53
53
  "smoothscroll-polyfill": "^0.4.4",
54
- "terra-one": "^3.0.144"
54
+ "terra-one": "^3.0.145"
55
55
  },
56
56
  "scripts": {
57
57
  "start": "start-storybook -p 9009 -s public",