@thecb/components 11.6.4 → 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/dist/index.cjs.js +54 -53
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.esm.js +54 -53
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.theme.js +5 -5
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +40 -38
- package/src/components/atoms/dropdown/Dropdown.theme.js +6 -6
- package/src/components/atoms/form-select/FormSelect.styled.js +2 -2
- package/src/components/atoms/form-select/FormSelect.theme.js +6 -3
- package/src/components/atoms/icons/PeriscopeFailedIcon.js +2 -2
- package/src/constants/colors.d.ts +4 -0
- package/src/deprecated/icons/AlertInfoIcon.js +1 -1
- package/src/components/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -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: `${
|
|
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: `${
|
|
30
|
+
info: `${LUCKY_POINT}`,
|
|
31
31
|
warn: `${ZEST_ORANGE}`,
|
|
32
32
|
error: `${RAZZMATAZZ_RED}`,
|
|
33
33
|
success: `${EMERALD_GREEN}`
|
|
@@ -7,11 +7,13 @@ const {
|
|
|
7
7
|
SAPPHIRE_BLUE,
|
|
8
8
|
PEACOCK_BLUE,
|
|
9
9
|
MANATEE_GREY,
|
|
10
|
-
|
|
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:
|
|
90
|
-
back:
|
|
91
|
+
secondary: LUCKY_POINT,
|
|
92
|
+
back: LUCKY_POINT,
|
|
91
93
|
smallPrimary: WHITE,
|
|
92
|
-
smallSecondary:
|
|
93
|
-
smallGhost:
|
|
94
|
-
ghost:
|
|
95
|
-
tertiary:
|
|
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:
|
|
192
|
+
primary: LUCKY_POINT,
|
|
191
193
|
secondary: TRANSPARENT,
|
|
192
194
|
back: TRANSPARENT,
|
|
193
|
-
smallPrimary:
|
|
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 " +
|
|
208
|
-
secondary: "2px solid " +
|
|
209
|
-
back: "2px solid " +
|
|
210
|
-
smallPrimary: "2px solid " +
|
|
211
|
-
smallSecondary: "2px solid " +
|
|
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:
|
|
225
|
-
secondary:
|
|
226
|
+
primary: LUCKY_POINT_DARK,
|
|
227
|
+
secondary: HAWKES_BLUE,
|
|
226
228
|
back: TRANSPARENT,
|
|
227
|
-
smallPrimary:
|
|
228
|
-
smallSecondary:
|
|
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:
|
|
242
|
-
secondary:
|
|
243
|
+
primary: LUCKY_POINT_DARK,
|
|
244
|
+
secondary: LUCKY_POINT,
|
|
243
245
|
back: "#DCEAF1",
|
|
244
|
-
smallPrimary:
|
|
245
|
-
smallSecondary:
|
|
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:
|
|
260
|
-
back:
|
|
261
|
+
secondary: LUCKY_POINT,
|
|
262
|
+
back: LUCKY_POINT,
|
|
261
263
|
smallPrimary: WHITE,
|
|
262
|
-
smallSecondary:
|
|
263
|
-
smallGhost:
|
|
264
|
-
ghost:
|
|
265
|
-
tertiary:
|
|
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:
|
|
276
|
-
secondary: "
|
|
277
|
+
primary: LUCKY_POINT_DARK,
|
|
278
|
+
secondary: adjustHexColor(HAWKES_BLUE, 10, "darken"),
|
|
277
279
|
back: TRANSPARENT,
|
|
278
|
-
smallPrimary:
|
|
279
|
-
smallSecondary: "
|
|
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:
|
|
293
|
-
secondary:
|
|
294
|
+
primary: adjustHexColor(LUCKY_POINT_DARK, 10, "darken"),
|
|
295
|
+
secondary: LUCKY_POINT,
|
|
294
296
|
back: PEACOCK_BLUE,
|
|
295
|
-
smallPrimary:
|
|
296
|
-
smallSecondary:
|
|
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:
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
HAWKES_BLUE,
|
|
3
|
+
LUCKY_POINT,
|
|
4
|
+
LUCKY_POINT_DARK
|
|
5
5
|
} from "../../../constants/colors";
|
|
6
6
|
|
|
7
|
-
const selectedColor = `${
|
|
8
|
-
const hoverColor = `${
|
|
9
|
-
const focusColor = `${
|
|
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,
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import {
|
|
3
3
|
GHOST_GREY,
|
|
4
4
|
ERROR_COLOR,
|
|
5
|
-
|
|
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 ${
|
|
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: `${
|
|
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:
|
|
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="#
|
|
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="#
|
|
157
|
+
<use fill="#281978" xlinkHref="#periscope-failed-path-1"></use>
|
|
158
158
|
</g>
|
|
159
159
|
<g transform="translate(0 96.764)">
|
|
160
160
|
<g>
|
|
@@ -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
|
|
package/src/components/.DS_Store
DELETED
|
Binary file
|