@m4l/components 9.4.3 → 9.4.5

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,2 @@
1
1
  export declare const ICONS_FORMATTER_KEY_COMPONENT = "M4LIconsFormatter";
2
+ export declare const ICONS_FORMATTER_CLASSES: Record<"icon" | "iconsContainer" | "iconClickeable", string>;
@@ -1,4 +1,11 @@
1
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
+ import { I as IconsFormatterSlots } from "./slots/IconsFormatterEnum.js";
1
3
  const ICONS_FORMATTER_KEY_COMPONENT = "M4LIconsFormatter";
4
+ const ICONS_FORMATTER_CLASSES = getComponentClasses(
5
+ ICONS_FORMATTER_KEY_COMPONENT,
6
+ IconsFormatterSlots
7
+ );
2
8
  export {
3
- ICONS_FORMATTER_KEY_COMPONENT as I
9
+ ICONS_FORMATTER_CLASSES as I,
10
+ ICONS_FORMATTER_KEY_COMPONENT as a
4
11
  };
@@ -1,4 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { I as ICONS_FORMATTER_CLASSES } from "../constants.js";
2
3
  import { I as IconClickeableStyled, a as IconStyled } from "../slots/IconsFormatterSlots.js";
3
4
  function renderIcon(iconConfig, key) {
4
5
  const { iconUrl, onClick, tooltip, dataTestId, color, visible, size } = iconConfig;
@@ -13,6 +14,7 @@ function renderIcon(iconConfig, key) {
13
14
  onClick,
14
15
  tooltipContent: tooltip,
15
16
  instaceDataTestId: dataTestId,
17
+ className: onClick ? ICONS_FORMATTER_CLASSES.iconClickeable : ICONS_FORMATTER_CLASSES.icon,
16
18
  color,
17
19
  size
18
20
  },
@@ -1,5 +1,5 @@
1
1
  import { styled } from "@mui/material";
2
- import { I as ICONS_FORMATTER_KEY_COMPONENT } from "../constants.js";
2
+ import { a as ICONS_FORMATTER_KEY_COMPONENT } from "../constants.js";
3
3
  import { I as IconsFormatterSlots } from "./IconsFormatterEnum.js";
4
4
  import { i as iconsFormatterStyles } from "../IconsFormatter.styles.js";
5
5
  import { I as Icon } from "../../../Icon/Icon.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.4.3",
3
+ "version": "9.4.5",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {