@groupeactual/design-tokens 1.5.2 → 1.6.0-beta.10

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 (74) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/css/accordionCss.d.ts +2 -1
  4. package/dist/cjs/types/css/bannerNotificationCss.d.ts +2 -1
  5. package/dist/cjs/types/css/breadcrumbsCss.d.ts +2 -1
  6. package/dist/cjs/types/css/buttonCss.d.ts +2 -1
  7. package/dist/cjs/types/css/chipCss.d.ts +2 -1
  8. package/dist/cjs/types/css/datatable/datatableCss.d.ts +2 -1
  9. package/dist/cjs/types/css/form/autoCompleteCss.d.ts +2 -1
  10. package/dist/cjs/types/css/form/checkboxCss.d.ts +2 -1
  11. package/dist/cjs/types/css/form/checkboxGroupCss.d.ts +2 -1
  12. package/dist/cjs/types/css/form/datePickerCss.d.ts +2 -1
  13. package/dist/cjs/types/css/form/radioCss.d.ts +2 -1
  14. package/dist/cjs/types/css/form/selectCss.d.ts +2 -1
  15. package/dist/cjs/types/css/form/snackbarCss.d.ts +2 -1
  16. package/dist/cjs/types/css/form/textFieldCss.d.ts +2 -1
  17. package/dist/cjs/types/css/iconButtonCss.d.ts +2 -1
  18. package/dist/cjs/types/css/linkCss.d.ts +2 -1
  19. package/dist/cjs/types/css/paginationCss.d.ts +2 -1
  20. package/dist/cjs/types/css/switchCss.d.ts +2 -1
  21. package/dist/cjs/types/css/tooltipCss.d.ts +1 -1
  22. package/dist/cjs/types/helpers/theme.d.ts +1 -1
  23. package/dist/cjs/types/interfaces/theme.d.ts +1 -0
  24. package/dist/cjs/types/useMaterialThemeTokens.d.ts +2 -2
  25. package/dist/es/index.d.ts +22 -21
  26. package/dist/es/index.mjs +1 -1
  27. package/dist/es/index.mjs.map +1 -1
  28. package/dist/es/types/css/accordionCss.d.ts +2 -1
  29. package/dist/es/types/css/bannerNotificationCss.d.ts +2 -1
  30. package/dist/es/types/css/breadcrumbsCss.d.ts +2 -1
  31. package/dist/es/types/css/buttonCss.d.ts +2 -1
  32. package/dist/es/types/css/chipCss.d.ts +2 -1
  33. package/dist/es/types/css/datatable/datatableCss.d.ts +2 -1
  34. package/dist/es/types/css/form/autoCompleteCss.d.ts +2 -1
  35. package/dist/es/types/css/form/checkboxCss.d.ts +2 -1
  36. package/dist/es/types/css/form/checkboxGroupCss.d.ts +2 -1
  37. package/dist/es/types/css/form/datePickerCss.d.ts +2 -1
  38. package/dist/es/types/css/form/radioCss.d.ts +2 -1
  39. package/dist/es/types/css/form/selectCss.d.ts +2 -1
  40. package/dist/es/types/css/form/snackbarCss.d.ts +2 -1
  41. package/dist/es/types/css/form/textFieldCss.d.ts +2 -1
  42. package/dist/es/types/css/iconButtonCss.d.ts +2 -1
  43. package/dist/es/types/css/linkCss.d.ts +2 -1
  44. package/dist/es/types/css/paginationCss.d.ts +2 -1
  45. package/dist/es/types/css/switchCss.d.ts +2 -1
  46. package/dist/es/types/css/tooltipCss.d.ts +1 -1
  47. package/dist/es/types/helpers/theme.d.ts +1 -1
  48. package/dist/es/types/interfaces/theme.d.ts +1 -0
  49. package/dist/es/types/useMaterialThemeTokens.d.ts +2 -2
  50. package/package.json +27 -28
  51. package/src/css/accordionCss.ts +8 -8
  52. package/src/css/bannerNotificationCss.ts +14 -12
  53. package/src/css/breadcrumbsCss.ts +7 -7
  54. package/src/css/buttonCss.ts +4 -4
  55. package/src/css/chipCss.ts +33 -33
  56. package/src/css/datatable/datatableCss.ts +10 -10
  57. package/src/css/form/autoCompleteCss.ts +71 -54
  58. package/src/css/form/checkboxCss.ts +23 -23
  59. package/src/css/form/checkboxGroupCss.ts +13 -13
  60. package/src/css/form/datePickerCss.ts +3 -4
  61. package/src/css/form/radioCss.ts +26 -26
  62. package/src/css/form/selectCss.ts +24 -24
  63. package/src/css/form/snackbarCss.ts +13 -13
  64. package/src/css/form/textFieldCss.ts +7 -7
  65. package/src/css/iconButtonCss.ts +22 -22
  66. package/src/css/linkCss.ts +6 -6
  67. package/src/css/paginationCss.ts +11 -11
  68. package/src/css/switchCss.ts +20 -19
  69. package/src/css/tooltipCss.ts +6 -9
  70. package/src/helpers/theme.ts +18 -16
  71. package/src/interfaces/theme.ts +3 -0
  72. package/src/themes/tokens.ts +3 -3
  73. package/src/useMaterialThemeTokens.ts +31 -31
  74. package/src/useThemeTokens.ts +2 -2
@@ -1,6 +1,6 @@
1
- const AutoCompleteCss = (
2
- muiTokens: Record<string, string | number | any>,
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const AutoCompleteCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '&.MuiFormControl-root': {
6
6
  zIndex: 1,
@@ -9,6 +9,11 @@ const AutoCompleteCss = (
9
9
  height: '44px',
10
10
  padding: 0 + ' !important',
11
11
  },
12
+ '&:hover': {
13
+ '.MuiOutlinedInput-notchedOutline': {
14
+ borderColor: muiTokens.palette.greyDark + ' !important',
15
+ },
16
+ },
12
17
  '.Mui-disabled': {
13
18
  '.MuiOutlinedInput-notchedOutline': {
14
19
  borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
@@ -17,9 +22,6 @@ const AutoCompleteCss = (
17
22
  '.MuiFormLabel-root.Mui-focused': {
18
23
  transform: 'translate(14px, -7px) scale(0.75) !important',
19
24
  },
20
- '.MuiFormLabel-filled': {
21
- transform: 'translate(14px, -7px) scale(0.75) !important',
22
- },
23
25
  '.MuiFormLabel-root.Mui-Input-filled': {
24
26
  transform: 'translate(14px, -7px) scale(0.75) !important',
25
27
  },
@@ -33,16 +35,34 @@ const AutoCompleteCss = (
33
35
  borderWidth: '1px',
34
36
  borderColor: muiTokens.palette.blueClickable + ' !important',
35
37
  },
36
- '&:hover': {
37
- '.MuiOutlinedInput-notchedOutline': {
38
- borderColor: muiTokens.palette.greyDark,
39
- },
40
- },
41
38
  '.MuiOutlinedInput-notchedOutline': {
42
39
  borderColor: muiTokens.palette.greyLightDefaultBorder,
43
40
  borderWidth: '1px !important',
44
41
  fontSize: '16px !important',
45
42
  },
43
+ '&.Mui-success': {
44
+ color: muiTokens.palette.greenSuccess,
45
+ '& .MuiChip-label': {
46
+ color: 'unset',
47
+ },
48
+ '& .clear': {
49
+ '& span': {
50
+ color: muiTokens.palette.blueClickable,
51
+ },
52
+ },
53
+ '& .MuiAutocomplete-popupIndicatorOpen': {
54
+ transform: 'none',
55
+ },
56
+ '& button[title="Close"].MuiAutocomplete-popupIndicator': {
57
+ '& span': {
58
+ position: 'relative',
59
+ transform: 'none',
60
+ },
61
+ },
62
+ '.MuiOutlinedInput-notchedOutline': {
63
+ borderColor: muiTokens.palette.greenSuccess,
64
+ },
65
+ },
46
66
  '&.Mui-disabled': {
47
67
  '.MuiAutocomplete-endAdornment .SelectIcon': {
48
68
  color: `${muiTokens.palette.greyMediumInactive} !important`,
@@ -62,12 +82,6 @@ const AutoCompleteCss = (
62
82
  color: muiTokens.palette.greyDark,
63
83
  },
64
84
  '.MuiInputLabel-root': {
65
- lineHeight: '16px',
66
- fontWeight: '500',
67
- fontSize: '16px',
68
- marginTop: '2px',
69
- transform: 'translate(8px, 16px) scale(1)',
70
- color: muiTokens.palette.greyXDark,
71
85
  '&.Mui-error': {
72
86
  color: `${muiTokens.palette.redError} !important`,
73
87
  },
@@ -140,61 +154,54 @@ const AutoCompleteCss = (
140
154
  },
141
155
  '.Mui-error': {
142
156
  color: muiTokens.palette.redError,
143
- '& fieldset': {
144
- borderColor: muiTokens.palette.redError,
145
- },
146
- },
147
- '.Mui-success': {
148
- color: muiTokens.palette.greenSuccess,
149
- '& fieldset': {
150
- borderColor: muiTokens.palette.greenSuccess,
151
- },
152
157
  '& span': {
153
- color: muiTokens.palette.greenSuccess,
154
- transform: 'none',
155
- },
156
- '& .MuiChip-label': {
157
- color: 'unset',
158
- },
159
- '& .clear': {
160
- '& span': {
161
- color: muiTokens.palette.blueClickable,
162
- },
163
- },
164
- '& .MuiAutocomplete-popupIndicatorOpen': {
165
- transform: 'none',
158
+ color: `${muiTokens.palette.greyDark as string} !important`,
166
159
  },
167
- '& button[title="Close"].MuiAutocomplete-popupIndicator': {
168
- '& span': {
169
- position: 'relative',
170
- transform: 'none',
171
- },
160
+ '& fieldset': {
161
+ borderColor: muiTokens.palette.redError,
172
162
  },
173
163
  },
174
164
  '.labelClassic': {
165
+ minHeight: '20px',
175
166
  '.MuiFormLabel-root': {
176
167
  transform: 'translate(14px, -7px) scale(0.75) !important',
177
168
  },
169
+ '&.Mui-Input-filled': {
170
+ lineHeight: '16px',
171
+ fontWeight: '500',
172
+ fontSize: '16px',
173
+ marginTop: '2px',
174
+ color: muiTokens.palette.greyXDark,
175
+ },
178
176
  },
179
177
  '.labelCustom': {
180
- '& label': {
181
- color: muiTokens.palette.greyDark,
182
- fontSize: '14px',
183
- lineHeight: '18px',
184
- height: '16px',
185
- fontWeight: '400',
186
- marginTop: '-3px',
187
- '&.Mui-focused': {
188
- color: muiTokens.palette.blueClickable,
189
- },
178
+ color: muiTokens.palette.greyDark,
179
+ fontSize: '14px',
180
+ lineHeight: '18px',
181
+ height: '20px',
182
+ fontWeight: '400',
183
+ marginTop: '-3px',
184
+ '&.Mui-Input-filled': {
185
+ lineHeight: '16px',
186
+ fontWeight: '500',
187
+ fontSize: '16px',
188
+ marginTop: '0px',
189
+ marginLeft: '0px',
190
+ color: muiTokens.palette.greyXDark,
190
191
  },
191
192
  '& .MuiInputLabel-shrink': {
192
193
  lineHeight: '16px',
193
194
  fontWeight: '500',
194
195
  fontSize: '16px',
195
196
  marginTop: '2px',
197
+ marginLeft: '0px',
196
198
  color: muiTokens.palette.greyXDark,
197
199
  },
200
+ '&.Mui-focused': {
201
+ marginTop: '0px',
202
+ marginLeft: '0px',
203
+ color: muiTokens.palette.blueClickable,
204
+ },
198
205
  },
199
206
  '.MuiOutlinedInput-input': {
200
207
  fontSize: '14px',
@@ -206,6 +213,7 @@ const AutoCompleteCss = (
206
213
  color: `${muiTokens.palette.greyDark as string}`,
207
214
  '&.Mui-focused': {
208
215
  marginTop: '0px',
216
+ color: `${muiTokens.palette.blueClickable as string}`,
209
217
  },
210
218
  '&.Mui-disabled': {
211
219
  color: muiTokens.palette.greyDark,
@@ -218,6 +226,15 @@ const AutoCompleteCss = (
218
226
  fontSize: '14px',
219
227
  },
220
228
  },
229
+ '.MuiFormLabel-filled': {
230
+ lineHeight: '16px',
231
+ fontWeight: '500',
232
+ fontSize: '16px',
233
+ marginTop: '0px',
234
+ marginLeft: '0px',
235
+ color: muiTokens.palette.greyXDark,
236
+ transform: 'translate(14px, -7px) scale(0.75) !important',
237
+ },
221
238
  },
222
239
  '&.Mui-filled': {
223
240
  '.MuiOutlinedInput-input': {
@@ -1,13 +1,13 @@
1
- const CheckboxCss = (
2
- muiTokens: Record<string, string | number | any>
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const CheckboxCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '&.MuiFormControl-root': {
6
6
  '&.DsCheckbox': {
7
7
  '&.Mui-disabled': {
8
8
  '.MuiFormControlLabel-root': {
9
- cursor: 'auto !important'
10
- }
9
+ cursor: 'auto !important',
10
+ },
11
11
  },
12
12
  '.MuiCheckbox-root': {
13
13
  '::before': {
@@ -18,7 +18,7 @@ const CheckboxCss = (
18
18
  borderRadius: '2px',
19
19
  width: '14px',
20
20
  height: '14px',
21
- backgroundColor: 'white'
21
+ backgroundColor: 'white',
22
22
  },
23
23
  width: '24px',
24
24
  height: '24px',
@@ -31,31 +31,31 @@ const CheckboxCss = (
31
31
  height: '18.67px',
32
32
  path: {
33
33
  width: '14px',
34
- height: '14px'
35
- }
34
+ height: '14px',
35
+ },
36
36
  },
37
37
  '&.Mui-checked': {
38
38
  '.MuiSvgIcon-root': {
39
- color: muiTokens.palette.blueClickable
40
- }
39
+ color: muiTokens.palette.blueClickable,
40
+ },
41
41
  },
42
42
  '&.Mui-disabled': {
43
43
  '::before': {
44
- backgroundColor: muiTokens.palette.greyXLight
44
+ backgroundColor: muiTokens.palette.greyXLight,
45
45
  },
46
46
  '.MuiSvgIcon-root': {
47
47
  color: muiTokens.palette.greyMediumInactive + ' !important',
48
48
  backgroundColor: 'transparent !important',
49
- outlineOffset: '-2px'
50
- }
49
+ outlineOffset: '-2px',
50
+ },
51
51
  },
52
52
  '&:hover': {
53
53
  backgroundColor:
54
54
  muiTokens.palette.blueHoverEquivalence + ' !important',
55
55
  '.MuiSvgIcon-root': {
56
- color: muiTokens.palette.blueHoverClickable + ' !important'
57
- }
58
- }
56
+ color: muiTokens.palette.blueHoverClickable + ' !important',
57
+ },
58
+ },
59
59
  },
60
60
  '.DsCheckbox-label': {
61
61
  fontSize: '14px',
@@ -64,8 +64,8 @@ const CheckboxCss = (
64
64
  fontWeight: 400,
65
65
  '&.Mui-disabled': {
66
66
  color: muiTokens.palette.greyMediumInactive,
67
- fontWeight: 700
68
- }
67
+ fontWeight: 700,
68
+ },
69
69
  },
70
70
  '.MuiTouchRipple-root': {
71
71
  background: 'white',
@@ -74,17 +74,17 @@ const CheckboxCss = (
74
74
  top: '6px',
75
75
  zIndex: 0,
76
76
  left: '6px',
77
- borderRadius: '0px'
78
- }
79
- }
77
+ borderRadius: '0px',
78
+ },
79
+ },
80
80
  },
81
81
  '.MuiFormHelperText-root': {
82
82
  marginTop: '3px',
83
83
  marginLeft: '-6px',
84
84
  fontWeight: '400',
85
85
  fontSize: '11px',
86
- color: muiTokens.palette.greyDark
87
- }
86
+ color: muiTokens.palette.greyDark,
87
+ },
88
88
  };
89
89
  };
90
90
 
@@ -1,6 +1,6 @@
1
- const CheckboxGroupCss = (
2
- muiTokens: Record<string, string | number | any>
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const CheckboxGroupCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  // à garder pour label.css 👇
6
6
  '&.MuiFormControl-root': {
@@ -10,7 +10,7 @@ const CheckboxGroupCss = (
10
10
  fontWeight: '500',
11
11
  fontSize: '13px',
12
12
  lineHeight: '16px',
13
- paddingBottom: '4px'
13
+ paddingBottom: '4px',
14
14
  },
15
15
  // à garder pour label.css ⬆️
16
16
  '.MuiFormHelperText-root': {
@@ -19,22 +19,22 @@ const CheckboxGroupCss = (
19
19
  color: muiTokens.palette.greyDark,
20
20
  fontWeight: '400',
21
21
  fontSize: '11px',
22
- paddingTop: '4px'
23
- }
22
+ paddingTop: '4px',
23
+ },
24
24
  },
25
25
  // à garder pour label.css 👇
26
26
  '&.Mui-disabled': {
27
27
  '.MuiFormLabel-root': {
28
- color: muiTokens.palette.greyDark + ' !important'
29
- }
28
+ color: muiTokens.palette.greyDark + ' !important',
29
+ },
30
30
  },
31
31
  '&.Mui-error': {
32
32
  '.MuiFormLabel-root': {
33
- color: muiTokens.palette.redError + ' !important'
33
+ color: muiTokens.palette.redError + ' !important',
34
34
  },
35
35
  '.MuiFormHelperText-root': {
36
- color: muiTokens.palette.redError + ' !important'
37
- }
36
+ color: muiTokens.palette.redError + ' !important',
37
+ },
38
38
  },
39
39
  // à garder pour label.css qui sera un fichier à faire peut être plus tard ⬆️
40
40
  // l'idée c'est d'avoir un label.css qui reprend ce css pour tous nos composants à label
@@ -42,8 +42,8 @@ const CheckboxGroupCss = (
42
42
  '.MuiBox-root .MuiBox-root svg': {
43
43
  // fix du tooltip uniquement pour checkboxGroup
44
44
  position: 'relative',
45
- bottom: '-2px'
46
- }
45
+ bottom: '-2px',
46
+ },
47
47
  };
48
48
  };
49
49
 
@@ -1,7 +1,6 @@
1
- const DatePickerCss = (
2
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
- muiTokens: Record<string, string | number | any>,
4
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const DatePickerCss = (muiTokens: MuiTokens): Record<string, unknown> => {
5
4
  return {
6
5
  '.MuiInputBase-root': {
7
6
  backgroundColor: muiTokens.palette.white,
@@ -1,10 +1,10 @@
1
- const RadioCss = (
2
- muiTokens: Record<string, string | number | any>
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const RadioCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '&.MuiFormControl-root': {
6
6
  '.MuiSvgIcon-root': {
7
- marginTop: '-2px'
7
+ marginTop: '-2px',
8
8
  },
9
9
  '.MuiRadio-root': {
10
10
  '.MuiSvgIcon-root': {
@@ -12,73 +12,73 @@ const RadioCss = (
12
12
  zIndex: 1,
13
13
  height: '16px',
14
14
  width: '16px',
15
- marginTop: '-2px'
15
+ marginTop: '-2px',
16
16
  },
17
17
  height: '16px',
18
18
  width: '16px',
19
19
  marginRight: '8px',
20
20
  '&:hover': {
21
21
  '.MuiSvgIcon-root': {
22
- color: muiTokens.palette.blueHoverClickable + ' !important'
23
- }
24
- }
22
+ color: muiTokens.palette.blueHoverClickable + ' !important',
23
+ },
24
+ },
25
25
  },
26
26
  '.MuiFormControlLabel-root': {
27
27
  margin: '0px 0px 4px 0px',
28
28
  color: muiTokens.palette.greyXDark,
29
- alignItems: 'self-start'
29
+ alignItems: 'self-start',
30
30
  },
31
31
  '.MuiFormControlLabel-label': {
32
32
  fontWeight: '400',
33
33
  fontSize: '14px',
34
- position: 'relative'
34
+ position: 'relative',
35
35
  },
36
36
  '.MuiButtonBase-root': {
37
37
  color: muiTokens.palette.greyLightDefaultBorder,
38
38
  '&.Mui-checked': {
39
- color: muiTokens.palette.blueClickable
40
- }
39
+ color: muiTokens.palette.blueClickable,
40
+ },
41
41
  },
42
42
  '.MuiFormLabel-root': {
43
43
  color: muiTokens.palette.greyXDark,
44
44
  fontWeight: '500',
45
45
  fontSize: '13px',
46
46
  paddingBottom: '4px',
47
- paddingLeft: '2px'
47
+ paddingLeft: '2px',
48
48
  },
49
49
  '.MuiFormHelperText-root': {
50
50
  margin: '0px',
51
51
  paddingTop: '4px',
52
52
  color: muiTokens.palette.greyDark,
53
- fontSize: '11px'
53
+ fontSize: '11px',
54
54
  },
55
55
  '&.Mui-disabled': {
56
56
  '.MuiFormLabel-root': {
57
- color: muiTokens.palette.greyDark
57
+ color: muiTokens.palette.greyDark,
58
58
  },
59
59
  '.MuiFormControlLabel-label': {
60
60
  color: muiTokens.palette.greyMediumInactive,
61
- fontWeight: '700'
61
+ fontWeight: '700',
62
62
  },
63
63
  '.MuiButtonBase-root': {
64
64
  backgroundColor: muiTokens.palette.greyXLight,
65
65
  color: muiTokens.palette.greyMediumInactive,
66
66
  transform: 'scale(0.889)',
67
67
  '& span': {
68
- transform: 'scale(1.3)'
68
+ transform: 'scale(1.3)',
69
69
  },
70
70
  '&.Mui-checked': {
71
- color: muiTokens.palette.greyMediumInactive
72
- }
73
- }
71
+ color: muiTokens.palette.greyMediumInactive,
72
+ },
73
+ },
74
74
  },
75
75
  '&.Mui-error': {
76
76
  '.MuiFormLabel-root': {
77
- color: muiTokens.palette.redError
77
+ color: muiTokens.palette.redError,
78
78
  },
79
79
  '.MuiFormHelperText-root': {
80
- color: muiTokens.palette.redError + ' !important'
81
- }
80
+ color: muiTokens.palette.redError + ' !important',
81
+ },
82
82
  },
83
83
  '.MuiTouchRipple-root': {
84
84
  background: 'white',
@@ -86,9 +86,9 @@ const RadioCss = (
86
86
  width: '12px',
87
87
  top: '3px',
88
88
  zIndex: 0,
89
- left: '3px'
90
- }
91
- }
89
+ left: '3px',
90
+ },
91
+ },
92
92
  };
93
93
  };
94
94
 
@@ -1,9 +1,23 @@
1
- const SelectCss = (
2
- muiTokens: Record<string, string | number | any>,
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const SelectCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '&.MuiFormControl-root': {
6
6
  zIndex: 1,
7
+ '&:hover': {
8
+ '.clear': {
9
+ visibility: 'visible',
10
+ },
11
+ '.MuiOutlinedInput-notchedOutline': {
12
+ borderColor: muiTokens.palette.greyDark + ' !important',
13
+ },
14
+ },
15
+ '.MuiInputBase-root.Mui-disabled': {
16
+ backgroundColor: muiTokens.palette.greyXLight,
17
+ color: muiTokens.palette.greyDark,
18
+ borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
19
+ WebkitTextFillColor: muiTokens.palette.greyDark,
20
+ },
7
21
  '.MuiInputBase-root': {
8
22
  height: '44px',
9
23
  padding: 0 + ' !important',
@@ -11,9 +25,6 @@ const SelectCss = (
11
25
  '.SelectIcon': {
12
26
  color: muiTokens.palette.blueClickable + ' !important',
13
27
  },
14
- '&.Mui-error': {
15
- '.SelectIcon': { color: muiTokens.palette.redError },
16
- },
17
28
  },
18
29
  '.MuiFormLabel-root.Mui-focused': {
19
30
  transform: 'translate(14px, -7px) scale(0.75) !important',
@@ -61,8 +72,10 @@ const SelectCss = (
61
72
  borderWidth: '1px',
62
73
  borderColor: muiTokens.palette.blueClickable,
63
74
  },
64
- '.Mui-error .MuiOutlinedInput-notchedOutline': {
65
- borderColor: muiTokens.palette.redError + ' !important',
75
+ '&.Mui-error': {
76
+ '.MuiOutlinedInput-notchedOutline': {
77
+ borderColor: muiTokens.palette.redError + ' !important',
78
+ },
66
79
  },
67
80
  '.clear': {
68
81
  visibility: 'hidden',
@@ -71,14 +84,7 @@ const SelectCss = (
71
84
  marginTop: '2px',
72
85
  marginRight: '-8px',
73
86
  },
74
- '&:hover': {
75
- '.clear': {
76
- visibility: 'visible',
77
- },
78
- '.MuiOutlinedInput-notchedOutline': {
79
- borderColor: muiTokens.palette.greyDark,
80
- },
81
- },
87
+
82
88
  '& .MuiSelect-select .notranslate::after': {
83
89
  fontWeight: 400,
84
90
  lineHeight: '18px',
@@ -91,7 +97,7 @@ const SelectCss = (
91
97
  fontSize: '14px',
92
98
  lineHeight: '18px',
93
99
  fontWeight: 400,
94
- padding: '13px 31px 11px 8px',
100
+ padding: '13px 22px 11px 8px',
95
101
  '&.Mui-disabled': {
96
102
  color: muiTokens.palette.greyDark,
97
103
  },
@@ -194,12 +200,6 @@ const SelectCss = (
194
200
  '.MuiFormLabel-colorSuccess': {
195
201
  color: muiTokens.palette.greenSuccess + ' !important',
196
202
  },
197
- '.MuiInputBase-root.Mui-disabled': {
198
- backgroundColor: muiTokens.palette.greyXLight,
199
- color: muiTokens.palette.greyDark,
200
- borderColor: muiTokens.palette.greyLightDefaultBorder,
201
- WebkitTextFillColor: muiTokens.palette.greyDark,
202
- },
203
203
  '.MuiInputBase-colorSuccess': {
204
204
  '.SelectIcon': {
205
205
  color: muiTokens.palette.greenSuccess + ' !important',
@@ -229,4 +229,4 @@ const SelectCss = (
229
229
  };
230
230
  };
231
231
 
232
- export default SelectCss;
232
+ export default SelectCss;
@@ -1,6 +1,6 @@
1
- const SnackbarCss = (
2
- muiTokens: Record<string, string | number | any>
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const SnackbarCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '&.MuiPaper-root': {
6
6
  padding: '8px 16px 8px 16px',
@@ -8,34 +8,34 @@ const SnackbarCss = (
8
8
  color: 'white',
9
9
  fontWeight: '700',
10
10
  fontSize: '14px',
11
- width: '350px'
11
+ width: '350px',
12
12
  },
13
13
  '.MuiAlert-message': {
14
- padding: '0px'
14
+ padding: '0px',
15
15
  },
16
16
  '&.MuiAlert-standardSuccess': {
17
- backgroundColor: muiTokens.palette.greenSuccess
17
+ backgroundColor: muiTokens.palette.greenSuccess,
18
18
  },
19
19
  '&.MuiAlert-standardWarning': {
20
- backgroundColor: muiTokens.palette.orangeWarning
20
+ backgroundColor: muiTokens.palette.orangeWarning,
21
21
  },
22
22
  '&.MuiAlert-standardError': {
23
- backgroundColor: muiTokens.palette.redError
23
+ backgroundColor: muiTokens.palette.redError,
24
24
  },
25
25
  '&.MuiAlert-standardInfo': {
26
- backgroundColor: muiTokens.palette.blueInfo
26
+ backgroundColor: muiTokens.palette.blueInfo,
27
27
  },
28
28
  '.MuiAlert-icon': {
29
29
  alignSelf: 'center',
30
30
  height: '16px',
31
31
  marginRight: '16px',
32
32
  alignItems: 'center',
33
- opacity: 1
33
+ opacity: 1,
34
34
  },
35
35
  '.MuiSvgIcon-root': {
36
- color: 'white'
37
- }
38
- }
36
+ color: 'white',
37
+ },
38
+ },
39
39
  };
40
40
  };
41
41
 
@@ -1,6 +1,6 @@
1
- const TextFieldCss = (
2
- muiTokens: Record<string, string | number | any>,
3
- ): Record<string, unknown> => {
1
+ import { MuiTokens } from '../../interfaces/theme';
2
+
3
+ const TextFieldCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
4
  return {
5
5
  '.Mui-error .MuiOutlinedInput-notchedOutline': {
6
6
  borderColor: muiTokens.palette.redError + ' !important',
@@ -8,14 +8,14 @@ const TextFieldCss = (
8
8
  '.Mui-focused .MuiOutlinedInput-notchedOutline': {
9
9
  borderColor: muiTokens.palette.blueClickable,
10
10
  },
11
- '.Mui-disabled .MuiOutlinedInput-notchedOutline': {
12
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
13
- },
14
11
  '&:hover': {
15
12
  '.MuiOutlinedInput-notchedOutline': {
16
- borderColor: muiTokens.palette.greyDark,
13
+ borderColor: muiTokens.palette.greyDark + ' !important',
17
14
  },
18
15
  },
16
+ '.Mui-disabled .MuiOutlinedInput-notchedOutline': {
17
+ borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
18
+ },
19
19
  '&.MuiTextField-root': {
20
20
  '.MuiInputBase-root': {
21
21
  backgroundColor: muiTokens.palette.white,