@thecb/components 9.3.6-beta.0 → 9.3.6-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.3.6-beta.0",
3
+ "version": "9.3.6-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export const MultiCartIcon: JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+
3
+ const MultiCartIcon = ({ iconFill = "#3B5BDB", height = 17, width = 20 }) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width={width}
7
+ height={height}
8
+ viewBox={`0 0 ${width} ${height}`}
9
+ fill="none"
10
+ >
11
+ <path
12
+ d="M17.5312 9.99414C17.4648 10.1934 17.3652 10.3594 17.2324 10.459C17.0996 10.5918 16.9336 10.625 16.7676 10.625H7.03906L7.23828 11.6875H16.1699C16.4023 11.6875 16.6016 11.7871 16.7676 11.9863C16.9004 12.1855 16.9668 12.418 16.9336 12.6504L16.7344 13.4805C17.0664 13.6465 17.2988 13.8789 17.498 14.1777C17.6973 14.4766 17.7969 14.8086 17.7969 15.1406C17.7969 15.6719 17.5977 16.1035 17.2324 16.4688C16.8672 16.834 16.4355 17 15.9375 17C15.4062 17 14.9746 16.834 14.6094 16.4688C14.2441 16.1035 14.0781 15.6719 14.0781 15.1406C14.0781 14.6094 14.2441 14.1777 14.6426 13.8125H7.66992C8.03516 14.1777 8.23438 14.6094 8.23438 15.1406C8.23438 15.6719 8.03516 16.1035 7.66992 16.4688C7.30469 16.834 6.87305 17 6.375 17C5.84375 17 5.41211 16.834 5.04688 16.4688C4.68164 16.1035 4.51562 15.6719 4.51562 15.1406C4.51562 14.8086 4.58203 14.5098 4.74805 14.2109C4.91406 13.9453 5.14648 13.7129 5.44531 13.5137L3.12109 2.125H0.796875C0.564453 2.125 0.365234 2.05859 0.232422 1.89258C0.0664062 1.75977 0 1.56055 0 1.32812V0.796875C0 0.597656 0.0664062 0.398438 0.232422 0.232422C0.365234 0.0996094 0.564453 0 0.796875 0H4.2168C4.38281 0 4.54883 0.0664062 4.68164 0.199219C4.81445 0.332031 4.91406 0.464844 4.98047 0.630859L5.2793 2.125H18.3281C18.5938 2.125 18.793 2.22461 18.959 2.42383C19.0918 2.62305 19.1582 2.85547 19.0918 3.08789L17.5312 9.99414Z"
13
+ fill={iconFill}
14
+ />
15
+ </svg>
16
+ );
17
+
18
+ export default MultiCartIcon;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- const ShoppingCartIcon = ({ iconFill }) => (
3
+ const ShoppingCartIcon = () => (
4
4
  <svg
5
5
  width="32px"
6
6
  height="32px"
@@ -31,7 +31,8 @@ const ShoppingCartIcon = ({ iconFill }) => (
31
31
  <path
32
32
  d="M18.7499553,20.499994 C19.348912,20.499994 19.8632339,20.2851508 20.2929204,19.8554643 C20.7226068,19.4257779 20.9374501,18.911456 20.9374501,18.3124993 C20.9374501,17.8958334 20.8267735,17.5117199 20.6054196,17.1601583 C20.3840658,16.8085966 20.0780771,16.5416703 19.6874531,16.3593789 L19.6874531,16.3593789 L19.9218275,15.3828187 C19.9739105,15.0963613 19.9088069,14.835945 19.7265155,14.6015706 C19.544224,14.3671962 19.3098496,14.2500089 19.0233921,14.2500089 L19.0233921,14.2500089 L8.5156047,14.2500089 L8.28123026,13.0000119 L19.7265155,13.0000119 C19.9348481,13.0000119 20.1236501,12.9349077 20.2929204,12.8046999 C20.4621906,12.6744921 20.5728678,12.4922006 20.6249508,12.2578262 L20.6249508,12.2578262 L22.4608839,4.13284556 C22.5390088,3.84638811 22.4869258,3.58597187 22.3046343,3.35159742 C22.1223429,3.11722298 21.8749478,3.00004172 21.5624486,3.00004172 L21.5624486,3.00004172 L6.21092269,3.00004172 L5.85936103,1.24222745 C5.80727802,1.03389482 5.6966008,0.858113985 5.52733057,0.714884961 C5.35806034,0.571655937 5.16925831,0.500041723 4.96092567,0.500041723 L4.96092567,0.500041723 L0.937497765,0.500041723 C0.67708152,0.500041723 0.455728279,0.591187141 0.273436848,0.773478571 C0.0911454173,0.955770002 0,1.17712324 0,1.43753949 L0,1.43753949 L0,2.062538 C0,2.32295424 0.0911454173,2.54430748 0.273436848,2.72659891 C0.455728279,2.90889035 0.67708152,3.00004172 0.937497765,3.00004172 L0.937497765,3.00004172 L3.67186625,3.00004172 L6.40623473,16.3984413 C6.06769367,16.606774 5.80076742,16.8802108 5.60545539,17.2187519 C5.41014335,17.5572929 5.31248733,17.9218752 5.31248733,18.3124993 C5.31248733,18.911456 5.52733057,19.4257779 5.95701705,19.8554643 C6.38670352,20.2851508 6.90102541,20.499994 7.49998212,20.499994 C8.09893883,20.499994 8.61326071,20.2851508 9.04294719,19.8554643 C9.47263367,19.4257779 9.6874769,18.904946 9.6874769,18.2929681 C9.6874769,17.6809901 9.46612307,17.1666689 9.02341599,16.750003 L9.02341599,16.750003 L17.2265214,16.750003 C16.7838143,17.1666689 16.5624605,17.6809901 16.5624605,18.2929681 C16.5624605,18.904946 16.7773037,19.4257779 17.2069902,19.8554643 C17.6366767,20.2851508 18.1509986,20.499994 18.7499553,20.499994 Z"
33
33
  id="cart-badge-shopping-cart"
34
- fill={iconFill ?? "#FFFFFF"}
34
+ fill="#FFFFFF"
35
+ fillRule="nonzero"
35
36
  ></path>
36
37
  </g>
37
38
  </g>
@@ -39,7 +39,8 @@ import {
39
39
  VoidedIcon,
40
40
  StatusUnknownIcon,
41
41
  AutopayIcon,
42
- KebabMenuIcon
42
+ KebabMenuIcon,
43
+ MultiCartIcon
43
44
  } from "./index";
44
45
 
45
46
  const story = page({
@@ -86,3 +87,4 @@ export const voidedIcon = () => <VoidedIcon />;
86
87
  export const statusUnknownIcon = () => <StatusUnknownIcon />;
87
88
  export const autopayIcon = () => <AutopayIcon />;
88
89
  export const kebabMenuIcon = () => <KebabMenuIcon />;
90
+ export const multiCartIcon = () => <MultiCartIcon />;
@@ -22,3 +22,4 @@ export * from "./SuccessfulIconSmall";
22
22
  export * from "./XCircleIconMedium";
23
23
  export * from "./XCircleIconSmall";
24
24
  export * from "./KebabMenuIcon";
25
+ export * from "./MultiCartIcon";
@@ -87,6 +87,7 @@ import ChargebackIconMedium from "./ChargebackIconMedium";
87
87
  import ChargebackReversalIconMedium from "./ChargebackReversalIconMedium";
88
88
  import PlusCircleIcon from "./PlusCircleIcon";
89
89
  import KebabMenuIcon from "./KebabMenuIcon";
90
+ import MultiCartIcon from "./MultiCartIcon";
90
91
 
91
92
  export {
92
93
  AccountsIcon,
@@ -177,5 +178,6 @@ export {
177
178
  ChargebackIconMedium,
178
179
  ChargebackReversalIconMedium,
179
180
  PlusCircleIcon,
180
- KebabMenuIcon
181
+ KebabMenuIcon,
182
+ MultiCartIcon
181
183
  };
@@ -8,6 +8,7 @@ import Title from "../title";
8
8
  import withWindowSize from "../../withWindowSize";
9
9
 
10
10
  const Jumbo = ({
11
+ themeValues,
11
12
  showButton,
12
13
  heading,
13
14
  buttonLink,
@@ -21,7 +22,8 @@ const Jumbo = ({
21
22
  itemsCount,
22
23
  showCartStatus = false,
23
24
  openCartSlider,
24
- extraStyles
25
+ extraStyles,
26
+ cartStatusExtraStyles
25
27
  }) => {
26
28
  const { isMobile } = useContext(ThemeContext);
27
29
  return (
@@ -51,6 +53,7 @@ const Jumbo = ({
51
53
  }
52
54
  align="center"
53
55
  nowrap={showCartStatus}
56
+ extraStyles={cartStatusExtraStyles}
54
57
  >
55
58
  <Title
56
59
  variant={isMobile ? "small" : "large"}
@@ -80,6 +83,7 @@ const Jumbo = ({
80
83
  )}
81
84
  {showCartStatus && (
82
85
  <CartStatus
86
+ themeValues={themeValues}
83
87
  total={total}
84
88
  itemsCount={itemsCount}
85
89
  openCart={openCartSlider}