@thecb/components 11.6.2 → 11.6.3-beta.0
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 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +11 -3
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/badge/Badge.stories.js +15 -3
- package/src/components/atoms/badge/Badge.theme.js +2 -0
- package/src/components/atoms/index.d.ts +1 -0
- package/src/components/molecules/collapsible-section/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import {
|
|
3
3
|
MANATEE_GREY,
|
|
4
|
-
MATISSE_BLUE,
|
|
5
4
|
ROYAL_BLUE_VIVID,
|
|
6
|
-
ZEST_ORANGE
|
|
5
|
+
ZEST_ORANGE,
|
|
6
|
+
CORNFLOWER_BLUE
|
|
7
7
|
} from "../../../constants/colors";
|
|
8
8
|
import Badge from "./Badge";
|
|
9
9
|
import { Box, Stack, Cluster } from "../layouts";
|
|
@@ -80,12 +80,23 @@ const PrimaryBadge = props => {
|
|
|
80
80
|
<Badge
|
|
81
81
|
{...props}
|
|
82
82
|
label={"Item in Cart"}
|
|
83
|
-
Icon={() => MultiCartIcon({
|
|
83
|
+
Icon={() => MultiCartIcon({ iconFill: ROYAL_BLUE_VIVID })}
|
|
84
84
|
variant="primary"
|
|
85
85
|
/>
|
|
86
86
|
);
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
const SecondaryBadge = props => {
|
|
90
|
+
return (
|
|
91
|
+
<Badge
|
|
92
|
+
{...props}
|
|
93
|
+
label={"Item in Cart"}
|
|
94
|
+
Icon={() => MultiCartIcon({ iconFill: CORNFLOWER_BLUE })}
|
|
95
|
+
variant="secondary"
|
|
96
|
+
/>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
89
100
|
const InfoBadge = props => {
|
|
90
101
|
return (
|
|
91
102
|
<Badge
|
|
@@ -133,6 +144,7 @@ export const Badges = {
|
|
|
133
144
|
<SuccessBadge {...args} />
|
|
134
145
|
<DisabledBadge {...args} />
|
|
135
146
|
<PrimaryBadge {...args} />
|
|
147
|
+
<SecondaryBadge {...args} />
|
|
136
148
|
<WarnBadge {...args} />
|
|
137
149
|
</Cluster>
|
|
138
150
|
<Cluster justify="flex-start" align="center" childGap="1.5rem">
|
|
@@ -15,6 +15,7 @@ const background = {
|
|
|
15
15
|
info: `${INFO_BLUE}`,
|
|
16
16
|
warn: `${HALF_COLONIAL_WHITE}`,
|
|
17
17
|
primary: `${CORNFLOWER_BLUE}`,
|
|
18
|
+
secondary: `${ROYAL_BLUE_VIVID}`,
|
|
18
19
|
success: `${HINT_GREEN}`,
|
|
19
20
|
disabled: `${GRECIAN_GREY}`
|
|
20
21
|
};
|
|
@@ -23,6 +24,7 @@ const color = {
|
|
|
23
24
|
info: `${MATISSE_BLUE}`,
|
|
24
25
|
warn: `${ZEST_ORANGE}`,
|
|
25
26
|
primary: `${ROYAL_BLUE_VIVID}`,
|
|
27
|
+
secondary: `${CORNFLOWER_BLUE}`,
|
|
26
28
|
success: `${SEA_GREEN}`,
|
|
27
29
|
disabled: `${MANATEE_GREY}`
|
|
28
30
|
};
|