@m4l/styles 7.1.13 → 7.1.14-beta.3

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,10 +1,11 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.13",
3
+ "version": "7.1.14-beta.3",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
7
- "access": "public"
7
+ "access": "public",
8
+ "tag": "beta"
8
9
  },
9
10
  "lint-staged": {
10
11
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -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,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/styles";
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
  }