diff --git a/package-lock.json b/package-lock.json index 900dc5a2..b54b6131 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,14 +23,11 @@ "ismobilejs": "1.1.1", "kjua": "0.9.0", "libphonenumber-js": "1.10.37", - "md5": "2.3.0", "react": "18.2.0", "react-dom": "18.2.0", "react-error-boundary": "4.0.11", "react-hook-form": "7.45.1", "react-icons": "5.2.1", - "react-svg": "16.1.18", - "styled-components": "6.0.4", "uri-template": "1.0.3" }, "devDependencies": { @@ -56,7 +53,6 @@ "typescript": "5.1.6", "vite": "4.5.3", "vite-plugin-static-copy": "0.17.0", - "vite-plugin-svgr": "3.2.0", "vite-tsconfig-paths": "4.2.0" } }, @@ -70,6 +66,7 @@ }, "node_modules/@ampproject/remapping": { "version": "2.2.1", + "dev": true, "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", @@ -79,179 +76,6 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/cli": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "commander": "^4.0.1", - "convert-source-map": "^1.1.0", - "fs-readdir-recursive": "^1.1.0", - "glob": "^7.2.0", - "make-dir": "^2.1.0", - "slash": "^2.0.0" - }, - "bin": { - "babel": "bin/babel.js", - "babel-external-helpers": "bin/babel-external-helpers.js" - }, - "engines": { - "node": ">=6.9.0" - }, - "optionalDependencies": { - "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.4.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/cli/node_modules/anymatch": { - "version": "3.1.3", - "license": "ISC", - "optional": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@babel/cli/node_modules/binary-extensions": { - "version": "2.2.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@babel/cli/node_modules/braces": { - "version": "3.0.2", - "license": "MIT", - "optional": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@babel/cli/node_modules/chokidar": { - "version": "3.5.3", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "optional": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/@babel/cli/node_modules/commander": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@babel/cli/node_modules/convert-source-map": { - "version": "1.9.0", - "license": "MIT" - }, - "node_modules/@babel/cli/node_modules/fill-range": { - "version": "7.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@babel/cli/node_modules/fsevents": { - "version": "2.3.2", - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/@babel/cli/node_modules/is-binary-path": { - "version": "2.1.0", - "license": "MIT", - "optional": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@babel/cli/node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/@babel/cli/node_modules/normalize-path": { - "version": "3.0.0", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@babel/cli/node_modules/readdirp": { - "version": "3.6.0", - "license": "MIT", - "optional": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/@babel/cli/node_modules/slash": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/@babel/cli/node_modules/to-regex-range": { - "version": "5.0.1", - "license": "MIT", - "optional": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/@babel/code-frame": { "version": "7.22.13", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", @@ -301,6 +125,7 @@ }, "node_modules/@babel/compat-data": { "version": "7.22.9", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -308,6 +133,7 @@ }, "node_modules/@babel/core": { "version": "7.22.9", + "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", @@ -336,10 +162,12 @@ }, "node_modules/@babel/core/node_modules/convert-source-map": { "version": "1.9.0", + "dev": true, "license": "MIT" }, "node_modules/@babel/core/node_modules/json5": { "version": "2.2.3", + "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" @@ -350,6 +178,7 @@ }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -359,6 +188,7 @@ "version": "7.23.0", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "dev": true, "dependencies": { "@babel/types": "^7.23.0", "@jridgewell/gen-mapping": "^0.3.2", @@ -371,6 +201,7 @@ }, "node_modules/@babel/generator/node_modules/jsesc": { "version": "2.5.2", + "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -379,28 +210,9 @@ "node": ">=4" } }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-compilation-targets": { "version": "7.22.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.22.9", @@ -418,79 +230,17 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" } }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.1", - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, "node_modules/@babel/helper-environment-visitor": { "version": "7.22.20", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -499,6 +249,7 @@ "version": "7.23.0", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, "dependencies": { "@babel/template": "^7.22.15", "@babel/types": "^7.23.0" @@ -509,16 +260,7 @@ }, "node_modules/@babel/helper-hoist-variables": { "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -539,6 +281,7 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.22.9", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.22.5", @@ -554,65 +297,17 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-plugin-utils": { "version": "7.22.5", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-wrap-function": "^7.22.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, "node_modules/@babel/helper-simple-access": { "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -623,6 +318,7 @@ }, "node_modules/@babel/helper-split-export-declaration": { "version": "7.22.6", + "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.22.5" @@ -648,25 +344,15 @@ }, "node_modules/@babel/helper-validator-option": { "version": "7.22.5", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helpers": { "version": "7.22.6", + "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.22.5", @@ -729,6 +415,7 @@ "version": "7.23.0", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", + "dev": true, "bin": { "parser": "bin/babel-parser.js" }, @@ -736,104 +423,9 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-external-helpers": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.20.7", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -855,6 +447,7 @@ }, "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" @@ -863,67 +456,9 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -934,6 +469,7 @@ }, "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -944,6 +480,7 @@ }, "node_modules/@babel/plugin-syntax-jsx": { "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -957,6 +494,7 @@ }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -967,6 +505,7 @@ }, "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -977,6 +516,7 @@ }, "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -987,6 +527,7 @@ }, "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -997,6 +538,7 @@ }, "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1007,6 +549,7 @@ }, "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -1015,21 +558,9 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" @@ -1043,6 +574,7 @@ }, "node_modules/@babel/plugin-syntax-typescript": { "version": "7.22.5", + "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -1054,591 +586,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.22.7", - "license": "MIT", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.5", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.22.6", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.22.6", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-transform-react-jsx-self": { "version": "7.22.5", "dev": true, @@ -1667,336 +614,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "regenerator-transform": "^0.15.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.9", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-typescript": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.22.9", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.5", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.5", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.22.5", - "@babel/plugin-syntax-import-attributes": "^7.22.5", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.22.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.7", - "@babel/plugin-transform-async-to-generator": "^7.22.5", - "@babel/plugin-transform-block-scoped-functions": "^7.22.5", - "@babel/plugin-transform-block-scoping": "^7.22.5", - "@babel/plugin-transform-class-properties": "^7.22.5", - "@babel/plugin-transform-class-static-block": "^7.22.5", - "@babel/plugin-transform-classes": "^7.22.6", - "@babel/plugin-transform-computed-properties": "^7.22.5", - "@babel/plugin-transform-destructuring": "^7.22.5", - "@babel/plugin-transform-dotall-regex": "^7.22.5", - "@babel/plugin-transform-duplicate-keys": "^7.22.5", - "@babel/plugin-transform-dynamic-import": "^7.22.5", - "@babel/plugin-transform-exponentiation-operator": "^7.22.5", - "@babel/plugin-transform-export-namespace-from": "^7.22.5", - "@babel/plugin-transform-for-of": "^7.22.5", - "@babel/plugin-transform-function-name": "^7.22.5", - "@babel/plugin-transform-json-strings": "^7.22.5", - "@babel/plugin-transform-literals": "^7.22.5", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.5", - "@babel/plugin-transform-member-expression-literals": "^7.22.5", - "@babel/plugin-transform-modules-amd": "^7.22.5", - "@babel/plugin-transform-modules-commonjs": "^7.22.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.5", - "@babel/plugin-transform-modules-umd": "^7.22.5", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.22.5", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5", - "@babel/plugin-transform-numeric-separator": "^7.22.5", - "@babel/plugin-transform-object-rest-spread": "^7.22.5", - "@babel/plugin-transform-object-super": "^7.22.5", - "@babel/plugin-transform-optional-catch-binding": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.6", - "@babel/plugin-transform-parameters": "^7.22.5", - "@babel/plugin-transform-private-methods": "^7.22.5", - "@babel/plugin-transform-private-property-in-object": "^7.22.5", - "@babel/plugin-transform-property-literals": "^7.22.5", - "@babel/plugin-transform-regenerator": "^7.22.5", - "@babel/plugin-transform-reserved-words": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/plugin-transform-spread": "^7.22.5", - "@babel/plugin-transform-sticky-regex": "^7.22.5", - "@babel/plugin-transform-template-literals": "^7.22.5", - "@babel/plugin-transform-typeof-symbol": "^7.22.5", - "@babel/plugin-transform-unicode-escapes": "^7.22.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.5", - "@babel/plugin-transform-unicode-regex": "^7.22.5", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.5", - "babel-plugin-polyfill-corejs2": "^0.4.4", - "babel-plugin-polyfill-corejs3": "^0.8.2", - "babel-plugin-polyfill-regenerator": "^0.5.1", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-react": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.5", - "@babel/plugin-transform-react-display-name": "^7.22.5", - "@babel/plugin-transform-react-jsx": "^7.22.5", - "@babel/plugin-transform-react-jsx-development": "^7.22.5", - "@babel/plugin-transform-react-pure-annotations": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "@babel/plugin-transform-modules-commonjs": "^7.22.5", - "@babel/plugin-transform-typescript": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "license": "MIT" - }, "node_modules/@babel/runtime": { "version": "7.22.6", "license": "MIT", @@ -2011,6 +628,7 @@ "version": "7.22.15", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.22.13", "@babel/parser": "^7.22.15", @@ -2024,6 +642,7 @@ "version": "7.23.2", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.22.13", "@babel/generator": "^7.23.0", @@ -3673,36 +2292,6 @@ } } }, - "node_modules/@jest/core/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/@jest/core/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -3715,17 +2304,6 @@ "node": ">=8.6" } }, - "node_modules/@jest/core/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/@jest/environment": { "version": "29.5.0", "dev": true, @@ -3912,36 +2490,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/transform/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/transform/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/@jest/transform/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -3954,17 +2502,6 @@ "node": ">=8.6" } }, - "node_modules/@jest/transform/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/@jest/transform/node_modules/write-file-atomic": { "version": "4.0.2", "dev": true, @@ -3995,6 +2532,7 @@ }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.3", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.0.1", @@ -4007,6 +2545,7 @@ }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -4014,6 +2553,7 @@ }, "node_modules/@jridgewell/set-array": { "version": "1.1.2", + "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -4032,10 +2572,12 @@ }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", + "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.18", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "3.1.0", @@ -4044,20 +2586,9 @@ }, "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", + "dev": true, "license": "MIT" }, - "node_modules/@nicolo-ribaudo/chokidar-2": { - "version": "2.1.8-no-fsevents.3", - "license": "MIT", - "optional": true - }, - "node_modules/@nicolo-ribaudo/semver-v6": { - "version": "6.3.3", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "dev": true, @@ -4099,27 +2630,6 @@ "url": "https://opencollective.com/popperjs" } }, - "node_modules/@rollup/pluginutils": { - "version": "5.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "node_modules/@sentry-internal/feedback": { "version": "7.106.1", "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-7.106.1.tgz", @@ -4275,234 +2785,6 @@ "@sinonjs/commons": "^2.0.0" } }, - "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-preset": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^7.0.0", - "@svgr/babel-plugin-remove-jsx-attribute": "^7.0.0", - "@svgr/babel-plugin-remove-jsx-empty-expression": "^7.0.0", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^7.0.0", - "@svgr/babel-plugin-svg-dynamic-title": "^7.0.0", - "@svgr/babel-plugin-svg-em-dimensions": "^7.0.0", - "@svgr/babel-plugin-transform-react-native-svg": "^7.0.0", - "@svgr/babel-plugin-transform-svg-component": "^7.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/core": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.21.3", - "@svgr/babel-preset": "^7.0.0", - "camelcase": "^6.2.0", - "cosmiconfig": "^8.1.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/core/node_modules/camelcase": { - "version": "6.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.21.3", - "entities": "^4.4.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/hast-util-to-babel-ast/node_modules/entities": { - "version": "4.5.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/@svgr/plugin-jsx": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.21.3", - "@svgr/babel-preset": "^7.0.0", - "@svgr/hast-util-to-babel-ast": "^7.0.0", - "svg-parser": "^2.0.4" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@tanem/svg-injector": { - "version": "10.1.60", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.22.5", - "content-type": "^1.0.5", - "tslib": "^2.6.0" - } - }, "node_modules/@testing-library/dom": { "version": "9.3.1", "dev": true, @@ -4622,11 +2904,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/estree": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/@types/graceful-fs": { "version": "4.1.6", "dev": true, @@ -4715,6 +2992,7 @@ }, "node_modules/@types/prop-types": { "version": "15.7.5", + "devOptional": true, "license": "MIT" }, "node_modules/@types/react": { @@ -4758,10 +3036,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/stylis": { - "version": "4.2.0", - "license": "MIT" - }, "node_modules/@types/tough-cookie": { "version": "4.0.2", "dev": true, @@ -5471,55 +3745,6 @@ "node": ">=10" } }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.4", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.1", - "@nicolo-ribaudo/semver-v6": "^6.3.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.2", - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.1", - "core-js-compat": "^3.31.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.1", - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-styled-components": { - "version": "2.1.4", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "lodash": "^4.17.21", - "picomatch": "^2.3.1" - }, - "peerDependencies": { - "styled-components": ">= 2" - } - }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", "dev": true, @@ -5559,18 +3784,33 @@ }, "node_modules/balanced-match": { "version": "1.0.0", + "dev": true, "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/browserslist": { "version": "4.21.9", + "dev": true, "funding": [ { "type": "opencollective", @@ -5650,15 +3890,9 @@ "node": ">=6" } }, - "node_modules/camelize": { - "version": "1.0.1", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/caniuse-lite": { "version": "1.0.30001516", + "dev": true, "funding": [ { "type": "opencollective", @@ -5705,13 +3939,6 @@ "node": ">=10" } }, - "node_modules/charenc": { - "version": "0.0.2", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, "node_modules/ci-info": { "version": "3.8.0", "dev": true, @@ -5807,15 +4034,9 @@ }, "node_modules/concat-map": { "version": "0.0.1", + "dev": true, "license": "MIT" }, - "node_modules/content-type": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/convert-source-map": { "version": "2.0.0", "dev": true, @@ -5829,50 +4050,6 @@ "toggle-selection": "^1.0.6" } }, - "node_modules/core-js-compat": { - "version": "3.31.1", - "license": "MIT", - "dependencies": { - "browserslist": "^4.21.9" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cosmiconfig": { - "version": "8.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - } - }, - "node_modules/cosmiconfig/node_modules/argparse": { - "version": "2.0.1", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/cosmiconfig/node_modules/js-yaml": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/credit-card-type": { "version": "9.1.0", "license": "MIT" @@ -5890,13 +4067,6 @@ "node": ">= 8" } }, - "node_modules/crypt": { - "version": "0.0.2", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } - }, "node_modules/css-box-model": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz", @@ -5905,26 +4075,6 @@ "tiny-invariant": "^1.0.6" } }, - "node_modules/css-color-keywords": { - "version": "1.0.0", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/css-to-react-native": { - "version": "3.2.0", - "license": "MIT", - "dependencies": { - "camelize": "^1.0.0", - "css-color-keywords": "^1.0.0", - "postcss-value-parser": "^4.0.2" - } - }, - "node_modules/css-to-react-native/node_modules/postcss-value-parser": { - "version": "4.2.0", - "license": "MIT" - }, "node_modules/cssom": { "version": "0.5.0", "dev": true, @@ -5965,6 +4115,7 @@ }, "node_modules/debug": { "version": "4.3.4", + "dev": true, "license": "MIT", "dependencies": { "ms": "2.1.2" @@ -6094,6 +4245,7 @@ }, "node_modules/electron-to-chromium": { "version": "1.4.463", + "dev": true, "license": "ISC" }, "node_modules/emittery": { @@ -6260,6 +4412,7 @@ }, "node_modules/escalade": { "version": "3.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -6767,13 +4920,9 @@ "node": ">=4.0" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "dev": true, - "license": "MIT" - }, "node_modules/esutils": { "version": "2.0.2", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -6820,36 +4969,6 @@ "node": ">=8.6.0" } }, - "node_modules/fast-glob/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fast-glob/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fast-glob/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/fast-glob/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -6862,17 +4981,6 @@ "node": ">=8.6" } }, - "node_modules/fast-glob/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "dev": true, @@ -6910,6 +5018,18 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/find-root": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", @@ -7033,12 +5153,9 @@ "node": ">= 10.0.0" } }, - "node_modules/fs-readdir-recursive": { - "version": "1.1.0", - "license": "MIT" - }, "node_modules/fs.realpath": { "version": "1.0.0", + "dev": true, "license": "ISC" }, "node_modules/function-bind": { @@ -7072,6 +5189,7 @@ }, "node_modules/gensync": { "version": "1.0.0-beta.2", + "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -7143,6 +5261,7 @@ }, "node_modules/glob": { "version": "7.2.0", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -7161,7 +5280,7 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "devOptional": true, + "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" @@ -7172,6 +5291,7 @@ }, "node_modules/globals": { "version": "11.12.0", + "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -7408,6 +5528,7 @@ }, "node_modules/inflight": { "version": "1.0.6", + "dev": true, "license": "ISC", "dependencies": { "once": "^1.3.0", @@ -7416,6 +5537,7 @@ }, "node_modules/inherits": { "version": "2.0.3", + "dev": true, "license": "ISC" }, "node_modules/internal-slot": { @@ -7497,10 +5619,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-buffer": { - "version": "1.1.6", - "license": "MIT" - }, "node_modules/is-callable": { "version": "1.2.7", "dev": true, @@ -7553,7 +5671,7 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -7569,7 +5687,7 @@ }, "node_modules/is-glob": { "version": "4.0.3", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" @@ -7597,6 +5715,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/is-number-object": { "version": "1.0.7", "dev": true, @@ -8096,36 +6223,6 @@ } } }, - "node_modules/jest-config/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/jest-config/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -8138,17 +6235,6 @@ "node": ">=8.6" } }, - "node_modules/jest-config/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/jest-diff": { "version": "29.5.0", "dev": true, @@ -8275,28 +6361,6 @@ "node": ">= 8" } }, - "node_modules/jest-haste-map/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-haste-map/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/jest-haste-map/node_modules/fsevents": { "version": "2.3.2", "dev": true, @@ -8309,14 +6373,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/jest-haste-map/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/jest-haste-map/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -8337,17 +6393,6 @@ "node": ">=0.10.0" } }, - "node_modules/jest-haste-map/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/jest-leak-detector": { "version": "29.5.0", "dev": true, @@ -8393,36 +6438,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-message-util/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/jest-message-util/node_modules/micromatch": { "version": "4.0.5", "dev": true, @@ -8435,17 +6450,6 @@ "node": ">=8.6" } }, - "node_modules/jest-message-util/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/jest-mock": { "version": "29.5.0", "dev": true, @@ -8846,32 +6850,6 @@ } } }, - "node_modules/jsdom/node_modules/ws": { - "version": "8.13.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/jsesc": { - "version": "0.5.0", - "bin": { - "jsesc": "bin/jsesc" - } - }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "license": "MIT" @@ -8995,16 +6973,6 @@ "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "license": "MIT", - "optional": true, - "peer": true - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "license": "MIT" - }, "node_modules/lodash.memoize": { "version": "4.1.2", "dev": true, @@ -9032,6 +7000,7 @@ }, "node_modules/lru-cache": { "version": "5.1.1", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" @@ -9045,24 +7014,6 @@ "lz-string": "bin/bin.js" } }, - "node_modules/make-dir": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/make-dir/node_modules/pify": { - "version": "4.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/make-error": { "version": "1.3.6", "dev": true, @@ -9076,15 +7027,6 @@ "tmpl": "1.0.5" } }, - "node_modules/md5": { - "version": "2.3.0", - "license": "BSD-3-Clause", - "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" - } - }, "node_modules/merge-stream": { "version": "2.0.0", "dev": true, @@ -9127,6 +7069,7 @@ }, "node_modules/minimatch": { "version": "3.1.2", + "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -9145,10 +7088,12 @@ }, "node_modules/ms": { "version": "2.1.2", + "dev": true, "license": "MIT" }, "node_modules/nanoid": { "version": "3.3.6", + "dev": true, "funding": [ { "type": "github", @@ -9175,6 +7120,7 @@ }, "node_modules/node-releases": { "version": "2.0.13", + "dev": true, "license": "MIT" }, "node_modules/nwsapi": { @@ -9307,6 +7253,7 @@ }, "node_modules/once": { "version": "1.4.0", + "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" @@ -9464,6 +7411,7 @@ }, "node_modules/path-is-absolute": { "version": "1.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -9494,11 +7442,12 @@ }, "node_modules/picocolors": { "version": "1.0.0", + "dev": true, "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=8.6" @@ -9519,6 +7468,7 @@ "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "dev": true, "funding": [ { "type": "opencollective", @@ -9848,20 +7798,6 @@ } } }, - "node_modules/react-svg": { - "version": "16.1.18", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.22.5", - "@tanem/svg-injector": "^10.1.59", - "@types/prop-types": "^15.7.5", - "prop-types": "^15.8.1" - }, - "peerDependencies": { - "react": "^16.0.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/react-test-renderer": { "version": "18.2.0", "dev": true, @@ -9880,31 +7816,10 @@ "dev": true, "license": "MIT" }, - "node_modules/regenerate": { - "version": "1.4.2", - "license": "MIT" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/regenerator-runtime": { "version": "0.13.11", "license": "MIT" }, - "node_modules/regenerator-transform": { - "version": "0.15.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, "node_modules/regexp.prototype.flags": { "version": "1.5.0", "dev": true, @@ -9921,31 +7836,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "license": "MIT", - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regexpu-core/node_modules/regjsparser": { - "version": "0.9.1", - "license": "BSD-2-Clause", - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, "node_modules/require-directory": { "version": "2.1.1", "dev": true, @@ -10134,17 +8024,6 @@ "loose-envify": "^1.1.0" } }, - "node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/shallowequal": { - "version": "1.1.0", - "license": "MIT" - }, "node_modules/shebang-command": { "version": "2.0.0", "dev": true, @@ -10206,6 +8085,7 @@ }, "node_modules/source-map-js": { "version": "1.0.2", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -10399,63 +8279,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/styled-components": { - "version": "6.0.4", - "license": "MIT", - "dependencies": { - "@babel/cli": "^7.21.0", - "@babel/core": "^7.21.0", - "@babel/helper-module-imports": "^7.18.6", - "@babel/plugin-external-helpers": "^7.18.6", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.20.7", - "@babel/preset-env": "^7.20.2", - "@babel/preset-react": "^7.18.6", - "@babel/preset-typescript": "^7.21.0", - "@babel/traverse": "^7.21.2", - "@emotion/is-prop-valid": "^1.2.1", - "@emotion/unitless": "^0.8.0", - "@types/stylis": "^4.0.2", - "css-to-react-native": "^3.2.0", - "csstype": "^3.1.2", - "postcss": "^8.4.23", - "shallowequal": "^1.1.0", - "stylis": "^4.3.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/styled-components" - }, - "peerDependencies": { - "babel-plugin-styled-components": ">= 2", - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0" - }, - "peerDependenciesMeta": { - "babel-plugin-styled-components": { - "optional": true - } - } - }, - "node_modules/styled-components/node_modules/@emotion/is-prop-valid": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "@emotion/memoize": "^0.8.1" - } - }, - "node_modules/styled-components/node_modules/@emotion/memoize": { - "version": "0.8.1", - "license": "MIT" - }, - "node_modules/stylis": { - "version": "4.3.0", - "license": "MIT" - }, "node_modules/supports-color": { "version": "7.2.0", "dev": true, @@ -10485,11 +8308,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/svg-parser": { - "version": "2.0.4", - "dev": true, - "license": "MIT" - }, "node_modules/symbol-tree": { "version": "3.2.4", "dev": true, @@ -10563,6 +8381,18 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/toggle-selection": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", @@ -10847,38 +8677,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/universalify": { "version": "0.2.0", "dev": true, @@ -10889,6 +8687,7 @@ }, "node_modules/update-browserslist-db": { "version": "1.0.11", + "dev": true, "funding": [ { "type": "opencollective", @@ -11090,17 +8889,6 @@ "node": ">=8" } }, - "node_modules/vite-plugin-static-copy/node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/vite-plugin-static-copy/node_modules/chokidar": { "version": "3.5.3", "dev": true, @@ -11127,17 +8915,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/vite-plugin-static-copy/node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/vite-plugin-static-copy/node_modules/fsevents": { "version": "2.3.2", "dev": true, @@ -11161,14 +8938,6 @@ "node": ">=8" } }, - "node_modules/vite-plugin-static-copy/node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/vite-plugin-static-copy/node_modules/normalize-path": { "version": "3.0.0", "dev": true, @@ -11188,30 +8957,6 @@ "node": ">=8.10.0" } }, - "node_modules/vite-plugin-static-copy/node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/vite-plugin-svgr": { - "version": "3.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.0.2", - "@svgr/core": "^7.0.0", - "@svgr/plugin-jsx": "^7.0.0" - }, - "peerDependencies": { - "vite": "^2.6.0 || 3 || 4" - } - }, "node_modules/vite-tsconfig-paths": { "version": "4.2.0", "dev": true, @@ -11399,8 +9144,30 @@ }, "node_modules/wrappy": { "version": "1.0.2", + "dev": true, "license": "ISC" }, + "node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/xml-name-validator": { "version": "4.0.0", "dev": true, @@ -11425,6 +9192,7 @@ }, "node_modules/yallist": { "version": "3.1.1", + "dev": true, "license": "ISC" }, "node_modules/yaml": { diff --git a/package.json b/package.json index 84d11e1e..9997d8e3 100644 --- a/package.json +++ b/package.json @@ -30,14 +30,11 @@ "ismobilejs": "1.1.1", "kjua": "0.9.0", "libphonenumber-js": "1.10.37", - "md5": "2.3.0", "react": "18.2.0", "react-dom": "18.2.0", "react-error-boundary": "4.0.11", "react-hook-form": "7.45.1", "react-icons": "5.2.1", - "react-svg": "16.1.18", - "styled-components": "6.0.4", "uri-template": "1.0.3" }, "devDependencies": { @@ -63,7 +60,6 @@ "typescript": "5.1.6", "vite": "4.5.3", "vite-plugin-static-copy": "0.17.0", - "vite-plugin-svgr": "3.2.0", "vite-tsconfig-paths": "4.2.0" } } diff --git a/src/App.tsx b/src/App.tsx index 6dfeb778..b36bf192 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -60,11 +60,7 @@ export function App() { }, ON_COMPLETE_TIMEOUT_MS), }} > - + )} diff --git a/src/common/components/BackwardBox.tsx b/src/common/components/BackwardBox.tsx index d9afc1d6..de94838a 100644 --- a/src/common/components/BackwardBox.tsx +++ b/src/common/components/BackwardBox.tsx @@ -1,5 +1,5 @@ -import { ChevronLeftIcon } from '@chakra-ui/icons'; import { Flex, IconButton } from '@chakra-ui/react'; +import { HiChevronLeft } from 'react-icons/hi'; export type BackwardButtonProps = { onClick: React.MouseEventHandler; @@ -11,7 +11,7 @@ export function BackwardBox({ onClick }: BackwardButtonProps) { } + icon={} size="sm" variant="ghost" onClick={onClick} diff --git a/src/common/theme/index.ts b/src/common/theme/index.ts deleted file mode 100644 index e3084434..00000000 --- a/src/common/theme/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import plantation from './plantation'; -import rhino from './rhino'; -import { Theme } from './types'; - -const themes = [plantation, rhino]; - -export const DEFAULT_THEME = plantation; - -export interface WithThemeProps { - theme: Theme; -} - -export function getTheme(themeName: string): Theme { - return themes.find(({ name }) => name === themeName) || DEFAULT_THEME; -} - -export type { Theme, ThemeName } from './types'; diff --git a/src/common/theme/plantation.ts b/src/common/theme/plantation.ts deleted file mode 100644 index ecd1f121..00000000 --- a/src/common/theme/plantation.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { css } from 'styled-components'; - -import { ThemeName, Theme } from './types'; - -const palette = { - Mustard: '#FFDB57', - Aztec: '#081514', - GableGreen: '#163735', - William: '#386460', - LightningYellow: '#ffc81e', - Flamenco: '#ff7808', - AthensGray: '#F9FAFB', - Zeus: '#110E0B', - Loblolly: '#C3CED6', - RegentGray: '#87939B', - CopperRose: '#A17171', - Cinnabar: '#E75542', - SeaNymph: '#71A19D', - BlueRibbon: '#0038FF', - Candlelight: '#ffe05c', - Silver: '#979797', - Orange: '#ffe484', -}; - -const theme: Theme = { - name: ThemeName.plantation, - font: { - family: "'Roboto', sans-serif", - primaryColor: palette.Zeus, - }, - background: { - gradient: css`linear-gradient(30deg, ${palette.Aztec} 0%, ${palette.GableGreen} 50%, ${palette.William} 100%)`, - loader: [ - [palette.Flamenco, '0%'], - [palette.Mustard, '100%'], - ], - }, - form: { - background: palette.AthensGray, - border: palette.Loblolly, - }, - input: { - backgroundColor: 'none', - border: palette.Loblolly, - color: '#000000', - placeholder: palette.RegentGray, - error: palette.Cinnabar, - focus: palette.Zeus, - }, - icons: { - success: palette.SeaNymph, - error: palette.CopperRose, - warn: palette.Candlelight, - checkmark: palette.SeaNymph, - }, - divider: palette.Loblolly, - externalLink: palette.BlueRibbon, - paymentMethodItem: { - border: palette.Loblolly, - hover: palette.Zeus, - color: palette.Zeus, - error: palette.Cinnabar, - }, - chevronButton: { - color: palette.Zeus, - disabled: palette.Silver, - }, - button: { - primaryText: palette.Zeus, - outlineText: palette.Zeus, - color: palette.Mustard, - hover: palette.LightningYellow, - }, - linkButton: { - color: palette.Zeus, - hover: palette.Zeus, - }, - alert: { - background: palette.Orange, - }, -}; - -export default theme; diff --git a/src/common/theme/rhino.ts b/src/common/theme/rhino.ts deleted file mode 100644 index c0e82415..00000000 --- a/src/common/theme/rhino.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { css } from 'styled-components'; - -import { Theme, ThemeName } from './types'; - -const palette = { - CodGray: '#110E0B', - FlushOrange: '#FF7E00', - Alabaster: '#F8F8F8', - SilverChalice: '#AEAEAE', - RegentGray: '#87939B', - Cinnabar: '#E75542', - SeaNymph: '#71A19D', - CopperRose: '#A17171', - Candlelight: '#ffe05c', - BlueRibbon: '#0038FF', - White: '#FFFFFF', - Clementine: '#ef7000', - Gorse: '#fdec4a', - Rhino: '#33436B', - BlueCharcoal: '#000C1F', - Silver: '#979797', - Orange: '#ffe484', -}; - -const theme: Theme = { - name: ThemeName.rhino, - font: { - family: "'Roboto', sans-serif", - primaryColor: palette.CodGray, - }, - background: { - gradient: css`radial-gradient(75.93% 95.05% at 46.36% 43.35%, ${palette.Rhino} 0%, ${palette.BlueCharcoal} 100%)`, - loader: [ - [palette.Gorse, '0%'], - [palette.FlushOrange, '100%'], - ], - }, - form: { - background: palette.Alabaster, - border: palette.SilverChalice, - }, - input: { - backgroundColor: 'none', - border: palette.SilverChalice, - color: '#000000', - placeholder: palette.RegentGray, - error: palette.Cinnabar, - focus: palette.CodGray, - }, - icons: { - success: palette.SeaNymph, - error: palette.CopperRose, - warn: palette.Candlelight, - checkmark: palette.SeaNymph, - }, - divider: palette.SilverChalice, - externalLink: palette.BlueRibbon, - paymentMethodItem: { - border: palette.SilverChalice, - hover: palette.CodGray, - color: palette.CodGray, - error: palette.Cinnabar, - }, - chevronButton: { - color: palette.CodGray, - disabled: palette.Silver, - }, - button: { - primaryText: palette.White, - outlineText: palette.FlushOrange, - color: palette.FlushOrange, - hover: palette.Clementine, - }, - linkButton: { - color: palette.CodGray, - hover: palette.CodGray, - }, - alert: { - background: palette.Orange, - }, -}; - -export default theme; diff --git a/src/common/theme/types.ts b/src/common/theme/types.ts deleted file mode 100644 index 87f7076d..00000000 --- a/src/common/theme/types.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { css } from 'styled-components'; - -export enum ThemeName { - plantation = 'plantation', - rhino = 'rhino', -} - -export type Theme = { - name: ThemeName; - font: { - family: string; - primaryColor: string; - }; - background: { - gradient: ReturnType; - loader: string[][]; - }; - form: { - background: string; - border: string; - }; - input: { - backgroundColor: string; - border: string; - color: string; - placeholder: string; - error: string; - focus: string; - }; - icons: { - success: string; - error: string; - warn: string; - checkmark: string; - }; - divider: string; - externalLink: string; - paymentMethodItem: { - border: string; - hover: string; - color: string; - error: string; - }; - chevronButton: { - color: string; - disabled: string; - }; - button: { - primaryText: string; - outlineText: string; - color: string; - hover: string; - }; - linkButton: { - color: string; - hover: string; - }; - alert: { - background: string; - }; -}; diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 6605be17..95be3b0c 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -1,12 +1,10 @@ import { Flex, useColorMode } from '@chakra-ui/react'; import { lazy, useEffect } from 'react'; import { ErrorBoundary } from 'react-error-boundary'; -import { ThemeProvider } from 'styled-components'; import { ErrorAlert, GlobalSpinner } from 'checkout/components'; import { CustomizationContext, LocaleContext } from 'checkout/contexts'; import { InitParams } from 'checkout/init'; -import { getTheme } from 'checkout/theme'; import { extractError } from 'checkout/utils'; import { useInitModels } from './useInitModels'; @@ -15,7 +13,6 @@ import { toCustomizationContext } from './utils'; type AppLayoutProps = { initParams: InitParams; - styledComponentsTheme?: Record; colorMode: string; }; @@ -37,9 +34,8 @@ const ModalContainer = ({ children }: { children: React.ReactNode }) => ( ); -export function AppLayout({ initParams, styledComponentsTheme, colorMode }: AppLayoutProps) { +export function AppLayout({ initParams, colorMode }: AppLayoutProps) { const { setColorMode } = useColorMode(); - const theme = styledComponentsTheme || getTheme(initParams.appConfig.fixedTheme); const { modelsState, init } = useInitModels(); const customizationContextValue = toCustomizationContext(initParams.initConfig); const initLocaleCode = customizationContextValue.initLocaleCode; @@ -57,37 +53,35 @@ export function AppLayout({ initParams, styledComponentsTheme, colorMode }: AppL }, [colorMode]); return ( - - - - {modelsState.status === 'PROCESSING' && } - {modelsState.status === 'INITIALIZED' && ( - - - } - > - + + {modelsState.status === 'PROCESSING' && } + {modelsState.status === 'INITIALIZED' && ( + + - - - )} - {modelsState.status === 'FAILURE' && ( - - )} - - - + } + > + + + + )} + {modelsState.status === 'FAILURE' && ( + + )} + + ); } diff --git a/src/components/ViewContainer/ApiExtensionView/Destinations/InfoItem.tsx b/src/components/ViewContainer/ApiExtensionView/Destinations/InfoItem.tsx index 8ae07f89..9805d675 100644 --- a/src/components/ViewContainer/ApiExtensionView/Destinations/InfoItem.tsx +++ b/src/components/ViewContainer/ApiExtensionView/Destinations/InfoItem.tsx @@ -1,5 +1,6 @@ -import { VStack, Text, Flex, Spacer, Divider, useClipboard, useToast, IconButton, createIcon } from '@chakra-ui/react'; +import { VStack, Text, Flex, Spacer, Divider, useClipboard, useToast, IconButton } from '@chakra-ui/react'; import { ReactElement, cloneElement, useContext, useEffect, useMemo, useState } from 'react'; +import { HiOutlineDuplicate } from 'react-icons/hi'; import { LocaleContext } from 'checkout/contexts'; import { isNil } from 'checkout/utils'; @@ -13,14 +14,6 @@ export type InfoItemProps = { formatter?: (value: string) => Promise; }; -export const CopyIcon = createIcon({ - displayName: 'CopyIcon', - viewBox: '0 0 16 16', - path: ( - - ), -}); - export function InfoItem({ label, value, isCopyable, formatter, icon, isDivider }: InfoItemProps) { const { l } = useContext(LocaleContext); const { onCopy, hasCopied } = useClipboard(value); @@ -69,7 +62,16 @@ export function InfoItem({ label, value, isCopyable, formatter, icon, isDivider {displayValue} - {isCopyable && } size="xs" onClick={onCopy} />} + {isCopyable && ( + } + size="xs" + onClick={onCopy} + /> + )} {isDividerVisible && } diff --git a/src/components/ViewContainer/ApiExtensionView/utils/getGatewayIcon.tsx b/src/components/ViewContainer/ApiExtensionView/utils/getGatewayIcon.tsx index 55e911de..7aca0272 100644 --- a/src/components/ViewContainer/ApiExtensionView/utils/getGatewayIcon.tsx +++ b/src/components/ViewContainer/ApiExtensionView/utils/getGatewayIcon.tsx @@ -1,7 +1,7 @@ import { SberbankIcon, TinkoffIcon, RaiffeisenIcon, SBPIcon } from '../icons'; export const getGatewayIcon = (gatewayName: string, defaultIcon?: JSX.Element): JSX.Element => { - switch (gatewayName) { + switch (gatewayName.toLowerCase()) { case 'sberbank': return ; case 'tinkoff': diff --git a/src/components/ViewContainer/InfoContainer/DetailsDrawer.tsx b/src/components/ViewContainer/InfoContainer/DetailsDrawer.tsx index 3998f42e..250eef11 100644 --- a/src/components/ViewContainer/InfoContainer/DetailsDrawer.tsx +++ b/src/components/ViewContainer/InfoContainer/DetailsDrawer.tsx @@ -1,4 +1,3 @@ -import { ChevronUpIcon } from '@chakra-ui/icons'; import { Drawer, DrawerBody, @@ -9,6 +8,7 @@ import { VStack, Text, } from '@chakra-ui/react'; +import { HiChevronUp } from 'react-icons/hi'; import { truncate } from 'checkout/utils'; @@ -23,7 +23,7 @@ export function DetailsDrawer({ isOpen, onClose, name, description }: DetailsDra return ( - + {name && ( @@ -35,7 +35,7 @@ export function DetailsDrawer({ isOpen, onClose, name, description }: DetailsDra - } onClick={onClose} /> + } onClick={onClose} /> diff --git a/src/components/ViewContainer/InfoContainer/InfoContainer.tsx b/src/components/ViewContainer/InfoContainer/InfoContainer.tsx index fd37b88f..382c1931 100644 --- a/src/components/ViewContainer/InfoContainer/InfoContainer.tsx +++ b/src/components/ViewContainer/InfoContainer/InfoContainer.tsx @@ -1,6 +1,6 @@ -import { ChevronDownIcon, ChevronLeftIcon } from '@chakra-ui/icons'; import { Button, Flex, Text, VStack, useDisclosure, useMediaQuery } from '@chakra-ui/react'; import { useContext } from 'react'; +import { HiChevronDown, HiChevronLeft } from 'react-icons/hi'; import { CustomizationContext, LocaleContext } from 'checkout/contexts'; import { truncate } from 'checkout/utils'; @@ -24,7 +24,7 @@ export function InfoContainer({ viewAmount }: InfoProps) { )} diff --git a/src/components/ViewContainer/LocaleSelector.tsx b/src/components/ViewContainer/LocaleSelector.tsx index 07a06a21..c58566e2 100644 --- a/src/components/ViewContainer/LocaleSelector.tsx +++ b/src/components/ViewContainer/LocaleSelector.tsx @@ -1,6 +1,6 @@ -import { ChevronDownIcon } from '@chakra-ui/icons'; import { Flex, Menu, MenuButton, MenuItem, MenuList, Text } from '@chakra-ui/react'; import { useMemo, useState } from 'react'; +import { HiChevronDown } from 'react-icons/hi'; import { isEmojiSupported } from 'checkout/utils'; @@ -73,7 +73,7 @@ export function LocaleSelector({ initLocaleCode, onLocaleChange }: LocaleSelecto {localeInfo[activeLocaleCode]?.short || activeLocaleCode} - + diff --git a/src/components/ViewContainer/QrCodeView/QrCode.tsx b/src/components/ViewContainer/QrCodeView/QrCode.tsx index 5792b87f..e41a5e68 100644 --- a/src/components/ViewContainer/QrCodeView/QrCode.tsx +++ b/src/components/ViewContainer/QrCodeView/QrCode.tsx @@ -1,11 +1,5 @@ -import { useTheme } from '@chakra-ui/react'; +import { Center, useTheme } from '@chakra-ui/react'; import kjua from 'kjua'; -import styled from 'styled-components'; - -const Wrapper = styled.div` - display: flex; - justify-content: center; -`; export type QRCodeProps = { text: string; @@ -16,7 +10,7 @@ export function QRCode({ text }: QRCodeProps) { QRCode: { back, fill }, } = useTheme(); return ( - !isNil(formMetadata) && @@ -17,7 +16,6 @@ const isQrCodeRedirect = (formMetadata: QrCodeFormMetadata) => formMetadata.qrCodeRedirect === 'mobile'; export function QrCodeView() { - const qrCodeInputRef = useRef(null); const { l } = useContext(LocaleContext); const { conditions } = useContext(PaymentConditionsContext); const { @@ -54,12 +52,7 @@ export function QrCodeView() { <> {qrCodeForm.isCopyCodeBlock && ( <> - + -); diff --git a/src/components/legacy/CopyToClipboardButton.tsx b/src/components/legacy/CopyToClipboardButton.tsx deleted file mode 100644 index 0d135b93..00000000 --- a/src/components/legacy/CopyToClipboardButton.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import * as React from 'react'; -import { useEffect, useState } from 'react'; - -import { Button } from './Button'; -import { Locale } from '../../common/contexts'; - -export const CopyToClipboardButton: React.FC<{ - onClick: () => void; - timeout?: number; - l: Locale; -}> = ({ timeout = 3000, onClick, l }) => { - const [label, setLabel] = useState(l['form.button.copy.label']); - - useEffect(() => { - setLabel(l['form.button.copy.label']); - }, [l]); - - useEffect(() => { - const timer = setTimeout(() => { - setLabel(l['form.button.copy.label']); - }, timeout); - return () => clearTimeout(timer); - }, [label]); - - const handleOnClick = () => { - onClick(); - setLabel(l['form.button.copied.label']); - }; - - return ( - - ); -}; diff --git a/src/components/legacy/Email.tsx b/src/components/legacy/Email.tsx deleted file mode 100644 index 70a8c092..00000000 --- a/src/components/legacy/Email.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { FieldError, FieldErrorsImpl, Merge, UseFormRegister } from 'react-hook-form'; - -import { Input } from './Input'; -import { Locale } from '../../common/contexts'; -import { isNil, formatEmail, validateEmail } from '../../common/utils'; - -export type EmailProps = { - registerName: string; - register: UseFormRegister; - locale: Locale; - fieldError: FieldError | Merge>; - isDirty: boolean; -}; - -export const Email = ({ registerName, register, locale, fieldError, isDirty }: EmailProps) => ( - !validateEmail(value) || 'Email is invalid', - })} - autoComplete="email" - dirty={isDirty} - error={!isNil(fieldError)} - id="email-input" - mark={true} - placeholder={locale['form.input.email.placeholder']} - type="email" - onInput={formatEmail} - /> -); diff --git a/src/components/legacy/FormGroup.tsx b/src/components/legacy/FormGroup.tsx deleted file mode 100644 index 080456da..00000000 --- a/src/components/legacy/FormGroup.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import styled from 'styled-components'; - -export const FormGroup = styled.div<{ - direction?: 'column' | 'row'; - $gap?: number; -}>` - display: flex; - flex-wrap: nowrap; - flex-direction: ${({ direction }) => direction || 'row'}; - margin-bottom: 10px; - gap: ${({ $gap }) => `${$gap}px` || 0}; -`; diff --git a/src/components/legacy/HeaderWrapper.tsx b/src/components/legacy/HeaderWrapper.tsx deleted file mode 100644 index 11ee9b83..00000000 --- a/src/components/legacy/HeaderWrapper.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import styled from 'styled-components'; - -export const HeaderWrapper = styled.div` - margin-bottom: 20px; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; - position: relative; - height: 20px; -`; diff --git a/src/components/legacy/Hr.tsx b/src/components/legacy/Hr.tsx deleted file mode 100644 index 4e110186..00000000 --- a/src/components/legacy/Hr.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import styled from 'styled-components'; - -export const Hr = styled.hr` - width: 100%; - border: 0; - border-top: 1px solid ${({ theme }) => theme.divider}; -`; diff --git a/src/components/legacy/Input.tsx b/src/components/legacy/Input.tsx deleted file mode 100644 index 70568453..00000000 --- a/src/components/legacy/Input.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import * as React from 'react'; -import { forwardRef } from 'react'; -import { styled, css } from 'styled-components'; - -import { Marks } from './Marks'; - -const CONTENT_OFFSET = 15; -const TEXT_ICON_OFFSET = 8; -const ICON_SIZE = 18; - -const Icon = styled.div` - position: absolute; - top: 0; - left: 0; - margin: ${CONTENT_OFFSET}px 0 ${CONTENT_OFFSET}px ${CONTENT_OFFSET}px; - width: ${ICON_SIZE}px; - height: ${ICON_SIZE}px; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; - opacity: 1; -`; - -const StyledInput = styled.input<{ $hasIcon?: boolean }>` - background-color: ${({ theme }) => theme.input.backgroundColor}; - color: ${({ theme }) => theme.input.color}; - margin: 0; - width: 100%; - height: 48px; - box-sizing: border-box; - border-radius: 8px; - border: 1px solid ${({ theme }) => theme.input.border}; - font-weight: 500; - font-size: 16px; - letter-spacing: 0; - padding-left: ${({ $hasIcon }) => `${$hasIcon ? CONTENT_OFFSET + ICON_SIZE + TEXT_ICON_OFFSET : CONTENT_OFFSET}px`}; - padding-right: ${CONTENT_OFFSET}px; - appearance: none; - /* transition: border-color 0.3s; */ - - ::placeholder { - color: ${({ theme }) => theme.input.placeholder}; - /* opacity: 1; */ - } - - &:focus-visible { - border-color: ${({ theme }) => theme.input.focus}; - border-width: 1px; - box-shadow: 0 0 0 1px ${({ theme }) => theme.input.focus}; - outline: transparent solid 2px; - outline-offset: 2px; - } -`; - -const InputWrapper = styled.div<{ $error?: any; $mark?: boolean }>` - position: relative; - width: 100%; - - ${({ $error, theme }) => - $error && - css` - ${StyledInput} { - border-color: ${theme.input.error}; - box-shadow: 0 0 0 1px ${({ theme }) => theme.input.error}; - } - `}; - - ${({ $mark }) => - $mark && - css` - ${StyledInput} { - padding-right: 30px; - } - `}; -`; - -export type InputProps = JSX.IntrinsicElements['input'] & { - icon?: React.ReactNode; - mark?: boolean; - error?: boolean; - dirty?: boolean; - autoComplete?: string; -}; - -export const Input = forwardRef( - ({ className, error, dirty, mark, icon, ...props }, ref) => ( - - {icon && {icon}} - - {mark && dirty && !error && } - - ), -); - -Input.displayName = 'Input'; diff --git a/src/components/legacy/Link.tsx b/src/components/legacy/Link.tsx deleted file mode 100644 index 51e87d12..00000000 --- a/src/components/legacy/Link.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import styled from 'styled-components'; - -export const Link = styled.a` - font-weight: 900; - font-size: 11px; - color: ${({ theme }) => theme.linkButton.color}; - letter-spacing: 2px; - line-height: 15px; - text-transform: uppercase; - text-decoration: none; - cursor: pointer; - - &:hover { - color: ${({ theme }) => theme.linkButton.hover}; - } -`; diff --git a/src/components/legacy/Loader.tsx b/src/components/legacy/Loader.tsx deleted file mode 100644 index 1f93bbc6..00000000 --- a/src/components/legacy/Loader.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import * as React from 'react'; -import styled, { keyframes, withTheme } from 'styled-components'; - -import { WithThemeProps } from '../../common/theme'; - -export const spin = keyframes` - 100% { - transform: rotate(360deg); - } -`; - -const LoaderWrapper = styled.svg` - position: relative; - width: 64px; - height: 64px; - animation: ${spin} 1s linear infinite; -`; - -const LoaderDef: React.FC = ({ theme }) => ( - - - - {theme.background.loader.map((color, idx) => ( - - ))} - - - - - - - - -); - -export const Loader = withTheme(LoaderDef); diff --git a/src/components/legacy/Marks.tsx b/src/components/legacy/Marks.tsx deleted file mode 100644 index ebaea0de..00000000 --- a/src/components/legacy/Marks.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { motion } from 'framer-motion'; -import styled, { css } from 'styled-components'; - -import { ReactComponent as Checkmark } from './icon/checkmark.svg'; - -const fadeIn = { - hidden: { opacity: 0 }, - show: { opacity: 1, transition: { duration: 0.3 } }, - exit: { opacity: 0, transition: { duration: 0.3 } }, -}; - -const iconStyle = css` - display: flex; - position: absolute; - right: 0; - top: 0; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; -`; - -const CheckmarkIcon = styled(Checkmark)` - ${iconStyle}; - height: 9px; - width: 13px; - margin: 19px 15px 0 19px; - g { - stroke: ${({ theme }) => theme.icons.checkmark}; - } -`; - -export const Marks = () => ( - - - -); diff --git a/src/components/legacy/Method.tsx b/src/components/legacy/Method.tsx deleted file mode 100644 index 74cf241f..00000000 --- a/src/components/legacy/Method.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import styled from 'styled-components'; - -export const Method = styled.li` - border-radius: 8px; - border: 1px solid ${({ theme }) => theme.paymentMethodItem.border}; - padding: 20px; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; - margin-bottom: 10px; - transition: all 0.3s; - cursor: pointer; - &:hover { - border-color: ${({ theme }) => theme.paymentMethodItem.hover}; - } -`; diff --git a/src/components/legacy/PayButton.tsx b/src/components/legacy/PayButton.tsx deleted file mode 100644 index 6d1c6f22..00000000 --- a/src/components/legacy/PayButton.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import styled from 'styled-components'; - -import { Button } from './Button'; -import { Locale } from '../../common/contexts'; -import { ViewAmount } from '../ViewContainer'; - -const PayButtonWrapper = styled(Button)` - margin-top: 24px; -`; - -export type PayButtonProps = { - l: Locale; - viewAmount: ViewAmount; -}; - -export const PayButton = ({ l, viewAmount }: PayButtonProps) => ( - - {l['form.button.pay.label']} {viewAmount} - -); diff --git a/src/components/legacy/PaymentMethodIcon/PaymentMethodIcon.tsx b/src/components/legacy/PaymentMethodIcon/PaymentMethodIcon.tsx deleted file mode 100644 index 60f2ae06..00000000 --- a/src/components/legacy/PaymentMethodIcon/PaymentMethodIcon.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import * as React from 'react'; -import styled from 'styled-components'; - -import { ReactComponent as BankCard } from './bank-card.svg'; -import { ReactComponent as OnlineBanking } from './online-banking.svg'; -import { ReactComponent as Terminals } from './terminals.svg'; -import { ReactComponent as Wallets } from './wallets.svg'; - -const IconClasses = { - 'bank-card': BankCard, - terminals: Terminals, - wallets: Wallets, - 'online-banking': OnlineBanking, -}; - -type name = keyof typeof IconClasses; - -export const PaymentMethodIcon = styled>((props) => { - const IconClass: any = IconClasses[props.name]; - - return ( -
- -
- ); -})` - height: 40px; - width: 40px; - margin-right: 15px; - - path { - fill: ${({ theme }) => theme.paymentMethodItem.color}; - } -`; diff --git a/src/components/legacy/PaymentMethodIcon/bank-card.svg b/src/components/legacy/PaymentMethodIcon/bank-card.svg deleted file mode 100644 index d9df7c16..00000000 --- a/src/components/legacy/PaymentMethodIcon/bank-card.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/src/components/legacy/PaymentMethodIcon/index.ts b/src/components/legacy/PaymentMethodIcon/index.ts deleted file mode 100644 index bb2cfbe2..00000000 --- a/src/components/legacy/PaymentMethodIcon/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { PaymentMethodIcon } from './PaymentMethodIcon'; diff --git a/src/components/legacy/PaymentMethodIcon/online-banking.svg b/src/components/legacy/PaymentMethodIcon/online-banking.svg deleted file mode 100644 index 4b40ab6d..00000000 --- a/src/components/legacy/PaymentMethodIcon/online-banking.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/components/legacy/PaymentMethodIcon/terminals.svg b/src/components/legacy/PaymentMethodIcon/terminals.svg deleted file mode 100644 index 1e6327b8..00000000 --- a/src/components/legacy/PaymentMethodIcon/terminals.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/src/components/legacy/PaymentMethodIcon/wallets.svg b/src/components/legacy/PaymentMethodIcon/wallets.svg deleted file mode 100644 index ace05eb3..00000000 --- a/src/components/legacy/PaymentMethodIcon/wallets.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/src/components/legacy/PaymentMethodItemContainer.tsx b/src/components/legacy/PaymentMethodItemContainer.tsx deleted file mode 100644 index cc57dba0..00000000 --- a/src/components/legacy/PaymentMethodItemContainer.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import styled from 'styled-components'; - -export const PaymentMethodItemContainer = styled.li` - border-radius: 8px; - border: 1px solid ${({ theme }) => theme.paymentMethodItem.border}; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; - justify-content: center; - cursor: pointer; - height: 80px; - margin-bottom: 10px; - transition: all 0.3s; - &:hover { - border-color: ${({ theme }) => theme.paymentMethodItem.hover}; - } -`; diff --git a/src/components/legacy/PaymentMethodTitle.tsx b/src/components/legacy/PaymentMethodTitle.tsx deleted file mode 100644 index 57e4f0a9..00000000 --- a/src/components/legacy/PaymentMethodTitle.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import styled from 'styled-components'; - -export const PaymentMethodTitle = styled.div` - font-weight: 900; - text-transform: uppercase; - font-size: 11px; - color: ${({ theme }) => theme.paymentMethodItem.color}; - letter-spacing: 2px; - line-height: 15px; - padding: 0; - margin: 0; - display: inline-table; -`; diff --git a/src/components/legacy/Phone.tsx b/src/components/legacy/Phone.tsx deleted file mode 100644 index 57e122ba..00000000 --- a/src/components/legacy/Phone.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { FieldError, FieldErrorsImpl, Merge, UseFormRegister } from 'react-hook-form'; - -import { Input } from './Input'; -import { Locale } from '../../common/contexts'; -import { isNil, formatPhoneNumber, validatePhone } from '../../common/utils'; - -export interface PhoneProps { - registerName: string; - register: UseFormRegister; - locale: Locale; - fieldError: FieldError | Merge>; - isDirty: boolean; -} - -export const Phone = ({ registerName, register, locale, fieldError, isDirty }: PhoneProps) => ( - !validatePhone(value) || 'Phone number is invalid', - })} - autoComplete="tel" - dirty={isDirty} - error={!isNil(fieldError)} - id="phone-input" - mark={true} - placeholder={locale['form.input.phone.placeholder']} - type="tel" - onFocus={formatPhoneNumber} - onInput={formatPhoneNumber} - /> -); diff --git a/src/components/legacy/Select.tsx b/src/components/legacy/Select.tsx deleted file mode 100644 index e1fb1d8e..00000000 --- a/src/components/legacy/Select.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import * as React from 'react'; -import { forwardRef } from 'react'; -import { styled, css } from 'styled-components'; - -import { Marks } from './Marks'; - -const StyledSelect = styled.select<{ $isError: boolean }>` - margin: 0; - width: 100%; - height: 48px; - box-sizing: border-box; - border-radius: 8px; - border: 1px solid ${({ theme }) => theme.input.border}; - font-weight: 500; - font-size: 16px; - letter-spacing: 0; - transition: border-color 0.3s; - outline: none; - appearance: none; - background-color: #fff; - cursor: pointer; - padding: 0 15px; - ${({ $isError }) => { - if ($isError) { - return css` - border-color: ${({ theme }) => theme.input.error}; - box-shadow: 0 0 0 1px ${({ theme }) => theme.input.error}; - `; - } - }} -`; - -const SelectWrapper = styled.div` - position: relative; - width: 100%; -`; - -export type SelectProps = { - children: React.ReactNode; - error: boolean; - dirty: boolean; - onChange?: React.FormEventHandler; -}; - -export const Select = forwardRef( - ({ children, error, dirty, onChange, ...props }, ref) => ( - - - {children} - - {!error && dirty && } - - ), -); - -Select.displayName = 'Select'; diff --git a/src/components/legacy/Title.tsx b/src/components/legacy/Title.tsx deleted file mode 100644 index 0126462a..00000000 --- a/src/components/legacy/Title.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import styled from 'styled-components'; - -export const Title = styled.div` - font-weight: 500; - font-size: 16px; - color: ${({ theme }) => theme.font.primaryColor}; - letter-spacing: 0; - line-height: 20px; - width: 100%; - text-align: center; -`; diff --git a/src/components/legacy/icon/amount.svg b/src/components/legacy/icon/amount.svg deleted file mode 100644 index 55a71fde..00000000 --- a/src/components/legacy/icon/amount.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - diff --git a/src/components/legacy/icon/bank.svg b/src/components/legacy/icon/bank.svg deleted file mode 100644 index 0e079169..00000000 --- a/src/components/legacy/icon/bank.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/src/components/legacy/icon/calendar.svg b/src/components/legacy/icon/calendar.svg deleted file mode 100644 index 1c7d58c2..00000000 --- a/src/components/legacy/icon/calendar.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/src/components/legacy/icon/card.svg b/src/components/legacy/icon/card.svg deleted file mode 100644 index 0e276737..00000000 --- a/src/components/legacy/icon/card.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/components/legacy/icon/card/american-express.svg b/src/components/legacy/icon/card/american-express.svg deleted file mode 100644 index df467ec2..00000000 --- a/src/components/legacy/icon/card/american-express.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/src/components/legacy/icon/card/diners-club.svg b/src/components/legacy/icon/card/diners-club.svg deleted file mode 100644 index 654f342f..00000000 --- a/src/components/legacy/icon/card/diners-club.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/src/components/legacy/icon/card/discover.svg b/src/components/legacy/icon/card/discover.svg deleted file mode 100644 index 06266b28..00000000 --- a/src/components/legacy/icon/card/discover.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/src/components/legacy/icon/card/elo.svg b/src/components/legacy/icon/card/elo.svg deleted file mode 100644 index 803044be..00000000 --- a/src/components/legacy/icon/card/elo.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - diff --git a/src/components/legacy/icon/card/hipercard.svg b/src/components/legacy/icon/card/hipercard.svg deleted file mode 100644 index 15bd854c..00000000 --- a/src/components/legacy/icon/card/hipercard.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/components/legacy/icon/card/jcb.svg b/src/components/legacy/icon/card/jcb.svg deleted file mode 100644 index 369e9df2..00000000 --- a/src/components/legacy/icon/card/jcb.svg +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/components/legacy/icon/card/maestro.svg b/src/components/legacy/icon/card/maestro.svg deleted file mode 100644 index 1e463766..00000000 --- a/src/components/legacy/icon/card/maestro.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - diff --git a/src/components/legacy/icon/card/mastercard.svg b/src/components/legacy/icon/card/mastercard.svg deleted file mode 100644 index aaa53068..00000000 --- a/src/components/legacy/icon/card/mastercard.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/src/components/legacy/icon/card/mir.svg b/src/components/legacy/icon/card/mir.svg deleted file mode 100644 index 2813d01d..00000000 --- a/src/components/legacy/icon/card/mir.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - diff --git a/src/components/legacy/icon/card/unionpay.svg b/src/components/legacy/icon/card/unionpay.svg deleted file mode 100644 index c609e0f7..00000000 --- a/src/components/legacy/icon/card/unionpay.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/components/legacy/icon/card/visa.svg b/src/components/legacy/icon/card/visa.svg deleted file mode 100644 index b932ceb4..00000000 --- a/src/components/legacy/icon/card/visa.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/components/legacy/icon/checkmark.svg b/src/components/legacy/icon/checkmark.svg deleted file mode 100644 index b7800917..00000000 --- a/src/components/legacy/icon/checkmark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/components/legacy/icon/chevron-left.svg b/src/components/legacy/icon/chevron-left.svg deleted file mode 100644 index 46cb82f6..00000000 --- a/src/components/legacy/icon/chevron-left.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/components/legacy/icon/chevron-right.svg b/src/components/legacy/icon/chevron-right.svg deleted file mode 100644 index a95d7cfe..00000000 --- a/src/components/legacy/icon/chevron-right.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/components/legacy/icon/lock.svg b/src/components/legacy/icon/lock.svg deleted file mode 100644 index 44fc21db..00000000 --- a/src/components/legacy/icon/lock.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/src/components/legacy/icon/user.svg b/src/components/legacy/icon/user.svg deleted file mode 100644 index c12bac12..00000000 --- a/src/components/legacy/icon/user.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - diff --git a/src/components/legacy/index.ts b/src/components/legacy/index.ts deleted file mode 100644 index d489d490..00000000 --- a/src/components/legacy/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -export { PayButton } from './PayButton'; -export { HeaderWrapper } from './HeaderWrapper'; -export { Title } from './Title'; -export { FormGroup } from './FormGroup'; -export { Input } from './Input'; -export { CardTypeIcon } from './CardTypeIcon'; -export { Button } from './Button'; -export { MetadataField, MetadataLogo, MetadataSelect, MetadataTitle, obscurePassword, sortByIndex } from './metadata'; -export { Email } from './Email'; -export { Phone } from './Phone'; -export { Select } from './Select'; -export { CopyToClipboardButton } from './CopyToClipboardButton'; -export { Hr } from './Hr'; -export { Link } from './Link'; -export { Method } from './Method'; -export { PaymentMethodIcon } from './PaymentMethodIcon'; -export { PaymentMethodTitle } from './PaymentMethodTitle'; -export { PaymentMethodItemContainer } from './PaymentMethodItemContainer'; -export { ChevronButton } from './ChevronButton'; diff --git a/src/components/legacy/metadata/MetadataField/MetadataField.tsx b/src/components/legacy/metadata/MetadataField/MetadataField.tsx deleted file mode 100644 index efc37dd4..00000000 --- a/src/components/legacy/metadata/MetadataField/MetadataField.tsx +++ /dev/null @@ -1,111 +0,0 @@ -import { useMemo } from 'react'; -import { FieldError, UseFormRegister } from 'react-hook-form'; - -import { getInputTypeFormatter, getMetadataFieldFormatter } from './formatters'; -import { - MetadataFieldFormatter, - MetadataTextLocalization, - ServiceProviderMetadataField, -} from '../../../../common/backend/payments'; -import { - createRegExpForMetaPattern, - formatOnFocus, - formatPhoneNumber, - isNil, - partialRight, - validateEmail, - validatePhone, -} from '../../../../common/utils'; -import { Input } from '../../Input'; - -const getAutocomplete = (type: JSX.IntrinsicElements['input']['type']): string | null => { - switch (type) { - case 'email': - return 'email'; - case 'tel': - return 'tel'; - default: - return null; - } -}; - -const getOnInputHandler = (type: JSX.IntrinsicElements['input']['type'], formatter?: MetadataFieldFormatter) => { - if (!isNil(formatter)) { - return getMetadataFieldFormatter(formatter); - } - return getInputTypeFormatter(type); -}; - -const getOnFocusHandler = (type: JSX.IntrinsicElements['input']['type']) => { - switch (type) { - case 'tel': - return partialRight(formatPhoneNumber, formatOnFocus); - default: - return null; - } -}; - -const getPlaceholder = (localeCode: string, localization: MetadataTextLocalization) => { - if (isNil(localization)) { - console.error('Metadata localization is not defined'); - return ''; - } - return localization[localeCode] || localization['en']; -}; - -const createValidator = - (type: JSX.IntrinsicElements['input']['type'], required: boolean, pattern?: string) => (value) => { - if (!required && isNil(value)) { - return undefined; - } - if (type === 'email') { - return validateEmail(value); - } - if (type === 'tel') { - return validatePhone(value); - } - if (pattern) { - return !createRegExpForMetaPattern(pattern).test(value); - } - if (required) { - return !value || !value.trim(); - } - }; - -export interface MetadataFieldProps { - metadata: ServiceProviderMetadataField; - localeCode?: string; - wrappedName?: string; - register: UseFormRegister; - fieldError: FieldError; - isDirty: boolean; -} - -export const MetadataField = ({ - metadata: { name, type, required, pattern, localization, formatter, inputMode }, - localeCode, - wrappedName, - register, - fieldError, - isDirty, -}: MetadataFieldProps) => { - const validate = useMemo(() => createValidator(type, required, pattern), [name]); - const registerName = wrappedName ? `${wrappedName}.${name}` : name; - return ( - !validate(value) || `${name} field is invalid`, - })} - autoComplete={getAutocomplete(type)} - dirty={isDirty} - error={!isNil(fieldError)} - inputMode={inputMode} - mark={true} - placeholder={getPlaceholder(localeCode, localization)} - type={type} - onFocus={getOnFocusHandler(type)} - onInput={getOnInputHandler(type, formatter)} - /> - ); -}; diff --git a/src/components/legacy/metadata/MetadataField/formatters/formatNumbersOnly.ts b/src/components/legacy/metadata/MetadataField/formatters/formatNumbersOnly.ts deleted file mode 100644 index 91ae720b..00000000 --- a/src/components/legacy/metadata/MetadataField/formatters/formatNumbersOnly.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { FormEvent } from 'react'; - -import { MetadataFieldFormatter } from '../../../../../common/backend/payments'; -import { safeVal, isNil } from '../../../../../common/utils'; - -export const formatNumbersOnly = - ({ maxLength }: MetadataFieldFormatter) => - (e: FormEvent) => { - const target = e.currentTarget; - let value = target.value; - value = value.replace(/\D/g, ''); - if (!isNil(maxLength)) { - value = value.slice(0, maxLength); - } - return safeVal(value, target); - }; diff --git a/src/components/legacy/metadata/MetadataField/formatters/getInputTypeFormatter.ts b/src/components/legacy/metadata/MetadataField/formatters/getInputTypeFormatter.ts deleted file mode 100644 index cfe31eea..00000000 --- a/src/components/legacy/metadata/MetadataField/formatters/getInputTypeFormatter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { formatEmail, formatPhoneNumber } from '../../../../../common/utils'; - -export const getInputTypeFormatter = (type: JSX.IntrinsicElements['input']['type']) => { - switch (type) { - case 'email': - return formatEmail; - case 'tel': - return formatPhoneNumber; - default: - return null; - } -}; diff --git a/src/components/legacy/metadata/MetadataField/formatters/getMetadataFieldFormatter.ts b/src/components/legacy/metadata/MetadataField/formatters/getMetadataFieldFormatter.ts deleted file mode 100644 index 1380ba6d..00000000 --- a/src/components/legacy/metadata/MetadataField/formatters/getMetadataFieldFormatter.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { formatNumbersOnly } from './formatNumbersOnly'; -import { MetadataFieldFormatter } from '../../../../../common/backend/payments'; -import { assertUnreachable } from '../../../../../common/utils'; - -export const getMetadataFieldFormatter = (formatter: MetadataFieldFormatter) => { - switch (formatter.type) { - case 'numbersOnly': - return formatNumbersOnly(formatter); - default: - assertUnreachable(formatter.type); - return null; - } -}; diff --git a/src/components/legacy/metadata/MetadataField/formatters/index.ts b/src/components/legacy/metadata/MetadataField/formatters/index.ts deleted file mode 100644 index 4f31e980..00000000 --- a/src/components/legacy/metadata/MetadataField/formatters/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { getInputTypeFormatter } from './getInputTypeFormatter'; -export { getMetadataFieldFormatter } from './getMetadataFieldFormatter'; diff --git a/src/components/legacy/metadata/MetadataField/index.ts b/src/components/legacy/metadata/MetadataField/index.ts deleted file mode 100644 index 850127e9..00000000 --- a/src/components/legacy/metadata/MetadataField/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './MetadataField'; diff --git a/src/components/legacy/metadata/MetadataLogo.tsx b/src/components/legacy/metadata/MetadataLogo.tsx deleted file mode 100644 index 98465f37..00000000 --- a/src/components/legacy/metadata/MetadataLogo.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import * as React from 'react'; -import styled from 'styled-components'; - -import { ServiceProviderIconMetadata } from '../../../common/backend/payments'; - -const MetadataImage = styled.img<{ height: string; width: string }>` - height: ${({ height }) => height}; - width: ${({ width }) => width}; -`; - -export const MetadataLogo: React.FC<{ - metadata: ServiceProviderIconMetadata; -}> = ({ metadata: { height, width, src } }) => ; diff --git a/src/components/legacy/metadata/MetadataSelect.tsx b/src/components/legacy/metadata/MetadataSelect.tsx deleted file mode 100644 index ffde0e52..00000000 --- a/src/components/legacy/metadata/MetadataSelect.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import * as React from 'react'; -import { FieldError, UseFormRegister } from 'react-hook-form'; - -import { MetadataTextLocalization, ServiceProviderMetadataSelect } from '../../../common/backend/payments'; -import { isNil, countries, Country, CountrySubdivision } from '../../../common/utils'; -import { Select } from '../Select'; - -export interface MetadataSelectProps { - metadata: ServiceProviderMetadataSelect; - localeCode: string; - wrappedName: string; - register: UseFormRegister; - fieldError: FieldError; - isDirty: boolean; -} - -const findCountry = (countryCode: string) => (country: Country) => country.code === countryCode; - -const toOptions = ({ name, code }: CountrySubdivision) => ({ - label: name, - value: code, -}); - -const getDefOptionLabel = (localeCode: string, localization: MetadataTextLocalization) => - localization[localeCode] || localization['en']; - -const createValidator = (required: boolean) => (value) => { - if (!required) { - return undefined; - } - if (required) { - return isNil(value); - } -}; - -export const MetadataSelect = ({ - wrappedName, - metadata: { name, src, localization, required }, - register, - localeCode, - fieldError, - isDirty, -}: MetadataSelectProps) => { - const registerName = wrappedName ? `${wrappedName}.${name}` : name; - const subdivisions = countries.find(findCountry(src.countryCode)).sub; - const options = subdivisions.map(toOptions); - const validate = React.useMemo(() => createValidator(required), [name]); - return ( - - ); -}; diff --git a/src/components/legacy/metadata/MetadataTitle.tsx b/src/components/legacy/metadata/MetadataTitle.tsx deleted file mode 100644 index 01f398df..00000000 --- a/src/components/legacy/metadata/MetadataTitle.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import * as React from 'react'; -import styled from 'styled-components'; - -import { MetadataTextLocalization, ServiceProviderTitleMetadata } from '../../../common/backend/payments'; -import { PaymentMethodIcon } from '../PaymentMethodIcon'; -import { PaymentMethodTitle } from '../PaymentMethodTitle'; - -const getText = (localeCode: string, localization: MetadataTextLocalization) => - localization[localeCode] || localization['en']; - -export const Container = styled.div` - padding: 20px; - width: 100%; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: center; -`; - -export const MetadataTitle: React.FC<{ - localeCode: string; - metadata: ServiceProviderTitleMetadata; -}> = ({ localeCode, metadata: { icon, localization } }) => ( - - - {getText(localeCode, localization)} - -); diff --git a/src/components/legacy/metadata/index.ts b/src/components/legacy/metadata/index.ts deleted file mode 100644 index c1324e25..00000000 --- a/src/components/legacy/metadata/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { MetadataField } from './MetadataField'; -export { MetadataTitle } from './MetadataTitle'; -export { MetadataSelect } from './MetadataSelect'; -export { MetadataLogo } from './MetadataLogo'; -export { obscurePassword, sortByIndex } from './utils'; diff --git a/src/components/legacy/metadata/utils/index.ts b/src/components/legacy/metadata/utils/index.ts deleted file mode 100644 index db941866..00000000 --- a/src/components/legacy/metadata/utils/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { sortByIndex } from './sortByIndex'; -export { obscurePassword } from './obscurePassword'; diff --git a/src/components/legacy/metadata/utils/obscurePassword.ts b/src/components/legacy/metadata/utils/obscurePassword.ts deleted file mode 100644 index 3a997478..00000000 --- a/src/components/legacy/metadata/utils/obscurePassword.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as md5 from 'md5'; - -import { ServiceProviderMetadataField } from '../../../../common/backend/payments'; - -export const obscurePassword = (formMetadata: ServiceProviderMetadataField[], formValues: T): T => { - const found = formMetadata.find((field) => field.type === 'password'); - return found - ? { - ...formValues, - [found.name]: md5(formValues[found.name]), - } - : formValues; -}; diff --git a/src/components/legacy/metadata/utils/sortByIndex.ts b/src/components/legacy/metadata/utils/sortByIndex.ts deleted file mode 100644 index 5651eb08..00000000 --- a/src/components/legacy/metadata/utils/sortByIndex.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ServiceProviderMetadataField } from '../../../../common/backend/payments'; - -export const sortByIndex = (a: ServiceProviderMetadataField, b: ServiceProviderMetadataField) => a?.index - b?.index; diff --git a/vite.config.app.ts b/vite.config.app.ts index 779d3d2f..07a3fd27 100644 --- a/vite.config.app.ts +++ b/vite.config.app.ts @@ -2,7 +2,6 @@ import react from '@vitejs/plugin-react'; import { visualizer } from 'rollup-plugin-visualizer'; import { defineConfig } from 'vite'; import { viteStaticCopy } from 'vite-plugin-static-copy'; -import svgr from 'vite-plugin-svgr'; import tsconfigPaths from 'vite-tsconfig-paths'; export default defineConfig({ @@ -17,7 +16,6 @@ export default defineConfig({ }, plugins: [ react(), - svgr(), tsconfigPaths(), viteStaticCopy({ targets: [