diff --git a/package-lock.json b/package-lock.json index e7e6c80c..9c4db16e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -83,6 +83,36 @@ "resolved": "https://registry.npmjs.org/@next/env/-/env-13.1.5.tgz", "integrity": "sha512-0Ry4NhJy6qLbXhvxPRUQ1H6RzgtryGdUto7hfgAK0Iw/bScgeVjwLZdfhm2iT7qsOS32apo9cWzLCxjc6iGPsA==" }, + "node_modules/@next/swc-android-arm-eabi": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.5.tgz", + "integrity": "sha512-QAEf3YM9U0qWVQTxgF3Tsh4OeCN1i9Smsf6cVlwZsPzoLyj2nQ879joCoN+ONqDknkBgG6OG/ajefywL3jw9Cg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-android-arm64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-13.1.5.tgz", + "integrity": "sha512-ZmtGPTghRuT5YKL0nNcC2bBVSiG1O0is16eIZ2rWSP/hRW64ZCcAew6pxw2rihntNp22UfequjSTHd91WE/tyQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@next/swc-darwin-arm64": { "version": "13.1.5", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.5.tgz", @@ -98,6 +128,156 @@ "node": ">= 10" } }, + "node_modules/@next/swc-darwin-x64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.5.tgz", + "integrity": "sha512-6mPX0GNRg8NzjV70at8I8pD9YBnPHDpxJCoMuIqysdTjtQhd09Xk6GUhquNhp1kEJzzVk7OW5l2ch4XIJjtY3A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-freebsd-x64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.5.tgz", + "integrity": "sha512-nR4a/SNblG0w8hhYRflTZjk4yD99ld18w/FCftw99ziw8sgciBlOXRICJIiRIaMRU8UH7QLSgBOQVnfNcVNKMA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm-gnueabihf": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.5.tgz", + "integrity": "sha512-EzkltCVKg3gUzamoeKPhGeSgXTTLAhSzc7v/+g1Y+HQa7JKMrlzdRkrJf+H4LJXcz7lnxgNKHGRyZBSXnmJKJw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.5.tgz", + "integrity": "sha512-E7HMkdoxStmTUJU4KzBUU4vZ5DHT4Gd327tC3KFZS5lda0NRerJAOCfsRg+fBj22FvCb1UWsX6XI+weL6xhyeQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.5.tgz", + "integrity": "sha512-qlO0Fd3GQwJS6YpbF9NyL5NGHVZ43dKtZDC/jP4vdeMIYDtSu13HcY/nmA1NdW+RpMwDxSCpx4WKsCCEZGIX8Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.5.tgz", + "integrity": "sha512-GftSBFAay2nocGl+KNqFsj6EVSvomaM/bp86hzezbKsTwQmu76PjOCVcejI1gE+4k7f5zPDgCuorF6F04BV0HQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.5.tgz", + "integrity": "sha512-UD+3lxU4yuAjd+uBkCDfBpAcbGAVfEcE8mX/efIxUGIImmzN0QzgTHYEpKFnY3Lxu02dIBcwQRT3Q5mfO4obng==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.5.tgz", + "integrity": "sha512-uzsvkQY+K3EbL+97IUHPWZPwjsCmCkdH/O5Cf9wCnh0k0gaj7ob1mGKqr1vNNak+9U7HloGwuHcXnZpijWSP7w==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.5.tgz", + "integrity": "sha512-v0NaC1w8mPf620GlJaHBdEm3dm4G4AEQMasDqjzQvo0yCRrvtvzMgCIe8MocBxFHzaF6868NybMqvumxP5YxEg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.5.tgz", + "integrity": "sha512-IZHwvd649ccbWyLCfu92IXEpR250NpmBkaRelPV+WVm4jrd62FKRFCNdqdCXq6TrEg9wN8cK4YG8tm44uEZqLA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@prisma/client": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.9.0.tgz", @@ -2270,186 +2450,6 @@ "engines": { "node": ">=6" } - }, - "node_modules/@next/swc-android-arm-eabi": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.5.tgz", - "integrity": "sha512-QAEf3YM9U0qWVQTxgF3Tsh4OeCN1i9Smsf6cVlwZsPzoLyj2nQ879joCoN+ONqDknkBgG6OG/ajefywL3jw9Cg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-android-arm64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-13.1.5.tgz", - "integrity": "sha512-ZmtGPTghRuT5YKL0nNcC2bBVSiG1O0is16eIZ2rWSP/hRW64ZCcAew6pxw2rihntNp22UfequjSTHd91WE/tyQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.5.tgz", - "integrity": "sha512-6mPX0GNRg8NzjV70at8I8pD9YBnPHDpxJCoMuIqysdTjtQhd09Xk6GUhquNhp1kEJzzVk7OW5l2ch4XIJjtY3A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-freebsd-x64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.5.tgz", - "integrity": "sha512-nR4a/SNblG0w8hhYRflTZjk4yD99ld18w/FCftw99ziw8sgciBlOXRICJIiRIaMRU8UH7QLSgBOQVnfNcVNKMA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm-gnueabihf": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.5.tgz", - "integrity": "sha512-EzkltCVKg3gUzamoeKPhGeSgXTTLAhSzc7v/+g1Y+HQa7JKMrlzdRkrJf+H4LJXcz7lnxgNKHGRyZBSXnmJKJw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.5.tgz", - "integrity": "sha512-E7HMkdoxStmTUJU4KzBUU4vZ5DHT4Gd327tC3KFZS5lda0NRerJAOCfsRg+fBj22FvCb1UWsX6XI+weL6xhyeQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.5.tgz", - "integrity": "sha512-qlO0Fd3GQwJS6YpbF9NyL5NGHVZ43dKtZDC/jP4vdeMIYDtSu13HcY/nmA1NdW+RpMwDxSCpx4WKsCCEZGIX8Q==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.5.tgz", - "integrity": "sha512-GftSBFAay2nocGl+KNqFsj6EVSvomaM/bp86hzezbKsTwQmu76PjOCVcejI1gE+4k7f5zPDgCuorF6F04BV0HQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.5.tgz", - "integrity": "sha512-UD+3lxU4yuAjd+uBkCDfBpAcbGAVfEcE8mX/efIxUGIImmzN0QzgTHYEpKFnY3Lxu02dIBcwQRT3Q5mfO4obng==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.5.tgz", - "integrity": "sha512-uzsvkQY+K3EbL+97IUHPWZPwjsCmCkdH/O5Cf9wCnh0k0gaj7ob1mGKqr1vNNak+9U7HloGwuHcXnZpijWSP7w==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-ia32-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.5.tgz", - "integrity": "sha512-v0NaC1w8mPf620GlJaHBdEm3dm4G4AEQMasDqjzQvo0yCRrvtvzMgCIe8MocBxFHzaF6868NybMqvumxP5YxEg==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.5.tgz", - "integrity": "sha512-IZHwvd649ccbWyLCfu92IXEpR250NpmBkaRelPV+WVm4jrd62FKRFCNdqdCXq6TrEg9wN8cK4YG8tm44uEZqLA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } } }, "dependencies": { @@ -2485,12 +2485,84 @@ "resolved": "https://registry.npmjs.org/@next/env/-/env-13.1.5.tgz", "integrity": "sha512-0Ry4NhJy6qLbXhvxPRUQ1H6RzgtryGdUto7hfgAK0Iw/bScgeVjwLZdfhm2iT7qsOS32apo9cWzLCxjc6iGPsA==" }, + "@next/swc-android-arm-eabi": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.5.tgz", + "integrity": "sha512-QAEf3YM9U0qWVQTxgF3Tsh4OeCN1i9Smsf6cVlwZsPzoLyj2nQ879joCoN+ONqDknkBgG6OG/ajefywL3jw9Cg==", + "optional": true + }, + "@next/swc-android-arm64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-13.1.5.tgz", + "integrity": "sha512-ZmtGPTghRuT5YKL0nNcC2bBVSiG1O0is16eIZ2rWSP/hRW64ZCcAew6pxw2rihntNp22UfequjSTHd91WE/tyQ==", + "optional": true + }, "@next/swc-darwin-arm64": { "version": "13.1.5", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.5.tgz", "integrity": "sha512-aeFXK+M/zmG/CNdMJ0tGNs0MWcLueUe7vZ2V6fa+2yz/ZgYJLI7fEfFvVh1p1yBMzupSbZDowvMuCSFTaeg3MA==", "optional": true }, + "@next/swc-darwin-x64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.5.tgz", + "integrity": "sha512-6mPX0GNRg8NzjV70at8I8pD9YBnPHDpxJCoMuIqysdTjtQhd09Xk6GUhquNhp1kEJzzVk7OW5l2ch4XIJjtY3A==", + "optional": true + }, + "@next/swc-freebsd-x64": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.5.tgz", + "integrity": "sha512-nR4a/SNblG0w8hhYRflTZjk4yD99ld18w/FCftw99ziw8sgciBlOXRICJIiRIaMRU8UH7QLSgBOQVnfNcVNKMA==", + "optional": true + }, + "@next/swc-linux-arm-gnueabihf": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.5.tgz", + "integrity": "sha512-EzkltCVKg3gUzamoeKPhGeSgXTTLAhSzc7v/+g1Y+HQa7JKMrlzdRkrJf+H4LJXcz7lnxgNKHGRyZBSXnmJKJw==", + "optional": true + }, + "@next/swc-linux-arm64-gnu": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.5.tgz", + "integrity": "sha512-E7HMkdoxStmTUJU4KzBUU4vZ5DHT4Gd327tC3KFZS5lda0NRerJAOCfsRg+fBj22FvCb1UWsX6XI+weL6xhyeQ==", + "optional": true + }, + "@next/swc-linux-arm64-musl": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.5.tgz", + "integrity": "sha512-qlO0Fd3GQwJS6YpbF9NyL5NGHVZ43dKtZDC/jP4vdeMIYDtSu13HcY/nmA1NdW+RpMwDxSCpx4WKsCCEZGIX8Q==", + "optional": true + }, + "@next/swc-linux-x64-gnu": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.5.tgz", + "integrity": "sha512-GftSBFAay2nocGl+KNqFsj6EVSvomaM/bp86hzezbKsTwQmu76PjOCVcejI1gE+4k7f5zPDgCuorF6F04BV0HQ==", + "optional": true + }, + "@next/swc-linux-x64-musl": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.5.tgz", + "integrity": "sha512-UD+3lxU4yuAjd+uBkCDfBpAcbGAVfEcE8mX/efIxUGIImmzN0QzgTHYEpKFnY3Lxu02dIBcwQRT3Q5mfO4obng==", + "optional": true + }, + "@next/swc-win32-arm64-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.5.tgz", + "integrity": "sha512-uzsvkQY+K3EbL+97IUHPWZPwjsCmCkdH/O5Cf9wCnh0k0gaj7ob1mGKqr1vNNak+9U7HloGwuHcXnZpijWSP7w==", + "optional": true + }, + "@next/swc-win32-ia32-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.5.tgz", + "integrity": "sha512-v0NaC1w8mPf620GlJaHBdEm3dm4G4AEQMasDqjzQvo0yCRrvtvzMgCIe8MocBxFHzaF6868NybMqvumxP5YxEg==", + "optional": true + }, + "@next/swc-win32-x64-msvc": { + "version": "13.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.5.tgz", + "integrity": "sha512-IZHwvd649ccbWyLCfu92IXEpR250NpmBkaRelPV+WVm4jrd62FKRFCNdqdCXq6TrEg9wN8cK4YG8tm44uEZqLA==", + "optional": true + }, "@prisma/client": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.9.0.tgz", @@ -4158,78 +4230,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==" - }, - "@next/swc-android-arm-eabi": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.1.5.tgz", - "integrity": "sha512-QAEf3YM9U0qWVQTxgF3Tsh4OeCN1i9Smsf6cVlwZsPzoLyj2nQ879joCoN+ONqDknkBgG6OG/ajefywL3jw9Cg==", - "optional": true - }, - "@next/swc-android-arm64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-13.1.5.tgz", - "integrity": "sha512-ZmtGPTghRuT5YKL0nNcC2bBVSiG1O0is16eIZ2rWSP/hRW64ZCcAew6pxw2rihntNp22UfequjSTHd91WE/tyQ==", - "optional": true - }, - "@next/swc-darwin-x64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.5.tgz", - "integrity": "sha512-6mPX0GNRg8NzjV70at8I8pD9YBnPHDpxJCoMuIqysdTjtQhd09Xk6GUhquNhp1kEJzzVk7OW5l2ch4XIJjtY3A==", - "optional": true - }, - "@next/swc-freebsd-x64": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.1.5.tgz", - "integrity": "sha512-nR4a/SNblG0w8hhYRflTZjk4yD99ld18w/FCftw99ziw8sgciBlOXRICJIiRIaMRU8UH7QLSgBOQVnfNcVNKMA==", - "optional": true - }, - "@next/swc-linux-arm-gnueabihf": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.1.5.tgz", - "integrity": "sha512-EzkltCVKg3gUzamoeKPhGeSgXTTLAhSzc7v/+g1Y+HQa7JKMrlzdRkrJf+H4LJXcz7lnxgNKHGRyZBSXnmJKJw==", - "optional": true - }, - "@next/swc-linux-arm64-gnu": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.5.tgz", - "integrity": "sha512-E7HMkdoxStmTUJU4KzBUU4vZ5DHT4Gd327tC3KFZS5lda0NRerJAOCfsRg+fBj22FvCb1UWsX6XI+weL6xhyeQ==", - "optional": true - }, - "@next/swc-linux-arm64-musl": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.5.tgz", - "integrity": "sha512-qlO0Fd3GQwJS6YpbF9NyL5NGHVZ43dKtZDC/jP4vdeMIYDtSu13HcY/nmA1NdW+RpMwDxSCpx4WKsCCEZGIX8Q==", - "optional": true - }, - "@next/swc-linux-x64-gnu": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.5.tgz", - "integrity": "sha512-GftSBFAay2nocGl+KNqFsj6EVSvomaM/bp86hzezbKsTwQmu76PjOCVcejI1gE+4k7f5zPDgCuorF6F04BV0HQ==", - "optional": true - }, - "@next/swc-linux-x64-musl": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.5.tgz", - "integrity": "sha512-UD+3lxU4yuAjd+uBkCDfBpAcbGAVfEcE8mX/efIxUGIImmzN0QzgTHYEpKFnY3Lxu02dIBcwQRT3Q5mfO4obng==", - "optional": true - }, - "@next/swc-win32-arm64-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.5.tgz", - "integrity": "sha512-uzsvkQY+K3EbL+97IUHPWZPwjsCmCkdH/O5Cf9wCnh0k0gaj7ob1mGKqr1vNNak+9U7HloGwuHcXnZpijWSP7w==", - "optional": true - }, - "@next/swc-win32-ia32-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.5.tgz", - "integrity": "sha512-v0NaC1w8mPf620GlJaHBdEm3dm4G4AEQMasDqjzQvo0yCRrvtvzMgCIe8MocBxFHzaF6868NybMqvumxP5YxEg==", - "optional": true - }, - "@next/swc-win32-x64-msvc": { - "version": "13.1.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.5.tgz", - "integrity": "sha512-IZHwvd649ccbWyLCfu92IXEpR250NpmBkaRelPV+WVm4jrd62FKRFCNdqdCXq6TrEg9wN8cK4YG8tm44uEZqLA==", - "optional": true } } } diff --git a/package.json b/package.json index 3415d741..4a06c723 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "@Entities": "./dist/common/entities", "@System": "./dist/common/system", "@ControllerPattern": "./dist/common/system/controller-pattern", - "@Front": "./dist/front/*" + "@Front": "./dist/front/*", + "@Themes": "./dist/front/Themes*" }, "scripts": { "build": "next build && tsc", diff --git a/src/front/assets/icons/arrow-black.svg b/src/front/assets/icons/arrow-black.svg deleted file mode 100644 index 7aaac553..00000000 --- a/src/front/assets/icons/arrow-black.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/front/assets/icons/arrow-white.svg b/src/front/assets/icons/arrow-white.svg deleted file mode 100644 index 5f07944e..00000000 --- a/src/front/assets/icons/arrow-white.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/front/assets/icons/books.svg b/src/front/assets/icons/books.svg deleted file mode 100644 index 257be65d..00000000 --- a/src/front/assets/icons/books.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/icons/cards.svg b/src/front/assets/icons/cards.svg deleted file mode 100644 index b548dc82..00000000 --- a/src/front/assets/icons/cards.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/copy.svg b/src/front/assets/icons/copy.svg deleted file mode 100644 index 9b5ff0b9..00000000 --- a/src/front/assets/icons/copy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/front/assets/icons/cross.svg b/src/front/assets/icons/cross.svg new file mode 100644 index 00000000..8c89398c --- /dev/null +++ b/src/front/assets/icons/cross.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/front/assets/icons/documentation.svg b/src/front/assets/icons/documentation.svg deleted file mode 100644 index abb796a4..00000000 --- a/src/front/assets/icons/documentation.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/input-error.svg b/src/front/assets/icons/input-error.svg deleted file mode 100644 index 920a48bc..00000000 --- a/src/front/assets/icons/input-error.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/input-success.svg b/src/front/assets/icons/input-success.svg deleted file mode 100644 index 71e405bd..00000000 --- a/src/front/assets/icons/input-success.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/island.svg b/src/front/assets/icons/island.svg deleted file mode 100644 index b6f06832..00000000 --- a/src/front/assets/icons/island.svg +++ /dev/null @@ -1 +0,0 @@ -beach-nature-landscape-sun-island \ No newline at end of file diff --git a/src/front/assets/icons/login.svg b/src/front/assets/icons/login.svg deleted file mode 100644 index 579853e7..00000000 --- a/src/front/assets/icons/login.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/password.svg b/src/front/assets/icons/password.svg deleted file mode 100644 index 9045f0b9..00000000 --- a/src/front/assets/icons/password.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/plus-card.svg b/src/front/assets/icons/plus-card.svg deleted file mode 100644 index f19afd9a..00000000 --- a/src/front/assets/icons/plus-card.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/sign-up.svg b/src/front/assets/icons/sign-up.svg deleted file mode 100644 index a18bc36e..00000000 --- a/src/front/assets/icons/sign-up.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/icons/support.svg b/src/front/assets/icons/support.svg deleted file mode 100644 index 9ed454cf..00000000 --- a/src/front/assets/icons/support.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/front/assets/icons/unplugged.svg b/src/front/assets/icons/unplugged.svg deleted file mode 100644 index 95daeb82..00000000 --- a/src/front/assets/icons/unplugged.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/front/assets/icons/user.svg b/src/front/assets/icons/user.svg deleted file mode 100644 index 76dbea45..00000000 --- a/src/front/assets/icons/user.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/front/assets/images/accenture.svg b/src/front/assets/images/accenture.svg deleted file mode 100644 index b1f333fb..00000000 --- a/src/front/assets/images/accenture.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/front/assets/images/architecture.png b/src/front/assets/images/architecture.png deleted file mode 100644 index b7a13a5e..00000000 Binary files a/src/front/assets/images/architecture.png and /dev/null differ diff --git a/src/front/assets/images/arg1.svg b/src/front/assets/images/arg1.svg deleted file mode 100644 index 2d705e26..00000000 --- a/src/front/assets/images/arg1.svg +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/arg2.svg b/src/front/assets/images/arg2.svg deleted file mode 100644 index 43fa4cca..00000000 --- a/src/front/assets/images/arg2.svg +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/arg3.svg b/src/front/assets/images/arg3.svg deleted file mode 100644 index 1fc85344..00000000 --- a/src/front/assets/images/arg3.svg +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/logo.svg b/src/front/assets/images/logo.svg deleted file mode 100644 index 1cdd699f..00000000 --- a/src/front/assets/images/logo.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/metrics.png b/src/front/assets/images/metrics.png deleted file mode 100644 index 29891bd8..00000000 Binary files a/src/front/assets/images/metrics.png and /dev/null differ diff --git a/src/front/assets/images/mini-torus.png b/src/front/assets/images/mini-torus.png deleted file mode 100644 index fed551ac..00000000 Binary files a/src/front/assets/images/mini-torus.png and /dev/null differ diff --git a/src/front/assets/images/nomadic.svg b/src/front/assets/images/nomadic.svg deleted file mode 100644 index fda21fd7..00000000 --- a/src/front/assets/images/nomadic.svg +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/particle.svg b/src/front/assets/images/particle.svg deleted file mode 100644 index 04022616..00000000 --- a/src/front/assets/images/particle.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/front/assets/images/torus-bg.svg b/src/front/assets/images/torus-bg.svg deleted file mode 100644 index 0956eddc..00000000 --- a/src/front/assets/images/torus-bg.svg +++ /dev/null @@ -1,451 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/torus-cables.svg b/src/front/assets/images/torus-cables.svg deleted file mode 100644 index bf58142e..00000000 --- a/src/front/assets/images/torus-cables.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/torus-fg.svg b/src/front/assets/images/torus-fg.svg deleted file mode 100644 index eec67eb6..00000000 --- a/src/front/assets/images/torus-fg.svg +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/torus-logo.svg b/src/front/assets/images/torus-logo.svg deleted file mode 100644 index 1f2a0831..00000000 --- a/src/front/assets/images/torus-logo.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/torus.svg b/src/front/assets/images/torus.svg deleted file mode 100644 index a6e062d0..00000000 --- a/src/front/assets/images/torus.svg +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/front/assets/images/tq.svg b/src/front/assets/images/tq.svg deleted file mode 100644 index 0ec39d04..00000000 --- a/src/front/assets/images/tq.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/front/components/DesignSystem/Loader/classes.module.scss b/src/front/components/DesignSystem/Loader/classes.module.scss new file mode 100644 index 00000000..a7f47cba --- /dev/null +++ b/src/front/components/DesignSystem/Loader/classes.module.scss @@ -0,0 +1,16 @@ +@import "Themes/constants.scss"; + +.loader { + animation: spin 2s linear infinite; + width: 100%; + height: 100%; + + @keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } +} diff --git a/src/front/components/DesignSystem/Loader/index.tsx b/src/front/components/DesignSystem/Loader/index.tsx new file mode 100644 index 00000000..8e4dbaf3 --- /dev/null +++ b/src/front/components/DesignSystem/Loader/index.tsx @@ -0,0 +1,14 @@ +import React from "react"; +import LoaderIcon from "assets/images/icons/loader.svg"; +import classes from "./classes.module.scss"; + +interface IProps { + className?: string; +} + +export default class Loader extends React.Component { + public override render(): JSX.Element { + return + // ; + } +} diff --git a/src/front/components/DesignSystem/Modal/Alert/classes.module.scss b/src/front/components/DesignSystem/Modal/Alert/classes.module.scss new file mode 100644 index 00000000..c9a8155b --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Alert/classes.module.scss @@ -0,0 +1,10 @@ +@import "Themes/constants.scss"; + +.sub-container{ + padding: 40px; +} + +.button-container{ + display: flex; + justify-content:flex-start; +} diff --git a/src/front/components/DesignSystem/Modal/Alert/index.tsx b/src/front/components/DesignSystem/Modal/Alert/index.tsx new file mode 100644 index 00000000..3b7c6a74 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Alert/index.tsx @@ -0,0 +1,46 @@ +import Modal, { IModalProps } from ".."; +import Button, { EButtonVariant } from "../../Button"; +import classes from "./classes.module.scss"; + +type IProps = IModalProps & { + closeText: string | JSX.Element; +}; +export default class Alert extends Modal { + static defaultProps = { + closeText: "Ok", + }; + + constructor(props: IProps) { + super(props); + + this.onClose = this.onClose.bind(this); + } + + public override render(): JSX.Element | null { + return ( + + {this.props.children} + + ); + } + + private footer(): JSX.Element { + return ( +
+ +
+ ); + } + + private onClose() { + this.close(); + this.props.onClose?.(); + } +} diff --git a/src/front/components/DesignSystem/Modal/Confirm/classes.module.scss b/src/front/components/DesignSystem/Modal/Confirm/classes.module.scss new file mode 100644 index 00000000..ce9eba25 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Confirm/classes.module.scss @@ -0,0 +1,17 @@ +@import "@Themes/constants.scss"; + +.buttons-container { + display: flex; + justify-content: space-between; + gap: 16px; + margin-top: 8px; + + button { + flex: 1; + } + + @media (max-width: $screen-s) { + flex-direction: column-reverse; + gap: 8px; + } +} diff --git a/src/front/components/DesignSystem/Modal/Confirm/index.tsx b/src/front/components/DesignSystem/Modal/Confirm/index.tsx new file mode 100644 index 00000000..3e266c80 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Confirm/index.tsx @@ -0,0 +1,66 @@ +import Button, { EButtonVariant } from "../../Button"; +import Modal, { IModalProps } from ".."; +import classes from "./classes.module.scss"; + +type IProps = IModalProps & { + onAccept?: () => void; + onCancel?: () => void; + cancelText: string | JSX.Element; + confirmText: string | JSX.Element; + showCancelButton: boolean; + isConfirmButtonDisabled: boolean; +}; + +type IState = { + isOpen: boolean; +}; +export default class Confirm extends Modal { + static defaultProps: Partial = { + showCancelButton: true, + cancelText: "Cancel", + confirmText: "Confirm", + isConfirmButtonDisabled: false, + }; + + constructor(props: IProps) { + super(props); + this.onCancel = this.onCancel.bind(this); + } + + public override render(): JSX.Element | null { + return ( + + {this.props.children} + + ); + } + + private footer(): JSX.Element { + return ( +
+ {this.props.showCancelButton && ( + + )} + + +
+ ); + } + + private onCancel() { + this.close(); + this.props.onCancel?.(); + } +} diff --git a/src/front/components/DesignSystem/Modal/Elements/Footer/classes.module.scss b/src/front/components/DesignSystem/Modal/Elements/Footer/classes.module.scss new file mode 100644 index 00000000..1009a115 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Footer/classes.module.scss @@ -0,0 +1,5 @@ +@import "@Themes/constants.scss"; + +.root { + margin-top: 24px; +} diff --git a/src/front/components/DesignSystem/Modal/Elements/Footer/index.tsx b/src/front/components/DesignSystem/Modal/Elements/Footer/index.tsx new file mode 100644 index 00000000..1b166f40 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Footer/index.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import classes from "./classes.module.scss"; + +type IProps = { + content: JSX.Element; +}; + +export default class Footer extends React.Component { + public override render(): JSX.Element { + return
{this.props.content}
; + } +} diff --git a/src/front/components/DesignSystem/Modal/Elements/Header/classes.module.scss b/src/front/components/DesignSystem/Modal/Elements/Header/classes.module.scss new file mode 100644 index 00000000..39e121ff --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Header/classes.module.scss @@ -0,0 +1,13 @@ +@import "@Themes/constants.scss"; + +.root { + margin-bottom: 24px; + display: flex; + align-items: center; + justify-content: flex-start; + + h5 { + color: var(--color-neutral-900); + } +} + diff --git a/src/front/components/DesignSystem/Modal/Elements/Header/index.tsx b/src/front/components/DesignSystem/Modal/Elements/Header/index.tsx new file mode 100644 index 00000000..addbaecf --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Header/index.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import classes from "./classes.module.scss"; +import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography"; + +type IProps = { + content: string | JSX.Element; +}; + +export default class Header extends React.Component { + public override render(): JSX.Element { + return ( +
+ + {this.props.content} + +
+ ); + } +} diff --git a/src/front/components/DesignSystem/Modal/Elements/Loader/classes.module.scss b/src/front/components/DesignSystem/Modal/Elements/Loader/classes.module.scss new file mode 100644 index 00000000..687007f0 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Loader/classes.module.scss @@ -0,0 +1,13 @@ +@import "@Themes/constants.scss"; + +.root { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + + margin: 0; + padding: 40px; + margin-top: 24px; +} diff --git a/src/front/components/DesignSystem/Modal/Elements/Loader/index.tsx b/src/front/components/DesignSystem/Modal/Elements/Loader/index.tsx new file mode 100644 index 00000000..0c29ec04 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/Elements/Loader/index.tsx @@ -0,0 +1,22 @@ +// import Loader from "Components/Elements/Loader"; +import React from "react"; +import classes from "./classes.module.scss"; +import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography"; + +type IProps = { + text?: string | JSX.Element; +}; + +export default class PopUpLoader extends React.Component { + public override render(): JSX.Element { + return ( +
+ {/* */} + TODO: INTEGRER LOARDER ISLOADING + + {this.props.text && this.props.text} + +
+ ); + } +} diff --git a/src/front/components/DesignSystem/Modal/classes.module.scss b/src/front/components/DesignSystem/Modal/classes.module.scss new file mode 100644 index 00000000..8bc21419 --- /dev/null +++ b/src/front/components/DesignSystem/Modal/classes.module.scss @@ -0,0 +1,98 @@ +@import "@Themes/constants.scss"; + +.root { + position: fixed; + z-index: 6; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + + .background { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: $modal-background; + } + + .container { + position: relative; + width: 594px; + max-height: 90%; + background: $white; + box-shadow: 0px 6px 12px rgba(255, 255, 255, 0.11); + overflow: auto; + padding: 32px; + + @media (max-width: $screen-s) { + width: 90%; + max-width: 493px; + } + + .cross { + display: flex; + flex-direction: row-reverse; + + .close-icon { + height: 24px; + width: 24px; + cursor: pointer; + } + } + } + + .transparant-background { + background-color: transparent; + box-shadow: none; + } + + &[data-side-background="true"] { + .container { + max-width: 711px; + + .sub-container { + padding: 0; + display: flex; + + p { + max-width: 711px; + } + + @media (max-width: $screen-s) { + display: block; + } + + .banner { + @media (max-width: $screen-s) { + overflow: hidden; + } + } + } + } + + .side-image { + height: 100%; + + @media (max-width: $screen-s) { + display: none; + } + } + + .top-image { + @media (min-width: $screen-s) { + display: none; + } + + @media (max-width: $screen-s) { + width: 100%; + max-height: 82px; + min-height: 82px; + } + } + } +} \ No newline at end of file diff --git a/src/front/components/DesignSystem/Modal/index.tsx b/src/front/components/DesignSystem/Modal/index.tsx new file mode 100644 index 00000000..bfdaec0d --- /dev/null +++ b/src/front/components/DesignSystem/Modal/index.tsx @@ -0,0 +1,81 @@ +import React from "react"; +import classes from "./classes.module.scss"; +import Footer from "./Elements/Footer"; +import Header from "./Elements/Header"; + +import Loader from "./Elements/Loader"; +import Typography, { ITypo } from "../Typography"; +import CrossIcon from "@Assets/icons/cross.svg" +import Image from "next/image"; + +export type IModalProps = { + closeBtn?: boolean; + header?: string | JSX.Element; + footer?: JSX.Element; + textLoader?: string | JSX.Element; + isOpen: boolean; + onClose?: () => void; + hasTransparentBackground?: boolean; + hasContainerClosable?: boolean; + withSideBackground?: boolean; + children?: React.ReactNode; +}; + +type IState = { + isOpen: boolean; +}; + +export default class Modal

extends React.Component { + constructor(props: P) { + super(props); + this.close = this.close.bind(this); + + (this.state as any) = { + isOpen: props.isOpen ?? true, + }; + } + + public override render(): JSX.Element | null { + if (!this.state.isOpen) return null; + + return ( +

+
+
+ {this.props.closeBtn && ( +
+ Unplugged +
+ )} +
+ {this.props.header &&
} + + + <> + {this.props.children ? this.props.children : } + + + {this.props.children && this.props.footer &&
} +
+
+
+ ); + } + + public override componentDidUpdate(prevProps: Readonly

): void { + if (prevProps.isOpen !== this.props.isOpen) { + this.setState({ + isOpen: this.props.isOpen, + }); + } + } + + protected close() { + this.setState({ + isOpen: false, + }); + this.props.onClose?.(); + } +} diff --git a/src/front/components/DesignSystem/Typography/classes.module.scss b/src/front/components/DesignSystem/Typography/classes.module.scss index 92927e8b..380f2115 100644 --- a/src/front/components/DesignSystem/Typography/classes.module.scss +++ b/src/front/components/DesignSystem/Typography/classes.module.scss @@ -1,31 +1,37 @@ @import "@Themes/constants.scss"; @import "@Themes/modes.scss"; + .root { color: $black; + font-family: 'Inter', sans-serif; &.H1-60 { font-style: normal; font-weight: 500; font-size: 50px; line-height: 61px; } + &.H1-bis-40 { font-style: normal; font-weight: 500; font-size: 40px; line-height: 48px; } + &.H2-30 { font-style: normal; font-weight: 500; font-size: 30px; line-height: 36px; } + &.H3-24 { font-style: normal; font-weight: 600; font-size: 24px; line-height: 29px; } + &.Paragraphe-semibold-18 { font-style: normal; font-weight: 600; @@ -33,12 +39,14 @@ line-height: 22px; letter-spacing: 0.5px; } + &.Paragraphe-simple-18 { font-style: normal; font-weight: 400; font-size: 18px; line-height: 22px; } + &.Paragraphe-MAJ-18 { font-style: normal; font-weight: 400; @@ -46,6 +54,7 @@ line-height: 22px; text-transform: uppercase; } + &.Nav-header-off-18 { font-style: normal; font-weight: 400; @@ -53,6 +62,7 @@ line-height: 22px; letter-spacing: 0.5px; } + &.Paragraphe-18-error { font-style: normal; font-weight: 400; @@ -60,6 +70,7 @@ line-height: 22px; letter-spacing: 0.5px; } + &.Paragraphe-semibold-16 { font-style: normal; font-weight: 600; @@ -67,6 +78,7 @@ line-height: 22px; letter-spacing: 0.5px; } + &.Nav-input-off-16 { font-style: normal; font-weight: 400; @@ -75,6 +87,15 @@ letter-spacing: 0.5px; color: $grey; } + + &.Paragraphe-simple-16 { + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 22px; + letter-spacing: 0.005em + } + &.Paragraphe-16-error { color: $re-hover; font-style: normal; @@ -83,6 +104,7 @@ line-height: 22px; letter-spacing: 0.5px; } + &.Caption_14 { font-style: normal; font-weight: 400; @@ -98,4 +120,4 @@ &.grey { color: $grey; } -} +} \ No newline at end of file diff --git a/src/front/components/Elements/Modal/classes.module.scss b/src/front/components/Elements/Modal/classes.module.scss deleted file mode 100644 index c063b777..00000000 --- a/src/front/components/Elements/Modal/classes.module.scss +++ /dev/null @@ -1,33 +0,0 @@ -@import "@Themes/constants.scss"; -@import "@Themes/animation.scss"; - - -.overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: black; - opacity: 0.5; - -} - -.root { - border-radius: 6px; - background: $backgroundColor2; - box-shadow: 0 1px 10px $shadowColor; - position: absolute; - left: 0; - right: 0; - top: 150px; - margin: auto; - width: 600px; - max-width: 90vw; - padding: 20px; - - .title { - text-align: center; - - } -} \ No newline at end of file diff --git a/src/front/components/Elements/Modal/index.tsx b/src/front/components/Elements/Modal/index.tsx deleted file mode 100644 index d78a85f4..00000000 --- a/src/front/components/Elements/Modal/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import classes from "./classes.module.scss" - -type IProps = { - title: string, - children: JSX.Element, -} - -export default function Modal(props: IProps) { - return (<> -

-
-

{props.title}

- {props.children} -
- - ) -} \ No newline at end of file diff --git a/src/front/components/Layouts/DesignSystem/index.tsx b/src/front/components/Layouts/DesignSystem/index.tsx index ec6a147a..179308bd 100644 --- a/src/front/components/Layouts/DesignSystem/index.tsx +++ b/src/front/components/Layouts/DesignSystem/index.tsx @@ -1,10 +1,26 @@ -import BasePage from "@Components/Layouts/Base"; -import DefaultTemplate from "@Components/LayoutTemplates/DefaultTemplate"; +import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography"; +import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; +import BasePage from "../Base"; import classes from "./classes.module.scss"; -import Typography, { ITypo } from "@Front/components/DesignSystem/Typography"; -import Button, { EButtonVariant } from "@Front/components/DesignSystem/Button"; +import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; + +type IState = { + isModalDisplayed: boolean +} +type IProps = { +} + +export default class DesignSystem extends BasePage { + constructor(props: IProps) { + super(props); + this.state = { + isModalDisplayed: false + } + this.openModal = this.openModal.bind(this); + this.closeModal = this.closeModal.bind(this); + } -export default class DesignSystem extends BasePage { public override render(): JSX.Element { return ( @@ -36,8 +52,38 @@ export default class DesignSystem extends BasePage {
+ + +
+
+ Modal components +
+ + + + Lorem ipsum dolor sit amet consectetur. Aliquam nunc lobortis lacus vulputate sagittis sed tempor eget feugiat. Elementum malesuada at sit elit. + + +
+
); } + private openModal() { + this.setState({ + isModalDisplayed: true + }) + } + private closeModal() { + this.setState({ + isModalDisplayed: false + }) + } } diff --git a/src/front/components/Layouts/Home/index.tsx b/src/front/components/Layouts/Home/index.tsx index 1671ba9d..be9baf46 100644 --- a/src/front/components/Layouts/Home/index.tsx +++ b/src/front/components/Layouts/Home/index.tsx @@ -1,7 +1,7 @@ -import BasePage from "@Components/Layouts/Base"; -import DefaultTemplate from "@Components/LayoutTemplates/DefaultTemplate"; +import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography"; +import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; +import BasePage from "../Base"; import classes from "./classes.module.scss"; -import Typography, { ITypo } from "@Front/components/DesignSystem/Typography"; export default class Home extends BasePage { public override render(): JSX.Element { diff --git a/src/front/components/Layouts/PageNotFound/index.tsx b/src/front/components/Layouts/PageNotFound/index.tsx index 6a5964d1..c9589d20 100644 --- a/src/front/components/Layouts/PageNotFound/index.tsx +++ b/src/front/components/Layouts/PageNotFound/index.tsx @@ -1,24 +1,35 @@ -import BasePage from "@Components/Layouts/Base"; -import DefaultTemplate from "@Components/LayoutTemplates/DefaultTemplate" -import UnpluggedIcon from "@Assets/icons/unplugged.svg" -import Image from "next/image"; +// import UnpluggedIcon from "@Assets/icons/unplugged.svg" +// import Image from "next/image"; import Link from "next/link"; import classes from "./classes.module.scss"; +import BasePage from "../Base"; +import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; export default class PageNotFound extends BasePage { public override render(): JSX.Element { return (
- Unplugged Oops + {/* Unplugged Oops */}
There isn't anything here...
{/*
+ + + + + +
); } } + + + diff --git a/src/front/components/Materials/Header/index.tsx b/src/front/components/Materials/Header/index.tsx index 59de779c..703721a2 100644 --- a/src/front/components/Materials/Header/index.tsx +++ b/src/front/components/Materials/Header/index.tsx @@ -4,7 +4,7 @@ import Image from "next/image"; import TezosLinkLogo from "@Assets/link_logo.svg"; import Logo from "@Assets/logo.svg"; import classes from "./classes.module.scss"; -import Burger from "@Components/Elements/Burger"; +import Burger from "@Front/Components/Elements/Burger"; type IProps = {}; type IState = { diff --git a/src/front/themes/constants.scss b/src/front/themes/constants.scss index c157e017..188bd45c 100644 --- a/src/front/themes/constants.scss +++ b/src/front/themes/constants.scss @@ -32,3 +32,5 @@ $pink-soft: #f8b9df; $grey: #939393; $grey-medium: #e7e7e7; $grey-soft: #f9f9f9; + +$modal-background: rgba(0, 0, 0, 0.44); diff --git a/src/front/themes/fonts.scss b/src/front/themes/fonts.scss index d811d91a..0e5e7576 100644 --- a/src/front/themes/fonts.scss +++ b/src/front/themes/fonts.scss @@ -1,6 +1 @@ -@font-face { - font-family: 'Proxima Nova'; - src: url('/fonts/ProximaNova-Thin.woff2') format('woff2'), url('/fonts/ProximaNova-Thin.woff') format('woff'); - font-weight: 100; - font-style: normal; -} \ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap'); \ No newline at end of file diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 68613c5c..7885fdc6 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,4 +1,5 @@ -import PageNotFound from "@Components/Layouts/PageNotFound" +import PageNotFound from "@Front/Components/Layouts/PageNotFound"; + export default function Route() { return diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 1a0ebff8..40cbf0d3 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,8 +1,8 @@ +import { DefaultLayout } from "@Front/Components/LayoutTemplates/DefaultLayout"; import "@Front/index.scss"; import type { NextPage } from "next"; import type { AppType, AppProps } from "next/app"; import type { ReactElement, ReactNode } from "react"; -import { DefaultLayout } from "@Components/LayoutTemplates/DefaultLayout"; export type NextPageWithLayout< TProps = Record, diff --git a/src/pages/design-system.tsx b/src/pages/design-system.tsx index cbca066b..7e70488b 100644 --- a/src/pages/design-system.tsx +++ b/src/pages/design-system.tsx @@ -1,4 +1,5 @@ -import DesignSystem from "@Front/components/Layouts/DesignSystem"; +import DesignSystem from "@Front/Components/Layouts/DesignSystem"; + export default function Route() { return ; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b2450ef6..d5639ff9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,4 +1,5 @@ -import Home from "@Components/Layouts/Home"; +import Home from "@Front/Components/Layouts/Home"; + export default function Route() { return ; diff --git a/tsconfig.json b/tsconfig.json index 344c5c07..b5d0d5b8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,7 @@ /* Strict Type-Checking Options */ "allowUnreachableCode": false, "allowUnusedLabels": false, - "exactOptionalPropertyTypes": true, + "exactOptionalPropertyTypes": false, "noImplicitOverride": true, "strict": true, "noImplicitAny": true, @@ -42,7 +42,7 @@ "@Front/*": ["src/front/*"], "@Assets/*": ["src/front/assets/*"], "@Components/*": ["src/front/components/*"], - "@Themes/*": ["src/front/themes/*"], + "@Themes/*": ["src/front/Themes/*"], "@Page/*": ["src/pages/*"], "@Services/*": ["src/common/services/*"], "@Entries/*": ["src/entries/*"],