-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jagaapple/feature/add-kanban-story
# New Features - Add support for horizontal direction - Add `isLonely` Prop to Item component - Add `draggingCursorStyle` Prop to List component - Add a sample Kanban story # Changes and Fixes - Modify styles to support for collapsing margins - Fix to call `onDragEnd` callback function in disabled items - Rename `isDisabled` Prop of Item to `isLocked` - Fix to stack when a group has other elements - Change DOM node structures and delete `className` Prop from Item - Fix to clear a dragging node if a cursor leaves from items # Refactors - Rename some stories - Modify JS Doc
- Loading branch information
Showing
57 changed files
with
1,554 additions
and
644 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
export const setBodyStyle = (bodyElement: HTMLElement) => { | ||
export const setBodyStyle = (bodyElement: HTMLElement, draggingCusrsorStyle: string | undefined) => { | ||
// Disables to select elements in entire page. | ||
bodyElement.style.userSelect = "none"; | ||
|
||
// Applies a cursor style when dragging. | ||
if (draggingCusrsorStyle != undefined) bodyElement.style.cursor = draggingCusrsorStyle; | ||
}; | ||
|
||
export const clearBodyStyle = (bodyElement: HTMLElement) => { | ||
// Enables to select elements in entire page. | ||
bodyElement.style.removeProperty("user-select"); | ||
|
||
// Resets a cursor style when dragging. | ||
bodyElement.style.removeProperty("cursor"); | ||
}; |
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 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
Oops, something went wrong.