{"_id":"@aalexandree-g/hrnet-plugin-datepicker","_rev":"4-fcf6a810a2b17ba0bc2a322dd2b7dca0","name":"@aalexandree-g/hrnet-plugin-datepicker","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@aalexandree-g/hrnet-plugin-datepicker","version":"1.0.0","author":{"name":"Alexandre"},"_id":"@aalexandree-g/hrnet-plugin-datepicker@1.0.0","maintainers":[{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"}],"dist":{"shasum":"bd54f33724f99b3d7f8222b54a96bccba7efb65b","tarball":"https://registry.npmjs.org/@aalexandree-g/hrnet-plugin-datepicker/-/hrnet-plugin-datepicker-1.0.0.tgz","fileCount":7,"integrity":"sha512-nn5UPWFbOQDKccewTxeR3BTcs0tDLtsF5YXfTyob2DWWbggyIZ4PTF8vUjPc2ZEwsXA8S7NvIkny/sB7QPe+Qg==","signatures":[{"sig":"MEUCIGgBizLXWCT6DplBUcxZx232rKO9z/JZaqF6xotTxSI2AiEArROtsOlvKDhE+Q1g3yz1dxPcPR/TllvRdIqd1N76kyU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3511},"type":"module","gitHead":"6705dbcac7ab5fa42d4a578cc59641f6b14e7f7e","scripts":{"dev":"vite","lint":"eslint .","build":"vite build","preview":"vite preview"},"_npmUser":{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"},"_npmVersion":"10.9.2","description":"Custom React datepicker component for the HRnet project","directories":{},"_nodeVersion":"22.14.0","dependencies":{"react":"^19.2.0","moment":"^2.30.1","pikaday":"^1.8.2","react-dom":"^19.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.2.4","eslint":"^9.39.1","globals":"^16.5.0","prettier":"^3.6.2","@eslint/js":"^9.39.1","@types/react":"^19.2.5","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^5.1.1","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-react-refresh":"^0.4.24"},"_npmOperationalInternal":{"tmp":"tmp/hrnet-plugin-datepicker_1.0.0_1764080556254_0.1764933759309515","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aalexandree-g/hrnet-plugin-datepicker","version":"1.0.1","author":{"name":"Alexandre"},"_id":"@aalexandree-g/hrnet-plugin-datepicker@1.0.1","maintainers":[{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"}],"dist":{"shasum":"9603c9c8c5e8b615a0641c8b88bfb09aa1488169","tarball":"https://registry.npmjs.org/@aalexandree-g/hrnet-plugin-datepicker/-/hrnet-plugin-datepicker-1.0.1.tgz","fileCount":7,"integrity":"sha512-LHNMF0Ya3u1lYseUdeHZKZlzPop2dd8azFfD3FtlKGsFQ48UQ3LjW+nZFsQ3U9iButtRLSXpGqJjzz+IAwICTw==","signatures":[{"sig":"MEQCIByYO0gdVZcR/EegEnhM/TkyDDkgOvCmOVdFLKSK9tYZAiBys+uZqu3ETNV4BOOo+on/Cuj8E8QZPx9zv83TvIbFxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5002},"main":"./index.js","type":"module","gitHead":"6705dbcac7ab5fa42d4a578cc59641f6b14e7f7e","scripts":{"dev":"vite","lint":"eslint .","build":"vite build","preview":"vite preview"},"_npmUser":{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"},"_npmVersion":"10.9.2","description":"Custom React datepicker component for the HRnet project","directories":{},"_nodeVersion":"22.14.0","dependencies":{"moment":"^2.30.1","pikaday":"^1.8.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.2.4","eslint":"^9.39.1","globals":"^16.5.0","prettier":"^3.6.2","@eslint/js":"^9.39.1","@types/react":"^19.2.5","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^5.1.1","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-react-refresh":"^0.4.24"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/hrnet-plugin-datepicker_1.0.1_1764086603229_0.41534419794513644","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aalexandree-g/hrnet-plugin-datepicker","version":"1.0.2","author":{"name":"Alexandre"},"_id":"@aalexandree-g/hrnet-plugin-datepicker@1.0.2","maintainers":[{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"}],"dist":{"shasum":"220684df7719b196067e23d7243242192eac3cb2","tarball":"https://registry.npmjs.org/@aalexandree-g/hrnet-plugin-datepicker/-/hrnet-plugin-datepicker-1.0.2.tgz","fileCount":7,"integrity":"sha512-CU+9E1Uw0w2OsE2XbBQGWzsn6aQ9DV25EJYbJhMhGOuSos36W5tIKta3wCu94s+keS1PJH278Ee+ayE/sCGKig==","signatures":[{"sig":"MEYCIQDw+fljGRII/bgBAHUrhLpw33jN3XAFELpXpXPxyLWEYAIhALslWQFmO+X3oVzlp7ChyPOECSzOqwsr/byco1D3stG1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5004},"main":"./index.js","type":"module","gitHead":"6705dbcac7ab5fa42d4a578cc59641f6b14e7f7e","scripts":{"dev":"vite","lint":"eslint .","build":"vite build","preview":"vite preview"},"_npmUser":{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"},"_npmVersion":"10.9.2","description":"Custom React datepicker component for the HRnet project","directories":{},"_nodeVersion":"22.14.0","dependencies":{"moment":"^2.30.1","pikaday":"^1.8.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.2.4","eslint":"^9.39.1","globals":"^16.5.0","prettier":"^3.6.2","@eslint/js":"^9.39.1","@types/react":"^19.2.5","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^5.1.1","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-react-refresh":"^0.4.24"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/hrnet-plugin-datepicker_1.0.2_1764087027913_0.16451559127415405","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aalexandree-g/hrnet-plugin-datepicker","description":"Custom React datepicker component for the HRnet project","version":"1.0.3","author":{"name":"Alexandre"},"type":"module","main":"./index.js","scripts":{"dev":"vite","build":"vite build","lint":"eslint .","preview":"vite preview"},"dependencies":{"moment":"^2.30.1","pikaday":"^1.8.2"},"peerDependencies":{"react":">=18","react-dom":">=18"},"devDependencies":{"@eslint/js":"^9.39.1","@types/react":"^19.2.5","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^5.1.1","eslint":"^9.39.1","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-react-refresh":"^0.4.24","globals":"^16.5.0","prettier":"^3.6.2","vite":"^7.2.4"},"_id":"@aalexandree-g/hrnet-plugin-datepicker@1.0.3","gitHead":"2360009c3d9fb012b9f659783ac6314d361f525f","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-q9/ZwZKxjQPPbNjCCydt0JYlfJCngQlx4Ex/4xc3rgfZd5DO7k49OS91Iiz3ugK8lxuqVfBNFsflmOX9mtVJNg==","shasum":"31af529a659e541688f055d913bb8fe69f98b830","tarball":"https://registry.npmjs.org/@aalexandree-g/hrnet-plugin-datepicker/-/hrnet-plugin-datepicker-1.0.3.tgz","fileCount":7,"unpackedSize":6123,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBz+IGvZGAQajTDeXIiBPV+k5PTjva63+UUaw8o/RFu3AiEAjPbOtIRHfo8zFs27kBmsDGwblaRGJRnmaZYjb4XTHCQ="}]},"_npmUser":{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"},"directories":{},"maintainers":[{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hrnet-plugin-datepicker_1.0.3_1764686006003_0.3201655392567433"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-25T14:22:36.189Z","modified":"2025-12-02T14:33:26.361Z","1.0.0":"2025-11-25T14:22:36.433Z","1.0.1":"2025-11-25T16:03:23.417Z","1.0.2":"2025-11-25T16:10:28.089Z","1.0.3":"2025-12-02T14:33:26.184Z"},"author":{"name":"Alexandre"},"description":"Custom React datepicker component for the HRnet project","maintainers":[{"name":"aalexandree-g","email":"aalexandree.g@gmail.com"}],"readme":"# React DatePicker Plugin [![npm version](https://img.shields.io/npm/v/@aalexandree-g/hrnet-plugin-datepicker)](https://www.npmjs.com/package/@aalexandree-g/hrnet-plugin-datepicker)\n\nA **custom React DatePicker** built for the **HRnet project (OpenClassrooms)**.  \nThis package replaces a legacy jQuery datepicker with a modern, reusable and lightweight React component.\n\nBuilt with **Pikaday** and **Moment.js**, it offers an easy integration and full compatibility with modern React projects.\n\n## Installation\n\nUsing npm :\n\n```bash\nnpm install @aalexandree-g/hrnet-plugin-datepicker\n```\n\nUsing yarn :\n\n```bash\nyarn add @aalexandree-g/hrnet-plugin-datepicker\n```\n\n## Basic usage (with state)\n\n```js\nimport { useState } from 'react'\nimport DatePicker from '@aalexandree-g/hrnet-plugin-datepicker'\n\nexport default function Example() {\n  const [date, setDate] = useState(null)\n\n  return (\n    <DatePicker\n      value={date}\n      onChange={setDate}\n      format=\"DD/MM/YYYY\"\n      placeholder=\"Pick a date\"\n    />\n  )\n}\n```\n\n| Prop        | Type     | Default       | Description                     |\n| ----------- | -------- | ------------- | ------------------------------- |\n| value       | Date     | null          | Selected date                   |\n| onChange    | Function | —             | Triggered when the date changes |\n| format      | string   | \"DD/MM/YYYY\"  | Display format                  |\n| placeholder | string   | \"Pick a date\" | Input placeholder               |\n","readmeFilename":"README.md"}