@groupeactual/design-tokens 1.5.2 → 1.6.0-beta.3
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/css/accordionCss.d.ts +2 -1
- package/dist/cjs/types/css/bannerNotificationCss.d.ts +2 -1
- package/dist/cjs/types/css/breadcrumbsCss.d.ts +2 -1
- package/dist/cjs/types/css/buttonCss.d.ts +2 -1
- package/dist/cjs/types/css/chipCss.d.ts +2 -1
- package/dist/cjs/types/css/datatable/datatableCss.d.ts +2 -1
- package/dist/cjs/types/css/form/autoCompleteCss.d.ts +2 -1
- package/dist/cjs/types/css/form/checkboxCss.d.ts +2 -1
- package/dist/cjs/types/css/form/checkboxGroupCss.d.ts +2 -1
- package/dist/cjs/types/css/form/datePickerCss.d.ts +2 -1
- package/dist/cjs/types/css/form/radioCss.d.ts +2 -1
- package/dist/cjs/types/css/form/selectCss.d.ts +2 -1
- package/dist/cjs/types/css/form/snackbarCss.d.ts +2 -1
- package/dist/cjs/types/css/form/textFieldCss.d.ts +2 -1
- package/dist/cjs/types/css/iconButtonCss.d.ts +2 -1
- package/dist/cjs/types/css/linkCss.d.ts +2 -1
- package/dist/cjs/types/css/paginationCss.d.ts +2 -1
- package/dist/cjs/types/css/switchCss.d.ts +2 -1
- package/dist/cjs/types/css/tooltipCss.d.ts +1 -1
- package/dist/cjs/types/helpers/theme.d.ts +1 -1
- package/dist/cjs/types/interfaces/theme.d.ts +1 -0
- package/dist/cjs/types/useMaterialThemeTokens.d.ts +2 -2
- package/dist/es/index.d.ts +22 -21
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/types/css/accordionCss.d.ts +2 -1
- package/dist/es/types/css/bannerNotificationCss.d.ts +2 -1
- package/dist/es/types/css/breadcrumbsCss.d.ts +2 -1
- package/dist/es/types/css/buttonCss.d.ts +2 -1
- package/dist/es/types/css/chipCss.d.ts +2 -1
- package/dist/es/types/css/datatable/datatableCss.d.ts +2 -1
- package/dist/es/types/css/form/autoCompleteCss.d.ts +2 -1
- package/dist/es/types/css/form/checkboxCss.d.ts +2 -1
- package/dist/es/types/css/form/checkboxGroupCss.d.ts +2 -1
- package/dist/es/types/css/form/datePickerCss.d.ts +2 -1
- package/dist/es/types/css/form/radioCss.d.ts +2 -1
- package/dist/es/types/css/form/selectCss.d.ts +2 -1
- package/dist/es/types/css/form/snackbarCss.d.ts +2 -1
- package/dist/es/types/css/form/textFieldCss.d.ts +2 -1
- package/dist/es/types/css/iconButtonCss.d.ts +2 -1
- package/dist/es/types/css/linkCss.d.ts +2 -1
- package/dist/es/types/css/paginationCss.d.ts +2 -1
- package/dist/es/types/css/switchCss.d.ts +2 -1
- package/dist/es/types/css/tooltipCss.d.ts +1 -1
- package/dist/es/types/helpers/theme.d.ts +1 -1
- package/dist/es/types/interfaces/theme.d.ts +1 -0
- package/dist/es/types/useMaterialThemeTokens.d.ts +2 -2
- package/package.json +27 -28
- package/src/css/accordionCss.ts +8 -8
- package/src/css/bannerNotificationCss.ts +14 -12
- package/src/css/breadcrumbsCss.ts +7 -7
- package/src/css/buttonCss.ts +4 -4
- package/src/css/chipCss.ts +33 -33
- package/src/css/datatable/datatableCss.ts +10 -10
- package/src/css/form/autoCompleteCss.ts +71 -54
- package/src/css/form/checkboxCss.ts +23 -23
- package/src/css/form/checkboxGroupCss.ts +13 -13
- package/src/css/form/datePickerCss.ts +3 -4
- package/src/css/form/radioCss.ts +26 -26
- package/src/css/form/selectCss.ts +24 -24
- package/src/css/form/snackbarCss.ts +13 -13
- package/src/css/form/textFieldCss.ts +7 -7
- package/src/css/iconButtonCss.ts +22 -22
- package/src/css/linkCss.ts +6 -6
- package/src/css/paginationCss.ts +11 -11
- package/src/css/switchCss.ts +20 -19
- package/src/css/tooltipCss.ts +6 -9
- package/src/helpers/theme.ts +18 -16
- package/src/interfaces/theme.ts +3 -0
- package/src/themes/tokens.ts +3 -3
- package/src/useMaterialThemeTokens.ts +31 -31
- package/src/useThemeTokens.ts +2 -2
package/src/css/buttonCss.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const ButtonCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'@font-face': {
|
|
6
6
|
fontFamily: 'Roboto',
|
|
@@ -33,7 +33,7 @@ const ButtonCss = (
|
|
|
33
33
|
},
|
|
34
34
|
'&.MuiButton-secondary': {
|
|
35
35
|
color: muiTokens.palette.blueClickable,
|
|
36
|
-
backgroundColor: muiTokens.palette.white
|
|
36
|
+
backgroundColor: muiTokens.palette.white + ' !important',
|
|
37
37
|
border: '1px solid',
|
|
38
38
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
39
39
|
'.MuiSvgIcon-root': {
|
package/src/css/chipCss.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const ChipCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'&.MuiChip-root': {
|
|
6
6
|
color: muiTokens.palette.greyXDark,
|
|
@@ -13,80 +13,80 @@ const ChipCss = (
|
|
|
13
13
|
color: muiTokens.palette.blueClickable,
|
|
14
14
|
cursor: 'default',
|
|
15
15
|
width: 'auto',
|
|
16
|
-
height: 'auto'
|
|
16
|
+
height: 'auto',
|
|
17
17
|
},
|
|
18
18
|
'&.Mui-disabled': {
|
|
19
19
|
'.MuiChip-deleteIcon .MuiSvgIcon-root': {
|
|
20
|
-
color: muiTokens.palette.greyMediumInactive + ' !important'
|
|
20
|
+
color: muiTokens.palette.greyMediumInactive + ' !important',
|
|
21
21
|
},
|
|
22
22
|
color: muiTokens.palette.greyDark + ' !important',
|
|
23
23
|
backgroundColor: muiTokens.palette.greyXLight + ' !important',
|
|
24
24
|
border: '1px solid',
|
|
25
25
|
fontWeight: muiTokens.palette.fontWeightRegular,
|
|
26
26
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
27
|
-
opacity: 1
|
|
27
|
+
opacity: 1,
|
|
28
28
|
},
|
|
29
29
|
'.MuiChip-deleteIcon': {
|
|
30
30
|
width: '12px',
|
|
31
31
|
height: '12px',
|
|
32
32
|
margin: 0,
|
|
33
33
|
marginLeft: '8px',
|
|
34
|
-
marginRight: '2px'
|
|
34
|
+
marginRight: '2px',
|
|
35
35
|
},
|
|
36
36
|
'.MuiChip-label': {
|
|
37
37
|
padding: 0,
|
|
38
|
-
lineHeight: '18px'
|
|
38
|
+
lineHeight: '18px',
|
|
39
39
|
},
|
|
40
40
|
'.MuiChip-avatar': {
|
|
41
41
|
marginLeft: '-1px',
|
|
42
42
|
marginRight: '5px',
|
|
43
|
-
color: 'initial'
|
|
44
|
-
}
|
|
43
|
+
color: 'initial',
|
|
44
|
+
},
|
|
45
45
|
},
|
|
46
46
|
'&.MuiChip-filled': {
|
|
47
47
|
border: 'none',
|
|
48
48
|
fontWeight: 400,
|
|
49
|
-
color: muiTokens.palette.greyXDark
|
|
49
|
+
color: muiTokens.palette.greyXDark,
|
|
50
50
|
},
|
|
51
51
|
'&.MuiChip-outlined': {
|
|
52
52
|
border: '1px solid',
|
|
53
|
-
fontWeight: muiTokens.typography.fontWeightRegular
|
|
53
|
+
fontWeight: muiTokens.typography.fontWeightRegular,
|
|
54
54
|
},
|
|
55
55
|
'&.MuiChip-status': {
|
|
56
56
|
border: '1px solid !important',
|
|
57
|
-
fontWeight: muiTokens.typography.fontWeightRegular
|
|
57
|
+
fontWeight: muiTokens.typography.fontWeightRegular,
|
|
58
58
|
},
|
|
59
59
|
'&.MuiChip-statusFilled': {
|
|
60
60
|
border: 'none !important',
|
|
61
61
|
color: muiTokens.palette.greyXDark + ' !important',
|
|
62
|
-
fontWeight: muiTokens.typography.fontWeightRegular + ' !important'
|
|
62
|
+
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
63
63
|
},
|
|
64
64
|
'&.MuiChip-sizeSmall': {
|
|
65
65
|
height: '24px',
|
|
66
|
-
paddingY: '3px'
|
|
66
|
+
paddingY: '3px',
|
|
67
67
|
},
|
|
68
68
|
'&.MuiChip-sizeMedium': {
|
|
69
69
|
height: '33px',
|
|
70
|
-
paddingY: '8px'
|
|
70
|
+
paddingY: '8px',
|
|
71
71
|
},
|
|
72
72
|
'&.MuiChip-colorDefault': {
|
|
73
73
|
backgroundColor: muiTokens.palette.greyXLight,
|
|
74
74
|
border: 'none',
|
|
75
75
|
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
76
|
-
color: muiTokens.palette.greyXDark
|
|
76
|
+
color: muiTokens.palette.greyXDark,
|
|
77
77
|
},
|
|
78
78
|
'&.MuiChip-colorSecondary': {
|
|
79
79
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
80
80
|
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
81
|
-
backgroundColor: muiTokens.palette.white
|
|
81
|
+
backgroundColor: muiTokens.palette.white,
|
|
82
82
|
},
|
|
83
83
|
'&.MuiChip-colorPrimary': {
|
|
84
84
|
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
85
85
|
color: muiTokens.palette.white + ' !important',
|
|
86
86
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
87
87
|
'& .MuiChip-deleteIcon': {
|
|
88
|
-
color: muiTokens.palette.white + ' !important'
|
|
89
|
-
}
|
|
88
|
+
color: muiTokens.palette.white + ' !important',
|
|
89
|
+
},
|
|
90
90
|
},
|
|
91
91
|
'&.MuiChip-colorSuccess': {
|
|
92
92
|
border: '1px solid',
|
|
@@ -94,11 +94,11 @@ const ChipCss = (
|
|
|
94
94
|
color: muiTokens.palette.greenSuccess,
|
|
95
95
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
96
96
|
'& .MuiChip-avatar': {
|
|
97
|
-
color: muiTokens.palette.greenSuccess + ' !important'
|
|
97
|
+
color: muiTokens.palette.greenSuccess + ' !important',
|
|
98
98
|
},
|
|
99
99
|
'& .MuiChip-deleteIcon': {
|
|
100
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
101
|
-
}
|
|
100
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
101
|
+
},
|
|
102
102
|
},
|
|
103
103
|
'&.MuiChip-colorWarning': {
|
|
104
104
|
border: '1px solid',
|
|
@@ -106,11 +106,11 @@ const ChipCss = (
|
|
|
106
106
|
color: muiTokens.palette.orangeWarning,
|
|
107
107
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
108
108
|
'& .MuiChip-avatar': {
|
|
109
|
-
color: muiTokens.palette.orangeWarning + ' !important'
|
|
109
|
+
color: muiTokens.palette.orangeWarning + ' !important',
|
|
110
110
|
},
|
|
111
111
|
'& .MuiChip-deleteIcon': {
|
|
112
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
113
|
-
}
|
|
112
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
113
|
+
},
|
|
114
114
|
},
|
|
115
115
|
'&.MuiChip-colorInfo': {
|
|
116
116
|
border: '1px solid',
|
|
@@ -118,11 +118,11 @@ const ChipCss = (
|
|
|
118
118
|
color: muiTokens.palette.blueInfo,
|
|
119
119
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
120
120
|
'& .MuiChip-avatar': {
|
|
121
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
121
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
122
122
|
},
|
|
123
123
|
'& .MuiChip-deleteIcon': {
|
|
124
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
125
|
-
}
|
|
124
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
125
|
+
},
|
|
126
126
|
},
|
|
127
127
|
'&.MuiChip-colorError': {
|
|
128
128
|
border: '1px solid',
|
|
@@ -130,12 +130,12 @@ const ChipCss = (
|
|
|
130
130
|
color: muiTokens.palette.redError,
|
|
131
131
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
132
132
|
'& .MuiChip-avatar': {
|
|
133
|
-
color: muiTokens.palette.redError + ' !important'
|
|
133
|
+
color: muiTokens.palette.redError + ' !important',
|
|
134
134
|
},
|
|
135
135
|
'& .MuiChip-deleteIcon': {
|
|
136
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
137
|
-
}
|
|
138
|
-
}
|
|
136
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const DatatableCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'& .MuiTableContainer-root': {
|
|
6
6
|
backgroundColor: muiTokens.palette.white,
|
|
7
|
-
borderRadius: '4px'
|
|
7
|
+
borderRadius: '4px',
|
|
8
8
|
},
|
|
9
9
|
'& .MuiTableRow-root': {
|
|
10
10
|
height: '50px',
|
|
11
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder
|
|
11
|
+
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
12
12
|
},
|
|
13
13
|
'& .MuiTableRow-head': {
|
|
14
14
|
height: '40px !important',
|
|
15
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder
|
|
15
|
+
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
16
16
|
},
|
|
17
17
|
'& .MuiTableCell-head': {
|
|
18
18
|
padding: '0px 16px',
|
|
19
19
|
'& .firstSortIcon': {
|
|
20
|
-
paddingLeft: '4px'
|
|
21
|
-
}
|
|
20
|
+
paddingLeft: '4px',
|
|
21
|
+
},
|
|
22
22
|
},
|
|
23
23
|
'& .MuiTableCell-body': {
|
|
24
|
-
padding: '12px 16px'
|
|
25
|
-
}
|
|
24
|
+
padding: '12px 16px',
|
|
25
|
+
},
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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.
|
|
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
|
-
'&
|
|
168
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
'
|
|
188
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,
|