{"name":"rc-select","version":"8.6.5-beta","keywords":["react","react-component","react-select","select"],"license":"MIT","_id":"rc-select@8.6.5-beta","maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"},{"name":"picodoth","email":"picodoth@gmail.com"},{"name":"warmhug","email":"hualei5280@gmail.com"},{"name":"yesmeck","email":"yesmeck@gmail.com"},{"name":"yiminghe","email":"yiminghe@gmail.com"},{"name":"yutingzhao1991","email":"yutingzhao1991@sina.com"},{"name":"zombiej","email":"smith3816@gmail.com"}],"homepage":"http://github.com/react-component/select","bugs":{"url":"http://github.com/react-component/select/issues"},"dist":{"shasum":"660810ef0bca3c97f6388a0af6e619781aa338a9","tarball":"http://registry-npm.ywwl.com/rc-select/download/rc-select-8.6.5-beta.tgz","fileCount":7,"integrity":"sha512-2P/XG43Rsc9hcDgQ2A1VDj0QxfKQi14vtfFmsBTouiCqoOOi6Omw5vLtw2ykZxum+kYciLVv3q7oWMV9HwBj/g==","signatures":[{"sig":"MEQCIBNLgB8OVvZHo/dfmah4PBtyARjWhyTHD+kKdPcAZuLtAiAcM014xfh6RoUvPJMQhB5Y2FhtLy0dqsMfUc+aJMoPmw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGGneCRA9TVsSAnZWagAAcM8QAIX1EI1VnpeekSU62QgG\nB1uabt9sFyO6iQb7LjfmP5Uof3ebJcSrYzoeJjmeP920t6LjWORY1KwB47XD\nrX1iDptyYmPeGgqFHU0zEGoA+sqgENLz0fEaIfGQXAzGYq4px0PVqfYM+fjK\nc3uy2LByD01cGjXPXC7HNoa0erXKcKvFed5MywtXTTHsOWgl2ShKyQuL43Vd\nCXm6enu3EuZ31lb9jCQPtSjQL4OnzLiVZ1RVGG7IUJc//s/rkEf1+0Vwa5VH\nxRf695kTkn4karSa4z5hC1NxcwA6CwJMdt+IbtZrYxxTZ95IvTfqZm5Ixg5d\nkxXvolktbitZ6n/0tUxFE7ew+GS49UzzR31dx2ABIBRRTVMvDILYkD0uvQG1\nXXMvNVTfTHGgEBxlfPlks9IoKtDrOWDExQw+MqEW6rfrBJCET4XZf64xGfUr\nCTC67+22ROtXHRYUhhF5VdXtkWZX7+caNBQlKl7k9YG6ZTivbGFpqm79DiPU\neb8N9KqoqGHexb1yJg8B6ayWx8epQEX43b8cryBkd3eyr/vx1SyEO1B583XN\nUEYTU8e98eTZlopq6LBDeWKA9ZfsxUEX9tZeoZ5yCrcaeCjGa40jFOy7lKlh\n2GvIg1KIRdZ1NJkxVQenSrb47ymwYAXgNppDlSl3kohQ7Ifd9CI87d8lQBNb\nWgE7\r\n=yTWy\r\n-----END PGP SIGNATURE-----\r\n","size":7514,"noattachment":false,"key":"/rc-select/-/rc-select-8.6.5-beta.tgz"},"main":"./lib/index","config":{"port":8003},"module":"./es/index","readme":"# rc-select\n---\n\nReact Select\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![gemnasium deps][gemnasium-image]][gemnasium-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-select.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-select\n[travis-image]: https://img.shields.io/travis/react-component/select.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/select\n[coveralls-image]: https://img.shields.io/coveralls/react-component/select.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/select?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/select.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/select\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rc-select.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-select\n\n## Screenshots\n\n<img src=\"https://tfsimg.alipay.com/images/T1CUBeXa0kXXXXXXXX.png\" />\n\n## Feature\n\n* support ie9,ie9+,chrome,firefox,safari\n\n### Keyboard\n\n* Open select (focus input || focus and click)\n* KeyDown/KeyUp/Enter to navigate menu\n\n## install\n\n[![rc-select](https://nodei.co/npm/rc-select.png)](https://npmjs.org/package/rc-select)\n\n## Usage\n\n### basic use\n\n```js\nimport Select, {Option, OptGroup} from 'rc-select';\n\nvar c = (\n  <Select>\n    <Option value=\"jack\">jack</Option>\n    <Option value=\"lucy\">lucy</Option>\n    <Option value=\"yiminghe\">yiminghe</Option>\n  </Select>\n);\nReact.render(c, container);\n```\n\n## API\n\n### Select props\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n|id | html id to set on the component wrapper | String | '' |\n|className | additional css class of root dom node | String | '' |\n|data-\\* | html data attributes to set on the component wrapper | String | '' |\n|prefixCls | prefix class | String | '' |\n|animation | dropdown animation name. only support slide-up now | String | '' |\n|transitionName | dropdown css animation name | String | '' |\n|choiceTransitionName | css animation name for selected items at multiple mode | String | '' |\n|dropdownMatchSelectWidth | whether dropdown's with is same with select | bool | true |\n|dropdownClassName | additional className applied to dropdown | String | - |\n|dropdownStyle | additional style applied to dropdown | Object | {} |\n|dropdownAlign | additional align applied to dropdown | Object | {} |\n|dropdownMenuStyle | additional style applied to dropdown menu | Object | {} |\n|notFoundContent | specify content to show when no result matches. | String | 'Not Found' |\n|tokenSeparators | separator used to tokenize on tag/multiple mode | string[]? |  |\n|open | control select open | bool | |\n|defaultOpen | control select default open | bool | |\n|placeholder | select placeholder | React Node | |\n|showSearch | whether show search input in single mode | bool | true |\n|showArrow | whether show arrow in single mode | bool | true |\n|allowClear | whether allowClear | bool | false |\n|tags | when tagging is enabled the user can select from pre-existing options or create a new tag by picking the first choice, which is what the user has typed into the search box so far. | bool | false |\n|maxTagTextLength | max tag text length to show | number | - |\n|maxTagCount | max tag count to show | number | - |\n|maxTagPlaceholder | placeholder for omitted values | ReactNode/function(omittedValues) | - |\n|combobox | enable combobox mode(can not set multiple at the same time) | bool | false |\n|multiple | whether multiple select | bool | false |\n|disabled | whether disabled select | bool | false |\n|filterOption | whether filter options by input value. default filter by option's optionFilterProp prop's value | bool | true/Function(inputValue:string, option:Option) |\n|optionFilterProp | which prop value of option will be used for filter if filterOption is true | String | 'value' |\n|optionLabelProp | render option value or option children as content of select | String: 'value'/'children' | 'value' |\n|defaultValue | initial selected option(s) | String/Array<String> | - |\n|value | current selected option(s) | String/Array<String>/{key:String, label:React.Node}/Array<{key, label}> | - |\n|firstActiveValue | first active value when there is no value | String/Array<String> | - |\n|labelInValue| whether to embed label in value, see above value type | Bool | false |\n|backfill| whether backfill select option to search input (Only works in single and combobox mode) | Bool | false |\n|onChange | called when select an option or input value change(combobox) | function(value, option:Option/Array<Option>) | - |\n|onSearch | called when input changed | function | - |\n|onBlur | called when blur | function | - |\n|onFocus | called when focus | function | - |\n|onPopupScroll | called when menu is scrolled | function | - |\n|onSelect | called when a option is selected. param is option's value and option instance | Function(value, option:Option) | - |\n|onDeselect | called when a option is deselected. param is option's value. only called for multiple or tags | Function(value, option:Option) | - |\n|onInputKeyDown | called when key down on input | Function(event) | - |\n|defaultActiveFirstOption | whether active first option by default | bool | true |\n|getPopupContainer | container which popup select menu rendered into | function(trigger:Node):Node | function(){return document.body;} |\n|getInputElement| customize input element | function(): Element | - |\n|showAction| actions trigger the dropdown to show | String[]? | - |\n|autoFocus| focus select after mount | Bool | - |\n| autoClearSearchValue | auto clear search input value when multiple select is selected/deselected | boolean | true |\n| inputIcon | specify the select arrow icon | ReactNode | - |\n| clearIcon | specify the clear icon | ReactNode | - |\n| removeIcon | specify the remove icon | ReactNode | - |\n| menuItemSelectedIcon | specify the remove icon | ReactNode \\| (props: MenuItemProps) => ReactNode | - |\n| dropdownRender | render custom dropdown menu | (menu: React.Node, props: MenuProps) => ReactNode | - |\n| loading | show loading icon in arrow | Boolean | false |\n\n### Methods\n\n| name     | description    | parameters | return      |\n|----------|----------------|----------|--------------|\n|focus     | focus select programmably | - | - |\n|blur     | blur select programmably | - | - |\n\n### Option props\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n|className | additional class to option | String | '' |\n|disabled | no effect for click or keydown for this item | bool | false |\n|key | if react want you to set key, then key is same as value, you can omit value | String | - |\n|value | default filter by this attribute. if react want you to set key, then key is same as value, you can omit value | String | - |\n|title | if you are not satisfied with auto-generated `title` which is show while hovering on selected value, you can customize it with this property | String | - |\n\n\n### OptGroup props\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n|label | group label | String/React.Element | - |\n|key | - | String | - |\n|value | default filter by this attribute. if react want you to set key, then key is same as value, you can omit value | String | - |\n\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8003/examples/\n\nonline example: http://react-component.github.io/select/examples/\n\n## Test Case\n\n```\nnpm test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\n\n## License\n\nrc-select is released under the MIT license.\n","gitHead":"102205bd6d3155b07f33fc4d3c636e2c8d785ad8","scripts":{"pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","test":"jest","build":"rc-tools run build","start":"rc-tools run server","compile":"rc-tools run compile --babel-runtime","coverage":"jest --coverage","gh-pages":"rc-tools run gh-pages","lint:fix":"rc-tools run lint --fix","prettier":"rc-tools run prettier","prepublish":"rc-tools run guard","init-tslint":"rc-tools run init-tslint"},"_npmUser":{"name":"chenshuai2144","email":"wasd2144@hotmail.com"},"pre-commit":["lint"],"repository":{"url":"git+ssh://git@github.com/react-component/select.git","type":"git"},"_npmVersion":"6.4.1","description":"React Select","directories":{},"_nodeVersion":"11.4.0","dependencies":{"raf":"^3.4.0","rc-menu":"^7.3.0","rc-util":"^4.0.4","warning":"^4.0.2","classnames":"2.x","prop-types":"^15.5.8","rc-animate":"2.x","rc-trigger":"^2.5.4","babel-runtime":"^6.23.0","component-classes":"1.x","dom-scroll-into-view":"1.x","react-lifecycles-compat":"^3.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","jsonp":"^0.2.0","react":"^16.0.0","enzyme":"^3.8.0","rc-test":"^6.0.1","ts-jest":"^23.10.5","rc-tools":"8.4.2","rc-dialog":"7.3.0","react-dom":"^16.0.0","pre-commit":"1.x","typescript":"^3.2.2","@types/jest":"^23.3.10","querystring":"^0.2.0","@types/react":"^16.7.17","@types/enzyme":"^3.1.15","@types/warning":"^3.0.0","enzyme-to-json":"^3.1.4","@types/react-dom":"^16.0.11","@types/classnames":"^2.2.6","react-test-renderer":"^16.0.0","enzyme-adapter-react-16":"^1.7.1"},"_npmOperationalInternal":{"tmp":"tmp/rc-select_8.6.5-beta_1545103837623_0.7188986899458805","host":"s3://npm-registry-packages"},"publish_time":1545103837723,"_cnpm_publish_time":1545103837723,"dist-tags":{"beta":"8.6.7-alpha.0","latest":"14.16.8"}}