@m4l/styles 7.1.4 → 7.1.6

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.js +3 -3
  3. package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.js +2 -2
  4. package/theme/overrides/M4LExtendedComponents/M4LButton.js +13 -13
  5. package/theme/overrides/M4LExtendedComponents/M4LCheckBox.js +1 -1
  6. package/theme/overrides/M4LExtendedComponents/M4LFormatter.js +1 -1
  7. package/theme/overrides/M4LExtendedComponents/M4LIconButton.js +13 -13
  8. package/theme/overrides/M4LExtendedComponents/M4LImageButton.js +1 -1
  9. package/theme/overrides/M4LExtendedComponents/M4LNavLink.js +1 -1
  10. package/theme/overrides/M4LExtendedComponents/M4LPeriod.js +1 -1
  11. package/theme/overrides/M4LExtendedComponents/M4LPopover.js +1 -1
  12. package/theme/overrides/M4LExtendedComponents/M4LSideBar.js +6 -6
  13. package/theme/overrides/M4LExtendedComponents/M4LSplitLayout.js +2 -2
  14. package/theme/overrides/M4LExtendedComponents/M4LTab.js +1 -1
  15. package/theme/overrides/M4LExtendedComponents/M4LTabs.js +1 -1
  16. package/theme/overrides/M4LExtendedComponents/M4LoadingButton.js +14 -14
  17. package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.js +3 -3
  18. package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.js +1 -1
  19. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.js +3 -3
  20. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.js +3 -3
  21. package/theme/overrides/MUIComponents/Paper.js +6 -6
  22. package/theme/palette/baseChipsPalette.d.ts +9 -0
  23. package/theme/palette/baseChipsPalette.js +117 -0
  24. package/theme/palette/baseOpacityColors.js +2 -2
  25. package/theme/palette/defaultColors.d.ts +2 -2
  26. package/theme/palette/defaultColors.js +24 -13
  27. package/theme/palette/presetColors.js +119 -59
  28. package/theme/palette/semanticColors.js +161 -117
  29. package/theme/shadows.d.ts +2 -0
  30. package/theme/shadows.js +55 -51
  31. package/types/augmentations.d.ts +5 -1
  32. package/types/types.d.ts +30 -3
  33. package/utils/getPaletteByPreset.d.ts +38 -12
  34. package/utils/getPaletteByPreset.js +15 -12
@@ -1,154 +1,198 @@
1
- import { B as a } from "./baseColors.js";
2
- import { B as i } from "./baseOpacityColors.js";
3
- const t = {
1
+ import { B as t } from "./baseColors.js";
2
+ import { B as a } from "./baseOpacityColors.js";
3
+ const i = {
4
4
  info: {
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]
5
+ main: t.crayonBlue[50],
6
+ lighter: t.crayonBlue[70],
7
+ light: t.crayonBlue[60],
8
+ dark: t.crayonBlue[40],
9
+ darker: t.crayonBlue[20],
10
+ contrastText: t.marbleLight[30],
11
+ // Tone colors
12
+ toneOpacityLight: t.crayonBlue.toneOpacity10,
13
+ toneOpacityDark: t.crayonBlue.toneOpacity20,
14
+ // opacity backgrounds light
15
+ opacityHoverLight: a.crayon[10],
16
+ opacityFocusLight: a.crayon[20],
17
+ opacityActiveLight: a.crayon[30],
18
+ // opacity backgrounds Dark
19
+ opacityHoverDark: a.crayon[20],
20
+ opacityFocusDark: a.crayon[30],
21
+ opacityActiveDark: a.crayon[40]
15
22
  },
16
23
  warning: {
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]
24
+ main: t.middleYellow[60],
25
+ lighter: t.middleYellow[90],
26
+ light: t.middleYellow[70],
27
+ dark: t.middleYellow[30],
28
+ darker: t.middleYellow[20],
29
+ contrastText: t.onyx[20],
30
+ // Tone colors
31
+ toneOpacityLight: t.middleYellow.toneOpacity10,
32
+ toneOpacityDark: t.middleYellow.toneOpacity20,
33
+ // opacity backgrounds light
34
+ opacityHoverLight: a.middle[10],
35
+ opacityFocusLight: a.middle[20],
36
+ opacityActiveLight: a.middle[30],
37
+ // opacity backgrounds Dark
38
+ opacityHoverDark: a.middle[20],
39
+ opacityFocusDark: a.middle[30],
40
+ opacityActiveDark: a.middle[40]
27
41
  },
28
42
  error: {
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]
43
+ main: t.flameRed[50],
44
+ lighter: t.flameRed[70],
45
+ light: t.flameRed[60],
46
+ dark: t.flameRed[40],
47
+ darker: t.flameRed[20],
48
+ contrastText: t.marbleLight[30],
49
+ // Tone colors
50
+ toneOpacityLight: t.flameRed.toneOpacity10,
51
+ toneOpacityDark: t.flameRed.toneOpacity20,
52
+ // opacity backgrounds light
53
+ opacityHoverLight: a.flame[10],
54
+ opacityFocusLight: a.flame[20],
55
+ opacityActiveLight: a.flame[30],
56
+ // opacity backgrounds Dark
57
+ opacityHoverDark: a.flame[20],
58
+ opacityFocusDark: a.flame[30],
59
+ opacityActiveDark: a.flame[40]
39
60
  },
40
61
  success: {
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]
62
+ main: t.acidGreen[50],
63
+ lighter: t.acidGreen[70],
64
+ light: t.acidGreen[60],
65
+ dark: t.acidGreen[30],
66
+ darker: t.acidGreen[20],
67
+ contrastText: t.marbleLight[20],
68
+ // Tone colors
69
+ toneOpacityLight: t.acidGreen.toneOpacity10,
70
+ toneOpacityDark: t.acidGreen.toneOpacity20,
71
+ // opacity backgrounds light
72
+ opacityHoverLight: a.acid[10],
73
+ opacityFocusLight: a.acid[20],
74
+ opacityActiveLight: a.acid[30],
75
+ // opacity backgrounds Dark
76
+ opacityHoverDark: a.acid[20],
77
+ opacityFocusDark: a.acid[30],
78
+ opacityActiveDark: a.acid[40]
51
79
  }
52
80
  }, o = {
53
81
  info: {
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,
82
+ main: i.info.main,
83
+ active: i.info.lighter,
84
+ hover: i.info.light,
85
+ opacity: i.info.opacityHoverLight,
86
+ toneOpacity: i.info.toneOpacityLight,
87
+ contrastText: i.info.contrastText,
88
+ hoverOpacity: i.info.opacityHoverLight,
89
+ focusOpacity: i.info.opacityFocusLight,
90
+ activeOpacity: i.info.opacityActiveLight,
61
91
  //Por compatibilidad con MUI
62
- light: t.info.light,
63
- dark: t.info.dark
92
+ light: i.info.light,
93
+ dark: i.info.dark
64
94
  },
65
95
  success: {
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,
96
+ main: i.success.main,
97
+ active: i.success.lighter,
98
+ hover: i.success.light,
99
+ opacity: i.success.opacityHoverLight,
100
+ toneOpacity: i.success.toneOpacityLight,
101
+ contrastText: i.success.contrastText,
102
+ hoverOpacity: i.success.opacityHoverLight,
103
+ focusOpacity: i.success.opacityFocusLight,
104
+ activeOpacity: i.success.opacityActiveLight,
73
105
  //Por compatibilidad con MUI
74
- light: t.success.light,
75
- dark: t.success.dark
106
+ light: i.success.light,
107
+ dark: i.success.dark
76
108
  },
77
109
  warning: {
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,
110
+ main: i.warning.main,
111
+ active: i.warning.lighter,
112
+ hover: i.warning.light,
113
+ opacity: i.warning.opacityHoverLight,
114
+ toneOpacity: i.warning.toneOpacityLight,
115
+ contrastText: i.warning.contrastText,
116
+ hoverOpacity: i.warning.opacityHoverLight,
117
+ focusOpacity: i.warning.opacityFocusLight,
118
+ activeOpacity: i.warning.opacityActiveLight,
85
119
  //Por compatibilidad con MUI
86
- light: t.warning.light,
87
- dark: t.warning.dark
120
+ light: i.warning.light,
121
+ dark: i.warning.dark
88
122
  },
89
123
  error: {
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,
124
+ main: i.error.main,
125
+ active: i.error.lighter,
126
+ hover: i.error.light,
127
+ opacity: i.error.opacityHoverLight,
128
+ toneOpacity: i.error.toneOpacityLight,
129
+ contrastText: i.error.contrastText,
130
+ hoverOpacity: i.error.opacityHoverLight,
131
+ focusOpacity: i.error.opacityFocusLight,
132
+ activeOpacity: i.error.opacityActiveLight,
97
133
  //Por compatibilidad con MUI
98
- light: t.error.light,
99
- dark: t.error.dark
134
+ light: i.error.light,
135
+ dark: i.error.dark
100
136
  }
101
- }, c = {
137
+ }, e = {
102
138
  info: {
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,
139
+ main: i.info.main,
140
+ active: i.info.darker,
141
+ hover: i.info.dark,
142
+ opacity: i.info.opacityHoverDark,
143
+ toneOpacity: i.info.toneOpacityDark,
144
+ contrastText: i.info.contrastText,
145
+ hoverOpacity: i.info.opacityHoverDark,
146
+ focusOpacity: i.info.opacityFocusDark,
147
+ activeOpacity: i.info.opacityActiveDark,
110
148
  //Por compatibilidad con MUI
111
- light: t.info.light,
112
- dark: t.info.dark
149
+ light: i.info.light,
150
+ dark: i.info.dark
113
151
  },
114
152
  success: {
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,
153
+ main: i.success.main,
154
+ active: i.success.darker,
155
+ hover: i.success.dark,
156
+ opacity: i.success.opacityHoverDark,
157
+ toneOpacity: i.success.toneOpacityDark,
158
+ contrastText: i.success.contrastText,
159
+ hoverOpacity: i.success.opacityHoverDark,
160
+ focusOpacity: i.success.opacityFocusDark,
161
+ activeOpacity: i.success.opacityActiveDark,
122
162
  //Por compatibilidad con MUI
123
- light: t.success.light,
124
- dark: t.success.dark
163
+ light: i.success.light,
164
+ dark: i.success.dark
125
165
  },
126
166
  warning: {
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,
167
+ main: i.warning.main,
168
+ active: i.warning.darker,
169
+ hover: i.warning.dark,
170
+ opacity: i.warning.opacityHoverDark,
171
+ toneOpacity: i.warning.toneOpacityDark,
172
+ contrastText: i.warning.contrastText,
173
+ hoverOpacity: i.warning.opacityHoverDark,
174
+ focusOpacity: i.warning.opacityFocusDark,
175
+ activeOpacity: i.warning.opacityActiveDark,
134
176
  //Por compatibilidad con MUI
135
- light: t.warning.light,
136
- dark: t.warning.dark
177
+ light: i.warning.light,
178
+ dark: i.warning.dark
137
179
  },
138
180
  error: {
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,
181
+ main: i.error.main,
182
+ active: i.error.darker,
183
+ hover: i.error.dark,
184
+ opacity: i.error.opacityHoverDark,
185
+ toneOpacity: i.error.toneOpacityDark,
186
+ contrastText: i.error.contrastText,
187
+ hoverOpacity: i.error.opacityHoverDark,
188
+ focusOpacity: i.error.opacityFocusDark,
189
+ activeOpacity: i.error.opacityActiveDark,
146
190
  //Por compatibilidad con MUI
147
- light: t.error.light,
148
- dark: t.error.dark
191
+ light: i.error.light,
192
+ dark: i.error.dark
149
193
  }
150
194
  };
151
195
  export {
152
196
  o as S,
153
- c as a
197
+ e as a
154
198
  };
@@ -13,6 +13,8 @@ export interface CustomShadowOptions {
13
13
  card: string;
14
14
  dialog: string;
15
15
  dropdown: string;
16
+ innerShadowContainer: string;
17
+ innerShadowOutlinedText: string;
16
18
  }
17
19
  /**
18
20
  * Create custom shadows for the theme
package/theme/shadows.js CHANGED
@@ -1,80 +1,84 @@
1
- import { alpha as r } from "@mui/material/styles";
2
- import { G as a } from "./palette/greyPalette.js";
3
- import { B as s } from "./palette/baseColors.js";
1
+ import { alpha as x } from "@mui/material/styles";
2
+ import { G as r } from "./palette/greyPalette.js";
3
+ import { B as e } from "./palette/baseColors.js";
4
4
  import { C as o } from "./palette/commonColors.js";
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);
5
+ const s = r[500], i = "#000000", a = (t) => {
6
+ const p = x(t, 0.2), $ = x(t, 0.14), n = x(t, 0.12);
7
7
  return [
8
8
  "none",
9
- `0px 2px 1px -1px ${p},0px 1px 1px 0px ${x},0px 1px 3px 0px ${$}`,
10
- `0px 3px 1px -2px ${p},0px 2px 2px 0px ${x},0px 1px 5px 0px ${$}`,
11
- `0px 3px 3px -2px ${p},0px 3px 4px 0px ${x},0px 1px 8px 0px ${$}`,
12
- `0px 2px 4px -1px ${p},0px 4px 5px 0px ${x},0px 1px 10px 0px ${$}`,
13
- `0px 3px 5px -1px ${p},0px 5px 8px 0px ${x},0px 1px 14px 0px ${$}`,
14
- `0px 3px 5px -1px ${p},0px 6px 10px 0px ${x},0px 1px 18px 0px ${$}`,
15
- `0px 4px 5px -2px ${p},0px 7px 10px 1px ${x},0px 2px 16px 1px ${$}`,
16
- `0px 5px 5px -3px ${p},0px 8px 10px 1px ${x},0px 3px 14px 2px ${$}`,
17
- `0px 5px 6px -3px ${p},0px 9px 12px 1px ${x},0px 3px 16px 2px ${$}`,
18
- `0px 6px 6px -3px ${p},0px 10px 14px 1px ${x},0px 4px 18px 3px ${$}`,
19
- `0px 6px 7px -4px ${p},0px 11px 15px 1px ${x},0px 4px 20px 3px ${$}`,
20
- `0px 7px 8px -4px ${p},0px 12px 17px 2px ${x},0px 5px 22px 4px ${$}`,
21
- `0px 7px 8px -4px ${p},0px 13px 19px 2px ${x},0px 5px 24px 4px ${$}`,
22
- `0px 7px 9px -4px ${p},0px 14px 21px 2px ${x},0px 5px 26px 4px ${$}`,
23
- `0px 8px 9px -5px ${p},0px 15px 22px 2px ${x},0px 6px 28px 5px ${$}`,
24
- `0px 8px 10px -5px ${p},0px 16px 24px 2px ${x},0px 6px 30px 5px ${$}`,
25
- `0px 8px 11px -5px ${p},0px 17px 26px 2px ${x},0px 6px 32px 5px ${$}`,
26
- `0px 9px 11px -5px ${p},0px 18px 28px 2px ${x},0px 7px 34px 6px ${$}`,
27
- `0px 9px 12px -6px ${p},0px 19px 29px 2px ${x},0px 7px 36px 6px ${$}`,
28
- `0px 10px 13px -6px ${p},0px 20px 31px 3px ${x},0px 8px 38px 7px ${$}`,
29
- `0px 10px 13px -6px ${p},0px 21px 33px 3px ${x},0px 8px 40px 7px ${$}`,
30
- `0px 10px 14px -6px ${p},0px 22px 35px 3px ${x},0px 8px 42px 7px ${$}`,
31
- `0px 11px 14px -7px ${p},0px 23px 36px 3px ${x},0px 9px 44px 8px ${$}`,
32
- `0px 11px 15px -7px ${p},0px 24px 38px 3px ${x},0px 9px 46px 8px ${$}`
9
+ `0px 2px 1px -1px ${p},0px 1px 1px 0px ${$},0px 1px 3px 0px ${n}`,
10
+ `0px 3px 1px -2px ${p},0px 2px 2px 0px ${$},0px 1px 5px 0px ${n}`,
11
+ `0px 3px 3px -2px ${p},0px 3px 4px 0px ${$},0px 1px 8px 0px ${n}`,
12
+ `0px 2px 4px -1px ${p},0px 4px 5px 0px ${$},0px 1px 10px 0px ${n}`,
13
+ `0px 3px 5px -1px ${p},0px 5px 8px 0px ${$},0px 1px 14px 0px ${n}`,
14
+ `0px 3px 5px -1px ${p},0px 6px 10px 0px ${$},0px 1px 18px 0px ${n}`,
15
+ `0px 4px 5px -2px ${p},0px 7px 10px 1px ${$},0px 2px 16px 1px ${n}`,
16
+ `0px 5px 5px -3px ${p},0px 8px 10px 1px ${$},0px 3px 14px 2px ${n}`,
17
+ `0px 5px 6px -3px ${p},0px 9px 12px 1px ${$},0px 3px 16px 2px ${n}`,
18
+ `0px 6px 6px -3px ${p},0px 10px 14px 1px ${$},0px 4px 18px 3px ${n}`,
19
+ `0px 6px 7px -4px ${p},0px 11px 15px 1px ${$},0px 4px 20px 3px ${n}`,
20
+ `0px 7px 8px -4px ${p},0px 12px 17px 2px ${$},0px 5px 22px 4px ${n}`,
21
+ `0px 7px 8px -4px ${p},0px 13px 19px 2px ${$},0px 5px 24px 4px ${n}`,
22
+ `0px 7px 9px -4px ${p},0px 14px 21px 2px ${$},0px 5px 26px 4px ${n}`,
23
+ `0px 8px 9px -5px ${p},0px 15px 22px 2px ${$},0px 6px 28px 5px ${n}`,
24
+ `0px 8px 10px -5px ${p},0px 16px 24px 2px ${$},0px 6px 30px 5px ${n}`,
25
+ `0px 8px 11px -5px ${p},0px 17px 26px 2px ${$},0px 6px 32px 5px ${n}`,
26
+ `0px 9px 11px -5px ${p},0px 18px 28px 2px ${$},0px 7px 34px 6px ${n}`,
27
+ `0px 9px 12px -6px ${p},0px 19px 29px 2px ${$},0px 7px 36px 6px ${n}`,
28
+ `0px 10px 13px -6px ${p},0px 20px 31px 3px ${$},0px 8px 38px 7px ${n}`,
29
+ `0px 10px 13px -6px ${p},0px 21px 33px 3px ${$},0px 8px 40px 7px ${n}`,
30
+ `0px 10px 14px -6px ${p},0px 22px 35px 3px ${$},0px 8px 42px 7px ${n}`,
31
+ `0px 11px 14px -7px ${p},0px 23px 36px 3px ${$},0px 9px 44px 8px ${n}`,
32
+ `0px 11px 15px -7px ${p},0px 24px 38px 3px ${$},0px 9px 46px 8px ${n}`
33
33
  ];
34
34
  }, O = (t) => {
35
35
  const p = {
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)}`,
36
+ info: `0px 2px 8px 0px ${x(e.patronusBlue[50], 0.2)}`,
37
+ secondary: `0px 2px 8px 0px ${x(e.patronusBlue[50], 0.24)}`,
38
+ success: `0px 2px 8px 0px ${x(e.acidGreen[50], 0.2)}`,
39
+ warning: `0px 2px 8px 0px ${x(e.middleYellow[50], 0.2)}`,
40
+ error: `0px 2px 8px 0px ${x(e.flameRed[50], 0.2)}`,
41
41
  //
42
- card: `0 0 2px 0 ${r(a[500], 0.2)}, 0 12px 24px -4px ${r(
43
- a[500],
42
+ card: `0 0 2px 0 ${x(r[500], 0.2)}, 0 12px 24px -4px ${x(
43
+ r[500],
44
44
  0.12
45
45
  )}`,
46
- dialog: `-40px 40px 80px -8px ${r(o.black, 0.24)}`,
47
- dropdown: `0 0 2px 0 ${r(a[500], 0.24)}, -20px 20px 40px -4px ${r(
48
- a[500],
46
+ dialog: `-40px 40px 80px -8px ${x(o.black, 0.24)}`,
47
+ dropdown: `0 0 2px 0 ${x(r[500], 0.24)}, -20px 20px 40px -4px ${x(
48
+ r[500],
49
49
  0.24
50
50
  )}`
51
51
  };
52
52
  return t === "light" ? {
53
- z1: `0px 2px 2px 2px ${r("#091E42", 0.8)}`,
53
+ z1: `0px 2px 2px 2px ${x("#091E42", 0.8)}`,
54
54
  // todo: solicitar a diseño crear token en base porque está quemado
55
- z2: `0px 0px ${r("#495859", 0.14)}`,
55
+ z2: `0px 0px ${x("#495859", 0.14)}`,
56
56
  // todo: solicitar a diseño crear token en base porque está quemado
57
- z3: `0px 4px 12px 1px ${r("#243B46", 0.14)}`,
57
+ z3: `0px 4px 12px 1px ${x("#243B46", 0.14)}`,
58
58
  // todo: solicitar a diseño crear token en base porque está quemado
59
- z4: `0px 12px 32px 4px ${r("#243B46", 0.12)}`,
59
+ z4: `0px 12px 32px 4px ${x("#243B46", 0.12)}`,
60
60
  // todo: solicitar a diseño crear token en base porque está quemado
61
+ innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.7)} inset`,
62
+ innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
61
63
  ...p
62
64
  } : {
63
- z1: `0px 2px 2px 2px ${r("#000000", 0.16)}`,
65
+ z1: `0px 2px 2px 2px ${x("#000000", 0.16)}`,
64
66
  // todo: solicitar a diseño crear token en base porque está quemado
65
- z2: `0px 0px ${r("#111414", 0.5)}`,
67
+ z2: `0px 0px ${x("#111414", 0.5)}`,
66
68
  // todo: solicitar a diseño crear token en base porque está quemado
67
- z3: `0px 4px 12px 1px ${r("#09090A", 0.6)}`,
69
+ z3: `0px 4px 12px 1px ${x("#09090A", 0.6)}`,
68
70
  // todo: solicitar a diseño crear token en base porque está quemado
69
- z4: `0px 12px 32px 4px ${r("#09090A", 0.35)}`,
71
+ z4: `0px 12px 32px 4px ${x("#09090A", 0.35)}`,
70
72
  // todo: solicitar a diseño crear token en base porque está quemado
73
+ innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.9)} inset`,
74
+ innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
71
75
  ...p
72
76
  };
73
- }, u = {
74
- light: n(e),
75
- dark: n(c)
77
+ }, m = {
78
+ light: a(s),
79
+ dark: a(i)
76
80
  };
77
81
  export {
78
82
  O as c,
79
- u as s
83
+ m as s
80
84
  };
@@ -23,10 +23,12 @@ declare module '@mui/material/styles' {
23
23
  // dark: string; *** Por compatibilidad con MUI
24
24
  // contrastText: string; ***
25
25
 
26
- focusActive: string;
26
+ active: string;
27
27
  focusVisible: string;
28
28
  hover: string;
29
29
  hoverOpacity: string;
30
+ activeOpacity: string;
31
+ focusOpacity: string;
30
32
  opacity: string;
31
33
  toneOpacity: string;
32
34
  }
@@ -48,6 +50,7 @@ declare module '@mui/material/styles' {
48
50
  disabled: string;
49
51
  error: string;
50
52
  };
53
+ chips: BaseChipColors;
51
54
  general: {
52
55
  scrollBar: string;
53
56
  gridHover: string;
@@ -70,6 +73,7 @@ declare module '@mui/material/styles' {
70
73
  disabled: string;
71
74
  error: string;
72
75
  };
76
+ chips: BaseChipColors;
73
77
  default: PaletteColor;
74
78
  general: {
75
79
  scrollBar: string;
package/types/types.d.ts CHANGED
@@ -51,10 +51,20 @@ export interface PresetColor {
51
51
  lighter: string;
52
52
  toneOpacityLight: string;
53
53
  /**
54
- * Permite definir fondos de componentes en estados hover y focus dependiendo de la necesidad.
54
+ * Permite definir fondos de componentes en estados hover dependiendo del modo de la aplicación web.
55
55
  */
56
- opacityLight: string;
57
- opacityDark: string;
56
+ opacityHoverLight: string;
57
+ opacityHoverDark: string;
58
+ /**
59
+ * Permite definir fondos de componentes en estados focus dependiendo del modo de la aplicación web.
60
+ */
61
+ opacityFocusLight: string;
62
+ opacityFocusDark: string;
63
+ /**
64
+ * Permite definir fondos de componentes en estados active dependiendo del modo de la aplicación web.
65
+ */
66
+ opacityActiveLight: string;
67
+ opacityActiveDark: string;
58
68
  dark: string;
59
69
  darker: string;
60
70
  toneOpacityDark: string;
@@ -96,3 +106,20 @@ export type PresetsOptionsColorMain = Array<{
96
106
  value: string;
97
107
  }>;
98
108
  export type ColorState = 'warning' | 'delete' | 'info' | 'success';
109
+ /**
110
+ * Opciones de colores para pinta los chips
111
+ */
112
+ export interface ChipColor {
113
+ contrastText: string;
114
+ backgroundColor: string;
115
+ backgroundHover: string;
116
+ backgroundActive: string;
117
+ }
118
+ /**
119
+ * Lista de opciones de colores para pintar los chips
120
+ */
121
+ export type ChipColorOptions = 'default' | 'warning' | 'warningOpacity' | 'error' | 'errorOpacity' | 'success' | 'successOpacity' | 'info' | 'infoOpacity';
122
+ /**
123
+ * 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.
124
+ */
125
+ export type BaseChipColors = Record<ChipColorOptions, ChipColor>;