@thecb/components 8.2.0-beta.8 → 8.2.0-beta.9

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.8",
3
+ "version": "8.2.0-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { text, select } from "@storybook/addon-knobs";
3
3
  import Badge from "./Badge";
4
4
  import page from "../../../../.storybook/page";
5
- import AutoPayIcon from "../icons/AutoPayIcon";
5
+ import AutopayIcon from "../icons/AutopayIcon";
6
6
 
7
7
  const variantsLabel = "variants";
8
8
  const variants = {
@@ -21,7 +21,7 @@ export const badge = () => (
21
21
  <Badge
22
22
  variant={select(variantsLabel, variants, defaultValue, groupId)}
23
23
  label={text(labelLabel, "Autopay Available", groupId)}
24
- Icon={text(iconLabel, AutoPayIcon, groupId)}
24
+ Icon={text(iconLabel, AutopayIcon, groupId)}
25
25
  />
26
26
  );
27
27
 
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- const AutoPayIcon = ({ fill = "#317D4F" }) => (
3
+ // Fill color based on default "success" variant color
4
+ const AutopayIcon = ({ fill = "#317D4F" }) => (
4
5
  <svg
5
6
  width="16"
6
7
  height="16"
@@ -28,4 +29,4 @@ const AutoPayIcon = ({ fill = "#317D4F" }) => (
28
29
  </svg>
29
30
  );
30
31
 
31
- export default AutoPayIcon;
32
+ export default AutopayIcon;
@@ -3,7 +3,6 @@ import React from "react";
3
3
  import page from "../../../../.storybook/page";
4
4
  import {
5
5
  AccountsIcon,
6
- AutoPayIcon,
7
6
  AccountsAddIcon,
8
7
  ForgotPasswordIcon,
9
8
  GoToEmailIcon,
@@ -39,7 +38,8 @@ import {
39
38
  RejectedVelocityIcon,
40
39
  SuccessfulIcon,
41
40
  VoidedIcon,
42
- StatusUnknownIcon
41
+ StatusUnknownIcon,
42
+ AutopayIcon
43
43
  } from "./index";
44
44
 
45
45
  const story = page({
@@ -85,3 +85,4 @@ export const rejectedVelocityIcon = () => <RejectedVelocityIcon />;
85
85
  export const successfulIcon = () => <SuccessfulIcon />;
86
86
  export const voidedIcon = () => <VoidedIcon />;
87
87
  export const statusUnknownIcon = () => <StatusUnknownIcon />;
88
+ export const autopayIcon = () => <AutopayIcon />;
@@ -1,5 +1,5 @@
1
1
  import AccountsIcon from "./AccountsIcon";
2
- import AutoPayIcon from "./AutoPayIcon";
2
+ import AutopayIcon from "./AutopayIcon";
3
3
  import AccountsAddIcon from "./AccountsAddIcon";
4
4
  import ForgotPasswordIcon from "./ForgotPasswordIcon";
5
5
  import GoToEmailIcon from "./GoToEmailIcon";
@@ -87,7 +87,7 @@ import ChargebackReversalIconMedium from "./ChargebackReversalIconMedium";
87
87
  export {
88
88
  AccountsIcon,
89
89
  AccountsAddIcon,
90
- AutoPayIcon,
90
+ AutopayIcon,
91
91
  ForgotPasswordIcon,
92
92
  GoToEmailIcon,
93
93
  VerifiedEmailIcon,