@thecb/components 10.2.4-beta.7 → 10.2.4-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.2.4-beta.7",
3
+ "version": "10.2.4-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,6 +13,7 @@ const variants = {
13
13
  ghost: "ghost",
14
14
  smallGhost: "smallGhost",
15
15
  danger: "danger",
16
+ disabled: "disabled",
16
17
  None: undefined
17
18
  };
18
19
  const defaultValue = "primary";
@@ -3,9 +3,11 @@ import {
3
3
  TRANSPARENT,
4
4
  SAPPHIRE_BLUE,
5
5
  PEACOCK_BLUE,
6
+ MANATEE_GREY,
6
7
  MATISSE_BLUE,
7
8
  RASPBERRY,
8
- ERROR_COLOR
9
+ ERROR_COLOR,
10
+ GRECIAN_GREY
9
11
  } from "../../../constants/colors";
10
12
 
11
13
  const padding = {
@@ -20,7 +22,9 @@ const padding = {
20
22
  danger: "0.75rem 1.5rem",
21
23
  dangerSecondary: "0.75rem 1.5rem",
22
24
  whiteSecondary: "0.75rem 2rem",
23
- whitePrimary: "1.125rem 0.75rem"
25
+ whitePrimary: "1.125rem 0.75rem",
26
+ disabled: "0.75rem 1.5rem",
27
+ smallDisabled: "0.75rem 1rem"
24
28
  };
25
29
 
26
30
  const color = {
@@ -35,7 +39,9 @@ const color = {
35
39
  danger: WHITE,
36
40
  dangerSecondary: ERROR_COLOR,
37
41
  whiteSecondary: WHITE,
38
- whitePrimary: WHITE
42
+ whitePrimary: WHITE,
43
+ disabled: MANATEE_GREY,
44
+ smallDisabled: MANATEE_GREY
39
45
  };
40
46
 
41
47
  const fontSizeVariant = {
@@ -50,7 +56,9 @@ const fontSizeVariant = {
50
56
  danger: "pS",
51
57
  dangerSecondary: "pS",
52
58
  whiteSecondary: "pS",
53
- whitePrimary: "pS"
59
+ whitePrimary: "pS",
60
+ disabled: "pS",
61
+ smallDisabled: "pS"
54
62
  };
55
63
 
56
64
  const fontWeight = {
@@ -65,7 +73,9 @@ const fontWeight = {
65
73
  danger: "600",
66
74
  dangerSecondary: "600",
67
75
  whiteSecondary: "600",
68
- whitePrimary: "600"
76
+ whitePrimary: "600",
77
+ disabled: "600",
78
+ smallDisabled: "600"
69
79
  };
70
80
 
71
81
  const height = {
@@ -80,7 +90,9 @@ const height = {
80
90
  danger: "3rem",
81
91
  dangerSecondary: "3rem",
82
92
  whiteSecondary: "3rem",
83
- whitePrimary: "auto"
93
+ whitePrimary: "auto",
94
+ disabled: "3rem",
95
+ smallDisabled: "2.5rem"
84
96
  };
85
97
 
86
98
  const minWidth = {
@@ -95,7 +107,9 @@ const minWidth = {
95
107
  danger: "130px",
96
108
  dangerSecondary: "157px",
97
109
  whiteSecondary: "160px",
98
- whitePrimary: "130px"
110
+ whitePrimary: "130px",
111
+ disabled: "130px",
112
+ smallDisabled: "100px"
99
113
  };
100
114
 
101
115
  const backgroundColor = {
@@ -110,7 +124,9 @@ const backgroundColor = {
110
124
  danger: RASPBERRY,
111
125
  dangerSecondary: TRANSPARENT,
112
126
  whiteSecondary: TRANSPARENT,
113
- whitePrimary: TRANSPARENT
127
+ whitePrimary: TRANSPARENT,
128
+ disabled: GRECIAN_GREY,
129
+ smallDisabled: GRECIAN_GREY
114
130
  };
115
131
 
116
132
  const border = {
@@ -125,7 +141,9 @@ const border = {
125
141
  danger: "2px solid " + RASPBERRY,
126
142
  dangerSecondary: "2px solid " + ERROR_COLOR,
127
143
  whiteSecondary: "2px solid " + WHITE,
128
- whitePrimary: "2px solid " + TRANSPARENT
144
+ whitePrimary: "2px solid " + TRANSPARENT,
145
+ disabled: "2px solid " + MANATEE_GREY,
146
+ smallDisabled: "2px solid " + MANATEE_GREY
129
147
  };
130
148
 
131
149
  const hoverBackgroundColor = {
@@ -140,7 +158,9 @@ const hoverBackgroundColor = {
140
158
  danger: "#BA002C",
141
159
  dangerSecondary: "#FAE7EE",
142
160
  whiteSecondary: TRANSPARENT,
143
- whitePrimary: TRANSPARENT
161
+ whitePrimary: TRANSPARENT,
162
+ disabled: TRANSPARENT,
163
+ smallDisabled: TRANSPARENT
144
164
  };
145
165
 
146
166
  const hoverBorderColor = {
@@ -155,7 +175,9 @@ const hoverBorderColor = {
155
175
  danger: "#BA002C",
156
176
  dangerSecondary: "#B10541",
157
177
  whiteSecondary: "2px solid " + TRANSPARENT,
158
- whitePrimary: "2px solid " + TRANSPARENT
178
+ whitePrimary: "2px solid " + TRANSPARENT,
179
+ disabled: MANATEE_GREY,
180
+ smallDisabled: MANATEE_GREY
159
181
  };
160
182
 
161
183
  const hoverColor = {
@@ -170,7 +192,9 @@ const hoverColor = {
170
192
  danger: WHITE,
171
193
  dangerSecondary: "#B10541",
172
194
  whiteSecondary: WHITE,
173
- whitePrimary: WHITE
195
+ whitePrimary: WHITE,
196
+ disabled: MANATEE_GREY,
197
+ smallDisabled: MANATEE_GREY
174
198
  };
175
199
 
176
200
  const activeBackgroundColor = {
@@ -185,7 +209,9 @@ const activeBackgroundColor = {
185
209
  danger: "#870000",
186
210
  dangerSecondary: "#FAE7EE",
187
211
  whiteSecondary: TRANSPARENT,
188
- whitePrimary: TRANSPARENT
212
+ whitePrimary: TRANSPARENT,
213
+ disabled: TRANSPARENT,
214
+ smallDisabled: TRANSPARENT
189
215
  };
190
216
 
191
217
  const activeBorderColor = {
@@ -200,7 +226,9 @@ const activeBorderColor = {
200
226
  danger: "#870000",
201
227
  dangerSecondary: "#910029",
202
228
  whiteSecondary: "2px solid " + TRANSPARENT,
203
- whitePrimary: "2px solid " + TRANSPARENT
229
+ whitePrimary: "2px solid " + TRANSPARENT,
230
+ disabled: TRANSPARENT,
231
+ smallDisabled: TRANSPARENT
204
232
  };
205
233
 
206
234
  const activeColor = {
@@ -215,7 +243,9 @@ const activeColor = {
215
243
  danger: WHITE,
216
244
  dangerSecondary: "#910029",
217
245
  whiteSecondary: WHITE,
218
- whitePrimary: WHITE
246
+ whitePrimary: WHITE,
247
+ disabled: MANATEE_GREY,
248
+ smallDisabled: MANATEE_GREY
219
249
  };
220
250
 
221
251
  export const fallbackValues = {
@@ -3,16 +3,17 @@ import {
3
3
  LINK_WATER,
4
4
  MOON_RAKER,
5
5
  ROYAL_BLUE_VIVID,
6
- MANATEE_GREY
6
+ MANATEE_GREY,
7
+ ATHENS_GREY
7
8
  } from "../../../constants/colors";
8
9
 
9
10
  const activeBackgroundColor = {
10
11
  primary: `${CORNFLOWER_BLUE}`,
11
- disabled: `transparent`
12
+ disabled: `${ATHENS_GREY}`
12
13
  };
13
14
  const backgroundColor = {
14
15
  primary: `${LINK_WATER}`,
15
- disabled: `transparent`
16
+ disabled: `${ATHENS_GREY}`
16
17
  };
17
18
  const borderColor = {
18
19
  primary: `${MOON_RAKER}`,
@@ -24,8 +25,8 @@ const color = {
24
25
  };
25
26
 
26
27
  export const fallbackValues = {
27
- activeBackgroundColor: activeBackgroundColor,
28
- backgroundColor: backgroundColor,
29
- borderColor: borderColor,
30
- color: color
28
+ activeBackgroundColor,
29
+ backgroundColor,
30
+ borderColor,
31
+ color
31
32
  };