@m4l/styles 0.0.20 → 0.0.21

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 +10 -10
  2. package/package.json +1 -1
  3. package/theme/{defaultThemeOptions.dd98806d.js → defaultThemeOptions.81e20130.js} +5 -5
  4. package/theme/index.38ad102a.js +7 -0
  5. package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +237 -67
  6. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +1151 -336
  7. package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +116 -63
  8. package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +1 -0
  9. package/theme/overrides/M4LExtendedComponents/M4LDynamicFilter.d.ts +25 -7
  10. package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +16 -14
  11. package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +8 -4
  12. package/theme/overrides/M4LExtendedComponents/{index.ead1a06a.js → index.9ecb9eb5.js} +476 -274
  13. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +17 -3
  14. package/theme/overrides/M4LRHFComponents/{index.1406e2ed.js → index.e3118e8b.js} +25 -11
  15. package/theme/overrides/MUIComponents/Button.d.ts +3 -1
  16. package/theme/overrides/MUIComponents/Input.d.ts +16 -3
  17. package/theme/overrides/MUIComponents/Tabs.d.ts +2 -0
  18. package/theme/overrides/MUIComponents/{index.e3d060c3.js → index.25926753.js} +50 -32
  19. package/theme/overrides/{index.0d219399.js → index.05460ef6.js} +3 -3
  20. package/theme/{palette.6e480083.js → palette.ad96498c.js} +3 -3
  21. package/theme/{shadows.0d04d424.js → shadows.c56e8ae9.js} +1 -1
  22. package/theme/{typography.8b60719b.js → typography.39389e10.js} +4 -4
  23. package/utils/{getColorPresets.4a88b0ed.js → getColorPresets.82f91ceb.js} +1 -1
  24. package/utils/{getColorState.1cdd7909.js → getColorState.0e5b3a7c.js} +38 -26
  25. package/utils/getColorState.d.ts +1 -0
  26. package/theme/index.7512919c.js +0 -7
@@ -7,6 +7,9 @@ export declare const M4LRHFAutocomplete: (theme: Theme) => {
7
7
  flexDirection: string;
8
8
  width: string;
9
9
  gap: string;
10
+ "& .MuiAutocomplete-root .MuiFormControl-root .MuiInputBase-root": {
11
+ padding: string;
12
+ };
10
13
  '& .M4LRHFAutocomplete-label': {
11
14
  color: string;
12
15
  transition: string;
@@ -14,8 +17,9 @@ export declare const M4LRHFAutocomplete: (theme: Theme) => {
14
17
  '& .MuiAutocomplete-endAdornment': {
15
18
  top: string;
16
19
  };
17
- '& .MuiInputBase-root': {
20
+ '& .MuiAutocomplete-root .MuiInputBase-root': {
18
21
  padding: string;
22
+ heigth: string;
19
23
  '& .MuiInputBase-input': {
20
24
  heigth: string;
21
25
  color: string;
@@ -117,17 +121,27 @@ export declare const M4LRHFAutocomplete: (theme: Theme) => {
117
121
  };
118
122
  '&.M4LRHFAutocomplete-sizeSmall': {
119
123
  '& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton': {
120
- height: string;
124
+ heigth: string;
121
125
  padding: string;
122
126
  };
123
127
  };
124
128
  '&.M4LRHFAutocomplete-sizeMedium': {
125
129
  '& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton': {
126
- height: string;
130
+ heigth: string;
127
131
  padding: string;
128
132
  };
129
133
  };
130
134
  };
131
135
  };
132
136
  };
137
+ M4LRHFAutocompletePopover: {
138
+ styleOverrides: {
139
+ '&.M4LRHFAutocomplete-popper': {
140
+ test: string;
141
+ '& .MuiPaper-root': {
142
+ boxShadow: string;
143
+ };
144
+ };
145
+ };
146
+ };
133
147
  };
@@ -8,7 +8,7 @@ const n = (t) => ({
8
8
  }
9
9
  }
10
10
  }
11
- }), l = (t) => ({
11
+ }), r = (t) => ({
12
12
  M4LRHFTextField: {
13
13
  styleOverrides: {
14
14
  "&.M4LRHFTextField-root": {
@@ -26,7 +26,7 @@ const n = (t) => ({
26
26
  color: t.palette.text.secondary,
27
27
  padding: "4px 8px",
28
28
  backgroundColor: "transparent",
29
- height: "fit-content",
29
+ height: "100%",
30
30
  ...t.typography.body
31
31
  },
32
32
  "& .MuiInputAdornment-root": {
@@ -153,7 +153,7 @@ const n = (t) => ({
153
153
  }
154
154
  }
155
155
  }
156
- }), r = (t) => ({
156
+ }), l = (t) => ({
157
157
  M4LRHFCheckbox: {
158
158
  styleOverrides: {
159
159
  "&.M4LRHFCheckbox-root": {
@@ -224,6 +224,9 @@ const n = (t) => ({
224
224
  flexDirection: "column",
225
225
  width: "100%",
226
226
  gap: "4px",
227
+ "& .MuiAutocomplete-root .MuiFormControl-root .MuiInputBase-root": {
228
+ padding: "0"
229
+ },
227
230
  "& .M4LRHFAutocomplete-label": {
228
231
  color: t.palette.text.secondary,
229
232
  transition: "all .3s ease"
@@ -231,14 +234,15 @@ const n = (t) => ({
231
234
  "& .MuiAutocomplete-endAdornment": {
232
235
  top: "unset"
233
236
  },
234
- "& .MuiInputBase-root": {
235
- padding: "0px",
237
+ "& .MuiAutocomplete-root .MuiInputBase-root": {
238
+ padding: "0p 8px",
239
+ heigth: "100%",
236
240
  "& .MuiInputBase-input": {
237
241
  color: t.palette.text.secondary,
238
242
  padding: "4px",
239
243
  backgroundColor: "transparent",
240
244
  ...t.typography.body,
241
- heigth: "28px"
245
+ heigth: "100%"
242
246
  },
243
247
  "& .MuiInputAdornment-root": {
244
248
  margin: "0px",
@@ -335,18 +339,28 @@ const n = (t) => ({
335
339
  },
336
340
  "&.M4LRHFAutocomplete-sizeSmall": {
337
341
  "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
338
- height: "24px",
339
- padding: "0px 8px"
342
+ heigth: "28px",
343
+ padding: "0px 0px"
340
344
  }
341
345
  },
342
346
  "&.M4LRHFAutocomplete-sizeMedium": {
343
347
  "& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
344
- height: "28px",
348
+ heigth: "32px",
345
349
  padding: "0px 8px"
346
350
  }
347
351
  }
348
352
  }
349
353
  }
354
+ },
355
+ M4LRHFAutocompletePopover: {
356
+ styleOverrides: {
357
+ "&.M4LRHFAutocomplete-popper": {
358
+ test: "root",
359
+ "& .MuiPaper-root": {
360
+ boxShadow: t.customShadows.z3
361
+ }
362
+ }
363
+ }
350
364
  }
351
365
  }), p = (t) => ({
352
366
  M4LRHFAutocompleteAsync: {
@@ -667,12 +681,12 @@ const n = (t) => ({
667
681
  }
668
682
  });
669
683
  export {
670
- l as M,
684
+ r as M,
671
685
  n as a,
672
686
  u as b,
673
687
  p as c,
674
688
  d,
675
689
  s as e,
676
690
  M as f,
677
- r as g
691
+ l as g
678
692
  };
@@ -3,7 +3,9 @@ export default function Button(theme: Theme): {
3
3
  MuiButton: {
4
4
  styleOverrides: {
5
5
  root: {
6
- textTransform: string;
6
+ display: string;
7
+ flexDirection: string;
8
+ alignItems: string;
7
9
  '&:hover': {
8
10
  boxShadow: string;
9
11
  };
@@ -2,19 +2,25 @@ import { Theme } from '@mui/material/styles';
2
2
  export default function Input(theme: Theme): {
3
3
  MuiFormControl: {
4
4
  styleOverrides: {
5
- root: {};
5
+ root: {
6
+ [x: string]: string | {
7
+ height: number;
8
+ minHeight: number;
9
+ };
10
+ height: string;
11
+ };
6
12
  };
7
13
  };
8
14
  MuiInputBase: {
9
15
  styleOverrides: {
10
16
  root: {
11
17
  borderRadius: string;
18
+ padding: string;
12
19
  '&.Mui-disabled': {
13
20
  '& svg': {
14
21
  color: string;
15
22
  };
16
23
  };
17
- padding: string;
18
24
  '@font-face'?: import("@mui/material/styles/createTypography").Fontface | import("@mui/material/styles/createTypography").Fontface[] | undefined;
19
25
  accentColor?: import("csstype").Property.AccentColor | undefined;
20
26
  alignContent?: import("csstype").Property.AlignContent | undefined;
@@ -172,7 +178,7 @@ export default function Input(theme: Theme): {
172
178
  gridTemplateColumns?: import("csstype").Property.GridTemplateColumns<string | number> | undefined;
173
179
  gridTemplateRows?: import("csstype").Property.GridTemplateRows<string | number> | undefined;
174
180
  hangingPunctuation?: import("csstype").Property.HangingPunctuation | undefined;
175
- height?: import("csstype").Property.Height<string | number> | undefined;
181
+ height: import("csstype").Property.Height<string | number>;
176
182
  hyphenateCharacter?: import("csstype").Property.HyphenateCharacter | undefined;
177
183
  hyphenateLimitChars?: import("csstype").Property.HyphenateLimitChars | undefined;
178
184
  hyphens?: import("csstype").Property.Hyphens | undefined;
@@ -870,8 +876,15 @@ export default function Input(theme: Theme): {
870
876
  padding: string;
871
877
  };
872
878
  '& .MuiOutlinedInput-notchedOutline': {
879
+ [x: string]: string | number | {
880
+ height: number;
881
+ minHeight: number;
882
+ };
873
883
  borderColor: string;
874
884
  fontSize: string;
885
+ height: number;
886
+ minHeight: number;
887
+ padding: string;
875
888
  };
876
889
  '&.Mui-disabled': {
877
890
  '& .MuiOutlinedInput-notchedOutline': {
@@ -17,6 +17,7 @@ export default function Tabs(theme: Theme): {
17
17
  flexDirection: string;
18
18
  alignItems: string;
19
19
  gap: number;
20
+ width: string;
20
21
  boxShadow: string;
21
22
  background: string;
22
23
  borderTop: string;
@@ -28,6 +29,7 @@ export default function Tabs(theme: Theme): {
28
29
  };
29
30
  '&.Mui-selected': {
30
31
  color: string;
32
+ lineHeight: string;
31
33
  };
32
34
  '&:not(:last-of-type)': {
33
35
  marginRight: string;
@@ -1,6 +1,6 @@
1
1
  import { alpha as e } from "@mui/material";
2
2
  import { alpha as t } from "@mui/material/styles";
3
- function l(o) {
3
+ function s(o) {
4
4
  return {
5
5
  MuiAvatar: {
6
6
  styleOverrides: {
@@ -25,12 +25,14 @@ function l(o) {
25
25
  }
26
26
  };
27
27
  }
28
- function s(o) {
28
+ function l(o) {
29
29
  return {
30
30
  MuiButton: {
31
31
  styleOverrides: {
32
32
  root: {
33
- textTransform: "capitalize",
33
+ display: "flex",
34
+ flexDirection: "row",
35
+ alignItems: "center",
34
36
  "&:hover": {
35
37
  boxShadow: "none"
36
38
  }
@@ -78,7 +80,7 @@ function s(o) {
78
80
  }
79
81
  };
80
82
  }
81
- function u(o) {
83
+ function p(o) {
82
84
  return {
83
85
  MuiIconButton: {
84
86
  styleOverrides: {
@@ -102,8 +104,8 @@ function u(o) {
102
104
  }
103
105
  };
104
106
  }
105
- function p(o) {
106
- return console.log("test theme", o.palette), {
107
+ function u(o) {
108
+ return {
107
109
  MuiFab: {
108
110
  defaultProps: {
109
111
  color: "primary"
@@ -188,17 +190,19 @@ function g(o) {
188
190
  flexDirection: "row",
189
191
  alignItems: "center",
190
192
  gap: 4,
193
+ width: "fit-content",
191
194
  boxShadow: o.customShadows.z2,
192
195
  background: o.palette.background.default,
193
- borderTop: "1px solid",
194
- borderColor: o.palette.background.background
196
+ borderTop: "1.5px solid",
197
+ borderColor: o.palette.state.borderTop
195
198
  },
196
199
  "& .MuiTabs-indicator": {
197
200
  backgroundColor: "transparent"
198
201
  }
199
202
  },
200
203
  "&.Mui-selected": {
201
- color: o.palette.text.primary
204
+ color: o.palette.text.primary,
205
+ lineHeight: "none"
202
206
  },
203
207
  "&:not(:last-of-type)": {
204
208
  marginRight: o.spacing(5)
@@ -480,22 +484,29 @@ function k(o) {
480
484
  return {
481
485
  MuiFormControl: {
482
486
  styleOverrides: {
483
- root: {}
487
+ root: {
488
+ height: "28px",
489
+ [o.breakpoints.down("sm")]: {
490
+ height: 32,
491
+ minHeight: 32
492
+ }
493
+ }
484
494
  }
485
495
  },
486
496
  MuiInputBase: {
487
497
  styleOverrides: {
488
498
  root: {
499
+ height: "100%",
489
500
  backgroundColor: o.palette.background.default,
490
501
  ...o.typography.body2,
491
502
  borderRadius: o.spacing(1),
503
+ padding: "0px",
492
504
  "&.Mui-disabled": {
493
505
  "& svg": { color: o.palette.text.disabled }
494
- },
495
- padding: "0px"
506
+ }
496
507
  },
497
508
  input: {
498
- padding: "4px 8px",
509
+ padding: "0",
499
510
  "&::placeholder": {
500
511
  opacity: 1,
501
512
  color: o.palette.text.disabled
@@ -543,7 +554,14 @@ function k(o) {
543
554
  },
544
555
  "& .MuiOutlinedInput-notchedOutline": {
545
556
  borderColor: o.palette.grey[50032],
546
- fontSize: "0.875rem"
557
+ fontSize: "0.875rem",
558
+ height: 28,
559
+ minHeight: 28,
560
+ padding: "0px",
561
+ [o.breakpoints.down("sm")]: {
562
+ height: 32,
563
+ minHeight: 32
564
+ }
547
565
  },
548
566
  "&.Mui-disabled": {
549
567
  "& .MuiOutlinedInput-notchedOutline": {
@@ -625,7 +643,7 @@ function C(o) {
625
643
  }
626
644
  };
627
645
  }
628
- function O(o) {
646
+ function h(o) {
629
647
  return {
630
648
  MuiDialog: {
631
649
  styleOverrides: {
@@ -681,7 +699,7 @@ function O(o) {
681
699
  }
682
700
  };
683
701
  }
684
- function B(o) {
702
+ function O(o) {
685
703
  const r = o.palette.mode === "light";
686
704
  return {
687
705
  MuiSlider: {
@@ -706,7 +724,7 @@ function B(o) {
706
724
  }
707
725
  };
708
726
  }
709
- function h(o) {
727
+ function B(o) {
710
728
  const r = o.palette.mode === "light";
711
729
  return {
712
730
  MuiSwitch: {
@@ -789,7 +807,7 @@ function L(o) {
789
807
  }
790
808
  };
791
809
  }
792
- function D(o) {
810
+ function m(o) {
793
811
  return {
794
812
  MuiDataGrid: {
795
813
  styleOverrides: {
@@ -886,7 +904,7 @@ function D(o) {
886
904
  }
887
905
  };
888
906
  }
889
- function m(o) {
907
+ function D(o) {
890
908
  return {
891
909
  MuiSkeleton: {
892
910
  defaultProps: {
@@ -920,7 +938,7 @@ function P(o) {
920
938
  }
921
939
  };
922
940
  }
923
- function z(o) {
941
+ function $(o) {
924
942
  const r = o.palette.mode === "light";
925
943
  return {
926
944
  MuiLinearProgress: {
@@ -942,7 +960,7 @@ function z(o) {
942
960
  }
943
961
  };
944
962
  }
945
- function $(o) {
963
+ function z(o) {
946
964
  return {
947
965
  MuiTimelineDot: {
948
966
  styleOverrides: {
@@ -1331,37 +1349,37 @@ const J = (o) => ({
1331
1349
  }
1332
1350
  });
1333
1351
  export {
1334
- l as A,
1352
+ s as A,
1335
1353
  f as B,
1336
1354
  c as C,
1337
- O as D,
1355
+ h as D,
1338
1356
  V as E,
1339
- p as F,
1357
+ u as F,
1340
1358
  J as G,
1341
1359
  k as I,
1342
1360
  y as L,
1343
1361
  b as M,
1344
1362
  x as P,
1345
1363
  S as R,
1346
- h as S,
1364
+ B as S,
1347
1365
  g as T,
1348
1366
  w as a,
1349
1367
  M as b,
1350
1368
  v as c,
1351
- s as d,
1352
- u as e,
1353
- B as f,
1369
+ l as d,
1370
+ p as e,
1371
+ O as f,
1354
1372
  C as g,
1355
1373
  L as h,
1356
1374
  I as i,
1357
1375
  T as j,
1358
1376
  R as k,
1359
1377
  A as l,
1360
- D as m,
1361
- m as n,
1362
- $ as o,
1378
+ m,
1379
+ D as n,
1380
+ z as o,
1363
1381
  P as p,
1364
- z as q,
1382
+ $ as q,
1365
1383
  G as r,
1366
1384
  W as s,
1367
1385
  F as t,
@@ -1,6 +1,6 @@
1
- import { F as s, T as o, C as r, M as L, L as n, I as M, a as i, R as p, B as d, b as l, c as u, P as c, S as g, d as B, e as A, D as F, A as P, f as b, g as T, h as v, i as y, j as I, k as R, l as C, m as D, n as f, o as H, p as k, q as S, r as x, s as w, t as j, u as E, v as G, w as q, x as z, y as O, z as V, E as N, G as U } from "./MUIComponents/index.e3d060c3.js";
2
- import { M as t, 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 m, k as e, l as h, m as aa, n as sa, o as oa, p as ra, q as La, r as na, s as Ma, t as ia, u as pa, v as da, w as la, x as ua, y as ca, z as ga, A as Ba, B as Aa, C as Fa, D as Pa, E as ba } from "./M4LExtendedComponents/index.ead1a06a.js";
3
- import { M as Ta, a as va, b as ya, c as Ia, d as Ra, e as Ca, f as Da, g as fa } from "./M4LRHFComponents/index.1406e2ed.js";
1
+ import { F as s, T as o, C as r, M as L, L as n, I as M, a as i, R as p, B as d, b as l, c as u, P as c, S as g, d as B, e as A, D as F, A as P, f as b, g as T, h as v, i as y, j as I, k as R, l as C, m as D, n as f, o as H, p as k, q as S, r as x, s as w, t as j, u as E, v as G, w as q, x as z, y as O, z as V, E as N, G as U } from "./MUIComponents/index.25926753.js";
2
+ import { M as t, 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 m, k as e, l as h, m as aa, n as sa, o as oa, p as ra, q as La, r as na, s as Ma, t as ia, u as pa, v as da, w as la, x as ua, y as ca, z as ga, A as Ba, B as Aa, C as Fa, D as Pa, E as ba } from "./M4LExtendedComponents/index.9ecb9eb5.js";
3
+ import { M as Ta, a as va, b as ya, c as Ia, d as Ra, e as Ca, f as Da, g as fa } from "./M4LRHFComponents/index.e3118e8b.js";
4
4
  function xa(a) {
5
5
  return Object.assign(
6
6
  s(a),
@@ -324,9 +324,9 @@ const e = {
324
324
  },
325
325
  background: {
326
326
  paper: "#fff0",
327
- default: e.marbleLight[10],
328
- neutral: e.marbleLight[30],
329
- background: e.marbleLight[50]
327
+ default: e.marbleLight[20],
328
+ neutral: e.marbleLight[40],
329
+ background: e.marbleLight[60]
330
330
  },
331
331
  grid: { sectionHeader: "#F6F7F9", divider: "#EDEFF2", rowHover: "#FAFBFC" }
332
332
  },
@@ -1,5 +1,5 @@
1
1
  import { alpha as a } from "@mui/material/styles";
2
- import { p as e, P as r } from "./palette.6e480083.js";
2
+ import { p as e, P as r } from "./palette.ad96498c.js";
3
3
  const s = e.light.grey[500], n = "#000000", o = (t) => {
4
4
  const p = a(t, 0.2), x = a(t, 0.14), $ = a(t, 0.12);
5
5
  return [
@@ -1,10 +1,10 @@
1
1
  import "@mui/material/styles";
2
2
  import "@mui/material/useMediaQuery";
3
- import "../utils/getColorPresets.4a88b0ed.js";
3
+ import "../utils/getColorPresets.82f91ceb.js";
4
4
  import "@mui/system";
5
- import "./defaultThemeOptions.dd98806d.js";
6
- import "./shadows.0d04d424.js";
7
- import "./palette.6e480083.js";
5
+ import "./defaultThemeOptions.81e20130.js";
6
+ import "./shadows.c56e8ae9.js";
7
+ import "./palette.ad96498c.js";
8
8
  import "@mui/material";
9
9
  import { r as t, p as i } from "../utils/getFontValue.88831637.js";
10
10
  const e = "Poppins, sans-serif", p = {
@@ -1,4 +1,4 @@
1
- import { P as e } from "../theme/palette.6e480083.js";
1
+ import { P as e } from "../theme/palette.ad96498c.js";
2
2
  const r = [
3
3
  {
4
4
  name: "patronus",