-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Popover: refactor to TypeScript (#43823)
* Rename files * First iteration of Popover props * Add types to component and default export * Type AnimatedWrapper, refactor logic to always render a `motion.div` * Remove unnused props from `ArrowTriangle` * Use intermediate variable for flip/resize fallback values when `__unstableForcePosition` is passed * Type PopoverSlot * Type resize middleware * Type onDialogClose & related * Type middleware array * Split and export different anchor ref types * Type ownerDocument ev listeners useEffect * Type internal state and ref callbacks * Type mergedFloatingRef * Fix type error in AnimatedWrapper s style * Type arrow styles * Simplify position pro definition * Type placement-based utils * Type getFrameOffset * Type getReferenceOwnerDocument * Make top and bottom props on anchorRef mandatory * Type getReferenceElement * anchorRef.startContainer is never undefined * No need to optional-chain anchorRef.current.ownerDocument * Remove TODO * Fix getFrameOffset signature * Simplify anchorRef types * Add type descriptions * Type `useDialog` hook * Add @deprecated tag for the range prop * Type Storybook examples * refactor BorderControl and BorderBoxControl * Add JSDoc description and example snippet to exported component * Add `placement` s default value * README * CHANGELOGs * Refine `position` types * Type the `shift` prop, mark `__unstableShift` as deprecated * focusOnMount typo * Fix onFocusOutside README type * fix getAnchorRect README type * Fix anchorRef README type * Fix children README type * Fix isAlternate README type * Remove unstable props from README, add deprecated range prop * Improve focusOnMount types on derived components * Do not display controls for `children` prop * Storybook feedback * Restore they way popoverProps was passed in BorderControl
- Loading branch information
Showing
16 changed files
with
582 additions
and
311 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
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
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.