@m4l/styles 7.1.14 → 7.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.14",
3
+ "version": "7.1.18",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
@@ -34,7 +34,6 @@
34
34
  "*"
35
35
  ],
36
36
  "source": "./index.js",
37
- "main": "./index.js",
38
37
  "module": "./index.js",
39
38
  "types": "./index.d.ts",
40
39
  "type": "module",
@@ -43,5 +42,10 @@
43
42
  "node": ">=12.0.0"
44
43
  },
45
44
  "packageManager": "yarn@4.5.0",
46
- "private": false
45
+ "private": false,
46
+ "exports": {
47
+ ".": {
48
+ "import": "./index.js"
49
+ }
50
+ }
47
51
  }
@@ -22,6 +22,10 @@ export declare const typography: {
22
22
  readonly fontWeightRegular: 400;
23
23
  readonly fontWeightMedium: 600;
24
24
  readonly fontWeightBold: 700;
25
+ readonly fontSize: 14;
26
+ readonly fontWeightLight: 300;
27
+ readonly htmlFontSize: 16;
28
+ readonly pxToRem: (size: number) => string;
25
29
  readonly h1: {
26
30
  readonly '@media (min-width:0px)': {
27
31
  fontSize: string;
@@ -238,8 +242,4 @@ export declare const typography: {
238
242
  readonly fontWeight: 600;
239
243
  readonly lineHeight: "16px";
240
244
  };
241
- readonly fontSize: number;
242
- readonly fontWeightLight: React.CSSProperties["fontWeight"];
243
- readonly htmlFontSize: number;
244
- readonly pxToRem: (px: number) => string;
245
245
  };
@@ -1,11 +1,14 @@
1
- import { createTheme as i } from "@mui/material";
2
1
  import { a as e, p as t } from "../utils/getFontValue.js";
3
- const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
4
- ...g.typography,
2
+ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
3
+ // ...baseTheme.typography,
5
4
  fontFamily: n,
6
5
  fontWeightRegular: 400,
7
6
  fontWeightMedium: 600,
8
7
  fontWeightBold: 700,
8
+ fontSize: 14,
9
+ fontWeightLight: 300,
10
+ htmlFontSize: 16,
11
+ pxToRem: (i) => `${i / 16}rem`,
9
12
  /* Definindo en Patronus */
10
13
  h1: {
11
14
  fontWeight: 600,
@@ -130,5 +133,5 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
130
133
  }
131
134
  };
132
135
  export {
133
- l as t
136
+ o as t
134
137
  };
@@ -1,6 +1,6 @@
1
1
  import type { CustomShadowOptions } from '../theme';
2
2
  import type { Size } from '../theme/sizes/types';
3
- import { BaseChipColors } from './types';
3
+ import type { BaseChipColors } from './types';
4
4
 
5
5
  declare module '@mui/material' {
6
6
  interface Color {
@@ -1,4 +1,4 @@
1
- import { Theme } from '@mui/material/styles';
1
+ import { Theme } from '@mui/material';
2
2
  import { ThemeUserColor, ThemeUserMode } from '../types/types';
3
3
  /**
4
4
  * Obtiene el tema de la aplicación basado en el color y modo seleccionado por el usuario.
@@ -1,22 +1,23 @@
1
- import { createTheme as s, alpha as e } from "@mui/material/styles";
2
- import { t as a } from "../theme/typography.js";
3
- import { s as m, c as p } from "../theme/shadows.js";
1
+ import { createTheme as p, alpha as s } from "@mui/material";
2
+ import { t as o } from "../theme/typography.js";
3
+ import { s as e, c as m } from "../theme/shadows.js";
4
4
  import { S as i } from "../theme/sizes/size.js";
5
- import { g as c } from "./getColorPresets.js";
6
- import { g as f } from "./getPaletteByPreset.js";
7
- const o = s();
8
- function S(t, r) {
5
+ import { g } from "./getColorPresets.js";
6
+ import { g as y } from "./getPaletteByPreset.js";
7
+ function S(r, a) {
8
+ const t = p();
9
9
  return {
10
+ ...t,
11
+ ...t.typography,
10
12
  ...o,
11
- ...a,
12
- ...m[t],
13
+ ...e[r],
13
14
  customShadows: {
14
- primary: `0 8px 16px 0 ${e(c(r).main, 0.2)}`,
15
- ...p(t)
15
+ primary: `0 8px 16px 0 ${s(g(a).main, 0.2)}`,
16
+ ...m(r)
16
17
  },
17
18
  stretch: !0,
18
- palette: { ...o.palette, ...f(r)[t] },
19
- typography: a,
19
+ palette: { ...t.palette, ...y(a)[r] },
20
+ typography: { ...t.typography, ...o },
20
21
  size: i
21
22
  };
22
23
  }