@groupeactual/design-tokens 1.7.9 → 2.0.0-beta.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.
- package/dist/cjs/index.js +23 -1
- package/dist/es/index.d.ts +244 -63
- package/dist/es/index.js +23 -1
- package/dist/types/helpers/theme.helper.d.ts +5 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interfaces/theme.interface.d.ts +242 -0
- package/dist/types/styled/Accordion.d.ts +4 -0
- package/dist/types/styled/Alert.d.ts +4 -0
- package/dist/types/styled/Autocomplete.d.ts +4 -0
- package/dist/types/styled/Breadcrumbs.d.ts +4 -0
- package/dist/types/styled/Button.d.ts +4 -0
- package/dist/types/styled/Checkbox.d.ts +4 -0
- package/dist/types/styled/Chip.d.ts +4 -0
- package/dist/types/styled/Divider.d.ts +4 -0
- package/dist/types/styled/FormHelperText.d.ts +4 -0
- package/dist/types/styled/FormLabel.d.ts +4 -0
- package/dist/types/styled/IconButton.d.ts +4 -0
- package/dist/types/styled/InputLabel.d.ts +4 -0
- package/dist/types/styled/MenuItem.d.ts +4 -0
- package/dist/types/styled/OutlinedInput.d.ts +4 -0
- package/dist/types/styled/PaginationItem.d.ts +4 -0
- package/dist/types/styled/Radio.d.ts +4 -0
- package/dist/types/styled/Select.d.ts +4 -0
- package/dist/types/styled/Switch.d.ts +4 -0
- package/dist/types/styled/Table.d.ts +4 -0
- package/dist/types/styled/TextField.d.ts +4 -0
- package/dist/types/styled/Typography.d.ts +4 -0
- package/dist/types/theme/theme.d.ts +4 -0
- package/package.json +22 -14
- package/src/helpers/theme.helper.ts +229 -0
- package/src/index.ts +2 -4
- package/src/interfaces/theme.interface.ts +270 -0
- package/src/styled/Accordion.ts +49 -0
- package/src/styled/Alert.ts +83 -0
- package/src/styled/Autocomplete.ts +24 -0
- package/src/styled/Breadcrumbs.ts +29 -0
- package/src/styled/Button.ts +109 -0
- package/src/styled/Checkbox.ts +81 -0
- package/src/styled/Chip.ts +201 -0
- package/src/styled/Divider.ts +24 -0
- package/src/styled/FormHelperText.ts +28 -0
- package/src/styled/FormLabel.ts +30 -0
- package/src/styled/IconButton.ts +161 -0
- package/src/styled/InputLabel.ts +30 -0
- package/src/styled/MenuItem.ts +73 -0
- package/src/styled/OutlinedInput.ts +89 -0
- package/src/styled/PaginationItem.ts +72 -0
- package/src/styled/Radio.ts +67 -0
- package/src/styled/Select.ts +38 -0
- package/src/styled/Switch.ts +62 -0
- package/src/styled/Table.ts +54 -0
- package/src/styled/TextField.ts +105 -0
- package/src/styled/Typography.ts +67 -0
- package/src/theme/theme.tsx +23 -0
- package/src/tokens/tokens.json +667 -6
- package/dist/types/src/css/accordionCss.d.ts +0 -3
- package/dist/types/src/css/bannerNotificationCss.d.ts +0 -3
- package/dist/types/src/css/breadcrumbsCss.d.ts +0 -3
- package/dist/types/src/css/buttonCss.d.ts +0 -3
- package/dist/types/src/css/chipCss.d.ts +0 -3
- package/dist/types/src/css/datatable/datatableCss.d.ts +0 -3
- package/dist/types/src/css/form/autoCompleteCss.d.ts +0 -3
- package/dist/types/src/css/form/checkboxCss.d.ts +0 -3
- package/dist/types/src/css/form/checkboxGroupCss.d.ts +0 -3
- package/dist/types/src/css/form/datePickerCss.d.ts +0 -3
- package/dist/types/src/css/form/radioCss.d.ts +0 -3
- package/dist/types/src/css/form/selectCss.d.ts +0 -3
- package/dist/types/src/css/form/snackbarCss.d.ts +0 -3
- package/dist/types/src/css/form/textFieldCss.d.ts +0 -3
- package/dist/types/src/css/iconButtonCss.d.ts +0 -3
- package/dist/types/src/css/index.d.ts +0 -20
- package/dist/types/src/css/linkCss.d.ts +0 -3
- package/dist/types/src/css/menuItemCss.d.ts +0 -3
- package/dist/types/src/css/paginationCss.d.ts +0 -3
- package/dist/types/src/css/switchCss.d.ts +0 -3
- package/dist/types/src/css/tooltipCss.d.ts +0 -2
- package/dist/types/src/helpers/theme.d.ts +0 -4
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/interfaces/theme.d.ts +0 -16
- package/dist/types/src/themes/tokens.d.ts +0 -167
- package/dist/types/src/useMaterialThemeTokens.d.ts +0 -6
- package/dist/types/src/useThemeTokens.d.ts +0 -6
- package/src/css/accordionCss.ts +0 -30
- package/src/css/bannerNotificationCss.ts +0 -52
- package/src/css/breadcrumbsCss.ts +0 -19
- package/src/css/buttonCss.ts +0 -80
- package/src/css/chipCss.ts +0 -142
- package/src/css/datatable/datatableCss.ts +0 -32
- package/src/css/form/autoCompleteCss.ts +0 -340
- package/src/css/form/checkboxCss.ts +0 -128
- package/src/css/form/checkboxGroupCss.ts +0 -42
- package/src/css/form/datePickerCss.ts +0 -117
- package/src/css/form/radioCss.ts +0 -102
- package/src/css/form/selectCss.ts +0 -233
- package/src/css/form/snackbarCss.ts +0 -42
- package/src/css/form/textFieldCss.ts +0 -188
- package/src/css/iconButtonCss.ts +0 -64
- package/src/css/index.ts +0 -20
- package/src/css/linkCss.ts +0 -15
- package/src/css/menuItemCss.ts +0 -31
- package/src/css/paginationCss.ts +0 -59
- package/src/css/switchCss.ts +0 -58
- package/src/css/tooltipCss.ts +0 -5
- package/src/helpers/theme.ts +0 -89
- package/src/interfaces/theme.ts +0 -34
- package/src/themes/tokens.ts +0 -169
- package/src/useMaterialThemeTokens.ts +0 -218
- package/src/useThemeTokens.ts +0 -30
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { MuiTokens } from '@/interfaces/theme';
|
|
2
|
-
|
|
3
|
-
const DatatableCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
|
-
return {
|
|
5
|
-
'& .MuiTableContainer-root': {
|
|
6
|
-
backgroundColor: muiTokens.palette.white,
|
|
7
|
-
borderRadius: '4px',
|
|
8
|
-
},
|
|
9
|
-
'.MuiTableCell-root': {
|
|
10
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
11
|
-
},
|
|
12
|
-
'& .MuiTableRow-root': {
|
|
13
|
-
height: '50px',
|
|
14
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
15
|
-
},
|
|
16
|
-
'& .MuiTableRow-head': {
|
|
17
|
-
height: '40px !important',
|
|
18
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
19
|
-
},
|
|
20
|
-
'& .MuiTableCell-head': {
|
|
21
|
-
padding: '0px 16px',
|
|
22
|
-
'& .firstSortIcon': {
|
|
23
|
-
paddingLeft: '4px',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
'& .MuiTableCell-body': {
|
|
27
|
-
padding: '12px 16px',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default DatatableCss;
|
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { MuiTokens } from '@/interfaces/theme';
|
|
2
|
-
|
|
3
|
-
const AutoCompleteCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
|
-
return {
|
|
5
|
-
'&.MuiFormControl-root': {
|
|
6
|
-
zIndex: 1,
|
|
7
|
-
'.MuiInputBase-root': {
|
|
8
|
-
backgroundColor: muiTokens.palette.white,
|
|
9
|
-
height: '44px',
|
|
10
|
-
padding: 0 + ' !important',
|
|
11
|
-
'.SelectIcon': {
|
|
12
|
-
marginTop: '-1px',
|
|
13
|
-
color: muiTokens.palette.blueClickable + ' !important',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
'&:hover': {
|
|
17
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
18
|
-
borderColor: muiTokens.palette.greyDark + ' !important',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
'.Mui-disabled': {
|
|
22
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
23
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
'.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
27
|
-
borderWidth: '1px',
|
|
28
|
-
borderColor: muiTokens.palette.blueClickable + ' !important',
|
|
29
|
-
},
|
|
30
|
-
'.Mui-error': {
|
|
31
|
-
color: muiTokens.palette.redError,
|
|
32
|
-
'& span': {
|
|
33
|
-
color: `${muiTokens.palette.greyDark as string} !important`,
|
|
34
|
-
},
|
|
35
|
-
'& fieldset': {
|
|
36
|
-
borderColor: muiTokens.palette.redError + ' !important',
|
|
37
|
-
},
|
|
38
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
39
|
-
borderColor: muiTokens.palette.redError + ' !important',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
'.MuiFormLabel-root.Mui-focused': {
|
|
43
|
-
transform: 'translate(14px, -7px) scale(0.75) !important',
|
|
44
|
-
},
|
|
45
|
-
'.MuiFormLabel-root.Mui-Input-filled': {
|
|
46
|
-
transform: 'translate(14px, -7px) scale(0.75) !important',
|
|
47
|
-
},
|
|
48
|
-
'.MuiOutlinedInput-root': {
|
|
49
|
-
height: '22px',
|
|
50
|
-
},
|
|
51
|
-
'.MuiChip-deleteIcon .MuiSvgIcon-root': {
|
|
52
|
-
color: muiTokens.palette.blueClickable,
|
|
53
|
-
},
|
|
54
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
55
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
56
|
-
borderWidth: '1px !important',
|
|
57
|
-
fontSize: '16px !important',
|
|
58
|
-
},
|
|
59
|
-
'&.Mui-success': {
|
|
60
|
-
color: muiTokens.palette.greenSuccess,
|
|
61
|
-
'.SelectIcon': {
|
|
62
|
-
color: muiTokens.palette.greenSuccess + ' !important',
|
|
63
|
-
},
|
|
64
|
-
'& .MuiChip-label': {
|
|
65
|
-
color: 'unset',
|
|
66
|
-
},
|
|
67
|
-
'& .clear': {
|
|
68
|
-
'& span': {
|
|
69
|
-
color: muiTokens.palette.blueClickable,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
'& .MuiAutocomplete-popupIndicatorOpen': {
|
|
73
|
-
transform: 'none',
|
|
74
|
-
},
|
|
75
|
-
'& button[title="Close"].MuiAutocomplete-popupIndicator': {
|
|
76
|
-
'& span': {
|
|
77
|
-
position: 'relative',
|
|
78
|
-
transform: 'none',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
82
|
-
borderColor: muiTokens.palette.greenSuccess,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
'&.Mui-disabled': {
|
|
86
|
-
'.MuiAutocomplete-endAdornment .SelectIcon': {
|
|
87
|
-
color: `${muiTokens.palette.greyMediumInactive} !important`,
|
|
88
|
-
},
|
|
89
|
-
input: {
|
|
90
|
-
backgroundColor: muiTokens.palette.greyXLight,
|
|
91
|
-
color: muiTokens.palette.greyDark,
|
|
92
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
93
|
-
WebkitTextFillColor: muiTokens.palette.greyDark,
|
|
94
|
-
},
|
|
95
|
-
label: {
|
|
96
|
-
background: 'transparent',
|
|
97
|
-
backgroundColor: 'transparent !important',
|
|
98
|
-
color: muiTokens.palette.greyDark + ' !important',
|
|
99
|
-
'-webkit-text-fill-color': muiTokens.palette.greyDark,
|
|
100
|
-
},
|
|
101
|
-
color: muiTokens.palette.greyDark,
|
|
102
|
-
},
|
|
103
|
-
'.MuiInputLabel-root': {
|
|
104
|
-
'&.Mui-error': {
|
|
105
|
-
color: `${muiTokens.palette.redError} !important`,
|
|
106
|
-
},
|
|
107
|
-
'&.Mui-success': {
|
|
108
|
-
color: `${muiTokens.palette.greenSuccess} !important`,
|
|
109
|
-
},
|
|
110
|
-
'&.Mui-focused': {
|
|
111
|
-
lineHeight: '16px',
|
|
112
|
-
fontWeight: 500,
|
|
113
|
-
fontSize: '16px',
|
|
114
|
-
color: `${muiTokens.palette.blueClickable}`,
|
|
115
|
-
'&.Mui-error': {
|
|
116
|
-
color: `${muiTokens.palette.redError} !important`,
|
|
117
|
-
},
|
|
118
|
-
'&.Mui-success': {
|
|
119
|
-
color: muiTokens.palette.greenSuccess,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
'.MuiFormHelperText-root': {
|
|
124
|
-
color: muiTokens.palette.greyDark,
|
|
125
|
-
marginTop: '8px',
|
|
126
|
-
marginLeft: '8px',
|
|
127
|
-
'&.Mui-error': {
|
|
128
|
-
color: muiTokens.palette.redError,
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
'.MuiAutocomplete-clearIndicator': {
|
|
132
|
-
backgroundColor: 'transparent',
|
|
133
|
-
'.MuiSvgIcon-root': {
|
|
134
|
-
color: muiTokens.palette.blueClickable,
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
138
|
-
backgroundColor: 'transparent',
|
|
139
|
-
},
|
|
140
|
-
'.clear': {
|
|
141
|
-
alignSelf: 'center',
|
|
142
|
-
position: 'relative',
|
|
143
|
-
},
|
|
144
|
-
'&.MuiAutocomplete-listbox': {
|
|
145
|
-
'.clear': {
|
|
146
|
-
visibility: 'visible',
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
'&.MuiMenuItem-root': {
|
|
150
|
-
border: '1px solid green',
|
|
151
|
-
},
|
|
152
|
-
'& .Mui-focused': {
|
|
153
|
-
borderColor: muiTokens.palette.blueClickable,
|
|
154
|
-
},
|
|
155
|
-
'& .Mui-hover': {
|
|
156
|
-
borderColor: muiTokens.palette.greyDark,
|
|
157
|
-
},
|
|
158
|
-
'& .MuiMenuItem-root': {
|
|
159
|
-
border: '1px solid green',
|
|
160
|
-
},
|
|
161
|
-
'.MuiMenuItem-root': {
|
|
162
|
-
border: '1px solid green',
|
|
163
|
-
},
|
|
164
|
-
'&.Mui-filled': {
|
|
165
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
166
|
-
backgroundColor: 'transparent',
|
|
167
|
-
},
|
|
168
|
-
'.Mui-success': {
|
|
169
|
-
'& button[title="Close"].MuiAutocomplete-popupIndicator': {
|
|
170
|
-
'& span': {
|
|
171
|
-
position: 'relative',
|
|
172
|
-
transform: 'none',
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
177
|
-
legend: {
|
|
178
|
-
maxWidth: '100%',
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
'.labelClassic': {
|
|
183
|
-
minHeight: '20px',
|
|
184
|
-
'.MuiFormLabel-root': {
|
|
185
|
-
transform: 'translate(14px, -7px) scale(0.75) !important',
|
|
186
|
-
},
|
|
187
|
-
'&.Mui-Input-filled': {
|
|
188
|
-
lineHeight: '16px',
|
|
189
|
-
fontWeight: '500',
|
|
190
|
-
fontSize: '16px',
|
|
191
|
-
marginTop: '2px',
|
|
192
|
-
color: muiTokens.palette.greyXDark,
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
'.labelCustom': {
|
|
196
|
-
color: muiTokens.palette.greyDark,
|
|
197
|
-
fontSize: '14px',
|
|
198
|
-
lineHeight: '18px',
|
|
199
|
-
height: '20px',
|
|
200
|
-
fontWeight: '400',
|
|
201
|
-
marginTop: '-3px',
|
|
202
|
-
'&.Mui-Input-filled': {
|
|
203
|
-
lineHeight: '16px',
|
|
204
|
-
fontWeight: '500',
|
|
205
|
-
fontSize: '16px',
|
|
206
|
-
marginTop: '2px',
|
|
207
|
-
marginLeft: '0px',
|
|
208
|
-
color: muiTokens.palette.greyXDark,
|
|
209
|
-
},
|
|
210
|
-
'& .MuiInputLabel-shrink': {
|
|
211
|
-
lineHeight: '16px',
|
|
212
|
-
fontWeight: '500',
|
|
213
|
-
fontSize: '16px',
|
|
214
|
-
marginTop: '2px',
|
|
215
|
-
marginLeft: '0px',
|
|
216
|
-
color: muiTokens.palette.greyXDark,
|
|
217
|
-
},
|
|
218
|
-
'&.Mui-focused': {
|
|
219
|
-
marginTop: '2px',
|
|
220
|
-
marginLeft: '0px',
|
|
221
|
-
color: muiTokens.palette.blueClickable,
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
'.MuiOutlinedInput-input': {
|
|
225
|
-
fontSize: '14px',
|
|
226
|
-
lineHeight: '18px',
|
|
227
|
-
fontWeight: 400,
|
|
228
|
-
padding: '12px 8px !important',
|
|
229
|
-
marginTop: '0px',
|
|
230
|
-
opacity: 1 + ' !important',
|
|
231
|
-
color: `${muiTokens.palette.greyDark as string}`,
|
|
232
|
-
'&.Mui-focused': {
|
|
233
|
-
marginTop: '0px',
|
|
234
|
-
color: `${muiTokens.palette.blueClickable as string}`,
|
|
235
|
-
},
|
|
236
|
-
'&.Mui-disabled': {
|
|
237
|
-
color: muiTokens.palette.greyDark,
|
|
238
|
-
},
|
|
239
|
-
'&::placeholder': {
|
|
240
|
-
color: `${muiTokens.palette.greyDark as string} !important`,
|
|
241
|
-
opacity: 1 + ' !important',
|
|
242
|
-
fontWeight: 400,
|
|
243
|
-
lineHeight: '18px',
|
|
244
|
-
fontSize: '14px',
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
'.MuiFormLabel-filled': {
|
|
248
|
-
lineHeight: '16px',
|
|
249
|
-
fontWeight: '500',
|
|
250
|
-
fontSize: '16px',
|
|
251
|
-
marginTop: '2px',
|
|
252
|
-
marginLeft: '0px',
|
|
253
|
-
color: muiTokens.palette.greyXDark,
|
|
254
|
-
transform: 'translate(14px, -7px) scale(0.75) !important',
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
'&.Mui-filled': {
|
|
258
|
-
'.MuiOutlinedInput-input': {
|
|
259
|
-
color: `${muiTokens.palette.greyXDark as string}`,
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
'&.DsAutoComplete': {
|
|
263
|
-
'.MuiAutocomplete-endAdornment': {
|
|
264
|
-
top: 'calc(50%)',
|
|
265
|
-
height: '36px',
|
|
266
|
-
display: 'flex',
|
|
267
|
-
},
|
|
268
|
-
'&.Mui-disabled .MuiAutocomplete-endAdornment': {
|
|
269
|
-
top: 'calc(50%)',
|
|
270
|
-
},
|
|
271
|
-
'&.Mui-filled': {
|
|
272
|
-
'.MuiAutocomplete-endAdornment': {
|
|
273
|
-
top: 'calc(50%)',
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
'.MuiInputBase-root': {
|
|
277
|
-
minHeight: '44px',
|
|
278
|
-
height: 'auto',
|
|
279
|
-
},
|
|
280
|
-
'&.MuiMenuItem-root': {
|
|
281
|
-
border: '1px solid green',
|
|
282
|
-
},
|
|
283
|
-
'& .MuiMenuItem-root': {
|
|
284
|
-
border: '1px solid green',
|
|
285
|
-
},
|
|
286
|
-
'.MuiMenuItem-root': {
|
|
287
|
-
border: '1px solid green',
|
|
288
|
-
},
|
|
289
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
290
|
-
backgroundColor: 'transparent',
|
|
291
|
-
},
|
|
292
|
-
'.Mui-disabled': {
|
|
293
|
-
color: muiTokens.palette.greyDark + ' !important',
|
|
294
|
-
backgroundColor: muiTokens.palette.greyXLight + ' !important',
|
|
295
|
-
WebkitTextFillColor: muiTokens.palette.greyDark + ' !important',
|
|
296
|
-
},
|
|
297
|
-
'.Mui-success': {
|
|
298
|
-
'& button[title="Close"].MuiAutocomplete-popupIndicator': {
|
|
299
|
-
position: 'relative',
|
|
300
|
-
transform: 'none',
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
'&.DsAutoComplete.Mui-filled': {
|
|
305
|
-
'.MuiOutlinedInput-input': {
|
|
306
|
-
color: `${muiTokens.palette.greyXDark as string} !important`,
|
|
307
|
-
padding: '0px 7px 0px 7px !important',
|
|
308
|
-
},
|
|
309
|
-
' .MuiOutlinedInput-root': {
|
|
310
|
-
padding: '7px 31px 7px 4px !important',
|
|
311
|
-
},
|
|
312
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
313
|
-
backgroundColor: 'transparent',
|
|
314
|
-
},
|
|
315
|
-
'.Mui-disabled': {
|
|
316
|
-
color: muiTokens.palette.greyDark,
|
|
317
|
-
backgroundColor: muiTokens.palette.greyXLight,
|
|
318
|
-
WebkitTextFillColor: muiTokens.palette.greyDark,
|
|
319
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
320
|
-
backgroundColor: 'transparent',
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
'.MenuItem ': {
|
|
325
|
-
backgroundColor: 'white',
|
|
326
|
-
fontWeight: 400,
|
|
327
|
-
whiteSpace: 'break-spaces',
|
|
328
|
-
wordBreak: 'break-word',
|
|
329
|
-
},
|
|
330
|
-
'.MenuItem[aria-selected="true"]': {
|
|
331
|
-
backgroundColor: muiTokens.palette.greyXLight,
|
|
332
|
-
fontWeight: 500,
|
|
333
|
-
},
|
|
334
|
-
'.MenuItem:hover': {
|
|
335
|
-
backgroundColor: muiTokens.palette.blueHoverEquivalence,
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
export default AutoCompleteCss;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { MuiTokens } from '@/interfaces/theme';
|
|
2
|
-
|
|
3
|
-
const CheckboxCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
|
-
return {
|
|
5
|
-
'&.MuiFormControl-root': {
|
|
6
|
-
'&.DsCheckbox': {
|
|
7
|
-
'&.Mui-disabled': {
|
|
8
|
-
'.MuiFormControlLabel-root': {
|
|
9
|
-
cursor: 'auto !important',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
'.MuiCheckbox-root': {
|
|
13
|
-
'::before': {
|
|
14
|
-
zIndex: 1,
|
|
15
|
-
content: '" "',
|
|
16
|
-
display: 'block',
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
borderRadius: '2px',
|
|
19
|
-
width: '14px',
|
|
20
|
-
height: '14px',
|
|
21
|
-
backgroundColor: 'white',
|
|
22
|
-
},
|
|
23
|
-
width: '24px',
|
|
24
|
-
height: '24px',
|
|
25
|
-
marginRight: '4px',
|
|
26
|
-
marginBottom: '0px',
|
|
27
|
-
borderRadius: '4px',
|
|
28
|
-
'.MuiSvgIcon-root': {
|
|
29
|
-
zIndex: 1,
|
|
30
|
-
width: '18px',
|
|
31
|
-
height: '18px',
|
|
32
|
-
path: {
|
|
33
|
-
width: '14px',
|
|
34
|
-
height: '14px',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
'&.Mui-checked': {
|
|
38
|
-
'.MuiSvgIcon-root': {
|
|
39
|
-
color: muiTokens.palette.blueClickable,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
'&.MuiCheckbox-indeterminate': {
|
|
43
|
-
'::before': {
|
|
44
|
-
backgroundColor: muiTokens.palette.blueClickable,
|
|
45
|
-
borderRadius: '1.5px',
|
|
46
|
-
},
|
|
47
|
-
'.MuiSvgIcon-root': {
|
|
48
|
-
color: muiTokens.palette.white + ' !important',
|
|
49
|
-
border: '2px solid',
|
|
50
|
-
path: {
|
|
51
|
-
color: muiTokens.palette.white,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
'&:hover .MuiSvgIcon-root': {
|
|
55
|
-
color: muiTokens.palette.blueHoverEquivalence + ' !important',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
'&.Mui-disabled': {
|
|
59
|
-
'::before': {
|
|
60
|
-
backgroundColor: muiTokens.palette.greyXLight,
|
|
61
|
-
},
|
|
62
|
-
'.MuiSvgIcon-root': {
|
|
63
|
-
color: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
64
|
-
backgroundColor: 'transparent !important',
|
|
65
|
-
outlineOffset: '-2px',
|
|
66
|
-
},
|
|
67
|
-
'&.Mui-checked': {
|
|
68
|
-
'.MuiSvgIcon-root': {
|
|
69
|
-
color: muiTokens.palette.greyMediumInactive + ' !important',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
'&.MuiCheckbox-indeterminate': {
|
|
73
|
-
'::before': {
|
|
74
|
-
backgroundColor: muiTokens.palette.greyMediumInactive,
|
|
75
|
-
borderRadius: '1.5px',
|
|
76
|
-
},
|
|
77
|
-
'.MuiSvgIcon-root': {
|
|
78
|
-
color: muiTokens.palette.white + ' !important',
|
|
79
|
-
border: '2px solid',
|
|
80
|
-
path: {
|
|
81
|
-
color: muiTokens.palette.greyXLight,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
'&:hover': {
|
|
87
|
-
backgroundColor:
|
|
88
|
-
muiTokens.palette.blueHoverEquivalence + ' !important',
|
|
89
|
-
'.MuiSvgIcon-root': {
|
|
90
|
-
color: muiTokens.palette.blueHoverClickable + ' !important',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
'.DsCheckbox-label': {
|
|
95
|
-
fontSize: '14px',
|
|
96
|
-
marginLeft: '-2px',
|
|
97
|
-
color: muiTokens.palette.greyXDark,
|
|
98
|
-
fontWeight: 400,
|
|
99
|
-
'&.Mui-disabled': {
|
|
100
|
-
color: muiTokens.palette.greyDark,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
'.MuiTouchRipple-root': {
|
|
104
|
-
background: 'white',
|
|
105
|
-
height: '12px',
|
|
106
|
-
width: '12px',
|
|
107
|
-
top: '6px',
|
|
108
|
-
zIndex: 0,
|
|
109
|
-
left: '6px',
|
|
110
|
-
borderRadius: '0px',
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
'.MuiBox-root .MuiBox-root svg': {
|
|
114
|
-
top: '1px',
|
|
115
|
-
position: 'relative',
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
'.MuiFormHelperText-root': {
|
|
119
|
-
marginTop: '3px',
|
|
120
|
-
marginLeft: '-6px',
|
|
121
|
-
fontWeight: '400',
|
|
122
|
-
fontSize: '11px',
|
|
123
|
-
color: muiTokens.palette.greyDark,
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export default CheckboxCss;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { MuiTokens } from '@/interfaces/theme';
|
|
2
|
-
|
|
3
|
-
const CheckboxGroupCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
|
-
return {
|
|
5
|
-
// à garder pour label.css 👇
|
|
6
|
-
'&.MuiFormControl-root': {
|
|
7
|
-
'.MuiFormLabel-root': {
|
|
8
|
-
color: muiTokens.palette.greyXDark,
|
|
9
|
-
marginLeft: '-6px',
|
|
10
|
-
fontWeight: '500',
|
|
11
|
-
fontSize: '13px',
|
|
12
|
-
lineHeight: '16px',
|
|
13
|
-
paddingBottom: '4px',
|
|
14
|
-
},
|
|
15
|
-
// à garder pour label.css ⬆️
|
|
16
|
-
'.MuiFormHelperText-root': {
|
|
17
|
-
marginTop: '3px',
|
|
18
|
-
marginLeft: '-6px',
|
|
19
|
-
color: muiTokens.palette.greyDark,
|
|
20
|
-
fontWeight: '400',
|
|
21
|
-
fontSize: '11px',
|
|
22
|
-
paddingTop: '4px',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
// à garder pour label.css 👇
|
|
26
|
-
'&.Mui-disabled': {
|
|
27
|
-
'.MuiFormLabel-root': {
|
|
28
|
-
color: muiTokens.palette.greyDark + ' !important',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
'&.Mui-error': {
|
|
32
|
-
'.MuiFormLabel-root': {
|
|
33
|
-
color: muiTokens.palette.redError + ' !important',
|
|
34
|
-
},
|
|
35
|
-
'.MuiFormHelperText-root': {
|
|
36
|
-
color: muiTokens.palette.redError + ' !important',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default CheckboxGroupCss;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { MuiTokens } from '@/interfaces/theme';
|
|
2
|
-
|
|
3
|
-
const DatePickerCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
|
-
return {
|
|
5
|
-
'.MuiInputBase-root': {
|
|
6
|
-
backgroundColor: muiTokens.palette.white,
|
|
7
|
-
height: 44,
|
|
8
|
-
fontSize: '14px',
|
|
9
|
-
'&.Mui-disabled': {
|
|
10
|
-
backgroundColor: muiTokens.palette.greyXLight + ' !important',
|
|
11
|
-
'.MuiSvgIcon-root': {
|
|
12
|
-
color: muiTokens.palette.greyMediumInactive,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
'.MuiTextField-root': {
|
|
17
|
-
width: 'inherit',
|
|
18
|
-
},
|
|
19
|
-
legend: {
|
|
20
|
-
fontSize: '0.7em',
|
|
21
|
-
},
|
|
22
|
-
'.MuiFormHelperText-root': {
|
|
23
|
-
marginLeft: '-8px !important',
|
|
24
|
-
color: muiTokens.palette.greyDark,
|
|
25
|
-
},
|
|
26
|
-
'.Mui-error': {
|
|
27
|
-
'.MuiInputLabel-root': {
|
|
28
|
-
color: muiTokens.palette.redError + ' !important',
|
|
29
|
-
},
|
|
30
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
31
|
-
borderColor: muiTokens.palette.redError + ' !important',
|
|
32
|
-
},
|
|
33
|
-
'.MuiFormHelperText-root': {
|
|
34
|
-
color: muiTokens.palette.redError + ' !important',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
'.Mui-disabled': {
|
|
38
|
-
'&.MuiButtonBase-root': {
|
|
39
|
-
color: muiTokens.palette.greyMediumInactive,
|
|
40
|
-
},
|
|
41
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
42
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
'.Mui-success': {
|
|
46
|
-
'.MuiInputLabel-root': {
|
|
47
|
-
color: muiTokens.palette.greenSuccess + ' !important',
|
|
48
|
-
},
|
|
49
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
50
|
-
fontSize: '16px !important',
|
|
51
|
-
borderColor: muiTokens.palette.greenSuccess + ' !important',
|
|
52
|
-
},
|
|
53
|
-
'.MuiInputAdornment-root': {
|
|
54
|
-
'.itemIcon .MuiSvgIcon-root': {
|
|
55
|
-
color: muiTokens.palette.greenSuccess,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
'.MuiOutlinedInput-notchedOutline': {
|
|
60
|
-
fontSize: '16px !important',
|
|
61
|
-
legend: {
|
|
62
|
-
fontSize: '12px !important',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
'.MuiInputBase-input': {
|
|
67
|
-
color: muiTokens.palette.greyXDark,
|
|
68
|
-
padding: 0,
|
|
69
|
-
'&.Mui-disabled': {
|
|
70
|
-
'-webkit-text-fill-color': muiTokens.palette.greyDark,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
'.MuiOutlinedInput-root': {
|
|
74
|
-
padding: '13px 14.5px 13px 8px !important',
|
|
75
|
-
'& fieldset': {
|
|
76
|
-
borderWidth: '1px !important',
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
'& .MuiFormHelperText-root': {
|
|
80
|
-
marginTop: '8px',
|
|
81
|
-
paddingTop: '0px',
|
|
82
|
-
paddingLeft: '16px',
|
|
83
|
-
},
|
|
84
|
-
'& .MuiSvgIcon-root': {
|
|
85
|
-
color: muiTokens.palette.blueClickable,
|
|
86
|
-
},
|
|
87
|
-
'.MuiInputLabel-root': {
|
|
88
|
-
marginTop: '-4px',
|
|
89
|
-
color: muiTokens.palette.greyDark,
|
|
90
|
-
fontSize: '14px',
|
|
91
|
-
'&.Mui-disabled': {
|
|
92
|
-
color: muiTokens.palette.greyDark,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
'.MuiInputLabel-shrink': {
|
|
96
|
-
marginTop: '4px',
|
|
97
|
-
marginLeft: '0px',
|
|
98
|
-
lineHeight: '16px',
|
|
99
|
-
fontWeight: '500',
|
|
100
|
-
fontSize: '16px',
|
|
101
|
-
},
|
|
102
|
-
'.MuiFormLabel-filled': {
|
|
103
|
-
marginTop: '6px',
|
|
104
|
-
lineHeight: '16px',
|
|
105
|
-
fontWeight: '500',
|
|
106
|
-
marginLeft: '0px',
|
|
107
|
-
color: muiTokens.palette.greyXDark,
|
|
108
|
-
fontSize: '16px !important', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
|
|
109
|
-
transform: 'translate(14px, -11px) scale(0.75)',
|
|
110
|
-
},
|
|
111
|
-
'.MuiInputLabel-root.Mui-focused': {
|
|
112
|
-
color: muiTokens.palette.blueClickable,
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export default DatePickerCss;
|