@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,153 +1,153 @@
1
1
  import { B as e } from "./baseFontSize.js";
2
2
  import { B as t } from "./baseLetterSpacing.js";
3
- import { B as n } from "./baseLineHeight.js";
4
- import { B as i } from "./baseWeight.js";
3
+ import { B as i } from "./baseLineHeight.js";
4
+ import { B as n } from "./baseWeight.js";
5
5
  const g = {
6
6
  small: {
7
7
  h1: {
8
8
  fontSize: e.pt42,
9
- fontWeight: i.dens,
10
- lineHeight: n.normal,
9
+ fontWeight: n.sizeBold,
10
+ lineHeight: i.normal,
11
11
  letterSpacing: t.normal
12
12
  },
13
13
  h2: {
14
14
  fontSize: e.pt32,
15
- fontWeight: i.dens,
16
- lineHeight: n.normal,
15
+ fontWeight: n.sizeBold,
16
+ lineHeight: i.normal,
17
17
  letterSpacing: t.normal
18
18
  },
19
19
  h3: {
20
20
  fontSize: e.pt26,
21
- fontWeight: i.dens,
22
- lineHeight: n.normal,
21
+ fontWeight: n.sizeBold,
22
+ lineHeight: i.normal,
23
23
  letterSpacing: t.normal
24
24
  },
25
25
  h5: {
26
26
  fontSize: e.pt20,
27
- fontWeight: i.dens,
28
- lineHeight: n.normal,
27
+ fontWeight: n.sizeBold,
28
+ lineHeight: i.normal,
29
29
  letterSpacing: t.normal
30
30
  },
31
31
  subtitle: {
32
- fontSize: e.pt17,
33
- fontWeight: i.regular,
34
- lineHeight: n.normal,
32
+ fontSize: e.pt15,
33
+ fontWeight: n.sizeMedium,
34
+ lineHeight: i.normal,
35
35
  letterSpacing: t.normal
36
36
  },
37
37
  subtitleDens: {
38
- fontSize: e.pt17,
39
- fontWeight: i.dens,
40
- lineHeight: n.normal,
38
+ fontSize: e.pt15,
39
+ fontWeight: n.sizeBold,
40
+ lineHeight: i.normal,
41
41
  letterSpacing: t.dens
42
42
  },
43
43
  paragraph: {
44
- fontSize: e.pt14,
45
- fontWeight: i.regular,
46
- lineHeight: n.normal,
44
+ fontSize: e.pt13,
45
+ fontWeight: n.sizeMedium,
46
+ lineHeight: i.normal,
47
47
  letterSpacing: t.normal
48
48
  },
49
49
  paragraphDens: {
50
- fontSize: e.pt14,
51
- fontWeight: i.dens,
52
- lineHeight: n.normal,
50
+ fontSize: e.pt13,
51
+ fontWeight: n.sizeBold,
52
+ lineHeight: i.normal,
53
53
  letterSpacing: t.dens
54
54
  },
55
55
  body: {
56
- fontSize: e.pt12,
57
- fontWeight: i.regular,
58
- lineHeight: n.normal,
56
+ fontSize: e.pt11,
57
+ fontWeight: n.sizeMedium,
58
+ lineHeight: i.normal,
59
59
  letterSpacing: t.normal
60
60
  },
61
61
  bodyDens: {
62
- fontSize: e.pt12,
63
- fontWeight: i.dens,
64
- lineHeight: n.normal,
62
+ fontSize: e.pt11,
63
+ fontWeight: n.sizeBold,
64
+ lineHeight: i.normal,
65
65
  letterSpacing: t.dens
66
66
  },
67
67
  caption: {
68
- fontSize: e.pt14,
69
- fontWeight: i.regular,
70
- lineHeight: n.normal,
68
+ fontSize: e.pt13,
69
+ fontWeight: n.sizeMedium,
70
+ lineHeight: i.normal,
71
71
  letterSpacing: t.normal
72
72
  },
73
73
  captionDens: {
74
- fontSize: e.pt14,
75
- fontWeight: i.dens,
76
- lineHeight: n.normal,
74
+ fontSize: e.pt13,
75
+ fontWeight: n.sizeBold,
76
+ lineHeight: i.normal,
77
77
  letterSpacing: t.dens
78
78
  }
79
79
  },
80
80
  medium: {
81
81
  h1: {
82
82
  fontSize: e.pt44,
83
- fontWeight: i.dens,
84
- lineHeight: n.normal,
83
+ fontWeight: n.sizeBold,
84
+ lineHeight: i.normal,
85
85
  letterSpacing: t.normal
86
86
  },
87
87
  h2: {
88
88
  fontSize: e.pt32,
89
- fontWeight: i.dens,
90
- lineHeight: n.normal,
89
+ fontWeight: n.sizeBold,
90
+ lineHeight: i.normal,
91
91
  letterSpacing: t.normal
92
92
  },
93
93
  h3: {
94
94
  fontSize: e.pt28,
95
- fontWeight: i.dens,
96
- lineHeight: n.normal,
95
+ fontWeight: n.sizeBold,
96
+ lineHeight: i.normal,
97
97
  letterSpacing: t.normal
98
98
  },
99
99
  h5: {
100
100
  fontSize: e.pt20,
101
- fontWeight: i.dens,
102
- lineHeight: n.normal,
101
+ fontWeight: n.sizeBold,
102
+ lineHeight: i.normal,
103
103
  letterSpacing: t.normal
104
104
  },
105
105
  subtitle: {
106
106
  fontSize: e.pt16,
107
- fontWeight: i.regular,
108
- lineHeight: n.normal,
107
+ fontWeight: n.sizeMedium,
108
+ lineHeight: i.normal,
109
109
  letterSpacing: t.normal
110
110
  },
111
111
  subtitleDens: {
112
112
  fontSize: e.pt16,
113
- fontWeight: i.dens,
114
- lineHeight: n.normal,
113
+ fontWeight: n.sizeBold,
114
+ lineHeight: i.normal,
115
115
  letterSpacing: t.dens
116
116
  },
117
117
  paragraph: {
118
118
  fontSize: e.pt14,
119
- fontWeight: i.regular,
120
- lineHeight: n.normal,
119
+ fontWeight: n.sizeMedium,
120
+ lineHeight: i.normal,
121
121
  letterSpacing: t.normal
122
122
  },
123
123
  paragraphDens: {
124
124
  fontSize: e.pt14,
125
- fontWeight: i.dens,
126
- lineHeight: n.normal,
125
+ fontWeight: n.sizeBold,
126
+ lineHeight: i.normal,
127
127
  letterSpacing: t.dens
128
128
  },
129
129
  body: {
130
130
  fontSize: e.pt12,
131
- fontWeight: i.regular,
132
- lineHeight: n.normal,
131
+ fontWeight: n.sizeMedium,
132
+ lineHeight: i.normal,
133
133
  letterSpacing: t.normal
134
134
  },
135
135
  bodyDens: {
136
136
  fontSize: e.pt12,
137
- fontWeight: i.dens,
138
- lineHeight: n.normal,
137
+ fontWeight: n.sizeBold,
138
+ lineHeight: i.normal,
139
139
  letterSpacing: t.dens
140
140
  },
141
141
  caption: {
142
- fontSize: e.pt14,
143
- fontWeight: i.regular,
144
- lineHeight: n.normal,
142
+ fontSize: e.pt13,
143
+ fontWeight: n.sizeMedium,
144
+ lineHeight: i.normal,
145
145
  letterSpacing: t.normal
146
146
  },
147
147
  captionDens: {
148
- fontSize: e.pt14,
149
- fontWeight: i.dens,
150
- lineHeight: n.normal,
148
+ fontSize: e.pt13,
149
+ fontWeight: n.sizeBold,
150
+ lineHeight: i.normal,
151
151
  letterSpacing: t.dens
152
152
  }
153
153
  }
@@ -155,148 +155,148 @@ const g = {
155
155
  small: {
156
156
  h1: {
157
157
  fontSize: e.pt54,
158
- fontWeight: i.dens,
159
- lineHeight: n.normal,
158
+ fontWeight: n.sizeBold,
159
+ lineHeight: i.normal,
160
160
  letterSpacing: t.normal
161
161
  },
162
162
  h2: {
163
163
  fontSize: e.pt42,
164
- fontWeight: i.dens,
165
- lineHeight: n.normal,
164
+ fontWeight: n.sizeBold,
165
+ lineHeight: i.normal,
166
166
  letterSpacing: t.normal
167
167
  },
168
168
  h3: {
169
169
  fontSize: e.pt30,
170
- fontWeight: i.dens,
171
- lineHeight: n.normal,
170
+ fontWeight: n.sizeBold,
171
+ lineHeight: i.normal,
172
172
  letterSpacing: t.normal
173
173
  },
174
174
  h5: {
175
175
  fontSize: e.pt26,
176
- fontWeight: i.dens,
177
- lineHeight: n.normal,
176
+ fontWeight: n.sizeBold,
177
+ lineHeight: i.normal,
178
178
  letterSpacing: t.normal
179
179
  },
180
180
  subtitle: {
181
181
  fontSize: e.pt14,
182
- fontWeight: i.regular,
183
- lineHeight: n.normal,
182
+ fontWeight: n.sizeMedium,
183
+ lineHeight: i.normal,
184
184
  letterSpacing: t.normal
185
185
  },
186
186
  subtitleDens: {
187
187
  fontSize: e.pt14,
188
- fontWeight: i.dens,
189
- lineHeight: n.normal,
188
+ fontWeight: n.sizeBold,
189
+ lineHeight: i.normal,
190
190
  letterSpacing: t.dens
191
191
  },
192
192
  paragraph: {
193
193
  fontSize: e.pt12,
194
- fontWeight: i.regular,
195
- lineHeight: n.normal,
194
+ fontWeight: n.sizeMedium,
195
+ lineHeight: i.normal,
196
196
  letterSpacing: t.normal
197
197
  },
198
198
  paragraphDens: {
199
199
  fontSize: e.pt12,
200
- fontWeight: i.dens,
201
- lineHeight: n.normal,
200
+ fontWeight: n.sizeBold,
201
+ lineHeight: i.normal,
202
202
  letterSpacing: t.dens
203
203
  },
204
204
  body: {
205
205
  fontSize: e.pt10,
206
- fontWeight: i.regular,
207
- lineHeight: n.normal,
206
+ fontWeight: n.sizeMedium,
207
+ lineHeight: i.normal,
208
208
  letterSpacing: t.normal
209
209
  },
210
210
  bodyDens: {
211
211
  fontSize: e.pt10,
212
- fontWeight: i.dens,
213
- lineHeight: n.normal,
212
+ fontWeight: n.sizeBold,
213
+ lineHeight: i.normal,
214
214
  letterSpacing: t.dens
215
215
  },
216
216
  caption: {
217
217
  fontSize: e.pt12,
218
- fontWeight: i.regular,
219
- lineHeight: n.normal,
218
+ fontWeight: n.sizeMedium,
219
+ lineHeight: i.normal,
220
220
  letterSpacing: t.normal
221
221
  },
222
222
  captionDens: {
223
223
  fontSize: e.pt12,
224
- fontWeight: i.dens,
225
- lineHeight: n.normal,
224
+ fontWeight: n.sizeBold,
225
+ lineHeight: i.normal,
226
226
  letterSpacing: t.dens
227
227
  }
228
228
  },
229
229
  medium: {
230
230
  h1: {
231
231
  fontSize: e.pt56,
232
- fontWeight: i.dens,
233
- lineHeight: n.normal,
232
+ fontWeight: n.sizeBold,
233
+ lineHeight: i.normal,
234
234
  letterSpacing: t.normal
235
235
  },
236
236
  h2: {
237
237
  fontSize: e.pt44,
238
- fontWeight: i.dens,
239
- lineHeight: n.normal,
238
+ fontWeight: n.sizeBold,
239
+ lineHeight: i.normal,
240
240
  letterSpacing: t.normal
241
241
  },
242
242
  h3: {
243
243
  fontSize: e.pt32,
244
- fontWeight: i.dens,
245
- lineHeight: n.normal,
244
+ fontWeight: n.sizeBold,
245
+ lineHeight: i.normal,
246
246
  letterSpacing: t.normal
247
247
  },
248
248
  h5: {
249
249
  fontSize: e.pt28,
250
- fontWeight: i.dens,
251
- lineHeight: n.normal,
250
+ fontWeight: n.sizeBold,
251
+ lineHeight: i.normal,
252
252
  letterSpacing: t.normal
253
253
  },
254
254
  subtitle: {
255
255
  fontSize: e.pt15,
256
- fontWeight: i.regular,
257
- lineHeight: n.normal,
256
+ fontWeight: n.sizeMedium,
257
+ lineHeight: i.normal,
258
258
  letterSpacing: t.normal
259
259
  },
260
260
  subtitleDens: {
261
261
  fontSize: e.pt15,
262
- fontWeight: i.dens,
263
- lineHeight: n.normal,
262
+ fontWeight: n.sizeBold,
263
+ lineHeight: i.normal,
264
264
  letterSpacing: t.dens
265
265
  },
266
266
  paragraph: {
267
267
  fontSize: e.pt13,
268
- fontWeight: i.regular,
269
- lineHeight: n.normal,
268
+ fontWeight: n.sizeMedium,
269
+ lineHeight: i.normal,
270
270
  letterSpacing: t.normal
271
271
  },
272
272
  paragraphDens: {
273
273
  fontSize: e.pt13,
274
- fontWeight: i.dens,
275
- lineHeight: n.normal,
274
+ fontWeight: n.sizeBold,
275
+ lineHeight: i.normal,
276
276
  letterSpacing: t.dens
277
277
  },
278
278
  body: {
279
279
  fontSize: e.pt11,
280
- fontWeight: i.regular,
281
- lineHeight: n.normal,
280
+ fontWeight: n.sizeMedium,
281
+ lineHeight: i.normal,
282
282
  letterSpacing: t.normal
283
283
  },
284
284
  bodyDens: {
285
285
  fontSize: e.pt11,
286
- fontWeight: i.dens,
287
- lineHeight: n.normal,
286
+ fontWeight: n.sizeBold,
287
+ lineHeight: i.normal,
288
288
  letterSpacing: t.dens
289
289
  },
290
290
  caption: {
291
291
  fontSize: e.pt12,
292
- fontWeight: i.regular,
293
- lineHeight: n.normal,
292
+ fontWeight: n.sizeMedium,
293
+ lineHeight: i.normal,
294
294
  letterSpacing: t.normal
295
295
  },
296
296
  captionDens: {
297
297
  fontSize: e.pt12,
298
- fontWeight: i.dens,
299
- lineHeight: n.normal,
298
+ fontWeight: n.sizeBold,
299
+ lineHeight: i.normal,
300
300
  letterSpacing: t.dens
301
301
  }
302
302
  }
@@ -30,6 +30,8 @@ declare module '@mui/material/styles' {
30
30
  opacity: string;
31
31
  toneOpacity: string;
32
32
  semanticText: string;
33
+ opacityGradient1: string;
34
+ opacityGradient2: string;
33
35
  }
34
36
  interface Palette {
35
37
  mode: 'light' | 'dark';
package/types/types.d.ts CHANGED
@@ -91,6 +91,16 @@ export interface PresetColor {
91
91
  dark: string;
92
92
  darker: string;
93
93
  toneOpacityDark: string;
94
+ /**
95
+ * Permite definir el color de fondo de un componente en modo light.
96
+ */
97
+ opacityGradient1Light: string;
98
+ opacityGradient1Dark: string;
99
+ /**
100
+ * Permite definir el color de fondo de un componente en modo dark.
101
+ */
102
+ opacityGradient2Light: string;
103
+ opacityGradient2Dark: string;
94
104
  /**
95
105
  * Permite mantener consitencia en el color de tema para los borders en caso de estar en un estado de usuario focus.
96
106
  */
@@ -25,6 +25,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
25
25
  readonly opacity: string;
26
26
  readonly toneOpacity: string;
27
27
  readonly semanticText: string;
28
+ readonly opacityGradient1: string;
29
+ readonly opacityGradient2: string;
28
30
  };
29
31
  readonly default: {
30
32
  readonly semanticText: string;
@@ -45,6 +47,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
45
47
  readonly activeOpacity: string;
46
48
  readonly opacity: string;
47
49
  readonly toneOpacity: string;
50
+ readonly opacityGradient1: string;
51
+ readonly opacityGradient2: string;
48
52
  };
49
53
  readonly divider: string;
50
54
  readonly text: {
@@ -60,7 +64,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
60
64
  readonly backdrop: string;
61
65
  readonly base: string;
62
66
  readonly blur: string;
63
- readonly paper: "#000";
67
+ readonly paper: "#fff";
64
68
  };
65
69
  readonly chips: {
66
70
  readonly info: Record<import('../types').ChipColorVariant, import('../types').ChipColor>;
@@ -134,6 +138,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
134
138
  readonly opacity: string;
135
139
  readonly toneOpacity: string;
136
140
  readonly semanticText: string;
141
+ readonly opacityGradient1: string;
142
+ readonly opacityGradient2: string;
137
143
  };
138
144
  readonly success: {
139
145
  readonly focusVisible: string;
@@ -154,6 +160,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
154
160
  readonly opacity: string;
155
161
  readonly toneOpacity: string;
156
162
  readonly semanticText: string;
163
+ readonly opacityGradient1: string;
164
+ readonly opacityGradient2: string;
157
165
  };
158
166
  readonly warning: {
159
167
  readonly focusVisible: string;
@@ -174,6 +182,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
174
182
  readonly opacity: string;
175
183
  readonly toneOpacity: string;
176
184
  readonly semanticText: string;
185
+ readonly opacityGradient1: string;
186
+ readonly opacityGradient2: string;
177
187
  };
178
188
  readonly error: {
179
189
  readonly focusVisible: string;
@@ -194,6 +204,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
194
204
  readonly opacity: string;
195
205
  readonly toneOpacity: string;
196
206
  readonly semanticText: string;
207
+ readonly opacityGradient1: string;
208
+ readonly opacityGradient2: string;
197
209
  };
198
210
  };
199
211
  readonly dark: {
@@ -218,6 +230,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
218
230
  readonly opacity: string;
219
231
  readonly toneOpacity: string;
220
232
  readonly semanticText: string;
233
+ readonly opacityGradient1: string;
234
+ readonly opacityGradient2: string;
221
235
  };
222
236
  readonly default: {
223
237
  readonly semanticText: string;
@@ -238,6 +252,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
238
252
  readonly activeOpacity: string;
239
253
  readonly opacity: string;
240
254
  readonly toneOpacity: string;
255
+ readonly opacityGradient1: string;
256
+ readonly opacityGradient2: string;
241
257
  };
242
258
  readonly text: {
243
259
  readonly primary: string;
@@ -294,7 +310,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
294
310
  readonly border: {
295
311
  readonly main: string;
296
312
  readonly dens: string;
297
- readonly default: string | undefined;
313
+ readonly default: string;
298
314
  readonly secondary: string;
299
315
  readonly disabled: string;
300
316
  readonly error: string;
@@ -327,6 +343,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
327
343
  readonly opacity: string;
328
344
  readonly toneOpacity: string;
329
345
  readonly semanticText: string;
346
+ readonly opacityGradient1: string;
347
+ readonly opacityGradient2: string;
330
348
  };
331
349
  readonly success: {
332
350
  readonly focusVisible: string;
@@ -347,6 +365,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
347
365
  readonly opacity: string;
348
366
  readonly toneOpacity: string;
349
367
  readonly semanticText: string;
368
+ readonly opacityGradient1: string;
369
+ readonly opacityGradient2: string;
350
370
  };
351
371
  readonly warning: {
352
372
  readonly focusVisible: string;
@@ -367,6 +387,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
367
387
  readonly opacity: string;
368
388
  readonly toneOpacity: string;
369
389
  readonly semanticText: string;
390
+ readonly opacityGradient1: string;
391
+ readonly opacityGradient2: string;
370
392
  };
371
393
  readonly error: {
372
394
  readonly focusVisible: string;
@@ -387,6 +409,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
387
409
  readonly opacity: string;
388
410
  readonly toneOpacity: string;
389
411
  readonly semanticText: string;
412
+ readonly opacityGradient1: string;
413
+ readonly opacityGradient2: string;
390
414
  };
391
415
  };
392
416
  };