@m4l/graphics 0.0.16 → 0.0.20

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 (89) 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 +23 -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/lib/theme/typography.d.ts +1 -2
  23. package/dist/lib/utils/getFontValue.d.ts +1 -1
  24. package/dist/react-helmet-async-invariant.js +19 -0
  25. package/dist/react-helmet-async-react-fast-compare.js +90 -0
  26. package/dist/react-helmet-async-shallowequal.js +32 -0
  27. package/dist/react-helmet-async.js +363 -0
  28. package/dist/theme/defaultThemeOptions.js +32 -0
  29. package/dist/theme/overrides.js +1248 -0
  30. package/dist/theme/palette.js +133 -0
  31. package/dist/theme/shadows.js +65 -0
  32. package/dist/theme/typography.js +87 -0
  33. package/dist/utils/index.js +91 -0
  34. package/package.json +1 -7
  35. package/dist/components/mui_extended/index.js +0 -53
  36. package/dist/layouts/index.js +0 -39
  37. package/dist/lib/components/CompanyLogo/index.d.ts +0 -3
  38. package/dist/lib/components/CompanyLogo/styles.d.ts +0 -5
  39. package/dist/lib/components/CompanyLogo/types.d.ts +0 -6
  40. package/dist/lib/components/Image/index.d.ts +0 -3
  41. package/dist/lib/components/Image/styles.d.ts +0 -5
  42. package/dist/lib/components/Image/types.d.ts +0 -19
  43. package/dist/lib/components/LanguagePopover/index.d.ts +0 -3
  44. package/dist/lib/components/LanguagePopover/types.d.ts +0 -3
  45. package/dist/lib/components/LinkWithRoute/index.d.ts +0 -3
  46. package/dist/lib/components/LinkWithRoute/types.d.ts +0 -7
  47. package/dist/lib/components/Loadable/index.d.ts +0 -2
  48. package/dist/lib/components/Typography/index.d.ts +0 -3
  49. package/dist/lib/components/Typography/types.d.ts +0 -5
  50. package/dist/lib/components/animate/DialogAnimate.d.ts +0 -7
  51. package/dist/lib/components/animate/FabButtonAnimate.d.ts +0 -8
  52. package/dist/lib/components/animate/IconButtonAnimate/index.d.ts +0 -4
  53. package/dist/lib/components/animate/MotionContainer.d.ts +0 -10
  54. package/dist/lib/components/animate/MotionInView.d.ts +0 -9
  55. package/dist/lib/components/animate/MotionLazyContainer.d.ts +0 -6
  56. package/dist/lib/components/animate/TextAnimate.d.ts +0 -9
  57. package/dist/lib/components/animate/index.d.ts +0 -8
  58. package/dist/lib/components/animate/type.d.ts +0 -26
  59. package/dist/lib/components/animate/variants/actions.d.ts +0 -5
  60. package/dist/lib/components/animate/variants/background.d.ts +0 -104
  61. package/dist/lib/components/animate/variants/bounce.d.ts +0 -136
  62. package/dist/lib/components/animate/variants/container.d.ts +0 -19
  63. package/dist/lib/components/animate/variants/fade.d.ts +0 -217
  64. package/dist/lib/components/animate/variants/flip.d.ts +0 -75
  65. package/dist/lib/components/animate/variants/index.d.ts +0 -12
  66. package/dist/lib/components/animate/variants/path.d.ts +0 -14
  67. package/dist/lib/components/animate/variants/rotate.d.ts +0 -39
  68. package/dist/lib/components/animate/variants/scale.d.ts +0 -75
  69. package/dist/lib/components/animate/variants/slide.d.ts +0 -155
  70. package/dist/lib/components/animate/variants/transition.d.ts +0 -13
  71. package/dist/lib/components/animate/variants/zoom.d.ts +0 -199
  72. package/dist/lib/components/mui_extended/LoadingButton/index.d.ts +0 -3
  73. package/dist/lib/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
  74. package/dist/lib/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  75. package/dist/lib/components/mui_extended/LoadingButton/types.d.ts +0 -5
  76. package/dist/lib/components/mui_extended/Typography/index.d.ts +0 -3
  77. package/dist/lib/components/mui_extended/Typography/types.d.ts +0 -5
  78. package/dist/lib/components/mui_extended/index.d.ts +0 -37
  79. package/dist/lib/hooks/useHostTheme.d.ts +0 -1
  80. package/dist/lib/hooks/useLocales.d.ts +0 -1
  81. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/index.d.ts +0 -3
  82. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/styles.d.ts +0 -13
  83. package/dist/lib/layouts/NoAuthModuleLayout/components/ModuleWrapper/types.d.ts +0 -4
  84. package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/index.d.ts +0 -5
  85. package/dist/lib/layouts/NoAuthModuleLayout/contexts/NoAuthModuleContext/types.d.ts +0 -12
  86. package/dist/lib/layouts/NoAuthModuleLayout/index.d.ts +0 -3
  87. package/dist/lib/layouts/NoAuthModuleLayout/types.d.ts +0 -11
  88. package/dist/lib/layouts/index.d.ts +0 -1
  89. package/dist/node_modules.js +0 -150
@@ -0,0 +1,1248 @@
1
+ import { alpha } from "@mui/material";
2
+ import { alpha as alpha$1 } from "@mui/material/styles";
3
+ function Avatar(theme) {
4
+ return {
5
+ MuiAvatar: {
6
+ styleOverrides: {
7
+ colorDefault: {
8
+ color: theme.palette.text.secondary,
9
+ backgroundColor: theme.palette.grey[400]
10
+ }
11
+ }
12
+ },
13
+ MuiAvatarGroup: {
14
+ styleOverrides: {
15
+ avatar: {
16
+ fontSize: 16,
17
+ fontWeight: theme.typography.fontWeightMedium,
18
+ "&:first-of-type": {
19
+ fontSize: 14,
20
+ color: theme.palette.primary.main,
21
+ backgroundColor: theme.palette.primary.lighter
22
+ }
23
+ }
24
+ }
25
+ }
26
+ };
27
+ }
28
+ function Button(theme) {
29
+ return {
30
+ MuiButton: {
31
+ styleOverrides: {
32
+ root: {
33
+ "&:hover": {
34
+ boxShadow: "none"
35
+ }
36
+ },
37
+ sizeLarge: {
38
+ height: 48
39
+ },
40
+ containedInherit: {
41
+ color: theme.palette.grey[800],
42
+ boxShadow: theme.customShadows.z1,
43
+ "&:hover": {
44
+ backgroundColor: theme.palette.grey[400]
45
+ }
46
+ },
47
+ containedPrimary: {
48
+ boxShadow: theme.customShadows.z24
49
+ },
50
+ containedSecondary: {
51
+ boxShadow: theme.customShadows.secondary
52
+ },
53
+ containedInfo: {
54
+ boxShadow: theme.customShadows.info
55
+ },
56
+ containedSuccess: {
57
+ boxShadow: theme.customShadows.success
58
+ },
59
+ containedWarning: {
60
+ boxShadow: theme.customShadows.warning
61
+ },
62
+ containedError: {
63
+ boxShadow: theme.customShadows.error
64
+ },
65
+ outlinedInherit: {
66
+ border: `1px solid ${theme.palette.grey[50032]}`,
67
+ "&:hover": {
68
+ backgroundColor: theme.palette.action.hover
69
+ }
70
+ },
71
+ textInherit: {
72
+ "&:hover": {
73
+ backgroundColor: theme.palette.action.hover
74
+ }
75
+ }
76
+ }
77
+ }
78
+ };
79
+ }
80
+ function IconButton(theme) {
81
+ return {
82
+ MuiIconButton: {
83
+ styleOverrides: {
84
+ root: {
85
+ "&.MuiIconButton-sizeSmall": {
86
+ height: theme.spacing(3.75),
87
+ width: theme.spacing(3.75),
88
+ margin: 0,
89
+ padding: 0,
90
+ " > svg": {
91
+ height: 20,
92
+ width: 20
93
+ },
94
+ "& .MuiBox-root": {
95
+ height: 20,
96
+ width: 20
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ };
103
+ }
104
+ function Fab(theme) {
105
+ return {
106
+ MuiFab: {
107
+ defaultProps: {
108
+ color: "primary"
109
+ },
110
+ styleOverrides: {
111
+ root: {
112
+ boxShadow: theme.customShadows.z8,
113
+ "&:hover": {
114
+ boxShadow: "none",
115
+ backgroundColor: theme.palette.grey[400]
116
+ }
117
+ },
118
+ primary: {
119
+ boxShadow: theme.customShadows.primary,
120
+ "&:hover": {
121
+ backgroundColor: theme.palette.primary.dark
122
+ }
123
+ },
124
+ secondary: {
125
+ boxShadow: theme.customShadows.secondary,
126
+ "&:hover": {
127
+ backgroundColor: theme.palette.secondary.dark
128
+ }
129
+ },
130
+ extended: {
131
+ "& svg": {
132
+ marginRight: theme.spacing(1)
133
+ }
134
+ }
135
+ }
136
+ }
137
+ };
138
+ }
139
+ function Card(theme) {
140
+ return {
141
+ MuiCard: {
142
+ styleOverrides: {
143
+ root: {
144
+ position: "relative",
145
+ boxShadow: theme.customShadows.card,
146
+ borderRadius: Number(theme.shape.borderRadius) * 2,
147
+ zIndex: 0
148
+ }
149
+ }
150
+ },
151
+ MuiCardHeader: {
152
+ defaultProps: {
153
+ titleTypographyProps: { variant: "h6" },
154
+ subheaderTypographyProps: { variant: "body2", marginTop: theme.spacing(0.5) }
155
+ },
156
+ styleOverrides: {
157
+ root: {
158
+ padding: theme.spacing(3, 3, 0)
159
+ }
160
+ }
161
+ },
162
+ MuiCardContent: {
163
+ styleOverrides: {
164
+ root: {
165
+ padding: theme.spacing(3)
166
+ }
167
+ }
168
+ }
169
+ };
170
+ }
171
+ function Tabs(theme) {
172
+ return {
173
+ MuiTabs: {
174
+ styleOverrides: {
175
+ root: {
176
+ padding: 0,
177
+ fontWeight: theme.typography.fontWeightMedium,
178
+ borderTopLeftRadius: theme.shape.borderRadius,
179
+ borderTopRightRadius: theme.shape.borderRadius,
180
+ "&.Mui-selected": {
181
+ color: theme.palette.text.primary
182
+ },
183
+ "&:not(:last-of-type)": {
184
+ marginRight: theme.spacing(5)
185
+ },
186
+ "@media (min-width: 600px)": {
187
+ minWidth: 48
188
+ },
189
+ "& .MuiButtonBase-root": {
190
+ ...theme.typography.subtitle2
191
+ }
192
+ },
193
+ labelIcon: {
194
+ minHeight: 48,
195
+ flexDirection: "row",
196
+ "& > *:first-of-type": {
197
+ marginBottom: 0,
198
+ marginRight: theme.spacing(1)
199
+ }
200
+ },
201
+ wrapper: {
202
+ flexDirection: "row",
203
+ whiteSpace: "nowrap"
204
+ },
205
+ textColorInherit: {
206
+ opacity: 1,
207
+ color: theme.palette.text.secondary
208
+ }
209
+ }
210
+ },
211
+ MuiTabPanel: {
212
+ styleOverrides: {
213
+ root: {
214
+ padding: 0
215
+ }
216
+ }
217
+ },
218
+ MuiTabScrollButton: {
219
+ styleOverrides: {
220
+ root: {
221
+ width: 48,
222
+ borderRadius: "50%"
223
+ }
224
+ }
225
+ }
226
+ };
227
+ }
228
+ function Menu(theme) {
229
+ return {
230
+ MuiMenuItem: {
231
+ styleOverrides: {
232
+ root: {
233
+ "&.Mui-selected": {
234
+ backgroundColor: theme.palette.action.selected,
235
+ "&:hover": {
236
+ backgroundColor: theme.palette.action.hover
237
+ }
238
+ }
239
+ }
240
+ }
241
+ }
242
+ };
243
+ }
244
+ function Link(theme) {
245
+ return {
246
+ MuiLink: {
247
+ defaultProps: {
248
+ underline: "hover"
249
+ },
250
+ styleOverrides: {
251
+ root: {
252
+ "&.MuiLink-underlineHover": {
253
+ textDecorationColor: theme.palette.primary.main
254
+ }
255
+ }
256
+ }
257
+ }
258
+ };
259
+ }
260
+ function List(theme) {
261
+ return {
262
+ MuiListItemIcon: {
263
+ styleOverrides: {
264
+ root: {
265
+ color: "inherit",
266
+ minWidth: "auto",
267
+ marginRight: theme.spacing(2)
268
+ }
269
+ }
270
+ },
271
+ MuiListItemAvatar: {
272
+ styleOverrides: {
273
+ root: {
274
+ minWidth: "auto",
275
+ marginRight: theme.spacing(2)
276
+ }
277
+ }
278
+ },
279
+ MuiListItemText: {
280
+ styleOverrides: {
281
+ root: {
282
+ marginTop: 0,
283
+ marginBottom: 0
284
+ },
285
+ multiline: {
286
+ marginTop: 0,
287
+ marginBottom: 0
288
+ }
289
+ }
290
+ }
291
+ };
292
+ }
293
+ function Table(theme) {
294
+ return {
295
+ MuiTableRow: {
296
+ styleOverrides: {
297
+ root: {
298
+ "&.Mui-selected": {
299
+ backgroundColor: theme.palette.action.selected,
300
+ "&:hover": {
301
+ backgroundColor: theme.palette.action.hover
302
+ }
303
+ }
304
+ }
305
+ }
306
+ },
307
+ MuiTableCell: {
308
+ styleOverrides: {
309
+ root: {
310
+ borderBottom: "none"
311
+ },
312
+ head: {
313
+ color: theme.palette.text.secondary,
314
+ backgroundColor: theme.palette.background.neutral,
315
+ "&:first-of-type": {
316
+ paddingLeft: theme.spacing(3),
317
+ borderTopLeftRadius: theme.shape.borderRadius,
318
+ borderBottomLeftRadius: theme.shape.borderRadius,
319
+ boxShadow: `inset 8px 0 0 ${theme.palette.background.paper}`
320
+ },
321
+ "&:last-of-type": {
322
+ paddingRight: theme.spacing(3),
323
+ borderTopRightRadius: theme.shape.borderRadius,
324
+ borderBottomRightRadius: theme.shape.borderRadius,
325
+ boxShadow: `inset -8px 0 0 ${theme.palette.background.paper}`
326
+ }
327
+ },
328
+ stickyHeader: {
329
+ backgroundColor: theme.palette.background.paper,
330
+ backgroundImage: `linear-gradient(to bottom, ${theme.palette.background.neutral} 0%, ${theme.palette.background.neutral} 100%)`
331
+ },
332
+ body: {
333
+ "&:first-of-type": {
334
+ paddingLeft: theme.spacing(3)
335
+ },
336
+ "&:last-of-type": {
337
+ paddingRight: theme.spacing(3)
338
+ }
339
+ }
340
+ }
341
+ },
342
+ MuiTablePagination: {
343
+ styleOverrides: {
344
+ root: {
345
+ ...theme.typography.caption
346
+ },
347
+ toolbar: {
348
+ "& .MuiInputBase-root": {
349
+ marginLeft: theme.spacing(1),
350
+ marginRight: theme.spacing(3),
351
+ ...theme.typography.caption
352
+ },
353
+ "&.MuiToolbar-regular": {
354
+ minHeight: 40,
355
+ height: 40,
356
+ paddingRight: 0
357
+ },
358
+ "& .MuiTablePagination-displayedRows": {
359
+ ...theme.typography.caption
360
+ }
361
+ },
362
+ selectLabel: {
363
+ ...theme.typography.caption
364
+ },
365
+ select: {
366
+ paddingBottom: 4,
367
+ "&:focus": {
368
+ borderRadius: theme.shape.borderRadius
369
+ }
370
+ },
371
+ selectIcon: {
372
+ width: 20,
373
+ height: 20
374
+ }
375
+ }
376
+ }
377
+ };
378
+ }
379
+ function Badge(_theme) {
380
+ return {
381
+ MuiBadge: {
382
+ styleOverrides: {
383
+ dot: {
384
+ width: 10,
385
+ height: 10,
386
+ borderRadius: "50%"
387
+ }
388
+ }
389
+ }
390
+ };
391
+ }
392
+ function Paper(theme) {
393
+ return {
394
+ MuiPaper: {
395
+ defaultProps: {
396
+ elevation: 0
397
+ },
398
+ variants: [
399
+ {
400
+ props: { variant: "outlined" },
401
+ style: { borderColor: theme.palette.grey[50012] }
402
+ }
403
+ ],
404
+ styleOverrides: {
405
+ root: {
406
+ backgroundImage: "none",
407
+ borderRadius: "2px"
408
+ }
409
+ }
410
+ }
411
+ };
412
+ }
413
+ function Input(theme) {
414
+ return {
415
+ MuiFormControl: {
416
+ styleOverrides: {
417
+ root: {}
418
+ }
419
+ },
420
+ MuiInputBase: {
421
+ styleOverrides: {
422
+ root: {
423
+ backgroundColor: theme.palette.background.default,
424
+ ...theme.typography.body2,
425
+ borderRadius: theme.spacing(1),
426
+ "&.Mui-disabled": {
427
+ "& svg": { color: theme.palette.text.disabled }
428
+ },
429
+ padding: "0px"
430
+ },
431
+ input: {
432
+ paddingLeft: "8px",
433
+ "&::placeholder": {
434
+ opacity: 1,
435
+ color: theme.palette.text.disabled
436
+ }
437
+ }
438
+ }
439
+ },
440
+ MuiInput: {
441
+ styleOverrides: {
442
+ underline: {
443
+ "&:before": {
444
+ borderBottomColor: theme.palette.grey[50056]
445
+ }
446
+ }
447
+ }
448
+ },
449
+ MuiFilledInput: {
450
+ styleOverrides: {
451
+ root: {
452
+ backgroundColor: theme.palette.grey[50012],
453
+ "&:hover": {
454
+ backgroundColor: theme.palette.grey[50016]
455
+ },
456
+ "&.Mui-focused": {
457
+ backgroundColor: theme.palette.action.focus
458
+ },
459
+ "&.Mui-disabled": {
460
+ backgroundColor: theme.palette.action.disabledBackground
461
+ }
462
+ },
463
+ underline: {
464
+ "&:before": {
465
+ borderBottomColor: theme.palette.grey[50056]
466
+ }
467
+ }
468
+ }
469
+ },
470
+ MuiOutlinedInput: {
471
+ styleOverrides: {
472
+ root: {
473
+ ...theme.typography.body2,
474
+ color: theme.palette.text.primary,
475
+ "& > input": {
476
+ padding: theme.spacing(1.5, 1.5)
477
+ },
478
+ "& .MuiOutlinedInput-notchedOutline": {
479
+ borderColor: theme.palette.grey[50032],
480
+ fontSize: "0.875rem"
481
+ },
482
+ "&.Mui-disabled": {
483
+ "& .MuiOutlinedInput-notchedOutline": {
484
+ borderColor: theme.palette.action.disabledBackground
485
+ }
486
+ },
487
+ "& .MuiOutlinedInput-input:-webkit-autofill": {
488
+ WebkitBoxShadow: `0 0 0 1000px ${theme.palette.background.autofill} inset`
489
+ }
490
+ }
491
+ }
492
+ }
493
+ };
494
+ }
495
+ function InputLabel(_theme) {
496
+ return {
497
+ MuiInputLabel: {
498
+ styleOverrides: {
499
+ shrink: {
500
+ transform: "translate(14px, -9px) scale(0.75)!important"
501
+ },
502
+ outlined: {
503
+ transform: "translate(14px, 12px) scale(1)",
504
+ fontSize: 12
505
+ }
506
+ }
507
+ }
508
+ };
509
+ }
510
+ function Radio(theme) {
511
+ return {
512
+ MuiRadio: {
513
+ styleOverrides: {
514
+ root: {
515
+ padding: theme.spacing(1),
516
+ svg: {
517
+ fontSize: 24,
518
+ "&[font-size=small]": {
519
+ fontSize: 20
520
+ }
521
+ }
522
+ }
523
+ }
524
+ }
525
+ };
526
+ }
527
+ function Drawer(theme) {
528
+ const isLight = theme.palette.mode === "light";
529
+ return {
530
+ MuiDrawer: {
531
+ styleOverrides: {
532
+ modal: {
533
+ '&[role="presentation"]': {
534
+ "& .MuiDrawer-paperAnchorLeft": {
535
+ boxShadow: `8px 24px 24px 12px ${alpha(theme.palette.grey[900], isLight ? 0.16 : 0.48)}`
536
+ },
537
+ "& .MuiDrawer-paperAnchorRight": {
538
+ boxShadow: `-8px 24px 24px 12px ${alpha(theme.palette.grey[900], isLight ? 0.16 : 0.48)}`
539
+ }
540
+ }
541
+ }
542
+ }
543
+ }
544
+ };
545
+ }
546
+ function Dialog(theme) {
547
+ return {
548
+ MuiDialog: {
549
+ styleOverrides: {
550
+ paper: {
551
+ boxShadow: theme.customShadows.dialog,
552
+ "&.MuiPaper-rounded": {
553
+ borderRadius: Number(theme.shape.borderRadius) * 2
554
+ },
555
+ "&.MuiDialog-paperFullScreen": {
556
+ borderRadius: 0
557
+ },
558
+ "&.MuiDialog-paper .MuiDialogActions-root": {
559
+ padding: theme.spacing(3)
560
+ },
561
+ "@media (max-width: 600px)": {
562
+ margin: theme.spacing(2)
563
+ },
564
+ "@media (max-width: 663.95px)": {
565
+ "&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody": {
566
+ maxWidth: "100%"
567
+ }
568
+ }
569
+ },
570
+ paperFullWidth: {
571
+ width: "100%"
572
+ }
573
+ }
574
+ },
575
+ MuiDialogTitle: {
576
+ styleOverrides: {
577
+ root: {
578
+ padding: theme.spacing(3, 3, 0)
579
+ }
580
+ }
581
+ },
582
+ MuiDialogContent: {
583
+ styleOverrides: {
584
+ root: {
585
+ borderTop: 0,
586
+ borderBottom: 0,
587
+ padding: theme.spacing(3)
588
+ }
589
+ }
590
+ },
591
+ MuiDialogActions: {
592
+ styleOverrides: {
593
+ root: {
594
+ "& > :not(:first-of-type)": {
595
+ marginLeft: theme.spacing(1.5)
596
+ }
597
+ }
598
+ }
599
+ }
600
+ };
601
+ }
602
+ function Slider(theme) {
603
+ const isLight = theme.palette.mode === "light";
604
+ return {
605
+ MuiSlider: {
606
+ defaultProps: {
607
+ size: "small"
608
+ },
609
+ styleOverrides: {
610
+ root: {
611
+ "&.Mui-disabled": {
612
+ color: theme.palette.action.disabled
613
+ }
614
+ },
615
+ markLabel: {
616
+ fontSize: 13,
617
+ color: theme.palette.text.disabled
618
+ },
619
+ valueLabel: {
620
+ borderRadius: 8,
621
+ backgroundColor: theme.palette.grey[isLight ? 800 : 700]
622
+ }
623
+ }
624
+ }
625
+ };
626
+ }
627
+ function Switch(theme) {
628
+ const isLight = theme.palette.mode === "light";
629
+ return {
630
+ MuiSwitch: {
631
+ styleOverrides: {
632
+ thumb: {
633
+ boxShadow: theme.customShadows.z1
634
+ },
635
+ track: {
636
+ opacity: 1,
637
+ backgroundColor: theme.palette.grey[500]
638
+ },
639
+ switchBase: {
640
+ left: 0,
641
+ right: "auto",
642
+ "&:not(:.Mui-checked)": {
643
+ color: theme.palette.grey[isLight ? 100 : 300]
644
+ },
645
+ "&.Mui-checked.Mui-disabled, &.Mui-disabled": {
646
+ color: theme.palette.grey[isLight ? 400 : 600]
647
+ },
648
+ "&.Mui-disabled+.MuiSwitch-track": {
649
+ opacity: 1,
650
+ backgroundColor: `${theme.palette.action.disabledBackground} !important`
651
+ }
652
+ }
653
+ }
654
+ }
655
+ };
656
+ }
657
+ function SvgIcon(_theme) {
658
+ return {
659
+ MuiSvgIcon: {
660
+ styleOverrides: {
661
+ fontSizeSmall: {
662
+ width: 20,
663
+ height: 20,
664
+ fontSize: "inherit"
665
+ },
666
+ fontSizeLarge: {
667
+ width: 32,
668
+ height: 32,
669
+ fontSize: "inherit"
670
+ }
671
+ }
672
+ }
673
+ };
674
+ }
675
+ function Tooltip(theme) {
676
+ const isLight = theme.palette.mode === "light";
677
+ return {
678
+ MuiTooltip: {
679
+ styleOverrides: {
680
+ tooltip: {
681
+ backgroundColor: theme.palette.grey[isLight ? 800 : 700]
682
+ },
683
+ arrow: {
684
+ color: theme.palette.grey[isLight ? 800 : 700]
685
+ }
686
+ }
687
+ }
688
+ };
689
+ }
690
+ function Popover(theme) {
691
+ return {
692
+ MuiPopover: {
693
+ styleOverrides: {
694
+ paper: {
695
+ boxShadow: theme.customShadows.dropdown,
696
+ borderRadius: Number(theme.shape.borderRadius) * 1.5
697
+ }
698
+ }
699
+ }
700
+ };
701
+ }
702
+ function Stepper(theme) {
703
+ return {
704
+ MuiStepConnector: {
705
+ styleOverrides: {
706
+ line: {
707
+ borderColor: theme.palette.divider
708
+ }
709
+ }
710
+ }
711
+ };
712
+ }
713
+ function DataGrid(theme) {
714
+ return {
715
+ MuiDataGrid: {
716
+ styleOverrides: {
717
+ root: {
718
+ borderRadius: 0,
719
+ border: `1px solid transparent`,
720
+ "& .MuiTablePagination-root": {
721
+ borderTop: 0
722
+ },
723
+ "& .MuiDataGrid-toolbarContainer": {
724
+ padding: theme.spacing(2),
725
+ backgroundColor: theme.palette.background.neutral,
726
+ "& .MuiButton-root": {
727
+ marginRight: theme.spacing(1.5),
728
+ color: theme.palette.text.primary,
729
+ "&:hover": {
730
+ backgroundColor: theme.palette.action.hover
731
+ }
732
+ }
733
+ },
734
+ "& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer": {
735
+ borderBottom: `1px solid ${theme.palette.divider}`
736
+ },
737
+ "& .MuiDataGrid-columnSeparator": {
738
+ color: theme.palette.divider
739
+ },
740
+ '& .MuiDataGrid-columnHeader[data-field="__check__"]': {
741
+ padding: 0
742
+ }
743
+ }
744
+ }
745
+ },
746
+ MuiGridMenu: {
747
+ styleOverrides: {
748
+ root: {
749
+ "& .MuiDataGrid-gridMenuList": {
750
+ boxShadow: theme.customShadows.z20,
751
+ borderRadius: theme.shape.borderRadius
752
+ },
753
+ "& .MuiMenuItem-root": {
754
+ ...theme.typography.body2
755
+ }
756
+ }
757
+ }
758
+ },
759
+ MuiGridFilterForm: {
760
+ styleOverrides: {
761
+ root: {
762
+ padding: theme.spacing(1.5, 0),
763
+ "& .MuiFormControl-root": {
764
+ margin: theme.spacing(0, 0.5)
765
+ },
766
+ "& .MuiInput-root": {
767
+ marginTop: theme.spacing(3),
768
+ "&::before, &::after": {
769
+ display: "none"
770
+ },
771
+ "& .MuiNativeSelect-select, .MuiInput-input": {
772
+ ...theme.typography.body2,
773
+ padding: theme.spacing(0.75, 1),
774
+ borderRadius: theme.shape.borderRadius,
775
+ backgroundColor: theme.palette.background.neutral
776
+ },
777
+ "& .MuiSvgIcon-root": {
778
+ right: 4
779
+ }
780
+ }
781
+ }
782
+ }
783
+ },
784
+ MuiGridPanelFooter: {
785
+ styleOverrides: {
786
+ root: {
787
+ padding: theme.spacing(2),
788
+ justifyContent: "flex-end",
789
+ "& .MuiButton-root": {
790
+ "&:first-of-type": {
791
+ marginRight: theme.spacing(1.5),
792
+ color: theme.palette.text.primary,
793
+ "&:hover": {
794
+ backgroundColor: theme.palette.action.hover
795
+ }
796
+ },
797
+ "&:last-of-type": {
798
+ color: theme.palette.common.white,
799
+ backgroundColor: theme.palette.primary.main,
800
+ "&:hover": {
801
+ backgroundColor: theme.palette.primary.dark
802
+ }
803
+ }
804
+ }
805
+ }
806
+ }
807
+ }
808
+ };
809
+ }
810
+ function Skeleton(theme) {
811
+ return {
812
+ MuiSkeleton: {
813
+ defaultProps: {
814
+ animation: "wave"
815
+ },
816
+ styleOverrides: {
817
+ root: {
818
+ backgroundColor: theme.palette.divider
819
+ }
820
+ }
821
+ }
822
+ };
823
+ }
824
+ function Backdrop(theme) {
825
+ const varLow = alpha$1(theme.palette.grey[900], 0.48);
826
+ const varHigh = alpha$1(theme.palette.grey[900], 1);
827
+ return {
828
+ MuiBackdrop: {
829
+ styleOverrides: {
830
+ root: {
831
+ background: [
832
+ `rgb(22,28,36)`,
833
+ `-moz-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
834
+ `-webkit-linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`,
835
+ `linear-gradient(75deg, ${varLow} 0%, ${varHigh} 100%)`
836
+ ],
837
+ "&.MuiBackdrop-invisible": {
838
+ background: "transparent"
839
+ }
840
+ }
841
+ }
842
+ }
843
+ };
844
+ }
845
+ function Progress(theme) {
846
+ const isLight = theme.palette.mode === "light";
847
+ return {
848
+ MuiLinearProgress: {
849
+ styleOverrides: {
850
+ root: {
851
+ borderRadius: 4,
852
+ overflow: "hidden"
853
+ },
854
+ bar: {
855
+ borderRadius: 4
856
+ },
857
+ colorPrimary: {
858
+ backgroundColor: theme.palette.primary[isLight ? "lighter" : "darker"]
859
+ },
860
+ buffer: {
861
+ backgroundColor: "transparent"
862
+ }
863
+ }
864
+ }
865
+ };
866
+ }
867
+ function Timeline(theme) {
868
+ return {
869
+ MuiTimelineDot: {
870
+ styleOverrides: {
871
+ root: {
872
+ boxShadow: "none"
873
+ }
874
+ }
875
+ },
876
+ MuiTimelineConnector: {
877
+ styleOverrides: {
878
+ root: {
879
+ backgroundColor: theme.palette.divider
880
+ }
881
+ }
882
+ }
883
+ };
884
+ }
885
+ function Checkbox(theme) {
886
+ return {
887
+ MuiCheckbox: {
888
+ styleOverrides: {
889
+ root: {
890
+ padding: theme.spacing(1),
891
+ oleee: "sss",
892
+ color: theme.palette.action.active,
893
+ "& .Mui-checked": {
894
+ color: theme.palette.primary.main
895
+ },
896
+ "&.Mui-checked.Mui-disabled, &.Mui-disabled": {
897
+ color: theme.palette.action.disabled
898
+ }
899
+ }
900
+ }
901
+ }
902
+ };
903
+ }
904
+ function Accordion(theme) {
905
+ return {
906
+ MuiAccordion: {
907
+ styleOverrides: {
908
+ root: {
909
+ backgroundColor: theme.palette.background.default,
910
+ width: "100%",
911
+ marginTop: "0px",
912
+ marginBottom: theme.spacing(1.5),
913
+ "&.Mui-expanded": {
914
+ marginTop: "0px",
915
+ marginBottom: theme.spacing(1.5)
916
+ },
917
+ border: "0px solid transparent",
918
+ "&.Mui-disabled": {
919
+ backgroundColor: "transparent"
920
+ },
921
+ "&::before": {
922
+ content: "none"
923
+ }
924
+ }
925
+ }
926
+ },
927
+ MuiAccordionDetails: {
928
+ styleOverrides: {
929
+ root: {
930
+ padding: `0px ${theme.spacing(0)}`
931
+ }
932
+ }
933
+ },
934
+ MuiAccordionSummary: {
935
+ styleOverrides: {
936
+ root: {
937
+ borderRadius: theme.spacing(0.5),
938
+ height: theme.spacing(4.5),
939
+ minHeight: theme.spacing(4.5),
940
+ backgroundColor: theme.palette.background.header,
941
+ paddingLeft: theme.spacing(2),
942
+ paddingRight: theme.spacing(2),
943
+ marginBottom: "0px",
944
+ "&.Mui-expanded": {
945
+ height: theme.spacing(4.5),
946
+ minHeight: theme.spacing(4.5),
947
+ borderRadius: `${theme.spacing(0.5)} ${theme.spacing(0.5)} 0px 0px`
948
+ },
949
+ "&.Mui-disabled": {
950
+ opacity: 1,
951
+ color: theme.palette.action.disabled,
952
+ "& .MuiTypography-root": {
953
+ color: "inherit"
954
+ }
955
+ }
956
+ },
957
+ expandIconWrapper: {
958
+ color: theme.palette.action.active,
959
+ height: 20,
960
+ width: 20,
961
+ alignItems: "center",
962
+ justifyContent: "center",
963
+ "& > svg": {
964
+ height: 12,
965
+ width: 12
966
+ }
967
+ },
968
+ content: {
969
+ ...theme.typography.subtitle2,
970
+ margin: "0px",
971
+ "&.Mui-expanded": {
972
+ margin: "0px"
973
+ }
974
+ }
975
+ }
976
+ }
977
+ };
978
+ }
979
+ function Typography(theme) {
980
+ return {
981
+ MuiTypography: {
982
+ styleOverrides: {
983
+ paragraph: {
984
+ marginBottom: theme.spacing(2)
985
+ },
986
+ gutterBottom: {
987
+ marginBottom: theme.spacing(1)
988
+ }
989
+ }
990
+ }
991
+ };
992
+ }
993
+ function Pagination(theme) {
994
+ return {
995
+ MuiPaginationItem: {
996
+ styleOverrides: {
997
+ root: {
998
+ "&.Mui-selected": {
999
+ fontWeight: theme.typography.fontWeightBold
1000
+ }
1001
+ },
1002
+ textPrimary: {
1003
+ "&.Mui-selected": {
1004
+ color: theme.palette.primary.main,
1005
+ backgroundColor: alpha$1(theme.palette.primary.main, 0.08),
1006
+ "&:hover, &.Mui-focusVisible": {
1007
+ backgroundColor: `${alpha$1(theme.palette.primary.main, 0.24)} !important`
1008
+ }
1009
+ }
1010
+ },
1011
+ outlined: {
1012
+ border: `1px solid ${theme.palette.grey[50032]}`
1013
+ },
1014
+ outlinedPrimary: {
1015
+ "&.Mui-selected": {
1016
+ backgroundColor: alpha$1(theme.palette.primary.main, 0.08),
1017
+ border: `1px solid ${alpha$1(theme.palette.primary.main, 0.24)}`
1018
+ }
1019
+ }
1020
+ }
1021
+ }
1022
+ };
1023
+ }
1024
+ function Breadcrumbs(theme) {
1025
+ return {
1026
+ MuiBreadcrumbs: {
1027
+ styleOverrides: {
1028
+ separator: {
1029
+ marginLeft: theme.spacing(2),
1030
+ marginRight: theme.spacing(2)
1031
+ }
1032
+ }
1033
+ }
1034
+ };
1035
+ }
1036
+ function ButtonGroup(theme) {
1037
+ const styleContained = (color) => ({
1038
+ props: { variant: "contained", color },
1039
+ style: { boxShadow: theme.customShadows[color] }
1040
+ });
1041
+ return {
1042
+ MuiButtonGroup: {
1043
+ variants: [
1044
+ {
1045
+ props: { variant: "contained", color: "inherit" },
1046
+ style: { boxShadow: theme.customShadows.z8 }
1047
+ },
1048
+ styleContained("primary"),
1049
+ styleContained("secondary"),
1050
+ styleContained("info"),
1051
+ styleContained("success"),
1052
+ styleContained("warning"),
1053
+ styleContained("error"),
1054
+ {
1055
+ props: { disabled: true },
1056
+ style: {
1057
+ boxShadow: "none",
1058
+ "& .MuiButtonGroup-grouped.Mui-disabled": {
1059
+ color: theme.palette.action.disabled,
1060
+ borderColor: `${theme.palette.action.disabledBackground} !important`,
1061
+ "&.MuiButton-contained": {
1062
+ backgroundColor: theme.palette.action.disabledBackground
1063
+ }
1064
+ }
1065
+ }
1066
+ }
1067
+ ],
1068
+ styleOverrides: {
1069
+ root: {
1070
+ "&:hover": {
1071
+ boxShadow: "none"
1072
+ }
1073
+ }
1074
+ }
1075
+ }
1076
+ };
1077
+ }
1078
+ function CssBaseline(_theme) {
1079
+ return {
1080
+ MuiCssBaseline: {
1081
+ styleOverrides: {
1082
+ "*": {
1083
+ margin: 0,
1084
+ padding: 0,
1085
+ boxSizing: "border-box"
1086
+ },
1087
+ html: {
1088
+ width: "100%",
1089
+ height: "100%",
1090
+ WebkitOverflowScrolling: "touch"
1091
+ },
1092
+ body: {
1093
+ width: "100%",
1094
+ height: "100%"
1095
+ },
1096
+ "#root": {
1097
+ width: "100%",
1098
+ height: "100%"
1099
+ },
1100
+ input: {
1101
+ "&[type=number]": {
1102
+ MozAppearance: "textfield",
1103
+ "&::-webkit-outer-spin-button": {
1104
+ margin: 0,
1105
+ WebkitAppearance: "none"
1106
+ },
1107
+ "&::-webkit-inner-spin-button": {
1108
+ margin: 0,
1109
+ WebkitAppearance: "none"
1110
+ }
1111
+ }
1112
+ },
1113
+ img: {
1114
+ display: "block",
1115
+ maxWidth: "100%"
1116
+ }
1117
+ }
1118
+ }
1119
+ };
1120
+ }
1121
+ function Autocomplete(theme) {
1122
+ return {
1123
+ MuiAutocomplete: {
1124
+ styleOverrides: {
1125
+ root: {
1126
+ "& .MuiInputBase-root": {
1127
+ padding: "0 39px 0px 0"
1128
+ },
1129
+ input: {
1130
+ padding: `${theme.spacing(1.5, 1.5)}!important`
1131
+ }
1132
+ },
1133
+ paper: {
1134
+ boxShadow: theme.customShadows.dropdown
1135
+ },
1136
+ listbox: {
1137
+ padding: theme.spacing(0, 1),
1138
+ "& .MuiAutocomplete-option": {
1139
+ padding: theme.spacing(1),
1140
+ margin: theme.spacing(1, 0),
1141
+ borderRadius: theme.shape.borderRadius
1142
+ }
1143
+ }
1144
+ }
1145
+ }
1146
+ };
1147
+ }
1148
+ const style = (theme, color) => ({
1149
+ props: { color },
1150
+ style: {
1151
+ "&:hover": {
1152
+ borderColor: alpha$1(theme.palette[color].main, 0.48),
1153
+ backgroundColor: alpha$1(theme.palette[color].main, theme.palette.action.hoverOpacity)
1154
+ },
1155
+ "&.Mui-selected": {
1156
+ borderColor: alpha$1(theme.palette[color].main, 0.48)
1157
+ }
1158
+ }
1159
+ });
1160
+ function ToggleButton(theme) {
1161
+ return {
1162
+ MuiToggleButton: {
1163
+ variants: [
1164
+ {
1165
+ props: { color: "standard" },
1166
+ style: {
1167
+ "&.Mui-selected": {
1168
+ backgroundColor: theme.palette.action.selected
1169
+ }
1170
+ }
1171
+ },
1172
+ style(theme, "primary"),
1173
+ style(theme, "secondary"),
1174
+ style(theme, "info"),
1175
+ style(theme, "success"),
1176
+ style(theme, "warning"),
1177
+ style(theme, "error")
1178
+ ]
1179
+ },
1180
+ MuiToggleButtonGroup: {
1181
+ styleOverrides: {
1182
+ root: {
1183
+ borderRadius: theme.shape.borderRadius,
1184
+ backgroundColor: theme.palette.background.paper,
1185
+ border: `solid 1px ${theme.palette.grey[50012]}`,
1186
+ "& .MuiToggleButton-root": {
1187
+ margin: 4,
1188
+ borderColor: "transparent !important",
1189
+ borderRadius: `${theme.shape.borderRadius}px !important`
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1194
+ };
1195
+ }
1196
+ function ControlLabel(theme) {
1197
+ return {
1198
+ MuiFormControlLabel: {
1199
+ styleOverrides: {
1200
+ label: {
1201
+ ...theme.typography.body1
1202
+ }
1203
+ }
1204
+ },
1205
+ MuiFormHelperText: {
1206
+ styleOverrides: {
1207
+ root: {
1208
+ marginTop: theme.spacing(1)
1209
+ }
1210
+ }
1211
+ },
1212
+ MuiFormLabel: {
1213
+ styleOverrides: {
1214
+ root: {
1215
+ color: theme.palette.text.disabled
1216
+ }
1217
+ }
1218
+ }
1219
+ };
1220
+ }
1221
+ function LoadingButton(theme) {
1222
+ return {
1223
+ MuiLoadingButton: {
1224
+ styleOverrides: {
1225
+ root: {
1226
+ "&.MuiLoadingButton-root": {
1227
+ ...theme.typography.subtitle2,
1228
+ "& .MuiCircularProgress-root": {
1229
+ color: theme.palette.primary.main
1230
+ }
1231
+ },
1232
+ "&.MuiButton-text": {
1233
+ "& .MuiLoadingButton-startIconPendingStart": {
1234
+ marginLeft: 0
1235
+ },
1236
+ "& .MuiLoadingButton-endIconPendingEnd": {
1237
+ marginRight: 0
1238
+ }
1239
+ }
1240
+ }
1241
+ }
1242
+ }
1243
+ };
1244
+ }
1245
+ function fnComponentsOverrides(theme) {
1246
+ 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));
1247
+ }
1248
+ export { fnComponentsOverrides as f };