react-picky-date-time 2.0.7 → 3.0.0

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/lib/utils.d.ts CHANGED
@@ -2,7 +2,7 @@ export declare const cx: (...params: Array<any>) => string;
2
2
  export declare const isValidDate: (str: string) => boolean;
3
3
  export declare const isValidDates: (arr: Array<string>) => boolean;
4
4
  export declare const useWillUnmount: (f: Function) => void;
5
- export declare const usePrevious: (value: any) => undefined;
5
+ export declare const usePrevious: (value: any) => any;
6
6
  export declare const formatClockNumber: (value: number) => string;
7
7
  export declare const isValidTime: (value: string) => {
8
8
  hour?: undefined;
@@ -0,0 +1,218 @@
1
+ {
2
+ root: '/Users/edwardxiao/Main/Repositories/github/react-picky-date-time',
3
+ registry: 'https://registry.npmmirror.com',
4
+ pkgs: [
5
+ {
6
+ name: '',
7
+ version: 'unfetch/polyfill',
8
+ type: 'git',
9
+ alias: undefined,
10
+ arg: [Result]
11
+ }
12
+ ],
13
+ production: false,
14
+ cacheStrict: false,
15
+ cacheDir: '/Users/edwardxiao/.npminstall_tarball',
16
+ env: {
17
+ npm_config_registry: 'https://registry.npmmirror.com',
18
+ npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=/Users/edwardxiao/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","unfetch/polyfill","--save-dev"],"original":["--fix-bug-versions","--china","--userconfig=/Users/edwardxiao/.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","unfetch/polyfill","--save-dev"]}',
19
+ npm_config_user_agent: 'npminstall/7.12.0 npm/? node/v23.6.0 darwin arm64',
20
+ npm_config_cache: '/Users/edwardxiao/.npminstall_tarball',
21
+ NODE: '/opt/homebrew/Cellar/node/23.6.0/bin/node',
22
+ npm_node_execpath: '/opt/homebrew/Cellar/node/23.6.0/bin/node',
23
+ npm_execpath: '/opt/homebrew/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js',
24
+ npm_config_userconfig: '/Users/edwardxiao/.cnpmrc',
25
+ npm_config_disturl: 'https://cdn.npmmirror.com/binaries/node',
26
+ npm_config_r: 'https://registry.npmmirror.com',
27
+ COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com',
28
+ EDGEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/edgedriver',
29
+ NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
30
+ NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
31
+ PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
32
+ CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
33
+ OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
34
+ CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
35
+ ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
36
+ ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
37
+ SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
38
+ SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
39
+ NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
40
+ PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
41
+ PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
42
+ PUPPETEER_CHROME_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
43
+ PUPPETEER_CHROME_HEADLESS_SHELL_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
44
+ PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
45
+ PLAYWRIGHT_CHROMIUM_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
46
+ SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
47
+ SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
48
+ RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
49
+ RE2_DOWNLOAD_SKIP_PATH: 'true',
50
+ PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma',
51
+ npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
52
+ npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
53
+ npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
54
+ npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
55
+ npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
56
+ npm_config_gl_binary_host: 'https://cdn.npmmirror.com/binaries/gl',
57
+ RIPGREP_PREBUILT_BINARIES_MIRROR: 'https://registry.npmmirror.com/-/binary/ripgrep-prebuilt',
58
+ npm_rootpath: '/Users/edwardxiao/Main/Repositories/github/react-picky-date-time',
59
+ INIT_CWD: '/Users/edwardxiao/Main/Repositories/github/react-picky-date-time'
60
+ },
61
+ binaryMirrors: {
62
+ ENVS: {
63
+ COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com',
64
+ EDGEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/edgedriver',
65
+ NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
66
+ NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
67
+ PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
68
+ CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
69
+ OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
70
+ CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
71
+ ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
72
+ ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
73
+ SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
74
+ SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
75
+ NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
76
+ PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
77
+ PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
78
+ PUPPETEER_CHROME_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
79
+ PUPPETEER_CHROME_HEADLESS_SHELL_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
80
+ PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
81
+ PLAYWRIGHT_CHROMIUM_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
82
+ SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
83
+ SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
84
+ RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
85
+ RE2_DOWNLOAD_SKIP_PATH: 'true',
86
+ PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma',
87
+ npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
88
+ npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
89
+ npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
90
+ npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
91
+ npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
92
+ npm_config_gl_binary_host: 'https://cdn.npmmirror.com/binaries/gl',
93
+ RIPGREP_PREBUILT_BINARIES_MIRROR: 'https://registry.npmmirror.com/-/binary/ripgrep-prebuilt'
94
+ },
95
+ '@ali/s2': { host: 'https://cdn.npmmirror.com/binaries/looksgood-s2' },
96
+ sharp: { replaceHostFiles: [Array], replaceHostMap: [Object] },
97
+ '@tensorflow/tfjs-node': {
98
+ replaceHostFiles: [Array],
99
+ replaceHostRegExpMap: [Object],
100
+ replaceHostMap: [Object]
101
+ },
102
+ cypress: {
103
+ host: 'https://cdn.npmmirror.com/binaries/cypress',
104
+ newPlatforms: [Object]
105
+ },
106
+ 'utf-8-validate': {
107
+ host: 'https://cdn.npmmirror.com/binaries/utf-8-validate/v{version}'
108
+ },
109
+ xprofiler: {
110
+ remote_path: './xprofiler/v{version}/',
111
+ host: 'https://cdn.npmmirror.com/binaries'
112
+ },
113
+ leveldown: { host: 'https://cdn.npmmirror.com/binaries/leveldown/v{version}' },
114
+ couchbase: { host: 'https://cdn.npmmirror.com/binaries/couchbase/v{version}' },
115
+ gl: { host: 'https://cdn.npmmirror.com/binaries/gl/v{version}' },
116
+ sqlite3: {
117
+ host: 'https://cdn.npmmirror.com/binaries/sqlite3',
118
+ remote_path: 'v{version}'
119
+ },
120
+ '@journeyapps/sqlcipher': { host: 'https://cdn.npmmirror.com/binaries' },
121
+ grpc: {
122
+ host: 'https://cdn.npmmirror.com/binaries',
123
+ remote_path: '{name}/v{version}'
124
+ },
125
+ 'grpc-tools': { host: 'https://cdn.npmmirror.com/binaries' },
126
+ wrtc: {
127
+ host: 'https://cdn.npmmirror.com/binaries',
128
+ remote_path: '{name}/v{version}'
129
+ },
130
+ fsevents: { host: 'https://cdn.npmmirror.com/binaries/fsevents' },
131
+ nodejieba: { host: 'https://cdn.npmmirror.com/binaries/nodejieba' },
132
+ canvas: {
133
+ host: 'https://cdn.npmmirror.com/binaries/canvas',
134
+ remote_path: 'v{version}'
135
+ },
136
+ 'skia-canvas': { host: 'https://cdn.npmmirror.com/binaries/skia-canvas' },
137
+ 'flow-bin': {
138
+ replaceHost: 'https://github.com/facebook/flow/releases/download/v',
139
+ host: 'https://cdn.npmmirror.com/binaries/flow/v'
140
+ },
141
+ 'jpegtran-bin': {
142
+ replaceHost: [Array],
143
+ host: 'https://cdn.npmmirror.com/binaries/jpegtran-bin'
144
+ },
145
+ 'cwebp-bin': {
146
+ replaceHost: [Array],
147
+ host: 'https://cdn.npmmirror.com/binaries/cwebp-bin'
148
+ },
149
+ 'zopflipng-bin': {
150
+ replaceHost: [Array],
151
+ host: 'https://cdn.npmmirror.com/binaries/zopflipng-bin'
152
+ },
153
+ 'optipng-bin': {
154
+ replaceHost: [Array],
155
+ host: 'https://cdn.npmmirror.com/binaries/optipng-bin'
156
+ },
157
+ mozjpeg: {
158
+ replaceHost: [Array],
159
+ host: 'https://cdn.npmmirror.com/binaries/mozjpeg-bin'
160
+ },
161
+ gifsicle: {
162
+ replaceHost: [Array],
163
+ host: 'https://cdn.npmmirror.com/binaries/gifsicle-bin'
164
+ },
165
+ 'pngquant-bin': {
166
+ replaceHost: [Array],
167
+ host: 'https://cdn.npmmirror.com/binaries/pngquant-bin',
168
+ replaceHostMap: [Object]
169
+ },
170
+ 'pngcrush-bin': {
171
+ replaceHost: [Array],
172
+ host: 'https://cdn.npmmirror.com/binaries/pngcrush-bin'
173
+ },
174
+ 'jpeg-recompress-bin': {
175
+ replaceHost: [Array],
176
+ host: 'https://cdn.npmmirror.com/binaries/jpeg-recompress-bin'
177
+ },
178
+ 'advpng-bin': {
179
+ replaceHost: [Array],
180
+ host: 'https://cdn.npmmirror.com/binaries/advpng-bin'
181
+ },
182
+ 'pngout-bin': {
183
+ replaceHost: [Array],
184
+ host: 'https://cdn.npmmirror.com/binaries/pngout-bin'
185
+ },
186
+ 'jpegoptim-bin': {
187
+ replaceHost: [Array],
188
+ host: 'https://cdn.npmmirror.com/binaries/jpegoptim-bin'
189
+ },
190
+ argon2: { host: 'https://cdn.npmmirror.com/binaries/argon2' },
191
+ 'ali-zeromq': { host: 'https://cdn.npmmirror.com/binaries/ali-zeromq' },
192
+ 'ali-usb_ctl': { host: 'https://cdn.npmmirror.com/binaries/ali-usb_ctl' },
193
+ 'gdal-async': { host: 'https://cdn.npmmirror.com/binaries/node-gdal-async' },
194
+ 'libpg-query': { host: 'https://cdn.npmmirror.com/binaries' }
195
+ },
196
+ forbiddenLicenses: null,
197
+ flatten: false,
198
+ proxy: undefined,
199
+ prune: false,
200
+ disableFallbackStore: false,
201
+ workspacesMap: Map(0) {},
202
+ enableWorkspace: false,
203
+ workspaceRoot: '/Users/edwardxiao/Main/Repositories/github/react-picky-date-time',
204
+ isWorkspaceRoot: true,
205
+ isWorkspacePackage: false,
206
+ offline: false,
207
+ strictSSL: true,
208
+ ignoreScripts: false,
209
+ foregroundScripts: false,
210
+ ignoreOptionalDependencies: false,
211
+ detail: false,
212
+ forceLinkLatest: false,
213
+ trace: false,
214
+ engineStrict: false,
215
+ registryOnly: false,
216
+ client: false,
217
+ autoFixVersion: [Function: autoFixVersion]
218
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-picky-date-time",
3
- "version": "2.0.7",
3
+ "version": "3.0.0",
4
4
  "description": "A react component for date time picker.",
5
5
  "main": "index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "bugs": {
27
27
  "url": "https://github.com/edwardfxiao/react-picky-date-time/issues"
28
28
  },
29
- "homepage": "https://github.com/edwardfxiao/react-picky-date-time#readme",
29
+ "homepage": "https://github.com/edwardfxiao/react-picky-date-time",
30
30
  "scripts": {
31
31
  "tslint": "tslint -c tslint.json 'src/**/*.{ts,tsx}'",
32
32
  "build_gh_page": "rm -rf lib && rm -rf dist && NODE_ENV=production ./node_modules/.bin/webpack --config ./webpack/production.config.babel.js --progress",
@@ -37,9 +37,9 @@
37
37
  "compile": "rimraf dist lib && npm run umd_global && npm run umd_global_min && npm run umd_local && rm ./lib/components/*.css"
38
38
  },
39
39
  "peerDependencies": {
40
- "react": ">= 16.8.6",
41
- "react-dom": ">= 16.8.6",
42
- "react-transition-group": ">= 4.2.2"
40
+ "react": ">= 19.2.4",
41
+ "react-dom": ">= 19.2.4",
42
+ "react-transition-group": ">= 4.4.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/cli": "^7.17.0",
@@ -52,12 +52,10 @@
52
52
  "@babel/register": "^7.17.0",
53
53
  "@swc/core": "^1.2.139",
54
54
  "@swc/wasm": "^1.2.139",
55
- "@types/jest": "^27.4.0",
56
- "@types/react": "^16.8.14",
57
- "@types/react-dom": "^16.8.4",
55
+ "@types/react": "^19.2.13",
56
+ "@types/react-dom": "^19.2.3",
58
57
  "@types/react-transition-group": "^4.4.4",
59
58
  "abortcontroller-polyfill": "^1.7.3",
60
- "babel-jest": "^27.5.1",
61
59
  "babel-loader": "^8.2.3",
62
60
  "babel-plugin-css-modules-transform": "^1.6.2",
63
61
  "bufferutil": "^4.0.6",
@@ -66,8 +64,6 @@
66
64
  "coveralls": "^3.1.1",
67
65
  "css-loader": "^6.4.0",
68
66
  "cssnano": "^5.0.8",
69
- "enzyme": "^3.10.0",
70
- "enzyme-adapter-react-16": "^1.13.2",
71
67
  "esbuild": "^0.14.21",
72
68
  "eslint": "^8.0.1",
73
69
  "eslint-plugin-react": "^7.26.1",
@@ -77,7 +73,6 @@
77
73
  "html-webpack-plugin": "^5.4.0",
78
74
  "identity-obj-proxy": "^3.0.0",
79
75
  "inline-style-prefix-all": "^2.0.2",
80
- "jest": "^27.4.0",
81
76
  "mini-css-extract-plugin": "^2.4.3",
82
77
  "node-notifier": "^10.0.1",
83
78
  "open-color": "^1.9.1",
@@ -89,21 +84,21 @@
89
84
  "postcss-simple-vars": "^6.0.3",
90
85
  "prismjs": "^1.16.0",
91
86
  "promise-polyfill": "^8.2.1",
92
- "react": "^16.8.6",
93
- "react-dom": "^16.8.6",
87
+ "react": "^19.2.4",
88
+ "react-dom": "^19.2.4",
94
89
  "react-markdown": "^8.0.0",
95
- "react-transition-group": "^4.4.2",
90
+ "react-transition-group": "^4.4.5",
96
91
  "regenerator-runtime": "^0.13.9",
97
92
  "rimraf": "^3.0.2",
98
- "ts-jest": "^27.1.3",
99
93
  "ts-loader": "^9.2.6",
100
94
  "ts-node": "^10.5.0",
101
- "typescript": "^4.5.5",
95
+ "typescript": "^5.9.3",
102
96
  "url-loader": "^4.1.1",
103
97
  "utf-8-validate": "^5.0.8",
104
98
  "webpack": "^5.68.0",
105
99
  "webpack-assets-manifest": "^5.1.0",
106
100
  "webpack-cli": "^4.9.2",
107
- "webpack-dev-server": "^4.7.4"
101
+ "webpack-dev-server": "^4.7.4",
102
+ "yargs": "^18.0.0"
108
103
  }
109
104
  }
@@ -1,3 +0,0 @@
1
- {
2
- "html.autoClosingTags": false
3
- }