-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all component props along with the select props
- Loading branch information
Showing
7 changed files
with
98 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,9 +39,15 @@ const Control = < | |
|
||
const { | ||
field: { height, h, ...fieldStyles }, | ||
} = useMultiStyleConfig("Input", selectProps); | ||
} = useMultiStyleConfig("Input", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", selectProps); | ||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
/** | ||
* `@chakra-ui/[email protected]` introduced a breaking change that switched from using `h` to `height` for the Input sizing. | ||
|
@@ -106,7 +112,10 @@ export const IndicatorSeparator = < | |
|
||
const { chakraStyles } = selectProps; | ||
|
||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", selectProps); | ||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
const initialSx: SystemStyleObject = { | ||
opacity: 1, | ||
|
@@ -153,7 +162,10 @@ export const DropdownIndicator = < | |
|
||
const { chakraStyles } = selectProps; | ||
|
||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", selectProps); | ||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
const initialSx: SystemStyleObject = { | ||
display: "flex", | ||
|
@@ -223,7 +235,10 @@ export const ClearIndicator = < | |
|
||
const closeButtonStyles = useStyleConfig("CloseButton", selectProps); | ||
|
||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", selectProps); | ||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
const initialSx: SystemStyleObject = { | ||
...closeButtonStyles, | ||
|
@@ -296,7 +311,10 @@ export const LoadingIndicator = < | |
}; | ||
const spinnerSize = spinnerSizes[size]; | ||
|
||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", selectProps); | ||
const crsStyles = useMultiStyleConfig("ChakraReactSelect", { | ||
...selectProps, | ||
...props, | ||
}); | ||
|
||
const initialSx: SystemStyleObject = { | ||
marginRight: 3, | ||
|
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