@m4l/styles 3.2.3 → 6.0.0

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 (32) hide show
  1. package/index.js +20 -20
  2. package/package.json +1 -1
  3. package/theme/defaultThemeOptions-DVY68pts.js +125 -0
  4. package/theme/defaultThemeOptions.d.ts +2 -1
  5. package/theme/index.d.ts +1 -1
  6. package/theme/overrides/M4LExtendedComponents/{index-C4PXddLa.js → index-BO_x8lkT.js} +256 -255
  7. package/theme/overrides/M4LRHFComponents/{index-BRZVeOM5.js → index-Dv4h8DSV.js} +34 -34
  8. package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
  9. package/theme/overrides/MUIComponents/Input.d.ts +1 -1
  10. package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
  11. package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
  12. package/theme/overrides/MUIComponents/{index-XoLdmZP6.js → index-DrBJTI1s.js} +61 -62
  13. package/theme/overrides/{index-B9xZa27y.js → index-BOMUIneQ.js} +15 -15
  14. package/theme/palette/baseOpacityColors.d.ts +3 -0
  15. package/theme/palette/defaultColors.d.ts +14 -0
  16. package/theme/palette/index.d.ts +0 -1
  17. package/theme/palette/presetColors.d.ts +18 -4
  18. package/theme/palette/semanticColors.d.ts +16 -0
  19. package/theme/palette-voCQl3kP.js +792 -0
  20. package/theme/{shadows-GTYqExFA.js → shadows-Cek_1mpN.js} +1 -1
  21. package/types/augmentations.d.ts +160 -155
  22. package/types/types.d.ts +72 -31
  23. package/utils/{getColorPresets-CXZaM9oS.js → getColorPresets-DgmrCj5l.js} +1 -1
  24. package/utils/getColorPresets.d.ts +4 -4
  25. package/utils/getColorState.d.ts +2 -2
  26. package/utils/getPaletteByPreset.d.ts +127 -0
  27. package/utils/index.d.ts +1 -0
  28. package/vite-env.d.ts +3 -3
  29. package/theme/defaultThemeOptions-BlJvKCE6.js +0 -24
  30. package/theme/palette/palette.d.ts +0 -6
  31. package/theme/palette/stateColors.d.ts +0 -2
  32. package/theme/palette-DM0gXxA2.js +0 -584
package/index.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
2
- import { d as p } from "./theme/defaultThemeOptions-BlJvKCE6.js";
3
- import { c as f, s as x } from "./theme/shadows-GTYqExFA.js";
2
+ import { O as p, g as m } from "./theme/defaultThemeOptions-DVY68pts.js";
3
+ import { c as O, s as x } from "./theme/shadows-Cek_1mpN.js";
4
4
  import { t as g } from "./theme/typography-BsOO459U.js";
5
- import { f as S } from "./theme/overrides/index-B9xZa27y.js";
6
- import { B as n, a as E, C as i, G as T, g as u, p as P } from "./theme/palette-DM0gXxA2.js";
7
- import { u as d } from "./utils/useResponsive-DaeQVwlH.js";
8
- import { D as A, d as L, g as B } from "./utils/getColorPresets-CXZaM9oS.js";
9
- import { g as D, p as F, a as v, r as y } from "./utils/getFontValue-BEO-XID9.js";
10
- import { g as w } from "./utils/getColorState-D1JKXD4T.js";
5
+ import { f as S } from "./theme/overrides/index-BOMUIneQ.js";
6
+ import { B as n, a as R, C as T, G as i, p as P } from "./theme/palette-voCQl3kP.js";
7
+ import { u } from "./utils/useResponsive-DaeQVwlH.js";
8
+ import { D as L, d, g as B } from "./utils/getColorPresets-DgmrCj5l.js";
9
+ import { g as F, p as h, a as v, r as y } from "./utils/getFontValue-BEO-XID9.js";
10
+ import { g as U } from "./utils/getColorState-D1JKXD4T.js";
11
11
  export {
12
12
  n as BASE_COLORS,
13
- E as BASE_OPACITY_COLORS,
14
- i as COMMON_COLORS,
15
- A as DEFAULT_PRESET,
13
+ R as BASE_OPACITY_COLORS,
14
+ T as COMMON_COLORS,
15
+ L as DEFAULT_PRESET,
16
16
  o as DEFAULT_SIZE,
17
- T as GREY_PALETTE,
18
- f as createCustomShadows,
19
- L as defaultPresetColors,
20
- p as defaultThemeOptions,
17
+ i as GREY_PALETTE,
18
+ p as OUR_THEME,
19
+ O as createCustomShadows,
20
+ d as defaultPresetColors,
21
21
  S as fnComponentsOverrides,
22
22
  B as getColorPresets,
23
- w as getColorState,
24
- D as getFontValue,
25
- u as getPaletteByPreset,
23
+ U as getColorState,
24
+ F as getFontValue,
25
+ m as getPaletteByPreset,
26
26
  a as globalRemSize,
27
27
  r as muiBreakpointsValues,
28
28
  P as presetsOptions,
29
- F as pxToRem,
29
+ h as pxToRem,
30
30
  v as remToPx,
31
31
  y as responsiveFontSizes,
32
32
  x as shadows,
33
33
  g as typography,
34
- d as useResponsive
34
+ u as useResponsive
35
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "3.2.3",
3
+ "version": "6.0.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
@@ -0,0 +1,125 @@
1
+ import { createTheme as u, alpha as O } from "@mui/material/styles";
2
+ import { t as s } from "./typography-BsOO459U.js";
3
+ import { s as L, c as y } from "./shadows-Cek_1mpN.js";
4
+ import { C as i, D as l, B as r, P as d, a as o, S as n, G as m, b as c, c as g, d as b, e as p } from "./palette-voCQl3kP.js";
5
+ import { g as C } from "../utils/getColorPresets-DgmrCj5l.js";
6
+ const a = {
7
+ light: {
8
+ scrollBar: "#5663763D",
9
+ gridHover: "#FCFCFC"
10
+ },
11
+ dark: {
12
+ scrollBar: "#5663765D",
13
+ gridHover: "#282E2E"
14
+ }
15
+ }, R = (e) => {
16
+ const t = b?.[e], f = p?.[e];
17
+ return {
18
+ light: {
19
+ mode: "light",
20
+ common: i,
21
+ primary: {
22
+ ...t
23
+ },
24
+ default: {
25
+ ...l,
26
+ focusVisible: t.focusVisible,
27
+ contrastText: r.onyx[20]
28
+ },
29
+ divider: r.coolGrey[20],
30
+ text: {
31
+ primary: r.onyx[20],
32
+ secondary: r.coolGrey[50],
33
+ disabled: r.oxford[30]
34
+ },
35
+ background: {
36
+ default: r.marbleLight[10],
37
+ neutral: r.marbleLight[30],
38
+ surface: r.marbleLight[50],
39
+ hover: l.hover,
40
+ //por compatibilidad de mui
41
+ paper: ""
42
+ },
43
+ border: {
44
+ main: d[e]?.borderMainLight,
45
+ default: o.oxford[30],
46
+ secondary: o.oxford[20],
47
+ dens: o.oxford[50],
48
+ disabled: o.oxford[10],
49
+ error: n.error.main
50
+ },
51
+ general: {
52
+ scrollBar: a.light.scrollBar,
53
+ gridHover: a.light.gridHover
54
+ },
55
+ grey: m,
56
+ skeleton: {
57
+ default: o.oxford[10],
58
+ transition: o.oxford[20]
59
+ },
60
+ ...n
61
+ },
62
+ dark: {
63
+ mode: "dark",
64
+ common: i,
65
+ primary: {
66
+ ...t
67
+ },
68
+ default: {
69
+ ...c,
70
+ focusVisible: f?.focusVisible,
71
+ contrastText: r.marbleLight[30]
72
+ },
73
+ text: {
74
+ primary: r.marbleLight[30],
75
+ secondary: r.coolGrey[20],
76
+ disabled: r.coolGrey[50]
77
+ },
78
+ divider: r.coolGrey[80],
79
+ background: {
80
+ default: r.onyx[40],
81
+ neutral: r.marbleLight[50],
82
+ surface: r.marbleLight[60],
83
+ hover: c.hover,
84
+ //por compatibilidad de mui
85
+ paper: ""
86
+ },
87
+ border: {
88
+ main: d[e]?.borderMainDark,
89
+ default: o.mint[50],
90
+ secondary: o.mint[40],
91
+ dens: o.mint[60],
92
+ disabled: o.mint[20],
93
+ error: g.error.main
94
+ },
95
+ general: {
96
+ scrollBar: a.light.scrollBar,
97
+ gridHover: a.light.gridHover
98
+ },
99
+ grey: m,
100
+ skeleton: {
101
+ default: o.mint[20],
102
+ transition: o.mint[40]
103
+ },
104
+ ...g
105
+ }
106
+ };
107
+ }, _ = u(), h = R("patronus"), v = {
108
+ ...s,
109
+ ...L.light,
110
+ ...h,
111
+ customShadows: {
112
+ primary: `0 8px 16px 0 ${O(C("patronus").main, 0.2)}`,
113
+ ...y("light")
114
+ },
115
+ stretch: !0,
116
+ palette: {
117
+ ..._.palette,
118
+ ...h.light
119
+ },
120
+ typography: s
121
+ };
122
+ export {
123
+ v as O,
124
+ R as g
125
+ };
@@ -1 +1,2 @@
1
- export declare const defaultThemeOptions: any;
1
+ import { OurTheme } from '../types/types';
2
+ export declare const OUR_THEME: OurTheme;
package/theme/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type { CustomShadowOptions } from './shadows';
2
- export { defaultThemeOptions } from './defaultThemeOptions';
2
+ export { OUR_THEME } from './defaultThemeOptions';
3
3
  export { shadows, createCustomShadows } from './shadows';
4
4
  export * from './palette';
5
5
  export { typography } from './typography';