@m4l/styles 6.1.1 → 6.2.1

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,11 +1,11 @@
1
1
  import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
2
- import { O as p, g as m } from "./theme/index-Y2nvv8zQ.js";
3
- import { c as O, s as x } from "./theme/shadows-Cek_1mpN.js";
4
- import { t as g } from "./theme/typography-BsOO459U.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";
2
+ import { O as p, g as m } from "./theme/index-CvuA5MdE.js";
3
+ import { c as O, s as x } from "./theme/shadows-BTb924yW.js";
4
+ import { t as g } from "./theme/typography-BSiavZtl.js";
5
+ import { f as S } from "./theme/overrides/index-Bc-JdivL.js";
6
+ import { B as n, a as R, C as T, G as i, p as P } from "./theme/palette-C5yYre7Z.js";
7
7
  import { u } from "./utils/useResponsive-DaeQVwlH.js";
8
- import { D as L, d, g as B } from "./utils/getColorPresets-DgmrCj5l.js";
8
+ import { D as L, d, g as B } from "./utils/getColorPresets-CJ_S_BFb.js";
9
9
  import { g as F, p as h, a as v, r as y } from "./utils/getFontValue-BEO-XID9.js";
10
10
  import { g as U } from "./utils/getColorState-D1JKXD4T.js";
11
11
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "6.1.1",
3
+ "version": "6.2.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
@@ -0,0 +1,227 @@
1
+ import { createTheme as b, alpha as x } from "@mui/material/styles";
2
+ import { T as h, t as c } from "./typography-BSiavZtl.js";
3
+ import { s as O, c as R } from "./shadows-BTb924yW.js";
4
+ import { C as n, D as m, B as r, P as d, a as e, S as a, G as u, b as f, c as t, d as _, e as S } from "./palette-C5yYre7Z.js";
5
+ import { g as y } from "../utils/getColorPresets-CJ_S_BFb.js";
6
+ const p = {
7
+ light: {
8
+ scrollBar: "#5663763D",
9
+ gridHover: "#FCFCFC"
10
+ },
11
+ dark: {
12
+ scrollBar: "#5663765D",
13
+ gridHover: "#282E2E"
14
+ }
15
+ }, L = (l) => {
16
+ const o = _?.[l], i = S?.[l];
17
+ return {
18
+ light: {
19
+ mode: "light",
20
+ common: n,
21
+ primary: {
22
+ ...o
23
+ },
24
+ default: {
25
+ ...m,
26
+ focusVisible: o.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: m.hover,
40
+ //por compatibilidad de mui
41
+ paper: ""
42
+ },
43
+ border: {
44
+ main: d[l]?.borderMainLight,
45
+ default: e.oxford[40],
46
+ secondary: e.oxford[30],
47
+ dens: e.oxford[60],
48
+ disabled: e.oxford[10],
49
+ error: a.error.main
50
+ },
51
+ general: {
52
+ scrollBar: p.light.scrollBar,
53
+ gridHover: p.light.gridHover
54
+ },
55
+ grey: u,
56
+ skeleton: {
57
+ default: e.oxford[10],
58
+ transition: e.oxford[20]
59
+ },
60
+ info: {
61
+ ...a.info,
62
+ focusVisible: o.focusVisible
63
+ },
64
+ success: {
65
+ ...a.success,
66
+ focusVisible: o.focusVisible
67
+ },
68
+ warning: {
69
+ ...a.warning,
70
+ focusVisible: o.focusVisible
71
+ },
72
+ error: {
73
+ ...a.error,
74
+ focusVisible: o.focusVisible
75
+ }
76
+ },
77
+ dark: {
78
+ mode: "dark",
79
+ common: n,
80
+ primary: {
81
+ ...i
82
+ },
83
+ default: {
84
+ ...f,
85
+ focusVisible: i?.focusVisible,
86
+ contrastText: r.marbleLight[30]
87
+ },
88
+ text: {
89
+ primary: r.marbleLight[30],
90
+ secondary: r.coolGrey[20],
91
+ disabled: r.coolGrey[50]
92
+ },
93
+ divider: r.coolGrey[80],
94
+ background: {
95
+ default: r.onyx[40],
96
+ neutral: r.marbleLight[50],
97
+ surface: r.marbleLight[60],
98
+ hover: f.hover,
99
+ //por compatibilidad de mui
100
+ paper: ""
101
+ },
102
+ border: {
103
+ main: d[l]?.borderMainDark,
104
+ default: e.mint[50],
105
+ secondary: e.mint[40],
106
+ dens: e.mint[60],
107
+ disabled: e.mint[20],
108
+ error: t.error.main
109
+ },
110
+ general: {
111
+ scrollBar: p.light.scrollBar,
112
+ gridHover: p.light.gridHover
113
+ },
114
+ grey: u,
115
+ skeleton: {
116
+ default: e.mint[20],
117
+ transition: e.mint[40]
118
+ },
119
+ info: {
120
+ ...t.info,
121
+ focusVisible: i.focusVisible
122
+ },
123
+ success: {
124
+ ...t.success,
125
+ focusVisible: i.focusVisible
126
+ },
127
+ warning: {
128
+ ...t.warning,
129
+ focusVisible: i.focusVisible
130
+ },
131
+ error: {
132
+ ...t.error,
133
+ focusVisible: i.focusVisible
134
+ }
135
+ }
136
+ };
137
+ }, E = {
138
+ r0: "0px",
139
+ "r0.5": "2px",
140
+ r1: "4px",
141
+ "r1.5": "6px",
142
+ r2: "8px",
143
+ r3: "12px",
144
+ r4: "16px"
145
+ }, s = {
146
+ sp0: "0px",
147
+ "sp0.5": "2px",
148
+ sp1: "4px",
149
+ sp2: "8px",
150
+ sp3: "12px",
151
+ "sp3.5": "14px",
152
+ sp4: "16px",
153
+ sp5: "20px",
154
+ sp6: "24px",
155
+ sp7: "28px",
156
+ sp8: "32px",
157
+ sp9: "36px",
158
+ sp10: "40px",
159
+ "sp10.5": "42px",
160
+ sp11: "44px",
161
+ sp12: "48px",
162
+ sp13: "52px",
163
+ sp14: "56px",
164
+ "sp14.5": "58px"
165
+ }, C = {
166
+ base: {
167
+ small: s["sp3.5"],
168
+ medium: s.sp4,
169
+ large: s.sp5
170
+ },
171
+ action: {
172
+ small: s.sp5,
173
+ medium: s.sp6,
174
+ large: s.sp8
175
+ },
176
+ container: {
177
+ small: s.sp7,
178
+ medium: s.sp8,
179
+ large: s.sp9
180
+ }
181
+ }, T = {
182
+ base: {
183
+ small: s.sp5,
184
+ medium: s.sp6,
185
+ large: s.sp7
186
+ },
187
+ action: {
188
+ small: s.sp7,
189
+ medium: s.sp8,
190
+ large: s.sp9
191
+ },
192
+ container: {
193
+ small: s.sp9,
194
+ medium: s.sp10,
195
+ large: s.sp11
196
+ }
197
+ }, V = {
198
+ desktop: {
199
+ ...C
200
+ },
201
+ mobile: {
202
+ ...T
203
+ },
204
+ borderRadius: {
205
+ ...E
206
+ },
207
+ typography: h
208
+ }, A = b(), g = L("patronus"), G = {
209
+ ...c,
210
+ ...O.light,
211
+ ...g,
212
+ customShadows: {
213
+ primary: `0 8px 16px 0 ${x(y("patronus").main, 0.2)}`,
214
+ ...R("light")
215
+ },
216
+ stretch: !0,
217
+ palette: {
218
+ ...A.palette,
219
+ ...g.light
220
+ },
221
+ typography: c,
222
+ size: V
223
+ };
224
+ export {
225
+ G as O,
226
+ L as g
227
+ };
@@ -1,5 +1,5 @@
1
1
  import { alpha as r } from "@mui/material/styles";
2
- import { B as t } from "../../palette-voCQl3kP.js";
2
+ import { B as t } from "../../palette-C5yYre7Z.js";
3
3
  const i = (o) => ({
4
4
  M4LIcon: {
5
5
  styleOverrides: {
@@ -1,6 +1,6 @@
1
1
  import { F as s, C as o, M as r, L, c as M, I as i, R as n, B as p, a as l, T as c, P as d, S as u, b as g, d as B, A as F, e as P, D as A, f as T, g as b, h as C, i as S, j as y, k as R, l as v, m as H, n as I, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index-DrBJTI1s.js";
2
2
  import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index-Dv4h8DSV.js";
3
- import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as ia, m as na, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as ya, C as Ra, D as va, E as Ha, F as Ia, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index-BO_x8lkT.js";
3
+ import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as ia, m as na, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as ya, C as Ra, D as va, E as Ha, F as Ia, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index-BciWnNTM.js";
4
4
  function ta(a) {
5
5
  return Object.assign(
6
6
  s(a),