From 3b3080e21c836d1d4811ce628d8e34838ffc6e29 Mon Sep 17 00:00:00 2001 From: Massimiliano D'Elia Date: Mon, 4 Nov 2024 09:41:20 +0100 Subject: [PATCH] fix: remove react-datepicker --- package.json | 1 - vite.config.ts | 2 +- yarn.lock | 74 -------------------------------------------------- 3 files changed, 1 insertion(+), 76 deletions(-) diff --git a/package.json b/package.json index a30af92a..b0693293 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,6 @@ "patch-package": "^8.0.0", "prettier": "^3.3.3", "react": "18.2.0", - "react-datepicker": "^7.3.0", "react-dom": "18.2.0", "rollup": "^2.70.1", "rollup-plugin-typescript2": "^0.36.0", diff --git a/vite.config.ts b/vite.config.ts index ed1f779d..6566ad1b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'vite'; export default defineConfig({ optimizeDeps: { - exclude: ['react-datepicker', 'storybook'], + exclude: ['storybook'], }, plugins: [react()], }); diff --git a/yarn.lock b/yarn.lock index daf9808d..6bbba241 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3095,18 +3095,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react-dom@npm:^2.1.1": - version: 2.1.1 - resolution: "@floating-ui/react-dom@npm:2.1.1" - dependencies: - "@floating-ui/dom": "npm:^1.0.0" - peerDependencies: - react: ">=16.8.0" - react-dom: ">=16.8.0" - checksum: 10c0/732ab64600c511ceb0563b87bc557aa61789fec4f416a3f092bab89e508fa1d3ee5ade0f42051cc56eb5e4db867b87ab7fd48ce82db9fd4c01d94ffa08f60115 - languageName: node - linkType: hard - "@floating-ui/react-dom@npm:^2.1.2": version: 2.1.2 resolution: "@floating-ui/react-dom@npm:2.1.2" @@ -3119,20 +3107,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react@npm:^0.26.2": - version: 0.26.20 - resolution: "@floating-ui/react@npm:0.26.20" - dependencies: - "@floating-ui/react-dom": "npm:^2.1.1" - "@floating-ui/utils": "npm:^0.2.5" - tabbable: "npm:^6.0.0" - peerDependencies: - react: ">=16.8.0" - react-dom: ">=16.8.0" - checksum: 10c0/2fe96b8123734a9facb560b235bbb9a21849890f7a84a48c4e1d496dde045aafecb4575c3e035413f2d88a8324651c85b018bfbf8d57eb1fb9e469cdd211ca86 - languageName: node - linkType: hard - "@floating-ui/react@npm:^0.26.25": version: 0.26.25 resolution: "@floating-ui/react@npm:0.26.25" @@ -3154,13 +3128,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/utils@npm:^0.2.5": - version: 0.2.5 - resolution: "@floating-ui/utils@npm:0.2.5" - checksum: 10c0/9e1c7330433c3a8f226c5a44ed1dcdda13b313c4126ce3281f970d1e471b1c9fd9e1559cc76a0592af25d55a3f81afe1a5778aa7b80e51c9fa01930cd1d5557e - languageName: node - linkType: hard - "@floating-ui/utils@npm:^0.2.8": version: 0.2.8 resolution: "@floating-ui/utils@npm:0.2.8" @@ -6497,7 +6464,6 @@ __metadata: patch-package: "npm:^8.0.0" prettier: "npm:^3.3.3" react: "npm:18.2.0" - react-datepicker: "npm:^7.3.0" react-dom: "npm:18.2.0" rollup: "npm:^2.70.1" rollup-plugin-typescript2: "npm:^0.36.0" @@ -8864,13 +8830,6 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.1.0": - version: 2.1.1 - resolution: "clsx@npm:2.1.1" - checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839 - languageName: node - linkType: hard - "cmd-shim@npm:^5.0.0": version: 5.0.0 resolution: "cmd-shim@npm:5.0.0" @@ -9366,13 +9325,6 @@ __metadata: languageName: node linkType: hard -"date-fns@npm:^3.3.1": - version: 3.6.0 - resolution: "date-fns@npm:3.6.0" - checksum: 10c0/0b5fb981590ef2f8e5a3ba6cd6d77faece0ea7f7158948f2eaae7bbb7c80a8f63ae30b01236c2923cf89bb3719c33aeb150c715ea4fe4e86e37dcf06bed42fb6 - languageName: node - linkType: hard - "date-fns@npm:^4.1.0": version: 4.1.0 resolution: "date-fns@npm:4.1.0" @@ -16546,22 +16498,6 @@ __metadata: languageName: node linkType: hard -"react-datepicker@npm:^7.3.0": - version: 7.3.0 - resolution: "react-datepicker@npm:7.3.0" - dependencies: - "@floating-ui/react": "npm:^0.26.2" - clsx: "npm:^2.1.0" - date-fns: "npm:^3.3.1" - prop-types: "npm:^15.7.2" - react-onclickoutside: "npm:^6.13.0" - peerDependencies: - react: ^16.9.0 || ^17 || ^18 - react-dom: ^16.9.0 || ^17 || ^18 - checksum: 10c0/a926c896fbd827bd6195e5fdbf98bf48fc86a076112bcff38dcbd580da24a98c0c8f5ed1a1dfb2d91076134e41b209e118ccd41cbc3b2036e94c54af25e1788c - languageName: node - linkType: hard - "react-docgen-typescript@npm:^2.2.2": version: 2.2.2 resolution: "react-docgen-typescript@npm:2.2.2" @@ -16655,16 +16591,6 @@ __metadata: languageName: node linkType: hard -"react-onclickoutside@npm:^6.13.0": - version: 6.13.1 - resolution: "react-onclickoutside@npm:6.13.1" - peerDependencies: - react: ^15.5.x || ^16.x || ^17.x || ^18.x - react-dom: ^15.5.x || ^16.x || ^17.x || ^18.x - checksum: 10c0/93b02c493332ca7f8b480a1e185386c4af55d1daf33af2f68ddf440e4fc9b22ad13f59d7e204694aa31c1c2e332f0766c7ee302fe3b0cecbd0e0b45d55905c96 - languageName: node - linkType: hard - "react-refresh@npm:^0.14.2": version: 0.14.2 resolution: "react-refresh@npm:0.14.2"