-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ColorPalette
, BorderBox
, BorderBoxControl
: polish and DRY prop …
…types, add default values (#45463) * BorderControl and BorderBoxControl: re-use `size` prop type instead of re-declaring it * BorderControl: move default value assignment to hook, reuse type declarations * BorderBoxControl: move default value assignment to hook, reuse type declarations * Reuse color types from ColorPalette * ColorPalette: re-use type defs for `onChange` prop * ColorPalette: improve type for popoverProps prop * BorderControl: re-use type def for `colors` from `ColorPalette` component * BorderControl: re-use type def for `enableAplha` from `ColorPalette` component * BorderControl: re-use type def for `__experimentalHasMultipleOrigins` and `__experimentalIsRenderedInSidebar` from `ColorPalette` component * BorderBoxControl: update `colors` and `__experimental*` props default values to follow the type * Add `false` default value for `enableAlpha` prop * Update READMEs * CHANGELOG * Apply suggestions from Aaron
- Loading branch information
Showing
15 changed files
with
172 additions
and
213 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
Oops, something went wrong.