@omniumretail/component-library 1.2.99 → 1.3.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.
|
@@ -24859,7 +24859,6 @@ const ResponsiveTable = (props) => {
|
|
|
24859
24859
|
cellSelectionStyle,
|
|
24860
24860
|
renderSelectedCell,
|
|
24861
24861
|
useOrderedCellSelection = true
|
|
24862
|
-
// Por padrão mantém comportamento antigo
|
|
24863
24862
|
} = props;
|
|
24864
24863
|
const [customFilters, setCustomFilters] = useState([]);
|
|
24865
24864
|
const [customColumns, setCustomColumns] = useState([]);
|
|
@@ -25042,15 +25041,21 @@ const ResponsiveTable = (props) => {
|
|
|
25042
25041
|
);
|
|
25043
25042
|
}
|
|
25044
25043
|
if (!useOrderedCellSelection && isSelected) {
|
|
25044
|
+
const { value: cellValue, type, color } = typeof value === "object" ? value : { value, type: "", color: "" };
|
|
25045
25045
|
return /* @__PURE__ */ jsx(
|
|
25046
25046
|
"div",
|
|
25047
25047
|
{
|
|
25048
25048
|
onClick: (e) => {
|
|
25049
25049
|
e.stopPropagation();
|
|
25050
|
-
handleCellClick(record, key,
|
|
25050
|
+
handleCellClick(record, key, cellValue);
|
|
25051
25051
|
},
|
|
25052
|
-
className: classNames(
|
|
25053
|
-
|
|
25052
|
+
className: classNames(
|
|
25053
|
+
styles$7.selectableCell,
|
|
25054
|
+
isSelected && styles$7.selected,
|
|
25055
|
+
isSelected && styles$7.uniformSelection
|
|
25056
|
+
),
|
|
25057
|
+
style: { backgroundColor: isSelected ? color : void 0 },
|
|
25058
|
+
children: type ? /* @__PURE__ */ jsx(Tag, { color, children: type }) : cellValue
|
|
25054
25059
|
}
|
|
25055
25060
|
);
|
|
25056
25061
|
}
|