luna-one 3.1.388 → 3.1.391

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.
@@ -75,8 +75,6 @@ var imageSizes = {
75
75
  };
76
76
 
77
77
  var AppCards = function AppCards(_ref) {
78
- var _BlockListItems$conte;
79
-
80
78
  var content = _ref.content,
81
79
  motion = _ref.motion;
82
80
  var GatsbyImage = content === null || content === void 0 ? void 0 : content.GatsbyImage;
@@ -118,8 +116,21 @@ var AppCards = function AppCards(_ref) {
118
116
  setDimensions = _useState2[1];
119
117
 
120
118
  (0, _react.useEffect)(function () {
119
+ var _getWindowDimensions2 = getWindowDimensions(),
120
+ width = _getWindowDimensions2.width,
121
+ height = _getWindowDimensions2.height;
122
+
123
+ setDimensions({
124
+ height: height,
125
+ width: width
126
+ });
127
+
121
128
  if (typeof window !== "undefined") {
122
129
  var handleResize = function handleResize() {
130
+ var _getWindowDimensions3 = getWindowDimensions(),
131
+ width = _getWindowDimensions3.width,
132
+ height = _getWindowDimensions3.height;
133
+
123
134
  setDimensions({
124
135
  height: height,
125
136
  width: width
@@ -133,7 +144,7 @@ var AppCards = function AppCards(_ref) {
133
144
  }
134
145
  };
135
146
  }
136
- });
147
+ }, []);
137
148
 
138
149
  if (dimensions.width >= 1101) {
139
150
  arraysNeeded = 3;
@@ -200,11 +211,11 @@ var AppCards = function AppCards(_ref) {
200
211
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
201
212
  className: "ter-app-cards__primitives",
202
213
  style: {
203
- height: dimensions.height
214
+ height: !isMobile ? dimensions.height : 0
204
215
  }
205
216
  }), /*#__PURE__*/_react.default.createElement("h3", {
206
217
  className: "ter-app-cards__main-heading"
207
- }, _terraOne.BlockListItems === null || _terraOne.BlockListItems === void 0 ? void 0 : (_BlockListItems$conte = _terraOne.BlockListItems.content) === null || _BlockListItems$conte === void 0 ? void 0 : _BlockListItems$conte.title), /*#__PURE__*/_react.default.createElement("section", {
218
+ }, content === null || content === void 0 ? void 0 : content.title), /*#__PURE__*/_react.default.createElement("section", {
208
219
  className: "ter-app-cards"
209
220
  }, /*#__PURE__*/_react.default.createElement("div", {
210
221
  className: colClassName
@@ -201,7 +201,9 @@
201
201
  }
202
202
 
203
203
  &__main-heading {
204
- padding: 20px 25px 0;
204
+ padding: 0;
205
+ font-size: $large-subheading-size;
206
+ @include benton-very-bold();
205
207
  }
206
208
 
207
209
  &__primitives {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luna-one",
3
- "version": "3.1.388",
3
+ "version": "3.1.391",
4
4
  "dependencies": {
5
5
  "@storybook/addon-knobs": "^6.3.1",
6
6
  "@testing-library/jest-dom": "^5.11.9",
@@ -24,7 +24,7 @@
24
24
  "react-scroll": "^1.7.14",
25
25
  "react-slidedown": "^2.4.5",
26
26
  "smoothscroll-polyfill": "^0.4.4",
27
- "terra-one": "^3.0.128"
27
+ "terra-one": "^3.0.129"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "node-sass": "^4.12.0",