@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 CHANGED
@@ -1,39 +1,52 @@
1
- import { D as r, g as s, m as t } from "./config.js";
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 x } from "./theme/overrides/index.js";
4
- import { B as O } from "./theme/palette/baseColors.js";
5
- import { B as S } from "./theme/palette/baseOpacityColors.js";
6
- import { C as n } from "./theme/palette/commonColors.js";
7
- import { G as l } from "./theme/palette/greyPalette.js";
8
- import { p as P } from "./theme/palette/presetColors.js";
9
- import { t as _ } from "./theme/typography.js";
10
- import { u as A } from "./utils/useResponsive.js";
11
- import { D as L, d, g as h } from "./utils/getColorPresets.js";
12
- import { p as v, r as y, a as F } from "./utils/getFontValue.js";
13
- import { g as U } from "./utils/getColorState.js";
14
- import { g as w } from "./utils/getPaletteByPreset.js";
15
- import { g as G } from "./utils/getUserThemeOptions.js";
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
- O as BASE_COLORS,
18
- S as BASE_OPACITY_COLORS,
19
- n as COMMON_COLORS,
20
- L as DEFAULT_PRESET,
21
- r as DEFAULT_SIZE,
22
- l as GREY_PALETTE,
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
- d as defaultPresetColors,
25
- x as fnComponentsOverrides,
26
- h as getColorPresets,
27
- U as getColorState,
28
- w as getPaletteByPreset,
29
- G as getUserThemeOptions,
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
- P as presetsOptionsMainColor,
33
- v as pxToRem,
34
- y as remToPx,
35
- F as responsiveFontSizes,
45
+ R as presetsOptionsMainColor,
46
+ z as pxToRem,
47
+ b as remToPx,
48
+ k as responsiveFontSizes,
36
49
  m as shadows,
37
- _ as typography,
38
- A as useResponsive
50
+ M as typographyOld,
51
+ Z as useResponsive
39
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.18",
3
+ "version": "7.1.19",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
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 type { M4LTypographyVariants } from './typography';
5
+ export * from './typographyOld';
6
6
  export * from './sizes';
7
7
  export { fnComponentsOverrides } from './overrides';
@@ -0,0 +1,7 @@
1
+ export * from './baseFontSize';
2
+ export * from './baseLetterSpacing';
3
+ export * from './baseLineHeight';
4
+ export * from './baseWeight';
5
+ export * from './types';
6
+ export * from './typography';
7
+ export * from './typographySizes';
@@ -0,0 +1 @@
1
+
@@ -112,3 +112,9 @@ export interface Typography {
112
112
  weight: BaseWeight;
113
113
  letterSpacing: string;
114
114
  }
115
+ export type FontProps = {
116
+ fontSize: string;
117
+ fontWeight: number;
118
+ lineHeight: string;
119
+ letterSpacing: string;
120
+ };
@@ -0,0 +1 @@
1
+
@@ -1,23 +1,4 @@
1
- export type FontProps = {
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
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
- /* Definindo en Patronus */
128
+ // Definindo en Patronus
129
129
  action: {
130
130
  fontWeight: 600,
131
131
  lineHeight: "16px",
@@ -35,7 +35,7 @@ const l = {
35
35
  text: {
36
36
  primary: s.onyx[20],
37
37
  secondary: s.coolGrey[50],
38
- disabled: s.oxford[30]
38
+ disabled: s.coolGrey[10]
39
39
  },
40
40
  background: {
41
41
  default: s.marbleLight[10],
@@ -1,5 +1,5 @@
1
1
  import { createTheme as p, alpha as s } from "@mui/material";
2
- import { t as o } from "../theme/typography.js";
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";