@thecb/components 11.6.4-beta.0 → 11.6.5-beta.1

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.4-beta.0",
3
+ "version": "11.6.5-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,10 +1,8 @@
1
1
  import {
2
2
  APRICOT_ORANGE,
3
- INFO_BLUE,
4
3
  BLUSH_RED,
5
4
  HINT_GREEN,
6
5
  ZEST_ORANGE,
7
- MATISSE_BLUE,
8
6
  RAZZMATAZZ_RED,
9
7
  EMERALD_GREEN,
10
8
  MUSTARD_YELLOW,
@@ -16,18 +14,20 @@ import {
16
14
  THUNDERBIRD_RED,
17
15
  HAZE_GREEN,
18
16
  ZODIAC_BLUE,
19
- SCIENCE_BLUE
17
+ SCIENCE_BLUE,
18
+ LUCKY_POINT,
19
+ HAWKES_BLUE
20
20
  } from "../../../constants/colors";
21
21
 
22
22
  const background = {
23
- info: `${INFO_BLUE}`,
23
+ info: `${HAWKES_BLUE}`,
24
24
  warn: `${APRICOT_ORANGE}`,
25
25
  error: `${BLUSH_RED}`,
26
26
  success: `${HINT_GREEN}`
27
27
  };
28
28
 
29
29
  const border = {
30
- info: `${MATISSE_BLUE}`,
30
+ info: `${LUCKY_POINT}`,
31
31
  warn: `${ZEST_ORANGE}`,
32
32
  error: `${RAZZMATAZZ_RED}`,
33
33
  success: `${EMERALD_GREEN}`
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import styled from "styled-components";
1
+ import React, { useContext } from "react";
2
+ import styled, { ThemeContext } from "styled-components";
3
3
  import Box from "../layouts/Box";
4
4
  import Text from "../../atoms/text/";
5
5
  import { themeComponent } from "../../../util/themeUtils";
@@ -15,31 +15,45 @@ const StyledBadgeContainer = styled(Box)`
15
15
  `;
16
16
 
17
17
  const StyledBadge = styled(Text)`
18
- font-family: "Public Sans", sans-serif;
19
- font-size: 10px;
20
- font-style: normal;
21
- font-weight: 400;
22
- line-height: 150%; /* 15px */
23
- letter-spacing: 0.2px;
18
+ line-height: 150%;
19
+ letter-spacing: ${props => (props.isMobile ? "0.2px" : "0.24px")};
24
20
  white-space: nowrap;
25
-
26
- @media screen and (min-width: 1049px) {
27
- font-size: 12px;
28
- line-height: 150%; /* 18px */
29
- letter-spacing: 0.24px;
30
- }
31
21
  `;
32
22
 
33
- const Badge = ({ label, Icon, themeValues, iconOnLeft = true, id }) => (
34
- <StyledBadgeContainer background={themeValues.background} id={id}>
35
- {iconOnLeft && Icon && (
36
- <Icon color={themeValues.color} fill={themeValues.color} />
37
- )}
38
- <StyledBadge color={themeValues.color}>{label}</StyledBadge>
39
- {!iconOnLeft && Icon && (
40
- <Icon color={themeValues.color} fill={themeValues.color} />
41
- )}
42
- </StyledBadgeContainer>
43
- );
23
+ const Badge = ({
24
+ label,
25
+ Icon,
26
+ themeValues,
27
+ iconOnLeft = true,
28
+ id,
29
+ extraStyles
30
+ }) => {
31
+ const { isMobile } = useContext(ThemeContext);
32
+
33
+ return (
34
+ <StyledBadgeContainer
35
+ background={themeValues.background}
36
+ id={id}
37
+ extraStyles={extraStyles}
38
+ >
39
+ {iconOnLeft && Icon && (
40
+ <Icon color={themeValues.color} fill={themeValues.color} />
41
+ )}
42
+ <StyledBadge
43
+ color={themeValues.color}
44
+ weight={themeValues.fontWeight}
45
+ fontSize={
46
+ isMobile ? themeValues.fontSizeMobile : themeValues.fontSizeDesktop
47
+ }
48
+ isMobile={isMobile}
49
+ >
50
+ {label}
51
+ </StyledBadge>
52
+ {!iconOnLeft && Icon && (
53
+ <Icon color={themeValues.color} fill={themeValues.color} />
54
+ )}
55
+ </StyledBadgeContainer>
56
+ );
57
+ };
44
58
 
45
59
  export default themeComponent(Badge, "Badge", fallbackValues, "success");
@@ -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,30 @@ 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 PrimaryHeadlineBadge = props => {
90
+ return <Badge {...props} label={"Kiosk"} variant="primaryHeadline" />;
91
+ };
92
+
93
+ const SecondaryBadge = props => {
94
+ return (
95
+ <Badge
96
+ {...props}
97
+ label={"Item in Cart"}
98
+ Icon={() => MultiCartIcon({ iconFill: CORNFLOWER_BLUE })}
99
+ variant="secondary"
100
+ />
101
+ );
102
+ };
103
+
104
+ const SecondaryHeadlineBadge = props => {
105
+ return <Badge {...props} label={"Online"} variant="secondaryHeadline" />;
106
+ };
89
107
  const InfoBadge = props => {
90
108
  return (
91
109
  <Badge
@@ -133,6 +151,9 @@ export const Badges = {
133
151
  <SuccessBadge {...args} />
134
152
  <DisabledBadge {...args} />
135
153
  <PrimaryBadge {...args} />
154
+ <PrimaryHeadlineBadge {...args} />
155
+ <SecondaryBadge {...args} />
156
+ <SecondaryHeadlineBadge {...args} />
136
157
  <WarnBadge {...args} />
137
158
  </Cluster>
138
159
  <Cluster justify="flex-start" align="center" childGap="1.5rem">
@@ -10,11 +10,20 @@ import {
10
10
  SEA_GREEN,
11
11
  ZEST_ORANGE
12
12
  } from "../../../constants/colors";
13
+ import {
14
+ FONT_SIZE,
15
+ FONT_WEIGHT_REGULAR,
16
+ FONT_WEIGHT_SEMIBOLD
17
+ } from "../../../constants/style_constants";
18
+ import { fallbackValues as textTheme } from "../text/Text.theme";
13
19
 
14
20
  const background = {
15
21
  info: `${INFO_BLUE}`,
16
22
  warn: `${HALF_COLONIAL_WHITE}`,
17
23
  primary: `${CORNFLOWER_BLUE}`,
24
+ primaryHeadline: `${CORNFLOWER_BLUE}`,
25
+ secondary: `${ROYAL_BLUE_VIVID}`,
26
+ secondaryHeadline: `${ROYAL_BLUE_VIVID}`,
18
27
  success: `${HINT_GREEN}`,
19
28
  disabled: `${GRECIAN_GREY}`
20
29
  };
@@ -23,11 +32,50 @@ const color = {
23
32
  info: `${MATISSE_BLUE}`,
24
33
  warn: `${ZEST_ORANGE}`,
25
34
  primary: `${ROYAL_BLUE_VIVID}`,
35
+ primaryHeadline: `${ROYAL_BLUE_VIVID}`,
36
+ secondary: `${CORNFLOWER_BLUE}`,
37
+ secondaryHeadline: `${CORNFLOWER_BLUE}`,
26
38
  success: `${SEA_GREEN}`,
27
39
  disabled: `${MANATEE_GREY}`
28
40
  };
29
41
 
42
+ const fontWeight = {
43
+ info: FONT_WEIGHT_REGULAR,
44
+ warn: FONT_WEIGHT_REGULAR,
45
+ primary: FONT_WEIGHT_REGULAR,
46
+ primaryHeadline: FONT_WEIGHT_SEMIBOLD,
47
+ secondary: FONT_WEIGHT_REGULAR,
48
+ secondaryHeadline: FONT_WEIGHT_SEMIBOLD,
49
+ success: FONT_WEIGHT_REGULAR,
50
+ disabled: FONT_WEIGHT_REGULAR
51
+ };
52
+
53
+ const fontSizeMobile = {
54
+ info: textTheme.fontSize.pXXS,
55
+ warn: textTheme.fontSize.pXXS,
56
+ primary: textTheme.fontSize.pXXS,
57
+ primaryHeadline: textTheme.fontSize.pXS,
58
+ secondary: textTheme.fontSize.pXXS,
59
+ secondaryHeadline: textTheme.fontSize.pXS,
60
+ success: textTheme.fontSize.pXXS,
61
+ disabled: textTheme.fontSize.pXXS
62
+ };
63
+
64
+ const fontSizeDesktop = {
65
+ info: textTheme.fontSize.pXS,
66
+ warn: textTheme.fontSize.pXS,
67
+ primary: textTheme.fontSize.pXS,
68
+ primaryHeadline: textTheme.fontSize.pS,
69
+ secondary: textTheme.fontSize.pXS,
70
+ secondaryHeadline: textTheme.fontSize.pS,
71
+ success: textTheme.fontSize.pXS,
72
+ disabled: textTheme.fontSize.pXS
73
+ };
74
+
30
75
  export const fallbackValues = {
31
76
  background,
32
- color
77
+ color,
78
+ fontWeight,
79
+ fontSizeMobile,
80
+ fontSizeDesktop
33
81
  };
@@ -5,6 +5,17 @@ export interface BadgeProps {
5
5
  label: string;
6
6
  Icon?: JSX.Element;
7
7
  iconOnLeft?: boolean;
8
+ variant?:
9
+ | "info"
10
+ | "warn"
11
+ | "primary"
12
+ | "primaryHeadline"
13
+ | "secondary"
14
+ | "secondaryHeadline"
15
+ | "success"
16
+ | "disabled";
17
+ id?: string;
18
+ extraStyles?: string;
8
19
  }
9
20
 
10
21
  export const Badge: React.FC<Expand<BadgeProps> & HTMLAttributes<HTMLElement>>;
@@ -7,11 +7,13 @@ const {
7
7
  SAPPHIRE_BLUE,
8
8
  PEACOCK_BLUE,
9
9
  MANATEE_GREY,
10
- MATISSE_BLUE,
10
+ LUCKY_POINT,
11
11
  HINT_GREEN,
12
12
  SEA_GREEN,
13
13
  RASPBERRY,
14
- ERROR_COLOR
14
+ ERROR_COLOR,
15
+ LUCKY_POINT_DARK,
16
+ HAWKES_BLUE
15
17
  } = colors;
16
18
 
17
19
  const { LINK_TEXT_DECORATION } = styleConstants;
@@ -86,13 +88,13 @@ const padding = {
86
88
 
87
89
  const color = {
88
90
  primary: WHITE,
89
- secondary: MATISSE_BLUE,
90
- back: MATISSE_BLUE,
91
+ secondary: LUCKY_POINT,
92
+ back: LUCKY_POINT,
91
93
  smallPrimary: WHITE,
92
- smallSecondary: MATISSE_BLUE,
93
- smallGhost: MATISSE_BLUE,
94
- ghost: MATISSE_BLUE,
95
- tertiary: MATISSE_BLUE,
94
+ smallSecondary: LUCKY_POINT,
95
+ smallGhost: LUCKY_POINT,
96
+ ghost: LUCKY_POINT,
97
+ tertiary: LUCKY_POINT,
96
98
  danger: WHITE,
97
99
  dangerSecondary: ERROR_COLOR,
98
100
  whitePrimary: WHITE,
@@ -187,10 +189,10 @@ const textDecoration = {
187
189
  };
188
190
 
189
191
  const backgroundColor = {
190
- primary: MATISSE_BLUE,
192
+ primary: LUCKY_POINT,
191
193
  secondary: TRANSPARENT,
192
194
  back: TRANSPARENT,
193
- smallPrimary: MATISSE_BLUE,
195
+ smallPrimary: LUCKY_POINT,
194
196
  smallSecondary: TRANSPARENT,
195
197
  smallGhost: TRANSPARENT,
196
198
  ghost: TRANSPARENT,
@@ -204,11 +206,11 @@ const backgroundColor = {
204
206
  };
205
207
 
206
208
  const border = {
207
- primary: "2px solid " + MATISSE_BLUE,
208
- secondary: "2px solid " + MATISSE_BLUE,
209
- back: "2px solid " + MATISSE_BLUE,
210
- smallPrimary: "2px solid " + MATISSE_BLUE,
211
- smallSecondary: "2px solid " + MATISSE_BLUE,
209
+ primary: "2px solid " + LUCKY_POINT,
210
+ secondary: "2px solid " + LUCKY_POINT,
211
+ back: "2px solid " + LUCKY_POINT,
212
+ smallPrimary: "2px solid " + LUCKY_POINT,
213
+ smallSecondary: "2px solid " + LUCKY_POINT,
212
214
  smallGhost: "none",
213
215
  ghost: "none",
214
216
  tertiary: "none",
@@ -221,11 +223,11 @@ const border = {
221
223
  };
222
224
 
223
225
  const hoverBackgroundColor = {
224
- primary: SAPPHIRE_BLUE,
225
- secondary: "#DBEAF0",
226
+ primary: LUCKY_POINT_DARK,
227
+ secondary: HAWKES_BLUE,
226
228
  back: TRANSPARENT,
227
- smallPrimary: SAPPHIRE_BLUE,
228
- smallSecondary: "#DBEAF0",
229
+ smallPrimary: LUCKY_POINT_DARK,
230
+ smallSecondary: HAWKES_BLUE,
229
231
  smallGhost: TRANSPARENT,
230
232
  ghost: TRANSPARENT,
231
233
  tertiary: TRANSPARENT,
@@ -238,11 +240,11 @@ const hoverBackgroundColor = {
238
240
  };
239
241
 
240
242
  const hoverBorderColor = {
241
- primary: SAPPHIRE_BLUE,
242
- secondary: MATISSE_BLUE,
243
+ primary: LUCKY_POINT_DARK,
244
+ secondary: LUCKY_POINT,
243
245
  back: "#DCEAF1",
244
- smallPrimary: SAPPHIRE_BLUE,
245
- smallSecondary: MATISSE_BLUE,
246
+ smallPrimary: LUCKY_POINT_DARK,
247
+ smallSecondary: LUCKY_POINT,
246
248
  smallGhost: TRANSPARENT,
247
249
  ghost: TRANSPARENT,
248
250
  tertiary: TRANSPARENT,
@@ -256,13 +258,13 @@ const hoverBorderColor = {
256
258
 
257
259
  const hoverColor = {
258
260
  primary: WHITE,
259
- secondary: SAPPHIRE_BLUE,
260
- back: SAPPHIRE_BLUE,
261
+ secondary: LUCKY_POINT,
262
+ back: LUCKY_POINT,
261
263
  smallPrimary: WHITE,
262
- smallSecondary: SAPPHIRE_BLUE,
263
- smallGhost: SAPPHIRE_BLUE,
264
- ghost: SAPPHIRE_BLUE,
265
- tertiary: SAPPHIRE_BLUE,
264
+ smallSecondary: LUCKY_POINT,
265
+ smallGhost: LUCKY_POINT,
266
+ ghost: LUCKY_POINT,
267
+ tertiary: LUCKY_POINT,
266
268
  danger: WHITE,
267
269
  dangerSecondary: "#B10541",
268
270
  whitePrimary: WHITE,
@@ -272,11 +274,11 @@ const hoverColor = {
272
274
  };
273
275
 
274
276
  const activeBackgroundColor = {
275
- primary: PEACOCK_BLUE,
276
- secondary: "#B8D5E1",
277
+ primary: LUCKY_POINT_DARK,
278
+ secondary: adjustHexColor(HAWKES_BLUE, 10, "darken"),
277
279
  back: TRANSPARENT,
278
- smallPrimary: PEACOCK_BLUE,
279
- smallSecondary: "#B8D5E1",
280
+ smallPrimary: LUCKY_POINT_DARK,
281
+ smallSecondary: adjustHexColor(HAWKES_BLUE, 10, "darken"),
280
282
  smallGhost: TRANSPARENT,
281
283
  ghost: TRANSPARENT,
282
284
  tertiary: TRANSPARENT,
@@ -289,11 +291,11 @@ const activeBackgroundColor = {
289
291
  };
290
292
 
291
293
  const activeBorderColor = {
292
- primary: PEACOCK_BLUE,
293
- secondary: MATISSE_BLUE,
294
+ primary: adjustHexColor(LUCKY_POINT_DARK, 10, "darken"),
295
+ secondary: LUCKY_POINT,
294
296
  back: PEACOCK_BLUE,
295
- smallPrimary: PEACOCK_BLUE,
296
- smallSecondary: MATISSE_BLUE,
297
+ smallPrimary: adjustHexColor(LUCKY_POINT_DARK, 10, "darken"),
298
+ smallSecondary: LUCKY_POINT,
297
299
  smallGhost: TRANSPARENT,
298
300
  ghost: TRANSPARENT,
299
301
  tertiary: TRANSPARENT,
@@ -307,7 +309,7 @@ const activeBorderColor = {
307
309
 
308
310
  const activeColor = {
309
311
  primary: WHITE,
310
- secondary: MATISSE_BLUE,
312
+ secondary: LUCKY_POINT,
311
313
  back: PEACOCK_BLUE,
312
314
  smallPrimary: WHITE,
313
315
  smallSecondary: PEACOCK_BLUE,
@@ -1,12 +1,12 @@
1
1
  import {
2
- HOVER_LIGHT_BLUE,
3
- MATISSE_BLUE,
4
- MATISSE_BLUE_DARK
2
+ HAWKES_BLUE,
3
+ LUCKY_POINT,
4
+ LUCKY_POINT_DARK
5
5
  } from "../../../constants/colors";
6
6
 
7
- const selectedColor = `${MATISSE_BLUE}`;
8
- const hoverColor = `${HOVER_LIGHT_BLUE}`;
9
- const focusColor = `${MATISSE_BLUE_DARK}`;
7
+ const selectedColor = `${LUCKY_POINT}`;
8
+ const hoverColor = `${HAWKES_BLUE}`;
9
+ const focusColor = `${LUCKY_POINT_DARK}`;
10
10
 
11
11
  export const fallbackValues = {
12
12
  selectedColor,
@@ -54,6 +54,6 @@ export interface DropdownProps {
54
54
  }
55
55
 
56
56
  export const Dropdown: React.FC<Expand<DropdownProps> &
57
- React.HTMLAttributes<HTMLElement>>;
57
+ Omit<React.HTMLAttributes<HTMLElement>, "onSelect">>;
58
58
 
59
59
  export default Dropdown;
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  import {
3
3
  GHOST_GREY,
4
4
  ERROR_COLOR,
5
- MATISSE_BLUE
5
+ LUCKY_POINT
6
6
  } from "../../../constants/colors";
7
7
  import { FONT_WEIGHT_REGULAR } from "../../../constants/style_constants";
8
8
 
@@ -41,7 +41,7 @@ export const SelectField = styled.select`
41
41
  box-shadow: none;
42
42
 
43
43
  &:focus {
44
- border: 1px solid ${MATISSE_BLUE};
44
+ border: 1px solid ${LUCKY_POINT};
45
45
  }
46
46
  `;
47
47
 
@@ -6,11 +6,14 @@ import {
6
6
  MINESHAFT_GREY,
7
7
  DUSTY_GREY,
8
8
  GREY_CHATEAU,
9
- ATHENS_GREY
9
+ ATHENS_GREY,
10
+ LUCKY_POINT,
11
+ LUCKY_POINT_DARK,
12
+ HAWKES_BLUE
10
13
  } from "../../../constants/colors";
11
14
  import { FONT_WEIGHT_REGULAR } from "../../../constants/style_constants";
12
15
 
13
- const linkColor = { default: `${MATISSE_BLUE}`, disabled: `${MATISSE_BLUE}` };
16
+ const linkColor = { default: `${LUCKY_POINT}`, disabled: `${LUCKY_POINT}` };
14
17
  const formBackgroundColor = {
15
18
  default: `${WHITE}`,
16
19
  disabled: `${WHITE}`,
@@ -33,7 +36,7 @@ const fontWeight = {
33
36
  disabled: `${FONT_WEIGHT_REGULAR}`
34
37
  };
35
38
  const hoverFocusStyles = {
36
- default: `color: #0E506D; outline: none; text-decoration: underline; `,
39
+ default: `color: ${LUCKY_POINT_DARK}; outline: none; text-decoration: underline; `,
37
40
  disabled: `color: #6D717E;`
38
41
  };
39
42
 
@@ -131,7 +131,7 @@ const PeriscopeFailedIcon = () => {
131
131
  <g transform="translate(132 195)">
132
132
  <g transform="translate(288 64)">
133
133
  <path
134
- fill="#15749D"
134
+ fill="#281978"
135
135
  fillOpacity="0.3"
136
136
  d="M302.247 310.746c36.612 0 66.292 6.549 66.292 14.627S338.86 340 302.247 340c-36.613 0-66.292-6.55-66.292-14.627 0-8.078 29.68-14.627 66.292-14.627zM65.904 208.318c6.071 0 11.057 4.655 11.608 10.6a6.983 6.983 0 014.09-1.321c3.885 0 7.034 3.159 7.034 7.055 0 3.818-3.022 6.926-6.798 7.051l-.237.004H49.756c-4.548 0-8.234-3.696-8.234-8.256 0-4.56 3.686-8.257 8.234-8.257 1.848 0 3.549.618 4.923 1.65 1.378-4.919 5.88-8.526 11.225-8.526zm195.894-57.546c16.134 0 29.213 13.097 29.213 29.254 0 16.157-13.08 29.254-29.213 29.254-16.134 0-29.214-13.097-29.214-29.254 0-16.157 13.08-29.254 29.214-29.254zm80.899 0c16.134 0 29.213 13.097 29.213 29.254 0 16.157-13.08 29.254-29.213 29.254-16.135 0-29.214-13.097-29.214-29.254 0-16.157 13.08-29.254 29.214-29.254zm-80.899 22.503c-5.514 0-10.317 3.673-12.173 9.018a3.377 3.377 0 002.077 4.297 3.37 3.37 0 004.29-2.08l.16-.42c1.027-2.474 3.233-4.064 5.646-4.064 2.547 0 4.863 1.771 5.805 4.484l.12.302a3.37 3.37 0 004.17 1.778 3.377 3.377 0 002.077-4.297c-1.855-5.345-6.658-9.018-12.172-9.018zm80.9 0c-5.515 0-10.318 3.673-12.174 9.018a3.377 3.377 0 002.077 4.297 3.37 3.37 0 004.29-2.08l.16-.42c1.027-2.474 3.233-4.064 5.646-4.064 2.547 0 4.863 1.771 5.805 4.484l.12.302a3.37 3.37 0 004.17 1.778 3.377 3.377 0 002.077-4.297c-1.855-5.345-6.659-9.018-12.172-9.018zM519.99 12.426c12.578 0 22.908 9.642 24.048 21.958a14.473 14.473 0 018.471-2.737c8.049 0 14.575 6.544 14.575 14.617 0 7.966-6.358 14.445-14.262 14.612l-.313.003H486.54c-9.42 0-17.057-7.658-17.057-17.106 0-9.446 7.637-17.104 17.057-17.104 3.83 0 7.352 1.281 10.2 3.418 2.855-10.189 12.179-17.66 23.252-17.66zM170.591 0c6.61 0 12.239 4.15 14.476 9.99a6.571 6.571 0 011.792-.252c2.114 0 3.994.996 5.208 2.543a9.767 9.767 0 014.028-.872c5.431 0 9.833 4.414 9.833 9.86 0 5.354-4.254 9.712-9.557 9.858l-.276.004h-42.442c-5.43 0-9.833-4.415-9.833-9.861 0-5.447 4.403-9.861 9.833-9.861.666 0 1.315.068 1.942.194C157.345 4.93 163.386 0 170.59 0z"
137
137
  ></path>
@@ -154,7 +154,7 @@ const PeriscopeFailedIcon = () => {
154
154
  filter="url(#periscope-failed-filter-2)"
155
155
  xlinkHref="#periscope-failed-path-1"
156
156
  ></use>
157
- <use fill="#15749D" xlinkHref="#periscope-failed-path-1"></use>
157
+ <use fill="#281978" xlinkHref="#periscope-failed-path-1"></use>
158
158
  </g>
159
159
  <g transform="translate(0 96.764)">
160
160
  <g>
@@ -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;
@@ -23,4 +23,4 @@ export interface CollapsibleSectionProps {
23
23
  }
24
24
 
25
25
  export const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
26
- React.HTMLAttributes<HTMLElement>>;
26
+ Omit<React.HTMLAttributes<HTMLElement>, "title">>; // ommitting title prop to avoid conflicts with component's title prop
@@ -65,6 +65,7 @@ export const ROYAL_BLUE_VIVID: Color;
65
65
  export const ASTRAL_BLUE: Color;
66
66
  export const SAPPHIRE_BLUE: Color;
67
67
  export const PEACOCK_BLUE: Color;
68
+ export const HAWKES_BLUE: Color;
68
69
 
69
70
  // GREEN
70
71
  export const FOREST_GREEN: Color;
@@ -96,6 +97,9 @@ export const FANTASY_RED: Color;
96
97
  export const COSMOS_RED: Color;
97
98
  export const BLUSH_RED: Color;
98
99
 
100
+ // PURPLE
101
+ export const LUCKY_POINT: Color;
102
+
99
103
  export const ERROR_COLOR: Color;
100
104
  export const ERROR_BACKGROUND_COLOR: Color;
101
105
 
@@ -5,6 +5,7 @@ export const BORDER_RADIUS = {
5
5
  };
6
6
  export const BORDER_THIN = "1px";
7
7
  export const FONT_SIZE = {
8
+ XXS: "0.625rem", // 10px
8
9
  XS: "0.750rem", // 12px
9
10
  SM: "0.875rem", // 14px
10
11
  MD: "1.000rem", // 16px
@@ -31,7 +31,7 @@ export const AlertInfoIcon = () => (
31
31
  </mask>
32
32
  <use
33
33
  id="background-2"
34
- fill="#15749d"
34
+ fill="#281978"
35
35
  fillRule="nonzero"
36
36
  xlinkHref="#path-1"
37
37
  ></use>
Binary file