@m4l/styles 0.0.41 → 0.0.42

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 (22) 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/M4LPeriod.d.ts +366 -342
  9. package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +282 -136
  10. package/theme/overrides/M4LExtendedComponents/{index.8f5f04ca.js → index.ad4ae589.js} +302 -273
  11. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +2 -14
  12. package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -47
  13. package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +28 -14
  14. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +28 -151
  15. package/theme/overrides/M4LRHFComponents/{index.427e0f0e.js → index.a9f361b8.js} +82 -61
  16. package/theme/overrides/{index.a3e99f67.js → index.dc9d8819.js} +26 -25
  17. package/theme/{palette.1b577d8c.js → palette.0590e8a6.js} +16 -14
  18. package/theme/palette.d.ts +2 -0
  19. package/theme/{shadows.479d005a.js → shadows.86540b18.js} +1 -1
  20. package/types/augmentations.d.ts +1 -1
  21. package/utils/{getColorPresets.479f9922.js → getColorPresets.2a91ffaf.js} +1 -1
  22. 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": {
@@ -8,7 +8,7 @@ const r = (t) => ({
8
8
  }
9
9
  }
10
10
  }
11
- }), n = (t) => ({
11
+ }), l = (t) => ({
12
12
  M4LRHFTextField: {
13
13
  styleOverrides: {
14
14
  "&.M4LRHFTextField-root": {
@@ -164,13 +164,13 @@ const r = (t) => ({
164
164
  }
165
165
  }
166
166
  }
167
- }), l = (t) => ({
167
+ }), n = (t) => ({
168
168
  M4LRHFCheckbox: {
169
169
  styleOverrides: {
170
170
  "&.M4LRHFCheckbox-root": {
171
171
  display: "flex",
172
172
  flexDirection: "column",
173
- gap: t.spacing(0.5),
173
+ width: "100%",
174
174
  [t.breakpoints.down("sm")]: {
175
175
  "& .M4LRHFCheckbox-checkTypography": {
176
176
  "& .M4LCheckBox-root": {
@@ -189,14 +189,6 @@ const r = (t) => ({
189
189
  [t.breakpoints.down("sm")]: {
190
190
  gap: t.spacing(1),
191
191
  ...t.typography.paragraph
192
- },
193
- "& .M4LCheckBox-root": {
194
- display: "flex",
195
- gap: "8px",
196
- "& .M4LTypography-root": {
197
- display: "flex",
198
- alignItems: "center"
199
- }
200
192
  }
201
193
  },
202
194
  "& .MuiTypography-root": {
@@ -238,9 +230,6 @@ const r = (t) => ({
238
230
  ".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
239
231
  fill: t.palette.state?.default
240
232
  },
241
- ".M4LRHFCheckbox-stateDisabled .MuiTypography-root": {
242
- color: t.palette.text.disabled
243
- },
244
233
  ".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
245
234
  outline: "#FFF00"
246
235
  }
@@ -293,19 +282,15 @@ const r = (t) => ({
293
282
  display: "flex",
294
283
  justifyContent: "space-between",
295
284
  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)}`,
285
+ border: "1px solid",
286
+ borderColor: t.palette.divider,
287
+ borderRadius: "4px",
288
+ padding: "0 10px",
300
289
  overflow: "hidden",
301
- [t.breakpoints.down("md")]: {
302
- width: "100%"
303
- },
304
- "& .M4LRHFAutocomplete-skeletonContainerText": {
290
+ "& .M4LRHFAutocomplete-SkeletonContainerText": {
305
291
  width: "100%",
306
292
  height: "auto",
307
- overflow: "hidden",
308
- margin: t.spacing(1.5)
293
+ overflow: "hidden"
309
294
  }
310
295
  }
311
296
  },
@@ -538,14 +523,48 @@ const r = (t) => ({
538
523
  flexDirection: "column",
539
524
  width: "100%",
540
525
  gap: "2px",
526
+ "& .M4LRHFDateTime-skeleton": {
527
+ display: "flex",
528
+ width: "100%",
529
+ alignItems: "center",
530
+ justifyContent: "space-between",
531
+ border: `1px solid ${t.palette.divider}`,
532
+ paddingLeft: "12px",
533
+ borderRadius: "2px",
534
+ "& .MuiSkeleton-circular": {
535
+ margin: "4px"
536
+ }
537
+ },
538
+ "&.M4LRHFDateTime-small": {
539
+ "& .M4LRHFDateTime-skeleton": {
540
+ height: "24px",
541
+ "& .MuiSkeleton-circular": {
542
+ width: "16px",
543
+ height: "16px"
544
+ }
545
+ },
546
+ "& .MuiFormControl-root": {
547
+ height: "24px"
548
+ }
549
+ },
550
+ "&.M4LRHFDateTime-medium": {
551
+ "& .M4LRHFDateTime-skeleton": {
552
+ height: "36px",
553
+ "& .MuiSkeleton-circular": {
554
+ width: "24px",
555
+ height: "24px"
556
+ }
557
+ },
558
+ "& .MuiFormControl-root": {
559
+ height: "36px"
560
+ }
561
+ },
541
562
  "& .MuiFormControl-root": {
542
- height: "24px",
543
563
  "& .MuiInputBase-root": {
544
564
  padding: "0 4px 0 0",
545
- minHeight: "24px",
565
+ height: "100%",
546
566
  "& .MuiInputBase-input": {
547
- minHeight: "24px",
548
- height: "24px"
567
+ minHeight: "24px"
549
568
  }
550
569
  }
551
570
  },
@@ -557,10 +576,10 @@ const r = (t) => ({
557
576
  padding: "0px 8px 0 0",
558
577
  "& .MuiInputBase-input": {
559
578
  color: t.palette.text.secondary,
560
- padding: "1px 8px",
579
+ padding: "0px 12px",
561
580
  backgroundColor: "transparent",
562
- ...t.typography.body,
563
- height: "100%"
581
+ height: "100%",
582
+ ...t.typography.body
564
583
  },
565
584
  "& .MuiInputAdornment-root": {
566
585
  margin: "0px",
@@ -666,18 +685,6 @@ const r = (t) => ({
666
685
  backgroundColor: t.palette.text.disabled
667
686
  }
668
687
  }
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
688
  }
682
689
  }
683
690
  }
@@ -873,28 +880,41 @@ const r = (t) => ({
873
880
  M4LRHFColorPicker: {
874
881
  styleOverrides: {
875
882
  "&.M4LRHFColorPicker-root": {
876
- test: "root",
883
+ width: "100%",
884
+ display: "flex",
885
+ flexDirection: "column",
886
+ gap: "4px",
887
+ "&.M4LRHFColorPicker-sizeSmall": {
888
+ "& .M4LRHFColorPicker-containerFieldColor": {
889
+ "& .M4LRHFColorPicker-boxColor": {
890
+ width: "20px",
891
+ height: "20px"
892
+ }
893
+ }
894
+ },
895
+ "&.M4LRHFColorPicker-sizeMedium": {
896
+ "& .M4LRHFColorPicker-containerFieldColor": {
897
+ "& .M4LRHFColorPicker-boxColor": {
898
+ width: "24px",
899
+ height: "24px"
900
+ }
901
+ }
902
+ },
903
+ "& .M4LRHFColorPicker-skeleton": {
904
+ borderRadius: "4px"
905
+ },
877
906
  "& .M4LRHFColorPicker-containerFieldColor": {
878
907
  display: "flex",
879
- alingnItems: "center",
908
+ aligItems: "center",
880
909
  justifyContent: "center",
881
910
  gap: "4px",
882
911
  padding: "2px",
883
912
  border: "1.5px solid",
884
913
  borderColor: t.palette.state.borderPrimary,
885
914
  borderRadius: "4px",
886
- minHeight: "24px",
887
- height: "24px",
915
+ width: "fit-content",
888
916
  "& .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"
917
+ cursor: "pointer"
898
918
  },
899
919
  "& .M4LIcon-root:hover": {
900
920
  background: t.palette.state.hoverDefault
@@ -906,7 +926,6 @@ const r = (t) => ({
906
926
  M4LRHFColorPickerPopoverRoot: {
907
927
  styleOverrides: {
908
928
  "&.M4LRHFColorPicker-popoverRoot": {
909
- test: "test-popover-root",
910
929
  "& .MuiPaper-root": {
911
930
  background: t.palette.background.default,
912
931
  padding: "8px",
@@ -914,6 +933,7 @@ const r = (t) => ({
914
933
  borderColor: t.palette.state.borderSecondary,
915
934
  borderRadius: "4px",
916
935
  boxShadow: t.customShadows.z4,
936
+ test: "root",
917
937
  "& .M4LRHFColorPicker-containerPicker": {
918
938
  background: "transparent",
919
939
  borderRadius: "4px",
@@ -931,6 +951,7 @@ const r = (t) => ({
931
951
  border: "1px solid",
932
952
  borderColor: t.palette.state.borderSecondary,
933
953
  borderRadius: "4px",
954
+ backgroundColor: t.palette.background.default,
934
955
  "& :nth-of-type(-n + 1)": {
935
956
  borderRadius: "4px"
936
957
  },
@@ -979,13 +1000,13 @@ const r = (t) => ({
979
1000
  }
980
1001
  });
981
1002
  export {
982
- n as M,
983
- r as a,
1003
+ l as M,
1004
+ a,
984
1005
  p as b,
985
1006
  d as c,
986
1007
  u as d,
987
1008
  s as e,
988
1009
  M as f,
989
- l as g,
1010
+ n as g,
990
1011
  c as h
991
1012
  };
@@ -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.ad4ae589.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.a9f361b8.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) {