diff --git a/jest.config.js b/jest.config.js index a4ea29b67..336c80f3d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -16,7 +16,9 @@ module.exports = { '^.+\\.(j|t)sx?$': 'ts-jest', '^.+\\.mjs$': 'babel-jest', }, - transformIgnorePatterns: ['node_modules/(?!(@docusaurus|swiper|ssr-window|dom7)|@theme)'], + transformIgnorePatterns: [ + 'node_modules/(?!(@docusaurus|swiper|ssr-window|dom7)|@theme|@deriv/quill-design)', + ], moduleNameMapper: { '@theme/(.*)': '@docusaurus/theme-classic/src/theme/$1', diff --git a/jest.setup.ts b/jest.setup.ts index acc34302a..6b50c2c9f 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -17,3 +17,18 @@ window.ResizeObserver = observe: jest.fn(), unobserve: jest.fn(), })); + +// HINT: we need this mock for the tests with useDevice hook +Object.defineProperty(window, 'matchMedia', { + writable: true, + value: jest.fn().mockImplementation((query) => ({ + matches: false, + media: query, + onchange: null, + addListener: jest.fn(), + removeListener: jest.fn(), + addEventListener: jest.fn(), + removeEventListener: jest.fn(), + dispatchEvent: jest.fn(), + })), +}); diff --git a/package-lock.json b/package-lock.json index fed36c2fa..400e4b69b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,8 @@ "version": "0.0.0", "dependencies": { "@deriv/deriv-api": "^1.0.11", + "@deriv/quill-design": "^1.2.18", + "@deriv/quill-icons": "^1.21.3", "@deriv/ui": "^0.1.0", "@docusaurus/core": "^2.4.0", "@docusaurus/plugin-client-redirects": "^2.4.0", @@ -17,9 +19,13 @@ "@easyops-cn/docusaurus-search-local": "^0.35.0", "@hookform/resolvers": "^2.9.10", "@mdx-js/react": "^1.6.22", + "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-dropdown-menu": "^2.0.2", "@radix-ui/react-tabs": "^1.0.2", + "@radix-ui/react-tooltip": "^1.0.7", + "@react-spring/web": "^9.7.3", "@testing-library/react-hooks": "^8.0.1", + "@use-gesture/react": "^10.3.0", "babel-plugin-jsx-remove-data-test-id": "^3.0.0", "clsx": "^1.2.1", "docusaurus-plugin-sass": "^0.2.2", @@ -2632,6 +2638,31 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, + "node_modules/@deriv/quill-design": { + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/@deriv/quill-design/-/quill-design-1.2.18.tgz", + "integrity": "sha512-BlhqMoW3dplvkLnEO2NdlrwEOdgQazI8PzzFnhlnEq58KgsKqiJZjvO8SycMeq0f0MKRZUi6MssPVqelFqjDcg==", + "peerDependencies": { + "@deriv/quill-icons": "^1.0.10", + "@headlessui/react": "^1.7.17", + "@types/react": "^17.x || ^18.x", + "@use-gesture/react": "^10.3.0", + "class-variance-authority": "^0.7.0", + "react": "^17.x || ^18.x", + "react-dom": "^17.x || ^18.x", + "tailwind-merge": "^1.14.0", + "usehooks-ts": "^2.9.1" + } + }, + "node_modules/@deriv/quill-icons": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/@deriv/quill-icons/-/quill-icons-1.21.3.tgz", + "integrity": "sha512-Wp7Qssly/tsTU2vCiWEAdqUUqIcBVz3p18BgwvZUJT2+MUEJtuJNJx9KbrnhJzBO8sC92Gzjo4zB0lJnNnN4vA==", + "peerDependencies": { + "react": ">= 16", + "react-dom": ">= 16" + } + }, "node_modules/@deriv/ui": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@deriv/ui/-/ui-0.1.0.tgz", @@ -3730,6 +3761,11 @@ "react-dom": ">=16.8.0" } }, + "node_modules/@floating-ui/utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", + "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" + }, "node_modules/@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", @@ -3750,6 +3786,23 @@ "@hapi/hoek": "^9.0.0" } }, + "node_modules/@headlessui/react": { + "version": "1.7.18", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.18.tgz", + "integrity": "sha512-4i5DOrzwN4qSgNsL4Si61VMkUcWbcSKueUV7sFhpHzQcSShdlHENE5+QBntMSRvHt8NyoFO2AGG8si9lq+w4zQ==", + "peer": true, + "dependencies": { + "@tanstack/react-virtual": "^3.0.0-beta.60", + "client-only": "^0.0.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, "node_modules/@hookform/resolvers": { "version": "2.9.10", "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-2.9.10.tgz", @@ -4883,228 +4936,662 @@ "@babel/runtime": "^7.13.10" } }, - "node_modules/@radix-ui/react-arrow": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.1.tgz", - "integrity": "sha512-1yientwXqXcErDHEv8av9ZVNEBldH8L9scVR3is20lL+jOCfcJyMFZFEY5cgIrgexsq1qggSXqiEL/d/4f+QXA==", + "node_modules/@radix-ui/react-accordion": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.1.2.tgz", + "integrity": "sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/react-primitive": "1.0.1" + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-collapsible": "1.0.3", + "@radix-ui/react-collection": "1.0.3", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-direction": "1.0.1", + "@radix-ui/react-id": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-controllable-state": "1.0.1" }, "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } } }, - "node_modules/@radix-ui/react-checkbox": { + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/primitive": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.0.1.tgz", - "integrity": "sha512-TisH0B8hWmYP3ONRduYCyN04rR9yLPIw/Rwyn1RoC1suSoGCa8Wn+YPdSSSarSszeIbcg3p2lBkDp2XXit4sZw==", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz", + "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-presence": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-controllable-state": "1.0.0", - "@radix-ui/react-use-previous": "1.0.0", - "@radix-ui/react-use-size": "1.0.0" - }, - "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@babel/runtime": "^7.13.10" } }, - "node_modules/@radix-ui/react-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.1.tgz", - "integrity": "sha512-uuiFbs+YCKjn3X1DTSx9G7BHApu4GHbi3kgiwsnFUbOKCrwejAJv4eE4Vc8C0Oaxt9T0aV4ox0WCOdx+39Xo+g==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collection": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz", + "integrity": "sha512-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-slot": "1.0.1" + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-slot": "1.0.2" }, "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } } }, - "node_modules/@radix-ui/react-compose-refs": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz", - "integrity": "sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-compose-refs": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", + "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==", "dependencies": { "@babel/runtime": "^7.13.10" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-context": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.0.tgz", - "integrity": "sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz", + "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==", "dependencies": { "@babel/runtime": "^7.13.10" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-dialog": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.2.tgz", - "integrity": "sha512-EKxxp2WNSmUPkx4trtWNmZ4/vAYEg7JkAfa1HKBUnaubw9eHzf1Orr9B472lJYaYz327RHDrd4R95fsw7VR8DA==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-direction": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.1.tgz", + "integrity": "sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-dismissable-layer": "1.0.2", - "@radix-ui/react-focus-guards": "1.0.0", - "@radix-ui/react-focus-scope": "1.0.1", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-portal": "1.0.1", - "@radix-ui/react-presence": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-slot": "1.0.1", - "@radix-ui/react-use-controllable-state": "1.0.0", - "aria-hidden": "^1.1.1", - "react-remove-scroll": "2.5.5" + "@babel/runtime": "^7.13.10" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-direction": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.0.tgz", - "integrity": "sha512-2HV05lGUgYcA6xgLQ4BKPDmtL+QbIZYH5fCOTAOOcJ5O0QbWS3i9lKaurLzliYUDhORI2Qr3pyjhJh44lKA3rQ==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz", + "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==", "dependencies": { - "@babel/runtime": "^7.13.10" + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.1" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-dismissable-layer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.2.tgz", - "integrity": "sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", + "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0", - "@radix-ui/react-use-escape-keydown": "1.0.2" + "@radix-ui/react-slot": "1.0.2" }, "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } } }, - "node_modules/@radix-ui/react-dropdown-menu": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.0.2.tgz", - "integrity": "sha512-r0kN0fstrSi+uAdK2GkLxnnbhqVBy/9Q4o4PvGOYipW0BldQlYBMSmZprvCNj2i2mAATx16kvzIn12GnaGjbMw==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz", + "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-menu": "2.0.2", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-controllable-state": "1.0.0" + "@radix-ui/react-compose-refs": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-focus-guards": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.0.tgz", - "integrity": "sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz", + "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==", "dependencies": { "@babel/runtime": "^7.13.10" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-focus-scope": { + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-controllable-state": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.1.tgz", - "integrity": "sha512-Ej2MQTit8IWJiS2uuujGUmxXjF/y5xZptIIQnyd2JHLwtV0R2j9NRVoRj/1j/gJ7e3REdaBw4Hjf4a1ImhkZcQ==", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz", + "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0" + "@radix-ui/react-use-callback-ref": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-id": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.0.tgz", - "integrity": "sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==", + "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz", + "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@radix-ui/react-use-layout-effect": "1.0.0" + "@babel/runtime": "^7.13.10" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-menu": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.0.2.tgz", - "integrity": "sha512-H5dtBi/k3tc45IMd2Pu+Q2PyONFlsYJ5sWUlflSs8BQRghh5GhJHLRuB1yb88VOywuzzvGkaR/HUJJ65Jf2POA==", + "node_modules/@radix-ui/react-arrow": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.1.tgz", + "integrity": "sha512-1yientwXqXcErDHEv8av9ZVNEBldH8L9scVR3is20lL+jOCfcJyMFZFEY5cgIrgexsq1qggSXqiEL/d/4f+QXA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.1" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-checkbox": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.0.1.tgz", + "integrity": "sha512-TisH0B8hWmYP3ONRduYCyN04rR9yLPIw/Rwyn1RoC1suSoGCa8Wn+YPdSSSarSszeIbcg3p2lBkDp2XXit4sZw==", "dependencies": { "@babel/runtime": "^7.13.10", "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-collection": "1.0.1", "@radix-ui/react-compose-refs": "1.0.0", "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-direction": "1.0.0", - "@radix-ui/react-dismissable-layer": "1.0.2", - "@radix-ui/react-focus-guards": "1.0.0", - "@radix-ui/react-focus-scope": "1.0.1", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-popper": "1.1.0", - "@radix-ui/react-portal": "1.0.1", "@radix-ui/react-presence": "1.0.0", "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-roving-focus": "1.0.2", - "@radix-ui/react-slot": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0", - "aria-hidden": "^1.1.1", - "react-remove-scroll": "2.5.5" + "@radix-ui/react-use-controllable-state": "1.0.0", + "@radix-ui/react-use-previous": "1.0.0", + "@radix-ui/react-use-size": "1.0.0" }, "peerDependencies": { "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" } }, - "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.0.tgz", - "integrity": "sha512-07U7jpI0dZcLRAxT7L9qs6HecSoPhDSJybF7mEGHJDBDv+ZoGCvIlva0s+WxMXwJEav+ckX3hAlXBtnHmuvlCQ==", + "node_modules/@radix-ui/react-collapsible": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.0.3.tgz", + "integrity": "sha512-UBmVDkmR6IvDsloHVN+3rtx4Mi5TFvylYXpluuv0f37dtaz3H99bp8No0LGXRigVpl3UAT4l9j6bIchh42S/Gg==", "dependencies": { "@babel/runtime": "^7.13.10", - "@floating-ui/react-dom": "0.7.2", - "@radix-ui/react-arrow": "1.0.1", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-id": "1.0.1", + "@radix-ui/react-presence": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-controllable-state": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz", + "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-compose-refs": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", + "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz", + "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz", + "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-presence": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz", + "integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", + "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-slot": "1.0.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz", + "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz", + "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz", + "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-callback-ref": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz", + "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.1.tgz", + "integrity": "sha512-uuiFbs+YCKjn3X1DTSx9G7BHApu4GHbi3kgiwsnFUbOKCrwejAJv4eE4Vc8C0Oaxt9T0aV4ox0WCOdx+39Xo+g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-slot": "1.0.1" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz", + "integrity": "sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-context": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.0.tgz", + "integrity": "sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-dialog": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.2.tgz", + "integrity": "sha512-EKxxp2WNSmUPkx4trtWNmZ4/vAYEg7JkAfa1HKBUnaubw9eHzf1Orr9B472lJYaYz327RHDrd4R95fsw7VR8DA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-dismissable-layer": "1.0.2", + "@radix-ui/react-focus-guards": "1.0.0", + "@radix-ui/react-focus-scope": "1.0.1", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-portal": "1.0.1", + "@radix-ui/react-presence": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-slot": "1.0.1", + "@radix-ui/react-use-controllable-state": "1.0.0", + "aria-hidden": "^1.1.1", + "react-remove-scroll": "2.5.5" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-direction": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.0.tgz", + "integrity": "sha512-2HV05lGUgYcA6xgLQ4BKPDmtL+QbIZYH5fCOTAOOcJ5O0QbWS3i9lKaurLzliYUDhORI2Qr3pyjhJh44lKA3rQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.2.tgz", + "integrity": "sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0", + "@radix-ui/react-use-escape-keydown": "1.0.2" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-dropdown-menu": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.0.2.tgz", + "integrity": "sha512-r0kN0fstrSi+uAdK2GkLxnnbhqVBy/9Q4o4PvGOYipW0BldQlYBMSmZprvCNj2i2mAATx16kvzIn12GnaGjbMw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-menu": "2.0.2", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-controllable-state": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-focus-guards": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.0.tgz", + "integrity": "sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-focus-scope": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.1.tgz", + "integrity": "sha512-Ej2MQTit8IWJiS2uuujGUmxXjF/y5xZptIIQnyd2JHLwtV0R2j9NRVoRj/1j/gJ7e3REdaBw4Hjf4a1ImhkZcQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.0.tgz", + "integrity": "sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-menu": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.0.2.tgz", + "integrity": "sha512-H5dtBi/k3tc45IMd2Pu+Q2PyONFlsYJ5sWUlflSs8BQRghh5GhJHLRuB1yb88VOywuzzvGkaR/HUJJ65Jf2POA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-collection": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-direction": "1.0.0", + "@radix-ui/react-dismissable-layer": "1.0.2", + "@radix-ui/react-focus-guards": "1.0.0", + "@radix-ui/react-focus-scope": "1.0.1", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-popper": "1.1.0", + "@radix-ui/react-portal": "1.0.1", + "@radix-ui/react-presence": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-roving-focus": "1.0.2", + "@radix-ui/react-slot": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0", + "aria-hidden": "^1.1.1", + "react-remove-scroll": "2.5.5" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.0.tgz", + "integrity": "sha512-07U7jpI0dZcLRAxT7L9qs6HecSoPhDSJybF7mEGHJDBDv+ZoGCvIlva0s+WxMXwJEav+ckX3hAlXBtnHmuvlCQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@floating-ui/react-dom": "0.7.2", + "@radix-ui/react-arrow": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", "@radix-ui/react-primitive": "1.0.1", "@radix-ui/react-use-callback-ref": "1.0.0", "@radix-ui/react-use-layout-effect": "1.0.0", @@ -5117,46 +5604,262 @@ "react-dom": "^16.8 || ^17.0 || ^18.0" } }, - "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-roving-focus": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.2.tgz", - "integrity": "sha512-HLK+CqD/8pN6GfJm3U+cqpqhSKYAWiOJDe+A+8MfxBnOue39QEeMa43csUn2CXCHQT0/mewh1LrrG4tfkM9DMA==", + "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-roving-focus": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.2.tgz", + "integrity": "sha512-HLK+CqD/8pN6GfJm3U+cqpqhSKYAWiOJDe+A+8MfxBnOue39QEeMa43csUn2CXCHQT0/mewh1LrrG4tfkM9DMA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-collection": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-direction": "1.0.0", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0", + "@radix-ui/react-use-controllable-state": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-popper": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.3.tgz", + "integrity": "sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@floating-ui/react-dom": "^2.0.0", + "@radix-ui/react-arrow": "1.0.3", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1", + "@radix-ui/react-use-rect": "1.0.1", + "@radix-ui/react-use-size": "1.0.1", + "@radix-ui/rect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@floating-ui/core": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", + "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", + "dependencies": { + "@floating-ui/utils": "^0.2.1" + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@floating-ui/dom": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.3.tgz", + "integrity": "sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==", + "dependencies": { + "@floating-ui/core": "^1.0.0", + "@floating-ui/utils": "^0.2.0" + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.8.tgz", + "integrity": "sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw==", + "dependencies": { + "@floating-ui/dom": "^1.6.1" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-arrow": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.0.3.tgz", + "integrity": "sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-compose-refs": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", + "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz", + "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", + "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-slot": "1.0.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz", + "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz", + "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz", + "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-rect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.0.1.tgz", + "integrity": "sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-collection": "1.0.1", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-direction": "1.0.0", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0", - "@radix-ui/react-use-controllable-state": "1.0.0" + "@radix-ui/rect": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-popper": { + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-use-size": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.0.1.tgz", - "integrity": "sha512-J4Vj7k3k+EHNWgcKrE+BLlQfpewxA7Zd76h5I0bIa+/EqaIZ3DuwrbPj49O3wqN+STnXsBuxiHLiF0iU3yfovw==", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.0.1.tgz", + "integrity": "sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==", "dependencies": { "@babel/runtime": "^7.13.10", - "@floating-ui/react-dom": "0.7.2", - "@radix-ui/react-arrow": "1.0.1", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-layout-effect": "1.0.0", - "@radix-ui/react-use-rect": "1.0.0", - "@radix-ui/react-use-size": "1.0.0", - "@radix-ui/rect": "1.0.0" + "@radix-ui/react-use-layout-effect": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/rect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.0.1.tgz", + "integrity": "sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==", + "dependencies": { + "@babel/runtime": "^7.13.10" } }, "node_modules/@radix-ui/react-portal": { @@ -5221,121 +5924,376 @@ "react-dom": "^16.8 || ^17.0 || ^18.0" } }, - "node_modules/@radix-ui/react-roving-focus": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.1.tgz", - "integrity": "sha512-TB76u5TIxKpqMpUAuYH2VqMhHYKa+4Vs1NHygo/llLvlffN6mLVsFhz0AnSFlSBAvTBYVHYAkHAyEt7x1gPJOA==", + "node_modules/@radix-ui/react-roving-focus": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.1.tgz", + "integrity": "sha512-TB76u5TIxKpqMpUAuYH2VqMhHYKa+4Vs1NHygo/llLvlffN6mLVsFhz0AnSFlSBAvTBYVHYAkHAyEt7x1gPJOA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-collection": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-direction": "1.0.0", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0", + "@radix-ui/react-use-controllable-state": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-slot": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.1.tgz", + "integrity": "sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-switch": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.0.1.tgz", + "integrity": "sha512-tTxGluMtwrc5ffgAiOSMrYIx0r3vSTcgM4Vl8rqfpXcHt6ryB9B0OlFKUOiDpKASXlhvzfHf4Y0AYKJdpzjL8w==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-controllable-state": "1.0.0", + "@radix-ui/react-use-previous": "1.0.0", + "@radix-ui/react-use-size": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-tabs": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.0.2.tgz", + "integrity": "sha512-gOUwh+HbjCuL0UCo8kZ+kdUEG8QtpdO4sMQduJ34ZEz0r4922g9REOBM+vIsfwtGxSug4Yb1msJMJYN2Bk8TpQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-direction": "1.0.0", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-presence": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-roving-focus": "1.0.2", + "@radix-ui/react-use-controllable-state": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-roving-focus": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.2.tgz", + "integrity": "sha512-HLK+CqD/8pN6GfJm3U+cqpqhSKYAWiOJDe+A+8MfxBnOue39QEeMa43csUn2CXCHQT0/mewh1LrrG4tfkM9DMA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.0", + "@radix-ui/react-collection": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.0", + "@radix-ui/react-context": "1.0.0", + "@radix-ui/react-direction": "1.0.0", + "@radix-ui/react-id": "1.0.0", + "@radix-ui/react-primitive": "1.0.1", + "@radix-ui/react-use-callback-ref": "1.0.0", + "@radix-ui/react-use-controllable-state": "1.0.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, + "node_modules/@radix-ui/react-tooltip": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.0.7.tgz", + "integrity": "sha512-lPh5iKNFVQ/jav/j6ZrWq3blfDJ0OH9R6FlNUHPMqdLuQ9vwDgFsRxvl8b7Asuy5c8xmoojHUxKHQSOAvMHxyw==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-context": "1.0.1", + "@radix-ui/react-dismissable-layer": "1.0.5", + "@radix-ui/react-id": "1.0.1", + "@radix-ui/react-popper": "1.1.3", + "@radix-ui/react-portal": "1.0.4", + "@radix-ui/react-presence": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-slot": "1.0.2", + "@radix-ui/react-use-controllable-state": "1.0.1", + "@radix-ui/react-visually-hidden": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz", + "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-compose-refs": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", + "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz", + "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz", + "integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/primitive": "1.0.1", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-primitive": "1.0.3", + "@radix-ui/react-use-callback-ref": "1.0.1", + "@radix-ui/react-use-escape-keydown": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz", + "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz", + "integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz", + "integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1", + "@radix-ui/react-use-layout-effect": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", + "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-collection": "1.0.1", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-direction": "1.0.0", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0", - "@radix-ui/react-use-controllable-state": "1.0.0" + "@radix-ui/react-slot": "1.0.2" }, "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } } }, - "node_modules/@radix-ui/react-slot": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.1.tgz", - "integrity": "sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==", + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz", + "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/react-compose-refs": "1.0.0" + "@radix-ui/react-compose-refs": "1.0.1" }, "peerDependencies": { + "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-switch": { + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.0.1.tgz", - "integrity": "sha512-tTxGluMtwrc5ffgAiOSMrYIx0r3vSTcgM4Vl8rqfpXcHt6ryB9B0OlFKUOiDpKASXlhvzfHf4Y0AYKJdpzjL8w==", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz", + "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-controllable-state": "1.0.0", - "@radix-ui/react-use-previous": "1.0.0", - "@radix-ui/react-use-size": "1.0.0" + "@babel/runtime": "^7.13.10" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-tabs": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.0.2.tgz", - "integrity": "sha512-gOUwh+HbjCuL0UCo8kZ+kdUEG8QtpdO4sMQduJ34ZEz0r4922g9REOBM+vIsfwtGxSug4Yb1msJMJYN2Bk8TpQ==", + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz", + "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-direction": "1.0.0", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-presence": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-roving-focus": "1.0.2", - "@radix-ui/react-use-controllable-state": "1.0.0" + "@radix-ui/react-use-callback-ref": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-roving-focus": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.2.tgz", - "integrity": "sha512-HLK+CqD/8pN6GfJm3U+cqpqhSKYAWiOJDe+A+8MfxBnOue39QEeMa43csUn2CXCHQT0/mewh1LrrG4tfkM9DMA==", + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-escape-keydown": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz", + "integrity": "sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-collection": "1.0.1", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-direction": "1.0.0", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-use-callback-ref": "1.0.0", - "@radix-ui/react-use-controllable-state": "1.0.0" + "@radix-ui/react-use-callback-ref": "1.0.1" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/@radix-ui/react-tooltip": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.0.2.tgz", - "integrity": "sha512-11gUlok2rv5mu+KBtxniOKKNKjqC/uTbgFHWoQdbF46vMV+zjDaBvCtVDK9+MTddlpmlisGPGvvojX7Qm0yr+g==", + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz", + "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@radix-ui/primitive": "1.0.0", - "@radix-ui/react-compose-refs": "1.0.0", - "@radix-ui/react-context": "1.0.0", - "@radix-ui/react-dismissable-layer": "1.0.2", - "@radix-ui/react-id": "1.0.0", - "@radix-ui/react-popper": "1.0.1", - "@radix-ui/react-portal": "1.0.1", - "@radix-ui/react-presence": "1.0.0", - "@radix-ui/react-primitive": "1.0.1", - "@radix-ui/react-slot": "1.0.1", - "@radix-ui/react-use-controllable-state": "1.0.0", - "@radix-ui/react-visually-hidden": "1.0.1" + "@babel/runtime": "^7.13.10" }, "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/@radix-ui/react-use-callback-ref": { @@ -5420,16 +6378,84 @@ } }, "node_modules/@radix-ui/react-visually-hidden": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.3.tgz", + "integrity": "sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-compose-refs": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.1.tgz", - "integrity": "sha512-K1hJcCMfWfiYUibRqf3V8r5Drpyf7rh44jnrwAbdvI5iCCijilBBeyQv9SKidYNZIopMdCyR9FnIjkHxHN0FcQ==", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz", + "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==", + "dependencies": { + "@babel/runtime": "^7.13.10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz", + "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==", "dependencies": { "@babel/runtime": "^7.13.10", - "@radix-ui/react-primitive": "1.0.1" + "@radix-ui/react-slot": "1.0.2" }, "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0", "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz", + "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-compose-refs": "1.0.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/@radix-ui/rect": { @@ -5455,6 +6481,66 @@ "resolved": "https://registry.npmjs.org/@react-dnd/shallowequal/-/shallowequal-2.0.0.tgz", "integrity": "sha512-Pc/AFTdwZwEKJxFJvlxrSmGe/di+aAOBn60sremrpLo6VI/6cmiUYNNwlI5KNYttg7uypzA3ILPMPgxB2GYZEg==" }, + "node_modules/@react-spring/animated": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.7.3.tgz", + "integrity": "sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==", + "dependencies": { + "@react-spring/shared": "~9.7.3", + "@react-spring/types": "~9.7.3" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/core": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.7.3.tgz", + "integrity": "sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==", + "dependencies": { + "@react-spring/animated": "~9.7.3", + "@react-spring/shared": "~9.7.3", + "@react-spring/types": "~9.7.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/react-spring/donate" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/shared": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.7.3.tgz", + "integrity": "sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==", + "dependencies": { + "@react-spring/types": "~9.7.3" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@react-spring/types": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.7.3.tgz", + "integrity": "sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==" + }, + "node_modules/@react-spring/web": { + "version": "9.7.3", + "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.3.tgz", + "integrity": "sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==", + "dependencies": { + "@react-spring/animated": "~9.7.3", + "@react-spring/core": "~9.7.3", + "@react-spring/shared": "~9.7.3", + "@react-spring/types": "~9.7.3" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/@sideway/address": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", @@ -5778,6 +6864,33 @@ "node": ">=6" } }, + "node_modules/@tanstack/react-virtual": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.1.3.tgz", + "integrity": "sha512-YCzcbF/Ws/uZ0q3Z6fagH+JVhx4JLvbSflgldMgLsuvB8aXjZLLb3HvrEVxY480F9wFlBiXlvQxOyXb5ENPrNA==", + "peer": true, + "dependencies": { + "@tanstack/virtual-core": "3.1.3" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@tanstack/virtual-core": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.1.3.tgz", + "integrity": "sha512-Y5B4EYyv1j9V8LzeAoOVeTg0LI7Fo5InYKgAjkY1Pu9GjtUwX/EKxNcU7ng3sKr99WEf+bPTcktAeybyMOYo+g==", + "peer": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, "node_modules/@testing-library/dom": { "version": "8.19.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.19.0.tgz", @@ -6280,7 +7393,7 @@ "version": "17.0.18", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.18.tgz", "integrity": "sha512-rLVtIfbwyur2iFKykP2w0pl/1unw26b5td16d5xMgp7/yjTHomkyxPYChFoCr/FtEX1lN9wY6lFj1qvKdS5kDw==", - "dev": true, + "devOptional": true, "dependencies": { "@types/react": "^17" } @@ -6640,6 +7753,22 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@use-gesture/core": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.0.tgz", + "integrity": "sha512-rh+6MND31zfHcy9VU3dOZCqGY511lvGcfyJenN4cWZe0u1BH6brBpBddLVXhF2r4BMqWbvxfsbL7D287thJU2A==" + }, + "node_modules/@use-gesture/react": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.0.tgz", + "integrity": "sha512-3zc+Ve99z4usVP6l9knYVbVnZgfqhKah7sIG+PS2w+vpig2v2OLct05vs+ZXMzwxdNCMka8B+8WlOo0z6Pn6DA==", + "dependencies": { + "@use-gesture/core": "10.3.0" + }, + "peerDependencies": { + "react": ">= 16.8.0" + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", @@ -8592,6 +9721,27 @@ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==" }, + "node_modules/class-variance-authority": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.0.tgz", + "integrity": "sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==", + "peer": true, + "dependencies": { + "clsx": "2.0.0" + }, + "funding": { + "url": "https://joebell.co.uk" + } + }, + "node_modules/class-variance-authority/node_modules/clsx": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz", + "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==", + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/classnames": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", @@ -8687,6 +9837,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", + "peer": true + }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -23197,6 +24353,16 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, + "node_modules/tailwind-merge": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.14.0.tgz", + "integrity": "sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==", + "peer": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/package.json b/package.json index 546d18e96..d52e6dada 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,8 @@ }, "dependencies": { "@deriv/deriv-api": "^1.0.11", + "@deriv/quill-design": "^1.2.18", + "@deriv/quill-icons": "^1.21.3", "@deriv/ui": "^0.1.0", "@docusaurus/core": "^2.4.0", "@docusaurus/plugin-client-redirects": "^2.4.0", @@ -30,9 +32,13 @@ "@easyops-cn/docusaurus-search-local": "^0.35.0", "@hookform/resolvers": "^2.9.10", "@mdx-js/react": "^1.6.22", + "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-dropdown-menu": "^2.0.2", "@radix-ui/react-tabs": "^1.0.2", + "@radix-ui/react-tooltip": "^1.0.7", + "@react-spring/web": "^9.7.3", "@testing-library/react-hooks": "^8.0.1", + "@use-gesture/react": "^10.3.0", "babel-plugin-jsx-remove-data-test-id": "^3.0.0", "clsx": "^1.2.1", "docusaurus-plugin-sass": "^0.2.2", diff --git a/src/components/CustomAccordion/__tests__/custom-accordion.test.tsx b/src/components/CustomAccordion/__tests__/custom-accordion.test.tsx new file mode 100644 index 000000000..17d52dbd5 --- /dev/null +++ b/src/components/CustomAccordion/__tests__/custom-accordion.test.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { cleanup, render, screen } from '@testing-library/react'; +import CustomAccordion from '..'; +import userEvent from '@testing-library/user-event'; + +const mock_accordion_items = [ + { header: 'header_1', content: 'content 1' }, + { header: 'header_2', content: 'content 2' }, +]; + +describe('CustomAccordion', () => { + beforeEach(() => { + render(); + }); + + afterEach(() => { + cleanup(); + }); + + it('should render the custom accordion', () => { + const header = screen.getByText('header_1'); + expect(header).toBeInTheDocument(); + }); + + it('should open accordion content on click', async () => { + const header = screen.getByText('header_2'); + await userEvent.click(header); + const content = screen.getByText('content 2'); + expect(content).toBeInTheDocument(); + }); +}); diff --git a/src/components/CustomAccordion/custom-accordion.scss b/src/components/CustomAccordion/custom-accordion.scss new file mode 100644 index 000000000..17df1cba6 --- /dev/null +++ b/src/components/CustomAccordion/custom-accordion.scss @@ -0,0 +1,79 @@ +.accordion_root { + margin: 16px; + margin-top: 48px; + display: flex; + flex-direction: column; + + &__item { + overflow: hidden; + margin-top: 2px; + border-radius: 24px; + } +} + +.accordion_header { + display: flex; + background-color: transparent; + + [data-state='open'] { + background-color: var(--opacity-black-75); + } + + &__trigger { + font-family: inherit; + padding: 24px; + height: 42px; + flex: 1; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 16px; + line-height: 1; + } + + .accordion_chevron { + transition: transform 300ms cubic-bezier(0.87, 0, 0.13, 1); + } + + [data-state='open'] > .accordion_chevron { + transform: rotate(180deg); + } +} + +.accordion_content { + overflow: hidden; + background-color: var(--opacity-black-75); + + &__text { + padding: 16px 18px; + font-size: 14px; + font-weight: 400; + } + + &[data-state='open'] { + animation: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1); + } + + &[data-state='closed'] { + animation: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1); + background-color: transparent; + } +} + +@keyframes slideDown { + from { + height: 0; + } + to { + height: var(--radix-accordion-content-height); + } +} + +@keyframes slideUp { + from { + height: var(--radix-accordion-content-height); + } + to { + height: 0; + } +} diff --git a/src/components/CustomAccordion/index.tsx b/src/components/CustomAccordion/index.tsx new file mode 100644 index 000000000..6a5b2b548 --- /dev/null +++ b/src/components/CustomAccordion/index.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { StandaloneChevronDownRegularIcon } from '@deriv/quill-icons'; +import * as Accordion from '@radix-ui/react-accordion'; +import './custom-accordion.scss'; + +type TCustomAccordionProps = { + items: Array<{ header: string; content: React.ReactNode }>; +}; + +const AccordionTrigger: React.FC = ({ children }) => ( + + + {children} + + + +); + +const AccordionContent: React.FC = ({ children }) => ( + +
{children}
+
+); + +const CustomAccordion: React.FC = ({ items }) => ( + + {items.map((item) => ( + + {item.header} + {item.content} + + ))} + +); + +export default CustomAccordion; diff --git a/src/components/CustomRadioButton/__tests__/CustomRadioButton.test.tsx b/src/components/CustomRadioButton/__tests__/CustomRadioButton.test.tsx new file mode 100644 index 000000000..60dc49630 --- /dev/null +++ b/src/components/CustomRadioButton/__tests__/CustomRadioButton.test.tsx @@ -0,0 +1,55 @@ +import React from 'react'; +import { cleanup, render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; +import CustomRadioButton from '..'; + +const onChange = jest.fn(); + +describe('CustomRadioButton', () => { + const renderRadioButton = ({ checked }) => { + render( + + + , + ); + }; + + afterEach(() => { + cleanup(); + }); + + it('should render the radio button', () => { + renderRadioButton({ checked: true }); + const label = screen.getByText('this is a test label'); + expect(label).toBeInTheDocument(); + }); + + it('should render the radio button with checked icon', () => { + renderRadioButton({ checked: true }); + const imgElement = screen.getByRole('img'); + expect(imgElement).toBeInTheDocument(); + expect(imgElement).toHaveAttribute('src', '/img/circle_dot_caption_fill.svg'); + }); + + it('should render the radio button with unchecked icon', () => { + renderRadioButton({ checked: false }); + const imgElement = screen.getByRole('img'); + expect(imgElement).toBeInTheDocument(); + expect(imgElement).toHaveAttribute('src', '/img/circle_dot_caption_bold.svg'); + }); + + it('should fire the onChange event when clicking the button', async () => { + renderRadioButton({ checked: false }); + const radio_button = screen.getByRole('radio', { + name: 'this is a test label', + }); + await userEvent.click(radio_button); + expect(onChange).toBeCalled(); + }); +}); diff --git a/src/components/CustomRadioButton/custom_radio_button.scss b/src/components/CustomRadioButton/custom_radio_button.scss new file mode 100644 index 000000000..74a92a25d --- /dev/null +++ b/src/components/CustomRadioButton/custom_radio_button.scss @@ -0,0 +1,30 @@ +.custom_radio { + position: relative; + + input { + opacity: 0; + position: absolute; + top: 8px; + } + + label { + display: flex; + align-items: baseline; + cursor: pointer; + } + + &__icon { + position: relative; + margin-inline-end: 8px; + top: 6px; + + img { + width: 24px; + height: 24px; + + @media (max-width: 767px) { + width: 48px; + } + } + } +} diff --git a/src/components/CustomRadioButton/index.tsx b/src/components/CustomRadioButton/index.tsx new file mode 100644 index 000000000..ee2aa7d9a --- /dev/null +++ b/src/components/CustomRadioButton/index.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import './custom_radio_button.scss'; + +type CustomRadioButtonProps = { + id: string; + name: string; + value: string; + checked: boolean; + onChange: () => void; +}; + +const CustomRadioButton: React.FC = ({ + id, + name, + value, + checked, + onChange, + children, + ...rest +}) => { + return ( +
+ + +
+ ); +}; + +export default CustomRadioButton; diff --git a/src/components/CustomTabs/__tests__/custom-tabs.test.tsx b/src/components/CustomTabs/__tests__/custom-tabs.test.tsx new file mode 100644 index 000000000..50015f01e --- /dev/null +++ b/src/components/CustomTabs/__tests__/custom-tabs.test.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { cleanup, render, screen } from '@testing-library/react'; +import CustomTabs from '..'; +import userEvent from '@testing-library/user-event'; + +const mock_tabs = [ + { label: 'tab_1', content: 'content 1' }, + { label: 'tab_2', content: 'content 2' }, +]; + +describe('CustomTabs', () => { + beforeEach(() => { + render(); + }); + + afterEach(() => { + cleanup(); + }); + + it('should render the custom tabs', () => { + const tab = screen.getByText('tab_1'); + expect(tab).toBeInTheDocument(); + }); + + it('should change tab content on different tab click', async () => { + const tab = screen.getByText('tab_2'); + await userEvent.click(tab); + const content = screen.getByText('content 2'); + expect(content).toBeInTheDocument(); + }); +}); diff --git a/src/components/CustomTabs/custom-tabs.scss b/src/components/CustomTabs/custom-tabs.scss new file mode 100644 index 000000000..ecd7345f6 --- /dev/null +++ b/src/components/CustomTabs/custom-tabs.scss @@ -0,0 +1,30 @@ +.tabs { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + &_header { + margin-block: 64px; + background-color: var(--opacity-black-75); + padding: 12px; + border-radius: 24px; + text-align: center; + + &__items { + display: flex; + justify-content: space-between; + align-items: center; + } + &__item { + padding: 8px; + min-width: 160px; + cursor: pointer; + + &.active { + background-color: var(--solid-slate-50); + border-radius: 12px; + } + } + } +} diff --git a/src/components/CustomTabs/index.tsx b/src/components/CustomTabs/index.tsx new file mode 100644 index 000000000..7f395ebad --- /dev/null +++ b/src/components/CustomTabs/index.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react'; +import './custom-tabs.scss'; + +const CustomTabs: React.FC<{ + tabs: Array<{ + label: string; + content: React.ReactNode; + }>; +}> = ({ tabs }) => { + const [activeTab, setActiveTab] = useState(0); + + return ( +
+
+
+ {tabs.map((tab, index) => ( +
setActiveTab(index)} + > + {tab.label} +
+ ))} +
+
+
{tabs[activeTab].content}
+
+ ); +}; + +export default CustomTabs; diff --git a/src/components/CustomTooltip/__tests__/custom-tooltip.test.tsx b/src/components/CustomTooltip/__tests__/custom-tooltip.test.tsx new file mode 100644 index 000000000..7ed240ef7 --- /dev/null +++ b/src/components/CustomTooltip/__tests__/custom-tooltip.test.tsx @@ -0,0 +1,30 @@ +import React from 'react'; +import { cleanup, render, screen } from '@testing-library/react'; +import CustomTooltip from '..'; +import userEvent from '@testing-library/user-event'; + +describe('CustomTooltip', () => { + beforeEach(() => { + render( + +
outer text
+
, + ); + }); + + afterEach(() => { + cleanup(); + }); + + it('should render the custom tooltip with children', () => { + const text = screen.getByText('outer text'); + expect(text).toBeInTheDocument(); + }); + + it('should render the tooltip text on hover', async () => { + const text = screen.getByText('outer text'); + await userEvent.hover(text); + const tooltip_text = screen.getAllByText('tooltip text'); + expect(tooltip_text[0]).toBeInTheDocument(); + }); +}); diff --git a/src/components/CustomTooltip/custom-tooltip.scss b/src/components/CustomTooltip/custom-tooltip.scss new file mode 100644 index 000000000..6c853854f --- /dev/null +++ b/src/components/CustomTooltip/custom-tooltip.scss @@ -0,0 +1,19 @@ +.tooltip_content { + border-radius: 4px; + padding: 8px 0px; + font-size: 12px; + line-height: 14px; + color: var(--ifm-color-emphasis-100); + background-color: var(--ifm-color-emphasis-700); + box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px; + user-select: none; + animation-duration: 400ms; + animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); + will-change: transform, opacity; + max-width: 96px; + text-align: center; +} + +.tooltip_arrow { + fill: var(--ifm-color-emphasis-700); +} diff --git a/src/components/CustomTooltip/index.tsx b/src/components/CustomTooltip/index.tsx new file mode 100644 index 000000000..cc4b88b8b --- /dev/null +++ b/src/components/CustomTooltip/index.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import * as Tooltip from '@radix-ui/react-tooltip'; +import './custom-tooltip.scss'; + +const CustomTooltip: React.FC<{ text: React.ReactNode }> = ({ children, text }) => { + return ( + + + {children} + + + {text} + + + + + + ); +}; + +export default CustomTooltip; diff --git a/src/components/Spinner/Spinner.module.scss b/src/components/Spinner/Spinner.module.scss index 72da932da..c771f563a 100644 --- a/src/components/Spinner/Spinner.module.scss +++ b/src/components/Spinner/Spinner.module.scss @@ -2,6 +2,7 @@ .spinnerContainer { position: relative; width: 100%; + height: 100%; display: flex; align-items: center; justify-content: center; @@ -14,7 +15,7 @@ overflow: hidden; animation: rotating 0.5s linear infinite; &:before { - content: ""; + content: ''; left: 50%; top: 50%; width: 70%; diff --git a/src/components/SwipeableBottomSheet/__tests__/SwipeableBottomSheet.test.tsx b/src/components/SwipeableBottomSheet/__tests__/SwipeableBottomSheet.test.tsx new file mode 100644 index 000000000..fc99732af --- /dev/null +++ b/src/components/SwipeableBottomSheet/__tests__/SwipeableBottomSheet.test.tsx @@ -0,0 +1,118 @@ +import React from 'react'; +import { cleanup, createEvent, fireEvent, render, screen } from '@testing-library/react'; +import SwipeableBottomSheet from '..'; + +jest.useFakeTimers(); + +function patchCreateEvent(createEvent: any) { + // patching createEvent for pointer events to work from jsdom + for (const key in createEvent) { + if (key.indexOf('pointer') === 0) { + const fn = createEvent[key.replace('pointer', 'mouse')]; + if (!fn) continue; + createEvent[key] = function (type, { pointerId = 1, pointerType = 'mouse', ...rest } = {}) { + const event = fn(type, rest); + event.pointerId = pointerId; + event.pointerType = pointerType; + const eventType = event.type; + Object.defineProperty(event, 'type', { + get: function () { + return eventType.replace('mouse', 'pointer'); + }, + }); + return event; + }; + } + } +} +patchCreateEvent(createEvent); + +const onCancel = jest.fn(); +const onConfigure = jest.fn(); + +describe('SwipeableBottomSheet', () => { + const renderComponent = ({ + app_register_modal_open, + is_desktop = undefined, + disable_drag = undefined, + on_close = undefined, + }) => ( + +
Test content
+
+ ); + + afterEach(() => { + cleanup(); + }); + + it('should render the swipeable bottom sheet', () => { + render(renderComponent({ app_register_modal_open: true })); + const label = screen.getByText('Test content'); + expect(label).toBeInTheDocument(); + }); + + it('should render the modal in desktop', () => { + render(renderComponent({ app_register_modal_open: true, is_desktop: true })); + const handlerElement = screen.queryByTestId('dt_action_sheet_handler'); + expect(handlerElement).not.toBeInTheDocument(); + }); + + it('should render the bottom sheet in mobile', () => { + render(renderComponent({ app_register_modal_open: true, is_desktop: false })); + const handlerElement = screen.getByTestId('dt_action_sheet_handler'); + expect(handlerElement).toBeInTheDocument(); + }); + + it('should close the bottom sheet on mobile if handler is dragged to the bottom', () => { + const component = renderComponent({ app_register_modal_open: true, on_close: onCancel }); + const { rerender } = render(component); + rerender(component); + const handlerElement = screen.getByTestId('dt_action_sheet_handler'); + fireEvent.pointerDown(handlerElement, { + pointerId: 1, + clientX: 0, + clientY: 100, + buttons: 1, + }); + fireEvent.pointerMove(handlerElement, { + pointerId: 1, + clientX: 30, + clientY: 10, + buttons: 1, + }); + fireEvent.pointerUp(handlerElement, { + pointerId: 1, + clientX: 30, + clientY: 10, + buttons: 1, + }); + jest.advanceTimersByTime(600); + expect(onCancel).toBeCalled(); + }); + + it('should not drag the bottom sheet on mobile if drag is disabled', () => { + const component = renderComponent({ + app_register_modal_open: true, + on_close: onCancel, + disable_drag: true, + }); + const { rerender } = render(component); + rerender(component); + const handlerElement = screen.queryByTestId('dt_action_sheet_handler'); + expect(handlerElement).not.toBeInTheDocument(); + }); +}); diff --git a/src/components/SwipeableBottomSheet/index.tsx b/src/components/SwipeableBottomSheet/index.tsx new file mode 100644 index 000000000..b8bd943b0 --- /dev/null +++ b/src/components/SwipeableBottomSheet/index.tsx @@ -0,0 +1,118 @@ +import React, { useEffect, useRef } from 'react'; +import { useDrag } from '@use-gesture/react'; +import { a, useSpring, config } from '@react-spring/web'; +import { Button } from '@deriv/quill-design'; +import './swipeable-bottom-sheet.scss'; + +type SwipeableBottomSheetProps = { + action_sheet_open: boolean; + is_desktop?: boolean; + primary_action?: { + label: string; + onClick: (event: React.MouseEvent) => void; + }; + secondary_action?: { + label: string; + onClick: (event: React.MouseEvent) => void; + }; + disable_drag?: boolean; + on_close?: () => void; +}; + +const SwipeableBottomSheet: React.FC = ({ + action_sheet_open, + children, + disable_drag = false, + is_desktop = false, + primary_action, + secondary_action, + on_close, +}) => { + const height = window.innerHeight - 124; + const [{ y }, api] = useSpring(() => ({ y: height })); + const target = useRef(null); + + const open = ({ canceled }) => { + api.start({ y: 0, immediate: false, config: canceled ? config.wobbly : config.stiff }); + }; + + const close = (velocity = 0) => { + api.start({ y: height, immediate: false, config: { ...config.stiff, velocity } }); + setTimeout(() => { + on_close?.(); + }, 300); + }; + + useEffect(() => { + if (action_sheet_open) open({ canceled: false }); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [action_sheet_open]); + + useDrag( + ({ last, velocity: [, vy], direction: [, dy], offset: [, oy], cancel, canceled }) => { + if (oy < -70) cancel(); + if (last) oy > height * 0.5 || (vy > 0.5 && dy > 0) ? close(vy) : open({ canceled }); + else api.start({ y: oy, immediate: true }); + }, + { + from: () => [0, y.get()], + filterTaps: true, + bounds: { top: 0 }, + rubberband: true, + target, + }, + ); + + const display = y.to((py) => (py < height ? 'block' : 'none')); + + return ( + + {action_sheet_open && ( +
+ + {!is_desktop && !disable_drag && ( +
+
+
+ )} + +
+
{children}
+
+ {primary_action && ( + + )} + {secondary_action && ( + + )} +
+
+ +
+ )} + + ); +}; + +export default SwipeableBottomSheet; diff --git a/src/components/SwipeableBottomSheet/swipeable-bottom-sheet.scss b/src/components/SwipeableBottomSheet/swipeable-bottom-sheet.scss new file mode 100644 index 000000000..4fd79b0a7 --- /dev/null +++ b/src/components/SwipeableBottomSheet/swipeable-bottom-sheet.scss @@ -0,0 +1,76 @@ +.action_sheet { + overflow: hidden; + height: calc(100vh + 32px); + width: 100vw; + background: #000000b8; + position: absolute; + top: 0; + z-index: 9999; + + &.desktop { + display: flex; + align-items: center; + justify-content: center; + } + + &__main { + position: fixed; + border-radius: 12px; + background: #fff; + touch-action: none; + &.mobile { + width: 96vw; + left: 2vw; + border-radius: 12px 12px 0 0; + } + &.desktop { + position: absolute; + } + } + + &__handler { + width: 100%; + height: 20px; + display: flex; + justify-content: center; + align-items: center; + padding-block: 16px; + &_icon { + position: absolute; + width: 48px; + height: 8px; + background: rgba(0, 0, 0, 0.2392156863); + border-radius: 4px; + } + border-bottom: 1px solid #eee; + } + + &__body { + width: 100%; + display: flex; + align-content: space-between; + flex-wrap: wrap; + + &__content { + max-height: 70vh; + width: 100%; + overflow: auto; + padding: 16px; + } + &__footer { + border-top: 1px solid #eee; + width: 100%; + padding: 24px; + display: flex; + text-align: center; + flex-wrap: wrap; + button { + width: 100%; + border: 1px solid; + &:first-child { + margin-bottom: 8px; + } + } + } + } +} diff --git a/src/contexts/app-manager/app-manager.context.tsx b/src/contexts/app-manager/app-manager.context.tsx index 2879fdeee..dae73845d 100644 --- a/src/contexts/app-manager/app-manager.context.tsx +++ b/src/contexts/app-manager/app-manager.context.tsx @@ -10,6 +10,8 @@ export type TAppManagerContext = { updateCurrentTab: (tab: TDashboardTab) => void; is_dashboard: boolean; setIsDashboard: Dispatch>; + app_register_modal_open: boolean; + setAppRegisterModalOpen: Dispatch>; }; export const AppManagerContext = createContext(null); diff --git a/src/contexts/app-manager/app-manager.provider.tsx b/src/contexts/app-manager/app-manager.provider.tsx index f4766e2a8..4e293c4c5 100644 --- a/src/contexts/app-manager/app-manager.provider.tsx +++ b/src/contexts/app-manager/app-manager.provider.tsx @@ -10,8 +10,9 @@ type TAppManagerContextProps = { const AppManagerContextProvider = ({ children }: TAppManagerContextProps) => { const [apps, setApps] = useState([]); - const [currentTab, setCurrentTab] = useState('MANAGE_TOKENS'); + const [currentTab, setCurrentTab] = useState('MANAGE_APPS'); const [is_dashboard, setIsDashboard] = useState(false); + const [app_register_modal_open, setAppRegisterModalOpen] = useState(false); const { getAllApps, apps: updatedApps } = useGetApps(); const { is_authorized } = useAuthContext(); @@ -37,8 +38,19 @@ const AppManagerContextProvider = ({ children }: TAppManagerContextProps) => { updateCurrentTab, setIsDashboard, is_dashboard, + setAppRegisterModalOpen, + app_register_modal_open, }; - }, [apps, currentTab, getApps, updateCurrentTab, setIsDashboard, is_dashboard]); + }, [ + apps, + currentTab, + getApps, + updateCurrentTab, + setIsDashboard, + is_dashboard, + app_register_modal_open, + setAppRegisterModalOpen, + ]); return {children}; }; diff --git a/src/features/dashboard/__tests__/AppManager.test.tsx b/src/features/dashboard/__tests__/AppManager.test.tsx index 1d934c478..28afa0f91 100644 --- a/src/features/dashboard/__tests__/AppManager.test.tsx +++ b/src/features/dashboard/__tests__/AppManager.test.tsx @@ -33,6 +33,8 @@ const mockUseAppManager = useAppManager as jest.MockedFunction< mockUseAppManager.mockImplementation(() => ({ setIsDashboard: jest.fn(), + getApps: jest.fn(), + updateCurrentTab: jest.fn(), })); jest.mock('react-table'); @@ -60,16 +62,34 @@ describe('AppManager', () => { expect(login).toBeInTheDocument(); }); - it('shows the dashboard', () => { + it('shows the dashboard loader if app and token is undefined', () => { mockUseAuthContext.mockImplementation(() => ({ is_logged_in: true, })); - render(); + const loader = screen.getByTestId('dt_spinner'); + expect(loader).toBeInTheDocument(); + }); + + it('shows the dashboard if app and token is not undefined', () => { + mockUseAuthContext.mockImplementation(() => ({ + is_logged_in: true, + })); + mockUseAppManager.mockImplementation(() => ({ + setIsDashboard: jest.fn(), + apps: [], + getApps: jest.fn(), + updateCurrentTab: jest.fn(), + })); + mockUseApiToken.mockImplementation(() => ({ + tokens: [], + })); - const dashboard_tabs = screen.getByText( - /Register your app, get an app ID, and start using the Deriv API/i, + render(); + const dashboard_header = screen.getByText( + /Start using Deriv API to bring custom integrations and powerful automation to your apps./i, ); - expect(dashboard_tabs).toBeInTheDocument(); + + expect(dashboard_header).toBeInTheDocument(); }); }); diff --git a/src/features/dashboard/components/AppDashboardContainer/__tests__/app-dashboard-container.test.tsx b/src/features/dashboard/components/AppDashboardContainer/__tests__/app-dashboard-container.test.tsx new file mode 100644 index 000000000..fd2504c5b --- /dev/null +++ b/src/features/dashboard/components/AppDashboardContainer/__tests__/app-dashboard-container.test.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import { cleanup, render, screen } from '@site/src/test-utils'; +import AppDashboardContainer from '..'; + +describe('AppDashboardContainer', () => { + afterEach(() => { + cleanup(); + jest.clearAllMocks(); + }); + + it('Should render the page heading', () => { + render(); + + const label = screen.getByText(/App dashboard/i); + expect(label).toBeInTheDocument(); + }); + + it('Should render children component in the screen', () => { + render( + +
Test Component
+
, + ); + const label = screen.getByText(/Test Component/i); + expect(label).toBeInTheDocument(); + }); +}); diff --git a/src/features/dashboard/components/AppDashboardContainer/app-dashboard-container.scss b/src/features/dashboard/components/AppDashboardContainer/app-dashboard-container.scss new file mode 100644 index 000000000..a7f935e7e --- /dev/null +++ b/src/features/dashboard/components/AppDashboardContainer/app-dashboard-container.scss @@ -0,0 +1,21 @@ +.app_dashboard_container { + display: flex; + flex-direction: column; + align-items: center; + padding-block: 72px; + width: 100%; + + &_top { + max-width: 608px; + margin: auto; + text-align: center; + padding-inline: 16px; + h2 { + margin-bottom: 16px; + } + } + + &_main { + width: 100%; + } +} diff --git a/src/features/dashboard/components/AppDashboardContainer/index.tsx b/src/features/dashboard/components/AppDashboardContainer/index.tsx new file mode 100644 index 000000000..ee1ff61e2 --- /dev/null +++ b/src/features/dashboard/components/AppDashboardContainer/index.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Heading, Text } from '@deriv/quill-design'; +import './app-dashboard-container.scss'; + +const AppDashboardContainer: React.FC = ({ children }) => { + return ( +
+
+
+ App dashboard + + Start using Deriv API to bring custom integrations and powerful automation to your apps. + +
+
{children}
+
+
+ ); +}; + +export default AppDashboardContainer; diff --git a/src/features/dashboard/components/AppRegister/__tests__/app-register.test.tsx b/src/features/dashboard/components/AppRegister/__tests__/app-register.test.tsx new file mode 100644 index 000000000..c40144d86 --- /dev/null +++ b/src/features/dashboard/components/AppRegister/__tests__/app-register.test.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import { cleanup, render, screen } from '@site/src/test-utils'; +import AppRegister from '..'; + +const mock_submit = jest.fn(); + +describe('AppRegister', () => { + afterEach(() => { + cleanup(); + jest.clearAllMocks(); + }); + + it('Should render the register form with register button', () => { + render(); + + const button = screen.getByText(/Register now/i); + expect(button).toBeInTheDocument(); + }); +}); diff --git a/src/features/dashboard/components/AppRegister/app-register.scss b/src/features/dashboard/components/AppRegister/app-register.scss new file mode 100644 index 000000000..58b1b4c13 --- /dev/null +++ b/src/features/dashboard/components/AppRegister/app-register.scss @@ -0,0 +1,73 @@ +.app_register_container { + margin-inline: 16px; + margin-top: 60px; + max-width: 608px; + + &_form { + display: flex; + justify-content: center; + } + + @media screen and (max-width: 992px) { + margin-top: 48px; + } + + &__fields { + display: flex; + align-items: center; + border: 1px solid #00000014; + padding-block: 5px; + padding-inline-end: 12px; + border-radius: 8px; + + &__input { + width: 100%; + &:first-child { + .border-75 { + border: none; + } + .pt-400 { + padding-top: 0; + } + } + } + + &__button { + button { + width: 86px; + } + } + } + + &__restrictions { + color: #0000007a; + margin-block: 8px; + margin-inline-start: 32px; + ul { + list-style: disc; + line-height: 24px; + } + } + + &__tnc { + margin-top: 24px; + &__label { + font-weight: 400; + font-size: 16px; + position: relative; + top: 8px; + @media screen and (max-width: 992px) { + font-size: 14px; + top: -4px; + } + } + } +} + +.error-border { + border: 1px solid var(--colors-coral500); +} + +.error { + color: var(--colors-coral500) !important; +} diff --git a/src/features/dashboard/components/AppRegister/index.tsx b/src/features/dashboard/components/AppRegister/index.tsx new file mode 100644 index 000000000..ae46bab0d --- /dev/null +++ b/src/features/dashboard/components/AppRegister/index.tsx @@ -0,0 +1,96 @@ +import React from 'react'; +import { Button, TextField } from '@deriv/quill-design'; +import { useForm } from 'react-hook-form'; +import { yupResolver } from '@hookform/resolvers/yup'; +import './app-register.scss'; +import { + IBaseRegisterAppForm, + TAppRegisterProps, + TRestrictionsComponentProps, + TTermsAndConditionsProps, + baseAppRegisterSchema, + error_map, +} from './types'; +import CustomCheckbox from '@site/src/components/CustomCheckbox'; + +const TermsAndConditions: React.FC = ({ register }) => { + return ( +
+ + + +
+ ); +}; + +const RestrictionsComponent: React.FC = ({ error }) => { + return ( +
+
    +
  • + {error_map.error_code_1} +
  • +
  • + {error_map.error_code_2} +
  • +
  • + {error_map.error_code_3} +
  • +
+
+ ); +}; + +const AppRegister: React.FC = ({ submit }) => { + const { + register, + handleSubmit, + formState: { errors }, + } = useForm({ + mode: 'all', + resolver: yupResolver(baseAppRegisterSchema), + }); + const has_error = Object.entries(errors).length !== 0; + return ( +
+
+
+
+ +
+
+ +
+
+ {errors?.tnc_approval?.message} + + +
+
+ ); +}; + +export default AppRegister; diff --git a/src/features/dashboard/components/AppRegister/types.ts b/src/features/dashboard/components/AppRegister/types.ts new file mode 100644 index 000000000..cb1eade42 --- /dev/null +++ b/src/features/dashboard/components/AppRegister/types.ts @@ -0,0 +1,45 @@ +import { UseFormRegisterReturn } from 'react-hook-form'; +import * as yup from 'yup'; + +export const error_map = { + error_code_1: 'Only alphanumeric characters with spaces and underscores are allowed.', + error_code_2: 'The name can contain up to 48 characters.', + error_code_3: 'The name cannot contain “Binary”, “Deriv”, or similar words.', +}; + +export const base_registration_schema = { + name: yup + .string() + .required('Enter your app name.') + .max(48, error_map.error_code_2) + .matches(/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9_ ]*$/, { + message: error_map.error_code_1, + excludeEmptyString: true, + }) + .matches( + /^(?!.*deriv|.*d3r1v|.*der1v|.*d3riv|.*b1nary|.*binary|.*b1n4ry|.*bin4ry|.*blnary|.*b\|nary).*$/i, + { + message: error_map.error_code_3, + excludeEmptyString: true, + }, + ), + tnc_approval: yup.boolean().oneOf([true], 'You must accept the terms and conditions.'), +}; + +export type TTermsAndConditionsProps = { + register: UseFormRegisterReturn<'tnc_approval'>; +}; + +export const baseAppRegisterSchema = yup.object({ + ...base_registration_schema, +}); + +export type IBaseRegisterAppForm = yup.InferType; + +export type TAppRegisterProps = { + submit: (data: IBaseRegisterAppForm) => void; +}; + +export type TRestrictionsComponentProps = { + error: string; +}; diff --git a/src/features/dashboard/components/AppsTable/__tests__/apps-table.test.tsx b/src/features/dashboard/components/AppsTable/__tests__/apps-table.test.tsx index d53e79fd1..1a8e4fa6e 100644 --- a/src/features/dashboard/components/AppsTable/__tests__/apps-table.test.tsx +++ b/src/features/dashboard/components/AppsTable/__tests__/apps-table.test.tsx @@ -1,16 +1,25 @@ import { ApplicationObject } from '@deriv/api-types'; -import useAppManager from '@site/src/hooks/useAppManager'; import useAuthContext from '@site/src/hooks/useAuthContext'; -import { render, screen, cleanup, within, waitFor } from '@site/src/test-utils'; +import { render, screen, within } from '@site/src/test-utils'; import userEvent from '@testing-library/user-event'; import React from 'react'; import AppsTable from '..'; +import useDeviceType from '@site/src/hooks/useDeviceType'; +import useAppManager from '@site/src/hooks/useAppManager'; jest.mock('@site/src/hooks/useAuthContext'); const mockUseAuthContext = useAuthContext as jest.MockedFunction< () => Partial> >; +jest.mock('@site/src/hooks/useDeviceType'); +const mockDeviceType = useDeviceType as jest.MockedFunction< + () => Partial> +>; +mockDeviceType.mockImplementation(() => ({ + deviceType: 'desktop', +})); + mockUseAuthContext.mockImplementation(() => ({ is_authorized: true, currentLoginAccount: { @@ -20,6 +29,18 @@ mockUseAuthContext.mockImplementation(() => ({ }, })); +jest.mock('@site/src/hooks/useAppManager'); +const mockUseAppManager = useAppManager as jest.MockedFunction< + () => Partial> +>; +const mockUpdateCurrentTab = jest.fn(); +mockUseAppManager.mockImplementation(() => ({ + getApps: jest.fn(), + apps: undefined, + tokens: undefined, + updateCurrentTab: mockUpdateCurrentTab, +})); + const fakeApplications: ApplicationObject[] = [ { active: 1, @@ -52,20 +73,17 @@ const fakeApplications: ApplicationObject[] = [ ]; describe('Apps Table', () => { - beforeEach(() => { + const renderAppTable = () => { render(); - }); - - afterEach(() => { - cleanup(); - }); + }; it('Should render all applications properly', () => { + renderAppTable(); const rows = screen.getAllByRole('row'); expect(rows.length).toBe(3); }); - it('Should open delete dialog for the application row properly', async () => { + it.skip('Should open delete dialog for the application row properly', async () => { const actionCells = await screen.findAllByTestId('app-action-cell'); const firstActionCell = actionCells[0]; @@ -77,7 +95,7 @@ describe('Apps Table', () => { expect(deleteDialogTitle).toBeInTheDocument(); }); - it('Should close delete dialog on cancel ', async () => { + it.skip('Should close delete dialog on cancel ', async () => { const actionCells = await screen.findAllByTestId('app-action-cell'); const firstActionCell = actionCells[0]; @@ -94,7 +112,7 @@ describe('Apps Table', () => { expect(deleteDialogTitle).not.toBeInTheDocument(); }); - it('Should close delete dialog when pressing the delete button', async () => { + it.skip('Should close delete dialog when pressing the delete button', async () => { const actionCells = await screen.findAllByTestId('app-action-cell'); const firstActionCell = actionCells[0]; @@ -111,7 +129,7 @@ describe('Apps Table', () => { expect(deleteDialogTitle).not.toBeInTheDocument(); }); - it('opens modal for delete app and closes it with close button', async () => { + it.skip('opens modal for delete app and closes it with close button', async () => { const actionCells = await screen.findAllByTestId('app-action-cell'); const firstActionCell = actionCells[0]; @@ -129,7 +147,7 @@ describe('Apps Table', () => { expect(deleteDialogTitle).not.toBeInTheDocument(); }); - it('Should open edit dialog form on edit button', async () => { + it.skip('Should open edit dialog form on edit button', async () => { const actionCells = await screen.findAllByTestId('app-action-cell'); const firstActionCell = actionCells[0]; @@ -141,29 +159,27 @@ describe('Apps Table', () => { expect(updateDialogTitle).toBeInTheDocument(); }); - it('Should close edit dialog form on cancel edit', async () => { - const actionCells = await screen.findAllByTestId('app-action-cell'); - const firstActionCell = actionCells[0]; - - const withinActionCell = within(firstActionCell); - const openEditDialog = withinActionCell.getByTestId('update-app-button'); - await userEvent.click(openEditDialog); - - const updateDialogTitle = await screen.findByText('Update App'); - expect(updateDialogTitle).toBeInTheDocument(); - - const closeEditDialogButton = screen.getByRole('button', { name: /cancel/i }); - - await userEvent.click(closeEditDialogButton); - - expect(updateDialogTitle).not.toBeInTheDocument(); + it('Should render responsive view properly', () => { + mockDeviceType.mockImplementation(() => ({ + deviceType: 'mobile', + })); + renderAppTable(); + const accordion = screen.getAllByTestId('dt_accordion_root'); + expect(accordion.length).toBe(1); }); - it('Should render no apps when apps prop is empty array', () => { - render(); - - const noAppsContainer = screen.getByTestId('no-apps'); + it('Should update current tab on clicking Register new application button', async () => { + renderAppTable(); + const registerButton = screen.getByText('Register new application'); + await userEvent.click(registerButton); + expect(mockUpdateCurrentTab).toBeCalled(); + }); - expect(noAppsContainer).toBeInTheDocument(); + it('Should open first accordion on item click', async () => { + renderAppTable(); + const item = screen.getByText('first app'); + await userEvent.click(item); + const content = screen.getByText('11111'); + expect(content).toBeInTheDocument(); }); }); diff --git a/src/features/dashboard/components/AppsTable/app-actions.cell.tsx b/src/features/dashboard/components/AppsTable/app-actions.cell.tsx index d3cbcdbb3..cefe5a156 100644 --- a/src/features/dashboard/components/AppsTable/app-actions.cell.tsx +++ b/src/features/dashboard/components/AppsTable/app-actions.cell.tsx @@ -1,30 +1,36 @@ import React from 'react'; -import { CellProps } from 'react-table'; -import { TAppColumn } from '.'; +import { LabelPairedPenSmRegularIcon, LabelPairedTrashSmRegularIcon } from '@deriv/quill-icons'; +import CustomTooltip from '@site/src/components/CustomTooltip'; +import clsx from 'clsx'; import styles from './cells.module.scss'; -interface IAppActionsCellProps extends React.PropsWithChildren> { +type TAppActionsCellProps = { openDeleteDialog: () => void; openEditDialog: () => void; -} + flex_end?: boolean; +}; -const AppActionsCell = ({ openDeleteDialog, openEditDialog }: IAppActionsCellProps) => { +const AppActionsCell = ({ + openDeleteDialog, + openEditDialog, + flex_end = false, +}: TAppActionsCellProps) => { return ( -
-
- Edit application details -
-
- Delete application -
+
+ + + + + + + + + + +
); }; diff --git a/src/features/dashboard/components/AppsTable/apps-table.scss b/src/features/dashboard/components/AppsTable/apps-table.scss new file mode 100644 index 000000000..ff1e5a8ff --- /dev/null +++ b/src/features/dashboard/components/AppsTable/apps-table.scss @@ -0,0 +1,82 @@ +.apps_table { + border: 1px solid var(--opacity-black-100); + border-radius: 32px; + margin: 48px; + margin-top: 0; + + &.mobile { + border: none; + margin: 0px; + } + + table { + table-layout: fixed; + border-collapse: collapse; + display: flex; + flex-direction: column; + align-items: center; + margin-inline: 48px; + + th, + td, + tr { + border: 0px; + border-bottom: 1px solid var(--solid-slate-75); + text-align: left; + height: 72px; + padding: 8px 16px; + } + tr { + background-color: transparent; + font-weight: 400; + } + } + + &__table_container { + position: relative; + max-height: 560px; + overflow-y: auto; + } + + &__table_header { + table-layout: fixed; + border-collapse: collapse; + th { + background-color: var(--solid-slate-75); + position: sticky; + top: 0; + z-index: 1; + font-weight: bold; + } + } + + &__table_body { + width: 100%; + overflow-y: auto; + } + + &__header { + display: flex; + justify-content: space-between; + padding: 48px; + + &.mobile { + flex-direction: column; + align-items: center; + text-align: center; + padding: unset; + } + &__button { + margin-top: 16px; + } + + &__texts { + display: block; + max-width: 72%; + + h3 { + margin-bottom: 16px; + } + } + } +} diff --git a/src/features/dashboard/components/AppsTable/cells.module.scss b/src/features/dashboard/components/AppsTable/cells.module.scss index ff96715b7..4e068e391 100644 --- a/src/features/dashboard/components/AppsTable/cells.module.scss +++ b/src/features/dashboard/components/AppsTable/cells.module.scss @@ -1,68 +1,15 @@ @use 'src/styles/utility' as *; -@mixin actionIcon { - background-repeat: no-repeat; - background-position: center; - background-size: rem(1.8); - cursor: pointer; - padding: rem(1.8) rem(1.8); - border-radius: 100%; -} - -.deleteApp { - background-image: url(/img/delete.svg); - @include actionIcon; -} - -.updateApp { - background-image: url(/img/edit.svg); - @include actionIcon; -} - .appActions { + width: 168px; display: flex; - margin: rem(3); - justify-content: center; -} - -.tooltip { - position: relative; - - .tooltipText { - visibility: hidden; - color: var(--ifm-color-emphasis-100); - background-color: var(--ifm-color-emphasis-700); - text-align: center; - border-radius: 4px; - position: absolute; - z-index: 1; - opacity: 0; - transition: opacity 0.3s; - font-size: rem(1); - transform: translateX(50%); - right: 50%; - bottom: rem(4); - padding: rem(0.5); - &::after { - content: ''; - position: absolute; - bottom: rem(-0.9); - right: 50%; - transform: translateX(50%); - margin-left: rem(-0.5); - border-width: 5px; - border-style: solid; - border-color: var(--ifm-color-emphasis-700) transparent transparent transparent; - } + svg { + margin-inline: 8px; + cursor: pointer; } +} - &:hover { - transform: translateY(-0.2rem); - - .tooltipText { - visibility: visible; - opacity: 1; - } - } +.flex_end { + justify-content: flex-end; } diff --git a/src/features/dashboard/components/AppsTable/index.tsx b/src/features/dashboard/components/AppsTable/index.tsx index 125524c72..8ba091907 100644 --- a/src/features/dashboard/components/AppsTable/index.tsx +++ b/src/features/dashboard/components/AppsTable/index.tsx @@ -1,32 +1,48 @@ import { ApplicationObject } from '@deriv/api-types'; import React, { HTMLAttributes, useCallback, useState } from 'react'; import { Cell, Column } from 'react-table'; -import NoApps from '../NoApps'; +import { Button, Heading, Text } from '@deriv/quill-design'; +import { LabelPairedCirclePlusMdRegularIcon } from '@deriv/quill-icons'; + +import useAppManager from '@site/src/hooks/useAppManager'; +import useDeviceType from '@site/src/hooks/useDeviceType'; +import ResponsiveTable from './responsive-table'; +import AppActionsCell from './app-actions.cell'; +import CopyTextCell from '../Table/copy-text.cell'; import DeleteAppDialog from '../Dialogs/DeleteAppDialog'; -import UpdateAppDialog from '../Dialogs/UpdateAppDialog'; -import Table from '../Table'; import ScopesCell from '../Table/scopes.cell'; -import AppActionsCell from './app-actions.cell'; +import Table from '../Table'; +import UpdateAppDialog from '../Dialogs/UpdateAppDialog'; +import clsx from 'clsx'; +import './apps-table.scss'; export type TAppColumn = Column; const appTableColumns: TAppColumn[] = [ { - Header: 'Application Name', + Header: 'App’s name', accessor: 'name', + minWidth: 150, + maxWidth: 200, }, { - Header: 'Application ID', + Header: 'App ID', accessor: 'app_id', + minWidth: 120, + maxWidth: 150, + Cell: CopyTextCell, }, { - Header: 'Scopes', + Header: 'OAuth scopes', accessor: 'scopes', + minWidth: 200, Cell: ScopesCell, }, { - Header: 'Redirect URL', + Header: 'OAuth redirect URL', accessor: 'redirect_uri', + minWidth: 350, + Cell: CopyTextCell, }, { Header: 'Actions', @@ -40,25 +56,75 @@ interface AppsTableProps extends HTMLAttributes { apps: ApplicationObject[]; } +const AppsTableHeader: React.FC<{ is_desktop: boolean }> = ({ is_desktop }) => { + const { updateCurrentTab } = useAppManager(); + + return ( +
+
+ App manager + + Here's where you can see your app's details. Edit your app settings to suit your + needs or delete them permanently. + +
+ +
+ ); +}; + const AppsTable = ({ apps }: AppsTableProps) => { const [isDeleteOpen, setIsDeleteOpen] = useState(false); const [isEditOpen, setIsEditOpen] = useState(false); const [actionRow, setActionRow] = useState(); + const { deviceType } = useDeviceType(); + const is_desktop = deviceType === 'desktop'; - const getCustomCellProps = useCallback((cell: Cell) => { + const getActionObject = useCallback((item: ApplicationObject) => { return { openDeleteDialog: () => { - setActionRow(cell.row.original); - setIsDeleteOpen(true); + setActionRow(item); + // setIsDeleteOpen(true); }, openEditDialog: () => { - setActionRow(cell.row.original); - setIsEditOpen(true); + setActionRow(item); + // setIsEditOpen(true); }, }; }, []); + const getCustomCellProps = useCallback( + (cell: Cell) => { + return getActionObject(cell.row.original); + }, + [getActionObject], + ); + + const accordionActions = useCallback( + (item: ApplicationObject) => { + return getActionObject(item); + }, + [getActionObject], + ); + const onCloseEdit = () => { setActionRow(null); setIsEditOpen(false); @@ -69,16 +135,33 @@ const AppsTable = ({ apps }: AppsTableProps) => { setIsDeleteOpen(false); }; - if (apps.length) { - return ( - <> - {isDeleteOpen && } - {isEditOpen && } - - + const renderTable = () => { + return is_desktop ? ( +
+ ) : ( + ); - } - return ; + }; + + return ( +
+ {isDeleteOpen && } + {isEditOpen && } +
+ + {apps?.length ? renderTable() : null} +
+
+ ); }; export default AppsTable; diff --git a/src/features/dashboard/components/AppsTable/responsive-table.scss b/src/features/dashboard/components/AppsTable/responsive-table.scss new file mode 100644 index 000000000..c8996d7ce --- /dev/null +++ b/src/features/dashboard/components/AppsTable/responsive-table.scss @@ -0,0 +1,30 @@ +.accordion_item { + width: 100%; + padding-block: 18px; + border-bottom: 1px solid var(--opacity-black-75); + font-size: 14px; + + &_column { + display: flex; + justify-content: space-between; + align-items: center; + } + + &__label { + line-height: 2; + min-width: fit-content; + font-weight: 500; + } + &__value { + text-align: end; + justify-content: end; + &_row { + text-align: start; + justify-content: start; + overflow-wrap: anywhere; + } + } + .redirect_url { + text-align: start; + } +} diff --git a/src/features/dashboard/components/AppsTable/responsive-table.tsx b/src/features/dashboard/components/AppsTable/responsive-table.tsx new file mode 100644 index 000000000..cd0ab30c0 --- /dev/null +++ b/src/features/dashboard/components/AppsTable/responsive-table.tsx @@ -0,0 +1,86 @@ +import React from 'react'; +import CustomAccordion from '@site/src/components/CustomAccordion'; +import { ApplicationObject } from '@deriv/api-types'; +import CopyTextCell from '../Table/copy-text.cell'; +import ScopesCell from '../Table/scopes.cell'; +import AppActionsCell from './app-actions.cell'; +import clsx from 'clsx'; +import './responsive-table.scss'; + +type TResponsiveTableProps = { + apps: ApplicationObject[]; + accordionActions: TAccordionActions; +}; + +type TAccordionActions = (item: ApplicationObject) => { + openDeleteDialog: () => void; + openEditDialog: () => void; +}; + +type TAccordionItemProps = { + label: string; + value: React.ReactNode; + row_wise?: boolean; +}; + +const AccordionItem: React.FC = ({ label, value, row_wise = false }) => ( +
+
{label}
+
+ {value} +
+
+); + +const generateContent = (item: ApplicationObject, accordionActions: TAccordionActions) => { + return ( +
+ } /> + + } + /> + } + row_wise + /> + + } + /> +
+ ); +}; + +const ResponsiveTable = ({ apps, accordionActions }: TResponsiveTableProps) => { + const items = apps.map((app) => ({ + header: app.name, + content: generateContent(app, accordionActions), + })); + return ; +}; + +export default ResponsiveTable; diff --git a/src/features/dashboard/components/Modals/AppRegisterSuccessModal/__tests__/app-register-success-modal.test.tsx b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/__tests__/app-register-success-modal.test.tsx new file mode 100644 index 000000000..94e101cac --- /dev/null +++ b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/__tests__/app-register-success-modal.test.tsx @@ -0,0 +1,68 @@ +import React from 'react'; +import { cleanup, render, screen } from '@site/src/test-utils'; +import { AppRegisterSuccessModal } from '..'; +import useAppManager from '@site/src/hooks/useAppManager'; + +const mock_cancel = jest.fn(); +const mock_configure = jest.fn(); + +jest.mock('@site/src/hooks/useAppManager'); +const mockUseAppManager = useAppManager as jest.MockedFunction< + () => Partial> +>; +mockUseAppManager.mockImplementation(() => ({ + app_register_modal_open: true, +})); + +describe('AppRegisterSuccessModal', () => { + afterEach(() => { + cleanup(); + jest.clearAllMocks(); + }); + + it('Should render the success modal in desktop', () => { + render( + , + ); + + const label = screen.getByText(/Application registered successfully!/i); + expect(label).toBeInTheDocument(); + const imgElement = screen.getByAltText('check icon'); + expect(imgElement).toBeInTheDocument(); + }); + + it('Should render the success modal in mobile', () => { + render( + , + ); + + const label = screen.getByText(/Application registered successfully!/i); + expect(label).toBeInTheDocument(); + const imgElement = screen.queryByAltText('check icon'); + expect(imgElement).not.toBeInTheDocument(); + }); + + it('Should handle click events properly', () => { + render( + , + ); + const configure_btn = screen.getByText(/Configure now/i); + const maybe_later_btn = screen.getByText(/Maybe later/i); + configure_btn.click(); + expect(mock_configure).toBeCalled(); + maybe_later_btn.click(); + expect(mock_cancel).toBeCalled(); + }); +}); diff --git a/src/features/dashboard/components/Modals/AppRegisterSuccessModal/app-register-success-modal.scss b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/app-register-success-modal.scss new file mode 100644 index 000000000..036773d3b --- /dev/null +++ b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/app-register-success-modal.scss @@ -0,0 +1,41 @@ +.app_register_success_modal { + .action_sheet__main { + &.desktop { + max-width: 512px; + } + } + + &__icon { + display: flex; + justify-content: center; + background: var(--solid-slate-75); + margin-inline: -16px; + margin-top: -16px; + margin-bottom: 16px; + padding: 24px; + border-radius: 12px 12px 0 0; + } + + &__header { + font-weight: 700; + font-size: 18px; + line-height: 24px; + text-align: center; + padding-block: 8px; + } + + &__content { + margin: 16px; + font-weight: 400; + font-size: 16px; + line-height: 24px; + + ul { + padding-block: 8px; + li { + list-style: disc; + margin-inline-start: 24px; + } + } + } +} diff --git a/src/features/dashboard/components/Modals/AppRegisterSuccessModal/index.tsx b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/index.tsx new file mode 100644 index 000000000..989fdaed8 --- /dev/null +++ b/src/features/dashboard/components/Modals/AppRegisterSuccessModal/index.tsx @@ -0,0 +1,61 @@ +import React from 'react'; +import useAppManager from '@site/src/hooks/useAppManager'; +import SwipeableBottomSheet from '@site/src/components/SwipeableBottomSheet'; +import { Heading } from '@deriv/quill-design'; +import './app-register-success-modal.scss'; + +interface IAppRegisterSuccessModalProps { + onConfigure: () => void; + onCancel: () => void; + is_desktop: boolean; +} + +export const AppRegisterSuccessModal = ({ + onConfigure, + onCancel, + is_desktop, +}: IAppRegisterSuccessModalProps) => { + const { app_register_modal_open } = useAppManager(); + + return ( +
+ +
+ {is_desktop && ( +
+ check icon +
+ )} + + Application registered successfully! + +
+ + Ready to take the next step? +

Optimise your app's capabilities by: +
    +
  • Creating an API token to use with your application.
  • +
  • Adding OAuth authentication in your app.
  • +
  • Selecting the scopes of OAuth authorisation for your app.
  • +
+
Note: You can make these changes later through the dashboard.
+
+
+
+
+
+ ); +}; diff --git a/src/features/dashboard/components/Table/__tests__/copy-text.cell.test.tsx b/src/features/dashboard/components/Table/__tests__/copy-text.cell.test.tsx new file mode 100644 index 000000000..3473cdd56 --- /dev/null +++ b/src/features/dashboard/components/Table/__tests__/copy-text.cell.test.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { render, screen } from '@site/src/test-utils'; +import CopyTextCell from '../copy-text.cell'; +import userEvent from '@testing-library/user-event'; + +describe('CopyTextCell', () => { + beforeAll(() => { + Object.assign(navigator, { + clipboard: { + writeText: jest.fn(), + }, + }); + }); + + it('Should render the copy button', () => { + render( + , + ); + const label = screen.getByText(/1234/i); + expect(label).toBeInTheDocument(); + }); + + it('Should copy text in the clipboard', async () => { + render( + , + ); + const label = screen.getByText(/1234/i); + await userEvent.click(label); + expect(navigator.clipboard.writeText).toHaveBeenCalledWith('1234'); + }); +}); diff --git a/src/features/dashboard/components/Table/copy-text.cell.scss b/src/features/dashboard/components/Table/copy-text.cell.scss new file mode 100644 index 000000000..0e9ac98aa --- /dev/null +++ b/src/features/dashboard/components/Table/copy-text.cell.scss @@ -0,0 +1,9 @@ +.copy_text_cell { + display: ruby-text; + text-align: left; + cursor: pointer; + + &__icon { + margin-left: 8px; + } +} diff --git a/src/features/dashboard/components/Table/copy-text.cell.tsx b/src/features/dashboard/components/Table/copy-text.cell.tsx new file mode 100644 index 000000000..085a2f96c --- /dev/null +++ b/src/features/dashboard/components/Table/copy-text.cell.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { LabelPairedCopyLgRegularIcon } from '@deriv/quill-icons'; +import './copy-text.cell.scss'; + +const CopyTextCell: React.FC<{ + cell: { + value: React.ReactNode; + }; +}> = ({ cell }) => { + return ( + + {cell.value ? ( +
{ + navigator.clipboard.writeText(cell.value.toString()); + }} + > + {cell.value} + + + +
+ ) : ( + '' + )} +
+ ); +}; + +export default CopyTextCell; diff --git a/src/features/dashboard/components/Table/index.tsx b/src/features/dashboard/components/Table/index.tsx index 052fc5a1a..c60e4ec81 100644 --- a/src/features/dashboard/components/Table/index.tsx +++ b/src/features/dashboard/components/Table/index.tsx @@ -1,4 +1,4 @@ -import React, { HTMLAttributes, LegacyRef, ReactNode } from 'react'; +import React, { HTMLAttributes } from 'react'; import { Cell, Column, TableState, useTable } from 'react-table'; import './table.scss'; @@ -8,6 +8,7 @@ interface ITableProps extends HTMLAttributes data: T[]; columns: Column[]; initialState?: TableState; + parentClass?: string; row_height?: number; getCustomCellProps?: (cell: Cell) => object; } @@ -17,6 +18,7 @@ const Table = ({ columns, initialState, getCustomCellProps = defaultPropGetter, + parentClass, row_height, ...rest }: ITableProps) => { @@ -27,19 +29,28 @@ const Table = ({ }); return ( -
- +
+ {headerGroups.map((headerGroup) => ( - + {headerGroup.headers.map((column) => ( - ))} ))} - - {rows.map((row) => { prepareRow(row); return ( @@ -50,7 +61,14 @@ const Table = ({ > {row.cells.map((cell) => { return ( - ); diff --git a/src/features/dashboard/components/Table/scopes.cell.module.scss b/src/features/dashboard/components/Table/scopes.cell.module.scss index 57dfa80e9..f894ac0e9 100644 --- a/src/features/dashboard/components/Table/scopes.cell.module.scss +++ b/src/features/dashboard/components/Table/scopes.cell.module.scss @@ -3,7 +3,7 @@ .scope { display: inline-block; border: rem(0.1) solid var(--ifm-color-emphasis-400); - border-radius: 100vw; // pill shaped + border-radius: 4px; padding: rem(0.2) rem(0.8); font-size: rem(1.2); margin: rem(0.5); diff --git a/src/features/dashboard/components/Table/scopes.cell.tsx b/src/features/dashboard/components/Table/scopes.cell.tsx index af249b858..03abcf98b 100644 --- a/src/features/dashboard/components/Table/scopes.cell.tsx +++ b/src/features/dashboard/components/Table/scopes.cell.tsx @@ -1,13 +1,21 @@ import React from 'react'; -import { CellProps } from 'react-table'; import styles from './scopes.cell.module.scss'; -const ScopesCell = ({ - cell, -}: React.PropsWithChildren>) => { - return ( - <> - {cell.value.map((scopes: string): React.ReactElement => { +type TScopesCellProps = { + cell: { + value: string[]; + }; +}; + +const SCOPES_ORDER = ['admin', 'read', 'payments', 'trade', 'trading_information']; + +const ScopesCell: React.FC = ({ cell }) => ( + <> + {cell.value + .sort((a, b) => { + return SCOPES_ORDER.indexOf(a) - SCOPES_ORDER.indexOf(b); + }) + .map((scopes: string): React.ReactElement => { return ( ({ ); })} - - ); -}; + +); export default ScopesCell; diff --git a/src/features/dashboard/index.tsx b/src/features/dashboard/index.tsx index 637831f54..4d5cb6363 100644 --- a/src/features/dashboard/index.tsx +++ b/src/features/dashboard/index.tsx @@ -1,12 +1,13 @@ import React, { useEffect } from 'react'; -import { Login } from '../Auth/Login/Login'; import useAuthContext from '@site/src/hooks/useAuthContext'; -import DashboardTabs from './components/Tabs'; +// import DashboardTabs from './components/Tabs'; import useAppManager from '@site/src/hooks/useAppManager'; +import MemoizedManageDashboard from './manage-dashboard'; +import { Login } from '../Auth/Login/Login'; export const AppManager = () => { const { is_logged_in } = useAuthContext(); - const { setIsDashboard, is_dashboard } = useAppManager(); + const { setIsDashboard } = useAppManager(); useEffect(() => { setIsDashboard(true); @@ -15,5 +16,5 @@ export const AppManager = () => { }; }, [setIsDashboard]); - return {is_logged_in ? : }; + return {is_logged_in ? : }; }; diff --git a/src/features/dashboard/manage-apps/app-manage-page.tsx b/src/features/dashboard/manage-apps/app-manage-page.tsx new file mode 100644 index 000000000..86fa52ab2 --- /dev/null +++ b/src/features/dashboard/manage-apps/app-manage-page.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import AppsTable from '../components/AppsTable'; +import LoadingTable from '../components/LoadingTable'; +import { ApplicationObject } from '@deriv/api-types'; + +const AppManagePage: React.FC<{ apps: ApplicationObject[] }> = ({ apps }) => { + return ( +
+ {apps ? : } +
+ ); +}; + +export default AppManagePage; diff --git a/src/features/dashboard/manage-apps/index.tsx b/src/features/dashboard/manage-apps/index.tsx index 57575d4c7..a71e37055 100644 --- a/src/features/dashboard/manage-apps/index.tsx +++ b/src/features/dashboard/manage-apps/index.tsx @@ -1,8 +1,8 @@ import useAppManager from '@site/src/hooks/useAppManager'; import React, { useEffect } from 'react'; -import AppsTable from '../components/AppsTable'; -import LoadingTable from '../components/LoadingTable'; -import styles from './manage-apps.module.scss'; +import AppManagePage from './app-manage-page'; +import CustomTabs from '@site/src/components/CustomTabs'; +import './manage-apps.scss'; const AppManagement = () => { const { getApps, apps } = useAppManager(); @@ -11,9 +11,17 @@ const AppManagement = () => { getApps(); }, [getApps]); + const tabs = [ + { + label: 'Applications', + content: , + }, + { label: 'API tokens', content:
API tokens development in progress
}, + ]; + return ( -
- {apps ? : } +
+
); }; diff --git a/src/features/dashboard/manage-apps/manage-apps.module.scss b/src/features/dashboard/manage-apps/manage-apps.scss similarity index 64% rename from src/features/dashboard/manage-apps/manage-apps.module.scss rename to src/features/dashboard/manage-apps/manage-apps.scss index b2beab871..84915f88d 100644 --- a/src/features/dashboard/manage-apps/manage-apps.module.scss +++ b/src/features/dashboard/manage-apps/manage-apps.scss @@ -1,10 +1,8 @@ @use 'src/styles/utility' as *; -.manageApps { +.manage_apps { width: 100%; - display: inline-block; overflow: auto; - max-height: calc(100vh - rem(35)); border-top-left-radius: rem(1.6); border-top-right-radius: rem(1.6); -} \ No newline at end of file +} diff --git a/src/features/dashboard/manage-dashboard/__tests__/manage-dashboard.test.tsx b/src/features/dashboard/manage-dashboard/__tests__/manage-dashboard.test.tsx new file mode 100644 index 000000000..ecfbf1e9b --- /dev/null +++ b/src/features/dashboard/manage-dashboard/__tests__/manage-dashboard.test.tsx @@ -0,0 +1,163 @@ +import React from 'react'; +import { cleanup, render, screen } from '@site/src/test-utils'; +import MemoizedManageDashboard from '..'; +import useAppManager from '@site/src/hooks/useAppManager'; +import useDeviceType from '@site/src/hooks/useDeviceType'; +import userEvent from '@testing-library/user-event'; +import apiManager from '@site/src/configs/websocket'; + +jest.mock('@site/src/hooks/useAppManager'); +const mockUseAppManager = useAppManager as jest.MockedFunction< + () => Partial> +>; +mockUseAppManager.mockImplementation(() => ({ + getApps: jest.fn(), + apps: undefined, + tokens: undefined, + updateCurrentTab: jest.fn(), +})); + +jest.mock('@site/src/hooks/useDeviceType'); +const mockDeviceType = useDeviceType as jest.MockedFunction< + () => Partial> +>; +mockDeviceType.mockImplementation(() => ({ + deviceType: 'desktop', +})); + +jest.mock('@site/src/configs/websocket'); +const mockApiManager = apiManager as jest.Mocked; + +describe('ManageDashboard', () => { + afterEach(() => { + cleanup(); + jest.clearAllMocks(); + }); + + it('Should render the initial compoent with loader', () => { + const { container } = render(); + expect(container).toBeInTheDocument(); + const loader = screen.getByTestId('dt_spinner'); + expect(loader).toBeInTheDocument(); + }); + + it('Should render the content App Register page in mobile device - if no token or app is available', () => { + mockUseAppManager.mockImplementation(() => ({ + apps: [], + tokens: [], + getApps: jest.fn(), + updateCurrentTab: jest.fn(), + })); + mockDeviceType.mockImplementation(() => ({ + deviceType: 'mobile', + })); + render(); + const register_button = screen.getByText(/Register now/i); + expect(register_button).toBeInTheDocument(); + }); + + it('Should call getApps on submit button press if all the fields are filled up', async () => { + const mockGetApps = jest.fn(); + mockUseAppManager.mockImplementation(() => ({ + apps: [], + tokens: [], + getApps: mockGetApps, + updateCurrentTab: jest.fn(), + })); + render(); + + const name_input = screen.getByRole('textbox'); + await userEvent.type(name_input, 'test create token'); + const tnc_input = screen.getByRole('checkbox'); + await userEvent.click(tnc_input); + const register_button = screen.getByText(/Register now/i); + await userEvent.click(register_button); + + expect(mockGetApps).toHaveBeenCalled(); + }); + + it('Should trigger the success modal in desktop', async () => { + const mockModalOpenSetter = jest.fn(); + mockApiManager.augmentedSend.mockResolvedValue({ + app_register: { + active: 1, + app_id: 1234, + app_markup_percentage: 0, + appstore: '', + github: '', + googleplay: '', + homepage: '', + name: 'TestApp1', + redirect_uri: '', + scopes: [], + verification_uri: '', + }, + echo_req: { + app_markup_percentage: 0, + app_register: 1, + name: 'TestApp1', + req_id: 4, + scopes: [], + }, + msg_type: 'app_register', + req_id: 4, + }); + + mockUseAppManager.mockImplementation(() => ({ + getApps: jest.fn(), + apps: [], + tokens: [], + setAppRegisterModalOpen: mockModalOpenSetter, + updateCurrentTab: jest.fn(), + })); + + render(); + + const name_input = screen.getByRole('textbox'); + await userEvent.type(name_input, 'test create token'); + const tnc_input = screen.getByRole('checkbox'); + await userEvent.click(tnc_input); + const register_button = screen.getByText(/Register now/i); + await userEvent.click(register_button); + + expect(mockModalOpenSetter).toBeCalledWith(true); + }); + + it('Should close the modal on config button click', async () => { + const mockModalOpenSetter = jest.fn(); + mockUseAppManager.mockImplementation(() => ({ + getApps: jest.fn(), + apps: [], + tokens: [], + setAppRegisterModalOpen: mockModalOpenSetter, + app_register_modal_open: true, + updateCurrentTab: jest.fn(), + })); + + render(); + + const config_button = screen.getByText(/Config/i); + await userEvent.click(config_button); + + expect(mockModalOpenSetter).toBeCalledWith(false); + }); + + it('Should close the modal on cancel button click', async () => { + const mockModalOpenSetter = jest.fn(); + mockUseAppManager.mockImplementation(() => ({ + getApps: jest.fn(), + apps: [], + tokens: [], + setAppRegisterModalOpen: mockModalOpenSetter, + app_register_modal_open: true, + updateCurrentTab: jest.fn(), + })); + + render(); + + const cancel_button = screen.getByText(/Maybe Later/i); + await userEvent.click(cancel_button); + + expect(mockModalOpenSetter).toBeCalledWith(false); + }); +}); diff --git a/src/features/dashboard/manage-dashboard/index.tsx b/src/features/dashboard/manage-dashboard/index.tsx new file mode 100644 index 000000000..915ddff18 --- /dev/null +++ b/src/features/dashboard/manage-dashboard/index.tsx @@ -0,0 +1,89 @@ +import React, { useCallback, useEffect, useState } from 'react'; +import AppDashboardContainer from '../components/AppDashboardContainer'; +import AppRegister from '../components/AppRegister'; +import useAppManager from '@site/src/hooks/useAppManager'; +import useApiToken from '@site/src/hooks/useApiToken'; +import Spinner from '@site/src/components/Spinner'; +import useWS from '@site/src/hooks/useWs'; +import useDeviceType from '@site/src/hooks/useDeviceType'; +import { RegisterAppDialogError } from '../components/Dialogs/RegisterAppDialogError'; +import { AppRegisterSuccessModal } from '../components/Modals/AppRegisterSuccessModal'; +import AppManagement from '../manage-apps'; +import './manage-dashboard.scss'; + +const ManageDashboard = () => { + const { apps, getApps, setAppRegisterModalOpen, currentTab, updateCurrentTab } = useAppManager(); + const { tokens } = useApiToken(); + const { send: registerApp, error, clear, data, is_loading } = useWS('app_register'); + const { deviceType } = useDeviceType(); + const [is_desktop, setIsDesktop] = useState(true); + + useEffect(() => { + setIsDesktop(deviceType.includes('desktop')); + }, [deviceType]); + + useEffect(() => { + if (!is_loading && data?.name && !error) { + setAppRegisterModalOpen(true); + clear(); + getApps(); + } + }, [data, clear, error, setAppRegisterModalOpen, is_loading, getApps]); + + useEffect(() => { + getApps(); + }, [getApps]); + + useEffect(() => { + if (!apps?.length && !tokens?.length) { + updateCurrentTab('REGISTER_APP'); + } else { + updateCurrentTab('MANAGE_APPS'); + } + }, [tokens, apps, updateCurrentTab]); + + const submit = useCallback( + (data) => { + const { name } = data; + registerApp({ + name, + scopes: [], + }); + }, + [registerApp], + ); + + if (!apps || is_loading || !tokens) + return ( +
+ +
+ ); + + const renderScreen = () => { + switch (currentTab) { + case 'REGISTER_APP': + return ; + case 'MANAGE_APPS': + return ; + default: + return ; + } + }; + + return ( + + {error && } + setAppRegisterModalOpen(false)} + onConfigure={() => setAppRegisterModalOpen(false)} + /> + {renderScreen()} + + ); +}; + +const MemoizedManageDashboard = React.memo(ManageDashboard); + +export default MemoizedManageDashboard; diff --git a/src/features/dashboard/manage-dashboard/manage-dashboard.scss b/src/features/dashboard/manage-dashboard/manage-dashboard.scss new file mode 100644 index 000000000..a9d7e8a5d --- /dev/null +++ b/src/features/dashboard/manage-dashboard/manage-dashboard.scss @@ -0,0 +1,5 @@ +.manage_dashboard { + &__spinner { + height: 90vh; + } +} diff --git a/src/hooks/useAppManager/__tests__/useAppManager.test.tsx b/src/hooks/useAppManager/__tests__/useAppManager.test.tsx index a16f6ba6a..ab470ddb2 100644 --- a/src/hooks/useAppManager/__tests__/useAppManager.test.tsx +++ b/src/hooks/useAppManager/__tests__/useAppManager.test.tsx @@ -50,9 +50,9 @@ describe('use App Manager', () => { await expect(wsServer).toReceiveMessage({ app_list: 1, req_id: 1 }); }); - it('Should have MANAGE_TOKENS as initial value for currentTab', () => { + it('Should have MANAGE_APPS as initial value for currentTab', () => { const { result } = renderHook(() => useAppManager(), { wrapper }); - expect(result.current.currentTab).toBe('MANAGE_TOKENS'); + expect(result.current.currentTab).toBe('MANAGE_APPS'); }); it('Should update currentTab value', () => { diff --git a/src/hooks/useDeviceType/index.tsx b/src/hooks/useDeviceType/index.tsx new file mode 100644 index 000000000..332ba2e14 --- /dev/null +++ b/src/hooks/useDeviceType/index.tsx @@ -0,0 +1,33 @@ +import { useState, useEffect } from 'react'; +import { debounceTime, fromEvent } from 'rxjs'; + +type TDeviceType = 'mobile' | 'tablet' | 'desktop'; + +type TUseDeviceType = { + deviceType: TDeviceType; +}; + +const useDeviceType = (): TUseDeviceType => { + const [deviceType, setDeviceType] = useState('desktop'); + + useEffect(() => { + const handleResize = () => { + if (window.matchMedia('(max-width: 768px)').matches) { + setDeviceType('mobile'); + } else if (window.matchMedia('(max-width: 1023px)').matches) { + setDeviceType('tablet'); + } else { + setDeviceType('desktop'); + } + }; + + handleResize(); + const resize = fromEvent(window, 'resize'); + const result = resize.pipe(debounceTime(600)); + result.subscribe(handleResize); + }, []); + + return { deviceType }; +}; + +export default useDeviceType; diff --git a/src/styles/index.scss b/src/styles/index.scss index b5b8ec452..535b94543 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,5 +1,6 @@ @use 'src/styles/utility' as *; @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&family=Ubuntu:wght@400;500;700&display=swap'); +@import '@deriv/quill-design/dist/quill-design.css'; /** * Any CSS included here will be global. The classic template @@ -40,6 +41,10 @@ --smoke: #414652; --admin-text: #22bd41; --admin-border: #33c9517a; + --solid-slate-50: #ffffff; + --solid-slate-75: #f6f7f8; + --opacity-black-100: #00000014; + --opacity-black-75: #0000000a; } /* For readability concerns, you should choose a lighter palette in dark mode. */ diff --git a/static/img/circle_check_regular_icon.svg b/static/img/circle_check_regular_icon.svg new file mode 100644 index 000000000..004b7a8ae --- /dev/null +++ b/static/img/circle_check_regular_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/circle_dot_caption_bold.svg b/static/img/circle_dot_caption_bold.svg new file mode 100644 index 000000000..986d59044 --- /dev/null +++ b/static/img/circle_dot_caption_bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/circle_dot_caption_fill.svg b/static/img/circle_dot_caption_fill.svg new file mode 100644 index 000000000..4c4f0a128 --- /dev/null +++ b/static/img/circle_dot_caption_fill.svg @@ -0,0 +1 @@ + \ No newline at end of file
+ 1000 ? 'auto' : column.maxWidth, + }} + > {column.render('Header')}
+ 1000 ? 'auto' : cell.column.maxWidth, + }} + > {cell.render('Cell', getCustomCellProps(cell))}