@@ -122,140 +122,6 @@ export const DataTableEllipsisMenu: React.FC<{
122
122
) ;
123
123
} ;
124
124
125
-
126
- const dataTableTheme = ( theme : Theme , backgroundColor ?: string ) =>
127
- createTheme ( {
128
- typography : {
129
- fontFamily : theme . typography . fontFamily
130
- } ,
131
- palette : {
132
- mode : theme . palette . mode ,
133
- text : {
134
- primary : theme . palette . text . default ,
135
- secondary : theme . palette . text . secondary
136
- } ,
137
- background : {
138
- default : backgroundColor || theme . palette . background ?. constant ?. table ,
139
- paper : backgroundColor || theme . palette . background ?. constant ?. table
140
- } ,
141
- border : { ...theme . palette . border } ,
142
- icon : { ...theme . palette . icon }
143
- } ,
144
- components : {
145
- MuiTableCell : {
146
- styleOverrides : {
147
- root : {
148
- borderBottom : `1px solid ${ theme . palette . border . default } `
149
- }
150
- }
151
- } ,
152
- MuiPaper : {
153
- styleOverrides : {
154
- root : {
155
- maxWidth : '100%'
156
- }
157
- }
158
- } ,
159
- MuiTable : {
160
- styleOverrides : {
161
- root : {
162
- width : '-webkit-fill-available' ,
163
- '@media (max-width: 500px)' : {
164
- wordWrap : 'break-word'
165
- }
166
- }
167
- }
168
- } ,
169
- MUIDataTableHeadCell : {
170
- styleOverrides : {
171
- data : {
172
- fontWeight : 'bold' ,
173
- textTransform : 'uppercase'
174
- } ,
175
- root : {
176
- fontWeight : 'bold' ,
177
- textTransform : 'uppercase'
178
- }
179
- }
180
- } ,
181
- MUIDataTableSearch : {
182
- styleOverrides : {
183
- main : {
184
- '@media (max-width: 600px)' : {
185
- justifyContent : 'center'
186
- }
187
- }
188
- }
189
- } ,
190
- MuiCheckbox : {
191
- styleOverrides : {
192
- root : {
193
- intermediate : false ,
194
- color : 'transparent' ,
195
- '&.Mui-checked' : {
196
- color : theme . palette . primary . main ,
197
- '& .MuiSvgIcon-root' : {
198
- width : '1.25rem' ,
199
- height : '1.25rem' ,
200
- borderColor : theme . palette . border . brand ,
201
- marginLeft : '0px' ,
202
- padding : '0px'
203
- }
204
- } ,
205
- '&.MuiCheckbox-indeterminate' : {
206
- color : theme . palette . background . brand ?. default
207
- } ,
208
- '& .MuiSvgIcon-root' : {
209
- width : '1.25rem' ,
210
- height : '1.25rem' ,
211
- border : `.75px solid ${ theme . palette . border . strong } ` ,
212
- borderRadius : '2px' ,
213
- padding : '0px'
214
- } ,
215
- '&:hover' : {
216
- backgroundColor : 'transparent'
217
- } ,
218
- '&.Mui-disabled' : {
219
- '&:hover' : {
220
- cursor : 'not-allowed'
221
- }
222
- }
223
- }
224
- }
225
- } ,
226
- MuiInput : {
227
- styleOverrides : {
228
- root : {
229
- '&:before' : {
230
- borderBottom : `2px solid ${ theme . palette . border . brand } `
231
- } ,
232
- '&.Mui-focused:after' : {
233
- borderBottom : `2px solid ${ theme . palette . border . brand } `
234
- } ,
235
- '&:hover:not(.Mui-disabled):before' : {
236
- borderBottom : `2px solid ${ theme . palette . border . brand } `
237
- }
238
- }
239
- }
240
- } ,
241
- MuiTableRow : {
242
- styleOverrides : {
243
- root : {
244
- '&.Mui-disabled' : {
245
- cursor : 'not-allowed'
246
- } ,
247
- '&:nth-of-type(even)' : {
248
- backgroundColor : theme . palette . action . hover
249
- } ,
250
- '&:nth-of-type(odd)' : {
251
- backgroundColor : theme . palette . background . default
252
- }
253
- }
254
- }
255
- }
256
- }
257
- } ) ;
258
-
259
125
export interface Column {
260
126
name : string ;
261
127
label : string ;
0 commit comments