@m4l/styles 7.1.14 → 7.1.15

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.15",
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
  }
@@ -15,7 +15,6 @@ export interface CustomShadowOptions {
15
15
  dropdown: string;
16
16
  innerShadowContainer: string;
17
17
  innerShadowOutlinedText: string;
18
- innerShadowText: string;
19
18
  }
20
19
  /**
21
20
  * Create custom shadows for the theme
package/theme/shadows.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { alpha as x } from "@mui/material/styles";
2
2
  import { G as r } from "./palette/greyPalette.js";
3
- import { B as o } from "./palette/baseColors.js";
4
- import { C as s } from "./palette/commonColors.js";
5
- import { B as e } from "./palette/baseOpacityColors.js";
6
- const i = r[500], d = "#000000", a = (t) => {
3
+ import { B as e } from "./palette/baseColors.js";
4
+ import { C as o } from "./palette/commonColors.js";
5
+ const s = r[500], i = "#000000", a = (t) => {
7
6
  const p = x(t, 0.2), $ = x(t, 0.14), n = x(t, 0.12);
8
7
  return [
9
8
  "none",
@@ -32,19 +31,19 @@ const i = r[500], d = "#000000", a = (t) => {
32
31
  `0px 11px 14px -7px ${p},0px 23px 36px 3px ${$},0px 9px 44px 8px ${n}`,
33
32
  `0px 11px 15px -7px ${p},0px 24px 38px 3px ${$},0px 9px 46px 8px ${n}`
34
33
  ];
35
- }, h = (t) => {
34
+ }, O = (t) => {
36
35
  const p = {
37
- info: `0px 2px 8px 0px ${x(o.patronusBlue[50], 0.2)}`,
38
- secondary: `0px 2px 8px 0px ${x(o.patronusBlue[50], 0.24)}`,
39
- success: `0px 2px 8px 0px ${x(o.acidGreen[50], 0.2)}`,
40
- warning: `0px 2px 8px 0px ${x(o.middleYellow[50], 0.2)}`,
41
- error: `0px 2px 8px 0px ${x(o.flameRed[50], 0.2)}`,
36
+ info: `0px 2px 8px 0px ${x(e.patronusBlue[50], 0.2)}`,
37
+ secondary: `0px 2px 8px 0px ${x(e.patronusBlue[50], 0.24)}`,
38
+ success: `0px 2px 8px 0px ${x(e.acidGreen[50], 0.2)}`,
39
+ warning: `0px 2px 8px 0px ${x(e.middleYellow[50], 0.2)}`,
40
+ error: `0px 2px 8px 0px ${x(e.flameRed[50], 0.2)}`,
42
41
  //
43
42
  card: `0 0 2px 0 ${x(r[500], 0.2)}, 0 12px 24px -4px ${x(
44
43
  r[500],
45
44
  0.12
46
45
  )}`,
47
- dialog: `-40px 40px 80px -8px ${x(s.black, 0.24)}`,
46
+ dialog: `-40px 40px 80px -8px ${x(o.black, 0.24)}`,
48
47
  dropdown: `0 0 2px 0 ${x(r[500], 0.24)}, -20px 20px 40px -4px ${x(
49
48
  r[500],
50
49
  0.24
@@ -59,9 +58,8 @@ const i = r[500], d = "#000000", a = (t) => {
59
58
  // todo: solicitar a diseño crear token en base porque está quemado
60
59
  z4: `0px 12px 32px 4px ${x("#243B46", 0.12)}`,
61
60
  // todo: solicitar a diseño crear token en base porque está quemado
62
- innerShadowContainer: `2px 2px 4px 1px ${x(e.onyx[80] || "#1C2121", 0.6)} inset`,
63
- innerShadowOutlinedText: `2px 2px 6px 2px ${x(e.onyx[80] || "#1C2121", 0.48)} inset`,
64
- innerShadowText: `2px 2px 4px 2px ${x(e.onyx[80] || "#1C2121", 0.16)} inset`,
61
+ innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.7)} inset`,
62
+ innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
65
63
  ...p
66
64
  } : {
67
65
  z1: `0px 2px 2px 2px ${x("#000000", 0.16)}`,
@@ -72,16 +70,15 @@ const i = r[500], d = "#000000", a = (t) => {
72
70
  // todo: solicitar a diseño crear token en base porque está quemado
73
71
  z4: `0px 12px 32px 4px ${x("#09090A", 0.35)}`,
74
72
  // todo: solicitar a diseño crear token en base porque está quemado
75
- innerShadowContainer: `3px 3px 4px 1px ${x(e.onyx[80] || "#1C2121", 0.72)} inset`,
76
- innerShadowOutlinedText: `3px 3px 6px 2px ${x(e.onyx[80] || "#1C2121", 0.72)} inset`,
77
- innerShadowText: `2px 2px 4px 2px ${x(e.onyx[80] || "#1C2121", 0.72)} inset`,
73
+ innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.9)} inset`,
74
+ innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
78
75
  ...p
79
76
  };
80
- }, l = {
81
- light: a(i),
82
- dark: a(d)
77
+ }, m = {
78
+ light: a(s),
79
+ dark: a(i)
83
80
  };
84
81
  export {
85
- h as c,
86
- l as s
82
+ O as c,
83
+ m as s
87
84
  };
@@ -238,8 +238,4 @@ export declare const typography: {
238
238
  readonly fontWeight: 600;
239
239
  readonly lineHeight: "16px";
240
240
  };
241
- readonly fontSize: number;
242
- readonly fontWeightLight: React.CSSProperties["fontWeight"];
243
- readonly htmlFontSize: number;
244
- readonly pxToRem: (px: number) => string;
245
241
  };
@@ -1,8 +1,7 @@
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,
5
- fontFamily: n,
2
+ const i = "Inter, Segoe UI, Poppins, sans-serif", g = {
3
+ // ...baseTheme.typography,
4
+ fontFamily: i,
6
5
  fontWeightRegular: 400,
7
6
  fontWeightMedium: 600,
8
7
  fontWeightBold: 700,
@@ -130,5 +129,5 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
130
129
  }
131
130
  };
132
131
  export {
133
- l as t
132
+ g as t
134
133
  };
@@ -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
  }