-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improved drawer types & fixed drawer bugs (#68)
* refactor: improved drawer types & fixed drawer bugs * Apply suggestions from code review chore: review updates Co-authored-by: Navin Moorthy <[email protected]> * chore: review updates Co-authored-by: Navin Moorthy <[email protected]>
- Loading branch information
1 parent
66fb5a1
commit 4dc06ef
Showing
4 changed files
with
42 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,3 @@ | ||
const DRAWER_STATE_KEYS = [ | ||
"baseId", | ||
"unstable_idCountRef", | ||
"visible", | ||
"animated", | ||
"animating", | ||
"setBaseId", | ||
"show", | ||
"hide", | ||
"toggle", | ||
"setVisible", | ||
"setAnimated", | ||
"stopAnimation", | ||
"modal", | ||
"unstable_disclosureRef", | ||
"setModal", | ||
] as const; | ||
|
||
export const DRAWER_KEYS = [ | ||
...DRAWER_STATE_KEYS, | ||
"hideOnEsc", | ||
"hideOnClickOutside", | ||
"preventBodyScroll", | ||
"unstable_initialFocusRef", | ||
"unstable_finalFocusRef", | ||
"unstable_orphan", | ||
"unstable_autoFocusOnShow", | ||
"unstable_autoFocusOnHide", | ||
] as const; | ||
export const DRAWER_BACKDROP_KEYS = DRAWER_STATE_KEYS; | ||
export const DRAWER_DISCLOSURE_KEYS = DRAWER_BACKDROP_KEYS; | ||
// Automatically generated | ||
export const DRAWER_KEYS = ["placement"] as const; | ||
export const DRAWER_CLOSE_BUTTON_KEYS = [] as const; |
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