{"name":"rc-dialog","version":"10.0.0","keywords":["react","react-component","react-dialog","dialog","ui"],"author":{"name":"yiminghe@gmail.com"},"license":"MIT","_id":"rc-dialog@10.0.0","homepage":"http://github.com/react-component/dialog","bugs":{"url":"http://github.com/react-component/dialog/issues"},"dist":{"shasum":"d1a8fa3f7f41a0fc7732665418eff24628c57fc9","tarball":"http://registry-npm.ywwl.com/rc-dialog/download/rc-dialog-10.0.0.tgz","fileCount":45,"integrity":"sha512-KdQjqNknesFtIdz5dGcVpqWqqMg6PeWq6Jodv9gVPXtQ3Kr8Ik7RSWauhlMbidNiwSSvTUvkDQmdawhypob1JQ==","signatures":[{"sig":"MEYCIQD9zOySXdDVDWOVBe9j73qQVsMGJgxPeQ3/6V4ZjyycFQIhALotoPx+8eWoQETFdkOxKVbdvQvkcpAHkgPm6A0Ruavw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77619,"size":12931,"noattachment":false,"key":"/rc-dialog/-/rc-dialog-10.0.0.tgz"},"main":"./lib/index","types":"./lib/index.d.ts","module":"./es/index","gitHead":"ffae26086c71ee10bc7cd113635067ea2b25c6b0","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"rc-test","start":"dumi dev","deploy":"npm run docs:build && npm run docs:deploy","compile":"father build && lessc assets/index.less assets/index.css && lessc assets/bootstrap.less assets/bootstrap.css","prepare":"husky install","coverage":"rc-test --coverage","lint:tsc":"tsc -p tsconfig.json --noEmit","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","now-build":"npm run docs:build","docs:build":"dumi build","docs:deploy":"gh-pages -d dist","prepublishOnly":"npm run compile && np --yolo --no-publish"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/dialog.git","type":"git"},"_npmVersion":"10.8.2","description":"dialog ui component for react","directories":{},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write","git add"]},"_nodeVersion":"22.5.1","dependencies":{"rc-util":"^5.21.0","rc-motion":"^2.3.0","classnames":"^2.2.6","@babel/runtime":"^7.10.1","@rc-component/portal":"^1.0.0-8"},"_hasShrinkwrap":false,"devDependencies":{"np":"^10.0.5","dumi":"^2.1.3","glob":"^11.0.0","less":"^4.1.3","husky":"^8.0.3","react":"^16.9.0","enzyme":"^3.1.1","eslint":"^7.1.0","father":"^4.1.5","cheerio":"1.0.0-rc.12","rc-test":"^7.0.14","gh-pages":"^6.1.1","prettier":"^3.2.1","bootstrap":"^4.3.1","cross-env":"^7.0.0","rc-drawer":"^7.0.0","rc-select":"^14.11.0","react-dom":"^16.9.0","typescript":"^5.4.3","@types/jest":"^29.4.0","@types/keyv":"3.1.4","lint-staged":"^15.2.0","@types/react":"^18.0.24","@types/enzyme":"^3.10.7","@umijs/fabric":"^3.0.0","enzyme-to-json":"^3.1.2","react-draggable":"^4.4.3","@types/react-dom":"^18.0.8","eslint-plugin-react":"^7.20.6","eslint-config-airbnb":"^19.0.4","@testing-library/react":"^12.0.0","enzyme-adapter-react-16":"^1.0.1","@testing-library/jest-dom":"^6.1.6","@rc-component/father-plugin":"^1.0.1"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_npmOperationalInternal":{"tmp":"tmp/rc-dialog_10.0.0_1736404390838_0.06564089113899962","host":"s3://npm-registry-packages-npm-production"},"readme":"# rc-dialog\n\nreact dialog component\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-dialog.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-dialog\n[github-actions-image]: https://github.com/react-component/dialog/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/dialog/actions\n[circleci-image]: https://img.shields.io/circleci/react-component/dialog/master?style=flat-square\n[circleci-url]: https://circleci.com/gh/react-component/dialog\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/dialog/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/dialog\n[download-image]: https://img.shields.io/npm/dm/rc-dialog.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-dialog\n[bundlephobia-url]: https://bundlephobia.com/result?p=rc-dialog\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-dialog\n\n## Screenshot\n\n<img src=\"http://gtms04.alicdn.com/tps/i4/TB1dp5lHXXXXXbmXpXXyVug.FXX-664-480.png\" />\n\n## Example\n\nhttp://localhost:8007/examples/\n\nonline example: https://dialog.react-component.vercel.app/\n\n## Install\n\n[![rc-dialog](https://nodei.co/npm/rc-dialog.png)](https://npmjs.org/package/rc-dialog)\n\n## Usage\n\n```js\nvar Dialog = require('rc-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### rc-dialog\n\n| Name                   | Type                           | Default   | Description                                                                     | Version |\n| ---------------------- | ------------------------------ | --------- | ------------------------------------------------------------------------------- | ------- |\n| prefixCls              | String                         | rc-dialog | The dialog dom node's prefixCls                                                 |         |\n| className              | String                         |           | additional className for dialog                                                 |         |\n| classNames             | { header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string;  } |           | pass className to target area |         |\n| styles                 | { header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties;  } |    | pass styles to target area |         |\n| style                  | Object                         | {}        | Root style for dialog element.Such as width, height                             |         |\n| zIndex                 | Number                         |           |                                                                                 |         |\n| visible                | Boolean                        | false     | current dialog's visible status                                                 |         |\n| animation              | String                         |           | part of dialog animation css class name                                         |         |\n| maskAnimation          | String                         |           | part of dialog's mask animation css class name                                  |         |\n| transitionName         | String                         |           | dialog animation css class name                                                 |         |\n| maskTransitionName     | String                         |           | mask animation css class name                                                   |         |\n| title                  | String\\|React.Element          |           | Title of the dialog                                                             |         |\n| footer                 | React.Element                  |           | footer of the dialog                                                            |         |\n| closable               | Boolean \\| ({ closeIcon?: React.ReactNode; disabled?: boolean  } & React.AriaAttributes | true   | whether show close button |         |\n| mask                   | Boolean                        | true      | whether show mask                                                               |         |\n| maskClosable           | Boolean                        | true      | whether click mask to close                                                     |         |\n| keyboard               | Boolean                        | true      | whether support press esc to close                                              |         |\n| mousePosition          | {x:number,y:number}            |           | set pageX and pageY of current mouse(it will cause transform origin to be set). |         |\n| onClose                | function()                     |           | called when click close button or mask                                          |         |\n| afterClose             | function()                     |           | called when close animation end                                                 |         |\n| getContainer           | function(): HTMLElement        |           | to determine where Dialog will be mounted                                       |         |\n| destroyOnClose         | Boolean                        | false     | to unmount child compenents on onClose                                          |         |\n| closeIcon              | ReactNode                      |           | specific the close icon.                                                        |         |\n| forceRender            | Boolean                        | false     | Create dialog dom node before dialog first show                                 |         |\n| focusTriggerAfterClose | Boolean                        | true      | focus trigger element when dialog closed                                        |         |\n| modalRender            | (node: ReactNode) => ReactNode |           | Custom modal content render                                                     | 8.3.0   |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\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\nrc-dialog is released under the MIT license.\n","publish_time":1736404391084,"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"},{"name":"ddcat1115","email":"418150596@qq.com"},{"name":"jljsj33","email":"155259966@qq.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"paranoidjk","email":"hust2012jiangkai@gmail.com"},{"name":"silentcloud","email":"rjmuqiang@gmail.com"},{"name":"yesmeck","email":"yesmeck@gmail.com"},{"name":"yiminghe","email":"yiminghe@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"}],"_cnpm_publish_time":1736404391084,"dist-tags":{"beta":"7.5.0-alpha.0","lastest":"9.5.2","latest":"10.0.0"}}