-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to index.ts so tsc can generate index.d.ts * typo * 5.6.2 * 5.6.3-0 * example of fixing the index.js generation issue * Convert index.js -> index.ts * 5.6.3-1 * snackbar context retrun typed correctly * uninstall unwanted dependencies * 5.6.3-2 * OS agnostic clean --------- Co-authored-by: Matthew Corner <[email protected]> Co-authored-by: Manjesh M Pillai <[email protected]>
- Loading branch information
1 parent
a96caab
commit 22fd53d
Showing
104 changed files
with
823 additions
and
572 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
import CanvasItem from "./CanvasItem"; | ||
|
||
export type CanvasItemProps = { | ||
/** | ||
* Aspect ratio of the item. If set, the item will be resized to keep the aspect ratio when resizing. If not set, the item will be resized freely. | ||
*/ | ||
aspectRatio?: number | boolean; | ||
/** | ||
* The height of the item. | ||
*/ | ||
height: number; | ||
/** | ||
* The left position of the item. | ||
*/ | ||
left: number; | ||
/** | ||
* The minimum height of the item. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* The minimum width of the item. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* Callback function when the item is clicked. | ||
* | ||
* **Signature** | ||
* | ||
* ``` | ||
* function(event: ReactMouseEvent<HTMLDivElement>) => void | ||
* ``` | ||
* event: The event source of the callback. | ||
*/ | ||
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void; | ||
/** | ||
* Callback function when the item is dragged. | ||
* | ||
* **Signature** | ||
* | ||
* ``` | ||
* function(top: number, left: number) => void | ||
* ``` | ||
* | ||
* top: The new top position of the item. | ||
* | ||
* left: The new left position of the item. | ||
*/ | ||
onDrag?: (top: number, left: number) => void; | ||
/** | ||
* Callback function when the item is resized. | ||
* | ||
* **Signature** | ||
* ``` | ||
* function({top: number, left: number, width: number, height: number, rotateAngle: number}, isShiftKey: boolean, type: string) => void | ||
* ``` | ||
* | ||
* top: The new top position of the item. | ||
* | ||
* left: The new left position of the item. | ||
* | ||
* width: The new width of the item. | ||
* | ||
* height: The new height of the item. | ||
* | ||
* rotateAngle: The new rotate angle of the item. | ||
* | ||
* isShiftKey: Whether the shift key is pressed. | ||
* | ||
* type: The type of the resize handle. | ||
*/ | ||
onResize?: ({ | ||
top, | ||
left, | ||
width, | ||
height, | ||
rotateAngle, | ||
isShiftKey, | ||
type | ||
}: { | ||
top: number; | ||
left: number; | ||
width: number; | ||
height: number; | ||
rotateAngle: number; | ||
isShiftKey: boolean; | ||
type: string; | ||
}) => void; | ||
/** | ||
* Callback function when the item is rotated. | ||
* | ||
* **Signature** | ||
* | ||
* ``` | ||
* function(rotateAngle: number) => void | ||
* ``` | ||
* | ||
* rotateAngle: The new rotate angle of the item. | ||
*/ | ||
onRotate?: (rotateAngle: number) => void; | ||
/** | ||
* The allowable resize directions of the item. Array of 'n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'. | ||
*/ | ||
resizeDirection?: "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw"[]; | ||
/** | ||
* The rotation angle of the item. | ||
*/ | ||
rotateAngle?: number; | ||
/** | ||
* Defines whether the item is selected. When the item is selected, the resize and rotate handles will be shown. | ||
*/ | ||
selected?: boolean; | ||
/** | ||
* The top position of the item. | ||
*/ | ||
top: number; | ||
/** | ||
* The width of the item. | ||
*/ | ||
width: number; | ||
/** | ||
* Z-index of the rectangle | ||
*/ | ||
zIndex?: number; | ||
}; | ||
|
||
export default CanvasItem as React.FC<CanvasItemProps>; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import TableCard from "./TableCard"; | ||
|
||
export type TableCardProps = { | ||
action?: React.ReactNode; | ||
tableContent?: [string, string | React.ReactNode][]; | ||
title?: string; | ||
}; | ||
|
||
declare const TableCard: React.FC<TableCardProps>; | ||
|
||
export default TableCard; | ||
export default TableCard as React.FC<TableCardProps>; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Copyright from "./Copyright"; | ||
|
||
export type CopyrightProps = {}; | ||
|
||
export default Copyright as React.FC<CopyrightProps>; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.