{"_id":"@bz-public/react-datepicker-2","_rev":"1-35672067248319c8ce7fe1c62844fec0","name":"@bz-public/react-datepicker-2","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bz-public/react-datepicker-2","version":"1.0.0","description":"react datepicker component. (include persian jalaali calendar)","main":"dist/umd/index.js","types":"dist/types/index.d.ts","module":"dist/umd/index.js","repository":{"type":"git","url":"git+https://github.com/mberneti/react-datepicker2.git"},"keywords":["react","react-datepicker","react-datepicker2","react-jalaali-datepicker","jalaali-datepicker","jalaali","datepicker","component","react component","react-component"],"author":{"name":"mohammadreza berneti","url":"mberneti"},"license":"MIT","scripts":{"cypress":"cypress open","test":"jest --runInBand --detectOpenHandles --no-cache --config ./jest.config.js --coverage && minicat coverage/lcov.info | coveralls","start":"webpack-dev-server --mode development --config webpack.config.dev.js","build":"npm-run-all build:dist build:docs","build:dist":"npm run build:css && npm run build:js","build:docs":"webpack --config webpack.config.docs.js","build:js":"rollup -c","build:css":"npm run compile && npm run prefix && npm run minify","compile":"node-sass --output-style=expanded --source-map=true src/styles/style.scss src/styles/style.css","prefix":"postcss src/styles/style.css --use=autoprefixer --map=false --output=src/styles/style.css","minify":"cleancss --level=1 --source-map --source-map-inline-sources --output src/style.min.css src/styles/style.css","lint":"eslint src --fix","formatcodes":"prettier --write \"./src/**/*.js\""},"dependencies":{"@material-ui/core":"^4.11.0","classnames":"^2.2.5","lodash.range":"^3.2.0","moment-jalaali":"0.9.1","moment-range":"^4.0.2","prop-types":"^15.7.2","rc-trigger":"3.0.0","react-onclickoutside":"^6.8.0","react-tether":"^2.0.0","react-with-styles":"4.1.0"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-proposal-class-properties":"^7.4.4","@babel/plugin-proposal-decorators":"^7.4.4","@babel/plugin-proposal-object-rest-spread":"^7.4.4","@babel/plugin-transform-modules-commonjs":"^7.4.4","@babel/plugin-transform-object-assign":"^7.2.0","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.5","@babel/preset-react":"^7.0.0","@babel/preset-stage-0":"^7.0.0","@babel/runtime":"^7.4.5","autoprefixer":"^9.5.1","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","babel-plugin-module-resolver":"^3.2.0","babel-plugin-transform-decorators-legacy":"^1.3.5","babel-polyfill":"^6.23.0","babel-preset-es2015":"^6.24.0","babel-preset-es2016":"^6.22.0","babel-preset-next":"^1.2.0","babel-preset-stage-0":"^6.22.0","babel-runtime":"^6.23.0","clean-css-cli":"^4.3.0","coveralls":"^2.12.0","css-loader":"^2.1.1","cypress":"^5.0.0","enzyme":"^2.9.1","enzyme-adapter-react-16":"^1.13.1","eslint":"^5.16.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^4.3.0","eslint-plugin-import":"^2.17.3","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.13.0","file-loader":"^3.0.1","highlight.js":"^9.10.0","html-webpack-plugin":"^3.2.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jest-enzyme":"^7.0.2","jscoverage":"^0.6.0","mini-css-extract-plugin":"^0.6.0","minicat":"^1.0.0","moment":"^2.18.1","@material-ui/core":"^4.12.3","node-sass":"^4.12.0","nodeunit":"^0.11.0","npm-run-all":"^4.1.5","path":"^0.12.7","postcss-cli":"^6.1.2","postcss-loader":"^3.0.0","prettier":"^1.18.2","react":"^16.8.4","react-addons-test-utils":"^15.4.2","react-dom":"^16.8.4","react-parallax":"^2.2.0","react-sticky":"^6.0.3","react-switch":"^4.1.0","react-syntax-highlight":"^15.3.1","react-test-renderer":"^16.8.4","rollup":"2.6.0","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"10.1.0","rollup-plugin-filesize":"^6.2.1","rollup-plugin-local-resolve":"^1.0.7","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-postcss":"^2.0.3","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.1.3","sass-loader":"^7.1.0","style-loader":"^0.23.1","webpack":"^4.32.2","webpack-cli":"^3.3.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2"},"peerDependencies":{"react":"^16.0.0","react-dom":"^16.0.0"},"browserslist":["last 2 versions"],"gitHead":"f78dba09ca5aad586fa4881b45e7877537cac0ee","bugs":{"url":"https://github.com/mberneti/react-datepicker2/issues"},"homepage":"https://github.com/mberneti/react-datepicker2#readme","_id":"@bz-public/react-datepicker-2@1.0.0","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-zHL5Jf8ruVUVGTgK2iXPWoONrjAZ0uI9IMtGnZlxLP86L89P/fvsAO/25TY7eoaWzbGDyQeSePdviU1/yFhhcA==","shasum":"614ca78aa6d1e425a1494151ecbe9bb2ba596cc0","tarball":"https://registry.npmjs.org/@bz-public/react-datepicker-2/-/react-datepicker-2-1.0.0.tgz","fileCount":160,"unpackedSize":7714037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQd8HCRA9TVsSAnZWagAA3JcP/iYkTLlOr6OPcELoBL4B\nagqZHPz+yWJ3mZt5rzshEgKIsDFl0EoDNyiNPgFRXLXN3+6qg03Yb6fYeq8c\ngRVVv5WX5dkhRqK23rvZQA8LRQeLXnkJHp/hFfFBSQvsuZwpNEYpOICYFDr1\nDs9W8cacPQ0/FYE2agdvLZ57pGPakrsgKT+I7i/0DNDkSOrIxNQhwb36dmLl\nQiMwshf7VYvBAJ/iwApmYMi658zmnYHitnKxhz1c7VHrBJVwlK0tIqv2cICq\nnNaa0iNaL8k/yHs+ldCumbxTwNftH3CyCC08+p9rThCtm2hwN2eWH16MzsM3\nbFi0jgzsvq9G6NE0IeHip2FlgvIt87H4Ctxo7zpskTfNAJStZQ1QDKC+kQ+G\nk7JxrK9ryi0OorrFmwaOY5URiFcKRc0nA8lkq1dT8yzUvtCBvXvT0QAPbAoU\nfRPo+XUc12ihJQXq/HziFLZmas5tMEC6YCLGrGIqqub5y/y0dcSQGNuedweM\nkfcp8M/71Oet9EsqJOy9OdpZb6HhXz+6OQObDARVIt0voCxVK+bIyBQ7XR8N\nDW3z3DyPbQ3jBIllVU7PT6I18QCSTuL43ntq3G9NhyEN8rknRmUDUJxbSKQ4\nkFZijIHN7e1fFw+kx0vsnR0+3wDoiejdGSSHE99z+94OdchlmI/rzLOtBbuZ\nQHjd\r\n=GR6a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkRWbEw3qp4PZb7yHZg9ALo5h6Wpie4zHMJX0jPgI6/QIhALf0KoQT6rAM+9n/sPEQzrV+GfjT7kS1WC9XIgMl78YQ"}]},"_npmUser":{"name":"babak.zarrinbal","email":"babak.zarrinbal@gmail.com"},"directories":{},"maintainers":[{"name":"babak.zarrinbal","email":"babak.zarrinbal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-datepicker-2_1.0.0_1631706887631_0.7952606099779151"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-15T11:54:47.559Z","1.0.0":"2021-09-15T11:54:47.869Z","modified":"2022-04-04T21:23:34.152Z"},"maintainers":[{"name":"babak.zarrinbal","email":"babak.zarrinbal@gmail.com"}],"description":"react datepicker component. (include persian jalaali calendar)","homepage":"https://github.com/mberneti/react-datepicker2#readme","keywords":["react","react-datepicker","react-datepicker2","react-jalaali-datepicker","jalaali-datepicker","jalaali","datepicker","component","react component","react-component"],"repository":{"type":"git","url":"git+https://github.com/mberneti/react-datepicker2.git"},"author":{"name":"mohammadreza berneti","url":"mberneti"},"bugs":{"url":"https://github.com/mberneti/react-datepicker2/issues"},"license":"MIT","readme":"# This project is a customization of react-datepicker2 \r\n\r\n\r\n# React DatePicker2\r\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\r\n[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)\r\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\r\n\r\n[![npm](https://img.shields.io/npm/v/react-datepicker2.svg)](https://www.npmjs.com/package/react-datepicker2)\r\n[![npm](https://img.shields.io/npm/dt/react-datepicker2.svg)](https://www.npmjs.com/package/react-datepicker2)\r\n[![Build Status](https://travis-ci.org/mberneti/react-datepicker2.svg?branch=master)](https://travis-ci.org/mberneti/react-datepicker2)\r\n[![Dependency Status](https://david-dm.org/mberneti/react-datepicker2.svg)](https://david-dm.org/mberneti/react-datepicker2)\r\n\r\nA simple and reusable Datepicker component for React (with persian jalali calendar support) [Demo](https://mberneti.github.io/react-datepicker2/).\r\n\r\n![](https://mberneti.github.io/react-datepicker2/images/react-datepicker2.gif)\r\n\r\nThis package uses [react-persian-datepicker](https://github.com/evandhq/react-persian-datepicker) project under the hood.\r\n\r\n## Installation\r\n\r\nThe package can be installed via NPM:\r\n\r\n```\r\nnpm install react-datepicker2 --save\r\n```\r\n\r\nAt this point you can import react-datepicker2 and its styles in your application as follows:\r\n\r\n```js\r\nimport DatePicker from 'react-datepicker2';\r\n```\r\n\r\nBelow is a simple example on how to use the Datepicker in a React view.\r\n\r\n```js\r\nimport React from 'react'\r\nimport moment from 'moment-jalaali'\r\nimport DatePicker from 'react-datepicker2';\r\n\r\nexport default class ReactClass extends React.Component {\r\n  constructor(props) {\r\n    super(props);\r\n    this.state = { value: moment() };\r\n  }\r\n  render() {\r\n    return <DatePicker\r\n      onChange={value => this.setState({ value })}\r\n      value={this.state.value}\r\n    />\r\n  }\r\n}\r\n```\r\n\r\n## Configuration\r\n\r\nThe most basic use of the DatePicker can be described with:\r\n\r\n```js\r\n<DatePicker onChange={value => this.setState({ value })} value={this.state.value} />\r\n```\r\n\r\n## Local Development\r\n\r\nThe `master` branch contains the latest version of the Datepicker2 component. To start your example app, you can run `npm install` then `npm start`. This starts a simple webserver on http://localhost:8080.\r\n\r\n## Todo\r\n\r\n- [x] Write some tests\r\n- [x] Improve documentation\r\n- [x] Remove css loading dependency\r\n- [x] UI improvements\r\n- [x] Adding new highlight feature\r\n- [x] Adding new year picker feature\r\n- [x] Adding typescript support\r\n- [ ] Adding new rangepicker feature\r\n\r\n## Built With\r\n\r\n* [moment-jalaali](https://github.com/jalaali/moment-jalaali) - A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.\r\n\r\n## Thanks\r\nSpecial thanks to [@mohebifar](https://github.com/mohebifar) for his open-source project which this component is based on.\r\n\r\n## Contributing\r\nContributions are **welcome** and will be fully **credited**.\r\nI'd be happy to accept PRs for that.\r\n\r\n## License\r\n\r\nCopyright (c) 2016 [mberneti](https://twitter.com/mberneti) Inc. and individual contributors. Licensed under MIT license, see [LICENSE](LICENSE) for the full license.\r\n\r\n## Contributors ✨\r\n\r\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\r\n\r\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\r\n<!-- prettier-ignore-start -->\r\n<!-- markdownlint-disable -->\r\n<table>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"http://berneti.ir\"><img src=\"https://avatars3.githubusercontent.com/u/3443365?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>mohammadreza berneti</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/commits?author=mberneti\" title=\"Code\">💻</a> <a href=\"#ideas-mberneti\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=mberneti\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Amberneti\" title=\"Bug reports\">🐛</a> <a href=\"#design-mberneti\" title=\"Design\">🎨</a> <a href=\"#example-mberneti\" title=\"Examples\">💡</a> <a href=\"#maintenance-mberneti\" title=\"Maintenance\">🚧</a> <a href=\"#platform-mberneti\" title=\"Packaging/porting to new platform\">📦</a> <a href=\"#question-mberneti\" title=\"Answering Questions\">💬</a> <a href=\"https://github.com/mberneti/react-datepicker2/pulls?q=is%3Apr+reviewed-by%3Amberneti\" title=\"Reviewed Pull Requests\">👀</a> <a href=\"#projectManagement-mberneti\" title=\"Project Management\">📆</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/mohebifar\"><img src=\"https://avatars1.githubusercontent.com/u/6104558?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Mohamad Mohebifar</b></sub></a><br /><a href=\"#ideas-mohebifar\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=mohebifar\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=mohebifar\" title=\"Code\">💻</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/aliazizi\"><img src=\"https://avatars1.githubusercontent.com/u/8492767?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Ali Akbar Azizi</b></sub></a><br /><a href=\"#maintenance-aliazizi\" title=\"Maintenance\">🚧</a> <a href=\"#platform-aliazizi\" title=\"Packaging/porting to new platform\">📦</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=aliazizi\" title=\"Code\">💻</a> <a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Aaliazizi\" title=\"Bug reports\">🐛</a> <a href=\"#question-aliazizi\" title=\"Answering Questions\">💬</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/alinjf\"><img src=\"https://avatars3.githubusercontent.com/u/15678289?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Ali Najafi</b></sub></a><br /><a href=\"#maintenance-alinjf\" title=\"Maintenance\">🚧</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=alinjf\" title=\"Code\">💻</a></td>\r\n    <td align=\"center\"><a href=\"http://mehralian.org\"><img src=\"https://avatars0.githubusercontent.com/u/13819774?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Mehrdad Mehralian</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/commits?author=dadwic\" title=\"Code\">💻</a> <a href=\"#design-dadwic\" title=\"Design\">🎨</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/shayegh\"><img src=\"https://avatars1.githubusercontent.com/u/10929932?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>mojtaba Shayegh</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Ashayegh\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=shayegh\" title=\"Code\">💻</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/moryrasb\"><img src=\"https://avatars1.githubusercontent.com/u/15072825?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>mory rezaee</b></sub></a><br /><a href=\"#maintenance-moryrasb\" title=\"Maintenance\">🚧</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=moryrasb\" title=\"Code\">💻</a></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"https://github.com/Doomfang3\"><img src=\"https://avatars1.githubusercontent.com/u/37439688?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Mathieu Saubin</b></sub></a><br /><a href=\"#maintenance-Doomfang3\" title=\"Maintenance\">🚧</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=Doomfang3\" title=\"Code\">💻</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/alireza-molaee\"><img src=\"https://avatars0.githubusercontent.com/u/15848730?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>alireza molaee</b></sub></a><br /><a href=\"#maintenance-alireza-molaee\" title=\"Maintenance\">🚧</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=alireza-molaee\" title=\"Code\">💻</a></td>\r\n    <td align=\"center\"><a href=\"https://github.com/alimzadeh\"><img src=\"https://avatars3.githubusercontent.com/u/11006666?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Ali MoghaddasZadeh</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Aalimzadeh\" title=\"Bug reports\">🐛</a></td>\r\n    <td align=\"center\"><a href=\"http://ir.linkedin.com/in/amirzamani\"><img src=\"https://avatars0.githubusercontent.com/u/6501462?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>amir zamani</b></sub></a><br /><a href=\"#maintenance-azadkuh\" title=\"Maintenance\">🚧</a> <a href=\"#platform-azadkuh\" title=\"Packaging/porting to new platform\">📦</a> <a href=\"https://github.com/mberneti/react-datepicker2/commits?author=azadkuh\" title=\"Code\">💻</a> <a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Aazadkuh\" title=\"Bug reports\">🐛</a> <a href=\"#question-azadkuh\" title=\"Answering Questions\">💬</a></td>\r\n    <td align=\"center\"><a href=\"http://afsanefadaei.ir\"><img src=\"https://avatars0.githubusercontent.com/u/37764909?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Afsane Fadaei</b></sub></a><br /><a href=\"#maintenance-afsanefda\" title=\"Maintenance\">🚧</a> <a href=\"#question-afsanefda\" title=\"Answering Questions\">💬</a></td>\r\n    <td align=\"center\"><a href=\"http://learnyab.com\"><img src=\"https://avatars2.githubusercontent.com/u/17334987?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Hossein Aghatabar</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/issues?q=author%3Awhossein\" title=\"Bug reports\">🐛</a></td>\r\n    <td align=\"center\"><a href=\"http://salehian.me/\"><img src=\"https://avatars1.githubusercontent.com/u/8876390?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Mahdi </b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/commits?author=mahdisalehian\" title=\"Code\">💻</a></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"https://github.com/hoseinBL\"><img src=\"https://avatars1.githubusercontent.com/u/3403583?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Hosein BehkamaL</b></sub></a><br /><a href=\"https://github.com/mberneti/react-datepicker2/commits?author=hoseinBL\" title=\"Code\">💻</a></td>\r\n  </tr>\r\n</table>\r\n\r\n<!-- markdownlint-enable -->\r\n<!-- prettier-ignore-end -->\r\n<!-- ALL-CONTRIBUTORS-LIST:END -->\r\n\r\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\r\n","readmeFilename":"README.md"}