@m4l/base 1.7.2 → 1.7.3-beta-fix-reports-viewer-chart-tab-resize.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/components/Icon/Icon.styles.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,SAAS,CAAC;AAkD1D,eAAO,MAAM,UAAU,EAAE,UAiExB,CAAC"}
1
+ {"version":3,"file":"Icon.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/components/Icon/Icon.styles.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,SAAS,CAAC;AAkD1D,eAAO,MAAM,UAAU,EAAE,UAmExB,CAAC"}
@@ -1,42 +1,42 @@
1
- import { getSizeStyles as a } from "../../utils/getSizeStyles/getSizeStyles.js";
2
- import { ICON_CLASSES as l } from "./constants.js";
1
+ import { getSizeStyles as l } from "../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { ICON_CLASSES as a } from "./constants.js";
3
3
  import { getOriginalSvgIconRootPaintStyles as d, ICON_SVG_SHAPE_SELECTOR as c } from "../../utils/getIconPaintStyles/getIconPaintStyles.js";
4
4
  const p = {
5
5
  small: 16,
6
6
  medium: 24
7
7
  };
8
- function u(t, i) {
9
- const e = t.vars?.palette ?? t.palette;
8
+ function u(e, i) {
9
+ const t = e.vars?.palette ?? e.palette;
10
10
  return i.split(".").reduce((s, n) => {
11
11
  if (s && typeof s == "object" && n in s)
12
12
  return s[n];
13
- }, e) ?? (i.includes(".") ? e.text.primary : i);
13
+ }, t) ?? (i.includes(".") ? t.text.primary : i);
14
14
  }
15
- function o(t, i = "medium") {
16
- if (t.vars?.size && t.generalSettings)
17
- return a(t, i, "base", (r) => ({
15
+ function o(e, i = "medium") {
16
+ if (e.vars?.size && e.generalSettings)
17
+ return l(e, i, "base", (r) => ({
18
18
  width: r,
19
19
  height: r
20
20
  }));
21
- const e = p[i];
21
+ const t = p[i];
22
22
  return {
23
- width: e,
24
- height: e
23
+ width: t,
24
+ height: t
25
25
  };
26
26
  }
27
- const k = {
27
+ const b = {
28
28
  /**
29
29
  * Root styles for the Icon component, handling both mask and non-mask strategies, as well as disabled and selected states.
30
30
  */
31
- root: ({ theme: t, ownerState: i }) => {
32
- const e = i?.disabled ? (t.vars?.palette ?? t.palette).text.disabled : i?.selected && i?.enabledSelected ? (t.vars?.palette ?? t.palette).primary.enabled : u(t, String(i?.color));
31
+ root: ({ theme: e, ownerState: i }) => {
32
+ const t = i?.disabled ? (e.vars?.palette ?? e.palette).text.disabled : i?.selected && i?.enabledSelected ? (e.vars?.palette ?? e.palette).primary.enabled : u(e, String(i?.color));
33
33
  return {
34
34
  display: i?.isSkeleton ? "none" : "flex",
35
35
  justifyContent: "center",
36
36
  alignItems: "center",
37
37
  width: "fit-content",
38
38
  transition: "transform 0.5s ease-in-out",
39
- ...o(t, i?.size ?? "medium"),
39
+ ...o(e, i?.size ?? "medium"),
40
40
  ...i?.isMaskStrategy === !1 && {
41
41
  "& .MuiSvgIcon-root": {
42
42
  width: "inherit",
@@ -44,13 +44,15 @@ const k = {
44
44
  display: "flex",
45
45
  alignItems: "center",
46
46
  justifyContent: "center",
47
- [c]: {
48
- fill: e
47
+ ...(!i?.originalColor || i?.disabled) && {
48
+ [c]: {
49
+ fill: t
50
+ }
49
51
  }
50
52
  }
51
53
  },
52
54
  ...i?.isMaskStrategy === !0 && {
53
- [`& .${l.icon}`]: {
55
+ [`& .${a.icon}`]: {
54
56
  maskPosition: "center",
55
57
  maskRepeat: "no-repeat",
56
58
  maskSize: "cover",
@@ -61,7 +63,7 @@ const k = {
61
63
  ...i?.rotationAngle && {
62
64
  transform: `rotate(${i.rotationAngle}deg)`
63
65
  },
64
- backgroundColor: e
66
+ backgroundColor: t
65
67
  }
66
68
  },
67
69
  ...i?.originalColor && d()
@@ -77,14 +79,14 @@ const k = {
77
79
  /**
78
80
  * Skeleton styles for the icon element when in loading state.
79
81
  */
80
- iconSkeleton: ({ theme: t, ownerState: i }) => ({
82
+ iconSkeleton: ({ theme: e, ownerState: i }) => ({
81
83
  "&": {
82
- borderRadius: t.size?.borderRadius?.r1 ?? t.shape.borderRadius,
83
- ...o(t, i?.size ?? "medium")
84
+ borderRadius: e.size?.borderRadius?.r1 ?? e.shape.borderRadius,
85
+ ...o(e, i?.size ?? "medium")
84
86
  }
85
87
  }),
86
88
  tooltip: {}
87
89
  };
88
90
  export {
89
- k as iconStyles
91
+ b as iconStyles
90
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/base",
3
- "version": "1.7.2",
3
+ "version": "1.7.3-beta-fix-reports-viewer-chart-tab-resize.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },