pixel-react-excel-sheet 1.0.37 → 1.0.38
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/lib/components/Drawer/Types.d.ts +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +5 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/Drawer/Drawer.tsx +5 -4
- package/src/components/Drawer/Types.ts +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +0 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +2 -0
package/lib/index.js
CHANGED
|
@@ -1122,7 +1122,7 @@ const Drawer = ({
|
|
|
1122
1122
|
leftSecondaryButtonProps = {},
|
|
1123
1123
|
showEditButton = false,
|
|
1124
1124
|
onEdit = () => {},
|
|
1125
|
-
|
|
1125
|
+
onCollapse = () => {},
|
|
1126
1126
|
overlay = false,
|
|
1127
1127
|
isFooterRequired = true,
|
|
1128
1128
|
footerContent = null,
|
|
@@ -1149,8 +1149,10 @@ const Drawer = ({
|
|
|
1149
1149
|
const handleEsc = useEscapeKey('Escape');
|
|
1150
1150
|
handleEsc(onClose);
|
|
1151
1151
|
const toggleExpand = () => {
|
|
1152
|
-
|
|
1153
|
-
|
|
1152
|
+
setIsExpanded(prev => {
|
|
1153
|
+
onCollapse(!prev);
|
|
1154
|
+
return !prev;
|
|
1155
|
+
});
|
|
1154
1156
|
};
|
|
1155
1157
|
const onCancel = () => {
|
|
1156
1158
|
if (secondaryButtonProps.onClick) {
|
|
@@ -31969,7 +31971,6 @@ const Cell = ({
|
|
|
31969
31971
|
}, [setCellDimensions, select, dragging, point]);
|
|
31970
31972
|
const contextClick = React__namespace.useCallback(event => {
|
|
31971
31973
|
event.preventDefault();
|
|
31972
|
-
console.log("Asdasd");
|
|
31973
31974
|
select(point);
|
|
31974
31975
|
setContextMenu({
|
|
31975
31976
|
open: true,
|