{"_id":"react-hook-dialog","_rev":"28-cff0151ed9b833fe6f206d048dc5e247","time":{"created":"2022-07-17T08:55:21.072Z","0.0.0":"2022-07-16T08:20:25.618Z","modified":"2023-02-10T17:20:00.125Z","1.0.0":"2022-07-16T08:25:01.494Z","1.0.1":"2022-07-17T08:55:21.243Z","1.0.2-beta.0":"2022-07-17T09:14:23.598Z","1.0.2-beta.1":"2022-07-17T09:21:45.670Z","1.0.2":"2022-07-17T09:28:34.769Z","1.0.3-beta.0":"2022-07-17T09:40:27.721Z","1.0.3-beta.1":"2022-07-17T10:13:14.283Z","1.0.3-beta.2":"2022-07-17T10:18:07.339Z","1.0.3":"2022-07-17T10:21:21.015Z","1.0.4-beta.0":"2022-07-17T13:08:58.793Z","1.0.4":"2022-07-17T13:11:32.079Z","1.0.5-beta.0":"2022-07-17T13:26:34.663Z","1.0.5":"2022-07-17T13:29:33.661Z","1.0.6-beta.0":"2022-07-17T14:12:15.292Z","1.1.0":"2022-07-17T16:04:04.175Z","1.1.1":"2022-07-18T03:53:06.660Z","1.1.2":"2022-07-20T09:18:38.828Z","1.1.3":"2022-07-20T12:10:51.868Z","1.1.4":"2022-07-21T06:30:48.358Z","1.1.5":"2022-08-15T12:35:03.187Z","1.2.0":"2023-02-10T16:27:42.215Z","1.2.1":"2023-02-10T17:20:00.010Z"},"name":"react-hook-dialog","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.1":{"name":"react-hook-dialog","version":"1.0.1","description":"React hook for master your dialog component","source":"src/index.ts","exports":{"require":"./dist/react-hook-dialog.cjs","default":"./dist/react-hook-dialog.modern.js"},"main":"./dist/react-hook-dialog.cjs","module":"./dist/react-hook-dialog.module.js","unpkg":"./dist/react-hook-dialog.umd.js","scripts":{"preinstall":"npx only-allow pnpm","postinstall":"simple-git-hooks","prepublishOnly":"rimraf dist && pnpm run build","test":"echo \"Error: no test specified\" && exit 1","build":"microbundle --globals react/jsx-runtime=jsx","clean":"rimraf dist","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"4e4b9ce45a8d1bd6aa1b51cc67ae8ccd2fac48da","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-vRti71TmCzlbJnIGpwIh5Eb8uquFKHia2loZHCkHUlKwmgIgw9HYkyXLfoFh1K1MySqVbo6e3sYaN6G3CGetJw==","shasum":"8e6b5c55ee1faa2ee71afe1880d80174ed20c8bd","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.1.tgz","fileCount":18,"unpackedSize":36225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKZW45N3STRZo7KrGEi9vAXoa5vU+epLK0E89JqYau9gIhAJ/288/P4qZfrefQs8S9QNu14bg5RJySwXgE74RmfZx3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0855ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeYg//eNdK1ECVL5HoDAymRapXEO0WNmHWALDvdKJLp24wR98QuSk2\r\np6g8LhQyIni1gVlPhun9+V4hFuak1ujWxrr+JK+cFSMBlbM6ILZyxiawsQCy\r\nHLam+ObxtuMG8mDweGBpHgicgVILTMTMJLlrVZhkLWPE4xflTrOVQwz14Rd+\r\nsmXblow94eXAF1ZOwpRUtZLLJ0kAV+Fc57EMLRZdmQLmpvy9wS9aGUE0EuSD\r\neodJ/v7OtB9ERuBdJcXB76dsERWMJ8XeDlNU7hIM2ToWyW7K5mXAFRen8OXY\r\n9OipcpV7VmNROvwFX2/H+2mBvkxr6kgErotTbp+g9AB2OxvY2SPkDMDctXQ8\r\nr2gw/oJuo9xhhj1Uz9iynkR80QFU6bab6yJJs3QHQ6tHZ8Vd223zDAefGeEr\r\n7KOxUyZOlmKkE/Xuw29piLUSv7QdgDe9GqG8j3jsTJ3U/B3PZYJcV1KNIYga\r\njuCfBqc/Ou4oVCjWMI9DAmYgBBr1Q5l1n5+VJLRVPezSvO307q799mBq0cmW\r\nG+8wXX5DGxvCI3c2tK0FcRxHeMyM7878nq5rmSA7oumKcgEfjnvOA3oYcQ90\r\nnbWTmshqgGeUu8FBLeerNQSLELaDu452mKOC/vgl9b8/lFdasAiDIUNTgXcl\r\nrcOhgXWA6Mbxw2FPjnZgvm4kH3vIp/+WB6g=\r\n=KOhV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.1_1658048121073_0.6520544452721526"},"_hasShrinkwrap":false},"1.0.2":{"name":"react-hook-dialog","version":"1.0.2","description":"React hook for master your dialog component","source":"src/index.ts","exports":{"require":"dist/react-hook-dialog.cjs","default":"dist/react-hook-dialog.modern.js"},"main":"dist/react-hook-dialog.cjs","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepublishOnly":"rimraf dist && pnpm run build","test":"echo \"Error: no test specified\" && exit 1","build":"microbundle --globals react/jsx-runtime=jsx","clean":"rimraf dist","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"529c3996e6e97d0eeecd9e48f1f492c73c5c3d95","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7dFor6CZThefmICmGNEYM2TPju6uOcMI3dznv+HNix6isWiU0RZqp8mraSuA2xkx4x0lQbNq0WvhG/dDn9YiKA==","shasum":"031ba623abdd3c9e8338d331bd6bb862082c985e","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.2.tgz","fileCount":18,"unpackedSize":36165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ8Arch2E93QTxry8IAJzCFYypOl20bLcc68o8/5IcBwIhAOl91A1sLv2EvX3gB1KYby39pauAfoooiwT82mLSxw7Z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi09ZCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrsrg//XpyW1WxuItYpG3fjjOeyfJn9N2NZqwM1a3YlZM3AEie034Qi\r\n/cj1eoG6ARaq79rNHWXja1/53rR7Dp6+vTpwo8lAD+vPt0qpBgh8+Swk3hkX\r\ncY3FbhVnlByAmcbviRwnpXAHJ4F3EBMt654bUdX/+PVZFKLpsHspfYkKxJCN\r\nMw49fhtfIwL3rpXMVl/lnHD7BN2w7kx5seE4XBQwptCHse0wM4JXgvgHrutA\r\n66B8FBx/gn6H5jd9D0KGNOTP0GSDmTEbKom+k/T9dwvuDRWRnpay4Lacwt2Y\r\n2CEwhCA6+tG2av5ahvjf03lsDIsY2bEv9yI9j4wKa5Q2D0FUQG+8lFv2YbrO\r\nd8DMh8zKCt3zk0wJnJPCOIsraTyOy3uC5CXtOO1OuyLzqAzfFUdBjopOWDD3\r\nLXIBXjbUf4rED7Y6xua1feIDw7g70UNOy1d4opqiA6Cwi6dSUExyZj7F47LJ\r\np7Lwf99nwNBanYh/SpJpx1t2q8qOx1RE6SE5hivn2Za5luc/udgw38D3epco\r\n+HQ5miqhtgKV/Qgz2UXuWcJm9nrCa3dw/zVicFQcbtSR1vg7i7Fvr/C6fDzc\r\nqm577+NHiBCDYx5PwUtn1gkFlVJa2CCK0Dkzny+JMB/wQprgvSLI8Yq5Q4XU\r\njvyPrdO2+E+9/R0kGuksr0eE5o2aai96998=\r\n=lvWf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.2_1658050114616_0.3072053776859742"},"_hasShrinkwrap":false},"1.0.3-beta.0":{"name":"react-hook-dialog","version":"1.0.3-beta.0","description":"React hook for master your dialog component","source":"src/index.ts","exports":{"require":"dist/react-hook-dialog.cjs","default":"dist/react-hook-dialog.modern.js"},"main":"dist/react-hook-dialog.cjs","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"rimraf dist && pnpm run build","test":"echo \"Error: no test specified\" && exit 1","build":"microbundle --globals react/jsx-runtime=jsx","clean":"rimraf dist","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"readme":"<div align=\"center\">\n  <h1>💬 React Hook Dialog</h1>\n  React hook for master your dialog component\n</div>\n\n## 📦 Installation\n\n```bash\nnpm install react-hook-dialog\n```\n\n## 🕹 API\n\n### 🔗 `createDialogs`\n\nInitialize your dialogs name and props\n\n```ts\n// In main.tsx\n\ntype FirstDialogProps = { title: string; content: string };\ntype SecondDialogProps = { lol: string; olo: string };\n\n// For type-safe, you can provide 2 generic types\n// 1. The union type of your dialog props\n// 2. The union type of your dialog names\nconst dialogs = createDialogs<\n  FirstDialogProps | SecondDialogProps,\n  'firstDialogName' | 'secondDialogName'\n>({\n  firstDialogName: {\n    title: '',\n    content: '',\n  },\n  secondDialogName: {\n    lol: '',\n    olo: '',\n  },\n});\n```\n\n### 🔗 `DialogProvider`\n\n```tsx\n// In main.tsx\n\n<DialogProvider dialogs={dialogs}>\n  <App />\n</DialogProvider>\n```\n\n### 🔗 `useDialogController`\n\nA hook to control your dialog component\n\n```tsx\n// In your dialog component\n\n// For type-safe, you can provide dialogs as argument or generic type\nconst { isOpen, handleClose, props } = useDialogController(\n  'dialogName',\n  dialogs,\n);\n// Or\nconst { isOpen, handleClose, props } = useDialogController<typeof dialogs>('dialogName');\n\nreturn <Dialog open={isOpen} onClose={handleClose} {...props}>\n```\n\n### 🔗 `DialogController`\n\nThe component form of `useDialogController`\n\n```tsx\n<DialogController\n  dialogs={dialogs}\n  name=\"dialogName\"\n  render={({ isOpen, handleClose, props }) => (\n    <Dialog open={isOpen} onClose={handleClose} {...props} />\n  )}\n/>\n```\n\n### 🔗 `useDialog`\n\nA hook to use any dialogs anywhere!\n\n> **Note**  \n> You may have found that the dialog props can be defined in 3 places  \n> Priority: `open` > `useDialog` > `createDialogs`\n\n```tsx\n// In any component\n\nconst { open, close, isOpen } = useDialog(\n  'dialogName',\n  // Dialog props\n  { title: 'New Title' },\n  // Just for type-safe like `useDialogController`, you can also provide it as generic type\n  dialogs,\n);\n```\n\n```tsx\n<>\n  <div>Dialog Status: {isOpen ? 'open' : 'closed'}</div>\n  <button onClick={() => open({ title: 'New New Title' })}>Open</button>\n  <button onClick={() => close()}>Close</button>\n</>\n```\n","readmeFilename":"README.md","gitHead":"529c3996e6e97d0eeecd9e48f1f492c73c5c3d95","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.3-beta.0","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-J/zP9n9J62cmW/nZChxwZ31ZvIpQtYVPitS8Nvq6Rml3UNWFs56aLQeBUAJsHzwfl7hPkrNBlZ05mPyzppj6kQ==","shasum":"16c0a213e872aa3d9200e9f370fe45c9229465aa","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.3-beta.0.tgz","fileCount":18,"unpackedSize":36207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwMUeblZ+z/45zQhamZQ0+1Y5Vu3N+K2N+4M5t0LabXQIhAMVc+623ALUNVzcsXdwCV1tUInH7o4vqAO07/0Y6Be8J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi09kLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTag//TsFDeZIEw8lPBNjO/GeCeq9YgCfBm0amL2W3EsIJ5ZiN4/vH\r\nmfZUrBPG3i0wbRUyK5roHdnYH09ja5aVmmeI/0ToIvKeL0dMdXoeUQACChtP\r\ntJwDQm+/xSb7ssAlrsiN1MBin4gAIWe9Tn3UY64KQ+7ssG5WA27UdqySOw0m\r\nZUAJhG2VBfXsNFn9EZj7KSp3mEX1FURcJ3kHstnbuOdzoM+8MSYBxKNiNGNi\r\nVoHuQjUJxmnGkizPeBko0qTjC0kfasS3wGpFyTlIzL65Cj2eLfqnhWiCB50H\r\nMD3nVbjSrTKzcGmYOsxwIs1AzY+rUYR/RmwYHdTTcJatUTbdVqAbtmQK3Cb7\r\nBBO0a2KfK1ie3aEwGPKFVbsRbaNRAW/fjzR8uriooGkaqLvRimmqC3QVF9Bb\r\nbN/4jvvlHDr+zpkhLXPDePtS55uzl4oDCmnYyYmyCP93L9+hRFQDvMlXZ3dl\r\nFXqSwNzFPyu/tWkgozzWU21E2noLL8/D1Z7gT6mukEF618gd6TAg2Qo4cH1F\r\noVLvRHn+PzTv8NFCKYWye9AJbyK8zVDVhbvGQ6Zna7SZrE8X9xOjUbLGymI3\r\nEjMet0KQ8JaoHs2Wqd59hjH8nVOToarIxOM08n983mprBDz2MsIDgAYoWkFR\r\ncOa4rEKK+cGTLTc47GOkOy7nzyDgs8nUCgo=\r\n=LaJ8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.3-beta.0_1658050827569_0.04284758754929019"},"_hasShrinkwrap":false},"1.0.3-beta.2":{"name":"react-hook-dialog","version":"1.0.3-beta.2","description":"React hook for master your dialog component","source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"readme":"<div align=\"center\">\n  <h1>💬 React Hook Dialog</h1>\n  \n  React hook for master your dialog component\n</div>\n\n<div align=\"center\">\n\n[![version](https://img.shields.io/npm/v/react-hook-dialog?style=for-the-badge)](https://www.npmjs.com/package/react-hook-dialog)\n[![license](https://img.shields.io/npm/l/react-hook-dialog?style=for-the-badge)](https://github.com/jsun969/react-hook-dialog/blob/main/LICENSE)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hook-dialog?style=for-the-badge)](https://bundlephobia.com/result?p=react-hook-dialog)\n\n</div>\n\n## 📦 Installation\n\n```bash\nnpm install react-hook-dialog\n```\n\n## 🕹 API\n\n### 🔗 `createDialogs`\n\nInitialize your dialogs name and props\n\n```ts\n// In main.tsx\n\ntype FirstDialogProps = { title: string; content: string };\ntype SecondDialogProps = { lol: string; olo: string };\n\n// For type-safe, you can provide 2 generic types\n// 1. The union type of your dialog props\n// 2. The union type of your dialog names\nconst dialogs = createDialogs<\n  FirstDialogProps | SecondDialogProps,\n  'firstDialogName' | 'secondDialogName'\n>({\n  firstDialogName: {\n    title: '',\n    content: '',\n  },\n  secondDialogName: {\n    lol: '',\n    olo: '',\n  },\n});\n```\n\n### 🔗 `DialogProvider`\n\n```tsx\n// In main.tsx\n\n<DialogProvider dialogs={dialogs}>\n  <App />\n</DialogProvider>\n```\n\n### 🔗 `useDialogController`\n\nA hook to control your dialog component\n\n```tsx\n// In your dialog component\n\n// For type-safe, you can provide dialogs as argument or generic type\nconst { isOpen, handleClose, props } = useDialogController(\n  'dialogName',\n  dialogs,\n);\n// Or\nconst { isOpen, handleClose, props } = useDialogController<typeof dialogs>('dialogName');\n\nreturn <Dialog open={isOpen} onClose={handleClose} {...props}>\n```\n\n### 🔗 `DialogController`\n\nThe component form of `useDialogController`\n\n```tsx\n<DialogController\n  dialogs={dialogs}\n  name=\"dialogName\"\n  render={({ isOpen, handleClose, props }) => (\n    <Dialog open={isOpen} onClose={handleClose} {...props} />\n  )}\n/>\n```\n\n### 🔗 `useDialog`\n\nA hook to use any dialogs anywhere!\n\n> **Note**  \n> You may have found that the dialog props can be defined in 3 places  \n> Priority: `open` > `useDialog` > `createDialogs`\n\n```tsx\n// In any component\n\nconst { open, close, isOpen } = useDialog(\n  'dialogName',\n  // Dialog props\n  { title: 'New Title' },\n  // Just for type-safe like `useDialogController`, you can also provide it as generic type\n  dialogs,\n);\n```\n\n```tsx\n<>\n  <div>Dialog Status: {isOpen ? 'open' : 'closed'}</div>\n  <button onClick={() => open({ title: 'New New Title' })}>Open</button>\n  <button onClick={() => close()}>Close</button>\n</>\n```\n","readmeFilename":"README.md","gitHead":"cc9d4dd65f77cdf517ea5881c0f0255c52c3f9c0","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.3-beta.2","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-kl2zeKaWsMhxdT6lJRfjf5L9vO4ww5jGTs1yi/fmeuVG5jkrH9L45HYQCSW0x1PhPqPtRgvcc8ll6xNWvAg54w==","shasum":"e816f3005dceac6f1e96be4603ccc79182516cfc","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.3-beta.2.tgz","fileCount":16,"unpackedSize":29797,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7Nr3bJKpPNDlpfXuxpYoM/1AS9hdHgerE9SdsUBJcrwIhAM2ImWPaX8JBHxLRYLaXFBR3Uw2dUTc3iP9rt+ilRb1Z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0+HfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+Lw//etoPM26PATgdFkJI+Z6EDvwudjVnvoTsG+1RGvIOTVfBtTw0\r\nJUFa/4rurV1Wk7gev5X/afZQdMkn7DC9op7ADUXJZa9wtucTAZVItM5O+qEO\r\n2DBZJOToEA70Ym8Py05DGaXUupbtLSCoyLMQaXT/R5q0DP5V0nwkLLp1nzC0\r\nD+xAu1VJmK/IEHls2BtTei9xNXwtwmOnsui3qAQ1hJRONQFFDKluPXohVnxs\r\nvhB1gEUAlj64TLUXsBbMfn2zC5zU/FoUaer+/LZ0OAJ5RjvtLEkGgL4GCur0\r\nOqSNtgHzE8drcy7hXbS+F2s9nLFwq6PKBBp/OA+JaBcoLzcbv2bG6lhSmPWS\r\n2xGD4OSLu6Su1K7dama1aSBr/i/KwhgwsMbm5C8mwL0mB6lhBgRmCN6HvoGR\r\ngp/UE9geE3kpzVjEAU1Zxk1f4ULSzaOiInzNDaMX5SsDMHoPhyZoBSICFUND\r\nqqYQUIXf6G1l/EkGItLEz4xsb+2wkH4A3FvYO4C6ewIizUBdolWCVbq2jbg3\r\nGeJ0KE5eZR56i0ms3AacbPcI93309ZfTQFRz/xyC9tEIBz5R9guePI5PAI9x\r\naFuQ+iZjfBE5Hf4zeottn2MGH2odc0cgtLs4o5pDUPF3li/dbEpGOOna+HWq\r\njmmrTKdLQjExi5XgiGh7ZZVpelrLZxP9bWc=\r\n=dT1N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.3-beta.2_1658053087156_0.3230474703370163"},"_hasShrinkwrap":false},"1.0.3":{"name":"react-hook-dialog","version":"1.0.3","description":"React hook for master your dialog component","source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"dcf30943c228e95be8561c3f02b36640a2a4500d","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.3","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-lgK/DJY8z/I9NvOPtazYdbR15kEd8jz2eSE1hWAH/bPFBw3nIP9uDJYqU0Z5tPbh6WuQ3FidbEknYQ/nj3ynvw==","shasum":"7886060b63eca6d514b6b9f8985317b01114a483","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.3.tgz","fileCount":16,"unpackedSize":29790,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChoxnRAJPsO3cjgJpQtnlBDcX0H/uNpV3vJpn5h6v2zwIhAMYxYj1d8kcthkOHGEpCZNypnSUWB1FDtSeI9Wqihthg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0+KhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtvhAAgGkYEc1SmDqPi4boUevOx3zXwmuI0q+yqfC8kRBHSZs6VQcR\r\nhrXX6JvJw6HAnM0j3o4y1n8F5LsLTdG0ZClhUkXCKHc/a3pKa7AP73hwyvyb\r\n2lQLyeAuBbFaTfH5dlle001wxTiCJdz2CD8e/k38Li2lQdyE1Fh7R3ayNMF/\r\nf10t0jLahdsbzDwl/zfq8aaLqfj2DGlmtXB5tO8MFQnZr+DNQl+vDJtvv3ou\r\n8RIQ7Bt8TIagMNJHmcefrFyvLlluyWbjpckqR+dURABsEYbf9qbnB10A8+cC\r\nOucCGTR2Z6eN9BYI1Dd6GxlkgDYRpvLmmnAt/iWM3zBVtrOyXooqb1Lf1q4X\r\nfWWqdvg82EHx4NDmNt8iTfw4r1PFG7hi1I3pmjkZYGycUZ5PuZLuD0hPsQZC\r\nMFEeplyl+16gKSF4riRUFWPbb7lnPyL+Wd6Jo8EPgBlyaVYOCOHhsyHnaiYE\r\nYB+hPcnF6VaVNqKo3f2koBlSg193g8TsQ40dPVeLZJbDOd2BLiy49BjVRKTG\r\nYiqfz3UWzNVjYGwW9ZswWpTmngEJEXmpRv5UOhDBqoG4+tYVXFERqhCmy15u\r\n/CGLStntRg30nKNRk24HFRvO5sGdTf8La8wIj5w+LlyLHO2nBmb27lkVEuGO\r\n9ftZeDTUFB2fkf/ZcgQPdMftaS/LxaYKiqw=\r\n=bi5M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.3_1658053280776_0.7155279937017502"},"_hasShrinkwrap":false},"1.0.4-beta.0":{"name":"react-hook-dialog","version":"1.0.4-beta.0","description":"React hook for master your dialog component","source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"readme":"<div align=\"center\">\n  <h1>💬 React Hook Dialog</h1>\n  \n  React hook for master your dialog component\n</div>\n\n<div align=\"center\">\n\n[![version](https://img.shields.io/npm/v/react-hook-dialog?style=for-the-badge)](https://www.npmjs.com/package/react-hook-dialog)\n[![license](https://img.shields.io/npm/l/react-hook-dialog?style=for-the-badge)](https://github.com/jsun969/react-hook-dialog/blob/main/LICENSE)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hook-dialog?style=for-the-badge)](https://bundlephobia.com/result?p=react-hook-dialog)\n\n</div>\n\n## ✨ Features\n\n- TYPE SAFE\n- Easy to use\n- Super light\n\n## 📦 Installation\n\n```bash\nnpm install react-hook-dialog\n```\n\n## 🕹 API\n\n### 🔗 `createDialogs`\n\nInitialize your dialogs name and props\n\n```ts\n// In main.tsx\n\ntype FirstDialogProps = { title: string; content: string };\ntype SecondDialogProps = { lol: string; olo: string };\n\n// For type-safe, you can provide 2 generic types\n// 1. The union type of your dialog props\n// 2. The union type of your dialog names\nconst dialogs = createDialogs<\n  FirstDialogProps | SecondDialogProps,\n  'firstDialogName' | 'secondDialogName'\n>({\n  firstDialogName: {\n    title: '',\n    content: '',\n  },\n  secondDialogName: {\n    lol: '',\n    olo: '',\n  },\n});\n```\n\n### 🔗 `DialogProvider`\n\n```tsx\n// In main.tsx\n\n<DialogProvider dialogs={dialogs}>\n  <App />\n</DialogProvider>\n```\n\n### 🔗 `useDialogController`\n\nA hook to control your dialog component\n\n```tsx\n// In your dialog component\n\n// For type-safe, you can provide dialogs as argument or generic type\nconst { isOpen, handleClose, props } = useDialogController(\n  'dialogName',\n  dialogs,\n);\n// Or\nconst { isOpen, handleClose, props } = useDialogController<typeof dialogs>('dialogName');\n\nreturn <Dialog open={isOpen} onClose={handleClose} {...props}>\n```\n\n### 🔗 `DialogController`\n\nThe component form of `useDialogController`\n\n```tsx\n<DialogController\n  dialogs={dialogs}\n  name=\"dialogName\"\n  render={({ isOpen, handleClose, props }) => (\n    <Dialog open={isOpen} onClose={handleClose} {...props} />\n  )}\n/>\n```\n\n### 🔗 `useDialog`\n\nA hook to use any dialogs anywhere!\n\n> **Note**  \n> You may have found that the dialog props can be defined in 3 places  \n> Priority: `open` > `useDialog` > `createDialogs`\n\n```tsx\n// In any component\n\nconst { open, close, isOpen } = useDialog(\n  'dialogName',\n  // Dialog props\n  { title: 'New Title' },\n  // Just for type-safe like `useDialogController`, you can also provide it as generic type\n  dialogs,\n);\n```\n\n```tsx\n<>\n  <div>Dialog Status: {isOpen ? 'open' : 'closed'}</div>\n  <button onClick={() => open({ title: 'New New Title' })}>Open</button>\n  <button onClick={() => close()}>Close</button>\n</>\n```\n","readmeFilename":"README.md","gitHead":"935e8902dc5e8e3e720f5089d58bff47a5c5a269","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.4-beta.0","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ffgIZG/sya8An/eEY9J4EW8tOwbiiuPlfQL6h/Vi4LD/VsxtYeEDBs/Gtp9PYDtw3De6SMVn1w4/d0G+GJ4S9g==","shasum":"8e0cbf9c10dc96229ef8923aacc3d8ee476396e6","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.4-beta.0.tgz","fileCount":16,"unpackedSize":29834,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDavanVa0X0G/4DseEBwy5PoAX/O6IFfr50nuQ4oKopjwIhAP7IRRcl6tcXrfFHtOcCATi8/8dD1Tr/aG5H50atFg51"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1AnqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOeg//V/ZbH9ly14SsQCbzvjAKsTaryo/CagzANTnZp9nKx1rJSvsB\r\n54olDVniDKOwg49CSDyZZA52zGNmNUBYb/xV8uqiJ5k+KItR9MZzbooEcRXN\r\nHDV5qAkHi5z23KzImlMnrfg5Qq2B1XXNLENqSg4C61/bcSmI/+HjsQ90Gq23\r\nHE7HJX4CForJjlu+cTX6idH3ON2dtLG1GFfrkjAhk0KaeDQE/bO99iv4a2eI\r\nhDb8/KjuDErMT7jy4CfhXpGoNbPtWQaSAtuChF+oL9bmabizLTCSazig3Jl8\r\nDLmz8oEg7i+zTZbhDrkNoT86doIw23rtW7YfDwQVEth5vDAqQPGZlbfpw+NZ\r\n89MMEsTQfe0Er7qZJ9ZcEkNHZhQY0HNo8a8EqCAaiVlC0VNVmlBH1iwJMTNv\r\nOida0sunzOaPrC3w5i3RuiYuJ/JrmWYHuPUmgIpf+SV5d7iiQAiGrLJi+lug\r\nvIUu8L0PqaBkp19l7z95kFtckT6lAVO6gysTgGHAjsbXQpmh+fcHOnDGZpZ/\r\n494Hgt2NNIpZf92giw5OObOWs/k8R0ESYp3EGRBpJP3ceXGnruvLe4XB5+zl\r\nYZGC3ZGRtZplPL/oz7DOnKLGs53BtHfox/93ayPYqdAfF2NonCFARhvWzQ4b\r\nWZrIn4wywxMNWxG4EthueCSghW2L/K4ZE2U=\r\n=7amr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.4-beta.0_1658063338592_0.438215750103214"},"_hasShrinkwrap":false},"1.0.4":{"name":"react-hook-dialog","version":"1.0.4","description":"React hook for master your dialog component","source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"00f615346fbe61f1ffb71808073c4713da8aa32f","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.4","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-YrbLY+fnOcubnLh12oqxx5qAYvZZMJwdXG48Y+aJvoIHkh4JdtiDHu44F4Jt03m+3BRkLJnwjd0EVEVJuH/F4g==","shasum":"6e81fadaa9db0be1da95fc66f63d9f683455e07c","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.4.tgz","fileCount":16,"unpackedSize":29827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFo9kQbK5sTK4V8mfadpdtJ/Guyu3EUwF5y62iWRjKhXAiB7Y8fbML++fOXMOsddwDMhA3s6AGOylexWnmdSHTl+KA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1AqEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog9A//Uo2Np5zfN17IM0j+M3BCngO3awY1g+0L8LcGuaEfSqdyLuE7\r\nZidRg3t6Fet7mFXPWad9WP6+zM4lu2njIgM9bauzQrj5GuMVO24RUrw5PH+E\r\nuOe5SBdvxYU6DDIcs3BCESCVqAZ56Xz73ewB6Hi+hu7M6NE0IGQEfigmP3ku\r\nPFkW65dnxHDVH8tFUeMvCArURAY6Gr4JmFPFP3r6oRQaqYexZ4DY6WdsdGG5\r\nLL3RQW35kjnQvJLsgl7nrVbIB0XOUKvYPJ8yl3d4f1qUdpMFAXELfQcbRI/k\r\nV9N3LWfoNPjgff3ls/XOU/bblp0kjgzkEs93S+jxZD/KZsxsEKREkVZCtTI1\r\nXTv27j/X9VgXu2Ts6CDxGK/hKiCWZQ2/2mf7qO5AhVi7W9ONZAmILTAMgVxG\r\n6k3E/J6kqABpqwCQkfZ88/Kdf23QkQ9jvjOGyjzCgYQC+ASuGoBXT9o36cnY\r\nBdV9LZYcLuzxYFsEdIHLE4HK3dxi5EuGTo2ksxiNkPm8UM3DgQc7f+iMhRT1\r\n+GJMwlc75r4hAuVuiUy8d3/AoWY3NzLIcYz5m4timJPFZNmrRbC+k1S/ZFEE\r\nwF6LGFxwrVqC+6seKFJ7dlarV/3InUMUSrl1LRDldGzlJ+bUY5zqh3JN8ZX2\r\n+TtByHBdfdPdzny1MTWQ7y73Ck/ejetWD/E=\r\n=WgI3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.4_1658063491862_0.5087431418375097"},"_hasShrinkwrap":false},"1.0.5":{"name":"react-hook-dialog","version":"1.0.5","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"06e1b7cb0bfdce65e856e98ed5f9b63abea246bd","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.0.5","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6gSmowLBtqVdi6RINKK4aQFIsBxqmuK91XB4nJqmxIta7GkWEGfAM/Gx5veH7kLFFu5LgjHpj187JoNtI0fAoA==","shasum":"0a8b38a482a6beed5ba1a0fd0fa0705603e9b2da","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.0.5.tgz","fileCount":16,"unpackedSize":29851,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGQ5gC5gPPEKzv1lvGMgBISIAUu7rWyvyyVe5Pl4QwdwIhAPqC/SggDfB8jAQLrzkSbhZX9zeLpkMHQTl+rHRSSB/J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1A69ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgwhAAgfqUktZcp53TM4LS04+/LhgIMNjeYSRBsX3Pk6rgVuTMgLlk\r\nZaRGD+5Z2D4s9yJBOgrTzErtE+jDBnKVWZq45R8JLiZpPrZdjbvEuZDnuA1z\r\nA7cvDT2rYYOK1gdoiQ02+ogI1ymuHojxI+uW4utma16P9DEQKqJHWUnwpt9B\r\n/oJy4zs7f65o6nazmtvrokz4R1XOlm97pUv4XtKUuroh6kme8M5VKGmBjxPy\r\n7tXsadZiM9IF6mCYSOigyqd0rqIaeZgaDNKrqVmrXUpgXSEGKkSf3DdrFTq0\r\nfnc2Vk0aNQ7tlFV5Bo2wP5yHTtvpERZF2JG2uPHG6AJIh16kVnUtC8Nh8ZSZ\r\nGmZmOifZ7/xzZJlXL9wlPDevnXwF7F3sPYoIRp8LS4zwCKiKiWhEIua4ktA5\r\nNHfihdccCNuROxO534ZM7zj85mo5u3I9Ej9oQjLqEVLMw7EL1l/LHplgpzgz\r\nnnunZkxdqp/mR/8FXQl3/JNsjIj7WvAMttsAJpzMBODM8UdUWn0toqcvPvaL\r\n8B4Uv6WtUe1wZfMHYRZfNlHVEqwKOBRI1rVJ8ccPm8W89stqZjID4g+FEy+r\r\n6yFkMawx3MI/yG+8crjYerjtrQps6Y+RJuEXGHuNhhu5PhZIol+zayJE+MfS\r\nZj45bfRm5OadU5KJogcdXB7VT8UXpXwdbgU=\r\n=ZWRF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.0.5_1658064573490_0.9734110092285069"},"_hasShrinkwrap":false},"1.1.0":{"name":"react-hook-dialog","version":"1.1.0","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"e1b852ce256c30472cb9ff9bc0876c28458da6ef","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-DLm4ZEP1tyr58OgapWv9WCW1UJTQrexhfDy5wZO6vv7jwWL6Ffg/xsrYB9BxvHLEkTCVs3NhJIvoYrtIxnZpzA==","shasum":"5c2bc0f7af6ada725e28aa8f73a330ac1ff770d5","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.0.tgz","fileCount":17,"unpackedSize":33753,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfwfeNp8BLVpXRRMGpqXCJO6UHgra7H7DVOKcJVFW1QAiEAqr5IVDsg1KAJKHNChzQPRfOVSjW1Zve/eDmv/z9tsRo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1DL0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNfQ//QLlbFut8NeyKhbeHgIlCesPewddD1WwNhFkpVBJc3IXsQEhy\r\n+cnwuH07mAWgplTgxK7KjMwjlnMtbL54qPsRtyN8EZlhwMtpDGRb8QYbf8II\r\no3hAdZOQ9Z1R4986c6EC4a3YTYBBB0Y3L59jaHm12bn9AbuIXwSrJ0flIxPd\r\nw8xH6t0IW8PJ2f6r7EdUu6loDktbfLjwfqnIaJFnScMPpCCHYMgqilcOX/kQ\r\nf8whVcqQ6PjeaHVYDjcrXoeei842n34hYDdFhkuZpcUzXhF98cSkdpVYFKHj\r\nNeRDq97BXDwueUnTzsot1ygq/OGA53MUzns7fOYxCTG86ZyHTAnWISUaDO0P\r\nilRVcHLWr0sKp/8yWipILd7oCStga4BumPiwSO57WwQKrUeVewHkF5dKiZId\r\nv48nQsyr7o+COPGU553Rruzcd6dRqsQFbhJ+CryLdYmafCADQ0BJjgC4bpcD\r\n7x+DInl9h8+eglXUxQtKJhZm0ceWKcYRpfjlQSxEujjNISjtNmiQf7U2GSwK\r\ngLxHPwOABViCrYmDpNfMg6lQGlmeQsoaX+SGCFbQm4Xq4iGw7rymQ18EihN8\r\n+THLV/WxRl28A1LlXollZklLyRAF2DhsaylxcoyZwKt8v0R7/xqnni0jjhdL\r\nL4lAQXBzw4hqfi5eedRUfw50Bise419+Ew8=\r\n=0fTl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.0_1658073844018_0.19967724145559518"},"_hasShrinkwrap":false},"1.1.1":{"name":"react-hook-dialog","version":"1.1.1","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/react":"^18.0.15","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"4c2599e5d1ae4da99ce42cd9a7165f914dca973f","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.1","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-bm3BhL8IcW5TS82XAHs7s/4G9G0nO8yCyLPM+A2OwUbpdli9ZN8fQLF2EujJQO+qlnxGTggzn7zrcG/EBzHSxw==","shasum":"3c4bd64d7e6cb2ab1e7e1cfb661da365a37798ac","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.1.tgz","fileCount":17,"unpackedSize":33835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzMrWagXd/8QJ+tMZiZby3vmTEcQhsyGKVwC2FBywY5wIgDnBJxOlOwQ1sR/5WgOGnTs5rwdsvj9NL45KCFbVOCIk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1NkiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjOg/7B+2n30KgjVgMWS5u3wXLK6Bx85UQWrrbNxqYI2dWs3qBsDVb\r\nf6IFEKIuYlTQ5kX9qtdUddlOPPJ9QXJax5M8qEen0u6Y7bDnieUzHoWLkFZ8\r\ntYz6ptAK3nqs5JazxOGeCSSxAdQ+ZO9FwuLPbPtI/fiou3+fnZ/mXdlH1F6L\r\ncQFmmzZR6P7O/fxLLwSJqO80R56/lbqwyDqituezdSVxZOHGUClU8KEnPWD0\r\n1bzc/YoyMS4v4H0B9i5UHIB8maNu4NT6CRL7IBg8weOY/ntW8zuAjKKvBUa4\r\n6o1Dx9dTti77ogiKmITEDbCgAQeAH9Jf3jXgNCdEDmgrus4ayvY3ZEfcqzLM\r\n4CflH9dlp61dzaZED4u/MXAptXV7+JjPjF2eQCfK8JIjAdXyrf0ExN5Og6XD\r\nBygsLy/MUr4SRdvcQRrdJosWPlabV7wTuv7psaZREw42SoLETdC5xKcp7p+A\r\njfF2Y8YRFQjTd1/T8xICNZq9gr0hNSmmP2GsRtyABHhA/q6px8JPMNF3vc5h\r\nKl96gfm4B8c2OVPpdUJyJudFiz6O/AVwv0FxxUIb8kxnc0NwWVk208PNbm/C\r\n9gnCbhjsG6MxqPPuboXPqTxCFfcZdxqTc8vFNVDFcel89XnuX98RifgnUGT8\r\nLoPpWSi3hisfsVMJPna97dUK3z5rc7aA6qw=\r\n=xUjo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.1_1658116386476_0.1184352189714093"},"_hasShrinkwrap":false},"1.1.2":{"name":"react-hook-dialog","version":"1.1.2","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"jest","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@testing-library/react":"^13.3.0","@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/jest":"^28.1.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","ts-jest":"^28.0.7","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"622413ceb026c3a3902ed70bcca2a136c85b4f70","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.2","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-eQRfWwij3Gc792mTFJcq/t+zpSjSbE1R5G3K3pKdcZu3+INcLhypVMT5N6ICpeHuOtgYmRLmWAZllDgPvdNrwg==","shasum":"d0419d27abfc534be5f80d1a5a33a7c6a85fb8cb","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.2.tgz","fileCount":22,"unpackedSize":36456,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMKXeQRsIzb0KjOsDo8RarMDya5q5RcavMwE5elc7URAIgO0+VF1QFOgEiZzi6RgLv1+6y45F+L4A3jZxrx+vWhHs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi18huACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6uw/+OAhJLFiLSmlTlqUNIfP1m4idSqHuTcYhloMHPJU+gaeip4Z/\r\n8i44A+AurLgvRZXma/J23ANdowZzJdAuF8L81JAZP6BE+HjefMJeRfu4GjEO\r\ncgRpxQ5Ei+st5rGR1P5ghvG+/Si1VyAW4lQ+2XcTf8ohMrD+Hjo0n4PIAUxa\r\nRYiSchfUu7Sz2+4Y9OYmxxbOrk7ltDltZML/2BzUZabmeOB5nxBd5DK8inJK\r\nee/7VGCOIBs6gzexAY+Yl+moy8MgnzDbvgIo4NKqYJkAcTjjh7xLyu4gw6Jz\r\nn9sojlYqUQuoaZrSzA+ffo4N6BOrSwYx2KJhvkmbgB3IotIUVRCXbp2GB6m8\r\ngHvlRW1JYni9LkLRuuycaeLmn7rJbCAg7dWfPCUJ7ngIclq5ZCAwvSYcSO8l\r\nsT1kGkrJhzu6vSiW8juHrPbnW8b+iNZspt+7P0RLfuPzv5V6V+IQyTqK7CWl\r\nFFCGcC4yCazyrdpmK1AE/HGZvUmvtRwTAA8WVQjIiRAKO62xt0b4LzG20H4J\r\nGWIuoW8AIBFXrz5yIzHm1R2VyOheLDHC9NJ7JyCrFZrCaIpFGw6TfnN9ydA2\r\nbrcC1xTKLL3otn5h8ePvwtHM2UVHKmJPy1OxgvGiGTklPrWHxthmQCsbjluv\r\nPfOegO1zzLg2/3vNiSOmX+dbqEP1Wa3rBCU=\r\n=Uj9Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.2_1658308718645_0.890773977500475"},"_hasShrinkwrap":false},"1.1.3":{"name":"react-hook-dialog","version":"1.1.3","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"jest","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@testing-library/react":"^13.3.0","@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/jest":"^28.1.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","ts-jest":"^28.0.7","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"92b91fb9ccf333f0514494f874ee3df04cbc5290","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.3","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-3/OWu9k+LIt22FIqiXU27c/illM48SNStpTR82ZZVoYunHYJVnHGlVVNJernaOzLJRgPeNyoMvoWI27lHbvilQ==","shasum":"6352a118c215335ed3f78b9694a2502eda331f66","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.3.tgz","fileCount":17,"unpackedSize":35792,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGS/5shwCrLoLjtXxycIMCoXtm9t+wIiNlgqJo2xfmp6AiEAikYBNHd93knexcgrMeO9byhRdT0i7zg1LPHZfTeIXgw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1/DLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuyxAAiAotceoW3oBoiIQpEVc/scxa8+7mskjKAFYLAs/iit8KMxZk\r\n+BvKARqmHUPUjNzEZ7YcY5CSEBqsdzrL1KW09wfIm+jN2Ghg91TUpRVmGc5V\r\nUAGJ/jujG0CKQMdkwr16Vh2UJd9rPHYgsHXzO9ZaBJ78CUKfwFoydcdGRIZj\r\nmlS52X7uB4a0aF+Wiam+APmWx2mVCbLVywRoh73rQM0U3x15UM0fdWILz3Mb\r\n7Xm6SjFi14+EJATiKbudz0h7GeROEzIYG4WeGoxeYnCWZtNXc+Mm3hoiMQdc\r\nxKwJOlCV3pFq9qLCu4EUuZ1CzhH2Vmv939mz3kFIJvmPYzOYZCr781YacJVm\r\nATVwTPgphaleJufaOF9UF2LDhPRSJmDZMeharSJwkWj20sMm+IpzFjdjt7OF\r\nGVNHLNZP9gqhmjJ8l2I+Lx5YgEAG4fznHKn16NDOAL+1as+HBvneswx3DgsE\r\nMN/Q8FDqtmZTl+C9fMq8/hcnvv5CtV899CZsSXzfPCqLeBaD8531xNZDjzrq\r\n6GS+ShNb+ZbsRO/HTmccO9QayCuXdgHTHOc0x5rjBnsNDtLOuB2UsVdsfOY8\r\niUI2j4LXrEX20LpSQnRYrc09Wzp1PPoXq+iE+EdQtWA8D1cRVJGF9Na6PXTx\r\n0vtVOTaejGKSNW+emSZVCLHpXxO2ya8zSzc=\r\n=PkAr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.3_1658319051602_0.3037457126816665"},"_hasShrinkwrap":false},"1.1.4":{"name":"react-hook-dialog","version":"1.1.4","description":"React hook for master your dialog component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"jest","format":"prettier --write \"**/*.{js,ts,tsx}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@testing-library/react":"^13.3.0","@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/jest":"^28.1.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","ts-jest":"^28.0.7","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"pnpm exec lint-staged"},"gitHead":"d644a414e941dc623576e61058e6a677da389ca1","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.4","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-AxZJUX2GFH/S9jZqGNB7Px10p/gNPPYaETfuLHSiUxBUVvDB6+oo7owjbGA5s4XBDmv+85WxkdujiNMo81nwJg==","shasum":"c44eb9796043178261736dc68dbaa42af6fe050e","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.4.tgz","fileCount":17,"unpackedSize":35932,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn2njoSIvIRL0A5ICtbSgMM4afQ9zXiK/qgCfP5EVynwIgerKXlDYdWDsSDq9TvYgJmohorQ/5XOjnk/R1T5csA/A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2PKYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3YxAAoYne1H7aYYSmGWpkQIMe2wsHcrJfTm9l4HuU3UxGBMYfcpL0\r\nHsgNXxBdgQe//Ae3ee8fzAGJAHKKz9HFax7AZRRDlkHSFXX/TxS0JwWfUKcQ\r\negrd1DabagPtzQ+0zp3XzjUxc+5U5SR5EVtIOrO0yogKYRsamJyuouOZHBiO\r\n7GNj0cSgeS0nyMMbg5zRpgyUbRPjenteR/xF9HnYaJChI1Z1VC98njqO7B7Y\r\nwOM8366oM2lBpk/cZURoc1yntBmAS0yacRtBLMX6NJT/n3dQiInFf051E082\r\nRRXidU7TVwGajxw3yfung0WirYNDdN0somKgHbz/O/llanosUya1jgTxnT7j\r\nANhAyTHUPH4MQ5b1bvyEEHM8ETv6juOmU8rLh9MIbbtTAVBLpX9DHG7orwJJ\r\n+S6SyXVK4a75e6Y23/niTEI/1z64nKy5IQknFn/qmdzP0gtNjxlwXvvmpf5j\r\n8WlTgQxOZnbVe5dn1qpUO/SiVS4oKADHDCpOas88d1BDW7rzXNjGrwdBPhhZ\r\nwnOSPmBZDRUljvymMT/2VxjX5DQgZEYRPnwUBx1rSxtF7nT2ynMaFLfbsx9s\r\ngH1J2h+8FUXrlq8TqDF5s6eOYscngQDHr3L8HBs4peb9l1J7JnK2dWxiTLSj\r\nRLux3dL6G2LxsVJcoGEY83oHU9/8g41PEWg=\r\n=KvNe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.4_1658385048160_0.23173882322272732"},"_hasShrinkwrap":false},"1.1.5":{"name":"react-hook-dialog","version":"1.1.5","description":"React hooks for master your dialog(modal) component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","test":"jest","format":"prettier --write \"**/*.{js,ts,tsx,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@testing-library/react":"^13.3.0","@trivago/prettier-plugin-sort-imports":"^3.2.0","@types/jest":"^28.1.6","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","lint-staged":"^13.0.3","microbundle":"^0.15.0","prettier":"^2.7.1","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.0","ts-jest":"^28.0.7","typescript":"^4.7.4"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx,md}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"gitHead":"43878d65dedf7c304ccbd2ab64a34d15325a4a9f","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.1.5","_nodeVersion":"16.15.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-f8Ed1097EoDcCcK74GQwJLazuDKM32N58SS38YIRHqUzjhEwQznuPH8HugEjFL4i1wrO3eg9ZGzmXq97R5xrlg==","shasum":"8faa2818500f5239e7a4e1c72a751546dd62cdf0","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.1.5.tgz","fileCount":17,"unpackedSize":36001,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7wJiVmhRG2aVScFBVgQSe223RmicH4HHe2G4yfZ9n2QIhAJps0hGPuyp/v8wbTk5jaaBSS8kIGQafVdPqZzYfExDJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+j13ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpsqg//bvvS8Fmwgv2LmaI9KpWe/Sq14/wObbpAHCPZjAHBWaz15aXh\r\nyi/hX8kF2eS+uHoEIv1efamEaw2t848nHpgYj6oDJJf4sZVS8MT2xd+gldOz\r\ncql0SvIrgKoFxgW8Kxlk8oTDaR3QFYzkL80/GwIy/VCCws6Q7UG8raInO0Sl\r\nYzWiZDT9hcx6U6M3icUUZP/jFHlcOyUjtgROCiq7/80n2UPU0l9+hAiN1LVd\r\np5bnCvs0ffnclvBBGDvAf36t2sMW05ao5t+CVzaFQdi0yo6GFXM29YyRgT7X\r\nCvIE57FyvRpabIaT2b1eC/T/GWj/DgOn7XSzga3EjyeJYb8X5iEvQHZp3QxK\r\nTWTg1ZYJ11O/neqk1J+zU2BQelnN4FTV14ofz/inhgQyT1b15VIlY62H2fxk\r\nCFdicv3ywW+YMYv9+bb3LoJOWBq50z5M1Mr0knvIa8qQK9Gr3RDzBGJJ8d2C\r\nO0+t/sm9geY5m82tI9cfVFch/4D+AgsIKKWlpOEtlMR/xbuEZqSt1yjbDn41\r\n/fDobtPMrh3BQgHdG60hAjvuB+DE8Cgs++KNQjYi4I+QNBb8CLLkXhEJ4zLz\r\nwcUKsrOHcYXE2V3T1HWZ2hFOYBZZRVhnkUfcFAhazKYbR1x5QBejGDoN1yPL\r\nzy6vXy0/KggDN9dXMGX73G/ElsOjgGIFC+0=\r\n=1jYn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.1.5_1660566903001_0.46362931723110035"},"_hasShrinkwrap":false},"1.2.0":{"name":"react-hook-dialog","version":"1.2.0","description":"React hooks for master your dialog(modal) component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","format":"prettier --write \"**/*.{js,ts,tsx,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.4.0","@types/react":"^18.0.27","@types/react-dom":"^18.0.10","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","eslint":"^8.33.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.1.1","microbundle":"^0.15.1","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.1","typescript":"^4.9.5"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx,md}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"gitHead":"e9872833863593790fd560ac9ed8c9486f220bf4","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.2.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Fl8+Lz1MDwNasKJdX02+AvjYEyAXbu6skSSLzWDaI8oaKHUmjrQJGPF7ifvkeHzs1vKInGWcYvULKuHlD+opNA==","shasum":"32e5dbc06c79492c109898aaa422323e6ae9872c","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.2.0.tgz","fileCount":16,"unpackedSize":31947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmX2y+bQQX82mfo6nzfh2aTbDxRcDhFr5gwpwBIkhw4gIgbzavrVuLfhOKtQEKanu4quzYTAvh65zeD+Pr2EfplNc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5nB+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqm/w//QAEymUQGVjiiI/IxCDSHTG1JhBp0zLWFPs22Zvr9ci1KDvAo\r\nBDJAPp+9lBHEufSm6dMz6IVoe16Wov38hKHp9KOYrZkhl7fS1O7cmpXuEuZt\r\nL9x1mLOQPfjBNQD/MSV/l1bWyfn7fcdE2avMSnwJQybee4jDhJzyFaUFnfn2\r\nhBjKOvKmCGcQWRTSwTshimwwiU5qZiLc2P1Xu6MHAf0enOnH+QqjFRtrLLOU\r\n4jFwLIZci5zCPdU3joAyHUXvdLv/qXRUMChzoB0LfAxKeIqeVSWiBS5GJ2wu\r\n2qLupldWbEEbTdaUuThoeTLzhErXP/dmSF0eh8SmxlOdJMMc0NXUt+0I42wB\r\nB2dfLifJ8MB7EQJ5rFMdiPdhQB02casOlat4doD1Hjbos2jUAoXDQ5814IMu\r\nfQm+s4We9KGm44rFGXprNndScs/yIE6qlDHQ3y2xUTY+z4fyDVPQcOB60xDf\r\ntHILPqCLq/t/LTZor+Faq80rS4ecA4LNb2NpouMvzJxRRndzh6lJ0QeJ8YjF\r\ngjryvRLrK1kSYiXlh0Tw3nh6MT8sLKS9BBJ2csybF6NrlTPXX/Z86iGaf+5s\r\nWQ3APznmv0L7Zz5lA3RSgfvosqo8G9Domi+dYVHtlVtuoN6oHPe7PjLA3Dnx\r\n4mzTYMCdaP7OhZsVd1jSN+LnqKAQXiCcNCc=\r\n=N/Qr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.2.0_1676046462075_0.6164231576175347"},"_hasShrinkwrap":false},"1.2.1":{"name":"react-hook-dialog","version":"1.2.1","description":"React hooks for master your dialog(modal) component","sideEffects":false,"source":"src/index.ts","main":"dist/react-hook-dialog.js","module":"dist/react-hook-dialog.module.js","unpkg":"dist/react-hook-dialog.umd.js","types":"dist/index.d.ts","scripts":{"prepare":"simple-git-hooks","prepublishOnly":"pnpm run build","build":"rimraf dist && microbundle -f es,umd,cjs --globals react/jsx-runtime=jsx","format":"prettier --write \"**/*.{js,ts,tsx,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --fix"},"keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"license":"MIT","devDependencies":{"@trivago/prettier-plugin-sort-imports":"^3.4.0","@types/react":"^18.0.27","@types/react-dom":"^18.0.10","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","eslint":"^8.33.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","lint-staged":"^13.1.1","microbundle":"^0.15.1","prettier":"^2.8.3","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^3.0.2","simple-git-hooks":"^2.8.1","typescript":"^4.9.5"},"peerDependencies":{"react":"^16.8.0 || ^17 || ^18"},"lint-staged":{"*.{js,ts,tsx,md}":["prettier --write"]},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"gitHead":"cccf8e522b35cea580da7d426e40ec45eb513758","bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"homepage":"https://github.com/jsun969/react-hook-dialog#readme","_id":"react-hook-dialog@1.2.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-6M1aGYumxi++nSUg7A7MWjOWt5lvIDGeOeOTBCxQM/v6p4VT3ZXor7uBmOSKkhnbd4SKKJXnOyhPwzI3PQXsNQ==","shasum":"7ca065bc98a2990a375a09f39ad902468b1cc7bd","tarball":"https://registry.npmjs.org/react-hook-dialog/-/react-hook-dialog-1.2.1.tgz","fileCount":16,"unpackedSize":31963,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlQa1lQnexlTHpdszGoyz2ncA1ss3qIzoH8VTHyucbzQIgSqDz2UV3pqJTp7xGdW3PWJ9dy0f1+jD4nlPc0Ie9mpk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5nzAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpqaw/8CWwxDKeQHcZrLCa/ksTj2ZzFCThUdM9FzN1JHjAEjRBB1k83\r\nyduMyIcwF/b7/3K9FUYl4sXxqcNDRUEFUyJNwpRoBeAnJXI3UbAaP0MJbMsH\r\nXAci9OrXyyCjGCJuNpEARLSkRQoDT/q8RMBBuoktzSKJjCwvK/PJ1Aowtn40\r\nBH4+yoRIMtN3hvDkmW7uCaEWqDN+wOfa2A/cbi9Fb6eikr9V8Y58ysbqJmUc\r\nRZeV7dQuKYalUBMIavG4k3dadCRolLKwOYG0ylmOS+EzfddZj9OWzUcI+Wqq\r\nmz7VsY88foU74Mp+RKFjp28w7Ct5oC9rhTuHVgu4uZNUhwf/VzQMMIxiHRVO\r\njgJkjTOvs9u3LUa20DGr56YJDg5qWv2ET6hjkjpzRIbR5VLNzYCS+BtzsYRI\r\nASR3HODMUxRVcLeV/VKTxkqkhaqnDVxosPhHBhiYRZDJW6u8AFlkT8LC7wiF\r\nfUb/xMEkN3108Fp/UaJr+8iHgofT2qX0uoqvdtFWlGHLgrH5T7LHo8mAl3IF\r\nX3zswoD7qrgZkYay3n776QNRDmZ9aXGCRG7hwM/QtdJebHvqD7h74rAbn5Z5\r\nxE9bm2+2SQ3g8DiaL3jBYNUOeU4kPmGxRWJCG/efznE3fS3InNktqL4nbOo4\r\nxx/5DSVeJT+aPhhB/uxkIIPBPx6hoENxOHU=\r\n=4e+k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jsun969","email":"i@jsun969.cn"},"directories":{},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-dialog_1.2.1_1676049599808_0.8829100566574948"},"_hasShrinkwrap":false}},"maintainers":[{"name":"jsun969","email":"i@jsun969.cn"}],"description":"React hooks for master your dialog(modal) component","homepage":"https://github.com/jsun969/react-hook-dialog#readme","keywords":["react","hook","dialog","modal"],"repository":{"type":"git","url":"git+ssh://git@github.com/jsun969/react-hook-dialog.git"},"author":{"name":"Justin Sun"},"bugs":{"url":"https://github.com/jsun969/react-hook-dialog/issues"},"license":"MIT","readme":"<div align=\"center\">\n\n# 💬 React Hook Dialog\n\nReact hooks for master your dialog(modal) component\n\n[![version](https://img.shields.io/npm/v/react-hook-dialog?style=for-the-badge)](https://www.npmjs.com/package/react-hook-dialog)\n[![license](https://img.shields.io/npm/l/react-hook-dialog?style=for-the-badge)](https://github.com/jsun969/react-hook-dialog/blob/main/LICENSE)\n[![size](https://img.shields.io/bundlephobia/minzip/react-hook-dialog?style=for-the-badge)](https://bundlephobia.com/result?p=react-hook-dialog)\n\nEnglish | [简体中文](./README_zh-CN.md)\n\n</div>\n\n## ✨ Features\n\n- 🧙‍♂️ TYPE SAFE\n- 🐎 Awesome DX\n- 🍃 Super light\n\n## 🕶 Example\n\n- [Material UI](https://codesandbox.io/s/rhd-mui-example-etwz20)\n- [Ant Design](https://codesandbox.io/s/rhd-antd-example-qhj7zy)\n\n## 📦 Installation\n\n```bash\nnpm install react-hook-dialog\n```\n\n## 🎯 Quickstart\n\n`lib/dialog.ts`\n\n```tsx\nimport { createDialogs, createDialogHooks } from 'react-hook-dialog';\n\nexport const dialogs = createDialogs({\n  customDialog: { title: '', content: '' },\n});\n\nexport const dialog = createDialogHooks(dialogs);\n```\n\n`components/CustomDialog.tsx`\n\n```tsx\nimport { Dialog } from 'your-ui-lib';\n\nimport { dialog } from '../lib/dialog';\n\nconst CustomDialog = () => {\n  const { isOpen, handleClose, props } =\n    dialog.useDialogController('customDialog');\n\n  return (\n    <Dialog open={isOpen} onClose={handleClose}>\n      <h3>{props.title}</h3>\n      <p>{props.content}</p>\n    </Dialog>\n  );\n};\n\nexport default CustomDialog;\n```\n\n`main.tsx`\n\n```tsx\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { DialogProvider } from 'react-hook-dialog';\n\nimport App from './App';\nimport CustomDialog from './components/CustomDialog';\nimport { dialogs } from './lib/dialog';\n\nReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(\n  <React.StrictMode>\n    <DialogProvider dialogs={dialogs}>\n      <App />\n      <CustomDialog />\n    </DialogProvider>\n  </React.StrictMode>,\n);\n```\n\n`anywhere`\n\n```tsx\nimport { dialog } from 'dir to lib/dialog';\n\nconst YourComponent = () => {\n  const { open, close, isOpen } = dialog.useDialog('customDialog', {\n    title: 'Some Title',\n    content: 'some content',\n  });\n\n  return (\n    <>\n      <div>Dialog Status: {isOpen ? 'open' : 'closed'}</div>\n      <button onClick={() => open()}>Open Dialog</button>\n      <button onClick={() => close()}>Close Dialog</button>\n      <button onClick={() => open({ title: 'Another Title' })}>\n        Open Another Dialog\n        {/* { title: 'Another Title', content: 'some content' } */}\n      </button>\n    </>\n  );\n};\n\nexport default YourComponent;\n```\n\n## 🕹 API\n\n### 🔗 `createDialogs`\n\nInitialize your dialogs name and props\n\n```ts\nconst dialogs = createDialogs({\n  firstDialogName: {\n    title: '',\n    content: '',\n  },\n  secondDialogName: {\n    lol: '',\n    olo: '',\n  },\n});\n```\n\n### 🔗 `DialogProvider`\n\n```tsx\n<DialogProvider dialogs={dialogs}>\n  <App />\n  <FirstDialog />\n  <SecondDialog />\n</DialogProvider>\n```\n\n### 🔗 `createDialogHooks`\n\nCreate type-safe dialog hooks\n\n```ts\nconst dialog = createDialogHooks(dialogs);\n```\n\n### 🔗 `useDialogController`\n\nA hook to control your dialog component\n\n```tsx\nconst { isOpen, handleClose, props } = dialog.useDialogController('dialogName');\n\nreturn <Dialog open={isOpen} onClose={handleClose} {...props}>\n```\n\n### 🔗 `useDialog`\n\nA hook to use any dialogs anywhere!\n\n> **Note**  \n> You may have found that the dialog props can be defined in 3 places  \n> Priority: `open` > `useDialog` > `createDialogs`\n\n```tsx\nconst { open, close, isOpen } = dialog.useDialog(\n  'dialogName',\n  { title: 'New Title' }, // Dialog props\n);\n```\n\n```tsx\n<>\n  <div>Dialog Status: {isOpen ? 'open' : 'closed'}</div>\n  <button onClick={() => open({ title: 'New New Title' })}>Open</button>\n  <button onClick={() => close()}>Close</button>\n</>\n```\n","readmeFilename":"README.md"}