@m4l/styles 7.1.26 → 7.1.28

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.
@@ -58,12 +58,13 @@ export interface BaseFontSize {
58
58
  /**
59
59
  * Lista de variantes semánticas en tipografía que se pueden utilizar en la aplicación web.
60
60
  */
61
- export type TypographyVariants = 'h1' | 'h2' | 'h3' | 'h5' | 'subtitle' | 'subtitleDens' | 'paragraph' | 'paragraphDens' | 'body' | 'bodyDens';
61
+ export type TypographyVariants = 'h1' | 'h2' | 'h3' | 'h5' | 'subtitle' | 'subtitleDens' | 'paragraph' | 'paragraphDens' | 'caption' | 'captionDens' | 'body' | 'bodyDens';
62
62
  /**
63
63
  * Representa los valores predefinidos para los espaciados entre caracteres en la aplicación web.
64
64
  */
65
65
  export interface BaseLetterSpacing {
66
- '0.5': '0.5px';
66
+ normal: string;
67
+ dens: string;
67
68
  }
68
69
  /**
69
70
  * Lista de atributos css que se pueden aplicar a los textos en la aplicación web.
@@ -101,6 +102,7 @@ export interface BaseWeight {
101
102
  regular: number;
102
103
  dens: number;
103
104
  number: number;
105
+ medium: number;
104
106
  }
105
107
  /**
106
108
  * Representa el conjunto con el que los desarrolladores seleccionan el tamaño de los direntes textos en la aplicación web.
@@ -1,14 +1,14 @@
1
1
  import { B as o } from "./baseLetterSpacing.js";
2
2
  import { B as E } from "./baseLineHeight.js";
3
- import { B as t } from "./baseWeight.js";
4
- import { T as r, a as S } from "./typographySizes.js";
5
- const a = {
6
- mobile: r,
7
- desktop: S,
3
+ import { B as r } from "./baseWeight.js";
4
+ import { T as t, a as m } from "./typographySizes.js";
5
+ const _ = {
6
+ mobile: t,
7
+ desktop: m,
8
8
  lineHeight: E,
9
- weight: t,
10
- letterSpacing: o["0.5"]
9
+ weight: r,
10
+ letterSpacing: o.normal
11
11
  };
12
12
  export {
13
- a as T
13
+ _ as T
14
14
  };
@@ -2,67 +2,79 @@ import { B as e } from "./baseFontSize.js";
2
2
  import { B as t } from "./baseLetterSpacing.js";
3
3
  import { B as n } from "./baseLineHeight.js";
4
4
  import { B as i } from "./baseWeight.js";
5
- const a = {
5
+ const g = {
6
6
  small: {
7
7
  h1: {
8
8
  fontSize: e.pt42,
9
9
  fontWeight: i.dens,
10
10
  lineHeight: n.normal,
11
- letterSpacing: t["0.5"]
11
+ letterSpacing: t.normal
12
12
  },
13
13
  h2: {
14
14
  fontSize: e.pt32,
15
15
  fontWeight: i.dens,
16
16
  lineHeight: n.normal,
17
- letterSpacing: t["0.5"]
17
+ letterSpacing: t.normal
18
18
  },
19
19
  h3: {
20
20
  fontSize: e.pt26,
21
21
  fontWeight: i.dens,
22
22
  lineHeight: n.normal,
23
- letterSpacing: t["0.5"]
23
+ letterSpacing: t.normal
24
24
  },
25
25
  h5: {
26
26
  fontSize: e.pt20,
27
27
  fontWeight: i.dens,
28
28
  lineHeight: n.normal,
29
- letterSpacing: t["0.5"]
29
+ letterSpacing: t.normal
30
30
  },
31
31
  subtitle: {
32
32
  fontSize: e.pt17,
33
33
  fontWeight: i.regular,
34
34
  lineHeight: n.normal,
35
- letterSpacing: t["0.5"]
35
+ letterSpacing: t.normal
36
36
  },
37
37
  subtitleDens: {
38
38
  fontSize: e.pt17,
39
39
  fontWeight: i.dens,
40
40
  lineHeight: n.normal,
41
- letterSpacing: t["0.5"]
41
+ letterSpacing: t.dens
42
42
  },
43
43
  paragraph: {
44
- fontSize: e.pt15,
44
+ fontSize: e.pt14,
45
45
  fontWeight: i.regular,
46
46
  lineHeight: n.normal,
47
- letterSpacing: t["0.5"]
47
+ letterSpacing: t.normal
48
48
  },
49
49
  paragraphDens: {
50
- fontSize: e.pt15,
50
+ fontSize: e.pt14,
51
51
  fontWeight: i.dens,
52
52
  lineHeight: n.normal,
53
- letterSpacing: t["0.5"]
53
+ letterSpacing: t.dens
54
54
  },
55
55
  body: {
56
- fontSize: e.pt13,
56
+ fontSize: e.pt12,
57
57
  fontWeight: i.regular,
58
- lineHeight: n.lh3,
59
- letterSpacing: t["0.5"]
58
+ lineHeight: n.normal,
59
+ letterSpacing: t.normal
60
60
  },
61
61
  bodyDens: {
62
- fontSize: e.pt13,
62
+ fontSize: e.pt12,
63
63
  fontWeight: i.dens,
64
- lineHeight: n.lh3,
65
- letterSpacing: t["0.5"]
64
+ lineHeight: n.normal,
65
+ letterSpacing: t.dens
66
+ },
67
+ caption: {
68
+ fontSize: e.pt14,
69
+ fontWeight: i.regular,
70
+ lineHeight: n.normal,
71
+ letterSpacing: t.normal
72
+ },
73
+ captionDens: {
74
+ fontSize: e.pt14,
75
+ fontWeight: i.dens,
76
+ lineHeight: n.normal,
77
+ letterSpacing: t.dens
66
78
  }
67
79
  },
68
80
  medium: {
@@ -70,124 +82,148 @@ const a = {
70
82
  fontSize: e.pt44,
71
83
  fontWeight: i.dens,
72
84
  lineHeight: n.normal,
73
- letterSpacing: t["0.5"]
85
+ letterSpacing: t.normal
74
86
  },
75
87
  h2: {
76
88
  fontSize: e.pt32,
77
89
  fontWeight: i.dens,
78
90
  lineHeight: n.normal,
79
- letterSpacing: t["0.5"]
91
+ letterSpacing: t.normal
80
92
  },
81
93
  h3: {
82
94
  fontSize: e.pt28,
83
95
  fontWeight: i.dens,
84
96
  lineHeight: n.normal,
85
- letterSpacing: t["0.5"]
97
+ letterSpacing: t.normal
86
98
  },
87
99
  h5: {
88
100
  fontSize: e.pt20,
89
101
  fontWeight: i.dens,
90
102
  lineHeight: n.normal,
91
- letterSpacing: t["0.5"]
103
+ letterSpacing: t.normal
92
104
  },
93
105
  subtitle: {
94
- fontSize: e.pt18,
106
+ fontSize: e.pt16,
95
107
  fontWeight: i.regular,
96
108
  lineHeight: n.normal,
97
- letterSpacing: t["0.5"]
109
+ letterSpacing: t.normal
98
110
  },
99
111
  subtitleDens: {
100
- fontSize: e.pt18,
112
+ fontSize: e.pt16,
101
113
  fontWeight: i.dens,
102
114
  lineHeight: n.normal,
103
- letterSpacing: t["0.5"]
115
+ letterSpacing: t.dens
104
116
  },
105
117
  paragraph: {
106
- fontSize: e.pt15,
118
+ fontSize: e.pt14,
107
119
  fontWeight: i.regular,
108
120
  lineHeight: n.normal,
109
- letterSpacing: t["0.5"]
121
+ letterSpacing: t.normal
110
122
  },
111
123
  paragraphDens: {
112
- fontSize: e.pt15,
124
+ fontSize: e.pt14,
113
125
  fontWeight: i.dens,
114
126
  lineHeight: n.normal,
115
- letterSpacing: t["0.5"]
127
+ letterSpacing: t.dens
116
128
  },
117
129
  body: {
118
- fontSize: e.pt14,
130
+ fontSize: e.pt12,
119
131
  fontWeight: i.regular,
120
132
  lineHeight: n.normal,
121
- letterSpacing: t["0.5"]
133
+ letterSpacing: t.normal
122
134
  },
123
135
  bodyDens: {
136
+ fontSize: e.pt12,
137
+ fontWeight: i.dens,
138
+ lineHeight: n.normal,
139
+ letterSpacing: t.dens
140
+ },
141
+ caption: {
142
+ fontSize: e.pt14,
143
+ fontWeight: i.regular,
144
+ lineHeight: n.normal,
145
+ letterSpacing: t.normal
146
+ },
147
+ captionDens: {
124
148
  fontSize: e.pt14,
125
149
  fontWeight: i.dens,
126
150
  lineHeight: n.normal,
127
- letterSpacing: t["0.5"]
151
+ letterSpacing: t.dens
128
152
  }
129
153
  }
130
- }, h = {
154
+ }, p = {
131
155
  small: {
132
156
  h1: {
133
157
  fontSize: e.pt54,
134
158
  fontWeight: i.dens,
135
159
  lineHeight: n.normal,
136
- letterSpacing: t["0.5"]
160
+ letterSpacing: t.normal
137
161
  },
138
162
  h2: {
139
163
  fontSize: e.pt42,
140
164
  fontWeight: i.dens,
141
165
  lineHeight: n.normal,
142
- letterSpacing: t["0.5"]
166
+ letterSpacing: t.normal
143
167
  },
144
168
  h3: {
145
169
  fontSize: e.pt30,
146
170
  fontWeight: i.dens,
147
171
  lineHeight: n.normal,
148
- letterSpacing: t["0.5"]
172
+ letterSpacing: t.normal
149
173
  },
150
174
  h5: {
151
175
  fontSize: e.pt26,
152
176
  fontWeight: i.dens,
153
177
  lineHeight: n.normal,
154
- letterSpacing: t["0.5"]
178
+ letterSpacing: t.normal
155
179
  },
156
180
  subtitle: {
157
181
  fontSize: e.pt14,
158
182
  fontWeight: i.regular,
159
183
  lineHeight: n.normal,
160
- letterSpacing: t["0.5"]
184
+ letterSpacing: t.normal
161
185
  },
162
186
  subtitleDens: {
163
187
  fontSize: e.pt14,
164
188
  fontWeight: i.dens,
165
189
  lineHeight: n.normal,
166
- letterSpacing: t["0.5"]
190
+ letterSpacing: t.dens
167
191
  },
168
192
  paragraph: {
169
193
  fontSize: e.pt12,
170
194
  fontWeight: i.regular,
171
195
  lineHeight: n.normal,
172
- letterSpacing: t["0.5"]
196
+ letterSpacing: t.normal
173
197
  },
174
198
  paragraphDens: {
175
199
  fontSize: e.pt12,
176
200
  fontWeight: i.dens,
177
201
  lineHeight: n.normal,
178
- letterSpacing: t["0.5"]
202
+ letterSpacing: t.dens
179
203
  },
180
204
  body: {
181
205
  fontSize: e.pt10,
182
206
  fontWeight: i.regular,
183
- lineHeight: n.lh1,
184
- letterSpacing: t["0.5"]
207
+ lineHeight: n.normal,
208
+ letterSpacing: t.normal
185
209
  },
186
210
  bodyDens: {
187
211
  fontSize: e.pt10,
188
212
  fontWeight: i.dens,
189
- lineHeight: n.lh1,
190
- letterSpacing: t["0.5"]
213
+ lineHeight: n.normal,
214
+ letterSpacing: t.dens
215
+ },
216
+ caption: {
217
+ fontSize: e.pt12,
218
+ fontWeight: i.regular,
219
+ lineHeight: n.normal,
220
+ letterSpacing: t.normal
221
+ },
222
+ captionDens: {
223
+ fontSize: e.pt12,
224
+ fontWeight: i.dens,
225
+ lineHeight: n.normal,
226
+ letterSpacing: t.dens
191
227
  }
192
228
  },
193
229
  medium: {
@@ -195,65 +231,77 @@ const a = {
195
231
  fontSize: e.pt56,
196
232
  fontWeight: i.dens,
197
233
  lineHeight: n.normal,
198
- letterSpacing: t["0.5"]
234
+ letterSpacing: t.normal
199
235
  },
200
236
  h2: {
201
237
  fontSize: e.pt44,
202
238
  fontWeight: i.dens,
203
239
  lineHeight: n.normal,
204
- letterSpacing: t["0.5"]
240
+ letterSpacing: t.normal
205
241
  },
206
242
  h3: {
207
243
  fontSize: e.pt32,
208
244
  fontWeight: i.dens,
209
245
  lineHeight: n.normal,
210
- letterSpacing: t["0.5"]
246
+ letterSpacing: t.normal
211
247
  },
212
248
  h5: {
213
249
  fontSize: e.pt28,
214
250
  fontWeight: i.dens,
215
251
  lineHeight: n.normal,
216
- letterSpacing: t["0.5"]
252
+ letterSpacing: t.normal
217
253
  },
218
254
  subtitle: {
219
255
  fontSize: e.pt15,
220
256
  fontWeight: i.regular,
221
257
  lineHeight: n.normal,
222
- letterSpacing: t["0.5"]
258
+ letterSpacing: t.normal
223
259
  },
224
260
  subtitleDens: {
225
261
  fontSize: e.pt15,
226
262
  fontWeight: i.dens,
227
263
  lineHeight: n.normal,
228
- letterSpacing: t["0.5"]
264
+ letterSpacing: t.dens
229
265
  },
230
266
  paragraph: {
231
267
  fontSize: e.pt13,
232
268
  fontWeight: i.regular,
233
269
  lineHeight: n.normal,
234
- letterSpacing: t["0.5"]
270
+ letterSpacing: t.normal
235
271
  },
236
272
  paragraphDens: {
237
273
  fontSize: e.pt13,
238
274
  fontWeight: i.dens,
239
275
  lineHeight: n.normal,
240
- letterSpacing: t["0.5"]
276
+ letterSpacing: t.dens
241
277
  },
242
278
  body: {
243
279
  fontSize: e.pt11,
244
280
  fontWeight: i.regular,
245
281
  lineHeight: n.normal,
246
- letterSpacing: t["0.5"]
282
+ letterSpacing: t.normal
247
283
  },
248
284
  bodyDens: {
249
285
  fontSize: e.pt11,
250
286
  fontWeight: i.dens,
251
287
  lineHeight: n.normal,
252
- letterSpacing: t["0.5"]
288
+ letterSpacing: t.dens
289
+ },
290
+ caption: {
291
+ fontSize: e.pt12,
292
+ fontWeight: i.regular,
293
+ lineHeight: n.normal,
294
+ letterSpacing: t.normal
295
+ },
296
+ captionDens: {
297
+ fontSize: e.pt12,
298
+ fontWeight: i.dens,
299
+ lineHeight: n.normal,
300
+ letterSpacing: t.dens
253
301
  }
254
302
  }
255
303
  };
256
304
  export {
257
- a as T,
258
- h as a
305
+ g as T,
306
+ p as a
259
307
  };
@@ -107,6 +107,8 @@ declare module '@mui/material/styles' {
107
107
  surface: string;
108
108
  hover: string;
109
109
  backdrop: string;
110
+ base: string;
111
+ blur: string;
110
112
  }
111
113
  interface TypographyVariants {
112
114
  subtitle: Record<string, any>;
@@ -116,6 +118,8 @@ declare module '@mui/material/styles' {
116
118
  body: Record<string, any>;
117
119
  bodyDens: Record<string, any>;
118
120
  action: Record<string, any>;
121
+ caption: Record<string, any>;
122
+ captionDens: Record<string, any>;
119
123
  }
120
124
  interface TypographyVariantsOptions {
121
125
  subtitle: React.CSSProperties;
@@ -125,6 +129,8 @@ declare module '@mui/material/styles' {
125
129
  body: React.CSSProperties;
126
130
  bodyDens: React.CSSProperties;
127
131
  action: React.CSSProperties;
132
+ caption: React.CSSProperties;
133
+ captionDens: React.CSSProperties;
128
134
  }
129
135
  }
130
136
  declare module '@mui/material/Typography' {
@@ -136,5 +142,7 @@ declare module '@mui/material/Typography' {
136
142
  body: true;
137
143
  bodyDens: true;
138
144
  action: true;
145
+ caption: true;
146
+ captionDens: true;
139
147
  }
140
148
  }
package/types/types.d.ts CHANGED
@@ -15,8 +15,8 @@ export type SemanticColorOptionsType = 'info' | 'success' | 'warning' | 'error';
15
15
  * Son los conjuntos de colores que se pueden usar en los componentes y corresponde al tipo PaletteColor
16
16
  */
17
17
  export type ComponentPalletColor = 'primary' | 'default' | SemanticColorOptionsType;
18
- export type BasePalettes = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'forest' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford';
19
- export type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'blaze' | 'cool' | 'marble' | 'mint' | 'onyx' | 'oxford' | 'middle' | 'acid' | 'forest' | 'flame' | 'crayon';
18
+ export type BasePalettes = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'forest' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford' | 'pink' | 'orange' | 'candy' | 'persianGreen' | 'aqua';
19
+ export type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'blaze' | 'cool' | 'marble' | 'mint' | 'onyx' | 'oxford' | 'middle' | 'acid' | 'forest' | 'flame' | 'crayon' | 'pink' | 'orange' | 'candy' | 'persianGreen' | 'aqua';
20
20
  export interface Colors {
21
21
  /**
22
22
  * ToneOpacity se usa para colorear el fondo de los celdas en el compksonente grid.
@@ -35,7 +35,7 @@ export interface Colors {
35
35
  95: string;
36
36
  }
37
37
  export interface OpacityColors {
38
- 5?: string;
38
+ 5: string;
39
39
  10: string;
40
40
  15?: string;
41
41
  20: string;
@@ -116,11 +116,11 @@ export type ThemePaletteColors = Record<ThemeUserColor, PaletteColor>;
116
116
  /**
117
117
  * Son las opcines de paleta de colores semánticos en formato PaletteColor
118
118
  */
119
- export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible' | 'selected' | 'selectedOpacity'>>;
119
+ export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible'>>;
120
120
  /**
121
121
  * Es la configuración de color que se usa fabricar la paleta "default", se encuentra en formato PaletteColor.
122
122
  */
123
- export type DefaultPresetColor = Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'main' | 'contrastText'> & {
123
+ export type DefaultPresetColor = Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'main' | 'semanticTextLight' | 'semanticTextDark' | 'opacityLight' | 'opacityDark'> & {
124
124
  mainLight: string;
125
125
  mainDark: string;
126
126
  };
@@ -146,7 +146,7 @@ export interface ChipColor {
146
146
  /**
147
147
  * Lista de opciones de colores para pintar los chips
148
148
  */
149
- export type ChipColorOptions = 'default' | 'disabled' | 'warning' | 'error' | 'success' | 'forest' | 'info' | 'primary';
149
+ export type ChipColorOptions = 'default' | 'disabled' | 'warning' | 'error' | 'success' | 'forest' | 'info' | 'primary' | 'pink' | 'orange' | 'candy' | 'persianGreen' | 'aqua';
150
150
  /**
151
151
  * Representa la definición de la lista de colores para usarse en los chips. Son los colores con los que se van a pintar el componente chip.
152
152
  */