react-select-datepicker 1.1.2 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "react-select-datepicker",
3
- "version": "1.1.2",
3
+ "version": "2.0.2",
4
4
  "description": "A simple and reusable dropdown datepicker component for React",
5
5
  "author": "JMcAmmond",
6
6
  "license": "MIT",
7
7
  "repository": "JMcAmmond/react-select-datepicker",
8
+ "bugs": {
9
+ "url": "https://github.com/JMcAmmond/react-select-datepicker/issues"
10
+ },
11
+ "homepage": "https://github.com/JMcAmmond/react-select-datepicker#readme",
8
12
  "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
13
  "source": "src/index.tsx",
11
14
  "keywords": [
12
15
  "react",
@@ -17,68 +20,105 @@
17
20
  "dropdown",
18
21
  "datepicker-component"
19
22
  ],
20
- "engines": {
21
- "node": ">=10"
22
- },
23
- "scripts": {
24
- "build": "microbundle-crl --no-compress --format modern,cjs",
25
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
26
- "prepare": "run-s build",
27
- "test": "run-s test:unit test:lint test:build",
28
- "test:build": "run-s build",
29
- "test:lint": "eslint .",
30
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
31
- "test:watch": "react-scripts test --env=jsdom",
32
- "predeploy": "cd example && npm install && npm run build",
33
- "deploy": "gh-pages -d example/build"
34
- },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "dependencies": {},
35
27
  "peerDependencies": {
36
- "react": "^16.0.0"
37
- },
38
- "dependencies": {
39
- "react": "^16.13.1"
28
+ "react": "^17.0.2",
29
+ "react-dom": "^17.0.2"
40
30
  },
41
31
  "devDependencies": {
42
- "@babel/preset-typescript": "^7.10.4",
43
- "@testing-library/jest-dom": "^4.2.4",
44
- "@testing-library/react": "^9.5.0",
45
- "@testing-library/user-event": "^7.2.1",
46
- "@types/enzyme": "^3.10.5",
47
- "@types/jest": "^25.1.4",
48
- "@types/node": "^12.12.38",
49
- "@types/react": "^16.9.27",
50
- "@types/react-dom": "^16.9.7",
51
- "@typescript-eslint/eslint-plugin": "^2.26.0",
52
- "@typescript-eslint/parser": "^2.26.0",
53
- "babel-eslint": "^10.0.3",
54
- "cross-env": "^7.0.2",
55
- "enzyme": "^3.11.0",
56
- "enzyme-adapter-react-16": "^1.15.3",
57
- "eslint": "^6.8.0",
58
- "eslint-config-airbnb": "^18.2.0",
59
- "eslint-config-prettier": "^6.11.0",
60
- "eslint-config-standard": "^14.1.0",
61
- "eslint-config-standard-react": "^9.2.0",
62
- "eslint-plugin-import": "^2.22.0",
63
- "eslint-plugin-node": "^11.0.0",
64
- "eslint-plugin-prettier": "^3.1.4",
65
- "eslint-plugin-promise": "^4.2.1",
66
- "eslint-plugin-react": "^7.20.5",
67
- "eslint-plugin-react-hooks": "^4.0.8",
68
- "eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
69
- "eslint-plugin-standard": "^4.0.1",
70
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0",
71
- "gh-pages": "^2.2.0",
72
- "jest": "24.9.0",
73
- "microbundle-crl": "^0.13.10",
74
- "npm-run-all": "^4.1.5",
75
- "prettier": "^2.0.4",
76
- "react-dom": "^16.13.1",
77
- "react-scripts": "^3.4.1",
78
- "ts-jest": "^26.1.4",
79
- "typescript": "^3.7.5"
32
+ "@babel/core": "^7.17.0",
33
+ "@rollup/plugin-commonjs": "^21.0.2",
34
+ "@rollup/plugin-node-resolve": "^13.1.3",
35
+ "@rollup/plugin-url": "^6.1.0",
36
+ "@storybook/addon-a11y": "^6.4.19",
37
+ "@storybook/addon-actions": "^6.4.18",
38
+ "@storybook/addon-essentials": "^6.4.18",
39
+ "@storybook/addon-interactions": "^6.4.19",
40
+ "@storybook/addon-links": "^6.4.18",
41
+ "@storybook/addon-storysource": "^6.4.19",
42
+ "@storybook/react": "^6.4.18",
43
+ "@storybook/testing-library": "0.0.9",
44
+ "@svgr/rollup": "^6.2.1",
45
+ "@svgr/webpack": "^5.5.0",
46
+ "@testing-library/jest-dom": "^5.16.2",
47
+ "@testing-library/react": "^12.1.2",
48
+ "@testing-library/user-event": "^13.5.0",
49
+ "@types/jest": "^27.4.0",
50
+ "@types/node": "^16.11.22",
51
+ "@types/react": "^17.0.39",
52
+ "@types/react-dom": "^17.0.11",
53
+ "@types/styled-components": "^5.1.25",
54
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
55
+ "@typescript-eslint/parser": "^5.12.1",
56
+ "babel-loader": "^8.2.3",
57
+ "eslint": "^8.8.0",
58
+ "eslint-config-airbnb": "^19.0.4",
59
+ "eslint-config-airbnb-typescript": "^16.1.0",
60
+ "eslint-config-prettier": "^8.4.0",
61
+ "eslint-plugin-eslint-comments": "^3.2.0",
62
+ "eslint-plugin-html": "^6.2.0",
63
+ "eslint-plugin-import": "^2.25.4",
64
+ "eslint-plugin-jest": "^26.1.1",
65
+ "eslint-plugin-json": "^3.1.0",
66
+ "eslint-plugin-json-files": "^1.3.0",
67
+ "eslint-plugin-jsx-a11y": "^6.5.1",
68
+ "eslint-plugin-prettier": "^4.0.0",
69
+ "eslint-plugin-progress": "0.0.1",
70
+ "eslint-plugin-react": "^7.28.0",
71
+ "eslint-plugin-react-hooks": "^4.3.0",
72
+ "eslint-plugin-storybook": "^0.5.6",
73
+ "eslint-plugin-unused-imports": "^2.0.0",
74
+ "gh-pages": "^3.2.3",
75
+ "jest": "^27.5.1",
76
+ "postcss": "^8.4.7",
77
+ "prettier": "^2.5.1",
78
+ "react": "^17.0.2",
79
+ "react-dom": "^17.0.2",
80
+ "rollup": "^2.68.0",
81
+ "rollup-plugin-generate-package-json": "^3.2.0",
82
+ "rollup-plugin-peer-deps-external": "^2.2.4",
83
+ "rollup-plugin-postcss": "^4.0.2",
84
+ "rollup-plugin-terser": "^7.0.2",
85
+ "rollup-plugin-typescript2": "^0.31.2",
86
+ "styled-components": "^5.3.5",
87
+ "tslib": "^2.3.1",
88
+ "typescript": "^4.6.2",
89
+ "url-loader": "^4.1.1"
80
90
  },
81
- "files": [
82
- "dist"
83
- ]
91
+ "scripts": {
92
+ "test": "npm run test:eslint && npm run test:conflicts && npm run test:ts",
93
+ "test:eslint": "npx eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives ./src",
94
+ "test:conflicts": "eslint-config-prettier .eslint.config.js",
95
+ "test:ts": "npx tsc -p ./tsconfig.json --noEmit",
96
+ "start": "start-storybook -p 6006",
97
+ "bundle": "rollup -c",
98
+ "clean": "rm -rf ./dist ./storybook-static",
99
+ "build": "npm run clean && build-storybook && npm run bundle",
100
+ "deploy": "gh-pages -d storybook-static"
101
+ },
102
+ "eslintConfig": {
103
+ "extends": [
104
+ "./eslint.config.js"
105
+ ],
106
+ "parserOptions": {
107
+ "project": [
108
+ "./tsconfig.json"
109
+ ]
110
+ }
111
+ },
112
+ "browserslist": {
113
+ "production": [
114
+ ">0.2%",
115
+ "not dead",
116
+ "not op_mini all"
117
+ ],
118
+ "development": [
119
+ "last 1 chrome version",
120
+ "last 1 firefox version",
121
+ "last 1 safari version"
122
+ ]
123
+ }
84
124
  }
package/dist/dateMap.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare const getDays: (showPlaceholder: boolean, dayLabel: string) => JSX.Element[];
2
- declare const getMonths: (showPlaceholder: boolean, monthLabel: string, monthNames: Array<string> | undefined) => JSX.Element[];
3
- declare const getYears: (max: Date | undefined, min: Date | undefined, showPlaceholder: boolean, value: string, yearLabel: string) => JSX.Element[];
4
- export { getDays, getMonths, getYears };
@@ -1,16 +0,0 @@
1
- /**
2
- * Build a date from input
3
- * @param {string} day
4
- * @param {string} month
5
- * @param {string} year
6
- */
7
- declare const buildDateFromInput: (day: string, month: string, year: string) => Date;
8
- /**
9
- * Determine if provided date is a valid date and falls between date range
10
- * @param {string} day
11
- * @param {string} month
12
- * @param {string} year
13
- * @param {object} props
14
- */
15
- declare const isValidDate: (day: string, month: string, year: string, props: any) => any;
16
- export { isValidDate, buildDateFromInput };
package/dist/helpers.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IDate } from './interfaces';
2
- /**
3
- * Parse date object into day, month, year state
4
- */
5
- export declare const spreadDateToObject: (dateValue: Date | null) => IDate;