diff --git a/package.json b/package.json index 79e80fa2..453ee68a 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "@bigbinary/eslint-plugin-neeto": "^1.1.30", "@bigbinary/neeto-cist": "1.0.3", "@bigbinary/neeto-commons-frontend": "^3.0.10", + "@bigbinary/neeto-datepicker": "^1.0.4", "@bigbinary/neeto-hotkeys": "1.0.4", "@bigbinary/neeto-icons": "^1.9.22", "@reach/auto-id": "0.15.0", @@ -228,7 +229,8 @@ "@storybook/react/**/glob-parent": "5.1.2", "**/trim": "0.0.3", "tailwindcss/**/postcss": "7.0.36", - "cssnano/**/nth-check": "2.0.1" + "cssnano/**/nth-check": "2.0.1", + "rc-picker": "@bigbinary/neeto-datepicker" }, "directories": { "src": "src" diff --git a/src/components/DatePicker/index.jsx b/src/components/DatePicker/index.jsx index 6d4591fc..6f34b7a7 100644 --- a/src/components/DatePicker/index.jsx +++ b/src/components/DatePicker/index.jsx @@ -153,6 +153,7 @@ const DatePicker = forwardRef( }, }), }} + getNow={dayjs} nextIcon={} prevIcon={} superNextIcon={} diff --git a/yarn.lock b/yarn.lock index 3570c396..49c78c3d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2895,6 +2895,13 @@ dependencies: regenerator-runtime "^0.14.0" +"@babel/runtime@^7.24.7": + version "7.26.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1" + integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.18.10", "@babel/template@^7.3.3": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" @@ -3047,6 +3054,18 @@ uuid "^9.0.0" zustand "4.3.2" +"@bigbinary/neeto-datepicker@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@bigbinary/neeto-datepicker/-/neeto-datepicker-1.0.4.tgz#7759463468b63f8db18ac11b51af4dfc79f3813c" + integrity sha512-JlG0b+G3F3G0IadvcL/6f9jp4Kh56UMS9ctsYnHs8+oFhyqLm2BwfBDYd7/WEGFmTI97hch9/j6mCH2A6YCzMA== + dependencies: + "@babel/runtime" "^7.24.7" + "@rc-component/trigger" "^2.0.0" + classnames "^2.2.1" + rc-overflow "^1.3.2" + rc-resize-observer "^1.4.0" + rc-util "^5.43.0" + "@bigbinary/neeto-hotkeys@1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@bigbinary/neeto-hotkeys/-/neeto-hotkeys-1.0.4.tgz#03358c7eb27c430b69d8bf786a4a278fdf7a280f" @@ -13994,6 +14013,14 @@ rc-util@^5.38.0, rc-util@^5.38.1, rc-util@^5.39.1: "@babel/runtime" "^7.18.3" react-is "^18.2.0" +rc-util@^5.43.0: + version "5.43.0" + resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-5.43.0.tgz#bba91fbef2c3e30ea2c236893746f3e9b05ecc4c" + integrity sha512-AzC7KKOXFqAdIBqdGWepL9Xn7cm3vnAmjlHqUnoQaTMZYhM4VlXGLkkHHxj/BZ7Td0+SOPKB4RGPboBVKT9htw== + dependencies: + "@babel/runtime" "^7.18.3" + react-is "^18.2.0" + rc-virtual-list@^3.14.2: version "3.14.5" resolved "https://registry.yarnpkg.com/rc-virtual-list/-/rc-virtual-list-3.14.5.tgz#593cd13fe05eabf4ad098329704a30c77701869e"