UNPKG

5.35 kBJSONView Raw
1{
2 "name": "react-day-picker",
3 "version": "9.0.8",
4 "description": "Customizable Date Picker for React",
5 "author": "Giampaolo Bellavite <io@gpbl.dev>",
6 "homepage": "https://daypicker.dev",
7 "license": "MIT",
8 "repository": {
9 "type": "git",
10 "url": "https://github.com/gpbl/react-day-picker"
11 },
12 "bugs": {
13 "url": "https://github.com/gpbl/react-day-picker/issues"
14 },
15 "main": "./dist/cjs/index.js",
16 "types": "./dist/cjs/index.d.ts",
17 "module": "./dist/esm/index.js",
18 "style": "./src/style.css",
19 "type": "module",
20 "exports": {
21 ".": {
22 "require": {
23 "types": "./dist/cjs/index.d.ts",
24 "default": "./dist/cjs/index.js"
25 },
26 "import": {
27 "types": "./dist/esm/index.d.ts",
28 "default": "./dist/esm/index.js"
29 },
30 "default": {
31 "types": "./dist/cjs/index.d.ts",
32 "default": "./dist/cjs/index.js"
33 }
34 },
35 "./lib": {
36 "require": {
37 "types": "./dist/cjs/lib/dateLib.d.ts",
38 "default": "./dist/cjs/lib/dateLib.js"
39 },
40 "import": {
41 "types": "./dist/esm/lib/dateLib.d.ts",
42 "default": "./dist/esm/lib/dateLib.js"
43 },
44 "default": {
45 "types": "./dist/cjs/lib/dateLib.d.ts",
46 "default": "./dist/cjs/lib/dateLib.js"
47 }
48 },
49 "./utc": {
50 "require": {
51 "types": "./dist/cjs/utc.d.ts",
52 "default": "./dist/cjs/utc.js"
53 },
54 "import": {
55 "types": "./dist/esm/utc.d.ts",
56 "default": "./dist/esm/utc.js"
57 },
58 "default": {
59 "types": "./dist/cjs/utc.d.ts",
60 "default": "./dist/cjs/utc.js"
61 }
62 },
63 "./jalali": {
64 "require": {
65 "types": "./dist/cjs/jalali.d.ts",
66 "default": "./dist/cjs/jalali.js"
67 },
68 "import": {
69 "types": "./dist/esm/jalali.d.ts",
70 "default": "./dist/esm/jalali.js"
71 },
72 "default": {
73 "types": "./dist/cjs/jalali.d.ts",
74 "default": "./dist/cjs/jalali.js"
75 }
76 },
77 "./style.css": {
78 "require": "./src/style.css",
79 "import": "./src/style.css",
80 "default": "./src/style.css",
81 "types": "./src/style.css.d.ts"
82 },
83 "./dist/style.css": {
84 "require": "./src/style.css",
85 "import": "./src/style.css",
86 "default": "./src/style.css",
87 "types": "./src/style.css.d.ts"
88 },
89 "./style.module.css": {
90 "require": "./src/style.module.css",
91 "import": "./src/style.module.css",
92 "default": "./src/style.module.css",
93 "types": "./src/style.module.css.d.ts"
94 },
95 "./dist/style.module.css": {
96 "require": "./src/style.module.css",
97 "import": "./src/style.module.css",
98 "default": "./src/style.module.css",
99 "types": "./src/style.module.css.d.ts"
100 },
101 "./package.json": {
102 "require": "./package.json",
103 "import": "./package.json",
104 "default": "./package.json"
105 },
106 "./examples": {
107 "require": "./examples/index.ts",
108 "import": "./examples/index.ts",
109 "default": "./examples/index.ts",
110 "types": "./examples/index.ts"
111 }
112 },
113 "scripts": {
114 "prepublish": "pnpm build",
115 "build": "pnpm build:cjs && pnpm build:esm && pnpm build:css",
116 "build:cjs": "tsc --project tsconfig-cjs.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
117 "build:esm": "tsc --project tsconfig-esm.json",
118 "build:css": "./scripts/build-css.sh ./src/style.css ./src/style.module.css",
119 "lint": "eslint .",
120 "test": "jest",
121 "test-watch": "jest --watch",
122 "typecheck": "tsc --project ./tsconfig.json --noEmit",
123 "typecheck-watch": "tsc --project ./tsconfig.json --noEmit --watch"
124 },
125 "files": [
126 "dist",
127 "src",
128 "examples",
129 "website/docs",
130 "tsconfig.json"
131 ],
132 "dependencies": {
133 "date-fns": "^3.6.0"
134 },
135 "devDependencies": {
136 "@date-fns/utc": "^1.2.0",
137 "@jest/types": "^29.6.3",
138 "@testing-library/dom": "^10.4.0",
139 "@testing-library/jest-dom": "^6.4.8",
140 "@testing-library/react": "^16.0.0",
141 "@testing-library/user-event": "^14.5.2",
142 "@trivago/prettier-plugin-sort-imports": "^4.3.0",
143 "@types/jest": "^29.5.12",
144 "@types/node": "^22.1.0",
145 "@types/react": "^18.3.3",
146 "@types/react-dom": "^18.3.0",
147 "@typescript-eslint/eslint-plugin": "^7.18.0",
148 "@typescript-eslint/parser": "^7.18.0",
149 "date-fns": "^3.6.0",
150 "date-fns-jalali": "3.6.0-1",
151 "eslint": "^8.57.0",
152 "eslint-config-prettier": "^9.1.0",
153 "eslint-import-resolver-typescript": "^3.6.1",
154 "eslint-plugin-import": "^2.29.1",
155 "eslint-plugin-jest": "^28.7.0",
156 "eslint-plugin-prettier": "^5.2.1",
157 "eslint-plugin-react": "^7.35.0",
158 "eslint-plugin-react-hooks": "^4.6.2",
159 "eslint-plugin-require-extensions": "^0.1.3",
160 "eslint-plugin-testing-library": "^6.2.2",
161 "jest": "^29.7.0",
162 "jest-environment-jsdom": "^29.7.0",
163 "mockdate": "^3.0.5",
164 "prettier": "^3.3.3",
165 "prettier-plugin-jsdoc": "^1.3.0",
166 "react": "^18.3.1",
167 "react-classnaming": "^0.16.4",
168 "react-dom": "^18.3.1",
169 "ts-jest": "^29.2.4",
170 "ts-node": "^10.9.2",
171 "tslib": "^2.6.3",
172 "typescript": "~5.5.4",
173 "typescript-css-modules": "^1.0.4"
174 },
175 "peerDependencies": {
176 "react": ">=16.8.0"
177 },
178 "funding": {
179 "type": "individual",
180 "url": "https://github.com/sponsors/gpbl"
181 }
182}