{"name":"rc-select","version":"10.2.0","keywords":["react","react-component","react-select","select"],"license":"MIT","_id":"rc-select@10.2.0","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":"27bb1708670f6e71153be9a03ddcfdc7dc1a13cb","tarball":"http://registry-npm.ywwl.com/rc-select/download/rc-select-10.2.0.tgz","fileCount":93,"integrity":"sha512-TeJTInbbDm8EQtrzStgeiAidIiw8IvHDv5fChmBrMaEujKWxAnyodabDxrlhvB9TYjG1sf7OQw0RiXANzV6nfg==","signatures":[{"sig":"MEYCIQCZlXI2DjwP8sBUYyCAV2BjmwoV1Z64vBXJ6Cg/ZC5LwAIhANx9R0/DF91rKtTvJXWqfw9xg7RaGZeDXKuv+6CZQ1Uz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":297737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejvfMCRA9TVsSAnZWagAA1MQP/jZ/dW8DxyMskiiy9Mb8\nVBoMJM6a1QpjUKoaN3K4qybmQraEq0hvs23CcMfXq/NvNheKEFCbsBSqoVYH\nzn1/wyrQ9Lc0MUxuT+LoSGX9bSJiHxIjMd2rxEsXE0/1DpSoMR1NjQMw270b\ndcI09zBFEsCppbvVmcKEAJ4s8lXlAKvV/MQFBiJ1KKY09Twijc1dkXsR6+vZ\nNZP6PFS53kj74AQ3ELJIqXWA9HDhwqalINcbJRsAhXj35My5C+YTX59rkFWu\nPIxxWUe7sDOr9KmFSyNI+Aw9OD5ZUO49HtE6aNCCb4R7igCfMf0TmxDRdX2b\nzxR9Oi9l+tGJdrzAyKGVIHITGzLz5Q9qhL6TzhVedbh0DQfYuDrTjd7Q+uT8\nR+wToTGEfjJZ10oXmt2AynlCrT252sXOHYpgHx79lrPadS1JWInjcVNmLtnn\nSnGLvVer14hjqHNqdRaTUxh/HUMkC12WxuHWWg3iOPRuF5xJkn3YZYYeFnjV\nbp0CN+JJBvOCI47SDg7AM1nrn787+difLAITLqkCpz8WS/mFBGh/SdSByNdE\nB74w8cQ6WTAsaNvsd8FFucambG0H69tHsGSFDLLxdRRJWRiF6Ru3JL6pl7D/\nHKGjBMt38b4sCI+5DtdjkNg3rzxpkcBLFw+lZyKtO5J7Lpc0iYJBUzfM14ah\nas8Z\r\n=ljwI\r\n-----END PGP SIGNATURE-----\r\n","size":50592,"noattachment":false,"key":"/rc-select/-/rc-select-10.2.0.tgz"},"main":"./lib/index","module":"./es/index","engines":{"node":">=8.x"},"gitHead":"d795e2e076d64482c3c949fff268f8ec5ff721e3","scripts":{"lint":"eslint src/ examples/ --ext .tsx,.ts,.jsx,.js","test":"father test","build":"father doc build --storybook","start":"cross-env NODE_ENV=development father doc dev --storybook","compile":"father build","now-build":"npm run build","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/select.git","type":"git"},"_npmVersion":"6.14.2","description":"React Select","directories":{},"_nodeVersion":"12.16.1","dependencies":{"rc-util":"^4.20.0","warning":"^4.0.3","classnames":"2.x","rc-animate":"^2.10.0","rc-trigger":"^4.0.0","rc-virtual-list":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"np":"^6.0.0","jsonp":"^0.2.1","enzyme":"^3.3.0","father":"^2.13.2","cross-env":"^7.0.0","rc-dialog":"^7.5.5","typescript":"^3.5.2","@types/jest":"^25.1.0","@types/react":"^16.8.19","@types/warning":"^3.0.0","enzyme-to-json":"^3.4.0","@types/react-dom":"^16.8.4"},"peerDependencies":{"react":"*","react-dom":"*"},"_npmOperationalInternal":{"tmp":"tmp/rc-select_10.2.0_1586427851454_0.5656716308845529","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":1586427851607,"_cnpm_publish_time":1586427851607,"dist-tags":{"beta":"8.6.7-alpha.0","latest":"14.16.8"}}