@m4l/styles 3.2.3 → 6.1.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 (41) hide show
  1. package/config.d.ts +1 -1
  2. package/index.js +20 -20
  3. package/package.json +1 -1
  4. package/theme/index-BZonCMpk.js +196 -0
  5. package/theme/index.d.ts +2 -1
  6. package/theme/ourTheme.d.ts +2 -0
  7. package/theme/overrides/M4LExtendedComponents/{index-C4PXddLa.js → index-BO_x8lkT.js} +256 -255
  8. package/theme/overrides/M4LRHFComponents/{index-BRZVeOM5.js → index-Dv4h8DSV.js} +34 -34
  9. package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
  10. package/theme/overrides/MUIComponents/Input.d.ts +1 -1
  11. package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
  12. package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
  13. package/theme/overrides/MUIComponents/{index-XoLdmZP6.js → index-DrBJTI1s.js} +61 -62
  14. package/theme/overrides/{index-B9xZa27y.js → index-DLjfQaz-.js} +9 -9
  15. package/theme/palette/baseOpacityColors.d.ts +3 -0
  16. package/theme/palette/defaultColors.d.ts +14 -0
  17. package/theme/palette/index.d.ts +0 -1
  18. package/theme/palette/presetColors.d.ts +18 -4
  19. package/theme/palette/semanticColors.d.ts +16 -0
  20. package/theme/palette-voCQl3kP.js +792 -0
  21. package/theme/{shadows-GTYqExFA.js → shadows-Cek_1mpN.js} +1 -1
  22. package/theme/sizes/baseBorderRadius.d.ts +6 -0
  23. package/theme/sizes/baseSizes.d.ts +5 -0
  24. package/theme/sizes/index.d.ts +1 -0
  25. package/theme/sizes/pointerQr.d.ts +21 -0
  26. package/theme/sizes/size.d.ts +2 -0
  27. package/theme/sizes/types.d.ts +73 -0
  28. package/types/augmentations.d.ts +159 -155
  29. package/types/types.d.ts +70 -33
  30. package/utils/{getColorPresets-CXZaM9oS.js → getColorPresets-DgmrCj5l.js} +1 -1
  31. package/utils/getColorPresets.d.ts +4 -4
  32. package/utils/getColorState.d.ts +2 -2
  33. package/utils/getPaletteByPreset.d.ts +127 -0
  34. package/utils/index.d.ts +1 -0
  35. package/vite-env.d.ts +3 -3
  36. package/theme/defaultThemeOptions-BlJvKCE6.js +0 -24
  37. package/theme/defaultThemeOptions.d.ts +0 -1
  38. package/theme/index-l0sNRNKZ.js +0 -1
  39. package/theme/palette/palette.d.ts +0 -6
  40. package/theme/palette/stateColors.d.ts +0 -2
  41. package/theme/palette-DM0gXxA2.js +0 -584
package/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Sizes } from './types';
1
+ import { Sizes } from "./theme/sizes";
2
2
  export declare const muiBreakpointsValues: {
3
3
  values: {
4
4
  xs: number;
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/index-BZonCMpk.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-DLjfQaz-.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.1.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
@@ -0,0 +1,196 @@
1
+ import { createTheme as O, alpha as R } from "@mui/material/styles";
2
+ import { t as i } from "./typography-BsOO459U.js";
3
+ import { s as _, c as b } from "./shadows-Cek_1mpN.js";
4
+ import { C as l, D as m, B as s, P as d, a as e, S as p, G as n, b as c, c as g, d as f, e as S } from "./palette-voCQl3kP.js";
5
+ import { g as L } from "../utils/getColorPresets-DgmrCj5l.js";
6
+ const o = {
7
+ light: {
8
+ scrollBar: "#5663763D",
9
+ gridHover: "#FCFCFC"
10
+ },
11
+ dark: {
12
+ scrollBar: "#5663765D",
13
+ gridHover: "#282E2E"
14
+ }
15
+ }, E = (a) => {
16
+ const t = f?.[a], h = S?.[a];
17
+ return {
18
+ light: {
19
+ mode: "light",
20
+ common: l,
21
+ primary: {
22
+ ...t
23
+ },
24
+ default: {
25
+ ...m,
26
+ focusVisible: t.focusVisible,
27
+ contrastText: s.onyx[20]
28
+ },
29
+ divider: s.coolGrey[20],
30
+ text: {
31
+ primary: s.onyx[20],
32
+ secondary: s.coolGrey[50],
33
+ disabled: s.oxford[30]
34
+ },
35
+ background: {
36
+ default: s.marbleLight[10],
37
+ neutral: s.marbleLight[30],
38
+ surface: s.marbleLight[50],
39
+ hover: m.hover,
40
+ //por compatibilidad de mui
41
+ paper: ""
42
+ },
43
+ border: {
44
+ main: d[a]?.borderMainLight,
45
+ default: e.oxford[40],
46
+ secondary: e.oxford[30],
47
+ dens: e.oxford[60],
48
+ disabled: e.oxford[10],
49
+ error: p.error.main
50
+ },
51
+ general: {
52
+ scrollBar: o.light.scrollBar,
53
+ gridHover: o.light.gridHover
54
+ },
55
+ grey: n,
56
+ skeleton: {
57
+ default: e.oxford[10],
58
+ transition: e.oxford[20]
59
+ },
60
+ ...p
61
+ },
62
+ dark: {
63
+ mode: "dark",
64
+ common: l,
65
+ primary: {
66
+ ...t
67
+ },
68
+ default: {
69
+ ...c,
70
+ focusVisible: h?.focusVisible,
71
+ contrastText: s.marbleLight[30]
72
+ },
73
+ text: {
74
+ primary: s.marbleLight[30],
75
+ secondary: s.coolGrey[20],
76
+ disabled: s.coolGrey[50]
77
+ },
78
+ divider: s.coolGrey[80],
79
+ background: {
80
+ default: s.onyx[40],
81
+ neutral: s.marbleLight[50],
82
+ surface: s.marbleLight[60],
83
+ hover: c.hover,
84
+ //por compatibilidad de mui
85
+ paper: ""
86
+ },
87
+ border: {
88
+ main: d[a]?.borderMainDark,
89
+ default: e.mint[50],
90
+ secondary: e.mint[40],
91
+ dens: e.mint[60],
92
+ disabled: e.mint[20],
93
+ error: g.error.main
94
+ },
95
+ general: {
96
+ scrollBar: o.light.scrollBar,
97
+ gridHover: o.light.gridHover
98
+ },
99
+ grey: n,
100
+ skeleton: {
101
+ default: e.mint[20],
102
+ transition: e.mint[40]
103
+ },
104
+ ...g
105
+ }
106
+ };
107
+ }, y = {
108
+ r0: 0,
109
+ "r0.5": 2,
110
+ r1: 4,
111
+ "r1.5": 6,
112
+ r2: 8,
113
+ r3: 12,
114
+ r4: 16
115
+ }, r = {
116
+ sp0: 0,
117
+ "sp0.5": 2,
118
+ sp1: 4,
119
+ sp2: 8,
120
+ sp3: 12,
121
+ "sp3.5": 14,
122
+ sp4: 16,
123
+ sp5: 20,
124
+ sp6: 24,
125
+ sp7: 28,
126
+ sp8: 32,
127
+ sp9: 36,
128
+ sp10: 40,
129
+ "sp10.5": 42,
130
+ sp11: 44,
131
+ sp12: 48,
132
+ sp13: 52,
133
+ sp14: 56,
134
+ "sp14.5": 58
135
+ }, C = {
136
+ base: {
137
+ small: r["sp3.5"],
138
+ medium: r.sp4,
139
+ large: r.sp5
140
+ },
141
+ action: {
142
+ small: r.sp5,
143
+ medium: r.sp6,
144
+ large: r.sp8
145
+ },
146
+ container: {
147
+ small: r.sp7,
148
+ medium: r.sp8,
149
+ large: r.sp9
150
+ }
151
+ }, T = {
152
+ base: {
153
+ small: r.sp5,
154
+ medium: r.sp6,
155
+ large: r.sp7
156
+ },
157
+ action: {
158
+ small: r.sp7,
159
+ medium: r.sp8,
160
+ large: r.sp9
161
+ },
162
+ container: {
163
+ small: r.sp9,
164
+ medium: r.sp10,
165
+ large: r.sp11
166
+ }
167
+ }, x = {
168
+ desktop: {
169
+ ...C
170
+ },
171
+ mobile: {
172
+ ...T
173
+ },
174
+ borderRadius: {
175
+ ...y
176
+ }
177
+ }, A = O(), u = E("patronus"), G = {
178
+ ...i,
179
+ ..._.light,
180
+ ...u,
181
+ customShadows: {
182
+ primary: `0 8px 16px 0 ${R(L("patronus").main, 0.2)}`,
183
+ ...b("light")
184
+ },
185
+ stretch: !0,
186
+ palette: {
187
+ ...A.palette,
188
+ ...u.light
189
+ },
190
+ typography: i,
191
+ size: x
192
+ };
193
+ export {
194
+ G as O,
195
+ E as g
196
+ };
package/theme/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export type { CustomShadowOptions } from './shadows';
2
- export { defaultThemeOptions } from './defaultThemeOptions';
2
+ export { OUR_THEME } from './ourTheme';
3
3
  export { shadows, createCustomShadows } from './shadows';
4
4
  export * from './palette';
5
5
  export { typography } from './typography';
6
6
  export type { M4LTypographyVariants } from './typography';
7
+ export * from './sizes';
7
8
  export { fnComponentsOverrides } from './overrides';
@@ -0,0 +1,2 @@
1
+ import { OurTheme } from '../types/types';
2
+ export declare const OUR_THEME: OurTheme;