@thecb/components 10.1.2-beta.4 → 10.1.2-beta.6

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": "10.1.2-beta.4",
3
+ "version": "10.1.2-beta.6",
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;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
 
3
- const CartIcon = ({
4
- iconFill = "#FFFFFF",
5
- iconWidth = "25",
6
- iconHeight = "25",
3
+ const MultiCartIcon = ({
4
+ iconFill = "#3B5BDB",
5
+ iconWidth = "20",
6
+ iconHeight = "17",
7
7
  ...rest
8
8
  }) => {
9
9
  return (
@@ -14,7 +14,7 @@ const CartIcon = ({
14
14
  viewBox="0 0 24.81 22.06"
15
15
  {...rest}
16
16
  >
17
- <title>Shopping Cart</title>
17
+ <title>Icon - Cart-Empty</title>
18
18
  <path
19
19
  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"
20
20
  id="cart-badge-shopping-cart"
@@ -25,4 +25,4 @@ const CartIcon = ({
25
25
  );
26
26
  };
27
27
 
28
- export default CartIcon;
28
+ export default MultiCartIcon;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- export const ShoppingCartIcon = () => (
3
+ const ShoppingCartIcon = () => (
4
4
  <svg
5
5
  width="32px"
6
6
  height="32px"
@@ -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";
@@ -49,7 +49,7 @@ import CarrotIcon from "./CarrotIcon";
49
49
  import ProfileIcon from "./ProfileIcon";
50
50
  import GenericCardLarge from "./GenericCardLarge";
51
51
  import EmptyCartIcon from "./EmptyCartIcon";
52
- import CartIcon from "./CartIcon";
52
+ import ShoppingCartIcon from "./ShoppingCartIcon";
53
53
  import TrashIcon from "./TrashIcon";
54
54
  import NoCustomerResultsIcon from "./NoCustomerResultsIcon";
55
55
  import NoPaymentResultsIcon from "./NoPaymentResultsIcon";
@@ -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,
@@ -140,7 +141,7 @@ export {
140
141
  ProfileIcon,
141
142
  GenericCardLarge,
142
143
  EmptyCartIcon,
143
- CartIcon,
144
+ ShoppingCartIcon,
144
145
  TrashIcon,
145
146
  NoCustomerResultsIcon,
146
147
  NoPaymentResultsIcon,
@@ -177,5 +178,6 @@ export {
177
178
  ChargebackIconMedium,
178
179
  ChargebackReversalIconMedium,
179
180
  PlusCircleIcon,
180
- KebabMenuIcon
181
+ KebabMenuIcon,
182
+ MultiCartIcon
181
183
  };
@@ -22,7 +22,10 @@ const PaymentButtonBar = ({
22
22
  redirectText = "Return",
23
23
  buttonFlexOverride,
24
24
  hideForwardButton = false,
25
- hideBackButton = false
25
+ hideBackButton = false,
26
+ buttonGroupStyles,
27
+ hideAdditionalButton = false,
28
+ additionalButton
26
29
  }) => {
27
30
  const { isMobile } = useContext(ThemeContext);
28
31
 
@@ -92,9 +95,11 @@ const PaymentButtonBar = ({
92
95
  : "flex-end"
93
96
  }
94
97
  align="center"
98
+ extraStyles={buttonGroupStyles}
95
99
  >
96
100
  {!hideBackButton && <Fragment>{backButton}</Fragment>}
97
101
  {!hideForwardButton && <Fragment>{forwardButton}</Fragment>}
102
+ {!hideAdditionalButton && <Fragment>{additionalButton}</Fragment>}
98
103
  </Cluster>
99
104
  </Box>
100
105
  </Fragment>
@@ -14,7 +14,6 @@ import { AlertErrorIcon } from "./AlertErrorIcon";
14
14
  import { AlertSuccessIcon } from "./AlertSuccessIcon";
15
15
  import { AlertWarningIcon } from "./AlertWarningIcon";
16
16
  import { IconQuit } from "./IconQuit";
17
- import { ShoppingCartIcon } from "./ShoppingCartIcon";
18
17
 
19
18
  const AlertIcons = {
20
19
  error: AlertErrorIcon,
@@ -35,6 +34,5 @@ export {
35
34
  IconValid,
36
35
  IconInvalid,
37
36
  AlertIcons,
38
- IconQuit,
39
- ShoppingCartIcon
37
+ IconQuit
40
38
  };