@m4l/styles 7.0.0 → 7.1.2

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/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.0.0",
3
+ "version": "7.1.2",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "lint-staged": {
10
- "**/*.{js,jsx,ts,tsx,json}": [
11
- "eslint . --fix"
12
- ]
10
+ "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
13
11
  },
14
12
  "dependencies": {
15
13
  "@mui/material": "^5.15.19",
@@ -1,161 +1,154 @@
1
- import { B as r } from "./baseColors.js";
2
- const a = {
1
+ import { B as a } from "./baseColors.js";
2
+ import { B as i } from "./baseOpacityColors.js";
3
+ const t = {
3
4
  info: {
4
- main: r.crayonBlue[50],
5
- lighter: r.crayonBlue[70],
6
- light: r.crayonBlue[60],
7
- dark: r.crayonBlue[40],
8
- darker: r.crayonBlue[20],
9
- contrastText: r.marbleLight[30],
10
- toneOpacityLight: r.crayonBlue.toneOpacity20,
11
- toneOpacityDark: r.crayonBlue.toneOpacity10,
12
- opacityLight: r.crayonBlue[10],
13
- opacityDark: r.crayonBlue[40],
14
- borderMainLight: r.crayonBlue[50],
15
- borderMainDark: r.crayonBlue[50]
5
+ main: a.crayonBlue[50],
6
+ lighter: a.crayonBlue[70],
7
+ light: a.crayonBlue[60],
8
+ dark: a.crayonBlue[40],
9
+ darker: a.crayonBlue[20],
10
+ contrastText: a.marbleLight[30],
11
+ toneOpacityLight: a.crayonBlue.toneOpacity10,
12
+ toneOpacityDark: a.crayonBlue.toneOpacity20,
13
+ opacityLight: i.crayon[10],
14
+ opacityDark: i.crayon[20]
16
15
  },
17
16
  warning: {
18
- main: r.middleYellow[50],
19
- lighter: r.middleYellow[90],
20
- light: r.middleYellow[70],
21
- dark: r.middleYellow[30],
22
- darker: r.middleYellow[20],
23
- contrastText: r.onyx[20],
24
- toneOpacityLight: r.middleYellow.toneOpacity10,
25
- toneOpacityDark: r.middleYellow.toneOpacity20,
26
- opacityLight: r.middleYellow[10],
27
- opacityDark: r.middleYellow[20],
28
- borderMainLight: r.middleYellow[50],
29
- borderMainDark: r.middleYellow[50]
17
+ main: a.middleYellow[50],
18
+ lighter: a.middleYellow[90],
19
+ light: a.middleYellow[70],
20
+ dark: a.middleYellow[30],
21
+ darker: a.middleYellow[20],
22
+ contrastText: a.onyx[20],
23
+ toneOpacityLight: a.middleYellow.toneOpacity10,
24
+ toneOpacityDark: a.middleYellow.toneOpacity20,
25
+ opacityLight: i.middle[10],
26
+ opacityDark: i.middle[20]
30
27
  },
31
28
  error: {
32
- main: r.flameRed[50],
33
- lighter: r.flameRed[70],
34
- light: r.flameRed[60],
35
- dark: r.flameRed[30],
36
- darker: r.flameRed[20],
37
- contrastText: r.marbleLight[30],
38
- toneOpacityLight: r.flameRed.toneOpacity10,
39
- toneOpacityDark: r.flameRed.toneOpacity20,
40
- opacityLight: r.flameRed[10],
41
- opacityDark: r.flameRed[20],
42
- borderMainLight: r.flameRed[50],
43
- borderMainDark: r.flameRed[50]
29
+ main: a.flameRed[50],
30
+ lighter: a.flameRed[70],
31
+ light: a.flameRed[60],
32
+ dark: a.flameRed[40],
33
+ darker: a.flameRed[20],
34
+ contrastText: a.marbleLight[30],
35
+ toneOpacityLight: a.flameRed.toneOpacity10,
36
+ toneOpacityDark: a.flameRed.toneOpacity20,
37
+ opacityLight: i.flame[10],
38
+ opacityDark: i.flame[20]
44
39
  },
45
40
  success: {
46
- main: r.acidGreen[50],
47
- lighter: r.acidGreen[70],
48
- light: r.acidGreen[60],
49
- dark: r.acidGreen[30],
50
- darker: r.acidGreen[20],
51
- contrastText: r.marbleLight[20],
52
- toneOpacityLight: r.acidGreen.toneOpacity10,
53
- toneOpacityDark: r.acidGreen.toneOpacity20,
54
- opacityLight: r.acidGreen[10],
55
- opacityDark: r.acidGreen[20],
56
- borderMainLight: r.acidGreen[50],
57
- borderMainDark: r.acidGreen[50]
41
+ main: a.acidGreen[50],
42
+ lighter: a.acidGreen[70],
43
+ light: a.acidGreen[60],
44
+ dark: a.acidGreen[30],
45
+ darker: a.acidGreen[20],
46
+ contrastText: a.marbleLight[20],
47
+ toneOpacityLight: a.acidGreen.toneOpacity10,
48
+ toneOpacityDark: a.acidGreen.toneOpacity20,
49
+ opacityLight: i.acid[10],
50
+ opacityDark: i.acid[20]
58
51
  }
59
- }, i = {
52
+ }, o = {
60
53
  info: {
61
- main: a.info.main,
62
- focusActive: a.info.lighter,
63
- hover: a.info.light,
64
- opacity: a.info.opacityLight,
65
- toneOpacity: a.info.toneOpacityLight,
66
- contrastText: a.info.contrastText,
67
- hoverOpacity: a.info.opacityLight,
54
+ main: t.info.main,
55
+ focusActive: t.info.lighter,
56
+ hover: t.info.light,
57
+ opacity: t.info.opacityLight,
58
+ toneOpacity: t.info.toneOpacityLight,
59
+ contrastText: t.info.contrastText,
60
+ hoverOpacity: t.info.opacityLight,
68
61
  //Por compatibilidad con MUI
69
- light: a.info.light,
70
- dark: a.info.dark
62
+ light: t.info.light,
63
+ dark: t.info.dark
71
64
  },
72
65
  success: {
73
- main: a.success.main,
74
- focusActive: a.success.lighter,
75
- hover: a.success.light,
76
- opacity: a.success.opacityLight,
77
- toneOpacity: a.success.toneOpacityLight,
78
- contrastText: a.success.contrastText,
79
- hoverOpacity: a.success.opacityLight,
66
+ main: t.success.main,
67
+ focusActive: t.success.lighter,
68
+ hover: t.success.light,
69
+ opacity: t.success.opacityLight,
70
+ toneOpacity: t.success.toneOpacityLight,
71
+ contrastText: t.success.contrastText,
72
+ hoverOpacity: t.success.opacityLight,
80
73
  //Por compatibilidad con MUI
81
- light: a.success.light,
82
- dark: a.success.dark
74
+ light: t.success.light,
75
+ dark: t.success.dark
83
76
  },
84
77
  warning: {
85
- main: a.warning.main,
86
- focusActive: a.warning.lighter,
87
- hover: a.warning.light,
88
- opacity: a.warning.opacityLight,
89
- toneOpacity: a.warning.toneOpacityLight,
90
- contrastText: a.warning.contrastText,
91
- hoverOpacity: a.warning.opacityLight,
78
+ main: t.warning.main,
79
+ focusActive: t.warning.lighter,
80
+ hover: t.warning.light,
81
+ opacity: t.warning.opacityLight,
82
+ toneOpacity: t.warning.toneOpacityLight,
83
+ contrastText: t.warning.contrastText,
84
+ hoverOpacity: t.warning.opacityLight,
92
85
  //Por compatibilidad con MUI
93
- light: a.warning.light,
94
- dark: a.warning.dark
86
+ light: t.warning.light,
87
+ dark: t.warning.dark
95
88
  },
96
89
  error: {
97
- main: a.error.main,
98
- focusActive: a.error.lighter,
99
- hover: a.error.light,
100
- opacity: a.error.opacityLight,
101
- toneOpacity: a.error.toneOpacityLight,
102
- contrastText: a.error.contrastText,
103
- hoverOpacity: a.error.opacityLight,
90
+ main: t.error.main,
91
+ focusActive: t.error.lighter,
92
+ hover: t.error.light,
93
+ opacity: t.error.opacityLight,
94
+ toneOpacity: t.error.toneOpacityLight,
95
+ contrastText: t.error.contrastText,
96
+ hoverOpacity: t.error.opacityLight,
104
97
  //Por compatibilidad con MUI
105
- light: a.error.light,
106
- dark: a.error.dark
98
+ light: t.error.light,
99
+ dark: t.error.dark
107
100
  }
108
- }, e = {
101
+ }, c = {
109
102
  info: {
110
- main: a.info.main,
111
- focusActive: a.info.darker,
112
- hover: a.info.dark,
113
- opacity: a.info.opacityDark,
114
- toneOpacity: a.info.toneOpacityDark,
115
- contrastText: a.info.contrastText,
116
- hoverOpacity: a.info.opacityDark,
103
+ main: t.info.main,
104
+ focusActive: t.info.darker,
105
+ hover: t.info.dark,
106
+ opacity: t.info.opacityDark,
107
+ toneOpacity: t.info.toneOpacityDark,
108
+ contrastText: t.info.contrastText,
109
+ hoverOpacity: t.info.opacityDark,
117
110
  //Por compatibilidad con MUI
118
- light: a.info.light,
119
- dark: a.info.dark
111
+ light: t.info.light,
112
+ dark: t.info.dark
120
113
  },
121
114
  success: {
122
- main: a.success.main,
123
- focusActive: a.success.darker,
124
- hover: a.success.dark,
125
- opacity: a.success.opacityDark,
126
- toneOpacity: a.success.toneOpacityDark,
127
- contrastText: a.success.contrastText,
128
- hoverOpacity: a.success.opacityDark,
115
+ main: t.success.main,
116
+ focusActive: t.success.darker,
117
+ hover: t.success.dark,
118
+ opacity: t.success.opacityDark,
119
+ toneOpacity: t.success.toneOpacityDark,
120
+ contrastText: t.success.contrastText,
121
+ hoverOpacity: t.success.opacityDark,
129
122
  //Por compatibilidad con MUI
130
- light: a.success.light,
131
- dark: a.success.dark
123
+ light: t.success.light,
124
+ dark: t.success.dark
132
125
  },
133
126
  warning: {
134
- main: a.warning.main,
135
- focusActive: a.warning.darker,
136
- hover: a.warning.dark,
137
- opacity: a.warning.opacityDark,
138
- toneOpacity: a.warning.toneOpacityDark,
139
- contrastText: a.warning.contrastText,
140
- hoverOpacity: a.warning.opacityDark,
127
+ main: t.warning.main,
128
+ focusActive: t.warning.darker,
129
+ hover: t.warning.dark,
130
+ opacity: t.warning.opacityDark,
131
+ toneOpacity: t.warning.toneOpacityDark,
132
+ contrastText: t.warning.contrastText,
133
+ hoverOpacity: t.warning.opacityDark,
141
134
  //Por compatibilidad con MUI
142
- light: a.warning.light,
143
- dark: a.warning.dark
135
+ light: t.warning.light,
136
+ dark: t.warning.dark
144
137
  },
145
138
  error: {
146
- main: a.error.main,
147
- focusActive: a.error.darker,
148
- hover: a.error.dark,
149
- opacity: a.error.opacityDark,
150
- toneOpacity: a.error.toneOpacityDark,
151
- contrastText: a.error.contrastText,
152
- hoverOpacity: a.error.opacityDark,
139
+ main: t.error.main,
140
+ focusActive: t.error.darker,
141
+ hover: t.error.dark,
142
+ opacity: t.error.opacityDark,
143
+ toneOpacity: t.error.toneOpacityDark,
144
+ contrastText: t.error.contrastText,
145
+ hoverOpacity: t.error.opacityDark,
153
146
  //Por compatibilidad con MUI
154
- light: a.error.light,
155
- dark: a.error.dark
147
+ light: t.error.light,
148
+ dark: t.error.dark
156
149
  }
157
150
  };
158
151
  export {
159
- i as S,
160
- e as a
152
+ o as S,
153
+ c as a
161
154
  };
package/theme/shadows.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { alpha as r } from "@mui/material/styles";
2
- import { G as s } from "./palette/greyPalette.js";
3
- import { B as t } from "./palette/baseColors.js";
2
+ import { G as a } from "./palette/greyPalette.js";
3
+ import { B as s } from "./palette/baseColors.js";
4
4
  import { C as o } from "./palette/commonColors.js";
5
- const e = s[500], c = "#000000", n = (a) => {
6
- const p = r(a, 0.2), x = r(a, 0.14), $ = r(a, 0.12);
5
+ const e = a[500], c = "#000000", n = (t) => {
6
+ const p = r(t, 0.2), x = r(t, 0.14), $ = r(t, 0.12);
7
7
  return [
8
8
  "none",
9
9
  `0px 2px 1px -1px ${p},0px 1px 1px 0px ${x},0px 1px 3px 0px ${$}`,
@@ -31,42 +31,50 @@ const e = s[500], c = "#000000", n = (a) => {
31
31
  `0px 11px 14px -7px ${p},0px 23px 36px 3px ${x},0px 9px 44px 8px ${$}`,
32
32
  `0px 11px 15px -7px ${p},0px 24px 38px 3px ${x},0px 9px 46px 8px ${$}`
33
33
  ];
34
- }, l = (a) => {
34
+ }, O = (t) => {
35
35
  const p = {
36
- info: `0px 2px 8px 0px ${r(t.patronusBlue[50], 0.2)}`,
37
- secondary: `0px 2px 8px 0px ${r(t.patronusBlue[50], 0.24)}`,
38
- success: `0px 2px 8px 0px ${r(t.acidGreen[50], 0.2)}`,
39
- warning: `0px 2px 8px 0px ${r(t.middleYellow[50], 0.2)}`,
40
- error: `0px 2px 8px 0px ${r(t.flameRed[50], 0.2)}`,
36
+ info: `0px 2px 8px 0px ${r(s.patronusBlue[50], 0.2)}`,
37
+ secondary: `0px 2px 8px 0px ${r(s.patronusBlue[50], 0.24)}`,
38
+ success: `0px 2px 8px 0px ${r(s.acidGreen[50], 0.2)}`,
39
+ warning: `0px 2px 8px 0px ${r(s.middleYellow[50], 0.2)}`,
40
+ error: `0px 2px 8px 0px ${r(s.flameRed[50], 0.2)}`,
41
41
  //
42
- card: `0 0 2px 0 ${r(s[500], 0.2)}, 0 12px 24px -4px ${r(
43
- s[500],
42
+ card: `0 0 2px 0 ${r(a[500], 0.2)}, 0 12px 24px -4px ${r(
43
+ a[500],
44
44
  0.12
45
45
  )}`,
46
46
  dialog: `-40px 40px 80px -8px ${r(o.black, 0.24)}`,
47
- dropdown: `0 0 2px 0 ${r(s[500], 0.24)}, -20px 20px 40px -4px ${r(
48
- s[500],
47
+ dropdown: `0 0 2px 0 ${r(a[500], 0.24)}, -20px 20px 40px -4px ${r(
48
+ a[500],
49
49
  0.24
50
50
  )}`
51
51
  };
52
- return a === "light" ? {
53
- z1: "0px 0px 03px 1px rgba(9, 30, 66, 0.12)",
54
- z2: "0px 0px 4px 2px rgba(73, 88, 89, 0.14)",
55
- z3: "0px 0px 8px 2px rgba(36, 59, 70, 0.14)",
56
- z4: "0px 0px 18px 6px rgba(36, 59, 70, 0.12)",
52
+ return t === "light" ? {
53
+ z1: `0px 2px 2px 2px ${r("#091E42", 0.8)}`,
54
+ // todo: solicitar a diseño crear token en base porque está quemado
55
+ z2: `0px 0px ${r("#495859", 0.14)}`,
56
+ // todo: solicitar a diseño crear token en base porque está quemado
57
+ z3: `0px 4px 12px 1px ${r("#243B46", 0.14)}`,
58
+ // todo: solicitar a diseño crear token en base porque está quemado
59
+ z4: `0px 12px 32px 4px ${r("#243B46", 0.12)}`,
60
+ // todo: solicitar a diseño crear token en base porque está quemado
57
61
  ...p
58
62
  } : {
59
- z1: "0px 0px 2px 2px rgba(0, 0, 0, 0.16)",
60
- z2: "0px 0px 4px 2px rgba(17, 20, 20, 0.5)",
61
- z3: "0px 0px 8px 2px rgba(9, 9, 10, 0.60)",
62
- z4: "0px 0px 18px 6px rgba(9, 10, 10, 0.65)",
63
+ z1: `0px 2px 2px 2px ${r("#000000", 0.16)}`,
64
+ // todo: solicitar a diseño crear token en base porque está quemado
65
+ z2: `0px 0px ${r("#111414", 0.5)}`,
66
+ // todo: solicitar a diseño crear token en base porque está quemado
67
+ z3: `0px 4px 12px 1px ${r("#09090A", 0.6)}`,
68
+ // todo: solicitar a diseño crear token en base porque está quemado
69
+ z4: `0px 12px 32px 4px ${r("#09090A", 0.35)}`,
70
+ // todo: solicitar a diseño crear token en base porque está quemado
63
71
  ...p
64
72
  };
65
- }, O = {
73
+ }, u = {
66
74
  light: n(e),
67
75
  dark: n(c)
68
76
  };
69
77
  export {
70
- l as c,
71
- O as s
78
+ O as c,
79
+ u as s
72
80
  };
@@ -1,8 +1,8 @@
1
1
  const p = {
2
2
  r0: "0px",
3
- "r0.5": "2px",
3
+ "r0-5": "2px",
4
4
  r1: "4px",
5
- "r1.5": "6px",
5
+ "r1-5": "6px",
6
6
  r2: "8px",
7
7
  r3: "12px",
8
8
  r4: "16px"
@@ -1,10 +1,10 @@
1
1
  const p = {
2
2
  sp0: "0px",
3
- "sp0.5": "2px",
3
+ "sp0-5": "2px",
4
4
  sp1: "4px",
5
5
  sp2: "8px",
6
6
  sp3: "12px",
7
- "sp3.5": "14px",
7
+ "sp3-5": "14px",
8
8
  sp4: "16px",
9
9
  sp5: "20px",
10
10
  sp6: "24px",
@@ -12,12 +12,12 @@ const p = {
12
12
  sp8: "32px",
13
13
  sp9: "36px",
14
14
  sp10: "40px",
15
- "sp10.5": "42px",
15
+ "sp10-5": "42px",
16
16
  sp11: "44px",
17
17
  sp12: "48px",
18
18
  sp13: "52px",
19
19
  sp14: "56px",
20
- "sp14.5": "58px"
20
+ "sp14-5": "58px"
21
21
  };
22
22
  export {
23
23
  p as B
@@ -1,38 +1,38 @@
1
- import { B as s } from "./baseSizes.js";
2
- const m = {
3
- base: {
4
- small: s["sp3.5"],
5
- medium: s.sp4,
6
- large: s.sp5
1
+ import { P as a } from "./presetSizes.js";
2
+ const n = {
3
+ small: {
4
+ base: a.base.small,
5
+ action: a.action.small,
6
+ container: a.container.small
7
7
  },
8
- action: {
9
- small: s.sp5,
10
- medium: s.sp6,
11
- large: s.sp8
8
+ medium: {
9
+ base: a.base.medium,
10
+ action: a.action.medium,
11
+ container: a.container.medium
12
12
  },
13
- container: {
14
- small: s.sp7,
15
- medium: s.sp8,
16
- large: s.sp9
13
+ large: {
14
+ base: a.base.large,
15
+ action: a.action.large,
16
+ container: a.container.large
17
17
  }
18
- }, p = {
19
- base: {
20
- small: s.sp5,
21
- medium: s.sp6,
22
- large: s.sp7
18
+ }, i = {
19
+ small: {
20
+ base: a.base.small,
21
+ action: a.action.small,
22
+ container: a.container.small
23
23
  },
24
- action: {
25
- small: s.sp7,
26
- medium: s.sp8,
27
- large: s.sp9
24
+ medium: {
25
+ base: a.base.medium,
26
+ action: a.action.medium,
27
+ container: a.container.medium
28
28
  },
29
- container: {
30
- small: s.sp9,
31
- medium: s.sp10,
32
- large: s.sp11
29
+ large: {
30
+ base: a.base.large,
31
+ action: a.action.large,
32
+ container: a.container.large
33
33
  }
34
34
  };
35
35
  export {
36
- m as P,
37
- p as a
36
+ n as P,
37
+ i as a
38
38
  };
@@ -0,0 +1,3 @@
1
+ import { Sizes, SizesComponentsTypes } from './types';
2
+ export declare const PRESET_SIZES_MOBILE: Record<SizesComponentsTypes, Record<Sizes, string>>;
3
+ export declare const PRESET_SIZES_DESKTOP: Record<SizesComponentsTypes, Record<Sizes, string>>;
@@ -0,0 +1,21 @@
1
+ import { B as s } from "./baseSizes.js";
2
+ const m = {
3
+ base: {
4
+ small: s["sp3-5"],
5
+ medium: s.sp4,
6
+ large: s.sp5
7
+ },
8
+ action: {
9
+ small: s.sp5,
10
+ medium: s.sp6,
11
+ large: s.sp8
12
+ },
13
+ container: {
14
+ small: s.sp7,
15
+ medium: s.sp8,
16
+ large: s.sp9
17
+ }
18
+ };
19
+ export {
20
+ m as P
21
+ };
@@ -1,9 +1,9 @@
1
1
  import { Typography } from '../typography/types';
2
2
  export interface BaseBorderRadius {
3
3
  r0: string;
4
- 'r0.5': string;
4
+ 'r0-5': string;
5
5
  r1: string;
6
- 'r1.5': string;
6
+ 'r1-5': string;
7
7
  r2: string;
8
8
  r3: string;
9
9
  r4: string;
@@ -13,11 +13,11 @@ export interface BaseBorderRadius {
13
13
  */
14
14
  export interface BaseSpacings {
15
15
  sp0: string;
16
- 'sp0.5': string;
16
+ 'sp0-5': string;
17
17
  sp1: string;
18
18
  sp2: string;
19
19
  sp3: string;
20
- 'sp3.5': string;
20
+ 'sp3-5': string;
21
21
  sp4: string;
22
22
  sp5: string;
23
23
  sp6: string;
@@ -25,12 +25,12 @@ export interface BaseSpacings {
25
25
  sp8: string;
26
26
  sp9: string;
27
27
  sp10: string;
28
- 'sp10.5': string;
28
+ 'sp10-5': string;
29
29
  sp11: string;
30
30
  sp12: string;
31
31
  sp13: string;
32
32
  sp14: string;
33
- 'sp14.5': string;
33
+ 'sp14-5': string;
34
34
  }
35
35
  /**
36
36
  * type usado para tipar las props sizes de los componentes o sus derivaciones
@@ -40,7 +40,7 @@ export type Sizes = 'small' | 'medium' | 'large';
40
40
  * Representa al conjunto de valores de tamaño que tienen en cuenta la variación de tamaño en la aplicación web.
41
41
  * Puede ser small, medium y large.
42
42
  */
43
- export type SizesValues = Record<Sizes, string>;
43
+ export type SizesValues = Record<Sizes, Record<SizesComponentsTypes, string>>;
44
44
  /**
45
45
  * Representa a los conjuntos de valores que utilizan los desarroladores para definir diferentes categorías de componentes en tamaños y espacios.
46
46
  * 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.
@@ -53,7 +53,7 @@ export type SizesComponentsTypes = 'base' | 'action' | 'container';
53
53
  * Se dividen en los siguientes tipos; base, action y container. Cada opción de categoría define
54
54
  * los tamaños que pueden ser small, medium y large.
55
55
  */
56
- export type PointerQrSizes = Record<SizesComponentsTypes, SizesValues>;
56
+ export type PointerQrSizes = SizesValues;
57
57
  /**
58
58
  * Representa las opciones de grosor para los bordes de los componentes de la aplicación web.
59
59
  */
@@ -1,5 +1,3 @@
1
- import { Breakpoints } from '@mui/material';
2
-
3
1
  import type { CustomShadowOptions } from '../theme';
4
2
  import type { Size } from '../theme/sizes/types';
5
3
 
package/types/types.d.ts CHANGED
@@ -75,7 +75,7 @@ export type ThemePresetColors = Record<ThemeUserColor, PresetColor>;
75
75
  /**
76
76
  * Son los colores semanticos en formato PresetColor
77
77
  */
78
- export type SemanticPresetColors = Record<SemanticColorOptionsType, PresetColor>;
78
+ export type SemanticPresetColors = Record<SemanticColorOptionsType, Omit<PresetColor, 'borderMainDark' | 'borderMainLight'>>;
79
79
  /**
80
80
  * Son los colores de las ocpiones del tema, en formato PalletColor
81
81
  */
@@ -1,10 +1,10 @@
1
- import { P as c, a as u, b } from "../theme/palette/presetColors.js";
1
+ import { P as n, a as m, b } from "../theme/palette/presetColors.js";
2
2
  import { B as r } from "../theme/palette/baseColors.js";
3
- import { C as n } from "../theme/palette/commonColors.js";
3
+ import { C as c } from "../theme/palette/commonColors.js";
4
4
  import { G as d } from "../theme/palette/greyPalette.js";
5
5
  import { S as s, a } from "../theme/palette/semanticColors.js";
6
6
  import { B as o } from "../theme/palette/baseOpacityColors.js";
7
- import { D as f, a as m } from "../theme/palette/defaultColors.js";
7
+ import { D as f, a as u } from "../theme/palette/defaultColors.js";
8
8
  const t = {
9
9
  light: {
10
10
  scrollBar: "#5663763D",
@@ -15,11 +15,11 @@ const t = {
15
15
  gridHover: "#282E2E"
16
16
  }
17
17
  }, C = (l) => {
18
- const i = u?.[l], e = b?.[l];
18
+ const i = m?.[l], e = b?.[l];
19
19
  return {
20
20
  light: {
21
21
  mode: "light",
22
- common: n,
22
+ common: c,
23
23
  primary: {
24
24
  ...i
25
25
  },
@@ -43,7 +43,7 @@ const t = {
43
43
  paper: "#00000000"
44
44
  },
45
45
  border: {
46
- main: c[l]?.borderMainLight,
46
+ main: n[l]?.borderMainLight,
47
47
  default: o.oxford[40],
48
48
  secondary: o.oxford[30],
49
49
  dens: o.oxford[60],
@@ -78,12 +78,13 @@ const t = {
78
78
  },
79
79
  dark: {
80
80
  mode: "dark",
81
- common: n,
81
+ common: c,
82
+ // no definido en figma
82
83
  primary: {
83
84
  ...e
84
85
  },
85
86
  default: {
86
- ...m,
87
+ ...u,
87
88
  focusVisible: e?.focusVisible,
88
89
  contrastText: r.marbleLight[30]
89
90
  },
@@ -95,14 +96,14 @@ const t = {
95
96
  divider: r.coolGrey[80],
96
97
  background: {
97
98
  default: r.onyx[40],
98
- neutral: r.marbleLight[50],
99
- surface: r.marbleLight[60],
100
- hover: m.hover,
99
+ neutral: r.onyx[50],
100
+ surface: r.onyx[60],
101
+ hover: u.hover,
101
102
  //por compatibilidad de mui
102
103
  paper: "#00000000"
103
104
  },
104
105
  border: {
105
- main: c[l]?.borderMainDark,
106
+ main: n[l]?.borderMainDark,
106
107
  default: o.mint[50],
107
108
  secondary: o.mint[40],
108
109
  dens: o.mint[60],
@@ -110,10 +111,12 @@ const t = {
110
111
  error: a.error.main
111
112
  },
112
113
  general: {
114
+ // no definido en figma
113
115
  scrollBar: t.light.scrollBar,
114
116
  gridHover: t.light.gridHover
115
117
  },
116
118
  grey: d,
119
+ // no definido en figma
117
120
  skeleton: {
118
121
  default: o.mint[20],
119
122
  transition: o.mint[40]