@m4l/styles 7.1.15 → 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.15",
3
+ "version": "7.1.18",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
@@ -15,6 +15,7 @@ export interface CustomShadowOptions {
15
15
  dropdown: string;
16
16
  innerShadowContainer: string;
17
17
  innerShadowOutlinedText: string;
18
+ innerShadowText: string;
18
19
  }
19
20
  /**
20
21
  * Create custom shadows for the theme
package/theme/shadows.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { alpha as x } from "@mui/material/styles";
2
2
  import { G as r } from "./palette/greyPalette.js";
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) => {
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) => {
6
7
  const p = x(t, 0.2), $ = x(t, 0.14), n = x(t, 0.12);
7
8
  return [
8
9
  "none",
@@ -31,19 +32,19 @@ const s = r[500], i = "#000000", a = (t) => {
31
32
  `0px 11px 14px -7px ${p},0px 23px 36px 3px ${$},0px 9px 44px 8px ${n}`,
32
33
  `0px 11px 15px -7px ${p},0px 24px 38px 3px ${$},0px 9px 46px 8px ${n}`
33
34
  ];
34
- }, O = (t) => {
35
+ }, h = (t) => {
35
36
  const p = {
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)}`,
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)}`,
41
42
  //
42
43
  card: `0 0 2px 0 ${x(r[500], 0.2)}, 0 12px 24px -4px ${x(
43
44
  r[500],
44
45
  0.12
45
46
  )}`,
46
- dialog: `-40px 40px 80px -8px ${x(o.black, 0.24)}`,
47
+ dialog: `-40px 40px 80px -8px ${x(s.black, 0.24)}`,
47
48
  dropdown: `0 0 2px 0 ${x(r[500], 0.24)}, -20px 20px 40px -4px ${x(
48
49
  r[500],
49
50
  0.24
@@ -58,8 +59,9 @@ const s = r[500], i = "#000000", a = (t) => {
58
59
  // todo: solicitar a diseño crear token en base porque está quemado
59
60
  z4: `0px 12px 32px 4px ${x("#243B46", 0.12)}`,
60
61
  // todo: solicitar a diseño crear token en base porque está quemado
61
- innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.7)} inset`,
62
- innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
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`,
63
65
  ...p
64
66
  } : {
65
67
  z1: `0px 2px 2px 2px ${x("#000000", 0.16)}`,
@@ -70,15 +72,16 @@ const s = r[500], i = "#000000", a = (t) => {
70
72
  // todo: solicitar a diseño crear token en base porque está quemado
71
73
  z4: `0px 12px 32px 4px ${x("#09090A", 0.35)}`,
72
74
  // todo: solicitar a diseño crear token en base porque está quemado
73
- innerShadowContainer: `2px 2px 4px 1px ${x("#1C2121", 0.9)} inset`,
74
- innerShadowOutlinedText: `2px 2px 4px 1px ${x("#1C2121", 0.4)} inset`,
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`,
75
78
  ...p
76
79
  };
77
- }, m = {
78
- light: a(s),
79
- dark: a(i)
80
+ }, l = {
81
+ light: a(i),
82
+ dark: a(d)
80
83
  };
81
84
  export {
82
- O as c,
83
- m as s
85
+ h as c,
86
+ l as s
84
87
  };
@@ -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;
@@ -1,10 +1,14 @@
1
1
  import { a as e, p as t } from "../utils/getFontValue.js";
2
- const i = "Inter, Segoe UI, Poppins, sans-serif", g = {
2
+ const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
3
3
  // ...baseTheme.typography,
4
- fontFamily: i,
4
+ fontFamily: n,
5
5
  fontWeightRegular: 400,
6
6
  fontWeightMedium: 600,
7
7
  fontWeightBold: 700,
8
+ fontSize: 14,
9
+ fontWeightLight: 300,
10
+ htmlFontSize: 16,
11
+ pxToRem: (i) => `${i / 16}rem`,
8
12
  /* Definindo en Patronus */
9
13
  h1: {
10
14
  fontWeight: 600,
@@ -129,5 +133,5 @@ const i = "Inter, Segoe UI, Poppins, sans-serif", g = {
129
133
  }
130
134
  };
131
135
  export {
132
- g as t
136
+ o as t
133
137
  };