@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/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/badge/Badge.stories.js +2 -2
- package/src/components/atoms/icons/{AutoPayIcon.js → AutopayIcon.js} +3 -2
- package/src/components/atoms/icons/icons.stories.js +3 -2
- package/src/components/atoms/icons/index.js +2 -2
package/package.json
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
90
|
+
AutopayIcon,
|
|
91
91
|
ForgotPasswordIcon,
|
|
92
92
|
GoToEmailIcon,
|
|
93
93
|
VerifiedEmailIcon,
|