{"name":"rmc-dialog","version":"1.0.3","description":"mobile dialog ui component for react","keywords":["react","m-dialog","react-component","react-dialog","dialog","mobile dialog","ui"],"homepage":"http://github.com/react-component/m-dialog","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/m-dialog.git"},"bugs":{"url":"http://github.com/react-component/m-dialog/issues"},"licenses":"MIT","files":["lib","es","assets/*.css"],"main":"./lib/DialogWrap","module":"./es/DialogWrap","config":{"port":8007},"scripts":{"watch-tsc":"rc-tools run watch-tsc","build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","compile":"rc-tools run compile --babel-runtime","pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint --no-js-lint","karma":"rc-test run karma","saucelabs":"rc-test run saucelabs","test":"rc-test run test","chrome-test":"rc-test run chrome-test","coverage":"rc-test run coverage","rn-start":"node node_modules/react-native/local-cli/cli.js start"},"devDependencies":{"@types/mocha":"^2.2.32","@types/react":"~16.0.2","@types/react-dom":"15.5.1","@types/react-native":"^0.47.2","async":"^0.9.0","bluebird":"~2.9.30","bootstrap":"^3.3.6","expect.js":"~0.3.1","jquery":"^1.11.2","pre-commit":"1.x","rc-test":"^6.0.1","rc-tools":"6.x","react":"^15.5.0","react-dom":"^15.5.0","react-native":"~0.42.0","react-native-index-page":"~0.2.0"},"pre-commit":["lint"],"typings":"./lib/DialogWrap.d.ts","dependencies":{"babel-runtime":"6.x","rc-animate":"2.x"},"gitHead":"e66a965ec6bc1b0dd86f4af49534bdb919ef8426","_id":"rmc-dialog@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"silentcloud","email":"rjmuqiang@gmail.com"},"dist":{"integrity":"sha512-OSsp/hhSLxZpjMFQ30AlOUqnxyh2sN+49KDiYnCyrqnqXHuy3hJME/1TBxm+/RK9mS+z7TsqOzb/mzmj8AP4aQ==","shasum":"4ee8ab244a11229fc3ad85ee2638b69039880dca","tarball":"http://registry-npm.ywwl.com/rmc-dialog/download/rmc-dialog-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRxG2GIPZaiQVCND7P5VApJFcOJPx1HBMS59Uoh+HVkQIgBiBK1CU5h7CZJNa540qjEQp9Si5PGloDqDJTc8MZMu8="}],"size":13060,"noattachment":false,"key":"/rmc-dialog/-/rmc-dialog-1.0.3.tgz"},"maintainers":[{"name":"silentcloud","email":"rjmuqiang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rmc-dialog-1.0.3.tgz_1506670004250_0.9060082868672907"},"directories":{},"readme":"# m-dialog\n---\n\nreact dialog component for mobile\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-dialog.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rmc-dialog\n[travis-image]: https://img.shields.io/travis/react-component/m-dialog.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/m-dialog\n[coveralls-image]: https://img.shields.io/coveralls/react-component/m-dialog.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/m-dialog?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/m-dialog.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/m-dialog\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-dialog.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rmc-dialog\n\n## Screenshot\n\n<img src=\"http://gtms04.alicdn.com/tps/i4/TB1dp5lHXXXXXbmXpXXyVug.FXX-664-480.png\" />\n\n## Install\n\n[![rmc-dialog](https://nodei.co/npm/rmc-dialog.png)](https://npmjs.org/package/rmc-dialog)\n\n## Usage\n\n```js\nvar Dialog = require('rmc-dialog');\n\nReactDOM.render(\n  <Dialog title={title} onClose={callback1} visible>\n      <p>first dialog</p>\n  </Dialog>\n), document.getElementById('t1'));\n\n// use dialog\n```\n\n## API\n\n### rmc-dialog(web)\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n| prefixCls | The dialog dom node's prefixCls | String | `rmc-dialog` |\n| className | additional className for dialog | String |  |\n| wrapClassName | additional className for dialog wrap | String |  |\n| style | Root style for dialog element.Such as width, height | Object | {} |\n| zIndex | z-index | Number |  |\n| bodyStyle | body style for dialog body element.Such as height | Object | {} |\n| maskStyle | style for mask element. | Object | {} |\n| visible | current dialog's visible status | Boolean | false |\n| animation | part of dialog animation css class name | String |  |\n| maskAnimation | part of dialog's mask animation css class name | String |  |\n| transitionName | dialog animation css class name | String |  |\n| maskTransitionName | mask animation css class name | String |  |\n| title | Title of the dialog | String|React.Element |  |\n| footer | footer of the dialog | React.Element |  |\n| closable | whether show close button | Boolean | true |\n| mask | whether show mask | Boolean | true |\n| maskClosable | whether click mask to close | Boolean | true |\n| onClose | called when click close button or mask | function |  |\n\n### rmc-dialog/lib/Dialog (react-native)\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n| wrapStyle | style for modal wrap | Object | {} |\n| maskStyle | style for modal mask | Object | {} |\n| style | style for modal | Object | {} |\n| animationType | animation type for modal content, can be one of `none|fade|slide-up|slide-down` | String | slide-up |\n| animationDuration | animation duration | number | 300 |\n| visible | visible state | boolean | false |\n| animateAppear | whether animation on first show | boolean | false |\n| onClose | called when close | Function | ()=>void |\n| onAnimationEnd | called when animation end | Function | (visible:boolean)=>void (animationType !== 'none') |\n\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8007/examples/\n\nonline example: http://react-component.github.io/m-dialog/\n\n## react-native\n\n```\nnpm run rn-init\nnpm run watch-tsc\nreact-native start\nreact-native run-ios\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\n## License\n\nrmc-dialog is released under the MIT license.\n","publish_time":1506670004396,"_cnpm_publish_time":1506670004396,"dist-tags":{"beta":"0.0.1-alpha.4","latest":"1.1.1"}}