{"_id":"rmc-drawer","_rev":"1-d7c3d43847e3b27b9e5f15ee2b07ed44","name":"rmc-drawer","dist-tags":{"latest":"0.4.11"},"versions":{"0.4.11":{"name":"rmc-drawer","version":"0.4.11","description":"drawer ui component for react","keywords":["react","react-component","react-drawer","drawer"],"engines":{"node":">=4.0.0"},"homepage":"https://github.com/react-component/m-drawer","author":"","repository":{"type":"git","url":"git+https://github.com/react-component/m-drawer.git"},"bugs":{"url":"https://github.com/react-component/m-drawer/issues"},"files":["es","lib","assets/*.css"],"license":"MIT","main":"./lib/index","module":"./es/index","config":{"port":8099},"scripts":{"build":"rc-tools run build","dist":"rc-tools run dist","compile":"rc-tools run compile --babel-runtime","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","test":"jest","coverage":"jest --coverage && cat ./coverage/lcov.info | coveralls"},"jest":{"collectCoverageFrom":["src/**/*"],"transform":{"\\.jsx?$":"./node_modules/rc-tools/scripts/jestPreprocessor.js"}},"devDependencies":{"coveralls":"^2.13.1","enzyme":"^2.6.0","enzyme-to-json":"^1.4.5","jest":"^18.0.0","pre-commit":"1.x","rc-tools":"6.x","react":"15.x","react-dom":"15.x","react-test-renderer":"^15.6.1"},"pre-commit":["lint"],"dependencies":{"babel-runtime":"6.x","classnames":"^2.2.4","prop-types":"^15.5.10"},"gitHead":"73e49e269ac5ea1527b5d3c9854d04d0657f455d","_id":"rmc-drawer@0.4.11","_npmVersion":"5.6.0","_nodeVersion":"8.6.0","_npmUser":{"name":"warmhug","email":"hualei5280@gmail.com"},"dist":{"integrity":"sha512-YfB9XEJ8iM0MMuLWAK4313uOxSM8NAljC8Cqun1KamXutglYTuRviUuTLNSOzV8HHPp5kNpsVduvPCGLWXvThw==","shasum":"9a8c6125a4ccd37b916f32f7e8b477d11d413ee3","tarball":"https://registry.npmjs.org/rmc-drawer/-/rmc-drawer-0.4.11.tgz","fileCount":8,"unpackedSize":43589,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9UmJCRA9TVsSAnZWagAAoQUP/ibmGJpt630KbKDwfalL\nI+iTkVMMYOJgP6LCo3HankNvYggY4o0FemwCpOOSZLi7LmEjiBAGsM2n2Fmx\nC0jaKd36/pDbpnoAG2hLbR3+W7khpZP9stUTamdiL8oUcAu61k9KKSRPtPiA\nAEAgQJf5EHzmAzzFjATAtbey32hrLl3lM8qgmHzuHxYwnnPk4iyi/58xbNCU\nC+ozGEYBTR3d5z8AbR5aF5t2o3kbsdXgrsEZ1KS99zIZqnQnnqChcysRErzo\n2eRjxIvMhTez8FNCStv534D0gNk07c85U9a7UFLw9JVE9yrPJNwMckmUU47Z\nQdyiU7NJBOkirpf3XasF68EpU+UH2EvAwqUZtva6AvcbTMrFsKuuWplxwGp4\nEi68ik2mOqUzEkY0uYPVxeuBroMAazq6ab4Kq3Edy48CmGVTuH0LqgJIOUDE\nPRLUPL7FsitZUjSgwXf3MgDwJ8AT+eKpz1u1WHDTrLXdNDJwQJcXx3VkhnuL\nkWCff8RUvV707e/1NIH8bId1C9Rg65dcHX4Za3P7MoMYpKRSRrqybLeSum5Y\nZ+COHkcUiyP8tECnEdWPsuD+Vh325x4gJ2zufao3sIefqu2VmxXF7Z5srilg\nsKegfG42Ufy6RPXkilgTHoSij0I05yDVqrZeeHpM/wfOmceZSedP4m+NR5ED\ngYen\r\n=0a6i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD3UqckqpifpGorbgu+5uG4TadFZUFjuJrc0O2YuqBAwIhANV2GW3W6JljjEs8GWrXqbdxKZ4JzpXZbhYC1GYvnQlE"}]},"maintainers":[{"name":"warmhug","email":"hualei5280@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rmc-drawer_0.4.11_1526024583902_0.8496233202680972"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-11T07:43:03.902Z","0.4.11":"2018-05-11T07:43:04.111Z","modified":"2022-05-16T01:58:31.631Z"},"maintainers":[{"name":"warmhug","email":"hualei5280@gmail.com"}],"description":"drawer ui component for react","homepage":"https://github.com/react-component/m-drawer","keywords":["react","react-component","react-drawer","drawer"],"repository":{"type":"git","url":"git+https://github.com/react-component/m-drawer.git"},"bugs":{"url":"https://github.com/react-component/m-drawer/issues"},"license":"MIT","readme":"# rmc-drawer\n---\n\nReact Drawer Component\n\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/rmc-drawer.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rmc-drawer\n[travis-image]: https://img.shields.io/travis/react-component/m-drawer.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/m-drawer\n[coveralls-image]: https://img.shields.io/coveralls/react-component/m-drawer.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/m-drawer?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/m-drawer.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/m-drawer\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/rmc-drawer.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rmc-drawer\n\n\n## Screenshots\n\n<img src=\"https://os.alipayobjects.com/rmsportal/gqhazYYGIaUmunx.png\" width=\"288\"/>\n\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8099/examples/\n\n\nonline example: http://react-component.github.io/m-drawer/\n\n\n## install\n\n\n[![rmc-drawer](https://nodei.co/npm/rmc-drawer.png)](https://npmjs.org/package/rmc-drawer)\n\n\n## Usage\n\n```js\nvar Drawer = require('rmc-drawer');\nvar React = require('react');\nReact.render(<Drawer />, container);\n```\n\n## API\n\n### props\n\n| Property name | Description | Type | Default |\n|---------------|-------------|------|---------|\n| className | additional css class of root dom node | String | '' |\n| prefixCls | prefix class | String | 'rmc-drawer' |\n| children | The main content | any | n/a |\n| style | container styles. | Object |  |\n| sidebarStyle | Inline styles. | Object | {} |\n| contentStyle | Inline styles. | Object | {} |\n| overlayStyle | Inline styles. | Object | {} |\n| dragHandleStyle | Inline styles. | Object | {} |\n| sidebar | The sidebar content | any | n/a |\n| onOpenChange | Callback called when the sidebar wants to change the open prop. Happens after sliding the sidebar and when the overlay is clicked when the sidebar is open. | Function | n/a |\n| open | If the sidebar should be open | Boolean | false |\n| position | where to place the sidebar | String | 'left', enum{'left', 'right', 'top', 'bottom'} |\n| docked | If the sidebar should be docked in document | Boolean | false |\n| transitions | If transitions should be enabled | Boolean | true |\n| touch | If touch gestures should be enabled | Boolean | true |\n| enableDragHandle | If dragHandle should be enabled | Boolean | true |\n| dragToggleDistance | Distance the sidebar has to be dragged before it will open/close after it is released. | Number | 30 |\n\n> change from [https://github.com/balloob/react-sidebar](https://github.com/balloob/react-sidebar)\n\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrmc-drawer is released under the MIT license.\n","readmeFilename":"README.md"}