@m4l/styles 7.1.18 → 7.1.19
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 +45 -32
- package/package.json +1 -1
- package/theme/index.d.ts +1 -1
- package/theme/typography/index.d.ts +7 -0
- package/theme/typography/index.js +1 -0
- package/theme/typography/types.d.ts +6 -0
- package/theme/typography/types.js +1 -0
- package/theme/{typography.d.ts → typographyOld.d.ts} +1 -20
- package/theme/{typography.js → typographyOld.js} +10 -10
- package/utils/getPaletteByPreset.js +1 -1
- package/utils/getUserThemeOptions.js +1 -1
package/index.js
CHANGED
|
@@ -1,39 +1,52 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as e, g as s, m as t } from "./config.js";
|
|
2
2
|
import { c as p, s as m } from "./theme/shadows.js";
|
|
3
|
-
import { f as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C as
|
|
7
|
-
import { G as
|
|
8
|
-
import { p as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
3
|
+
import { f as E } from "./theme/overrides/index.js";
|
|
4
|
+
import { B as S } from "./theme/palette/baseColors.js";
|
|
5
|
+
import { B as O } from "./theme/palette/baseOpacityColors.js";
|
|
6
|
+
import { C as P } from "./theme/palette/commonColors.js";
|
|
7
|
+
import { G as A } from "./theme/palette/greyPalette.js";
|
|
8
|
+
import { p as R } from "./theme/palette/presetColors.js";
|
|
9
|
+
import { B as i } from "./theme/typography/baseFontSize.js";
|
|
10
|
+
import { B as n } from "./theme/typography/baseLetterSpacing.js";
|
|
11
|
+
import { B as L } from "./theme/typography/baseLineHeight.js";
|
|
12
|
+
import { B as Y } from "./theme/typography/baseWeight.js";
|
|
13
|
+
import { T as u } from "./theme/typography/typography.js";
|
|
14
|
+
import { a as D, T as h } from "./theme/typography/typographySizes.js";
|
|
15
|
+
import { t as M } from "./theme/typographyOld.js";
|
|
16
|
+
import { u as Z } from "./utils/useResponsive.js";
|
|
17
|
+
import { D as y, d as U, g as c } from "./utils/getColorPresets.js";
|
|
18
|
+
import { p as z, r as b, a as k } from "./utils/getFontValue.js";
|
|
19
|
+
import { g as V } from "./utils/getColorState.js";
|
|
20
|
+
import { g as j } from "./utils/getPaletteByPreset.js";
|
|
21
|
+
import { g as J } from "./utils/getUserThemeOptions.js";
|
|
16
22
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
n as
|
|
20
|
-
L as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
S as BASE_COLORS,
|
|
24
|
+
i as BASE_FONT_SIZE,
|
|
25
|
+
n as BASE_LETTER_SPACING,
|
|
26
|
+
L as BASE_LINE_HEIGHT,
|
|
27
|
+
O as BASE_OPACITY_COLORS,
|
|
28
|
+
Y as BASE_WEIGHT,
|
|
29
|
+
P as COMMON_COLORS,
|
|
30
|
+
y as DEFAULT_PRESET,
|
|
31
|
+
e as DEFAULT_SIZE,
|
|
32
|
+
A as GREY_PALETTE,
|
|
33
|
+
u as TYPOGRAPHY,
|
|
34
|
+
D as TYPOGRAPHY_SIZES_DESKTOP,
|
|
35
|
+
h as TYPOGRAPHY_SIZES_MOBILE,
|
|
23
36
|
p as createCustomShadows,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
U as defaultPresetColors,
|
|
38
|
+
E as fnComponentsOverrides,
|
|
39
|
+
c as getColorPresets,
|
|
40
|
+
V as getColorState,
|
|
41
|
+
j as getPaletteByPreset,
|
|
42
|
+
J as getUserThemeOptions,
|
|
30
43
|
s as globalRemSize,
|
|
31
44
|
t as muiBreakpointsValues,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
R as presetsOptionsMainColor,
|
|
46
|
+
z as pxToRem,
|
|
47
|
+
b as remToPx,
|
|
48
|
+
k as responsiveFontSizes,
|
|
36
49
|
m as shadows,
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
M as typographyOld,
|
|
51
|
+
Z as useResponsive
|
|
39
52
|
};
|
package/package.json
CHANGED
package/theme/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export type { CustomShadowOptions } from './shadows';
|
|
|
2
2
|
export { shadows, createCustomShadows } from './shadows';
|
|
3
3
|
export * from './palette';
|
|
4
4
|
export * from './typography';
|
|
5
|
-
export
|
|
5
|
+
export * from './typographyOld';
|
|
6
6
|
export * from './sizes';
|
|
7
7
|
export { fnComponentsOverrides } from './overrides';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
fontSize: string;
|
|
3
|
-
fontWeight: number;
|
|
4
|
-
lineHeight: string;
|
|
5
|
-
letterSpacing: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Listas de variantes de tipografía disponibles para la aplicación web.
|
|
9
|
-
*/
|
|
10
|
-
export type M4LTypographyVariants = 'h1' | 'h2' | 'h3' | 'h5' | 'subtitle' | 'subtitleDens' | 'paragraph' | 'paragraphDens' | 'body' | 'bodyDens';
|
|
11
|
-
export interface TypographyVariants {
|
|
12
|
-
subtitle: FontProps;
|
|
13
|
-
subtitleDens: FontProps;
|
|
14
|
-
paragraph: FontProps;
|
|
15
|
-
paragraphDens: FontProps;
|
|
16
|
-
body: FontProps;
|
|
17
|
-
bodyDens: FontProps;
|
|
18
|
-
action: FontProps;
|
|
19
|
-
}
|
|
20
|
-
export declare const typography: {
|
|
1
|
+
export declare const typographyOld: {
|
|
21
2
|
readonly fontFamily: "Inter, Segoe UI, Poppins, sans-serif";
|
|
22
3
|
readonly fontWeightRegular: 400;
|
|
23
4
|
readonly fontWeightMedium: 600;
|
|
@@ -9,7 +9,7 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
9
9
|
fontWeightLight: 300,
|
|
10
10
|
htmlFontSize: 16,
|
|
11
11
|
pxToRem: (i) => `${i / 16}rem`,
|
|
12
|
-
|
|
12
|
+
// Definindo en Patronus
|
|
13
13
|
h1: {
|
|
14
14
|
fontWeight: 600,
|
|
15
15
|
lineHeight: 1.5,
|
|
@@ -20,7 +20,7 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
20
20
|
lineHeight: 1,
|
|
21
21
|
...e({ sm: 40, md: 40, lg: 40 })
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
// Definindo en Patronus
|
|
24
24
|
h3: {
|
|
25
25
|
fontWeight: 600,
|
|
26
26
|
lineHeight: 1.5,
|
|
@@ -31,7 +31,7 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
31
31
|
lineHeight: 1.5,
|
|
32
32
|
...e({ sm: 20, md: 20, lg: 20 })
|
|
33
33
|
},
|
|
34
|
-
|
|
34
|
+
// Definindo en Patronus
|
|
35
35
|
h5: {
|
|
36
36
|
fontWeight: 500,
|
|
37
37
|
lineHeight: "28px",
|
|
@@ -44,28 +44,28 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
44
44
|
letterSpacing: "-0.08em",
|
|
45
45
|
...e({ sm: 18, md: 18, lg: 18 })
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
// Definindo en Patronus
|
|
48
48
|
subtitle: {
|
|
49
49
|
fontWeight: 400,
|
|
50
50
|
lineHeight: "20px",
|
|
51
51
|
letterSpacing: "-0.006em",
|
|
52
52
|
...e({ sm: 15, md: 15, lg: 15 })
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
// Definindo en Patronus
|
|
55
55
|
subtitleDens: {
|
|
56
56
|
fontWeight: 600,
|
|
57
57
|
lineHeight: "24px",
|
|
58
58
|
letterSpacing: "-0.006em",
|
|
59
59
|
...e({ sm: 15, md: 15, lg: 15 })
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
// Definindo en Patronus
|
|
62
62
|
paragraph: {
|
|
63
63
|
fontWeight: 400,
|
|
64
64
|
lineHeight: "16px",
|
|
65
65
|
letterSpacing: "-0.003em",
|
|
66
66
|
...e({ sm: 13, md: 13, lg: 13 })
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
// Definindo en Patronus
|
|
69
69
|
paragraphDens: {
|
|
70
70
|
fontWeight: 600,
|
|
71
71
|
lineHeight: "20px",
|
|
@@ -82,13 +82,13 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
82
82
|
lineHeight: 1.5,
|
|
83
83
|
fontSize: t(12)
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
// Definindo en Patronus
|
|
86
86
|
body: {
|
|
87
87
|
fontWeight: 400,
|
|
88
88
|
lineHeight: "16px",
|
|
89
89
|
...e({ sm: 11, md: 11, lg: 11 })
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
// Definindo en Patronus
|
|
92
92
|
bodyDens: {
|
|
93
93
|
fontWeight: 600,
|
|
94
94
|
lineHeight: "16px",
|
|
@@ -125,7 +125,7 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
|
125
125
|
fontSize: t(14),
|
|
126
126
|
textTransform: "capitalize"
|
|
127
127
|
},
|
|
128
|
-
|
|
128
|
+
// Definindo en Patronus
|
|
129
129
|
action: {
|
|
130
130
|
fontWeight: 600,
|
|
131
131
|
lineHeight: "16px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createTheme as p, alpha as s } from "@mui/material";
|
|
2
|
-
import { t as o } from "../theme/
|
|
2
|
+
import { t as o } from "../theme/typographyOld.js";
|
|
3
3
|
import { s as e, c as m } from "../theme/shadows.js";
|
|
4
4
|
import { S as i } from "../theme/sizes/size.js";
|
|
5
5
|
import { g } from "./getColorPresets.js";
|