@m4l/styles 7.1.3 → 7.1.4

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,12 +1,12 @@
1
1
  import { D as r, g as s, m as t } from "./config.js";
2
2
  import { c as p, s as m } from "./theme/shadows.js";
3
- import { t as x } from "./theme/typography.js";
4
- import { f as O } from "./theme/overrides/index.js";
5
- import { B as S } from "./theme/palette/baseColors.js";
6
- import { B as n } from "./theme/palette/baseOpacityColors.js";
7
- import { C as l } from "./theme/palette/commonColors.js";
8
- import { G as P } from "./theme/palette/greyPalette.js";
9
- import { p as _ } from "./theme/palette/presetColors.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
10
  import { u as A } from "./utils/useResponsive.js";
11
11
  import { D as L, d, g as h } from "./utils/getColorPresets.js";
12
12
  import { p as v, r as y, a as F } from "./utils/getFontValue.js";
@@ -14,26 +14,26 @@ import { g as U } from "./utils/getColorState.js";
14
14
  import { g as w } from "./utils/getPaletteByPreset.js";
15
15
  import { g as G } from "./utils/getUserThemeOptions.js";
16
16
  export {
17
- S as BASE_COLORS,
18
- n as BASE_OPACITY_COLORS,
19
- l as COMMON_COLORS,
17
+ O as BASE_COLORS,
18
+ S as BASE_OPACITY_COLORS,
19
+ n as COMMON_COLORS,
20
20
  L as DEFAULT_PRESET,
21
21
  r as DEFAULT_SIZE,
22
- P as GREY_PALETTE,
22
+ l as GREY_PALETTE,
23
23
  p as createCustomShadows,
24
24
  d as defaultPresetColors,
25
- O as fnComponentsOverrides,
25
+ x as fnComponentsOverrides,
26
26
  h as getColorPresets,
27
27
  U as getColorState,
28
28
  w as getPaletteByPreset,
29
29
  G as getUserThemeOptions,
30
30
  s as globalRemSize,
31
31
  t as muiBreakpointsValues,
32
- _ as presetsOptionsMainColor,
32
+ P as presetsOptionsMainColor,
33
33
  v as pxToRem,
34
34
  y as remToPx,
35
35
  F as responsiveFontSizes,
36
36
  m as shadows,
37
- x as typography,
37
+ _ as typography,
38
38
  A as useResponsive
39
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
package/theme/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export type { CustomShadowOptions } from './shadows';
2
2
  export { shadows, createCustomShadows } from './shadows';
3
3
  export * from './palette';
4
- export { typography } from './typography';
4
+ export * from './typography';
5
5
  export type { M4LTypographyVariants } from './typography';
6
6
  export * from './sizes';
7
7
  export { fnComponentsOverrides } from './overrides';
@@ -1,5 +1,5 @@
1
- import { P as a } from "./presetSizes.js";
2
- const n = {
1
+ import { P as a, a as e } from "./presetSizes.js";
2
+ const i = {
3
3
  small: {
4
4
  base: a.base.small,
5
5
  action: a.action.small,
@@ -15,24 +15,24 @@ const n = {
15
15
  action: a.action.large,
16
16
  container: a.container.large
17
17
  }
18
- }, i = {
18
+ }, o = {
19
19
  small: {
20
- base: a.base.small,
21
- action: a.action.small,
22
- container: a.container.small
20
+ base: e.base.small,
21
+ action: e.action.small,
22
+ container: e.container.small
23
23
  },
24
24
  medium: {
25
- base: a.base.medium,
26
- action: a.action.medium,
27
- container: a.container.medium
25
+ base: e.base.medium,
26
+ action: e.action.medium,
27
+ container: e.container.medium
28
28
  },
29
29
  large: {
30
- base: a.base.large,
31
- action: a.action.large,
32
- container: a.container.large
30
+ base: e.base.large,
31
+ action: e.action.large,
32
+ container: e.container.large
33
33
  }
34
34
  };
35
35
  export {
36
- n as P,
37
- i as a
36
+ i as P,
37
+ o as a
38
38
  };
@@ -1,5 +1,21 @@
1
1
  import { B as s } from "./baseSizes.js";
2
2
  const m = {
3
+ base: {
4
+ small: s.sp5,
5
+ medium: s.sp6,
6
+ large: s.sp7
7
+ },
8
+ action: {
9
+ small: s.sp7,
10
+ medium: s.sp8,
11
+ large: s.sp9
12
+ },
13
+ container: {
14
+ small: s.sp9,
15
+ medium: s.sp10,
16
+ large: s.sp11
17
+ }
18
+ }, p = {
3
19
  base: {
4
20
  small: s["sp3-5"],
5
21
  medium: s.sp4,
@@ -17,5 +33,6 @@ const m = {
17
33
  }
18
34
  };
19
35
  export {
20
- m as P
36
+ p as P,
37
+ m as a
21
38
  };
@@ -4,7 +4,10 @@ export type FontProps = {
4
4
  lineHeight: string;
5
5
  letterSpacing: string;
6
6
  };
7
- export type M4LTypographyVariants = 'h1' | 'h3' | 'h5' | 'subtitle' | 'subtitleDens' | 'paragraph' | 'paragraphDens' | 'body' | 'bodyDens' | 'action';
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';
8
11
  export interface TypographyVariants {
9
12
  subtitle: FontProps;
10
13
  subtitleDens: FontProps;
@@ -15,7 +18,7 @@ export interface TypographyVariants {
15
18
  action: FontProps;
16
19
  }
17
20
  export declare const typography: {
18
- readonly fontFamily: "Segoe UI, Poppins, sans-serif";
21
+ readonly fontFamily: "Inter, Segoe UI, Poppins, sans-serif";
19
22
  readonly fontWeightRegular: 400;
20
23
  readonly fontWeightMedium: 600;
21
24
  readonly fontWeightBold: 700;
@@ -1,6 +1,6 @@
1
1
  import { createTheme as i } from "@mui/material";
2
2
  import { a as e, p as t } from "../utils/getFontValue.js";
3
- const n = "Segoe UI, Poppins, sans-serif", g = i(), l = {
3
+ const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
4
4
  ...g.typography,
5
5
  fontFamily: n,
6
6
  fontWeightRegular: 400,