Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: bump react-select to version 3.1.0 #624

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"react-dropzone": "^7.0.1",
"react-modal": "^3.11.1",
"react-router-dom": "^5.1.2",
"react-select": "^2.4.4"
"react-select": "^3.1.0"
},
"scripts": {
"start": "concurrently \"npm run server\" \"npm run start:app\"",
Expand Down
299 changes: 198 additions & 101 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"react-dropzone": "^4.2.11",
"react-modal": "^3.8.1",
"react-popper": "^1.3.3",
"react-select": "^2.2.0",
"react-select": "^3.1.0",
"react-transition-group": "~2.3.1"
},
"engines": {
Expand Down
453 changes: 349 additions & 104 deletions packages/Form/Input/select-multi/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/Form/Input/select-multi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@axa-fr/react-toolkit-core": "^1.3.12",
"@axa-fr/react-toolkit-form-core": "^1.3.12",
"prop-types": "^15.5.10",
"react-select": "^2.2.0"
"react-select": "^3.1.0"
},
"license": "MIT",
"publishConfig": {
Expand Down
5 changes: 3 additions & 2 deletions packages/Form/Input/select-multi/src/MultiSelect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import ReactSelect from 'react-select';
import ReactSelectAsync from 'react-select/async';

import {
Input,
Expand Down Expand Up @@ -29,9 +30,9 @@ const MultiSelect = props => {
noResultsText,
...otherProps
} = props;

const isDisabled = disabled || readOnly;
const SelectComponent = loadOptions ? ReactSelect.Async : ReactSelect;
const SelectComponent = loadOptions ? ReactSelectAsync : ReactSelect;

if (values != null) {
const newValues = options.reduce((acc, opt) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
<div
className="css-10nd86i react-select"
className="react-select css-2b097c-container"
onKeyDown={[Function]}
>
<div
className="css-vj8t7z"
className=" css-yk16xz-control"
onMouseDown={[Function]}
onTouchEnd={[Function]}
>
<div
className="css-1hwfws3"
className=" css-g1d714-ValueContainer"
>
<div
className="css-xwjg1b"
className="css-1rhbuit-multiValue"
>
<div
className="css-12jo7m5"
>
For fun
</div>
<div
className="css-1alnv5e"
className="css-xb97g8"
onClick={[Function]}
onMouseDown={[Function]}
onTouchEnd={[Function]}
>
<svg
aria-hidden="true"
className="css-19bqh2r"
className="css-6q0nyr-Svg"
focusable="false"
height={14}
viewBox="0 0 20 20"
Expand All @@ -42,22 +42,22 @@ exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
</div>
</div>
<div
className="css-xwjg1b"
className="css-1rhbuit-multiValue"
>
<div
className="css-12jo7m5"
>
For drink
</div>
<div
className="css-1alnv5e"
className="css-xb97g8"
onClick={[Function]}
onMouseDown={[Function]}
onTouchEnd={[Function]}
>
<svg
aria-hidden="true"
className="css-19bqh2r"
className="css-6q0nyr-Svg"
focusable="false"
height={14}
viewBox="0 0 20 20"
Expand All @@ -70,7 +70,7 @@ exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
</div>
</div>
<div
className="css-1g6gooi"
className="css-b8ldur-Input"
>
<div
className=""
Expand Down Expand Up @@ -98,6 +98,7 @@ exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
"boxSizing": "content-box",
"color": "inherit",
"fontSize": "inherit",
"label": "input",
"opacity": 1,
"outline": 0,
"padding": 0,
Expand Down Expand Up @@ -127,17 +128,17 @@ exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
</div>
</div>
<div
className="css-1wy0on6"
className=" css-1hb7zxy-IndicatorsContainer"
>
<div
aria-hidden="true"
className="css-1ep9fjw"
className=" css-tlfecz-indicatorContainer"
onMouseDown={[Function]}
onTouchEnd={[Function]}
>
<svg
aria-hidden="true"
className="css-19bqh2r"
className="css-6q0nyr-Svg"
focusable="false"
height={20}
viewBox="0 0 20 20"
Expand All @@ -149,17 +150,17 @@ exports[`<MultiSelect> renders MultiSelect correctly 1`] = `
</svg>
</div>
<span
className="css-d8oujb"
className=" css-1okebmr-indicatorSeparator"
/>
<div
aria-hidden="true"
className="css-1ep9fjw"
className=" css-tlfecz-indicatorContainer"
onMouseDown={[Function]}
onTouchEnd={[Function]}
>
<svg
aria-hidden="true"
className="css-19bqh2r"
className="css-6q0nyr-Svg"
focusable="false"
height={20}
viewBox="0 0 20 20"
Expand Down
Loading