@m4l/styles 0.0.1 → 0.0.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/index.d.ts +1 -0
- package/index.js +13 -12
- package/package.json +1 -1
- package/theme/index.d.ts +0 -3
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LIcon.d.ts +1 -0
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LImage.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LTypography.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextFieldPassword.d.ts +1 -1
- package/theme/overrides/MUIComponents/CmpDisenoTest.d.ts +1 -1
- package/theme/overrides/MUIComponents/DynamicFilter.d.ts +1 -1
- package/theme/palette.d.ts +0 -65
- package/types/index.d.ts +1 -1
- package/types/types.d.ts +87 -0
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -186,7 +186,7 @@ function W(r) {
|
|
|
186
186
|
default: A
|
|
187
187
|
}[r];
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function _(r) {
|
|
190
190
|
return Math.round(parseFloat(r) * 16);
|
|
191
191
|
}
|
|
192
192
|
function n(r) {
|
|
@@ -205,18 +205,18 @@ function d({ sm: r, md: o, lg: t }) {
|
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function G() {
|
|
209
209
|
return [...S().breakpoints.keys].reverse().reduce((t, i) => {
|
|
210
210
|
const M = L("up", i);
|
|
211
211
|
return !t && M ? i : t;
|
|
212
212
|
}, null) || "xs";
|
|
213
213
|
}
|
|
214
214
|
function qr(r) {
|
|
215
|
-
const o = S(), t =
|
|
215
|
+
const o = S(), t = G(), i = o.breakpoints.up(t === "xl" ? "lg" : t), w = (r === "h1" || r === "h2" || r === "h3" || r === "h4" || r === "h5" || r === "h6") && o.typography[r][i] ? o.typography[r][i] : o.typography[r], h = _(w.fontSize), m = Number(o.typography[r].lineHeight) * h, { fontWeight: B, letterSpacing: O } = o.typography[r];
|
|
216
216
|
return { fontSize: h, lineHeight: m, fontWeight: B, letterSpacing: O };
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
fontFamily:
|
|
218
|
+
const N = "Public Sans, sans-serif", Y = {
|
|
219
|
+
fontFamily: N,
|
|
220
220
|
fontWeightRegular: 400,
|
|
221
221
|
fontWeightMedium: 600,
|
|
222
222
|
fontWeightBold: 700,
|
|
@@ -1665,7 +1665,8 @@ const Tr = (r) => ({
|
|
|
1665
1665
|
M4LIcon: {
|
|
1666
1666
|
styleOverrides: {
|
|
1667
1667
|
["&.M4LIcon-root"]: {
|
|
1668
|
-
test: "root"
|
|
1668
|
+
test: "root",
|
|
1669
|
+
backgroundColor: r.palette.primary.main
|
|
1669
1670
|
}
|
|
1670
1671
|
}
|
|
1671
1672
|
}
|
|
@@ -1704,7 +1705,7 @@ const Tr = (r) => ({
|
|
|
1704
1705
|
}
|
|
1705
1706
|
}
|
|
1706
1707
|
}
|
|
1707
|
-
}),
|
|
1708
|
+
}), _r = (r) => ({
|
|
1708
1709
|
M4LPopover: {
|
|
1709
1710
|
styleOverrides: {
|
|
1710
1711
|
["&.M4LPopover-root"]: {
|
|
@@ -1715,7 +1716,7 @@ const Tr = (r) => ({
|
|
|
1715
1716
|
}
|
|
1716
1717
|
}
|
|
1717
1718
|
}
|
|
1718
|
-
}),
|
|
1719
|
+
}), Gr = (r) => ({
|
|
1719
1720
|
M4LRHFCheckbox: {
|
|
1720
1721
|
styleOverrides: {
|
|
1721
1722
|
["&.M4LRHFCheckbox-root"]: {
|
|
@@ -1723,7 +1724,7 @@ const Tr = (r) => ({
|
|
|
1723
1724
|
}
|
|
1724
1725
|
}
|
|
1725
1726
|
}
|
|
1726
|
-
}),
|
|
1727
|
+
}), Nr = (r) => ({
|
|
1727
1728
|
M4LErrorLabel: {
|
|
1728
1729
|
styleOverrides: {
|
|
1729
1730
|
["&.M4LErrorLabel-root"]: {
|
|
@@ -1793,14 +1794,14 @@ function Qr(r) {
|
|
|
1793
1794
|
Dr(),
|
|
1794
1795
|
Ir(),
|
|
1795
1796
|
Ar(),
|
|
1796
|
-
zr(),
|
|
1797
|
+
zr(r),
|
|
1797
1798
|
Pr(),
|
|
1798
1799
|
Er(),
|
|
1799
1800
|
Hr(),
|
|
1800
1801
|
Wr(),
|
|
1802
|
+
_r(),
|
|
1801
1803
|
Gr(),
|
|
1802
1804
|
Nr(),
|
|
1803
|
-
_r(),
|
|
1804
1805
|
Yr(),
|
|
1805
1806
|
jr()
|
|
1806
1807
|
);
|
|
@@ -1820,7 +1821,7 @@ export {
|
|
|
1820
1821
|
I as purplePreset,
|
|
1821
1822
|
n as pxToRem,
|
|
1822
1823
|
H as redPreset,
|
|
1823
|
-
|
|
1824
|
+
_ as remToPx,
|
|
1824
1825
|
d as responsiveFontSizes,
|
|
1825
1826
|
V as shadows
|
|
1826
1827
|
};
|
package/package.json
CHANGED
package/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export type { CustomShadowOptions } from './shadows';
|
|
2
|
-
export type { GradientsPaletteOptions } from './palette';
|
|
3
|
-
export type { ChartPaletteOptions } from './palette';
|
|
4
|
-
export type { GridPaletteOptions } from './palette';
|
|
5
2
|
export { defaultThemeOptions } from './defaultThemeOptions';
|
|
6
3
|
export { shadows, customShadows } from './shadows';
|
|
7
4
|
export { palette, type ColorSchema } from './palette';
|
package/theme/palette.d.ts
CHANGED
|
@@ -1,69 +1,4 @@
|
|
|
1
1
|
export declare type ColorSchema = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
|
|
2
|
-
export interface GradientsPaletteOptions {
|
|
3
|
-
primary: string;
|
|
4
|
-
info: string;
|
|
5
|
-
success: string;
|
|
6
|
-
warning: string;
|
|
7
|
-
error: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChartPaletteOptions {
|
|
10
|
-
violet: string[];
|
|
11
|
-
blue: string[];
|
|
12
|
-
green: string[];
|
|
13
|
-
yellow: string[];
|
|
14
|
-
red: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface GridPaletteOptions {
|
|
17
|
-
sectionHeader: string;
|
|
18
|
-
rowHover: string;
|
|
19
|
-
divider: string;
|
|
20
|
-
}
|
|
21
|
-
declare module '@mui/material/styles/createPalette' {
|
|
22
|
-
interface TypeBackground {
|
|
23
|
-
neutral: string;
|
|
24
|
-
autofill: string;
|
|
25
|
-
header: string;
|
|
26
|
-
}
|
|
27
|
-
interface SimplePaletteColorOptions {
|
|
28
|
-
lighter?: string;
|
|
29
|
-
darker?: string;
|
|
30
|
-
LightSelected?: string;
|
|
31
|
-
LightSelectedHover?: string;
|
|
32
|
-
DarkSelected?: string;
|
|
33
|
-
DarkSelectedHover?: string;
|
|
34
|
-
}
|
|
35
|
-
interface PaletteColor {
|
|
36
|
-
lighter?: string;
|
|
37
|
-
darker?: string;
|
|
38
|
-
LightSelected?: string;
|
|
39
|
-
LightSelectedHover?: string;
|
|
40
|
-
DarkSelected?: string;
|
|
41
|
-
DarkSelectedHover?: string;
|
|
42
|
-
}
|
|
43
|
-
interface Palette {
|
|
44
|
-
gradients?: GradientsPaletteOptions;
|
|
45
|
-
chart: ChartPaletteOptions;
|
|
46
|
-
grid?: GridPaletteOptions;
|
|
47
|
-
}
|
|
48
|
-
interface PaletteOptions {
|
|
49
|
-
gradients?: GradientsPaletteOptions;
|
|
50
|
-
chart?: ChartPaletteOptions;
|
|
51
|
-
grid?: GridPaletteOptions;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
declare module '@mui/material' {
|
|
55
|
-
interface Color {
|
|
56
|
-
0: string;
|
|
57
|
-
500_8: string;
|
|
58
|
-
500_12: string;
|
|
59
|
-
500_16: string;
|
|
60
|
-
500_24: string;
|
|
61
|
-
500_32: string;
|
|
62
|
-
500_48: string;
|
|
63
|
-
500_56: string;
|
|
64
|
-
500_80: string;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
2
|
export declare const GREY: {
|
|
68
3
|
0: string;
|
|
69
4
|
100: string;
|
package/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './types.d';
|
package/types/types.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {CustomShadowOptions } from '../theme'
|
|
2
|
+
|
|
3
|
+
export {};
|
|
4
|
+
|
|
5
|
+
export declare type ThemeColorPresets = 'default' | 'purple' | 'cyan' | 'blue' | 'orange' | 'red';
|
|
6
|
+
|
|
7
|
+
declare module '@mui/material/styles' {
|
|
8
|
+
interface Theme {
|
|
9
|
+
stretch?: boolean;
|
|
10
|
+
customShadows: CustomShadowOptions;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ThemeOptions {
|
|
14
|
+
stretch?: boolean;
|
|
15
|
+
customShadows?: CustomShadowOptions;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface GridPaletteOptions {
|
|
20
|
+
sectionHeader: string;
|
|
21
|
+
rowHover: string;
|
|
22
|
+
divider: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ChartPaletteOptions {
|
|
26
|
+
violet: string[];
|
|
27
|
+
blue: string[];
|
|
28
|
+
green: string[];
|
|
29
|
+
yellow: string[];
|
|
30
|
+
red: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface GradientsPaletteOptions {
|
|
34
|
+
primary: string;
|
|
35
|
+
info: string;
|
|
36
|
+
success: string;
|
|
37
|
+
warning: string;
|
|
38
|
+
error: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare module '@mui/material/styles/createPalette' {
|
|
42
|
+
interface TypeBackground {
|
|
43
|
+
neutral: string;
|
|
44
|
+
autofill: string;
|
|
45
|
+
header: string;
|
|
46
|
+
}
|
|
47
|
+
interface SimplePaletteColorOptions {
|
|
48
|
+
lighter?: string;
|
|
49
|
+
darker?: string;
|
|
50
|
+
LightSelected?: string;
|
|
51
|
+
LightSelectedHover?: string;
|
|
52
|
+
DarkSelected?: string;
|
|
53
|
+
DarkSelectedHover?: string;
|
|
54
|
+
}
|
|
55
|
+
interface PaletteColor {
|
|
56
|
+
lighter?: string;
|
|
57
|
+
darker?: string;
|
|
58
|
+
LightSelected?: string;
|
|
59
|
+
LightSelectedHover?: string;
|
|
60
|
+
DarkSelected?: string;
|
|
61
|
+
DarkSelectedHover?: string;
|
|
62
|
+
}
|
|
63
|
+
interface Palette {
|
|
64
|
+
gradients?: GradientsPaletteOptions;
|
|
65
|
+
chart: ChartPaletteOptions;
|
|
66
|
+
grid?: GridPaletteOptions;
|
|
67
|
+
}
|
|
68
|
+
interface PaletteOptions {
|
|
69
|
+
gradients?: GradientsPaletteOptions;
|
|
70
|
+
chart?: ChartPaletteOptions;
|
|
71
|
+
grid?: GridPaletteOptions;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare module '@mui/material' {
|
|
76
|
+
interface Color {
|
|
77
|
+
0: string;
|
|
78
|
+
500_8: string;
|
|
79
|
+
500_12: string;
|
|
80
|
+
500_16: string;
|
|
81
|
+
500_24: string;
|
|
82
|
+
500_32: string;
|
|
83
|
+
500_48: string;
|
|
84
|
+
500_56: string;
|
|
85
|
+
500_80: string;
|
|
86
|
+
}
|
|
87
|
+
}
|