diff --git a/.eslintignore b/.eslintignore index cfc5357..02200bc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,5 @@ node_modules/ dist/ tmp/ +codemod/**/*.js +codemod/**/*.d.ts diff --git a/.eslintrc b/.eslintrc index 936c61e..ecf3faf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -63,5 +63,16 @@ } } ] - } + }, + "overrides": [ + { + "files": ["codemod/**/*.ts"], + "rules": { + "no-console": "off", + "@typescript-eslint/no-var-requires": "off", + "import/no-dynamic-require": "off", + "global-require": "off" + } + } + ] } diff --git a/LICENSE.md b/LICENSE.md index 6ec03aa..edaebea 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Chris Sandvik +Copyright (c) 2023 Chris Sandvik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index 1fbd433..e99c13a 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,17 @@ https://react-select.com/home - [`tagVariant`](#tagvariant--options-subtle--solid--outline--default-subtle) - [`isInvalid` / `isReadOnly`](#isinvalid--default-false--isreadonly---default-false) - [`focusBorderColor` / `errorBorderColor`](#focusbordercolor--default-blue500--errorbordercolor--default-red500) - - [`useBasicStyles`](#usebasicstyles--default-false) - [`selectedOptionStyle`](#selectedoptionstyle--options-color--check--default-color) - [`selectedOptionColorScheme`](#selectedoptioncolorscheme--default-blue) - [`variant`](#variant--options-outline--filled--flushed--unstyled--default-outline) + - [`useBasicStyles` (deprecated)](#usebasicstyles-deprecated) - [Styling](#styling) - [`chakraStyles`](#chakrastyles) - [Caveats](#caveats) - [Examples](#examples) - [Theme Styles](#theme-styles) + - [Extending the Theme](#extending-the-theme) + - [Examples](#examples-1) - [`className`](#classname) - [TypeScript Support](#typescript-support) - [Customizing Components](#customizing-components) @@ -293,30 +295,6 @@ return ( --- -#### `useBasicStyles` — Default: `false` - -If this prop is passed, the dropdown indicator at the right of the component -will be styled in the same way -[the original Chakra `Select` component](https://chakra-ui.com/docs/components/select) -is styled, instead of being styled as an -[`InputRightAddon`](https://chakra-ui.com/docs/components/input#left-and-right-addons). -The original purpose of styling it as an addon was to create a visual separation -between the dropdown indicator and the button for clearing the selected options. -However, as this button only appears when `isMulti` is passed, using this style -could make more sense for a single select. - -```js -return