Browse Source

Switched to react-select fork

Torkel Ödegaard 7 years ago
parent
commit
72b9cb9b9f

+ 1 - 1
package.json

@@ -155,7 +155,7 @@
     "react-popper": "^1.3.0",
     "react-highlight-words": "0.11.0",
     "react-redux": "^5.0.7",
-    "react-select": "2.1.0",
+    "@torkelo/react-select": "2.1.1",
     "react-sizeme": "^2.3.6",
     "react-table": "^6.8.6",
     "react-transition-group": "^2.2.1",

+ 2 - 2
public/app/core/components/Select/IndicatorsContainer.tsx

@@ -1,5 +1,5 @@
-import React from 'react';
-import { components } from 'react-select';
+import React from 'react';
+import { components } from '@torkelo/react-select';
 
 export const IndicatorsContainer = props => {
   const isOpen = props.selectProps.menuIsOpen;

+ 2 - 2
public/app/core/components/Select/NoOptionsMessage.tsx

@@ -1,6 +1,6 @@
 import React from 'react';
-import { components } from 'react-select';
-import { OptionProps } from 'react-select/lib/components/Option';
+import { components } from '@torkelo/react-select';
+import { OptionProps } from '@torkelo/react-select/lib/components/Option';
 
 export interface Props {
   children: Element;

+ 1 - 1
public/app/core/components/Select/PickerOption.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
-import { components } from 'react-select';
+import { components } from '@torkelo/react-select';
 import { OptionProps } from 'react-select/lib/components/Option';
 
 // https://github.com/JedWatson/react-select/issues/3038

+ 3 - 3
public/app/core/components/Select/Select.tsx

@@ -1,9 +1,9 @@
 // Libraries
 import classNames from 'classnames';
 import React, { PureComponent } from 'react';
-import { default as ReactSelect } from 'react-select';
-import { default as ReactAsyncSelect } from 'react-select/lib/Async';
-import { components } from 'react-select';
+import { default as ReactSelect } from '@torkelo/react-select';
+import { default as ReactAsyncSelect } from '@torkelo/react-select/lib/Async';
+import { components } from '@torkelo/react-select';
 
 // Components
 import { Option, SingleValue } from './PickerOption';

+ 3 - 2
public/app/core/components/TagFilter/TagFilter.tsx

@@ -1,10 +1,11 @@
 import React from 'react';
-import AsyncSelect from 'react-select/lib/Async';
+import AsyncSelect from '@torkelo/react-select/lib/Async';
+
 import { TagOption } from './TagOption';
 import { TagBadge } from './TagBadge';
 import IndicatorsContainer from 'app/core/components/Select/IndicatorsContainer';
 import NoOptionsMessage from 'app/core/components/Select/NoOptionsMessage';
-import { components } from 'react-select';
+import { components } from '@torkelo/react-select';
 import ResetStyles from 'app/core/components/Select/ResetStyles';
 
 export interface Props {

+ 1 - 1
public/app/core/components/TagFilter/TagOption.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
-import { components } from 'react-select';
+import { components } from '@torkelo/react-select';
 import { OptionProps } from 'react-select/lib/components/Option';
 import { TagBadge } from './TagBadge';
 

+ 1 - 1
public/app/features/explore/Explore.tsx

@@ -930,7 +930,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
             </button>
           </div>
           <div className="navbar-buttons relative">
-            <button className="btn navbar-button--primary" onClick={this.onSubmit}>
+            <button className="btn navbar-button navbar-button--primary" onClick={this.onSubmit}>
               Run Query{' '}
               {loading ? <i className="fa fa-spinner fa-spin run-icon" /> : <i className="fa fa-level-down run-icon" />}
             </button>

File diff suppressed because it is too large
+ 191 - 0
yarn.lock


Some files were not shown because too many files changed in this diff