@groupeactual/design-tokens 1.7.10 → 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.
Files changed (108) hide show
  1. package/dist/cjs/index.js +23 -1
  2. package/dist/es/index.d.ts +244 -63
  3. package/dist/es/index.js +23 -1
  4. package/dist/types/helpers/theme.helper.d.ts +5 -0
  5. package/dist/types/index.d.ts +2 -0
  6. package/dist/types/interfaces/theme.interface.d.ts +242 -0
  7. package/dist/types/styled/Accordion.d.ts +4 -0
  8. package/dist/types/styled/Alert.d.ts +4 -0
  9. package/dist/types/styled/Autocomplete.d.ts +4 -0
  10. package/dist/types/styled/Breadcrumbs.d.ts +4 -0
  11. package/dist/types/styled/Button.d.ts +4 -0
  12. package/dist/types/styled/Checkbox.d.ts +4 -0
  13. package/dist/types/styled/Chip.d.ts +4 -0
  14. package/dist/types/styled/Divider.d.ts +4 -0
  15. package/dist/types/styled/FormHelperText.d.ts +4 -0
  16. package/dist/types/styled/FormLabel.d.ts +4 -0
  17. package/dist/types/styled/IconButton.d.ts +4 -0
  18. package/dist/types/styled/InputLabel.d.ts +4 -0
  19. package/dist/types/styled/MenuItem.d.ts +4 -0
  20. package/dist/types/styled/OutlinedInput.d.ts +4 -0
  21. package/dist/types/styled/PaginationItem.d.ts +4 -0
  22. package/dist/types/styled/Radio.d.ts +4 -0
  23. package/dist/types/styled/Select.d.ts +4 -0
  24. package/dist/types/styled/Switch.d.ts +4 -0
  25. package/dist/types/styled/Table.d.ts +4 -0
  26. package/dist/types/styled/TextField.d.ts +4 -0
  27. package/dist/types/styled/Typography.d.ts +4 -0
  28. package/dist/types/theme/theme.d.ts +4 -0
  29. package/package.json +22 -14
  30. package/src/helpers/theme.helper.ts +229 -0
  31. package/src/index.ts +2 -4
  32. package/src/interfaces/theme.interface.ts +270 -0
  33. package/src/styled/Accordion.ts +49 -0
  34. package/src/styled/Alert.ts +83 -0
  35. package/src/styled/Autocomplete.ts +24 -0
  36. package/src/styled/Breadcrumbs.ts +29 -0
  37. package/src/styled/Button.ts +109 -0
  38. package/src/styled/Checkbox.ts +81 -0
  39. package/src/styled/Chip.ts +201 -0
  40. package/src/styled/Divider.ts +24 -0
  41. package/src/styled/FormHelperText.ts +28 -0
  42. package/src/styled/FormLabel.ts +30 -0
  43. package/src/styled/IconButton.ts +161 -0
  44. package/src/styled/InputLabel.ts +30 -0
  45. package/src/styled/MenuItem.ts +73 -0
  46. package/src/styled/OutlinedInput.ts +89 -0
  47. package/src/styled/PaginationItem.ts +72 -0
  48. package/src/styled/Radio.ts +67 -0
  49. package/src/styled/Select.ts +38 -0
  50. package/src/styled/Switch.ts +62 -0
  51. package/src/styled/Table.ts +54 -0
  52. package/src/styled/TextField.ts +105 -0
  53. package/src/styled/Typography.ts +67 -0
  54. package/src/theme/theme.tsx +23 -0
  55. package/src/tokens/tokens.json +667 -6
  56. package/dist/types/src/css/accordionCss.d.ts +0 -3
  57. package/dist/types/src/css/bannerNotificationCss.d.ts +0 -3
  58. package/dist/types/src/css/breadcrumbsCss.d.ts +0 -3
  59. package/dist/types/src/css/buttonCss.d.ts +0 -3
  60. package/dist/types/src/css/chipCss.d.ts +0 -3
  61. package/dist/types/src/css/datatable/datatableCss.d.ts +0 -3
  62. package/dist/types/src/css/form/autoCompleteCss.d.ts +0 -3
  63. package/dist/types/src/css/form/checkboxCss.d.ts +0 -3
  64. package/dist/types/src/css/form/checkboxGroupCss.d.ts +0 -3
  65. package/dist/types/src/css/form/datePickerCss.d.ts +0 -3
  66. package/dist/types/src/css/form/radioCss.d.ts +0 -3
  67. package/dist/types/src/css/form/selectCss.d.ts +0 -3
  68. package/dist/types/src/css/form/snackbarCss.d.ts +0 -3
  69. package/dist/types/src/css/form/textFieldCss.d.ts +0 -3
  70. package/dist/types/src/css/iconButtonCss.d.ts +0 -3
  71. package/dist/types/src/css/index.d.ts +0 -20
  72. package/dist/types/src/css/linkCss.d.ts +0 -3
  73. package/dist/types/src/css/menuItemCss.d.ts +0 -3
  74. package/dist/types/src/css/paginationCss.d.ts +0 -3
  75. package/dist/types/src/css/switchCss.d.ts +0 -3
  76. package/dist/types/src/css/tooltipCss.d.ts +0 -2
  77. package/dist/types/src/helpers/theme.d.ts +0 -4
  78. package/dist/types/src/index.d.ts +0 -4
  79. package/dist/types/src/interfaces/theme.d.ts +0 -16
  80. package/dist/types/src/themes/tokens.d.ts +0 -167
  81. package/dist/types/src/useMaterialThemeTokens.d.ts +0 -6
  82. package/dist/types/src/useThemeTokens.d.ts +0 -6
  83. package/src/css/accordionCss.ts +0 -30
  84. package/src/css/bannerNotificationCss.ts +0 -52
  85. package/src/css/breadcrumbsCss.ts +0 -19
  86. package/src/css/buttonCss.ts +0 -80
  87. package/src/css/chipCss.ts +0 -142
  88. package/src/css/datatable/datatableCss.ts +0 -32
  89. package/src/css/form/autoCompleteCss.ts +0 -340
  90. package/src/css/form/checkboxCss.ts +0 -128
  91. package/src/css/form/checkboxGroupCss.ts +0 -42
  92. package/src/css/form/datePickerCss.ts +0 -117
  93. package/src/css/form/radioCss.ts +0 -102
  94. package/src/css/form/selectCss.ts +0 -233
  95. package/src/css/form/snackbarCss.ts +0 -42
  96. package/src/css/form/textFieldCss.ts +0 -188
  97. package/src/css/iconButtonCss.ts +0 -64
  98. package/src/css/index.ts +0 -20
  99. package/src/css/linkCss.ts +0 -15
  100. package/src/css/menuItemCss.ts +0 -31
  101. package/src/css/paginationCss.ts +0 -59
  102. package/src/css/switchCss.ts +0 -58
  103. package/src/css/tooltipCss.ts +0 -5
  104. package/src/helpers/theme.ts +0 -89
  105. package/src/interfaces/theme.ts +0 -34
  106. package/src/themes/tokens.ts +0 -169
  107. package/src/useMaterialThemeTokens.ts +0 -218
  108. package/src/useThemeTokens.ts +0 -30
@@ -1,102 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const RadioCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiFormControl-root': {
6
- '.MuiRadio-root': {
7
- '.MuiSvgIcon-root': {
8
- flexShrink: 0,
9
- zIndex: 1,
10
- height: '16px',
11
- width: '16px',
12
- color: muiTokens.palette.greyMediumInactive,
13
- },
14
- height: '16px',
15
- width: '16px',
16
- marginRight: '4px',
17
- '&:hover': {
18
- '.MuiSvgIcon-root': {
19
- color: muiTokens.palette.blueHoverClickable + ' !important',
20
- },
21
- },
22
- },
23
- '.MuiBox-root .itemIcon svg': {
24
- top: '1px',
25
- position: 'relative',
26
- },
27
- '.MuiFormControlLabel-root': {
28
- margin: '0px 0px 4px 0px',
29
- color: muiTokens.palette.greyXDark,
30
- alignItems: 'self-start',
31
- },
32
- '.MuiFormControlLabel-label': {
33
- fontWeight: '400',
34
- fontSize: '14px',
35
- position: 'relative',
36
- },
37
- '.MuiButtonBase-root': {
38
- color: muiTokens.palette.greyLightDefaultBorder,
39
- '&.Mui-checked': {
40
- color: muiTokens.palette.blueClickable,
41
- '& .MuiSvgIcon-root': {
42
- color: muiTokens.palette.blueClickable,
43
- },
44
- },
45
- },
46
- '.MuiFormLabel-root': {
47
- color: muiTokens.palette.greyXDark,
48
- fontWeight: '500',
49
- fontSize: '13px',
50
- paddingBottom: '4px',
51
- paddingLeft: '2px',
52
- },
53
- '.MuiFormHelperText-root': {
54
- margin: '0px',
55
- paddingTop: '4px',
56
- color: muiTokens.palette.greyDark,
57
- fontSize: '11px',
58
- },
59
- '&.Mui-disabled': {
60
- '.MuiFormLabel-root': {
61
- color: muiTokens.palette.greyDark,
62
- },
63
- '.MuiTypography-root': {
64
- color: muiTokens.palette.greyDark,
65
- },
66
- '.MuiFormControlLabel-label': {
67
- color: muiTokens.palette.greyDark,
68
- },
69
- '.MuiButtonBase-root': {
70
- backgroundColor: muiTokens.palette.greyXLight,
71
- transform: 'scale(0.7)',
72
- '& span': {
73
- transform: 'scale(1.4)',
74
- },
75
- '& .MuiSvgIcon-root': {
76
- color: muiTokens.palette.greyLightDefaultBorder,
77
- },
78
- '&.Mui-checked .MuiSvgIcon-root': {
79
- color: muiTokens.palette.greyMediumInactive,
80
- },
81
- },
82
- },
83
- '&.Mui-error': {
84
- '.MuiFormLabel-root': {
85
- color: muiTokens.palette.redError,
86
- },
87
- '.MuiFormHelperText-root': {
88
- color: muiTokens.palette.redError + ' !important',
89
- },
90
- },
91
- '.MuiTouchRipple-root': {
92
- background: 'white',
93
- height: '16px',
94
- width: '16px',
95
- zIndex: 0,
96
- left: '3px',
97
- },
98
- },
99
- };
100
- };
101
-
102
- export default RadioCss;
@@ -1,233 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const SelectCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiFormControl-root': {
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
- },
21
- '.MuiInputBase-root': {
22
- height: '44px',
23
- padding: 0 + ' !important',
24
- backgroundColor: muiTokens.palette.white,
25
- '.SelectIcon': {
26
- marginTop: '-2px',
27
- color: muiTokens.palette.blueClickable + ' !important',
28
- },
29
- },
30
- '.MuiFormLabel-root.Mui-focused': {
31
- transform: 'translate(14px, -7px) scale(0.75) !important',
32
- },
33
- '.MuiFormLabel-filled': {
34
- transform: 'translate(14px, -7px) scale(0.75) !important',
35
- },
36
- '.MuiFormLabel-root.Mui-Input-filled': {
37
- transform: 'translate(14px, -7px) scale(0.75) !important',
38
- },
39
- '.MuiInputLabel-root': {
40
- marginTop: '2px',
41
- },
42
- '& label': {
43
- color: muiTokens.palette.greyDark,
44
- },
45
- '&.Mui-filled': {
46
- '& label': {
47
- color: muiTokens.palette.greyXDark,
48
- },
49
- },
50
- '&.DsMultiSelect': {
51
- '&.Mui-filled': {
52
- '.MuiInputBase-root': {
53
- minHeight: '44px',
54
- height: 'auto !important',
55
- },
56
- },
57
- '.MuiOutlinedInput-input': {
58
- padding: '8px 12px 7px 8px !important',
59
- },
60
- },
61
- '.Mui-disabled': {
62
- '.MuiOutlinedInput-notchedOutline': {
63
- '-webkit-text-fill-color': muiTokens.palette.greyDark,
64
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
65
- },
66
- },
67
- '.MuiOutlinedInput-notchedOutline': {
68
- borderWidth: '1px !important',
69
- borderColor: muiTokens.palette.greyLightDefaultBorder,
70
- fontSize: '16px',
71
- },
72
- '.Mui-focused .MuiOutlinedInput-notchedOutline': {
73
- borderWidth: '1px',
74
- borderColor: muiTokens.palette.blueClickable,
75
- },
76
- '&.Mui-error': {
77
- '.MuiOutlinedInput-notchedOutline': {
78
- borderColor: muiTokens.palette.redError + ' !important',
79
- },
80
- },
81
- '.clear': {
82
- visibility: 'hidden',
83
- alignSelf: 'center',
84
- position: 'relative',
85
- marginTop: '3px',
86
- marginRight: '-8px',
87
- },
88
-
89
- '& .MuiSelect-select .notranslate::after': {
90
- fontWeight: 400,
91
- lineHeight: '18px',
92
- fontSize: '14px',
93
- color: muiTokens.palette.greyDark + ' !important',
94
- },
95
- '&.Select-mui': {
96
- '&.Mui-filled': {
97
- '.MuiOutlinedInput-input': {
98
- fontSize: '14px',
99
- lineHeight: '18px',
100
- fontWeight: 400,
101
- padding: '13px 2px 11px 8px',
102
- '&.Mui-disabled': {
103
- color: muiTokens.palette.greyDark,
104
- },
105
- },
106
- },
107
- '.MuiInputLabel-root': {
108
- transform: 'translate(8px, 16px) scale(1)',
109
- fontSize: '14px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
110
- lineHeight: '18px',
111
- height: '20px',
112
- fontWeight: 400,
113
- marginTop: '-3px',
114
- '&.Mui-disabled': {
115
- color: muiTokens.palette.greyDark,
116
- },
117
- '&.Mui-error': {
118
- color: `${muiTokens.palette.redError} !important`,
119
- },
120
- '&.Mui-focused': {
121
- lineHeight: '16px',
122
- fontWeight: 500,
123
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
124
- marginTop: '2px !important',
125
- color: muiTokens.palette.blueClickable,
126
- transform: 'translate(14px, -7px) scale(0.75)',
127
- '&.Mui-error': {
128
- color: `${muiTokens.palette.redError} !important`,
129
- },
130
- '&.Mui-success': {
131
- color: muiTokens.palette.greenSuccess,
132
- },
133
- },
134
- },
135
- '.MuiOutlinedInput-input': {
136
- fontSize: '14px',
137
- lineHeight: '18px',
138
- fontWeight: 400,
139
- padding: '13px 2px 11px 8px',
140
- '&.Mui-disabled': {
141
- color: muiTokens.palette.greyDark,
142
- WebkitTextFillColor: muiTokens.palette.greyDark,
143
- },
144
- },
145
- },
146
- '.SelectIcon': {
147
- color: muiTokens.palette.blueClickable,
148
- marginRight: '9px',
149
- },
150
- '.MuiFormHelperText-root': {
151
- fontWeight: 400,
152
- fontSize: '11px',
153
- color: muiTokens.palette.greyDark,
154
- marginLeft: '8px',
155
- marginRight: '8px',
156
- marginTop: '8px',
157
- lineHeight: '12px',
158
- '&.Mui-error': {
159
- color: muiTokens.palette.redError,
160
- },
161
- },
162
- '.MuiOutlinedInput-input': {
163
- fontSize: '14px',
164
- lineHeight: '18px',
165
- fontWeight: 400,
166
- padding: '12px 31px 11px 14px',
167
- '&.Mui-disabled': {
168
- color: muiTokens.palette.greyDark,
169
- },
170
- '&::placeholder': {
171
- color: `${muiTokens.palette.greyDark as string} !important`,
172
- opacity: 1 + ' !important',
173
- fontWeight: 400,
174
- lineHeight: '18px',
175
- fontSize: '14px',
176
- },
177
- },
178
- '&.Select-ds': {
179
- '.MuiInputLabel-root': {
180
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
181
- lineHeight: '16px',
182
- height: '20px',
183
- fontWeight: 500,
184
- transform: 'translate(14px, -7px) scale(0.75)',
185
- color: muiTokens.palette.greyDark,
186
- '&.Mui-error': {
187
- color: muiTokens.palette.redError + ' !important',
188
- },
189
- '&.Mui-disabled': {
190
- color: muiTokens.palette.greyDark + ' !important',
191
- '-webkit-text-fill-color': muiTokens.palette.greyDark,
192
- },
193
- '&.Mui-focused': {
194
- lineHeight: '16px',
195
- color: muiTokens.palette.blueClickable,
196
- fontWeight: 500,
197
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
198
- },
199
- },
200
- },
201
- '.MuiFormLabel-colorSuccess': {
202
- color: muiTokens.palette.greenSuccess + ' !important',
203
- },
204
- '.MuiInputBase-colorSuccess': {
205
- '.SelectIcon': {
206
- color: muiTokens.palette.greenSuccess + ' !important',
207
- marginTop: '2px',
208
- },
209
- '.MuiOutlinedInput-notchedOutline': {
210
- border: '1px solid',
211
- fontSize: '16px',
212
- borderColor: muiTokens.palette.greenSuccess,
213
- },
214
- },
215
- '.MuiChip-root': {
216
- height: '24px',
217
- },
218
- '.SelectIcon.Mui-disabled': {
219
- color: muiTokens.palette.greyMediumInactive + ' !important',
220
- },
221
- },
222
- '.MuiFormLabel-filled': {
223
- lineHeight: '16px !important',
224
- color: muiTokens.palette.greyDark,
225
- fontWeight: '500 !important',
226
- fontSize: '16px !important', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
227
- marginTop: '2px !important',
228
- transform: 'translate(14px, -7px) scale(0.75)',
229
- },
230
- };
231
- };
232
-
233
- export default SelectCss;
@@ -1,42 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const SnackbarCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiPaper-root': {
6
- padding: '8px 16px 8px 16px',
7
- '&.MuiAlert-root': {
8
- color: 'white',
9
- fontWeight: '700',
10
- fontSize: '14px',
11
- width: '350px',
12
- },
13
- '.MuiAlert-message': {
14
- padding: '0px',
15
- },
16
- '&.MuiAlert-standardSuccess': {
17
- backgroundColor: muiTokens.palette.greenSuccess,
18
- },
19
- '&.MuiAlert-standardWarning': {
20
- backgroundColor: muiTokens.palette.orangeWarning,
21
- },
22
- '&.MuiAlert-standardError': {
23
- backgroundColor: muiTokens.palette.redError,
24
- },
25
- '&.MuiAlert-standardInfo': {
26
- backgroundColor: muiTokens.palette.blueInfo,
27
- },
28
- '.MuiAlert-icon': {
29
- alignSelf: 'center',
30
- height: '16px',
31
- marginRight: '16px',
32
- alignItems: 'center',
33
- opacity: 1,
34
- },
35
- '.MuiSvgIcon-root': {
36
- color: 'white',
37
- },
38
- },
39
- };
40
- };
41
-
42
- export default SnackbarCss;
@@ -1,188 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const TextFieldCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&:hover': {
6
- '.MuiOutlinedInput-notchedOutline': {
7
- borderColor: muiTokens.palette.greyDark + ' !important',
8
- },
9
- },
10
- '.Mui-focused .MuiOutlinedInput-notchedOutline': {
11
- borderColor: muiTokens.palette.blueClickable + ' !important',
12
- },
13
- '.Mui-error .MuiOutlinedInput-notchedOutline': {
14
- borderColor: muiTokens.palette.redError + ' !important',
15
- },
16
- '.Mui-disabled': {
17
- '.MuiSvgIcon-root': {
18
- color: muiTokens.palette.greyMediumInactive,
19
- },
20
- '.MuiOutlinedInput-notchedOutline': {
21
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
22
- },
23
- },
24
- '&.MuiTextField-root': {
25
- '.MuiInputBase-root': {
26
- backgroundColor: muiTokens.palette.white,
27
- },
28
- '.MuiInputLabel-root': {
29
- '&.Mui-error': {
30
- color: muiTokens.palette.redError + ' !important',
31
- },
32
- fontWeight: 500,
33
- transform: 'translate(8px, 16px) scale(1)',
34
- },
35
- '&.Mui-success': {
36
- '.MuiOutlinedInput-notchedOutline': {
37
- borderColor: muiTokens.palette.greenSuccess + ' !important',
38
- },
39
- '.MuiFormLabel-root': {
40
- color: muiTokens.palette.greenSuccess + ' !important',
41
- },
42
- },
43
- '.Mui-focused.MuiOutlinedInput-notchedOutline': {
44
- borderColor: muiTokens.palette.blueClickable,
45
- },
46
- '.MuiOutlinedInput-notchedOutline': {
47
- borderWidth: '1px !important',
48
- fontSize: '16px',
49
- },
50
- '.MuiFormLabel-colorSuccess': {
51
- color: muiTokens.palette.greenSuccess,
52
- },
53
- '&.TextField-ds': {
54
- '.MuiInputLabel-root': {
55
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
56
- lineHeight: '16px',
57
- height: '16px',
58
- fontWeight: 500,
59
- transform: 'translate(14px, -7px) scale(0.75)',
60
- color: muiTokens.palette.greyXDark,
61
- '&.Mui-disabled': {
62
- color: muiTokens.palette.greyDark,
63
- },
64
- '&.Mui-focused': {
65
- color: muiTokens.palette.blueClickable,
66
- },
67
- },
68
- },
69
- '&.TextField-mui': {
70
- '.MuiInputLabel-root': {
71
- fontSize: '14px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
72
- lineHeight: '18px',
73
- height: '16px',
74
- color: `${muiTokens.palette.greyDark as string}`,
75
- fontWeight: 400,
76
- marginTop: '-3px',
77
- '&.MuiFormLabel-filled': {
78
- lineHeight: '16px',
79
- color: muiTokens.palette.greyXDark,
80
- fontWeight: 500,
81
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
82
- marginTop: '2px',
83
- transform: 'translate(14px, -7px) scale(0.75)',
84
- },
85
- '&.Mui-disabled': {
86
- color: muiTokens.palette.greyDark,
87
- },
88
- '&.Mui-focused': {
89
- lineHeight: '16px',
90
- fontWeight: 500,
91
- fontSize: '16px', // bug fontsize limited max to 16px : https://github.com/mui/material-ui/issues/26607
92
- color: muiTokens.palette.blueClickable,
93
- marginTop: '2px',
94
- transform: 'translate(14px, -7px) scale(0.75)',
95
- },
96
- '&.MuiFormLabel-colorSuccess': {
97
- '&.Mui-focused': {
98
- color: muiTokens.palette.greenSuccess + ' !important',
99
- },
100
- },
101
- },
102
- },
103
- '& input[type=number]': {
104
- MozAppearance: 'textfield',
105
- },
106
- '& input[type=number]::-webkit-outer-spin-button': {
107
- WebkitAppearance: 'none',
108
- margin: 0,
109
- },
110
- '& input[type=number]::-webkit-inner-spin-button': {
111
- WebkitAppearance: 'none',
112
- margin: 0,
113
- },
114
- '.DsTextField-passwordIcon': {
115
- cursor: 'pointer',
116
- },
117
- '.MuiFormHelperText-root': {
118
- fontWeight: 400,
119
- fontSize: '11px',
120
- marginLeft: '8px',
121
- marginRight: '8px',
122
- marginTop: '8px',
123
- lineHeight: '12px',
124
- color: muiTokens.palette.greyDark,
125
- '&.Mui-error': {
126
- color: muiTokens.palette.redError,
127
- },
128
- },
129
- '.MuiInputBase-root.Mui-disabled': {
130
- backgroundColor: muiTokens.palette.greyXLight,
131
- },
132
- 'textarea.MuiOutlinedInput-input': {
133
- paddingBottom: '1px !important',
134
- },
135
- '.MuiOutlinedInput-input': {
136
- fontSize: '14px',
137
- lineHeight: '18px',
138
- fontWeight: 400,
139
- padding: '12px 8px !important',
140
- height: '20px',
141
- color: muiTokens.palette.greyXDark,
142
- '&::placeholder': {
143
- color: `${muiTokens.palette.greyDark as string} !important`,
144
- opacity: 1 + ' !important',
145
- fontWeight: 400,
146
- lineHeight: '18px',
147
- fontSize: '14px',
148
- },
149
- '&.Mui-disabled': {
150
- backgroundColor: muiTokens.palette.greyXLight,
151
- color: muiTokens.palette.greyDark,
152
- WebkitTextFillColor: muiTokens.palette.greyDark,
153
- },
154
- '&.TextField-mui': {
155
- fontSize: '14px',
156
- lineHeight: '18px',
157
- fontWeight: 400,
158
- padding: '12px 8px !important',
159
- height: '20px',
160
- color: muiTokens.palette.greyXDark,
161
- '&::placeholder': {
162
- color: `${muiTokens.palette.greyDark as string} !important`,
163
- opacity: 1 + ' !important',
164
- fontWeight: 400,
165
- lineHeight: '18px',
166
- fontSize: '14px',
167
- },
168
- '&.Mui-disabled': {
169
- backgroundColor: muiTokens.palette.greyXLight,
170
- color: muiTokens.palette.greyDark,
171
- WebkitTextFillColor: muiTokens.palette.greyDark,
172
- },
173
- },
174
- },
175
- '.MuiOutlinedInput-root': {
176
- padding: '0px !important',
177
- '& fieldset': {
178
- borderWidth: '1px !important',
179
- },
180
- '.MuiSvgIcon-root': {
181
- marginLeft: '-22px',
182
- },
183
- },
184
- },
185
- };
186
- };
187
-
188
- export default TextFieldCss;
@@ -1,64 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const IconButtonCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiIconButton-root': {
6
- borderRadius: '4px',
7
- '& .MuiTouchRipple-root .MuiTouchRipple-child': {
8
- borderRadius: '4px',
9
- },
10
- ':hover': {
11
- '& .MuiSvgIcon-root': {
12
- color: muiTokens.palette.blueHoverClickable,
13
- },
14
- },
15
- '&.Mui-disabled': {
16
- '& .MuiSvgIcon-root': {
17
- color: muiTokens.palette.greyMediumInactive,
18
- },
19
- },
20
- '&.IconButtonVariant-default': {
21
- width: '44px !important',
22
- height: '44px !important',
23
- border: '1px solid',
24
- borderColor: muiTokens.palette.greyLightDefaultBorder,
25
- '&:hover': {
26
- borderColor: muiTokens.palette.blueHoverClickable,
27
- backgroundColor: muiTokens.palette.white,
28
- },
29
- },
30
- '&.IconButtonVariant-table': {
31
- width: '42px !important',
32
- height: '42px !important',
33
- border: '0px',
34
- '&:hover': {
35
- backgroundColor: muiTokens.palette.blueHoverOpacity12,
36
- },
37
- },
38
- '&.IconButtonPositionGroup-left': {
39
- borderRadius: '4px 0px 0px 4px',
40
- '& .MuiTouchRipple-root .MuiTouchRipple-child': {
41
- borderRadius: '4px 0px 0px 4px',
42
- },
43
- },
44
- '&.IconButtonPositionGroup-middle': {
45
- borderRadius: '0px',
46
- '& .MuiTouchRipple-root .MuiTouchRipple-child': {
47
- borderRadius: '0px',
48
- },
49
- },
50
- '&.IconButtonPositionGroup-right': {
51
- borderRadius: '0px 4px 4px 0px',
52
- '& .MuiTouchRipple-root .MuiTouchRipple-child': {
53
- borderRadius: '0px 4px 4px 0px',
54
- },
55
- },
56
- '&.IconButtonSize-small': {
57
- width: '24px !important',
58
- height: '24px !important',
59
- },
60
- },
61
- };
62
- };
63
-
64
- export default IconButtonCss;
package/src/css/index.ts DELETED
@@ -1,20 +0,0 @@
1
- export { default as AccordionStyle } from './accordionCss';
2
- export { default as ButtonStyle } from './buttonCss';
3
- export { default as TooltipStyle } from './tooltipCss';
4
- export { default as ChipStyle } from './chipCss';
5
- export { default as PaginationStyle } from './paginationCss';
6
- export { default as BannerNotificationStyle } from './bannerNotificationCss';
7
- export { default as AutoCompleteStyle } from './form/autoCompleteCss';
8
- export { default as CheckboxStyle } from './form/checkboxCss';
9
- export { default as CheckboxGroupStyle } from './form/checkboxGroupCss';
10
- export { default as RadioStyle } from './form/radioCss';
11
- export { default as SelectStyle } from './form/selectCss';
12
- export { default as SnackbarStyle } from './form/snackbarCss';
13
- export { default as TextFieldStyle } from './form/textFieldCss';
14
- export { default as LinkStyle } from './linkCss';
15
- export { default as BreadcrumbsStyle } from './breadcrumbsCss';
16
- export { default as SwitchStyle } from './switchCss';
17
- export { default as DatePickerStyle } from './form/datePickerCss';
18
- export { default as DatatableStyle } from './datatable/datatableCss';
19
- export { default as IconButtonStyle } from './iconButtonCss';
20
- export { default as MenuItemStyle } from './menuItemCss';
@@ -1,15 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const LinkCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiLink-root': {
6
- color: muiTokens.palette.blueClickable,
7
- cursor: 'pointer',
8
- },
9
- '&:hover': {
10
- color: muiTokens.palette.blueHoverClickable + ' !important',
11
- },
12
- };
13
- };
14
-
15
- export default LinkCss;