@m4l/styles 3.2.3 → 6.0.0
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 +20 -20
- package/package.json +1 -1
- package/theme/defaultThemeOptions-DVY68pts.js +125 -0
- package/theme/defaultThemeOptions.d.ts +2 -1
- package/theme/index.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/{index-C4PXddLa.js → index-BO_x8lkT.js} +256 -255
- package/theme/overrides/M4LRHFComponents/{index-BRZVeOM5.js → index-Dv4h8DSV.js} +34 -34
- package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
- package/theme/overrides/MUIComponents/Input.d.ts +1 -1
- package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
- package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
- package/theme/overrides/MUIComponents/{index-XoLdmZP6.js → index-DrBJTI1s.js} +61 -62
- package/theme/overrides/{index-B9xZa27y.js → index-BOMUIneQ.js} +15 -15
- package/theme/palette/baseOpacityColors.d.ts +3 -0
- package/theme/palette/defaultColors.d.ts +14 -0
- package/theme/palette/index.d.ts +0 -1
- package/theme/palette/presetColors.d.ts +18 -4
- package/theme/palette/semanticColors.d.ts +16 -0
- package/theme/palette-voCQl3kP.js +792 -0
- package/theme/{shadows-GTYqExFA.js → shadows-Cek_1mpN.js} +1 -1
- package/types/augmentations.d.ts +160 -155
- package/types/types.d.ts +72 -31
- package/utils/{getColorPresets-CXZaM9oS.js → getColorPresets-DgmrCj5l.js} +1 -1
- package/utils/getColorPresets.d.ts +4 -4
- package/utils/getColorState.d.ts +2 -2
- package/utils/getPaletteByPreset.d.ts +127 -0
- package/utils/index.d.ts +1 -0
- package/vite-env.d.ts +3 -3
- package/theme/defaultThemeOptions-BlJvKCE6.js +0 -24
- package/theme/palette/palette.d.ts +0 -6
- package/theme/palette/stateColors.d.ts +0 -2
- package/theme/palette-DM0gXxA2.js +0 -584
package/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
2
|
+
import { O as p, g as m } from "./theme/defaultThemeOptions-DVY68pts.js";
|
|
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
|
-
import { f as S } from "./theme/overrides/index-
|
|
6
|
-
import { B as n, a as
|
|
7
|
-
import { u
|
|
8
|
-
import { D as
|
|
9
|
-
import { g as
|
|
10
|
-
import { g as
|
|
5
|
+
import { f as S } from "./theme/overrides/index-BOMUIneQ.js";
|
|
6
|
+
import { B as n, a as R, C as T, G as i, p as P } from "./theme/palette-voCQl3kP.js";
|
|
7
|
+
import { u } from "./utils/useResponsive-DaeQVwlH.js";
|
|
8
|
+
import { D as L, d, g as B } from "./utils/getColorPresets-DgmrCj5l.js";
|
|
9
|
+
import { g as F, p as h, a as v, r as y } from "./utils/getFontValue-BEO-XID9.js";
|
|
10
|
+
import { g as U } from "./utils/getColorState-D1JKXD4T.js";
|
|
11
11
|
export {
|
|
12
12
|
n as BASE_COLORS,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
R as BASE_OPACITY_COLORS,
|
|
14
|
+
T as COMMON_COLORS,
|
|
15
|
+
L as DEFAULT_PRESET,
|
|
16
16
|
o as DEFAULT_SIZE,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
i as GREY_PALETTE,
|
|
18
|
+
p as OUR_THEME,
|
|
19
|
+
O as createCustomShadows,
|
|
20
|
+
d as defaultPresetColors,
|
|
21
21
|
S as fnComponentsOverrides,
|
|
22
22
|
B as getColorPresets,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
U as getColorState,
|
|
24
|
+
F as getFontValue,
|
|
25
|
+
m as getPaletteByPreset,
|
|
26
26
|
a as globalRemSize,
|
|
27
27
|
r as muiBreakpointsValues,
|
|
28
28
|
P as presetsOptions,
|
|
29
|
-
|
|
29
|
+
h as pxToRem,
|
|
30
30
|
v as remToPx,
|
|
31
31
|
y as responsiveFontSizes,
|
|
32
32
|
x as shadows,
|
|
33
33
|
g as typography,
|
|
34
|
-
|
|
34
|
+
u as useResponsive
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { createTheme as u, alpha as O } from "@mui/material/styles";
|
|
2
|
+
import { t as s } from "./typography-BsOO459U.js";
|
|
3
|
+
import { s as L, c as y } from "./shadows-Cek_1mpN.js";
|
|
4
|
+
import { C as i, D as l, B as r, P as d, a as o, S as n, G as m, b as c, c as g, d as b, e as p } from "./palette-voCQl3kP.js";
|
|
5
|
+
import { g as C } from "../utils/getColorPresets-DgmrCj5l.js";
|
|
6
|
+
const a = {
|
|
7
|
+
light: {
|
|
8
|
+
scrollBar: "#5663763D",
|
|
9
|
+
gridHover: "#FCFCFC"
|
|
10
|
+
},
|
|
11
|
+
dark: {
|
|
12
|
+
scrollBar: "#5663765D",
|
|
13
|
+
gridHover: "#282E2E"
|
|
14
|
+
}
|
|
15
|
+
}, R = (e) => {
|
|
16
|
+
const t = b?.[e], f = p?.[e];
|
|
17
|
+
return {
|
|
18
|
+
light: {
|
|
19
|
+
mode: "light",
|
|
20
|
+
common: i,
|
|
21
|
+
primary: {
|
|
22
|
+
...t
|
|
23
|
+
},
|
|
24
|
+
default: {
|
|
25
|
+
...l,
|
|
26
|
+
focusVisible: t.focusVisible,
|
|
27
|
+
contrastText: r.onyx[20]
|
|
28
|
+
},
|
|
29
|
+
divider: r.coolGrey[20],
|
|
30
|
+
text: {
|
|
31
|
+
primary: r.onyx[20],
|
|
32
|
+
secondary: r.coolGrey[50],
|
|
33
|
+
disabled: r.oxford[30]
|
|
34
|
+
},
|
|
35
|
+
background: {
|
|
36
|
+
default: r.marbleLight[10],
|
|
37
|
+
neutral: r.marbleLight[30],
|
|
38
|
+
surface: r.marbleLight[50],
|
|
39
|
+
hover: l.hover,
|
|
40
|
+
//por compatibilidad de mui
|
|
41
|
+
paper: ""
|
|
42
|
+
},
|
|
43
|
+
border: {
|
|
44
|
+
main: d[e]?.borderMainLight,
|
|
45
|
+
default: o.oxford[30],
|
|
46
|
+
secondary: o.oxford[20],
|
|
47
|
+
dens: o.oxford[50],
|
|
48
|
+
disabled: o.oxford[10],
|
|
49
|
+
error: n.error.main
|
|
50
|
+
},
|
|
51
|
+
general: {
|
|
52
|
+
scrollBar: a.light.scrollBar,
|
|
53
|
+
gridHover: a.light.gridHover
|
|
54
|
+
},
|
|
55
|
+
grey: m,
|
|
56
|
+
skeleton: {
|
|
57
|
+
default: o.oxford[10],
|
|
58
|
+
transition: o.oxford[20]
|
|
59
|
+
},
|
|
60
|
+
...n
|
|
61
|
+
},
|
|
62
|
+
dark: {
|
|
63
|
+
mode: "dark",
|
|
64
|
+
common: i,
|
|
65
|
+
primary: {
|
|
66
|
+
...t
|
|
67
|
+
},
|
|
68
|
+
default: {
|
|
69
|
+
...c,
|
|
70
|
+
focusVisible: f?.focusVisible,
|
|
71
|
+
contrastText: r.marbleLight[30]
|
|
72
|
+
},
|
|
73
|
+
text: {
|
|
74
|
+
primary: r.marbleLight[30],
|
|
75
|
+
secondary: r.coolGrey[20],
|
|
76
|
+
disabled: r.coolGrey[50]
|
|
77
|
+
},
|
|
78
|
+
divider: r.coolGrey[80],
|
|
79
|
+
background: {
|
|
80
|
+
default: r.onyx[40],
|
|
81
|
+
neutral: r.marbleLight[50],
|
|
82
|
+
surface: r.marbleLight[60],
|
|
83
|
+
hover: c.hover,
|
|
84
|
+
//por compatibilidad de mui
|
|
85
|
+
paper: ""
|
|
86
|
+
},
|
|
87
|
+
border: {
|
|
88
|
+
main: d[e]?.borderMainDark,
|
|
89
|
+
default: o.mint[50],
|
|
90
|
+
secondary: o.mint[40],
|
|
91
|
+
dens: o.mint[60],
|
|
92
|
+
disabled: o.mint[20],
|
|
93
|
+
error: g.error.main
|
|
94
|
+
},
|
|
95
|
+
general: {
|
|
96
|
+
scrollBar: a.light.scrollBar,
|
|
97
|
+
gridHover: a.light.gridHover
|
|
98
|
+
},
|
|
99
|
+
grey: m,
|
|
100
|
+
skeleton: {
|
|
101
|
+
default: o.mint[20],
|
|
102
|
+
transition: o.mint[40]
|
|
103
|
+
},
|
|
104
|
+
...g
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}, _ = u(), h = R("patronus"), v = {
|
|
108
|
+
...s,
|
|
109
|
+
...L.light,
|
|
110
|
+
...h,
|
|
111
|
+
customShadows: {
|
|
112
|
+
primary: `0 8px 16px 0 ${O(C("patronus").main, 0.2)}`,
|
|
113
|
+
...y("light")
|
|
114
|
+
},
|
|
115
|
+
stretch: !0,
|
|
116
|
+
palette: {
|
|
117
|
+
..._.palette,
|
|
118
|
+
...h.light
|
|
119
|
+
},
|
|
120
|
+
typography: s
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
v as O,
|
|
124
|
+
R as g
|
|
125
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { OurTheme } from '../types/types';
|
|
2
|
+
export declare const OUR_THEME: OurTheme;
|
package/theme/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { CustomShadowOptions } from './shadows';
|
|
2
|
-
export {
|
|
2
|
+
export { OUR_THEME } from './defaultThemeOptions';
|
|
3
3
|
export { shadows, createCustomShadows } from './shadows';
|
|
4
4
|
export * from './palette';
|
|
5
5
|
export { typography } from './typography';
|