{"name":"react-day-picker","version":"2.0.3","keywords":["react","react-component","component","calendar","date-picker","datepicker","date","picker","moment","momentjs"],"author":{"name":"Giampaolo Bellavite","email":"io@gpbl.org"},"license":"MIT","_id":"react-day-picker@2.0.3","maintainers":[{"name":"gpbl","email":"io@gpbl.org"}],"homepage":"https://github.com/gpbl/react-day-picker","bugs":{"url":"https://github.com/gpbl/react-day-picker/issues"},"dist":{"shasum":"88b8ee0402ac8dd1c95bdf6c4a7583bef495ba1a","tarball":"http://registry-npm.ywwl.com/react-day-picker/download/react-day-picker-2.0.3.tgz","integrity":"sha512-HA5yXepwxeaPCKkjXE0SwQUXdBLwiTVVBcUowc0sxD66DX8gpWIZmVfn6AUv2vMzN5Gcb7iU0q9V4s6G5V07ew==","signatures":[{"sig":"MEUCIQDn6VtNGa0SYl4BkA3NT0qY5EjJtjAl7jQQbZ5ZGhcqAgIgPtmkAOWGwE870jABH4QhP0MAe1Uc8SW7g2xj8tD0OS0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":57153,"noattachment":false,"key":"/react-day-picker/-/react-day-picker-2.0.3.tgz"},"main":"DayPicker.js","_from":".","style":"lib/style.css","_shasum":"88b8ee0402ac8dd1c95bdf6c4a7583bef495ba1a","gitHead":"2dcf81466c0d56c65cbace8f940fb0f5503ace40","scripts":{"lint":"eslint src test","test":"mocha --compilers js:babel-core/register --require ./test/setup.js --recursive --reporter spec","check":"npm run lint && npm run test","clean":"rimraf lib coverage dist","cover":"babel-node ./node_modules/istanbul/lib/cli cover -- _mocha --recursive --reporter spec","docs:build":"npm run docs:prepare && gitbook build","docs:clean":"rimraf _book","docs:watch":"npm run docs:prepare && gitbook serve","prepublish":"babel ./src -d ./lib --source-maps && postcss --use autoprefixer src/style.css -d lib/","prerelease":"npm run check && webpack -p","test:watch":"npm test -- --watch","test:single":"mocha --compilers js:babel-core/register --require ./test/setup.js --reporter spec --bail --watch","docs:prepare":"gitbook install","docs:publish":"npm run docs:clean && npm run docs:build && npm run examples:build && rimraf _book/examples && mv examples/built _book/examples && cd _book && git init && git commit --allow-empty -m 'Update docs and examples' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update docs and examples' && git push git@github.com:gpbl/react-day-picker gh-pages --force","examples:build":"npm run examples:clean && cd examples && npm run build && cd ..","examples:clean":"rimraf examples/built"},"_npmUser":{"name":"gpbl","email":"io@gpbl.org"},"repository":{"url":"git+https://github.com/gpbl/react-day-picker.git","type":"git"},"_npmVersion":"2.14.12","description":"Flexible date picker component for React","directories":{"doc":"docs"},"_nodeVersion":"4.2.6","devDependencies":{"chai":"3.5.0","jsdom":"9.0.0","mocha":"2.4.5","react":"15.0.2","sinon":"1.17.4","enzyme":"2.3.0","eslint":"2.10.1","moment":"2.13.0","rimraf":"2.5.2","cheerio":"0.20.0","webpack":"1.13.0","istanbul":"1.0.0-alpha.2","babel-cli":"6.8.0","coveralls":"2.11.9","react-dom":"15.0.2","babel-core":"6.8.0","sinon-chai":"2.8.0","chai-enzyme":"0.4.2","gitbook-cli":"2.1.3","postcss-cli":"2.5.2","autoprefixer":"6.3.6","babel-eslint":"6.0.4","babel-preset-react":"6.5.0","babel-preset-es2015":"6.6.0","eslint-plugin-react":"5.1.1","babel-preset-stage-0":"6.5.0","eslint-config-airbnb":"9.0.1","eslint-plugin-import":"1.8.0","eslint-plugin-jsx-a11y":"1.2.0","react-addons-test-utils":"15.0.2"},"peerDependencies":{"react":"~0.13.x || ~0.14.x || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-day-picker-2.0.3.tgz_1464350805238_0.834980929736048","host":"packages-12-west.internal.npmjs.com"},"readme":"# React DayPicker\n\nDayPicker is a [React](https://react.dev) component for creating date pickers, calendars, and date inputs for web applications.\n\nYou are reading the README for `react-day-picker`, the legacy DayPicker package name. It remains available for compatibility and exposes the same DayPicker API in v10, but new projects should use `@daypicker/react`.\n\n## Documentation\n\nSee **[daypicker.dev](https://daypicker.dev)** for guides, examples, and API reference, or read [the v10 docs in the repository](https://github.com/gpbl/react-day-picker/blob/main/apps/website/docs/start.mdx).\n\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/gpbl/react-day-picker/main/apps/website/static/img/screenshot-dark.png\" />\n  <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/gpbl/react-day-picker/main/apps/website/static/img/screenshot-light.png\" />\n  <img width=\"460\" src=\"https://raw.githubusercontent.com/gpbl/react-day-picker/main/apps/website/static/img/screenshot.png\"  alt=\"Screenshot of DayPicker displaying the September 2025 calendar, with the date range from the 17th to the 20th selected.\" />\n</picture>\n\n## Features\n\n- 🛠 Extensive set of props for [customizing](https://daypicker.dev/docs/customization) the calendar.\n- 🎨 Minimal design that can be [easily styled](https://daypicker.dev/docs/styling) with CSS or any CSS framework.\n- 📅 Supports [selections](https://daypicker.dev/docs/selection-modes) of single days, multiple days, ranges of days, or [custom selections](https://daypicker.dev/guides/custom-selections).\n- 🌍 Can be [localized](https://daypicker.dev/docs/localization) into any language and [time zones](https://daypicker.dev/docs/time-zone).\n- 🌐 Support for [ISO 8601](http://daypicker.dev/localization/iso-and-broadcast#iso-8601-calendar) and [broadcast](http://daypicker.dev/localization/iso-and-broadcast#broadcast-calendar) calendars, plus [Persian](http://daypicker.dev/localization/persian), [Hijri](http://daypicker.dev/localization/hijri), [Buddhist (Thai)](http://daypicker.dev/localization/buddhist), [Ethiopic](http://daypicker.dev/localization/ethiopic), and [Hebrew](http://daypicker.dev/localization/hebrew) calendars through `@daypicker/*` add-on packages.\n- 🦮 Complies with WCAG 2.1 AA requirements for [accessibility](https://daypicker.dev/guides/accessibility).\n- ⚙️ [Customizable components](https://daypicker.dev/guides/custom-components) to extend the rendered elements.\n- 🔤 Easy integration [with input fields](https://daypicker.dev/guides/input-fields).\n\nDayPicker is written in TypeScript and compiled to CommonJS and ESM. It relies on [date-fns](https://date-fns.org) for date manipulation and formatting.\n\n## Installation\n\nInstall the legacy DayPicker package name:\n\n```bash\nnpm install react-day-picker\n```\n\nFor new projects, prefer the `@daypicker/react` package name:\n\n```bash\nnpm install @daypicker/react\n```\n\n<a href=\"https://www.npmjs.com/package/react-day-picker\"><img src=\"https://img.shields.io/npm/v/react-day-picker\" alt=\"npm version\"/></a> <img src=\"https://img.shields.io/npm/dm/react-day-picker.svg\" alt=\"npm downloads\"/> <img src=\"https://img.shields.io/bundlephobia/minzip/react-day-picker\" alt=\"Min gzipped size\"/>\n\n## Example\n\n```tsx\nimport { useState } from \"react\";\n\nimport { DayPicker } from \"react-day-picker\";\nimport \"react-day-picker/style.css\";\n\nfunction MyDatePicker() {\n  const [selected, setSelected] = useState<Date>();\n\n  return (\n    <DayPicker\n      mode=\"single\"\n      selected={selected}\n      onSelect={setSelected}\n      footer={\n        selected ? `Selected: ${selected.toLocaleDateString()}` : \"Pick a day.\"\n      }\n    />\n  );\n}\n```\n\n## Compatibility\n\nDayPicker is compatible with React 16.8 and later.\n\n## License\n\nDayPicker is released under the [MIT License](https://daypicker.dev/license).\n\n## Community\n\nAsk for help and share your experience with DayPicker:\n\n- 💬 [Discussion forums](https://github.com/gpbl/react-day-picker/discussions) - Get support and provide feedback.\n- 🪳 [Report an issue](https://github.com/gpbl/react-day-picker/issues/new/choose) - Report bugs or request features.\n\n## Sponsors\n\nThank you to everyone supporting DayPicker - your sponsorship keeps this project maintained and evolving.\n\n<p>\n  <a href=\"https://github.com/CHECK24\" title=\"CHECK24\"><img src=\"https://github.com/CHECK24.png?size=64\" alt=\"CHECK24\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/wilsonadenuga\" title=\"wilsonadenuga\"><img src=\"https://github.com/wilsonadenuga.png?size=64\" alt=\"wilsonadenuga\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/severinlandolt\" title=\"severinlandolt\"><img src=\"https://github.com/severinlandolt.png?size=64\" alt=\"severinlandolt\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/syntaxfm\" title=\"syntaxfm\"><img src=\"https://github.com/syntaxfm.png?size=64\" alt=\"syntaxfm\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/thnxdev\" title=\"thnxdev\"><img src=\"https://github.com/thnxdev.png?size=64\" alt=\"thnxdev\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/katyabilokur\" title=\"katyabilokur\"><img src=\"https://github.com/katyabilokur.png?size=64\" alt=\"katyabilokur\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/bedandbreakfasteu\" title=\"bedandbreakfasteu\"><img src=\"https://github.com/bedandbreakfasteu.png?size=64\" alt=\"bedandbreakfasteu\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/Thinkmill\" title=\"Thinkmill\"><img src=\"https://github.com/Thinkmill.png?size=64\" alt=\"Thinkmill\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/AlexKDawson\" title=\"AlexKDawson\"><img src=\"https://github.com/AlexKDawson.png?size=64\" alt=\"AlexKDawson\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/dimitur2204\" title=\"dimitur2204\"><img src=\"https://github.com/dimitur2204.png?size=64\" alt=\"dimitur2204\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/indeedeng\" title=\"indeedeng\"><img src=\"https://github.com/indeedeng.png?size=64\" alt=\"indeedeng\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/flexbox\" title=\"flexbox\"><img src=\"https://github.com/flexbox.png?size=64\" alt=\"flexbox\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/github\" title=\"github\"><img src=\"https://github.com/github.png?size=64\" alt=\"github\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n  <a href=\"https://github.com/tjfred35\" title=\"tjfred35\"><img src=\"https://github.com/tjfred35.png?size=64\" alt=\"tjfred35\" width=\"48\" height=\"48\" style=\"border-radius:50%; margin: 4px;\" /></a>\n</p>\n\n- 🎗️ Become a sponsor: https://github.com/sponsors/gpbl\n","publish_time":1464350807767,"_cnpm_publish_time":1464350807767,"dist-tags":{"latest":"10.0.2","legacy-v8":"8.10.2","next":"10.0.0-next.6"}}