@thecb/components 4.2.8-beta.3 → 4.2.8

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.cjs.js CHANGED
@@ -21260,7 +21260,8 @@ var Jumbo = function Jumbo(_ref) {
21260
21260
  CartStatus = _ref.cartStatus,
21261
21261
  total = _ref.total,
21262
21262
  itemsCount = _ref.itemsCount,
21263
- showCartStatus = _ref.showCartStatus,
21263
+ _ref$showCartStatus = _ref.showCartStatus,
21264
+ showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
21264
21265
  openCartSlider = _ref.openCartSlider;
21265
21266
 
21266
21267
  var _useContext = React.useContext(styled.ThemeContext),
@@ -21283,13 +21284,15 @@ var Jumbo = function Jumbo(_ref) {
21283
21284
  childGap: "0.25rem"
21284
21285
  }, /*#__PURE__*/React__default.createElement(Cluster, {
21285
21286
  minHeight: "100%",
21286
- justify: isMobile ? "center" : showButton || showCartStatus ? "space-between" : "left",
21287
- align: "center"
21287
+ justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
21288
+ align: "center",
21289
+ nowrap: showCartStatus
21288
21290
  }, /*#__PURE__*/React__default.createElement(Heading$1, {
21289
21291
  variant: isMobile ? "h5" : "h3",
21290
21292
  color: "#ffffff",
21291
21293
  className: "themeJumboHeading",
21292
- themeJumboHeading: true
21294
+ themeJumboHeading: true,
21295
+ extraStyles: showCartStatus && isMobile && "max-width: 60%;"
21293
21296
  }, heading), subHeading && /*#__PURE__*/React__default.createElement(Heading$1, {
21294
21297
  variant: isMobile ? "h6" : "h2",
21295
21298
  color: "#ffffff",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.2.8-beta.3",
3
+ "version": "4.2.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -18,7 +18,7 @@ const Jumbo = ({
18
18
  cartStatus: CartStatus,
19
19
  total,
20
20
  itemsCount,
21
- showCartStatus,
21
+ showCartStatus = false,
22
22
  openCartSlider
23
23
  }) => {
24
24
  const { isMobile } = useContext(ThemeContext);
@@ -40,19 +40,21 @@ const Jumbo = ({
40
40
  <Cluster
41
41
  minHeight="100%"
42
42
  justify={
43
- isMobile
43
+ isMobile && !showCartStatus
44
44
  ? `center`
45
45
  : showButton || showCartStatus
46
46
  ? `space-between`
47
47
  : `left`
48
48
  }
49
49
  align="center"
50
+ nowrap={showCartStatus}
50
51
  >
51
52
  <Heading
52
53
  variant={isMobile ? "h5" : "h3"}
53
54
  color="#ffffff"
54
55
  className="themeJumboHeading"
55
56
  themeJumboHeading
57
+ extraStyles={showCartStatus && isMobile && `max-width: 60%;`}
56
58
  >
57
59
  {heading}
58
60
  </Heading>