@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.
- package/components/formatters/IconsFormatter/constants.d.ts +1 -0
- package/components/formatters/IconsFormatter/constants.js +8 -1
- package/components/formatters/IconsFormatter/helpers/renderIcon.js +2 -0
- package/components/formatters/IconsFormatter/slots/IconsFormatterSlots.js +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 {
|
|
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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|