@m4l/styles 0.0.41 → 0.0.43

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 (26) hide show
  1. package/index.js +8 -8
  2. package/package.json +1 -1
  3. package/theme/{defaultThemeOptions.c5fe2519.js → defaultThemeOptions.4c9bc728.js} +4 -4
  4. package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.d.ts +2 -0
  5. package/theme/overrides/M4LExtendedComponents/M4LCheckBox.d.ts +22 -7
  6. package/theme/overrides/M4LExtendedComponents/M4LDataGrid.d.ts +24 -0
  7. package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.d.ts +25 -0
  8. package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +8 -28
  9. package/theme/overrides/M4LExtendedComponents/M4LImage.d.ts +0 -26
  10. package/theme/overrides/M4LExtendedComponents/M4LMFLoader.d.ts +6 -0
  11. package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +366 -342
  12. package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +355 -137
  13. package/theme/overrides/M4LExtendedComponents/{index.8f5f04ca.js → index.b9151f24.js} +395 -352
  14. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +3 -14
  15. package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -47
  16. package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +29 -14
  17. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +29 -151
  18. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +1 -0
  19. package/theme/overrides/M4LRHFComponents/{index.427e0f0e.js → index.02fada22.js} +82 -57
  20. package/theme/overrides/{index.a3e99f67.js → index.fd981495.js} +26 -25
  21. package/theme/{palette.1b577d8c.js → palette.0590e8a6.js} +16 -14
  22. package/theme/palette.d.ts +2 -0
  23. package/theme/{shadows.479d005a.js → shadows.86540b18.js} +1 -1
  24. package/types/augmentations.d.ts +1 -1
  25. package/utils/{getColorPresets.479f9922.js → getColorPresets.2a91ffaf.js} +1 -1
  26. package/utils/{getColorState.0ad9ea67.js → getColorState.6c23eada.js} +1 -1
@@ -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 r = (t) => ({
3
+ const a = (t) => ({
4
4
  M4LRHFTextFieldPassword: {
5
5
  styleOverrides: {
6
6
  "&.M4LRHFTextFieldPassword-root": {
@@ -16,6 +16,7 @@ const r = (t) => ({
16
16
  flexDirection: "column",
17
17
  width: "100%",
18
18
  gap: "2px",
19
+ outline: "unset",
19
20
  "&.M4LRHFTextField-variantText": {
20
21
  height: "auto",
21
22
  "& .MuiFormControl-root": {
@@ -170,7 +171,7 @@ const r = (t) => ({
170
171
  "&.M4LRHFCheckbox-root": {
171
172
  display: "flex",
172
173
  flexDirection: "column",
173
- gap: t.spacing(0.5),
174
+ width: "100%",
174
175
  [t.breakpoints.down("sm")]: {
175
176
  "& .M4LRHFCheckbox-checkTypography": {
176
177
  "& .M4LCheckBox-root": {
@@ -189,14 +190,6 @@ const r = (t) => ({
189
190
  [t.breakpoints.down("sm")]: {
190
191
  gap: t.spacing(1),
191
192
  ...t.typography.paragraph
192
- },
193
- "& .M4LCheckBox-root": {
194
- display: "flex",
195
- gap: "8px",
196
- "& .M4LTypography-root": {
197
- display: "flex",
198
- alignItems: "center"
199
- }
200
193
  }
201
194
  },
202
195
  "& .MuiTypography-root": {
@@ -238,9 +231,6 @@ const r = (t) => ({
238
231
  ".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
239
232
  fill: t.palette.state?.default
240
233
  },
241
- ".M4LRHFCheckbox-stateDisabled .MuiTypography-root": {
242
- color: t.palette.text.disabled
243
- },
244
234
  ".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
245
235
  outline: "#FFF00"
246
236
  }
@@ -256,6 +246,7 @@ const r = (t) => ({
256
246
  flexDirection: "column",
257
247
  width: "100%",
258
248
  gap: "2px",
249
+ outline: "unset",
259
250
  "& .MuiAutocomplete-root": {
260
251
  height: "100%",
261
252
  "& .MuiFormControl-root": {
@@ -293,19 +284,15 @@ const r = (t) => ({
293
284
  display: "flex",
294
285
  justifyContent: "space-between",
295
286
  alignItems: "center",
296
- height: `${t.spacing(4.5)}`,
297
- border: `1px solid ${t.palette.divider}`,
298
- borderRadius: `${t.spacing(1)}`,
299
- padding: `0 ${t.spacing(2)}`,
287
+ border: "1px solid",
288
+ borderColor: t.palette.divider,
289
+ borderRadius: "4px",
290
+ padding: "0 10px",
300
291
  overflow: "hidden",
301
- [t.breakpoints.down("md")]: {
302
- width: "100%"
303
- },
304
- "& .M4LRHFAutocomplete-skeletonContainerText": {
292
+ "& .M4LRHFAutocomplete-SkeletonContainerText": {
305
293
  width: "100%",
306
294
  height: "auto",
307
- overflow: "hidden",
308
- margin: t.spacing(1.5)
295
+ overflow: "hidden"
309
296
  }
310
297
  }
311
298
  },
@@ -538,14 +525,49 @@ const r = (t) => ({
538
525
  flexDirection: "column",
539
526
  width: "100%",
540
527
  gap: "2px",
528
+ outline: "unset",
529
+ "& .M4LRHFDateTime-skeleton": {
530
+ display: "flex",
531
+ width: "100%",
532
+ alignItems: "center",
533
+ justifyContent: "space-between",
534
+ border: `1px solid ${t.palette.divider}`,
535
+ paddingLeft: "12px",
536
+ borderRadius: "2px",
537
+ "& .MuiSkeleton-circular": {
538
+ margin: "4px"
539
+ }
540
+ },
541
+ "&.M4LRHFDateTime-small": {
542
+ "& .M4LRHFDateTime-skeleton": {
543
+ height: "24px",
544
+ "& .MuiSkeleton-circular": {
545
+ width: "16px",
546
+ height: "16px"
547
+ }
548
+ },
549
+ "& .MuiFormControl-root": {
550
+ height: "24px"
551
+ }
552
+ },
553
+ "&.M4LRHFDateTime-medium": {
554
+ "& .M4LRHFDateTime-skeleton": {
555
+ height: "36px",
556
+ "& .MuiSkeleton-circular": {
557
+ width: "24px",
558
+ height: "24px"
559
+ }
560
+ },
561
+ "& .MuiFormControl-root": {
562
+ height: "36px"
563
+ }
564
+ },
541
565
  "& .MuiFormControl-root": {
542
- height: "24px",
543
566
  "& .MuiInputBase-root": {
544
567
  padding: "0 4px 0 0",
545
- minHeight: "24px",
568
+ height: "100%",
546
569
  "& .MuiInputBase-input": {
547
- minHeight: "24px",
548
- height: "24px"
570
+ minHeight: "24px"
549
571
  }
550
572
  }
551
573
  },
@@ -557,10 +579,10 @@ const r = (t) => ({
557
579
  padding: "0px 8px 0 0",
558
580
  "& .MuiInputBase-input": {
559
581
  color: t.palette.text.secondary,
560
- padding: "1px 8px",
582
+ padding: "0px 12px",
561
583
  backgroundColor: "transparent",
562
- ...t.typography.body,
563
- height: "100%"
584
+ height: "100%",
585
+ ...t.typography.body
564
586
  },
565
587
  "& .MuiInputAdornment-root": {
566
588
  margin: "0px",
@@ -666,18 +688,6 @@ const r = (t) => ({
666
688
  backgroundColor: t.palette.text.disabled
667
689
  }
668
690
  }
669
- },
670
- [t.breakpoints.down("md")]: {
671
- "& .MuiFormControl-root": {
672
- height: "36px !important",
673
- "& .MuiInputBase-root": {
674
- minHeight: "36px !important",
675
- "& .MuiInputBase-input": {
676
- minHeight: "36px !important",
677
- height: "36px !important"
678
- }
679
- }
680
- }
681
691
  }
682
692
  }
683
693
  }
@@ -873,28 +883,42 @@ const r = (t) => ({
873
883
  M4LRHFColorPicker: {
874
884
  styleOverrides: {
875
885
  "&.M4LRHFColorPicker-root": {
876
- test: "root",
886
+ width: "100%",
887
+ display: "flex",
888
+ flexDirection: "column",
889
+ gap: "4px",
890
+ outline: "unset",
891
+ "&.M4LRHFColorPicker-sizeSmall": {
892
+ "& .M4LRHFColorPicker-containerFieldColor": {
893
+ "& .M4LRHFColorPicker-boxColor": {
894
+ width: "20px",
895
+ height: "20px"
896
+ }
897
+ }
898
+ },
899
+ "&.M4LRHFColorPicker-sizeMedium": {
900
+ "& .M4LRHFColorPicker-containerFieldColor": {
901
+ "& .M4LRHFColorPicker-boxColor": {
902
+ width: "24px",
903
+ height: "24px"
904
+ }
905
+ }
906
+ },
907
+ "& .M4LRHFColorPicker-skeleton": {
908
+ borderRadius: "4px"
909
+ },
877
910
  "& .M4LRHFColorPicker-containerFieldColor": {
878
911
  display: "flex",
879
- alingnItems: "center",
912
+ aligItems: "center",
880
913
  justifyContent: "center",
881
914
  gap: "4px",
882
915
  padding: "2px",
883
916
  border: "1.5px solid",
884
917
  borderColor: t.palette.state.borderPrimary,
885
918
  borderRadius: "4px",
886
- minHeight: "24px",
887
- height: "24px",
919
+ width: "fit-content",
888
920
  "& .M4LRHFColorPicker-boxColor": {
889
- borderRadius: "4px",
890
- height: "18px !important",
891
- width: "18px !important"
892
- },
893
- "& .M4LIcon-root": {
894
- minHeight: "18px",
895
- minWidth: "18px",
896
- cursor: "pointer",
897
- borderRadius: "4px"
921
+ cursor: "pointer"
898
922
  },
899
923
  "& .M4LIcon-root:hover": {
900
924
  background: t.palette.state.hoverDefault
@@ -906,7 +930,6 @@ const r = (t) => ({
906
930
  M4LRHFColorPickerPopoverRoot: {
907
931
  styleOverrides: {
908
932
  "&.M4LRHFColorPicker-popoverRoot": {
909
- test: "test-popover-root",
910
933
  "& .MuiPaper-root": {
911
934
  background: t.palette.background.default,
912
935
  padding: "8px",
@@ -914,6 +937,7 @@ const r = (t) => ({
914
937
  borderColor: t.palette.state.borderSecondary,
915
938
  borderRadius: "4px",
916
939
  boxShadow: t.customShadows.z4,
940
+ test: "root",
917
941
  "& .M4LRHFColorPicker-containerPicker": {
918
942
  background: "transparent",
919
943
  borderRadius: "4px",
@@ -931,6 +955,7 @@ const r = (t) => ({
931
955
  border: "1px solid",
932
956
  borderColor: t.palette.state.borderSecondary,
933
957
  borderRadius: "4px",
958
+ backgroundColor: t.palette.background.default,
934
959
  "& :nth-of-type(-n + 1)": {
935
960
  borderRadius: "4px"
936
961
  },
@@ -980,7 +1005,7 @@ const r = (t) => ({
980
1005
  });
981
1006
  export {
982
1007
  n as M,
983
- r as a,
1008
+ a,
984
1009
  p as b,
985
1010
  d as c,
986
1011
  u as d,
@@ -1,18 +1,18 @@
1
- import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as c, T as l, P as d, S as u, c as g, d as B, D as F, A as P, e as A, f as T, g as C, h as b, i as y, j as S, k as I, l as R, m as v, n as D, o as H, p as k, q as f, r as x, s as w, t as G, u as E, v as V, w as j, x as N, y as O, z as q, E as z } from "./MUIComponents/index.b3f5b7a7.js";
2
- import { M as U, a as J, b as K, c as Q, d as W, e as X, f as Y, g as Z, h as _, i as $, j as t, k as m, l as e, m as h, n as aa, o as sa, p as oa, q as ra, r as La, s as Ma, t as na, u as ia, v as pa, w as ca, x as la, y as da, z as ua, A as ga, B as Ba, C as Fa, D as Pa, E as Aa, F as Ta, G as Ca, H as ba, I as ya, J as Sa, K as Ia, L as Ra, N as va, O as Da, P as Ha, Q as ka, R as fa, S as xa, T as wa, U as Ga, V as Ea, W as Va, X as ja, Y as Na, Z as Oa } from "./M4LExtendedComponents/index.8f5f04ca.js";
3
- import { M as qa, a as za, b as Ua, c as Ja, d as Ka, e as Qa, f as Wa, g as Xa, h as Ya } from "./M4LRHFComponents/index.427e0f0e.js";
4
- function ta(a) {
1
+ import { F as s, C as o, M as r, L, I as M, a as i, R as n, B as l, b as p, T as c, P as d, S as u, c as g, d as B, D as F, A as P, e as A, f as T, g as b, h as C, i as y, j as S, k as I, l as R, m as v, n as D, o as H, p as k, q as f, r as x, s as w, t as G, u as E, v as V, w as j, x as N, y as O, z as q, E as z } from "./MUIComponents/index.b3f5b7a7.js";
2
+ import { M as U, a as J, b as K, c as Q, d as W, e as X, f as Y, g as Z, h as _, i as $, j as t, k as m, l as e, m as h, n as aa, o as sa, p as oa, q as ra, r as La, s as Ma, t as ia, u as na, v as la, w as pa, x as ca, y as da, z as ua, A as ga, B as Ba, C as Fa, D as Pa, E as Aa, F as Ta, G as ba, H as Ca, I as ya, J as Sa, K as Ia, L as Ra, N as va, O as Da, P as Ha, Q as ka, R as fa, S as xa, T as wa, U as Ga, V as Ea, W as Va, X as ja, Y as Na, Z as Oa, _ as qa } from "./M4LExtendedComponents/index.b9151f24.js";
3
+ import { M as za, a as Ua, b as Ja, c as Ka, d as Qa, e as Wa, f as Xa, g as Ya, h as Za } from "./M4LRHFComponents/index.02fada22.js";
4
+ function ma(a) {
5
5
  return Object.assign(
6
6
  s(a),
7
7
  o(a),
8
8
  r(a),
9
9
  L(a),
10
10
  M(a),
11
- n(),
12
- i(a),
13
- p(),
11
+ i(),
12
+ n(a),
13
+ l(),
14
+ p(a),
14
15
  c(a),
15
- l(a),
16
16
  d(a),
17
17
  u(a),
18
18
  g(a),
@@ -21,8 +21,8 @@ function ta(a) {
21
21
  P(a),
22
22
  A(a),
23
23
  T(a),
24
- C(a),
25
24
  b(a),
25
+ C(a),
26
26
  y(),
27
27
  S(),
28
28
  I(a),
@@ -44,14 +44,14 @@ function ta(a) {
44
44
  U(a),
45
45
  z(),
46
46
  J(a),
47
- qa(a),
48
- za(),
49
- Ua(a),
50
- Ja(),
51
- Ka(a),
52
- K(),
47
+ za(a),
48
+ Ua(),
49
+ Ja(a),
50
+ Ka(),
53
51
  Qa(a),
54
- Wa(),
52
+ K(),
53
+ Wa(a),
54
+ Xa(),
55
55
  Q(a),
56
56
  W(a),
57
57
  X(),
@@ -60,7 +60,7 @@ function ta(a) {
60
60
  _(),
61
61
  $(a),
62
62
  t(a),
63
- Xa(a),
63
+ Ya(a),
64
64
  m(a),
65
65
  e(a),
66
66
  h(a),
@@ -70,11 +70,11 @@ function ta(a) {
70
70
  ra(a),
71
71
  La(a),
72
72
  Ma(a),
73
- na(a),
74
- ia(),
73
+ ia(a),
74
+ na(),
75
+ la(a),
75
76
  pa(a),
76
- ca(a),
77
- la(),
77
+ ca(),
78
78
  da(a),
79
79
  ua(a),
80
80
  ga(a),
@@ -83,8 +83,8 @@ function ta(a) {
83
83
  Pa(a),
84
84
  Aa(a),
85
85
  Ta(a),
86
- Ca(a),
87
86
  ba(a),
87
+ Ca(a),
88
88
  ya(),
89
89
  Sa(a),
90
90
  Ia(),
@@ -96,15 +96,16 @@ function ta(a) {
96
96
  fa(a),
97
97
  xa(a),
98
98
  wa(),
99
- Ya(a),
99
+ Za(a),
100
100
  Ga(a),
101
101
  Ea(),
102
102
  Va(a),
103
103
  ja(a),
104
104
  Na(a),
105
- Oa()
105
+ Oa(),
106
+ qa(a)
106
107
  );
107
108
  }
108
109
  export {
109
- ta as f
110
+ ma as f
110
111
  };
@@ -285,14 +285,14 @@ const e = {
285
285
  dark: "#fff0",
286
286
  darker: "#fff0",
287
287
  opacity: r(e.acidGreen[60], 0.08)
288
- }, l = {
288
+ }, i = {
289
289
  lighter: "#fff0",
290
290
  light: "#fff0",
291
291
  main: e.middleYellow[60],
292
292
  dark: "#fff0",
293
293
  darker: "#fff0",
294
294
  opacity: r(e.middleYellow[60], 0.08)
295
- }, i = {
295
+ }, l = {
296
296
  lighter: "#fff0",
297
297
  light: "#fff0",
298
298
  main: e.flameRed[40],
@@ -322,18 +322,18 @@ const e = {
322
322
  primary: F(a.light, a.main),
323
323
  info: F(t.light, t.main),
324
324
  success: F(n.light, n.main),
325
- warning: F(l.light, l.main),
326
- error: F(i.light, i.main)
327
- }, A = {
325
+ warning: F(i.light, i.main),
326
+ error: F(l.light, l.main)
327
+ }, g = {
328
328
  violet: ["#826AF9", "#9E86FF", "#D0AEFF", "#F7D2FF"],
329
329
  blue: ["#2D99FF", "#83CFFF", "#A5F3FF", "#CCFAFF"],
330
330
  green: ["#2CD9C5", "#60F1C8", "#A4F7CC", "#C0F2DC"],
331
331
  yellow: ["#FFE700", "#FFEF5A", "#FFF7AE", "#FFF3D6"],
332
332
  red: ["#FF6C40", "#FF8F6D", "#FFBD98", "#FFF2D4"]
333
- }, u = {
333
+ }, A = {
334
334
  normal: e.crayonBlue[50],
335
335
  hover: e.crayonBlue[70]
336
- }, g = {
336
+ }, u = {
337
337
  normal: e.acidGreen[60],
338
338
  hover: e.acidGreen[70]
339
339
  }, C = {
@@ -346,8 +346,8 @@ const e = {
346
346
  default: r(e.coolGrey[50], 0.24),
347
347
  transition: r(e.coolGrey[50], 0.08)
348
348
  }, b = {
349
- info: { ...u },
350
- success: { ...g },
349
+ info: { ...A },
350
+ success: { ...u },
351
351
  error: { ...C },
352
352
  warning: { ...m },
353
353
  skeleton: { ...D }
@@ -362,11 +362,11 @@ const e = {
362
362
  secondary: { ...c, contrastText: "#fff" },
363
363
  info: { ...t, contrastText: "#fff" },
364
364
  success: { ...n, contrastText: o[800] },
365
- warning: { ...l, contrastText: o[800] },
366
- error: { ...i, contrastText: "#fff" },
365
+ warning: { ...i, contrastText: o[800] },
366
+ error: { ...l, contrastText: "#fff" },
367
367
  grey: o,
368
368
  gradients: E,
369
- chart: A,
369
+ chart: g,
370
370
  action: {
371
371
  hoverOpacity: 0.08,
372
372
  disabledOpacity: 0.48
@@ -378,7 +378,8 @@ const e = {
378
378
  text: {
379
379
  primary: e.onyx[10],
380
380
  secondary: e.coolGrey[60],
381
- disabled: e.oxford[30]
381
+ disabled: e.oxford[30],
382
+ bgPrimary: e.marbleLight[30]
382
383
  },
383
384
  background: {
384
385
  paper: "#fff0",
@@ -396,7 +397,8 @@ const e = {
396
397
  text: {
397
398
  primary: e.marbleLight[30],
398
399
  secondary: e.coolGrey[10],
399
- disabled: e.coolGrey[50]
400
+ disabled: e.coolGrey[50],
401
+ bgPrimary: e.marbleLight[30]
400
402
  },
401
403
  background: {
402
404
  paper: "#fff0",
@@ -81,6 +81,7 @@ export declare const palette: {
81
81
  readonly primary: string;
82
82
  readonly secondary: string;
83
83
  readonly disabled: string;
84
+ readonly bgPrimary: string;
84
85
  };
85
86
  readonly background: {
86
87
  readonly paper: "#fff0";
@@ -247,6 +248,7 @@ export declare const palette: {
247
248
  readonly primary: string;
248
249
  readonly secondary: string;
249
250
  readonly disabled: string;
251
+ readonly bgPrimary: string;
250
252
  };
251
253
  readonly background: {
252
254
  readonly paper: "#fff0";
@@ -1,5 +1,5 @@
1
1
  import { alpha as r } from "@mui/material/styles";
2
- import { p as a, P as e } from "./palette.1b577d8c.js";
2
+ import { p as a, P as e } from "./palette.0590e8a6.js";
3
3
  const s = a.light.grey[500], o = "#000000", n = (t) => {
4
4
  const p = r(t, 0.2), x = r(t, 0.14), $ = r(t, 0.12);
5
5
  return [
@@ -48,7 +48,7 @@ declare module '@mui/material/styles/createPalette' {
48
48
  }
49
49
 
50
50
  interface TypeText {
51
- medium: string,
51
+ bgPrimary: string,
52
52
  }
53
53
  interface PaletteOptions {
54
54
  gradients?: GradientsPaletteOptions;
@@ -1,4 +1,4 @@
1
- import { P as r } from "../theme/palette.1b577d8c.js";
1
+ import { P as r } from "../theme/palette.0590e8a6.js";
2
2
  const e = [
3
3
  {
4
4
  name: "patronus",
@@ -1,5 +1,5 @@
1
1
  import { alpha as a } from "@mui/system";
2
- import { P as e, O as r, S as o } from "../theme/palette.1b577d8c.js";
2
+ import { P as e, O as r, S as o } from "../theme/palette.0590e8a6.js";
3
3
  const u = (i, n) => {
4
4
  let t = {};
5
5
  switch (i) {