From 8bdd98f3f8ea81961e40a0a9f296aeca1b1ef59f Mon Sep 17 00:00:00 2001 From: oneway Date: Fri, 1 Apr 2022 08:07:42 -0500 Subject: [PATCH 1/4] add accordion and chip component --- .cssrem | 4 + package.json | 17 +- src/App.js | 2 +- src/Components/Chip/index.jsx | 16 ++ src/Components/Chip/style.css | 27 +++ src/Components/accordion.css | 31 +++ src/index.css | 4 + src/tokenSearch/NetworkFilter.jsx | 44 ++++ src/tokenSearch/SearchNetworks.jsx | 2 +- src/tokenSearch/SearchNetworksSelector.jsx | 21 +- src/tokenSearch/index.jsx | 8 +- tailwind.config.js | 253 +++++++++++++++++++++ 12 files changed, 409 insertions(+), 20 deletions(-) create mode 100644 .cssrem create mode 100644 src/Components/Chip/index.jsx create mode 100644 src/Components/Chip/style.css create mode 100644 src/Components/accordion.css create mode 100644 src/tokenSearch/NetworkFilter.jsx create mode 100644 tailwind.config.js diff --git a/.cssrem b/.cssrem new file mode 100644 index 0000000..3a2cdc2 --- /dev/null +++ b/.cssrem @@ -0,0 +1,4 @@ +{ + "rootFontSize": 16, + "fixedDigits": 3 +} diff --git a/package.json b/package.json index f1e14e4..ec9df1e 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@craco/craco": "^6.4.3", "@rbl/terminal-library": "git+https://github.com/Rome-Blockchain-Labs/terminal-library.git#8dda04858acb1c45437325857eff56c60afca5ee", "@rbl/velox-common": "4.1.3", "@reduxjs/toolkit": "^1.8.0", @@ -16,6 +17,7 @@ "graphql-request": "^4.2.0", "lodash": "^4.17.21", "react": "^17.0.2", + "react-accessible-accordion": "^4.0.0", "react-dom": "^17.0.2", "react-redux": "^7.2.6", "react-router": "^6.2.2", @@ -23,7 +25,8 @@ "react-scripts": "5.0.0", "react-virtualized": "^9.22.3", "reactstrap": "^9.0.1", - "styled-components": "^5.3.3", + "styled-components": "^5.3.5", + "twin.macro": "^2.8.2", "typescript": "^4.6.2", "web-vitals": "^2.1.4" }, @@ -51,5 +54,17 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "@babel/core": "^7.17.8", + "autoprefixer": "^10.4.4", + "babel-plugin-macros": "^3.1.0", + "postcss": "^8.4.12", + "tailwindcss": "^3.0.23" + }, + "babelMacros": { + "twin": { + "preset": "styled-components" + } } } diff --git a/src/App.js b/src/App.js index e070a53..ebca7cb 100644 --- a/src/App.js +++ b/src/App.js @@ -10,7 +10,7 @@ function App() {







-
+
{/*