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/package.json
CHANGED
|
@@ -19,7 +19,7 @@ const Drawer: FC<DrawerProps> = ({
|
|
|
19
19
|
leftSecondaryButtonProps = {},
|
|
20
20
|
showEditButton = false,
|
|
21
21
|
onEdit = () => {},
|
|
22
|
-
|
|
22
|
+
onCollapse = () => {},
|
|
23
23
|
overlay = false,
|
|
24
24
|
isFooterRequired = true,
|
|
25
25
|
footerContent = null,
|
|
@@ -49,9 +49,10 @@ const Drawer: FC<DrawerProps> = ({
|
|
|
49
49
|
handleEsc(onClose);
|
|
50
50
|
|
|
51
51
|
const toggleExpand = () => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
setIsExpanded((prev) => {
|
|
53
|
+
onCollapse(!prev);
|
|
54
|
+
return !prev;
|
|
55
|
+
});
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
const onCancel = () => {
|
|
@@ -118,6 +118,8 @@ export type CellComponentProps<Cell extends CellBase = CellBase> = {
|
|
|
118
118
|
setCellData: (cell: Cell) => void;
|
|
119
119
|
|
|
120
120
|
setContextMenu: React.Dispatch<React.SetStateAction<ContextMenuState>>;
|
|
121
|
+
contextClick:(event: React.MouseEvent) => void
|
|
122
|
+
|
|
121
123
|
};
|
|
122
124
|
|
|
123
125
|
/** Type of the Spreadsheet Cell component */
|