{"name":"@rc-component/dialog","version":"1.6.1","keywords":["react","react-component","react-dialog","dialog","ui"],"author":{"name":"yiminghe@gmail.com"},"license":"MIT","_id":"@rc-component/dialog@1.6.1","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"homepage":"http://github.com/react-component/dialog","bugs":{"url":"http://github.com/react-component/dialog/issues"},"dist":{"shasum":"05ab7c019515d032ada2fded19ec252e39bbd450","tarball":"http://registry-npm.ywwl.com/@rc-component/dialog/download/@rc-component/dialog-1.6.1.tgz","fileCount":89,"integrity":"sha512-0UqI6TlJ+c3raBLq8UZqX8CG3FuTVLXbkJy89aDABnYxn+TljTgl+Rzt9DuQiZSjaxy2sHkE7cdzPYK/Qkf6LA==","signatures":[{"sig":"MEQCIEs+Dv4jw72sf+/P4QCdbpu/+7wC6KwwG6N5elRSu6y6AiASDr7uE9npE4dv0AVTmu/RiKi32xdICQsD81KCLnQbrw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17131564,"size":3177451,"noattachment":false,"key":"/@rc-component/dialog/-/@rc-component/dialog-1.6.1.tgz"},"main":"./lib/index","types":"./lib/index.d.ts","module":"./es/index","gitHead":"c3bbe7404ae576c4a77585910d9e52e5b1904220","scripts":{"tsc":"bunx tsc --noEmit","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 && rc-np"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/dialog.git","type":"git"},"_npmVersion":"10.9.2","description":"dialog ui component for react","directories":{},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write","git add"]},"_nodeVersion":"22.15.1","dependencies":{"clsx":"^2.1.1","@rc-component/util":"^1.5.0","@rc-component/motion":"^1.1.3","@rc-component/portal":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.3","glob":"^11.0.0","less":"^4.1.3","husky":"^9.1.6","react":"^18.0.0","eslint":"^7.1.0","father":"^4.1.5","rc-test":"^7.0.14","gh-pages":"^6.1.1","prettier":"^3.2.1","bootstrap":"^5.3.7","react-dom":"^18.0.0","typescript":"^5.4.3","@types/jest":"^30.0.0","@types/keyv":"3.1.4","@types/node":"^24.0.8","lint-staged":"^16.1.2","@types/react":"^19.1.4","@umijs/fabric":"^3.0.0","react-draggable":"^4.4.3","@rc-component/np":"^1.0.3","@types/react-dom":"^19.1.5","@rc-component/drawer":"^1.0.0","@rc-component/select":"^1.0.0","@testing-library/react":"^16.3.0","@testing-library/jest-dom":"^6.1.6","@rc-component/father-plugin":"^2.0.2"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dialog_1.6.1_1765292451716_0.13166722110046547","host":"s3://npm-registry-packages-npm-production"},"readme":"# @rc-component/dialog\n\nreact dialog component.\n\n[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]\n\n[npm-image]: https://img.shields.io/npm/v/@rc-component/dialog.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@rc-component/dialog\n[travis-image]: https://img.shields.io/travis/react-component/dialog/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/dialog\n[github-actions-image]: https://github.com/react-component/dialog/actions/workflows/react-component-ci.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/dialog/actions/workflows/react-component-ci.yml\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[david-url]: https://david-dm.org/react-component/dialog\n[david-image]: https://david-dm.org/react-component/dialog/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/dialog?type=dev\n[david-dev-image]: https://david-dm.org/react-component/dialog/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/@rc-component/dialog.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/dialog\n[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/dialog\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/dialog\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\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-component/dialog](https://nodei.co/npm/@rc-component/dialog.png)](https://npmjs.org/package/@rc-component/dialog)\n\n## Usage\n\n```js\nvar Dialog = require('@rc-component/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-component/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, afterClose:function } & 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| destroyOnHidden | 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| scrollLock | Boolean | true | Control whether to lock body scroll when dialog opens |  |\n| modalRender | (node: ReactNode) => ReactNode |  | Custom modal content render | 8.3.0 |\n\n## Development\n\n```\nnpm install\nnpm start\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\n@rc-component/dialog is released under the MIT license.\n\n\n## 🤝 Contributing \n\n<a href=\"https://openomy.app/github/react-component/dialog\" target=\"_blank\" style=\"display: block; width: 100%;\" align=\"center\">\n  <img src=\"https://www.openomy.app/svg?repo=react-component/dialog&chart=bubble&latestMonth=24\" target=\"_blank\" alt=\"Contribution Leaderboard\" style=\"display: block; width: 100%;\" />\n</a>\n","publish_time":1765292452010,"_cnpm_publish_time":1765292452010,"dist-tags":{"latest":"1.10.0"}}