@m4l/styles 0.0.10 → 0.0.11

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.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { alpha as e, useTheme as S } from "@mui/material/styles";
1
+ import { alpha as e, useTheme as F } from "@mui/material/styles";
2
2
  import { alpha as n } from "@mui/system";
3
- import { alpha as b } from "@mui/material";
4
- import { useResponsive as T } from "@m4l/graphics";
3
+ import { alpha as M } from "@mui/material";
4
+ import { useResponsive as $ } from "@m4l/graphics";
5
5
  function c(o, r) {
6
6
  return `linear-gradient(to bottom, ${o}, ${r})`;
7
7
  }
@@ -138,7 +138,7 @@ const t = {
138
138
  80: "#fff0",
139
139
  90: "#fff0"
140
140
  }
141
- }, $ = {
141
+ }, A = {
142
142
  patronus: {
143
143
  4: e(t.patronusBlue[50], 0.04),
144
144
  12: e(t.patronusBlue[50], 0.12),
@@ -202,34 +202,34 @@ const t = {
202
202
  60: e(t.marbleLight[10], 0.6),
203
203
  72: e(t.marbleLight[10], 0.72)
204
204
  }
205
- }, M = {
205
+ }, f = {
206
206
  lighter: t.patronusBlue[70],
207
207
  light: t.patronusBlue[60],
208
208
  main: t.patronusBlue[50],
209
209
  dark: t.patronusBlue[40],
210
210
  darker: t.patronusBlue[20],
211
211
  contrastText: t.marbleLight[10]
212
- }, A = {
212
+ }, m = {
213
213
  lighter: "#fff0",
214
214
  light: "#fff0",
215
215
  main: "#fff0",
216
216
  dark: "#fff0",
217
217
  darker: "#fff0"
218
- }, f = {
218
+ }, y = {
219
219
  lighter: "#fff0",
220
220
  light: "#fff0",
221
221
  main: t.crayonBlue[50],
222
222
  dark: "#fff0",
223
223
  darker: "#fff0",
224
224
  opacity: e(t.crayonBlue[50], 0.08)
225
- }, y = {
225
+ }, v = {
226
226
  lighter: "#fff0",
227
227
  light: "#fff0",
228
228
  main: t.acidGreen[60],
229
229
  dark: "#fff0",
230
230
  darker: "#fff0",
231
231
  opacity: e(t.acidGreen[60], 0.08)
232
- }, v = {
232
+ }, L = {
233
233
  lighter: "#fff0",
234
234
  light: "#fff0",
235
235
  main: t.middleYellow[60],
@@ -262,55 +262,55 @@ const t = {
262
262
  50048: e("#919EAB", 0.48),
263
263
  50056: e("#919EAB", 0.56),
264
264
  50080: e("#919EAB", 0.8)
265
- }, m = {
266
- primary: c(M.light, M.main),
267
- info: c(f.light, f.main),
268
- success: c(y.light, y.main),
269
- warning: c(v.light, v.main),
270
- error: c(B.light, B.main)
271
265
  }, z = {
266
+ primary: c(f.light, f.main),
267
+ info: c(y.light, y.main),
268
+ success: c(v.light, v.main),
269
+ warning: c(L.light, L.main),
270
+ error: c(B.light, B.main)
271
+ }, D = {
272
272
  violet: ["#826AF9", "#9E86FF", "#D0AEFF", "#F7D2FF"],
273
273
  blue: ["#2D99FF", "#83CFFF", "#A5F3FF", "#CCFAFF"],
274
274
  green: ["#2CD9C5", "#60F1C8", "#A4F7CC", "#C0F2DC"],
275
275
  yellow: ["#FFE700", "#FFEF5A", "#FFF7AE", "#FFF3D6"],
276
276
  red: ["#FF6C40", "#FF8F6D", "#FFBD98", "#FFF2D4"]
277
- }, D = {
277
+ }, H = {
278
278
  normal: t.crayonBlue[50],
279
279
  hover: t.crayonBlue[70]
280
- }, H = {
280
+ }, G = {
281
281
  normal: t.acidGreen[60],
282
282
  hover: t.acidGreen[70]
283
- }, G = {
283
+ }, E = {
284
284
  normal: t.flameRed[40],
285
285
  hover: t.flameRed[60]
286
- }, E = {
286
+ }, P = {
287
287
  normal: t.flameRed[60],
288
288
  hover: t.flameRed[70]
289
- }, P = {
289
+ }, W = {
290
290
  default: e(t.coolGrey[50], 0.24),
291
291
  transition: e(t.coolGrey[50], 0.08)
292
292
  }, l = {
293
- info: { ...D },
294
- success: { ...H },
295
- error: { ...G },
296
- warning: { ...E },
297
- skeleton: { ...P }
298
- }, C = {
293
+ info: { ...H },
294
+ success: { ...G },
295
+ error: { ...E },
296
+ warning: { ...P },
297
+ skeleton: { ...W }
298
+ }, h = {
299
299
  common: { black: "#000", white: "#fff" },
300
- primary: { ...M },
300
+ primary: { ...f },
301
301
  state: {
302
302
  ...l
303
303
  },
304
304
  patronus: { ...t },
305
- opacity: { ...$ },
306
- secondary: { ...A, contrastText: "#fff" },
307
- info: { ...f, contrastText: "#fff" },
308
- success: { ...y, contrastText: x[800] },
309
- warning: { ...v, contrastText: x[800] },
305
+ opacity: { ...A },
306
+ secondary: { ...m, contrastText: "#fff" },
307
+ info: { ...y, contrastText: "#fff" },
308
+ success: { ...v, contrastText: x[800] },
309
+ warning: { ...L, contrastText: x[800] },
310
310
  error: { ...B, contrastText: "#fff" },
311
311
  grey: x,
312
- gradients: m,
313
- chart: z,
312
+ gradients: z,
313
+ chart: D,
314
314
  divider: x[50024],
315
315
  action: {
316
316
  hoverOpacity: 0.08,
@@ -318,7 +318,7 @@ const t = {
318
318
  }
319
319
  }, s = {
320
320
  light: {
321
- ...C,
321
+ ...h,
322
322
  mode: "light",
323
323
  text: {
324
324
  primary: t.ashBlak[10],
@@ -334,7 +334,7 @@ const t = {
334
334
  grid: { sectionHeader: "#F6F7F9", divider: "#EDEFF2", rowHover: "#FAFBFC" }
335
335
  },
336
336
  dark: {
337
- ...C,
337
+ ...h,
338
338
  mode: "dark",
339
339
  text: {
340
340
  primary: t.marbleLight[30],
@@ -395,39 +395,39 @@ const t = {
395
395
  darker: t.blazeOrange[20],
396
396
  contrastText: t.marbleLight[10]
397
397
  }
398
- ], h = g[0], W = g[1], q = g[2], N = g[3], j = g[4];
399
- function _(o) {
398
+ ], I = g[0], q = g[1], N = g[2], j = g[3], _ = g[4];
399
+ function b(o) {
400
400
  try {
401
401
  return {
402
- patronus: h,
403
- turqui: W,
404
- grass: q,
405
- candy: N,
406
- blaze: j
402
+ patronus: I,
403
+ turqui: q,
404
+ grass: N,
405
+ candy: j,
406
+ blaze: _
407
407
  }[o];
408
408
  } catch {
409
409
  }
410
- return h;
410
+ return I;
411
411
  }
412
- const dt = (o, r) => {
412
+ const V = (o, r) => {
413
413
  let a = {};
414
414
  switch (o) {
415
415
  case "patronus":
416
416
  a = {
417
417
  light: {
418
- active12: n(t.patronusBlue[50], 0.12),
419
- active: t.patronusBlue[50],
420
- focus: t.patronusBlue[70],
421
- hover: t.patronusBlue[60],
422
- default: n(t.coolGrey[70], 0.12),
418
+ active12: n(t?.patronusBlue[50], 0.12),
419
+ active: t?.patronusBlue[50],
420
+ focus: t?.patronusBlue[70],
421
+ hover: t?.patronusBlue[60],
422
+ default: n(t?.coolGrey[70], 0.12),
423
423
  ...l
424
424
  },
425
425
  dark: {
426
- active12: n(t.patronusBlue[50], 0.12),
427
- active: t.patronusBlue[50],
428
- focus: t.patronusBlue[30],
429
- hover: t.patronusBlue[40],
430
- default: n(t.marbleLight[10], 0.12),
426
+ active12: n(t?.patronusBlue[50], 0.12),
427
+ active: t?.patronusBlue[50],
428
+ focus: t?.patronusBlue[30],
429
+ hover: t?.patronusBlue[40],
430
+ default: n(t?.marbleLight[10], 0.12),
431
431
  ...l
432
432
  }
433
433
  };
@@ -435,19 +435,19 @@ const dt = (o, r) => {
435
435
  case "turqui":
436
436
  a = {
437
437
  light: {
438
- active12: n(t.turquiBlue[50], 0.12),
439
- active: t.turquiBlue[50],
440
- focus: t.turquiBlue[70],
441
- hover: t.turquiBlue[60],
442
- default: n(t.coolGrey[70], 0.12),
438
+ active12: n(t?.turquiBlue[50], 0.12),
439
+ active: t?.turquiBlue[50],
440
+ focus: t?.turquiBlue[70],
441
+ hover: t?.turquiBlue[60],
442
+ default: n(t?.coolGrey[70], 0.12),
443
443
  ...l
444
444
  },
445
445
  dark: {
446
- active12: n(t.turquiBlue[50], 0.12),
447
- active: t.turquiBlue[50],
448
- focus: t.turquiBlue[30],
449
- hover: t.turquiBlue[40],
450
- default: n(t.marbleLight[10], 0.12),
446
+ active12: n(t?.turquiBlue[50], 0.12),
447
+ active: t?.turquiBlue[50],
448
+ focus: t?.turquiBlue[30],
449
+ hover: t?.turquiBlue[40],
450
+ default: n(t?.marbleLight[10], 0.12),
451
451
  ...l
452
452
  }
453
453
  };
@@ -455,19 +455,19 @@ const dt = (o, r) => {
455
455
  case "grass":
456
456
  a = {
457
457
  light: {
458
- active12: n(t.grassGreen[50], 0.12),
459
- active: t.grassGreen[50],
460
- focus: t.grassGreen[70],
461
- hover: t.grassGreen[60],
462
- default: n(t.coolGrey[70], 0.12),
458
+ active12: n(t?.grassGreen[50], 0.12),
459
+ active: t?.grassGreen[50],
460
+ focus: t?.grassGreen[70],
461
+ hover: t?.grassGreen[60],
462
+ default: n(t?.coolGrey[70], 0.12),
463
463
  ...l
464
464
  },
465
465
  dark: {
466
- active12: n(t.grassGreen[50], 0.12),
467
- active: t.grassGreen[50],
468
- focus: t.grassGreen[30],
469
- hover: t.grassGreen[40],
470
- default: n(t.marbleLight[10], 0.12),
466
+ active12: n(t?.grassGreen[50], 0.12),
467
+ active: t?.grassGreen[50],
468
+ focus: t?.grassGreen[30],
469
+ hover: t?.grassGreen[40],
470
+ default: n(t?.marbleLight[10], 0.12),
471
471
  ...l
472
472
  }
473
473
  };
@@ -475,19 +475,19 @@ const dt = (o, r) => {
475
475
  case "candy":
476
476
  a = {
477
477
  light: {
478
- active12: n(t.candyRed[50], 0.12),
479
- active: t.candyRed[50],
480
- focus: t.candyRed[70],
481
- hover: t.candyRed[60],
482
- default: n(t.coolGrey[70], 0.12),
478
+ active12: n(t?.candyRed[50], 0.12),
479
+ active: t?.candyRed[50],
480
+ focus: t?.candyRed[70],
481
+ hover: t?.candyRed[60],
482
+ default: n(t?.coolGrey[70], 0.12),
483
483
  ...l
484
484
  },
485
485
  dark: {
486
- active12: n(t.candyRed[50], 0.12),
487
- active: t.candyRed[50],
488
- focus: t.candyRed[30],
489
- hover: t.candyRed[40],
490
- default: n(t.marbleLight[10], 0.12),
486
+ active12: n(t?.candyRed[50], 0.12),
487
+ active: t?.candyRed[50],
488
+ focus: t?.candyRed[30],
489
+ hover: t?.candyRed[40],
490
+ default: n(t?.marbleLight[10], 0.12),
491
491
  ...l
492
492
  }
493
493
  };
@@ -495,19 +495,19 @@ const dt = (o, r) => {
495
495
  case "blaze":
496
496
  a = {
497
497
  light: {
498
- active12: n(t.blazeOrange[50], 0.12),
499
- active: t.blazeOrange[50],
500
- focus: t.blazeOrange[70],
501
- hover: t.blazeOrange[60],
502
- default: n(t.coolGrey[70], 0.12),
498
+ active12: n(t?.blazeOrange[50], 0.12),
499
+ active: t?.blazeOrange[50],
500
+ focus: t?.blazeOrange[70],
501
+ hover: t?.blazeOrange[60],
502
+ default: n(t?.coolGrey[70], 0.12),
503
503
  ...l
504
504
  },
505
505
  dark: {
506
- active12: n(t.blazeOrange[50], 0.12),
507
- active: t.blazeOrange[50],
508
- focus: t.blazeOrange[30],
509
- hover: t.blazeOrange[40],
510
- default: n(t.marbleLight[10], 0.12),
506
+ active12: n(t?.blazeOrange[50], 0.12),
507
+ active: t?.blazeOrange[50],
508
+ focus: t?.blazeOrange[30],
509
+ hover: t?.blazeOrange[40],
510
+ default: n(t?.marbleLight[10], 0.12),
511
511
  ...l
512
512
  }
513
513
  };
@@ -515,19 +515,19 @@ const dt = (o, r) => {
515
515
  default:
516
516
  a = {
517
517
  light: {
518
- active12: n(t.turquiBlue[50], 0.12),
519
- active: t.turquiBlue[50],
520
- focus: t.turquiBlue[70],
521
- hover: t.turquiBlue[60],
522
- default: n(t.coolGrey[70], 0.12),
518
+ active12: n(t?.turquiBlue[50], 0.12),
519
+ active: t?.turquiBlue[50],
520
+ focus: t?.turquiBlue[70],
521
+ hover: t?.turquiBlue[60],
522
+ default: n(t?.coolGrey[70], 0.12),
523
523
  ...l
524
524
  },
525
525
  dark: {
526
- active12: n(t.turquiBlue[50], 0.12),
527
- active: t.turquiBlue[50],
528
- focus: t.turquiBlue[30],
529
- hover: t.turquiBlue[40],
530
- default: n(t.marbleLight[10], 0.12),
526
+ active12: n(t?.turquiBlue[50], 0.12),
527
+ active: t?.turquiBlue[50],
528
+ focus: t?.turquiBlue[30],
529
+ hover: t?.turquiBlue[40],
530
+ default: n(t?.marbleLight[10], 0.12),
531
531
  ...l
532
532
  }
533
533
  };
@@ -535,7 +535,7 @@ const dt = (o, r) => {
535
535
  }
536
536
  return r === "light" ? { ...a.light } : { ...a.dark };
537
537
  };
538
- function V(o) {
538
+ function Y(o) {
539
539
  return Math.round(parseFloat(o) * 16);
540
540
  }
541
541
  function d(o) {
@@ -554,18 +554,18 @@ function p({ sm: o, md: r, lg: a }) {
554
554
  }
555
555
  };
556
556
  }
557
- function Y() {
558
- return [...S().breakpoints.keys].reverse().reduce((a, i) => {
559
- const L = T("up", i);
560
- return !a && L ? i : a;
557
+ function U() {
558
+ return [...F().breakpoints.keys].reverse().reduce((a, i) => {
559
+ const k = $("up", i);
560
+ return !a && k ? i : a;
561
561
  }, null) || "xs";
562
562
  }
563
563
  function st(o) {
564
- const r = S(), a = Y(), i = r.breakpoints.up(a === "xl" ? "lg" : a), F = (o === "h1" || o === "h2" || o === "h3" || o === "h4" || o === "h5" || o === "h6") && r.typography[o][i] ? r.typography[o][i] : r.typography[o], k = V(F.fontSize), w = Number(r.typography[o].lineHeight) * k, { fontWeight: R, letterSpacing: O } = r.typography[o];
565
- return { fontSize: k, lineHeight: w, fontWeight: R, letterSpacing: O };
564
+ const r = F(), a = U(), i = r.breakpoints.up(a === "xl" ? "lg" : a), w = (o === "h1" || o === "h2" || o === "h3" || o === "h4" || o === "h5" || o === "h6") && r.typography[o][i] ? r.typography[o][i] : r.typography[o], C = Y(w.fontSize), R = Number(r.typography[o].lineHeight) * C, { fontWeight: O, letterSpacing: T } = r.typography[o];
565
+ return { fontSize: C, lineHeight: R, fontWeight: O, letterSpacing: T };
566
566
  }
567
- const U = "Poppins, sans-serif", K = {
568
- fontFamily: U,
567
+ const K = "Poppins, sans-serif", J = {
568
+ fontFamily: K,
569
569
  fontWeightRegular: 400,
570
570
  fontWeightMedium: 600,
571
571
  fontWeightBold: 700,
@@ -675,7 +675,7 @@ const U = "Poppins, sans-serif", K = {
675
675
  lineHeight: 1.667,
676
676
  ...p({ sm: 14, md: 12, lg: 12 })
677
677
  }
678
- }, J = s.light.grey[500], Q = "#000000", I = (o) => {
678
+ }, Q = s.light.grey[500], X = "#000000", S = (o) => {
679
679
  const r = e(o, 0.2), a = e(o, 0.14), i = e(o, 0.12);
680
680
  return [
681
681
  "none",
@@ -704,7 +704,7 @@ const U = "Poppins, sans-serif", K = {
704
704
  `0px 11px 14px -7px ${r},0px 23px 36px 3px ${a},0px 9px 44px 8px ${i}`,
705
705
  `0px 11px 15px -7px ${r},0px 24px 38px 3px ${a},0px 9px 46px 8px ${i}`
706
706
  ];
707
- }, X = (o) => {
707
+ }, Z = (o) => {
708
708
  const r = {
709
709
  info: `0px 2px 8px 0px ${e(t.patronusBlue[50], 0.2)}`,
710
710
  secondary: `0px 2px 8px 0px ${e(s.light.secondary.main, 0.24)}`,
@@ -734,23 +734,28 @@ const U = "Poppins, sans-serif", K = {
734
734
  z4: `0px 8px 16px 4px ${e(t.ashBlak[60], 0.4)}`,
735
735
  ...r
736
736
  };
737
- }, Z = {
738
- light: I(J),
739
- dark: I(Q)
737
+ }, oo = {
738
+ light: S(Q),
739
+ dark: S(X)
740
740
  }, ut = {
741
- typography: K,
742
- palette: s.light,
741
+ typography: J,
742
+ palette: {
743
+ ...s.light,
744
+ primary: b("patronus"),
745
+ state: { ...V("patronus", "light") },
746
+ representative: b("patronus").light
747
+ },
743
748
  shape: { borderRadius: 8 },
744
- shadows: Z.light,
749
+ direction: "rtl",
750
+ shadows: oo.light,
745
751
  customShadows: {
746
- ...X("light"),
747
- primary: `0 8px 16px 0 ${b(
748
- _("patronus").main,
749
- 0.24
750
- )}`
751
- }
752
+ primary: `0 8px 16px 0 ${M(b("patronus").main, 0.2)}`,
753
+ ...Z("dark")
754
+ },
755
+ stretch: !0,
756
+ spacing: (o) => `${0.5 * o}rem`
752
757
  };
753
- function oo(o) {
758
+ function to(o) {
754
759
  return {
755
760
  MuiAvatar: {
756
761
  styleOverrides: {
@@ -775,7 +780,7 @@ function oo(o) {
775
780
  }
776
781
  };
777
782
  }
778
- function to(o) {
783
+ function eo(o) {
779
784
  return {
780
785
  MuiButton: {
781
786
  styleOverrides: {
@@ -828,7 +833,7 @@ function to(o) {
828
833
  }
829
834
  };
830
835
  }
831
- function eo(o) {
836
+ function ro(o) {
832
837
  return {
833
838
  MuiIconButton: {
834
839
  styleOverrides: {
@@ -852,7 +857,7 @@ function eo(o) {
852
857
  }
853
858
  };
854
859
  }
855
- function ro(o) {
860
+ function ao(o) {
856
861
  return console.log("test theme", o.palette), {
857
862
  MuiFab: {
858
863
  defaultProps: {
@@ -887,7 +892,7 @@ function ro(o) {
887
892
  }
888
893
  };
889
894
  }
890
- function ao(o) {
895
+ function io(o) {
891
896
  return {
892
897
  MuiCard: {
893
898
  styleOverrides: {
@@ -919,7 +924,7 @@ function ao(o) {
919
924
  }
920
925
  };
921
926
  }
922
- function io(o) {
927
+ function no(o) {
923
928
  return {
924
929
  MuiTabs: {
925
930
  styleOverrides: {
@@ -976,7 +981,7 @@ function io(o) {
976
981
  }
977
982
  };
978
983
  }
979
- function no(o) {
984
+ function po(o) {
980
985
  return {
981
986
  MuiMenuItem: {
982
987
  styleOverrides: {
@@ -992,7 +997,7 @@ function no(o) {
992
997
  }
993
998
  };
994
999
  }
995
- function po(o) {
1000
+ function lo(o) {
996
1001
  return {
997
1002
  MuiLink: {
998
1003
  defaultProps: {
@@ -1008,7 +1013,7 @@ function po(o) {
1008
1013
  }
1009
1014
  };
1010
1015
  }
1011
- function lo(o) {
1016
+ function so(o) {
1012
1017
  return {
1013
1018
  MuiListItemIcon: {
1014
1019
  styleOverrides: {
@@ -1041,7 +1046,7 @@ function lo(o) {
1041
1046
  }
1042
1047
  };
1043
1048
  }
1044
- function so(o) {
1049
+ function uo(o) {
1045
1050
  return {
1046
1051
  MuiTableRow: {
1047
1052
  styleOverrides: {
@@ -1127,7 +1132,7 @@ function so(o) {
1127
1132
  }
1128
1133
  };
1129
1134
  }
1130
- function uo(o) {
1135
+ function co(o) {
1131
1136
  return {
1132
1137
  MuiBadge: {
1133
1138
  styleOverrides: {
@@ -1140,7 +1145,7 @@ function uo(o) {
1140
1145
  }
1141
1146
  };
1142
1147
  }
1143
- function co(o) {
1148
+ function go(o) {
1144
1149
  return {
1145
1150
  MuiPaper: {
1146
1151
  defaultProps: {
@@ -1206,7 +1211,7 @@ function co(o) {
1206
1211
  }
1207
1212
  };
1208
1213
  }
1209
- function go(o) {
1214
+ function xo(o) {
1210
1215
  return {
1211
1216
  MuiFormControl: {
1212
1217
  styleOverrides: {
@@ -1288,7 +1293,7 @@ function go(o) {
1288
1293
  }
1289
1294
  };
1290
1295
  }
1291
- function xo(o) {
1296
+ function bo(o) {
1292
1297
  return {
1293
1298
  MuiInputLabel: {
1294
1299
  styleOverrides: {
@@ -1303,7 +1308,7 @@ function xo(o) {
1303
1308
  }
1304
1309
  };
1305
1310
  }
1306
- function bo(o) {
1311
+ function Mo(o) {
1307
1312
  return {
1308
1313
  MuiRadio: {
1309
1314
  styleOverrides: {
@@ -1320,7 +1325,7 @@ function bo(o) {
1320
1325
  }
1321
1326
  };
1322
1327
  }
1323
- function Mo(o) {
1328
+ function fo(o) {
1324
1329
  const r = o.palette.mode === "light";
1325
1330
  return {
1326
1331
  MuiDrawer: {
@@ -1608,13 +1613,13 @@ function Mo(o) {
1608
1613
  modal: {
1609
1614
  '&[role="presentation"]': {
1610
1615
  "& .MuiDrawer-paperAnchorLeft": {
1611
- boxShadow: `8px 24px 24px 12px ${b(
1616
+ boxShadow: `8px 24px 24px 12px ${M(
1612
1617
  o.palette.grey[900],
1613
1618
  r ? 0.16 : 0.48
1614
1619
  )}`
1615
1620
  },
1616
1621
  "& .MuiDrawer-paperAnchorRight": {
1617
- boxShadow: `-8px 24px 24px 12px ${b(
1622
+ boxShadow: `-8px 24px 24px 12px ${M(
1618
1623
  o.palette.grey[900],
1619
1624
  r ? 0.16 : 0.48
1620
1625
  )}`
@@ -1625,7 +1630,7 @@ function Mo(o) {
1625
1630
  }
1626
1631
  };
1627
1632
  }
1628
- function fo(o) {
1633
+ function yo(o) {
1629
1634
  return {
1630
1635
  MuiDialog: {
1631
1636
  styleOverrides: {
@@ -1681,7 +1686,7 @@ function fo(o) {
1681
1686
  }
1682
1687
  };
1683
1688
  }
1684
- function yo(o) {
1689
+ function vo(o) {
1685
1690
  const r = o.palette.mode === "light";
1686
1691
  return {
1687
1692
  MuiSlider: {
@@ -1706,7 +1711,7 @@ function yo(o) {
1706
1711
  }
1707
1712
  };
1708
1713
  }
1709
- function vo(o) {
1714
+ function Lo(o) {
1710
1715
  const r = o.palette.mode === "light";
1711
1716
  return {
1712
1717
  MuiSwitch: {
@@ -1754,7 +1759,7 @@ function Bo(o) {
1754
1759
  }
1755
1760
  };
1756
1761
  }
1757
- function Lo(o) {
1762
+ function ko(o) {
1758
1763
  const r = o.palette.mode === "light";
1759
1764
  return {
1760
1765
  MuiTooltip: {
@@ -1769,7 +1774,7 @@ function Lo(o) {
1769
1774
  }
1770
1775
  };
1771
1776
  }
1772
- function ko(o) {
1777
+ function Co(o) {
1773
1778
  return {
1774
1779
  MuiPopover: {
1775
1780
  styleOverrides: {
@@ -1781,7 +1786,7 @@ function ko(o) {
1781
1786
  }
1782
1787
  };
1783
1788
  }
1784
- function Co(o) {
1789
+ function ho(o) {
1785
1790
  return {
1786
1791
  MuiStepConnector: {
1787
1792
  styleOverrides: {
@@ -1792,7 +1797,7 @@ function Co(o) {
1792
1797
  }
1793
1798
  };
1794
1799
  }
1795
- function ho(o) {
1800
+ function Io(o) {
1796
1801
  return {
1797
1802
  MuiDataGrid: {
1798
1803
  styleOverrides: {
@@ -1889,7 +1894,7 @@ function ho(o) {
1889
1894
  }
1890
1895
  };
1891
1896
  }
1892
- function Io(o) {
1897
+ function So(o) {
1893
1898
  return {
1894
1899
  MuiSkeleton: {
1895
1900
  defaultProps: {
@@ -1903,7 +1908,7 @@ function Io(o) {
1903
1908
  }
1904
1909
  };
1905
1910
  }
1906
- function So(o) {
1911
+ function Fo(o) {
1907
1912
  const r = e(o.palette.grey[900], 0.48), a = e(o.palette.grey[900], 1);
1908
1913
  return {
1909
1914
  MuiBackdrop: {
@@ -1923,7 +1928,7 @@ function So(o) {
1923
1928
  }
1924
1929
  };
1925
1930
  }
1926
- function Fo(o) {
1931
+ function wo(o) {
1927
1932
  const r = o.palette.mode === "light";
1928
1933
  return {
1929
1934
  MuiLinearProgress: {
@@ -1945,7 +1950,7 @@ function Fo(o) {
1945
1950
  }
1946
1951
  };
1947
1952
  }
1948
- function wo(o) {
1953
+ function Ro(o) {
1949
1954
  return {
1950
1955
  MuiTimelineDot: {
1951
1956
  styleOverrides: {
@@ -1963,7 +1968,7 @@ function wo(o) {
1963
1968
  }
1964
1969
  };
1965
1970
  }
1966
- function Ro(o) {
1971
+ function Oo(o) {
1967
1972
  return {
1968
1973
  MuiCheckbox: {
1969
1974
  styleOverrides: {
@@ -1982,7 +1987,7 @@ function Ro(o) {
1982
1987
  }
1983
1988
  };
1984
1989
  }
1985
- function Oo(o) {
1990
+ function To(o) {
1986
1991
  return {
1987
1992
  MuiAccordion: {
1988
1993
  styleOverrides: {
@@ -2057,7 +2062,7 @@ function Oo(o) {
2057
2062
  }
2058
2063
  };
2059
2064
  }
2060
- function To(o) {
2065
+ function $o(o) {
2061
2066
  return {
2062
2067
  MuiTypography: {
2063
2068
  defaultProps: {
@@ -2076,7 +2081,7 @@ function To(o) {
2076
2081
  }
2077
2082
  };
2078
2083
  }
2079
- function $o(o) {
2084
+ function Ao(o) {
2080
2085
  return {
2081
2086
  MuiPaginationItem: {
2082
2087
  styleOverrides: {
@@ -2110,7 +2115,7 @@ function $o(o) {
2110
2115
  }
2111
2116
  };
2112
2117
  }
2113
- function Ao(o) {
2118
+ function mo(o) {
2114
2119
  return {
2115
2120
  MuiBreadcrumbs: {
2116
2121
  styleOverrides: {
@@ -2122,7 +2127,7 @@ function Ao(o) {
2122
2127
  }
2123
2128
  };
2124
2129
  }
2125
- function mo(o) {
2130
+ function zo(o) {
2126
2131
  const r = (a) => ({
2127
2132
  props: { variant: "contained", color: a },
2128
2133
  style: { boxShadow: o.customShadows?.primary }
@@ -2164,7 +2169,7 @@ function mo(o) {
2164
2169
  }
2165
2170
  };
2166
2171
  }
2167
- function zo(o) {
2172
+ function Do(o) {
2168
2173
  return {
2169
2174
  MuiCssBaseline: {
2170
2175
  styleOverrides: {
@@ -2207,7 +2212,7 @@ function zo(o) {
2207
2212
  }
2208
2213
  };
2209
2214
  }
2210
- function Do(o) {
2215
+ function Ho(o) {
2211
2216
  return {
2212
2217
  MuiAutocomplete: {
2213
2218
  styleOverrides: {
@@ -2243,7 +2248,7 @@ const u = (o, r) => ({
2243
2248
  }
2244
2249
  }
2245
2250
  });
2246
- function Ho(o) {
2251
+ function Go(o) {
2247
2252
  return {
2248
2253
  MuiToggleButton: {
2249
2254
  variants: [
@@ -2279,7 +2284,7 @@ function Ho(o) {
2279
2284
  }
2280
2285
  };
2281
2286
  }
2282
- function Go(o) {
2287
+ function Eo(o) {
2283
2288
  return {
2284
2289
  MuiFormControlLabel: {
2285
2290
  styleOverrides: {
@@ -2304,7 +2309,7 @@ function Go(o) {
2304
2309
  }
2305
2310
  };
2306
2311
  }
2307
- function Eo(o) {
2312
+ function Po(o) {
2308
2313
  return {
2309
2314
  MuiLoadingButton: {
2310
2315
  styleOverrides: {
@@ -2328,15 +2333,15 @@ function Eo(o) {
2328
2333
  }
2329
2334
  };
2330
2335
  }
2331
- const Po = (o) => ({
2336
+ const Wo = (o) => ({
2332
2337
  M4LBruceTest: {
2333
2338
  styleOverrides: {}
2334
2339
  }
2335
- }), Wo = (o) => ({
2340
+ }), qo = (o) => ({
2336
2341
  M4LDynamicFilter: {
2337
2342
  styleOverrides: {}
2338
2343
  }
2339
- }), qo = (o) => ({
2344
+ }), No = (o) => ({
2340
2345
  M4LRHFTextFieldPassword: {
2341
2346
  styleOverrides: {
2342
2347
  "&.M4LRHFTextFieldPassword-root": {
@@ -2344,7 +2349,7 @@ const Po = (o) => ({
2344
2349
  }
2345
2350
  }
2346
2351
  }
2347
- }), No = (o) => ({
2352
+ }), jo = (o) => ({
2348
2353
  M4LRHFTextField: {
2349
2354
  styleOverrides: {
2350
2355
  "&.M4LRHFTextField-root": {
@@ -2472,7 +2477,7 @@ const Po = (o) => ({
2472
2477
  }
2473
2478
  }
2474
2479
  }
2475
- }), jo = (o) => ({
2480
+ }), _o = (o) => ({
2476
2481
  M4LIcon: {
2477
2482
  styleOverrides: {
2478
2483
  ["&.M4LIcon-root"]: {
@@ -2511,7 +2516,7 @@ const Po = (o) => ({
2511
2516
  }
2512
2517
  }
2513
2518
  }
2514
- }), _o = (o) => ({
2519
+ }), Vo = (o) => ({
2515
2520
  M4LIconButton: {
2516
2521
  styleOverrides: {
2517
2522
  ["&.M4LIconButton-root"]: {
@@ -2562,10 +2567,7 @@ const Po = (o) => ({
2562
2567
  borderRadius: "4px",
2563
2568
  padding: "0"
2564
2569
  },
2565
- ".MuiIconButton-root:hover": {
2566
- backgroundColor: "transparent"
2567
- },
2568
- "&.M4LIconButton-variantPrimary": {
2570
+ "&.M4LIconButton-variantPrimary:not(&.M4LIconButton-isDisabled)": {
2569
2571
  backgroundColor: o.palette.state?.default,
2570
2572
  "&:hover": {
2571
2573
  backgroundColor: o.palette.state?.hover,
@@ -2582,13 +2584,19 @@ const Po = (o) => ({
2582
2584
  },
2583
2585
  "&.M4LIconButton-isFocus": {
2584
2586
  backgroundColor: o.palette.state?.active,
2587
+ "& .M4LIcon-icon": {
2588
+ backgroundColor: o.palette.patronus?.marbleLight[10]
2589
+ },
2585
2590
  "&::before": {
2586
2591
  content: "''"
2587
2592
  }
2588
2593
  }
2589
2594
  },
2590
- "&.M4LIconButton-variantSecondary": {
2595
+ "&.M4LIconButton-variantSecondary:not(&.M4LIconButton-isDisabled)": {
2591
2596
  borderColor: o.palette.text.secondary,
2597
+ "& .M4LIcon-icon": {
2598
+ backgroundColor: o.palette.text.secondary
2599
+ },
2592
2600
  "&:hover": {
2593
2601
  border: "1px solid",
2594
2602
  borderColor: o.palette.state?.focus,
@@ -2614,7 +2622,7 @@ const Po = (o) => ({
2614
2622
  }
2615
2623
  }
2616
2624
  },
2617
- "&.M4LIconButton-variantLine": {
2625
+ "&.M4LIconButton-variantLine:not(&.M4LIconButton-isDisabled)": {
2618
2626
  "&:hover": {
2619
2627
  backgroundColor: o.palette.state?.active12,
2620
2628
  "& .M4LIcon-icon": {
@@ -2647,13 +2655,13 @@ const Po = (o) => ({
2647
2655
  }
2648
2656
  }
2649
2657
  }
2650
- }), Vo = (o) => ({
2658
+ }), Yo = (o) => ({
2651
2659
  M4LanguagePopover: {
2652
2660
  styleOverrides: {
2653
2661
  ["&.M4LanguagePopover-root"]: {}
2654
2662
  }
2655
2663
  }
2656
- }), Yo = (o) => ({
2664
+ }), Uo = (o) => ({
2657
2665
  M4LImageButton: {
2658
2666
  styleOverrides: {
2659
2667
  ["&.M4LImageButton-root"]: {
@@ -2695,7 +2703,7 @@ const Po = (o) => ({
2695
2703
  }
2696
2704
  }
2697
2705
  }
2698
- }), Uo = (o) => ({
2706
+ }), Ko = (o) => ({
2699
2707
  M4LImage: {
2700
2708
  styleOverrides: {
2701
2709
  ["&.M4LImage-root"]: {
@@ -2732,7 +2740,7 @@ const Po = (o) => ({
2732
2740
  }
2733
2741
  }
2734
2742
  }
2735
- }), Ko = (o) => ({
2743
+ }), Jo = (o) => ({
2736
2744
  M4LPopover: {
2737
2745
  styleOverrides: {
2738
2746
  "&.M4LSideBar-popover": {
@@ -2795,7 +2803,7 @@ const Po = (o) => ({
2795
2803
  }
2796
2804
  }
2797
2805
  }
2798
- }), Jo = (o) => ({
2806
+ }), Qo = (o) => ({
2799
2807
  M4LRHFCheckbox: {
2800
2808
  styleOverrides: {
2801
2809
  "&.M4LRHFCheckbox-root": {
@@ -2858,7 +2866,7 @@ const Po = (o) => ({
2858
2866
  }
2859
2867
  }
2860
2868
  }
2861
- }), Qo = (o) => ({
2869
+ }), Xo = (o) => ({
2862
2870
  M4LErrorLabel: {
2863
2871
  styleOverrides: {
2864
2872
  ["&.M4LHelperText-root"]: {
@@ -2877,7 +2885,7 @@ const Po = (o) => ({
2877
2885
  }
2878
2886
  }
2879
2887
  }
2880
- }), Xo = (o) => ({
2888
+ }), Zo = (o) => ({
2881
2889
  M4LTypography: {
2882
2890
  styleOverrides: {
2883
2891
  ["&.M4LTypography-root"]: {
@@ -2889,7 +2897,7 @@ const Po = (o) => ({
2889
2897
  }
2890
2898
  }
2891
2899
  }
2892
- }), Zo = (o) => ({
2900
+ }), ot = (o) => ({
2893
2901
  M4LButton: {
2894
2902
  styleOverrides: {
2895
2903
  "&.M4LButton-root": {
@@ -3092,7 +3100,7 @@ const Po = (o) => ({
3092
3100
  }
3093
3101
  }
3094
3102
  }
3095
- }), ot = (o) => ({
3103
+ }), tt = (o) => ({
3096
3104
  M4LRHFAutocomplete: {
3097
3105
  styleOverrides: {
3098
3106
  "&.M4LRHFAutocomplete-root": {
@@ -3223,7 +3231,7 @@ const Po = (o) => ({
3223
3231
  }
3224
3232
  }
3225
3233
  }
3226
- }), tt = (o) => ({
3234
+ }), et = (o) => ({
3227
3235
  M4LRHFAutocompleteAsync: {
3228
3236
  styleOverrides: {
3229
3237
  "&.M4LRHFAutocompleteAsync-root": {
@@ -3231,7 +3239,7 @@ const Po = (o) => ({
3231
3239
  }
3232
3240
  }
3233
3241
  }
3234
- }), et = (o) => ({
3242
+ }), rt = (o) => ({
3235
3243
  M4LoadingButton: {
3236
3244
  styleOverrides: {
3237
3245
  "&.M4LoadingButton-root": {
@@ -3448,7 +3456,7 @@ const Po = (o) => ({
3448
3456
  }
3449
3457
  }
3450
3458
  }
3451
- }), rt = (o) => ({
3459
+ }), at = (o) => ({
3452
3460
  M4LNavLink: {
3453
3461
  styleOverrides: {
3454
3462
  ["&.M4LNavLink-root"]: {
@@ -3468,7 +3476,7 @@ const Po = (o) => ({
3468
3476
  }
3469
3477
  }
3470
3478
  }
3471
- }), at = (o) => ({
3479
+ }), it = (o) => ({
3472
3480
  M4LSideBar: {
3473
3481
  styleOverrides: {
3474
3482
  "&.M4LSideBar-root": {
@@ -3764,64 +3772,64 @@ const Po = (o) => ({
3764
3772
  });
3765
3773
  function ct(o) {
3766
3774
  return Object.assign(
3767
- ro(o),
3768
- io(o),
3769
3775
  ao(o),
3770
3776
  no(o),
3777
+ io(o),
3771
3778
  po(o),
3772
- go(o),
3773
- xo(),
3774
- bo(o),
3775
- uo(),
3776
3779
  lo(o),
3780
+ xo(o),
3781
+ bo(),
3782
+ Mo(o),
3783
+ co(),
3777
3784
  so(o),
3778
- co(o),
3779
- vo(o),
3780
- to(o),
3785
+ uo(o),
3786
+ go(o),
3787
+ Lo(o),
3781
3788
  eo(o),
3782
- fo(o),
3783
- oo(o),
3789
+ ro(o),
3784
3790
  yo(o),
3785
- Mo(o),
3786
- Co(o),
3787
- Lo(o),
3791
+ to(o),
3792
+ vo(o),
3793
+ fo(o),
3794
+ ho(o),
3788
3795
  ko(o),
3796
+ Co(o),
3789
3797
  Bo(),
3790
- Ro(o),
3791
- ho(o),
3798
+ Oo(o),
3792
3799
  Io(o),
3793
- wo(o),
3794
3800
  So(o),
3801
+ Ro(o),
3795
3802
  Fo(o),
3796
- Oo(o),
3803
+ wo(o),
3797
3804
  To(o),
3798
3805
  $o(o),
3799
- mo(o),
3800
3806
  Ao(o),
3801
- zo(),
3802
- Do(o),
3803
- Go(o),
3807
+ zo(o),
3808
+ mo(o),
3809
+ Do(),
3804
3810
  Ho(o),
3805
3811
  Eo(o),
3806
- et(o),
3807
- Po(),
3812
+ Go(o),
3813
+ Po(o),
3814
+ rt(o),
3808
3815
  Wo(),
3809
- No(o),
3810
3816
  qo(),
3811
- ot(o),
3812
- tt(),
3813
3817
  jo(o),
3818
+ No(),
3819
+ tt(o),
3820
+ et(),
3814
3821
  _o(o),
3815
- Vo(),
3816
- Yo(o),
3817
- rt(o),
3818
- Uo(),
3819
- Ko(o),
3822
+ Vo(o),
3823
+ Yo(),
3824
+ Uo(o),
3825
+ at(o),
3826
+ Ko(),
3820
3827
  Jo(o),
3821
3828
  Qo(o),
3822
3829
  Xo(o),
3823
3830
  Zo(o),
3824
- at(o)
3831
+ ot(o),
3832
+ it(o)
3825
3833
  );
3826
3834
  }
3827
3835
  const gt = {
@@ -3834,28 +3842,28 @@ const gt = {
3834
3842
  }
3835
3843
  }, xt = {
3836
3844
  mobile: 16,
3837
- desktop: 8
3845
+ desktop: 16
3838
3846
  };
3839
3847
  export {
3840
3848
  t as PATRONUSCOLORS,
3841
- j as blaze,
3842
- N as candy,
3849
+ _ as blaze,
3850
+ j as candy,
3843
3851
  g as colorPresets,
3844
- X as createCustomShadows,
3845
- h as defaultPreset,
3852
+ Z as createCustomShadows,
3853
+ I as defaultPreset,
3846
3854
  ut as defaultThemeOptions,
3847
3855
  ct as fnComponentsOverrides,
3848
- _ as getColorPresets,
3849
- dt as getColorState,
3856
+ b as getColorPresets,
3857
+ V as getColorState,
3850
3858
  st as getFontValue,
3851
3859
  xt as globalRemSize,
3852
- q as grass,
3860
+ N as grass,
3853
3861
  gt as muiBreakpointsValues,
3854
3862
  s as palette,
3855
3863
  d as pxToRem,
3856
- V as remToPx,
3864
+ Y as remToPx,
3857
3865
  p as responsiveFontSizes,
3858
- Z as shadows,
3859
- W as turqui,
3860
- K as typography
3866
+ oo as shadows,
3867
+ q as turqui,
3868
+ J as typography
3861
3869
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/graphics": "*",
@@ -1,2 +1,5 @@
1
- import { ThemeOptions } from '@mui/material';
2
- export declare const defaultThemeOptions: ThemeOptions;
1
+ import { ThemeOptions } from '@mui/material/styles';
2
+ export interface OverrridesThemeOptions extends Omit<ThemeOptions, 'typography'> {
3
+ typography: any;
4
+ }
5
+ export declare const defaultThemeOptions: OverrridesThemeOptions;
@@ -50,10 +50,7 @@ export declare const M4LIconButton: (theme: Theme) => {
50
50
  borderRadius: string;
51
51
  padding: string;
52
52
  };
53
- '.MuiIconButton-root:hover': {
54
- backgroundColor: string;
55
- };
56
- '&.M4LIconButton-variantPrimary': {
53
+ '&.M4LIconButton-variantPrimary:not(&.M4LIconButton-isDisabled)': {
57
54
  backgroundColor: string;
58
55
  '&:hover': {
59
56
  backgroundColor: string;
@@ -70,13 +67,19 @@ export declare const M4LIconButton: (theme: Theme) => {
70
67
  };
71
68
  '&.M4LIconButton-isFocus': {
72
69
  backgroundColor: string;
70
+ '& .M4LIcon-icon': {
71
+ backgroundColor: string | undefined;
72
+ };
73
73
  '&::before': {
74
74
  content: string;
75
75
  };
76
76
  };
77
77
  };
78
- '&.M4LIconButton-variantSecondary': {
78
+ '&.M4LIconButton-variantSecondary:not(&.M4LIconButton-isDisabled)': {
79
79
  borderColor: string;
80
+ '& .M4LIcon-icon': {
81
+ backgroundColor: string;
82
+ };
80
83
  '&:hover': {
81
84
  border: string;
82
85
  borderColor: string;
@@ -102,7 +105,7 @@ export declare const M4LIconButton: (theme: Theme) => {
102
105
  };
103
106
  };
104
107
  };
105
- '&.M4LIconButton-variantLine': {
108
+ '&.M4LIconButton-variantLine:not(&.M4LIconButton-isDisabled)': {
106
109
  '&:hover': {
107
110
  backgroundColor: string;
108
111
  '& .M4LIcon-icon': {
@@ -49,6 +49,9 @@ declare module '@mui/material/styles/createPalette' {
49
49
  gradients?: GradientsPaletteOptions;
50
50
  chart?: ChartPaletteOptions;
51
51
  grid?: GridPaletteOptions;
52
+ patronus?: PatronusConstantColors;
53
+ state: ColorStateOptions;
54
+ representative: string;
52
55
  }
53
56
  }
54
57
 
@@ -96,6 +99,7 @@ declare module '@mui/material/styles' {
96
99
  header: string;
97
100
  background: string;
98
101
  }
102
+
99
103
  }
100
104
 
101
105
  declare module '@mui/material/Typography' {