Skip to content

Commit 971f4bc

Browse files
authored
Merge pull request #270 from csandman/chore/dep-update
2 parents baed0c1 + 3ef01e6 commit 971f4bc

21 files changed

+2031
-1296
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Feature request
44
url: https://github.com/csandman/chakra-react-select/discussions/categories/ideas
5-
about: Got an idea for a feature or want to propose a change? Then this is the place for you.
5+
about:
6+
Got an idea for a feature or want to propose a change? Then this is the
7+
place for you.
68
- name: Question on usage
79
url: https://github.com/csandman/chakra-react-select/discussions/categories/q-a
810
about: If you have a question regarding the usage of the library.

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"proseWrap": "always",
1515
"htmlWhitespaceSensitivity": "css",
1616
"endOfLine": "lf",
17+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
1718
"importOrder": [
1819
"^react$",
1920
"^@chakra-ui/react$",

LICENSE.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ MIT License
22

33
Copyright (c) 2022 Chris Sandvik
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,7 @@ However, as this button only appears when `isMulti` is passed, using this style
306306
could make more sense for a single select.
307307

308308
```js
309-
return (
310-
<Select useBasicStyles />
311-
);
309+
return <Select useBasicStyles />;
312310
```
313311

314312
![useBasicStyles](./github/use-basic-styles.png)
@@ -586,28 +584,30 @@ return (
586584
<Select
587585
menuPortalTarget={document.body}
588586
styles={{
589-
menuPortal: (provided) => ({ ...provided, zIndex: 100 })
590-
}}
591-
chakraStyles={{
592-
// All other component styles
587+
menuPortal: (provided) => ({ ...provided, zIndex: 100 }),
593588
}}
589+
chakraStyles={
590+
{
591+
// All other component styles
592+
}
593+
}
594594
/>
595-
)
595+
);
596596
```
597597

598598
2. Pass the `classNamePrefix` prop [as described below]() and style the
599599
`MenuPortal` with CSS using the className `prefix__menu-portal`.
600600

601601
```jsx
602602
// example.js
603-
import "styles.css"
603+
import "styles.css";
604604

605605
return (
606606
<Select
607607
menuPortalTarget={document.body}
608608
classNamePrefix="chakra-react-select"
609609
/>
610-
)
610+
);
611611
```
612612

613613
```css

0 commit comments

Comments
 (0)