@onewelcome/react-lib-components 1.6.0 → 1.8.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.
Files changed (53) hide show
  1. package/README.md +4 -4
  2. package/dist/Form/FileUpload/FileItem/FileItem.d.ts +17 -0
  3. package/dist/Form/FileUpload/FileUpload.d.ts +26 -0
  4. package/dist/Icon/Icon.d.ts +4 -1
  5. package/dist/ProgressBar/ProgressBar.d.ts +2 -1
  6. package/dist/Typography/Typography.d.ts +1 -1
  7. package/dist/_BaseStyling_/BaseStyling.d.ts +23 -0
  8. package/dist/hooks/useUploadFile.d.ts +22 -0
  9. package/dist/react-lib-components.cjs.development.js +130 -98
  10. package/dist/react-lib-components.cjs.development.js.map +1 -1
  11. package/dist/react-lib-components.cjs.production.min.js +1 -1
  12. package/dist/react-lib-components.cjs.production.min.js.map +1 -1
  13. package/dist/react-lib-components.esm.js +130 -98
  14. package/dist/react-lib-components.esm.js.map +1 -1
  15. package/dist/util/helper.d.ts +7 -0
  16. package/package.json +24 -21
  17. package/src/Breadcrumbs/Breadcrumbs.module.scss +2 -2
  18. package/src/Button/Button.module.scss +14 -2
  19. package/src/ContextMenu/ContextMenuItem.module.scss +1 -0
  20. package/src/DataGrid/DataGridHeader/DataGridHeader.module.scss +1 -1
  21. package/src/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +1 -1
  22. package/src/Form/Fieldset/Fieldset.module.scss +8 -1
  23. package/src/Form/FileUpload/FileItem/FileItem.modules.scss +75 -0
  24. package/src/Form/FileUpload/FileItem/FileItem.test.tsx +103 -0
  25. package/src/Form/FileUpload/FileItem/FileItem.tsx +141 -0
  26. package/src/Form/FileUpload/FileUpload.module.scss +106 -0
  27. package/src/Form/FileUpload/FileUpload.test.tsx +374 -0
  28. package/src/Form/FileUpload/FileUpload.tsx +251 -0
  29. package/src/Form/Input/Input.module.scss +9 -3
  30. package/src/Form/Select/Select.module.scss +26 -3
  31. package/src/Form/Wrapper/InputWrapper/InputWrapper.tsx +3 -1
  32. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss +9 -1
  33. package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +11 -2
  34. package/src/Icon/Icon.module.scss +12 -0
  35. package/src/Icon/Icon.tsx +4 -1
  36. package/src/Link/Link.module.scss +1 -1
  37. package/src/Notifications/Banner/Banner.module.scss +2 -2
  38. package/src/Pagination/Pagination.module.scss +1 -0
  39. package/src/ProgressBar/ProgressBar.module.scss +11 -9
  40. package/src/ProgressBar/ProgressBar.test.tsx +21 -0
  41. package/src/ProgressBar/ProgressBar.tsx +7 -2
  42. package/src/Tabs/TabButton.module.scss +3 -3
  43. package/src/Tabs/Tabs.module.scss +1 -0
  44. package/src/Typography/Typography.module.scss +4 -4
  45. package/src/Typography/Typography.tsx +1 -1
  46. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +17 -7
  47. package/src/_BaseStyling_/BaseStyling.tsx +73 -27
  48. package/src/hooks/useUploadFile.test.ts +211 -0
  49. package/src/hooks/useUploadFile.tsx +136 -0
  50. package/src/mixins.module.scss +26 -7
  51. package/src/util/helper.test.tsx +188 -16
  52. package/src/util/helper.tsx +38 -0
  53. package/src/variables.scss +18 -0
@@ -25,6 +25,7 @@ import { Input, Type, Props as InputProps } from "../../Input/Input";
25
25
  import classes from "./InputWrapper.module.scss";
26
26
  import { Wrapper, WrapperProps } from "../Wrapper/Wrapper";
27
27
  import { useWrapper } from "../../../hooks/useWrapper";
28
+ import { remToPx } from "../../../util/helper";
28
29
 
29
30
  interface PartialInputProps extends Partial<InputProps> {}
30
31
 
@@ -95,6 +96,7 @@ const InputWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
95
96
  const { prefix, suffix } = inputProps || {};
96
97
  const input = useRef<HTMLInputElement>(null);
97
98
  const hasValueOrActiveFloatingLabel = !!value || floatingLabelActive;
99
+ const helperIndent = window.innerWidth >= remToPx(30) ? remToPx(1.25) : remToPx(1);
98
100
  const { labelOffset } = useLabelOffset(
99
101
  (inputProps && (inputProps.ref as React.RefObject<HTMLInputElement>)) || input,
100
102
  floatingLabelActive,
@@ -130,7 +132,7 @@ const InputWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
130
132
  ...helperProps,
131
133
  className: `${classes["input-wrapper-helper"]} ${helperProps?.className ?? ""} `
132
134
  }}
133
- helperIndent={20}
135
+ helperIndent={helperIndent}
134
136
  disabled={disabled}
135
137
  >
136
138
  <Input
@@ -14,6 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ @use "src/variables";
18
+
17
19
  .select-label {
18
20
  left: calc(
19
21
  1.25rem + 2px
@@ -22,9 +24,15 @@
22
24
 
23
25
  .select-helper-text {
24
26
  margin-top: 0.25rem;
25
- margin-left: 1.25rem;
27
+ margin-left: variables.$form-element-horizontal-padding-mobile;
26
28
  }
27
29
 
28
30
  .floating-label-active [data-display] {
29
31
  top: calc(50% + 0.5rem);
30
32
  }
33
+
34
+ @media only screen and (min-width: 30em) {
35
+ .select-helper-text {
36
+ margin-left: variables.$form-element-horizontal-padding-desktop;
37
+ }
38
+ }
@@ -14,7 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- @use "../../../mixins.module.scss";
17
+ @use "src/mixins.module";
18
+ @use "src/variables";
18
19
 
19
20
  .floating-wrapper {
20
21
  position: relative;
@@ -25,7 +26,7 @@
25
26
  position: absolute;
26
27
  z-index: 2;
27
28
  top: 1.3125rem;
28
- left: 1.25rem;
29
+ left: variables.$form-element-horizontal-padding-mobile;
29
30
  transform-origin: left top;
30
31
  @include mixins.transition(all, 0.2s, ease-in-out);
31
32
  pointer-events: none;
@@ -56,3 +57,11 @@
56
57
  content: " *";
57
58
  }
58
59
  }
60
+
61
+ @media only screen and (min-width: 30em) {
62
+ .floating-wrapper {
63
+ .floating-label {
64
+ left: variables.$form-element-horizontal-padding-desktop;
65
+ }
66
+ }
67
+ }
@@ -45,6 +45,18 @@
45
45
  font-size: 0.875rem;
46
46
  }
47
47
 
48
+ .icon-file-outline:before {
49
+ content: "\e941";
50
+ @include fontProperties();
51
+ }
52
+ .icon-file-upload-outline:before {
53
+ content: "\e942";
54
+ @include fontProperties();
55
+ }
56
+ .icon-file-download-outline:before {
57
+ content: "\e943";
58
+ @include fontProperties();
59
+ }
48
60
  .icon-image:before {
49
61
  content: "\e900";
50
62
  @include fontProperties();
package/src/Icon/Icon.tsx CHANGED
@@ -81,7 +81,10 @@ export enum Icons {
81
81
  TriangleRight = "triangle-right",
82
82
  TriangleUp = "triangle-up",
83
83
  Undo = "undo",
84
- Warning = "warning"
84
+ Warning = "warning",
85
+ FileOutline = "file-outline",
86
+ FileUpload = "file-upload-outline",
87
+ FileDownload = "file-download-outline"
85
88
  }
86
89
 
87
90
  type Tag = "span" | "div" | "i";
@@ -21,7 +21,7 @@
21
21
  font-size: var(--font-size);
22
22
  font-style: normal;
23
23
  font-variant: normal;
24
- line-height: 1.5;
24
+ line-height: var(--default-line-height);
25
25
  font-weight: normal;
26
26
  text-transform: none;
27
27
  letter-spacing: 0;
@@ -18,7 +18,7 @@
18
18
  padding: 1rem 1.25rem;
19
19
  background-color: var(--light);
20
20
  display: flex;
21
- border-width: 1px;
21
+ border-width: var(--banner-border-width);
22
22
  border-style: solid;
23
23
  flex-grow: 0;
24
24
  border-radius: var(--banner-border-radius);
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  &.warning {
57
- border-color: var(--error);
57
+ border-color: var(--warning);
58
58
  .icon {
59
59
  color: var(--warning);
60
60
  }
@@ -17,6 +17,7 @@
17
17
  .pagination-wrapper {
18
18
  font-family: var(--font-family);
19
19
  font-size: var(--font-size);
20
+ line-height: var(--default-line-height);
20
21
  color: var(--greyed-out);
21
22
  display: flex;
22
23
  flex-direction: column;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ @import "../mixins.module.scss";
16
17
 
17
18
  .progress-bar {
18
19
  position: relative;
@@ -30,18 +31,19 @@
30
31
  .bar {
31
32
  position: absolute;
32
33
  height: 0.5rem;
33
- width: 50%;
34
34
  border-radius: 0.25rem;
35
35
  background-color: var(--color-primary);
36
- animation: cubic-bezier(0.23, 0.78, 0.78, 0.23) 1s slide-in infinite;
36
+ &.loading-state {
37
+ width: 50%;
38
+ animation: cubic-bezier(0.23, 0.78, 0.78, 0.23) 1s slide-in infinite;
39
+ @keyframes slide-in {
40
+ 0% {
41
+ left: -50%;
42
+ }
37
43
 
38
- @keyframes slide-in {
39
- 0% {
40
- left: -50%;
41
- }
42
-
43
- 100% {
44
- left: 100%;
44
+ 100% {
45
+ left: 100%;
46
+ }
45
47
  }
46
48
  }
47
49
  }
@@ -56,3 +56,24 @@ describe("ref should work", () => {
56
56
  render(<ExampleComponent propagateRef={refCheck} />, { container });
57
57
  });
58
58
  });
59
+
60
+ describe("ProgressBar should change styles depending on props", () => {
61
+ it("should show a progress when 'completed' prop is provided", () => {
62
+ const { ProgressBarComponent } = createProgressBar(defaultParams => ({
63
+ ...defaultParams,
64
+ completed: 40
65
+ }));
66
+
67
+ const bar = ProgressBarComponent.querySelector(".bar");
68
+ expect(bar).toHaveClass("w-40");
69
+ });
70
+
71
+ it("should show a loading effect when 'completed' prop is not provided", () => {
72
+ const { ProgressBarComponent } = createProgressBar(defaultParams => ({
73
+ ...defaultParams
74
+ }));
75
+
76
+ const bar = ProgressBarComponent.querySelector(".bar");
77
+ expect(bar).toHaveClass("loading-state");
78
+ });
79
+ });
@@ -20,16 +20,21 @@ import classes from "./ProgressBar.module.scss";
20
20
 
21
21
  export interface Props extends Omit<ComponentPropsWithRef<"span">, "children"> {
22
22
  placeholderText: string;
23
+ completed?: number;
23
24
  }
24
25
 
25
26
  const ProgressBarComponent: ForwardRefRenderFunction<HTMLSpanElement, Props> = (
26
- { placeholderText, ...rest }: Props,
27
+ { placeholderText, completed, ...rest }: Props,
27
28
  ref
28
29
  ) => {
29
30
  return (
30
31
  <span {...rest} ref={ref} role="progressbar">
31
32
  <span className={classes["progress-bar"]}>
32
- <span className={classes["bar"]} />
33
+ <span
34
+ className={`${classes["bar"]} ${
35
+ completed ? classes[`w-${5 * Math.round(completed / 5)}`] : classes["loading-state"]
36
+ }`}
37
+ />
33
38
  </span>
34
39
  <Typography className={classes["placeholder"]} spacing={{ marginBottom: 0 }} variant="body">
35
40
  {placeholderText}
@@ -18,7 +18,7 @@
18
18
  border: 0;
19
19
  border-radius: 0;
20
20
  font-size: var(--font-size);
21
- line-height: 1.5;
21
+ line-height: var(--default-line-height);
22
22
  margin: 0;
23
23
  padding: 0.25rem 0 1rem 0;
24
24
  min-height: 2.5rem;
@@ -27,7 +27,7 @@
27
27
  background-color: transparent;
28
28
  white-space: nowrap;
29
29
  position: relative;
30
- font-weight: bold;
30
+ font-weight: normal;
31
31
  color: transparent;
32
32
 
33
33
  &:focus-visible {
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  &.selected {
45
- color: var(--tab-text-color);
45
+ color: var(--color-primary);
46
46
 
47
47
  span {
48
48
  color: transparent;
@@ -43,6 +43,7 @@ $focus-width: 5px;
43
43
 
44
44
  position: absolute;
45
45
  height: var(--tab-active-border-height);
46
+ border-radius: 2px 2px 0 0;
46
47
  background-color: var(--tab-active-border-color);
47
48
 
48
49
  @include mixins.transition($transition-property, 0.2s, ease-in-out);
@@ -37,19 +37,19 @@
37
37
  }
38
38
 
39
39
  &h3 {
40
- @include fontProperties(var(--font-family), var(--font-size-h3), 400, 1.16666);
40
+ @include fontProperties(var(--font-family), var(--font-size-h3), 500, 1.16666);
41
41
  }
42
42
 
43
43
  &h4 {
44
- @include fontProperties(var(--font-family), var(--font-size-h4), 700, 1.2);
44
+ @include fontProperties(var(--font-family), var(--font-size-h4), 500, 1.2);
45
45
  }
46
46
 
47
47
  &body {
48
- @include fontProperties(var(--font-family), var(--font-size), 400, 1.5);
48
+ @include fontProperties(var(--font-family), var(--font-size), 400, var(--default-line-height));
49
49
  }
50
50
 
51
51
  &body-bold {
52
- @include fontProperties(var(--font-family), var(--font-size), 700, 1.5);
52
+ @include fontProperties(var(--font-family), var(--font-size), 700, var(--default-line-height));
53
53
  }
54
54
 
55
55
  &sub-text {
@@ -28,7 +28,7 @@ export const validVariants = [
28
28
  "sub-text",
29
29
  "code"
30
30
  ] as const;
31
- export type Variant = typeof validVariants[number];
31
+ export type Variant = (typeof validVariants)[number];
32
32
 
33
33
  type Tags =
34
34
  | "h1"
@@ -46,8 +46,8 @@
46
46
  &:disabled {
47
47
  .number-wrapper {
48
48
  .number {
49
- border: 2px solid var(--greyed-out);
50
- color: var(--greyed-out);
49
+ border: 2px solid var(--disabled);
50
+ color: var(--disabled);
51
51
  }
52
52
  }
53
53
 
@@ -117,6 +117,10 @@
117
117
  font-weight: 700;
118
118
  color: var(--color-primary);
119
119
  }
120
+
121
+ .two-line-text-overflow {
122
+ display: unset;
123
+ }
120
124
  }
121
125
 
122
126
  //Future state for clickable elements - future state is a default one
@@ -165,17 +169,17 @@
165
169
  .number {
166
170
  font-family: var(--font-family);
167
171
  font-size: 1rem;
168
- font-weight: bold;
172
+ font-weight: normal;
169
173
  display: flex;
170
174
  align-items: center;
171
175
  justify-content: center;
172
- border: 2px solid var(--greyed-out);
176
+ border: 2px solid var(--wizard-step-indicator-future-color);
173
177
  border-radius: 50%;
174
178
  min-width: 1.5rem;
175
179
  min-height: 1.5rem;
176
180
  width: 1.5rem;
177
181
  height: 1.5rem;
178
- color: var(--greyed-out);
182
+ color: var(--wizard-step-indicator-future-color);
179
183
  line-height: 1.5rem;
180
184
  background-color: var(--light);
181
185
  box-sizing: content-box;
@@ -183,7 +187,7 @@
183
187
 
184
188
  .two-line-text-overflow {
185
189
  max-height: 2rem;
186
- display: -webkit-box;
190
+ display: none;
187
191
  -webkit-line-clamp: 2;
188
192
  -webkit-box-orient: vertical;
189
193
  overflow: hidden;
@@ -195,10 +199,16 @@
195
199
  font-size: 0.75rem;
196
200
  line-height: 1rem;
197
201
  overflow: hidden;
198
- color: var(--greyed-out);
202
+ color: var(--default);
199
203
  text-align: center;
200
204
  }
201
205
 
202
206
  .checkmark {
203
207
  font-size: 0.875rem;
204
208
  }
209
+
210
+ @media only screen and (min-width: 30em) {
211
+ .two-line-text-overflow {
212
+ display: unset;
213
+ }
214
+ }
@@ -26,6 +26,25 @@ interface CSSProperties {
26
26
  colorPrimary?: string;
27
27
  colorSecondary?: string;
28
28
  colorTertiary?: string;
29
+ lightPink?: string;
30
+ vividViolet?: string;
31
+ colorPrimary300?: string;
32
+ colorPrimary500?: string;
33
+ colorPrimary600?: string;
34
+ colorPrimary700?: string;
35
+ colorPrimary900?: string;
36
+ colorBlueGrey100?: string;
37
+ colorBlueGrey200?: string;
38
+ colorBlueGrey400?: string;
39
+ colorBlueGrey25?: string;
40
+ colorBlueGrey500?: string;
41
+ colorBlueGrey700?: string;
42
+ colorBlueGrey900?: string;
43
+ colorGreen500?: string;
44
+ colorLightBlue500?: string;
45
+ colorLightBlue600?: string;
46
+ colorOrange500?: string;
47
+ colorRed500?: string;
29
48
  defaultLineHeight?: string;
30
49
  buttonBorderRadius?: string;
31
50
  buttonBorderWidth?: string;
@@ -39,6 +58,8 @@ interface CSSProperties {
39
58
  inputBorderWidthFocus?: string;
40
59
  inputBorderStyle?: string;
41
60
  inputBackgroundColor?: string;
61
+ dragBackgroundColor?: string;
62
+ dragBorderStyle?: string;
42
63
  modalShadowColor?: string;
43
64
  modalBackgroundColor?: string;
44
65
  modalHeaderBackgroundColor?: string;
@@ -50,6 +71,7 @@ interface CSSProperties {
50
71
  snackbarErrorBackgroundColor?: string;
51
72
  snackbarBorderRadius?: string;
52
73
  bannerBorderRadius?: string;
74
+ bannerBorderWidth?: string;
53
75
  dataGridRowBackgroundColor?: string;
54
76
  dataGridRowHoverBackgroundColor?: string;
55
77
  tabsBackgroundColor?: string;
@@ -59,6 +81,7 @@ interface CSSProperties {
59
81
  tablistBorderStyle?: string;
60
82
  tablistBorderColor?: string;
61
83
  tabTextColor?: string;
84
+ wizardStepIndicatorFutureColor?: string;
62
85
  default?: string;
63
86
  success?: string;
64
87
  error?: string;
@@ -87,55 +110,78 @@ export interface Props extends HTMLAttributes<HTMLDivElement> {
87
110
 
88
111
  export const BaseStyling = ({ children, properties = {} }: Props) => {
89
112
  const defaultProperties: CSSProperties = {
90
- colorFocus: "var(--color-primary)",
91
- colorPrimary: "#9e006b",
92
- colorSecondary: "#003b5e",
93
- colorTertiary: "#ff1e4e",
94
- defaultLineHeight: "26px",
95
- buttonBorderRadius: "20px",
113
+ colorPrimary300: "#6871BF",
114
+ colorPrimary500: "#041295",
115
+ colorPrimary600: "#030F77",
116
+ colorPrimary700: "#020B59",
117
+ colorPrimary900: "#01041E",
118
+ colorBlueGrey25: "#F7F7F9",
119
+ colorBlueGrey100: "#DEDEE6",
120
+ colorBlueGrey200: "#BCBECE",
121
+ colorBlueGrey400: "#797D9C",
122
+ colorBlueGrey500: "#5D607E",
123
+ colorBlueGrey700: "#383A4B",
124
+ colorBlueGrey900: "#131319",
125
+ colorGreen500: "#178244",
126
+ colorLightBlue500: "#00BCDD",
127
+ colorLightBlue600: "#0096B1",
128
+ colorOrange500: "#E07900",
129
+ colorRed500: "#E01E00",
130
+ colorFocus: "var(--color-primary300)",
131
+ colorPrimary: "var(--color-primary500)",
132
+ colorSecondary: "var(--color-blue-grey700)",
133
+ colorTertiary: "var(--color-light-blue600)",
134
+ lightPink: "#9E006B1A",
135
+ vividViolet: "#9E006B",
136
+ defaultLineHeight: "1.5",
137
+ buttonBorderRadius: "2px",
96
138
  buttonBorderWidth: "2px",
97
139
  buttonFontSize: "1rem",
98
140
  buttonBorderStyle: "solid",
99
141
  buttonFillTextColor: "var(--light)",
100
142
  buttonFillHoverBackgroundColor: "var(--light)",
101
143
  buttonOutlineHoverTextColor: "var(--light)",
102
- inputBorderRadius: "8px",
144
+ inputBorderRadius: "2px",
103
145
  inputBorderWidth: "1px",
104
146
  inputBorderWidthFocus: "2px",
105
147
  inputBorderStyle: "solid",
106
148
  inputBackgroundColor: "var(--light)",
149
+ dragBackgroundColor: "#1313191A",
150
+ dragBorderStyle: "dashed",
107
151
  modalShadowColor: "rgba(0, 0, 0, 0.16)",
108
- modalBackgroundColor: "#f5f8f8",
152
+ modalBackgroundColor: "var(--color-blue-grey25)",
109
153
  modalHeaderBackgroundColor: "var(--light)",
110
154
  skeletonBackgroundColor: "var(--disabled)",
111
155
  skeletonAnimationColorRgb: "255, 255, 255",
112
156
  snackbarTextColor: "var(--light)",
113
- snackbarInfoBackgroundColor: "#003b5e",
114
- snackbarSuccessBackgroundColor: "#008a28",
115
- snackbarErrorBackgroundColor: "#d9291c",
116
- snackbarBorderRadius: "8px",
117
- bannerBorderRadius: "8px",
157
+ snackbarInfoBackgroundColor: "var(--color-primary500)",
158
+ snackbarSuccessBackgroundColor: "var(--color-green500)",
159
+ snackbarErrorBackgroundColor: "var(--color-red500)",
160
+ snackbarBorderRadius: "2px",
161
+ bannerBorderRadius: "2px",
162
+ bannerBorderWidth: "0 0 0 4px",
118
163
  dataGridRowBackgroundColor: "transparent",
119
- dataGridRowHoverBackgroundColor: "#f5e6f0",
164
+ dataGridRowHoverBackgroundColor: "var(--color-blue-grey25)",
120
165
  tabsBackgroundColor: "var(--light)",
121
- tabActiveBorderHeight: "2px",
166
+ tabActiveBorderHeight: "4px",
122
167
  tabActiveBorderColor: "var(--color-primary)",
123
168
  tablistBorderWidth: "1px",
124
169
  tablistBorderStyle: "solid",
125
- tablistBorderColor: "#C3C3C7",
126
- tabTextColor: "#0f0f1e",
127
- default: "#0f0f1e",
128
- success: "#008a28",
129
- error: "#d9291c",
130
- info: "var(--color-secondary)",
131
- disabled: "#e9e9eb",
132
- greyedOut: "#6f6f76",
133
- lightGreyBorder: "#e9e9eb",
134
- warning: "#ff6105",
170
+ tablistBorderColor: "var(--color-blue-grey100)",
171
+ tabTextColor: "var(--color-blue-grey900)",
172
+ wizardStepIndicatorFutureColor: "var(--color-blue-grey200)",
173
+ default: "var(--color-blue-grey900)",
174
+ success: "var(--color-green500)",
175
+ error: "var(--color-red500)",
176
+ info: "var(--color-primary500)",
177
+ disabled: "var(--color-blue-grey100)",
178
+ greyedOut: "var(--color-blue-grey500)",
179
+ lightGreyBorder: "var(--color-blue-grey100)",
180
+ warning: "var(--color-orange500)",
135
181
  light: "#FFF",
136
182
  grey: "#c3c3c7",
137
- fontFamily: "'Red Hat Display', sans-serif",
138
- fontFamilyCode: "'Red Hat Mono', monospace",
183
+ fontFamily: "Roboto, sans-serif",
184
+ fontFamilyCode: "'Roboto Mono', monospace",
139
185
  fontSize: "1rem",
140
186
  fontSizeH1: "2.5rem",
141
187
  fontSizeH2: "1.625rem",