-
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.
ToggleGroupControl: rewrite backdrop animation with framer motion sha…
…red layout animations (#50278) * Reuse previous implementation * Reset motion context in slot-fill * Memoize classes * Move layout group to root component * Use useLayoutEffect to apply internal state changes * CHANGELOG * Update snapshots * Expose motion context from the components package * Refactor inspector controls slot/fill to accept an array of context provider/values under fillprops.forwardedContext * Add framer motion context to the forwarded contexts in inspector controls slot/fill * Remove hardcoded motion provider from fill component, update slot fill storybook example * CHANGELOG update * Update as button group to also use useLayoutEffect * Use controlled version of the component in unit tests * Improve context provider storybook types * Fix register/deregister logic for toolspanel in inspector controls * extract useUpdateLayoutEffect to separate util hook * Better fillprops forwarded context type * Change docs to have controlled usage * Reuse types * Add defaultValue prop * Refactor component to handle both controlled and uncontrolled updates * Remove unused `useUpdateLayoutEffect` hook * Update unit tess: check both controlled and uncontrolled, use initialvalue * Introduce logic to distinguish undefined as controlled or uncontrolled update * Bring back README example to be uncontrolled, but use `defaultValue` * Update `defaultValue` prop description, add to README * Stop using deprecated `ReactText` type, use `string | number` instead * Add keyboard interaction with reset unit test * Add reset button to Storybook example * Refactor to ariakit * Pass props to `button` instead of `radio` * add support for uncontrolled without the `defaultValue` prop * Update snappshots * Restore README * Update CHANGELOG * Format * Fix format (again) * Remove unnecessary cast to string when using `useInstanceId` * Remove temporary Storybook changes * CHANGELOG
- Loading branch information
Showing
18 changed files
with
1,002 additions
and
390 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
Oops, something went wrong.