@m4l/styles 6.1.0 → 6.1.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,5 +1,5 @@
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-BZonCMpk.js";
2
+ import { O as p, g as m } from "./theme/index-Y2nvv8zQ.js";
3
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
5
  import { f as S } from "./theme/overrides/index-DLjfQaz-.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
@@ -1,8 +1,8 @@
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";
1
+ import { createTheme as h, alpha as O } from "@mui/material/styles";
2
+ import { t as p } from "./typography-BsOO459U.js";
3
+ import { s as R, c as _ } from "./shadows-Cek_1mpN.js";
4
+ import { C as i, D as l, B as s, P as m, a as e, S as d, G as n, b as c, c as x, d as b, e as f } from "./palette-voCQl3kP.js";
5
+ import { g as S } from "../utils/getColorPresets-DgmrCj5l.js";
6
6
  const o = {
7
7
  light: {
8
8
  scrollBar: "#5663763D",
@@ -12,17 +12,17 @@ const o = {
12
12
  scrollBar: "#5663765D",
13
13
  gridHover: "#282E2E"
14
14
  }
15
- }, E = (a) => {
16
- const t = f?.[a], h = S?.[a];
15
+ }, L = (a) => {
16
+ const t = b?.[a], u = f?.[a];
17
17
  return {
18
18
  light: {
19
19
  mode: "light",
20
- common: l,
20
+ common: i,
21
21
  primary: {
22
22
  ...t
23
23
  },
24
24
  default: {
25
- ...m,
25
+ ...l,
26
26
  focusVisible: t.focusVisible,
27
27
  contrastText: s.onyx[20]
28
28
  },
@@ -36,17 +36,17 @@ const o = {
36
36
  default: s.marbleLight[10],
37
37
  neutral: s.marbleLight[30],
38
38
  surface: s.marbleLight[50],
39
- hover: m.hover,
39
+ hover: l.hover,
40
40
  //por compatibilidad de mui
41
41
  paper: ""
42
42
  },
43
43
  border: {
44
- main: d[a]?.borderMainLight,
44
+ main: m[a]?.borderMainLight,
45
45
  default: e.oxford[40],
46
46
  secondary: e.oxford[30],
47
47
  dens: e.oxford[60],
48
48
  disabled: e.oxford[10],
49
- error: p.error.main
49
+ error: d.error.main
50
50
  },
51
51
  general: {
52
52
  scrollBar: o.light.scrollBar,
@@ -57,17 +57,17 @@ const o = {
57
57
  default: e.oxford[10],
58
58
  transition: e.oxford[20]
59
59
  },
60
- ...p
60
+ ...d
61
61
  },
62
62
  dark: {
63
63
  mode: "dark",
64
- common: l,
64
+ common: i,
65
65
  primary: {
66
66
  ...t
67
67
  },
68
68
  default: {
69
69
  ...c,
70
- focusVisible: h?.focusVisible,
70
+ focusVisible: u?.focusVisible,
71
71
  contrastText: s.marbleLight[30]
72
72
  },
73
73
  text: {
@@ -85,12 +85,12 @@ const o = {
85
85
  paper: ""
86
86
  },
87
87
  border: {
88
- main: d[a]?.borderMainDark,
88
+ main: m[a]?.borderMainDark,
89
89
  default: e.mint[50],
90
90
  secondary: e.mint[40],
91
91
  dens: e.mint[60],
92
92
  disabled: e.mint[20],
93
- error: g.error.main
93
+ error: x.error.main
94
94
  },
95
95
  general: {
96
96
  scrollBar: o.light.scrollBar,
@@ -101,38 +101,38 @@ const o = {
101
101
  default: e.mint[20],
102
102
  transition: e.mint[40]
103
103
  },
104
- ...g
104
+ ...x
105
105
  }
106
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
107
+ }, E = {
108
+ r0: "0px",
109
+ "r0.5": "2px",
110
+ r1: "4px",
111
+ "r1.5": "6px",
112
+ r2: "8px",
113
+ r3: "12px",
114
+ r4: "16px"
115
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 = {
116
+ sp0: "0px",
117
+ "sp0.5": "2px",
118
+ sp1: "4px",
119
+ sp2: "8px",
120
+ sp3: "12px",
121
+ "sp3.5": "14px",
122
+ sp4: "16px",
123
+ sp5: "20px",
124
+ sp6: "24px",
125
+ sp7: "28px",
126
+ sp8: "32px",
127
+ sp9: "36px",
128
+ sp10: "40px",
129
+ "sp10.5": "42px",
130
+ sp11: "44px",
131
+ sp12: "48px",
132
+ sp13: "52px",
133
+ sp14: "56px",
134
+ "sp14.5": "58px"
135
+ }, y = {
136
136
  base: {
137
137
  small: r["sp3.5"],
138
138
  medium: r.sp4,
@@ -148,7 +148,7 @@ const o = {
148
148
  medium: r.sp8,
149
149
  large: r.sp9
150
150
  }
151
- }, T = {
151
+ }, C = {
152
152
  base: {
153
153
  small: r.sp5,
154
154
  medium: r.sp6,
@@ -164,33 +164,33 @@ const o = {
164
164
  medium: r.sp10,
165
165
  large: r.sp11
166
166
  }
167
- }, x = {
167
+ }, T = {
168
168
  desktop: {
169
- ...C
169
+ ...y
170
170
  },
171
171
  mobile: {
172
- ...T
172
+ ...C
173
173
  },
174
174
  borderRadius: {
175
- ...y
175
+ ...E
176
176
  }
177
- }, A = O(), u = E("patronus"), G = {
178
- ...i,
179
- ..._.light,
180
- ...u,
177
+ }, A = h(), g = L("patronus"), G = {
178
+ ...p,
179
+ ...R.light,
180
+ ...g,
181
181
  customShadows: {
182
- primary: `0 8px 16px 0 ${R(L("patronus").main, 0.2)}`,
183
- ...b("light")
182
+ primary: `0 8px 16px 0 ${O(S("patronus").main, 0.2)}`,
183
+ ..._("light")
184
184
  },
185
185
  stretch: !0,
186
186
  palette: {
187
187
  ...A.palette,
188
- ...u.light
188
+ ...g.light
189
189
  },
190
- typography: i,
191
- size: x
190
+ typography: p,
191
+ size: T
192
192
  };
193
193
  export {
194
194
  G as O,
195
- E as g
195
+ L as g
196
196
  };
@@ -3,37 +3,37 @@
3
3
  * componentes de la aplicación web.
4
4
  */
5
5
  export interface BaseBorderRadius {
6
- 'r0': number;
7
- 'r0.5': number;
8
- 'r1': number;
9
- 'r1.5': number;
10
- 'r2': number;
11
- 'r3': number;
12
- 'r4': number;
6
+ 'r0': string;
7
+ 'r0.5': string;
8
+ 'r1': string;
9
+ 'r1.5': string;
10
+ 'r2': string;
11
+ 'r3': string;
12
+ 'r4': string;
13
13
  }
14
14
  /**
15
15
  * Conjunto de valores predeterminados utilizados para definir el tamaño y espaciados en los componentes de la aplicación web.
16
16
  */
17
17
  export interface BaseSpacings {
18
- 'sp0': number;
19
- 'sp0.5': number;
20
- 'sp1': number;
21
- 'sp2': number;
22
- 'sp3': number;
23
- 'sp3.5': number;
24
- 'sp4': number;
25
- 'sp5': number;
26
- 'sp6': number;
27
- 'sp7': number;
28
- 'sp8': number;
29
- 'sp9': number;
30
- 'sp10': number;
31
- 'sp10.5': number;
32
- 'sp11': number;
33
- 'sp12': number;
34
- 'sp13': number;
35
- 'sp14': number;
36
- 'sp14.5': number;
18
+ 'sp0': string;
19
+ 'sp0.5': string;
20
+ 'sp1': string;
21
+ 'sp2': string;
22
+ 'sp3': string;
23
+ 'sp3.5': string;
24
+ 'sp4': string;
25
+ 'sp5': string;
26
+ 'sp6': string;
27
+ 'sp7': string;
28
+ 'sp8': string;
29
+ 'sp9': string;
30
+ 'sp10': string;
31
+ 'sp10.5': string;
32
+ 'sp11': string;
33
+ 'sp12': string;
34
+ 'sp13': string;
35
+ 'sp14': string;
36
+ 'sp14.5': string;
37
37
  }
38
38
  /**
39
39
  * type usado para tipar las props sizes de los componentes o sus derivaciones
@@ -43,7 +43,7 @@ export declare type Sizes = 'small' | 'medium' | 'large';
43
43
  * Representa al conjunto de valores de tamaño que tienen en cuenta la variación de tamaño en la aplicación web.
44
44
  * Puede ser small, medium y large.
45
45
  */
46
- export declare type SizesValues = Record<Sizes, number>;
46
+ export declare type SizesValues = Record<Sizes, string>;
47
47
  /**
48
48
  * Representa a los conjuntos de valores que utilizan los desarroladores para definir diferentes categorías de componentes en tamaños y espacios.
49
49
  * base: Es la clasificación de altura para componentes de tipo general, los cuales no son de categoría de acción ni de categoría contenedora.