{"name":"rc-select","version":"9.2.1","keywords":["react","react-component","react-select","select"],"license":"MIT","_id":"rc-select@9.2.1","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":"0fbf47a933c36e1e6ef76c88fab32f58029e6a01","tarball":"http://registry-npm.ywwl.com/rc-select/download/rc-select-9.2.1.tgz","fileCount":37,"integrity":"sha512-nW/Zr2OCgxN26OX8ff3xcO1wK0e1l5ixnEfyN15Rbdk7TNI/rIPJIjPCQAoihRpk9A2C/GH8pahjlvKV1Vj++g==","signatures":[{"sig":"MEUCIDDwsK1O3CHYF2yb1PFCQjvPWUEMD7aFaX9ObQcYDtUNAiEAo3KdMFNYHyaFDYDiFr5yI9exK++FjhBI/8y3nho29SE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":255835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdObA1CRA9TVsSAnZWagAAJkQP/2dzSbTMYNJbVrAPAu5H\nPyOGkg24pLacBJ5D7zM5Atm7fbVDSXeKN+eChw3zAIDVCHKlMQHn5zBTrgaY\nqAsLSc2b+AkD9RrFhBavCR6SYGUzpJRIrSb9W8keV47Lzrx04F/q7/Y5Vka4\njJIXbo2k6tlN7Gs3q/7A2/XsVaMxFpwmVchipyPZDBdJHnQsx7oD1T2bPiHW\nm0p3x6m/yLdy9It044Gc0Su2jQU/fuwyAMFXzlVYlo1VoRCwLnrZkG2D/tKI\nwROUd2VoTc3KueXj2rlLfuHebb7c39rORK+Yu66XYEuWNPom1XMGE8hUrHah\nd8cMbHJwWuzOu/+G0mxzzsnZd2oR5XaVGolxBL/bloUgHRrdEVw8xvQN3E/R\nS+W6cDdr4tGo25eX4Il2pApmjQ7BCGvdU2py/B4um7rnPnw6TlIjjk5uEo9U\nl1jPB5YML9P7rrW7LaFhrqeg0mT406mG9PO1IBMYcErz4qaqvEdnnrrJSTxT\nNagy9TfqUaxjmVq5GeIPnz9facQB7VRWmQ5P+jSsVI5036OfjimBfw2ne2vB\ntfkwf9yRsr5l9978Wkmg5YXQo/V436eUhq1LYeioxnlCihJi/y146jybCI/W\nbeou77qTrqVWHcqLpeXOfmiSw2wcsrLnLXEsFVeJvPCZ+YkY8vIgd94Vxv2G\nrKJq\r\n=mad/\r\n-----END PGP SIGNATURE-----\r\n","size":51619,"noattachment":false,"key":"/rc-select/-/rc-select-9.2.1.tgz"},"main":"./lib/index","config":{"port":8003},"module":"./es/index","gitHead":"e5fa4959336f6a423b6e30652b9047510bb6f78f","scripts":{"pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","test":"rc-tools run test","build":"rc-tools run build","start":"rc-tools run storybook","compile":"rc-tools run compile --babel-runtime","coverage":"rc-tools run test --coverage","gh-pages":"rc-tools run gh-pages","lint:fix":"rc-tools run lint --fix","prettier":"rc-tools run prettier","now-build":"npm run build","pre-commit":"rc-tools run pre-commit","prepublish":"rc-tools run guard","init-tslint":"rc-tools run gen-lint-config","lint-staged":"lint-staged"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"pre-commit":["lint-staged"],"repository":{"url":"git+ssh://git@github.com/react-component/select.git","type":"git"},"_npmVersion":"6.4.1","description":"React Select","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["npm run pre-commit","git add"]},"_nodeVersion":"10.15.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,"devDependencies":{"jsonp":"^0.2.0","react":"^16.0.0","enzyme":"^3.8.0","rc-test":"^6.0.1","rc-tools":"^9.6.0","rc-dialog":"7.3.1","react-dom":"^16.0.0","@types/raf":"^3.4.0","pre-commit":"1.x","typescript":"^3.2.2","lint-staged":"^9.0.0","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_9.2.1_1564061748856_0.5149715393174137","host":"s3://npm-registry-packages"},"readme":"# rc-select\n\n---\n\nReact Select\n\n<!-- prettier-ignore -->\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-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/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/select\n[github-actions-image]: https://github.com/react-component/select/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/select/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/select/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/select\n[david-url]: https://david-dm.org/react-component/select\n[david-image]: https://david-dm.org/react-component/select/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/select?type=dev\n[david-dev-image]: https://david-dm.org/react-component/select/dev-status.svg?style=flat-square\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[bundlephobia-url]: https://bundlephobia.com/package/rc-select\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-select\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Screenshots\n\n<img src=\"https://gw.alipayobjects.com/zos/antfincdn/d13eUZlgdJ/tupian.png\" />\n\n## Feature\n\n- support IE11+,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```jsx | pure\nimport Select, { Option } from 'rc-select';\nimport 'rc-select/assets/index.css';\n\nexport default () => (\n  <Select>\n    <Option value=\"jack\">jack</Option>\n    <Option value=\"lucy\">lucy</Option>\n    <Option value=\"yiminghe\">yiminghe</Option>\n  </Select>\n);\n```\n\n## API\n\n### Select props\n\n<!-- prettier-ignore -->\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 width is same with select | boolean | true |\n| dropdownClassName | additional className applied to dropdown | String | - |\n| dropdownStyle | additional style applied to dropdown | React.CSSProperties | {} |\n| dropdownAlign | additional align applied to dropdown | [AlignType](https://github.com/react-component/trigger/blob/728d7e92394aa4b3214650f743fc47e1382dfa68/src/interface.ts#L25-L80) | {} |\n| dropdownMenuStyle | additional style applied to dropdown menu | Object | React.CSSProperties |\n| notFoundContent | specify content to show when no result matches. | ReactNode | 'Not Found' |\n| tokenSeparators | separator used to tokenize on tag/multiple mode | string[]? |  |\n| open | control select open | boolean |  |\n| defaultOpen | control select default open | boolean |  |\n| placeholder | select placeholder | React Node |  |\n| showSearch | whether show search input in single mode | boolean | true |\n| allowClear | whether allowClear | boolean | { clearIcon?: ReactNode } | 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. | boolean | false |\n| tagRender | render custom tags. | (props: CustomTagProps) => ReactNode | - |\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) | boolean | false |\n| multiple | whether multiple select | boolean | false |\n| disabled | whether disabled select | boolean | false |\n| filterOption | whether filter options by input value. default filter by option's optionFilterProp prop's value | boolean | 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| filterSort | Sort function for search options sorting, see [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)'s compareFunction. | Function(optionA:Option, optionB: Option) | - |\n| optionLabelProp | render option value or option children as content of select | String: 'value'/'children' | 'value' |\n| defaultValue | initial selected option(s) | String \\| String[] | - |\n| value | current selected option(s) | String \\| String[] \\| {key:String, label:React.Node} \\| {key:String, label:React.Node}[] | - |\n| labelInValue | whether to embed label in value, see above value type. Not support `combobox` mode | boolean | false |\n| backfill | whether backfill select option to search input (Only works in single and combobox mode) | boolean | false |\n| onChange | called when select an option or input value change(combobox) | function(value, option:Option \\| 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 | boolean | 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 | boolean | - |\n| autoClearSearchValue | auto clear search input value when multiple select is selected/deselected | boolean | true |\n| suffixIcon | specify the select arrow icon | ReactNode | - |\n| clearIcon | specify the clear icon | ReactNode | - |\n| removeIcon | specify the remove icon | ReactNode | - |\n| menuItemSelectedIcon | specify the item selected icon | ReactNode \\| (props: MenuItemProps) => ReactNode | - |\n| dropdownRender | render custom dropdown menu | (menu: React.Node) => ReactNode | - |\n| loading | show loading icon in arrow | boolean | false |\n| virtual | Disable virtual scroll | boolean | true |\n| direction | direction of dropdown | 'ltr' \\| 'rtl' | 'ltr' |\n| optionRender | Custom rendering options | (oriOption: FlattenOptionData\\<BaseOptionType\\> , info: { index: number }) => React.ReactNode | - |\n| labelRender  | Custom rendering label   |  (props: LabelInValueType) => React.ReactNode   | - |\n| maxCount | The max number of items can be selected | number | - |\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 | boolean | false |\n| key | if react want you to set key, then key is same as value, you can omit value | String/number | - |\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/number | - |\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### 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| className | same as `Option props` | String | '' |\n| title | same as `Option props`| String | - |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nlocal example: http://localhost:9001/\n\nonline example: http://select.react-component.now.sh/\n\n## Test Case\n\n```\nnpm test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\n## License\n\nrc-select is released under the MIT license.\n","publish_time":1564061748987,"_cnpm_publish_time":1564061748987,"dist-tags":{"beta":"8.6.7-alpha.0","latest":"14.16.8"}}