react-select
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -45,8 +45,6 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.browser.cjs.js'); | ||
require('../../dist/chunk-c9662232.browser.cjs.js'); | ||
var __chunk_2 = require('../../dist/chunk-efbed3c1.browser.cjs.js'); | ||
var __chunk_2 = require('../../dist/chunk-c67d1d4f.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -53,0 +51,0 @@ |
@@ -17,5 +17,4 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.browser.esm.js'; | ||
import { x as exportedEqual, w as defaultComponents } from '../../dist/chunk-ca26b926.browser.esm.js'; | ||
import '../../dist/chunk-39d3fda8.browser.esm.js'; | ||
import { x as exportedEqual, w as defaultComponents } from '../../dist/chunk-80640036.browser.esm.js'; | ||
import '@emotion/css'; | ||
@@ -22,0 +21,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -45,8 +45,6 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.cjs.dev.js'); | ||
require('../../dist/chunk-c9662232.cjs.dev.js'); | ||
var __chunk_2 = require('../../dist/chunk-efbed3c1.cjs.dev.js'); | ||
var __chunk_2 = require('../../dist/chunk-c67d1d4f.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -53,0 +51,0 @@ |
@@ -14,5 +14,5 @@ "use strict"; | ||
require("@emotion/core"), require("react-dom"), require("prop-types"), require("@babel/runtime/helpers/typeof"), | ||
require("raf"), require("../../dist/chunk-c9662232.cjs.prod.js"); | ||
require("../../dist/chunk-f83207f0.cjs.prod.js"); | ||
var __chunk_2 = require("../../dist/chunk-5b70513c.cjs.prod.js"); | ||
var __chunk_2 = require("../../dist/chunk-4ceb843c.cjs.prod.js"); | ||
@@ -19,0 +19,0 @@ require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), |
@@ -17,5 +17,4 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.esm.js'; | ||
import { x as exportedEqual, w as defaultComponents } from '../../dist/chunk-ca26b926.esm.js'; | ||
import '../../dist/chunk-39d3fda8.esm.js'; | ||
import { x as exportedEqual, w as defaultComponents } from '../../dist/chunk-80640036.esm.js'; | ||
import '@emotion/css'; | ||
@@ -22,0 +21,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -41,10 +41,8 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.browser.cjs.js'); | ||
require('../../dist/chunk-c9662232.browser.cjs.js'); | ||
require('../../dist/chunk-efbed3c1.browser.cjs.js'); | ||
require('../../dist/chunk-c67d1d4f.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-306fdb60.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-a3c834cb.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -51,0 +49,0 @@ |
@@ -18,6 +18,5 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.browser.esm.js'; | ||
import '../../dist/chunk-ca26b926.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
import '../../dist/chunk-39d3fda8.browser.esm.js'; | ||
import '../../dist/chunk-80640036.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
import '@emotion/css'; | ||
@@ -24,0 +23,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -41,10 +41,8 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.cjs.dev.js'); | ||
require('../../dist/chunk-c9662232.cjs.dev.js'); | ||
require('../../dist/chunk-efbed3c1.cjs.dev.js'); | ||
require('../../dist/chunk-c67d1d4f.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-fa835eff.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-9d561efb.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -51,0 +49,0 @@ |
@@ -12,5 +12,5 @@ "use strict"; | ||
require("@emotion/core"), require("react-dom"), require("prop-types"), require("@babel/runtime/helpers/typeof"), | ||
require("raf"), require("../../dist/chunk-c9662232.cjs.prod.js"), require("../../dist/chunk-5b70513c.cjs.prod.js"); | ||
require("../../dist/chunk-f83207f0.cjs.prod.js"), require("../../dist/chunk-4ceb843c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-f5f8408c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-6a71131f.cjs.prod.js"); | ||
@@ -17,0 +17,0 @@ require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), |
@@ -18,6 +18,5 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.esm.js'; | ||
import '../../dist/chunk-ca26b926.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-d1e1628e.esm.js'; | ||
import '../../dist/chunk-39d3fda8.esm.js'; | ||
import '../../dist/chunk-80640036.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-105b2afe.esm.js'; | ||
import '@emotion/css'; | ||
@@ -24,0 +23,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
var __chunk_1 = require('../../dist/chunk-f83207f0.browser.cjs.js'); | ||
var __chunk_1 = require('../../dist/chunk-c9662232.browser.cjs.js'); | ||
require('../../dist/chunk-efbed3c1.browser.cjs.js'); | ||
require('../../dist/chunk-c67d1d4f.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-306fdb60.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-a3c834cb.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -57,0 +55,0 @@ |
@@ -18,6 +18,5 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import { k as handleInputChange } from '../../dist/chunk-e8ae4b0f.browser.esm.js'; | ||
import '../../dist/chunk-ca26b926.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
import { k as handleInputChange } from '../../dist/chunk-39d3fda8.browser.esm.js'; | ||
import '../../dist/chunk-80640036.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
import '@emotion/css'; | ||
@@ -24,0 +23,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
var __chunk_1 = require('../../dist/chunk-f83207f0.cjs.dev.js'); | ||
var __chunk_1 = require('../../dist/chunk-c9662232.cjs.dev.js'); | ||
require('../../dist/chunk-efbed3c1.cjs.dev.js'); | ||
require('../../dist/chunk-c67d1d4f.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-fa835eff.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-9d561efb.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -57,0 +55,0 @@ |
@@ -18,9 +18,9 @@ "use strict"; | ||
require("memoize-one"), require("@emotion/core"), require("react-dom"), require("prop-types"), | ||
require("@babel/runtime/helpers/typeof"), require("raf"); | ||
require("@babel/runtime/helpers/typeof"); | ||
var __chunk_1 = require("../../dist/chunk-c9662232.cjs.prod.js"); | ||
var __chunk_1 = require("../../dist/chunk-f83207f0.cjs.prod.js"); | ||
require("../../dist/chunk-5b70513c.cjs.prod.js"); | ||
require("../../dist/chunk-4ceb843c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-f5f8408c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-6a71131f.cjs.prod.js"); | ||
@@ -27,0 +27,0 @@ require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), |
@@ -18,6 +18,5 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import { k as handleInputChange } from '../../dist/chunk-e8ae4b0f.esm.js'; | ||
import '../../dist/chunk-ca26b926.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-d1e1628e.esm.js'; | ||
import { k as handleInputChange } from '../../dist/chunk-39d3fda8.esm.js'; | ||
import '../../dist/chunk-80640036.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-105b2afe.esm.js'; | ||
import '@emotion/css'; | ||
@@ -24,0 +23,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -41,10 +41,8 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.browser.cjs.js'); | ||
require('../../dist/chunk-c9662232.browser.cjs.js'); | ||
require('../../dist/chunk-efbed3c1.browser.cjs.js'); | ||
require('../../dist/chunk-c67d1d4f.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-306fdb60.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-a3c834cb.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -51,0 +49,0 @@ |
@@ -18,8 +18,7 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.browser.esm.js'; | ||
import '../../dist/chunk-ca26b926.browser.esm.js'; | ||
export { S as default, d as defaultProps } from '../../dist/base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
import '../../dist/chunk-39d3fda8.browser.esm.js'; | ||
import '../../dist/chunk-80640036.browser.esm.js'; | ||
export { S as default, d as defaultProps } from '../../dist/base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
import '@emotion/css'; | ||
import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; | ||
import 'react-input-autosize'; |
@@ -41,10 +41,8 @@ 'use strict'; | ||
require('raf'); | ||
require('../../dist/chunk-f83207f0.cjs.dev.js'); | ||
require('../../dist/chunk-c9662232.cjs.dev.js'); | ||
require('../../dist/chunk-efbed3c1.cjs.dev.js'); | ||
require('../../dist/chunk-c67d1d4f.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-fa835eff.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-9d561efb.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -51,0 +49,0 @@ |
@@ -12,7 +12,7 @@ "use strict"; | ||
require("@emotion/core"), require("react-dom"), require("prop-types"), require("@babel/runtime/helpers/typeof"), | ||
require("raf"), require("../../dist/chunk-c9662232.cjs.prod.js"), require("../../dist/chunk-5b70513c.cjs.prod.js"); | ||
require("../../dist/chunk-f83207f0.cjs.prod.js"), require("../../dist/chunk-4ceb843c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-f5f8408c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-6a71131f.cjs.prod.js"); | ||
require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), | ||
require("react-input-autosize"), exports.default = reactSelect.Select, exports.defaultProps = reactSelect.defaultProps; |
@@ -18,8 +18,7 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import '../../dist/chunk-e8ae4b0f.esm.js'; | ||
import '../../dist/chunk-ca26b926.esm.js'; | ||
export { S as default, d as defaultProps } from '../../dist/base/dist/react-select-d1e1628e.esm.js'; | ||
import '../../dist/chunk-39d3fda8.esm.js'; | ||
import '../../dist/chunk-80640036.esm.js'; | ||
export { S as default, d as defaultProps } from '../../dist/base/dist/react-select-105b2afe.esm.js'; | ||
import '@emotion/css'; | ||
import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; | ||
import 'react-input-autosize'; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
var __chunk_1 = require('../../dist/chunk-f83207f0.browser.cjs.js'); | ||
var __chunk_1 = require('../../dist/chunk-c9662232.browser.cjs.js'); | ||
require('../../dist/chunk-efbed3c1.browser.cjs.js'); | ||
require('../../dist/chunk-c67d1d4f.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-306fdb60.browser.cjs.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-a3c834cb.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -122,3 +120,4 @@ | ||
onCreateOption = _this$props.onCreateOption, | ||
value = _this$props.value; | ||
value = _this$props.value, | ||
name = _this$props.name; | ||
@@ -136,3 +135,4 @@ if (actionMeta.action !== 'select-option') { | ||
var newActionMeta = { | ||
action: 'create-option' | ||
action: 'create-option', | ||
name: name | ||
}; | ||
@@ -200,6 +200,4 @@ | ||
var props = _extends({}, this.props); | ||
var options = this.state.options; | ||
return React__default.createElement(SelectComponent, _extends({}, props, { | ||
return React__default.createElement(SelectComponent, _extends({}, this.props, { | ||
ref: function ref(_ref) { | ||
@@ -206,0 +204,0 @@ _this2.select = _ref; |
@@ -18,6 +18,5 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import { f as cleanValue } from '../../dist/chunk-e8ae4b0f.browser.esm.js'; | ||
import '../../dist/chunk-ca26b926.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
import { f as cleanValue } from '../../dist/chunk-39d3fda8.browser.esm.js'; | ||
import '../../dist/chunk-80640036.browser.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
import '@emotion/css'; | ||
@@ -84,3 +83,4 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; | ||
onCreateOption = _this$props.onCreateOption, | ||
value = _this$props.value; | ||
value = _this$props.value, | ||
name = _this$props.name; | ||
@@ -98,3 +98,4 @@ if (actionMeta.action !== 'select-option') { | ||
var newActionMeta = { | ||
action: 'create-option' | ||
action: 'create-option', | ||
name: name | ||
}; | ||
@@ -162,6 +163,4 @@ | ||
var props = _extends({}, this.props); | ||
var options = this.state.options; | ||
return React.createElement(SelectComponent, _extends({}, props, { | ||
return React.createElement(SelectComponent, _extends({}, this.props, { | ||
ref: function ref(_ref) { | ||
@@ -168,0 +167,0 @@ _this2.select = _ref; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
var __chunk_1 = require('../../dist/chunk-f83207f0.cjs.dev.js'); | ||
var __chunk_1 = require('../../dist/chunk-c9662232.cjs.dev.js'); | ||
require('../../dist/chunk-efbed3c1.cjs.dev.js'); | ||
require('../../dist/chunk-c67d1d4f.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-fa835eff.cjs.dev.js'); | ||
var reactSelect = require('../../dist/base/dist/react-select-9d561efb.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -122,3 +120,4 @@ | ||
onCreateOption = _this$props.onCreateOption, | ||
value = _this$props.value; | ||
value = _this$props.value, | ||
name = _this$props.name; | ||
@@ -136,3 +135,4 @@ if (actionMeta.action !== 'select-option') { | ||
var newActionMeta = { | ||
action: 'create-option' | ||
action: 'create-option', | ||
name: name | ||
}; | ||
@@ -200,6 +200,4 @@ | ||
var props = _extends({}, this.props); | ||
var options = this.state.options; | ||
return React__default.createElement(SelectComponent, _extends({}, props, { | ||
return React__default.createElement(SelectComponent, _extends({}, this.props, { | ||
ref: function ref(_ref) { | ||
@@ -206,0 +204,0 @@ _this2.select = _ref; |
@@ -14,9 +14,9 @@ "use strict"; | ||
require("memoize-one"), require("@emotion/core"), require("react-dom"), require("prop-types"), | ||
require("@babel/runtime/helpers/typeof"), require("raf"); | ||
require("@babel/runtime/helpers/typeof"); | ||
var __chunk_1 = require("../../dist/chunk-c9662232.cjs.prod.js"); | ||
var __chunk_1 = require("../../dist/chunk-f83207f0.cjs.prod.js"); | ||
require("../../dist/chunk-5b70513c.cjs.prod.js"); | ||
require("../../dist/chunk-4ceb843c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-f5f8408c.cjs.prod.js"); | ||
var reactSelect = require("../../dist/base/dist/react-select-6a71131f.cjs.prod.js"); | ||
@@ -58,3 +58,3 @@ require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function(newValue, actionMeta) { | ||
var _this$props = _this.props, getNewOptionData = _this$props.getNewOptionData, inputValue = _this$props.inputValue, isMulti = _this$props.isMulti, onChange = _this$props.onChange, onCreateOption = _this$props.onCreateOption, value = _this$props.value; | ||
var _this$props = _this.props, getNewOptionData = _this$props.getNewOptionData, inputValue = _this$props.inputValue, isMulti = _this$props.isMulti, onChange = _this$props.onChange, onCreateOption = _this$props.onCreateOption, value = _this$props.value, name = _this$props.name; | ||
if ("select-option" !== actionMeta.action) return onChange(newValue, actionMeta); | ||
@@ -64,3 +64,4 @@ var newOption = _this.state.newOption, valueArray = Array.isArray(newValue) ? newValue : [ newValue ]; | ||
var newOptionData = getNewOptionData(inputValue, inputValue), newActionMeta = { | ||
action: "create-option" | ||
action: "create-option", | ||
name: name | ||
}; | ||
@@ -99,4 +100,4 @@ onChange(isMulti ? [].concat(_toConsumableArray(__chunk_1.cleanValue(value)), [ newOptionData ]) : newOptionData, newActionMeta); | ||
value: function() { | ||
var _this2 = this, props = _extends({}, this.props), options = this.state.options; | ||
return React__default.createElement(SelectComponent, _extends({}, props, { | ||
var _this2 = this, options = this.state.options; | ||
return React__default.createElement(SelectComponent, _extends({}, this.props, { | ||
ref: function(_ref) { | ||
@@ -103,0 +104,0 @@ _this2.select = _ref; |
@@ -18,6 +18,5 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import { f as cleanValue } from '../../dist/chunk-e8ae4b0f.esm.js'; | ||
import '../../dist/chunk-ca26b926.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-d1e1628e.esm.js'; | ||
import { f as cleanValue } from '../../dist/chunk-39d3fda8.esm.js'; | ||
import '../../dist/chunk-80640036.esm.js'; | ||
import { S as Select } from '../../dist/base/dist/react-select-105b2afe.esm.js'; | ||
import '@emotion/css'; | ||
@@ -84,3 +83,4 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; | ||
onCreateOption = _this$props.onCreateOption, | ||
value = _this$props.value; | ||
value = _this$props.value, | ||
name = _this$props.name; | ||
@@ -98,3 +98,4 @@ if (actionMeta.action !== 'select-option') { | ||
var newActionMeta = { | ||
action: 'create-option' | ||
action: 'create-option', | ||
name: name | ||
}; | ||
@@ -162,6 +163,4 @@ | ||
var props = _extends({}, this.props); | ||
var options = this.state.options; | ||
return React.createElement(SelectComponent, _extends({}, props, { | ||
return React.createElement(SelectComponent, _extends({}, this.props, { | ||
ref: function ref(_ref) { | ||
@@ -168,0 +167,0 @@ _this2.select = _ref; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
require('./chunk-f83207f0.browser.cjs.js'); | ||
require('./chunk-c9662232.browser.cjs.js'); | ||
var __chunk_2 = require('./chunk-efbed3c1.browser.cjs.js'); | ||
var __chunk_2 = require('./chunk-c67d1d4f.browser.cjs.js'); | ||
var reactSelect = require('./base/dist/react-select-306fdb60.browser.cjs.js'); | ||
var reactSelect = require('./base/dist/react-select-a3c834cb.browser.cjs.js'); | ||
require('@emotion/css'); | ||
@@ -57,0 +55,0 @@ |
@@ -18,7 +18,6 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import './chunk-e8ae4b0f.browser.esm.js'; | ||
export { y as components } from './chunk-ca26b926.browser.esm.js'; | ||
import { S as Select } from './base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
export { c as createFilter, a as defaultTheme, m as mergeStyles } from './base/dist/react-select-8ff87f0c.browser.esm.js'; | ||
import './chunk-39d3fda8.browser.esm.js'; | ||
export { y as components } from './chunk-80640036.browser.esm.js'; | ||
import { S as Select } from './base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
export { c as createFilter, a as defaultTheme, m as mergeStyles } from './base/dist/react-select-cac0a5ae.browser.esm.js'; | ||
import '@emotion/css'; | ||
@@ -25,0 +24,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
@@ -47,10 +47,8 @@ 'use strict'; | ||
require('raf'); | ||
require('./chunk-f83207f0.cjs.dev.js'); | ||
require('./chunk-c9662232.cjs.dev.js'); | ||
var __chunk_2 = require('./chunk-efbed3c1.cjs.dev.js'); | ||
var __chunk_2 = require('./chunk-c67d1d4f.cjs.dev.js'); | ||
var reactSelect = require('./base/dist/react-select-fa835eff.cjs.dev.js'); | ||
var reactSelect = require('./base/dist/react-select-9d561efb.cjs.dev.js'); | ||
require('@emotion/css'); | ||
@@ -57,0 +55,0 @@ |
@@ -15,5 +15,5 @@ "use strict"; | ||
require("react-dom"), require("prop-types"), require("@babel/runtime/helpers/typeof"), | ||
require("raf"), require("./chunk-c9662232.cjs.prod.js"); | ||
require("./chunk-f83207f0.cjs.prod.js"); | ||
var __chunk_2 = require("./chunk-5b70513c.cjs.prod.js"), reactSelect = require("./base/dist/react-select-f5f8408c.cjs.prod.js"); | ||
var __chunk_2 = require("./chunk-4ceb843c.cjs.prod.js"), reactSelect = require("./base/dist/react-select-6a71131f.cjs.prod.js"); | ||
@@ -20,0 +20,0 @@ require("@emotion/css"), require("@babel/runtime/helpers/taggedTemplateLiteral"), |
@@ -18,7 +18,6 @@ import '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
import '@babel/runtime/helpers/esm/typeof'; | ||
import 'raf'; | ||
import './chunk-e8ae4b0f.esm.js'; | ||
export { y as components } from './chunk-ca26b926.esm.js'; | ||
import { S as Select } from './base/dist/react-select-d1e1628e.esm.js'; | ||
export { c as createFilter, a as defaultTheme, m as mergeStyles } from './base/dist/react-select-d1e1628e.esm.js'; | ||
import './chunk-39d3fda8.esm.js'; | ||
export { y as components } from './chunk-80640036.esm.js'; | ||
import { S as Select } from './base/dist/react-select-105b2afe.esm.js'; | ||
export { c as createFilter, a as defaultTheme, m as mergeStyles } from './base/dist/react-select-105b2afe.esm.js'; | ||
import '@emotion/css'; | ||
@@ -25,0 +24,0 @@ import '@babel/runtime/helpers/esm/taggedTemplateLiteral'; |
{ | ||
"name": "react-select", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "A Select control built with and for ReactJS", | ||
@@ -19,6 +19,4 @@ "main": "dist/react-select.cjs.js", | ||
"@emotion/css": "^10.0.9", | ||
"classnames": "^2.2.5", | ||
"memoize-one": "^5.0.0", | ||
"prop-types": "^15.6.0", | ||
"raf": "^3.4.0", | ||
"react-input-autosize": "^2.2.2", | ||
@@ -72,2 +70,2 @@ "react-transition-group": "^2.2.1" | ||
} | ||
} | ||
} |
@@ -35,2 +35,4 @@ // @flow | ||
createOptionPosition: 'first' | 'last', | ||
/* Name of the HTML Input (optional - without this, no input will be rendered) */ | ||
name?: string, | ||
options?: OptionsType, | ||
@@ -133,2 +135,3 @@ inputValue: string, | ||
value, | ||
name, | ||
} = this.props; | ||
@@ -145,3 +148,3 @@ if (actionMeta.action !== 'select-option') { | ||
const newOptionData = getNewOptionData(inputValue, inputValue); | ||
const newActionMeta = { action: 'create-option' }; | ||
const newActionMeta = { action: 'create-option', name }; | ||
if (isMulti) { | ||
@@ -164,7 +167,6 @@ onChange([...cleanValue(value), newOptionData], newActionMeta); | ||
render() { | ||
const { ...props } = this.props; | ||
const { options } = this.state; | ||
return ( | ||
<SelectComponent | ||
{...props} | ||
{...this.props} | ||
ref={ref => { | ||
@@ -171,0 +173,0 @@ this.select = ref; |
@@ -1483,3 +1483,3 @@ // @flow | ||
if (isMulti) { | ||
const selectValues: Array<any> = selectValue.map(opt => { | ||
const selectValues: Array<any> = selectValue.map((opt, index) => { | ||
const isOptionFocused = opt === focusedValue; | ||
@@ -1498,2 +1498,3 @@ | ||
key={this.getOptionValue(opt)} | ||
index={index} | ||
removeProps={{ | ||
@@ -1500,0 +1501,0 @@ onClick: () => this.removeValue(opt), |
@@ -49,3 +49,3 @@ // @flow | ||
loadingIndicator?: StyleFn, | ||
loadingMessageCSS?: StyleFn, | ||
loadingMessage?: StyleFn, | ||
menu?: StyleFn, | ||
@@ -57,3 +57,3 @@ menuList?: StyleFn, | ||
multiValueRemove?: StyleFn, | ||
noOptionsMessageCSS?: StyleFn, | ||
noOptionsMessage?: StyleFn, | ||
option?: StyleFn, | ||
@@ -60,0 +60,0 @@ placeholder?: StyleFn, |
// @flow | ||
import raf from 'raf'; | ||
import { type ElementRef } from 'react'; | ||
@@ -179,3 +178,3 @@ import type { | ||
if (currentTime < duration) { | ||
raf(animateScroll); | ||
window.requestAnimationFrame(animateScroll); | ||
} else { | ||
@@ -182,0 +181,0 @@ callback(element); |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1410960
10
30318
2
- Removedclassnames@^2.2.5
- Removedraf@^3.4.0
- Removedclassnames@2.5.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedraf@3.4.1(transitive)