@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "11.6.2",
3
+ "version": "11.6.3-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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({ color: ROYAL_BLUE_VIVID })}
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
  };
@@ -1,4 +1,5 @@
1
1
  export * from "./alert";
2
+ export * from "./badge";
2
3
  export * from "./button-with-action";
3
4
  export * from "./button-with-link";
4
5
  export * from "./card";
@@ -8,7 +8,7 @@ export interface CollapsibleSectionProps {
8
8
  ) => void;
9
9
  isMobile?: boolean;
10
10
  supportsTouch?: boolean;
11
- title?: string;
11
+ title?: string | JSX.Element;
12
12
  customPadding?: string;
13
13
  initiallyOpen?: boolean;
14
14
  openHeight?: string;