@m4l/graphics 0.0.15 → 0.0.19

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 (83) hide show
  1. package/dist/commonjs.js +1 -0
  2. package/dist/components/Page/index.js +31 -0
  3. package/dist/components/ProgressBarStyle/index.js +34 -0
  4. package/dist/components/index.js +4 -1318
  5. package/dist/contexts/HostThemeContext/index.js +71 -0
  6. package/dist/contexts/LocalesContext/index.js +46 -0
  7. package/dist/contexts/index.js +3 -174
  8. package/dist/hooks/index.js +6 -40
  9. package/dist/hooks/useHostTheme/index.js +9 -0
  10. package/dist/hooks/useLocales/index.js +9 -0
  11. package/dist/hooks/useResponsive/index.js +26 -0
  12. package/dist/index.js +19 -1654
  13. package/dist/lib/components/Page/index.d.ts +3 -9
  14. package/dist/lib/components/Page/types.d.ts +7 -0
  15. package/dist/lib/components/{ProgressBar → ProgressBarStyle}/index.d.ts +0 -1
  16. package/dist/lib/components/index.d.ts +1 -6
  17. package/dist/lib/hooks/useHostTheme/index.d.ts +1 -0
  18. package/dist/lib/hooks/useLocales/index.d.ts +1 -0
  19. package/dist/lib/hooks/{useResponsive.d.ts → useResponsive/index.d.ts} +0 -0
  20. package/dist/lib/index.d.ts +0 -1
  21. package/dist/lib/theme/palette.d.ts +1 -2
  22. package/dist/react-helmet-async-invariant.js +19 -0
  23. package/dist/react-helmet-async-react-fast-compare.js +90 -0
  24. package/dist/react-helmet-async-shallowequal.js +32 -0
  25. package/dist/react-helmet-async.js +363 -0
  26. package/dist/theme/index.js +1553 -0
  27. package/dist/utils/index.js +91 -0
  28. package/package.json +3 -9
  29. package/dist/components/mui_extended/index.js +0 -53
  30. package/dist/layouts/index.js +0 -39
  31. package/dist/lib/components/CompanyLogo/index.d.ts +0 -3
  32. package/dist/lib/components/CompanyLogo/styles.d.ts +0 -5
  33. package/dist/lib/components/CompanyLogo/types.d.ts +0 -6
  34. package/dist/lib/components/Image/index.d.ts +0 -3
  35. package/dist/lib/components/Image/styles.d.ts +0 -5
  36. package/dist/lib/components/Image/types.d.ts +0 -19
  37. package/dist/lib/components/LanguagePopover/index.d.ts +0 -3
  38. package/dist/lib/components/LanguagePopover/types.d.ts +0 -3
  39. package/dist/lib/components/LinkWithRoute/index.d.ts +0 -3
  40. package/dist/lib/components/LinkWithRoute/types.d.ts +0 -7
  41. package/dist/lib/components/Loadable/index.d.ts +0 -2
  42. package/dist/lib/components/Typography/index.d.ts +0 -3
  43. package/dist/lib/components/Typography/types.d.ts +0 -5
  44. package/dist/lib/components/animate/DialogAnimate.d.ts +0 -7
  45. package/dist/lib/components/animate/FabButtonAnimate.d.ts +0 -8
  46. package/dist/lib/components/animate/IconButtonAnimate/index.d.ts +0 -4
  47. package/dist/lib/components/animate/MotionContainer.d.ts +0 -10
  48. package/dist/lib/components/animate/MotionInView.d.ts +0 -9
  49. package/dist/lib/components/animate/MotionLazyContainer.d.ts +0 -6
  50. package/dist/lib/components/animate/TextAnimate.d.ts +0 -9
  51. package/dist/lib/components/animate/index.d.ts +0 -8
  52. package/dist/lib/components/animate/type.d.ts +0 -26
  53. package/dist/lib/components/animate/variants/actions.d.ts +0 -5
  54. package/dist/lib/components/animate/variants/background.d.ts +0 -104
  55. package/dist/lib/components/animate/variants/bounce.d.ts +0 -136
  56. package/dist/lib/components/animate/variants/container.d.ts +0 -19
  57. package/dist/lib/components/animate/variants/fade.d.ts +0 -217
  58. package/dist/lib/components/animate/variants/flip.d.ts +0 -75
  59. package/dist/lib/components/animate/variants/index.d.ts +0 -12
  60. package/dist/lib/components/animate/variants/path.d.ts +0 -14
  61. package/dist/lib/components/animate/variants/rotate.d.ts +0 -39
  62. package/dist/lib/components/animate/variants/scale.d.ts +0 -75
  63. package/dist/lib/components/animate/variants/slide.d.ts +0 -155
  64. package/dist/lib/components/animate/variants/transition.d.ts +0 -13
  65. package/dist/lib/components/animate/variants/zoom.d.ts +0 -199
  66. package/dist/lib/components/mui_extended/LoadingButton/index.d.ts +0 -3
  67. package/dist/lib/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
  68. package/dist/lib/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  69. package/dist/lib/components/mui_extended/LoadingButton/types.d.ts +0 -5
  70. package/dist/lib/components/mui_extended/Typography/index.d.ts +0 -3
  71. package/dist/lib/components/mui_extended/Typography/types.d.ts +0 -5
  72. package/dist/lib/components/mui_extended/index.d.ts +0 -37
  73. package/dist/lib/hooks/useHostTheme.d.ts +0 -1
  74. package/dist/lib/hooks/useLocales.d.ts +0 -1
  75. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/index.d.ts +0 -3
  76. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/styles.d.ts +0 -13
  77. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/types.d.ts +0 -4
  78. package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/index.d.ts +0 -5
  79. package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/types.d.ts +0 -12
  80. package/dist/lib/layouts/NoAuthModuleLayout/index.d.ts +0 -3
  81. package/dist/lib/layouts/NoAuthModuleLayout/types.d.ts +0 -11
  82. package/dist/lib/layouts/index.d.ts +0 -1
  83. package/dist/node_modules.js +0 -150
@@ -0,0 +1,1553 @@
1
+ import { alpha } from "@mui/material/styles";
2
+ import { p as pxToRem, r as responsiveFontSizes, g as getColorPresets } from "../utils/index.js";
3
+ import { alpha as alpha$1 } from "@mui/material";
4
+ const FONT_PRIMARY = "Public Sans, sans-serif";
5
+ const typography = {
6
+ fontFamily: FONT_PRIMARY,
7
+ fontWeightRegular: 400,
8
+ fontWeightMedium: 600,
9
+ fontWeightBold: 700,
10
+ h1: {
11
+ fontWeight: 700,
12
+ lineHeight: 80 / 64,
13
+ fontSize: pxToRem(40),
14
+ letterSpacing: 2,
15
+ ...responsiveFontSizes({ sm: 52, md: 58, lg: 64 })
16
+ },
17
+ h2: {
18
+ fontWeight: 700,
19
+ lineHeight: 64 / 48,
20
+ fontSize: pxToRem(32),
21
+ ...responsiveFontSizes({ sm: 40, md: 44, lg: 48 })
22
+ },
23
+ h3: {
24
+ fontWeight: 700,
25
+ lineHeight: 1.5,
26
+ fontSize: pxToRem(24),
27
+ ...responsiveFontSizes({ sm: 26, md: 30, lg: 32 })
28
+ },
29
+ h4: {
30
+ fontWeight: 700,
31
+ lineHeight: 1.5,
32
+ fontSize: pxToRem(20),
33
+ ...responsiveFontSizes({ sm: 20, md: 24, lg: 24 })
34
+ },
35
+ h5: {
36
+ fontWeight: 700,
37
+ lineHeight: 1.5,
38
+ fontSize: pxToRem(18),
39
+ ...responsiveFontSizes({ sm: 19, md: 20, lg: 20 })
40
+ },
41
+ h6: {
42
+ fontWeight: 700,
43
+ lineHeight: 28 / 18,
44
+ fontSize: pxToRem(17),
45
+ ...responsiveFontSizes({ sm: 18, md: 18, lg: 18 })
46
+ },
47
+ subtitle1: {
48
+ fontWeight: 600,
49
+ lineHeight: 1.5,
50
+ fontSize: pxToRem(14)
51
+ },
52
+ subtitle2: {
53
+ fontWeight: 600,
54
+ lineHeight: 1.5,
55
+ fontSize: pxToRem(12)
56
+ },
57
+ body0: {
58
+ lineHeight: 1.5,
59
+ fontWeight: 400,
60
+ fontSize: pxToRem(16)
61
+ },
62
+ body1: {
63
+ lineHeight: 1.5,
64
+ fontWeight: 400,
65
+ fontSize: pxToRem(14)
66
+ },
67
+ body2: {
68
+ lineHeight: 1.5,
69
+ fontWeight: 400,
70
+ fontSize: pxToRem(12)
71
+ },
72
+ caption: {
73
+ lineHeight: 1.5,
74
+ fontSize: pxToRem(11)
75
+ },
76
+ overline: {
77
+ fontWeight: 700,
78
+ lineHeight: 1.5,
79
+ fontSize: pxToRem(12),
80
+ textTransform: "uppercase"
81
+ },
82
+ button: {
83
+ fontWeight: 700,
84
+ lineHeight: 24 / 14,
85
+ fontSize: pxToRem(14),
86
+ textTransform: "capitalize"
87
+ }
88
+ };
89
+ function createGradient(color1, color2) {
90
+ return `linear-gradient(to bottom, ${color1}, ${color2})`;
91
+ }
92
+ const PRIMARY = {
93
+ lighter: "#C8FACD",
94
+ light: "#5BE584",
95
+ main: "#00AB55",
96
+ dark: "#007B55",
97
+ darker: "#005249"
98
+ };
99
+ const SECONDARY = {
100
+ lighter: "#D6E4FF",
101
+ light: "#84A9FF",
102
+ main: "#3366FF",
103
+ dark: "#1939B7",
104
+ darker: "#091A7A"
105
+ };
106
+ const INFO = {
107
+ lighter: "#D0F2FF",
108
+ light: "#74CAFF",
109
+ main: "#1890FF",
110
+ dark: "#0C53B7",
111
+ darker: "#04297A"
112
+ };
113
+ const SUCCESS = {
114
+ lighter: "#E9FCD4",
115
+ light: "#AAF27F",
116
+ main: "#54D62C",
117
+ dark: "#229A16",
118
+ darker: "#08660D"
119
+ };
120
+ const WARNING = {
121
+ lighter: "#FFF7CD",
122
+ light: "#FFE16A",
123
+ main: "#FFC107",
124
+ dark: "#B78103",
125
+ darker: "#7A4F01"
126
+ };
127
+ const ERROR = {
128
+ lighter: "#FFE7D9",
129
+ light: "#FFA48D",
130
+ main: "#FF4842",
131
+ dark: "#B72136",
132
+ darker: "#7A0C2E"
133
+ };
134
+ const GREY = {
135
+ 0: "#FFFFFF",
136
+ 100: "#F9FAFB",
137
+ 200: "#F4F6F8",
138
+ 300: "#DFE3E8",
139
+ 400: "#C4CDD5",
140
+ 500: "#919EAB",
141
+ 600: "#637381",
142
+ 700: "#454F5B",
143
+ 800: "#212B36",
144
+ 900: "#161C24",
145
+ 5008: alpha("#919EAB", 0.08),
146
+ 50012: alpha("#919EAB", 0.12),
147
+ 50016: alpha("#919EAB", 0.16),
148
+ 50024: alpha("#919EAB", 0.24),
149
+ 50032: alpha("#919EAB", 0.32),
150
+ 50048: alpha("#919EAB", 0.48),
151
+ 50056: alpha("#919EAB", 0.56),
152
+ 50080: alpha("#919EAB", 0.8)
153
+ };
154
+ const GRADIENTS = {
155
+ primary: createGradient(PRIMARY.light, PRIMARY.main),
156
+ info: createGradient(INFO.light, INFO.main),
157
+ success: createGradient(SUCCESS.light, SUCCESS.main),
158
+ warning: createGradient(WARNING.light, WARNING.main),
159
+ error: createGradient(ERROR.light, ERROR.main)
160
+ };
161
+ const CHART_COLORS = {
162
+ violet: ["#826AF9", "#9E86FF", "#D0AEFF", "#F7D2FF"],
163
+ blue: ["#2D99FF", "#83CFFF", "#A5F3FF", "#CCFAFF"],
164
+ green: ["#2CD9C5", "#60F1C8", "#A4F7CC", "#C0F2DC"],
165
+ yellow: ["#FFE700", "#FFEF5A", "#FFF7AE", "#FFF3D6"],
166
+ red: ["#FF6C40", "#FF8F6D", "#FFBD98", "#FFF2D4"]
167
+ };
168
+ const COMMON = {
169
+ common: { black: "#000", white: "#fff" },
170
+ primary: { ...PRIMARY, contrastText: "#fff" },
171
+ secondary: { ...SECONDARY, contrastText: "#fff" },
172
+ info: { ...INFO, contrastText: "#fff" },
173
+ success: { ...SUCCESS, contrastText: GREY[800] },
174
+ warning: { ...WARNING, contrastText: GREY[800] },
175
+ error: { ...ERROR, contrastText: "#fff" },
176
+ grey: GREY,
177
+ gradients: GRADIENTS,
178
+ chart: CHART_COLORS,
179
+ divider: GREY[50024],
180
+ action: {
181
+ hover: GREY[5008],
182
+ selected: GREY[50016],
183
+ disabled: GREY[50080],
184
+ disabledBackground: GREY[50024],
185
+ focus: GREY[50024],
186
+ hoverOpacity: 0.08,
187
+ disabledOpacity: 0.48
188
+ }
189
+ };
190
+ const palette = {
191
+ light: {
192
+ ...COMMON,
193
+ mode: "light",
194
+ text: { primary: GREY[800], secondary: GREY[700], disabled: GREY[500] },
195
+ background: {
196
+ paper: "#fff",
197
+ default: "#fff",
198
+ neutral: GREY[200],
199
+ autocomplete: GREY[100],
200
+ header: "#F6F7F9"
201
+ },
202
+ action: { active: GREY[600], ...COMMON.action },
203
+ grid: { sectionHeader: "#F6F7F9", divider: "#EDEFF2", rowHover: "#FAFBFC" }
204
+ },
205
+ dark: {
206
+ ...COMMON,
207
+ mode: "dark",
208
+ text: { primary: "#fff", secondary: GREY[500], disabled: GREY[600] },
209
+ background: {
210
+ paper: GREY[800],
211
+ default: GREY[900],
212
+ neutral: GREY[50016],
213
+ autocomplete: GREY[800],
214
+ header: "#29313A"
215
+ },
216
+ action: { active: GREY[500], ...COMMON.action },
217
+ grid: { sectionHeader: "#29313A", divider: "#3E464F", rowHover: "#1F262F" }
218
+ }
219
+ };
220
+ const LIGHT_MODE = palette.light.grey[500];
221
+ const DARK_MODE = "#000000";
222
+ const createShadow = (color) => {
223
+ const transparent1 = alpha(color, 0.2);
224
+ const transparent2 = alpha(color, 0.14);
225
+ const transparent3 = alpha(color, 0.12);
226
+ return [
227
+ "none",
228
+ `0px 2px 1px -1px ${transparent1},0px 1px 1px 0px ${transparent2},0px 1px 3px 0px ${transparent3}`,
229
+ `0px 3px 1px -2px ${transparent1},0px 2px 2px 0px ${transparent2},0px 1px 5px 0px ${transparent3}`,
230
+ `0px 3px 3px -2px ${transparent1},0px 3px 4px 0px ${transparent2},0px 1px 8px 0px ${transparent3}`,
231
+ `0px 2px 4px -1px ${transparent1},0px 4px 5px 0px ${transparent2},0px 1px 10px 0px ${transparent3}`,
232
+ `0px 3px 5px -1px ${transparent1},0px 5px 8px 0px ${transparent2},0px 1px 14px 0px ${transparent3}`,
233
+ `0px 3px 5px -1px ${transparent1},0px 6px 10px 0px ${transparent2},0px 1px 18px 0px ${transparent3}`,
234
+ `0px 4px 5px -2px ${transparent1},0px 7px 10px 1px ${transparent2},0px 2px 16px 1px ${transparent3}`,
235
+ `0px 5px 5px -3px ${transparent1},0px 8px 10px 1px ${transparent2},0px 3px 14px 2px ${transparent3}`,
236
+ `0px 5px 6px -3px ${transparent1},0px 9px 12px 1px ${transparent2},0px 3px 16px 2px ${transparent3}`,
237
+ `0px 6px 6px -3px ${transparent1},0px 10px 14px 1px ${transparent2},0px 4px 18px 3px ${transparent3}`,
238
+ `0px 6px 7px -4px ${transparent1},0px 11px 15px 1px ${transparent2},0px 4px 20px 3px ${transparent3}`,
239
+ `0px 7px 8px -4px ${transparent1},0px 12px 17px 2px ${transparent2},0px 5px 22px 4px ${transparent3}`,
240
+ `0px 7px 8px -4px ${transparent1},0px 13px 19px 2px ${transparent2},0px 5px 24px 4px ${transparent3}`,
241
+ `0px 7px 9px -4px ${transparent1},0px 14px 21px 2px ${transparent2},0px 5px 26px 4px ${transparent3}`,
242
+ `0px 8px 9px -5px ${transparent1},0px 15px 22px 2px ${transparent2},0px 6px 28px 5px ${transparent3}`,
243
+ `0px 8px 10px -5px ${transparent1},0px 16px 24px 2px ${transparent2},0px 6px 30px 5px ${transparent3}`,
244
+ `0px 8px 11px -5px ${transparent1},0px 17px 26px 2px ${transparent2},0px 6px 32px 5px ${transparent3}`,
245
+ `0px 9px 11px -5px ${transparent1},0px 18px 28px 2px ${transparent2},0px 7px 34px 6px ${transparent3}`,
246
+ `0px 9px 12px -6px ${transparent1},0px 19px 29px 2px ${transparent2},0px 7px 36px 6px ${transparent3}`,
247
+ `0px 10px 13px -6px ${transparent1},0px 20px 31px 3px ${transparent2},0px 8px 38px 7px ${transparent3}`,
248
+ `0px 10px 13px -6px ${transparent1},0px 21px 33px 3px ${transparent2},0px 8px 40px 7px ${transparent3}`,
249
+ `0px 10px 14px -6px ${transparent1},0px 22px 35px 3px ${transparent2},0px 8px 42px 7px ${transparent3}`,
250
+ `0px 11px 14px -7px ${transparent1},0px 23px 36px 3px ${transparent2},0px 9px 44px 8px ${transparent3}`,
251
+ `0px 11px 15px -7px ${transparent1},0px 24px 38px 3px ${transparent2},0px 9px 46px 8px ${transparent3}`
252
+ ];
253
+ };
254
+ const createCustomShadow = (color) => {
255
+ const transparent = alpha(color, 0.16);
256
+ return {
257
+ z1: `0 1px 2px 0 ${transparent}`,
258
+ z8: `0 8px 16px 0 ${transparent}`,
259
+ z12: `0 12px 24px -4px ${transparent}`,
260
+ z16: `0 16px 32px -4px ${transparent}`,
261
+ z20: `0 20px 40px -4px ${transparent}`,
262
+ z24: `0 24px 48px 0 ${transparent}`,
263
+ primary: `0 8px 16px 0 ${alpha(palette.light.primary.main, 0.24)}`,
264
+ info: `0 8px 16px 0 ${alpha(palette.light.info.main, 0.24)}`,
265
+ secondary: `0 8px 16px 0 ${alpha(palette.light.secondary.main, 0.24)}`,
266
+ success: `0 8px 16px 0 ${alpha(palette.light.success.main, 0.24)}`,
267
+ warning: `0 8px 16px 0 ${alpha(palette.light.warning.main, 0.24)}`,
268
+ error: `0 8px 16px 0 ${alpha(palette.light.error.main, 0.24)}`,
269
+ card: `0 0 2px 0 ${alpha(color, 0.2)}, 0 12px 24px -4px ${alpha(color, 0.12)}`,
270
+ dialog: `-40px 40px 80px -8px ${alpha(palette.light.common.black, 0.24)}`,
271
+ dropdown: `0 0 2px 0 ${alpha(color, 0.24)}, -20px 20px 40px -4px ${alpha(color, 0.24)}`
272
+ };
273
+ };
274
+ const customShadows = {
275
+ light: createCustomShadow(LIGHT_MODE),
276
+ dark: createCustomShadow(DARK_MODE)
277
+ };
278
+ const shadows = {
279
+ light: createShadow(LIGHT_MODE),
280
+ dark: createShadow(DARK_MODE)
281
+ };
282
+ const defaultThemeOptions = {
283
+ typography,
284
+ shadows: shadows.light,
285
+ customShadows: {
286
+ ...customShadows.light,
287
+ primary: `0 8px 16px 0 ${alpha(getColorPresets("default").main, 0.24)}`
288
+ },
289
+ palette: {
290
+ ...palette.light,
291
+ primary: {
292
+ lighter: "#283829",
293
+ light: "#26372b",
294
+ main: "#00AB55",
295
+ dark: "#007B55",
296
+ darker: "#005249",
297
+ LightSelected: "#EBF9F1",
298
+ LightSelectedHover: "#D6F2E3",
299
+ DarkSelected: "#142827",
300
+ DarkSelectedHover: "#12342B"
301
+ },
302
+ text: { primary: GREY[800], secondary: GREY[700], disabled: GREY[500] },
303
+ secondary: {
304
+ main: "#34ac4e"
305
+ }
306
+ }
307
+ };
308
+ function Avatar(theme) {
309
+ return {
310
+ MuiAvatar: {
311
+ styleOverrides: {
312
+ colorDefault: {
313
+ color: theme.palette.text.secondary,
314
+ backgroundColor: theme.palette.grey[400]
315
+ }
316
+ }
317
+ },
318
+ MuiAvatarGroup: {
319
+ styleOverrides: {
320
+ avatar: {
321
+ fontSize: 16,
322
+ fontWeight: theme.typography.fontWeightMedium,
323
+ "&:first-of-type": {
324
+ fontSize: 14,
325
+ color: theme.palette.primary.main,
326
+ backgroundColor: theme.palette.primary.lighter
327
+ }
328
+ }
329
+ }
330
+ }
331
+ };
332
+ }
333
+ function Button(theme) {
334
+ return {
335
+ MuiButton: {
336
+ styleOverrides: {
337
+ root: {
338
+ "&:hover": {
339
+ boxShadow: "none"
340
+ }
341
+ },
342
+ sizeLarge: {
343
+ height: 48
344
+ },
345
+ containedInherit: {
346
+ color: theme.palette.grey[800],
347
+ boxShadow: theme.customShadows.z1,
348
+ "&:hover": {
349
+ backgroundColor: theme.palette.grey[400]
350
+ }
351
+ },
352
+ containedPrimary: {
353
+ boxShadow: theme.customShadows.z24
354
+ },
355
+ containedSecondary: {
356
+ boxShadow: theme.customShadows.secondary
357
+ },
358
+ containedInfo: {
359
+ boxShadow: theme.customShadows.info
360
+ },
361
+ containedSuccess: {
362
+ boxShadow: theme.customShadows.success
363
+ },
364
+ containedWarning: {
365
+ boxShadow: theme.customShadows.warning
366
+ },
367
+ containedError: {
368
+ boxShadow: theme.customShadows.error
369
+ },
370
+ outlinedInherit: {
371
+ border: `1px solid ${theme.palette.grey[50032]}`,
372
+ "&:hover": {
373
+ backgroundColor: theme.palette.action.hover
374
+ }
375
+ },
376
+ textInherit: {
377
+ "&:hover": {
378
+ backgroundColor: theme.palette.action.hover
379
+ }
380
+ }
381
+ }
382
+ }
383
+ };
384
+ }
385
+ function IconButton(theme) {
386
+ return {
387
+ MuiIconButton: {
388
+ styleOverrides: {
389
+ root: {
390
+ "&.MuiIconButton-sizeSmall": {
391
+ height: theme.spacing(3.75),
392
+ width: theme.spacing(3.75),
393
+ margin: 0,
394
+ padding: 0,
395
+ " > svg": {
396
+ height: 20,
397
+ width: 20
398
+ },
399
+ "& .MuiBox-root": {
400
+ height: 20,
401
+ width: 20
402
+ }
403
+ }
404
+ }
405
+ }
406
+ }
407
+ };
408
+ }
409
+ function Fab(theme) {
410
+ return {
411
+ MuiFab: {
412
+ defaultProps: {
413
+ color: "primary"
414
+ },
415
+ styleOverrides: {
416
+ root: {
417
+ boxShadow: theme.customShadows.z8,
418
+ "&:hover": {
419
+ boxShadow: "none",
420
+ backgroundColor: theme.palette.grey[400]
421
+ }
422
+ },
423
+ primary: {
424
+ boxShadow: theme.customShadows.primary,
425
+ "&:hover": {
426
+ backgroundColor: theme.palette.primary.dark
427
+ }
428
+ },
429
+ secondary: {
430
+ boxShadow: theme.customShadows.secondary,
431
+ "&:hover": {
432
+ backgroundColor: theme.palette.secondary.dark
433
+ }
434
+ },
435
+ extended: {
436
+ "& svg": {
437
+ marginRight: theme.spacing(1)
438
+ }
439
+ }
440
+ }
441
+ }
442
+ };
443
+ }
444
+ function Card(theme) {
445
+ return {
446
+ MuiCard: {
447
+ styleOverrides: {
448
+ root: {
449
+ position: "relative",
450
+ boxShadow: theme.customShadows.card,
451
+ borderRadius: Number(theme.shape.borderRadius) * 2,
452
+ zIndex: 0
453
+ }
454
+ }
455
+ },
456
+ MuiCardHeader: {
457
+ defaultProps: {
458
+ titleTypographyProps: { variant: "h6" },
459
+ subheaderTypographyProps: { variant: "body2", marginTop: theme.spacing(0.5) }
460
+ },
461
+ styleOverrides: {
462
+ root: {
463
+ padding: theme.spacing(3, 3, 0)
464
+ }
465
+ }
466
+ },
467
+ MuiCardContent: {
468
+ styleOverrides: {
469
+ root: {
470
+ padding: theme.spacing(3)
471
+ }
472
+ }
473
+ }
474
+ };
475
+ }
476
+ function Tabs(theme) {
477
+ return {
478
+ MuiTabs: {
479
+ styleOverrides: {
480
+ root: {
481
+ padding: 0,
482
+ fontWeight: theme.typography.fontWeightMedium,
483
+ borderTopLeftRadius: theme.shape.borderRadius,
484
+ borderTopRightRadius: theme.shape.borderRadius,
485
+ "&.Mui-selected": {
486
+ color: theme.palette.text.primary
487
+ },
488
+ "&:not(:last-of-type)": {
489
+ marginRight: theme.spacing(5)
490
+ },
491
+ "@media (min-width: 600px)": {
492
+ minWidth: 48
493
+ },
494
+ "& .MuiButtonBase-root": {
495
+ ...theme.typography.subtitle2
496
+ }
497
+ },
498
+ labelIcon: {
499
+ minHeight: 48,
500
+ flexDirection: "row",
501
+ "& > *:first-of-type": {
502
+ marginBottom: 0,
503
+ marginRight: theme.spacing(1)
504
+ }
505
+ },
506
+ wrapper: {
507
+ flexDirection: "row",
508
+ whiteSpace: "nowrap"
509
+ },
510
+ textColorInherit: {
511
+ opacity: 1,
512
+ color: theme.palette.text.secondary
513
+ }
514
+ }
515
+ },
516
+ MuiTabPanel: {
517
+ styleOverrides: {
518
+ root: {
519
+ padding: 0
520
+ }
521
+ }
522
+ },
523
+ MuiTabScrollButton: {
524
+ styleOverrides: {
525
+ root: {
526
+ width: 48,
527
+ borderRadius: "50%"
528
+ }
529
+ }
530
+ }
531
+ };
532
+ }
533
+ function Menu(theme) {
534
+ return {
535
+ MuiMenuItem: {
536
+ styleOverrides: {
537
+ root: {
538
+ "&.Mui-selected": {
539
+ backgroundColor: theme.palette.action.selected,
540
+ "&:hover": {
541
+ backgroundColor: theme.palette.action.hover
542
+ }
543
+ }
544
+ }
545
+ }
546
+ }
547
+ };
548
+ }
549
+ function Link(theme) {
550
+ return {
551
+ MuiLink: {
552
+ defaultProps: {
553
+ underline: "hover"
554
+ },
555
+ styleOverrides: {
556
+ root: {
557
+ "&.MuiLink-underlineHover": {
558
+ textDecorationColor: theme.palette.primary.main
559
+ }
560
+ }
561
+ }
562
+ }
563
+ };
564
+ }
565
+ function List(theme) {
566
+ return {
567
+ MuiListItemIcon: {
568
+ styleOverrides: {
569
+ root: {
570
+ color: "inherit",
571
+ minWidth: "auto",
572
+ marginRight: theme.spacing(2)
573
+ }
574
+ }
575
+ },
576
+ MuiListItemAvatar: {
577
+ styleOverrides: {
578
+ root: {
579
+ minWidth: "auto",
580
+ marginRight: theme.spacing(2)
581
+ }
582
+ }
583
+ },
584
+ MuiListItemText: {
585
+ styleOverrides: {
586
+ root: {
587
+ marginTop: 0,
588
+ marginBottom: 0
589
+ },
590
+ multiline: {
591
+ marginTop: 0,
592
+ marginBottom: 0
593
+ }
594
+ }
595
+ }
596
+ };
597
+ }
598
+ function Table(theme) {
599
+ return {
600
+ MuiTableRow: {
601
+ styleOverrides: {
602
+ root: {
603
+ "&.Mui-selected": {
604
+ backgroundColor: theme.palette.action.selected,
605
+ "&:hover": {
606
+ backgroundColor: theme.palette.action.hover
607
+ }
608
+ }
609
+ }
610
+ }
611
+ },
612
+ MuiTableCell: {
613
+ styleOverrides: {
614
+ root: {
615
+ borderBottom: "none"
616
+ },
617
+ head: {
618
+ color: theme.palette.text.secondary,
619
+ backgroundColor: theme.palette.background.neutral,
620
+ "&:first-of-type": {
621
+ paddingLeft: theme.spacing(3),
622
+ borderTopLeftRadius: theme.shape.borderRadius,
623
+ borderBottomLeftRadius: theme.shape.borderRadius,
624
+ boxShadow: `inset 8px 0 0 ${theme.palette.background.paper}`
625
+ },
626
+ "&:last-of-type": {
627
+ paddingRight: theme.spacing(3),
628
+ borderTopRightRadius: theme.shape.borderRadius,
629
+ borderBottomRightRadius: theme.shape.borderRadius,
630
+ boxShadow: `inset -8px 0 0 ${theme.palette.background.paper}`
631
+ }
632
+ },
633
+ stickyHeader: {
634
+ backgroundColor: theme.palette.background.paper,
635
+ backgroundImage: `linear-gradient(to bottom, ${theme.palette.background.neutral} 0%, ${theme.palette.background.neutral} 100%)`
636
+ },
637
+ body: {
638
+ "&:first-of-type": {
639
+ paddingLeft: theme.spacing(3)
640
+ },
641
+ "&:last-of-type": {
642
+ paddingRight: theme.spacing(3)
643
+ }
644
+ }
645
+ }
646
+ },
647
+ MuiTablePagination: {
648
+ styleOverrides: {
649
+ root: {
650
+ ...theme.typography.caption
651
+ },
652
+ toolbar: {
653
+ "& .MuiInputBase-root": {
654
+ marginLeft: theme.spacing(1),
655
+ marginRight: theme.spacing(3),
656
+ ...theme.typography.caption
657
+ },
658
+ "&.MuiToolbar-regular": {
659
+ minHeight: 40,
660
+ height: 40,
661
+ paddingRight: 0
662
+ },
663
+ "& .MuiTablePagination-displayedRows": {
664
+ ...theme.typography.caption
665
+ }
666
+ },
667
+ selectLabel: {
668
+ ...theme.typography.caption
669
+ },
670
+ select: {
671
+ paddingBottom: 4,
672
+ "&:focus": {
673
+ borderRadius: theme.shape.borderRadius
674
+ }
675
+ },
676
+ selectIcon: {
677
+ width: 20,
678
+ height: 20
679
+ }
680
+ }
681
+ }
682
+ };
683
+ }
684
+ function Badge(_theme) {
685
+ return {
686
+ MuiBadge: {
687
+ styleOverrides: {
688
+ dot: {
689
+ width: 10,
690
+ height: 10,
691
+ borderRadius: "50%"
692
+ }
693
+ }
694
+ }
695
+ };
696
+ }
697
+ function Paper(theme) {
698
+ return {
699
+ MuiPaper: {
700
+ defaultProps: {
701
+ elevation: 0
702
+ },
703
+ variants: [
704
+ {
705
+ props: { variant: "outlined" },
706
+ style: { borderColor: theme.palette.grey[50012] }
707
+ }
708
+ ],
709
+ styleOverrides: {
710
+ root: {
711
+ backgroundImage: "none",
712
+ borderRadius: "2px"
713
+ }
714
+ }
715
+ }
716
+ };
717
+ }
718
+ function Input(theme) {
719
+ return {
720
+ MuiFormControl: {
721
+ styleOverrides: {
722
+ root: {}
723
+ }
724
+ },
725
+ MuiInputBase: {
726
+ styleOverrides: {
727
+ root: {
728
+ backgroundColor: theme.palette.background.default,
729
+ ...theme.typography.body2,
730
+ borderRadius: theme.spacing(1),
731
+ "&.Mui-disabled": {
732
+ "& svg": { color: theme.palette.text.disabled }
733
+ },
734
+ padding: "0px"
735
+ },
736
+ input: {
737
+ paddingLeft: "8px",
738
+ "&::placeholder": {
739
+ opacity: 1,
740
+ color: theme.palette.text.disabled
741
+ }
742
+ }
743
+ }
744
+ },
745
+ MuiInput: {
746
+ styleOverrides: {
747
+ underline: {
748
+ "&:before": {
749
+ borderBottomColor: theme.palette.grey[50056]
750
+ }
751
+ }
752
+ }
753
+ },
754
+ MuiFilledInput: {
755
+ styleOverrides: {
756
+ root: {
757
+ backgroundColor: theme.palette.grey[50012],
758
+ "&:hover": {
759
+ backgroundColor: theme.palette.grey[50016]
760
+ },
761
+ "&.Mui-focused": {
762
+ backgroundColor: theme.palette.action.focus
763
+ },
764
+ "&.Mui-disabled": {
765
+ backgroundColor: theme.palette.action.disabledBackground
766
+ }
767
+ },
768
+ underline: {
769
+ "&:before": {
770
+ borderBottomColor: theme.palette.grey[50056]
771
+ }
772
+ }
773
+ }
774
+ },
775
+ MuiOutlinedInput: {
776
+ styleOverrides: {
777
+ root: {
778
+ ...theme.typography.body2,
779
+ color: theme.palette.text.primary,
780
+ "& > input": {
781
+ padding: theme.spacing(1.5, 1.5)
782
+ },
783
+ "& .MuiOutlinedInput-notchedOutline": {
784
+ borderColor: theme.palette.grey[50032],
785
+ fontSize: "0.875rem"
786
+ },
787
+ "&.Mui-disabled": {
788
+ "& .MuiOutlinedInput-notchedOutline": {
789
+ borderColor: theme.palette.action.disabledBackground
790
+ }
791
+ },
792
+ "& .MuiOutlinedInput-input:-webkit-autofill": {
793
+ WebkitBoxShadow: `0 0 0 1000px ${theme.palette.background.autofill} inset`
794
+ }
795
+ }
796
+ }
797
+ }
798
+ };
799
+ }
800
+ function InputLabel(_theme) {
801
+ return {
802
+ MuiInputLabel: {
803
+ styleOverrides: {
804
+ shrink: {
805
+ transform: "translate(14px, -9px) scale(0.75)!important"
806
+ },
807
+ outlined: {
808
+ transform: "translate(14px, 12px) scale(1)",
809
+ fontSize: 12
810
+ }
811
+ }
812
+ }
813
+ };
814
+ }
815
+ function Radio(theme) {
816
+ return {
817
+ MuiRadio: {
818
+ styleOverrides: {
819
+ root: {
820
+ padding: theme.spacing(1),
821
+ svg: {
822
+ fontSize: 24,
823
+ "&[font-size=small]": {
824
+ fontSize: 20
825
+ }
826
+ }
827
+ }
828
+ }
829
+ }
830
+ };
831
+ }
832
+ function Drawer(theme) {
833
+ const isLight = theme.palette.mode === "light";
834
+ return {
835
+ MuiDrawer: {
836
+ styleOverrides: {
837
+ modal: {
838
+ '&[role="presentation"]': {
839
+ "& .MuiDrawer-paperAnchorLeft": {
840
+ boxShadow: `8px 24px 24px 12px ${alpha$1(theme.palette.grey[900], isLight ? 0.16 : 0.48)}`
841
+ },
842
+ "& .MuiDrawer-paperAnchorRight": {
843
+ boxShadow: `-8px 24px 24px 12px ${alpha$1(theme.palette.grey[900], isLight ? 0.16 : 0.48)}`
844
+ }
845
+ }
846
+ }
847
+ }
848
+ }
849
+ };
850
+ }
851
+ function Dialog(theme) {
852
+ return {
853
+ MuiDialog: {
854
+ styleOverrides: {
855
+ paper: {
856
+ boxShadow: theme.customShadows.dialog,
857
+ "&.MuiPaper-rounded": {
858
+ borderRadius: Number(theme.shape.borderRadius) * 2
859
+ },
860
+ "&.MuiDialog-paperFullScreen": {
861
+ borderRadius: 0
862
+ },
863
+ "&.MuiDialog-paper .MuiDialogActions-root": {
864
+ padding: theme.spacing(3)
865
+ },
866
+ "@media (max-width: 600px)": {
867
+ margin: theme.spacing(2)
868
+ },
869
+ "@media (max-width: 663.95px)": {
870
+ "&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody": {
871
+ maxWidth: "100%"
872
+ }
873
+ }
874
+ },
875
+ paperFullWidth: {
876
+ width: "100%"
877
+ }
878
+ }
879
+ },
880
+ MuiDialogTitle: {
881
+ styleOverrides: {
882
+ root: {
883
+ padding: theme.spacing(3, 3, 0)
884
+ }
885
+ }
886
+ },
887
+ MuiDialogContent: {
888
+ styleOverrides: {
889
+ root: {
890
+ borderTop: 0,
891
+ borderBottom: 0,
892
+ padding: theme.spacing(3)
893
+ }
894
+ }
895
+ },
896
+ MuiDialogActions: {
897
+ styleOverrides: {
898
+ root: {
899
+ "& > :not(:first-of-type)": {
900
+ marginLeft: theme.spacing(1.5)
901
+ }
902
+ }
903
+ }
904
+ }
905
+ };
906
+ }
907
+ function Slider(theme) {
908
+ const isLight = theme.palette.mode === "light";
909
+ return {
910
+ MuiSlider: {
911
+ defaultProps: {
912
+ size: "small"
913
+ },
914
+ styleOverrides: {
915
+ root: {
916
+ "&.Mui-disabled": {
917
+ color: theme.palette.action.disabled
918
+ }
919
+ },
920
+ markLabel: {
921
+ fontSize: 13,
922
+ color: theme.palette.text.disabled
923
+ },
924
+ valueLabel: {
925
+ borderRadius: 8,
926
+ backgroundColor: theme.palette.grey[isLight ? 800 : 700]
927
+ }
928
+ }
929
+ }
930
+ };
931
+ }
932
+ function Switch(theme) {
933
+ const isLight = theme.palette.mode === "light";
934
+ return {
935
+ MuiSwitch: {
936
+ styleOverrides: {
937
+ thumb: {
938
+ boxShadow: theme.customShadows.z1
939
+ },
940
+ track: {
941
+ opacity: 1,
942
+ backgroundColor: theme.palette.grey[500]
943
+ },
944
+ switchBase: {
945
+ left: 0,
946
+ right: "auto",
947
+ "&:not(:.Mui-checked)": {
948
+ color: theme.palette.grey[isLight ? 100 : 300]
949
+ },
950
+ "&.Mui-checked.Mui-disabled, &.Mui-disabled": {
951
+ color: theme.palette.grey[isLight ? 400 : 600]
952
+ },
953
+ "&.Mui-disabled+.MuiSwitch-track": {
954
+ opacity: 1,
955
+ backgroundColor: `${theme.palette.action.disabledBackground} !important`
956
+ }
957
+ }
958
+ }
959
+ }
960
+ };
961
+ }
962
+ function SvgIcon(_theme) {
963
+ return {
964
+ MuiSvgIcon: {
965
+ styleOverrides: {
966
+ fontSizeSmall: {
967
+ width: 20,
968
+ height: 20,
969
+ fontSize: "inherit"
970
+ },
971
+ fontSizeLarge: {
972
+ width: 32,
973
+ height: 32,
974
+ fontSize: "inherit"
975
+ }
976
+ }
977
+ }
978
+ };
979
+ }
980
+ function Tooltip(theme) {
981
+ const isLight = theme.palette.mode === "light";
982
+ return {
983
+ MuiTooltip: {
984
+ styleOverrides: {
985
+ tooltip: {
986
+ backgroundColor: theme.palette.grey[isLight ? 800 : 700]
987
+ },
988
+ arrow: {
989
+ color: theme.palette.grey[isLight ? 800 : 700]
990
+ }
991
+ }
992
+ }
993
+ };
994
+ }
995
+ function Popover(theme) {
996
+ return {
997
+ MuiPopover: {
998
+ styleOverrides: {
999
+ paper: {
1000
+ boxShadow: theme.customShadows.dropdown,
1001
+ borderRadius: Number(theme.shape.borderRadius) * 1.5
1002
+ }
1003
+ }
1004
+ }
1005
+ };
1006
+ }
1007
+ function Stepper(theme) {
1008
+ return {
1009
+ MuiStepConnector: {
1010
+ styleOverrides: {
1011
+ line: {
1012
+ borderColor: theme.palette.divider
1013
+ }
1014
+ }
1015
+ }
1016
+ };
1017
+ }
1018
+ function DataGrid(theme) {
1019
+ return {
1020
+ MuiDataGrid: {
1021
+ styleOverrides: {
1022
+ root: {
1023
+ borderRadius: 0,
1024
+ border: `1px solid transparent`,
1025
+ "& .MuiTablePagination-root": {
1026
+ borderTop: 0
1027
+ },
1028
+ "& .MuiDataGrid-toolbarContainer": {
1029
+ padding: theme.spacing(2),
1030
+ backgroundColor: theme.palette.background.neutral,
1031
+ "& .MuiButton-root": {
1032
+ marginRight: theme.spacing(1.5),
1033
+ color: theme.palette.text.primary,
1034
+ "&:hover": {
1035
+ backgroundColor: theme.palette.action.hover
1036
+ }
1037
+ }
1038
+ },
1039
+ "& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer": {
1040
+ borderBottom: `1px solid ${theme.palette.divider}`
1041
+ },
1042
+ "& .MuiDataGrid-columnSeparator": {
1043
+ color: theme.palette.divider
1044
+ },
1045
+ '& .MuiDataGrid-columnHeader[data-field="__check__"]': {
1046
+ padding: 0
1047
+ }
1048
+ }
1049
+ }
1050
+ },
1051
+ MuiGridMenu: {
1052
+ styleOverrides: {
1053
+ root: {
1054
+ "& .MuiDataGrid-gridMenuList": {
1055
+ boxShadow: theme.customShadows.z20,
1056
+ borderRadius: theme.shape.borderRadius
1057
+ },
1058
+ "& .MuiMenuItem-root": {
1059
+ ...theme.typography.body2
1060
+ }
1061
+ }
1062
+ }
1063
+ },
1064
+ MuiGridFilterForm: {
1065
+ styleOverrides: {
1066
+ root: {
1067
+ padding: theme.spacing(1.5, 0),
1068
+ "& .MuiFormControl-root": {
1069
+ margin: theme.spacing(0, 0.5)
1070
+ },
1071
+ "& .MuiInput-root": {
1072
+ marginTop: theme.spacing(3),
1073
+ "&::before, &::after": {
1074
+ display: "none"
1075
+ },
1076
+ "& .MuiNativeSelect-select, .MuiInput-input": {
1077
+ ...theme.typography.body2,
1078
+ padding: theme.spacing(0.75, 1),
1079
+ borderRadius: theme.shape.borderRadius,
1080
+ backgroundColor: theme.palette.background.neutral
1081
+ },
1082
+ "& .MuiSvgIcon-root": {
1083
+ right: 4
1084
+ }
1085
+ }
1086
+ }
1087
+ }
1088
+ },
1089
+ MuiGridPanelFooter: {
1090
+ styleOverrides: {
1091
+ root: {
1092
+ padding: theme.spacing(2),
1093
+ justifyContent: "flex-end",
1094
+ "& .MuiButton-root": {
1095
+ "&:first-of-type": {
1096
+ marginRight: theme.spacing(1.5),
1097
+ color: theme.palette.text.primary,
1098
+ "&:hover": {
1099
+ backgroundColor: theme.palette.action.hover
1100
+ }
1101
+ },
1102
+ "&:last-of-type": {
1103
+ color: theme.palette.common.white,
1104
+ backgroundColor: theme.palette.primary.main,
1105
+ "&:hover": {
1106
+ backgroundColor: theme.palette.primary.dark
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+ };
1114
+ }
1115
+ function Skeleton(theme) {
1116
+ return {
1117
+ MuiSkeleton: {
1118
+ defaultProps: {
1119
+ animation: "wave"
1120
+ },
1121
+ styleOverrides: {
1122
+ root: {
1123
+ backgroundColor: theme.palette.divider
1124
+ }
1125
+ }
1126
+ }
1127
+ };
1128
+ }
1129
+ function Backdrop(theme) {
1130
+ const varLow = alpha(theme.palette.grey[900], 0.48);
1131
+ const varHigh = alpha(theme.palette.grey[900], 1);
1132
+ return {
1133
+ MuiBackdrop: {
1134
+ styleOverrides: {
1135
+ root: {
1136
+ background: [
1137
+ `rgb(22,28,36)`,
1138
+ `-moz-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
1139
+ `-webkit-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
1140
+ `linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`
1141
+ ],
1142
+ "&.MuiBackdrop-invisible": {
1143
+ background: "transparent"
1144
+ }
1145
+ }
1146
+ }
1147
+ }
1148
+ };
1149
+ }
1150
+ function Progress(theme) {
1151
+ const isLight = theme.palette.mode === "light";
1152
+ return {
1153
+ MuiLinearProgress: {
1154
+ styleOverrides: {
1155
+ root: {
1156
+ borderRadius: 4,
1157
+ overflow: "hidden"
1158
+ },
1159
+ bar: {
1160
+ borderRadius: 4
1161
+ },
1162
+ colorPrimary: {
1163
+ backgroundColor: theme.palette.primary[isLight ? "lighter" : "darker"]
1164
+ },
1165
+ buffer: {
1166
+ backgroundColor: "transparent"
1167
+ }
1168
+ }
1169
+ }
1170
+ };
1171
+ }
1172
+ function Timeline(theme) {
1173
+ return {
1174
+ MuiTimelineDot: {
1175
+ styleOverrides: {
1176
+ root: {
1177
+ boxShadow: "none"
1178
+ }
1179
+ }
1180
+ },
1181
+ MuiTimelineConnector: {
1182
+ styleOverrides: {
1183
+ root: {
1184
+ backgroundColor: theme.palette.divider
1185
+ }
1186
+ }
1187
+ }
1188
+ };
1189
+ }
1190
+ function Checkbox(theme) {
1191
+ return {
1192
+ MuiCheckbox: {
1193
+ styleOverrides: {
1194
+ root: {
1195
+ padding: theme.spacing(1),
1196
+ oleee: "sss",
1197
+ color: theme.palette.action.active,
1198
+ "& .Mui-checked": {
1199
+ color: theme.palette.primary.main
1200
+ },
1201
+ "&.Mui-checked.Mui-disabled, &.Mui-disabled": {
1202
+ color: theme.palette.action.disabled
1203
+ }
1204
+ }
1205
+ }
1206
+ }
1207
+ };
1208
+ }
1209
+ function Accordion(theme) {
1210
+ return {
1211
+ MuiAccordion: {
1212
+ styleOverrides: {
1213
+ root: {
1214
+ backgroundColor: theme.palette.background.default,
1215
+ width: "100%",
1216
+ marginTop: "0px",
1217
+ marginBottom: theme.spacing(1.5),
1218
+ "&.Mui-expanded": {
1219
+ marginTop: "0px",
1220
+ marginBottom: theme.spacing(1.5)
1221
+ },
1222
+ border: "0px solid transparent",
1223
+ "&.Mui-disabled": {
1224
+ backgroundColor: "transparent"
1225
+ },
1226
+ "&::before": {
1227
+ content: "none"
1228
+ }
1229
+ }
1230
+ }
1231
+ },
1232
+ MuiAccordionDetails: {
1233
+ styleOverrides: {
1234
+ root: {
1235
+ padding: `0px ${theme.spacing(0)}`
1236
+ }
1237
+ }
1238
+ },
1239
+ MuiAccordionSummary: {
1240
+ styleOverrides: {
1241
+ root: {
1242
+ borderRadius: theme.spacing(0.5),
1243
+ height: theme.spacing(4.5),
1244
+ minHeight: theme.spacing(4.5),
1245
+ backgroundColor: theme.palette.background.header,
1246
+ paddingLeft: theme.spacing(2),
1247
+ paddingRight: theme.spacing(2),
1248
+ marginBottom: "0px",
1249
+ "&.Mui-expanded": {
1250
+ height: theme.spacing(4.5),
1251
+ minHeight: theme.spacing(4.5),
1252
+ borderRadius: `${theme.spacing(0.5)} ${theme.spacing(0.5)} 0px 0px`
1253
+ },
1254
+ "&.Mui-disabled": {
1255
+ opacity: 1,
1256
+ color: theme.palette.action.disabled,
1257
+ "& .MuiTypography-root": {
1258
+ color: "inherit"
1259
+ }
1260
+ }
1261
+ },
1262
+ expandIconWrapper: {
1263
+ color: theme.palette.action.active,
1264
+ height: 20,
1265
+ width: 20,
1266
+ alignItems: "center",
1267
+ justifyContent: "center",
1268
+ "& > svg": {
1269
+ height: 12,
1270
+ width: 12
1271
+ }
1272
+ },
1273
+ content: {
1274
+ ...theme.typography.subtitle2,
1275
+ margin: "0px",
1276
+ "&.Mui-expanded": {
1277
+ margin: "0px"
1278
+ }
1279
+ }
1280
+ }
1281
+ }
1282
+ };
1283
+ }
1284
+ function Typography(theme) {
1285
+ return {
1286
+ MuiTypography: {
1287
+ styleOverrides: {
1288
+ paragraph: {
1289
+ marginBottom: theme.spacing(2)
1290
+ },
1291
+ gutterBottom: {
1292
+ marginBottom: theme.spacing(1)
1293
+ }
1294
+ }
1295
+ }
1296
+ };
1297
+ }
1298
+ function Pagination(theme) {
1299
+ return {
1300
+ MuiPaginationItem: {
1301
+ styleOverrides: {
1302
+ root: {
1303
+ "&.Mui-selected": {
1304
+ fontWeight: theme.typography.fontWeightBold
1305
+ }
1306
+ },
1307
+ textPrimary: {
1308
+ "&.Mui-selected": {
1309
+ color: theme.palette.primary.main,
1310
+ backgroundColor: alpha(theme.palette.primary.main, 0.08),
1311
+ "&:hover, &.Mui-focusVisible": {
1312
+ backgroundColor: `${alpha(theme.palette.primary.main, 0.24)} !important`
1313
+ }
1314
+ }
1315
+ },
1316
+ outlined: {
1317
+ border: `1px solid ${theme.palette.grey[50032]}`
1318
+ },
1319
+ outlinedPrimary: {
1320
+ "&.Mui-selected": {
1321
+ backgroundColor: alpha(theme.palette.primary.main, 0.08),
1322
+ border: `1px solid ${alpha(theme.palette.primary.main, 0.24)}`
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ };
1328
+ }
1329
+ function Breadcrumbs(theme) {
1330
+ return {
1331
+ MuiBreadcrumbs: {
1332
+ styleOverrides: {
1333
+ separator: {
1334
+ marginLeft: theme.spacing(2),
1335
+ marginRight: theme.spacing(2)
1336
+ }
1337
+ }
1338
+ }
1339
+ };
1340
+ }
1341
+ function ButtonGroup(theme) {
1342
+ const styleContained = (color) => ({
1343
+ props: { variant: "contained", color },
1344
+ style: { boxShadow: theme.customShadows[color] }
1345
+ });
1346
+ return {
1347
+ MuiButtonGroup: {
1348
+ variants: [
1349
+ {
1350
+ props: { variant: "contained", color: "inherit" },
1351
+ style: { boxShadow: theme.customShadows.z8 }
1352
+ },
1353
+ styleContained("primary"),
1354
+ styleContained("secondary"),
1355
+ styleContained("info"),
1356
+ styleContained("success"),
1357
+ styleContained("warning"),
1358
+ styleContained("error"),
1359
+ {
1360
+ props: { disabled: true },
1361
+ style: {
1362
+ boxShadow: "none",
1363
+ "& .MuiButtonGroup-grouped.Mui-disabled": {
1364
+ color: theme.palette.action.disabled,
1365
+ borderColor: `${theme.palette.action.disabledBackground} !important`,
1366
+ "&.MuiButton-contained": {
1367
+ backgroundColor: theme.palette.action.disabledBackground
1368
+ }
1369
+ }
1370
+ }
1371
+ }
1372
+ ],
1373
+ styleOverrides: {
1374
+ root: {
1375
+ "&:hover": {
1376
+ boxShadow: "none"
1377
+ }
1378
+ }
1379
+ }
1380
+ }
1381
+ };
1382
+ }
1383
+ function CssBaseline(_theme) {
1384
+ return {
1385
+ MuiCssBaseline: {
1386
+ styleOverrides: {
1387
+ "*": {
1388
+ margin: 0,
1389
+ padding: 0,
1390
+ boxSizing: "border-box"
1391
+ },
1392
+ html: {
1393
+ width: "100%",
1394
+ height: "100%",
1395
+ WebkitOverflowScrolling: "touch"
1396
+ },
1397
+ body: {
1398
+ width: "100%",
1399
+ height: "100%"
1400
+ },
1401
+ "#root": {
1402
+ width: "100%",
1403
+ height: "100%"
1404
+ },
1405
+ input: {
1406
+ "&[type=number]": {
1407
+ MozAppearance: "textfield",
1408
+ "&::-webkit-outer-spin-button": {
1409
+ margin: 0,
1410
+ WebkitAppearance: "none"
1411
+ },
1412
+ "&::-webkit-inner-spin-button": {
1413
+ margin: 0,
1414
+ WebkitAppearance: "none"
1415
+ }
1416
+ }
1417
+ },
1418
+ img: {
1419
+ display: "block",
1420
+ maxWidth: "100%"
1421
+ }
1422
+ }
1423
+ }
1424
+ };
1425
+ }
1426
+ function Autocomplete(theme) {
1427
+ return {
1428
+ MuiAutocomplete: {
1429
+ styleOverrides: {
1430
+ root: {
1431
+ "& .MuiInputBase-root": {
1432
+ padding: "0 39px 0px 0"
1433
+ },
1434
+ input: {
1435
+ padding: `${theme.spacing(1.5, 1.5)}!important`
1436
+ }
1437
+ },
1438
+ paper: {
1439
+ boxShadow: theme.customShadows.dropdown
1440
+ },
1441
+ listbox: {
1442
+ padding: theme.spacing(0, 1),
1443
+ "& .MuiAutocomplete-option": {
1444
+ padding: theme.spacing(1),
1445
+ margin: theme.spacing(1, 0),
1446
+ borderRadius: theme.shape.borderRadius
1447
+ }
1448
+ }
1449
+ }
1450
+ }
1451
+ };
1452
+ }
1453
+ const style = (theme, color) => ({
1454
+ props: { color },
1455
+ style: {
1456
+ "&:hover": {
1457
+ borderColor: alpha(theme.palette[color].main, 0.48),
1458
+ backgroundColor: alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
1459
+ },
1460
+ "&.Mui-selected": {
1461
+ borderColor: alpha(theme.palette[color].main, 0.48)
1462
+ }
1463
+ }
1464
+ });
1465
+ function ToggleButton(theme) {
1466
+ return {
1467
+ MuiToggleButton: {
1468
+ variants: [
1469
+ {
1470
+ props: { color: "standard" },
1471
+ style: {
1472
+ "&.Mui-selected": {
1473
+ backgroundColor: theme.palette.action.selected
1474
+ }
1475
+ }
1476
+ },
1477
+ style(theme, "primary"),
1478
+ style(theme, "secondary"),
1479
+ style(theme, "info"),
1480
+ style(theme, "success"),
1481
+ style(theme, "warning"),
1482
+ style(theme, "error")
1483
+ ]
1484
+ },
1485
+ MuiToggleButtonGroup: {
1486
+ styleOverrides: {
1487
+ root: {
1488
+ borderRadius: theme.shape.borderRadius,
1489
+ backgroundColor: theme.palette.background.paper,
1490
+ border: `solid 1px ${theme.palette.grey[50012]}`,
1491
+ "& .MuiToggleButton-root": {
1492
+ margin: 4,
1493
+ borderColor: "transparent !important",
1494
+ borderRadius: `${theme.shape.borderRadius}px !important`
1495
+ }
1496
+ }
1497
+ }
1498
+ }
1499
+ };
1500
+ }
1501
+ function ControlLabel(theme) {
1502
+ return {
1503
+ MuiFormControlLabel: {
1504
+ styleOverrides: {
1505
+ label: {
1506
+ ...theme.typography.body1
1507
+ }
1508
+ }
1509
+ },
1510
+ MuiFormHelperText: {
1511
+ styleOverrides: {
1512
+ root: {
1513
+ marginTop: theme.spacing(1)
1514
+ }
1515
+ }
1516
+ },
1517
+ MuiFormLabel: {
1518
+ styleOverrides: {
1519
+ root: {
1520
+ color: theme.palette.text.disabled
1521
+ }
1522
+ }
1523
+ }
1524
+ };
1525
+ }
1526
+ function LoadingButton(theme) {
1527
+ return {
1528
+ MuiLoadingButton: {
1529
+ styleOverrides: {
1530
+ root: {
1531
+ "&.MuiLoadingButton-root": {
1532
+ ...theme.typography.subtitle2,
1533
+ "& .MuiCircularProgress-root": {
1534
+ color: theme.palette.primary.main
1535
+ }
1536
+ },
1537
+ "&.MuiButton-text": {
1538
+ "& .MuiLoadingButton-startIconPendingStart": {
1539
+ marginLeft: 0
1540
+ },
1541
+ "& .MuiLoadingButton-endIconPendingEnd": {
1542
+ marginRight: 0
1543
+ }
1544
+ }
1545
+ }
1546
+ }
1547
+ }
1548
+ };
1549
+ }
1550
+ function fnComponentsOverrides(theme) {
1551
+ return Object.assign(Fab(theme), Tabs(theme), Card(theme), Menu(theme), Link(theme), Input(theme), InputLabel(), Radio(theme), Badge(), List(theme), Table(theme), Paper(theme), Switch(theme), Button(theme), IconButton(theme), Dialog(theme), Avatar(theme), Slider(theme), Drawer(theme), Stepper(theme), Tooltip(theme), Popover(theme), SvgIcon(), Checkbox(theme), DataGrid(theme), Skeleton(theme), Timeline(theme), Backdrop(theme), Progress(theme), Accordion(theme), Typography(theme), Pagination(theme), ButtonGroup(theme), Breadcrumbs(theme), CssBaseline(), Autocomplete(theme), ControlLabel(theme), ToggleButton(theme), LoadingButton(theme));
1552
+ }
1553
+ export { defaultThemeOptions as d, fnComponentsOverrides as f, palette as p };