@m4l/styles 0.0.31 → 0.0.32

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 (58) hide show
  1. package/index.js +37 -37
  2. package/package.json +1 -1
  3. package/theme/defaultThemeOptions.b25c825e.js +27 -0
  4. package/theme/index.34d0fdea.js +1 -0
  5. package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +22 -15
  6. package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +106 -81
  7. package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +58 -3
  8. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +636 -475
  9. package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +42 -52
  10. package/theme/overrides/M4LExtendedComponents/M4LAvatar.d.ts +0 -2
  11. package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +5 -0
  12. package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +56 -57
  13. package/theme/overrides/M4LExtendedComponents/M4LCheckBox.d.ts +13 -12
  14. package/theme/overrides/M4LExtendedComponents/M4LDataGrid.d.ts +14 -6
  15. package/theme/overrides/M4LExtendedComponents/M4LDynamicFilter.d.ts +78 -87
  16. package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +2 -2
  17. package/theme/overrides/M4LExtendedComponents/M4LMFLoader.d.ts +2 -1
  18. package/theme/overrides/M4LExtendedComponents/M4LMasterDetailLayout.d.ts +13 -2
  19. package/theme/overrides/M4LExtendedComponents/M4LMenuActions.d.ts +17 -0
  20. package/theme/overrides/M4LExtendedComponents/M4LModalDialog.d.ts +2 -4
  21. package/theme/overrides/M4LExtendedComponents/M4LPager.d.ts +0 -2
  22. package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +1 -2
  23. package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +43 -33
  24. package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +12 -0
  25. package/theme/overrides/M4LExtendedComponents/M4LPropertyValue.d.ts +142 -1
  26. package/theme/overrides/M4LExtendedComponents/M4LRHFormProvider.d.ts +1 -0
  27. package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +91 -42
  28. package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +3 -0
  29. package/theme/overrides/M4LExtendedComponents/M4LTabContent.d.ts +1 -0
  30. package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +16 -0
  31. package/theme/overrides/M4LExtendedComponents/M4LToastContainer.d.ts +29 -0
  32. package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +0 -4
  33. package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +24 -20
  34. package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -4
  35. package/theme/overrides/M4LExtendedComponents/{index.1cd7b9f2.js → index.15f2650a.js} +1112 -826
  36. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +102 -4
  37. package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +107 -0
  38. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +5 -3
  39. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +5 -0
  40. package/theme/overrides/M4LRHFComponents/M4LRHFUploadImage.d.ts +2 -1
  41. package/theme/overrides/M4LRHFComponents/{index.2dbe138a.js → index.e6262889.js} +252 -37
  42. package/theme/overrides/MUIComponents/{index.f50cd1c7.js → index.1b2b2be2.js} +59 -138
  43. package/theme/overrides/index.158187f3.js +105 -0
  44. package/theme/{palette.76ca123c.js → palette.31d770bc.js} +84 -42
  45. package/theme/palette.d.ts +16 -6
  46. package/theme/{shadows.1c46a94e.js → shadows.9800d84c.js} +24 -24
  47. package/theme/typography.b14a8e35.js +122 -0
  48. package/theme/typography.d.ts +19 -13
  49. package/types/augmentations.d.ts +1 -1
  50. package/utils/{getColorPresets.5bb0236e.js → getColorPresets.9fec9cc2.js} +1 -1
  51. package/utils/getColorState.4350ccb4.js +239 -0
  52. package/utils/getColorState.d.ts +5 -0
  53. package/theme/defaultThemeOptions.85da8657.js +0 -30
  54. package/theme/index.4dffae0a.js +0 -7
  55. package/theme/overrides/MUIComponents/Tabs.d.ts +0 -903
  56. package/theme/overrides/index.a465322b.js +0 -104
  57. package/theme/typography.89adddae.js +0 -124
  58. package/utils/getColorState.42ed5268.js +0 -208
@@ -1,6 +1,6 @@
1
1
  import { alpha as o } from "@mui/system";
2
2
  import { alpha as e } from "@mui/material/styles";
3
- const n = (t) => ({
3
+ const r = (t) => ({
4
4
  M4LRHFTextFieldPassword: {
5
5
  styleOverrides: {
6
6
  "&.M4LRHFTextFieldPassword-root": {
@@ -8,20 +8,21 @@ const n = (t) => ({
8
8
  }
9
9
  }
10
10
  }
11
- }), r = (t) => ({
11
+ }), n = (t) => ({
12
12
  M4LRHFTextField: {
13
13
  styleOverrides: {
14
14
  "&.M4LRHFTextField-root": {
15
15
  display: "flex",
16
16
  flexDirection: "column",
17
17
  width: "100%",
18
- gap: "4px",
18
+ gap: "2px",
19
19
  "&.M4LRHFTextField-variantText": {
20
20
  height: "auto",
21
21
  "& .MuiFormControl-root": {
22
+ minHeight: "24px",
22
23
  height: "auto",
23
24
  "& .MuiInputBase-multiline": {
24
- minHeight: "auto",
25
+ minHeight: "24px",
25
26
  height: "auto",
26
27
  "& .MuiInputBase-input": {
27
28
  padding: "4px"
@@ -39,6 +40,7 @@ const n = (t) => ({
39
40
  },
40
41
  "& .MuiInputBase-root": {
41
42
  padding: "0px",
43
+ borderRadius: "4px",
42
44
  "& .MuiInputBase-input": {
43
45
  color: t.palette.text.secondary,
44
46
  padding: "4px 8px",
@@ -55,9 +57,9 @@ const n = (t) => ({
55
57
  transition: "all .3s ease"
56
58
  },
57
59
  "& .MuiOutlinedInput-notchedOutline": {
58
- border: "1px solid",
60
+ border: "1.3px solid",
59
61
  padding: "4px",
60
- borderColor: t.palette.divider,
62
+ borderColor: t.palette.state.borderPrimary,
61
63
  borderRadius: "4px",
62
64
  inset: "0px",
63
65
  transition: "all .3s ease",
@@ -72,7 +74,8 @@ const n = (t) => ({
72
74
  },
73
75
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
74
76
  borderColor: t.palette.state?.hover,
75
- boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
77
+ boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`,
78
+ background: t.palette.state?.active12
76
79
  },
77
80
  "& .MuiInputBase-input": {
78
81
  color: t.palette.text.primary
@@ -89,7 +92,8 @@ const n = (t) => ({
89
92
  transition: "all .1s ease",
90
93
  border: "2px solid",
91
94
  borderColor: t.palette.state?.active,
92
- boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
95
+ boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`,
96
+ background: t.palette.state?.active12
93
97
  },
94
98
  "& .MuiInputBase-input": {
95
99
  color: t.palette.text.primary
@@ -104,7 +108,8 @@ const n = (t) => ({
104
108
  },
105
109
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
106
110
  border: "1px solid",
107
- borderColor: t.palette.state?.error.normal
111
+ borderColor: t.palette.state?.error.normal,
112
+ background: t.palette.error.opacity
108
113
  },
109
114
  "& .MuiInputBase-input": {
110
115
  color: t.palette.text.primary
@@ -129,7 +134,7 @@ const n = (t) => ({
129
134
  },
130
135
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
131
136
  border: "1px solid",
132
- borderColor: t.palette.text.disabled,
137
+ borderColor: t.palette.state.borderSecondary,
133
138
  backgroundColor: t.palette.state?.default,
134
139
  boxShadow: "none"
135
140
  },
@@ -142,7 +147,7 @@ const n = (t) => ({
142
147
  },
143
148
  "&.M4LRHFTextField-sizeSmall": {
144
149
  "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
145
- height: "28px",
150
+ height: "24px",
146
151
  padding: "0px 8px"
147
152
  }
148
153
  },
@@ -222,7 +227,7 @@ const n = (t) => ({
222
227
  }
223
228
  }
224
229
  }
225
- }), u = (t) => ({
230
+ }), p = (t) => ({
226
231
  M4LRHFAutocomplete: {
227
232
  styleOverrides: {
228
233
  "&.M4LRHFAutocomplete-root": {
@@ -230,20 +235,22 @@ const n = (t) => ({
230
235
  display: "flex",
231
236
  flexDirection: "column",
232
237
  width: "100%",
233
- gap: "4px",
238
+ gap: "2px",
234
239
  "& .MuiAutocomplete-root": {
235
240
  height: "auto",
236
241
  "& .MuiFormControl-root": {
237
242
  height: "100%",
238
243
  "& .MuiInputBase-root": {
244
+ borderColor: t.palette.state.borderPrimary,
239
245
  position: "relative",
240
246
  height: "100%",
247
+ gap: "16px",
241
248
  "& .MuiInputBase-input": {
242
249
  boxSizing: "border-box",
243
250
  color: t.palette.text.secondary,
244
251
  backgroundColor: "transparent",
245
- height: "auto",
246
- padding: "2px 2px 2px 8px",
252
+ height: "100%",
253
+ padding: "0 0 0 8px",
247
254
  ...t.typography.body
248
255
  },
249
256
  "& .M4LRHFAutocomplete-iconDown": {},
@@ -295,11 +302,11 @@ const n = (t) => ({
295
302
  },
296
303
  "& .MuiAutocomplete-root .MuiInputBase-root": {
297
304
  padding: "0p 8px",
298
- heigth: "100%"
305
+ height: "100%"
299
306
  },
300
307
  "&:hover": {
301
308
  "& .M4LRHFAutocomplete-label": {
302
- color: t.palette.state?.hover
309
+ color: t.palette.text.secondary
303
310
  },
304
311
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
305
312
  borderColor: t.palette.state?.hover,
@@ -318,6 +325,7 @@ const n = (t) => ({
318
325
  },
319
326
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
320
327
  transition: "all .1s ease",
328
+ background: t.palette.state.active12,
321
329
  border: "2px solid",
322
330
  borderColor: t.palette.state?.active,
323
331
  boxShadow: `0px 1px 8px ${e(t.palette.primary.main, 0.32)}`
@@ -360,7 +368,7 @@ const n = (t) => ({
360
368
  },
361
369
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
362
370
  border: "1px solid",
363
- borderColor: t.palette.text.disabled,
371
+ borderColor: t.palette.state.borderDisable,
364
372
  backgroundColor: t.palette.state?.default,
365
373
  boxShadow: "none"
366
374
  },
@@ -374,14 +382,31 @@ const n = (t) => ({
374
382
  "&.M4LRHFAutocomplete-sizeSmall": {
375
383
  [`& .M4LRHFAutocomplete-skeleton,
376
384
  & .MuiAutocomplete-root`]: {
377
- height: "28px"
385
+ "& .M4LImage-root": {
386
+ width: "24px",
387
+ height: "24px",
388
+ marginLeft: "6px"
389
+ },
390
+ height: "24px"
378
391
  }
379
392
  },
380
393
  "&.M4LRHFAutocomplete-sizeMedium": {
381
394
  [`& .M4LRHFAutocomplete-skeleton,
382
395
  & .MuiAutocomplete-root`]: {
396
+ "& .M4LImage-root": {
397
+ width: "28px",
398
+ height: "28px",
399
+ marginLeft: "6px"
400
+ },
383
401
  height: "36px"
384
402
  }
403
+ },
404
+ "&.M4LRHFAutocomplete-imageWidthDefined": {
405
+ "& .M4LImage-root": {
406
+ "& .M4LImage-img": {
407
+ objectPosition: "left"
408
+ }
409
+ }
385
410
  }
386
411
  }
387
412
  }
@@ -389,16 +414,94 @@ const n = (t) => ({
389
414
  M4LRHFAutocompletePopover: {
390
415
  styleOverrides: {
391
416
  "&.M4LRHFAutocomplete-popper": {
392
- test: "root",
393
- position: "fixed",
394
417
  zIndex: "1300",
418
+ "& .MuiAutocomplete-listbox": {
419
+ padding: "8px",
420
+ display: "flex",
421
+ flexDirection: "column",
422
+ "& .MuiAutocomplete-option": {
423
+ borderRadius: "unset"
424
+ },
425
+ "& .M4LRHFAutocomplete-withImage": {
426
+ display: "flex",
427
+ alignItems: "center",
428
+ cursor: "pointer",
429
+ "& .M4LImage-root": {
430
+ height: "100%",
431
+ width: "auto",
432
+ alignItems: "start"
433
+ }
434
+ }
435
+ },
436
+ "& .M4LRHFAutocomplete-withImage": {
437
+ display: "flex",
438
+ gap: "8px",
439
+ "&:hover": {
440
+ color: t.palette.text.primary,
441
+ backgroundColor: t.palette.state.active12
442
+ },
443
+ "& .M4LImage-root": {
444
+ width: "auto",
445
+ height: "100%"
446
+ }
447
+ },
448
+ "&.M4LRHFAutocomplete-sizeSmall": {
449
+ "& .MuiAutocomplete-listbox": {
450
+ "& .MuiAutocomplete-option": {
451
+ height: "24px"
452
+ },
453
+ "& .M4LRHFAutocomplete-withImage": {
454
+ paddingLeft: "4px",
455
+ height: "24px",
456
+ display: "flex",
457
+ alignItems: "center",
458
+ gap: "8px",
459
+ overflow: "hidden",
460
+ "& .M4LImage-img": {
461
+ width: "22px",
462
+ height: "22px",
463
+ position: "relative"
464
+ }
465
+ }
466
+ }
467
+ },
468
+ "&.M4LRHFAutocomplete-sizeMedium": {
469
+ "& .MuiAutocomplete-listbox": {
470
+ "& .MuiAutocomplete-option": {
471
+ height: "32px"
472
+ }
473
+ },
474
+ "& .M4LRHFAutocomplete-withImage": {
475
+ paddingLeft: "4px",
476
+ height: "32px",
477
+ display: "flex",
478
+ alignItems: "center",
479
+ gap: "8px",
480
+ overflow: "hidden",
481
+ "& .M4LImage-img": {
482
+ width: "28px",
483
+ height: "28px",
484
+ position: "relative"
485
+ }
486
+ }
487
+ },
488
+ "&.M4LRHFAutocomplete-imageWidthDefined": {
489
+ "& .M4LImage-img": {
490
+ minWidth: "24px",
491
+ objectPostion: "left"
492
+ }
493
+ },
395
494
  "& .MuiPaper-root": {
396
- boxShadow: t.customShadows.z3
495
+ boxShadow: t.customShadows.z3,
496
+ "& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
497
+ color: t.palette.text.primary,
498
+ backgroundColor: t.palette.state.active12
499
+ }
397
500
  }
398
501
  }
399
502
  }
400
503
  }
401
- }), p = (t) => ({
504
+ }), d = (t) => ({
402
505
  M4LRHFAutocompleteAsync: {
403
506
  styleOverrides: {
404
507
  "&.M4LRHFAutocompleteAsync-root": {
@@ -407,7 +510,7 @@ const n = (t) => ({
407
510
  }
408
511
  }
409
512
  }
410
- }), d = (t) => ({
513
+ }), u = (t) => ({
411
514
  M4LRHFDateTime: {
412
515
  styleOverrides: {
413
516
  "&.M4LRHFDateTime-root": {
@@ -415,10 +518,12 @@ const n = (t) => ({
415
518
  display: "flex",
416
519
  flexDirection: "column",
417
520
  width: "100%",
418
- gap: "4px",
419
- "& .MuiTextField-root": {
420
- "& > div:nth-child(1)": {
421
- height: "100%"
521
+ gap: "2px",
522
+ "& .MuiFormControl-root": {
523
+ height: "auto",
524
+ "& .MuiInputBase-root": {
525
+ padding: "0 4px 0 0",
526
+ minHeight: "24px"
422
527
  }
423
528
  },
424
529
  "& .M4LRHFTextField-label": {
@@ -630,7 +735,8 @@ const n = (t) => ({
630
735
  width: "56px",
631
736
  height: "56px",
632
737
  minWidth: "56px",
633
- minHeight: "56px"
738
+ minHeight: "56px",
739
+ paddingBottom: "8px"
634
740
  },
635
741
  "& .M4LRHFUploadImage-containerMessage": {
636
742
  display: "flex",
@@ -650,7 +756,7 @@ const n = (t) => ({
650
756
  display: "flex",
651
757
  justifyContent: "center",
652
758
  ".MuiTypography-root": {
653
- ...t.typography.body,
759
+ ...t.typography.paragraph,
654
760
  color: t.palette.text.secondary
655
761
  }
656
762
  },
@@ -665,7 +771,7 @@ const n = (t) => ({
665
771
  "& .M4LButton-root": {
666
772
  display: "flex",
667
773
  justifyContent: "center",
668
- marginTop: "16px"
774
+ paddingTop: "8px"
669
775
  }
670
776
  }
671
777
  }
@@ -733,14 +839,123 @@ const n = (t) => ({
733
839
  }
734
840
  }
735
841
  }
842
+ }), c = (t) => ({
843
+ M4LRHFColorPicker: {
844
+ styleOverrides: {
845
+ "&.M4LRHFColorPicker-root": {
846
+ test: "root",
847
+ "& .M4LRHFColorPicker-containerFieldColor": {
848
+ display: "flex",
849
+ alingnItems: "center",
850
+ justifyContent: "center",
851
+ gap: "4px",
852
+ padding: "2px",
853
+ border: "1.5px solid",
854
+ borderColor: t.palette.state.borderPrimary,
855
+ borderRadius: "4px",
856
+ minHeight: "24px",
857
+ height: "24px",
858
+ "& .M4LRHFColorPicker-boxColor": {
859
+ borderRadius: "4px",
860
+ height: "18px !important",
861
+ width: "18px !important"
862
+ },
863
+ "& .M4LIcon-root": {
864
+ minHeight: "18px",
865
+ minWidth: "18px",
866
+ cursor: "pointer",
867
+ borderRadius: "4px"
868
+ },
869
+ "& .M4LIcon-root:hover": {
870
+ background: t.palette.state.overdefoult
871
+ }
872
+ }
873
+ }
874
+ }
875
+ },
876
+ M4LRHFColorPickerPopoverRoot: {
877
+ styleOverrides: {
878
+ "&.M4LRHFColorPicker-popoverRoot": {
879
+ test: "test-popover-root",
880
+ "& .MuiPaper-root": {
881
+ background: t.palette.background.default,
882
+ padding: "8px",
883
+ border: "1px solid",
884
+ borderColor: t.palette.state.borderSecondary,
885
+ borderRadius: "4px",
886
+ boxShadow: t.customShadows.z4,
887
+ "& .M4LRHFColorPicker-containerPicker": {
888
+ background: "transparent",
889
+ borderRadius: "4px",
890
+ display: "flex",
891
+ flexDirection: "column",
892
+ gap: "24px",
893
+ "& .sketch-picker": {
894
+ background: "transparent !important",
895
+ boxShadow: "none !important",
896
+ padding: "12px !important",
897
+ display: "flex",
898
+ flexDirection: "column",
899
+ gap: "8px",
900
+ border: "1px solid",
901
+ borderColor: t.palette.state.borderSecondary,
902
+ borderRadius: "4px",
903
+ "& :nth-of-type(-n + 1)": {
904
+ borderRadius: "4px"
905
+ },
906
+ "& .flexbox-fix": {
907
+ border: "none !important",
908
+ background: "transparent !important",
909
+ "& > div": {
910
+ "& > div": {
911
+ display: "flex",
912
+ flexDirection: "column-reverse",
913
+ ...t.typography.body,
914
+ color: t.palette.text.secondary,
915
+ gap: "2px",
916
+ padding: "0 important",
917
+ "& > input": {
918
+ display: "flex",
919
+ textAlign: "center !important",
920
+ border: "1px solid",
921
+ borderColor: t.palette.state.borderPrimary,
922
+ borderRadius: "2px",
923
+ background: "transparent",
924
+ minHeight: "24px",
925
+ height: "24px !important",
926
+ ...t.typography.body,
927
+ color: `${t.palette.text.primary} !important`
928
+ },
929
+ "& > label": {
930
+ display: "flex",
931
+ textAlign: "left !important",
932
+ ...t.typography.body,
933
+ color: `${t.palette.text.secondary} !important`,
934
+ padding: "0 !important"
935
+ }
936
+ }
937
+ }
938
+ }
939
+ },
940
+ "& .M4LButton-root": {
941
+ display: "flex",
942
+ width: "100%",
943
+ justifyContent: "right"
944
+ }
945
+ }
946
+ }
947
+ }
948
+ }
949
+ }
736
950
  });
737
951
  export {
738
- r as M,
739
- n as a,
740
- u as b,
741
- p as c,
742
- d,
952
+ n as M,
953
+ r as a,
954
+ p as b,
955
+ d as c,
956
+ u as d,
743
957
  s as e,
744
958
  M as f,
745
- l as g
959
+ l as g,
960
+ c as h
746
961
  };