Skip to content

Commit

Permalink
Merge pull request #63 from uptick/fix/react-select-wrapper
Browse files Browse the repository at this point in the history
Update wrapper and tests
  • Loading branch information
tabby-or-not committed Aug 3, 2018
2 parents f034d30 + 4e39af5 commit 680fc8f
Show file tree
Hide file tree
Showing 12 changed files with 178 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/__snapshots__/ObjectList.demo.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports[`Storyshots object-list/demo interactive list 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -648,6 +649,7 @@ exports[`Storyshots object-list/demo interactive table 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down
26 changes: 26 additions & 0 deletions src/__snapshots__/ObjectList.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`Storyshots object-list all selected 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -635,6 +636,7 @@ exports[`Storyshots object-list can select all 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -1266,6 +1268,7 @@ exports[`Storyshots object-list can select items 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -1876,6 +1879,7 @@ exports[`Storyshots object-list has active filters 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -2155,6 +2159,7 @@ exports[`Storyshots object-list has active filters 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -2190,6 +2195,7 @@ exports[`Storyshots object-list has active filters 1`] = `
isMulti={false}
loadOptions={[Function]}
onChange={[Function]}
onInputChange={[Function]}
options={undefined}
placeholder="Any value"
styles={
Expand Down Expand Up @@ -2254,6 +2260,7 @@ exports[`Storyshots object-list has active filters 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -2338,6 +2345,7 @@ exports[`Storyshots object-list has active filters 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -2394,6 +2402,7 @@ exports[`Storyshots object-list has active filters 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand All @@ -2418,13 +2427,16 @@ exports[`Storyshots object-list has active filters 1`] = `
/>
</div>
<Select.Async
cacheOptions={true}
className="objectlist-current-filter__active-status"
defaultOptions={true}
getOptionLabel={[Function]}
getOptionValue={[Function]}
isMulti={true}
loadOptions={[Function]}
noOptionsMessage={[Function]}
onChange={[Function]}
onInputChange={[Function]}
options={undefined}
placeholder="Any value"
styles={
Expand Down Expand Up @@ -3297,6 +3309,7 @@ exports[`Storyshots object-list has everything 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -3570,6 +3583,7 @@ exports[`Storyshots object-list has everything 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -3605,6 +3619,7 @@ exports[`Storyshots object-list has everything 1`] = `
isMulti={false}
loadOptions={[Function]}
onChange={[Function]}
onInputChange={[Function]}
options={undefined}
placeholder="Any value"
styles={
Expand Down Expand Up @@ -3669,6 +3684,7 @@ exports[`Storyshots object-list has everything 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -3753,6 +3769,7 @@ exports[`Storyshots object-list has everything 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand Down Expand Up @@ -3809,6 +3826,7 @@ exports[`Storyshots object-list has everything 1`] = `
<Select
isClearable={false}
onChange={[Function]}
onInputChange={[Function]}
options={
Array [
Object {
Expand All @@ -3833,13 +3851,16 @@ exports[`Storyshots object-list has everything 1`] = `
/>
</div>
<Select.Async
cacheOptions={true}
className="objectlist-current-filter__active-status"
defaultOptions={true}
getOptionLabel={[Function]}
getOptionValue={[Function]}
isMulti={true}
loadOptions={[Function]}
noOptionsMessage={[Function]}
onChange={[Function]}
onInputChange={[Function]}
options={undefined}
placeholder="Any value"
styles={
Expand Down Expand Up @@ -4338,6 +4359,7 @@ exports[`Storyshots object-list has multiple pages 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -4818,6 +4840,7 @@ exports[`Storyshots object-list has optional fields 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -5341,6 +5364,7 @@ exports[`Storyshots object-list has search key 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -5815,6 +5839,7 @@ exports[`Storyshots object-list loading 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down Expand Up @@ -6305,6 +6330,7 @@ exports[`Storyshots object-list ready 1`] = `
getOptionLabel={[Function]}
getOptionValue={[Function]}
onChange={[Function]}
onInputChange={[Function]}
openMenuOnClick={true}
options={
Array [
Expand Down
Loading

0 comments on commit 680fc8f

Please sign in to comment.