sag_components 2.0.0-beta190 → 2.0.0-beta191
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/dist/index.esm.js +24 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -12252,16 +12252,13 @@ const Td$1 = styled.td`
|
|
|
12252
12252
|
`;
|
|
12253
12253
|
const Tr = styled.tr`
|
|
12254
12254
|
border-bottom: 1px solid #f3f4f6;
|
|
12255
|
-
${
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
} = _ref;
|
|
12260
|
-
return enableHover && `&:hover {
|
|
12255
|
+
${({
|
|
12256
|
+
enableHover,
|
|
12257
|
+
selectHoverColor
|
|
12258
|
+
}) => enableHover && `&:hover {
|
|
12261
12259
|
background-color: ${selectHoverColor};
|
|
12262
12260
|
cursor: pointer;
|
|
12263
|
-
}
|
|
12264
|
-
}}
|
|
12261
|
+
}`}
|
|
12265
12262
|
`;
|
|
12266
12263
|
const InfoText = styled.div`
|
|
12267
12264
|
font-weight: 400;
|
|
@@ -39833,6 +39830,25 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
39833
39830
|
console.warn("TableBody: Invalid data or columns prop");
|
|
39834
39831
|
return null;
|
|
39835
39832
|
}
|
|
39833
|
+
|
|
39834
|
+
// Expose methods to parent component via ref
|
|
39835
|
+
useImperativeHandle(ref, () => ({
|
|
39836
|
+
clearFocus: () => {
|
|
39837
|
+
setFocusedRowIndex(null);
|
|
39838
|
+
setHoveredRowIndex(null);
|
|
39839
|
+
},
|
|
39840
|
+
setFocus: index => {
|
|
39841
|
+
setFocusedRowIndex(index);
|
|
39842
|
+
},
|
|
39843
|
+
getFocusedIndex: () => {
|
|
39844
|
+
return focusedRowIndex;
|
|
39845
|
+
},
|
|
39846
|
+
clearSelection: () => {
|
|
39847
|
+
setFocusedRowIndex(null);
|
|
39848
|
+
setHoveredRowIndex(null);
|
|
39849
|
+
setOpenDropdowns({});
|
|
39850
|
+
}
|
|
39851
|
+
}), [focusedRowIndex]);
|
|
39836
39852
|
useEffect(() => {
|
|
39837
39853
|
if (isCommentModalOpen && currentCommentRow !== null && data[currentCommentRow]) {
|
|
39838
39854
|
const initialText = data[currentCommentRow]?.Comments || "";
|