react-select-datepicker 2.1.0 → 2.1.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { SelectDatepicker } from './components/SelectDatepicker';
2
2
  export { ISelectDatepicker } from './interfaces/ISelectDatePicker';
3
- export { SelectDatePickerLabels } from './types/SelectDatepickerLabels';
4
- export { SelectDatePickerOrder } from './types/SelectDatepickerOrder';
3
+ export { SelectDatepickerLabels } from './types/SelectDatepickerLabels';
4
+ export { SelectDatepickerOrder } from './types/SelectDatepickerOrder';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { SelectDatePickerLabels } from '../types/SelectDatepickerLabels';
3
- import { SelectDatePickerOrder } from '../types/SelectDatepickerOrder';
2
+ import { SelectDatepickerLabels } from '../types/SelectDatepickerLabels';
3
+ import { SelectDatepickerOrder } from '../types/SelectDatepickerOrder';
4
4
  export interface ISelectDatepicker {
5
5
  id?: string;
6
6
  className?: string;
@@ -8,7 +8,7 @@ export interface ISelectDatepicker {
8
8
  maxDate?: Date;
9
9
  selectedDate?: Date | null;
10
10
  onDateChange: (date: Date | null) => void;
11
- labels?: SelectDatePickerLabels;
11
+ labels?: SelectDatepickerLabels;
12
12
  disabled?: boolean;
13
13
  hasError?: boolean;
14
14
  monthRef?: React.LegacyRef<HTMLSelectElement>;
@@ -16,5 +16,5 @@ export interface ISelectDatepicker {
16
16
  dayRef?: React.LegacyRef<HTMLSelectElement>;
17
17
  reverseYears?: boolean;
18
18
  hideLabels?: boolean;
19
- order?: SelectDatePickerOrder;
19
+ order?: SelectDatepickerOrder;
20
20
  }
@@ -12,7 +12,7 @@ export declare type Months = {
12
12
  11: string;
13
13
  12: string;
14
14
  };
15
- export declare type SelectDatePickerLabels = {
15
+ export declare type SelectDatepickerLabels = {
16
16
  yearLabel?: string;
17
17
  monthLabel?: string;
18
18
  dayLabel?: string;
@@ -1 +1 @@
1
- export declare type SelectDatePickerOrder = 'day/month/year' | 'day/year/month' | 'month/day/year' | 'month/year/day' | 'year/month/day' | 'year/day/month';
1
+ export declare type SelectDatepickerOrder = 'day/month/year' | 'day/year/month' | 'month/day/year' | 'month/year/day' | 'year/month/day' | 'year/day/month';
package/package.json CHANGED
@@ -1,124 +1,123 @@
1
- {
2
- "name": "react-select-datepicker",
3
- "version": "2.1.0",
4
- "description": "A simple and reusable dropdown datepicker component for React",
5
- "author": "JMcAmmond",
6
- "license": "MIT",
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",
12
- "main": "dist/index.js",
13
- "source": "src/index.tsx",
14
- "keywords": [
15
- "react",
16
- "datepicker",
17
- "date",
18
- "select",
19
- "reactjs",
20
- "dropdown",
21
- "datepicker-component"
22
- ],
23
- "files": [
24
- "dist"
25
- ],
26
- "dependencies": {},
27
- "peerDependencies": {
28
- "react": "^17.0.2",
29
- "react-dom": "^17.0.2"
30
- },
31
- "devDependencies": {
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"
90
- },
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
- }
124
- }
1
+ {
2
+ "name": "react-select-datepicker",
3
+ "version": "2.1.2",
4
+ "description": "A simple and reusable dropdown datepicker component for React",
5
+ "author": "JMcAmmond",
6
+ "license": "MIT",
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",
12
+ "main": "dist/index.js",
13
+ "source": "src/index.tsx",
14
+ "keywords": [
15
+ "react",
16
+ "datepicker",
17
+ "date",
18
+ "select",
19
+ "reactjs",
20
+ "dropdown",
21
+ "datepicker-component"
22
+ ],
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "dependencies": {},
27
+ "peerDependencies": {
28
+ "react": ">=17.0.2"
29
+ },
30
+ "devDependencies": {
31
+ "@babel/core": "^7.17.0",
32
+ "@rollup/plugin-commonjs": "^21.0.2",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
34
+ "@rollup/plugin-url": "^6.1.0",
35
+ "@storybook/addon-a11y": "^6.5.12",
36
+ "@storybook/addon-actions": "^6.5.12",
37
+ "@storybook/addon-essentials": "^6.5.12",
38
+ "@storybook/addon-interactions": "^6.5.12",
39
+ "@storybook/addon-links": "^6.5.12",
40
+ "@storybook/addon-storysource": "^6.5.12",
41
+ "@storybook/react": "^6.5.12",
42
+ "@storybook/testing-library": "0.0.13",
43
+ "@svgr/rollup": "^6.2.1",
44
+ "@svgr/webpack": "^5.5.0",
45
+ "@testing-library/jest-dom": "^5.16.2",
46
+ "@testing-library/react": "^12.1.2",
47
+ "@testing-library/user-event": "^13.5.0",
48
+ "@types/jest": "^27.4.0",
49
+ "@types/node": "^16.11.22",
50
+ "@types/react": "^17.0.39",
51
+ "@types/react-dom": "^17.0.11",
52
+ "@types/styled-components": "^5.1.25",
53
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
54
+ "@typescript-eslint/parser": "^5.12.1",
55
+ "babel-loader": "^8.2.3",
56
+ "eslint": "^8.8.0",
57
+ "eslint-config-airbnb": "^19.0.4",
58
+ "eslint-config-airbnb-typescript": "^16.1.0",
59
+ "eslint-config-prettier": "^8.4.0",
60
+ "eslint-plugin-eslint-comments": "^3.2.0",
61
+ "eslint-plugin-html": "^6.2.0",
62
+ "eslint-plugin-import": "^2.25.4",
63
+ "eslint-plugin-jest": "^26.1.1",
64
+ "eslint-plugin-json": "^3.1.0",
65
+ "eslint-plugin-json-files": "^1.3.0",
66
+ "eslint-plugin-jsx-a11y": "^6.5.1",
67
+ "eslint-plugin-prettier": "^4.0.0",
68
+ "eslint-plugin-progress": "0.0.1",
69
+ "eslint-plugin-react": "^7.28.0",
70
+ "eslint-plugin-react-hooks": "^4.3.0",
71
+ "eslint-plugin-storybook": "^0.6.4",
72
+ "eslint-plugin-unused-imports": "^2.0.0",
73
+ "gh-pages": "^3.2.3",
74
+ "jest": "^27.5.1",
75
+ "postcss": "^8.4.7",
76
+ "prettier": "^2.5.1",
77
+ "react": "^17.0.2",
78
+ "react-dom": "^17.0.2",
79
+ "rollup": "^2.68.0",
80
+ "rollup-plugin-generate-package-json": "^3.2.0",
81
+ "rollup-plugin-peer-deps-external": "^2.2.4",
82
+ "rollup-plugin-postcss": "^4.0.2",
83
+ "rollup-plugin-terser": "^7.0.2",
84
+ "rollup-plugin-typescript2": "^0.31.2",
85
+ "styled-components": "^5.3.5",
86
+ "tslib": "^2.3.1",
87
+ "typescript": "^4.6.2",
88
+ "url-loader": "^4.1.1"
89
+ },
90
+ "scripts": {
91
+ "test": "npm run test:eslint && npm run test:conflicts && npm run test:ts",
92
+ "test:eslint": "npx eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives ./src",
93
+ "test:conflicts": "eslint-config-prettier .eslint.config.js",
94
+ "test:ts": "npx tsc -p ./tsconfig.json --noEmit",
95
+ "start": "start-storybook -p 6006",
96
+ "bundle": "rollup -c",
97
+ "clean": "rm -rf ./dist ./storybook-static",
98
+ "build": "npm run clean && build-storybook && npm run bundle",
99
+ "deploy": "gh-pages -d storybook-static"
100
+ },
101
+ "eslintConfig": {
102
+ "extends": [
103
+ "./eslint.config.js"
104
+ ],
105
+ "parserOptions": {
106
+ "project": [
107
+ "./tsconfig.json"
108
+ ]
109
+ }
110
+ },
111
+ "browserslist": {
112
+ "production": [
113
+ ">0.2%",
114
+ "not dead",
115
+ "not op_mini all"
116
+ ],
117
+ "development": [
118
+ "last 1 chrome version",
119
+ "last 1 firefox version",
120
+ "last 1 safari version"
121
+ ]
122
+ }
123
+ }