@@ -526,9 +526,9 @@ The API for an individual style function looks like this:
526
526
527
527
``` js
528
528
/**
529
- * @param {CSSObject } provided -- The component's default Chakra styles
529
+ * @param {SystemStyleObject } provided -- The component's default Chakra styles
530
530
* @param {Object} state -- The component's current state e.g. `isFocused` (this gives all of the same props that are passed into the component)
531
- * @returns {CSSObject } An output style object which is forwarded to the component's `sx` prop
531
+ * @returns {SystemStyleObject } An output style object which is forwarded to the component's `sx` prop
532
532
*/
533
533
function option (provided , state ) {
534
534
return {
@@ -807,7 +807,7 @@ offered by this package:
807
807
`chakraStyles` that can be passed to customize the component styles. This is
808
808
almost identical to the built-in `StylesConfig` type, however, it uses
809
809
Chakra's
810
- [`CSSObject `](https://github.com/chakra-ui/chakra-ui/blob/790d2417a3f5d59e2d69229a027af671c2dc0cbc /packages/styled-system/src/system.types.ts#L81 )
810
+ [`SystemStyleObject `](https://github.com/chakra-ui/chakra-ui/blob/v2 /packages/styled-system/src/system.types.ts#L80 )
811
811
type instead of react-select's emotion styles. It also has the same three
812
812
generics as your `Select` component which would be required if you define your
813
813
styles separately from your component.
@@ -1042,7 +1042,7 @@ const App = () => (
1042
1042
components = { asyncComponents }
1043
1043
loadOptions = { (inputValue , callback ) => {
1044
1044
setTimeout (() => {
1045
- const values = colourOptions .filter ((i ) =>
1045
+ const values = colorOptions .filter ((i ) =>
1046
1046
i .label .toLowerCase ().includes (inputValue .toLowerCase ())
1047
1047
);
1048
1048
callback (values );
0 commit comments