From 8b23c4882fb862d71e2652d0ce1297e5d983b506 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 3 May 2021 11:20:08 -0400 Subject: [PATCH] Version 1.2.3 - Fixed bug with imports --- package-lock.json | 201 ++++++++++-------- package.json | 16 +- .../durationFieldsContainer.test.tsx.snap | 12 -- .../durationFieldsContainer.test.tsx | 2 +- src/durationDialog.tsx | 3 +- src/durationField.tsx | 3 +- src/durationFieldsContainer.tsx | 5 +- src/durationPicker.tsx | 3 +- tsconfig.json | 2 +- 9 files changed, 129 insertions(+), 118 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6854920..fe4a99c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,26 +1,31 @@ { "name": "material-duration-picker", - "version": "1.2.2", + "version": "1.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "devDependencies": { + "@material-ui/core": "^4.9.1", "@testing-library/jest-dom": "^5.12.0", "@testing-library/react": "^11.2.6", "@types/jest": "^26.0.23", "@types/node": "^12.0.0", + "@types/react": "^16.8.4", + "@types/react-dom": "^16.9.0", + "react": "^16.8.4", + "react-dom": "^16.8.4", "ts-jest": "^26.5.5", "typescript": "^4.2.4" }, "peerDependencies": { "@material-ui/core": "^4.9.1", - "@types/react": "^16.9.0", + "@types/react": "^16.8.4", "@types/react-dom": "^16.9.0", - "react": "^16.0.0", - "react-dom": "^16.0.0" + "react": "^16.8.4", + "react-dom": "^16.8.4" } }, "node_modules/@babel/code-frame": { @@ -507,6 +512,7 @@ "version": "7.13.17", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.17.tgz", "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", + "dev": true, "dependencies": { "regenerator-runtime": "^0.13.4" } @@ -589,7 +595,7 @@ "version": "0.8.0", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "peer": true + "dev": true }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -863,7 +869,7 @@ "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", "integrity": "sha512-oqb+lJ2Dl9HXI9orc6/aN8ZIAMkeThufA5iZELf2LQeBn2NtjVilF5D2w7e9RpntAzDb4jK5DsVhkfOvFY/8fg==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/styles": "^4.11.4", @@ -900,7 +906,7 @@ "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.4.tgz", "integrity": "sha512-KNTIZcnj/zprG5LW0Sao7zw+yG3O35pviHzejMdcSGCdWbiO8qzRgOYL8JAxAsWBKOKYwVZxXtHWaB5T2Kvxew==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.4.4", "@emotion/hash": "^0.8.0", @@ -941,7 +947,7 @@ "version": "4.11.3", "resolved": "https://registry.npmjs.org/@material-ui/system/-/system-4.11.3.tgz", "integrity": "sha512-SY7otguNGol41Mu2Sg6KbBP1ZRFIbFLHGK81y4KYbsV2yIcaEPOmsCK6zwWlp+2yTV3J/VwT6oSBARtGIVdXPw==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/utils": "^4.11.2", @@ -970,7 +976,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/@material-ui/types/-/types-5.1.0.tgz", "integrity": "sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==", - "peer": true, + "dev": true, "peerDependencies": { "@types/react": "*" }, @@ -984,7 +990,7 @@ "version": "4.11.2", "resolved": "https://registry.npmjs.org/@material-ui/utils/-/utils-4.11.2.tgz", "integrity": "sha512-Uul8w38u+PICe2Fg2pDKCaIG7kOyhowZ9vjiC1FsVwPABTW8vPPKfF6OvxRq3IiBaI1faOJmgdvMG7rMJARBhA==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.4.4", "prop-types": "^15.7.2", @@ -1202,13 +1208,13 @@ "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "peer": true + "dev": true }, "node_modules/@types/react": { "version": "16.14.5", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.5.tgz", "integrity": "sha512-YRRv9DNZhaVTVRh9Wmmit7Y0UFhEVqXqCSw3uazRWMxa2x85hWQZ5BN24i7GXZbaclaLXEcodEeIHsjBA8eAMw==", - "peer": true, + "dev": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -1219,7 +1225,7 @@ "version": "16.9.12", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.12.tgz", "integrity": "sha512-i7NPZZpPte3jtVOoW+eLB7G/jsX5OM6GqQnH+lC0nq0rqwlK0x8WcMEvYDgFWqWhWMlTltTimzdMax6wYfZssA==", - "peer": true, + "dev": true, "dependencies": { "@types/react": "^16" } @@ -1228,7 +1234,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", "integrity": "sha512-vIo69qKKcYoJ8wKCJjwSgCTM+z3chw3g18dkrDfVX665tMH7tmbDxEAnPdey4gTlwZz5QuHGzd+hul0OVZDqqQ==", - "peer": true, + "dev": true, "dependencies": { "@types/react": "*" } @@ -1237,13 +1243,13 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true }, "node_modules/@types/scheduler": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "peer": true + "dev": true }, "node_modules/@types/stack-utils": { "version": "2.0.0", @@ -1982,7 +1988,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", - "peer": true, + "dev": true, "engines": { "node": ">=6" } @@ -2137,7 +2143,7 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", "integrity": "sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.8.3", "is-in-browser": "^1.0.2" @@ -2190,7 +2196,7 @@ "version": "2.6.17", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.17.tgz", "integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A==", - "peer": true + "dev": true }, "node_modules/dashdash": { "version": "1.14.1", @@ -2333,7 +2339,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" @@ -2343,7 +2349,7 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true }, "node_modules/domexception": { "version": "2.0.1", @@ -3160,7 +3166,7 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "peer": true, + "dev": true, "dependencies": { "react-is": "^16.7.0" } @@ -3169,7 +3175,7 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "peer": true + "dev": true }, "node_modules/hosted-git-info": { "version": "2.8.9", @@ -3228,7 +3234,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", "integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==", - "peer": true + "dev": true }, "node_modules/iconv-lite": { "version": "0.4.24", @@ -3274,7 +3280,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/indefinite-observable/-/indefinite-observable-2.0.1.tgz", "integrity": "sha512-G8vgmork+6H9S8lUAg1gtXEj2JxIQTo0g2PbFiYOdjkziSI0F7UYBiVwhZRuixhBCNGczAls34+5HJPyZysvxQ==", - "peer": true, + "dev": true, "dependencies": { "symbol-observable": "1.2.0" } @@ -3439,7 +3445,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=", - "peer": true + "dev": true }, "node_modules/is-number": { "version": "7.0.0", @@ -4203,7 +4209,8 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "node_modules/js-yaml": { "version": "3.14.1", @@ -4348,7 +4355,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss/-/jss-10.6.0.tgz", "integrity": "sha512-n7SHdCozmxnzYGXBHe0NsO0eUf9TvsHVq2MXvi4JmTn3x5raynodDVE/9VQmBdWFyyj9HpHZ2B4xNZ7MMy7lkw==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "csstype": "^3.0.2", @@ -4365,7 +4372,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-camel-case/-/jss-plugin-camel-case-10.6.0.tgz", "integrity": "sha512-JdLpA3aI/npwj3nDMKk308pvnhoSzkW3PXlbgHAzfx0yHWnPPVUjPhXFtLJzgKZge8lsfkUxvYSQ3X2OYIFU6A==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "hyphenate-style-name": "^1.0.3", @@ -4376,7 +4383,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-default-unit/-/jss-plugin-default-unit-10.6.0.tgz", "integrity": "sha512-7y4cAScMHAxvslBK2JRK37ES9UT0YfTIXWgzUWD5euvR+JR3q+o8sQKzBw7GmkQRfZijrRJKNTiSt1PBsLI9/w==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -4386,7 +4393,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-global/-/jss-plugin-global-10.6.0.tgz", "integrity": "sha512-I3w7ji/UXPi3VuWrTCbHG9rVCgB4yoBQLehGDTmsnDfXQb3r1l3WIdcO8JFp9m0YMmyy2CU7UOV6oPI7/Tmu+w==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -4396,7 +4403,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-nested/-/jss-plugin-nested-10.6.0.tgz", "integrity": "sha512-fOFQWgd98H89E6aJSNkEh2fAXquC9aZcAVjSw4q4RoQ9gU++emg18encR4AT4OOIFl4lQwt5nEyBBRn9V1Rk8g==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "jss": "10.6.0", @@ -4407,7 +4414,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.6.0.tgz", "integrity": "sha512-oMCe7hgho2FllNc60d9VAfdtMrZPo9n1Iu6RNa+3p9n0Bkvnv/XX5San8fTPujrTBScPqv9mOE0nWVvIaohNuw==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -4417,7 +4424,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.6.0.tgz", "integrity": "sha512-TKFqhRTDHN1QrPTMYRlIQUOC2FFQb271+AbnetURKlGvRl/eWLswcgHQajwuxI464uZk91sPiTtdGi7r7XaWfA==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "jss": "10.6.0", @@ -4428,7 +4435,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.6.0.tgz", "integrity": "sha512-doJ7MouBXT1lypLLctCwb4nJ6lDYqrTfVS3LtXgox42Xz0gXusXIIDboeh6UwnSmox90QpVnub7au8ybrb0krQ==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.3.1", "css-vendor": "^2.0.8", @@ -4439,7 +4446,7 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true }, "node_modules/kind-of": { "version": "6.0.3", @@ -4515,7 +4522,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "peer": true, + "dev": true, "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -4874,7 +4881,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "peer": true, + "dev": true, "engines": { "node": ">=0.10.0" } @@ -5225,7 +5232,7 @@ "version": "1.16.1-lts", "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz", "integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==", - "peer": true + "dev": true }, "node_modules/posix-character-classes": { "version": "0.1.1", @@ -5279,7 +5286,7 @@ "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "peer": true, + "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -5290,7 +5297,7 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "peer": true + "dev": true }, "node_modules/psl": { "version": "1.8.0", @@ -5334,7 +5341,7 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "peer": true, + "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -5348,7 +5355,7 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", - "peer": true, + "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -5361,13 +5368,14 @@ }, "node_modules/react-is": { "version": "17.0.2", + "dev": true, "license": "MIT" }, "node_modules/react-transition-group": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", - "peer": true, + "dev": true, "dependencies": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", @@ -5449,7 +5457,8 @@ "node_modules/regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", + "dev": true }, "node_modules/regex-not": { "version": "1.0.2", @@ -6052,7 +6061,7 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "peer": true, + "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -6746,7 +6755,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", - "peer": true, + "dev": true, "engines": { "node": ">=0.10.0" } @@ -6801,7 +6810,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", - "peer": true + "dev": true }, "node_modules/tmpl": { "version": "1.0.4", @@ -7858,6 +7867,7 @@ "version": "7.13.17", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.17.tgz", "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", + "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -7934,7 +7944,7 @@ "version": "0.8.0", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "peer": true + "dev": true }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -8167,7 +8177,7 @@ "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", "integrity": "sha512-oqb+lJ2Dl9HXI9orc6/aN8ZIAMkeThufA5iZELf2LQeBn2NtjVilF5D2w7e9RpntAzDb4jK5DsVhkfOvFY/8fg==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.4.4", "@material-ui/styles": "^4.11.4", @@ -8187,7 +8197,7 @@ "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.4.tgz", "integrity": "sha512-KNTIZcnj/zprG5LW0Sao7zw+yG3O35pviHzejMdcSGCdWbiO8qzRgOYL8JAxAsWBKOKYwVZxXtHWaB5T2Kvxew==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.4.4", "@emotion/hash": "^0.8.0", @@ -8211,7 +8221,7 @@ "version": "4.11.3", "resolved": "https://registry.npmjs.org/@material-ui/system/-/system-4.11.3.tgz", "integrity": "sha512-SY7otguNGol41Mu2Sg6KbBP1ZRFIbFLHGK81y4KYbsV2yIcaEPOmsCK6zwWlp+2yTV3J/VwT6oSBARtGIVdXPw==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.4.4", "@material-ui/utils": "^4.11.2", @@ -8223,14 +8233,14 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/@material-ui/types/-/types-5.1.0.tgz", "integrity": "sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==", - "peer": true, + "dev": true, "requires": {} }, "@material-ui/utils": { "version": "4.11.2", "resolved": "https://registry.npmjs.org/@material-ui/utils/-/utils-4.11.2.tgz", "integrity": "sha512-Uul8w38u+PICe2Fg2pDKCaIG7kOyhowZ9vjiC1FsVwPABTW8vPPKfF6OvxRq3IiBaI1faOJmgdvMG7rMJARBhA==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.4.4", "prop-types": "^15.7.2", @@ -8420,13 +8430,13 @@ "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "peer": true + "dev": true }, "@types/react": { "version": "16.14.5", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.5.tgz", "integrity": "sha512-YRRv9DNZhaVTVRh9Wmmit7Y0UFhEVqXqCSw3uazRWMxa2x85hWQZ5BN24i7GXZbaclaLXEcodEeIHsjBA8eAMw==", - "peer": true, + "dev": true, "requires": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -8437,7 +8447,7 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true } } }, @@ -8445,7 +8455,7 @@ "version": "16.9.12", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.12.tgz", "integrity": "sha512-i7NPZZpPte3jtVOoW+eLB7G/jsX5OM6GqQnH+lC0nq0rqwlK0x8WcMEvYDgFWqWhWMlTltTimzdMax6wYfZssA==", - "peer": true, + "dev": true, "requires": { "@types/react": "^16" } @@ -8454,7 +8464,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", "integrity": "sha512-vIo69qKKcYoJ8wKCJjwSgCTM+z3chw3g18dkrDfVX665tMH7tmbDxEAnPdey4gTlwZz5QuHGzd+hul0OVZDqqQ==", - "peer": true, + "dev": true, "requires": { "@types/react": "*" } @@ -8463,7 +8473,7 @@ "version": "0.16.1", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "peer": true + "dev": true }, "@types/stack-utils": { "version": "2.0.0", @@ -9052,7 +9062,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", - "peer": true + "dev": true }, "co": { "version": "4.6.0", @@ -9190,7 +9200,7 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", "integrity": "sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.8.3", "is-in-browser": "^1.0.2" @@ -9232,7 +9242,7 @@ "version": "2.6.17", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.17.tgz", "integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A==", - "peer": true + "dev": true }, "dashdash": { "version": "1.14.1", @@ -9339,7 +9349,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" @@ -9349,7 +9359,7 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true } } }, @@ -10001,7 +10011,7 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "peer": true, + "dev": true, "requires": { "react-is": "^16.7.0" }, @@ -10010,7 +10020,7 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "peer": true + "dev": true } } }, @@ -10061,7 +10071,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", "integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==", - "peer": true + "dev": true }, "iconv-lite": { "version": "0.4.24", @@ -10095,7 +10105,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/indefinite-observable/-/indefinite-observable-2.0.1.tgz", "integrity": "sha512-G8vgmork+6H9S8lUAg1gtXEj2JxIQTo0g2PbFiYOdjkziSI0F7UYBiVwhZRuixhBCNGczAls34+5HJPyZysvxQ==", - "peer": true, + "dev": true, "requires": { "symbol-observable": "1.2.0" } @@ -10224,7 +10234,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=", - "peer": true + "dev": true }, "is-number": { "version": "7.0.0", @@ -10835,7 +10845,8 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.14.1", @@ -10951,7 +10962,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss/-/jss-10.6.0.tgz", "integrity": "sha512-n7SHdCozmxnzYGXBHe0NsO0eUf9TvsHVq2MXvi4JmTn3x5raynodDVE/9VQmBdWFyyj9HpHZ2B4xNZ7MMy7lkw==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "csstype": "^3.0.2", @@ -10964,7 +10975,7 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "peer": true + "dev": true } } }, @@ -10972,7 +10983,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-camel-case/-/jss-plugin-camel-case-10.6.0.tgz", "integrity": "sha512-JdLpA3aI/npwj3nDMKk308pvnhoSzkW3PXlbgHAzfx0yHWnPPVUjPhXFtLJzgKZge8lsfkUxvYSQ3X2OYIFU6A==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "hyphenate-style-name": "^1.0.3", @@ -10983,7 +10994,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-default-unit/-/jss-plugin-default-unit-10.6.0.tgz", "integrity": "sha512-7y4cAScMHAxvslBK2JRK37ES9UT0YfTIXWgzUWD5euvR+JR3q+o8sQKzBw7GmkQRfZijrRJKNTiSt1PBsLI9/w==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -10993,7 +11004,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-global/-/jss-plugin-global-10.6.0.tgz", "integrity": "sha512-I3w7ji/UXPi3VuWrTCbHG9rVCgB4yoBQLehGDTmsnDfXQb3r1l3WIdcO8JFp9m0YMmyy2CU7UOV6oPI7/Tmu+w==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -11003,7 +11014,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-nested/-/jss-plugin-nested-10.6.0.tgz", "integrity": "sha512-fOFQWgd98H89E6aJSNkEh2fAXquC9aZcAVjSw4q4RoQ9gU++emg18encR4AT4OOIFl4lQwt5nEyBBRn9V1Rk8g==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "jss": "10.6.0", @@ -11014,7 +11025,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.6.0.tgz", "integrity": "sha512-oMCe7hgho2FllNc60d9VAfdtMrZPo9n1Iu6RNa+3p9n0Bkvnv/XX5San8fTPujrTBScPqv9mOE0nWVvIaohNuw==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "jss": "10.6.0" @@ -11024,7 +11035,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.6.0.tgz", "integrity": "sha512-TKFqhRTDHN1QrPTMYRlIQUOC2FFQb271+AbnetURKlGvRl/eWLswcgHQajwuxI464uZk91sPiTtdGi7r7XaWfA==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "jss": "10.6.0", @@ -11035,7 +11046,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.6.0.tgz", "integrity": "sha512-doJ7MouBXT1lypLLctCwb4nJ6lDYqrTfVS3LtXgox42Xz0gXusXIIDboeh6UwnSmox90QpVnub7au8ybrb0krQ==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.3.1", "css-vendor": "^2.0.8", @@ -11101,7 +11112,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "peer": true, + "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } @@ -11392,7 +11403,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "peer": true + "dev": true }, "object-copy": { "version": "0.1.0", @@ -11657,7 +11668,7 @@ "version": "1.16.1-lts", "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz", "integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==", - "peer": true + "dev": true }, "posix-character-classes": { "version": "0.1.1", @@ -11698,7 +11709,7 @@ "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "peer": true, + "dev": true, "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -11709,7 +11720,7 @@ "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "peer": true + "dev": true } } }, @@ -11749,7 +11760,7 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "peer": true, + "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -11760,7 +11771,7 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", - "peer": true, + "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -11769,13 +11780,14 @@ } }, "react-is": { - "version": "17.0.2" + "version": "17.0.2", + "dev": true }, "react-transition-group": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", - "peer": true, + "dev": true, "requires": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", @@ -11839,7 +11851,8 @@ "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", + "dev": true }, "regex-not": { "version": "1.0.2", @@ -12325,7 +12338,7 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "peer": true, + "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -12899,7 +12912,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", - "peer": true + "dev": true }, "symbol-tree": { "version": "3.2.4", @@ -12942,7 +12955,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", - "peer": true + "dev": true }, "tmpl": { "version": "1.0.4", diff --git a/package.json b/package.json index 9a18cdc..5c933a4 100644 --- a/package.json +++ b/package.json @@ -10,23 +10,28 @@ "duration-picker", "durations" ], - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "main": "dist/index.js", "author": "tran-simon", "repository": "https://github.com/tran-simon/material-duration-picker", "peerDependencies": { "@material-ui/core": "^4.9.1", - "@types/react": "^16.9.0", + "@types/react": "^16.8.4", "@types/react-dom": "^16.9.0", - "react": "^16.0.0", - "react-dom": "^16.0.0" + "react": "^16.8.4", + "react-dom": "^16.8.4" }, "devDependencies": { + "@material-ui/core": "^4.9.1", "@testing-library/jest-dom": "^5.12.0", "@testing-library/react": "^11.2.6", "@types/jest": "^26.0.23", "@types/node": "^12.0.0", + "@types/react": "^16.8.4", + "@types/react-dom": "^16.9.0", + "react": "^16.8.4", + "react-dom": "^16.8.4", "ts-jest": "^26.5.5", "typescript": "^4.2.4" }, @@ -34,7 +39,8 @@ "build": "tsc", "start": "tsc -w", "test": "jest", - "clean": "rm -rf dist" + "clean": "rm -rf dist", + "deploy": "npm run clean && npm install && npm run build && npm run test && npm publish" }, "files": [ "dist" diff --git a/src/__tests__/__snapshots__/durationFieldsContainer.test.tsx.snap b/src/__tests__/__snapshots__/durationFieldsContainer.test.tsx.snap index 1feb62f..85f7a0a 100644 --- a/src/__tests__/__snapshots__/durationFieldsContainer.test.tsx.snap +++ b/src/__tests__/__snapshots__/durationFieldsContainer.test.tsx.snap @@ -11,12 +11,6 @@ exports[`DurationFieldsContainer can match snapshot 1`] = `
-
@@ -36,12 +30,6 @@ exports[`DurationFieldsContainer can match snapshot 1`] = `
-
diff --git a/src/__tests__/durationFieldsContainer.test.tsx b/src/__tests__/durationFieldsContainer.test.tsx index 27b722e..9d349c6 100644 --- a/src/__tests__/durationFieldsContainer.test.tsx +++ b/src/__tests__/durationFieldsContainer.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import {render, waitFor, screen, fireEvent} from '@testing-library/react' import {DurationFieldsContainer, DurationFieldsContainerProps} from "../durationFieldsContainer"; diff --git a/src/durationDialog.tsx b/src/durationDialog.tsx index 3be4e08..aa31018 100644 --- a/src/durationDialog.tsx +++ b/src/durationDialog.tsx @@ -1,4 +1,5 @@ -import React, {useEffect, useState} from "react"; +import * as React from 'react' +import {useEffect, useState} from 'react' import {Button, Dialog, DialogActions, DialogContent, DialogProps, Toolbar, Typography, useTheme} from "@material-ui/core"; import {DurationType, DurationView, Labels} from "./types"; import {DurationFieldsContainer, DurationFieldsContainerProps} from "./durationFieldsContainer"; diff --git a/src/durationField.tsx b/src/durationField.tsx index d9b9041..7488618 100644 --- a/src/durationField.tsx +++ b/src/durationField.tsx @@ -1,5 +1,6 @@ import {TextField, TextFieldProps} from "@material-ui/core"; -import React, {useEffect, useState} from "react"; +import * as React from 'react' +import {useEffect, useState} from "react"; export type DurationFieldProps = TextFieldProps & { value: number | null diff --git a/src/durationFieldsContainer.tsx b/src/durationFieldsContainer.tsx index 8f6fa4e..6810f80 100644 --- a/src/durationFieldsContainer.tsx +++ b/src/durationFieldsContainer.tsx @@ -1,9 +1,10 @@ import {Grid, GridProps} from '@material-ui/core'; -import React, {Dispatch} from 'react' +import * as React from 'react' +import {Dispatch} from 'react' import {DurationField, DurationFieldProps} from "./durationField"; import {DurationType, DurationView, Labels} from "./types"; import DefaultLabels from "./defaultLabelsEn.json"; -import {getDurationOverflow, VIEWS} from "./utils"; +import {getDurationOverflow} from "./utils"; export type DurationFieldsContainerProps = { diff --git a/src/durationPicker.tsx b/src/durationPicker.tsx index 9f14e73..9731020 100644 --- a/src/durationPicker.tsx +++ b/src/durationPicker.tsx @@ -1,4 +1,5 @@ -import React, {useState} from "react"; +import * as React from 'react' +import {useState} from "react"; import {TextField, TextFieldProps} from "@material-ui/core"; import {durationToTime, timeToDuration} from "./utils"; import {DurationDialog, DurationDialogProps} from "./durationDialog"; diff --git a/tsconfig.json b/tsconfig.json index 36ec1bd..1ddd852 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, - "module": "CommonJS", + "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true,