@thecb/components 8.2.0-beta.6 → 8.2.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.2.0-beta.6",
3
+ "version": "8.2.0-beta.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,7 +12,6 @@ const StyledBadgeContainer = styled(Box)`
12
12
  align-self: flex-start;
13
13
  gap: 4px;
14
14
  border-radius: 4px;
15
- background-color: ${({ themeValues }) => themeValues.background};
16
15
  `;
17
16
 
18
17
  const StyledBadge = styled(Text)`
@@ -22,7 +21,6 @@ const StyledBadge = styled(Text)`
22
21
  font-weight: 400;
23
22
  line-height: 150%; /* 15px */
24
23
  letter-spacing: 0.2px;
25
- color: ${({ themeValues }) => themeValues.color};
26
24
 
27
25
  @media screen and (min-width: 1049px) {
28
26
  font-size: 12px;
@@ -32,9 +30,9 @@ const StyledBadge = styled(Text)`
32
30
  `;
33
31
 
34
32
  const Badge = ({ label, Icon, themeValues, iconOnLeft = true }) => (
35
- <StyledBadgeContainer themeValues={themeValues}>
33
+ <StyledBadgeContainer background={themeValues.background}>
36
34
  {iconOnLeft && Icon && <Icon fill={themeValues.color} />}
37
- <StyledBadge themeValues={themeValues}>{label}</StyledBadge>
35
+ <StyledBadge color={themeValues.color}>{label}</StyledBadge>
38
36
  {!iconOnLeft && Icon && <Icon fill={themeValues.color} />}
39
37
  </StyledBadgeContainer>
40
38
  );
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { HTMLAttributes } from "react";
2
2
  import Expand from "../../../util/expand";
3
3
 
4
4
  export interface BadgeProps {
@@ -7,4 +7,4 @@ export interface BadgeProps {
7
7
  iconOnLeft?: boolean;
8
8
  }
9
9
 
10
- export const Badge: React.FC<Expand<BadgeProps> & JSX.Element>;
10
+ export const Badge: React.FC<Expand<BadgeProps> & HTMLAttributes<HTMLElement>>;
@@ -3,6 +3,7 @@ import React from "react";
3
3
  import page from "../../../../.storybook/page";
4
4
  import {
5
5
  AccountsIcon,
6
+ AutoPayIcon,
6
7
  AccountsAddIcon,
7
8
  ForgotPasswordIcon,
8
9
  GoToEmailIcon,
@@ -20,6 +21,7 @@ import {
20
21
  CheckmarkIcon,
21
22
  BankIcon,
22
23
  GenericCard,
24
+ PaymentIcon,
23
25
  AutopayOnIcon,
24
26
  SearchIcon,
25
27
  AchReturnIcon,
@@ -64,6 +66,7 @@ export const routingNumberImage = () => <RoutingNumberImage />;
64
66
  export const checkmarkIcon = () => <CheckmarkIcon />;
65
67
  export const bankIcon = () => <BankIcon />;
66
68
  export const genericCard = () => <GenericCard />;
69
+ export const paymentIcon = () => <PaymentIcon />;
67
70
  export const autopayOnIcon = () => <AutopayOnIcon />;
68
71
  export const searchIcon = () => <SearchIcon />;
69
72
  export const achReturnIcon = () => <AchReturnIcon />;
@@ -1,4 +1,5 @@
1
1
  import AccountsIcon from "./AccountsIcon";
2
+ import AutoPayIcon from "./AutoPayIcon";
2
3
  import AccountsAddIcon from "./AccountsAddIcon";
3
4
  import ForgotPasswordIcon from "./ForgotPasswordIcon";
4
5
  import GoToEmailIcon from "./GoToEmailIcon";
@@ -86,6 +87,7 @@ import ChargebackReversalIconMedium from "./ChargebackReversalIconMedium";
86
87
  export {
87
88
  AccountsIcon,
88
89
  AccountsAddIcon,
90
+ AutoPayIcon,
89
91
  ForgotPasswordIcon,
90
92
  GoToEmailIcon,
91
93
  VerifiedEmailIcon,