@m4l/styles 7.1.28 → 7.1.29-16062025.beta.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.
@@ -1,106 +1,102 @@
1
- import { P as s, a as g, b as m } from "../theme/palette/presetColors.js";
2
- import { B as e } from "../theme/palette/baseColors.js";
3
- import { C as l } from "../theme/palette/commonColors.js";
1
+ import { a as g, P as s, b as f } from "../theme/palette/presetColors.js";
2
+ import { B as o } from "../theme/palette/baseColors.js";
3
+ import { C as t } from "../theme/palette/commonColors.js";
4
4
  import { G as d } from "../theme/palette/greyPalette.js";
5
5
  import { S as i, a as c } from "../theme/palette/semanticColors.js";
6
6
  import { B as a } from "../theme/palette/baseOpacityColors.js";
7
7
  import { B as b, a as u } from "../theme/palette/defaultColors.js";
8
- import { B as f, a as y } from "../theme/palette/baseChipsPalette.js";
9
- const t = {
8
+ import { a as y, B as m } from "../theme/palette/baseChipsPalette.js";
9
+ const l = {
10
10
  light: {
11
11
  scrollBar: "#5663763D",
12
12
  gridHover: "#FCFCFC"
13
- },
14
- dark: {
15
- scrollBar: "#5663765D",
16
- gridHover: "#282E2E"
17
13
  }
18
- }, L = (n) => {
19
- const o = g?.[n], r = m?.[n];
14
+ }, A = (n) => {
15
+ const r = f?.[n], e = g?.[n];
20
16
  return {
21
17
  light: {
22
18
  mode: "light",
23
- common: l,
19
+ common: t,
24
20
  primary: {
25
- ...o
21
+ ...r
26
22
  },
27
23
  default: {
28
- ...b,
29
- semanticText: e.onyx[20],
30
- focusVisible: o.focusVisible
24
+ ...u,
25
+ semanticText: o.onyx[20],
26
+ focusVisible: r.focusVisible
31
27
  },
32
- divider: e.coolGrey[20],
28
+ divider: o.coolGrey[20],
33
29
  text: {
34
- primary: e.onyx[20],
35
- secondary: e.coolGrey[50],
36
- disabled: e.coolGrey[10]
30
+ primary: o.onyx[20],
31
+ secondary: o.coolGrey[50],
32
+ disabled: o.coolGrey[30]
37
33
  },
38
34
  background: {
39
- default: e.marbleLight[10],
40
- neutral: e.marbleLight[30],
41
- surface: e.marbleLight[50],
42
- hover: b.hoverOpacity,
43
- backdrop: a.onyx[80] || "#000",
44
- base: e.marbleLight[20],
35
+ default: o.marbleLight[10],
36
+ neutral: o.marbleLight[30],
37
+ surface: o.marbleLight[50],
38
+ hover: u.hover,
39
+ backdrop: a.oxford[30],
40
+ base: o.marbleLight[20],
45
41
  blur: a.marble[60],
46
42
  //por compatibilidad de mui
47
- paper: "#000"
43
+ paper: "#fff"
48
44
  },
49
45
  chips: {
50
46
  primary: {
51
47
  outlined: {
52
- color: o.enabled,
48
+ color: r.enabled,
53
49
  // Comprobado
54
- backgroundColor: o.enabledOpacity,
50
+ backgroundColor: r.enabledOpacity,
55
51
  // Comprobado
56
- backgroundHover: o.hoverOpacity,
52
+ backgroundHover: r.hoverOpacity,
57
53
  // Comprobado
58
- backgroundActive: o.activeOpacity,
54
+ backgroundActive: r.activeOpacity,
59
55
  // Comprobado
60
56
  /* Tone */
61
- colorTone: o.semanticText,
57
+ colorTone: r.semanticText,
62
58
  // Comprobado
63
- backgroundColorTone: o.enabled,
59
+ backgroundColorTone: r.enabled,
64
60
  // Comprobado
65
- backgroundHoverTone: o.hover,
61
+ backgroundHoverTone: r.hover,
66
62
  // Comprobado
67
- backgroundActiveTone: o.activeOpacity
63
+ backgroundActiveTone: r.activeOpacity
68
64
  // Comprobado
69
65
  },
70
66
  contained: {
71
- color: o.semanticText,
67
+ color: o.marbleLight[30],
72
68
  // Comprobado
73
- backgroundColor: o.enabledOpacity,
69
+ backgroundColor: r.enabledOpacity,
74
70
  // Comprobado
75
- backgroundHover: o.hoverOpacity,
71
+ backgroundHover: r.hoverOpacity,
76
72
  // Comprobado
77
- backgroundActive: o.activeOpacity,
73
+ backgroundActive: r.activeOpacity,
78
74
  // Comprobado
79
75
  /* Tono */
80
- colorTone: o.contrastText,
76
+ colorTone: o.marbleLight[30],
81
77
  // Comprobado
82
- backgroundColorTone: o.enabled,
78
+ backgroundColorTone: r.enabled,
83
79
  // Comprobado
84
- backgroundHoverTone: o.hover,
80
+ backgroundHoverTone: r.hover,
85
81
  // Comprobado
86
- backgroundActiveTone: o.active
82
+ backgroundActiveTone: r.active
87
83
  // Comprobado
88
84
  }
89
85
  /* opacidad */
90
86
  },
91
- ...f
87
+ ...m
92
88
  },
93
89
  border: {
94
90
  main: s[n]?.borderMainLight,
95
91
  dens: a.oxford[40],
96
- default: a.oxford[30],
92
+ default: o.oxford[30],
97
93
  secondary: a.oxford[20],
98
94
  disabled: a.oxford[10],
99
- error: i.error.main
95
+ error: c.error.main
100
96
  },
101
97
  general: {
102
- scrollBar: t.light.scrollBar,
103
- gridHover: t.light.gridHover
98
+ scrollBar: l.light.scrollBar,
99
+ gridHover: l.light.gridHover
104
100
  },
105
101
  grey: d,
106
102
  skeleton: {
@@ -108,47 +104,47 @@ const t = {
108
104
  transition: a.oxford[20]
109
105
  },
110
106
  info: {
111
- ...i.info,
112
- focusVisible: o.focusVisible
107
+ ...c.info,
108
+ focusVisible: r.focusVisible
113
109
  },
114
110
  success: {
115
- ...i.success,
116
- focusVisible: o.focusVisible
111
+ ...c.success,
112
+ focusVisible: r.focusVisible
117
113
  },
118
114
  warning: {
119
- ...i.warning,
120
- focusVisible: o.focusVisible
115
+ ...c.warning,
116
+ focusVisible: r.focusVisible
121
117
  },
122
118
  error: {
123
- ...i.error,
124
- focusVisible: o.focusVisible
119
+ ...c.error,
120
+ focusVisible: r.focusVisible
125
121
  }
126
122
  },
127
123
  dark: {
128
124
  mode: "dark",
129
- common: l,
125
+ common: t,
130
126
  // no definido en figma
131
127
  primary: {
132
- ...r
128
+ ...e
133
129
  },
134
130
  default: {
135
- ...u,
136
- semanticText: e.marbleLight[30],
137
- focusVisible: r?.focusVisible
131
+ ...b,
132
+ semanticText: o.coolGrey[20],
133
+ focusVisible: e?.focusVisible
138
134
  },
139
135
  text: {
140
- primary: e.marbleLight[70],
141
- secondary: e.coolGrey[20],
142
- disabled: e.coolGrey[50]
136
+ primary: o.coolGrey[20],
137
+ secondary: o.coolGrey[40],
138
+ disabled: o.coolGrey[60]
143
139
  },
144
- divider: e.coolGrey[80],
140
+ divider: o.coolGrey[80],
145
141
  background: {
146
- default: e.onyx[40],
147
- neutral: e.onyx[50],
148
- surface: e.onyx[60],
149
- hover: u.hoverOpacity,
150
- backdrop: a.onyx[80] || "#000",
151
- base: e.onyx[50],
142
+ default: o.onyx[60],
143
+ neutral: o.onyx[80],
144
+ surface: o.onyx[90],
145
+ hover: b.hover,
146
+ backdrop: a.onyx[30],
147
+ base: o.onyx[70],
152
148
  blur: a.onyx[60],
153
149
  //por compatibilidad de mui
154
150
  paper: "#000"
@@ -156,41 +152,41 @@ const t = {
156
152
  chips: {
157
153
  primary: {
158
154
  outlined: {
159
- color: r.semanticText,
155
+ color: e.semanticText,
160
156
  // Comprobado
161
- backgroundColor: r.enabledOpacity,
157
+ backgroundColor: e.enabledOpacity,
162
158
  // Comprobado
163
- backgroundHover: r.hoverOpacity,
159
+ backgroundHover: e.hoverOpacity,
164
160
  // Comprobado
165
- backgroundActive: r.activeOpacity,
161
+ backgroundActive: e.activeOpacity,
166
162
  // Comprobado
167
163
  /* Tono */
168
- colorTone: r.semanticText,
164
+ colorTone: e.semanticText,
169
165
  // Comprobado
170
- backgroundColorTone: r.enabled,
166
+ backgroundColorTone: e.enabled,
171
167
  // Comprobado
172
- backgroundHoverTone: r.hover,
168
+ backgroundHoverTone: e.hover,
173
169
  // Comprobado
174
- backgroundActiveTone: r.activeOpacity
170
+ backgroundActiveTone: e.activeOpacity
175
171
  // Comprobado
176
172
  },
177
173
  contained: {
178
- color: r.enabled,
174
+ color: o.marbleLight[30],
179
175
  // Comprobado
180
- backgroundColor: r.enabledOpacity,
176
+ backgroundColor: e.enabledOpacity,
181
177
  // Comprobado
182
- backgroundHover: r.hoverOpacity,
178
+ backgroundHover: e.hoverOpacity,
183
179
  // Comprobado
184
- backgroundActive: r.activeOpacity,
180
+ backgroundActive: e.activeOpacity,
185
181
  // Comprobado
186
182
  /* Tono */
187
- colorTone: r.contrastText,
183
+ colorTone: o.marbleLight[30],
188
184
  // Comprobado
189
- backgroundColorTone: r.enabled,
185
+ backgroundColorTone: e.enabled,
190
186
  // Comprobado
191
- backgroundHoverTone: r.hover,
187
+ backgroundHoverTone: e.hover,
192
188
  // Comprobado
193
- backgroundActiveTone: r.active
189
+ backgroundActiveTone: e.active
194
190
  // Comprobado
195
191
  }
196
192
  /* opacidad */
@@ -199,16 +195,16 @@ const t = {
199
195
  },
200
196
  border: {
201
197
  main: s[n]?.borderMainDark,
202
- dens: a.mint[70],
203
- default: a.mint[80],
204
- secondary: a.mint[20],
205
- disabled: a.mint[30],
206
- error: c.error.main
198
+ dens: o.coolGrey[70],
199
+ default: o.onyx[30],
200
+ secondary: o.onyx[50],
201
+ disabled: a.cool[20],
202
+ error: i.error.main
207
203
  },
208
204
  general: {
209
205
  // no definido en figma
210
- scrollBar: t.light.scrollBar,
211
- gridHover: t.light.gridHover
206
+ scrollBar: l.light.scrollBar,
207
+ gridHover: l.light.gridHover
212
208
  },
213
209
  grey: d,
214
210
  // no definido en figma
@@ -217,24 +213,24 @@ const t = {
217
213
  transition: a.mint[40]
218
214
  },
219
215
  info: {
220
- ...c.info,
221
- focusVisible: r.focusVisible
216
+ ...i.info,
217
+ focusVisible: e.focusVisible
222
218
  },
223
219
  success: {
224
- ...c.success,
225
- focusVisible: r.focusVisible
220
+ ...i.success,
221
+ focusVisible: e.focusVisible
226
222
  },
227
223
  warning: {
228
- ...c.warning,
229
- focusVisible: r.focusVisible
224
+ ...i.warning,
225
+ focusVisible: e.focusVisible
230
226
  },
231
227
  error: {
232
- ...c.error,
233
- focusVisible: r.focusVisible
228
+ ...i.error,
229
+ focusVisible: e.focusVisible
234
230
  }
235
231
  }
236
232
  };
237
233
  };
238
234
  export {
239
- L as g
235
+ A as g
240
236
  };
@@ -1,26 +1,28 @@
1
- import { createTheme as p, alpha as s } from "@mui/material";
2
- import { t as o } from "../theme/typographyOld.js";
3
- import { s as e, c as m } from "../theme/shadows.js";
4
- import { S as i } from "../theme/sizes/size.js";
5
- import { g } from "./getColorPresets.js";
6
- import { g as y } from "./getPaletteByPreset.js";
7
- function S(r, a) {
8
- const t = p();
1
+ import { createTheme as e, alpha as r } from "@mui/material";
2
+ import { t as s } from "../theme/typographyOld.js";
3
+ import { c as i, s as g } from "../theme/shadows.js";
4
+ import { S as x } from "../theme/sizes/size.js";
5
+ import { g as m } from "./getPaletteByPreset.js";
6
+ import { g as o } from "./getColorPresets.js";
7
+ function u(t, p) {
8
+ const a = e();
9
9
  return {
10
- ...t,
11
- ...t.typography,
12
- ...o,
13
- ...e[r],
10
+ ...a,
11
+ ...a.typography,
12
+ ...s,
13
+ ...g[t],
14
14
  customShadows: {
15
- primary: `0 8px 16px 0 ${s(g(a).main, 0.2)}`,
16
- ...m(r)
15
+ primary: t === "light" ? `0 4px 8px -4px ${r(o(p)?.enabledLight, 0.12)},
16
+ 0 2px 27px 2px ${r(o(p)?.enabledLight, 0.02)}` : `0 4px 8px -4px ${r(o(p)?.enabledDark, 0.12)},
17
+ 0 2px 27px 2px ${r(o(p)?.enabledDark, 0.02)}`,
18
+ ...i(t)
17
19
  },
18
20
  stretch: !0,
19
- palette: { ...t.palette, ...y(a)[r] },
20
- typography: { ...t.typography, ...o },
21
- size: i
21
+ palette: { ...a.palette, ...m(p)[t] },
22
+ typography: { ...a.typography, ...s },
23
+ size: x
22
24
  };
23
25
  }
24
26
  export {
25
- S as g
27
+ u as g
26
28
  };